From 1b821ddabeda50078767af116cf7bc5af91ee200 Mon Sep 17 00:00:00 2001 From: Aspose-Tester Date: Thu, 10 Sep 2026 05:45:11 -0700 Subject: [PATCH] Update repo docs (3998 examples, 35 categories) --- .github/copilot-instructions.md | 4 +- .well-known/agent.json | 74 +- .well-known/ai-plugin.json | 4 +- AGENTS.md | 88 +- CONTRIBUTING.md | 2 +- README.md | 82 +- SECURITY.md | 4 +- accessibility-and-tagged-pdfs/AGENTS.md | 62 +- accessibility-and-tagged-pdfs/README.md | 89 + accessibility-and-tagged-pdfs/index.json | 1268 +- basic-operations/AGENTS.md | 48 +- basic-operations/README.md | 96 + basic-operations/index.json | 1502 +- compare-pdf/AGENTS.md | 57 +- compare-pdf/README.md | 63 + compare-pdf/index.json | 720 +- conversion/AGENTS.md | 68 +- conversion/README.md | 169 + conversion/index.json | 2558 +- document/AGENTS.md | 68 +- document/README.md | 194 + document/index.json | 3472 +- facades-acroforms/AGENTS.md | 62 +- facades-acroforms/README.md | 78 + facades-acroforms/index.json | 1082 +- facades-annotations/AGENTS.md | 72 +- facades-annotations/README.md | 174 + facades-annotations/index.json | 2910 +- facades-bookmarks/AGENTS.md | 38 +- facades-bookmarks/README.md | 67 + facades-bookmarks/index.json | 924 +- facades-convert-documents/AGENTS.md | 46 +- facades-convert-documents/README.md | 70 + facades-convert-documents/index.json | 924 +- facades-documents/AGENTS.md | 52 +- facades-documents/README.md | 172 + facades-documents/index.json | 2658 +- facades-edit-document/AGENTS.md | 78 +- facades-edit-document/README.md | 347 + facades-edit-document/index.json | 6952 ++- facades-extract-images-and-text/AGENTS.md | 80 +- facades-extract-images-and-text/README.md | 144 + facades-extract-images-and-text/index.json | 2306 +- facades-fill-forms/AGENTS.md | 78 +- facades-fill-forms/README.md | 80 + facades-fill-forms/index.json | 1072 +- facades-forms/AGENTS.md | 68 +- facades-forms/README.md | 151 + facades-forms/index.json | 2446 +- facades-metadata/AGENTS.md | 46 +- facades-metadata/README.md | 77 + facades-metadata/index.json | 1014 +- facades-pages/AGENTS.md | 54 +- facades-pages/README.md | 204 + facades-pages/index.json | 3534 +- facades-secure-documents/AGENTS.md | 48 +- facades-secure-documents/README.md | 78 + facades-secure-documents/index.json | 1172 +- facades-sign-documents/AGENTS.md | 66 +- facades-sign-documents/README.md | 80 + facades-sign-documents/index.json | 946 +- facades-stamps/AGENTS.md | 52 +- facades-stamps/README.md | 101 + facades-stamps/index.json | 1540 +- facades-texts-and-images/AGENTS.md | 49 +- facades-texts-and-images/README.md | 64 + facades-texts-and-images/index.json | 792 +- facades-xmp-metadata/AGENTS.md | 82 +- facades-xmp-metadata/README.md | 91 + facades-xmp-metadata/index.json | 1334 +- graphs-zugferd-operators/AGENTS.md | 68 +- graphs-zugferd-operators/README.md | 143 + graphs-zugferd-operators/index.json | 2462 +- index.json | 55171 +++++++++++-------- llm.txt | 74 +- pages/AGENTS.md | 46 +- pages/README.md | 152 + pages/index.json | 2640 +- parse-pdf/AGENTS.md | 72 +- parse-pdf/README.md | 116 + parse-pdf/index.json | 1750 +- securing-and-signing-pdf/AGENTS.md | 74 +- securing-and-signing-pdf/README.md | 135 + securing-and-signing-pdf/index.json | 2276 +- sitemap.xml | 224 +- stamping/AGENTS.md | 42 +- stamping/README.md | 91 + stamping/index.json | 1252 +- uncategorized/AGENTS.md | 4 +- uncategorized/README.md | 4 +- working-with-annotations/AGENTS.md | 68 +- working-with-annotations/README.md | 235 + working-with-annotations/index.json | 4388 +- working-with-attachments/AGENTS.md | 70 +- working-with-attachments/README.md | 88 + working-with-attachments/index.json | 1244 +- working-with-forms/AGENTS.md | 78 +- working-with-forms/README.md | 377 + working-with-forms/index.json | 6854 ++- working-with-graphs/AGENTS.md | 56 +- working-with-graphs/README.md | 148 + working-with-graphs/index.json | 2042 +- working-with-images/AGENTS.md | 56 +- working-with-images/README.md | 124 + working-with-images/index.json | 1916 +- working-with-tables/AGENTS.md | 66 +- working-with-tables/README.md | 172 + working-with-tables/index.json | 2712 +- working-with-text/AGENTS.md | 50 +- working-with-text/README.md | 133 + working-with-text/index.json | 2066 +- working-with-xml/AGENTS.md | 83 +- working-with-xml/README.md | 140 + working-with-xml/index.json | 2138 +- 114 files changed, 83887 insertions(+), 53460 deletions(-) create mode 100644 accessibility-and-tagged-pdfs/README.md create mode 100644 basic-operations/README.md create mode 100644 compare-pdf/README.md create mode 100644 conversion/README.md create mode 100644 document/README.md create mode 100644 facades-acroforms/README.md create mode 100644 facades-annotations/README.md create mode 100644 facades-bookmarks/README.md create mode 100644 facades-convert-documents/README.md create mode 100644 facades-documents/README.md create mode 100644 facades-edit-document/README.md create mode 100644 facades-extract-images-and-text/README.md create mode 100644 facades-fill-forms/README.md create mode 100644 facades-forms/README.md create mode 100644 facades-metadata/README.md create mode 100644 facades-pages/README.md create mode 100644 facades-secure-documents/README.md create mode 100644 facades-sign-documents/README.md create mode 100644 facades-stamps/README.md create mode 100644 facades-texts-and-images/README.md create mode 100644 facades-xmp-metadata/README.md create mode 100644 graphs-zugferd-operators/README.md create mode 100644 pages/README.md create mode 100644 parse-pdf/README.md create mode 100644 securing-and-signing-pdf/README.md create mode 100644 stamping/README.md create mode 100644 working-with-annotations/README.md create mode 100644 working-with-attachments/README.md create mode 100644 working-with-forms/README.md create mode 100644 working-with-graphs/README.md create mode 100644 working-with-images/README.md create mode 100644 working-with-tables/README.md create mode 100644 working-with-text/README.md create mode 100644 working-with-xml/README.md diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index b5d91a1bd..13487d121 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -1,6 +1,6 @@ # Copilot Instructions -This repository is a curated collection of validated, build-tested C# examples for **Aspose.PDF for .NET (26.7.0)** targeting **net10.0**. +This repository is a curated collection of validated, build-tested C# examples for **Aspose.PDF for .NET (26.8.0)** targeting **net10.0**. The canonical coding-agent guide is [`AGENTS.md`](../AGENTS.md) at the repository root, and there is one per category folder. **Read those first** before suggesting changes. @@ -16,7 +16,7 @@ The canonical coding-agent guide is [`AGENTS.md`](../AGENTS.md) at the repositor - Edit `AGENTS.md`, `index.json`, or `README.md` by hand. They are regenerated by an external generator and your edits will be overwritten. - Add a `.csproj` per example. CI synthesises one at validation time; shipping one would conflict. -- Suggest API calls that do not exist in `Aspose.PDF` package version 26.7.0. If you are not sure, check `index.json` for the apis_used field on neighbouring examples in the same category. +- Suggest API calls that do not exist in `Aspose.PDF` package version 26.8.0. If you are not sure, check `index.json` for the apis_used field on neighbouring examples in the same category. ## Where to look for context diff --git a/.well-known/agent.json b/.well-known/agent.json index b79556e50..0cb702195 100644 --- a/.well-known/agent.json +++ b/.well-known/agent.json @@ -1,7 +1,7 @@ { "name": "Aspose.PDF for .NET Examples Agent", - "description": "AI agent that generates, compiles, and validates C# code examples for Aspose.PDF for .NET 26.7.0. 2,636 build-verified examples across 35 categories.", - "version": "26.7.0", + "description": "AI agent that generates, compiles, and validates C# code examples for Aspose.PDF for .NET 26.8.0. 3,998 build-verified examples across 35 categories.", + "version": "26.8.0", "url": "https://github.com/aspose-pdf/agentic-net-examples.git", "api_base_url": "http://172.20.1.175:7050", "mcp_endpoint": "http://172.20.1.175:7050/mcp/generate", @@ -34,107 +34,107 @@ "categories": [ { "name": "Accessibility and tagged PDFs", - "examples": 45 + "examples": 70 }, { "name": "Basic operations", - "examples": 57 + "examples": 77 }, { "name": "Compare PDF", - "examples": 29 + "examples": 44 }, { "name": "Conversion", - "examples": 102 + "examples": 150 }, { "name": "Document", - "examples": 117 + "examples": 175 }, { "name": "Facades AcroForms", - "examples": 41 + "examples": 59 }, { "name": "Facades annotations", - "examples": 106 + "examples": 155 }, { "name": "Facades bookmarks", - "examples": 35 + "examples": 48 }, { "name": "Facades convert documents", - "examples": 36 + "examples": 51 }, { "name": "Facades documents", - "examples": 101 + "examples": 153 }, { "name": "Facades edit document", - "examples": 213 + "examples": 328 }, { "name": "Facades extract images and text", - "examples": 83 + "examples": 125 }, { "name": "Facades fill forms", - "examples": 35 + "examples": 61 }, { "name": "Facades forms", - "examples": 85 + "examples": 132 }, { "name": "Facades metadata", - "examples": 40 + "examples": 58 }, { "name": "Facades pages", - "examples": 117 + "examples": 185 }, { "name": "Facades secure documents", - "examples": 38 + "examples": 59 }, { "name": "Facades sign documents", - "examples": 35 + "examples": 61 }, { "name": "Facades stamps", - "examples": 48 + "examples": 82 }, { "name": "Facades texts and images", - "examples": 28 + "examples": 45 }, { "name": "Facades XMP metadata", - "examples": 44 + "examples": 72 }, { "name": "Graphs ZUGFeRD operators", - "examples": 82 + "examples": 124 }, { "name": "Pages", - "examples": 100 + "examples": 133 }, { "name": "Parse PDF", - "examples": 63 + "examples": 97 }, { "name": "Securing and signing PDF", - "examples": 78 + "examples": 116 }, { "name": "Stamping", - "examples": 50 + "examples": 72 }, { "name": "Uncategorized", @@ -142,41 +142,41 @@ }, { "name": "Working with annotations", - "examples": 156 + "examples": 216 }, { "name": "Working with attachments", - "examples": 50 + "examples": 69 }, { "name": "Working with forms", - "examples": 230 + "examples": 358 }, { "name": "Working with graphs", - "examples": 77 + "examples": 129 }, { "name": "Working with images", - "examples": 72 + "examples": 105 }, { "name": "Working with tables", - "examples": 96 + "examples": 153 }, { "name": "Working with text", - "examples": 73 + "examples": 114 }, { "name": "Working with XML", - "examples": 73 + "examples": 121 } ], "product": { "name": "Aspose.PDF for .NET", "nuget_package": "Aspose.PDF", - "nuget_version": "26.7.0", + "nuget_version": "26.8.0", "target_framework": "net10.0" }, "links": { diff --git a/.well-known/ai-plugin.json b/.well-known/ai-plugin.json index ca79a06d5..d9b1f7c39 100644 --- a/.well-known/ai-plugin.json +++ b/.well-known/ai-plugin.json @@ -2,8 +2,8 @@ "schema_version": "v1", "name_for_human": "Aspose.PDF for .NET Examples", "name_for_model": "aspose_pdf_net_examples", - "description_for_human": "AI-generated, compile-validated C# examples for Aspose.PDF for .NET 26.7.0. Browse 2,636 verified examples across 35 categories.", - "description_for_model": "Aspose.PDF for .NET code-example provider. Use this plugin to look up working, compile-validated C# code samples for Aspose.PDF for .NET 26.7.0. Categories: PDF creation, conversion, editing, annotations, forms, digital signatures, text extraction, and more. Every example is a standalone `dotnet new console` file that builds and runs against the Aspose.PDF NuGet 26.7.0 on target framework net10.0. When answering user questions about Aspose.PDF, cite the closest matching example by category + filename.", + "description_for_human": "AI-generated, compile-validated C# examples for Aspose.PDF for .NET 26.8.0. Browse 3,998 verified examples across 35 categories.", + "description_for_model": "Aspose.PDF for .NET code-example provider. Use this plugin to look up working, compile-validated C# code samples for Aspose.PDF for .NET 26.8.0. Categories: PDF creation, conversion, editing, annotations, forms, digital signatures, text extraction, and more. Every example is a standalone `dotnet new console` file that builds and runs against the Aspose.PDF NuGet 26.8.0 on target framework net10.0. When answering user questions about Aspose.PDF, cite the closest matching example by category + filename.", "auth": { "type": "none" }, diff --git a/AGENTS.md b/AGENTS.md index ff5380158..596aa92e9 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -3,7 +3,7 @@ name: aspose-pdf-examples description: AI-friendly C# code examples for Aspose.PDF for .NET language: csharp framework: net10.0 -package: Aspose.PDF 26.7.0 +package: Aspose.PDF 26.8.0 --- # Aspose.PDF for .NET Examples @@ -21,116 +21,116 @@ When working in this repository: ## Repository Overview -This repository contains **2636** working code examples demonstrating Aspose.PDF for .NET capabilities. +This repository contains **3998** working code examples demonstrating Aspose.PDF for .NET capabilities. -**Statistics** (as of 2026-07-21): -- Total Examples: 2636 +**Statistics** (as of 2026-09-10): +- Total Examples: 3998 - Categories: 35 ## Category Details ### accessibility-and-tagged-pdfs -- Examples: 45 +- Examples: 70 - Guide: [AGENTS.md](./accessibility-and-tagged-pdfs/AGENTS.md) ### basic-operations -- Examples: 57 +- Examples: 77 - Guide: [AGENTS.md](./basic-operations/AGENTS.md) ### compare-pdf -- Examples: 29 +- Examples: 44 - Guide: [AGENTS.md](./compare-pdf/AGENTS.md) ### conversion -- Examples: 102 +- Examples: 150 - Guide: [AGENTS.md](./conversion/AGENTS.md) ### document -- Examples: 117 +- Examples: 175 - Guide: [AGENTS.md](./document/AGENTS.md) ### facades-acroforms -- Examples: 41 +- Examples: 59 - Guide: [AGENTS.md](./facades-acroforms/AGENTS.md) ### facades-annotations -- Examples: 106 +- Examples: 155 - Guide: [AGENTS.md](./facades-annotations/AGENTS.md) ### facades-bookmarks -- Examples: 35 +- Examples: 48 - Guide: [AGENTS.md](./facades-bookmarks/AGENTS.md) ### facades-convert-documents -- Examples: 36 +- Examples: 51 - Guide: [AGENTS.md](./facades-convert-documents/AGENTS.md) ### facades-documents -- Examples: 101 +- Examples: 153 - Guide: [AGENTS.md](./facades-documents/AGENTS.md) ### facades-edit-document -- Examples: 213 +- Examples: 328 - Guide: [AGENTS.md](./facades-edit-document/AGENTS.md) ### facades-extract-images-and-text -- Examples: 83 +- Examples: 125 - Guide: [AGENTS.md](./facades-extract-images-and-text/AGENTS.md) ### facades-fill-forms -- Examples: 35 +- Examples: 61 - Guide: [AGENTS.md](./facades-fill-forms/AGENTS.md) ### facades-forms -- Examples: 85 +- Examples: 132 - Guide: [AGENTS.md](./facades-forms/AGENTS.md) ### facades-metadata -- Examples: 40 +- Examples: 58 - Guide: [AGENTS.md](./facades-metadata/AGENTS.md) ### facades-pages -- Examples: 117 +- Examples: 185 - Guide: [AGENTS.md](./facades-pages/AGENTS.md) ### facades-secure-documents -- Examples: 38 +- Examples: 59 - Guide: [AGENTS.md](./facades-secure-documents/AGENTS.md) ### facades-sign-documents -- Examples: 35 +- Examples: 61 - Guide: [AGENTS.md](./facades-sign-documents/AGENTS.md) ### facades-stamps -- Examples: 48 +- Examples: 82 - Guide: [AGENTS.md](./facades-stamps/AGENTS.md) ### facades-texts-and-images -- Examples: 28 +- Examples: 45 - Guide: [AGENTS.md](./facades-texts-and-images/AGENTS.md) ### facades-xmp-metadata -- Examples: 44 +- Examples: 72 - Guide: [AGENTS.md](./facades-xmp-metadata/AGENTS.md) ### graphs-zugferd-operators -- Examples: 82 +- Examples: 124 - Guide: [AGENTS.md](./graphs-zugferd-operators/AGENTS.md) ### pages -- Examples: 100 +- Examples: 133 - Guide: [AGENTS.md](./pages/AGENTS.md) ### parse-pdf -- Examples: 63 +- Examples: 97 - Guide: [AGENTS.md](./parse-pdf/AGENTS.md) ### securing-and-signing-pdf -- Examples: 78 +- Examples: 116 - Guide: [AGENTS.md](./securing-and-signing-pdf/AGENTS.md) ### stamping -- Examples: 50 +- Examples: 72 - Guide: [AGENTS.md](./stamping/AGENTS.md) ### uncategorized @@ -138,35 +138,35 @@ This repository contains **2636** working code examples demonstrating Aspose.PDF - Guide: [AGENTS.md](./uncategorized/AGENTS.md) ### working-with-annotations -- Examples: 156 +- Examples: 216 - Guide: [AGENTS.md](./working-with-annotations/AGENTS.md) ### working-with-attachments -- Examples: 50 +- Examples: 69 - Guide: [AGENTS.md](./working-with-attachments/AGENTS.md) ### working-with-forms -- Examples: 230 +- Examples: 358 - Guide: [AGENTS.md](./working-with-forms/AGENTS.md) ### working-with-graphs -- Examples: 77 +- Examples: 129 - Guide: [AGENTS.md](./working-with-graphs/AGENTS.md) ### working-with-images -- Examples: 72 +- Examples: 105 - Guide: [AGENTS.md](./working-with-images/AGENTS.md) ### working-with-tables -- Examples: 96 +- Examples: 153 - Guide: [AGENTS.md](./working-with-tables/AGENTS.md) ### working-with-text -- Examples: 73 +- Examples: 114 - Guide: [AGENTS.md](./working-with-text/AGENTS.md) ### working-with-xml -- Examples: 73 +- Examples: 121 - Guide: [AGENTS.md](./working-with-xml/AGENTS.md) ## Contribution Workflow @@ -484,7 +484,7 @@ Cross-cutting rules and API-specific gotchas. dotnet new console -n ExampleProject --framework net10.0 # Add Aspose.PDF NuGet package -dotnet add package Aspose.PDF --version 26.7.0 +dotnet add package Aspose.PDF --version 26.8.0 # Build dotnet build --configuration Release --verbosity minimal @@ -501,14 +501,14 @@ dotnet run net10.0 - + ``` ### Environment - .NET SDK: 10.0 or higher -- NuGet: Aspose.PDF 26.7.0 +- NuGet: Aspose.PDF 26.8.0 - All examples are standalone Console Applications - Each `.cs` file can be compiled and run independently @@ -547,7 +547,7 @@ dotnet run ### Prerequisites - .NET SDK (10.0 or higher) -- Aspose.PDF for .NET (26.7.0 or higher) +- Aspose.PDF for .NET (26.8.0 or higher) - NuGet package restore enabled ### Running an Example @@ -560,9 +560,9 @@ dotnet run ``` -Updated: 2026-07-21 | Run: `20260721_051355_c74604` | Examples: 2636 | Categories: 35 +Updated: 2026-09-10 | Run: `20260910_054408_87a7f4` | Examples: 3998 | Categories: 35 --- -*Maintained by an [agentic example generation workflow](https://metrics.aspose.com/agents/sections/examples) | For AI-friendly guidance, see [AGENTS.md](./AGENTS.md) | Last updated: 2026-07-21* +*Maintained by an [agentic example generation workflow](https://metrics.aspose.com/agents/sections/examples) | For AI-friendly guidance, see [AGENTS.md](./AGENTS.md) | Last updated: 2026-09-10* diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 17c9c3c1c..370aa7112 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -34,7 +34,7 @@ mkdir -p /tmp/aspose-validate cd /tmp/aspose-validate dotnet new console --framework net10.0 cp /path/to/your-example.cs Program.cs -dotnet add package Aspose.PDF --version 26.7.0 +dotnet add package Aspose.PDF --version 26.8.0 dotnet build --nologo /p:WarningLevel=0 dotnet run --no-build || true # runtime failure on missing input is OK ``` diff --git a/README.md b/README.md index c7051d985..986981531 100644 --- a/README.md +++ b/README.md @@ -8,11 +8,11 @@ This repository provides working code examples demonstrating Aspose.PDF for .NET | Metric | Value | |--------|-------| -| Total examples | 2636 | +| Total examples | 3998 | | Categories | 35 | | Target framework | net10.0 | -| Aspose.PDF version | 26.7.0 | -| Last updated | 2026-07-21 | +| Aspose.PDF version | 26.8.0 | +| Last updated | 2026-09-10 | ## For AI Coding Agents @@ -20,48 +20,48 @@ This repository is structured for direct use by AI coding agents and LLM-powered - **[`AGENTS.md`](./AGENTS.md)** — root-level guide covering API surface, anti-patterns, and category tips - **Per-category `AGENTS.md`** — targeted guidance inside each category folder -- **[`index.json`](./index.json)** — machine-readable manifest of all 2636 examples with metadata +- **[`index.json`](./index.json)** — machine-readable manifest of all 3998 examples with metadata - **MCP-compatible** — integrate with any MCP client (Claude Desktop, Cursor, Continue.dev) ## Categories | Category | Examples | Agent Guide | |----------|----------|-------------| -| `accessibility-and-tagged-pdfs` | 45 | [AGENTS.md](./accessibility-and-tagged-pdfs/AGENTS.md) | -| `basic-operations` | 57 | [AGENTS.md](./basic-operations/AGENTS.md) | -| `compare-pdf` | 29 | [AGENTS.md](./compare-pdf/AGENTS.md) | -| `conversion` | 102 | [AGENTS.md](./conversion/AGENTS.md) | -| `document` | 117 | [AGENTS.md](./document/AGENTS.md) | -| `facades-acroforms` | 41 | [AGENTS.md](./facades-acroforms/AGENTS.md) | -| `facades-annotations` | 106 | [AGENTS.md](./facades-annotations/AGENTS.md) | -| `facades-bookmarks` | 35 | [AGENTS.md](./facades-bookmarks/AGENTS.md) | -| `facades-convert-documents` | 36 | [AGENTS.md](./facades-convert-documents/AGENTS.md) | -| `facades-documents` | 101 | [AGENTS.md](./facades-documents/AGENTS.md) | -| `facades-edit-document` | 213 | [AGENTS.md](./facades-edit-document/AGENTS.md) | -| `facades-extract-images-and-text` | 83 | [AGENTS.md](./facades-extract-images-and-text/AGENTS.md) | -| `facades-fill-forms` | 35 | [AGENTS.md](./facades-fill-forms/AGENTS.md) | -| `facades-forms` | 85 | [AGENTS.md](./facades-forms/AGENTS.md) | -| `facades-metadata` | 40 | [AGENTS.md](./facades-metadata/AGENTS.md) | -| `facades-pages` | 117 | [AGENTS.md](./facades-pages/AGENTS.md) | -| `facades-secure-documents` | 38 | [AGENTS.md](./facades-secure-documents/AGENTS.md) | -| `facades-sign-documents` | 35 | [AGENTS.md](./facades-sign-documents/AGENTS.md) | -| `facades-stamps` | 48 | [AGENTS.md](./facades-stamps/AGENTS.md) | -| `facades-texts-and-images` | 28 | [AGENTS.md](./facades-texts-and-images/AGENTS.md) | -| `facades-xmp-metadata` | 44 | [AGENTS.md](./facades-xmp-metadata/AGENTS.md) | -| `graphs-zugferd-operators` | 82 | [AGENTS.md](./graphs-zugferd-operators/AGENTS.md) | -| `pages` | 100 | [AGENTS.md](./pages/AGENTS.md) | -| `parse-pdf` | 63 | [AGENTS.md](./parse-pdf/AGENTS.md) | -| `securing-and-signing-pdf` | 78 | [AGENTS.md](./securing-and-signing-pdf/AGENTS.md) | -| `stamping` | 50 | [AGENTS.md](./stamping/AGENTS.md) | +| `accessibility-and-tagged-pdfs` | 70 | [AGENTS.md](./accessibility-and-tagged-pdfs/AGENTS.md) | +| `basic-operations` | 77 | [AGENTS.md](./basic-operations/AGENTS.md) | +| `compare-pdf` | 44 | [AGENTS.md](./compare-pdf/AGENTS.md) | +| `conversion` | 150 | [AGENTS.md](./conversion/AGENTS.md) | +| `document` | 175 | [AGENTS.md](./document/AGENTS.md) | +| `facades-acroforms` | 59 | [AGENTS.md](./facades-acroforms/AGENTS.md) | +| `facades-annotations` | 155 | [AGENTS.md](./facades-annotations/AGENTS.md) | +| `facades-bookmarks` | 48 | [AGENTS.md](./facades-bookmarks/AGENTS.md) | +| `facades-convert-documents` | 51 | [AGENTS.md](./facades-convert-documents/AGENTS.md) | +| `facades-documents` | 153 | [AGENTS.md](./facades-documents/AGENTS.md) | +| `facades-edit-document` | 328 | [AGENTS.md](./facades-edit-document/AGENTS.md) | +| `facades-extract-images-and-text` | 125 | [AGENTS.md](./facades-extract-images-and-text/AGENTS.md) | +| `facades-fill-forms` | 61 | [AGENTS.md](./facades-fill-forms/AGENTS.md) | +| `facades-forms` | 132 | [AGENTS.md](./facades-forms/AGENTS.md) | +| `facades-metadata` | 58 | [AGENTS.md](./facades-metadata/AGENTS.md) | +| `facades-pages` | 185 | [AGENTS.md](./facades-pages/AGENTS.md) | +| `facades-secure-documents` | 59 | [AGENTS.md](./facades-secure-documents/AGENTS.md) | +| `facades-sign-documents` | 61 | [AGENTS.md](./facades-sign-documents/AGENTS.md) | +| `facades-stamps` | 82 | [AGENTS.md](./facades-stamps/AGENTS.md) | +| `facades-texts-and-images` | 45 | [AGENTS.md](./facades-texts-and-images/AGENTS.md) | +| `facades-xmp-metadata` | 72 | [AGENTS.md](./facades-xmp-metadata/AGENTS.md) | +| `graphs-zugferd-operators` | 124 | [AGENTS.md](./graphs-zugferd-operators/AGENTS.md) | +| `pages` | 133 | [AGENTS.md](./pages/AGENTS.md) | +| `parse-pdf` | 97 | [AGENTS.md](./parse-pdf/AGENTS.md) | +| `securing-and-signing-pdf` | 116 | [AGENTS.md](./securing-and-signing-pdf/AGENTS.md) | +| `stamping` | 72 | [AGENTS.md](./stamping/AGENTS.md) | | `uncategorized` | 1 | [AGENTS.md](./uncategorized/AGENTS.md) | -| `working-with-annotations` | 156 | [AGENTS.md](./working-with-annotations/AGENTS.md) | -| `working-with-attachments` | 50 | [AGENTS.md](./working-with-attachments/AGENTS.md) | -| `working-with-forms` | 230 | [AGENTS.md](./working-with-forms/AGENTS.md) | -| `working-with-graphs` | 77 | [AGENTS.md](./working-with-graphs/AGENTS.md) | -| `working-with-images` | 72 | [AGENTS.md](./working-with-images/AGENTS.md) | -| `working-with-tables` | 96 | [AGENTS.md](./working-with-tables/AGENTS.md) | -| `working-with-text` | 73 | [AGENTS.md](./working-with-text/AGENTS.md) | -| `working-with-xml` | 73 | [AGENTS.md](./working-with-xml/AGENTS.md) | +| `working-with-annotations` | 216 | [AGENTS.md](./working-with-annotations/AGENTS.md) | +| `working-with-attachments` | 69 | [AGENTS.md](./working-with-attachments/AGENTS.md) | +| `working-with-forms` | 358 | [AGENTS.md](./working-with-forms/AGENTS.md) | +| `working-with-graphs` | 129 | [AGENTS.md](./working-with-graphs/AGENTS.md) | +| `working-with-images` | 105 | [AGENTS.md](./working-with-images/AGENTS.md) | +| `working-with-tables` | 153 | [AGENTS.md](./working-with-tables/AGENTS.md) | +| `working-with-text` | 114 | [AGENTS.md](./working-with-text/AGENTS.md) | +| `working-with-xml` | 121 | [AGENTS.md](./working-with-xml/AGENTS.md) | Each category contains standalone `.cs` files that can be compiled and run independently. @@ -119,7 +119,7 @@ The library runs in evaluation mode without a license (with page-count and colle ### Prerequisites - .NET SDK (net10.0 or compatible version) -- Aspose.PDF for .NET NuGet package (26.7.0) +- Aspose.PDF for .NET NuGet package (26.8.0) - Valid Aspose license (for production use) ### Running Examples @@ -130,7 +130,7 @@ Each example is a self-contained C# file. To run an example: cd dotnet new console -o ExampleProject cd ExampleProject -dotnet add package Aspose.PDF --version 26.7.0 +dotnet add package Aspose.PDF --version 26.8.0 # Copy the example .cs file as Program.cs dotnet run ``` @@ -209,4 +209,4 @@ All examples use [Aspose.PDF for .NET](https://products.aspose.com/pdf/net/) and --- -*Maintained by an [agentic example generation workflow](https://metrics.aspose.com/agents/sections/examples) | For AI-friendly guidance, see [AGENTS.md](./AGENTS.md) | Last updated: 2026-07-21* +*Maintained by an [agentic example generation workflow](https://metrics.aspose.com/agents/sections/examples) | For AI-friendly guidance, see [AGENTS.md](./AGENTS.md) | Last updated: 2026-09-10* diff --git a/SECURITY.md b/SECURITY.md index dba98304f..0bfb65100 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -8,8 +8,8 @@ shipped in this repository: | Version | Supported | |-----------|-------------------| -| 26.7.0 | :white_check_mark: | -| < 26.7.0 | :x: | +| 26.8.0 | :white_check_mark: | +| < 26.8.0 | :x: | Only the latest published Aspose.PDF NuGet is tracked for issues that originate in these examples. For vulnerabilities in the Aspose.PDF for diff --git a/accessibility-and-tagged-pdfs/AGENTS.md b/accessibility-and-tagged-pdfs/AGENTS.md index 6442848e1..a2ff6fc50 100644 --- a/accessibility-and-tagged-pdfs/AGENTS.md +++ b/accessibility-and-tagged-pdfs/AGENTS.md @@ -8,7 +8,7 @@ parent: ../agents.md # AGENTS - accessibility-and-tagged-pdfs -> **Accessibility and tagged PDFs** in PDF using C# / .NET -- **45** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. +> **Accessibility and tagged PDFs** in PDF using C# / .NET -- **70** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. ## Persona @@ -23,19 +23,19 @@ See the root [agents.md](../agents.md) for repository-wide conventions and bound ## Required Namespaces -- `using Aspose.Pdf;` (43/45 files) ← category-specific -- `using Aspose.Pdf.LogicalStructure;` (34/45 files) ← category-specific -- `using Aspose.Pdf.Tagged;` (34/45 files) ← category-specific -- `using Aspose.Pdf.Text;` (5/45 files) -- `using Aspose.Pdf.Forms;` (2/45 files) -- `using Aspose.Pdf.Annotations;` (1/45 files) -- `using System;` (45/45 files) -- `using System.IO;` (44/45 files) -- `using System.Collections.Generic;` (6/45 files) -- `using System.Text.Json;` (2/45 files) -- `using System.Xml.Linq;` (2/45 files) -- `using System.Xml;` (1/45 files) -- `using System.Xml.Xsl;` (1/45 files) +- `using Aspose.Pdf;` (43/70 files) ← category-specific +- `using Aspose.Pdf.LogicalStructure;` (34/70 files) +- `using Aspose.Pdf.Tagged;` (34/70 files) +- `using Aspose.Pdf.Text;` (5/70 files) +- `using Aspose.Pdf.Forms;` (2/70 files) +- `using Aspose.Pdf.Annotations;` (1/70 files) +- `using System;` (45/70 files) +- `using System.IO;` (44/70 files) +- `using System.Collections.Generic;` (6/70 files) +- `using System.Text.Json;` (2/70 files) +- `using System.Xml.Linq;` (2/70 files) +- `using System.Xml;` (1/70 files) +- `using System.Xml.Xsl;` (1/70 files) ## Common Code Pattern @@ -55,38 +55,38 @@ using (Document doc = new Document("input.pdf")) |------|-------|----------|-------------| | [add-actualtext-to-images](./add-actualtext-to-images.cs) | Add ActualText to Images for PDF Accessibility | `Document`, `ITaggedContent`, `StructureElement` | Demonstrates how to attach an ActualText attribute to each image in a PDF using Aspose.Pdf's tagg... | | [add-caption-note-to-figure](./add-caption-note-to-figure.cs) | Add Caption Note to Figure in Tagged PDF | `Document`, `ITaggedContent`, `FigureElement` | Demonstrates how to create a Figure element and attach a Note element as a caption within a tagge... | +| [add-custom-cell-tags-and-validate-pdf](./add-custom-cell-tags-and-validate-pdf.cs) | Add custom cell tags and validate pdf | | Add custom cell tags and validate pdf | | [add-custom-tag-to-paragraph](./add-custom-tag-to-paragraph.cs) | Add Custom Tag to Paragraph in Tagged PDF | `Document`, `ITaggedContent`, `StructureElement` | Demonstrates how to create a tagged PDF, add a paragraph element, assign a custom tag name, and s... | | [add-external-link-with-title-to-tagged-pdf](./add-external-link-with-title-to-tagged-pdf.cs) | Add External Link with Title to a Tagged PDF | `Document`, `ITaggedContent`, `LinkElement` | Demonstrates how to insert a clickable external URL into a PDF's tagged structure and set its Tit... | +| [add-internal-link-element-to-tagged-pdf](./add-internal-link-element-to-tagged-pdf.cs) | Add internal link element to tagged pdf | | Add internal link element to tagged pdf | | [add-internal-page-link-to-tagged-pdf](./add-internal-page-link-to-tagged-pdf.cs) | Add Internal Page Link to Tagged PDF | `Document`, `ITaggedContent`, `LinkElement` | Demonstrates how to create a /Link element in a tagged PDF that points to an internal page using ... | +| [add-missing-language-attributes-to-pdf-structure](./add-missing-language-attributes-to-pdf-structure.cs) | Add missing language attributes to pdf structure | | Add missing language attributes to pdf structure | | [add-note-element-to-paragraph](./add-note-element-to-paragraph.cs) | Add Note Element to Paragraph in Tagged PDF | `Document`, `ITaggedContent`, `StructureElement` | Demonstrates how to create a note (footnote/endnote) element and attach it as a child of a paragr... | | [add-page-break-to-tagged-pdf](./add-page-break-to-tagged-pdf.cs) | Add Page Break Element to Tagged PDF | `Document`, `ITaggedContent`, `StructureElement` | Demonstrates how to insert a page‑break element into the logical structure tree of a tagged PDF u... | | [add-placeholder-textbox-form-field-tagged](./add-placeholder-textbox-form-field-tagged.cs) | Add Placeholder TextBox Form Field with Tagged Structure | `Document`, `TextBoxField`, `Rectangle` | Loads an existing PDF, inserts a TextBox form field with placeholder text, creates a /Form logica... | +| [add-tagged-form-field-with-placeholder](./add-tagged-form-field-with-placeholder.cs) | Add tagged form field with placeholder | | Add tagged form field with placeholder | +| [add-tagged-table-to-pdf](./add-tagged-table-to-pdf.cs) | Add tagged table to pdf | | Add tagged table to pdf | | [add-textbox-form-field-tagged-pdf](./add-textbox-form-field-tagged-pdf.cs) | Add TextBox Form Field and Tag It for Accessibility | `Document`, `Form`, `TextBoxField` | Demonstrates how to create a TextBox form field, register it in the AcroForm, and associate it wi... | | [append-paragraph-actualtext-to-toci](./append-paragraph-actualtext-to-toci.cs) | Append Paragraph with ActualText to a TOCI Element | `Document`, `ITaggedContent`, `StructureElement` | Demonstrates how to create a TOCI (Table of Contents Item) element in a tagged PDF, add a paragra... | +| [apply-custom-row-borders-to-pdf-table](./apply-custom-row-borders-to-pdf-table.cs) | Apply custom row borders to pdf table | | Apply custom row borders to pdf table | | [batch-convert-pdfs-to-tagged-pdfa](./batch-convert-pdfs-to-tagged-pdfa.cs) | Batch Convert PDFs to Tagged PDF/A with Auto‑Tagging | `Document`, `AutoTaggingSettings`, `PdfFormatConversionOptions` | Demonstrates how to process a folder of untagged PDFs, enable Aspose.Pdf auto‑tagging, convert ea... | +| [batch-convert-untagged-pdfs-to-tagged](./batch-convert-untagged-pdfs-to-tagged.cs) | Batch convert untagged pdfs to tagged | | Batch convert untagged pdfs to tagged | +| [batch-pdf-validation-dashboard](./batch-pdf-validation-dashboard.cs) | Batch pdf validation dashboard | | Batch pdf validation dashboard | | [batch-pdfa1b-validation-xml-logs-dashboard](./batch-pdfa1b-validation-xml-logs-dashboard.cs) | Batch PDF/A-1B Validation with XML Logs and Compliance Dashb... | `Document`, `Validate`, `PdfFormat` | The example loads all PDF files in a folder, validates each against the PDF/A‑1B standard using A... | +| [batch-tag-pdfs-in-folder](./batch-tag-pdfs-in-folder.cs) | Batch tag pdfs in folder | | Batch tag pdfs in folder | | [batch-tag-pdfs-with-suffix](./batch-tag-pdfs-with-suffix.cs) | Batch Tag PDFs and Save with Suffix | `Document`, `AutoTaggingSettings`, `ITaggedContent` | Demonstrates how to process a folder of PDF files, enable automatic tagging, add missing structur... | | [batch-validate-pdfs-summary-csv](./batch-validate-pdfs-summary-csv.cs) | Batch Validate PDFs and Generate Summary CSV | `Document`, `PdfFormat`, `Validate` | Demonstrates how to iterate through a folder of PDF files, validate each against PDF/A‑1B using A... | +| [batch-validate-pdfs-xml-logs-summary-csv](./batch-validate-pdfs-xml-logs-summary-csv.cs) | Batch validate pdfs xml logs summary csv | | Batch validate pdfs xml logs summary csv | +| [check-pdf-ua-compliance-and-log-result](./check-pdf-ua-compliance-and-log-result.cs) | Check pdf ua compliance and log result | | Check pdf ua compliance and log result | | [check-pdf-ua-compliance-and-log](./check-pdf-ua-compliance-and-log.cs) | Check PDF/UA Compliance and Log Result | `Document`, `IsPdfUaCompliant` | Demonstrates loading a PDF with Aspose.Pdf, checking its PDF/UA accessibility compliance, and app... | +| [convert-pdf-to-pdf-ua-with-auto-tagging](./convert-pdf-to-pdf-ua-with-auto-tagging.cs) | Convert pdf to pdf ua with auto tagging | | Convert pdf to pdf ua with auto tagging | +| [create-merged-table-header-tagged-pdf](./create-merged-table-header-tagged-pdf.cs) | Create merged table header tagged pdf | | Create merged table header tagged pdf | | [create-nested-bullet-numbered-lists-tagged-pdf](./create-nested-bullet-numbered-lists-tagged-pdf.cs) | Create Nested Bullet and Numbered Lists in a Tagged PDF | `Document`, `Page`, `TextFragment` | Demonstrates how to build a PDF containing a top‑level bullet list and a numbered list with a nes... | -| [create-pdf-with-heading-and-language](./create-pdf-with-heading-and-language.cs) | Create PDF with Heading Element and Language Attribute | `Document`, `ITaggedContent`, `SetLanguage` | Demonstrates how to create a new PDF, enable tagged content, set the document language, add a lev... | -| [create-tagged-3x4-table-in-pdf](./create-tagged-3x4-table-in-pdf.cs) | Create Tagged 3x4 Table in PDF | `Document`, `ITaggedContent`, `TableElement` | Demonstrates how to use Aspose.Pdf's Tagged Content API to add a 3‑row by 4‑column table with alt... | -| [create-tagged-pdf-table-with-merged-header](./create-tagged-pdf-table-with-merged-header.cs) | Create Tagged PDF Table with Merged Header Cells | `Document`, `ITaggedContent`, `StructureElement` | Demonstrates how to tag a PDF table, add a header row with merged cells, assign the TH role, and ... | -| [create-tagged-pdf-with-toc](./create-tagged-pdf-with-toc.cs) | Create Tagged PDF with Table of Contents | `Document`, `ITaggedContent`, `HeaderElement` | Demonstrates how to generate a PDF, add tagged headings, configure a dedicated Table of Contents ... | -| [create-tagged-table-with-custom-tags](./create-tagged-table-with-custom-tags.cs) | Create Tagged Table with Custom DataType Tags and Validate P... | `Document`, `ITaggedContent`, `StructureElement` | The example loads a PDF, builds a tagged table structure, assigns custom data‑type tags to indivi... | -| [custom-table-cell-borders-by-row-index](./custom-table-cell-borders-by-row-index.cs) | Custom Table Cell Borders by Row Index | `Document`, `Page`, `Table` | Shows how to create a PDF table with Aspose.Pdf and apply different background colors (as a visua... | -| [enable-auto-tagging-save-tagged-pdf](./enable-auto-tagging-save-tagged-pdf.cs) | Enable Automatic Tagging and Save PDF as Tagged PDF | `Document`, `AutoTaggingSettings`, `ITaggedContent` | Demonstrates how to activate Aspose.Pdf's auto‑tagging feature, set basic language and title meta... | -| [export-pdf-structure-tree-to-json](./export-pdf-structure-tree-to-json.cs) | Export PDF Structure Tree to JSON | `Document`, `ITaggedContent`, `StructureElement` | Shows how to load a PDF, read its tagged logical structure with Aspose.Pdf, convert the hierarchy... | -| [export-structure-tree-to-xml-xsl-report](./export-structure-tree-to-xml-xsl-report.cs) | Export PDF Structure Tree to XML and Generate Report via XSL... | `Document`, `Save`, `XmlSaveOptions` | Loads a PDF with Aspose.Pdf, exports its logical structure tree to an XML file using XmlSaveOptio... | -| [export-tagged-pdf-content-to-json](./export-tagged-pdf-content-to-json.cs) | Export Tagged PDF Content to JSON | `Document`, `ITaggedContent`, `StructureElement` | Shows how to read a PDF's tagged structure with Aspose.Pdf, build a hierarchical representation, ... | -| [extract-notes-from-tagged-pdf](./extract-notes-from-tagged-pdf.cs) | Extract Notes from Tagged PDF to Text File | `Document`, `ITaggedContent`, `StructureElement` | Loads a PDF, accesses its tagged content, finds all NoteElement objects, concatenates their Actua... | -| [extract-pdf-links-to-csv](./extract-pdf-links-to-csv.cs) | Extract PDF Links to CSV | `Document`, `Page`, `Annotation` | Demonstrates how to load a PDF with Aspose.Pdf, iterate through its pages and link annotations, e... | -| [extract-text-from-tagged-pdf-structure](./extract-text-from-tagged-pdf-structure.cs) | Extract Text from Tagged PDF Structure Tree | `Document`, `ITaggedContent`, `StructureElement` | Demonstrates how to load a PDF, access its tagged content, and recursively traverse the logical s... | -| [filter-xml-missing-alt-text](./filter-xml-missing-alt-text.cs) | Filter XML Errors for Missing Alt Text | | Shows how to load an XML validation report, query for errors of type "MissingAltText", and output... | -| ... | | | *and 15 more files* | +| [create-nested-table-in-paragraph](./create-nested-table-in-paragraph.cs) | Create nested table in paragraph | | Create nested table in paragraph | +| ... | | | *and 40 more files* | ## Category Statistics -- Total examples: 45 +- Total examples: 70 ## Category-Specific Tips @@ -130,5 +130,5 @@ using (Document doc = new Document("input.pdf")) - Review code examples in this folder for accessibility-and-tagged-pdfs patterns -Updated: 2026-08-20 | Run: `20260820_001147_12d7b3` +Updated: 2026-09-10 | Run: `20260910_054408_87a7f4` diff --git a/accessibility-and-tagged-pdfs/README.md b/accessibility-and-tagged-pdfs/README.md new file mode 100644 index 000000000..9f7b0fded --- /dev/null +++ b/accessibility-and-tagged-pdfs/README.md @@ -0,0 +1,89 @@ +# Accessibility and tagged PDFs + +> **Accessibility and tagged PDFs** in PDF using C# / .NET -- **70** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. + +- Category: `accessibility-and-tagged-pdfs` +- Examples: 70 +- NuGet: `Aspose.PDF 26.8.0` -- target `net10.0` + +## Examples + +- [`add-actualtext-to-images.cs`](./add-actualtext-to-images.cs) -- Add actualtext to images +- [`add-caption-note-to-figure.cs`](./add-caption-note-to-figure.cs) -- Add caption note to figure +- [`add-custom-cell-tags-and-validate-pdf.cs`](./add-custom-cell-tags-and-validate-pdf.cs) -- Add custom cell tags and validate pdf +- [`add-custom-tag-to-paragraph.cs`](./add-custom-tag-to-paragraph.cs) -- Add custom tag to paragraph +- [`add-external-link-with-title-to-tagged-pdf.cs`](./add-external-link-with-title-to-tagged-pdf.cs) -- Add external link with title to tagged pdf +- [`add-internal-link-element-to-tagged-pdf.cs`](./add-internal-link-element-to-tagged-pdf.cs) -- Add internal link element to tagged pdf +- [`add-internal-page-link-to-tagged-pdf.cs`](./add-internal-page-link-to-tagged-pdf.cs) -- Add internal page link to tagged pdf +- [`add-missing-language-attributes-to-pdf-structure.cs`](./add-missing-language-attributes-to-pdf-structure.cs) -- Add missing language attributes to pdf structure +- [`add-note-element-to-paragraph.cs`](./add-note-element-to-paragraph.cs) -- Add note element to paragraph +- [`add-page-break-to-tagged-pdf.cs`](./add-page-break-to-tagged-pdf.cs) -- Add page break to tagged pdf +- [`add-placeholder-textbox-form-field-tagged.cs`](./add-placeholder-textbox-form-field-tagged.cs) -- Add placeholder textbox form field tagged +- [`add-tagged-form-field-with-placeholder.cs`](./add-tagged-form-field-with-placeholder.cs) -- Add tagged form field with placeholder +- [`add-tagged-table-to-pdf.cs`](./add-tagged-table-to-pdf.cs) -- Add tagged table to pdf +- [`add-textbox-form-field-tagged-pdf.cs`](./add-textbox-form-field-tagged-pdf.cs) -- Add textbox form field tagged pdf +- [`append-paragraph-actualtext-to-toci.cs`](./append-paragraph-actualtext-to-toci.cs) -- Append paragraph actualtext to toci +- [`apply-custom-row-borders-to-pdf-table.cs`](./apply-custom-row-borders-to-pdf-table.cs) -- Apply custom row borders to pdf table +- [`batch-convert-pdfs-to-tagged-pdfa.cs`](./batch-convert-pdfs-to-tagged-pdfa.cs) -- Batch convert pdfs to tagged pdfa +- [`batch-convert-untagged-pdfs-to-tagged.cs`](./batch-convert-untagged-pdfs-to-tagged.cs) -- Batch convert untagged pdfs to tagged +- [`batch-pdf-validation-dashboard.cs`](./batch-pdf-validation-dashboard.cs) -- Batch pdf validation dashboard +- [`batch-pdfa1b-validation-xml-logs-dashboard.cs`](./batch-pdfa1b-validation-xml-logs-dashboard.cs) -- Batch pdfa1b validation xml logs dashboard +- [`batch-tag-pdfs-in-folder.cs`](./batch-tag-pdfs-in-folder.cs) -- Batch tag pdfs in folder +- [`batch-tag-pdfs-with-suffix.cs`](./batch-tag-pdfs-with-suffix.cs) -- Batch tag pdfs with suffix +- [`batch-validate-pdfs-summary-csv.cs`](./batch-validate-pdfs-summary-csv.cs) -- Batch validate pdfs summary csv +- [`batch-validate-pdfs-xml-logs-summary-csv.cs`](./batch-validate-pdfs-xml-logs-summary-csv.cs) -- Batch validate pdfs xml logs summary csv +- [`check-pdf-ua-compliance-and-log-result.cs`](./check-pdf-ua-compliance-and-log-result.cs) -- Check pdf ua compliance and log result +- [`check-pdf-ua-compliance-and-log.cs`](./check-pdf-ua-compliance-and-log.cs) -- Check pdf ua compliance and log +- [`convert-pdf-to-pdf-ua-with-auto-tagging.cs`](./convert-pdf-to-pdf-ua-with-auto-tagging.cs) -- Convert pdf to pdf ua with auto tagging +- [`create-merged-table-header-tagged-pdf.cs`](./create-merged-table-header-tagged-pdf.cs) -- Create merged table header tagged pdf +- [`create-nested-bullet-numbered-lists-tagged-pdf.cs`](./create-nested-bullet-numbered-lists-tagged-pdf.cs) -- Create nested bullet numbered lists tagged pdf +- [`create-nested-table-in-paragraph.cs`](./create-nested-table-in-paragraph.cs) -- Create nested table in paragraph +- [`create-pdf-with-heading-and-language.cs`](./create-pdf-with-heading-and-language.cs) -- Create pdf with heading and language +- [`create-tagged-3x4-table-in-pdf.cs`](./create-tagged-3x4-table-in-pdf.cs) -- Create tagged 3x4 table in pdf +- [`create-tagged-list-in-pdf.cs`](./create-tagged-list-in-pdf.cs) -- Create tagged list in pdf +- [`create-tagged-pdf-table-with-merged-header.cs`](./create-tagged-pdf-table-with-merged-header.cs) -- Create tagged pdf table with merged header +- [`create-tagged-pdf-with-toc.cs`](./create-tagged-pdf-with-toc.cs) -- Create tagged pdf with toc +- [`create-tagged-table-with-custom-tags.cs`](./create-tagged-table-with-custom-tags.cs) -- Create tagged table with custom tags +- [`custom-table-cell-borders-by-row-index.cs`](./custom-table-cell-borders-by-row-index.cs) -- Custom table cell borders by row index +- [`enable-auto-tagging-save-tagged-pdf.cs`](./enable-auto-tagging-save-tagged-pdf.cs) -- Enable auto tagging save tagged pdf +- [`export-pdf-structure-tree-to-json.cs`](./export-pdf-structure-tree-to-json.cs) -- Export pdf structure tree to json +- [`export-pdf-structure-tree-to-xml-xsl-report.cs`](./export-pdf-structure-tree-to-xml-xsl-report.cs) -- Export pdf structure tree to xml xsl report +- [`export-structure-tree-to-xml-xsl-report.cs`](./export-structure-tree-to-xml-xsl-report.cs) -- Export structure tree to xml xsl report +- [`export-tagged-pdf-content-to-json.cs`](./export-tagged-pdf-content-to-json.cs) -- Export tagged pdf content to json +- [`extract-note-elements-to-text.cs`](./extract-note-elements-to-text.cs) -- Extract note elements to text +- [`extract-notes-from-tagged-pdf.cs`](./extract-notes-from-tagged-pdf.cs) -- Extract notes from tagged pdf +- [`extract-pdf-links-to-csv.cs`](./extract-pdf-links-to-csv.cs) -- Extract pdf links to csv +- [`extract-text-from-tagged-pdf-structure.cs`](./extract-text-from-tagged-pdf-structure.cs) -- Extract text from tagged pdf structure +- [`filter-xml-missing-alt-text.cs`](./filter-xml-missing-alt-text.cs) -- Filter xml missing alt text +- [`find-images-missing-alt-text.cs`](./find-images-missing-alt-text.cs) -- Find images missing alt text +- [`iterate-tagged-pdf-structure-elements.cs`](./iterate-tagged-pdf-structure-elements.cs) -- Iterate tagged pdf structure elements +- [`modify-paragraph-actualtext-in-tagged-pdf.cs`](./modify-paragraph-actualtext-in-tagged-pdf.cs) -- Modify paragraph actualtext in tagged pdf +- [`nested-table-in-paragraph-tagged-pdf.cs`](./nested-table-in-paragraph-tagged-pdf.cs) -- Nested table in paragraph tagged pdf +- [`parse-xml-validation-report-summary.cs`](./parse-xml-validation-report-summary.cs) -- Parse xml validation report summary +- [`propagate-language-attribute-to-tagged-pdf.cs`](./propagate-language-attribute-to-tagged-pdf.cs) -- Propagate language attribute to tagged pdf +- [`propagate-language-to-tagged-pdf.cs`](./propagate-language-to-tagged-pdf.cs) -- Propagate language to tagged pdf +- [`replace-note-element-in-tagged-pdf.cs`](./replace-note-element-in-tagged-pdf.cs) -- Replace note element in tagged pdf +- [`replace-note-elements-in-tagged-pdf.cs`](./replace-note-elements-in-tagged-pdf.cs) -- Replace note elements in tagged pdf +- [`set-actualtext-span-pronunciation.cs`](./set-actualtext-span-pronunciation.cs) -- Set actualtext span pronunciation +- [`set-figure-title-in-tagged-pdf.cs`](./set-figure-title-in-tagged-pdf.cs) -- Set figure title in tagged pdf +- [`set-missing-language-attributes.cs`](./set-missing-language-attributes.cs) -- Set missing language attributes +- [`set-paragraph-title-accessibility.cs`](./set-paragraph-title-accessibility.cs) -- Set paragraph title accessibility +- [`set-paragraph-title-in-tagged-pdf.cs`](./set-paragraph-title-in-tagged-pdf.cs) -- Set paragraph title in tagged pdf +- [`set-primary-language-for-tagged-pdf.cs`](./set-primary-language-for-tagged-pdf.cs) -- Set primary language for tagged pdf +- [`set-root-structure-element-title.cs`](./set-root-structure-element-title.cs) -- Set root structure element title +- [`style-table-cells-background-border-padding.cs`](./style-table-cells-background-border-padding.cs) -- Style table cells background border padding +- [`summarize-pdf-validation-errors.cs`](./summarize-pdf-validation-errors.cs) -- Summarize pdf validation errors +- [`update-paragraph-actualtext-in-tagged-pdf.cs`](./update-paragraph-actualtext-in-tagged-pdf.cs) -- Update paragraph actualtext in tagged pdf +- [`update-structure-element-language-french.cs`](./update-structure-element-language-french.cs) -- Update structure element language french +- [`update-tagged-element-language-french.cs`](./update-tagged-element-language-french.cs) -- Update tagged element language french +- [`validate-pdf-ua-compliance-export-xml.cs`](./validate-pdf-ua-compliance-export-xml.cs) -- Validate pdf ua compliance export xml +- [`validate-pdf-ua-compliance-xml-report.cs`](./validate-pdf-ua-compliance-xml-report.cs) -- Validate pdf ua compliance xml report + +## See Also + +- [`AGENTS.md`](./AGENTS.md) -- category-specific anti-patterns, API surface, and conventions for AI coding agents +- [`../AGENTS.md`](../AGENTS.md) -- repository-wide agent guide +- [`../README.md`](../README.md) -- full category index and project overview +- [Aspose.PDF for .NET docs](https://docs.aspose.com/pdf/net/) + +> Each `.cs` file is a standalone, build-validated console example. Drop into a fresh `dotnet new console` project, add the `Aspose.PDF` NuGet (version above), and run. diff --git a/accessibility-and-tagged-pdfs/index.json b/accessibility-and-tagged-pdfs/index.json index 84a455c94..9e7a6de7d 100644 --- a/accessibility-and-tagged-pdfs/index.json +++ b/accessibility-and-tagged-pdfs/index.json @@ -1,126 +1,64 @@ { "category": "accessibility-and-tagged-pdfs", "nuget_version": "26.8.0", - "last_updated": "2026-08-20T07:11:50Z", + "last_updated": "2026-09-10T12:45:08Z", "examples": { - "enable-auto-tagging-save-tagged-pdf": { - "title": "Enable Automatic Tagging and Save PDF as Tagged PDF", - "filename": "enable-auto-tagging-save-tagged-pdf.cs", - "description": "Demonstrates how to activate Aspose.Pdf's auto‑tagging feature, set basic language and title metadata, and save the document as a PDF/UA‑compliant tagged PDF.", + "add-actualtext-to-images": { + "title": "Add ActualText to Images for PDF Accessibility", + "filename": "add-actualtext-to-images.cs", + "description": "Demonstrates how to attach an ActualText attribute to each image in a PDF using Aspose.Pdf's tagged‑content API, enabling screen readers to read alternative text.", "tags": [ - "auto-tagging", - "pdf/ua", - "tagged-pdf", "accessibility", + "actualtext", + "tagged-pdf", + "image", "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Tagged.AutoTaggingSettings", "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.ITaggedContent.SetLanguage", - "Aspose.Pdf.Tagged.ITaggedContent.SetTitle", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Tagged.StructureElement", + "Aspose.Pdf.Tagged.FigureElement", + "Aspose.Pdf.XImage", + "Aspose.Pdf.Tagged.TaggedContent.CreateFigureElement" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:11:50Z", "status": "verified" }, - "create-pdf-with-heading-and-language": { - "title": "Create PDF with Heading Element and Language Attribute", - "filename": "create-pdf-with-heading-and-language.cs", - "description": "Demonstrates how to create a new PDF, enable tagged content, set the document language, add a level‑1 heading element with its own language attribute, and save the file.", + "add-caption-note-to-figure": { + "title": "Add Caption Note to Figure in Tagged PDF", + "filename": "add-caption-note-to-figure.cs", + "description": "Demonstrates how to create a Figure element and attach a Note element as a caption within a tagged PDF using Aspose.Pdf, improving accessibility.", "tags": [ - "pdf", "tagged-pdf", "accessibility", - "heading", - "language" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.ITaggedContent.SetLanguage", - "Aspose.Pdf.Tagged.ITaggedContent.SetTitle", - "Aspose.Pdf.Tagged.ITaggedContent.CreateHeaderElement", - "Aspose.Pdf.LogicalStructure.StructureElement", - "Aspose.Pdf.LogicalStructure.HeaderElement", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:11:50Z", - "status": "verified" - }, - "set-root-structure-element-title": { - "title": "Set Root Structure Element Title in Tagged PDF", - "filename": "set-root-structure-element-title.cs", - "description": "Demonstrates how to load a PDF with Aspose.Pdf, access its tagged content, retrieve the root structure element, assign a document title, and save the updated file.", - "tags": [ - "accessibility", - "tagged-pdf", - "metadata", - "title", - "Aspose.Pdf" + "figure", + "note", + "caption" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.LogicalStructure.StructureElement", - "Aspose.Pdf.StructureElement.Title", + "Aspose.Pdf.Tagged.FigureElement", + "Aspose.Pdf.Tagged.NoteElement", + "Aspose.Pdf.Tagged.StructureElement", + "Aspose.Pdf.Tagged.ITaggedContent.CreateFigureElement", + "Aspose.Pdf.Tagged.ITaggedContent.CreateNoteElement", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:11:50Z", - "status": "verified" - }, - "create-tagged-pdf-with-toc": { - "title": "Create Tagged PDF with Table of Contents", - "filename": "create-tagged-pdf-with-toc.cs", - "description": "Demonstrates how to generate a PDF, add tagged headings, configure a dedicated Table of Contents page, and build the logical TOC structure for accessibility.", - "tags": [ - "tagged-pdf", - "toc", - "accessibility", - "aspose-pdf", - "pdf-structure" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.HeaderElement", - "Aspose.Pdf.Tagged.TOCElement", - "Aspose.Pdf.Tagged.TOCIElement", - "Aspose.Pdf.Tagged.ReferenceElement", - "Aspose.Pdf.Tagged.TocInfo", - "Aspose.Pdf.Text.TextFragment" - ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:11:50Z", "status": "verified" }, - "append-paragraph-actualtext-to-toci": { - "title": "Append Paragraph with ActualText to a TOCI Element", - "filename": "append-paragraph-actualtext-to-toci.cs", - "description": "Demonstrates how to create a TOCI (Table of Contents Item) element in a tagged PDF, add a paragraph child, set its ActualText for screen‑reader accessibility, and save the document.", - "tags": [ - "tagged-pdf", - "accessibility", - "toc", - "actualtext", - "pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.StructureElement", - "Aspose.Pdf.Tagged.TOCIElement", - "Aspose.Pdf.Tagged.ParagraphElement", - "Aspose.Pdf.Tagged.TaggedContent.CreateTOCIElement", - "Aspose.Pdf.Tagged.TaggedContent.CreateParagraphElement", - "Aspose.Pdf.StructureElement.AppendChild" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:11:50Z", + "add-custom-cell-tags-and-validate-pdf": { + "title": "Add Custom Cell Tags And Validate Pdf", + "filename": "add-custom-cell-tags-and-validate-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, "add-custom-tag-to-paragraph": { @@ -170,6 +108,16 @@ "generated_at": "2026-08-20T07:11:50Z", "status": "verified" }, + "add-internal-link-element-to-tagged-pdf": { + "title": "Add Internal Link Element To Tagged Pdf", + "filename": "add-internal-link-element-to-tagged-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "add-internal-page-link-to-tagged-pdf": { "title": "Add Internal Page Link to Tagged PDF", "filename": "add-internal-page-link-to-tagged-pdf.cs", @@ -192,6 +140,16 @@ "generated_at": "2026-08-20T07:11:50Z", "status": "verified" }, + "add-missing-language-attributes-to-pdf-structure": { + "title": "Add Missing Language Attributes To Pdf Structure", + "filename": "add-missing-language-attributes-to-pdf-structure.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "add-note-element-to-paragraph": { "title": "Add Note Element to Paragraph in Tagged PDF", "filename": "add-note-element-to-paragraph.cs", @@ -215,146 +173,364 @@ "generated_at": "2026-08-20T07:11:50Z", "status": "verified" }, - "add-caption-note-to-figure": { - "title": "Add Caption Note to Figure in Tagged PDF", - "filename": "add-caption-note-to-figure.cs", - "description": "Demonstrates how to create a Figure element and attach a Note element as a caption within a tagged PDF using Aspose.Pdf, improving accessibility.", + "add-page-break-to-tagged-pdf": { + "title": "Add Page Break Element to Tagged PDF", + "filename": "add-page-break-to-tagged-pdf.cs", + "description": "Demonstrates how to insert a page‑break element into the logical structure tree of a tagged PDF using Aspose.Pdf's tagged‑content API.", "tags": [ "tagged-pdf", + "page-break", "accessibility", - "figure", - "note", - "caption" + "logical-structure", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.FigureElement", - "Aspose.Pdf.Tagged.NoteElement", "Aspose.Pdf.Tagged.StructureElement", - "Aspose.Pdf.Tagged.ITaggedContent.CreateFigureElement", - "Aspose.Pdf.Tagged.ITaggedContent.CreateNoteElement", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Tagged.ParagraphElement", + "Aspose.Pdf.Tagged.DivElement" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:11:50Z", "status": "verified" }, - "add-actualtext-to-images": { - "title": "Add ActualText to Images for PDF Accessibility", - "filename": "add-actualtext-to-images.cs", - "description": "Demonstrates how to attach an ActualText attribute to each image in a PDF using Aspose.Pdf's tagged‑content API, enabling screen readers to read alternative text.", + "add-placeholder-textbox-form-field-tagged": { + "title": "Add Placeholder TextBox Form Field with Tagged Structure", + "filename": "add-placeholder-textbox-form-field-tagged.cs", + "description": "Loads an existing PDF, inserts a TextBox form field with placeholder text, creates a /Form logical structure element, links the field to the tagged structure, and saves the updated document.", "tags": [ - "accessibility", - "actualtext", + "form-field", + "placeholder", "tagged-pdf", - "image", - "aspnet" + "accessibility", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.StructureElement", - "Aspose.Pdf.Tagged.FigureElement", - "Aspose.Pdf.XImage", - "Aspose.Pdf.Tagged.TaggedContent.CreateFigureElement" + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Tagged.TaggedContent", + "Aspose.Pdf.LogicalStructure.StructureElement", + "Aspose.Pdf.LogicalStructure.FormElement" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:11:50Z", "status": "verified" }, - "set-actualtext-span-pronunciation": { - "title": "Set ActualText on a Span for Pronunciation in Tagged PDF", - "filename": "set-actualtext-span-pronunciation.cs", - "description": "Shows how to create a span element in a tagged PDF, assign visible text, and provide hidden pronunciation text via the ActualText property.", + "add-tagged-form-field-with-placeholder": { + "title": "Add Tagged Form Field With Placeholder", + "filename": "add-tagged-form-field-with-placeholder.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-tagged-table-to-pdf": { + "title": "Add Tagged Table To Pdf", + "filename": "add-tagged-table-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-textbox-form-field-tagged-pdf": { + "title": "Add TextBox Form Field and Tag It for Accessibility", + "filename": "add-textbox-form-field-tagged-pdf.cs", + "description": "Demonstrates how to create a TextBox form field, register it in the AcroForm, and associate it with a Form structure element to produce a tagged PDF with accessibility information using Aspose.Pdf.", "tags": [ - "accessibility", + "form-field", "tagged-pdf", - "actualtext", - "pronunciation", + "accessibility", + "textbox", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.TextBoxField", "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.SpanElement", - "Aspose.Pdf.Tagged.StructureElement", - "Aspose.Pdf.Tagged.ITaggedContent.SetLanguage", - "Aspose.Pdf.Tagged.SpanElement.SetText", - "Aspose.Pdf.Tagged.SpanElement.ActualText", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.LogicalStructure.StructureElement", + "Aspose.Pdf.Tagged.FormElement" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:11:50Z", "status": "verified" }, - "update-tagged-element-language-french": { - "title": "Update Language of a Tagged PDF Structure Element to French", - "filename": "update-tagged-element-language-french.cs", - "description": "Shows how to set the document's default language and modify the language property of a specific tagged structure element in a PDF using Aspose.Pdf.", + "append-paragraph-actualtext-to-toci": { + "title": "Append Paragraph with ActualText to a TOCI Element", + "filename": "append-paragraph-actualtext-to-toci.cs", + "description": "Demonstrates how to create a TOCI (Table of Contents Item) element in a tagged PDF, add a paragraph child, set its ActualText for screen‑reader accessibility, and save the document.", "tags": [ "tagged-pdf", - "language", "accessibility", - "structure", - "Aspose.Pdf" + "toc", + "actualtext", + "pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.ITaggedContent.SetLanguage", - "Aspose.Pdf.LogicalStructure.StructureElement", - "Aspose.Pdf.LogicalStructure.StructureElement.FindElements", - "Aspose.Pdf.LogicalStructure.StructureElement.Language" + "Aspose.Pdf.Tagged.StructureElement", + "Aspose.Pdf.Tagged.TOCIElement", + "Aspose.Pdf.Tagged.ParagraphElement", + "Aspose.Pdf.Tagged.TaggedContent.CreateTOCIElement", + "Aspose.Pdf.Tagged.TaggedContent.CreateParagraphElement", + "Aspose.Pdf.StructureElement.AppendChild" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:11:50Z", "status": "verified" }, - "set-primary-language-for-tagged-pdf": { - "title": "Set Primary Language for a Tagged PDF", - "filename": "set-primary-language-for-tagged-pdf.cs", - "description": "Demonstrates how to add a language attribute to the structure tree of a tagged PDF using Aspose.Pdf, ensuring the document is marked with its primary content language.", + "apply-custom-row-borders-to-pdf-table": { + "title": "Apply Custom Row Borders To Pdf Table", + "filename": "apply-custom-row-borders-to-pdf-table.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "batch-convert-pdfs-to-tagged-pdfa": { + "title": "Batch Convert PDFs to Tagged PDF/A with Auto‑Tagging", + "filename": "batch-convert-pdfs-to-tagged-pdfa.cs", + "description": "Demonstrates how to process a folder of untagged PDFs, enable Aspose.Pdf auto‑tagging, convert each document to a tagged PDF/A format, and save the results to a separate output directory.", "tags": [ "pdf", + "auto-tagging", + "batch", "accessibility", - "language", - "tagged-pdf", - "aspose" + "pdfa" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.ITaggedContent.SetLanguage", - "Aspose.Pdf.LogicalStructure.StructureElement", + "Aspose.Pdf.AutoTaggingSettings", + "Aspose.Pdf.PdfFormatConversionOptions", + "Aspose.Pdf.PdfFormat", + "Aspose.Pdf.Document.Convert", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:11:50Z", "status": "verified" }, - "propagate-language-attribute-to-tagged-pdf": { - "title": "Propagate Language Attribute to All Tagged PDF Elements", - "filename": "propagate-language-attribute-to-tagged-pdf.cs", - "description": "Demonstrates how to set a document‑level language and automatically propagate it to every structure element in a tagged PDF using Aspose.Pdf.", + "batch-convert-untagged-pdfs-to-tagged": { + "title": "Batch Convert Untagged Pdfs To Tagged", + "filename": "batch-convert-untagged-pdfs-to-tagged.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "batch-pdf-validation-dashboard": { + "title": "Batch Pdf Validation Dashboard", + "filename": "batch-pdf-validation-dashboard.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "batch-pdfa1b-validation-xml-logs-dashboard": { + "title": "Batch PDF/A-1B Validation with XML Logs and Compliance Dashboard", + "filename": "batch-pdfa1b-validation-xml-logs-dashboard.cs", + "description": "The example loads all PDF files in a folder, validates each against the PDF/A‑1B standard using Aspose.Pdf, writes XML validation logs, and displays a console dashboard with overall and per‑file compliance percentages.", + "tags": [ + "pdf-validation", + "pdfa", + "xml-logging", + "batch", + "compliance-dashboard" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Validate", + "Aspose.Pdf.PdfFormat", + "Aspose.Pdf.PdfFormat.PDF_A_1B", + "Aspose.Pdf.Document.Dispose" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:11:50Z", + "status": "verified" + }, + "batch-tag-pdfs-in-folder": { + "title": "Batch Tag Pdfs In Folder", + "filename": "batch-tag-pdfs-in-folder.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "batch-tag-pdfs-with-suffix": { + "title": "Batch Tag PDFs and Save with Suffix", + "filename": "batch-tag-pdfs-with-suffix.cs", + "description": "Demonstrates how to process a folder of PDF files, enable automatic tagging, add missing structure elements, set language and title, and save each tagged PDF with a custom suffix.", + "tags": [ + "pdf", + "tagging", + "batch", + "accessibility", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Tagged.AutoTaggingSettings", + "Aspose.Pdf.Tagged.ITaggedContent", + "Aspose.Pdf.Tagged.StructureElement", + "Aspose.Pdf.Tagged.ParagraphElement", + "Aspose.Pdf.Tagged.ITaggedContent.Save", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:11:50Z", + "status": "verified" + }, + "batch-validate-pdfs-summary-csv": { + "title": "Batch Validate PDFs and Generate Summary CSV", + "filename": "batch-validate-pdfs-summary-csv.cs", + "description": "Demonstrates how to iterate through a folder of PDF files, validate each against PDF/A‑1B using Aspose.Pdf, write individual XML logs, and produce a consolidated CSV summary of the compliance results.", + "tags": [ + "pdf-validation", + "batch-processing", + "csv-report", + "xml-log", + "accessibility" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.PdfFormat", + "Aspose.Pdf.Document.Validate" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:11:50Z", + "status": "verified" + }, + "batch-validate-pdfs-xml-logs-summary-csv": { + "title": "Batch Validate Pdfs Xml Logs Summary Csv", + "filename": "batch-validate-pdfs-xml-logs-summary-csv.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "check-pdf-ua-compliance-and-log-result": { + "title": "Check Pdf Ua Compliance And Log Result", + "filename": "check-pdf-ua-compliance-and-log-result.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "check-pdf-ua-compliance-and-log": { + "title": "Check PDF/UA Compliance and Log Result", + "filename": "check-pdf-ua-compliance-and-log.cs", + "description": "Demonstrates loading a PDF with Aspose.Pdf, checking its PDF/UA accessibility compliance, and appending the boolean outcome to a log file for further processing.", "tags": [ + "pdf-ua", "accessibility", + "logging", + "aspose-pdf", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.IsPdfUaCompliant" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:11:50Z", + "status": "verified" + }, + "convert-pdf-to-pdf-ua-with-auto-tagging": { + "title": "Convert Pdf To Pdf Ua With Auto Tagging", + "filename": "convert-pdf-to-pdf-ua-with-auto-tagging.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-merged-table-header-tagged-pdf": { + "title": "Create Merged Table Header Tagged Pdf", + "filename": "create-merged-table-header-tagged-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-nested-bullet-numbered-lists-tagged-pdf": { + "title": "Create Nested Bullet and Numbered Lists in a Tagged PDF", + "filename": "create-nested-bullet-numbered-lists-tagged-pdf.cs", + "description": "Demonstrates how to build a PDF containing a top‑level bullet list and a numbered list with a nested bullet sub‑list using Aspose.Pdf's tagged content API for accessibility.", + "tags": [ "tagged-pdf", - "language", + "nested-list", + "accessibility", "aspnet", - "pdf" + "list-structure" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Tagged.ITaggedContent", "Aspose.Pdf.Tagged.StructureElement", - "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Tagged.ListElement", + "Aspose.Pdf.Tagged.ListLIElement", + "Aspose.Pdf.Tagged.ParagraphElement" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:11:50Z", + "status": "verified" + }, + "create-nested-table-in-paragraph": { + "title": "Create Nested Table In Paragraph", + "filename": "create-nested-table-in-paragraph.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-pdf-with-heading-and-language": { + "title": "Create PDF with Heading Element and Language Attribute", + "filename": "create-pdf-with-heading-and-language.cs", + "description": "Demonstrates how to create a new PDF, enable tagged content, set the document language, add a level‑1 heading element with its own language attribute, and save the file.", + "tags": [ + "pdf", + "tagged-pdf", + "accessibility", + "heading", + "language" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Tagged.ITaggedContent", "Aspose.Pdf.Tagged.ITaggedContent.SetLanguage", - "Aspose.Pdf.Tagged.StructureElement.Language", - "Aspose.Pdf.Tagged.StructureElement.FindElements", + "Aspose.Pdf.Tagged.ITaggedContent.SetTitle", + "Aspose.Pdf.Tagged.ITaggedContent.CreateHeaderElement", + "Aspose.Pdf.LogicalStructure.StructureElement", + "Aspose.Pdf.LogicalStructure.HeaderElement", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:11:50Z", "status": "verified" }, @@ -381,6 +557,16 @@ "generated_at": "2026-08-20T07:11:50Z", "status": "verified" }, + "create-tagged-list-in-pdf": { + "title": "Create Tagged List In Pdf", + "filename": "create-tagged-list-in-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "create-tagged-pdf-table-with-merged-header": { "title": "Create Tagged PDF Table with Merged Header Cells", "filename": "create-tagged-pdf-table-with-merged-header.cs", @@ -405,31 +591,54 @@ "generated_at": "2026-08-20T07:11:50Z", "status": "verified" }, - "style-table-cells-background-border-padding": { - "title": "Style Table Cells with Background Color, Border, and Padding", - "filename": "style-table-cells-background-border-padding.cs", - "description": "Shows how to apply background colors, border thickness/color, and padding to individual table cells in a PDF using Aspose.Pdf.", + "create-tagged-pdf-with-toc": { + "title": "Create Tagged PDF with Table of Contents", + "filename": "create-tagged-pdf-with-toc.cs", + "description": "Demonstrates how to generate a PDF, add tagged headings, configure a dedicated Table of Contents page, and build the logical TOC structure for accessibility.", "tags": [ - "table", - "cell-styling", - "background", - "border", - "pdf" + "tagged-pdf", + "toc", + "accessibility", + "aspose-pdf", + "pdf-structure" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Table", - "Aspose.Pdf.Row", - "Aspose.Pdf.Cell", - "Aspose.Pdf.BorderInfo", - "Aspose.Pdf.MarginInfo", + "Aspose.Pdf.Tagged.ITaggedContent", + "Aspose.Pdf.Tagged.HeaderElement", + "Aspose.Pdf.Tagged.TOCElement", + "Aspose.Pdf.Tagged.TOCIElement", + "Aspose.Pdf.Tagged.ReferenceElement", + "Aspose.Pdf.Tagged.TocInfo", "Aspose.Pdf.Text.TextFragment" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:11:50Z", "status": "verified" }, + "create-tagged-table-with-custom-tags": { + "title": "Create Tagged Table with Custom DataType Tags and Validate PDF/A-1B", + "filename": "create-tagged-table-with-custom-tags.cs", + "description": "The example loads a PDF, builds a tagged table structure, assigns custom data‑type tags to individual cells, saves the document, and validates it for PDF/A‑1B compliance.", + "tags": [ + "tagged-pdf", + "table", + "custom-tags", + "pdfa", + "accessibility" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Tagged.ITaggedContent", + "Aspose.Pdf.Tagged.StructureElement", + "Aspose.Pdf.Tagged.TableElement", + "Aspose.Pdf.Tagged.TableTDElement", + "Aspose.Pdf.Document.Validate" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:11:50Z", + "status": "verified" + }, "custom-table-cell-borders-by-row-index": { "title": "Custom Table Cell Borders by Row Index", "filename": "custom-table-cell-borders-by-row-index.cs", @@ -454,169 +663,306 @@ "generated_at": "2026-08-20T07:11:50Z", "status": "verified" }, - "create-tagged-table-with-custom-tags": { - "title": "Create Tagged Table with Custom DataType Tags and Validate PDF/A-1B", - "filename": "create-tagged-table-with-custom-tags.cs", - "description": "The example loads a PDF, builds a tagged table structure, assigns custom data‑type tags to individual cells, saves the document, and validates it for PDF/A‑1B compliance.", + "enable-auto-tagging-save-tagged-pdf": { + "title": "Enable Automatic Tagging and Save PDF as Tagged PDF", + "filename": "enable-auto-tagging-save-tagged-pdf.cs", + "description": "Demonstrates how to activate Aspose.Pdf's auto‑tagging feature, set basic language and title metadata, and save the document as a PDF/UA‑compliant tagged PDF.", "tags": [ + "auto-tagging", + "pdf/ua", "tagged-pdf", - "table", - "custom-tags", - "pdfa", - "accessibility" + "accessibility", + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Tagged.AutoTaggingSettings", "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.StructureElement", - "Aspose.Pdf.Tagged.TableElement", - "Aspose.Pdf.Tagged.TableTDElement", - "Aspose.Pdf.Document.Validate" + "Aspose.Pdf.Tagged.ITaggedContent.SetLanguage", + "Aspose.Pdf.Tagged.ITaggedContent.SetTitle", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:11:50Z", "status": "verified" }, - "nested-table-in-paragraph-tagged-pdf": { - "title": "Create Nested Table Inside Paragraph in Tagged PDF", - "filename": "nested-table-in-paragraph-tagged-pdf.cs", - "description": "Demonstrates how to build a paragraph element, add an outer table, embed a nested table within a cell, set alternative text, and validate the tagging hierarchy using Aspose.Pdf's Tagged PDF API.", + "export-pdf-structure-tree-to-json": { + "title": "Export PDF Structure Tree to JSON", + "filename": "export-pdf-structure-tree-to-json.cs", + "description": "Shows how to load a PDF, read its tagged logical structure with Aspose.Pdf, convert the hierarchy into a serializable DTO, and write the structure tree as a formatted JSON file for accessibility analysis.", "tags": [ - "tagged-pdf", - "nested-table", + "pdf", "accessibility", - "pdf-structure", - "Aspose.Pdf" + "tagged-pdf", + "structure", + "json" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.ParagraphElement", - "Aspose.Pdf.Tagged.TableElement", - "Aspose.Pdf.Tagged.TableTHeadElement", - "Aspose.Pdf.Tagged.TableTRElement", - "Aspose.Pdf.Tagged.TableTDElement" - ], + "Aspose.Pdf.Tagged.StructureElement", + "Aspose.Pdf.Tagged.Element", + "Aspose.Pdf.Tagged.StructureElement.ChildElements" + ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:11:50Z", "status": "verified" }, - "create-nested-bullet-numbered-lists-tagged-pdf": { - "title": "Create Nested Bullet and Numbered Lists in a Tagged PDF", - "filename": "create-nested-bullet-numbered-lists-tagged-pdf.cs", - "description": "Demonstrates how to build a PDF containing a top‑level bullet list and a numbered list with a nested bullet sub‑list using Aspose.Pdf's tagged content API for accessibility.", + "export-pdf-structure-tree-to-xml-xsl-report": { + "title": "Export Pdf Structure Tree To Xml Xsl Report", + "filename": "export-pdf-structure-tree-to-xml-xsl-report.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "export-structure-tree-to-xml-xsl-report": { + "title": "Export PDF Structure Tree to XML and Generate Report via XSLT", + "filename": "export-structure-tree-to-xml-xsl-report.cs", + "description": "Loads a PDF with Aspose.Pdf, exports its logical structure tree to an XML file using XmlSaveOptions, and then applies an XSLT stylesheet to produce an HTML report.", + "tags": [ + "structure-tree", + "xml-export", + "xslt", + "report-generation", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.XmlSaveOptions" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:11:50Z", + "status": "verified" + }, + "export-tagged-pdf-content-to-json": { + "title": "Export Tagged PDF Content to JSON", + "filename": "export-tagged-pdf-content-to-json.cs", + "description": "Shows how to read a PDF's tagged structure with Aspose.Pdf, build a hierarchical representation, and serialize it to a JSON file.", "tags": [ "tagged-pdf", - "nested-list", + "json", "accessibility", - "aspnet", - "list-structure" + "structure", + "export" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Tagged.ITaggedContent", "Aspose.Pdf.Tagged.StructureElement", - "Aspose.Pdf.Tagged.ListElement", - "Aspose.Pdf.Tagged.ListLIElement", - "Aspose.Pdf.Tagged.ParagraphElement" + "Aspose.Pdf.Tagged.Element", + "Aspose.Pdf.LogicalStructure.StructureElement" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:11:50Z", "status": "verified" }, - "add-textbox-form-field-tagged-pdf": { - "title": "Add TextBox Form Field and Tag It for Accessibility", - "filename": "add-textbox-form-field-tagged-pdf.cs", - "description": "Demonstrates how to create a TextBox form field, register it in the AcroForm, and associate it with a Form structure element to produce a tagged PDF with accessibility information using Aspose.Pdf.", + "extract-note-elements-to-text": { + "title": "Extract Note Elements To Text", + "filename": "extract-note-elements-to-text.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-notes-from-tagged-pdf": { + "title": "Extract Notes from Tagged PDF to Text File", + "filename": "extract-notes-from-tagged-pdf.cs", + "description": "Loads a PDF, accesses its tagged content, finds all NoteElement objects, concatenates their ActualText, and writes the combined notes to a plain text file.", + "tags": [ + "pdf", + "accessibility", + "notes", + "tagged-pdf", + "extraction" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Tagged.ITaggedContent", + "Aspose.Pdf.Tagged.StructureElement", + "Aspose.Pdf.LogicalStructure.NoteElement", + "Aspose.Pdf.Tagged.StructureElement.FindElements" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:11:50Z", + "status": "verified" + }, + "extract-pdf-links-to-csv": { + "title": "Extract PDF Links to CSV", + "filename": "extract-pdf-links-to-csv.cs", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, iterate through its pages and link annotations, extract the target URLs, and write them to a CSV file.", + "tags": [ + "pdf", + "links", + "csv", + "annotations", + "extraction" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.LinkAnnotation", + "Aspose.Pdf.Annotations.GoToURIAction" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:11:50Z", + "status": "verified" + }, + "extract-text-from-tagged-pdf-structure": { + "title": "Extract Text from Tagged PDF Structure Tree", + "filename": "extract-text-from-tagged-pdf-structure.cs", + "description": "Demonstrates how to load a PDF, access its tagged content, and recursively traverse the logical structure tree to extract the actual text of each element.", "tags": [ - "form-field", "tagged-pdf", + "text-extraction", + "structure-tree", "accessibility", - "textbox", - "aspose-pdf" + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.TextBoxField", "Aspose.Pdf.Tagged.ITaggedContent", "Aspose.Pdf.LogicalStructure.StructureElement", - "Aspose.Pdf.Tagged.FormElement" + "Aspose.Pdf.LogicalStructure.Element", + "Aspose.Pdf.LogicalStructure.ElementList" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:11:50Z", "status": "verified" }, - "add-placeholder-textbox-form-field-tagged": { - "title": "Add Placeholder TextBox Form Field with Tagged Structure", - "filename": "add-placeholder-textbox-form-field-tagged.cs", - "description": "Loads an existing PDF, inserts a TextBox form field with placeholder text, creates a /Form logical structure element, links the field to the tagged structure, and saves the updated document.", + "filter-xml-missing-alt-text": { + "title": "Filter XML Errors for Missing Alt Text", + "filename": "filter-xml-missing-alt-text.cs", + "description": "Shows how to load an XML validation report, query for errors of type \"MissingAltText\", and output the affected image IDs.", + "tags": [ + "xml", + "accessibility", + "alt-text", + "validation", + "csharp" + ], + "apis_used": [], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:11:50Z", + "status": "verified" + }, + "find-images-missing-alt-text": { + "title": "Find Images Missing Alt Text", + "filename": "find-images-missing-alt-text.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "iterate-tagged-pdf-structure-elements": { + "title": "Iterate Tagged PDF Structure Elements and Log Titles & Languages", + "filename": "iterate-tagged-pdf-structure-elements.cs", + "description": "The example loads a PDF, accesses its tagged content, and recursively walks the logical structure tree, outputting each element's title and language. It also notes the limitation of retrieving custom tags via the Aspose.PDF API.", "tags": [ - "form-field", - "placeholder", "tagged-pdf", + "structure", "accessibility", - "Aspose.Pdf" + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Tagged.TaggedContent", + "Aspose.Pdf.Document.TaggedContent", + "Aspose.Pdf.Tagged.ITaggedContent", "Aspose.Pdf.LogicalStructure.StructureElement", - "Aspose.Pdf.LogicalStructure.FormElement" + "Aspose.Pdf.LogicalStructure.Element.ChildElements" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:11:50Z", "status": "verified" }, - "add-page-break-to-tagged-pdf": { - "title": "Add Page Break Element to Tagged PDF", - "filename": "add-page-break-to-tagged-pdf.cs", - "description": "Demonstrates how to insert a page‑break element into the logical structure tree of a tagged PDF using Aspose.Pdf's tagged‑content API.", + "modify-paragraph-actualtext-in-tagged-pdf": { + "title": "Modify Paragraph Actualtext In Tagged Pdf", + "filename": "modify-paragraph-actualtext-in-tagged-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "nested-table-in-paragraph-tagged-pdf": { + "title": "Create Nested Table Inside Paragraph in Tagged PDF", + "filename": "nested-table-in-paragraph-tagged-pdf.cs", + "description": "Demonstrates how to build a paragraph element, add an outer table, embed a nested table within a cell, set alternative text, and validate the tagging hierarchy using Aspose.Pdf's Tagged PDF API.", "tags": [ "tagged-pdf", - "page-break", + "nested-table", "accessibility", - "logical-structure", + "pdf-structure", "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.StructureElement", "Aspose.Pdf.Tagged.ParagraphElement", - "Aspose.Pdf.Tagged.DivElement" + "Aspose.Pdf.Tagged.TableElement", + "Aspose.Pdf.Tagged.TableTHeadElement", + "Aspose.Pdf.Tagged.TableTRElement", + "Aspose.Pdf.Tagged.TableTDElement" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:11:50Z", "status": "verified" }, - "update-paragraph-actualtext-in-tagged-pdf": { - "title": "Update Paragraph ActualText in Tagged PDF", - "filename": "update-paragraph-actualtext-in-tagged-pdf.cs", - "description": "Demonstrates loading a PDF, locating a paragraph element by its title via the structure tree, and modifying its ActualText property for accessibility corrections.", + "parse-xml-validation-report-summary": { + "title": "Parse Xml Validation Report Summary", + "filename": "parse-xml-validation-report-summary.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "propagate-language-attribute-to-tagged-pdf": { + "title": "Propagate Language Attribute to All Tagged PDF Elements", + "filename": "propagate-language-attribute-to-tagged-pdf.cs", + "description": "Demonstrates how to set a document‑level language and automatically propagate it to every structure element in a tagged PDF using Aspose.Pdf.", "tags": [ - "tagged-pdf", - "actualtext", - "paragraph", "accessibility", - "structure-tree" + "tagged-pdf", + "language", + "aspnet", + "pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.LogicalStructure.StructureElement", - "Aspose.Pdf.LogicalStructure.ParagraphElement", - "Aspose.Pdf.LogicalStructure.StructureElement.FindElements", + "Aspose.Pdf.Tagged.StructureElement", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Tagged.ITaggedContent.SetLanguage", + "Aspose.Pdf.Tagged.StructureElement.Language", + "Aspose.Pdf.Tagged.StructureElement.FindElements", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:11:50Z", "status": "verified" }, + "propagate-language-to-tagged-pdf": { + "title": "Propagate Language To Tagged Pdf", + "filename": "propagate-language-to-tagged-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "replace-note-element-in-tagged-pdf": { "title": "Replace Note Element in Tagged PDF", "filename": "replace-note-element-in-tagged-pdf.cs", @@ -642,49 +988,38 @@ "generated_at": "2026-08-20T07:11:50Z", "status": "verified" }, - "iterate-tagged-pdf-structure-elements": { - "title": "Iterate Tagged PDF Structure Elements and Log Titles & Languages", - "filename": "iterate-tagged-pdf-structure-elements.cs", - "description": "The example loads a PDF, accesses its tagged content, and recursively walks the logical structure tree, outputting each element's title and language. It also notes the limitation of retrieving custom tags via the Aspose.PDF API.", - "tags": [ - "tagged-pdf", - "structure", - "accessibility", - "aspose-pdf", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.TaggedContent", - "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.LogicalStructure.StructureElement", - "Aspose.Pdf.LogicalStructure.Element.ChildElements" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:11:50Z", + "replace-note-elements-in-tagged-pdf": { + "title": "Replace Note Elements In Tagged Pdf", + "filename": "replace-note-elements-in-tagged-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "set-paragraph-title-in-tagged-pdf": { - "title": "Set Paragraph Title in Tagged PDF for Accessibility", - "filename": "set-paragraph-title-in-tagged-pdf.cs", - "description": "Shows how to use Aspose.Pdf's TaggedContent API to create a paragraph element, assign a Title property for accessibility, and save the updated PDF.", + "set-actualtext-span-pronunciation": { + "title": "Set ActualText on a Span for Pronunciation in Tagged PDF", + "filename": "set-actualtext-span-pronunciation.cs", + "description": "Shows how to create a span element in a tagged PDF, assign visible text, and provide hidden pronunciation text via the ActualText property.", "tags": [ - "tagged-pdf", "accessibility", - "paragraph", - "title", - "Aspose.Pdf" + "tagged-pdf", + "actualtext", + "pronunciation", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Tagged.ITaggedContent", + "Aspose.Pdf.Tagged.SpanElement", "Aspose.Pdf.Tagged.StructureElement", - "Aspose.Pdf.Tagged.ParagraphElement", - "Aspose.Pdf.Tagged.TaggedContent.CreateParagraphElement", - "Aspose.Pdf.Tagged.ParagraphElement.SetText", - "Aspose.Pdf.Tagged.ParagraphElement.Title" + "Aspose.Pdf.Tagged.ITaggedContent.SetLanguage", + "Aspose.Pdf.Tagged.SpanElement.SetText", + "Aspose.Pdf.Tagged.SpanElement.ActualText", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:11:50Z", "status": "verified" }, @@ -710,321 +1045,236 @@ "generated_at": "2026-08-20T07:11:50Z", "status": "verified" }, - "validate-pdf-ua-compliance-export-xml": { - "title": "Validate PDF/UA Compliance and Export XML Structure", - "filename": "validate-pdf-ua-compliance-export-xml.cs", - "description": "Demonstrates how to validate a tagged PDF against PDF/UA standards using Aspose.Pdf, write a validation log, and export the document's logical structure as an XML report.", - "tags": [ - "pdf-ua", - "validation", - "xml-report", - "tagged-pdf", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Validate", - "Aspose.Pdf.PdfFormat", - "Aspose.Pdf.Document.SaveXml" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:11:50Z", - "status": "verified" - }, - "check-pdf-ua-compliance-and-log": { - "title": "Check PDF/UA Compliance and Log Result", - "filename": "check-pdf-ua-compliance-and-log.cs", - "description": "Demonstrates loading a PDF with Aspose.Pdf, checking its PDF/UA accessibility compliance, and appending the boolean outcome to a log file for further processing.", + "set-missing-language-attributes": { + "title": "Set Missing Language Attributes in Tagged PDF", + "filename": "set-missing-language-attributes.cs", + "description": "Loads a PDF, accesses its tagged structure, and recursively assigns a default language to any structure element that lacks a language attribute, then saves the updated document.", "tags": [ - "pdf-ua", "accessibility", - "logging", - "aspose-pdf", - "csharp" + "tagged-pdf", + "language", + "aspnet", + "recursion" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.IsPdfUaCompliant" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:11:50Z", - "status": "verified" - }, - "summarize-pdf-validation-errors": { - "title": "Summarize PDF Validation Report Errors", - "filename": "summarize-pdf-validation-errors.cs", - "description": "Loads an Aspose.Pdf validation XML report, aggregates error codes and messages, and outputs a summary of error frequencies and the top error messages.", - "tags": [ - "pdf", - "validation", - "xml", - "error-summary", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document.Validate" + "Aspose.Pdf.Tagged.ITaggedContent.SetLanguage", + "Aspose.Pdf.Tagged.ITaggedContent.RootElement", + "Aspose.Pdf.Tagged.StructureElement.Language", + "Aspose.Pdf.Tagged.StructureElement.ChildElements", + "Aspose.Pdf.Tagged.Element", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:11:50Z", "status": "verified" }, - "filter-xml-missing-alt-text": { - "title": "Filter XML Errors for Missing Alt Text", - "filename": "filter-xml-missing-alt-text.cs", - "description": "Shows how to load an XML validation report, query for errors of type \"MissingAltText\", and output the affected image IDs.", - "tags": [ - "xml", - "accessibility", - "alt-text", - "validation", - "csharp" - ], + "set-paragraph-title-accessibility": { + "title": "Set Paragraph Title Accessibility", + "filename": "set-paragraph-title-accessibility.cs", + "description": "", + "tags": [], "apis_used": [], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:11:50Z", + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "extract-text-from-tagged-pdf-structure": { - "title": "Extract Text from Tagged PDF Structure Tree", - "filename": "extract-text-from-tagged-pdf-structure.cs", - "description": "Demonstrates how to load a PDF, access its tagged content, and recursively traverse the logical structure tree to extract the actual text of each element.", + "set-paragraph-title-in-tagged-pdf": { + "title": "Set Paragraph Title in Tagged PDF for Accessibility", + "filename": "set-paragraph-title-in-tagged-pdf.cs", + "description": "Shows how to use Aspose.Pdf's TaggedContent API to create a paragraph element, assign a Title property for accessibility, and save the updated PDF.", "tags": [ "tagged-pdf", - "text-extraction", - "structure-tree", "accessibility", + "paragraph", + "title", "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.LogicalStructure.StructureElement", - "Aspose.Pdf.LogicalStructure.Element", - "Aspose.Pdf.LogicalStructure.ElementList" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:11:50Z", - "status": "verified" - }, - "export-structure-tree-to-xml-xsl-report": { - "title": "Export PDF Structure Tree to XML and Generate Report via XSLT", - "filename": "export-structure-tree-to-xml-xsl-report.cs", - "description": "Loads a PDF with Aspose.Pdf, exports its logical structure tree to an XML file using XmlSaveOptions, and then applies an XSLT stylesheet to produce an HTML report.", - "tags": [ - "structure-tree", - "xml-export", - "xslt", - "report-generation", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.XmlSaveOptions" + "Aspose.Pdf.Tagged.StructureElement", + "Aspose.Pdf.Tagged.ParagraphElement", + "Aspose.Pdf.Tagged.TaggedContent.CreateParagraphElement", + "Aspose.Pdf.Tagged.ParagraphElement.SetText", + "Aspose.Pdf.Tagged.ParagraphElement.Title" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:11:50Z", "status": "verified" }, - "export-pdf-structure-tree-to-json": { - "title": "Export PDF Structure Tree to JSON", - "filename": "export-pdf-structure-tree-to-json.cs", - "description": "Shows how to load a PDF, read its tagged logical structure with Aspose.Pdf, convert the hierarchy into a serializable DTO, and write the structure tree as a formatted JSON file for accessibility analysis.", + "set-primary-language-for-tagged-pdf": { + "title": "Set Primary Language for a Tagged PDF", + "filename": "set-primary-language-for-tagged-pdf.cs", + "description": "Demonstrates how to add a language attribute to the structure tree of a tagged PDF using Aspose.Pdf, ensuring the document is marked with its primary content language.", "tags": [ "pdf", "accessibility", + "language", "tagged-pdf", - "structure", - "json" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.StructureElement", - "Aspose.Pdf.Tagged.Element", - "Aspose.Pdf.Tagged.StructureElement.ChildElements" + "Aspose.Pdf.Tagged.ITaggedContent.SetLanguage", + "Aspose.Pdf.LogicalStructure.StructureElement", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:11:50Z", "status": "verified" }, - "export-tagged-pdf-content-to-json": { - "title": "Export Tagged PDF Content to JSON", - "filename": "export-tagged-pdf-content-to-json.cs", - "description": "Shows how to read a PDF's tagged structure with Aspose.Pdf, build a hierarchical representation, and serialize it to a JSON file.", + "set-root-structure-element-title": { + "title": "Set Root Structure Element Title in Tagged PDF", + "filename": "set-root-structure-element-title.cs", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, access its tagged content, retrieve the root structure element, assign a document title, and save the updated file.", "tags": [ - "tagged-pdf", - "json", "accessibility", - "structure", - "export" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.StructureElement", - "Aspose.Pdf.Tagged.Element", - "Aspose.Pdf.LogicalStructure.StructureElement" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:11:50Z", - "status": "verified" - }, - "extract-notes-from-tagged-pdf": { - "title": "Extract Notes from Tagged PDF to Text File", - "filename": "extract-notes-from-tagged-pdf.cs", - "description": "Loads a PDF, accesses its tagged content, finds all NoteElement objects, concatenates their ActualText, and writes the combined notes to a plain text file.", - "tags": [ - "pdf", - "accessibility", - "notes", "tagged-pdf", - "extraction" + "metadata", + "title", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.StructureElement", - "Aspose.Pdf.LogicalStructure.NoteElement", - "Aspose.Pdf.Tagged.StructureElement.FindElements" + "Aspose.Pdf.LogicalStructure.StructureElement", + "Aspose.Pdf.StructureElement.Title", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:11:50Z", "status": "verified" }, - "extract-pdf-links-to-csv": { - "title": "Extract PDF Links to CSV", - "filename": "extract-pdf-links-to-csv.cs", - "description": "Demonstrates how to load a PDF with Aspose.Pdf, iterate through its pages and link annotations, extract the target URLs, and write them to a CSV file.", + "style-table-cells-background-border-padding": { + "title": "Style Table Cells with Background Color, Border, and Padding", + "filename": "style-table-cells-background-border-padding.cs", + "description": "Shows how to apply background colors, border thickness/color, and padding to individual table cells in a PDF using Aspose.Pdf.", "tags": [ - "pdf", - "links", - "csv", - "annotations", - "extraction" + "table", + "cell-styling", + "background", + "border", + "pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.LinkAnnotation", - "Aspose.Pdf.Annotations.GoToURIAction" + "Aspose.Pdf.Table", + "Aspose.Pdf.Row", + "Aspose.Pdf.Cell", + "Aspose.Pdf.BorderInfo", + "Aspose.Pdf.MarginInfo", + "Aspose.Pdf.Text.TextFragment" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:11:50Z", "status": "verified" }, - "batch-tag-pdfs-with-suffix": { - "title": "Batch Tag PDFs and Save with Suffix", - "filename": "batch-tag-pdfs-with-suffix.cs", - "description": "Demonstrates how to process a folder of PDF files, enable automatic tagging, add missing structure elements, set language and title, and save each tagged PDF with a custom suffix.", + "summarize-pdf-validation-errors": { + "title": "Summarize PDF Validation Report Errors", + "filename": "summarize-pdf-validation-errors.cs", + "description": "Loads an Aspose.Pdf validation XML report, aggregates error codes and messages, and outputs a summary of error frequencies and the top error messages.", "tags": [ "pdf", - "tagging", - "batch", - "accessibility", + "validation", + "xml", + "error-summary", "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Tagged.AutoTaggingSettings", - "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.StructureElement", - "Aspose.Pdf.Tagged.ParagraphElement", - "Aspose.Pdf.Tagged.ITaggedContent.Save", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Validate" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:11:50Z", "status": "verified" }, - "batch-convert-pdfs-to-tagged-pdfa": { - "title": "Batch Convert PDFs to Tagged PDF/A with Auto‑Tagging", - "filename": "batch-convert-pdfs-to-tagged-pdfa.cs", - "description": "Demonstrates how to process a folder of untagged PDFs, enable Aspose.Pdf auto‑tagging, convert each document to a tagged PDF/A format, and save the results to a separate output directory.", + "update-paragraph-actualtext-in-tagged-pdf": { + "title": "Update Paragraph ActualText in Tagged PDF", + "filename": "update-paragraph-actualtext-in-tagged-pdf.cs", + "description": "Demonstrates loading a PDF, locating a paragraph element by its title via the structure tree, and modifying its ActualText property for accessibility corrections.", "tags": [ - "pdf", - "auto-tagging", - "batch", + "tagged-pdf", + "actualtext", + "paragraph", "accessibility", - "pdfa" + "structure-tree" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.AutoTaggingSettings", - "Aspose.Pdf.PdfFormatConversionOptions", - "Aspose.Pdf.PdfFormat", - "Aspose.Pdf.Document.Convert", + "Aspose.Pdf.Tagged.ITaggedContent", + "Aspose.Pdf.LogicalStructure.StructureElement", + "Aspose.Pdf.LogicalStructure.ParagraphElement", + "Aspose.Pdf.LogicalStructure.StructureElement.FindElements", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:11:50Z", "status": "verified" }, - "batch-validate-pdfs-summary-csv": { - "title": "Batch Validate PDFs and Generate Summary CSV", - "filename": "batch-validate-pdfs-summary-csv.cs", - "description": "Demonstrates how to iterate through a folder of PDF files, validate each against PDF/A‑1B using Aspose.Pdf, write individual XML logs, and produce a consolidated CSV summary of the compliance results.", + "update-structure-element-language-french": { + "title": "Update Structure Element Language French", + "filename": "update-structure-element-language-french.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "update-tagged-element-language-french": { + "title": "Update Language of a Tagged PDF Structure Element to French", + "filename": "update-tagged-element-language-french.cs", + "description": "Shows how to set the document's default language and modify the language property of a specific tagged structure element in a PDF using Aspose.Pdf.", "tags": [ - "pdf-validation", - "batch-processing", - "csv-report", - "xml-log", - "accessibility" + "tagged-pdf", + "language", + "accessibility", + "structure", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PdfFormat", - "Aspose.Pdf.Document.Validate" + "Aspose.Pdf.Tagged.ITaggedContent", + "Aspose.Pdf.Tagged.ITaggedContent.SetLanguage", + "Aspose.Pdf.LogicalStructure.StructureElement", + "Aspose.Pdf.LogicalStructure.StructureElement.FindElements", + "Aspose.Pdf.LogicalStructure.StructureElement.Language" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:11:50Z", "status": "verified" }, - "batch-pdfa1b-validation-xml-logs-dashboard": { - "title": "Batch PDF/A-1B Validation with XML Logs and Compliance Dashboard", - "filename": "batch-pdfa1b-validation-xml-logs-dashboard.cs", - "description": "The example loads all PDF files in a folder, validates each against the PDF/A‑1B standard using Aspose.Pdf, writes XML validation logs, and displays a console dashboard with overall and per‑file compliance percentages.", + "validate-pdf-ua-compliance-export-xml": { + "title": "Validate PDF/UA Compliance and Export XML Structure", + "filename": "validate-pdf-ua-compliance-export-xml.cs", + "description": "Demonstrates how to validate a tagged PDF against PDF/UA standards using Aspose.Pdf, write a validation log, and export the document's logical structure as an XML report.", "tags": [ - "pdf-validation", - "pdfa", - "xml-logging", - "batch", - "compliance-dashboard" + "pdf-ua", + "validation", + "xml-report", + "tagged-pdf", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Document.Validate", "Aspose.Pdf.PdfFormat", - "Aspose.Pdf.PdfFormat.PDF_A_1B", - "Aspose.Pdf.Document.Dispose" + "Aspose.Pdf.Document.SaveXml" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:11:50Z", "status": "verified" }, - "set-missing-language-attributes": { - "title": "Set Missing Language Attributes in Tagged PDF", - "filename": "set-missing-language-attributes.cs", - "description": "Loads a PDF, accesses its tagged structure, and recursively assigns a default language to any structure element that lacks a language attribute, then saves the updated document.", - "tags": [ - "accessibility", - "tagged-pdf", - "language", - "aspnet", - "recursion" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Tagged.ITaggedContent.SetLanguage", - "Aspose.Pdf.Tagged.ITaggedContent.RootElement", - "Aspose.Pdf.Tagged.StructureElement.Language", - "Aspose.Pdf.Tagged.StructureElement.ChildElements", - "Aspose.Pdf.Tagged.Element", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:11:50Z", + "validate-pdf-ua-compliance-xml-report": { + "title": "Validate Pdf Ua Compliance Xml Report", + "filename": "validate-pdf-ua-compliance-xml-report.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" } } diff --git a/basic-operations/AGENTS.md b/basic-operations/AGENTS.md index 2c8b86b93..53ca1d94d 100644 --- a/basic-operations/AGENTS.md +++ b/basic-operations/AGENTS.md @@ -8,7 +8,7 @@ parent: ../agents.md # AGENTS - basic-operations -> **Basic operations** in PDF using C# / .NET -- **56** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. +> **Basic operations** in PDF using C# / .NET -- **77** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. ## Persona @@ -23,18 +23,18 @@ See the root [agents.md](../agents.md) for repository-wide conventions and bound ## Required Namespaces -- `using Aspose.Pdf;` (56/56 files) ← category-specific -- `using Aspose.Pdf.Text;` (2/56 files) -- `using Aspose.Pdf.Facades;` (1/56 files) -- `using Aspose.Pdf.Optimization;` (1/56 files) -- `using System;` (56/56 files) -- `using System.IO;` (55/56 files) -- `using System.Collections.Generic;` (3/56 files) -- `using System.Text;` (2/56 files) -- `using System.Net.Http;` (1/56 files) -- `using System.Security.Cryptography;` (1/56 files) -- `using System.Text.Json;` (1/56 files) -- `using System.Threading.Tasks;` (1/56 files) +- `using Aspose.Pdf;` (56/77 files) ← category-specific +- `using Aspose.Pdf.Text;` (2/77 files) +- `using Aspose.Pdf.Facades;` (1/77 files) +- `using Aspose.Pdf.Optimization;` (1/77 files) +- `using System;` (56/77 files) +- `using System.IO;` (55/77 files) +- `using System.Collections.Generic;` (3/77 files) +- `using System.Text;` (2/77 files) +- `using System.Net.Http;` (1/77 files) +- `using System.Security.Cryptography;` (1/77 files) +- `using System.Text.Json;` (1/77 files) +- `using System.Threading.Tasks;` (1/77 files) ## Common Code Pattern @@ -54,19 +54,27 @@ using (Document doc = new Document("input.pdf")) |------|-------|----------|-------------| | [add-blank-page-to-pdf](./add-blank-page-to-pdf.cs) | Add Blank Page to PDF | `Document`, `Pages`, `Add` | Shows how to load an existing PDF with Aspose.Pdf, insert an empty page at the end, and save the ... | | [add-custom-xmp-metadata-to-pdf](./add-custom-xmp-metadata-to-pdf.cs) | Add Custom XMP Metadata to PDF | `Document`, `SetXmpMetadata`, `Save` | Shows how to load a PDF, create a custom XMP metadata packet, attach it to the document using Asp... | +| [append-page-incremental-save](./append-page-incremental-save.cs) | Append page incremental save | | Append page incremental save | | [batch-convert-pdf-to-pdfa-with-report](./batch-convert-pdf-to-pdfa-with-report.cs) | Batch Convert PDFs to PDF/A‑1b with Compression and Report | `Document`, `PdfFormatConversionOptions`, `PdfFormat` | Loads each PDF from a folder, converts it to PDF/A‑1b using high compression, saves the converted... | +| [batch-convert-pdfs-to-pdfa-1b-high-compression](./batch-convert-pdfs-to-pdfa-1b-high-compression.cs) | Batch convert pdfs to pdfa 1b high compression | | Batch convert pdfs to pdfa 1b high compression | | [batch-convert-pdfs-to-pdfa-1b](./batch-convert-pdfs-to-pdfa-1b.cs) | Batch Convert PDFs to PDF/A‑1b | `Document`, `Convert`, `PdfFormat` | Shows how to iterate through a folder of PDF files, convert each to PDF/A‑1b compliance with Aspo... | +| [batch-convert-pdfs-to-pdfa-1b__v2](./batch-convert-pdfs-to-pdfa-1b__v2.cs) | Batch convert pdfs to pdfa 1b__v2 | | Batch convert pdfs to pdfa 1b__v2 | | [batch-convert-pdfs-to-pdfa-with-csv-report](./batch-convert-pdfs-to-pdfa-with-csv-report.cs) | Batch Convert PDFs to PDF/A-1b with CSV Report | `Document`, `PdfFormat`, `ConvertErrorAction` | Processes all PDF files in a folder, converts each to PDF/A‑1b using Aspose.Pdf, writes individua... | | [batch-decrypt-encrypted-pdfs](./batch-decrypt-encrypted-pdfs.cs) | Batch Decrypt Encrypted PDFs with Owner Password | `Document`, `Decrypt`, `Save` | Demonstrates how to iterate through a folder of encrypted PDF files, open each using a shared own... | +| [batch-encrypt-pdfs-from-filename](./batch-encrypt-pdfs-from-filename.cs) | Batch encrypt pdfs from filename | | Batch encrypt pdfs from filename | | [batch-encrypt-pdfs-in-directory](./batch-encrypt-pdfs-in-directory.cs) | Batch Encrypt PDFs in a Directory | `Document`, `Encrypt`, `Save` | Demonstrates how to encrypt all PDF files in a folder using a common user and owner password, app... | +| [batch-encrypt-pdfs-with-configurable-passwords](./batch-encrypt-pdfs-with-configurable-passwords.cs) | Batch encrypt pdfs with configurable passwords | | Batch encrypt pdfs with configurable passwords | | [batch-encrypt-pdfs-with-deterministic-passwords](./batch-encrypt-pdfs-with-deterministic-passwords.cs) | Batch Encrypt PDFs with Deterministic Passwords | `Document`, `Encrypt`, `Permissions` | Demonstrates how to encrypt multiple PDF files in a folder using Aspose.Pdf, generating a unique ... | | [batch-encrypt-pdfs](./batch-encrypt-pdfs.cs) | Batch Encrypt PDFs with User Passwords | `Document`, `Encrypt`, `Save` | Demonstrates reading a JSON configuration, encrypting multiple PDF files with individual user pas... | | [batch-split-pdf-by-page-ranges](./batch-split-pdf-by-page-ranges.cs) | Batch Split PDF into Sections by Page Ranges | `Document`, `Pages`, `Save` | Shows how to read page range definitions from a configuration file and split a PDF into separate ... | +| [change-pdf-passwords](./change-pdf-passwords.cs) | Change pdf passwords | | Change pdf passwords | +| [change-pdf-version-to-1-5-incremental-update](./change-pdf-version-to-1-5-incremental-update.cs) | Change pdf version to 1 5 incremental update | | Change pdf version to 1 5 incremental update | | [compress-pdf-default-settings](./compress-pdf-default-settings.cs) | Compress PDF with Default Settings using Aspose.Pdf | `Document`, `Save` | Demonstrates loading a PDF, saving it with Aspose.Pdf's default compression, and comparing the fi... | | [compress-pdf-high-optimization](./compress-pdf-high-optimization.cs) | Compress PDF with High Optimization and Compare File Size | `Document`, `OptimizationOptions`, `All` | Loads a PDF, applies high‑level compression using Aspose.Pdf optimization options, saves the resu... | | [convert-pdf-to-pdfa-1b](./convert-pdf-to-pdfa-1b.cs) | Convert PDF to PDF/A-1b preserving structure | `Document`, `PdfFormatConversionOptions`, `PdfFormat` | Demonstrates loading a PDF with Aspose.Pdf, configuring PDF/A‑1b conversion options, performing t... | | [convert-pdf-to-pdfa-1b__v2](./convert-pdf-to-pdfa-1b__v2.cs) | Convert PDF to PDF/A‑1b Compliance | `Document`, `Convert`, `PdfFormat` | Loads a PDF file, converts it to PDF/A‑1b compliance while logging conversion errors, and saves t... | | [convert-pdf-to-pdfa1b](./convert-pdf-to-pdfa1b.cs) | Convert PDF to PDF/A-1b with Metadata Preservation | `Document`, `Convert`, `PdfFormat` | Demonstrates loading a PDF, converting it to PDF/A-1b compliance while preserving metadata, and s... | +| [convert-pdf-to-pdfa1b__v2](./convert-pdf-to-pdfa1b__v2.cs) | Convert pdf to pdfa1b__v2 | | Convert pdf to pdfa1b__v2 | | [convert-pdf-to-pdfx3-cmyk](./convert-pdf-to-pdfx3-cmyk.cs) | Convert PDF to PDF/X-3 with CMYK Color Space | `Document`, `OutputIntent`, `Convert` | Shows how to convert a PDF to PDF/X-3 compliance while forcing all colors to CMYK using an ICC pr... | | [convert-pdf-to-pdfx3-preserve-icc](./convert-pdf-to-pdfx3-preserve-icc.cs) | Convert PDF to PDF/X‑3 Preserving ICC Profile | `Document`, `PdfFormatConversionOptions`, `PdfFormat` | Demonstrates loading a PDF with Aspose.Pdf, converting it to PDF/X‑3 format while keeping the exi... | | [convert-pdf-to-pdfx3](./convert-pdf-to-pdfx3.cs) | Convert PDF to PDF/X-3 while Preserving Color Profiles | `Document`, `Convert`, `PdfFormat` | Shows how to load a PDF, convert it to PDF/X-3 compliance (which retains embedded ICC color profi... | @@ -74,18 +82,10 @@ using (Document doc = new Document("input.pdf")) | [create-pdfx3-document-three-pages](./create-pdfx3-document-three-pages.cs) | Create PDF/X‑3 Document with Three Pages | `Document`, `Add`, `Convert` | Shows how to create a new PDF, add three blank pages, convert it to PDF/X‑3 compliance, and save ... | | [decrypt-encrypted-pdf](./decrypt-encrypted-pdf.cs) | Decrypt Encrypted PDF with User Password | `Document`, `Decrypt`, `Save` | Demonstrates opening a password‑protected PDF, decrypting it, and saving an unprotected copy usin... | | [disable-font-embedding-when-saving-pdf](./disable-font-embedding-when-saving-pdf.cs) | Disable Font Embedding When Saving PDF | `Document`, `PdfSaveOptions`, `Save` | The example opens an existing PDF, sets a default font in PdfSaveOptions to substitute missing fo... | -| [download-pdf-from-url-and-save](./download-pdf-from-url-and-save.cs) | Download PDF from URL and Save Locally with Aspose.Pdf | `Document`, `Save`, `Stream)` | Demonstrates downloading a PDF via HttpClient, loading it into an Aspose.Pdf Document from a stre... | -| [encrypt-pdf-aes128-verify-print-permissions](./encrypt-pdf-aes128-verify-print-permissions.cs) | Encrypt PDF with AES‑128 and Verify Print Permissions | `Document`, `Permissions`, `CryptoAlgorithm` | The example loads a PDF, applies AES‑128 encryption with user and owner passwords, sets printing ... | -| [encrypt-pdf-aes256-no-print](./encrypt-pdf-aes256-no-print.cs) | Encrypt PDF with AES‑256 and No Printing Permission | `Document`, `Encrypt`, `CryptoAlgorithm` | Demonstrates how to apply AES‑256 encryption to a PDF using Aspose.Pdf, set no permissions (disab... | -| [encrypt-pdf-allow-form-filling](./encrypt-pdf-allow-form-filling.cs) | Encrypt PDF Allowing Only Form Filling | `Document`, `Permissions`, `Encrypt` | The example loads a PDF, encrypts it with AES‑256, and sets permissions so that only form filling... | -| [encrypt-pdf-form-fill-permission](./encrypt-pdf-form-fill-permission.cs) | Encrypt PDF and Allow Only Form Filling | `Document`, `Permissions`, `CryptoAlgorithm` | Demonstrates how to encrypt a PDF with user and owner passwords, restrict permissions to form fil... | -| [encrypt-pdf-form-filling-permission](./encrypt-pdf-form-filling-permission.cs) | Encrypt PDF with Form Filling Permission Only | `Document`, `Permissions`, `CryptoAlgorithm` | Demonstrates how to encrypt a PDF using Aspose.Pdf, allowing only form filling and disabling cont... | -| [encrypt-pdf-owner-password-only](./encrypt-pdf-owner-password-only.cs) | Encrypt PDF with Owner Password Only | `Document`, `Permissions`, `Encrypt` | Shows how to encrypt a PDF using Aspose.Pdf by applying only an owner password, giving the owner ... | -| [encrypt-pdf-rc4-128-verify-size](./encrypt-pdf-rc4-128-verify-size.cs) | Encrypt PDF with 128‑bit RC4 and Verify Size Increase | `Document`, `Encrypt`, `Permissions` | Demonstrates how to encrypt a PDF using 128‑bit RC4 encryption with Aspose.Pdf and compare the or... | -| ... | | | *and 26 more files* | +| ... | | | *and 47 more files* | ## Category Statistics -- Total examples: 56 +- Total examples: 77 ## General Tips - See parent [AGENTS.md](../AGENTS.md) for: @@ -96,5 +96,5 @@ using (Document doc = new Document("input.pdf")) - Review code examples in this folder for basic-operations patterns -Updated: 2026-08-20 | Run: `20260820_001147_12d7b3` +Updated: 2026-09-10 | Run: `20260910_054408_87a7f4` diff --git a/basic-operations/README.md b/basic-operations/README.md new file mode 100644 index 000000000..03f39189e --- /dev/null +++ b/basic-operations/README.md @@ -0,0 +1,96 @@ +# Basic operations + +> **Basic operations** in PDF using C# / .NET -- **77** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. + +- Category: `basic-operations` +- Examples: 77 +- NuGet: `Aspose.PDF 26.8.0` -- target `net10.0` + +## Examples + +- [`add-blank-page-to-pdf.cs`](./add-blank-page-to-pdf.cs) -- Add blank page to pdf +- [`add-custom-xmp-metadata-to-pdf.cs`](./add-custom-xmp-metadata-to-pdf.cs) -- Add custom xmp metadata to pdf +- [`append-page-incremental-save.cs`](./append-page-incremental-save.cs) -- Append page incremental save +- [`batch-convert-pdf-to-pdfa-with-report.cs`](./batch-convert-pdf-to-pdfa-with-report.cs) -- Batch convert pdf to pdfa with report +- [`batch-convert-pdfs-to-pdfa-1b-high-compression.cs`](./batch-convert-pdfs-to-pdfa-1b-high-compression.cs) -- Batch convert pdfs to pdfa 1b high compression +- [`batch-convert-pdfs-to-pdfa-1b.cs`](./batch-convert-pdfs-to-pdfa-1b.cs) -- Batch convert pdfs to pdfa 1b +- [`batch-convert-pdfs-to-pdfa-1b__v2.cs`](./batch-convert-pdfs-to-pdfa-1b__v2.cs) -- Batch convert pdfs to pdfa 1b v2 +- [`batch-convert-pdfs-to-pdfa-with-csv-report.cs`](./batch-convert-pdfs-to-pdfa-with-csv-report.cs) -- Batch convert pdfs to pdfa with csv report +- [`batch-decrypt-encrypted-pdfs.cs`](./batch-decrypt-encrypted-pdfs.cs) -- Batch decrypt encrypted pdfs +- [`batch-encrypt-pdfs-from-filename.cs`](./batch-encrypt-pdfs-from-filename.cs) -- Batch encrypt pdfs from filename +- [`batch-encrypt-pdfs-in-directory.cs`](./batch-encrypt-pdfs-in-directory.cs) -- Batch encrypt pdfs in directory +- [`batch-encrypt-pdfs-with-configurable-passwords.cs`](./batch-encrypt-pdfs-with-configurable-passwords.cs) -- Batch encrypt pdfs with configurable passwords +- [`batch-encrypt-pdfs-with-deterministic-passwords.cs`](./batch-encrypt-pdfs-with-deterministic-passwords.cs) -- Batch encrypt pdfs with deterministic passwords +- [`batch-encrypt-pdfs.cs`](./batch-encrypt-pdfs.cs) -- Batch encrypt pdfs +- [`batch-split-pdf-by-page-ranges.cs`](./batch-split-pdf-by-page-ranges.cs) -- Batch split pdf by page ranges +- [`change-pdf-passwords.cs`](./change-pdf-passwords.cs) -- Change pdf passwords +- [`change-pdf-version-to-1-5-incremental-update.cs`](./change-pdf-version-to-1-5-incremental-update.cs) -- Change pdf version to 1 5 incremental update +- [`compress-pdf-default-settings.cs`](./compress-pdf-default-settings.cs) -- Compress pdf default settings +- [`compress-pdf-high-optimization.cs`](./compress-pdf-high-optimization.cs) -- Compress pdf high optimization +- [`convert-pdf-to-pdfa-1b.cs`](./convert-pdf-to-pdfa-1b.cs) -- Convert pdf to pdfa 1b +- [`convert-pdf-to-pdfa-1b__v2.cs`](./convert-pdf-to-pdfa-1b__v2.cs) -- Convert pdf to pdfa 1b v2 +- [`convert-pdf-to-pdfa1b.cs`](./convert-pdf-to-pdfa1b.cs) -- Convert pdf to pdfa1b +- [`convert-pdf-to-pdfa1b__v2.cs`](./convert-pdf-to-pdfa1b__v2.cs) -- Convert pdf to pdfa1b v2 +- [`convert-pdf-to-pdfx3-cmyk.cs`](./convert-pdf-to-pdfx3-cmyk.cs) -- Convert pdf to pdfx3 cmyk +- [`convert-pdf-to-pdfx3-preserve-icc.cs`](./convert-pdf-to-pdfx3-preserve-icc.cs) -- Convert pdf to pdfx3 preserve icc +- [`convert-pdf-to-pdfx3.cs`](./convert-pdf-to-pdfx3.cs) -- Convert pdf to pdfx3 +- [`create-pdfa1b-with-text-paragraph.cs`](./create-pdfa1b-with-text-paragraph.cs) -- Create pdfa1b with text paragraph +- [`create-pdfx3-document-three-pages.cs`](./create-pdfx3-document-three-pages.cs) -- Create pdfx3 document three pages +- [`decrypt-encrypted-pdf.cs`](./decrypt-encrypted-pdf.cs) -- Decrypt encrypted pdf +- [`disable-font-embedding-when-saving-pdf.cs`](./disable-font-embedding-when-saving-pdf.cs) -- Disable font embedding when saving pdf +- [`download-pdf-from-url-and-save-locally.cs`](./download-pdf-from-url-and-save-locally.cs) -- Download pdf from url and save locally +- [`download-pdf-from-url-and-save.cs`](./download-pdf-from-url-and-save.cs) -- Download pdf from url and save +- [`encrypt-pdf-aes128-high-quality-print.cs`](./encrypt-pdf-aes128-high-quality-print.cs) -- Encrypt pdf aes128 high quality print +- [`encrypt-pdf-aes128-verify-print-permissions.cs`](./encrypt-pdf-aes128-verify-print-permissions.cs) -- Encrypt pdf aes128 verify print permissions +- [`encrypt-pdf-aes256-disable-printing.cs`](./encrypt-pdf-aes256-disable-printing.cs) -- Encrypt pdf aes256 disable printing +- [`encrypt-pdf-aes256-no-print.cs`](./encrypt-pdf-aes256-no-print.cs) -- Encrypt pdf aes256 no print +- [`encrypt-pdf-allow-form-filling.cs`](./encrypt-pdf-allow-form-filling.cs) -- Encrypt pdf allow form filling +- [`encrypt-pdf-form-fill-permission.cs`](./encrypt-pdf-form-fill-permission.cs) -- Encrypt pdf form fill permission +- [`encrypt-pdf-form-filling-permission.cs`](./encrypt-pdf-form-filling-permission.cs) -- Encrypt pdf form filling permission +- [`encrypt-pdf-owner-password-aes256.cs`](./encrypt-pdf-owner-password-aes256.cs) -- Encrypt pdf owner password aes256 +- [`encrypt-pdf-owner-password-only.cs`](./encrypt-pdf-owner-password-only.cs) -- Encrypt pdf owner password only +- [`encrypt-pdf-rc4-128-verify-size.cs`](./encrypt-pdf-rc4-128-verify-size.cs) -- Encrypt pdf rc4 128 verify size +- [`encrypt-pdf-rc4-no-copy-permission.cs`](./encrypt-pdf-rc4-no-copy-permission.cs) -- Encrypt pdf rc4 no copy permission +- [`encrypt-pdf-rc4-verify-permissions.cs`](./encrypt-pdf-rc4-verify-permissions.cs) -- Encrypt pdf rc4 verify permissions +- [`encrypt-pdf-stream.cs`](./encrypt-pdf-stream.cs) -- Encrypt pdf stream +- [`encrypt-pdf-with-owner-user-passwords.cs`](./encrypt-pdf-with-owner-user-passwords.cs) -- Encrypt pdf with owner user passwords +- [`encrypt-pdf-with-user-password-only.cs`](./encrypt-pdf-with-user-password-only.cs) -- Encrypt pdf with user password only +- [`export-pdf-as-pdfx3-with-color-profiles.cs`](./export-pdf-as-pdfx3-with-color-profiles.cs) -- Export pdf as pdfx3 with color profiles +- [`export-pdf-pages-to-separate-files.cs`](./export-pdf-pages-to-separate-files.cs) -- Export pdf pages to separate files +- [`incremental-append-page-to-pdf.cs`](./incremental-append-page-to-pdf.cs) -- Incremental append page to pdf +- [`insert-pdf-page-into-another-pdf.cs`](./insert-pdf-page-into-another-pdf.cs) -- Insert pdf page into another pdf +- [`load-pdf-from-stream-set-version-1-4.cs`](./load-pdf-from-stream-set-version-1-4.cs) -- Load pdf from stream set version 1 4 +- [`load-pdf-memorystream-set-version-save.cs`](./load-pdf-memorystream-set-version-save.cs) -- Load pdf memorystream set version save +- [`load-pdf-with-custom-loadoptions-disable-font-embedding.cs`](./load-pdf-with-custom-loadoptions-disable-font-embedding.cs) -- Load pdf with custom loadoptions disable font embedding +- [`open-encrypted-pdf-without-password.cs`](./open-encrypted-pdf-without-password.cs) -- Open encrypted pdf without password +- [`open-pdf-from-filestream-and-save-copy.cs`](./open-pdf-from-filestream-and-save-copy.cs) -- Open pdf from filestream and save copy +- [`open-pdf-get-page-count.cs`](./open-pdf-get-page-count.cs) -- Open pdf get page count +- [`remove-third-page-from-pdf.cs`](./remove-third-page-from-pdf.cs) -- Remove third page from pdf +- [`rotate-all-pdf-pages-180-degrees.cs`](./rotate-all-pdf-pages-180-degrees.cs) -- Rotate all pdf pages 180 degrees +- [`rotate-pdf-page-3-180-degrees.cs`](./rotate-pdf-page-3-180-degrees.cs) -- Rotate pdf page 3 180 degrees +- [`rotate-second-pdf-page-90-degrees.cs`](./rotate-second-pdf-page-90-degrees.cs) -- Rotate second pdf page 90 degrees +- [`rotate-third-pdf-page-180-degrees.cs`](./rotate-third-pdf-page-180-degrees.cs) -- Rotate third pdf page 180 degrees +- [`save-pdf-to-memory-stream-and-write-to-file.cs`](./save-pdf-to-memory-stream-and-write-to-file.cs) -- Save pdf to memory stream and write to file +- [`save-pdf-to-memorystream-and-write-to-file.cs`](./save-pdf-to-memorystream-and-write-to-file.cs) -- Save pdf to memorystream and write to file +- [`set-pdf-document-title-and-verify.cs`](./set-pdf-document-title-and-verify.cs) -- Set pdf document title and verify +- [`set-pdf-metadata-author-title-subject.cs`](./set-pdf-metadata-author-title-subject.cs) -- Set pdf metadata author title subject +- [`split-multi-page-pdf-into-single-page-files.cs`](./split-multi-page-pdf-into-single-page-files.cs) -- Split multi page pdf into single page files +- [`split-pdf-at-page-10.cs`](./split-pdf-at-page-10.cs) -- Split pdf at page 10 +- [`split-pdf-at-page-ten.cs`](./split-pdf-at-page-ten.cs) -- Split pdf at page ten +- [`split-pdf-into-individual-pages.cs`](./split-pdf-into-individual-pages.cs) -- Split pdf into individual pages +- [`split-pdf-into-sections-by-page-ranges.cs`](./split-pdf-into-sections-by-page-ranges.cs) -- Split pdf into sections by page ranges +- [`split-pdf-into-single-page-folders.cs`](./split-pdf-into-single-page-folders.cs) -- Split pdf into single page folders +- [`update-pdf-author-metadata.cs`](./update-pdf-author-metadata.cs) -- Update pdf author metadata +- [`update-pdf-author-metadata__v2.cs`](./update-pdf-author-metadata__v2.cs) -- Update pdf author metadata v2 +- [`update-pdf-passwords.cs`](./update-pdf-passwords.cs) -- Update pdf passwords +- [`update-pdf-title-metadata.cs`](./update-pdf-title-metadata.cs) -- Update pdf title metadata +- [`update-pdf-version-to-1-5-incremental-save.cs`](./update-pdf-version-to-1-5-incremental-save.cs) -- Update pdf version to 1 5 incremental save + +## See Also + +- [`AGENTS.md`](./AGENTS.md) -- category-specific anti-patterns, API surface, and conventions for AI coding agents +- [`../AGENTS.md`](../AGENTS.md) -- repository-wide agent guide +- [`../README.md`](../README.md) -- full category index and project overview +- [Aspose.PDF for .NET docs](https://docs.aspose.com/pdf/net/) + +> Each `.cs` file is a standalone, build-validated console example. Drop into a fresh `dotnet new console` project, add the `Aspose.PDF` NuGet (version above), and run. diff --git a/basic-operations/index.json b/basic-operations/index.json index 2e55d7ee6..6fc502fc7 100644 --- a/basic-operations/index.json +++ b/basic-operations/index.json @@ -1,120 +1,102 @@ { "category": "basic-operations", "nuget_version": "26.8.0", - "last_updated": "2026-08-20T07:13:52Z", + "last_updated": "2026-09-10T12:45:08Z", "examples": { - "open-pdf-get-page-count": { - "title": "Open PDF and Retrieve Page Count", - "filename": "open-pdf-get-page-count.cs", - "description": "Shows how to open a PDF file from disk using Aspose.Pdf's Document class and obtain the total number of pages.", - "tags": [ - "pdf", - "document", - "page-count", - "file-exists", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.PageCollection", - "Aspose.Pdf.PageCollection.Count" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:13:52Z", - "status": "verified" - }, - "open-pdf-from-filestream-and-save-copy": { - "title": "Open PDF from FileStream and Save Copy", - "filename": "open-pdf-from-filestream-and-save-copy.cs", - "description": "Shows how to open a PDF document using a FileStream and then save it to a new file with the default Aspose.Pdf settings.", + "add-blank-page-to-pdf": { + "title": "Add Blank Page to PDF", + "filename": "add-blank-page-to-pdf.cs", + "description": "Shows how to load an existing PDF with Aspose.Pdf, insert an empty page at the end, and save the modified document.", "tags": [ "pdf", - "filestream", + "add-page", "aspose", - "save", - "csharp" + "csharp", + "document" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Document.Pages.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:13:52Z", "status": "verified" }, - "open-encrypted-pdf-without-password": { - "title": "Open Encrypted PDF Without Providing a Password", - "filename": "open-encrypted-pdf-without-password.cs", - "description": "Demonstrates how to attempt opening a password‑protected PDF using Aspose.Pdf and catch the InvalidPasswordException when no password is supplied.", + "add-custom-xmp-metadata-to-pdf": { + "title": "Add Custom XMP Metadata to PDF", + "filename": "add-custom-xmp-metadata-to-pdf.cs", + "description": "Shows how to load a PDF, create a custom XMP metadata packet, attach it to the document using Aspose.Pdf, and save the file while preserving the new metadata.", "tags": [ "pdf", - "encryption", - "exception-handling", + "xmp", + "metadata", "aspose.pdf", - "c#" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.InvalidPasswordException", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Document.Pages.Count" + "Aspose.Pdf.Document.SetXmpMetadata", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:13:52Z", "status": "verified" }, - "save-pdf-to-memorystream-and-write-to-file": { - "title": "Save PDF to MemoryStream and Write to File", - "filename": "save-pdf-to-memorystream-and-write-to-file.cs", - "description": "Demonstrates loading a PDF with Aspose.Pdf, saving it into a MemoryStream, and then writing the stream to a physical file.", - "tags": [ - "pdf", - "memorystream", - "file-io", - "aspose", - "csharp" - ], - "apis_used": [ - "Document", - "Document.Save" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:13:52Z", + "append-page-incremental-save": { + "title": "Append Page Incremental Save", + "filename": "append-page-incremental-save.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "convert-pdf-to-pdfa1b": { - "title": "Convert PDF to PDF/A-1b with Metadata Preservation", - "filename": "convert-pdf-to-pdfa1b.cs", - "description": "Demonstrates loading a PDF, converting it to PDF/A-1b compliance while preserving metadata, and saving the result using Aspose.Pdf.", + "batch-convert-pdf-to-pdfa-with-report": { + "title": "Batch Convert PDFs to PDF/A‑1b with Compression and Report", + "filename": "batch-convert-pdf-to-pdfa-with-report.cs", + "description": "Loads each PDF from a folder, converts it to PDF/A‑1b using high compression, saves the converted file, and generates a CSV summary report with file sizes and conversion status.", "tags": [ "pdfa", - "conversion", - "metadata", - "csharp", + "batch-conversion", + "compression", + "report", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Convert", + "Aspose.Pdf.PdfFormatConversionOptions", "Aspose.Pdf.PdfFormat", "Aspose.Pdf.ConvertErrorAction", + "Aspose.Pdf.Document.Convert", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:13:52Z", "status": "verified" }, - "convert-pdf-to-pdfx3": { - "title": "Convert PDF to PDF/X-3 while Preserving Color Profiles", - "filename": "convert-pdf-to-pdfx3.cs", - "description": "Shows how to load a PDF, convert it to PDF/X-3 compliance (which retains embedded ICC color profiles), and save the resulting document.", + "batch-convert-pdfs-to-pdfa-1b-high-compression": { + "title": "Batch Convert Pdfs To Pdfa 1B High Compression", + "filename": "batch-convert-pdfs-to-pdfa-1b-high-compression.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "batch-convert-pdfs-to-pdfa-1b": { + "title": "Batch Convert PDFs to PDF/A‑1b", + "filename": "batch-convert-pdfs-to-pdfa-1b.cs", + "description": "Shows how to iterate through a folder of PDF files, convert each to PDF/A‑1b compliance with Aspose.Pdf, and save the converted files to an output directory.", "tags": [ - "pdfx3", + "pdf", + "pdfa", + "batch-processing", "conversion", - "color-profiles", - "aspose-pdf", - "csharp" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", @@ -123,42 +105,52 @@ "Aspose.Pdf.ConvertErrorAction", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:13:52Z", "status": "verified" }, - "encrypt-pdf-with-owner-user-passwords": { - "title": "Encrypt PDF with Owner and User Passwords and Restrict Printing", - "filename": "encrypt-pdf-with-owner-user-passwords.cs", - "description": "Shows how to load a PDF, apply AES‑256 encryption using user and owner passwords, and limit printing by setting specific permissions.", + "batch-convert-pdfs-to-pdfa-1b__v2": { + "title": "Batch Convert Pdfs To Pdfa 1B__V2", + "filename": "batch-convert-pdfs-to-pdfa-1b__v2.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "batch-convert-pdfs-to-pdfa-with-csv-report": { + "title": "Batch Convert PDFs to PDF/A-1b with CSV Report", + "filename": "batch-convert-pdfs-to-pdfa-with-csv-report.cs", + "description": "Processes all PDF files in a folder, converts each to PDF/A‑1b using Aspose.Pdf, writes individual conversion logs, and records the results in a CSV report.", "tags": [ - "pdf-encryption", - "permissions", - "aes-256", - "owner-password", - "user-password" + "pdf", + "pdfa", + "batch", + "csv", + "conversion" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm" + "Aspose.Pdf.PdfFormat", + "Aspose.Pdf.ConvertErrorAction", + "Document.Convert", + "Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:13:52Z", "status": "verified" }, - "decrypt-encrypted-pdf": { - "title": "Decrypt Encrypted PDF with User Password", - "filename": "decrypt-encrypted-pdf.cs", - "description": "Demonstrates opening a password‑protected PDF, decrypting it, and saving an unprotected copy using Aspose.Pdf.", + "batch-decrypt-encrypted-pdfs": { + "title": "Batch Decrypt Encrypted PDFs with Owner Password", + "filename": "batch-decrypt-encrypted-pdfs.cs", + "description": "Demonstrates how to iterate through a folder of encrypted PDF files, open each using a shared owner password, remove the encryption, and save an unprotected copy.", "tags": [ - "pdf", - "decryption", - "password", - "aspose", - "csharp" + "pdf decryption", + "batch processing", + "owner password", + "Aspose.Pdf", + "file handling" ], "apis_used": [ "Aspose.Pdf.Document", @@ -170,80 +162,102 @@ "generated_at": "2026-08-20T07:13:52Z", "status": "verified" }, - "add-blank-page-to-pdf": { - "title": "Add Blank Page to PDF", - "filename": "add-blank-page-to-pdf.cs", - "description": "Shows how to load an existing PDF with Aspose.Pdf, insert an empty page at the end, and save the modified document.", + "batch-encrypt-pdfs-from-filename": { + "title": "Batch Encrypt Pdfs From Filename", + "filename": "batch-encrypt-pdfs-from-filename.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "batch-encrypt-pdfs-in-directory": { + "title": "Batch Encrypt PDFs in a Directory", + "filename": "batch-encrypt-pdfs-in-directory.cs", + "description": "Demonstrates how to encrypt all PDF files in a folder using a common user and owner password, applying specific permissions and saving the encrypted copies to a separate directory.", "tags": [ "pdf", - "add-page", + "encryption", + "batch", "aspose", - "csharp", - "document" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Permissions", + "Aspose.Pdf.CryptoAlgorithm" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:13:52Z", "status": "verified" }, - "insert-pdf-page-into-another-pdf": { - "title": "Insert PDF Page into Another PDF", - "filename": "insert-pdf-page-into-another-pdf.cs", - "description": "Demonstrates loading two PDF documents, selecting a page from the source PDF, inserting it into a specific position of the target PDF using Pages.Insert, and saving the merged result.", + "batch-encrypt-pdfs-with-configurable-passwords": { + "title": "Batch Encrypt Pdfs With Configurable Passwords", + "filename": "batch-encrypt-pdfs-with-configurable-passwords.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "batch-encrypt-pdfs-with-deterministic-passwords": { + "title": "Batch Encrypt PDFs with Deterministic Passwords", + "filename": "batch-encrypt-pdfs-with-deterministic-passwords.cs", + "description": "Demonstrates how to encrypt multiple PDF files in a folder using Aspose.Pdf, generating a unique password for each file from its name and logging the passwords securely.", "tags": [ - "pdf", - "insert-page", + "pdf-encryption", + "batch-processing", "aspose-pdf", "csharp", - "document" + "password-generation" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Pages", - "Aspose.Pdf.Pages.Insert", + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Permissions", + "Aspose.Pdf.CryptoAlgorithm", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:13:52Z", "status": "verified" }, - "remove-third-page-from-pdf": { - "title": "Remove Third Page from PDF", - "filename": "remove-third-page-from-pdf.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, delete the third page, and save the resulting document.", + "batch-encrypt-pdfs": { + "title": "Batch Encrypt PDFs with User Passwords", + "filename": "batch-encrypt-pdfs.cs", + "description": "Demonstrates reading a JSON configuration, encrypting multiple PDF files with individual user passwords and a common owner password using Aspose.Pdf, and logging the outcomes.", "tags": [ "pdf", - "delete-page", - "aspose-pdf", - "csharp", - "document-manipulation" + "encryption", + "batch", + "aspose.pdf", + "json" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.PageCollection.Delete", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Permissions" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:13:52Z", "status": "verified" }, - "split-multi-page-pdf-into-single-page-files": { - "title": "Split Multi-Page PDF into Single-Page Files", - "filename": "split-multi-page-pdf-into-single-page-files.cs", - "description": "Shows how to load a multi-page PDF and split it into separate one-page PDF documents using Aspose.Pdf's Document class and page collection.", + "batch-split-pdf-by-page-ranges": { + "title": "Batch Split PDF into Sections by Page Ranges", + "filename": "batch-split-pdf-by-page-ranges.cs", + "description": "Shows how to read page range definitions from a configuration file and split a PDF into separate documents using Aspose.Pdf.", "tags": [ "pdf", "split", - "pages", - "aspose.pdf", - "c#" + "page-ranges", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", @@ -252,222 +266,209 @@ "Aspose.Pdf.PageCollection.Add", "Aspose.Pdf.PageCollection.Count" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:13:52Z", "status": "verified" }, - "batch-convert-pdfs-to-pdfa-1b": { - "title": "Batch Convert PDFs to PDF/A‑1b", - "filename": "batch-convert-pdfs-to-pdfa-1b.cs", - "description": "Shows how to iterate through a folder of PDF files, convert each to PDF/A‑1b compliance with Aspose.Pdf, and save the converted files to an output directory.", + "change-pdf-passwords": { + "title": "Change Pdf Passwords", + "filename": "change-pdf-passwords.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "change-pdf-version-to-1-5-incremental-update": { + "title": "Change Pdf Version To 1 5 Incremental Update", + "filename": "change-pdf-version-to-1-5-incremental-update.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "compress-pdf-default-settings": { + "title": "Compress PDF with Default Settings using Aspose.Pdf", + "filename": "compress-pdf-default-settings.cs", + "description": "Demonstrates loading a PDF, saving it with Aspose.Pdf's default compression, and comparing the file size before and after compression.", "tags": [ "pdf", - "pdfa", - "batch-processing", - "conversion", - "aspose" + "compression", + "filesize", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Convert", - "Aspose.Pdf.PdfFormat", - "Aspose.Pdf.ConvertErrorAction", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:13:52Z", "status": "verified" }, - "encrypt-pdf-stream": { - "title": "Encrypt PDF Stream with Passwords", - "filename": "encrypt-pdf-stream.cs", - "description": "Shows how to load a PDF from a stream, apply password protection with specific permissions using AES‑256 encryption, and write the secured PDF back to an output stream.", + "compress-pdf-high-optimization": { + "title": "Compress PDF with High Optimization and Compare File Size", + "filename": "compress-pdf-high-optimization.cs", + "description": "Loads a PDF, applies high‑level compression using Aspose.Pdf optimization options, saves the result, and prints the original and optimized file sizes.", "tags": [ "pdf", - "encryption", - "stream", - "permissions", - "aspnet" + "compression", + "optimization", + "size-reduction", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Permissions", + "Aspose.Pdf.Optimization.OptimizationOptions", + "Aspose.Pdf.Optimization.OptimizationOptions.All", + "Aspose.Pdf.Document.OptimizeResources", + "Aspose.Pdf.PdfSaveOptions", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:13:52Z", "status": "verified" }, - "create-pdfx3-document-three-pages": { - "title": "Create PDF/X‑3 Document with Three Pages", - "filename": "create-pdfx3-document-three-pages.cs", - "description": "Shows how to create a new PDF, add three blank pages, convert it to PDF/X‑3 compliance, and save the resulting file.", + "convert-pdf-to-pdfa-1b": { + "title": "Convert PDF to PDF/A-1b preserving structure", + "filename": "convert-pdf-to-pdfa-1b.cs", + "description": "Demonstrates loading a PDF with Aspose.Pdf, configuring PDF/A‑1b conversion options, performing the conversion, and saving the resulting PDF/A‑1b file.", "tags": [ "pdf", - "pdfx-3", - "aspose.pdf", - "document-creation", - "conversion" + "pdfa", + "conversion", + "aspose", + "fonts" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages.Add", + "Aspose.Pdf.PdfFormatConversionOptions", + "Aspose.Pdf.PdfFormat", + "Aspose.Pdf.ConvertErrorAction", "Aspose.Pdf.Document.Convert", - "Aspose.Pdf.PdfFormat.PDF_X_3", - "Aspose.Pdf.Facades.ConvertErrorAction.Delete", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:13:52Z", "status": "verified" }, - "update-pdf-title-metadata": { - "title": "Update PDF Title Metadata from Byte Array", - "filename": "update-pdf-title-metadata.cs", - "description": "Demonstrates loading a PDF from a byte array, changing its title metadata, and saving the modified document to disk using Aspose.Pdf.", + "convert-pdf-to-pdfa-1b__v2": { + "title": "Convert PDF to PDF/A‑1b Compliance", + "filename": "convert-pdf-to-pdfa-1b__v2.cs", + "description": "Loads a PDF file, converts it to PDF/A‑1b compliance while logging conversion errors, and saves the compliant document.", "tags": [ - "pdf", - "metadata", - "title", - "byte-array", - "aspose-pdf" + "pdf/a", + "conversion", + "aspose.pdf", + "document", + "compliance" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Info", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Document.Pages.Add" + "Aspose.Pdf.Document.Convert", + "Aspose.Pdf.PdfFormat", + "Aspose.Pdf.ConvertErrorAction", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:13:52Z", "status": "verified" }, - "disable-font-embedding-when-saving-pdf": { - "title": "Disable Font Embedding When Saving PDF", - "filename": "disable-font-embedding-when-saving-pdf.cs", - "description": "The example opens an existing PDF, sets a default font in PdfSaveOptions to substitute missing fonts (preventing font embedding), and saves the document with the custom options.", + "convert-pdf-to-pdfa1b": { + "title": "Convert PDF to PDF/A-1b with Metadata Preservation", + "filename": "convert-pdf-to-pdfa1b.cs", + "description": "Demonstrates loading a PDF, converting it to PDF/A-1b compliance while preserving metadata, and saving the result using Aspose.Pdf.", "tags": [ - "pdf", - "font-embedding", - "save-options", - "Aspose.Pdf", - "csharp" + "pdfa", + "conversion", + "metadata", + "csharp", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PdfSaveOptions", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.PdfSaveOptions.DefaultFontName", - "Aspose.Pdf.Document..ctor(Stream)" + "Aspose.Pdf.Document.Convert", + "Aspose.Pdf.PdfFormat", + "Aspose.Pdf.ConvertErrorAction", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:13:52Z", "status": "verified" }, - "incremental-append-page-to-pdf": { - "title": "Incrementally Append a Page to an Existing PDF", - "filename": "incremental-append-page-to-pdf.cs", - "description": "Shows how to open a PDF with read/write access and save it incrementally, preserving the original content while adding a new blank page with text.", - "tags": [ - "incremental-update", - "append-page", - "pdf", - "aspose-pdf", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Pages.Add" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:13:52Z", + "convert-pdf-to-pdfa1b__v2": { + "title": "Convert Pdf To Pdfa1B__V2", + "filename": "convert-pdf-to-pdfa1b__v2.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "compress-pdf-default-settings": { - "title": "Compress PDF with Default Settings using Aspose.Pdf", - "filename": "compress-pdf-default-settings.cs", - "description": "Demonstrates loading a PDF, saving it with Aspose.Pdf's default compression, and comparing the file size before and after compression.", + "convert-pdf-to-pdfx3-cmyk": { + "title": "Convert PDF to PDF/X-3 with CMYK Color Space", + "filename": "convert-pdf-to-pdfx3-cmyk.cs", + "description": "Shows how to convert a PDF to PDF/X-3 compliance while forcing all colors to CMYK using an ICC profile with Aspose.Pdf.", "tags": [ - "pdf", - "compression", - "filesize", - "aspose", - "csharp" + "pdfx-3", + "cmyk", + "icc-profile", + "conversion", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.OutputIntent", + "Aspose.Pdf.Document.Convert", + "Aspose.Pdf.PdfFormat", + "Aspose.Pdf.ConvertErrorAction" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:13:52Z", "status": "verified" }, - "export-pdf-pages-to-separate-files": { - "title": "Export PDF Pages to Separate Files", - "filename": "export-pdf-pages-to-separate-files.cs", - "description": "Shows how to split a PDF into individual page PDFs by iterating through each page with Aspose.Pdf and saving each page as its own document.", + "convert-pdf-to-pdfx3-preserve-icc": { + "title": "Convert PDF to PDF/X‑3 Preserving ICC Profile", + "filename": "convert-pdf-to-pdfx3-preserve-icc.cs", + "description": "Demonstrates loading a PDF with Aspose.Pdf, converting it to PDF/X‑3 format while keeping the existing ICC color profile, and saving the result.", "tags": [ - "pdf", - "split", - "export", - "pages", - "aspose" + "pdf conversion", + "pdfx-3", + "icc profile", + "aspose.pdf", + "c#" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.PageCollection.Add", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.PageCollection.Count" + "Aspose.Pdf.PdfFormatConversionOptions", + "Aspose.Pdf.PdfFormat", + "Aspose.Pdf.Document.Convert", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:13:52Z", "status": "verified" }, - "load-pdf-memorystream-set-version-save": { - "title": "Load PDF from MemoryStream, Change Version to 1.4, and Save", - "filename": "load-pdf-memorystream-set-version-save.cs", - "description": "Demonstrates loading a PDF from a MemoryStream, converting it to PDF version 1.4 using the Convert method, and saving the result to the file system.", + "convert-pdf-to-pdfx3": { + "title": "Convert PDF to PDF/X-3 while Preserving Color Profiles", + "filename": "convert-pdf-to-pdfx3.cs", + "description": "Shows how to load a PDF, convert it to PDF/X-3 compliance (which retains embedded ICC color profiles), and save the resulting document.", "tags": [ - "pdf", - "memorystream", - "version", - "convert", - "save" + "pdfx3", + "conversion", + "color-profiles", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Convert", "Aspose.Pdf.PdfFormat", "Aspose.Pdf.ConvertErrorAction", - "Document.Convert", - "Document.Save" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:13:52Z", - "status": "verified" - }, - "encrypt-pdf-form-filling-permission": { - "title": "Encrypt PDF with Form Filling Permission Only", - "filename": "encrypt-pdf-form-filling-permission.cs", - "description": "Demonstrates how to encrypt a PDF using Aspose.Pdf, allowing only form filling and disabling content extraction by setting appropriate permissions.", - "tags": [ - "pdf-encryption", - "permissions", - "form-filling", - "Aspose.Pdf", - "C#" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Document.Encrypt", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", @@ -498,82 +499,40 @@ "generated_at": "2026-08-20T07:13:52Z", "status": "verified" }, - "rotate-second-pdf-page-90-degrees": { - "title": "Rotate Second PDF Page 90 Degrees", - "filename": "rotate-second-pdf-page-90-degrees.cs", - "description": "Demonstrates how to open a PDF with Aspose.Pdf, rotate the second page 90° clockwise, and save the modified document.", + "create-pdfx3-document-three-pages": { + "title": "Create PDF/X‑3 Document with Three Pages", + "filename": "create-pdfx3-document-three-pages.cs", + "description": "Shows how to create a new PDF, add three blank pages, convert it to PDF/X‑3 compliance, and save the resulting file.", "tags": [ "pdf", - "rotate", - "page", - "aspose-pdf", - "csharp" + "pdfx-3", + "aspose.pdf", + "document-creation", + "conversion" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Page", - "Aspose.Pdf.Page.Rotate", - "Aspose.Pdf.Rotation" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:13:52Z", - "status": "verified" - }, - "update-pdf-author-metadata": { - "title": "Update PDF Author Metadata with Aspose.Pdf", - "filename": "update-pdf-author-metadata.cs", - "description": "Shows how to open a PDF using a FileInfo object, modify its Author metadata, and save the changes back to the original file.", - "tags": [ - "pdf", - "metadata", - "author", - "aspose", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.DocumentInfo", - "Aspose.Pdf.Document.Info", + "Aspose.Pdf.Document.Pages.Add", + "Aspose.Pdf.Document.Convert", + "Aspose.Pdf.PdfFormat.PDF_X_3", + "Aspose.Pdf.Facades.ConvertErrorAction.Delete", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:13:52Z", "status": "verified" }, - "batch-encrypt-pdfs-in-directory": { - "title": "Batch Encrypt PDFs in a Directory", - "filename": "batch-encrypt-pdfs-in-directory.cs", - "description": "Demonstrates how to encrypt all PDF files in a folder using a common user and owner password, applying specific permissions and saving the encrypted copies to a separate directory.", + "decrypt-encrypted-pdf": { + "title": "Decrypt Encrypted PDF with User Password", + "filename": "decrypt-encrypted-pdf.cs", + "description": "Demonstrates opening a password‑protected PDF, decrypting it, and saving an unprotected copy using Aspose.Pdf.", "tags": [ "pdf", - "encryption", - "batch", + "decryption", + "password", "aspose", "csharp" ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:13:52Z", - "status": "verified" - }, - "batch-decrypt-encrypted-pdfs": { - "title": "Batch Decrypt Encrypted PDFs with Owner Password", - "filename": "batch-decrypt-encrypted-pdfs.cs", - "description": "Demonstrates how to iterate through a folder of encrypted PDF files, open each using a shared owner password, remove the encryption, and save an unprotected copy.", - "tags": [ - "pdf decryption", - "batch processing", - "owner password", - "Aspose.Pdf", - "file handling" - ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Document.Decrypt", @@ -584,50 +543,36 @@ "generated_at": "2026-08-20T07:13:52Z", "status": "verified" }, - "convert-pdf-to-pdfa-1b": { - "title": "Convert PDF to PDF/A-1b preserving structure", - "filename": "convert-pdf-to-pdfa-1b.cs", - "description": "Demonstrates loading a PDF with Aspose.Pdf, configuring PDF/A‑1b conversion options, performing the conversion, and saving the resulting PDF/A‑1b file.", + "disable-font-embedding-when-saving-pdf": { + "title": "Disable Font Embedding When Saving PDF", + "filename": "disable-font-embedding-when-saving-pdf.cs", + "description": "The example opens an existing PDF, sets a default font in PdfSaveOptions to substitute missing fonts (preventing font embedding), and saves the document with the custom options.", "tags": [ "pdf", - "pdfa", - "conversion", - "aspose", - "fonts" + "font-embedding", + "save-options", + "Aspose.Pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PdfFormatConversionOptions", - "Aspose.Pdf.PdfFormat", - "Aspose.Pdf.ConvertErrorAction", - "Aspose.Pdf.Document.Convert", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.PdfSaveOptions", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.PdfSaveOptions.DefaultFontName", + "Aspose.Pdf.Document..ctor(Stream)" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:13:52Z", "status": "verified" }, - "compress-pdf-high-optimization": { - "title": "Compress PDF with High Optimization and Compare File Size", - "filename": "compress-pdf-high-optimization.cs", - "description": "Loads a PDF, applies high‑level compression using Aspose.Pdf optimization options, saves the result, and prints the original and optimized file sizes.", - "tags": [ - "pdf", - "compression", - "optimization", - "size-reduction", - "aspose" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Optimization.OptimizationOptions", - "Aspose.Pdf.Optimization.OptimizationOptions.All", - "Aspose.Pdf.Document.OptimizeResources", - "Aspose.Pdf.PdfSaveOptions", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:13:52Z", + "download-pdf-from-url-and-save-locally": { + "title": "Download Pdf From Url And Save Locally", + "filename": "download-pdf-from-url-and-save-locally.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, "download-pdf-from-url-and-save": { @@ -650,6 +595,48 @@ "generated_at": "2026-08-20T07:13:52Z", "status": "verified" }, + "encrypt-pdf-aes128-high-quality-print": { + "title": "Encrypt Pdf Aes128 High Quality Print", + "filename": "encrypt-pdf-aes128-high-quality-print.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "encrypt-pdf-aes128-verify-print-permissions": { + "title": "Encrypt PDF with AES‑128 and Verify Print Permissions", + "filename": "encrypt-pdf-aes128-verify-print-permissions.cs", + "description": "The example loads a PDF, applies AES‑128 encryption with user and owner passwords, sets printing and high‑quality printing permissions, saves the encrypted file, and then opens it to verify the applied permissions.", + "tags": [ + "encryption", + "aes-128", + "printing", + "permissions", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Permissions", + "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:13:52Z", + "status": "verified" + }, + "encrypt-pdf-aes256-disable-printing": { + "title": "Encrypt Pdf Aes256 Disable Printing", + "filename": "encrypt-pdf-aes256-disable-printing.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "encrypt-pdf-aes256-no-print": { "title": "Encrypt PDF with AES‑256 and No Printing Permission", "filename": "encrypt-pdf-aes256-no-print.cs", @@ -673,196 +660,218 @@ "generated_at": "2026-08-20T07:13:52Z", "status": "verified" }, - "update-pdf-version-to-1-5-incremental-save": { - "title": "Update PDF Version to 1.5 with Incremental Save", - "filename": "update-pdf-version-to-1-5-incremental-save.cs", - "description": "Loads a PDF, converts it to PDF version 1.5 using Document.Convert, and saves it back with incremental update enabled.", + "encrypt-pdf-allow-form-filling": { + "title": "Encrypt PDF Allowing Only Form Filling", + "filename": "encrypt-pdf-allow-form-filling.cs", + "description": "The example loads a PDF, encrypts it with AES‑256, and sets permissions so that only form filling is allowed, then saves the protected file.", "tags": [ - "pdf-version", - "incremental-save", - "aspose-pdf", - "convert", - "document" + "pdf", + "encryption", + "permissions", + "form-filling", + "aes256" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Convert", - "Aspose.Pdf.PdfFormat", - "Aspose.Pdf.ConvertErrorAction", - "Aspose.Pdf.PdfSaveOptions" + "Aspose.Pdf.Permissions", + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:13:52Z", "status": "verified" }, - "update-pdf-passwords": { - "title": "Update Passwords of an Encrypted PDF", - "filename": "update-pdf-passwords.cs", - "description": "Shows how to open a password‑protected PDF using the owner password, change its user and owner passwords, and save the PDF with the new credentials.", + "encrypt-pdf-form-fill-permission": { + "title": "Encrypt PDF and Allow Only Form Filling", + "filename": "encrypt-pdf-form-fill-permission.cs", + "description": "Demonstrates how to encrypt a PDF with user and owner passwords, restrict permissions to form filling only, and disable printing using Aspose.Pdf.", "tags": [ "pdf", "encryption", - "password", - "aspose.pdf", - "c#" + "permissions", + "form-filling", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.ChangePasswords", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.InvalidPasswordException" + "Aspose.Pdf.Permissions", + "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:13:52Z", "status": "verified" }, - "split-pdf-at-page-10": { - "title": "Split PDF into Two Parts at Page 10", - "filename": "split-pdf-at-page-10.cs", - "description": "Shows how to split a PDF document into two separate files at page ten using Aspose.Pdf, with descriptive output filenames.", + "encrypt-pdf-form-filling-permission": { + "title": "Encrypt PDF with Form Filling Permission Only", + "filename": "encrypt-pdf-form-filling-permission.cs", + "description": "Demonstrates how to encrypt a PDF using Aspose.Pdf, allowing only form filling and disabling content extraction by setting appropriate permissions.", "tags": [ - "pdf", - "split", - "pages", - "aspose", - "csharp" + "pdf-encryption", + "permissions", + "form-filling", + "Aspose.Pdf", + "C#" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.PageCollection.Add", - "Aspose.Pdf.PageCollection.Count", + "Aspose.Pdf.Permissions", + "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.Encrypt", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:13:52Z", "status": "verified" }, - "set-pdf-document-title-and-verify": { - "title": "Set PDF Document Title and Verify It", - "filename": "set-pdf-document-title-and-verify.cs", - "description": "Demonstrates how to open a PDF with Aspose.Pdf, set its document title property, save the file, and then read back the title to confirm the change.", + "encrypt-pdf-owner-password-aes256": { + "title": "Encrypt Pdf Owner Password Aes256", + "filename": "encrypt-pdf-owner-password-aes256.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "encrypt-pdf-owner-password-only": { + "title": "Encrypt PDF with Owner Password Only", + "filename": "encrypt-pdf-owner-password-only.cs", + "description": "Shows how to encrypt a PDF using Aspose.Pdf by applying only an owner password, giving the owner full access and restricting all user permissions.", "tags": [ - "pdf", - "title", - "metadata", - "aspose", - "csharp" + "pdf encryption", + "owner password", + "permissions", + "aes-256", + "aspose.pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.SetTitle", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Info", - "Aspose.Pdf.DocumentInfo.Title" + "Aspose.Pdf.Permissions", + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:13:52Z", "status": "verified" }, - "convert-pdf-to-pdfx3-cmyk": { - "title": "Convert PDF to PDF/X-3 with CMYK Color Space", - "filename": "convert-pdf-to-pdfx3-cmyk.cs", - "description": "Shows how to convert a PDF to PDF/X-3 compliance while forcing all colors to CMYK using an ICC profile with Aspose.Pdf.", + "encrypt-pdf-rc4-128-verify-size": { + "title": "Encrypt PDF with 128‑bit RC4 and Verify Size Increase", + "filename": "encrypt-pdf-rc4-128-verify-size.cs", + "description": "Demonstrates how to encrypt a PDF using 128‑bit RC4 encryption with Aspose.Pdf and compare the original and encrypted file sizes.", "tags": [ - "pdfx-3", - "cmyk", - "icc-profile", - "conversion", - "aspose-pdf" + "pdf encryption", + "rc4", + "aspose.pdf", + "file size", + "c#" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.OutputIntent", - "Aspose.Pdf.Document.Convert", - "Aspose.Pdf.PdfFormat", - "Aspose.Pdf.ConvertErrorAction" + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Permissions", + "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:13:52Z", "status": "verified" }, - "batch-convert-pdfs-to-pdfa-with-csv-report": { - "title": "Batch Convert PDFs to PDF/A-1b with CSV Report", - "filename": "batch-convert-pdfs-to-pdfa-with-csv-report.cs", - "description": "Processes all PDF files in a folder, converts each to PDF/A‑1b using Aspose.Pdf, writes individual conversion logs, and records the results in a CSV report.", + "encrypt-pdf-rc4-no-copy-permission": { + "title": "Encrypt PDF with RC4 and Restrict Copy Permission", + "filename": "encrypt-pdf-rc4-no-copy-permission.cs", + "description": "Demonstrates how to encrypt a PDF using the RC4 128‑bit algorithm with Aspose.Pdf, set permissions to allow only printing (disabling copy), and programmatically verify the applied security settings.", "tags": [ "pdf", - "pdfa", - "batch", - "csv", - "conversion" + "encryption", + "rc4", + "permissions", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PdfFormat", - "Aspose.Pdf.ConvertErrorAction", - "Document.Convert", - "Document.Save" + "Aspose.Pdf.Permissions", + "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Permissions" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:13:52Z", "status": "verified" }, - "rotate-pdf-page-3-180-degrees": { - "title": "Rotate PDF Page 3 by 180 Degrees", - "filename": "rotate-pdf-page-3-180-degrees.cs", - "description": "Shows how to load a PDF (or from a byte array), rotate the third page 180°, and save the modified document.", + "encrypt-pdf-rc4-verify-permissions": { + "title": "Encrypt Pdf Rc4 Verify Permissions", + "filename": "encrypt-pdf-rc4-verify-permissions.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "encrypt-pdf-stream": { + "title": "Encrypt PDF Stream with Passwords", + "filename": "encrypt-pdf-stream.cs", + "description": "Shows how to load a PDF from a stream, apply password protection with specific permissions using AES‑256 encryption, and write the secured PDF back to an output stream.", "tags": [ "pdf", - "rotate", - "page", - "aspose", - "csharp" + "encryption", + "stream", + "permissions", + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rotation", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Pages" + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Permissions", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:13:52Z", "status": "verified" }, - "encrypt-pdf-with-user-password-only": { - "title": "Encrypt PDF with User Password Only", - "filename": "encrypt-pdf-with-user-password-only.cs", - "description": "Shows how to encrypt a PDF using Aspose.Pdf by applying a user password (leaving the owner password empty) and limiting permissions to viewing/printing.", + "encrypt-pdf-with-owner-user-passwords": { + "title": "Encrypt PDF with Owner and User Passwords and Restrict Printing", + "filename": "encrypt-pdf-with-owner-user-passwords.cs", + "description": "Shows how to load a PDF, apply AES‑256 encryption using user and owner passwords, and limit printing by setting specific permissions.", "tags": [ - "pdf encryption", - "user password", + "pdf-encryption", "permissions", - "Aspose.Pdf", - "C#" + "aes-256", + "owner-password", + "user-password" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Document.Save", "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.CryptoAlgorithm" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:13:52Z", "status": "verified" }, - "encrypt-pdf-allow-form-filling": { - "title": "Encrypt PDF Allowing Only Form Filling", - "filename": "encrypt-pdf-allow-form-filling.cs", - "description": "The example loads a PDF, encrypts it with AES‑256, and sets permissions so that only form filling is allowed, then saves the protected file.", + "encrypt-pdf-with-user-password-only": { + "title": "Encrypt PDF with User Password Only", + "filename": "encrypt-pdf-with-user-password-only.cs", + "description": "Shows how to encrypt a PDF using Aspose.Pdf by applying a user password (leaving the owner password empty) and limiting permissions to viewing/printing.", "tags": [ - "pdf", - "encryption", + "pdf encryption", + "user password", "permissions", - "form-filling", - "aes256" + "Aspose.Pdf", + "C#" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Permissions", "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Permissions", "Aspose.Pdf.CryptoAlgorithm", "Aspose.Pdf.Document.Save" ], @@ -870,174 +879,200 @@ "generated_at": "2026-08-20T07:13:52Z", "status": "verified" }, - "split-pdf-into-individual-pages": { - "title": "Split PDF into Individual Pages and Save to Separate Folders", - "filename": "split-pdf-into-individual-pages.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, extract each page into its own Document, and save each page as a separate PDF file inside a dedicated folder.", + "export-pdf-as-pdfx3-with-color-profiles": { + "title": "Export Pdf As Pdfx3 With Color Profiles", + "filename": "export-pdf-as-pdfx3-with-color-profiles.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "export-pdf-pages-to-separate-files": { + "title": "Export PDF Pages to Separate Files", + "filename": "export-pdf-pages-to-separate-files.cs", + "description": "Shows how to split a PDF into individual page PDFs by iterating through each page with Aspose.Pdf and saving each page as its own document.", "tags": [ "pdf", "split", + "export", "pages", - "aspose", - "filesystem" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.PageCollection.Add", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.PageCollection.Count" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:13:52Z", "status": "verified" }, - "update-pdf-author-metadata__v2": { - "title": "Update PDF Author Metadata", - "filename": "update-pdf-author-metadata__v2.cs", - "description": "Loads a PDF file, replaces its Author metadata with the current user name, and saves the updated document.", + "incremental-append-page-to-pdf": { + "title": "Incrementally Append a Page to an Existing PDF", + "filename": "incremental-append-page-to-pdf.cs", + "description": "Shows how to open a PDF with read/write access and save it incrementally, preserving the original content while adding a new blank page with text.", "tags": [ + "incremental-update", + "append-page", "pdf", - "metadata", - "author", - "aspose.pdf", + "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.DocumentInfo", - "Aspose.Pdf.Document.Info", - "Aspose.Pdf.DocumentInfo.Author", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Pages.Add" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:13:52Z", "status": "verified" }, - "encrypt-pdf-rc4-128-verify-size": { - "title": "Encrypt PDF with 128‑bit RC4 and Verify Size Increase", - "filename": "encrypt-pdf-rc4-128-verify-size.cs", - "description": "Demonstrates how to encrypt a PDF using 128‑bit RC4 encryption with Aspose.Pdf and compare the original and encrypted file sizes.", + "insert-pdf-page-into-another-pdf": { + "title": "Insert PDF Page into Another PDF", + "filename": "insert-pdf-page-into-another-pdf.cs", + "description": "Demonstrates loading two PDF documents, selecting a page from the source PDF, inserting it into a specific position of the target PDF using Pages.Insert, and saving the merged result.", "tags": [ - "pdf encryption", - "rc4", - "aspose.pdf", - "file size", - "c#" + "pdf", + "insert-page", + "aspose-pdf", + "csharp", + "document" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Page", + "Aspose.Pdf.Pages", + "Aspose.Pdf.Pages.Insert", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:13:52Z", "status": "verified" }, - "batch-encrypt-pdfs": { - "title": "Batch Encrypt PDFs with User Passwords", - "filename": "batch-encrypt-pdfs.cs", - "description": "Demonstrates reading a JSON configuration, encrypting multiple PDF files with individual user passwords and a common owner password using Aspose.Pdf, and logging the outcomes.", + "load-pdf-from-stream-set-version-1-4": { + "title": "Load Pdf From Stream Set Version 1 4", + "filename": "load-pdf-from-stream-set-version-1-4.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "load-pdf-memorystream-set-version-save": { + "title": "Load PDF from MemoryStream, Change Version to 1.4, and Save", + "filename": "load-pdf-memorystream-set-version-save.cs", + "description": "Demonstrates loading a PDF from a MemoryStream, converting it to PDF version 1.4 using the Convert method, and saving the result to the file system.", "tags": [ "pdf", - "encryption", - "batch", - "aspose.pdf", - "json" + "memorystream", + "version", + "convert", + "save" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Permissions" + "Aspose.Pdf.PdfFormat", + "Aspose.Pdf.ConvertErrorAction", + "Document.Convert", + "Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:13:52Z", "status": "verified" }, - "convert-pdf-to-pdfx3-preserve-icc": { - "title": "Convert PDF to PDF/X‑3 Preserving ICC Profile", - "filename": "convert-pdf-to-pdfx3-preserve-icc.cs", - "description": "Demonstrates loading a PDF with Aspose.Pdf, converting it to PDF/X‑3 format while keeping the existing ICC color profile, and saving the result.", + "load-pdf-with-custom-loadoptions-disable-font-embedding": { + "title": "Load Pdf With Custom Loadoptions Disable Font Embedding", + "filename": "load-pdf-with-custom-loadoptions-disable-font-embedding.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "open-encrypted-pdf-without-password": { + "title": "Open Encrypted PDF Without Providing a Password", + "filename": "open-encrypted-pdf-without-password.cs", + "description": "Demonstrates how to attempt opening a password‑protected PDF using Aspose.Pdf and catch the InvalidPasswordException when no password is supplied.", "tags": [ - "pdf conversion", - "pdfx-3", - "icc profile", + "pdf", + "encryption", + "exception-handling", "aspose.pdf", "c#" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PdfFormatConversionOptions", - "Aspose.Pdf.PdfFormat", - "Aspose.Pdf.Document.Convert", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.InvalidPasswordException", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Document.Pages.Count" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:13:52Z", "status": "verified" }, - "batch-convert-pdf-to-pdfa-with-report": { - "title": "Batch Convert PDFs to PDF/A‑1b with Compression and Report", - "filename": "batch-convert-pdf-to-pdfa-with-report.cs", - "description": "Loads each PDF from a folder, converts it to PDF/A‑1b using high compression, saves the converted file, and generates a CSV summary report with file sizes and conversion status.", + "open-pdf-from-filestream-and-save-copy": { + "title": "Open PDF from FileStream and Save Copy", + "filename": "open-pdf-from-filestream-and-save-copy.cs", + "description": "Shows how to open a PDF document using a FileStream and then save it to a new file with the default Aspose.Pdf settings.", "tags": [ - "pdfa", - "batch-conversion", - "compression", - "report", - "aspose-pdf" + "pdf", + "filestream", + "aspose", + "save", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PdfFormatConversionOptions", - "Aspose.Pdf.PdfFormat", - "Aspose.Pdf.ConvertErrorAction", - "Aspose.Pdf.Document.Convert", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:13:52Z", "status": "verified" }, - "add-custom-xmp-metadata-to-pdf": { - "title": "Add Custom XMP Metadata to PDF", - "filename": "add-custom-xmp-metadata-to-pdf.cs", - "description": "Shows how to load a PDF, create a custom XMP metadata packet, attach it to the document using Aspose.Pdf, and save the file while preserving the new metadata.", + "open-pdf-get-page-count": { + "title": "Open PDF and Retrieve Page Count", + "filename": "open-pdf-get-page-count.cs", + "description": "Shows how to open a PDF file from disk using Aspose.Pdf's Document class and obtain the total number of pages.", "tags": [ "pdf", - "xmp", - "metadata", - "aspose.pdf", - "csharp" + "document", + "page-count", + "file-exists", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.SetXmpMetadata", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.PageCollection", + "Aspose.Pdf.PageCollection.Count" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:13:52Z", "status": "verified" }, - "encrypt-pdf-owner-password-only": { - "title": "Encrypt PDF with Owner Password Only", - "filename": "encrypt-pdf-owner-password-only.cs", - "description": "Shows how to encrypt a PDF using Aspose.Pdf by applying only an owner password, giving the owner full access and restricting all user permissions.", + "remove-third-page-from-pdf": { + "title": "Remove Third Page from PDF", + "filename": "remove-third-page-from-pdf.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, delete the third page, and save the resulting document.", "tags": [ - "pdf encryption", - "owner password", - "permissions", - "aes-256", - "aspose.pdf" + "pdf", + "delete-page", + "aspose-pdf", + "csharp", + "document-manipulation" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.PageCollection.Delete", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", @@ -1066,82 +1101,144 @@ "generated_at": "2026-08-20T07:13:52Z", "status": "verified" }, - "encrypt-pdf-aes128-verify-print-permissions": { - "title": "Encrypt PDF with AES‑128 and Verify Print Permissions", - "filename": "encrypt-pdf-aes128-verify-print-permissions.cs", - "description": "The example loads a PDF, applies AES‑128 encryption with user and owner passwords, sets printing and high‑quality printing permissions, saves the encrypted file, and then opens it to verify the applied permissions.", + "rotate-pdf-page-3-180-degrees": { + "title": "Rotate PDF Page 3 by 180 Degrees", + "filename": "rotate-pdf-page-3-180-degrees.cs", + "description": "Shows how to load a PDF (or from a byte array), rotate the third page 180°, and save the modified document.", "tags": [ - "encryption", - "aes-128", - "printing", - "permissions", - "aspose-pdf" + "pdf", + "rotate", + "page", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page", + "Aspose.Pdf.Rotation", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Pages" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:13:52Z", "status": "verified" }, - "convert-pdf-to-pdfa-1b__v2": { - "title": "Convert PDF to PDF/A‑1b Compliance", - "filename": "convert-pdf-to-pdfa-1b__v2.cs", - "description": "Loads a PDF file, converts it to PDF/A‑1b compliance while logging conversion errors, and saves the compliant document.", + "rotate-second-pdf-page-90-degrees": { + "title": "Rotate Second PDF Page 90 Degrees", + "filename": "rotate-second-pdf-page-90-degrees.cs", + "description": "Demonstrates how to open a PDF with Aspose.Pdf, rotate the second page 90° clockwise, and save the modified document.", "tags": [ - "pdf/a", - "conversion", - "aspose.pdf", - "document", - "compliance" + "pdf", + "rotate", + "page", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Convert", - "Aspose.Pdf.PdfFormat", - "Aspose.Pdf.ConvertErrorAction", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Page", + "Aspose.Pdf.Page.Rotate", + "Aspose.Pdf.Rotation" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:13:52Z", "status": "verified" }, - "batch-encrypt-pdfs-with-deterministic-passwords": { - "title": "Batch Encrypt PDFs with Deterministic Passwords", - "filename": "batch-encrypt-pdfs-with-deterministic-passwords.cs", - "description": "Demonstrates how to encrypt multiple PDF files in a folder using Aspose.Pdf, generating a unique password for each file from its name and logging the passwords securely.", + "rotate-third-pdf-page-180-degrees": { + "title": "Rotate Third Pdf Page 180 Degrees", + "filename": "rotate-third-pdf-page-180-degrees.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "save-pdf-to-memory-stream-and-write-to-file": { + "title": "Save Pdf To Memory Stream And Write To File", + "filename": "save-pdf-to-memory-stream-and-write-to-file.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "save-pdf-to-memorystream-and-write-to-file": { + "title": "Save PDF to MemoryStream and Write to File", + "filename": "save-pdf-to-memorystream-and-write-to-file.cs", + "description": "Demonstrates loading a PDF with Aspose.Pdf, saving it into a MemoryStream, and then writing the stream to a physical file.", "tags": [ - "pdf-encryption", - "batch-processing", - "aspose-pdf", - "csharp", - "password-generation" + "pdf", + "memorystream", + "file-io", + "aspose", + "csharp" + ], + "apis_used": [ + "Document", + "Document.Save" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:13:52Z", + "status": "verified" + }, + "set-pdf-document-title-and-verify": { + "title": "Set PDF Document Title and Verify It", + "filename": "set-pdf-document-title-and-verify.cs", + "description": "Demonstrates how to open a PDF with Aspose.Pdf, set its document title property, save the file, and then read back the title to confirm the change.", + "tags": [ + "pdf", + "title", + "metadata", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.SetTitle", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Info", + "Aspose.Pdf.DocumentInfo.Title" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:13:52Z", + "status": "verified" + }, + "set-pdf-metadata-author-title-subject": { + "title": "Set PDF Document Metadata (Author, Title, Subject)", + "filename": "set-pdf-metadata-author-title-subject.cs", + "description": "This example shows how to open an existing PDF with Aspose.Pdf, set its document information such as Author, Title, and Subject, save the changes, and then verify the metadata by reloading the file.", + "tags": [ + "pdf", + "metadata", + "author", + "title", + "aspose.pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.DocumentInfo", + "Aspose.Pdf.DocumentInfo.Author", + "Aspose.Pdf.DocumentInfo.Title", + "Aspose.Pdf.DocumentInfo.Subject", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:13:52Z", "status": "verified" }, - "batch-split-pdf-by-page-ranges": { - "title": "Batch Split PDF into Sections by Page Ranges", - "filename": "batch-split-pdf-by-page-ranges.cs", - "description": "Shows how to read page range definitions from a configuration file and split a PDF into separate documents using Aspose.Pdf.", + "split-multi-page-pdf-into-single-page-files": { + "title": "Split Multi-Page PDF into Single-Page Files", + "filename": "split-multi-page-pdf-into-single-page-files.cs", + "description": "Shows how to load a multi-page PDF and split it into separate one-page PDF documents using Aspose.Pdf's Document class and page collection.", "tags": [ "pdf", "split", - "page-ranges", - "aspose", - "csharp" + "pages", + "aspose.pdf", + "c#" ], "apis_used": [ "Aspose.Pdf.Document", @@ -1150,77 +1247,190 @@ "Aspose.Pdf.PageCollection.Add", "Aspose.Pdf.PageCollection.Count" ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:13:52Z", + "status": "verified" + }, + "split-pdf-at-page-10": { + "title": "Split PDF into Two Parts at Page 10", + "filename": "split-pdf-at-page-10.cs", + "description": "Shows how to split a PDF document into two separate files at page ten using Aspose.Pdf, with descriptive output filenames.", + "tags": [ + "pdf", + "split", + "pages", + "aspose", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.PageCollection.Add", + "Aspose.Pdf.PageCollection.Count", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:13:52Z", + "status": "verified" + }, + "split-pdf-at-page-ten": { + "title": "Split Pdf At Page Ten", + "filename": "split-pdf-at-page-ten.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "split-pdf-into-individual-pages": { + "title": "Split PDF into Individual Pages and Save to Separate Folders", + "filename": "split-pdf-into-individual-pages.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, extract each page into its own Document, and save each page as a separate PDF file inside a dedicated folder.", + "tags": [ + "pdf", + "split", + "pages", + "aspose", + "filesystem" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Document.Pages.Add", + "Aspose.Pdf.Document.Save" + ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:13:52Z", "status": "verified" }, - "encrypt-pdf-form-fill-permission": { - "title": "Encrypt PDF and Allow Only Form Filling", - "filename": "encrypt-pdf-form-fill-permission.cs", - "description": "Demonstrates how to encrypt a PDF with user and owner passwords, restrict permissions to form filling only, and disable printing using Aspose.Pdf.", + "split-pdf-into-sections-by-page-ranges": { + "title": "Split Pdf Into Sections By Page Ranges", + "filename": "split-pdf-into-sections-by-page-ranges.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "split-pdf-into-single-page-folders": { + "title": "Split Pdf Into Single Page Folders", + "filename": "split-pdf-into-single-page-folders.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "update-pdf-author-metadata": { + "title": "Update PDF Author Metadata with Aspose.Pdf", + "filename": "update-pdf-author-metadata.cs", + "description": "Shows how to open a PDF using a FileInfo object, modify its Author metadata, and save the changes back to the original file.", "tags": [ "pdf", - "encryption", - "permissions", - "form-filling", + "metadata", + "author", + "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.DocumentInfo", + "Aspose.Pdf.Document.Info", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:13:52Z", "status": "verified" }, - "set-pdf-metadata-author-title-subject": { - "title": "Set PDF Document Metadata (Author, Title, Subject)", - "filename": "set-pdf-metadata-author-title-subject.cs", - "description": "This example shows how to open an existing PDF with Aspose.Pdf, set its document information such as Author, Title, and Subject, save the changes, and then verify the metadata by reloading the file.", + "update-pdf-author-metadata__v2": { + "title": "Update PDF Author Metadata", + "filename": "update-pdf-author-metadata__v2.cs", + "description": "Loads a PDF file, replaces its Author metadata with the current user name, and saves the updated document.", "tags": [ "pdf", "metadata", "author", - "title", - "aspose.pdf" + "aspose.pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.DocumentInfo", + "Aspose.Pdf.Document.Info", "Aspose.Pdf.DocumentInfo.Author", - "Aspose.Pdf.DocumentInfo.Title", - "Aspose.Pdf.DocumentInfo.Subject", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:13:52Z", "status": "verified" }, - "encrypt-pdf-rc4-no-copy-permission": { - "title": "Encrypt PDF with RC4 and Restrict Copy Permission", - "filename": "encrypt-pdf-rc4-no-copy-permission.cs", - "description": "Demonstrates how to encrypt a PDF using the RC4 128‑bit algorithm with Aspose.Pdf, set permissions to allow only printing (disabling copy), and programmatically verify the applied security settings.", + "update-pdf-passwords": { + "title": "Update Passwords of an Encrypted PDF", + "filename": "update-pdf-passwords.cs", + "description": "Shows how to open a password‑protected PDF using the owner password, change its user and owner passwords, and save the PDF with the new credentials.", "tags": [ "pdf", "encryption", - "rc4", - "permissions", - "aspose-pdf" + "password", + "aspose.pdf", + "c#" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Document.ChangePasswords", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Permissions" + "Aspose.Pdf.InvalidPasswordException" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:13:52Z", "status": "verified" + }, + "update-pdf-title-metadata": { + "title": "Update PDF Title Metadata from Byte Array", + "filename": "update-pdf-title-metadata.cs", + "description": "Demonstrates loading a PDF from a byte array, changing its title metadata, and saving the modified document to disk using Aspose.Pdf.", + "tags": [ + "pdf", + "metadata", + "title", + "byte-array", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Info", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Document.Pages.Add" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:13:52Z", + "status": "verified" + }, + "update-pdf-version-to-1-5-incremental-save": { + "title": "Update PDF Version to 1.5 with Incremental Save", + "filename": "update-pdf-version-to-1-5-incremental-save.cs", + "description": "Loads a PDF, converts it to PDF version 1.5 using Document.Convert, and saves it back with incremental update enabled.", + "tags": [ + "pdf-version", + "incremental-save", + "aspose-pdf", + "convert", + "document" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Convert", + "Aspose.Pdf.PdfFormat", + "Aspose.Pdf.ConvertErrorAction", + "Aspose.Pdf.PdfSaveOptions" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:13:52Z", + "status": "verified" } } } \ No newline at end of file diff --git a/compare-pdf/AGENTS.md b/compare-pdf/AGENTS.md index a4f9b8691..9988d5304 100644 --- a/compare-pdf/AGENTS.md +++ b/compare-pdf/AGENTS.md @@ -8,7 +8,7 @@ parent: ../agents.md # AGENTS - compare-pdf -> **Compare PDF** in PDF using C# / .NET -- **28** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. +> **Compare PDF** in PDF using C# / .NET -- **44** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. ## Persona @@ -23,22 +23,22 @@ See the root [agents.md](../agents.md) for repository-wide conventions and bound ## Required Namespaces -- `using Aspose.Pdf;` (28/28 files) ← category-specific -- `using Aspose.Pdf.Comparison;` (27/28 files) ← category-specific -- `using Aspose.Pdf.Text;` (4/28 files) -- `using Aspose.Pdf.Annotations;` (3/28 files) -- `using Aspose.Pdf.Devices;` (1/28 files) -- `using Aspose.Pdf.Forms;` (1/28 files) -- `using System;` (28/28 files) -- `using System.IO;` (27/28 files) -- `using System.Collections.Generic;` (12/28 files) -- `using System.Drawing.Imaging;` (2/28 files) -- `using System.Threading.Tasks;` (2/28 files) -- `using System.Drawing;` (1/28 files) -- `using System.IO.Compression;` (1/28 files) -- `using System.Linq;` (1/28 files) -- `using System.Text.Json;` (1/28 files) -- `using System.Threading;` (1/28 files) +- `using Aspose.Pdf;` (28/44 files) ← category-specific +- `using Aspose.Pdf.Comparison;` (27/44 files) ← category-specific +- `using Aspose.Pdf.Text;` (4/44 files) +- `using Aspose.Pdf.Annotations;` (3/44 files) +- `using Aspose.Pdf.Devices;` (1/44 files) +- `using Aspose.Pdf.Forms;` (1/44 files) +- `using System;` (28/44 files) +- `using System.IO;` (27/44 files) +- `using System.Collections.Generic;` (12/44 files) +- `using System.Drawing.Imaging;` (2/44 files) +- `using System.Threading.Tasks;` (2/44 files) +- `using System.Drawing;` (1/44 files) +- `using System.IO.Compression;` (1/44 files) +- `using System.Linq;` (1/44 files) +- `using System.Text.Json;` (1/44 files) +- `using System.Threading;` (1/44 files) ## Common Code Pattern @@ -58,16 +58,26 @@ using (Document doc = new Document("input.pdf")) | [batch-pdf-comparison-parallel](./batch-pdf-comparison-parallel.cs) | Batch PDF Comparison with Parallel Processing | `Document`, `SideBySidePdfComparer`, `Compare` | Demonstrates how to compare a large set of PDFs against a reference file using Aspose.Pdf's compa... | | [compare-encrypted-pdfs-side-by-side](./compare-encrypted-pdfs-side-by-side.cs) | Compare Encrypted PDFs Side‑by‑Side with Passwords | `Document`, `SideBySideComparisonOptions`, `SideBySidePdfComparer` | Demonstrates loading two password‑protected PDF files and performing a side‑by‑side visual compar... | | [compare-pdf-documents-page-by-page-diff](./compare-pdf-documents-page-by-page-diff.cs) | Compare PDF Documents Page by Page and Generate Diff PDF | `Document`, `ComparisonOptions`, `TextPdfComparer` | Demonstrates how to compare two PDF files page by page using Aspose.Pdf's default ComparisonOptio... | +| [compare-pdf-documents-page-by-page](./compare-pdf-documents-page-by-page.cs) | Compare pdf documents page by page | | Compare pdf documents page by page | | [compare-pdf-text-ignoring-compression](./compare-pdf-text-ignoring-compression.cs) | Compare PDFs Textually Ignoring Compression Differences | `Document`, `ComparisonOptions`, `CompareFlatDocuments` | Demonstrates how to compare two PDF files that have identical content but different compression s... | | [compare-pdfs-detect-font-differences](./compare-pdfs-detect-font-differences.cs) | Compare PDFs and Detect Font Differences | `Document`, `ComparisonOptions`, `CompareFlatDocuments` | Demonstrates how to compare two PDF files using Aspose.Pdf and report font changes as separate di... | | [compare-pdfs-different-page-sizes](./compare-pdfs-different-page-sizes.cs) | Compare PDFs with Different Page Sizes | `Document`, `Page`, `PageInfo` | Shows how to align the page dimensions of two PDFs and use GraphicalPdfComparer to compare them, ... | +| [compare-pdfs-excluding-footer-areas](./compare-pdfs-excluding-footer-areas.cs) | Compare pdfs excluding footer areas | | Compare pdfs excluding footer areas | +| [compare-pdfs-font-differences](./compare-pdfs-font-differences.cs) | Compare pdfs font differences | | Compare pdfs font differences | +| [compare-pdfs-from-streams](./compare-pdfs-from-streams.cs) | Compare pdfs from streams | | Compare pdfs from streams | | [compare-pdfs-generate-json-diff-report](./compare-pdfs-generate-json-diff-report.cs) | Compare PDFs and Generate JSON Diff Report | `Document`, `TextAbsorber`, `Visit` | The example loads two PDF files, extracts their text page by page using Aspose.Pdf, identifies ad... | +| [compare-pdfs-ignore-compression](./compare-pdfs-ignore-compression.cs) | Compare pdfs ignore compression | | Compare pdfs ignore compression | | [compare-pdfs-ignore-signature-fields](./compare-pdfs-ignore-signature-fields.cs) | Compare PDFs While Ignoring Signature Fields | `Document`, `Page`, `Annotation` | Loads two signed PDFs, extracts the rectangles of all signature fields, excludes those areas from... | +| [compare-pdfs-including-form-field-values](./compare-pdfs-including-form-field-values.cs) | Compare pdfs including form field values | | Compare pdfs including form field values | +| [compare-pdfs-log-diff-operations](./compare-pdfs-log-diff-operations.cs) | Compare pdfs log diff operations | | Compare pdfs log diff operations | | [compare-pdfs-log-differences](./compare-pdfs-log-differences.cs) | Compare PDFs and Log Differences by Page | `Document`, `ComparisonOptions`, `CompareDocumentsPageByPage` | Shows how to compare two PDF documents page‑by‑page with Aspose.Pdf and write an audit log that r... | | [compare-pdfs-unicode-text-differences](./compare-pdfs-unicode-text-differences.cs) | Compare PDFs with Unicode Text and Detect Differences | `Document`, `Page`, `TextFragment` | Creates English and Russian PDFs, then uses Aspose.Pdf's comparison API to detect Unicode text di... | | [compare-pdfs-with-form-fields](./compare-pdfs-with-form-fields.cs) | Compare PDFs Including Form Field Values | `Document`, `ComparisonOptions`, `CompareDocumentsPageByPage` | Demonstrates how to compare two PDF documents, including form field values, and generate both a J... | +| [compare-selected-page-range-pdfs](./compare-selected-page-range-pdfs.cs) | Compare selected page range pdfs | | Compare selected page range pdfs | | [compare-selected-pdf-pages-side-by-side](./compare-selected-pdf-pages-side-by-side.cs) | Compare Selected PDF Pages Side‑by‑Side | `Document`, `ComparisonOptions`, `SideBySideComparisonOptions` | Demonstrates how to compare specific pages of two PDFs using Aspose.Pdf's side‑by‑side visual com... | +| [compare-selected-pdf-pages](./compare-selected-pdf-pages.cs) | Compare selected pdf pages | | Compare selected pdf pages | | [compare-specific-page-range-pdf](./compare-specific-page-range-pdf.cs) | Compare Specific Page Range of Two PDFs | `Document`, `ComparisonOptions`, `CompareDocumentsPageByPage` | Loads two PDF documents, defines a page range, compares the selected pages using Aspose.Pdf's com... | +| [compare-two-pdfs-and-generate-visual-diff](./compare-two-pdfs-and-generate-visual-diff.cs) | Compare two pdfs and generate visual diff | | Compare two pdfs and generate visual diff | | [compare-two-pdfs-aspdf-comparison](./compare-two-pdfs-aspdf-comparison.cs) | Compare Two PDFs Using Aspose.Pdf.Comparison | `Document`, `ComparisonOptions`, `TextPdfComparer` | Demonstrates how to compare two PDF documents with Aspose.Pdf, generating a result PDF that highl... | | [compare-two-pdfs-visual-diff](./compare-two-pdfs-visual-diff.cs) | Compare Two PDFs and Generate a Visual Diff | `Document`, `ComparisonOptions`, `CompareFlatDocuments` | Demonstrates how to compare two PDF documents using Aspose.Pdf, generate a list of differences, a... | | [exclude-annotations-from-pdf-comparison](./exclude-annotations-from-pdf-comparison.cs) | Exclude Annotations from PDF Comparison | `Document`, `Page`, `Annotation` | Demonstrates collecting annotation bounding rectangles from two PDFs and configuring SideBySideCo... | @@ -75,17 +85,10 @@ using (Document doc = new Document("input.pdf")) | [exclude-footer-areas-in-pdf-comparison](./exclude-footer-areas-in-pdf-comparison.cs) | Exclude Footer Areas in PDF Comparison | `Document`, `Page`, `Rectangle` | Demonstrates how to define rectangular exclude areas to omit footers when performing a side‑by‑si... | | [generate-diff-pdf-by-comparing-two-pdfs](./generate-diff-pdf-by-comparing-two-pdfs.cs) | Generate a Diff PDF by Comparing Two PDFs | `Document`, `GraphicalPdfComparer`, `CompareDocumentsToPdf` | Demonstrates how to use Aspose.Pdf to compare two PDF documents and create a highlighted diff PDF... | | [generate-diff-pdf-highlighted-text-changes](./generate-diff-pdf-highlighted-text-changes.cs) | Generate Diff PDF with Highlighted Text Changes and Verify D... | `Document`, `ComparisonOptions`, `ComparePages` | Demonstrates how to compare two PDF pages, generate a diff PDF with highlighted insertions/deleti... | -| [generate-pdf-diff-images-zip](./generate-pdf-diff-images-zip.cs) | Generate PDF Diff Images and Zip Them | `Document`, `GraphicalPdfComparer`, `CompareDocumentsToImages` | Shows how to compare two PDFs with Aspose.Pdf's GraphicalPdfComparer, export the visual differenc... | -| [generate-visual-diff-pdf](./generate-visual-diff-pdf.cs) | Generate Visual Diff PDF Using GraphicalPdfComparer | `Document`, `GraphicalPdfComparer`, `CompareDocumentsToPdf` | Demonstrates how to compare two PDF documents and create a visual diff PDF with Aspose.Pdf's Grap... | -| [get-image-differences-between-pdf-pages](./get-image-differences-between-pdf-pages.cs) | Get Image Differences Between PDF Pages | `Document`, `Page`, `GraphicalPdfComparer` | Demonstrates how to compare two PDF documents page‑by‑page using Aspose.Pdf's GraphicalPdfCompare... | -| [in-memory-pdf-comparison-diff](./in-memory-pdf-comparison-diff.cs) | In-Memory PDF Comparison with Diff Output | `Document`, `GraphicalPdfComparer`, `ComparePagesToPdf` | Demonstrates loading two PDFs from memory streams, comparing them page‑by‑page using Aspose's Gra... | -| [multi-threaded-pdf-comparison](./multi-threaded-pdf-comparison.cs) | Multi-Threaded PDF Comparison with Aspose.Pdf | `Document`, `SideBySideComparisonOptions`, `SideBySidePdfComparer` | Demonstrates how to compare multiple pairs of PDF files concurrently using Aspose.Pdf's side‑by‑s... | -| [preserve-original-metadata-in-diff-pdf](./preserve-original-metadata-in-diff-pdf.cs) | Copy Original PDF Metadata to Diff PDF | `Document`, `CompareDocumentsPageByPage`, `ComparisonOptions` | The example compares two PDF files using Aspose.Pdf.Comparison and then copies all document metad... | -| [replace-text-using-diffoperation](./replace-text-using-diffoperation.cs) | Replace Text in PDF Using DiffOperation Comparison | `Document`, `ComparisonOptions`, `ComparePages` | Demonstrates how to compare two PDF pages, reconstruct the original text from the first PDF using... | -| [set-custom-image-similarity-tolerance-pdf-comparis...](./set-custom-image-similarity-tolerance-pdf-comparison.cs) | Set Custom Image Similarity Tolerance for PDF Comparison | `Document`, `GraphicalPdfComparer`, `Threshold` | Demonstrates how to configure a custom tolerance percentage for image differences when comparing ... | +| ... | | | *and 14 more files* | ## Category Statistics -- Total examples: 28 +- Total examples: 44 ## Category-Specific Tips @@ -122,5 +125,5 @@ using (Document doc = new Document("input.pdf")) - Review code examples in this folder for compare-pdf patterns -Updated: 2026-08-20 | Run: `20260820_001147_12d7b3` +Updated: 2026-09-10 | Run: `20260910_054408_87a7f4` diff --git a/compare-pdf/README.md b/compare-pdf/README.md new file mode 100644 index 000000000..f84410b4f --- /dev/null +++ b/compare-pdf/README.md @@ -0,0 +1,63 @@ +# Compare PDF + +> **Compare PDF** in PDF using C# / .NET -- **44** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. + +- Category: `compare-pdf` +- Examples: 44 +- NuGet: `Aspose.PDF 26.8.0` -- target `net10.0` + +## Examples + +- [`batch-pdf-comparison-parallel.cs`](./batch-pdf-comparison-parallel.cs) -- Batch pdf comparison parallel +- [`compare-encrypted-pdfs-side-by-side.cs`](./compare-encrypted-pdfs-side-by-side.cs) -- Compare encrypted pdfs side by side +- [`compare-pdf-documents-page-by-page-diff.cs`](./compare-pdf-documents-page-by-page-diff.cs) -- Compare pdf documents page by page diff +- [`compare-pdf-documents-page-by-page.cs`](./compare-pdf-documents-page-by-page.cs) -- Compare pdf documents page by page +- [`compare-pdf-text-ignoring-compression.cs`](./compare-pdf-text-ignoring-compression.cs) -- Compare pdf text ignoring compression +- [`compare-pdfs-detect-font-differences.cs`](./compare-pdfs-detect-font-differences.cs) -- Compare pdfs detect font differences +- [`compare-pdfs-different-page-sizes.cs`](./compare-pdfs-different-page-sizes.cs) -- Compare pdfs different page sizes +- [`compare-pdfs-excluding-footer-areas.cs`](./compare-pdfs-excluding-footer-areas.cs) -- Compare pdfs excluding footer areas +- [`compare-pdfs-font-differences.cs`](./compare-pdfs-font-differences.cs) -- Compare pdfs font differences +- [`compare-pdfs-from-streams.cs`](./compare-pdfs-from-streams.cs) -- Compare pdfs from streams +- [`compare-pdfs-generate-json-diff-report.cs`](./compare-pdfs-generate-json-diff-report.cs) -- Compare pdfs generate json diff report +- [`compare-pdfs-ignore-compression.cs`](./compare-pdfs-ignore-compression.cs) -- Compare pdfs ignore compression +- [`compare-pdfs-ignore-signature-fields.cs`](./compare-pdfs-ignore-signature-fields.cs) -- Compare pdfs ignore signature fields +- [`compare-pdfs-including-form-field-values.cs`](./compare-pdfs-including-form-field-values.cs) -- Compare pdfs including form field values +- [`compare-pdfs-log-diff-operations.cs`](./compare-pdfs-log-diff-operations.cs) -- Compare pdfs log diff operations +- [`compare-pdfs-log-differences.cs`](./compare-pdfs-log-differences.cs) -- Compare pdfs log differences +- [`compare-pdfs-unicode-text-differences.cs`](./compare-pdfs-unicode-text-differences.cs) -- Compare pdfs unicode text differences +- [`compare-pdfs-with-form-fields.cs`](./compare-pdfs-with-form-fields.cs) -- Compare pdfs with form fields +- [`compare-selected-page-range-pdfs.cs`](./compare-selected-page-range-pdfs.cs) -- Compare selected page range pdfs +- [`compare-selected-pdf-pages-side-by-side.cs`](./compare-selected-pdf-pages-side-by-side.cs) -- Compare selected pdf pages side by side +- [`compare-selected-pdf-pages.cs`](./compare-selected-pdf-pages.cs) -- Compare selected pdf pages +- [`compare-specific-page-range-pdf.cs`](./compare-specific-page-range-pdf.cs) -- Compare specific page range pdf +- [`compare-two-pdfs-and-generate-visual-diff.cs`](./compare-two-pdfs-and-generate-visual-diff.cs) -- Compare two pdfs and generate visual diff +- [`compare-two-pdfs-aspdf-comparison.cs`](./compare-two-pdfs-aspdf-comparison.cs) -- Compare two pdfs aspdf comparison +- [`compare-two-pdfs-visual-diff.cs`](./compare-two-pdfs-visual-diff.cs) -- Compare two pdfs visual diff +- [`exclude-annotations-from-pdf-comparison.cs`](./exclude-annotations-from-pdf-comparison.cs) -- Exclude annotations from pdf comparison +- [`exclude-areas-from-pdf-comparison.cs`](./exclude-areas-from-pdf-comparison.cs) -- Exclude areas from pdf comparison +- [`exclude-footer-areas-in-pdf-comparison.cs`](./exclude-footer-areas-in-pdf-comparison.cs) -- Exclude footer areas in pdf comparison +- [`generate-diff-pdf-by-comparing-two-pdfs.cs`](./generate-diff-pdf-by-comparing-two-pdfs.cs) -- Generate diff pdf by comparing two pdfs +- [`generate-diff-pdf-highlighted-text-changes.cs`](./generate-diff-pdf-highlighted-text-changes.cs) -- Generate diff pdf highlighted text changes +- [`generate-pdf-diff-images-zip.cs`](./generate-pdf-diff-images-zip.cs) -- Generate pdf diff images zip +- [`generate-pdf-difference-image.cs`](./generate-pdf-difference-image.cs) -- Generate pdf difference image +- [`generate-visual-diff-pdf.cs`](./generate-visual-diff-pdf.cs) -- Generate visual diff pdf +- [`get-image-differences-between-pdf-pages.cs`](./get-image-differences-between-pdf-pages.cs) -- Get image differences between pdf pages +- [`in-memory-pdf-comparison-diff.cs`](./in-memory-pdf-comparison-diff.cs) -- In memory pdf comparison diff +- [`multi-threaded-pdf-comparison.cs`](./multi-threaded-pdf-comparison.cs) -- Multi threaded pdf comparison +- [`parallel-batch-pdf-comparison.cs`](./parallel-batch-pdf-comparison.cs) -- Parallel batch pdf comparison +- [`pdf-diff-images-to-zip.cs`](./pdf-diff-images-to-zip.cs) -- Pdf diff images to zip +- [`pdf-diff-report-json.cs`](./pdf-diff-report-json.cs) -- Pdf diff report json +- [`preserve-original-metadata-in-diff-pdf.cs`](./preserve-original-metadata-in-diff-pdf.cs) -- Preserve original metadata in diff pdf +- [`preserve-pdf-metadata-after-comparison.cs`](./preserve-pdf-metadata-after-comparison.cs) -- Preserve pdf metadata after comparison +- [`replace-text-using-diffoperation.cs`](./replace-text-using-diffoperation.cs) -- Replace text using diffoperation +- [`set-custom-image-similarity-tolerance-pdf-comparison.cs`](./set-custom-image-similarity-tolerance-pdf-comparison.cs) -- Set custom image similarity tolerance pdf comparison +- [`write-pdf-diff-to-http-response.cs`](./write-pdf-diff-to-http-response.cs) -- Write pdf diff to http response + +## See Also + +- [`AGENTS.md`](./AGENTS.md) -- category-specific anti-patterns, API surface, and conventions for AI coding agents +- [`../AGENTS.md`](../AGENTS.md) -- repository-wide agent guide +- [`../README.md`](../README.md) -- full category index and project overview +- [Aspose.PDF for .NET docs](https://docs.aspose.com/pdf/net/) + +> Each `.cs` file is a standalone, build-validated console example. Drop into a fresh `dotnet new console` project, add the `Aspose.PDF` NuGet (version above), and run. diff --git a/compare-pdf/index.json b/compare-pdf/index.json index f40a78885..86c153a92 100644 --- a/compare-pdf/index.json +++ b/compare-pdf/index.json @@ -1,24 +1,46 @@ { "category": "compare-pdf", "nuget_version": "26.8.0", - "last_updated": "2026-08-20T07:16:04Z", + "last_updated": "2026-09-10T12:45:08Z", "examples": { - "compare-specific-page-range-pdf": { - "title": "Compare Specific Page Range of Two PDFs", - "filename": "compare-specific-page-range-pdf.cs", - "description": "Loads two PDF documents, defines a page range, compares the selected pages using Aspose.Pdf's comparison API, and reports the number of differences per page.", + "batch-pdf-comparison-parallel": { + "title": "Batch PDF Comparison with Parallel Processing", + "filename": "batch-pdf-comparison-parallel.cs", + "description": "Demonstrates how to compare a large set of PDFs against a reference file using Aspose.Pdf's comparison API while limiting concurrency with SemaphoreSlim to control memory usage.", "tags": [ "pdf-comparison", - "page-range", + "parallel-processing", "aspose-pdf", - "csharp", - "diff" + "batch", + "concurrency" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Comparison.SideBySidePdfComparer", + "Aspose.Pdf.Comparison.SideBySidePdfComparer.Compare", "Aspose.Pdf.Comparison.ComparisonOptions", - "Aspose.Pdf.Comparison.TextPdfComparer.CompareDocumentsPageByPage", - "Aspose.Pdf.Comparison.DiffOperation" + "Aspose.Pdf.Comparison.SideBySideComparisonOptions" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:16:04Z", + "status": "verified" + }, + "compare-encrypted-pdfs-side-by-side": { + "title": "Compare Encrypted PDFs Side‑by‑Side with Passwords", + "filename": "compare-encrypted-pdfs-side-by-side.cs", + "description": "Demonstrates loading two password‑protected PDF files and performing a side‑by‑side visual comparison using Aspose.Pdf, saving the result as a new PDF.", + "tags": [ + "pdf-comparison", + "encrypted-pdf", + "password", + "side-by-side", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Comparison.SideBySideComparisonOptions", + "Aspose.Pdf.Comparison.SideBySidePdfComparer", + "Aspose.Pdf.Comparison.SideBySidePdfComparer.Compare" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:16:04Z", @@ -45,135 +67,228 @@ "generated_at": "2026-08-20T07:16:04Z", "status": "verified" }, - "compare-selected-pdf-pages-side-by-side": { - "title": "Compare Selected PDF Pages Side‑by‑Side", - "filename": "compare-selected-pdf-pages-side-by-side.cs", - "description": "Demonstrates how to compare specific pages of two PDFs using Aspose.Pdf's side‑by‑side visual comparer and retrieve textual differences.", + "compare-pdf-documents-page-by-page": { + "title": "Compare Pdf Documents Page By Page", + "filename": "compare-pdf-documents-page-by-page.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "compare-pdf-text-ignoring-compression": { + "title": "Compare PDFs Textually Ignoring Compression Differences", + "filename": "compare-pdf-text-ignoring-compression.cs", + "description": "Demonstrates how to compare two PDF files that have identical content but different compression settings using Aspose.Pdf's flat text comparison, ensuring compression does not affect the diff results.", "tags": [ - "pdf comparison", - "selected pages", - "side-by-side", - "aspose.pdf", - "text differences" + "pdf-comparison", + "text-diff", + "compression", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Comparison.ComparisonOptions", - "Aspose.Pdf.Comparison.SideBySideComparisonOptions", - "Aspose.Pdf.Comparison.SideBySidePdfComparer.Compare", - "Aspose.Pdf.Comparison.TextPdfComparer.ComparePages" + "Aspose.Pdf.Comparison.TextPdfComparer.CompareFlatDocuments", + "Aspose.Pdf.Comparison.DiffOperation" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:16:04Z", + "status": "verified" + }, + "compare-pdfs-detect-font-differences": { + "title": "Compare PDFs and Detect Font Differences", + "filename": "compare-pdfs-detect-font-differences.cs", + "description": "Demonstrates how to compare two PDF files using Aspose.Pdf and report font changes as separate diff operations.", + "tags": [ + "pdf-comparison", + "font-differences", + "aspose-pdf", + "diff-operations", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Comparison.ComparisonOptions", + "Aspose.Pdf.Comparison.TextPdfComparer.CompareFlatDocuments", + "Aspose.Pdf.Comparison.DiffOperation", + "Aspose.Pdf.Comparison.DiffOperation.Operation" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:16:04Z", "status": "verified" }, - "exclude-areas-from-pdf-comparison": { - "title": "Exclude Areas from PDF Comparison", - "filename": "exclude-areas-from-pdf-comparison.cs", - "description": "Demonstrates how to define rectangular regions to exclude from each PDF and perform a side‑by‑side comparison using Aspose.Pdf.", + "compare-pdfs-different-page-sizes": { + "title": "Compare PDFs with Different Page Sizes", + "filename": "compare-pdfs-different-page-sizes.cs", + "description": "Shows how to align the page dimensions of two PDFs and use GraphicalPdfComparer to compare them, handling size mismatches and customizing comparison settings.", "tags": [ "pdf-comparison", - "exclude-areas", - "side-by-side", - "csharp", - "aspdf" + "page-size-alignment", + "graphical-comparer", + "resolution", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Comparison.SideBySideComparisonOptions", - "Aspose.Pdf.Comparison.SideBySidePdfComparer", - "Aspose.Pdf.Comparison.SideBySidePdfComparer.Compare" + "Aspose.Pdf.Page", + "Aspose.Pdf.PageInfo", + "Aspose.Pdf.Comparison.GraphicalPdfComparer", + "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.Color" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:16:04Z", "status": "verified" }, - "exclude-annotations-from-pdf-comparison": { - "title": "Exclude Annotations from PDF Comparison", - "filename": "exclude-annotations-from-pdf-comparison.cs", - "description": "Demonstrates collecting annotation bounding rectangles from two PDFs and configuring SideBySideComparisonOptions to exclude those areas during a side‑by‑side comparison.", + "compare-pdfs-excluding-footer-areas": { + "title": "Compare Pdfs Excluding Footer Areas", + "filename": "compare-pdfs-excluding-footer-areas.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "compare-pdfs-font-differences": { + "title": "Compare Pdfs Font Differences", + "filename": "compare-pdfs-font-differences.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "compare-pdfs-from-streams": { + "title": "Compare Pdfs From Streams", + "filename": "compare-pdfs-from-streams.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "compare-pdfs-generate-json-diff-report": { + "title": "Compare PDFs and Generate JSON Diff Report", + "filename": "compare-pdfs-generate-json-diff-report.cs", + "description": "The example loads two PDF files, extracts their text page by page using Aspose.Pdf, identifies added, removed or modified pages, creates DiffOperation objects, and serializes the differences to a JSON report.", "tags": [ "pdf-comparison", - "annotations", - "exclude-areas", - "aspose-pdf", - "csharp" + "text-extraction", + "json-serialization", + "diff-report", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Text.TextAbsorber", + "Aspose.Pdf.Text.TextAbsorber.Visit", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Comparison.SideBySideComparisonOptions", - "Aspose.Pdf.Comparison.SideBySidePdfComparer.Compare" + "Aspose.Pdf.Document.Pages" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:16:04Z", "status": "verified" }, - "exclude-footer-areas-in-pdf-comparison": { - "title": "Exclude Footer Areas in PDF Comparison", - "filename": "exclude-footer-areas-in-pdf-comparison.cs", - "description": "Demonstrates how to define rectangular exclude areas to omit footers when performing a side‑by‑side PDF comparison using Aspose.Pdf.", + "compare-pdfs-ignore-compression": { + "title": "Compare Pdfs Ignore Compression", + "filename": "compare-pdfs-ignore-compression.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "compare-pdfs-ignore-signature-fields": { + "title": "Compare PDFs While Ignoring Signature Fields", + "filename": "compare-pdfs-ignore-signature-fields.cs", + "description": "Loads two signed PDFs, extracts the rectangles of all signature fields, excludes those areas from comparison, and generates a visual diff PDF.", "tags": [ "pdf-comparison", + "signature", "exclude-areas", - "footer", - "side-by-side", - "aspose-pdf" + "text-diff", + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Comparison.SideBySideComparisonOptions", - "Aspose.Pdf.Comparison.SideBySidePdfComparer.Compare" + "Aspose.Pdf.Annotation.Annotation", + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Comparison.ComparisonOptions", + "Aspose.Pdf.Comparison.TextPdfComparer.CompareDocumentsPageByPage" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:16:04Z", "status": "verified" }, - "compare-two-pdfs-aspdf-comparison": { - "title": "Compare Two PDFs Using Aspose.Pdf.Comparison", - "filename": "compare-two-pdfs-aspdf-comparison.cs", - "description": "Demonstrates how to compare two PDF documents with Aspose.Pdf, generating a result PDF that highlights differences. The example notes that case‑insensitive text comparison is not directly supported in the current API.", + "compare-pdfs-including-form-field-values": { + "title": "Compare Pdfs Including Form Field Values", + "filename": "compare-pdfs-including-form-field-values.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "compare-pdfs-log-diff-operations": { + "title": "Compare Pdfs Log Diff Operations", + "filename": "compare-pdfs-log-diff-operations.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "compare-pdfs-log-differences": { + "title": "Compare PDFs and Log Differences by Page", + "filename": "compare-pdfs-log-differences.cs", + "description": "Shows how to compare two PDF documents page‑by‑page with Aspose.Pdf and write an audit log that records each diff operation type together with its page number.", "tags": [ "pdf-comparison", + "audit-log", + "page-diff", "aspose-pdf", - "csharp", - "text-comparison", - "case-sensitive" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Comparison.ComparisonOptions", - "Aspose.Pdf.Comparison.TextPdfComparer", - "Aspose.Pdf.Comparison.TextPdfComparer.CompareFlatDocuments" + "Aspose.Pdf.Comparison.TextPdfComparer.CompareDocumentsPageByPage", + "Aspose.Pdf.Comparison.DiffOperation" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:16:04Z", "status": "verified" }, - "set-custom-image-similarity-tolerance-pdf-comparison": { - "title": "Set Custom Image Similarity Tolerance for PDF Comparison", - "filename": "set-custom-image-similarity-tolerance-pdf-comparison.cs", - "description": "Demonstrates how to configure a custom tolerance percentage for image differences when comparing two PDFs using Aspose.Pdf's GraphicalPdfComparer and generate diff images.", + "compare-pdfs-unicode-text-differences": { + "title": "Compare PDFs with Unicode Text and Detect Differences", + "filename": "compare-pdfs-unicode-text-differences.cs", + "description": "Creates English and Russian PDFs, then uses Aspose.Pdf's comparison API to detect Unicode text differences and generate a visual diff PDF.", "tags": [ "pdf-comparison", - "image-tolerance", - "graphical-comparer", + "unicode", + "text-diff", "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Comparison.GraphicalPdfComparer", - "Aspose.Pdf.Comparison.GraphicalPdfComparer.Threshold", - "Aspose.Pdf.Comparison.GraphicalPdfComparer.CompareDocumentsToImages", - "Aspose.Pdf.Comparison.ComparisonOptions" + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Comparison.ComparisonOptions", + "Aspose.Pdf.Comparison.TextPdfComparer.CompareFlatDocuments", + "Aspose.Pdf.Comparison.DiffOperation" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:16:04Z", "status": "verified" }, @@ -200,198 +315,183 @@ "generated_at": "2026-08-20T07:16:04Z", "status": "verified" }, - "compare-pdfs-ignore-signature-fields": { - "title": "Compare PDFs While Ignoring Signature Fields", - "filename": "compare-pdfs-ignore-signature-fields.cs", - "description": "Loads two signed PDFs, extracts the rectangles of all signature fields, excludes those areas from comparison, and generates a visual diff PDF.", - "tags": [ - "pdf-comparison", - "signature", - "exclude-areas", - "text-diff", - "aspnet" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotation.Annotation", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Comparison.ComparisonOptions", - "Aspose.Pdf.Comparison.TextPdfComparer.CompareDocumentsPageByPage" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:16:04Z", + "compare-selected-page-range-pdfs": { + "title": "Compare Selected Page Range Pdfs", + "filename": "compare-selected-page-range-pdfs.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "compare-pdfs-different-page-sizes": { - "title": "Compare PDFs with Different Page Sizes", - "filename": "compare-pdfs-different-page-sizes.cs", - "description": "Shows how to align the page dimensions of two PDFs and use GraphicalPdfComparer to compare them, handling size mismatches and customizing comparison settings.", + "compare-selected-pdf-pages-side-by-side": { + "title": "Compare Selected PDF Pages Side‑by‑Side", + "filename": "compare-selected-pdf-pages-side-by-side.cs", + "description": "Demonstrates how to compare specific pages of two PDFs using Aspose.Pdf's side‑by‑side visual comparer and retrieve textual differences.", "tags": [ - "pdf-comparison", - "page-size-alignment", - "graphical-comparer", - "resolution", - "aspose-pdf" + "pdf comparison", + "selected pages", + "side-by-side", + "aspose.pdf", + "text differences" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.PageInfo", - "Aspose.Pdf.Comparison.GraphicalPdfComparer", - "Aspose.Pdf.Devices.Resolution", - "Aspose.Pdf.Color" + "Aspose.Pdf.Comparison.ComparisonOptions", + "Aspose.Pdf.Comparison.SideBySideComparisonOptions", + "Aspose.Pdf.Comparison.SideBySidePdfComparer.Compare", + "Aspose.Pdf.Comparison.TextPdfComparer.ComparePages" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:16:04Z", "status": "verified" }, - "compare-pdf-text-ignoring-compression": { - "title": "Compare PDFs Textually Ignoring Compression Differences", - "filename": "compare-pdf-text-ignoring-compression.cs", - "description": "Demonstrates how to compare two PDF files that have identical content but different compression settings using Aspose.Pdf's flat text comparison, ensuring compression does not affect the diff results.", - "tags": [ - "pdf-comparison", - "text-diff", - "compression", - "aspose-pdf", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Comparison.ComparisonOptions", - "Aspose.Pdf.Comparison.TextPdfComparer.CompareFlatDocuments", - "Aspose.Pdf.Comparison.DiffOperation" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:16:04Z", + "compare-selected-pdf-pages": { + "title": "Compare Selected Pdf Pages", + "filename": "compare-selected-pdf-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "compare-pdfs-unicode-text-differences": { - "title": "Compare PDFs with Unicode Text and Detect Differences", - "filename": "compare-pdfs-unicode-text-differences.cs", - "description": "Creates English and Russian PDFs, then uses Aspose.Pdf's comparison API to detect Unicode text differences and generate a visual diff PDF.", + "compare-specific-page-range-pdf": { + "title": "Compare Specific Page Range of Two PDFs", + "filename": "compare-specific-page-range-pdf.cs", + "description": "Loads two PDF documents, defines a page range, compares the selected pages using Aspose.Pdf's comparison API, and reports the number of differences per page.", "tags": [ "pdf-comparison", - "unicode", - "text-diff", + "page-range", "aspose-pdf", - "csharp" + "csharp", + "diff" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Comparison.ComparisonOptions", - "Aspose.Pdf.Comparison.TextPdfComparer.CompareFlatDocuments", + "Aspose.Pdf.Comparison.TextPdfComparer.CompareDocumentsPageByPage", "Aspose.Pdf.Comparison.DiffOperation" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:16:04Z", "status": "verified" }, - "compare-pdfs-detect-font-differences": { - "title": "Compare PDFs and Detect Font Differences", - "filename": "compare-pdfs-detect-font-differences.cs", - "description": "Demonstrates how to compare two PDF files using Aspose.Pdf and report font changes as separate diff operations.", + "compare-two-pdfs-and-generate-visual-diff": { + "title": "Compare Two Pdfs And Generate Visual Diff", + "filename": "compare-two-pdfs-and-generate-visual-diff.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "compare-two-pdfs-aspdf-comparison": { + "title": "Compare Two PDFs Using Aspose.Pdf.Comparison", + "filename": "compare-two-pdfs-aspdf-comparison.cs", + "description": "Demonstrates how to compare two PDF documents with Aspose.Pdf, generating a result PDF that highlights differences. The example notes that case‑insensitive text comparison is not directly supported in the current API.", "tags": [ "pdf-comparison", - "font-differences", "aspose-pdf", - "diff-operations", - "csharp" + "csharp", + "text-comparison", + "case-sensitive" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Comparison.ComparisonOptions", - "Aspose.Pdf.Comparison.TextPdfComparer.CompareFlatDocuments", - "Aspose.Pdf.Comparison.DiffOperation", - "Aspose.Pdf.Comparison.DiffOperation.Operation" + "Aspose.Pdf.Comparison.TextPdfComparer", + "Aspose.Pdf.Comparison.TextPdfComparer.CompareFlatDocuments" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:16:04Z", "status": "verified" }, - "compare-encrypted-pdfs-side-by-side": { - "title": "Compare Encrypted PDFs Side‑by‑Side with Passwords", - "filename": "compare-encrypted-pdfs-side-by-side.cs", - "description": "Demonstrates loading two password‑protected PDF files and performing a side‑by‑side visual comparison using Aspose.Pdf, saving the result as a new PDF.", + "compare-two-pdfs-visual-diff": { + "title": "Compare Two PDFs and Generate a Visual Diff", + "filename": "compare-two-pdfs-visual-diff.cs", + "description": "Demonstrates how to compare two PDF documents using Aspose.Pdf, generate a list of differences, and create a result PDF that visually highlights those differences.", "tags": [ "pdf-comparison", - "encrypted-pdf", - "password", - "side-by-side", - "aspose-pdf" + "visual-diff", + "csharp", + "aspose-pdf", + "document-compare" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Comparison.SideBySideComparisonOptions", - "Aspose.Pdf.Comparison.SideBySidePdfComparer", - "Aspose.Pdf.Comparison.SideBySidePdfComparer.Compare" + "Aspose.Pdf.Comparison.ComparisonOptions", + "Aspose.Pdf.Comparison.TextPdfComparer.CompareFlatDocuments", + "Aspose.Pdf.Comparison.DiffOperation" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:16:04Z", "status": "verified" }, - "in-memory-pdf-comparison-diff": { - "title": "In-Memory PDF Comparison with Diff Output", - "filename": "in-memory-pdf-comparison-diff.cs", - "description": "Demonstrates loading two PDFs from memory streams, comparing them page‑by‑page using Aspose's GraphicalPdfComparer, and returning the visual diff as a new PDF in a memory stream.", + "exclude-annotations-from-pdf-comparison": { + "title": "Exclude Annotations from PDF Comparison", + "filename": "exclude-annotations-from-pdf-comparison.cs", + "description": "Demonstrates collecting annotation bounding rectangles from two PDFs and configuring SideBySideComparisonOptions to exclude those areas during a side‑by‑side comparison.", "tags": [ "pdf-comparison", - "in-memory", - "graphical-comparer", + "annotations", + "exclude-areas", "aspose-pdf", - "memorystream" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Comparison.GraphicalPdfComparer", - "Aspose.Pdf.Comparison.GraphicalPdfComparer.ComparePagesToPdf", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Text.TextFragment" + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Comparison.SideBySideComparisonOptions", + "Aspose.Pdf.Comparison.SideBySidePdfComparer.Compare" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:16:04Z", "status": "verified" }, - "generate-visual-diff-pdf": { - "title": "Generate Visual Diff PDF Using GraphicalPdfComparer", - "filename": "generate-visual-diff-pdf.cs", - "description": "Demonstrates how to compare two PDF documents and create a visual diff PDF with Aspose.Pdf's GraphicalPdfComparer.", + "exclude-areas-from-pdf-comparison": { + "title": "Exclude Areas from PDF Comparison", + "filename": "exclude-areas-from-pdf-comparison.cs", + "description": "Demonstrates how to define rectangular regions to exclude from each PDF and perform a side‑by‑side comparison using Aspose.Pdf.", "tags": [ "pdf-comparison", - "visual-diff", - "aspose-pdf", + "exclude-areas", + "side-by-side", "csharp", - "document-comparison" + "aspdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Comparison.GraphicalPdfComparer", - "Aspose.Pdf.Comparison.GraphicalPdfComparer.CompareDocumentsToPdf" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Comparison.SideBySideComparisonOptions", + "Aspose.Pdf.Comparison.SideBySidePdfComparer", + "Aspose.Pdf.Comparison.SideBySidePdfComparer.Compare" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:16:04Z", "status": "verified" }, - "get-image-differences-between-pdf-pages": { - "title": "Get Image Differences Between PDF Pages", - "filename": "get-image-differences-between-pdf-pages.cs", - "description": "Demonstrates how to compare two PDF documents page‑by‑page using Aspose.Pdf's GraphicalPdfComparer, retrieve image differences, and save the source and destination images.", + "exclude-footer-areas-in-pdf-comparison": { + "title": "Exclude Footer Areas in PDF Comparison", + "filename": "exclude-footer-areas-in-pdf-comparison.cs", + "description": "Demonstrates how to define rectangular exclude areas to omit footers when performing a side‑by‑side PDF comparison using Aspose.Pdf.", "tags": [ "pdf-comparison", - "image-difference", - "aspose-pdf", - "csharp", - "graphics" + "exclude-areas", + "footer", + "side-by-side", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Comparison.GraphicalPdfComparer", - "Aspose.Pdf.Comparison.ImagesDifference", - "Aspose.Pdf.Comparison.ImagesDifference.GetDestinationImage" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Comparison.SideBySideComparisonOptions", + "Aspose.Pdf.Comparison.SideBySidePdfComparer.Compare" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:16:04Z", @@ -442,110 +542,95 @@ "generated_at": "2026-08-20T07:16:04Z", "status": "verified" }, - "compare-pdfs-generate-json-diff-report": { - "title": "Compare PDFs and Generate JSON Diff Report", - "filename": "compare-pdfs-generate-json-diff-report.cs", - "description": "The example loads two PDF files, extracts their text page by page using Aspose.Pdf, identifies added, removed or modified pages, creates DiffOperation objects, and serializes the differences to a JSON report.", - "tags": [ - "pdf-comparison", - "text-extraction", - "json-serialization", - "diff-report", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextAbsorber", - "Aspose.Pdf.Text.TextAbsorber.Visit", - "Aspose.Pdf.Page", - "Aspose.Pdf.Document.Pages" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:16:04Z", - "status": "verified" - }, - "replace-text-using-diffoperation": { - "title": "Replace Text in PDF Using DiffOperation Comparison", - "filename": "replace-text-using-diffoperation.cs", - "description": "Demonstrates how to compare two PDF pages, reconstruct the original text from the first PDF using DiffOperation objects, and replace the text content of the second PDF page with the reconstructed text.", + "generate-pdf-diff-images-zip": { + "title": "Generate PDF Diff Images and Zip Them", + "filename": "generate-pdf-diff-images-zip.cs", + "description": "Shows how to compare two PDFs with Aspose.Pdf's GraphicalPdfComparer, export the visual differences as PNG images, and package the resulting images into a ZIP archive.", "tags": [ "pdf", "comparison", - "diffoperation", - "text-replacement", + "diff-images", + "zip", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Comparison.ComparisonOptions", - "Aspose.Pdf.Comparison.TextPdfComparer.ComparePages", - "Aspose.Pdf.Comparison.TextPdfComparer.AssemblySourcePageText", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment" + "Aspose.Pdf.Comparison.GraphicalPdfComparer", + "Aspose.Pdf.Comparison.GraphicalPdfComparer.CompareDocumentsToImages" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:16:04Z", "status": "verified" }, - "compare-pdfs-log-differences": { - "title": "Compare PDFs and Log Differences by Page", - "filename": "compare-pdfs-log-differences.cs", - "description": "Shows how to compare two PDF documents page‑by‑page with Aspose.Pdf and write an audit log that records each diff operation type together with its page number.", + "generate-pdf-difference-image": { + "title": "Generate Pdf Difference Image", + "filename": "generate-pdf-difference-image.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "generate-visual-diff-pdf": { + "title": "Generate Visual Diff PDF Using GraphicalPdfComparer", + "filename": "generate-visual-diff-pdf.cs", + "description": "Demonstrates how to compare two PDF documents and create a visual diff PDF with Aspose.Pdf's GraphicalPdfComparer.", "tags": [ "pdf-comparison", - "audit-log", - "page-diff", + "visual-diff", "aspose-pdf", - "csharp" + "csharp", + "document-comparison" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Comparison.ComparisonOptions", - "Aspose.Pdf.Comparison.TextPdfComparer.CompareDocumentsPageByPage", - "Aspose.Pdf.Comparison.DiffOperation" + "Aspose.Pdf.Comparison.GraphicalPdfComparer", + "Aspose.Pdf.Comparison.GraphicalPdfComparer.CompareDocumentsToPdf" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:16:04Z", "status": "verified" }, - "compare-two-pdfs-visual-diff": { - "title": "Compare Two PDFs and Generate a Visual Diff", - "filename": "compare-two-pdfs-visual-diff.cs", - "description": "Demonstrates how to compare two PDF documents using Aspose.Pdf, generate a list of differences, and create a result PDF that visually highlights those differences.", + "get-image-differences-between-pdf-pages": { + "title": "Get Image Differences Between PDF Pages", + "filename": "get-image-differences-between-pdf-pages.cs", + "description": "Demonstrates how to compare two PDF documents page‑by‑page using Aspose.Pdf's GraphicalPdfComparer, retrieve image differences, and save the source and destination images.", "tags": [ "pdf-comparison", - "visual-diff", - "csharp", + "image-difference", "aspose-pdf", - "document-compare" + "csharp", + "graphics" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Comparison.ComparisonOptions", - "Aspose.Pdf.Comparison.TextPdfComparer.CompareFlatDocuments", - "Aspose.Pdf.Comparison.DiffOperation" + "Aspose.Pdf.Page", + "Aspose.Pdf.Comparison.GraphicalPdfComparer", + "Aspose.Pdf.Comparison.ImagesDifference", + "Aspose.Pdf.Comparison.ImagesDifference.GetDestinationImage" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:16:04Z", "status": "verified" }, - "preserve-original-metadata-in-diff-pdf": { - "title": "Copy Original PDF Metadata to Diff PDF", - "filename": "preserve-original-metadata-in-diff-pdf.cs", - "description": "The example compares two PDF files using Aspose.Pdf.Comparison and then copies all document metadata from the original PDF to the generated diff PDF, ensuring the diff retains the original information.", + "in-memory-pdf-comparison-diff": { + "title": "In-Memory PDF Comparison with Diff Output", + "filename": "in-memory-pdf-comparison-diff.cs", + "description": "Demonstrates loading two PDFs from memory streams, comparing them page‑by‑page using Aspose's GraphicalPdfComparer, and returning the visual diff as a new PDF in a memory stream.", "tags": [ "pdf-comparison", - "metadata", + "in-memory", + "graphical-comparer", "aspose-pdf", - "document-info", - "csharp" + "memorystream" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Comparison.TextPdfComparer.CompareDocumentsPageByPage", - "Aspose.Pdf.Comparison.ComparisonOptions", - "Aspose.Pdf.DocumentInfo", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Comparison.GraphicalPdfComparer", + "Aspose.Pdf.Comparison.GraphicalPdfComparer.ComparePagesToPdf", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Text.TextFragment" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:16:04Z", @@ -573,47 +658,122 @@ "generated_at": "2026-08-20T07:16:04Z", "status": "verified" }, - "batch-pdf-comparison-parallel": { - "title": "Batch PDF Comparison with Parallel Processing", - "filename": "batch-pdf-comparison-parallel.cs", - "description": "Demonstrates how to compare a large set of PDFs against a reference file using Aspose.Pdf's comparison API while limiting concurrency with SemaphoreSlim to control memory usage.", + "parallel-batch-pdf-comparison": { + "title": "Parallel Batch Pdf Comparison", + "filename": "parallel-batch-pdf-comparison.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "pdf-diff-images-to-zip": { + "title": "Pdf Diff Images To Zip", + "filename": "pdf-diff-images-to-zip.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "pdf-diff-report-json": { + "title": "Pdf Diff Report Json", + "filename": "pdf-diff-report-json.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "preserve-original-metadata-in-diff-pdf": { + "title": "Copy Original PDF Metadata to Diff PDF", + "filename": "preserve-original-metadata-in-diff-pdf.cs", + "description": "The example compares two PDF files using Aspose.Pdf.Comparison and then copies all document metadata from the original PDF to the generated diff PDF, ensuring the diff retains the original information.", "tags": [ "pdf-comparison", - "parallel-processing", + "metadata", "aspose-pdf", - "batch", - "concurrency" + "document-info", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Comparison.SideBySidePdfComparer", - "Aspose.Pdf.Comparison.SideBySidePdfComparer.Compare", + "Aspose.Pdf.Comparison.TextPdfComparer.CompareDocumentsPageByPage", "Aspose.Pdf.Comparison.ComparisonOptions", - "Aspose.Pdf.Comparison.SideBySideComparisonOptions" + "Aspose.Pdf.DocumentInfo", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:16:04Z", "status": "verified" }, - "generate-pdf-diff-images-zip": { - "title": "Generate PDF Diff Images and Zip Them", - "filename": "generate-pdf-diff-images-zip.cs", - "description": "Shows how to compare two PDFs with Aspose.Pdf's GraphicalPdfComparer, export the visual differences as PNG images, and package the resulting images into a ZIP archive.", + "preserve-pdf-metadata-after-comparison": { + "title": "Preserve Pdf Metadata After Comparison", + "filename": "preserve-pdf-metadata-after-comparison.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "replace-text-using-diffoperation": { + "title": "Replace Text in PDF Using DiffOperation Comparison", + "filename": "replace-text-using-diffoperation.cs", + "description": "Demonstrates how to compare two PDF pages, reconstruct the original text from the first PDF using DiffOperation objects, and replace the text content of the second PDF page with the reconstructed text.", "tags": [ "pdf", "comparison", - "diff-images", - "zip", + "diffoperation", + "text-replacement", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Comparison.GraphicalPdfComparer", - "Aspose.Pdf.Comparison.GraphicalPdfComparer.CompareDocumentsToImages" + "Aspose.Pdf.Comparison.ComparisonOptions", + "Aspose.Pdf.Comparison.TextPdfComparer.ComparePages", + "Aspose.Pdf.Comparison.TextPdfComparer.AssemblySourcePageText", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:16:04Z", "status": "verified" + }, + "set-custom-image-similarity-tolerance-pdf-comparison": { + "title": "Set Custom Image Similarity Tolerance for PDF Comparison", + "filename": "set-custom-image-similarity-tolerance-pdf-comparison.cs", + "description": "Demonstrates how to configure a custom tolerance percentage for image differences when comparing two PDFs using Aspose.Pdf's GraphicalPdfComparer and generate diff images.", + "tags": [ + "pdf-comparison", + "image-tolerance", + "graphical-comparer", + "aspose-pdf", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Comparison.GraphicalPdfComparer", + "Aspose.Pdf.Comparison.GraphicalPdfComparer.Threshold", + "Aspose.Pdf.Comparison.GraphicalPdfComparer.CompareDocumentsToImages", + "Aspose.Pdf.Comparison.ComparisonOptions" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:16:04Z", + "status": "verified" + }, + "write-pdf-diff-to-http-response": { + "title": "Write Pdf Diff To Http Response", + "filename": "write-pdf-diff-to-http-response.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" } } } \ No newline at end of file diff --git a/conversion/AGENTS.md b/conversion/AGENTS.md index acb17b4e3..7c7f5eac3 100644 --- a/conversion/AGENTS.md +++ b/conversion/AGENTS.md @@ -8,7 +8,7 @@ parent: ../agents.md # AGENTS - conversion -> **Conversion** in PDF using C# / .NET -- **101** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. +> **Conversion** in PDF using C# / .NET -- **150** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. ## Persona @@ -23,25 +23,25 @@ See the root [agents.md](../agents.md) for repository-wide conventions and bound ## Required Namespaces -- `using Aspose.Pdf;` (101/101 files) ← category-specific -- `using Aspose.Pdf.Devices;` (17/101 files) -- `using Aspose.Pdf.Text;` (8/101 files) -- `using Aspose.Pdf.Annotations;` (3/101 files) -- `using Aspose.Pdf.Drawing;` (1/101 files) -- `using Aspose.Pdf.Facades;` (1/101 files) -- `using Aspose.Pdf.LogicalStructure;` (1/101 files) -- `using Aspose.Pdf.Tagged;` (1/101 files) -- `using System;` (101/101 files) -- `using System.IO;` (101/101 files) -- `using System.IO.Compression;` (5/101 files) -- `using System.Text;` (4/101 files) -- `using System.Collections.Generic;` (2/101 files) -- `using System.Linq;` (2/101 files) -- `using System.Text.RegularExpressions;` (2/101 files) -- `using System.Xml.Linq;` (2/101 files) -- `using System.Diagnostics;` (1/101 files) -- `using System.Drawing;` (1/101 files) -- `using System.Text.Json;` (1/101 files) +- `using Aspose.Pdf;` (101/150 files) ← category-specific +- `using Aspose.Pdf.Devices;` (17/150 files) +- `using Aspose.Pdf.Text;` (8/150 files) +- `using Aspose.Pdf.Annotations;` (3/150 files) +- `using Aspose.Pdf.Drawing;` (1/150 files) +- `using Aspose.Pdf.Facades;` (1/150 files) +- `using Aspose.Pdf.LogicalStructure;` (1/150 files) +- `using Aspose.Pdf.Tagged;` (1/150 files) +- `using System;` (101/150 files) +- `using System.IO;` (101/150 files) +- `using System.IO.Compression;` (5/150 files) +- `using System.Text;` (4/150 files) +- `using System.Collections.Generic;` (2/150 files) +- `using System.Linq;` (2/150 files) +- `using System.Text.RegularExpressions;` (2/150 files) +- `using System.Xml.Linq;` (2/150 files) +- `using System.Diagnostics;` (1/150 files) +- `using System.Drawing;` (1/150 files) +- `using System.Text.Json;` (1/150 files) ## Common Code Pattern @@ -59,40 +59,40 @@ using (Document doc = new Document("input.pdf")) | File | Title | Key APIs | Description | |------|-------|----------|-------------| +| [add-attachment-to-pdfa3b-document](./add-attachment-to-pdfa3b-document.cs) | Add attachment to pdfa3b document | | Add attachment to pdfa3b document | | [add-external-text-file-attachment-to-pdfa3b](./add-external-text-file-attachment-to-pdfa3b.cs) | Add External Text File Attachment to PDF/A‑3b Document | `Document`, `FileSpecification`, `FileAttachmentAnnotation` | Demonstrates how to embed an external text file as a file attachment annotation and convert the P... | | [add-external-xml-attachment-to-pdfa](./add-external-xml-attachment-to-pdfa.cs) | Add External XML Attachment to PDF/A‑1b Document | `Document`, `Convert`, `FileSpecification` | Demonstrates converting a PDF to PDF/A‑1b and attaching an external XML file as a file‑attachment... | +| [add-logo-to-pdf-and-convert-to-pptx](./add-logo-to-pdf-and-convert-to-pptx.cs) | Add logo to pdf and convert to pptx | | Add logo to pdf and convert to pptx | +| [add-xml-attachment-to-pdfa1b-document](./add-xml-attachment-to-pdfa1b-document.cs) | Add xml attachment to pdfa1b document | | Add xml attachment to pdfa1b document | | [batch-convert-pdfs-to-jpeg-custom-naming](./batch-convert-pdfs-to-jpeg-custom-naming.cs) | Batch Convert PDFs to JPEG with Custom Naming | `Document`, `JpegDevice`, `Resolution` | Demonstrates how to convert all PDF files in a folder to JPEG images page‑by‑page using Aspose.Pd... | +| [batch-convert-pdfs-to-jpeg-images](./batch-convert-pdfs-to-jpeg-images.cs) | Batch convert pdfs to jpeg images | | Batch convert pdfs to jpeg images | | [batch-convert-pdfs-to-multi-page-tiff](./batch-convert-pdfs-to-multi-page-tiff.cs) | Batch Convert PDFs to Multi‑Page TIFF | `Document`, `Add`, `TiffDevice` | Demonstrates how to merge several PDF files into a single document and then convert the combined ... | +| [batch-convert-pdfs-to-png-preserve-hierarchy](./batch-convert-pdfs-to-png-preserve-hierarchy.cs) | Batch convert pdfs to png preserve hierarchy | | Batch convert pdfs to png preserve hierarchy | | [batch-convert-pdfs-to-png](./batch-convert-pdfs-to-png.cs) | Batch Convert PDFs to PNG Preserving Folder Structure | `Document`, `PngDevice`, `Resolution` | Demonstrates how to recursively locate PDF files, keep their relative folder hierarchy, and conve... | | [batch-convert-pdfs-to-pptx-slides-as-images](./batch-convert-pdfs-to-pptx-slides-as-images.cs) | Batch Convert PDFs to PPTX with SlidesAsImages | `Document`, `ctor`, `PptxSaveOptions` | Iterates through PDF files in a folder and converts each to a PPTX presentation using Aspose.Pdf,... | +| [batch-convert-pdfs-to-pptx-slidesasimages](./batch-convert-pdfs-to-pptx-slidesasimages.cs) | Batch convert pdfs to pptx slidesasimages | | Batch convert pdfs to pptx slidesasimages | | [convert-epub-to-pdf-custom-page-size](./convert-epub-to-pdf-custom-page-size.cs) | Convert EPUB to PDF with Custom Page Size | `EpubLoadOptions`, `Document`, `Save` | Demonstrates loading an EPUB file with EpubLoadOptions to set a custom page size and converting i... | | [convert-latex-to-pdf](./convert-latex-to-pdf.cs) | Convert LaTeX (.tex) to PDF with Aspose.Pdf | `TeXLoadOptions`, `Document`, `Save` | Demonstrates loading a LaTeX (.tex) file using Aspose.Pdf's TeXLoadOptions and converting it to a... | | [convert-markdown-to-pdf-preserving-code-blocks](./convert-markdown-to-pdf-preserving-code-blocks.cs) | Convert Markdown to PDF Preserving Code Blocks | `MdLoadOptions`, `Document`, `Save` | Demonstrates loading a Markdown file with MdLoadOptions and converting it to a PDF while keeping ... | +| [convert-markdown-to-pdf](./convert-markdown-to-pdf.cs) | Convert markdown to pdf | | Convert markdown to pdf | | [convert-ofd-to-pdf](./convert-ofd-to-pdf.cs) | Convert OFD to PDF with Aspose.Pdf | `Document`, `OfdLoadOptions`, `Save` | Demonstrates loading an OFD file using OfdLoadOptions and saving it as a PDF with default settings. | | [convert-pcl-to-pdf-hpgl2](./convert-pcl-to-pdf-hpgl2.cs) | Convert PCL to PDF with HP‑GL/2 Vectors | `PclLoadOptions`, `Document`, `ctor` | Demonstrates loading a PCL file (including HP‑GL/2 vector data) using Aspose.Pdf and saving it as... | +| [convert-pdf-page-region-to-png](./convert-pdf-page-region-to-png.cs) | Convert pdf page region to png | | Convert pdf page region to png | | [convert-pdf-page-to-jpeg](./convert-pdf-page-to-jpeg.cs) | Convert PDF Page to JPEG Image | `Document`, `JpegDevice`, `Page` | Demonstrates how to load a PDF, validate a page number, and convert that specific page to a JPEG ... | +| [convert-pdf-pages-to-html](./convert-pdf-pages-to-html.cs) | Convert pdf pages to html | | Convert pdf pages to html | | [convert-pdf-pages-to-separate-html-files](./convert-pdf-pages-to-separate-html-files.cs) | Convert PDF Pages to Separate HTML Files | `Document`, `HtmlSaveOptions`, `Save` | Demonstrates how to use Aspose.Pdf to convert each page of a PDF into its own HTML file by enabli... | | [convert-pdf-to-bmp-images](./convert-pdf-to-bmp-images.cs) | Convert PDF to BMP Images | `Document`, `BmpDevice`, `Pages` | Shows how to load a PDF with Aspose.Pdf, iterate through its pages, and render each page to a BMP... | +| [convert-pdf-to-doc-custom-recognition](./convert-pdf-to-doc-custom-recognition.cs) | Convert pdf to doc custom recognition | | Convert pdf to doc custom recognition | | [convert-pdf-to-doc-default](./convert-pdf-to-doc-default.cs) | Convert PDF to DOC with Default Settings | `Document`, `DocSaveOptions`, `DocFormat` | Demonstrates converting a PDF file to the legacy DOC format using Aspose.Pdf with default text ex... | | [convert-pdf-to-doc-image-extraction](./convert-pdf-to-doc-image-extraction.cs) | Convert PDF to DOC with Image Extraction (Textbox Mode) | `Document`, `DocSaveOptions`, `Format` | Demonstrates how to convert a PDF file to a DOC document using Aspose.Pdf with custom recognition... | | [convert-pdf-to-doc-plain-text](./convert-pdf-to-doc-plain-text.cs) | Convert PDF to DOC with Plain Text Extraction | `Document`, `DocSaveOptions`, `DocFormat` | Shows how to convert a PDF file to a DOC file using Aspose.Pdf, configuring DocSaveOptions to ext... | +| [convert-pdf-to-doc-text-mode](./convert-pdf-to-doc-text-mode.cs) | Convert pdf to doc text mode | | Convert pdf to doc text mode | | [convert-pdf-to-docx-add-table-of-figures](./convert-pdf-to-docx-add-table-of-figures.cs) | Convert PDF to DOCX and Add Table of Figures | `Document`, `Page`, `XImage` | Demonstrates converting a PDF file to DOCX using Aspose.Pdf while extracting images, generating c... | | [convert-pdf-to-docx-and-pdfa](./convert-pdf-to-docx-and-pdfa.cs) | Convert PDF to DOCX and then to PDF/A | `Document`, `DocSaveOptions`, `DocFormat` | Demonstrates loading a PDF with Aspose.Pdf, converting it to a DOCX file, and then creating a PDF... | -| [convert-pdf-to-docx-and-zip](./convert-pdf-to-docx-and-zip.cs) | Convert PDF to DOCX and Zip the Result | `Document`, `DocSaveOptions`, `Save` | Shows how to use Aspose.Pdf to convert a PDF file to DOCX format and then compress the generated ... | -| [convert-pdf-to-docx-auto-detection](./convert-pdf-to-docx-auto-detection.cs) | Convert PDF to DOCX with Automatic Content Detection | `Document`, `DocSaveOptions`, `DocFormat` | Demonstrates how to convert a PDF file to DOCX using Aspose.Pdf with the DocSaveOptions.Mode set ... | -| [convert-pdf-to-docx-enhanced-flow](./convert-pdf-to-docx-enhanced-flow.cs) | Convert PDF to DOCX with Enhanced Flow Mode | `Document`, `DocSaveOptions`, `RecognitionMode` | Demonstrates how to convert a PDF file to a DOCX document using Aspose.Pdf with the enhanced flow... | -| [convert-pdf-to-docx-extract-images](./convert-pdf-to-docx-extract-images.cs) | Convert PDF to DOCX and Extract Embedded Images | `Document`, `DocSaveOptions`, `Save` | Demonstrates how to convert a PDF file to DOCX format using Aspose.Pdf and then iterate through e... | -| [convert-pdf-to-docx-layout](./convert-pdf-to-docx-layout.cs) | Convert PDF to DOCX with Layout Preservation | `Document`, `DocSaveOptions`, `RecognitionMode` | Demonstrates converting a PDF file to a DOCX document using Aspose.Pdf's standard textbox recogni... | -| [convert-pdf-to-docx-with-embedded-fonts](./convert-pdf-to-docx-with-embedded-fonts.cs) | Convert PDF to DOCX with Embedded Fonts | `Document`, `DocSaveOptions`, `DocFormat` | Demonstrates converting a PDF file to a DOCX document using Aspose.Pdf while embedding fonts to p... | -| [convert-pdf-to-docx-with-footnotes](./convert-pdf-to-docx-with-footnotes.cs) | Convert PDF to DOCX with Footnotes Preservation | `Document`, `DocSaveOptions`, `DocFormat` | Demonstrates converting a PDF file to DOCX using Aspose.Pdf while preserving footnotes by enablin... | -| [convert-pdf-to-docx-with-hyphenation](./convert-pdf-to-docx-with-hyphenation.cs) | Convert PDF to DOCX with Hyphenation and Flow Settings | `Document`, `DocSaveOptions`, `Format` | Demonstrates converting a PDF file to DOCX using Aspose.Pdf while applying flow‑based recognition... | -| [convert-pdf-to-docx-with-metadata](./convert-pdf-to-docx-with-metadata.cs) | Convert PDF to DOCX with Author and Title Metadata | `Document`, `DocumentInfo`, `DocSaveOptions` | Demonstrates loading a PDF with Aspose.Pdf, setting author and title metadata, and converting it ... | -| [convert-pdf-to-docx-with-stats](./convert-pdf-to-docx-with-stats.cs) | Convert PDF to DOCX with Conversion Statistics | `Document`, `DocSaveOptions`, `DocFormat` | Demonstrates how to use Aspose.Pdf to convert a PDF file to DOCX format while capturing conversio... | -| [convert-pdf-to-emf-images](./convert-pdf-to-emf-images.cs) | Convert PDF Pages to EMF Images with Vector Preservation | `Document`, `EmfDevice`, `Resolution` | Demonstrates how to load a PDF document and convert each page to an EMF image using Aspose.Pdf's ... | -| ... | | | *and 71 more files* | +| ... | | | *and 120 more files* | ## Category Statistics -- Total examples: 101 +- Total examples: 150 ## Category-Specific Tips @@ -136,5 +136,5 @@ using (Document doc = new Document("input.pdf")) - Review code examples in this folder for conversion patterns -Updated: 2026-08-20 | Run: `20260820_001147_12d7b3` +Updated: 2026-09-10 | Run: `20260910_054408_87a7f4` diff --git a/conversion/README.md b/conversion/README.md new file mode 100644 index 000000000..fcbbdd038 --- /dev/null +++ b/conversion/README.md @@ -0,0 +1,169 @@ +# Conversion + +> **Conversion** in PDF using C# / .NET -- **150** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. + +- Category: `conversion` +- Examples: 150 +- NuGet: `Aspose.PDF 26.8.0` -- target `net10.0` + +## Examples + +- [`add-attachment-to-pdfa3b-document.cs`](./add-attachment-to-pdfa3b-document.cs) -- Add attachment to pdfa3b document +- [`add-external-text-file-attachment-to-pdfa3b.cs`](./add-external-text-file-attachment-to-pdfa3b.cs) -- Add external text file attachment to pdfa3b +- [`add-external-xml-attachment-to-pdfa.cs`](./add-external-xml-attachment-to-pdfa.cs) -- Add external xml attachment to pdfa +- [`add-logo-to-pdf-and-convert-to-pptx.cs`](./add-logo-to-pdf-and-convert-to-pptx.cs) -- Add logo to pdf and convert to pptx +- [`add-xml-attachment-to-pdfa1b-document.cs`](./add-xml-attachment-to-pdfa1b-document.cs) -- Add xml attachment to pdfa1b document +- [`batch-convert-pdfs-to-jpeg-custom-naming.cs`](./batch-convert-pdfs-to-jpeg-custom-naming.cs) -- Batch convert pdfs to jpeg custom naming +- [`batch-convert-pdfs-to-jpeg-images.cs`](./batch-convert-pdfs-to-jpeg-images.cs) -- Batch convert pdfs to jpeg images +- [`batch-convert-pdfs-to-multi-page-tiff.cs`](./batch-convert-pdfs-to-multi-page-tiff.cs) -- Batch convert pdfs to multi page tiff +- [`batch-convert-pdfs-to-png-preserve-hierarchy.cs`](./batch-convert-pdfs-to-png-preserve-hierarchy.cs) -- Batch convert pdfs to png preserve hierarchy +- [`batch-convert-pdfs-to-png.cs`](./batch-convert-pdfs-to-png.cs) -- Batch convert pdfs to png +- [`batch-convert-pdfs-to-pptx-slides-as-images.cs`](./batch-convert-pdfs-to-pptx-slides-as-images.cs) -- Batch convert pdfs to pptx slides as images +- [`batch-convert-pdfs-to-pptx-slidesasimages.cs`](./batch-convert-pdfs-to-pptx-slidesasimages.cs) -- Batch convert pdfs to pptx slidesasimages +- [`convert-epub-to-pdf-custom-page-size.cs`](./convert-epub-to-pdf-custom-page-size.cs) -- Convert epub to pdf custom page size +- [`convert-latex-to-pdf.cs`](./convert-latex-to-pdf.cs) -- Convert latex to pdf +- [`convert-markdown-to-pdf-preserving-code-blocks.cs`](./convert-markdown-to-pdf-preserving-code-blocks.cs) -- Convert markdown to pdf preserving code blocks +- [`convert-markdown-to-pdf.cs`](./convert-markdown-to-pdf.cs) -- Convert markdown to pdf +- [`convert-ofd-to-pdf.cs`](./convert-ofd-to-pdf.cs) -- Convert ofd to pdf +- [`convert-pcl-to-pdf-hpgl2.cs`](./convert-pcl-to-pdf-hpgl2.cs) -- Convert pcl to pdf hpgl2 +- [`convert-pdf-page-region-to-png.cs`](./convert-pdf-page-region-to-png.cs) -- Convert pdf page region to png +- [`convert-pdf-page-to-jpeg.cs`](./convert-pdf-page-to-jpeg.cs) -- Convert pdf page to jpeg +- [`convert-pdf-pages-to-html.cs`](./convert-pdf-pages-to-html.cs) -- Convert pdf pages to html +- [`convert-pdf-pages-to-separate-html-files.cs`](./convert-pdf-pages-to-separate-html-files.cs) -- Convert pdf pages to separate html files +- [`convert-pdf-to-bmp-images.cs`](./convert-pdf-to-bmp-images.cs) -- Convert pdf to bmp images +- [`convert-pdf-to-doc-custom-recognition.cs`](./convert-pdf-to-doc-custom-recognition.cs) -- Convert pdf to doc custom recognition +- [`convert-pdf-to-doc-default.cs`](./convert-pdf-to-doc-default.cs) -- Convert pdf to doc default +- [`convert-pdf-to-doc-image-extraction.cs`](./convert-pdf-to-doc-image-extraction.cs) -- Convert pdf to doc image extraction +- [`convert-pdf-to-doc-plain-text.cs`](./convert-pdf-to-doc-plain-text.cs) -- Convert pdf to doc plain text +- [`convert-pdf-to-doc-text-mode.cs`](./convert-pdf-to-doc-text-mode.cs) -- Convert pdf to doc text mode +- [`convert-pdf-to-docx-add-table-of-figures.cs`](./convert-pdf-to-docx-add-table-of-figures.cs) -- Convert pdf to docx add table of figures +- [`convert-pdf-to-docx-and-pdfa.cs`](./convert-pdf-to-docx-and-pdfa.cs) -- Convert pdf to docx and pdfa +- [`convert-pdf-to-docx-and-zip.cs`](./convert-pdf-to-docx-and-zip.cs) -- Convert pdf to docx and zip +- [`convert-pdf-to-docx-auto-detection.cs`](./convert-pdf-to-docx-auto-detection.cs) -- Convert pdf to docx auto detection +- [`convert-pdf-to-docx-enhanced-flow.cs`](./convert-pdf-to-docx-enhanced-flow.cs) -- Convert pdf to docx enhanced flow +- [`convert-pdf-to-docx-enhanced-recognition.cs`](./convert-pdf-to-docx-enhanced-recognition.cs) -- Convert pdf to docx enhanced recognition +- [`convert-pdf-to-docx-extract-images.cs`](./convert-pdf-to-docx-extract-images.cs) -- Convert pdf to docx extract images +- [`convert-pdf-to-docx-layout.cs`](./convert-pdf-to-docx-layout.cs) -- Convert pdf to docx layout +- [`convert-pdf-to-docx-preserve-layout.cs`](./convert-pdf-to-docx-preserve-layout.cs) -- Convert pdf to docx preserve layout +- [`convert-pdf-to-docx-with-embedded-fonts.cs`](./convert-pdf-to-docx-with-embedded-fonts.cs) -- Convert pdf to docx with embedded fonts +- [`convert-pdf-to-docx-with-footnotes.cs`](./convert-pdf-to-docx-with-footnotes.cs) -- Convert pdf to docx with footnotes +- [`convert-pdf-to-docx-with-hyphenation.cs`](./convert-pdf-to-docx-with-hyphenation.cs) -- Convert pdf to docx with hyphenation +- [`convert-pdf-to-docx-with-metadata.cs`](./convert-pdf-to-docx-with-metadata.cs) -- Convert pdf to docx with metadata +- [`convert-pdf-to-docx-with-stats.cs`](./convert-pdf-to-docx-with-stats.cs) -- Convert pdf to docx with stats +- [`convert-pdf-to-docx-with-table-of-figures.cs`](./convert-pdf-to-docx-with-table-of-figures.cs) -- Convert pdf to docx with table of figures +- [`convert-pdf-to-emf-images.cs`](./convert-pdf-to-emf-images.cs) -- Convert pdf to emf images +- [`convert-pdf-to-emf.cs`](./convert-pdf-to-emf.cs) -- Convert pdf to emf +- [`convert-pdf-to-epub-with-cover.cs`](./convert-pdf-to-epub-with-cover.cs) -- Convert pdf to epub with cover +- [`convert-pdf-to-epub.cs`](./convert-pdf-to-epub.cs) -- Convert pdf to epub +- [`convert-pdf-to-gif-images.cs`](./convert-pdf-to-gif-images.cs) -- Convert pdf to gif images +- [`convert-pdf-to-html-and-minify.cs`](./convert-pdf-to-html-and-minify.cs) -- Convert pdf to html and minify +- [`convert-pdf-to-html-and-pptx-with-embedded-fonts.cs`](./convert-pdf-to-html-and-pptx-with-embedded-fonts.cs) -- Convert pdf to html and pptx with embedded fonts +- [`convert-pdf-to-html-and-pptx.cs`](./convert-pdf-to-html-and-pptx.cs) -- Convert pdf to html and pptx +- [`convert-pdf-to-html-compressed-svg.cs`](./convert-pdf-to-html-compressed-svg.cs) -- Convert pdf to html compressed svg +- [`convert-pdf-to-html-docx-with-embedded-fonts.cs`](./convert-pdf-to-html-docx-with-embedded-fonts.cs) -- Convert pdf to html docx with embedded fonts +- [`convert-pdf-to-html-pages-with-index.cs`](./convert-pdf-to-html-pages-with-index.cs) -- Convert pdf to html pages with index +- [`convert-pdf-to-html-per-page-image-subfolders.cs`](./convert-pdf-to-html-per-page-image-subfolders.cs) -- Convert pdf to html per page image subfolders +- [`convert-pdf-to-html-png-background.cs`](./convert-pdf-to-html-png-background.cs) -- Convert pdf to html png background +- [`convert-pdf-to-html-png-background__v2.cs`](./convert-pdf-to-html-png-background__v2.cs) -- Convert pdf to html png background v2 +- [`convert-pdf-to-html-png-page-background.cs`](./convert-pdf-to-html-png-page-background.cs) -- Convert pdf to html png page background +- [`convert-pdf-to-html-png-page-background__v2.cs`](./convert-pdf-to-html-png-page-background__v2.cs) -- Convert pdf to html png page background v2 +- [`convert-pdf-to-html-sitemap.cs`](./convert-pdf-to-html-sitemap.cs) -- Convert pdf to html sitemap +- [`convert-pdf-to-html-with-custom-css.cs`](./convert-pdf-to-html-with-custom-css.cs) -- Convert pdf to html with custom css +- [`convert-pdf-to-html-with-custom-font.cs`](./convert-pdf-to-html-with-custom-font.cs) -- Convert pdf to html with custom font +- [`convert-pdf-to-html-with-embedded-custom-fonts.cs`](./convert-pdf-to-html-with-embedded-custom-fonts.cs) -- Convert pdf to html with embedded custom fonts +- [`convert-pdf-to-html-with-svg-compression.cs`](./convert-pdf-to-html-with-svg-compression.cs) -- Convert pdf to html with svg compression +- [`convert-pdf-to-html-with-svg-images.cs`](./convert-pdf-to-html-with-svg-images.cs) -- Convert pdf to html with svg images +- [`convert-pdf-to-html-zip-archive.cs`](./convert-pdf-to-html-zip-archive.cs) -- Convert pdf to html zip archive +- [`convert-pdf-to-html-zip.cs`](./convert-pdf-to-html-zip.cs) -- Convert pdf to html zip +- [`convert-pdf-to-jpeg-images.cs`](./convert-pdf-to-jpeg-images.cs) -- Convert pdf to jpeg images +- [`convert-pdf-to-jpeg.cs`](./convert-pdf-to-jpeg.cs) -- Convert pdf to jpeg +- [`convert-pdf-to-latex-with-custom-macros.cs`](./convert-pdf-to-latex-with-custom-macros.cs) -- Convert pdf to latex with custom macros +- [`convert-pdf-to-latex-with-output-directory.cs`](./convert-pdf-to-latex-with-output-directory.cs) -- Convert pdf to latex with output directory +- [`convert-pdf-to-latex.cs`](./convert-pdf-to-latex.cs) -- Convert pdf to latex +- [`convert-pdf-to-markdown-default-options.cs`](./convert-pdf-to-markdown-default-options.cs) -- Convert pdf to markdown default options +- [`convert-pdf-to-markdown-with-custom-heading-mapping.cs`](./convert-pdf-to-markdown-with-custom-heading-mapping.cs) -- Convert pdf to markdown with custom heading mapping +- [`convert-pdf-to-markdown.cs`](./convert-pdf-to-markdown.cs) -- Convert pdf to markdown +- [`convert-pdf-to-mobixml-with-custom-metadata.cs`](./convert-pdf-to-mobixml-with-custom-metadata.cs) -- Convert pdf to mobixml with custom metadata +- [`convert-pdf-to-mobixml-with-metadata.cs`](./convert-pdf-to-mobixml-with-metadata.cs) -- Convert pdf to mobixml with metadata +- [`convert-pdf-to-mobixml.cs`](./convert-pdf-to-mobixml.cs) -- Convert pdf to mobixml +- [`convert-pdf-to-multi-page-html.cs`](./convert-pdf-to-multi-page-html.cs) -- Convert pdf to multi page html +- [`convert-pdf-to-multi-page-tiff.cs`](./convert-pdf-to-multi-page-tiff.cs) -- Convert pdf to multi page tiff +- [`convert-pdf-to-multi-page-tiff__v2.cs`](./convert-pdf-to-multi-page-tiff__v2.cs) -- Convert pdf to multi page tiff v2 +- [`convert-pdf-to-pdfa-1b-and-validate.cs`](./convert-pdf-to-pdfa-1b-and-validate.cs) -- Convert pdf to pdfa 1b and validate +- [`convert-pdf-to-pdfa-1b-skip-errors.cs`](./convert-pdf-to-pdfa-1b-skip-errors.cs) -- Convert pdf to pdfa 1b skip errors +- [`convert-pdf-to-pdfa-3b-throw-errors.cs`](./convert-pdf-to-pdfa-3b-throw-errors.cs) -- Convert pdf to pdfa 3b throw errors +- [`convert-pdf-to-pdfa-3b-throw-on-error.cs`](./convert-pdf-to-pdfa-3b-throw-on-error.cs) -- Convert pdf to pdfa 3b throw on error +- [`convert-pdf-to-pdfa1b-skip-errors.cs`](./convert-pdf-to-pdfa1b-skip-errors.cs) -- Convert pdf to pdfa1b skip errors +- [`convert-pdf-to-pdfa3b-with-font-substitution.cs`](./convert-pdf-to-pdfa3b-with-font-substitution.cs) -- Convert pdf to pdfa3b with font substitution +- [`convert-pdf-to-pdfa4-with-auto-tagging.cs`](./convert-pdf-to-pdfa4-with-auto-tagging.cs) -- Convert pdf to pdfa4 with auto tagging +- [`convert-pdf-to-pdfa4-with-converterroraction.cs`](./convert-pdf-to-pdfa4-with-converterroraction.cs) -- Convert pdf to pdfa4 with converterroraction +- [`convert-pdf-to-pdfa4-with-error-action.cs`](./convert-pdf-to-pdfa4-with-error-action.cs) -- Convert pdf to pdfa4 with error action +- [`convert-pdf-to-png-transparent-background.cs`](./convert-pdf-to-png-transparent-background.cs) -- Convert pdf to png transparent background +- [`convert-pdf-to-png-transparent-background__v2.cs`](./convert-pdf-to-png-transparent-background__v2.cs) -- Convert pdf to png transparent background v2 +- [`convert-pdf-to-pptx-add-custom-properties.cs`](./convert-pdf-to-pptx-add-custom-properties.cs) -- Convert pdf to pptx add custom properties +- [`convert-pdf-to-pptx-and-compress.cs`](./convert-pdf-to-pptx-and-compress.cs) -- Convert pdf to pptx and compress +- [`convert-pdf-to-pptx-and-pdfa.cs`](./convert-pdf-to-pptx-and-pdfa.cs) -- Convert pdf to pptx and pdfa +- [`convert-pdf-to-pptx-extract-images.cs`](./convert-pdf-to-pptx-extract-images.cs) -- Convert pdf to pptx extract images +- [`convert-pdf-to-pptx-extract-slide-titles-csv.cs`](./convert-pdf-to-pptx-extract-slide-titles-csv.cs) -- Convert pdf to pptx extract slide titles csv +- [`convert-pdf-to-pptx-optional-password-protection.cs`](./convert-pdf-to-pptx-optional-password-protection.cs) -- Convert pdf to pptx optional password protection +- [`convert-pdf-to-pptx-slides-as-images.cs`](./convert-pdf-to-pptx-slides-as-images.cs) -- Convert pdf to pptx slides as images +- [`convert-pdf-to-pptx-slidesasimages-high-dpi.cs`](./convert-pdf-to-pptx-slidesasimages-high-dpi.cs) -- Convert pdf to pptx slidesasimages high dpi +- [`convert-pdf-to-pptx-to-pdfa.cs`](./convert-pdf-to-pptx-to-pdfa.cs) -- Convert pdf to pptx to pdfa +- [`convert-pdf-to-pptx-with-annotation-notes.cs`](./convert-pdf-to-pptx-with-annotation-notes.cs) -- Convert pdf to pptx with annotation notes +- [`convert-pdf-to-pptx-with-custom-font.cs`](./convert-pdf-to-pptx-with-custom-font.cs) -- Convert pdf to pptx with custom font +- [`convert-pdf-to-pptx-with-logo.cs`](./convert-pdf-to-pptx-with-logo.cs) -- Convert pdf to pptx with logo +- [`convert-pdf-to-pptx-with-notes.cs`](./convert-pdf-to-pptx-with-notes.cs) -- Convert pdf to pptx with notes +- [`convert-pdf-to-pptx-with-progress-handler.cs`](./convert-pdf-to-pptx-with-progress-handler.cs) -- Convert pdf to pptx with progress handler +- [`convert-pdf-to-pptx-with-progress.cs`](./convert-pdf-to-pptx-with-progress.cs) -- Convert pdf to pptx with progress +- [`convert-pdf-to-pptx.cs`](./convert-pdf-to-pptx.cs) -- Convert pdf to pptx +- [`convert-pdf-to-pptx__v2.cs`](./convert-pdf-to-pptx__v2.cs) -- Convert pdf to pptx v2 +- [`convert-pdf-to-pptx__v3.cs`](./convert-pdf-to-pptx__v3.cs) -- Convert pdf to pptx v3 +- [`convert-pdf-to-pptx__v4.cs`](./convert-pdf-to-pptx__v4.cs) -- Convert pdf to pptx v4 +- [`convert-pdf-to-pptx__v5.cs`](./convert-pdf-to-pptx__v5.cs) -- Convert pdf to pptx v5 +- [`convert-pdf-to-responsive-html.cs`](./convert-pdf-to-responsive-html.cs) -- Convert pdf to responsive html +- [`convert-pdf-to-single-page-html.cs`](./convert-pdf-to-single-page-html.cs) -- Convert pdf to single page html +- [`convert-pdf-to-svg-custom-output.cs`](./convert-pdf-to-svg-custom-output.cs) -- Convert pdf to svg custom output +- [`convert-pdf-to-svg-with-embedded-css.cs`](./convert-pdf-to-svg-with-embedded-css.cs) -- Convert pdf to svg with embedded css +- [`convert-pdf-to-svg-with-output-folder.cs`](./convert-pdf-to-svg-with-output-folder.cs) -- Convert pdf to svg with output folder +- [`convert-pdf-to-svg.cs`](./convert-pdf-to-svg.cs) -- Convert pdf to svg +- [`convert-pdf-to-svg__v2.cs`](./convert-pdf-to-svg__v2.cs) -- Convert pdf to svg v2 +- [`convert-pdf-to-text.cs`](./convert-pdf-to-text.cs) -- Convert pdf to text +- [`convert-pdf-to-xps-custom-page-size.cs`](./convert-pdf-to-xps-custom-page-size.cs) -- Convert pdf to xps custom page size +- [`convert-pdf-to-xps.cs`](./convert-pdf-to-xps.cs) -- Convert pdf to xps +- [`convert-postscript-to-pdf.cs`](./convert-postscript-to-pdf.cs) -- Convert postscript to pdf +- [`convert-xml-to-pdf-using-xsl-fo.cs`](./convert-xml-to-pdf-using-xsl-fo.cs) -- Convert xml to pdf using xsl fo +- [`convert-xsl-fo-to-pdf.cs`](./convert-xsl-fo-to-pdf.cs) -- Convert xsl fo to pdf +- [`convert-xslfo-to-pdf.cs`](./convert-xslfo-to-pdf.cs) -- Convert xslfo to pdf +- [`create-multi-page-tiff-from-pdf.cs`](./create-multi-page-tiff-from-pdf.cs) -- Create multi page tiff from pdf +- [`create-single-page-tiff-from-first-pdf-page.cs`](./create-single-page-tiff-from-first-pdf-page.cs) -- Create single page tiff from first pdf page +- [`create-single-page-tiff-from-pdf.cs`](./create-single-page-tiff-from-pdf.cs) -- Create single page tiff from pdf +- [`enable-auto-tagging-pdfa-conversion.cs`](./enable-auto-tagging-pdfa-conversion.cs) -- Enable auto tagging pdfa conversion +- [`extract-pdf-page-region-to-png.cs`](./extract-pdf-page-region-to-png.cs) -- Extract pdf page region to png +- [`extract-pdf-text-to-utf8-file.cs`](./extract-pdf-text-to-utf8-file.cs) -- Extract pdf text to utf8 file +- [`extract-pdf-text-to-utf8-preserve-line-breaks.cs`](./extract-pdf-text-to-utf8-preserve-line-breaks.cs) -- Extract pdf text to utf8 preserve line breaks +- [`extract-visible-text-from-pdf.cs`](./extract-visible-text-from-pdf.cs) -- Extract visible text from pdf +- [`pdf-to-docx-conversion-json-report.cs`](./pdf-to-docx-conversion-json-report.cs) -- Pdf to docx conversion json report +- [`pdf-to-docx-to-pdfa-conversion.cs`](./pdf-to-docx-to-pdfa-conversion.cs) -- Pdf to docx to pdfa conversion +- [`pdf-to-html-embed-fonts-to-docx.cs`](./pdf-to-html-embed-fonts-to-docx.cs) -- Pdf to html embed fonts to docx +- [`pdf-to-html-merge-and-convert-back.cs`](./pdf-to-html-merge-and-convert-back.cs) -- Pdf to html merge and convert back +- [`pdf-to-html-per-page-image-folders.cs`](./pdf-to-html-per-page-image-folders.cs) -- Pdf to html per page image folders +- [`pdf-to-html-roundtrip-conversion.cs`](./pdf-to-html-roundtrip-conversion.cs) -- Pdf to html roundtrip conversion +- [`pdf-to-html-sitemap.cs`](./pdf-to-html-sitemap.cs) -- Pdf to html sitemap +- [`pdf-to-html-with-toc.cs`](./pdf-to-html-with-toc.cs) -- Pdf to html with toc +- [`pdf-to-markdown-with-heading-mapping.cs`](./pdf-to-markdown-with-heading-mapping.cs) -- Pdf to markdown with heading mapping +- [`pdf-to-png-binarize-bradley.cs`](./pdf-to-png-binarize-bradley.cs) -- Pdf to png binarize bradley +- [`pdf-to-png-bradley-contrast.cs`](./pdf-to-png-bradley-contrast.cs) -- Pdf to png bradley contrast +- [`pdf-to-pptx-export-slide-titles-csv.cs`](./pdf-to-pptx-export-slide-titles-csv.cs) -- Pdf to pptx export slide titles csv +- [`pdf-to-responsive-html.cs`](./pdf-to-responsive-html.cs) -- Pdf to responsive html +- [`replace-missing-fonts-pdfa-conversion.cs`](./replace-missing-fonts-pdfa-conversion.cs) -- Replace missing fonts pdfa conversion +- [`validate-and-convert-pdf-to-pdfa-1b.cs`](./validate-and-convert-pdf-to-pdfa-1b.cs) -- Validate and convert pdf to pdfa 1b +- [`xml-to-pdf-xsl-fo-conversion.cs`](./xml-to-pdf-xsl-fo-conversion.cs) -- Xml to pdf xsl fo conversion + +## See Also + +- [`AGENTS.md`](./AGENTS.md) -- category-specific anti-patterns, API surface, and conventions for AI coding agents +- [`../AGENTS.md`](../AGENTS.md) -- repository-wide agent guide +- [`../README.md`](../README.md) -- full category index and project overview +- [Aspose.PDF for .NET docs](https://docs.aspose.com/pdf/net/) + +> Each `.cs` file is a standalone, build-validated console example. Drop into a fresh `dotnet new console` project, add the `Aspose.PDF` NuGet (version above), and run. diff --git a/conversion/index.json b/conversion/index.json index 146fdcb33..a63169d26 100644 --- a/conversion/index.json +++ b/conversion/index.json @@ -1,296 +1,483 @@ { "category": "conversion", "nuget_version": "26.8.0", - "last_updated": "2026-08-20T07:17:28Z", + "last_updated": "2026-09-10T12:45:08Z", "examples": { - "convert-pdf-to-docx-layout": { - "title": "Convert PDF to DOCX with Layout Preservation", - "filename": "convert-pdf-to-docx-layout.cs", - "description": "Demonstrates converting a PDF file to a DOCX document using Aspose.Pdf's standard textbox recognition mode to preserve the original layout.", + "add-attachment-to-pdfa3b-document": { + "title": "Add Attachment To Pdfa3B Document", + "filename": "add-attachment-to-pdfa3b-document.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-external-text-file-attachment-to-pdfa3b": { + "title": "Add External Text File Attachment to PDF/A‑3b Document", + "filename": "add-external-text-file-attachment-to-pdfa3b.cs", + "description": "Demonstrates how to embed an external text file as a file attachment annotation and convert the PDF to PDF/A‑3b compliance using Aspose.Pdf.", "tags": [ - "pdf", - "docx", + "pdfa-3b", + "attachment", + "annotation", "conversion", - "layout", - "aspose" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.DocSaveOptions", - "Aspose.Pdf.DocSaveOptions.RecognitionMode", - "Aspose.Pdf.DocSaveOptions.DocFormat", + "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.Annotations.FileAttachmentAnnotation", + "Aspose.Pdf.Document.Convert", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-docx-enhanced-flow": { - "title": "Convert PDF to DOCX with Enhanced Flow Mode", - "filename": "convert-pdf-to-docx-enhanced-flow.cs", - "description": "Demonstrates how to convert a PDF file to a DOCX document using Aspose.Pdf with the enhanced flow recognition mode to preserve complex tables and graphics.", + "add-external-xml-attachment-to-pdfa": { + "title": "Add External XML Attachment to PDF/A‑1b Document", + "filename": "add-external-xml-attachment-to-pdfa.cs", + "description": "Demonstrates converting a PDF to PDF/A‑1b and attaching an external XML file as a file‑attachment annotation on the first page.", "tags": [ - "pdf", - "docx", + "pdfa", + "attachment", + "xml", "conversion", - "enhanced-flow", - "tables" + "annotation" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.DocSaveOptions", - "Aspose.Pdf.DocSaveOptions.RecognitionMode", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.DocSaveOptions.RecognizeBullets" + "Aspose.Pdf.Document.Convert", + "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.Annotations.FileAttachmentAnnotation", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Color" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-doc-default": { - "title": "Convert PDF to DOC with Default Settings", - "filename": "convert-pdf-to-doc-default.cs", - "description": "Demonstrates converting a PDF file to the legacy DOC format using Aspose.Pdf with default text extraction settings.", + "add-logo-to-pdf-and-convert-to-pptx": { + "title": "Add Logo To Pdf And Convert To Pptx", + "filename": "add-logo-to-pdf-and-convert-to-pptx.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-xml-attachment-to-pdfa1b-document": { + "title": "Add Xml Attachment To Pdfa1B Document", + "filename": "add-xml-attachment-to-pdfa1b-document.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "batch-convert-pdfs-to-jpeg-custom-naming": { + "title": "Batch Convert PDFs to JPEG with Custom Naming", + "filename": "batch-convert-pdfs-to-jpeg-custom-naming.cs", + "description": "Demonstrates how to convert all PDF files in a folder to JPEG images page‑by‑page using Aspose.Pdf, applying a custom file‑naming pattern for each output image.", "tags": [ "pdf", - "doc", - "conversion", - "aspose", + "jpeg", + "batch", + "aspose.pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.DocSaveOptions", - "Aspose.Pdf.DocSaveOptions.DocFormat", + "Aspose.Pdf.Devices.JpegDevice", + "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.Devices.JpegDevice.Process", + "Aspose.Pdf.Document.Pages" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:17:28Z", + "status": "verified" + }, + "batch-convert-pdfs-to-jpeg-images": { + "title": "Batch Convert Pdfs To Jpeg Images", + "filename": "batch-convert-pdfs-to-jpeg-images.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "batch-convert-pdfs-to-multi-page-tiff": { + "title": "Batch Convert PDFs to Multi‑Page TIFF", + "filename": "batch-convert-pdfs-to-multi-page-tiff.cs", + "description": "Demonstrates how to merge several PDF files into a single document and then convert the combined document into a multi‑page TIFF archive using default compression.", + "tags": [ + "pdf", + "tiff", + "conversion", + "batch", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Pages.Add", + "Aspose.Pdf.Devices.TiffDevice", + "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.Devices.TiffDevice.Process" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:17:28Z", + "status": "verified" + }, + "batch-convert-pdfs-to-png-preserve-hierarchy": { + "title": "Batch Convert Pdfs To Png Preserve Hierarchy", + "filename": "batch-convert-pdfs-to-png-preserve-hierarchy.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "batch-convert-pdfs-to-png": { + "title": "Batch Convert PDFs to PNG Preserving Folder Structure", + "filename": "batch-convert-pdfs-to-png.cs", + "description": "Demonstrates how to recursively locate PDF files, keep their relative folder hierarchy, and convert each page to a PNG image using Aspose.Pdf.", + "tags": [ + "pdf", + "png", + "batch-conversion", + "folder-hierarchy", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Devices.PngDevice", + "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.Page", + "Aspose.Pdf.Devices.PngDevice.Process" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:17:28Z", + "status": "verified" + }, + "batch-convert-pdfs-to-pptx-slides-as-images": { + "title": "Batch Convert PDFs to PPTX with SlidesAsImages", + "filename": "batch-convert-pdfs-to-pptx-slides-as-images.cs", + "description": "Iterates through PDF files in a folder and converts each to a PPTX presentation using Aspose.Pdf, enabling the SlidesAsImages option to rasterize each slide.", + "tags": [ + "pdf", + "pptx", + "batch-conversion", + "slidesasimages", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Document..ctor", + "Aspose.Pdf.PptxSaveOptions", + "Aspose.Pdf.PptxSaveOptions.SlidesAsImages", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-doc-image-extraction": { - "title": "Convert PDF to DOC with Image Extraction (Textbox Mode)", - "filename": "convert-pdf-to-doc-image-extraction.cs", - "description": "Demonstrates how to convert a PDF file to a DOC document using Aspose.Pdf with custom recognition mode (Textbox) to extract only images.", + "batch-convert-pdfs-to-pptx-slidesasimages": { + "title": "Batch Convert Pdfs To Pptx Slidesasimages", + "filename": "batch-convert-pdfs-to-pptx-slidesasimages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-epub-to-pdf-custom-page-size": { + "title": "Convert EPUB to PDF with Custom Page Size", + "filename": "convert-epub-to-pdf-custom-page-size.cs", + "description": "Demonstrates loading an EPUB file with EpubLoadOptions to set a custom page size and converting it to a PDF document using Aspose.Pdf.", "tags": [ + "epub", "pdf", - "doc", "conversion", - "image-extraction", + "custom-page-size", "aspose-pdf" ], "apis_used": [ + "Aspose.Pdf.EpubLoadOptions", "Aspose.Pdf.Document", - "Aspose.Pdf.DocSaveOptions", - "Aspose.Pdf.DocSaveOptions.Format", - "Aspose.Pdf.DocSaveOptions.Mode", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-docx-auto-detection": { - "title": "Convert PDF to DOCX with Automatic Content Detection", - "filename": "convert-pdf-to-docx-auto-detection.cs", - "description": "Demonstrates how to convert a PDF file to DOCX using Aspose.Pdf with the DocSaveOptions.Mode set to Flow for automatic content detection.", + "convert-latex-to-pdf": { + "title": "Convert LaTeX (.tex) to PDF with Aspose.Pdf", + "filename": "convert-latex-to-pdf.cs", + "description": "Demonstrates loading a LaTeX (.tex) file using Aspose.Pdf's TeXLoadOptions and converting it to a PDF document while preserving equations and formatting.", "tags": [ + "latex", "pdf", - "docx", "conversion", - "autosave", - "aspose-pdf" + "aspose.pdf", + "csharp" ], "apis_used": [ + "Aspose.Pdf.TeXLoadOptions", "Aspose.Pdf.Document", - "Aspose.Pdf.DocSaveOptions", - "Aspose.Pdf.DocSaveOptions.DocFormat", - "Aspose.Pdf.DocSaveOptions.RecognitionMode", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-doc-plain-text": { - "title": "Convert PDF to DOC with Plain Text Extraction", - "filename": "convert-pdf-to-doc-plain-text.cs", - "description": "Shows how to convert a PDF file to a DOC file using Aspose.Pdf, configuring DocSaveOptions to extract only plain text via the Textbox recognition mode.", + "convert-markdown-to-pdf-preserving-code-blocks": { + "title": "Convert Markdown to PDF Preserving Code Blocks", + "filename": "convert-markdown-to-pdf-preserving-code-blocks.cs", + "description": "Demonstrates loading a Markdown file with MdLoadOptions and converting it to a PDF while keeping code block formatting using Aspose.Pdf.", "tags": [ + "markdown", "pdf", - "doc", "conversion", - "plaintext", + "code-blocks", "aspose-pdf" ], "apis_used": [ + "Aspose.Pdf.MdLoadOptions", "Aspose.Pdf.Document", - "Aspose.Pdf.DocSaveOptions", - "Aspose.Pdf.DocSaveOptions.DocFormat", - "Aspose.Pdf.DocSaveOptions.RecognitionMode", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-docx-with-metadata": { - "title": "Convert PDF to DOCX with Author and Title Metadata", - "filename": "convert-pdf-to-docx-with-metadata.cs", - "description": "Demonstrates loading a PDF with Aspose.Pdf, setting author and title metadata, and converting it to an editable DOCX using DocSaveOptions.", + "convert-markdown-to-pdf": { + "title": "Convert Markdown To Pdf", + "filename": "convert-markdown-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-ofd-to-pdf": { + "title": "Convert OFD to PDF with Aspose.Pdf", + "filename": "convert-ofd-to-pdf.cs", + "description": "Demonstrates loading an OFD file using OfdLoadOptions and saving it as a PDF with default settings.", "tags": [ - "pdf", - "docx", - "metadata", + "OFD", + "PDF", "conversion", - "aspose" + "Aspose.Pdf", + "C#" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.DocumentInfo", - "Aspose.Pdf.DocSaveOptions", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.DocSaveOptions.Format", - "Aspose.Pdf.DocSaveOptions.RecognitionMode" + "Aspose.Pdf.OfdLoadOptions", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-docx-with-footnotes": { - "title": "Convert PDF to DOCX with Footnotes Preservation", - "filename": "convert-pdf-to-docx-with-footnotes.cs", - "description": "Demonstrates converting a PDF file to DOCX using Aspose.Pdf while preserving footnotes by enabling the EnhancedFlow recognition mode.", + "convert-pcl-to-pdf-hpgl2": { + "title": "Convert PCL to PDF with HP‑GL/2 Vectors", + "filename": "convert-pcl-to-pdf-hpgl2.cs", + "description": "Demonstrates loading a PCL file (including HP‑GL/2 vector data) using Aspose.Pdf and saving it as a PDF document. The example creates a minimal PCL file for self‑containment and handles conversion errors gracefully.", "tags": [ + "pcl", "pdf", - "docx", "conversion", - "footnotes", - "aspose" + "hpgl2", + "aspose-pdf" ], "apis_used": [ + "Aspose.Pdf.PclLoadOptions", "Aspose.Pdf.Document", - "Aspose.Pdf.DocSaveOptions", - "Aspose.Pdf.DocSaveOptions.DocFormat", - "Aspose.Pdf.DocSaveOptions.RecognitionMode", + "Aspose.Pdf.Document..ctor", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-docx-extract-images": { - "title": "Convert PDF to DOCX and Extract Embedded Images", - "filename": "convert-pdf-to-docx-extract-images.cs", - "description": "Demonstrates how to convert a PDF file to DOCX format using Aspose.Pdf and then iterate through each page to extract all embedded images into a specified folder.", + "convert-pdf-page-region-to-png": { + "title": "Convert Pdf Page Region To Png", + "filename": "convert-pdf-page-region-to-png.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-pdf-page-to-jpeg": { + "title": "Convert PDF Page to JPEG Image", + "filename": "convert-pdf-page-to-jpeg.cs", + "description": "Demonstrates how to load a PDF, validate a page number, and convert that specific page to a JPEG image using Aspose.Pdf's JpegDevice with the default DPI.", "tags": [ "pdf", - "docx", - "image-extraction", + "jpeg", "conversion", - "aspose-pdf" + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.DocSaveOptions", - "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Devices.JpegDevice", "Aspose.Pdf.Page", - "Aspose.Pdf.XImage.Save" + "Aspose.Pdf.PageCollection", + "Aspose.Pdf.Devices.JpegDevice.Process" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-docx-with-stats": { - "title": "Convert PDF to DOCX with Conversion Statistics", - "filename": "convert-pdf-to-docx-with-stats.cs", - "description": "Demonstrates how to use Aspose.Pdf to convert a PDF file to DOCX format while capturing conversion metrics such as file sizes, page count, and elapsed time, and outputs the results as JSON.", + "convert-pdf-pages-to-html": { + "title": "Convert Pdf Pages To Html", + "filename": "convert-pdf-pages-to-html.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-pdf-pages-to-separate-html-files": { + "title": "Convert PDF Pages to Separate HTML Files", + "filename": "convert-pdf-pages-to-separate-html-files.cs", + "description": "Demonstrates how to use Aspose.Pdf to convert each page of a PDF into its own HTML file by enabling the SplitIntoPages option.", "tags": [ "pdf", - "docx", + "html", "conversion", - "statistics", + "split-into-pages", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.DocSaveOptions", - "Aspose.Pdf.DocSaveOptions.DocFormat", - "Aspose.Pdf.DocSaveOptions.RecognitionMode", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.HtmlSaveOptions", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.HtmlSaveOptions.SplitIntoPages" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-docx-and-zip": { - "title": "Convert PDF to DOCX and Zip the Result", - "filename": "convert-pdf-to-docx-and-zip.cs", - "description": "Shows how to use Aspose.Pdf to convert a PDF file to DOCX format and then compress the generated DOCX into a ZIP archive for storage.", + "convert-pdf-to-bmp-images": { + "title": "Convert PDF to BMP Images", + "filename": "convert-pdf-to-bmp-images.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, iterate through its pages, and render each page to a BMP file using BmpDevice with default settings.", "tags": [ "pdf", - "docx", + "bmp", "conversion", - "zip", - "compression" + "aspose-pdf", + "image" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Devices.BmpDevice", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Devices.BmpDevice.Process", + "Aspose.Pdf.Page" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:17:28Z", + "status": "verified" + }, + "convert-pdf-to-doc-custom-recognition": { + "title": "Convert Pdf To Doc Custom Recognition", + "filename": "convert-pdf-to-doc-custom-recognition.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-pdf-to-doc-default": { + "title": "Convert PDF to DOC with Default Settings", + "filename": "convert-pdf-to-doc-default.cs", + "description": "Demonstrates converting a PDF file to the legacy DOC format using Aspose.Pdf with default text extraction settings.", + "tags": [ + "pdf", + "doc", + "conversion", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.DocSaveOptions", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.DocSaveOptions.Format", - "Aspose.Pdf.DocSaveOptions.Mode", - "Aspose.Pdf.DocSaveOptions.RecognizeBullets" + "Aspose.Pdf.DocSaveOptions.DocFormat", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-docx-and-pdfa": { - "title": "Convert PDF to DOCX and then to PDF/A", - "filename": "convert-pdf-to-docx-and-pdfa.cs", - "description": "Demonstrates loading a PDF with Aspose.Pdf, converting it to a DOCX file, and then creating a PDF/A‑1B compliant document from the generated DOCX.", + "convert-pdf-to-doc-image-extraction": { + "title": "Convert PDF to DOC with Image Extraction (Textbox Mode)", + "filename": "convert-pdf-to-doc-image-extraction.cs", + "description": "Demonstrates how to convert a PDF file to a DOC document using Aspose.Pdf with custom recognition mode (Textbox) to extract only images.", "tags": [ "pdf", - "docx", - "pdfa", + "doc", "conversion", + "image-extraction", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.DocSaveOptions", - "Aspose.Pdf.DocSaveOptions.DocFormat", - "Aspose.Pdf.DocSaveOptions.RecognitionMode", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Convert" + "Aspose.Pdf.DocSaveOptions.Format", + "Aspose.Pdf.DocSaveOptions.Mode", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-docx-with-hyphenation": { - "title": "Convert PDF to DOCX with Hyphenation and Flow Settings", - "filename": "convert-pdf-to-docx-with-hyphenation.cs", - "description": "Demonstrates converting a PDF file to DOCX using Aspose.Pdf while applying flow‑based recognition and language‑aware hyphenation settings.", + "convert-pdf-to-doc-plain-text": { + "title": "Convert PDF to DOC with Plain Text Extraction", + "filename": "convert-pdf-to-doc-plain-text.cs", + "description": "Shows how to convert a PDF file to a DOC file using Aspose.Pdf, configuring DocSaveOptions to extract only plain text via the Textbox recognition mode.", "tags": [ "pdf", - "docx", + "doc", "conversion", - "hyphenation", - "flow-recognition" + "plaintext", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.DocSaveOptions", - "Aspose.Pdf.DocSaveOptions.Format", - "Aspose.Pdf.DocSaveOptions.Mode", + "Aspose.Pdf.DocSaveOptions.DocFormat", + "Aspose.Pdf.DocSaveOptions.RecognitionMode", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, + "convert-pdf-to-doc-text-mode": { + "title": "Convert Pdf To Doc Text Mode", + "filename": "convert-pdf-to-doc-text-mode.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "convert-pdf-to-docx-add-table-of-figures": { "title": "Convert PDF to DOCX and Add Table of Figures", "filename": "convert-pdf-to-docx-add-table-of-figures.cs", @@ -315,438 +502,434 @@ "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-docx-with-embedded-fonts": { - "title": "Convert PDF to DOCX with Embedded Fonts", - "filename": "convert-pdf-to-docx-with-embedded-fonts.cs", - "description": "Demonstrates converting a PDF file to a DOCX document using Aspose.Pdf while embedding fonts to preserve layout and appearance.", + "convert-pdf-to-docx-and-pdfa": { + "title": "Convert PDF to DOCX and then to PDF/A", + "filename": "convert-pdf-to-docx-and-pdfa.cs", + "description": "Demonstrates loading a PDF with Aspose.Pdf, converting it to a DOCX file, and then creating a PDF/A‑1B compliant document from the generated DOCX.", "tags": [ "pdf", "docx", + "pdfa", "conversion", - "font-embedding", - "aspose" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.DocSaveOptions", "Aspose.Pdf.DocSaveOptions.DocFormat", "Aspose.Pdf.DocSaveOptions.RecognitionMode", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Convert" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-pptx": { - "title": "Convert PDF to Editable PPTX", - "filename": "convert-pdf-to-pptx.cs", - "description": "Shows how to load a PDF with Aspose.Pdf and save it as an editable PowerPoint presentation using the default PPTX save options.", + "convert-pdf-to-docx-and-zip": { + "title": "Convert PDF to DOCX and Zip the Result", + "filename": "convert-pdf-to-docx-and-zip.cs", + "description": "Shows how to use Aspose.Pdf to convert a PDF file to DOCX format and then compress the generated DOCX into a ZIP archive for storage.", "tags": [ "pdf", - "pptx", + "docx", "conversion", - "aspose", - "csharp" + "zip", + "compression" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PptxSaveOptions", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.DocSaveOptions", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.DocSaveOptions.Format", + "Aspose.Pdf.DocSaveOptions.Mode", + "Aspose.Pdf.DocSaveOptions.RecognizeBullets" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-pptx-slides-as-images": { - "title": "Convert PDF to PPTX with Slides as Images", - "filename": "convert-pdf-to-pptx-slides-as-images.cs", - "description": "Demonstrates converting a PDF file to a PPTX presentation where each PDF page is rendered as a raster image on its own slide using Aspose.Pdf.", + "convert-pdf-to-docx-auto-detection": { + "title": "Convert PDF to DOCX with Automatic Content Detection", + "filename": "convert-pdf-to-docx-auto-detection.cs", + "description": "Demonstrates how to convert a PDF file to DOCX using Aspose.Pdf with the DocSaveOptions.Mode set to Flow for automatic content detection.", "tags": [ "pdf", - "pptx", + "docx", "conversion", - "slides-as-images", + "autosave", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PptxSaveOptions", - "Aspose.Pdf.PptxSaveOptions.SlidesAsImages", + "Aspose.Pdf.DocSaveOptions", + "Aspose.Pdf.DocSaveOptions.DocFormat", + "Aspose.Pdf.DocSaveOptions.RecognitionMode", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-pptx-with-progress-handler": { - "title": "Convert PDF to PPTX with Custom Progress Handler", - "filename": "convert-pdf-to-pptx-with-progress-handler.cs", - "description": "Demonstrates converting a PDF document to PPTX using Aspose.Pdf while assigning a custom progress handler to monitor conversion status.", - "tags": [ - "pdf", - "pptx", - "conversion", - "progress", - "aspose" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.PptxSaveOptions", - "Aspose.Pdf.PptxSaveOptions.ConversionProgressEventHandler", - "Aspose.Pdf.UnifiedSaveOptions.ProgressEventHandlerInfo", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:17:28Z", - "status": "verified" - }, - "batch-convert-pdfs-to-pptx-slides-as-images": { - "title": "Batch Convert PDFs to PPTX with SlidesAsImages", - "filename": "batch-convert-pdfs-to-pptx-slides-as-images.cs", - "description": "Iterates through PDF files in a folder and converts each to a PPTX presentation using Aspose.Pdf, enabling the SlidesAsImages option to rasterize each slide.", - "tags": [ - "pdf", - "pptx", - "batch-conversion", - "slidesasimages", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document..ctor", - "Aspose.Pdf.PptxSaveOptions", - "Aspose.Pdf.PptxSaveOptions.SlidesAsImages", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:17:28Z", - "status": "verified" - }, - "convert-pdf-to-pptx-slidesasimages-high-dpi": { - "title": "Convert PDF to PPTX with SlidesAsImages and High DPI", - "filename": "convert-pdf-to-pptx-slidesasimages-high-dpi.cs", - "description": "Demonstrates how to convert a PDF document to a PPTX presentation using Aspose.Pdf, rendering each PDF page as an image slide and setting a high image resolution (DPI) for better quality.", + "convert-pdf-to-docx-enhanced-flow": { + "title": "Convert PDF to DOCX with Enhanced Flow Mode", + "filename": "convert-pdf-to-docx-enhanced-flow.cs", + "description": "Demonstrates how to convert a PDF file to a DOCX document using Aspose.Pdf with the enhanced flow recognition mode to preserve complex tables and graphics.", "tags": [ "pdf", - "pptx", + "docx", "conversion", - "slidesasimages", - "high-dpi" + "enhanced-flow", + "tables" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PptxSaveOptions", + "Aspose.Pdf.DocSaveOptions", + "Aspose.Pdf.DocSaveOptions.RecognitionMode", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.PptxSaveOptions.SlidesAsImages", - "Aspose.Pdf.PptxSaveOptions.ImageResolution" + "Aspose.Pdf.DocSaveOptions.RecognizeBullets" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-pptx-and-compress": { - "title": "Convert PDF to PPTX and Compress the Resulting File", - "filename": "convert-pdf-to-pptx-and-compress.cs", - "description": "Demonstrates converting a PDF document to PPTX using Aspose.Pdf and then recompressing the PPTX (a ZIP archive) with optimal compression to reduce file size.", + "convert-pdf-to-docx-enhanced-recognition": { + "title": "Convert Pdf To Docx Enhanced Recognition", + "filename": "convert-pdf-to-docx-enhanced-recognition.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-pdf-to-docx-extract-images": { + "title": "Convert PDF to DOCX and Extract Embedded Images", + "filename": "convert-pdf-to-docx-extract-images.cs", + "description": "Demonstrates how to convert a PDF file to DOCX format using Aspose.Pdf and then iterate through each page to extract all embedded images into a specified folder.", "tags": [ "pdf", - "pptx", + "docx", + "image-extraction", "conversion", - "compression", - "zip" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PptxSaveOptions", - "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.DocSaveOptions", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Pages.Add" + "Aspose.Pdf.Page", + "Aspose.Pdf.XImage.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-pptx__v2": { - "title": "Convert PDF to PPTX with Aspose.Pdf", - "filename": "convert-pdf-to-pptx__v2.cs", - "description": "Shows how to convert a PDF document to a PPTX presentation using Aspose.Pdf and mentions the optional step of password‑protecting the PPTX with Aspose.Slides.", + "convert-pdf-to-docx-layout": { + "title": "Convert PDF to DOCX with Layout Preservation", + "filename": "convert-pdf-to-docx-layout.cs", + "description": "Demonstrates converting a PDF file to a DOCX document using Aspose.Pdf's standard textbox recognition mode to preserve the original layout.", "tags": [ "pdf", - "pptx", + "docx", "conversion", - "aspose", - "password-protection" + "layout", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.SaveFormat", + "Aspose.Pdf.DocSaveOptions", + "Aspose.Pdf.DocSaveOptions.RecognitionMode", + "Aspose.Pdf.DocSaveOptions.DocFormat", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-pptx-and-pdfa": { - "title": "Convert PDF to PPTX and then to PDF/A", - "filename": "convert-pdf-to-pptx-and-pdfa.cs", - "description": "Demonstrates how to convert a PDF file to a PPTX presentation using Aspose.Pdf, then load the PPTX and generate a PDF/A‑1b compliant document for archival purposes.", - "tags": [ - "pdf", - "pptx", - "pdfa", - "conversion", - "archival" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.PptxSaveOptions", - "Aspose.Pdf.PdfFormat", - "Aspose.Pdf.ConvertErrorAction", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Convert" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:17:28Z", + "convert-pdf-to-docx-preserve-layout": { + "title": "Convert Pdf To Docx Preserve Layout", + "filename": "convert-pdf-to-docx-preserve-layout.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "convert-pdf-to-pptx-with-annotation-notes": { - "title": "Convert PDF to PPTX and Add Speaker Notes from Annotations", - "filename": "convert-pdf-to-pptx-with-annotation-notes.cs", - "description": "Demonstrates converting a PDF document to a PPTX file using Aspose.Pdf and extracting annotation contents to use as speaker notes for each slide.", + "convert-pdf-to-docx-with-embedded-fonts": { + "title": "Convert PDF to DOCX with Embedded Fonts", + "filename": "convert-pdf-to-docx-with-embedded-fonts.cs", + "description": "Demonstrates converting a PDF file to a DOCX document using Aspose.Pdf while embedding fonts to preserve layout and appearance.", "tags": [ "pdf", - "pptx", + "docx", "conversion", - "annotations", - "speaker-notes" + "font-embedding", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotation", - "Aspose.Pdf.MarkupAnnotation", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.SaveFormat" + "Aspose.Pdf.DocSaveOptions", + "Aspose.Pdf.DocSaveOptions.DocFormat", + "Aspose.Pdf.DocSaveOptions.RecognitionMode", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-pptx-add-custom-properties": { - "title": "Convert PDF to PPTX and Add Custom Document Properties", - "filename": "convert-pdf-to-pptx-add-custom-properties.cs", - "description": "Demonstrates how to load a PDF with Aspose.Pdf, set standard and custom document properties, and save the document as a PPTX file.", + "convert-pdf-to-docx-with-footnotes": { + "title": "Convert PDF to DOCX with Footnotes Preservation", + "filename": "convert-pdf-to-docx-with-footnotes.cs", + "description": "Demonstrates converting a PDF file to DOCX using Aspose.Pdf while preserving footnotes by enabling the EnhancedFlow recognition mode.", "tags": [ "pdf", - "pptx", + "docx", "conversion", - "custom-properties", - "aspose-pdf" + "footnotes", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.DocumentInfo", - "Aspose.Pdf.PptxSaveOptions", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.DocumentInfo.this[string]" + "Aspose.Pdf.DocSaveOptions", + "Aspose.Pdf.DocSaveOptions.DocFormat", + "Aspose.Pdf.DocSaveOptions.RecognitionMode", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-pptx__v3": { - "title": "Convert PDF to PPTX Presentation", - "filename": "convert-pdf-to-pptx__v3.cs", - "description": "Demonstrates how to load a PDF file with Aspose.Pdf and save it directly as a PPTX presentation using the Save method and SaveFormat.Pptx.", + "convert-pdf-to-docx-with-hyphenation": { + "title": "Convert PDF to DOCX with Hyphenation and Flow Settings", + "filename": "convert-pdf-to-docx-with-hyphenation.cs", + "description": "Demonstrates converting a PDF file to DOCX using Aspose.Pdf while applying flow‑based recognition and language‑aware hyphenation settings.", "tags": [ "pdf", - "pptx", + "docx", "conversion", - "aspose", - "csharp" + "hyphenation", + "flow-recognition" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.SaveFormat", + "Aspose.Pdf.DocSaveOptions", + "Aspose.Pdf.DocSaveOptions.Format", + "Aspose.Pdf.DocSaveOptions.Mode", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", - "status": "verified" - }, - "convert-pdf-to-pptx__v4": { - "title": "Convert PDF to PPTX using Aspose.Pdf", - "filename": "convert-pdf-to-pptx__v4.cs", - "description": "Shows how to convert a PDF document to a PowerPoint PPTX file by using Aspose.Pdf's Document class and its Save method with the Pptx format.", + "status": "verified" + }, + "convert-pdf-to-docx-with-metadata": { + "title": "Convert PDF to DOCX with Author and Title Metadata", + "filename": "convert-pdf-to-docx-with-metadata.cs", + "description": "Demonstrates loading a PDF with Aspose.Pdf, setting author and title metadata, and converting it to an editable DOCX using DocSaveOptions.", "tags": [ "pdf", - "pptx", + "docx", + "metadata", "conversion", - "aspose.pdf", - "csharp" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.DocumentInfo", + "Aspose.Pdf.DocSaveOptions", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.SaveFormat" + "Aspose.Pdf.DocSaveOptions.Format", + "Aspose.Pdf.DocSaveOptions.RecognitionMode" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-pptx-extract-images": { - "title": "Convert PDF to PPTX and Extract Slide Images", - "filename": "convert-pdf-to-pptx-extract-images.cs", - "description": "Shows how to convert a PDF document to a PPTX presentation with Aspose.Pdf and then extract the images embedded in the generated slides by reading the PPTX ZIP structure.", + "convert-pdf-to-docx-with-stats": { + "title": "Convert PDF to DOCX with Conversion Statistics", + "filename": "convert-pdf-to-docx-with-stats.cs", + "description": "Demonstrates how to use Aspose.Pdf to convert a PDF file to DOCX format while capturing conversion metrics such as file sizes, page count, and elapsed time, and outputs the results as JSON.", "tags": [ "pdf", - "pptx", - "image-extraction", + "docx", "conversion", - "aspose" + "statistics", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.SaveFormat", + "Aspose.Pdf.DocSaveOptions", + "Aspose.Pdf.DocSaveOptions.DocFormat", + "Aspose.Pdf.DocSaveOptions.RecognitionMode", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "pdf-to-pptx-export-slide-titles-csv": { - "title": "Convert PDF to PPTX and Export Slide Titles to CSV", - "filename": "pdf-to-pptx-export-slide-titles-csv.cs", - "description": "Demonstrates how to convert a PDF document to a PPTX file using Aspose.Pdf, then parses the generated PPTX package to extract each slide's title and writes them to a CSV file.", + "convert-pdf-to-docx-with-table-of-figures": { + "title": "Convert Pdf To Docx With Table Of Figures", + "filename": "convert-pdf-to-docx-with-table-of-figures.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-pdf-to-emf-images": { + "title": "Convert PDF Pages to EMF Images with Vector Preservation", + "filename": "convert-pdf-to-emf-images.cs", + "description": "Demonstrates how to load a PDF document and convert each page to an EMF image using Aspose.Pdf's EmfDevice while preserving vector data.", "tags": [ "pdf", - "pptx", + "emf", "conversion", - "csv", - "aspose-pdf" + "vector", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.SaveFormat", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Devices.EmfDevice", + "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.PageCollection", + "Aspose.Pdf.Devices.EmfDevice.Process" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-pptx-with-logo": { - "title": "Convert PDF to PPTX with Logo on Each Slide", - "filename": "convert-pdf-to-pptx-with-logo.cs", - "description": "Shows how to load a PDF, overlay a logo image on every page, and then save the modified document as a PPTX presentation using Aspose.Pdf.", + "convert-pdf-to-emf": { + "title": "Convert Pdf To Emf", + "filename": "convert-pdf-to-emf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-pdf-to-epub-with-cover": { + "title": "Convert PDF to EPUB with Custom Cover Image and Metadata", + "filename": "convert-pdf-to-epub-with-cover.cs", + "description": "Demonstrates converting a PDF to an EPUB file while adding a custom cover page, setting document metadata, and configuring EPUB save options using Aspose.Pdf.", "tags": [ "pdf", - "pptx", - "logo", - "image-overlay", - "conversion" + "epub", + "conversion", + "cover-image", + "metadata" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.PptxSaveOptions", - "Aspose.Pdf.Page.AddImage", + "Aspose.Pdf.EpubSaveOptions", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-pptx__v5": { - "title": "Convert PDF to PPTX with Aspose.Pdf", - "filename": "convert-pdf-to-pptx__v5.cs", - "description": "Shows how to convert a PDF document to a PPTX presentation using Aspose.Pdf's Document.Save method.", + "convert-pdf-to-epub": { + "title": "Convert PDF to EPUB with Aspose.Pdf", + "filename": "convert-pdf-to-epub.cs", + "description": "Demonstrates loading a PDF file and saving it as an EPUB using Aspose.Pdf with the default conversion settings.", "tags": [ "pdf", - "pptx", + "epub", "conversion", - "aspose.pdf", + "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.SaveFormat", + "Aspose.Pdf.EpubSaveOptions", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-single-page-html": { - "title": "Convert PDF to Single-Page HTML with Embedded Resources", - "filename": "convert-pdf-to-single-page-html.cs", - "description": "Shows how to convert a PDF document into a single HTML file that embeds all images, CSS, and fonts (saved as WOFF) using Aspose.Pdf.", + "convert-pdf-to-gif-images": { + "title": "Convert PDF to GIF Images", + "filename": "convert-pdf-to-gif-images.cs", + "description": "Shows how to convert each page of a PDF document into separate GIF files using Aspose.Pdf's GifDevice with default parameters.", "tags": [ "pdf", - "html", + "gif", "conversion", - "embedding", - "fonts" + "image", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.HtmlSaveOptions", - "Aspose.Pdf.HtmlSaveOptions.PartsEmbeddingModes", - "Aspose.Pdf.HtmlSaveOptions.FontSavingModes", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Devices.GifDevice", + "Aspose.Pdf.PageCollection", + "Aspose.Pdf.Devices.GifDevice.Process" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-multi-page-html": { - "title": "Convert PDF to Multi-Page HTML with SplitIntoPages", - "filename": "convert-pdf-to-multi-page-html.cs", - "description": "Demonstrates loading a PDF with Aspose.Pdf, configuring HtmlSaveOptions to split each page into separate HTML files, and saving the result to a folder.", + "convert-pdf-to-html-and-minify": { + "title": "Convert PDF to Single-File HTML and Minify Output", + "filename": "convert-pdf-to-html-and-minify.cs", + "description": "Demonstrates converting a PDF to a single HTML file using Aspose.Pdf and then minifying the generated HTML by stripping comments and collapsing whitespace.", "tags": [ "pdf", "html", "conversion", - "split-into-pages", - "aspose-pdf" + "minify", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Save", "Aspose.Pdf.HtmlSaveOptions", "Aspose.Pdf.HtmlSaveOptions.RasterImagesSavingModes", - "Aspose.Pdf.HtmlSaveOptions.PartsEmbeddingModes", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.HtmlSaveOptions.SplitIntoPages" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-html-with-svg-images": { - "title": "Convert PDF to HTML with SVG Images", - "filename": "convert-pdf-to-html-with-svg-images.cs", - "description": "Demonstrates how to convert a PDF document to an HTML file while extracting each page's vector graphics as separate SVG files stored in a designated folder.", + "convert-pdf-to-html-and-pptx-with-embedded-fonts": { + "title": "Convert PDF to HTML and PPTX with Embedded Fonts", + "filename": "convert-pdf-to-html-and-pptx-with-embedded-fonts.cs", + "description": "The example loads a PDF, converts it to an HTML file with embedded fonts and resources, and then creates a PPTX presentation with cached glyphs to ensure uniform appearance across viewers.", "tags": [ - "pdf", - "html", - "svg", - "conversion", + "pdf conversion", + "html export", + "pptx export", + "embedded fonts", "aspose.pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.HtmlSaveOptions", - "Aspose.Pdf.HtmlSaveOptions.RasterImagesSavingModes", - "Aspose.Pdf.HtmlSaveOptions.SpecialFolderForSvgImages", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.PptxSaveOptions", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.HtmlSaveOptions.FontSavingModes" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-html-with-svg-compression": { - "title": "Convert PDF to HTML with SVG Compression", - "filename": "convert-pdf-to-html-with-svg-compression.cs", - "description": "Demonstrates converting a PDF file to HTML using Aspose.Pdf while enabling SVG graphics compression to reduce the size of embedded SVG images.", + "convert-pdf-to-html-and-pptx": { + "title": "Convert Pdf To Html And Pptx", + "filename": "convert-pdf-to-html-and-pptx.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-pdf-to-html-compressed-svg": { + "title": "Convert PDF to HTML with Compressed SVG Images", + "filename": "convert-pdf-to-html-compressed-svg.cs", + "description": "Demonstrates converting a PDF document to HTML using Aspose.Pdf while enabling the CompressSvgGraphicsIfAny option to generate compressed SVG assets.", "tags": [ "pdf", "html", @@ -765,6 +948,59 @@ "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, + "convert-pdf-to-html-docx-with-embedded-fonts": { + "title": "Convert PDF to HTML and DOCX with Embedded Fonts", + "filename": "convert-pdf-to-html-docx-with-embedded-fonts.cs", + "description": "Demonstrates converting a PDF to HTML with all fonts embedded, then converting the same PDF to DOCX while embedding custom fonts using Aspose.Pdf.", + "tags": [ + "pdf", + "html", + "docx", + "font-embedding", + "conversion" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.HtmlSaveOptions", + "Aspose.Pdf.DocSaveOptions", + "Aspose.Pdf.HtmlSaveOptions.FontSavingModes", + "Aspose.Pdf.HtmlSaveOptions.PartsEmbeddingModes" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:17:28Z", + "status": "verified" + }, + "convert-pdf-to-html-pages-with-index": { + "title": "Convert PDF to Separate HTML Pages with Index", + "filename": "convert-pdf-to-html-pages-with-index.cs", + "description": "Loads a PDF with Aspose.Pdf, converts each page into an individual HTML file, and creates an index.html that links to all generated pages.", + "tags": [ + "pdf", + "html", + "conversion", + "index", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.HtmlSaveOptions", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.HtmlSaveOptions.SplitIntoPages" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:17:28Z", + "status": "verified" + }, + "convert-pdf-to-html-per-page-image-subfolders": { + "title": "Convert Pdf To Html Per Page Image Subfolders", + "filename": "convert-pdf-to-html-per-page-image-subfolders.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "convert-pdf-to-html-png-background": { "title": "Convert PDF to HTML with PNG Page Backgrounds", "filename": "convert-pdf-to-html-png-background.cs", @@ -787,75 +1023,128 @@ "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-pages-to-separate-html-files": { - "title": "Convert PDF Pages to Separate HTML Files", - "filename": "convert-pdf-pages-to-separate-html-files.cs", - "description": "Demonstrates how to use Aspose.Pdf to convert each page of a PDF into its own HTML file by enabling the SplitIntoPages option.", + "convert-pdf-to-html-png-background__v2": { + "title": "Convert PDF to HTML with PNG Page Backgrounds", + "filename": "convert-pdf-to-html-png-background__v2.cs", + "description": "Shows how to convert a PDF to HTML using Aspose.Pdf and configure HtmlSaveOptions to render each page background as an embedded PNG image.", "tags": [ "pdf", "html", "conversion", - "split-into-pages", - "aspose-pdf" + "png", + "aspose.pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.HtmlSaveOptions", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.HtmlSaveOptions.SplitIntoPages" + "Aspose.Pdf.HtmlSaveOptions.RasterImagesSavingMode", + "Aspose.Pdf.HtmlSaveOptions.RasterImagesSavingModes", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "pdf-to-html-with-toc": { - "title": "Convert PDF to HTML with Automatic Table of Contents", - "filename": "pdf-to-html-with-toc.cs", - "description": "Demonstrates converting a PDF file to a single HTML document using Aspose.Pdf and then generating a navigable table of contents by adding IDs to heading tags.", + "convert-pdf-to-html-png-page-background": { + "title": "Convert Pdf To Html Png Page Background", + "filename": "convert-pdf-to-html-png-page-background.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-pdf-to-html-png-page-background__v2": { + "title": "Convert Pdf To Html Png Page Background__V2", + "filename": "convert-pdf-to-html-png-page-background__v2.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-pdf-to-html-sitemap": { + "title": "Convert PDF to HTML and Generate Sitemap XML", + "filename": "convert-pdf-to-html-sitemap.cs", + "description": "Shows how to convert a PDF document to a single HTML file with Aspose.Pdf and then create a sitemap.xml that lists the generated HTML page for SEO purposes.", + "tags": [ + "pdf", + "html", + "sitemap", + "conversion", + "seo" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.HtmlSaveOptions", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.HtmlSaveOptions.SplitIntoPages", + "Aspose.Pdf.Document.Dispose" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:17:28Z", + "status": "verified" + }, + "convert-pdf-to-html-with-custom-css": { + "title": "Convert PDF to HTML with Custom CSS", + "filename": "convert-pdf-to-html-with-custom-css.cs", + "description": "Demonstrates converting a PDF document to HTML using Aspose.Pdf and injecting a user‑provided CSS file via a custom CSS saving strategy.", "tags": [ "pdf", "html", - "toc", "conversion", + "css", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.HtmlSaveOptions", - "Aspose.Pdf.HtmlSaveOptions.PartsEmbeddingModes", - "Aspose.Pdf.HtmlSaveOptions.RasterImagesSavingModes", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.HtmlSaveOptions.CssSavingStrategy", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.HtmlSaveOptions.Title" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "pdf-to-html-per-page-image-folders": { - "title": "Convert PDF to HTML with Per‑Page Image Subfolders", - "filename": "pdf-to-html-per-page-image-folders.cs", - "description": "Demonstrates converting a PDF to HTML using Aspose.Pdf, splitting the output into separate pages and saving each page's images into its own subfolder via a custom resource‑saving strategy.", + "convert-pdf-to-html-with-custom-font": { + "title": "Convert Pdf To Html With Custom Font", + "filename": "convert-pdf-to-html-with-custom-font.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-pdf-to-html-with-embedded-custom-fonts": { + "title": "Convert PDF to HTML with Embedded Custom Fonts", + "filename": "convert-pdf-to-html-with-embedded-custom-fonts.cs", + "description": "Shows how to convert a PDF to HTML using Aspose.Pdf and embed a custom TrueType font as WOFF with @font-face rules in the generated CSS.", "tags": [ "pdf", "html", - "conversion", - "images", - "aspose" + "font-embedding", + "aspose-pdf", + "conversion" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.HtmlSaveOptions", - "Aspose.Pdf.HtmlSaveOptions.HtmlImageSavingInfo", - "Aspose.Pdf.HtmlSaveOptions.RasterImagesSavingModes", - "Aspose.Pdf.HtmlSaveOptions.PartsEmbeddingModes" + "Aspose.Pdf.HtmlSaveOptions.FontSavingModes", + "Aspose.Pdf.FileFontSource", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-html-compressed-svg": { - "title": "Convert PDF to HTML with Compressed SVG Images", - "filename": "convert-pdf-to-html-compressed-svg.cs", - "description": "Demonstrates converting a PDF document to HTML using Aspose.Pdf while enabling the CompressSvgGraphicsIfAny option to generate compressed SVG assets.", + "convert-pdf-to-html-with-svg-compression": { + "title": "Convert PDF to HTML with SVG Compression", + "filename": "convert-pdf-to-html-with-svg-compression.cs", + "description": "Demonstrates converting a PDF file to HTML using Aspose.Pdf while enabling SVG graphics compression to reduce the size of embedded SVG images.", "tags": [ "pdf", "html", @@ -874,48 +1163,36 @@ "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-html-png-background__v2": { - "title": "Convert PDF to HTML with PNG Page Backgrounds", - "filename": "convert-pdf-to-html-png-background__v2.cs", - "description": "Shows how to convert a PDF to HTML using Aspose.Pdf and configure HtmlSaveOptions to render each page background as an embedded PNG image.", + "convert-pdf-to-html-with-svg-images": { + "title": "Convert PDF to HTML with SVG Images", + "filename": "convert-pdf-to-html-with-svg-images.cs", + "description": "Demonstrates how to convert a PDF document to an HTML file while extracting each page's vector graphics as separate SVG files stored in a designated folder.", "tags": [ "pdf", "html", + "svg", "conversion", - "png", "aspose.pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.HtmlSaveOptions", - "Aspose.Pdf.HtmlSaveOptions.RasterImagesSavingMode", "Aspose.Pdf.HtmlSaveOptions.RasterImagesSavingModes", + "Aspose.Pdf.HtmlSaveOptions.SpecialFolderForSvgImages", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "pdf-to-html-merge-and-convert-back": { - "title": "Convert PDF to HTML, Merge Pages, and Convert Back to PDF", - "filename": "pdf-to-html-merge-and-convert-back.cs", - "description": "Demonstrates converting each PDF page to separate HTML files, concatenating those HTML pages into a single document, and then converting the combined HTML back into a PDF using Aspose.Pdf.", - "tags": [ - "pdf", - "html", - "conversion", - "merge", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.HtmlSaveOptions", - "Aspose.Pdf.HtmlSaveOptions.RasterImagesSavingModes", - "Aspose.Pdf.HtmlLoadOptions" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:17:28Z", + "convert-pdf-to-html-zip-archive": { + "title": "Convert Pdf To Html Zip Archive", + "filename": "convert-pdf-to-html-zip-archive.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, "convert-pdf-to-html-zip": { @@ -940,961 +1217,1147 @@ "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-html-and-minify": { - "title": "Convert PDF to Single-File HTML and Minify Output", - "filename": "convert-pdf-to-html-and-minify.cs", - "description": "Demonstrates converting a PDF to a single HTML file using Aspose.Pdf and then minifying the generated HTML by stripping comments and collapsing whitespace.", + "convert-pdf-to-jpeg-images": { + "title": "Convert Pdf To Jpeg Images", + "filename": "convert-pdf-to-jpeg-images.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-pdf-to-jpeg": { + "title": "Convert PDF Pages to JPEG Images", + "filename": "convert-pdf-to-jpeg.cs", + "description": "Shows how to load a PDF with Aspose.Pdf and convert each page to a JPEG image using JpegDevice with the default quality settings.", "tags": [ "pdf", - "html", + "jpeg", "conversion", - "minify", - "aspose" + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.HtmlSaveOptions", - "Aspose.Pdf.HtmlSaveOptions.RasterImagesSavingModes", - "Aspose.Pdf.HtmlSaveOptions.SplitIntoPages" + "Aspose.Pdf.Devices.JpegDevice", + "Aspose.Pdf.PageCollection", + "Aspose.Pdf.Page", + "Aspose.Pdf.Devices.JpegDevice.Process" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-html-with-embedded-custom-fonts": { - "title": "Convert PDF to HTML with Embedded Custom Fonts", - "filename": "convert-pdf-to-html-with-embedded-custom-fonts.cs", - "description": "Shows how to convert a PDF to HTML using Aspose.Pdf and embed a custom TrueType font as WOFF with @font-face rules in the generated CSS.", + "convert-pdf-to-latex-with-custom-macros": { + "title": "Convert PDF to LaTeX with Custom Macro Definitions", + "filename": "convert-pdf-to-latex-with-custom-macros.cs", + "description": "Demonstrates how to convert a PDF document to a LaTeX (.tex) file using Aspose.Pdf and prepend custom macro definitions for special symbols.", "tags": [ "pdf", - "html", - "font-embedding", + "latex", + "conversion", "aspose-pdf", - "conversion" + "custom-macros" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.HtmlSaveOptions", - "Aspose.Pdf.HtmlSaveOptions.FontSavingModes", - "Aspose.Pdf.FileFontSource", + "Aspose.Pdf.TeXSaveOptions", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "pdf-to-responsive-html": { - "title": "Convert PDF to Responsive HTML with Embedded CSS", - "filename": "pdf-to-responsive-html.cs", - "description": "Demonstrates converting a PDF file to a single HTML document using Aspose.Pdf, creating a simple responsive CSS stylesheet, and injecting the stylesheet link into the generated HTML for mobile‑friendly rendering.", - "tags": [ - "pdf", - "html", - "responsive", - "css", - "conversion" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.HtmlSaveOptions", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.HtmlSaveOptions.RasterImagesSavingModes", - "Aspose.Pdf.HtmlSaveOptions.SplitIntoPages" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:17:28Z", + "convert-pdf-to-latex-with-output-directory": { + "title": "Convert Pdf To Latex With Output Directory", + "filename": "convert-pdf-to-latex-with-output-directory.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "convert-pdf-to-html-with-custom-css": { - "title": "Convert PDF to HTML with Custom CSS", - "filename": "convert-pdf-to-html-with-custom-css.cs", - "description": "Demonstrates converting a PDF document to HTML using Aspose.Pdf and injecting a user‑provided CSS file via a custom CSS saving strategy.", + "convert-pdf-to-latex": { + "title": "Convert PDF to LaTeX with TeXSaveOptions", + "filename": "convert-pdf-to-latex.cs", + "description": "Shows how to load a PDF using Aspose.Pdf and export it to a LaTeX .tex file with TeXSaveOptions, specifying an output directory for auxiliary files.", "tags": [ "pdf", - "html", + "latex", "conversion", - "css", - "aspose" + "aspose.pdf", + "texsaveoptions" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.HtmlSaveOptions", - "Aspose.Pdf.HtmlSaveOptions.CssSavingStrategy", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.HtmlSaveOptions.Title" + "Aspose.Pdf.TeXSaveOptions", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-html-sitemap": { - "title": "Convert PDF to HTML and Generate Sitemap XML", - "filename": "convert-pdf-to-html-sitemap.cs", - "description": "Shows how to convert a PDF document to a single HTML file with Aspose.Pdf and then create a sitemap.xml that lists the generated HTML page for SEO purposes.", + "convert-pdf-to-markdown-default-options": { + "title": "Convert PDF to Markdown with Default Options", + "filename": "convert-pdf-to-markdown-default-options.cs", + "description": "Demonstrates loading a PDF file with Aspose.Pdf and saving it as a Markdown document using the default MarkdownSaveOptions.", "tags": [ "pdf", - "html", - "sitemap", + "markdown", "conversion", - "seo" + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.HtmlSaveOptions", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.HtmlSaveOptions.SplitIntoPages", - "Aspose.Pdf.Document.Dispose" + "Aspose.Pdf.MarkdownSaveOptions", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-html-pages-with-index": { - "title": "Convert PDF to Separate HTML Pages with Index", - "filename": "convert-pdf-to-html-pages-with-index.cs", - "description": "Loads a PDF with Aspose.Pdf, converts each page into an individual HTML file, and creates an index.html that links to all generated pages.", + "convert-pdf-to-markdown-with-custom-heading-mapping": { + "title": "Convert Pdf To Markdown With Custom Heading Mapping", + "filename": "convert-pdf-to-markdown-with-custom-heading-mapping.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-pdf-to-markdown": { + "title": "Convert Pdf To Markdown", + "filename": "convert-pdf-to-markdown.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-pdf-to-mobixml-with-custom-metadata": { + "title": "Convert Pdf To Mobixml With Custom Metadata", + "filename": "convert-pdf-to-mobixml-with-custom-metadata.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-pdf-to-mobixml-with-metadata": { + "title": "Convert PDF to MobiXml with Author and Publisher Metadata", + "filename": "convert-pdf-to-mobixml-with-metadata.cs", + "description": "Demonstrates loading a PDF using Aspose.Pdf, setting both standard (author) and custom (publisher) metadata, and saving the document as a MobiXml file.", "tags": [ "pdf", - "html", + "mobixml", + "metadata", "conversion", - "index", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.HtmlSaveOptions", + "Aspose.Pdf.DocumentInfo", + "Aspose.Pdf.MobiXmlSaveOptions", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.HtmlSaveOptions.SplitIntoPages" + "Aspose.Pdf.DocumentInfo.Author" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-html-docx-with-embedded-fonts": { - "title": "Convert PDF to HTML and DOCX with Embedded Fonts", - "filename": "convert-pdf-to-html-docx-with-embedded-fonts.cs", - "description": "Demonstrates converting a PDF to HTML with all fonts embedded, then converting the same PDF to DOCX while embedding custom fonts using Aspose.Pdf.", + "convert-pdf-to-mobixml": { + "title": "Convert PDF to MobiXml with Aspose.Pdf", + "filename": "convert-pdf-to-mobixml.cs", + "description": "Shows how to load a PDF file and save it as a MobiXml document using Aspose.Pdf's default MobiXmlSaveOptions.", "tags": [ "pdf", - "html", - "docx", - "font-embedding", - "conversion" + "mobixml", + "conversion", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.HtmlSaveOptions", - "Aspose.Pdf.DocSaveOptions", - "Aspose.Pdf.HtmlSaveOptions.FontSavingModes", - "Aspose.Pdf.HtmlSaveOptions.PartsEmbeddingModes" + "Aspose.Pdf.MobiXmlSaveOptions", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-html-and-pptx-with-embedded-fonts": { - "title": "Convert PDF to HTML and PPTX with Embedded Fonts", - "filename": "convert-pdf-to-html-and-pptx-with-embedded-fonts.cs", - "description": "The example loads a PDF, converts it to an HTML file with embedded fonts and resources, and then creates a PPTX presentation with cached glyphs to ensure uniform appearance across viewers.", + "convert-pdf-to-multi-page-html": { + "title": "Convert PDF to Multi-Page HTML with SplitIntoPages", + "filename": "convert-pdf-to-multi-page-html.cs", + "description": "Demonstrates loading a PDF with Aspose.Pdf, configuring HtmlSaveOptions to split each page into separate HTML files, and saving the result to a folder.", "tags": [ - "pdf conversion", - "html export", - "pptx export", - "embedded fonts", - "aspose.pdf" + "pdf", + "html", + "conversion", + "split-into-pages", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.HtmlSaveOptions", - "Aspose.Pdf.PptxSaveOptions", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.HtmlSaveOptions.FontSavingModes" + "Aspose.Pdf.HtmlSaveOptions.RasterImagesSavingModes", + "Aspose.Pdf.HtmlSaveOptions.PartsEmbeddingModes", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-bmp-images": { - "title": "Convert PDF to BMP Images", - "filename": "convert-pdf-to-bmp-images.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, iterate through its pages, and render each page to a BMP file using BmpDevice with default settings.", + "convert-pdf-to-multi-page-tiff": { + "title": "Convert PDF to Multi-Page TIFF using TiffDevice", + "filename": "convert-pdf-to-multi-page-tiff.cs", + "description": "Demonstrates how to convert all pages of a PDF into a single multi-page TIFF image using Aspose.Pdf's TiffDevice with custom resolution and settings.", "tags": [ "pdf", - "bmp", + "tiff", "conversion", - "aspose-pdf", - "image" + "multipage", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Devices.BmpDevice", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Devices.BmpDevice.Process", - "Aspose.Pdf.Page" + "Aspose.Pdf.Resolution", + "Aspose.Pdf.Devices.TiffSettings", + "Aspose.Pdf.Devices.TiffDevice", + "Aspose.Pdf.Devices.TiffDevice.Process", + "Aspose.Pdf.Devices.CompressionType", + "Aspose.Pdf.Devices.ColorDepth", + "Aspose.Pdf.Devices.ShapeType" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-jpeg": { - "title": "Convert PDF Pages to JPEG Images", - "filename": "convert-pdf-to-jpeg.cs", - "description": "Shows how to load a PDF with Aspose.Pdf and convert each page to a JPEG image using JpegDevice with the default quality settings.", + "convert-pdf-to-multi-page-tiff__v2": { + "title": "Convert PDF to Multi‑Page TIFF", + "filename": "convert-pdf-to-multi-page-tiff__v2.cs", + "description": "Shows how to load a PDF with Aspose.Pdf and use TiffDevice to convert all pages into a single multi‑page TIFF file using default settings.", "tags": [ "pdf", - "jpeg", + "tiff", "conversion", - "aspose", - "csharp" + "aspose-pdf", + "multpage" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Devices.JpegDevice", - "Aspose.Pdf.PageCollection", - "Aspose.Pdf.Page", - "Aspose.Pdf.Devices.JpegDevice.Process" + "Aspose.Pdf.Devices.TiffDevice", + "Aspose.Pdf.Devices.TiffDevice.Process" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-gif-images": { - "title": "Convert PDF to GIF Images", - "filename": "convert-pdf-to-gif-images.cs", - "description": "Shows how to convert each page of a PDF document into separate GIF files using Aspose.Pdf's GifDevice with default parameters.", + "convert-pdf-to-pdfa-1b-and-validate": { + "title": "Convert Pdf To Pdfa 1B And Validate", + "filename": "convert-pdf-to-pdfa-1b-and-validate.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-pdf-to-pdfa-1b-skip-errors": { + "title": "Convert PDF to PDF/A‑1b with Skip Error Action", + "filename": "convert-pdf-to-pdfa-1b-skip-errors.cs", + "description": "Demonstrates how to convert a PDF file to PDF/A‑1b format while setting ConvertErrorAction to skip non‑convertible elements, using Aspose.Pdf.", "tags": [ "pdf", - "gif", + "pdfa", "conversion", - "image", - "aspose" + "error-handling", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Devices.GifDevice", - "Aspose.Pdf.PageCollection", - "Aspose.Pdf.Devices.GifDevice.Process" + "Aspose.Pdf.PdfFormatConversionOptions", + "Aspose.Pdf.ConvertErrorAction", + "Aspose.Pdf.PdfFormat", + "Aspose.Pdf.Document.Convert", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-png-transparent-background": { - "title": "Convert PDF to PNG with Transparent Background", - "filename": "convert-pdf-to-png-transparent-background.cs", - "description": "Shows how to convert each page of a PDF document to PNG images using Aspose.Pdf's PngDevice while enabling a transparent background.", + "convert-pdf-to-pdfa-3b-throw-errors": { + "title": "Convert PDF to PDF/A‑3b with Throw on Conversion Errors", + "filename": "convert-pdf-to-pdfa-3b-throw-errors.cs", + "description": "Shows how to load a PDF using Aspose.Pdf, convert it to PDF/A‑3b format with ConvertErrorAction set to Throw so that conversion problems raise exceptions, and handle the outcome.", "tags": [ "pdf", - "png", + "pdfa-3b", "conversion", - "transparent", - "aspose" + "error-handling", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Resolution", - "Aspose.Pdf.Devices.PngDevice", - "Aspose.Pdf.Devices.PngDevice.Process", - "Aspose.Pdf.PageCollection" + "Aspose.Pdf.Document.Convert", + "Aspose.Pdf.ConvertErrorAction", + "Aspose.Pdf.ConvertException", + "Aspose.Pdf.PdfFormat" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-emf-images": { - "title": "Convert PDF Pages to EMF Images with Vector Preservation", - "filename": "convert-pdf-to-emf-images.cs", - "description": "Demonstrates how to load a PDF document and convert each page to an EMF image using Aspose.Pdf's EmfDevice while preserving vector data.", + "convert-pdf-to-pdfa-3b-throw-on-error": { + "title": "Convert Pdf To Pdfa 3B Throw On Error", + "filename": "convert-pdf-to-pdfa-3b-throw-on-error.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-pdf-to-pdfa1b-skip-errors": { + "title": "Convert Pdf To Pdfa1B Skip Errors", + "filename": "convert-pdf-to-pdfa1b-skip-errors.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-pdf-to-pdfa3b-with-font-substitution": { + "title": "Convert PDF to PDF/A‑3b with Font Substitution", + "filename": "convert-pdf-to-pdfa3b-with-font-substitution.cs", + "description": "Shows how to convert a PDF to PDF/A‑3b using Aspose.Pdf, enable default font substitution for missing fonts, and save the resulting PDF/A‑3b file.", "tags": [ "pdf", - "emf", + "pdfa-3b", + "font-substitution", "conversion", - "vector", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Devices.EmfDevice", - "Aspose.Pdf.Devices.Resolution", - "Aspose.Pdf.PageCollection", - "Aspose.Pdf.Devices.EmfDevice.Process" + "Aspose.Pdf.PdfFormatConversionOptions", + "Aspose.Pdf.PdfFormat", + "Aspose.Pdf.Text.FontEmbeddingOptions", + "Aspose.Pdf.Document.Convert", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-multi-page-tiff": { - "title": "Convert PDF to Multi-Page TIFF using TiffDevice", - "filename": "convert-pdf-to-multi-page-tiff.cs", - "description": "Demonstrates how to convert all pages of a PDF into a single multi-page TIFF image using Aspose.Pdf's TiffDevice with custom resolution and settings.", + "convert-pdf-to-pdfa4-with-auto-tagging": { + "title": "Convert PDF to PDF/A-4 with Auto-Tagging", + "filename": "convert-pdf-to-pdfa4-with-auto-tagging.cs", + "description": "Demonstrates converting a PDF document to PDF/A-4 format while enabling automatic tagging using Aspose.Pdf's AutoTaggingSettings.", "tags": [ "pdf", - "tiff", + "pdfa-4", + "auto-tagging", "conversion", - "multipage", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Resolution", - "Aspose.Pdf.Devices.TiffSettings", - "Aspose.Pdf.Devices.TiffDevice", - "Aspose.Pdf.Devices.TiffDevice.Process", - "Aspose.Pdf.Devices.CompressionType", - "Aspose.Pdf.Devices.ColorDepth", - "Aspose.Pdf.Devices.ShapeType" + "Aspose.Pdf.PdfFormatConversionOptions", + "Aspose.Pdf.AutoTaggingSettings", + "Aspose.Pdf.Document.Convert", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-svg": { - "title": "Convert PDF to SVG using Aspose.Pdf", - "filename": "convert-pdf-to-svg.cs", - "description": "Shows how to load a PDF document and save each page as SVG images using the default SvgSaveOptions.", + "convert-pdf-to-pdfa4-with-converterroraction": { + "title": "Convert PDF to PDF/A-4 with ConvertErrorAction", + "filename": "convert-pdf-to-pdfa4-with-converterroraction.cs", + "description": "Demonstrates loading a PDF, converting it to PDF/A‑4 while specifying a ConvertErrorAction, and saving the result with a conversion log.", "tags": [ "pdf", - "svg", + "pdfa", "conversion", - "aspose.pdf", - "csharp" + "error-handling", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.SvgSaveOptions", + "Aspose.Pdf.Document.Convert", + "Aspose.Pdf.PdfFormat", + "Aspose.Pdf.ConvertErrorAction", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-multi-page-tiff__v2": { - "title": "Convert PDF to Multi‑Page TIFF", - "filename": "convert-pdf-to-multi-page-tiff__v2.cs", - "description": "Shows how to load a PDF with Aspose.Pdf and use TiffDevice to convert all pages into a single multi‑page TIFF file using default settings.", + "convert-pdf-to-pdfa4-with-error-action": { + "title": "Convert Pdf To Pdfa4 With Error Action", + "filename": "convert-pdf-to-pdfa4-with-error-action.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-pdf-to-png-transparent-background": { + "title": "Convert PDF to PNG with Transparent Background", + "filename": "convert-pdf-to-png-transparent-background.cs", + "description": "Shows how to convert each page of a PDF document to PNG images using Aspose.Pdf's PngDevice while enabling a transparent background.", "tags": [ "pdf", - "tiff", + "png", "conversion", - "aspose-pdf", - "multpage" + "transparent", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Devices.TiffDevice", - "Aspose.Pdf.Devices.TiffDevice.Process" + "Aspose.Pdf.Resolution", + "Aspose.Pdf.Devices.PngDevice", + "Aspose.Pdf.Devices.PngDevice.Process", + "Aspose.Pdf.PageCollection" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "extract-pdf-page-region-to-png": { - "title": "Extract PDF Page Region to PNG", - "filename": "extract-pdf-page-region-to-png.cs", - "description": "Shows how to define a rectangular region on a PDF page using the CropBox and render that area to a PNG image with Aspose.Pdf.", + "convert-pdf-to-png-transparent-background__v2": { + "title": "Convert PDF Pages to PNG with Transparent Background", + "filename": "convert-pdf-to-png-transparent-background__v2.cs", + "description": "Loads a PDF document, creates a PngDevice with TransparentBackground enabled, and saves each page as a PNG image preserving any alpha channel.", "tags": [ "pdf", "png", - "cropbox", - "region", - "conversion" + "transparent-background", + "conversion", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", "Aspose.Pdf.Devices.PngDevice", "Aspose.Pdf.Devices.Resolution", - "Aspose.Pdf.PageCoordinateType" + "Aspose.Pdf.Page", + "Aspose.Pdf.Devices.PngDevice.Process" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-page-to-jpeg": { - "title": "Convert PDF Page to JPEG Image", - "filename": "convert-pdf-page-to-jpeg.cs", - "description": "Demonstrates how to load a PDF, validate a page number, and convert that specific page to a JPEG image using Aspose.Pdf's JpegDevice with the default DPI.", + "convert-pdf-to-pptx-add-custom-properties": { + "title": "Convert PDF to PPTX and Add Custom Document Properties", + "filename": "convert-pdf-to-pptx-add-custom-properties.cs", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, set standard and custom document properties, and save the document as a PPTX file.", "tags": [ "pdf", - "jpeg", + "pptx", "conversion", - "aspose", - "csharp" + "custom-properties", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Devices.JpegDevice", - "Aspose.Pdf.Page", - "Aspose.Pdf.PageCollection", - "Aspose.Pdf.Devices.JpegDevice.Process" + "Aspose.Pdf.DocumentInfo", + "Aspose.Pdf.PptxSaveOptions", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.DocumentInfo.this[string]" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "batch-convert-pdfs-to-png": { - "title": "Batch Convert PDFs to PNG Preserving Folder Structure", - "filename": "batch-convert-pdfs-to-png.cs", - "description": "Demonstrates how to recursively locate PDF files, keep their relative folder hierarchy, and convert each page to a PNG image using Aspose.Pdf.", + "convert-pdf-to-pptx-and-compress": { + "title": "Convert PDF to PPTX and Compress the Resulting File", + "filename": "convert-pdf-to-pptx-and-compress.cs", + "description": "Demonstrates converting a PDF document to PPTX using Aspose.Pdf and then recompressing the PPTX (a ZIP archive) with optimal compression to reduce file size.", "tags": [ "pdf", - "png", - "batch-conversion", - "folder-hierarchy", - "aspose-pdf" + "pptx", + "conversion", + "compression", + "zip" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Devices.PngDevice", - "Aspose.Pdf.Devices.Resolution", - "Aspose.Pdf.Page", - "Aspose.Pdf.Devices.PngDevice.Process" + "Aspose.Pdf.PptxSaveOptions", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Pages.Add" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "batch-convert-pdfs-to-jpeg-custom-naming": { - "title": "Batch Convert PDFs to JPEG with Custom Naming", - "filename": "batch-convert-pdfs-to-jpeg-custom-naming.cs", - "description": "Demonstrates how to convert all PDF files in a folder to JPEG images page‑by‑page using Aspose.Pdf, applying a custom file‑naming pattern for each output image.", + "convert-pdf-to-pptx-and-pdfa": { + "title": "Convert PDF to PPTX and then to PDF/A", + "filename": "convert-pdf-to-pptx-and-pdfa.cs", + "description": "Demonstrates how to convert a PDF file to a PPTX presentation using Aspose.Pdf, then load the PPTX and generate a PDF/A‑1b compliant document for archival purposes.", "tags": [ "pdf", - "jpeg", - "batch", - "aspose.pdf", - "csharp" + "pptx", + "pdfa", + "conversion", + "archival" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Devices.JpegDevice", - "Aspose.Pdf.Devices.Resolution", - "Aspose.Pdf.Devices.JpegDevice.Process", - "Aspose.Pdf.Document.Pages" + "Aspose.Pdf.PptxSaveOptions", + "Aspose.Pdf.PdfFormat", + "Aspose.Pdf.ConvertErrorAction", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Convert" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "batch-convert-pdfs-to-multi-page-tiff": { - "title": "Batch Convert PDFs to Multi‑Page TIFF", - "filename": "batch-convert-pdfs-to-multi-page-tiff.cs", - "description": "Demonstrates how to merge several PDF files into a single document and then convert the combined document into a multi‑page TIFF archive using default compression.", + "convert-pdf-to-pptx-extract-images": { + "title": "Convert PDF to PPTX and Extract Slide Images", + "filename": "convert-pdf-to-pptx-extract-images.cs", + "description": "Shows how to convert a PDF document to a PPTX presentation with Aspose.Pdf and then extract the images embedded in the generated slides by reading the PPTX ZIP structure.", "tags": [ "pdf", - "tiff", + "pptx", + "image-extraction", "conversion", - "batch", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Devices.TiffDevice", - "Aspose.Pdf.Devices.Resolution", - "Aspose.Pdf.Devices.TiffDevice.Process" + "Aspose.Pdf.SaveFormat", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "validate-and-convert-pdf-to-pdfa-1b": { - "title": "Validate and Convert PDF to PDF/A‑1b", - "filename": "validate-and-convert-pdf-to-pdfa-1b.cs", - "description": "Shows how to validate a PDF against PDF/A‑1b, generate an XML validation log, convert the document to PDF/A‑1b with a conversion log, and save the compliant file using Aspose.Pdf.", + "convert-pdf-to-pptx-extract-slide-titles-csv": { + "title": "Convert Pdf To Pptx Extract Slide Titles Csv", + "filename": "convert-pdf-to-pptx-extract-slide-titles-csv.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-pdf-to-pptx-optional-password-protection": { + "title": "Convert Pdf To Pptx Optional Password Protection", + "filename": "convert-pdf-to-pptx-optional-password-protection.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-pdf-to-pptx-slides-as-images": { + "title": "Convert PDF to PPTX with Slides as Images", + "filename": "convert-pdf-to-pptx-slides-as-images.cs", + "description": "Demonstrates converting a PDF file to a PPTX presentation where each PDF page is rendered as a raster image on its own slide using Aspose.Pdf.", "tags": [ "pdf", - "pdfa", - "validation", + "pptx", "conversion", + "slides-as-images", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Validate", - "Aspose.Pdf.Document.Convert", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.PdfFormat" + "Aspose.Pdf.PptxSaveOptions", + "Aspose.Pdf.PptxSaveOptions.SlidesAsImages", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-pdfa3b-with-font-substitution": { - "title": "Convert PDF to PDF/A‑3b with Font Substitution", - "filename": "convert-pdf-to-pdfa3b-with-font-substitution.cs", - "description": "Shows how to convert a PDF to PDF/A‑3b using Aspose.Pdf, enable default font substitution for missing fonts, and save the resulting PDF/A‑3b file.", + "convert-pdf-to-pptx-slidesasimages-high-dpi": { + "title": "Convert PDF to PPTX with SlidesAsImages and High DPI", + "filename": "convert-pdf-to-pptx-slidesasimages-high-dpi.cs", + "description": "Demonstrates how to convert a PDF document to a PPTX presentation using Aspose.Pdf, rendering each PDF page as an image slide and setting a high image resolution (DPI) for better quality.", "tags": [ "pdf", - "pdfa-3b", - "font-substitution", + "pptx", "conversion", - "aspose" + "slidesasimages", + "high-dpi" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PdfFormatConversionOptions", - "Aspose.Pdf.PdfFormat", - "Aspose.Pdf.Text.FontEmbeddingOptions", - "Aspose.Pdf.Document.Convert", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.PptxSaveOptions", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.PptxSaveOptions.SlidesAsImages", + "Aspose.Pdf.PptxSaveOptions.ImageResolution" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-pdfa4-with-auto-tagging": { - "title": "Convert PDF to PDF/A-4 with Auto-Tagging", - "filename": "convert-pdf-to-pdfa4-with-auto-tagging.cs", - "description": "Demonstrates converting a PDF document to PDF/A-4 format while enabling automatic tagging using Aspose.Pdf's AutoTaggingSettings.", + "convert-pdf-to-pptx-to-pdfa": { + "title": "Convert Pdf To Pptx To Pdfa", + "filename": "convert-pdf-to-pptx-to-pdfa.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-pdf-to-pptx-with-annotation-notes": { + "title": "Convert PDF to PPTX and Add Speaker Notes from Annotations", + "filename": "convert-pdf-to-pptx-with-annotation-notes.cs", + "description": "Demonstrates converting a PDF document to a PPTX file using Aspose.Pdf and extracting annotation contents to use as speaker notes for each slide.", "tags": [ "pdf", - "pdfa-4", - "auto-tagging", + "pptx", "conversion", - "aspose-pdf" + "annotations", + "speaker-notes" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PdfFormatConversionOptions", - "Aspose.Pdf.AutoTaggingSettings", - "Aspose.Pdf.Document.Convert", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotation", + "Aspose.Pdf.MarkupAnnotation", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.SaveFormat" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-pdfa-1b-skip-errors": { - "title": "Convert PDF to PDF/A‑1b with Skip Error Action", - "filename": "convert-pdf-to-pdfa-1b-skip-errors.cs", - "description": "Demonstrates how to convert a PDF file to PDF/A‑1b format while setting ConvertErrorAction to skip non‑convertible elements, using Aspose.Pdf.", + "convert-pdf-to-pptx-with-custom-font": { + "title": "Convert Pdf To Pptx With Custom Font", + "filename": "convert-pdf-to-pptx-with-custom-font.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-pdf-to-pptx-with-logo": { + "title": "Convert PDF to PPTX with Logo on Each Slide", + "filename": "convert-pdf-to-pptx-with-logo.cs", + "description": "Shows how to load a PDF, overlay a logo image on every page, and then save the modified document as a PPTX presentation using Aspose.Pdf.", "tags": [ "pdf", - "pdfa", - "conversion", - "error-handling", - "aspose-pdf" + "pptx", + "logo", + "image-overlay", + "conversion" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PdfFormatConversionOptions", - "Aspose.Pdf.ConvertErrorAction", - "Aspose.Pdf.PdfFormat", - "Aspose.Pdf.Document.Convert", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.PptxSaveOptions", + "Aspose.Pdf.Page.AddImage", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-pdfa-3b-throw-errors": { - "title": "Convert PDF to PDF/A‑3b with Throw on Conversion Errors", - "filename": "convert-pdf-to-pdfa-3b-throw-errors.cs", - "description": "Shows how to load a PDF using Aspose.Pdf, convert it to PDF/A‑3b format with ConvertErrorAction set to Throw so that conversion problems raise exceptions, and handle the outcome.", + "convert-pdf-to-pptx-with-notes": { + "title": "Convert Pdf To Pptx With Notes", + "filename": "convert-pdf-to-pptx-with-notes.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-pdf-to-pptx-with-progress-handler": { + "title": "Convert PDF to PPTX with Custom Progress Handler", + "filename": "convert-pdf-to-pptx-with-progress-handler.cs", + "description": "Demonstrates converting a PDF document to PPTX using Aspose.Pdf while assigning a custom progress handler to monitor conversion status.", "tags": [ "pdf", - "pdfa-3b", + "pptx", "conversion", - "error-handling", - "aspose-pdf" + "progress", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Convert", - "Aspose.Pdf.ConvertErrorAction", - "Aspose.Pdf.ConvertException", - "Aspose.Pdf.PdfFormat" + "Aspose.Pdf.PptxSaveOptions", + "Aspose.Pdf.PptxSaveOptions.ConversionProgressEventHandler", + "Aspose.Pdf.UnifiedSaveOptions.ProgressEventHandlerInfo", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-pdfa4-with-converterroraction": { - "title": "Convert PDF to PDF/A-4 with ConvertErrorAction", - "filename": "convert-pdf-to-pdfa4-with-converterroraction.cs", - "description": "Demonstrates loading a PDF, converting it to PDF/A‑4 while specifying a ConvertErrorAction, and saving the result with a conversion log.", + "convert-pdf-to-pptx-with-progress": { + "title": "Convert Pdf To Pptx With Progress", + "filename": "convert-pdf-to-pptx-with-progress.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-pdf-to-pptx": { + "title": "Convert PDF to Editable PPTX", + "filename": "convert-pdf-to-pptx.cs", + "description": "Shows how to load a PDF with Aspose.Pdf and save it as an editable PowerPoint presentation using the default PPTX save options.", "tags": [ "pdf", - "pdfa", + "pptx", "conversion", - "error-handling", - "aspose-pdf" + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Convert", - "Aspose.Pdf.PdfFormat", - "Aspose.Pdf.ConvertErrorAction", + "Aspose.Pdf.PptxSaveOptions", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "add-external-text-file-attachment-to-pdfa3b": { - "title": "Add External Text File Attachment to PDF/A‑3b Document", - "filename": "add-external-text-file-attachment-to-pdfa3b.cs", - "description": "Demonstrates how to embed an external text file as a file attachment annotation and convert the PDF to PDF/A‑3b compliance using Aspose.Pdf.", + "convert-pdf-to-pptx__v2": { + "title": "Convert PDF to PPTX with Aspose.Pdf", + "filename": "convert-pdf-to-pptx__v2.cs", + "description": "Shows how to convert a PDF document to a PPTX presentation using Aspose.Pdf and mentions the optional step of password‑protecting the PPTX with Aspose.Slides.", "tags": [ - "pdfa-3b", - "attachment", - "annotation", + "pdf", + "pptx", "conversion", - "aspose-pdf" + "aspose", + "password-protection" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Annotations.FileAttachmentAnnotation", - "Aspose.Pdf.Document.Convert", + "Aspose.Pdf.SaveFormat", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "add-external-xml-attachment-to-pdfa": { - "title": "Add External XML Attachment to PDF/A‑1b Document", - "filename": "add-external-xml-attachment-to-pdfa.cs", - "description": "Demonstrates converting a PDF to PDF/A‑1b and attaching an external XML file as a file‑attachment annotation on the first page.", + "convert-pdf-to-pptx__v3": { + "title": "Convert PDF to PPTX Presentation", + "filename": "convert-pdf-to-pptx__v3.cs", + "description": "Demonstrates how to load a PDF file with Aspose.Pdf and save it directly as a PPTX presentation using the Save method and SaveFormat.Pptx.", "tags": [ - "pdfa", - "attachment", - "xml", + "pdf", + "pptx", "conversion", - "annotation" + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Convert", - "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Annotations.FileAttachmentAnnotation", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Color" + "Aspose.Pdf.SaveFormat", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "replace-missing-fonts-pdfa-conversion": { - "title": "Replace Missing Fonts During PDF/A Conversion", - "filename": "replace-missing-fonts-pdfa-conversion.cs", - "description": "Demonstrates how to configure font substitution with a fallback font (Arial) and convert a PDF to PDF/A while ensuring missing fonts are replaced and embedded correctly.", + "convert-pdf-to-pptx__v4": { + "title": "Convert PDF to PPTX using Aspose.Pdf", + "filename": "convert-pdf-to-pptx__v4.cs", + "description": "Shows how to convert a PDF document to a PowerPoint PPTX file by using Aspose.Pdf's Document class and its Save method with the Pptx format.", "tags": [ - "pdfa", - "font-substitution", + "pdf", + "pptx", "conversion", - "fallback-font", - "aspose-pdf" + "aspose.pdf", + "csharp" ], "apis_used": [ - "Aspose.Pdf.FontRepository", - "Aspose.Pdf.Text.SimpleFontSubstitution", "Aspose.Pdf.Document", - "Aspose.Pdf.PdfFormatConversionOptions", - "Aspose.Pdf.PdfFormat", - "Aspose.Pdf.FontEmbeddingOptions", - "Aspose.Pdf.Document.Convert", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.SaveFormat" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "enable-auto-tagging-pdfa-conversion": { - "title": "Enable Auto‑Tagging for PDF/A Conversion", - "filename": "enable-auto-tagging-pdfa-conversion.cs", - "description": "Demonstrates how to enable automatic tagging when converting a PDF to PDF/A‑1B using Aspose.Pdf by configuring AutoTaggingSettings in the conversion options.", + "convert-pdf-to-pptx__v5": { + "title": "Convert PDF to PPTX with Aspose.Pdf", + "filename": "convert-pdf-to-pptx__v5.cs", + "description": "Shows how to convert a PDF document to a PPTX presentation using Aspose.Pdf's Document.Save method.", "tags": [ - "auto-tagging", - "pdfa", + "pdf", + "pptx", "conversion", - "aspose-pdf", - "document" + "aspose.pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PdfFormatConversionOptions", - "Aspose.Pdf.AutoTaggingSettings", - "Aspose.Pdf.Document.Convert", + "Aspose.Pdf.SaveFormat", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-epub-to-pdf-custom-page-size": { - "title": "Convert EPUB to PDF with Custom Page Size", - "filename": "convert-epub-to-pdf-custom-page-size.cs", - "description": "Demonstrates loading an EPUB file with EpubLoadOptions to set a custom page size and converting it to a PDF document using Aspose.Pdf.", + "convert-pdf-to-responsive-html": { + "title": "Convert Pdf To Responsive Html", + "filename": "convert-pdf-to-responsive-html.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-pdf-to-single-page-html": { + "title": "Convert PDF to Single-Page HTML with Embedded Resources", + "filename": "convert-pdf-to-single-page-html.cs", + "description": "Shows how to convert a PDF document into a single HTML file that embeds all images, CSS, and fonts (saved as WOFF) using Aspose.Pdf.", "tags": [ - "epub", "pdf", + "html", "conversion", - "custom-page-size", - "aspose-pdf" + "embedding", + "fonts" ], "apis_used": [ - "Aspose.Pdf.EpubLoadOptions", "Aspose.Pdf.Document", + "Aspose.Pdf.HtmlSaveOptions", + "Aspose.Pdf.HtmlSaveOptions.PartsEmbeddingModes", + "Aspose.Pdf.HtmlSaveOptions.FontSavingModes", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-markdown-to-pdf-preserving-code-blocks": { - "title": "Convert Markdown to PDF Preserving Code Blocks", - "filename": "convert-markdown-to-pdf-preserving-code-blocks.cs", - "description": "Demonstrates loading a Markdown file with MdLoadOptions and converting it to a PDF while keeping code block formatting using Aspose.Pdf.", + "convert-pdf-to-svg-custom-output": { + "title": "Convert PDF to SVG with Custom Output Folder", + "filename": "convert-pdf-to-svg-custom-output.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, configure SvgSaveOptions, and save each page as SVG files into a specified output directory.", "tags": [ - "markdown", "pdf", + "svg", "conversion", - "code-blocks", + "output-folder", "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.MdLoadOptions", "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.SvgSaveOptions", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.SvgSaveOptions.TreatTargetFileNameAsDirectory" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pcl-to-pdf-hpgl2": { - "title": "Convert PCL to PDF with HP‑GL/2 Vectors", - "filename": "convert-pcl-to-pdf-hpgl2.cs", - "description": "Demonstrates loading a PCL file (including HP‑GL/2 vector data) using Aspose.Pdf and saving it as a PDF document. The example creates a minimal PCL file for self‑containment and handles conversion errors gracefully.", + "convert-pdf-to-svg-with-embedded-css": { + "title": "Convert Pdf To Svg With Embedded Css", + "filename": "convert-pdf-to-svg-with-embedded-css.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-pdf-to-svg-with-output-folder": { + "title": "Convert Pdf To Svg With Output Folder", + "filename": "convert-pdf-to-svg-with-output-folder.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-pdf-to-svg": { + "title": "Convert PDF to SVG using Aspose.Pdf", + "filename": "convert-pdf-to-svg.cs", + "description": "Shows how to load a PDF document and save each page as SVG images using the default SvgSaveOptions.", "tags": [ - "pcl", "pdf", + "svg", "conversion", - "hpgl2", - "aspose-pdf" + "aspose.pdf", + "csharp" ], "apis_used": [ - "Aspose.Pdf.PclLoadOptions", "Aspose.Pdf.Document", - "Aspose.Pdf.Document..ctor", + "Aspose.Pdf.SvgSaveOptions", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-postscript-to-pdf": { - "title": "Convert PostScript to PDF using Aspose.Pdf", - "filename": "convert-postscript-to-pdf.cs", - "description": "Shows how to load a PostScript (.ps) file with PsLoadOptions and save it as a PDF using Aspose.Pdf's default settings.", + "convert-pdf-to-svg__v2": { + "title": "Convert PDF to SVG with Aspose.Pdf", + "filename": "convert-pdf-to-svg__v2.cs", + "description": "Shows how to load a PDF document using Aspose.Pdf and save it as an SVG file by configuring SvgSaveOptions.", "tags": [ - "postscript", "pdf", + "svg", "conversion", - "aspose-pdf", - "csharp" + "aspose.pdf", + "c#" ], "apis_used": [ - "Aspose.Pdf.PsLoadOptions", "Aspose.Pdf.Document", + "Aspose.Pdf.SvgSaveOptions", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "xml-to-pdf-xsl-fo-conversion": { - "title": "Convert XML with XSL‑FO to PDF using Aspose.Pdf", - "filename": "xml-to-pdf-xsl-fo-conversion.cs", - "description": "Demonstrates loading an XML file, applying an XSL‑FO stylesheet via XmlLoadOptions, and saving the result as a PDF document with Aspose.Pdf.", + "convert-pdf-to-text": { + "title": "Convert PDF to Text Using Aspose.Pdf TextDevice", + "filename": "convert-pdf-to-text.cs", + "description": "Demonstrates how to load a PDF file with Aspose.Pdf and extract its plain text content page by page using the TextDevice class, writing the result to a .txt file.", "tags": [ - "xml", - "xsl-fo", "pdf", - "conversion", - "aspose-pdf" + "text-extraction", + "aspose-pdf", + "csharp", + "conversion" ], "apis_used": [ - "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.XmlLoadOptions..ctor(string)", "Aspose.Pdf.Document", - "Aspose.Pdf.Document..ctor(string, XmlLoadOptions)", - "Aspose.Pdf.Document.Save(string)", - "Aspose.Pdf.Document.Dispose" + "Aspose.Pdf.Devices.TextDevice", + "Aspose.Pdf.Devices.TextDevice.Process", + "Aspose.Pdf.PageCollection", + "Aspose.Pdf.Page" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-xslfo-to-pdf": { - "title": "Convert XSL‑FO to PDF using Aspose.Pdf", - "filename": "convert-xslfo-to-pdf.cs", - "description": "Shows how to load an XSL‑FO file with XslFoLoadOptions and convert it to a PDF document using Aspose.Pdf's Document class.", + "convert-pdf-to-xps-custom-page-size": { + "title": "Convert PDF to XPS with Custom Page Size and Landscape Orientation", + "filename": "convert-pdf-to-xps-custom-page-size.cs", + "description": "Demonstrates loading a PDF, applying a custom page size and landscape orientation to each page, and saving the result as an XPS document using Aspose.Pdf.", "tags": [ - "xsl-fo", "pdf", + "xps", "conversion", - "aspose-pdf", - "csharp" + "custom-page-size", + "landscape" ], "apis_used": [ - "Aspose.Pdf.XslFoLoadOptions", "Aspose.Pdf.Document", + "Aspose.Pdf.Page.SetPageSize", + "Aspose.Pdf.Page.PageInfo.IsLandscape", + "Aspose.Pdf.XpsSaveOptions", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-latex-to-pdf": { - "title": "Convert LaTeX (.tex) to PDF with Aspose.Pdf", - "filename": "convert-latex-to-pdf.cs", - "description": "Demonstrates loading a LaTeX (.tex) file using Aspose.Pdf's TeXLoadOptions and converting it to a PDF document while preserving equations and formatting.", + "convert-pdf-to-xps": { + "title": "Convert PDF to XPS using Aspose.Pdf", + "filename": "convert-pdf-to-xps.cs", + "description": "Demonstrates how to load a PDF file with Aspose.Pdf and save it as an XPS document using XpsSaveOptions with default settings.", "tags": [ - "latex", "pdf", + "xps", "conversion", "aspose.pdf", "csharp" ], "apis_used": [ - "Aspose.Pdf.TeXLoadOptions", "Aspose.Pdf.Document", + "Aspose.Pdf.XpsSaveOptions", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-ofd-to-pdf": { - "title": "Convert OFD to PDF with Aspose.Pdf", - "filename": "convert-ofd-to-pdf.cs", - "description": "Demonstrates loading an OFD file using OfdLoadOptions and saving it as a PDF with default settings.", + "convert-postscript-to-pdf": { + "title": "Convert PostScript to PDF using Aspose.Pdf", + "filename": "convert-postscript-to-pdf.cs", + "description": "Shows how to load a PostScript (.ps) file with PsLoadOptions and save it as a PDF using Aspose.Pdf's default settings.", "tags": [ - "OFD", - "PDF", + "postscript", + "pdf", "conversion", - "Aspose.Pdf", - "C#" + "aspose-pdf", + "csharp" ], "apis_used": [ + "Aspose.Pdf.PsLoadOptions", "Aspose.Pdf.Document", - "Aspose.Pdf.OfdLoadOptions", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-epub": { - "title": "Convert PDF to EPUB with Aspose.Pdf", - "filename": "convert-pdf-to-epub.cs", - "description": "Demonstrates loading a PDF file and saving it as an EPUB using Aspose.Pdf with the default conversion settings.", + "convert-xml-to-pdf-using-xsl-fo": { + "title": "Convert Xml To Pdf Using Xsl Fo", + "filename": "convert-xml-to-pdf-using-xsl-fo.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-xsl-fo-to-pdf": { + "title": "Convert Xsl Fo To Pdf", + "filename": "convert-xsl-fo-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-xslfo-to-pdf": { + "title": "Convert XSL‑FO to PDF using Aspose.Pdf", + "filename": "convert-xslfo-to-pdf.cs", + "description": "Shows how to load an XSL‑FO file with XslFoLoadOptions and convert it to a PDF document using Aspose.Pdf's Document class.", "tags": [ + "xsl-fo", "pdf", - "epub", "conversion", - "aspose", + "aspose-pdf", "csharp" ], "apis_used": [ + "Aspose.Pdf.XslFoLoadOptions", "Aspose.Pdf.Document", - "Aspose.Pdf.EpubSaveOptions", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-epub-with-cover": { - "title": "Convert PDF to EPUB with Custom Cover Image and Metadata", - "filename": "convert-pdf-to-epub-with-cover.cs", - "description": "Demonstrates converting a PDF to an EPUB file while adding a custom cover page, setting document metadata, and configuring EPUB save options using Aspose.Pdf.", + "create-multi-page-tiff-from-pdf": { + "title": "Create Multi‑Page TIFF from PDF Using TiffDevice", + "filename": "create-multi-page-tiff-from-pdf.cs", + "description": "Demonstrates how to convert all pages of a PDF into a single multi‑page TIFF file using Aspose.Pdf's TiffDevice with default compression.", "tags": [ "pdf", - "epub", + "tiff", "conversion", - "cover-image", - "metadata" + "multipage", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.EpubSaveOptions", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Devices.TiffDevice", + "Aspose.Pdf.Devices.TiffDevice.Process" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-latex": { - "title": "Convert PDF to LaTeX with TeXSaveOptions", - "filename": "convert-pdf-to-latex.cs", - "description": "Shows how to load a PDF using Aspose.Pdf and export it to a LaTeX .tex file with TeXSaveOptions, specifying an output directory for auxiliary files.", + "create-single-page-tiff-from-first-pdf-page": { + "title": "Create Single Page Tiff From First Pdf Page", + "filename": "create-single-page-tiff-from-first-pdf-page.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-single-page-tiff-from-pdf": { + "title": "Create Single-Page TIFF from PDF", + "filename": "create-single-page-tiff-from-pdf.cs", + "description": "Demonstrates how to load a PDF, configure TIFF conversion settings, and generate a single‑page TIFF image of the first PDF page using Aspose.Pdf's TiffDevice.", "tags": [ "pdf", - "latex", + "tiff", "conversion", - "aspose.pdf", - "texsaveoptions" + "compression", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.TeXSaveOptions", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.Devices.TiffSettings", + "Aspose.Pdf.Devices.CompressionType", + "Aspose.Pdf.Devices.ColorDepth", + "Aspose.Pdf.Devices.ShapeType", + "Aspose.Pdf.Devices.TiffDevice.Process" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-latex-with-custom-macros": { - "title": "Convert PDF to LaTeX with Custom Macro Definitions", - "filename": "convert-pdf-to-latex-with-custom-macros.cs", - "description": "Demonstrates how to convert a PDF document to a LaTeX (.tex) file using Aspose.Pdf and prepend custom macro definitions for special symbols.", + "enable-auto-tagging-pdfa-conversion": { + "title": "Enable Auto‑Tagging for PDF/A Conversion", + "filename": "enable-auto-tagging-pdfa-conversion.cs", + "description": "Demonstrates how to enable automatic tagging when converting a PDF to PDF/A‑1B using Aspose.Pdf by configuring AutoTaggingSettings in the conversion options.", "tags": [ - "pdf", - "latex", + "auto-tagging", + "pdfa", "conversion", "aspose-pdf", - "custom-macros" + "document" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.TeXSaveOptions", + "Aspose.Pdf.PdfFormatConversionOptions", + "Aspose.Pdf.AutoTaggingSettings", + "Aspose.Pdf.Document.Convert", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-text": { - "title": "Convert PDF to Text Using Aspose.Pdf TextDevice", - "filename": "convert-pdf-to-text.cs", - "description": "Demonstrates how to load a PDF file with Aspose.Pdf and extract its plain text content page by page using the TextDevice class, writing the result to a .txt file.", + "extract-pdf-page-region-to-png": { + "title": "Extract PDF Page Region to PNG", + "filename": "extract-pdf-page-region-to-png.cs", + "description": "Shows how to define a rectangular region on a PDF page using the CropBox and render that area to a PNG image with Aspose.Pdf.", "tags": [ "pdf", - "text-extraction", - "aspose-pdf", - "csharp", + "png", + "cropbox", + "region", "conversion" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Devices.TextDevice", - "Aspose.Pdf.Devices.TextDevice.Process", - "Aspose.Pdf.PageCollection", - "Aspose.Pdf.Page" + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Devices.PngDevice", + "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.PageCoordinateType" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, + "extract-pdf-text-to-utf8-file": { + "title": "Extract Pdf Text To Utf8 File", + "filename": "extract-pdf-text-to-utf8-file.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "extract-pdf-text-to-utf8-preserve-line-breaks": { "title": "Extract PDF Text to UTF-8 File Preserving Line Breaks", "filename": "extract-pdf-text-to-utf8-preserve-line-breaks.cs", @@ -1939,65 +2402,119 @@ "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-xps": { - "title": "Convert PDF to XPS using Aspose.Pdf", - "filename": "convert-pdf-to-xps.cs", - "description": "Demonstrates how to load a PDF file with Aspose.Pdf and save it as an XPS document using XpsSaveOptions with default settings.", + "pdf-to-docx-conversion-json-report": { + "title": "Pdf To Docx Conversion Json Report", + "filename": "pdf-to-docx-conversion-json-report.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "pdf-to-docx-to-pdfa-conversion": { + "title": "Pdf To Docx To Pdfa Conversion", + "filename": "pdf-to-docx-to-pdfa-conversion.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "pdf-to-html-embed-fonts-to-docx": { + "title": "Pdf To Html Embed Fonts To Docx", + "filename": "pdf-to-html-embed-fonts-to-docx.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "pdf-to-html-merge-and-convert-back": { + "title": "Convert PDF to HTML, Merge Pages, and Convert Back to PDF", + "filename": "pdf-to-html-merge-and-convert-back.cs", + "description": "Demonstrates converting each PDF page to separate HTML files, concatenating those HTML pages into a single document, and then converting the combined HTML back into a PDF using Aspose.Pdf.", "tags": [ "pdf", - "xps", + "html", "conversion", - "aspose.pdf", - "csharp" + "merge", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.XpsSaveOptions", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.HtmlSaveOptions", + "Aspose.Pdf.HtmlSaveOptions.RasterImagesSavingModes", + "Aspose.Pdf.HtmlLoadOptions" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-xps-custom-page-size": { - "title": "Convert PDF to XPS with Custom Page Size and Landscape Orientation", - "filename": "convert-pdf-to-xps-custom-page-size.cs", - "description": "Demonstrates loading a PDF, applying a custom page size and landscape orientation to each page, and saving the result as an XPS document using Aspose.Pdf.", + "pdf-to-html-per-page-image-folders": { + "title": "Convert PDF to HTML with Per‑Page Image Subfolders", + "filename": "pdf-to-html-per-page-image-folders.cs", + "description": "Demonstrates converting a PDF to HTML using Aspose.Pdf, splitting the output into separate pages and saving each page's images into its own subfolder via a custom resource‑saving strategy.", "tags": [ "pdf", - "xps", + "html", "conversion", - "custom-page-size", - "landscape" + "images", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page.SetPageSize", - "Aspose.Pdf.Page.PageInfo.IsLandscape", - "Aspose.Pdf.XpsSaveOptions", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.HtmlSaveOptions", + "Aspose.Pdf.HtmlSaveOptions.HtmlImageSavingInfo", + "Aspose.Pdf.HtmlSaveOptions.RasterImagesSavingModes", + "Aspose.Pdf.HtmlSaveOptions.PartsEmbeddingModes" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-markdown-default-options": { - "title": "Convert PDF to Markdown with Default Options", - "filename": "convert-pdf-to-markdown-default-options.cs", - "description": "Demonstrates loading a PDF file with Aspose.Pdf and saving it as a Markdown document using the default MarkdownSaveOptions.", + "pdf-to-html-roundtrip-conversion": { + "title": "Pdf To Html Roundtrip Conversion", + "filename": "pdf-to-html-roundtrip-conversion.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "pdf-to-html-sitemap": { + "title": "Pdf To Html Sitemap", + "filename": "pdf-to-html-sitemap.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "pdf-to-html-with-toc": { + "title": "Convert PDF to HTML with Automatic Table of Contents", + "filename": "pdf-to-html-with-toc.cs", + "description": "Demonstrates converting a PDF file to a single HTML document using Aspose.Pdf and then generating a navigable table of contents by adding IDs to heading tags.", "tags": [ "pdf", - "markdown", + "html", + "toc", "conversion", - "aspose", - "csharp" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.MarkdownSaveOptions", + "Aspose.Pdf.HtmlSaveOptions", + "Aspose.Pdf.HtmlSaveOptions.PartsEmbeddingModes", + "Aspose.Pdf.HtmlSaveOptions.RasterImagesSavingModes", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, @@ -2023,46 +2540,14 @@ "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-mobixml": { - "title": "Convert PDF to MobiXml with Aspose.Pdf", - "filename": "convert-pdf-to-mobixml.cs", - "description": "Shows how to load a PDF file and save it as a MobiXml document using Aspose.Pdf's default MobiXmlSaveOptions.", - "tags": [ - "pdf", - "mobixml", - "conversion", - "aspose", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.MobiXmlSaveOptions", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:17:28Z", - "status": "verified" - }, - "convert-pdf-to-mobixml-with-metadata": { - "title": "Convert PDF to MobiXml with Author and Publisher Metadata", - "filename": "convert-pdf-to-mobixml-with-metadata.cs", - "description": "Demonstrates loading a PDF using Aspose.Pdf, setting both standard (author) and custom (publisher) metadata, and saving the document as a MobiXml file.", - "tags": [ - "pdf", - "mobixml", - "metadata", - "conversion", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.DocumentInfo", - "Aspose.Pdf.MobiXmlSaveOptions", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.DocumentInfo.Author" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:17:28Z", + "pdf-to-png-binarize-bradley": { + "title": "Pdf To Png Binarize Bradley", + "filename": "pdf-to-png-binarize-bradley.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, "pdf-to-png-bradley-contrast": { @@ -2087,108 +2572,113 @@ "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-png-transparent-background__v2": { - "title": "Convert PDF Pages to PNG with Transparent Background", - "filename": "convert-pdf-to-png-transparent-background__v2.cs", - "description": "Loads a PDF document, creates a PngDevice with TransparentBackground enabled, and saves each page as a PNG image preserving any alpha channel.", + "pdf-to-pptx-export-slide-titles-csv": { + "title": "Convert PDF to PPTX and Export Slide Titles to CSV", + "filename": "pdf-to-pptx-export-slide-titles-csv.cs", + "description": "Demonstrates how to convert a PDF document to a PPTX file using Aspose.Pdf, then parses the generated PPTX package to extract each slide's title and writes them to a CSV file.", "tags": [ "pdf", - "png", - "transparent-background", + "pptx", "conversion", + "csv", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Devices.PngDevice", - "Aspose.Pdf.Devices.Resolution", - "Aspose.Pdf.Page", - "Aspose.Pdf.Devices.PngDevice.Process" + "Aspose.Pdf.SaveFormat", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "create-multi-page-tiff-from-pdf": { - "title": "Create Multi‑Page TIFF from PDF Using TiffDevice", - "filename": "create-multi-page-tiff-from-pdf.cs", - "description": "Demonstrates how to convert all pages of a PDF into a single multi‑page TIFF file using Aspose.Pdf's TiffDevice with default compression.", + "pdf-to-responsive-html": { + "title": "Convert PDF to Responsive HTML with Embedded CSS", + "filename": "pdf-to-responsive-html.cs", + "description": "Demonstrates converting a PDF file to a single HTML document using Aspose.Pdf, creating a simple responsive CSS stylesheet, and injecting the stylesheet link into the generated HTML for mobile‑friendly rendering.", "tags": [ "pdf", - "tiff", - "conversion", - "multipage", - "aspose-pdf" + "html", + "responsive", + "css", + "conversion" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Devices.TiffDevice", - "Aspose.Pdf.Devices.TiffDevice.Process" + "Aspose.Pdf.HtmlSaveOptions", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.HtmlSaveOptions.RasterImagesSavingModes", + "Aspose.Pdf.HtmlSaveOptions.SplitIntoPages" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "create-single-page-tiff-from-pdf": { - "title": "Create Single-Page TIFF from PDF", - "filename": "create-single-page-tiff-from-pdf.cs", - "description": "Demonstrates how to load a PDF, configure TIFF conversion settings, and generate a single‑page TIFF image of the first PDF page using Aspose.Pdf's TiffDevice.", + "replace-missing-fonts-pdfa-conversion": { + "title": "Replace Missing Fonts During PDF/A Conversion", + "filename": "replace-missing-fonts-pdfa-conversion.cs", + "description": "Demonstrates how to configure font substitution with a fallback font (Arial) and convert a PDF to PDF/A while ensuring missing fonts are replaced and embedded correctly.", "tags": [ - "pdf", - "tiff", + "pdfa", + "font-substitution", "conversion", - "compression", - "Aspose.Pdf" + "fallback-font", + "aspose-pdf" ], "apis_used": [ + "Aspose.Pdf.FontRepository", + "Aspose.Pdf.Text.SimpleFontSubstitution", "Aspose.Pdf.Document", - "Aspose.Pdf.Devices.Resolution", - "Aspose.Pdf.Devices.TiffSettings", - "Aspose.Pdf.Devices.CompressionType", - "Aspose.Pdf.Devices.ColorDepth", - "Aspose.Pdf.Devices.ShapeType", - "Aspose.Pdf.Devices.TiffDevice.Process" + "Aspose.Pdf.PdfFormatConversionOptions", + "Aspose.Pdf.PdfFormat", + "Aspose.Pdf.FontEmbeddingOptions", + "Aspose.Pdf.Document.Convert", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-svg__v2": { - "title": "Convert PDF to SVG with Aspose.Pdf", - "filename": "convert-pdf-to-svg__v2.cs", - "description": "Shows how to load a PDF document using Aspose.Pdf and save it as an SVG file by configuring SvgSaveOptions.", + "validate-and-convert-pdf-to-pdfa-1b": { + "title": "Validate and Convert PDF to PDF/A‑1b", + "filename": "validate-and-convert-pdf-to-pdfa-1b.cs", + "description": "Shows how to validate a PDF against PDF/A‑1b, generate an XML validation log, convert the document to PDF/A‑1b with a conversion log, and save the compliant file using Aspose.Pdf.", "tags": [ "pdf", - "svg", + "pdfa", + "validation", "conversion", - "aspose.pdf", - "c#" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.SvgSaveOptions", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Validate", + "Aspose.Pdf.Document.Convert", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.PdfFormat" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:17:28Z", "status": "verified" }, - "convert-pdf-to-svg-custom-output": { - "title": "Convert PDF to SVG with Custom Output Folder", - "filename": "convert-pdf-to-svg-custom-output.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, configure SvgSaveOptions, and save each page as SVG files into a specified output directory.", + "xml-to-pdf-xsl-fo-conversion": { + "title": "Convert XML with XSL‑FO to PDF using Aspose.Pdf", + "filename": "xml-to-pdf-xsl-fo-conversion.cs", + "description": "Demonstrates loading an XML file, applying an XSL‑FO stylesheet via XmlLoadOptions, and saving the result as a PDF document with Aspose.Pdf.", "tags": [ + "xml", + "xsl-fo", "pdf", - "svg", "conversion", - "output-folder", "aspose-pdf" ], "apis_used": [ + "Aspose.Pdf.XmlLoadOptions", + "Aspose.Pdf.XmlLoadOptions..ctor(string)", "Aspose.Pdf.Document", - "Aspose.Pdf.SvgSaveOptions", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.SvgSaveOptions.TreatTargetFileNameAsDirectory" + "Aspose.Pdf.Document..ctor(string, XmlLoadOptions)", + "Aspose.Pdf.Document.Save(string)", + "Aspose.Pdf.Document.Dispose" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:17:28Z", diff --git a/document/AGENTS.md b/document/AGENTS.md index 843260b68..415896c37 100644 --- a/document/AGENTS.md +++ b/document/AGENTS.md @@ -8,7 +8,7 @@ parent: ../agents.md # AGENTS - document -> **Document** in PDF using C# / .NET -- **120** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. +> **Document** in PDF using C# / .NET -- **175** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. ## Persona @@ -23,30 +23,30 @@ See the root [agents.md](../agents.md) for repository-wide conventions and bound ## Required Namespaces -- `using Aspose.Pdf;` (120/120 files) ← category-specific -- `using Aspose.Pdf.Text;` (33/120 files) -- `using Aspose.Pdf.Annotations;` (23/120 files) -- `using Aspose.Pdf.Forms;` (12/120 files) -- `using Aspose.Pdf.Optimization;` (7/120 files) -- `using Aspose.Pdf.Tagged;` (7/120 files) -- `using Aspose.Pdf.LogicalStructure;` (6/120 files) -- `using Aspose.Pdf.Devices;` (5/120 files) -- `using Aspose.Pdf.Drawing;` (3/120 files) -- `using Aspose.Pdf.Facades;` (2/120 files) -- `using Aspose.Pdf.Multithreading;` (1/120 files) -- `using Aspose.Pdf.Security.HiddenDataSanitization;` (1/120 files) -- `using System;` (120/120 files) -- `using System.IO;` (101/120 files) -- `using System.Collections.Generic;` (3/120 files) -- `using System.Data;` (2/120 files) -- `using System.Diagnostics;` (2/120 files) -- `using System.Drawing;` (2/120 files) -- `using System.Text;` (2/120 files) -- `using NUnit.Framework;` (1/120 files) -- `using System.Linq;` (1/120 files) -- `using System.Reflection;` (1/120 files) -- `using System.Threading;` (1/120 files) -- `using System.Threading.Tasks;` (1/120 files) +- `using Aspose.Pdf;` (120/175 files) ← category-specific +- `using Aspose.Pdf.Text;` (33/175 files) +- `using Aspose.Pdf.Annotations;` (23/175 files) +- `using Aspose.Pdf.Forms;` (12/175 files) +- `using Aspose.Pdf.Optimization;` (7/175 files) +- `using Aspose.Pdf.Tagged;` (7/175 files) +- `using Aspose.Pdf.LogicalStructure;` (6/175 files) +- `using Aspose.Pdf.Devices;` (5/175 files) +- `using Aspose.Pdf.Drawing;` (3/175 files) +- `using Aspose.Pdf.Facades;` (2/175 files) +- `using Aspose.Pdf.Multithreading;` (1/175 files) +- `using Aspose.Pdf.Security.HiddenDataSanitization;` (1/175 files) +- `using System;` (120/175 files) +- `using System.IO;` (101/175 files) +- `using System.Collections.Generic;` (3/175 files) +- `using System.Data;` (2/175 files) +- `using System.Diagnostics;` (2/175 files) +- `using System.Drawing;` (2/175 files) +- `using System.Text;` (2/175 files) +- `using NUnit.Framework;` (1/175 files) +- `using System.Linq;` (1/175 files) +- `using System.Reflection;` (1/175 files) +- `using System.Threading;` (1/175 files) +- `using System.Threading.Tasks;` (1/175 files) ## Common Code Pattern @@ -71,15 +71,20 @@ using (Document doc = new Document("input.pdf")) | [add-checked-checkbox-form-field](./add-checked-checkbox-form-field.cs) | Add Checked Checkbox Form Field to PDF | `Document`, `Page`, `Rectangle` | Shows how to create a PDF document, add a checkbox form field, set its default state to checked, ... | | [add-company-logo-header-to-pdf-pages](./add-company-logo-header-to-pdf-pages.cs) | Add Company Logo Header to PDF Pages | `Document`, `Page`, `ImageStamp` | Shows how to load an existing PDF, create an ImageStamp for a logo, position it as a top‑center h... | | [add-custom-document-info-and-xmp-metadata](./add-custom-document-info-and-xmp-metadata.cs) | Add Custom Document Info and XMP Metadata to PDF | `Document`, `DocumentInfo`, `Add` | Demonstrates how to add custom key/value pairs to a PDF's DocumentInfo dictionary and embed XMP m... | +| [add-custom-signature-appearance-last-page](./add-custom-signature-appearance-last-page.cs) | Add custom signature appearance last page | | Add custom signature appearance last page | +| [add-custom-xml-xmp-metadata-to-pdf](./add-custom-xml-xmp-metadata-to-pdf.cs) | Add custom xml xmp metadata to pdf | | Add custom xml xmp metadata to pdf | | [add-diagonal-text-stamp-to-pdf](./add-diagonal-text-stamp-to-pdf.cs) | Add Diagonal Text Stamp Watermark to PDF | `Document`, `TextStamp`, `FontRepository` | Shows how to load a PDF with Aspose.Pdf, create a TextStamp with a custom message, configure its ... | | [add-digital-signature-to-pdf](./add-digital-signature-to-pdf.cs) | Add Digital Signature Field and Sign PDF with Self‑Signed Ce... | `Document`, `Rectangle`, `SignatureField` | Demonstrates how to create a signature field in a PDF, configure a PKCS#1 signature using a self‑... | | [add-dynamic-heading-to-pdf](./add-dynamic-heading-to-pdf.cs) | Add Dynamic Heading to PDF | `Document`, `Page`, `Heading` | Shows how to load a PDF template, create a heading with dynamic date and user information, positi... | +| [add-heading-to-pdf-outline](./add-heading-to-pdf-outline.cs) | Add heading to pdf outline | | Add heading to pdf outline | | [add-hierarchical-numbered-headings](./add-hierarchical-numbered-headings.cs) | Add Hierarchical Numbered Headings to PDF | `Document`, `Page`, `Heading` | Shows how to apply decimal numbering to headings and create hierarchical numbering (chapters and ... | | [add-hyperlink-annotation-to-pdf](./add-hyperlink-annotation-to-pdf.cs) | Add Hyperlink Annotation to PDF | `Document`, `Page`, `Rectangle` | Shows how to insert a clickable hyperlink annotation that opens an external website in a PDF docu... | | [add-indented-paragraph-with-line-spacing](./add-indented-paragraph-with-line-spacing.cs) | Add Indented Paragraph with Line Spacing to PDF | `Document`, `Page`, `TextParagraph` | Shows how to load a PDF, create a TextParagraph with first‑line and subsequent line indentation, ... | +| [add-javascript-calculation-to-pdf-form-fields](./add-javascript-calculation-to-pdf-form-fields.cs) | Add javascript calculation to pdf form fields | | Add javascript calculation to pdf form fields | | [add-javascript-open-action-to-pdf](./add-javascript-open-action-to-pdf.cs) | Add JavaScript Open Action to PDF | `Document`, `Save`, `JavascriptAction` | Demonstrates embedding JavaScript in a PDF with Aspose.Pdf so an alert dialog appears when the do... | | [add-javascript-sum-calculation-to-pdf-form](./add-javascript-sum-calculation-to-pdf-form.cs) | Calculate Sum of Two PDF Form Fields with JavaScript | `Document`, `Page`, `NumberField` | Demonstrates creating a PDF with two numeric input fields and a read‑only sum field, then attachi... | | [add-javascript-sum-numeric-pdf-form-fields](./add-javascript-sum-numeric-pdf-form-fields.cs) | Add JavaScript to Sum Numeric PDF Form Fields | `Document`, `Form`, `TextBoxField` | Demonstrates embedding Acrobat JavaScript in a PDF with Aspose.Pdf to calculate the total of two ... | +| [add-javascript-total-calculation-to-pdf-form](./add-javascript-total-calculation-to-pdf-form.cs) | Add javascript total calculation to pdf form | | Add javascript total calculation to pdf form | | [add-level-1-heading-to-pdf](./add-level-1-heading-to-pdf.cs) | Add Level 1 Heading to PDF using Tagged Content | `Document`, `ITaggedContent`, `HeaderElement` | Demonstrates how to create a PDF document, use the tagged content API to insert a Level 1 heading... | | [add-line-annotation-with-custom-color-thickness](./add-line-annotation-with-custom-color-thickness.cs) | Add Line Annotation with Custom Color and Thickness to PDF | `Document`, `Page`, `Rectangle` | Demonstrates how to create a line annotation on a PDF page, set its color, and adjust its thickne... | | [add-line-separator-annotation-to-pdf-page](./add-line-separator-annotation-to-pdf-page.cs) | Add Line Separator Annotation to PDF Page | `Document`, `Page`, `Point` | Demonstrates how to insert a horizontal line annotation as a visual separator on a specific PDF p... | @@ -87,17 +92,12 @@ using (Document doc = new Document("input.pdf")) | [add-multi-level-toc-to-pdf](./add-multi-level-toc-to-pdf.cs) | Add Multi‑Level Table of Contents to PDF | `Document`, `AutoTaggingSettings`, `ProcessParagraphs` | Demonstrates how to enable auto‑tagging, detect headings, create a TOC element, insert a dedicate... | | [add-new-bookmark-to-pdf-outline](./add-new-bookmark-to-pdf-outline.cs) | Add New Bookmark to PDF Outline | `Document`, `OutlineItemCollection`, `XYZExplicitDestination` | Demonstrates how to create an outline (bookmark) in an existing PDF, set its title, style, and de... | | [add-page-count-footer-to-pdf](./add-page-count-footer-to-pdf.cs) | Add Page Count Footer to PDF Pages | `Document`, `Page`, `TextFragment` | Demonstrates how to add a custom footer that shows "Page X of Y" on each page of a PDF using Aspo... | +| [add-page-number-footer-to-pdf](./add-page-number-footer-to-pdf.cs) | Add page number footer to pdf | | Add page number footer to pdf | | [add-page-numbers-to-pdf-footer](./add-page-numbers-to-pdf-footer.cs) | Add Page Numbers to PDF Footer | `Document`, `Page`, `PageNumberStamp` | Demonstrates how to insert sequential page numbers into the footer of each page in a PDF using As... | -| [add-popup-note-annotation](./add-popup-note-annotation.cs) | Add Pop‑up Note Annotation to PDF | `Document`, `Page`, `Rectangle` | Shows how to create a TextAnnotation with a linked PopupAnnotation in a PDF using Aspose.Pdf and ... | -| [add-signature-field-to-pdf](./add-signature-field-to-pdf.cs) | Add Signature Field to PDF with Matching Appearance | `Document`, `SignatureField`, `DefaultAppearance` | Shows how to insert a user signature form field into an existing PDF and configure its default ap... | -| [add-signature-image-stamp-to-last-page](./add-signature-image-stamp-to-last-page.cs) | Add Signature Image Stamp to Last PDF Page | `Document`, `Page`, `ImageStamp` | Shows how to load a PDF with Aspose.Pdf, create an ImageStamp from a signature image, position it... | -| [add-styled-table-alternating-row-colors](./add-styled-table-alternating-row-colors.cs) | Add Styled Table with Alternating Row Colors to PDF | `Document`, `Page`, `Table` | Demonstrates creating a table with borders, header styling, and alternating row background colors... | -| [add-visible-digital-signature-and-lock-pdf](./add-visible-digital-signature-and-lock-pdf.cs) | Add Visible Digital Signature Field and Lock PDF | `Document`, `SignatureField`, `PKCS1` | The example loads an existing PDF, creates a visible signature field on the first page, signs it ... | -| [add-watermark-layer-merge-layers](./add-watermark-layer-merge-layers.cs) | Add Watermark Layer and Merge Layers in PDF | `Document`, `Layer`, `ImageStamp` | Demonstrates how to create a watermark as an optional content group (layer), add it to each page ... | -| ... | | | *and 90 more files* | +| ... | | | *and 145 more files* | ## Category Statistics -- Total examples: 120 +- Total examples: 175 ## Category-Specific Tips @@ -138,5 +138,5 @@ using (Document doc = new Document("input.pdf")) - Review code examples in this folder for document patterns -Updated: 2026-08-20 | Run: `20260820_001147_12d7b3` +Updated: 2026-09-10 | Run: `20260910_054408_87a7f4` diff --git a/document/README.md b/document/README.md new file mode 100644 index 000000000..f4c68f967 --- /dev/null +++ b/document/README.md @@ -0,0 +1,194 @@ +# Document + +> **Document** in PDF using C# / .NET -- **175** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. + +- Category: `document` +- Examples: 175 +- NuGet: `Aspose.PDF 26.8.0` -- target `net10.0` + +## Examples + +- [`add-accessibility-tags-to-pdf.cs`](./add-accessibility-tags-to-pdf.cs) -- Add accessibility tags to pdf +- [`add-background-color-to-pdf-page.cs`](./add-background-color-to-pdf-page.cs) -- Add background color to pdf page +- [`add-background-template-to-pdf-pages.cs`](./add-background-template-to-pdf-pages.cs) -- Add background template to pdf pages +- [`add-captions-below-images-in-pdf.cs`](./add-captions-below-images-in-pdf.cs) -- Add captions below images in pdf +- [`add-checked-checkbox-form-field.cs`](./add-checked-checkbox-form-field.cs) -- Add checked checkbox form field +- [`add-company-logo-header-to-pdf-pages.cs`](./add-company-logo-header-to-pdf-pages.cs) -- Add company logo header to pdf pages +- [`add-custom-document-info-and-xmp-metadata.cs`](./add-custom-document-info-and-xmp-metadata.cs) -- Add custom document info and xmp metadata +- [`add-custom-signature-appearance-last-page.cs`](./add-custom-signature-appearance-last-page.cs) -- Add custom signature appearance last page +- [`add-custom-xml-xmp-metadata-to-pdf.cs`](./add-custom-xml-xmp-metadata-to-pdf.cs) -- Add custom xml xmp metadata to pdf +- [`add-diagonal-text-stamp-to-pdf.cs`](./add-diagonal-text-stamp-to-pdf.cs) -- Add diagonal text stamp to pdf +- [`add-digital-signature-to-pdf.cs`](./add-digital-signature-to-pdf.cs) -- Add digital signature to pdf +- [`add-dynamic-heading-to-pdf.cs`](./add-dynamic-heading-to-pdf.cs) -- Add dynamic heading to pdf +- [`add-heading-to-pdf-outline.cs`](./add-heading-to-pdf-outline.cs) -- Add heading to pdf outline +- [`add-hierarchical-numbered-headings.cs`](./add-hierarchical-numbered-headings.cs) -- Add hierarchical numbered headings +- [`add-hyperlink-annotation-to-pdf.cs`](./add-hyperlink-annotation-to-pdf.cs) -- Add hyperlink annotation to pdf +- [`add-indented-paragraph-with-line-spacing.cs`](./add-indented-paragraph-with-line-spacing.cs) -- Add indented paragraph with line spacing +- [`add-javascript-calculation-to-pdf-form-fields.cs`](./add-javascript-calculation-to-pdf-form-fields.cs) -- Add javascript calculation to pdf form fields +- [`add-javascript-open-action-to-pdf.cs`](./add-javascript-open-action-to-pdf.cs) -- Add javascript open action to pdf +- [`add-javascript-sum-calculation-to-pdf-form.cs`](./add-javascript-sum-calculation-to-pdf-form.cs) -- Add javascript sum calculation to pdf form +- [`add-javascript-sum-numeric-pdf-form-fields.cs`](./add-javascript-sum-numeric-pdf-form-fields.cs) -- Add javascript sum numeric pdf form fields +- [`add-javascript-total-calculation-to-pdf-form.cs`](./add-javascript-total-calculation-to-pdf-form.cs) -- Add javascript total calculation to pdf form +- [`add-level-1-heading-to-pdf.cs`](./add-level-1-heading-to-pdf.cs) -- Add level 1 heading to pdf +- [`add-line-annotation-with-custom-color-thickness.cs`](./add-line-annotation-with-custom-color-thickness.cs) -- Add line annotation with custom color thickness +- [`add-line-separator-annotation-to-pdf-page.cs`](./add-line-separator-annotation-to-pdf-page.cs) -- Add line separator annotation to pdf page +- [`add-link-annotation-open-pdf-attachment.cs`](./add-link-annotation-open-pdf-attachment.cs) -- Add link annotation open pdf attachment +- [`add-multi-level-toc-to-pdf.cs`](./add-multi-level-toc-to-pdf.cs) -- Add multi level toc to pdf +- [`add-new-bookmark-to-pdf-outline.cs`](./add-new-bookmark-to-pdf-outline.cs) -- Add new bookmark to pdf outline +- [`add-page-count-footer-to-pdf.cs`](./add-page-count-footer-to-pdf.cs) -- Add page count footer to pdf +- [`add-page-number-footer-to-pdf.cs`](./add-page-number-footer-to-pdf.cs) -- Add page number footer to pdf +- [`add-page-numbers-to-pdf-footer.cs`](./add-page-numbers-to-pdf-footer.cs) -- Add page numbers to pdf footer +- [`add-popup-note-annotation.cs`](./add-popup-note-annotation.cs) -- Add popup note annotation +- [`add-reusable-background-image-to-all-pdf-pages.cs`](./add-reusable-background-image-to-all-pdf-pages.cs) -- Add reusable background image to all pdf pages +- [`add-signature-field-to-pdf.cs`](./add-signature-field-to-pdf.cs) -- Add signature field to pdf +- [`add-signature-image-stamp-to-last-page.cs`](./add-signature-image-stamp-to-last-page.cs) -- Add signature image stamp to last page +- [`add-structured-headings-to-pdf.cs`](./add-structured-headings-to-pdf.cs) -- Add structured headings to pdf +- [`add-styled-table-alternating-row-colors.cs`](./add-styled-table-alternating-row-colors.cs) -- Add styled table alternating row colors +- [`add-styled-table-with-borders-to-pdf.cs`](./add-styled-table-with-borders-to-pdf.cs) -- Add styled table with borders to pdf +- [`add-visible-digital-signature-and-lock-pdf.cs`](./add-visible-digital-signature-and-lock-pdf.cs) -- Add visible digital signature and lock pdf +- [`add-visible-signature-field-and-lock-pdf.cs`](./add-visible-signature-field-and-lock-pdf.cs) -- Add visible signature field and lock pdf +- [`add-watermark-layer-merge-layers.cs`](./add-watermark-layer-merge-layers.cs) -- Add watermark layer merge layers +- [`apply-password-protection-to-pdf.cs`](./apply-password-protection-to-pdf.cs) -- Apply password protection to pdf +- [`apply-semi-transparent-image-watermark-to-pdf.cs`](./apply-semi-transparent-image-watermark-to-pdf.cs) -- Apply semi transparent image watermark to pdf +- [`apply-semi-transparent-image-watermark.cs`](./apply-semi-transparent-image-watermark.cs) -- Apply semi transparent image watermark +- [`attach-pdf-portfolio-with-metadata.cs`](./attach-pdf-portfolio-with-metadata.cs) -- Attach pdf portfolio with metadata +- [`attach-portfolio-pdf-set-description-metadata.cs`](./attach-portfolio-pdf-set-description-metadata.cs) -- Attach portfolio pdf set description metadata +- [`batch-sanitize-pdfs.cs`](./batch-sanitize-pdfs.cs) -- Batch sanitize pdfs +- [`check-hidden-annotations-in-pdf.cs`](./check-hidden-annotations-in-pdf.cs) -- Check hidden annotations in pdf +- [`check-pdf-incremental-updates.cs`](./check-pdf-incremental-updates.cs) -- Check pdf incremental updates +- [`clean-pdf-remove-metadata-attachments-javascript.cs`](./clean-pdf-remove-metadata-attachments-javascript.cs) -- Clean pdf remove metadata attachments javascript +- [`combine-multiple-html-to-pdf.cs`](./combine-multiple-html-to-pdf.cs) -- Combine multiple html to pdf +- [`compress-pdf-images-and-export-jpeg-quality-80.cs`](./compress-pdf-images-and-export-jpeg-quality-80.cs) -- Compress pdf images and export jpeg quality 80 +- [`convert-pdf-pages-to-high-resolution-tiff.cs`](./convert-pdf-pages-to-high-resolution-tiff.cs) -- Convert pdf pages to high resolution tiff +- [`convert-pdf-pages-to-jpeg-images.cs`](./convert-pdf-pages-to-jpeg-images.cs) -- Convert pdf pages to jpeg images +- [`convert-pdf-pages-to-jpeg-no-compression.cs`](./convert-pdf-pages-to-jpeg-no-compression.cs) -- Convert pdf pages to jpeg no compression +- [`convert-pdf-pages-to-jpeg-quality-80.cs`](./convert-pdf-pages-to-jpeg-quality-80.cs) -- Convert pdf pages to jpeg quality 80 +- [`convert-pdf-pages-to-png-images.cs`](./convert-pdf-pages-to-png-images.cs) -- Convert pdf pages to png images +- [`convert-pdf-pages-to-png-images__v2.cs`](./convert-pdf-pages-to-png-images__v2.cs) -- Convert pdf pages to png images v2 +- [`convert-pdf-pages-to-rasterized-images-html.cs`](./convert-pdf-pages-to-rasterized-images-html.cs) -- Convert pdf pages to rasterized images html +- [`convert-pdf-to-html-with-rasterized-pages.cs`](./convert-pdf-to-html-with-rasterized-pages.cs) -- Convert pdf to html with rasterized pages +- [`convert-pdf-to-html.cs`](./convert-pdf-to-html.cs) -- Convert pdf to html +- [`create-5x7-inch-postcard-pdf.cs`](./create-5x7-inch-postcard-pdf.cs) -- Create 5x7 inch postcard pdf +- [`create-clickable-table-of-contents.cs`](./create-clickable-table-of-contents.cs) -- Create clickable table of contents +- [`create-hierarchical-numbered-headings.cs`](./create-hierarchical-numbered-headings.cs) -- Create hierarchical numbered headings +- [`create-landscape-pdf-page.cs`](./create-landscape-pdf-page.cs) -- Create landscape pdf page +- [`create-magazine-pdf-with-text-and-image.cs`](./create-magazine-pdf-with-text-and-image.cs) -- Create magazine pdf with text and image +- [`create-multi-page-table-pdf.cs`](./create-multi-page-table-pdf.cs) -- Create multi page table pdf +- [`create-pdf-clickable-index.cs`](./create-pdf-clickable-index.cs) -- Create pdf clickable index +- [`create-pdf-clickable-table-of-contents.cs`](./create-pdf-clickable-table-of-contents.cs) -- Create pdf clickable table of contents +- [`create-pdf-custom-title-page.cs`](./create-pdf-custom-title-page.cs) -- Create pdf custom title page +- [`create-pdf-dynamic-table.cs`](./create-pdf-dynamic-table.cs) -- Create pdf dynamic table +- [`create-pdf-from-multiple-html-fragments.cs`](./create-pdf-from-multiple-html-fragments.cs) -- Create pdf from multiple html fragments +- [`create-pdf-header-with-current-date.cs`](./create-pdf-header-with-current-date.cs) -- Create pdf header with current date +- [`create-pdf-multiple-page-sizes-orientations.cs`](./create-pdf-multiple-page-sizes-orientations.cs) -- Create pdf multiple page sizes orientations +- [`create-pdf-multiple-sections-different-page-sizes.cs`](./create-pdf-multiple-sections-different-page-sizes.cs) -- Create pdf multiple sections different page sizes +- [`create-pdf-numbered-headings-sanitize.cs`](./create-pdf-numbered-headings-sanitize.cs) -- Create pdf numbered headings sanitize +- [`create-pdf-portfolio.cs`](./create-pdf-portfolio.cs) -- Create pdf portfolio +- [`create-pdf-radio-button-group.cs`](./create-pdf-radio-button-group.cs) -- Create pdf radio button group +- [`create-pdf-roman-headings-validation.cs`](./create-pdf-roman-headings-validation.cs) -- Create pdf roman headings validation +- [`create-pdf-table-with-rich-text-formatting.cs`](./create-pdf-table-with-rich-text-formatting.cs) -- Create pdf table with rich text formatting +- [`create-pdf-table-with-rich-text.cs`](./create-pdf-table-with-rich-text.cs) -- Create pdf table with rich text +- [`create-pdf-title-page-custom-font.cs`](./create-pdf-title-page-custom-font.cs) -- Create pdf title page custom font +- [`create-pdf-toc-with-dot-leaders.cs`](./create-pdf-toc-with-dot-leaders.cs) -- Create pdf toc with dot leaders +- [`create-pdf-with-background-template.cs`](./create-pdf-with-background-template.cs) -- Create pdf with background template +- [`create-pdf-with-clickable-email-link.cs`](./create-pdf-with-clickable-email-link.cs) -- Create pdf with clickable email link +- [`create-pdf-with-clickable-index.cs`](./create-pdf-with-clickable-index.cs) -- Create pdf with clickable index +- [`create-pdf-with-date-picker-form-field.cs`](./create-pdf-with-date-picker-form-field.cs) -- Create pdf with date picker form field +- [`create-pdf-with-date-picker.cs`](./create-pdf-with-date-picker.cs) -- Create pdf with date picker +- [`create-pdf-with-dropdown-list.cs`](./create-pdf-with-dropdown-list.cs) -- Create pdf with dropdown list +- [`create-pdf-with-email-link.cs`](./create-pdf-with-email-link.cs) -- Create pdf with email link +- [`create-pdf-with-embedded-truetype-font.cs`](./create-pdf-with-embedded-truetype-font.cs) -- Create pdf with embedded truetype font +- [`create-pdf-with-merged-header-table.cs`](./create-pdf-with-merged-header-table.cs) -- Create pdf with merged header table +- [`create-pdf-with-radio-button-form.cs`](./create-pdf-with-radio-button-form.cs) -- Create pdf with radio button form +- [`create-read-only-text-field.cs`](./create-read-only-text-field.cs) -- Create read only text field +- [`create-readonly-text-field-with-default-value.cs`](./create-readonly-text-field-with-default-value.cs) -- Create readonly text field with default value +- [`create-rotated-landscape-pdf-page.cs`](./create-rotated-landscape-pdf-page.cs) -- Create rotated landscape pdf page +- [`create-sanitize-pdf-with-auto-numbered-headings.cs`](./create-sanitize-pdf-with-auto-numbered-headings.cs) -- Create sanitize pdf with auto numbered headings +- [`create-searchable-pdf-from-scanned-images.cs`](./create-searchable-pdf-from-scanned-images.cs) -- Create searchable pdf from scanned images +- [`create-zugferd-compliant-pdf-invoice.cs`](./create-zugferd-compliant-pdf-invoice.cs) -- Create zugferd compliant pdf invoice +- [`create-zugferd-pdf-invoice.cs`](./create-zugferd-pdf-invoice.cs) -- Create zugferd pdf invoice +- [`customize-crash-report-filename-message.cs`](./customize-crash-report-filename-message.cs) -- Customize crash report filename message +- [`customize-toc-formatting.cs`](./customize-toc-formatting.cs) -- Customize toc formatting +- [`detect-hidden-annotations-in-pdf.cs`](./detect-hidden-annotations-in-pdf.cs) -- Detect hidden annotations in pdf +- [`digitally-sign-pdf-with-timestamp.cs`](./digitally-sign-pdf-with-timestamp.cs) -- Digitally sign pdf with timestamp +- [`embed-zugferd-xml-into-pdf.cs`](./embed-zugferd-xml-into-pdf.cs) -- Embed zugferd xml into pdf +- [`encrypt-pdf-aes256-restrict-permissions.cs`](./encrypt-pdf-aes256-restrict-permissions.cs) -- Encrypt pdf aes256 restrict permissions +- [`extract-embedded-files-from-pdf-portfolio.cs`](./extract-embedded-files-from-pdf-portfolio.cs) -- Extract embedded files from pdf portfolio +- [`extract-hyperlinks-from-pdf.cs`](./extract-hyperlinks-from-pdf.cs) -- Extract hyperlinks from pdf +- [`extract-images-from-pdf-to-png.cs`](./extract-images-from-pdf-to-png.cs) -- Extract images from pdf to png +- [`extract-pdf-outline-hierarchy.cs`](./extract-pdf-outline-hierarchy.cs) -- Extract pdf outline hierarchy +- [`extract-text-from-pdf-page-range.cs`](./extract-text-from-pdf-page-range.cs) -- Extract text from pdf page range +- [`extract-text-from-pdf-pages.cs`](./extract-text-from-pdf-pages.cs) -- Extract text from pdf pages +- [`extract-text-from-pdf-to-utf8-file.cs`](./extract-text-from-pdf-to-utf8-file.cs) -- Extract text from pdf to utf8 file +- [`extract-xmp-metadata-from-pdf.cs`](./extract-xmp-metadata-from-pdf.cs) -- Extract xmp metadata from pdf +- [`flatten-pdf-form-fields.cs`](./flatten-pdf-form-fields.cs) -- Flatten pdf form fields +- [`generate-accessible-pdf-with-tags.cs`](./generate-accessible-pdf-with-tags.cs) -- Generate accessible pdf with tags +- [`generate-crash-report-for-pdf-exceptions.cs`](./generate-crash-report-for-pdf-exceptions.cs) -- Generate crash report for pdf exceptions +- [`generate-crash-report-pdf.cs`](./generate-crash-report-pdf.cs) -- Generate crash report pdf +- [`generate-crash-report-to-network-share.cs`](./generate-crash-report-to-network-share.cs) -- Generate crash report to network share +- [`generate-crash-report-with-custom-output-directory.cs`](./generate-crash-report-with-custom-output-directory.cs) -- Generate crash report with custom output directory +- [`generate-dynamic-pdf-table.cs`](./generate-dynamic-pdf-table.cs) -- Generate dynamic pdf table +- [`generate-pdf-crash-report.cs`](./generate-pdf-crash-report.cs) -- Generate pdf crash report +- [`generate-pdf-crash-report__v2.cs`](./generate-pdf-crash-report__v2.cs) -- Generate pdf crash report v2 +- [`handle-pdf-errors-generate-crash-report.cs`](./handle-pdf-errors-generate-crash-report.cs) -- Handle pdf errors generate crash report +- [`insert-automatic-page-numbers-into-pdf.cs`](./insert-automatic-page-numbers-into-pdf.cs) -- Insert automatic page numbers into pdf +- [`insert-blank-cover-page-into-pdf.cs`](./insert-blank-cover-page-into-pdf.cs) -- Insert blank cover page into pdf +- [`insert-high-res-image-into-pdf.cs`](./insert-high-res-image-into-pdf.cs) -- Insert high res image into pdf +- [`insert-image-into-pdf-absolute-coordinates.cs`](./insert-image-into-pdf-absolute-coordinates.cs) -- Insert image into pdf absolute coordinates +- [`insert-pdf-page-into-another.cs`](./insert-pdf-page-into-another.cs) -- Insert pdf page into another +- [`interrupt-resume-large-pdf-save.cs`](./interrupt-resume-large-pdf-save.cs) -- Interrupt resume large pdf save +- [`load-pdf-into-document.cs`](./load-pdf-into-document.cs) -- Load pdf into document +- [`log-pdf-sanitization-start-end-times.cs`](./log-pdf-sanitization-start-end-times.cs) -- Log pdf sanitization start end times +- [`merge-pdfs-with-bookmarks.cs`](./merge-pdfs-with-bookmarks.cs) -- Merge pdfs with bookmarks +- [`merge-two-pdfs-preserve-bookmarks.cs`](./merge-two-pdfs-preserve-bookmarks.cs) -- Merge two pdfs preserve bookmarks +- [`merged-header-table-pdf.cs`](./merged-header-table-pdf.cs) -- Merged header table pdf +- [`pdf-header-current-date-javascript.cs`](./pdf-header-current-date-javascript.cs) -- Pdf header current date javascript +- [`pdf-processing-with-crash-report.cs`](./pdf-processing-with-crash-report.cs) -- Pdf processing with crash report +- [`pdf-sanitization-audit-log.cs`](./pdf-sanitization-audit-log.cs) -- Pdf sanitization audit log +- [`print-pdf-using-default-handler.cs`](./print-pdf-using-default-handler.cs) -- Print pdf using default handler +- [`print-pdf-using-os-verb.cs`](./print-pdf-using-os-verb.cs) -- Print pdf using os verb +- [`rasterize-pdf-pages-to-png.cs`](./rasterize-pdf-pages-to-png.cs) -- Rasterize pdf pages to png +- [`rasterize-pdf-to-png-lossless-compression.cs`](./rasterize-pdf-to-png-lossless-compression.cs) -- Rasterize pdf to png lossless compression +- [`remove-all-annotations-from-pdf.cs`](./remove-all-annotations-from-pdf.cs) -- Remove all annotations from pdf +- [`remove-all-annotations-from-pdf__v2.cs`](./remove-all-annotations-from-pdf__v2.cs) -- Remove all annotations from pdf v2 +- [`remove-annotations-and-attachments.cs`](./remove-annotations-and-attachments.cs) -- Remove annotations and attachments +- [`remove-annotations-attachments-from-pdf.cs`](./remove-annotations-attachments-from-pdf.cs) -- Remove annotations attachments from pdf +- [`remove-hidden-data-reapply-headings.cs`](./remove-hidden-data-reapply-headings.cs) -- Remove hidden data reapply headings +- [`remove-hidden-data-rebuild-headings-pdf.cs`](./remove-hidden-data-rebuild-headings-pdf.cs) -- Remove hidden data rebuild headings pdf +- [`remove-javascript-from-pdf.cs`](./remove-javascript-from-pdf.cs) -- Remove javascript from pdf +- [`remove-metadata-javascript-embedded-files-pdf.cs`](./remove-metadata-javascript-embedded-files-pdf.cs) -- Remove metadata javascript embedded files pdf +- [`remove-page-from-pdf.cs`](./remove-page-from-pdf.cs) -- Remove page from pdf +- [`replace-image-in-pdf-page.cs`](./replace-image-in-pdf-page.cs) -- Replace image in pdf page +- [`replace-pdf-page-with-html.cs`](./replace-pdf-page-with-html.cs) -- Replace pdf page with html +- [`replace-text-in-pdf-preserving-formatting.cs`](./replace-text-in-pdf-preserving-formatting.cs) -- Replace text in pdf preserving formatting +- [`replace-word-in-pdf.cs`](./replace-word-in-pdf.cs) -- Replace word in pdf +- [`roman-numeral-headings-pdf.cs`](./roman-numeral-headings-pdf.cs) -- Roman numeral headings pdf +- [`rotate-pdf-pages-90-degrees.cs`](./rotate-pdf-pages-90-degrees.cs) -- Rotate pdf pages 90 degrees +- [`sanitize-multiple-pdfs.cs`](./sanitize-multiple-pdfs.cs) -- Sanitize multiple pdfs +- [`sanitize-pdf-add-heading.cs`](./sanitize-pdf-add-heading.cs) -- Sanitize pdf add heading +- [`sanitize-pdf-remove-embedded-scripts.cs`](./sanitize-pdf-remove-embedded-scripts.cs) -- Sanitize pdf remove embedded scripts +- [`sanitize-pdf-remove-hidden-content-keep-metadata.cs`](./sanitize-pdf-remove-hidden-content-keep-metadata.cs) -- Sanitize pdf remove hidden content keep metadata +- [`sanitize-pdf-remove-hidden-data-keep-metadata.cs`](./sanitize-pdf-remove-hidden-data-keep-metadata.cs) -- Sanitize pdf remove hidden data keep metadata +- [`sanitize-pdf-remove-hidden-data.cs`](./sanitize-pdf-remove-hidden-data.cs) -- Sanitize pdf remove hidden data +- [`sanitize-pdf-remove-metadata-private-info.cs`](./sanitize-pdf-remove-metadata-private-info.cs) -- Sanitize pdf remove metadata private info +- [`sanitize-pdf-remove-metadata.cs`](./sanitize-pdf-remove-metadata.cs) -- Sanitize pdf remove metadata +- [`sanitize-pdfs-remove-metadata.cs`](./sanitize-pdfs-remove-metadata.cs) -- Sanitize pdfs remove metadata +- [`selective-page-rasterization-hidden-data-sanitizer.cs`](./selective-page-rasterization-hidden-data-sanitizer.cs) -- Selective page rasterization hidden data sanitizer +- [`set-pdf-document-metadata.cs`](./set-pdf-document-metadata.cs) -- Set pdf document metadata +- [`set-pdf-expiration-date.cs`](./set-pdf-expiration-date.cs) -- Set pdf expiration date +- [`set-pdf-page-rotation-90-degrees.cs`](./set-pdf-page-rotation-90-degrees.cs) -- Set pdf page rotation 90 degrees +- [`specify-crash-report-output-directory.cs`](./specify-crash-report-output-directory.cs) -- Specify crash report output directory +- [`structured-toc-with-headings.cs`](./structured-toc-with-headings.cs) -- Structured toc with headings +- [`test-convert-pages-to-images.cs`](./test-convert-pages-to-images.cs) -- Test convert pages to images +- [`update-pdf-author-title-metadata.cs`](./update-pdf-author-title-metadata.cs) -- Update pdf author title metadata +- [`validate-pdf-a1a-compliance-report.cs`](./validate-pdf-a1a-compliance-report.cs) -- Validate pdf a1a compliance report +- [`validate-pdf-a1b-compliance.cs`](./validate-pdf-a1b-compliance.cs) -- Validate pdf a1b compliance + +## See Also + +- [`AGENTS.md`](./AGENTS.md) -- category-specific anti-patterns, API surface, and conventions for AI coding agents +- [`../AGENTS.md`](../AGENTS.md) -- repository-wide agent guide +- [`../README.md`](../README.md) -- full category index and project overview +- [Aspose.PDF for .NET docs](https://docs.aspose.com/pdf/net/) + +> Each `.cs` file is a standalone, build-validated console example. Drop into a fresh `dotnet new console` project, add the `Aspose.PDF` NuGet (version above), and run. diff --git a/document/index.json b/document/index.json index 6fcfb2710..78c213bbc 100644 --- a/document/index.json +++ b/document/index.json @@ -1,226 +1,206 @@ { "category": "document", "nuget_version": "26.8.0", - "last_updated": "2026-08-20T07:21:22Z", + "last_updated": "2026-09-10T12:45:08Z", "examples": { - "create-pdf-custom-title-page": { - "title": "Create PDF with Custom Title Page and Background", - "filename": "create-pdf-custom-title-page.cs", - "description": "Demonstrates how to generate a PDF, set document metadata, add a full‑page colored background using a Graph, and place centered title text with a custom font and color.", + "add-accessibility-tags-to-pdf": { + "title": "Add Accessibility Tags to PDF (Headings, Paragraphs, Tables)", + "filename": "add-accessibility-tags-to-pdf.cs", + "description": "Loads an existing PDF, enables auto‑tagging, sets language and title metadata, and creates tagged heading, paragraph, and table elements with alternative text for screen readers before saving the tagged PDF.", "tags": [ + "accessibility", "pdf", - "title-page", - "background", - "custom-font", - "aspose-pdf" + "tagging", + "heading", + "table" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.FontRepository.FindFont" + "Aspose.Pdf.Tagged.ITaggedContent", + "Aspose.Pdf.Tagged.StructureElement", + "Aspose.Pdf.Tagged.HeaderElement", + "Aspose.Pdf.Tagged.ParagraphElement", + "Aspose.Pdf.Tagged.TableElement", + "Aspose.Pdf.Tagged.TableTHeadElement" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "insert-image-into-pdf-absolute-coordinates": { - "title": "Insert Image into PDF at Absolute Coordinates", - "filename": "insert-image-into-pdf-absolute-coordinates.cs", - "description": "The example creates a PDF document, defines a rectangle with absolute coordinates, and inserts an in‑memory PNG image into the page at that location.", + "add-background-color-to-pdf-page": { + "title": "Add Background Color to PDF Page with Opacity", + "filename": "add-background-color-to-pdf-page.cs", + "description": "Demonstrates how to fill an entire PDF page with a semi‑transparent color by adding a rectangle shape to a Graph and inserting it into the page's paragraphs collection.", "tags": [ "pdf", - "image", - "absolute-position", - "aspose-pdf", - "memory-stream" + "background", + "opacity", + "rectangle", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PageCollection.Add", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Page.AddImage", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page", + "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Drawing.GraphInfo", + "Aspose.Pdf.Drawing.Color" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "create-searchable-pdf-from-scanned-images": { - "title": "Create Searchable PDF from Scanned Images using OCR Overlay", - "filename": "create-searchable-pdf-from-scanned-images.cs", - "description": "Shows how to load a scanned‑image PDF, use Aspose.Pdf's Convert method to overlay invisible OCR text via a callback, and save the result as a searchable PDF.", + "add-background-template-to-pdf-pages": { + "title": "Add Background Template to All PDF Pages", + "filename": "add-background-template-to-pdf-pages.cs", + "description": "Shows how to load a PDF and a single‑page background template, then stamp each page of the target document with the template as a background using Aspose.Pdf.", "tags": [ "pdf", - "ocr", - "searchable", - "aspose", - "csharp" + "background", + "stamp", + "Aspose.Pdf", + "C#" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Convert", + "Aspose.Pdf.Page", + "Aspose.Pdf.Facades.PdfPageStamp", + "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "add-indented-paragraph-with-line-spacing": { - "title": "Add Indented Paragraph with Line Spacing to PDF", - "filename": "add-indented-paragraph-with-line-spacing.cs", - "description": "Shows how to load a PDF, create a TextParagraph with first‑line and subsequent line indentation, apply line spacing, and insert it onto a page using Aspose.Pdf.", + "add-captions-below-images-in-pdf": { + "title": "Add Captions Below Images in PDF", + "filename": "add-captions-below-images-in-pdf.cs", + "description": "Shows how to iterate over image resources in a PDF and insert a styled caption paragraph beneath each image using Aspose.Pdf's text APIs.", "tags": [ "pdf", - "indentation", - "line-spacing", - "text-paragraph", - "aspnet" + "caption", + "image", + "text", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.XImage", "Aspose.Pdf.Text.TextParagraph", + "Aspose.Pdf.Text.TextState", "Aspose.Pdf.Text.TextBuilder", - "Aspose.Pdf.Text.HorizontalAlignment", + "Aspose.Pdf.Text.FontRepository", "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "add-multi-level-toc-to-pdf": { - "title": "Add Multi‑Level Table of Contents to PDF", - "filename": "add-multi-level-toc-to-pdf.cs", - "description": "Demonstrates how to enable auto‑tagging, detect headings, create a TOC element, insert a dedicated TOC page, and configure its appearance and outline integration using Aspose.Pdf.", - "tags": [ - "toc", - "autotagging", - "pdf-structure", - "aspnet", - "aspdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.AutoTaggingSettings", - "Aspose.Pdf.Document.ProcessParagraphs", - "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.TOCElement", - "Aspose.Pdf.Structure.StructureElement", - "Aspose.Pdf.TocInfo", - "Aspose.Pdf.Text.TextFragment" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:21:22Z", - "status": "verified" - }, - "customize-toc-formatting": { - "title": "Customize Table of Contents Formatting in PDF", - "filename": "customize-toc-formatting.cs", - "description": "Demonstrates how to set different tab leader types for TOC levels and disable page number display using Aspose.Pdf.", - "tags": [ - "toc", - "formatting", - "aspose.pdf", - "csharp", - "pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.TocInfo", - "Aspose.Pdf.Text.LevelFormat", - "Aspose.Pdf.Text.TabLeaderType", - "Aspose.Pdf.Page" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:21:22Z", - "status": "verified" - }, - "remove-page-from-pdf": { - "title": "Remove a Page from PDF and Renumber Remaining Pages", - "filename": "remove-page-from-pdf.cs", - "description": "Demonstrates how to delete a specific page from a PDF using Aspose.Pdf and automatically renumber the remaining pages before saving the result.", + "add-checked-checkbox-form-field": { + "title": "Add Checked Checkbox Form Field to PDF", + "filename": "add-checked-checkbox-form-field.cs", + "description": "Shows how to create a PDF document, add a checkbox form field, set its default state to checked, and save the file.", "tags": [ + "checkbox", + "form-field", "pdf", - "delete-page", - "aspose", - "csharp", - "renumber" + "Aspose.Pdf", + "C#" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.PageCollection.Delete", - "Aspose.Pdf.PageCollection.Count", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.CheckboxField", + "Aspose.Pdf.Form.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "insert-blank-cover-page-into-pdf": { - "title": "Insert Blank Cover Page into PDF", - "filename": "insert-blank-cover-page-into-pdf.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, insert an empty page at the beginning as a cover sheet, and save the updated document.", + "add-company-logo-header-to-pdf-pages": { + "title": "Add Company Logo Header to PDF Pages", + "filename": "add-company-logo-header-to-pdf-pages.cs", + "description": "Shows how to load an existing PDF, create an ImageStamp for a logo, position it as a top‑center header on each page, and save the modified document using Aspose.Pdf.", "tags": [ "pdf", - "cover-page", - "insert-page", - "aspose-pdf", - "csharp" + "header", + "logo", + "image-stamp", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PageCollection", - "Aspose.Pdf.PageCollection.Insert", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Pages" + "Aspose.Pdf.Page", + "Aspose.Pdf.Facades.ImageStamp", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "replace-word-in-pdf": { - "title": "Replace Word in PDF While Preserving Formatting", - "filename": "replace-word-in-pdf.cs", - "description": "Demonstrates how to search for a specific word in a PDF and replace it with another word using Aspose.Pdf, while automatically keeping the original font, size, and color of the text.", + "add-custom-document-info-and-xmp-metadata": { + "title": "Add Custom Document Info and XMP Metadata to PDF", + "filename": "add-custom-document-info-and-xmp-metadata.cs", + "description": "Demonstrates how to add custom key/value pairs to a PDF's DocumentInfo dictionary and embed XMP metadata using Aspose.Pdf.", "tags": [ "pdf", - "text-replacement", - "aspose", - "formatting", - "csharp" + "metadata", + "xmp", + "documentinfo", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextFragmentAbsorber", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.PageCollection.Accept", + "Aspose.Pdf.DocumentInfo", + "Aspose.Pdf.DocumentInfo.Add", + "Aspose.Pdf.Document.SetXmpMetadata", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "extract-images-from-pdf-to-png": { - "title": "Extract Images from PDF and Save as PNG", - "filename": "extract-images-from-pdf-to-png.cs", - "description": "Demonstrates how to open a PDF with Aspose.Pdf, iterate through each page's image resources, and save each image as a PNG file while preserving its original resolution.", + "add-custom-signature-appearance-last-page": { + "title": "Add Custom Signature Appearance Last Page", + "filename": "add-custom-signature-appearance-last-page.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-custom-xml-xmp-metadata-to-pdf": { + "title": "Add Custom Xml Xmp Metadata To Pdf", + "filename": "add-custom-xml-xmp-metadata-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-diagonal-text-stamp-to-pdf": { + "title": "Add Diagonal Text Stamp Watermark to PDF", + "filename": "add-diagonal-text-stamp-to-pdf.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, create a TextStamp with a custom message, configure its appearance, apply it to every page, and save the stamped document.", "tags": [ + "watermark", + "textstamp", "pdf", - "image-extraction", "aspose-pdf", - "png", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Text.TextStamp", + "Aspose.Pdf.Text.FontRepository", "Aspose.Pdf.Page", - "Aspose.Pdf.XImage", - "Aspose.Pdf.Page.Resources", - "Aspose.Pdf.XImage.Save" + "Aspose.Pdf.Color" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", @@ -249,628 +229,948 @@ "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "validate-pdf-a1a-compliance-report": { - "title": "Validate PDF for PDF/A-1A Compliance and Generate Report", - "filename": "validate-pdf-a1a-compliance-report.cs", - "description": "The example loads a PDF file, validates it against the PDF/A‑1A standard using Aspose.Pdf, and writes a detailed validation report to a text file.", + "add-dynamic-heading-to-pdf": { + "title": "Add Dynamic Heading to PDF", + "filename": "add-dynamic-heading-to-pdf.cs", + "description": "Shows how to load a PDF template, create a heading with dynamic date and user information, position and style it, and save the updated document.", "tags": [ "pdf", - "pdfa", - "validation", - "report", - "aspose-pdf" + "heading", + "dynamic-text", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Validate", - "Aspose.Pdf.PdfFormat" + "Aspose.Pdf.Page", + "Aspose.Pdf.Heading", + "Aspose.Pdf.Position", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.FontRepository" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "validate-pdf-a1b-compliance": { - "title": "Validate PDF for PDF/A‑1B compliance and log results", - "filename": "validate-pdf-a1b-compliance.cs", - "description": "Demonstrates how to load a PDF with Aspose.Pdf, validate it against the PDF/A‑1B standard, and write a validation log file indicating any non‑conformant elements.", + "add-heading-to-pdf-outline": { + "title": "Add Heading To Pdf Outline", + "filename": "add-heading-to-pdf-outline.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-hierarchical-numbered-headings": { + "title": "Add Hierarchical Numbered Headings to PDF", + "filename": "add-hierarchical-numbered-headings.cs", + "description": "Shows how to apply decimal numbering to headings and create hierarchical numbering (chapters and sections) in a PDF using Aspose.Pdf.", "tags": [ "pdf", - "pdfa", - "validation", - "aspose", - "csharp" + "heading", + "numbering", + "hierarchical", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Validate", - "Aspose.Pdf.PdfFormat", - "Aspose.Pdf.Document.IsPdfaCompliant", - "Aspose.Pdf.Document.Dispose" + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.Heading", + "Aspose.Pdf.Text.Paragraphs", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "remove-metadata-javascript-embedded-files-pdf": { - "title": "Remove Metadata, JavaScript, and Embedded Files from a PDF", - "filename": "remove-metadata-javascript-embedded-files-pdf.cs", - "description": "Demonstrates how to clean a PDF by removing standard and hidden metadata, embedded attachments, and JavaScript actions using Aspose.Pdf, then saving the reduced‑size document.", + "add-hyperlink-annotation-to-pdf": { + "title": "Add Hyperlink Annotation to PDF", + "filename": "add-hyperlink-annotation-to-pdf.cs", + "description": "Shows how to insert a clickable hyperlink annotation that opens an external website in a PDF document using Aspose.Pdf.", "tags": [ + "hyperlink", + "annotation", "pdf", - "metadata", - "cleanup", - "aspose", - "csharp" + "Aspose.Pdf", + "link" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.RemoveMetadata", - "Aspose.Pdf.Document.EmbeddedFiles", - "Aspose.Pdf.Document.OptimizeResources", - "Aspose.Pdf.Optimization.OptimizationOptions.All", - "Aspose.Pdf.Document.RemovePdfaCompliance", - "Aspose.Pdf.Document.RemovePdfUaCompliance" + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.LinkAnnotation", + "Aspose.Pdf.Annotations.GoToURIAction", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Page.Annotations.Add" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:21:22Z", + "status": "verified" + }, + "add-indented-paragraph-with-line-spacing": { + "title": "Add Indented Paragraph with Line Spacing to PDF", + "filename": "add-indented-paragraph-with-line-spacing.cs", + "description": "Shows how to load a PDF, create a TextParagraph with first‑line and subsequent line indentation, apply line spacing, and insert it onto a page using Aspose.Pdf.", + "tags": [ + "pdf", + "indentation", + "line-spacing", + "text-paragraph", + "aspnet" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextParagraph", + "Aspose.Pdf.Text.TextBuilder", + "Aspose.Pdf.Text.HorizontalAlignment", + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "set-pdf-expiration-date": { - "title": "Set PDF Expiration Date with JavaScript", - "filename": "set-pdf-expiration-date.cs", - "description": "Shows how to embed a JavaScript action in a PDF using Aspose.Pdf so the document closes automatically after a specified expiration date.", + "add-javascript-calculation-to-pdf-form-fields": { + "title": "Add Javascript Calculation To Pdf Form Fields", + "filename": "add-javascript-calculation-to-pdf-form-fields.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-javascript-open-action-to-pdf": { + "title": "Add JavaScript Open Action to PDF", + "filename": "add-javascript-open-action-to-pdf.cs", + "description": "Demonstrates embedding JavaScript in a PDF with Aspose.Pdf so an alert dialog appears when the document is opened.", + "tags": [ + "javascript", + "pdf", + "open-action", + "alert", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Annotations.JavascriptAction" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:21:22Z", + "status": "verified" + }, + "add-javascript-sum-calculation-to-pdf-form": { + "title": "Calculate Sum of Two PDF Form Fields with JavaScript", + "filename": "add-javascript-sum-calculation-to-pdf-form.cs", + "description": "Demonstrates creating a PDF with two numeric input fields and a read‑only sum field, then attaching JavaScript actions to automatically calculate and display the sum when either field changes.", "tags": [ "pdf", - "expiration", "javascript", - "aspose", - "openaction" + "form-fields", + "calculation", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Forms.NumberField", + "Aspose.Pdf.Forms.TextBoxField", "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Document.OpenAction", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.Form.AutoRecalculate" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "flatten-pdf-form-fields": { - "title": "Flatten PDF Form Fields to Static Content", - "filename": "flatten-pdf-form-fields.cs", - "description": "Demonstrates how to load a PDF with Aspose.Pdf, flatten all interactive form fields into static page content, and save the resulting document.", + "add-javascript-sum-numeric-pdf-form-fields": { + "title": "Add JavaScript to Sum Numeric PDF Form Fields", + "filename": "add-javascript-sum-numeric-pdf-form-fields.cs", + "description": "Demonstrates embedding Acrobat JavaScript in a PDF with Aspose.Pdf to calculate the total of two numeric form fields and display the result in a third field.", "tags": [ "pdf", - "flatten", + "javascript", "form-fields", - "aspose", - "csharp" + "calculation", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Flatten", + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Forms.TextBoxField.ExecuteFieldJavaScript" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:21:22Z", + "status": "verified" + }, + "add-javascript-total-calculation-to-pdf-form": { + "title": "Add Javascript Total Calculation To Pdf Form", + "filename": "add-javascript-total-calculation-to-pdf-form.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-level-1-heading-to-pdf": { + "title": "Add Level 1 Heading to PDF using Tagged Content", + "filename": "add-level-1-heading-to-pdf.cs", + "description": "Demonstrates how to create a PDF document, use the tagged content API to insert a Level 1 heading element, and save the file.", + "tags": [ + "pdf", + "heading", + "tagged-content", + "structure", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Tagged.ITaggedContent", + "Aspose.Pdf.Tagged.HeaderElement", + "Aspose.Pdf.LogicalStructure.StructureElement", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "check-pdf-incremental-updates": { - "title": "Check PDF for Incremental Updates", - "filename": "check-pdf-incremental-updates.cs", - "description": "Loads a PDF using Aspose.Pdf and determines whether the file contains incremental updates saved after its initial creation.", + "add-line-annotation-with-custom-color-thickness": { + "title": "Add Line Annotation with Custom Color and Thickness to PDF", + "filename": "add-line-annotation-with-custom-color-thickness.cs", + "description": "Demonstrates how to create a line annotation on a PDF page, set its color, and adjust its thickness using Aspose.Pdf.", "tags": [ "pdf", - "incremental-update", - "aspose", - "document", - "validation" + "annotation", + "line", + "color", + "border" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.HasIncrementalUpdate" + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Point", + "Aspose.Pdf.Annotations.LineAnnotation", + "Aspose.Pdf.Annotations.Border" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "add-watermark-layer-merge-layers": { - "title": "Add Watermark Layer and Merge Layers in PDF", - "filename": "add-watermark-layer-merge-layers.cs", - "description": "Demonstrates how to create a watermark as an optional content group (layer), add it to each page of an existing PDF, and then merge all layers into a single layer using Aspose.Pdf.", + "add-line-separator-annotation-to-pdf-page": { + "title": "Add Line Separator Annotation to PDF Page", + "filename": "add-line-separator-annotation-to-pdf-page.cs", + "description": "Demonstrates how to insert a horizontal line annotation as a visual separator on a specific PDF page using Aspose.Pdf and save the modified document.", "tags": [ - "watermark", - "layer", - "merge", "pdf", + "annotation", + "line", + "separator", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Layer", - "Aspose.Pdf.ImageStamp", - "Aspose.Pdf.Page.Layers.Add", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Page.MergeLayers", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page", + "Aspose.Pdf.Point", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.LineAnnotation", + "Aspose.Pdf.Annotations.Border" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "add-accessibility-tags-to-pdf": { - "title": "Add Accessibility Tags to PDF (Headings, Paragraphs, Tables)", - "filename": "add-accessibility-tags-to-pdf.cs", - "description": "Loads an existing PDF, enables auto‑tagging, sets language and title metadata, and creates tagged heading, paragraph, and table elements with alternative text for screen readers before saving the tagged PDF.", + "add-link-annotation-open-pdf-attachment": { + "title": "Add Link Annotation to Open PDF Attachment", + "filename": "add-link-annotation-open-pdf-attachment.cs", + "description": "Shows how to create a link annotation on a PDF page that opens an external PDF attachment using Aspose.Pdf.", "tags": [ - "accessibility", - "pdf", - "tagging", - "heading", - "table" + "link-annotation", + "pdf-attachment", + "goto-remote-action", + "aspose-pdf", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.LinkAnnotation", + "Aspose.Pdf.Annotations.GoToRemoteAction" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:21:22Z", + "status": "verified" + }, + "add-multi-level-toc-to-pdf": { + "title": "Add Multi‑Level Table of Contents to PDF", + "filename": "add-multi-level-toc-to-pdf.cs", + "description": "Demonstrates how to enable auto‑tagging, detect headings, create a TOC element, insert a dedicated TOC page, and configure its appearance and outline integration using Aspose.Pdf.", + "tags": [ + "toc", + "autotagging", + "pdf-structure", + "aspnet", + "aspdf" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.AutoTaggingSettings", + "Aspose.Pdf.Document.ProcessParagraphs", "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.StructureElement", - "Aspose.Pdf.Tagged.HeaderElement", - "Aspose.Pdf.Tagged.ParagraphElement", - "Aspose.Pdf.Tagged.TableElement", - "Aspose.Pdf.Tagged.TableTHeadElement" + "Aspose.Pdf.Tagged.TOCElement", + "Aspose.Pdf.Structure.StructureElement", + "Aspose.Pdf.TocInfo", + "Aspose.Pdf.Text.TextFragment" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "attach-portfolio-pdf-set-description-metadata": { - "title": "Attach Portfolio PDF and Set Custom Description Metadata", - "filename": "attach-portfolio-pdf-set-description-metadata.cs", - "description": "Demonstrates how to embed a PDF portfolio file into an existing PDF document using Aspose.Pdf and add custom description metadata (both XMP and document info).", + "add-new-bookmark-to-pdf-outline": { + "title": "Add New Bookmark to PDF Outline", + "filename": "add-new-bookmark-to-pdf-outline.cs", + "description": "Demonstrates how to create an outline (bookmark) in an existing PDF, set its title, style, and destination, add it to the document's outline hierarchy, and save the updated file.", "tags": [ - "pdf-attachment", - "metadata", + "pdf", + "bookmark", + "outline", "aspose-pdf", - "file-specification", - "embedded-files" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Document.EmbeddedFiles.Add", - "Aspose.Pdf.Document.Metadata.Add", - "Aspose.Pdf.Document.Info.Title", + "Aspose.Pdf.OutlineItemCollection", + "Aspose.Pdf.XYZExplicitDestination", + "Aspose.Pdf.Page", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "update-pdf-author-title-metadata": { - "title": "Update PDF Author and Title Metadata", - "filename": "update-pdf-author-title-metadata.cs", - "description": "Demonstrates how to read existing PDF metadata, change the Author and Title fields, and save the updated document using Aspose.Pdf.", + "add-page-count-footer-to-pdf": { + "title": "Add Page Count Footer to PDF Pages", + "filename": "add-page-count-footer-to-pdf.cs", + "description": "Demonstrates how to add a custom footer that shows \"Page X of Y\" on each page of a PDF using Aspose.Pdf, including creating a placeholder PDF if the source file is missing.", "tags": [ "pdf", - "metadata", - "author", - "title", - "aspose-pdf" + "footer", + "page-number", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.DocumentInfo", - "Aspose.Pdf.Document.Info", - "Aspose.Pdf.DocumentInfo.Author", - "Aspose.Pdf.DocumentInfo.Title", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.Position", + "Aspose.Pdf.Text.HorizontalAlignment" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:21:22Z", + "status": "verified" + }, + "add-page-number-footer-to-pdf": { + "title": "Add Page Number Footer To Pdf", + "filename": "add-page-number-footer-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-page-numbers-to-pdf-footer": { + "title": "Add Page Numbers to PDF Footer", + "filename": "add-page-numbers-to-pdf-footer.cs", + "description": "Demonstrates how to insert sequential page numbers into the footer of each page in a PDF using Aspose.Pdf's PageNumberStamp.", + "tags": [ + "pdf", + "page-number", + "footer", + "stamp", + "Aspose.Pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.PageNumberStamp", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.FontRepository", + "Aspose.Pdf.Color", + "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "apply-password-protection-to-pdf": { - "title": "Apply Password Protection and Permissions to a PDF", - "filename": "apply-password-protection-to-pdf.cs", - "description": "Demonstrates loading a PDF, setting user and owner passwords, defining permissions, encrypting with AES‑256, and saving the protected document.", + "add-popup-note-annotation": { + "title": "Add Pop‑up Note Annotation to PDF", + "filename": "add-popup-note-annotation.cs", + "description": "Shows how to create a TextAnnotation with a linked PopupAnnotation in a PDF using Aspose.Pdf and save the modified document.", "tags": [ "pdf", - "encryption", - "permissions", + "annotation", + "popup", "aspose", - "security" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Annotations.PopupAnnotation", + "Aspose.Pdf.Page.Annotations.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "print-pdf-using-default-handler": { - "title": "Print PDF Document Using Default PDF Handler", - "filename": "print-pdf-using-default-handler.cs", - "description": "Shows how to verify a PDF file exists and is valid, then send it to the printer by launching the OS default PDF viewer with the \"print\" verb via Process.Start.", + "add-reusable-background-image-to-all-pdf-pages": { + "title": "Add Reusable Background Image To All Pdf Pages", + "filename": "add-reusable-background-image-to-all-pdf-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-signature-field-to-pdf": { + "title": "Add Signature Field to PDF with Matching Appearance", + "filename": "add-signature-field-to-pdf.cs", + "description": "Shows how to insert a user signature form field into an existing PDF and configure its default appearance to align with the document's style using Aspose.Pdf.", "tags": [ + "signature", + "form-field", + "appearance", "pdf", - "printing", - "process", - "validation", - "aspnet" + "Aspose.Pdf" ], "apis_used": [ - "Aspose.Pdf.Document" + "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Forms.DefaultAppearance", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Document.Form.Add", + "Aspose.Pdf.Document.Form.AddFieldAppearance", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:21:22Z", + "status": "verified" + }, + "add-signature-image-stamp-to-last-page": { + "title": "Add Signature Image Stamp to Last PDF Page", + "filename": "add-signature-image-stamp-to-last-page.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, create an ImageStamp from a signature image, position it on the last page, and save the updated document.", + "tags": [ + "pdf", + "signature", + "imagestamp", + "last-page", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.ImageStamp", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "interrupt-resume-large-pdf-save": { - "title": "Interrupt and Resume Large PDF Save Operation", - "filename": "interrupt-resume-large-pdf-save.cs", - "description": "Demonstrates how to pause a long-running PDF save using Aspose.Pdf's interrupt monitor, release resources, and then resume the incremental save later.", + "add-structured-headings-to-pdf": { + "title": "Add Structured Headings To Pdf", + "filename": "add-structured-headings-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-styled-table-alternating-row-colors": { + "title": "Add Styled Table with Alternating Row Colors to PDF", + "filename": "add-styled-table-alternating-row-colors.cs", + "description": "Demonstrates creating a table with borders, header styling, and alternating row background colors, then inserting it into a PDF using Aspose.Pdf.", + "tags": [ + "table", + "pdf", + "border", + "alternating-rows", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Table", + "Aspose.Pdf.Row", + "Aspose.Pdf.BorderInfo", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.FontRepository.FindFont" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:21:22Z", + "status": "verified" + }, + "add-styled-table-with-borders-to-pdf": { + "title": "Add Styled Table With Borders To Pdf", + "filename": "add-styled-table-with-borders-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-visible-digital-signature-and-lock-pdf": { + "title": "Add Visible Digital Signature Field and Lock PDF", + "filename": "add-visible-digital-signature-and-lock-pdf.cs", + "description": "The example loads an existing PDF, creates a visible signature field on the first page, signs it with a PKCS#1 certificate, makes the field read‑only and enforces append‑only mode to lock the document.", "tags": [ + "digital-signature", + "visible-signature", + "pdf", + "aspose-pdf", + "document-lock" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Forms.PKCS1", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.Form.SignaturesAppendOnly" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:21:22Z", + "status": "verified" + }, + "add-visible-signature-field-and-lock-pdf": { + "title": "Add Visible Signature Field And Lock Pdf", + "filename": "add-visible-signature-field-and-lock-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-watermark-layer-merge-layers": { + "title": "Add Watermark Layer and Merge Layers in PDF", + "filename": "add-watermark-layer-merge-layers.cs", + "description": "Demonstrates how to create a watermark as an optional content group (layer), add it to each page of an existing PDF, and then merge all layers into a single layer using Aspose.Pdf.", + "tags": [ + "watermark", + "layer", + "merge", "pdf", - "interrupt", - "asynchronous", - "incremental-save", - "resource-management" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.SaveAsync", - "Aspose.Pdf.Multithreading.InterruptMonitor", - "Aspose.Pdf.Multithreading.InterruptMonitor.Interrupt", - "Aspose.Pdf.Multithreading.InterruptMonitor.CancellationToken" + "Aspose.Pdf.Layer", + "Aspose.Pdf.ImageStamp", + "Aspose.Pdf.Page.Layers.Add", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Page.MergeLayers", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "generate-crash-report-pdf": { - "title": "Generate Crash Report PDF from Exception", - "filename": "generate-crash-report-pdf.cs", - "description": "Demonstrates capturing an exception, creating an HTML crash report with Aspose.Pdf, and converting that report into a PDF document.", + "apply-password-protection-to-pdf": { + "title": "Apply Password Protection and Permissions to a PDF", + "filename": "apply-password-protection-to-pdf.cs", + "description": "Demonstrates loading a PDF, setting user and owner passwords, defining permissions, encrypting with AES‑256, and saving the protected document.", "tags": [ - "crash-report", "pdf", - "exception", - "aspose-pdf", - "html-to-pdf" + "encryption", + "permissions", + "aspose", + "security" ], "apis_used": [ - "Aspose.Pdf.CrashReportOptions", - "Aspose.Pdf.PdfException.GenerateCrashReport", "Aspose.Pdf.Document", - "Aspose.Pdf.HtmlLoadOptions", + "Aspose.Pdf.Permissions", + "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.Encrypt", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "embed-zugferd-xml-into-pdf": { - "title": "Embed ZUGFeRD XML into PDF and Verify Embedding", - "filename": "embed-zugferd-xml-into-pdf.cs", - "description": "Demonstrates how to embed a ZUGFeRD invoice XML file into an existing PDF using Aspose.Pdf and then verify that the XML is present in the embedded files collection.", + "apply-semi-transparent-image-watermark-to-pdf": { + "title": "Apply Semi Transparent Image Watermark To Pdf", + "filename": "apply-semi-transparent-image-watermark-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "apply-semi-transparent-image-watermark": { + "title": "Apply Semi-Transparent Image Watermark to PDF Pages", + "filename": "apply-semi-transparent-image-watermark.cs", + "description": "Demonstrates how to overlay a semi‑transparent PNG image as a watermark on every page of a PDF using Aspose.Pdf.", "tags": [ - "ZUGFeRD", - "PDF", - "Embedding", - "Aspose.Pdf", - "Invoice" + "pdf", + "watermark", + "image", + "opacity", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Document.EmbeddedFiles", + "Aspose.Pdf.ImageStamp", + "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.FileSpecification.Name" + "Aspose.Pdf.HorizontalAlignment", + "Aspose.Pdf.VerticalAlignment" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "add-javascript-open-action-to-pdf": { - "title": "Add JavaScript Open Action to PDF", - "filename": "add-javascript-open-action-to-pdf.cs", - "description": "Demonstrates embedding JavaScript in a PDF with Aspose.Pdf so an alert dialog appears when the document is opened.", + "attach-pdf-portfolio-with-metadata": { + "title": "Attach Pdf Portfolio With Metadata", + "filename": "attach-pdf-portfolio-with-metadata.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "attach-portfolio-pdf-set-description-metadata": { + "title": "Attach Portfolio PDF and Set Custom Description Metadata", + "filename": "attach-portfolio-pdf-set-description-metadata.cs", + "description": "Demonstrates how to embed a PDF portfolio file into an existing PDF document using Aspose.Pdf and add custom description metadata (both XMP and document info).", "tags": [ - "javascript", - "pdf", - "open-action", - "alert", - "aspose" + "pdf-attachment", + "metadata", + "aspose-pdf", + "file-specification", + "embedded-files" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Annotations.JavascriptAction" + "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.Document.EmbeddedFiles.Add", + "Aspose.Pdf.Document.Metadata.Add", + "Aspose.Pdf.Document.Info.Title", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "combine-multiple-html-to-pdf": { - "title": "Combine Multiple HTML Strings into a Single PDF", - "filename": "combine-multiple-html-to-pdf.cs", - "description": "Shows how to load HTML strings into Aspose.Pdf Document objects with custom HtmlLoadOptions, merge the documents, and save the combined result as a PDF file.", + "batch-sanitize-pdfs": { + "title": "Batch Sanitize PDFs and Export Cleaned Versions", + "filename": "batch-sanitize-pdfs.cs", + "description": "Shows how to iterate over a folder of PDF files, remove metadata and compliance information, flatten content, optimize resources, and save sanitized copies to a separate directory using Aspose.Pdf.", "tags": [ - "html", "pdf", - "merge", - "aspose-pdf", - "csharp" + "sanitization", + "batch", + "metadata", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.HtmlLoadOptions", - "Aspose.Pdf.Document.Merge", + "Aspose.Pdf.Document.RemoveMetadata", + "Aspose.Pdf.Document.RemovePdfaCompliance", + "Aspose.Pdf.Document.RemovePdfUaCompliance", + "Aspose.Pdf.Document.Flatten", + "Aspose.Pdf.Document.OptimizeResources", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "add-styled-table-alternating-row-colors": { - "title": "Add Styled Table with Alternating Row Colors to PDF", - "filename": "add-styled-table-alternating-row-colors.cs", - "description": "Demonstrates creating a table with borders, header styling, and alternating row background colors, then inserting it into a PDF using Aspose.Pdf.", + "check-hidden-annotations-in-pdf": { + "title": "Check for Hidden Annotations in PDF", + "filename": "check-hidden-annotations-in-pdf.cs", + "description": "Demonstrates how to load a PDF with Aspose.Pdf and inspect each page for annotations that have the Hidden flag set, returning a boolean result.", "tags": [ - "table", "pdf", - "border", - "alternating-rows", - "aspose-pdf" + "annotations", + "hidden", + "validation", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Table", - "Aspose.Pdf.Row", - "Aspose.Pdf.BorderInfo", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.FontRepository.FindFont" + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.AnnotationFlags", + "Aspose.Pdf.Annotations.AnnotationCollection" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "add-hyperlink-annotation-to-pdf": { - "title": "Add Hyperlink Annotation to PDF", - "filename": "add-hyperlink-annotation-to-pdf.cs", - "description": "Shows how to insert a clickable hyperlink annotation that opens an external website in a PDF document using Aspose.Pdf.", + "check-pdf-incremental-updates": { + "title": "Check PDF for Incremental Updates", + "filename": "check-pdf-incremental-updates.cs", + "description": "Loads a PDF using Aspose.Pdf and determines whether the file contains incremental updates saved after its initial creation.", "tags": [ - "hyperlink", - "annotation", "pdf", - "Aspose.Pdf", - "link" + "incremental-update", + "aspose", + "document", + "validation" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.LinkAnnotation", - "Aspose.Pdf.Annotations.GoToURIAction", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Page.Annotations.Add" + "Aspose.Pdf.Document.HasIncrementalUpdate" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "replace-image-in-pdf-page": { - "title": "Replace Image in PDF Page", - "filename": "replace-image-in-pdf-page.cs", - "description": "Demonstrates how to replace an existing image on a PDF page with a new image while preserving its layout (position, size, rotation) using Aspose.Pdf.", + "clean-pdf-remove-metadata-attachments-javascript": { + "title": "Clean Pdf Remove Metadata Attachments Javascript", + "filename": "clean-pdf-remove-metadata-attachments-javascript.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "combine-multiple-html-to-pdf": { + "title": "Combine Multiple HTML Strings into a Single PDF", + "filename": "combine-multiple-html-to-pdf.cs", + "description": "Shows how to load HTML strings into Aspose.Pdf Document objects with custom HtmlLoadOptions, merge the documents, and save the combined result as a PDF file.", "tags": [ + "html", "pdf", - "image", - "replace", + "merge", "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.ImagePlacementAbsorber", - "Aspose.Pdf.ImagePlacement", - "Aspose.Pdf.ImagePlacement.Replace", + "Aspose.Pdf.HtmlLoadOptions", + "Aspose.Pdf.Document.Merge", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "add-page-numbers-to-pdf-footer": { - "title": "Add Page Numbers to PDF Footer", - "filename": "add-page-numbers-to-pdf-footer.cs", - "description": "Demonstrates how to insert sequential page numbers into the footer of each page in a PDF using Aspose.Pdf's PageNumberStamp.", + "compress-pdf-images-and-export-jpeg-quality-80": { + "title": "Compress PDF Images and Export Pages as JPEG with Quality 80", + "filename": "compress-pdf-images-and-export-jpeg-quality-80.cs", + "description": "Shows how to compress embedded images in a PDF using JPEG quality 80 via OptimizationOptions, then render each page to a JPEG file with the same quality.", "tags": [ "pdf", - "page-number", - "footer", - "stamp", - "Aspose.Pdf" + "image-compression", + "jpeg", + "optimization", + "export" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.PageNumberStamp", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.FontRepository", - "Aspose.Pdf.Color", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Optimization.OptimizationOptions", + "Aspose.Pdf.Optimization.ImageCompressionOptions", + "Aspose.Pdf.Devices.JpegDevice", + "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.Document.OptimizeResources", + "Aspose.Pdf.Devices.JpegDevice.Process" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "create-pdf-multiple-sections-different-page-sizes": { - "title": "Create PDF with Multiple Sections and Different Page Sizes", - "filename": "create-pdf-multiple-sections-different-page-sizes.cs", - "description": "Demonstrates how to generate a PDF containing several pages, each with its own page size and orientation (portrait, landscape, custom) using Aspose.Pdf.", + "convert-pdf-pages-to-high-resolution-tiff": { + "title": "Convert PDF Pages to High-Resolution TIFF Images", + "filename": "convert-pdf-pages-to-high-resolution-tiff.cs", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, set a custom DPI, and convert each page to a lossless TIFF file using TiffDevice.", "tags": [ "pdf", - "page-size", - "orientation", - "multiple-pages", - "aspose-pdf" + "tiff", + "conversion", + "dpi", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.PageSize", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Page.SetPageSize" + "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.Devices.TiffSettings", + "Aspose.Pdf.Devices.TiffDevice", + "Aspose.Pdf.Devices.TiffDevice.Process" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "merge-pdfs-with-bookmarks": { - "title": "Merge PDFs and Preserve Bookmarks with Aspose.Pdf", - "filename": "merge-pdfs-with-bookmarks.cs", - "description": "Demonstrates how to combine two PDF files into one while copying all pages and preserving the bookmark hierarchy from both source documents using Aspose.Pdf.", + "convert-pdf-pages-to-jpeg-images": { + "title": "Convert Pdf Pages To Jpeg Images", + "filename": "convert-pdf-pages-to-jpeg-images.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-pdf-pages-to-jpeg-no-compression": { + "title": "Convert PDF Pages to JPEG without Compression", + "filename": "convert-pdf-pages-to-jpeg-no-compression.cs", + "description": "Shows how to render each PDF page to a high‑resolution JPEG image using Aspose.Pdf while preserving original quality by disabling compression.", "tags": [ - "pdf", - "merge", - "bookmarks", + "pdf", + "jpeg", + "image-conversion", "aspose", - "csharp" + "no-compression" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.OutlineItemCollection", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Pages.Add" + "Aspose.Pdf.Devices.JpegDevice", + "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.PageCollection", + "Aspose.Pdf.Devices.JpegDevice.Process" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "extract-text-from-pdf-pages": { - "title": "Extract Text from Specific PDF Pages", - "filename": "extract-text-from-pdf-pages.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, extract text from a defined page range using TextAbsorber, and write the result to a plain text file.", + "convert-pdf-pages-to-jpeg-quality-80": { + "title": "Convert Pdf Pages To Jpeg Quality 80", + "filename": "convert-pdf-pages-to-jpeg-quality-80.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-pdf-pages-to-png-images": { + "title": "Convert PDF Pages to PNG Images", + "filename": "convert-pdf-pages-to-png-images.cs", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, iterate through each page, and save every page as an individual PNG image file.", "tags": [ "pdf", - "text-extraction", - "page-range", - "aspose-pdf", - "csharp" + "png", + "image-conversion", + "batch", + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextAbsorber", - "Aspose.Pdf.Page.Accept", - "Aspose.Pdf.PageCollection", - "Aspose.Pdf.Page" + "Aspose.Pdf.Page", + "Aspose.Pdf.Document.ConvertPageToPNGMemoryStream", + "Aspose.Pdf.Document.Pages" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "add-company-logo-header-to-pdf-pages": { - "title": "Add Company Logo Header to PDF Pages", - "filename": "add-company-logo-header-to-pdf-pages.cs", - "description": "Shows how to load an existing PDF, create an ImageStamp for a logo, position it as a top‑center header on each page, and save the modified document using Aspose.Pdf.", + "convert-pdf-pages-to-png-images__v2": { + "title": "Convert PDF Pages to PNG Images and Verify Count", + "filename": "convert-pdf-pages-to-png-images__v2.cs", + "description": "Loads a PDF, renders each page to a PNG file using Aspose.Pdf, and asserts that the number of generated images matches the page count.", "tags": [ "pdf", - "header", - "logo", - "image-stamp", - "aspose-pdf" + "image-conversion", + "unit-test", + "aspose", + "png" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Facades.ImageStamp", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Devices.PngDevice", + "Aspose.Pdf.Devices.PngDevice.Process", + "Aspose.Pdf.Document.Pages" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "set-pdf-document-metadata": { - "title": "Set PDF Document Metadata (Creation/Modification Dates and Keywords)", - "filename": "set-pdf-document-metadata.cs", - "description": "Demonstrates how to load an existing PDF with Aspose.Pdf, update its creation and modification dates, add custom keywords, and save the updated file.", + "convert-pdf-pages-to-rasterized-images-html": { + "title": "Convert PDF Pages to Rasterized Images in HTML", + "filename": "convert-pdf-pages-to-rasterized-images-html.cs", + "description": "Demonstrates how to load a PDF with Aspose.PDF and save it as HTML where each page is rasterized into external PNG images using a high‑resolution setting.", "tags": [ "pdf", - "metadata", - "creation-date", - "keywords", + "html", + "rasterization", + "image", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.DocumentInfo", - "Aspose.Pdf.DocumentInfo.CreationDate", - "Aspose.Pdf.DocumentInfo.ModDate", - "Aspose.Pdf.DocumentInfo.Keywords", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.HtmlSaveOptions", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.HtmlSaveOptions.RasterImagesSavingMode", + "Aspose.Pdf.HtmlSaveOptions.PartsEmbeddingMode", + "Aspose.Pdf.HtmlSaveOptions.SplitIntoPages" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "create-pdf-with-embedded-truetype-font": { - "title": "Create PDF with Embedded TrueType Font", - "filename": "create-pdf-with-embedded-truetype-font.cs", - "description": "Demonstrates how to embed a TrueType font into a PDF using Aspose.Pdf so the document renders consistently on any device.", + "convert-pdf-to-html-with-rasterized-pages": { + "title": "Convert Pdf To Html With Rasterized Pages", + "filename": "convert-pdf-to-html-with-rasterized-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-pdf-to-html": { + "title": "Convert Pdf To Html", + "filename": "convert-pdf-to-html.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-5x7-inch-postcard-pdf": { + "title": "Create a 5x7 Inch Postcard PDF with Aspose.Pdf", + "filename": "create-5x7-inch-postcard-pdf.cs", + "description": "Demonstrates how to generate a PDF with a custom 5x7‑inch page size and add a sample text fragment using Aspose.Pdf.", "tags": [ "pdf", - "font-embedding", - "truetype", + "custom-page-size", + "postcard", "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.FontRepository.OpenFont", - "Aspose.Pdf.Font", + "Aspose.Pdf.Page.SetPageSize", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Text.FontRepository.FindFont", + "Aspose.Pdf.Text.Position", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "apply-semi-transparent-image-watermark": { - "title": "Apply Semi-Transparent Image Watermark to PDF Pages", - "filename": "apply-semi-transparent-image-watermark.cs", - "description": "Demonstrates how to overlay a semi‑transparent PNG image as a watermark on every page of a PDF using Aspose.Pdf.", - "tags": [ - "pdf", - "watermark", - "image", - "opacity", - "Aspose.Pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.ImageStamp", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.HorizontalAlignment", - "Aspose.Pdf.VerticalAlignment" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:21:22Z", - "status": "verified" - }, "create-clickable-table-of-contents": { "title": "Create Clickable Table of Contents in PDF", "filename": "create-clickable-table-of-contents.cs", @@ -895,431 +1195,542 @@ "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "remove-all-annotations-from-pdf": { - "title": "Remove All Annotations from PDF", - "filename": "remove-all-annotations-from-pdf.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, iterate through each page, delete all annotations, and save a clean version.", + "create-hierarchical-numbered-headings": { + "title": "Create Hierarchical Numbered Headings", + "filename": "create-hierarchical-numbered-headings.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-landscape-pdf-page": { + "title": "Create Landscape Pdf Page", + "filename": "create-landscape-pdf-page.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-magazine-pdf-with-text-and-image": { + "title": "Create Magazine Pdf With Text And Image", + "filename": "create-magazine-pdf-with-text-and-image.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-multi-page-table-pdf": { + "title": "Create Multi‑Page Table in PDF with Aspose.Pdf", + "filename": "create-multi-page-table-pdf.cs", + "description": "Shows how to generate a PDF containing a table that automatically splits across pages, repeats the header row, and auto‑fits column widths using Aspose.Pdf.", "tags": [ "pdf", - "annotations", - "remove", + "table", + "pagination", "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PageCollection", - "Aspose.Pdf.Page.Annotations", - "Aspose.Pdf.Annotations.Delete", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page", + "Aspose.Pdf.Table", + "Aspose.Pdf.Table.ImportDataTable", + "Aspose.Pdf.ColumnAdjustment" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "add-signature-field-to-pdf": { - "title": "Add Signature Field to PDF with Matching Appearance", - "filename": "add-signature-field-to-pdf.cs", - "description": "Shows how to insert a user signature form field into an existing PDF and configure its default appearance to align with the document's style using Aspose.Pdf.", + "create-pdf-clickable-index": { + "title": "Create PDF with Clickable Table of Contents", + "filename": "create-pdf-clickable-index.cs", + "description": "Shows how to build a PDF that contains a Table of Contents page with entries linked to their respective section pages using Aspose.Pdf link annotations and GoTo actions.", "tags": [ - "signature", - "form-field", - "appearance", "pdf", - "Aspose.Pdf" + "table-of-contents", + "link", + "goto", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.DefaultAppearance", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Annotations.LinkAnnotation", + "Aspose.Pdf.Annotations.GoToAction", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Document.Form.Add", - "Aspose.Pdf.Document.Form.AddFieldAppearance", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Color", + "Aspose.Pdf.Border" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "encrypt-pdf-aes256-restrict-permissions": { - "title": "Encrypt PDF with AES‑256 and Restrict Permissions", - "filename": "encrypt-pdf-aes256-restrict-permissions.cs", - "description": "Shows how to load a PDF, apply AES‑256 encryption, disable printing and copying by setting no permissions, and save the encrypted file.", - "tags": [ - "pdf", - "encryption", - "aes-256", - "permissions", - "aspose.pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:21:22Z", - "status": "verified" - }, - "create-pdf-portfolio": { - "title": "Create PDF Portfolio with Embedded Files", - "filename": "create-pdf-portfolio.cs", - "description": "Shows how to bundle several PDF documents into a single PDF portfolio by embedding each source file as a file specification using Aspose.Pdf.", - "tags": [ - "pdf", - "portfolio", - "embedding", - "aspose.pdf", - "c#" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Document.EmbeddedFiles.Add", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:21:22Z", + "create-pdf-clickable-table-of-contents": { + "title": "Create Pdf Clickable Table Of Contents", + "filename": "create-pdf-clickable-table-of-contents.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "add-custom-document-info-and-xmp-metadata": { - "title": "Add Custom Document Info and XMP Metadata to PDF", - "filename": "add-custom-document-info-and-xmp-metadata.cs", - "description": "Demonstrates how to add custom key/value pairs to a PDF's DocumentInfo dictionary and embed XMP metadata using Aspose.Pdf.", + "create-pdf-custom-title-page": { + "title": "Create PDF with Custom Title Page and Background", + "filename": "create-pdf-custom-title-page.cs", + "description": "Demonstrates how to generate a PDF, set document metadata, add a full‑page colored background using a Graph, and place centered title text with a custom font and color.", "tags": [ "pdf", - "metadata", - "xmp", - "documentinfo", - "aspose" + "title-page", + "background", + "custom-font", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.DocumentInfo", - "Aspose.Pdf.DocumentInfo.Add", - "Aspose.Pdf.Document.SetXmpMetadata", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page", + "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.FontRepository.FindFont" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "add-line-annotation-with-custom-color-thickness": { - "title": "Add Line Annotation with Custom Color and Thickness to PDF", - "filename": "add-line-annotation-with-custom-color-thickness.cs", - "description": "Demonstrates how to create a line annotation on a PDF page, set its color, and adjust its thickness using Aspose.Pdf.", + "create-pdf-dynamic-table": { + "title": "Create Pdf Dynamic Table", + "filename": "create-pdf-dynamic-table.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-pdf-from-multiple-html-fragments": { + "title": "Create Pdf From Multiple Html Fragments", + "filename": "create-pdf-from-multiple-html-fragments.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-pdf-header-with-current-date": { + "title": "Create PDF Header with Current Date Using JavaScript", + "filename": "create-pdf-header-with-current-date.cs", + "description": "Shows how to add a shared read‑only date field to the top of each PDF page and populate it with the current date via a JavaScript OnOpen action.", "tags": [ "pdf", - "annotation", - "line", - "color", - "border" + "header", + "javascript", + "datefield", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Point", - "Aspose.Pdf.Annotations.LineAnnotation", - "Aspose.Pdf.Annotations.Border" + "Aspose.Pdf.Forms.DateField", + "Aspose.Pdf.Annotations.JavascriptAction" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "replace-pdf-page-with-html": { - "title": "Replace PDF Page with HTML-Generated Page", - "filename": "replace-pdf-page-with-html.cs", - "description": "Demonstrates how to replace a specific page in an existing PDF with a new page created from HTML content using Aspose.Pdf's HTML-to-PDF conversion.", + "create-pdf-multiple-page-sizes-orientations": { + "title": "Create Pdf Multiple Page Sizes Orientations", + "filename": "create-pdf-multiple-page-sizes-orientations.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-pdf-multiple-sections-different-page-sizes": { + "title": "Create PDF with Multiple Sections and Different Page Sizes", + "filename": "create-pdf-multiple-sections-different-page-sizes.cs", + "description": "Demonstrates how to generate a PDF containing several pages, each with its own page size and orientation (portrait, landscape, custom) using Aspose.Pdf.", "tags": [ "pdf", - "html", - "page-replacement", - "conversion", + "page-size", + "orientation", + "multiple-pages", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.HtmlLoadOptions", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Document.Pages.Delete", - "Aspose.Pdf.Document.Pages.Insert", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page", + "Aspose.Pdf.PageSize", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Page.SetPageSize" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "add-javascript-sum-calculation-to-pdf-form": { - "title": "Calculate Sum of Two PDF Form Fields with JavaScript", - "filename": "add-javascript-sum-calculation-to-pdf-form.cs", - "description": "Demonstrates creating a PDF with two numeric input fields and a read‑only sum field, then attaching JavaScript actions to automatically calculate and display the sum when either field changes.", + "create-pdf-numbered-headings-sanitize": { + "title": "Create PDF with Numbered Headings and Sanitize Structure", + "filename": "create-pdf-numbered-headings-sanitize.cs", + "description": "The example creates a PDF containing numbered headings and body text, enables auto‑tagging to preserve the heading hierarchy, then sanitizes the document by removing metadata and PDF/UA compliance flags.", "tags": [ "pdf", - "javascript", - "form-fields", - "calculation", + "headings", + "auto-tagging", + "sanitize", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Forms.NumberField", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Forms.Form.AutoRecalculate" + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.FontRepository.FindFont", + "Aspose.Pdf.AutoTaggingSettings", + "Aspose.Pdf.Document.RemoveMetadata", + "Aspose.Pdf.Document.RemovePdfUaCompliance", + "Aspose.Pdf.Document.Optimize" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "generate-dynamic-pdf-table": { - "title": "Generate a Dynamic PDF Table from a DataTable", - "filename": "generate-dynamic-pdf-table.cs", - "description": "Demonstrates how to build a DataTable at runtime and import it into an Aspose.Pdf Table that automatically expands rows, then save the result as a PDF.", + "create-pdf-portfolio": { + "title": "Create PDF Portfolio with Embedded Files", + "filename": "create-pdf-portfolio.cs", + "description": "Shows how to bundle several PDF documents into a single PDF portfolio by embedding each source file as a file specification using Aspose.Pdf.", "tags": [ "pdf", - "table", - "aspose", - "datatable", - "csharp" + "portfolio", + "embedding", + "aspose.pdf", + "c#" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Table", - "Aspose.Pdf.BorderInfo", - "Aspose.Pdf.Table.ImportDataTable", + "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.Document.Pages.Add", + "Aspose.Pdf.Document.EmbeddedFiles.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "create-zugferd-compliant-pdf-invoice": { - "title": "Create ZUGFeRD-Compliant PDF Invoice with Embedded XML", - "filename": "create-zugferd-compliant-pdf-invoice.cs", - "description": "The example creates a simple PDF invoice, embeds ZUGFeRD XML data, converts the document to ZUGFeRD format, and saves the resulting PDF.", + "create-pdf-radio-button-group": { + "title": "Create PDF with Radio Button Group for Multiple Choice", + "filename": "create-pdf-radio-button-group.cs", + "description": "Demonstrates how to generate a PDF document containing a form with a radio button group representing a multiple‑choice question using Aspose.Pdf.", "tags": [ - "ZUGFeRD", - "PDF", - "Invoice", - "Aspose.Pdf", - "XML" + "pdf", + "form", + "radio-button", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.Forms.RadioButtonField", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.FontRepository.FindFont", - "Aspose.Pdf.Document.BindXml", - "Aspose.Pdf.Document.Convert", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Text.Position" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "create-pdf-clickable-index": { - "title": "Create PDF with Clickable Table of Contents", - "filename": "create-pdf-clickable-index.cs", - "description": "Shows how to build a PDF that contains a Table of Contents page with entries linked to their respective section pages using Aspose.Pdf link annotations and GoTo actions.", + "create-pdf-roman-headings-validation": { + "title": "Create Pdf Roman Headings Validation", + "filename": "create-pdf-roman-headings-validation.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-pdf-table-with-rich-text-formatting": { + "title": "Create Pdf Table With Rich Text Formatting", + "filename": "create-pdf-table-with-rich-text-formatting.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-pdf-table-with-rich-text": { + "title": "Create PDF Table with Rich Text Formatting", + "filename": "create-pdf-table-with-rich-text.cs", + "description": "Demonstrates how to build a PDF document containing a table where each cell can hold rich‑text formatting such as bold, italic, colored, underlined and multiple text segments using Aspose.Pdf.", "tags": [ "pdf", - "table-of-contents", - "link", - "goto", - "aspose-pdf" + "table", + "rich-text", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.Table", + "Aspose.Pdf.Row", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Annotations.LinkAnnotation", - "Aspose.Pdf.Annotations.GoToAction", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Color", - "Aspose.Pdf.Border" + "Aspose.Pdf.Text.TextSegment", + "Aspose.Pdf.FontRepository.FindFont" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "add-background-template-to-pdf-pages": { - "title": "Add Background Template to All PDF Pages", - "filename": "add-background-template-to-pdf-pages.cs", - "description": "Shows how to load a PDF and a single‑page background template, then stamp each page of the target document with the template as a background using Aspose.Pdf.", + "create-pdf-title-page-custom-font": { + "title": "Create Pdf Title Page Custom Font", + "filename": "create-pdf-title-page-custom-font.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-pdf-toc-with-dot-leaders": { + "title": "Create PDF Table of Contents with Dot Leaders", + "filename": "create-pdf-toc-with-dot-leaders.cs", + "description": "Shows how to generate a PDF document that includes a table of contents with dot leaders between entry titles and page numbers using Aspose.Pdf's tagged content features.", "tags": [ "pdf", - "background", - "stamp", - "Aspose.Pdf", - "C#" + "toc", + "dot-leader", + "tagged-content", + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Facades.PdfPageStamp", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Tagged.ITaggedContent", + "Aspose.Pdf.Tagged.TOCElement", + "Aspose.Pdf.LogicalStructure.LevelFormat", + "Aspose.Pdf.LogicalStructure.TabLeaderType", + "Aspose.Pdf.LogicalStructure.TocInfo" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "add-signature-image-stamp-to-last-page": { - "title": "Add Signature Image Stamp to Last PDF Page", - "filename": "add-signature-image-stamp-to-last-page.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, create an ImageStamp from a signature image, position it on the last page, and save the updated document.", + "create-pdf-with-background-template": { + "title": "Create PDF with Background Template Page", + "filename": "create-pdf-with-background-template.cs", + "description": "Shows how to load a PDF page as a background template and apply it to multiple pages using PdfPageStamp in Aspose.Pdf.", "tags": [ "pdf", - "signature", - "imagestamp", - "last-page", - "aspose-pdf" + "background", + "template", + "stamp", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.ImageStamp", + "Aspose.Pdf.PdfPageStamp", + "Aspose.Pdf.Document.Pages.Add", "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "extract-embedded-files-from-pdf-portfolio": { - "title": "Extract Embedded Files from PDF Portfolio", - "filename": "extract-embedded-files-from-pdf-portfolio.cs", - "description": "Demonstrates how to load a PDF portfolio, enumerate its embedded files, and save each file to a specified output directory using Aspose.Pdf.", + "create-pdf-with-clickable-email-link": { + "title": "Create PDF with Clickable Email Link", + "filename": "create-pdf-with-clickable-email-link.cs", + "description": "Shows how to add a link annotation that opens the default mail client via a mailto URI in a PDF using Aspose.Pdf.", "tags": [ "pdf", - "embedded", - "extraction", - "portfolio", - "aspose" + "email-link", + "annotation", + "mailto", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.EmbeddedFiles", - "Aspose.Pdf.EmbeddedFileCollection", - "Aspose.Pdf.EmbeddedFile", - "Aspose.Pdf.EmbeddedFile.GetFileStream" + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.LinkAnnotation", + "Aspose.Pdf.Annotations.GoToURIAction", + "Aspose.Pdf.Border", + "Aspose.Pdf.Color" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "create-readonly-text-field-with-default-value": { - "title": "Create Read‑Only Text Field with Default Value in PDF", - "filename": "create-readonly-text-field-with-default-value.cs", - "description": "Demonstrates how to add a TextBoxField to a PDF, set its default text, and make it read‑only using Aspose.Pdf.", + "create-pdf-with-clickable-index": { + "title": "Create Pdf With Clickable Index", + "filename": "create-pdf-with-clickable-index.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-pdf-with-date-picker-form-field": { + "title": "Create Pdf With Date Picker Form Field", + "filename": "create-pdf-with-date-picker-form-field.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-pdf-with-date-picker": { + "title": "Create PDF with Date Picker Form Field", + "filename": "create-pdf-with-date-picker.cs", + "description": "Shows how to generate a PDF that contains a date picker form field, set its format, and apply basic visual styling using Aspose.Pdf.", "tags": [ "pdf", - "textfield", - "readonly", + "form", + "date-picker", "aspose", "csharp" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Text.DefaultAppearance", - "Aspose.Pdf.Form.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.DateField", + "Aspose.Pdf.Annotations.Border", + "Aspose.Pdf.Color", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Form.Add" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "create-pdf-with-clickable-email-link": { - "title": "Create PDF with Clickable Email Link", - "filename": "create-pdf-with-clickable-email-link.cs", - "description": "Shows how to add a link annotation that opens the default mail client via a mailto URI in a PDF using Aspose.Pdf.", + "create-pdf-with-dropdown-list": { + "title": "Create PDF with Dropdown (ComboBox) Form Field", + "filename": "create-pdf-with-dropdown-list.cs", + "description": "Shows how to generate a PDF containing a ComboBox (dropdown) form field and populate it with items from an array using Aspose.Pdf.", "tags": [ "pdf", - "email-link", - "annotation", - "mailto", - "Aspose.Pdf" + "dropdown", + "combobox", + "form", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.LinkAnnotation", - "Aspose.Pdf.Annotations.GoToURIAction", - "Aspose.Pdf.Border", - "Aspose.Pdf.Color" + "Aspose.Pdf.Forms.ComboBoxField", + "Aspose.Pdf.Forms.ComboBoxField.AddOption", + "Aspose.Pdf.Form", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "add-captions-below-images-in-pdf": { - "title": "Add Captions Below Images in PDF", - "filename": "add-captions-below-images-in-pdf.cs", - "description": "Shows how to iterate over image resources in a PDF and insert a styled caption paragraph beneath each image using Aspose.Pdf's text APIs.", + "create-pdf-with-email-link": { + "title": "Create Pdf With Email Link", + "filename": "create-pdf-with-email-link.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-pdf-with-embedded-truetype-font": { + "title": "Create PDF with Embedded TrueType Font", + "filename": "create-pdf-with-embedded-truetype-font.cs", + "description": "Demonstrates how to embed a TrueType font into a PDF using Aspose.Pdf so the document renders consistently on any device.", "tags": [ "pdf", - "caption", - "image", - "text", - "aspose" + "font-embedding", + "truetype", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.XImage", - "Aspose.Pdf.Text.TextParagraph", + "Aspose.Pdf.FontRepository.OpenFont", + "Aspose.Pdf.Font", + "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Text.TextBuilder", - "Aspose.Pdf.Text.FontRepository", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "create-pdf-toc-with-dot-leaders": { - "title": "Create PDF Table of Contents with Dot Leaders", - "filename": "create-pdf-toc-with-dot-leaders.cs", - "description": "Shows how to generate a PDF document that includes a table of contents with dot leaders between entry titles and page numbers using Aspose.Pdf's tagged content features.", + "create-pdf-with-merged-header-table": { + "title": "Create PDF with Merged Header Table", + "filename": "create-pdf-with-merged-header-table.cs", + "description": "Shows how to generate a PDF that contains a single merged‑header table followed by a multi‑column data table, applying borders, padding, and text styling with Aspose.Pdf.", "tags": [ "pdf", - "toc", - "dot-leader", - "tagged-content", - "aspnet" + "table", + "merged-header", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.TOCElement", - "Aspose.Pdf.LogicalStructure.LevelFormat", - "Aspose.Pdf.LogicalStructure.TabLeaderType", - "Aspose.Pdf.LogicalStructure.TocInfo" + "Aspose.Pdf.Table", + "Aspose.Pdf.Row", + "Aspose.Pdf.Cell", + "Aspose.Pdf.BorderInfo", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Text.TextFragment" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "add-popup-note-annotation": { - "title": "Add Pop‑up Note Annotation to PDF", - "filename": "add-popup-note-annotation.cs", - "description": "Shows how to create a TextAnnotation with a linked PopupAnnotation in a PDF using Aspose.Pdf and save the modified document.", + "create-pdf-with-radio-button-form": { + "title": "Create Pdf With Radio Button Form", + "filename": "create-pdf-with-radio-button-form.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-read-only-text-field": { + "title": "Create Read Only Text Field", + "filename": "create-read-only-text-field.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-readonly-text-field-with-default-value": { + "title": "Create Read‑Only Text Field with Default Value in PDF", + "filename": "create-readonly-text-field-with-default-value.cs", + "description": "Demonstrates how to add a TextBoxField to a PDF, set its default text, and make it read‑only using Aspose.Pdf.", "tags": [ "pdf", - "annotation", - "popup", + "textfield", + "readonly", "aspose", "csharp" ], @@ -1327,285 +1738,285 @@ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Annotations.PopupAnnotation", - "Aspose.Pdf.Page.Annotations.Add", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Text.DefaultAppearance", + "Aspose.Pdf.Form.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "create-pdf-header-with-current-date": { - "title": "Create PDF Header with Current Date Using JavaScript", - "filename": "create-pdf-header-with-current-date.cs", - "description": "Shows how to add a shared read‑only date field to the top of each PDF page and populate it with the current date via a JavaScript OnOpen action.", + "create-rotated-landscape-pdf-page": { + "title": "Create Rotated Landscape PDF Page", + "filename": "create-rotated-landscape-pdf-page.cs", + "description": "Shows how to rotate a PDF page 90° to achieve landscape orientation with Aspose.Pdf and add a text fragment for visual verification.", "tags": [ "pdf", - "header", - "javascript", - "datefield", - "aspose-pdf" + "landscape", + "rotation", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.DateField", - "Aspose.Pdf.Annotations.JavascriptAction" + "Aspose.Pdf.PageSize", + "Aspose.Pdf.Rotation", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Position" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "digitally-sign-pdf-with-timestamp": { - "title": "Digitally Sign PDF with Trusted Timestamp", - "filename": "digitally-sign-pdf-with-timestamp.cs", - "description": "Demonstrates how to add a PKCS#7 digital signature to a PDF and attach a timestamp from a trusted Time‑Stamp Authority using Aspose.Pdf.", + "create-sanitize-pdf-with-auto-numbered-headings": { + "title": "Create Sanitize Pdf With Auto Numbered Headings", + "filename": "create-sanitize-pdf-with-auto-numbered-headings.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-searchable-pdf-from-scanned-images": { + "title": "Create Searchable PDF from Scanned Images using OCR Overlay", + "filename": "create-searchable-pdf-from-scanned-images.cs", + "description": "Shows how to load a scanned‑image PDF, use Aspose.Pdf's Convert method to overlay invisible OCR text via a callback, and save the result as a searchable PDF.", "tags": [ "pdf", - "digital-signature", - "timestamp", + "ocr", + "searchable", "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.PKCS7", - "Aspose.Pdf.Forms.TimestampSettings", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.SignatureField.Sign", + "Aspose.Pdf.Document.Convert", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "create-5x7-inch-postcard-pdf": { - "title": "Create a 5x7 Inch Postcard PDF with Aspose.Pdf", - "filename": "create-5x7-inch-postcard-pdf.cs", - "description": "Demonstrates how to generate a PDF with a custom 5x7‑inch page size and add a sample text fragment using Aspose.Pdf.", + "create-zugferd-compliant-pdf-invoice": { + "title": "Create ZUGFeRD-Compliant PDF Invoice with Embedded XML", + "filename": "create-zugferd-compliant-pdf-invoice.cs", + "description": "The example creates a simple PDF invoice, embeds ZUGFeRD XML data, converts the document to ZUGFeRD format, and saves the resulting PDF.", "tags": [ - "pdf", - "custom-page-size", - "postcard", - "aspose-pdf", - "csharp" + "ZUGFeRD", + "PDF", + "Invoice", + "Aspose.Pdf", + "XML" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page.SetPageSize", + "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.FontRepository.FindFont", - "Aspose.Pdf.Text.Position", + "Aspose.Pdf.FontRepository.FindFont", + "Aspose.Pdf.Document.BindXml", + "Aspose.Pdf.Document.Convert", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "add-background-color-to-pdf-page": { - "title": "Add Background Color to PDF Page with Opacity", - "filename": "add-background-color-to-pdf-page.cs", - "description": "Demonstrates how to fill an entire PDF page with a semi‑transparent color by adding a rectangle shape to a Graph and inserting it into the page's paragraphs collection.", + "create-zugferd-pdf-invoice": { + "title": "Create Zugferd Pdf Invoice", + "filename": "create-zugferd-pdf-invoice.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "customize-crash-report-filename-message": { + "title": "Customize Crash Report Filename and Message in Aspose.Pdf", + "filename": "customize-crash-report-filename-message.cs", + "description": "Shows how to set a custom message and specify a custom file name for a crash report generated by Aspose.Pdf when an exception occurs.", "tags": [ - "pdf", - "background", - "opacity", - "rectangle", - "Aspose.Pdf" + "crash-report", + "exception-handling", + "custom-message", + "Aspose.Pdf", + "debugging" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Drawing.Color" + "CrashReportOptions", + "CrashReportOptions.CustomMessage", + "CrashReportOptions.CrashReportFilename", + "CrashReportOptions.CrashReportPath", + "PdfException.GenerateCrashReport" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "insert-pdf-page-into-another": { - "title": "Insert a PDF Page into Another PDF at a Specific Position", - "filename": "insert-pdf-page-into-another.cs", - "description": "Demonstrates loading two PDF documents, extracting a page from the source PDF, inserting it into a target PDF at a given position, and saving the result.", + "customize-toc-formatting": { + "title": "Customize Table of Contents Formatting in PDF", + "filename": "customize-toc-formatting.cs", + "description": "Demonstrates how to set different tab leader types for TOC levels and disable page number display using Aspose.Pdf.", "tags": [ - "pdf", + "toc", + "formatting", "aspose.pdf", "csharp", - "page-insertion", - "document-manipulation" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.PageCollection", - "Aspose.Pdf.PageCollection.Insert", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:21:22Z", - "status": "verified" - }, - "create-pdf-with-dropdown-list": { - "title": "Create PDF with Dropdown (ComboBox) Form Field", - "filename": "create-pdf-with-dropdown-list.cs", - "description": "Shows how to generate a PDF containing a ComboBox (dropdown) form field and populate it with items from an array using Aspose.Pdf.", - "tags": [ - "pdf", - "dropdown", - "combobox", - "form", - "aspose" + "pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.ComboBoxField", - "Aspose.Pdf.Forms.ComboBoxField.AddOption", - "Aspose.Pdf.Form", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.TocInfo", + "Aspose.Pdf.Text.LevelFormat", + "Aspose.Pdf.Text.TabLeaderType", + "Aspose.Pdf.Page" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "add-page-count-footer-to-pdf": { - "title": "Add Page Count Footer to PDF Pages", - "filename": "add-page-count-footer-to-pdf.cs", - "description": "Demonstrates how to add a custom footer that shows \"Page X of Y\" on each page of a PDF using Aspose.Pdf, including creating a placeholder PDF if the source file is missing.", + "detect-hidden-annotations-in-pdf": { + "title": "Detect Hidden Annotations In Pdf", + "filename": "detect-hidden-annotations-in-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "digitally-sign-pdf-with-timestamp": { + "title": "Digitally Sign PDF with Trusted Timestamp", + "filename": "digitally-sign-pdf-with-timestamp.cs", + "description": "Demonstrates how to add a PKCS#7 digital signature to a PDF and attach a timestamp from a trusted Time‑Stamp Authority using Aspose.Pdf.", "tags": [ "pdf", - "footer", - "page-number", - "aspose-pdf", + "digital-signature", + "timestamp", + "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.Position", - "Aspose.Pdf.Text.HorizontalAlignment" + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Forms.PKCS7", + "Aspose.Pdf.Forms.TimestampSettings", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.SignatureField.Sign", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "remove-javascript-from-pdf": { - "title": "Remove JavaScript from PDF", - "filename": "remove-javascript-from-pdf.cs", - "description": "Demonstrates how to load a PDF with Aspose.Pdf, clear document‑level, page‑level and link‑annotation JavaScript actions, and save the cleaned file.", + "embed-zugferd-xml-into-pdf": { + "title": "Embed ZUGFeRD XML into PDF and Verify Embedding", + "filename": "embed-zugferd-xml-into-pdf.cs", + "description": "Demonstrates how to embed a ZUGFeRD invoice XML file into an existing PDF using Aspose.Pdf and then verify that the XML is present in the embedded files collection.", "tags": [ - "javascript", - "pdf", - "security", - "aspose-pdf", - "annotations" + "ZUGFeRD", + "PDF", + "Embedding", + "Aspose.Pdf", + "Invoice" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Page.Actions", - "Aspose.Pdf.Annotations.LinkAnnotation", - "Aspose.Pdf.Annotations.JavascriptAction" + "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.Document.EmbeddedFiles", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.FileSpecification.Name" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "create-pdf-with-merged-header-table": { - "title": "Create PDF with Merged Header Table", - "filename": "create-pdf-with-merged-header-table.cs", - "description": "Shows how to generate a PDF that contains a single merged‑header table followed by a multi‑column data table, applying borders, padding, and text styling with Aspose.Pdf.", + "encrypt-pdf-aes256-restrict-permissions": { + "title": "Encrypt PDF with AES‑256 and Restrict Permissions", + "filename": "encrypt-pdf-aes256-restrict-permissions.cs", + "description": "Shows how to load a PDF, apply AES‑256 encryption, disable printing and copying by setting no permissions, and save the encrypted file.", "tags": [ "pdf", - "table", - "merged-header", - "aspose-pdf", - "csharp" + "encryption", + "aes-256", + "permissions", + "aspose.pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Table", - "Aspose.Pdf.Row", - "Aspose.Pdf.Cell", - "Aspose.Pdf.BorderInfo", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Text.TextFragment" + "Aspose.Pdf.Permissions", + "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "add-link-annotation-open-pdf-attachment": { - "title": "Add Link Annotation to Open PDF Attachment", - "filename": "add-link-annotation-open-pdf-attachment.cs", - "description": "Shows how to create a link annotation on a PDF page that opens an external PDF attachment using Aspose.Pdf.", + "extract-embedded-files-from-pdf-portfolio": { + "title": "Extract Embedded Files from PDF Portfolio", + "filename": "extract-embedded-files-from-pdf-portfolio.cs", + "description": "Demonstrates how to load a PDF portfolio, enumerate its embedded files, and save each file to a specified output directory using Aspose.Pdf.", "tags": [ - "link-annotation", - "pdf-attachment", - "goto-remote-action", - "aspose-pdf", - "csharp" + "pdf", + "embedded", + "extraction", + "portfolio", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.LinkAnnotation", - "Aspose.Pdf.Annotations.GoToRemoteAction" + "Aspose.Pdf.Document.EmbeddedFiles", + "Aspose.Pdf.EmbeddedFileCollection", + "Aspose.Pdf.EmbeddedFile", + "Aspose.Pdf.EmbeddedFile.GetFileStream" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "create-rotated-landscape-pdf-page": { - "title": "Create Rotated Landscape PDF Page", - "filename": "create-rotated-landscape-pdf-page.cs", - "description": "Shows how to rotate a PDF page 90° to achieve landscape orientation with Aspose.Pdf and add a text fragment for visual verification.", + "extract-hyperlinks-from-pdf": { + "title": "Extract Hyperlinks from PDF and Save to Text File", + "filename": "extract-hyperlinks-from-pdf.cs", + "description": "Loads a PDF, iterates through its pages and link annotations, extracts the target URLs, and writes them to a plain‑text file.", "tags": [ "pdf", - "landscape", - "rotation", + "hyperlink", + "extraction", "aspose", - "csharp" + "text-output" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.PageSize", - "Aspose.Pdf.Rotation", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Position" + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.LinkAnnotation", + "Aspose.Pdf.Annotations.GoToURIAction" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "add-checked-checkbox-form-field": { - "title": "Add Checked Checkbox Form Field to PDF", - "filename": "add-checked-checkbox-form-field.cs", - "description": "Shows how to create a PDF document, add a checkbox form field, set its default state to checked, and save the file.", + "extract-images-from-pdf-to-png": { + "title": "Extract Images from PDF and Save as PNG", + "filename": "extract-images-from-pdf-to-png.cs", + "description": "Demonstrates how to open a PDF with Aspose.Pdf, iterate through each page's image resources, and save each image as a PNG file while preserving its original resolution.", "tags": [ - "checkbox", - "form-field", "pdf", - "Aspose.Pdf", - "C#" + "image-extraction", + "aspose-pdf", + "png", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.CheckboxField", - "Aspose.Pdf.Form.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.XImage", + "Aspose.Pdf.Page.Resources", + "Aspose.Pdf.XImage.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", @@ -1633,316 +2044,375 @@ "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "create-pdf-table-with-rich-text": { - "title": "Create PDF Table with Rich Text Formatting", - "filename": "create-pdf-table-with-rich-text.cs", - "description": "Demonstrates how to build a PDF document containing a table where each cell can hold rich‑text formatting such as bold, italic, colored, underlined and multiple text segments using Aspose.Pdf.", + "extract-text-from-pdf-page-range": { + "title": "Extract Text From Pdf Page Range", + "filename": "extract-text-from-pdf-page-range.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-text-from-pdf-pages": { + "title": "Extract Text from Specific PDF Pages", + "filename": "extract-text-from-pdf-pages.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, extract text from a defined page range using TextAbsorber, and write the result to a plain text file.", "tags": [ "pdf", - "table", - "rich-text", - "aspose", + "text-extraction", + "page-range", + "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Table", - "Aspose.Pdf.Row", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextSegment", - "Aspose.Pdf.FontRepository.FindFont" + "Aspose.Pdf.Text.TextAbsorber", + "Aspose.Pdf.Page.Accept", + "Aspose.Pdf.PageCollection", + "Aspose.Pdf.Page" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "add-diagonal-text-stamp-to-pdf": { - "title": "Add Diagonal Text Stamp Watermark to PDF", - "filename": "add-diagonal-text-stamp-to-pdf.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, create a TextStamp with a custom message, configure its appearance, apply it to every page, and save the stamped document.", + "extract-text-from-pdf-to-utf8-file": { + "title": "Extract Text from PDF to UTF-8 File", + "filename": "extract-text-from-pdf-to-utf8-file.cs", + "description": "Demonstrates loading a PDF with Aspose.Pdf, extracting all page text using TextAbsorber, and writing the result to a UTF‑8 encoded text file.", "tags": [ - "watermark", - "textstamp", "pdf", + "text-extraction", + "utf-8", "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextStamp", - "Aspose.Pdf.Text.FontRepository", - "Aspose.Pdf.Page", - "Aspose.Pdf.Color" + "Aspose.Pdf.Text.TextAbsorber", + "Aspose.Pdf.Document.Pages.Accept", + "Aspose.Pdf.Text.TextAbsorber.Text" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "insert-automatic-page-numbers-into-pdf": { - "title": "Insert Automatic Page Numbers into PDF", - "filename": "insert-automatic-page-numbers-into-pdf.cs", - "description": "Shows how to add a PageNumberStamp to every page of a PDF and reapply it after inserting a new page so the numbering updates automatically.", + "extract-xmp-metadata-from-pdf": { + "title": "Extract XMP Metadata from PDF", + "filename": "extract-xmp-metadata-from-pdf.cs", + "description": "Shows how to load a PDF using Aspose.Pdf, retrieve its embedded XMP metadata, and save it as an XML file.", "tags": [ - "page-number", - "stamp", "pdf", - "Aspose.Pdf", - "insert-page" + "xmp", + "metadata", + "extraction", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.PageNumberStamp", - "Aspose.Pdf.Text.FontRepository.FindFont", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Pages.Insert", + "Aspose.Pdf.Document.GetXmpMetadata" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:21:22Z", + "status": "verified" + }, + "flatten-pdf-form-fields": { + "title": "Flatten PDF Form Fields to Static Content", + "filename": "flatten-pdf-form-fields.cs", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, flatten all interactive form fields into static page content, and save the resulting document.", + "tags": [ + "pdf", + "flatten", + "form-fields", + "aspose", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Flatten", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "create-pdf-with-background-template": { - "title": "Create PDF with Background Template Page", - "filename": "create-pdf-with-background-template.cs", - "description": "Shows how to load a PDF page as a background template and apply it to multiple pages using PdfPageStamp in Aspose.Pdf.", + "generate-accessible-pdf-with-tags": { + "title": "Generate Accessible Pdf With Tags", + "filename": "generate-accessible-pdf-with-tags.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "generate-crash-report-for-pdf-exceptions": { + "title": "Generate Crash Report For Pdf Exceptions", + "filename": "generate-crash-report-for-pdf-exceptions.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "generate-crash-report-pdf": { + "title": "Generate Crash Report PDF from Exception", + "filename": "generate-crash-report-pdf.cs", + "description": "Demonstrates capturing an exception, creating an HTML crash report with Aspose.Pdf, and converting that report into a PDF document.", "tags": [ + "crash-report", "pdf", - "background", - "template", - "stamp", - "Aspose.Pdf" + "exception", + "aspose-pdf", + "html-to-pdf" ], "apis_used": [ + "Aspose.Pdf.CrashReportOptions", + "Aspose.Pdf.PdfException.GenerateCrashReport", "Aspose.Pdf.Document", - "Aspose.Pdf.PdfPageStamp", - "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.HtmlLoadOptions", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "add-visible-digital-signature-and-lock-pdf": { - "title": "Add Visible Digital Signature Field and Lock PDF", - "filename": "add-visible-digital-signature-and-lock-pdf.cs", - "description": "The example loads an existing PDF, creates a visible signature field on the first page, signs it with a PKCS#1 certificate, makes the field read‑only and enforces append‑only mode to lock the document.", + "generate-crash-report-to-network-share": { + "title": "Generate Crash Report to Network Share with Aspose.Pdf", + "filename": "generate-crash-report-to-network-share.cs", + "description": "Demonstrates configuring CrashReportOptions to write an Aspose.Pdf crash report to a UNC network share, with fallback handling and verification of the generated file.", "tags": [ - "digital-signature", - "visible-signature", - "pdf", - "aspose-pdf", - "document-lock" + "crash-report", + "network-share", + "Aspose.Pdf", + "exception", + "file-output" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.PKCS1", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.Form.SignaturesAppendOnly" + "CrashReportOptions", + "CrashReportOptions.CrashReportDirectory", + "CrashReportOptions.CrashReportFilename", + "CrashReportOptions.CrashReportPath", + "PdfException.GenerateCrashReport" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "extract-text-from-pdf-to-utf8-file": { - "title": "Extract Text from PDF to UTF-8 File", - "filename": "extract-text-from-pdf-to-utf8-file.cs", - "description": "Demonstrates loading a PDF with Aspose.Pdf, extracting all page text using TextAbsorber, and writing the result to a UTF‑8 encoded text file.", + "generate-crash-report-with-custom-output-directory": { + "title": "Generate Crash Report with Custom Output Directory", + "filename": "generate-crash-report-with-custom-output-directory.cs", + "description": "Demonstrates how to configure a custom directory and filename for Aspose.Pdf crash reports using CrashReportOptions, then verifies that the report is created.", "tags": [ - "pdf", - "text-extraction", - "utf-8", - "aspose-pdf", - "csharp" + "crash-report", + "exception-handling", + "output-directory", + "Aspose.Pdf", + "debugging" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextAbsorber", - "Aspose.Pdf.Document.Pages.Accept", - "Aspose.Pdf.Text.TextAbsorber.Text" + "CrashReportOptions", + "PdfException.GenerateCrashReport" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "create-pdf-radio-button-group": { - "title": "Create PDF with Radio Button Group for Multiple Choice", - "filename": "create-pdf-radio-button-group.cs", - "description": "Demonstrates how to generate a PDF document containing a form with a radio button group representing a multiple‑choice question using Aspose.Pdf.", + "generate-dynamic-pdf-table": { + "title": "Generate a Dynamic PDF Table from a DataTable", + "filename": "generate-dynamic-pdf-table.cs", + "description": "Demonstrates how to build a DataTable at runtime and import it into an Aspose.Pdf Table that automatically expands rows, then save the result as a PDF.", "tags": [ "pdf", - "form", - "radio-button", - "aspose-pdf", + "table", + "aspose", + "datatable", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Forms.RadioButtonField", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.Position" + "Aspose.Pdf.Table", + "Aspose.Pdf.BorderInfo", + "Aspose.Pdf.Table.ImportDataTable", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "add-javascript-sum-numeric-pdf-form-fields": { - "title": "Add JavaScript to Sum Numeric PDF Form Fields", - "filename": "add-javascript-sum-numeric-pdf-form-fields.cs", - "description": "Demonstrates embedding Acrobat JavaScript in a PDF with Aspose.Pdf to calculate the total of two numeric form fields and display the result in a third field.", + "generate-pdf-crash-report": { + "title": "Generate PDF Crash Report on PdfException", + "filename": "generate-pdf-crash-report.cs", + "description": "Demonstrates catching a PdfException, configuring CrashReportOptions, and generating an HTML crash report file using Aspose.Pdf.", "tags": [ "pdf", - "javascript", - "form-fields", - "calculation", - "aspose-pdf" + "exception", + "crash-report", + "aspose", + "error-handling" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Forms.TextBoxField.ExecuteFieldJavaScript" + "Aspose.Pdf.PdfException", + "Aspose.Pdf.CrashReportOptions", + "Aspose.Pdf.PdfException.GenerateCrashReport" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "extract-xmp-metadata-from-pdf": { - "title": "Extract XMP Metadata from PDF", - "filename": "extract-xmp-metadata-from-pdf.cs", - "description": "Shows how to load a PDF using Aspose.Pdf, retrieve its embedded XMP metadata, and save it as an XML file.", + "generate-pdf-crash-report__v2": { + "title": "Generate PDF Crash Report with Custom Message", + "filename": "generate-pdf-crash-report__v2.cs", + "description": "Demonstrates how to catch a PdfException, configure custom crash‑report options, and generate an HTML crash report using Aspose.Pdf.", "tags": [ + "crash-report", "pdf", - "xmp", - "metadata", - "extraction", - "aspose" + "exception", + "debugging", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.GetXmpMetadata" + "Aspose.Pdf.PdfException", + "Aspose.Pdf.CrashReportOptions", + "Aspose.Pdf.PdfException.GenerateCrashReport" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "create-multi-page-table-pdf": { - "title": "Create Multi‑Page Table in PDF with Aspose.Pdf", - "filename": "create-multi-page-table-pdf.cs", - "description": "Shows how to generate a PDF containing a table that automatically splits across pages, repeats the header row, and auto‑fits column widths using Aspose.Pdf.", + "handle-pdf-errors-generate-crash-report": { + "title": "Handle Pdf Errors Generate Crash Report", + "filename": "handle-pdf-errors-generate-crash-report.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "insert-automatic-page-numbers-into-pdf": { + "title": "Insert Automatic Page Numbers into PDF", + "filename": "insert-automatic-page-numbers-into-pdf.cs", + "description": "Shows how to add a PageNumberStamp to every page of a PDF and reapply it after inserting a new page so the numbering updates automatically.", "tags": [ + "page-number", + "stamp", "pdf", - "table", - "pagination", - "aspose", - "csharp" + "Aspose.Pdf", + "insert-page" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Table", - "Aspose.Pdf.Table.ImportDataTable", - "Aspose.Pdf.ColumnAdjustment" + "Aspose.Pdf.Annotations.PageNumberStamp", + "Aspose.Pdf.Text.FontRepository.FindFont", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Pages.Insert", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "add-line-separator-annotation-to-pdf-page": { - "title": "Add Line Separator Annotation to PDF Page", - "filename": "add-line-separator-annotation-to-pdf-page.cs", - "description": "Demonstrates how to insert a horizontal line annotation as a visual separator on a specific PDF page using Aspose.Pdf and save the modified document.", + "insert-blank-cover-page-into-pdf": { + "title": "Insert Blank Cover Page into PDF", + "filename": "insert-blank-cover-page-into-pdf.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, insert an empty page at the beginning as a cover sheet, and save the updated document.", "tags": [ "pdf", - "annotation", - "line", - "separator", - "aspose" + "cover-page", + "insert-page", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Point", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.LineAnnotation", - "Aspose.Pdf.Annotations.Border" + "Aspose.Pdf.PageCollection", + "Aspose.Pdf.PageCollection.Insert", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Pages" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "set-pdf-page-rotation-90-degrees": { - "title": "Set PDF Page Rotation to 90 Degrees", - "filename": "set-pdf-page-rotation-90-degrees.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, set each page's initial rotation to 90° for portrait display on landscape devices, and save the modified file.", + "insert-high-res-image-into-pdf": { + "title": "Insert High Res Image Into Pdf", + "filename": "insert-high-res-image-into-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "insert-image-into-pdf-absolute-coordinates": { + "title": "Insert Image into PDF at Absolute Coordinates", + "filename": "insert-image-into-pdf-absolute-coordinates.cs", + "description": "The example creates a PDF document, defines a rectangle with absolute coordinates, and inserts an in‑memory PNG image into the page at that location.", "tags": [ "pdf", - "rotation", - "pages", + "image", + "absolute-position", "aspose-pdf", - "csharp" + "memory-stream" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rotation", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Pages" + "Aspose.Pdf.PageCollection.Add", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Page.AddImage", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "create-pdf-with-date-picker": { - "title": "Create PDF with Date Picker Form Field", - "filename": "create-pdf-with-date-picker.cs", - "description": "Shows how to generate a PDF that contains a date picker form field, set its format, and apply basic visual styling using Aspose.Pdf.", + "insert-pdf-page-into-another": { + "title": "Insert a PDF Page into Another PDF at a Specific Position", + "filename": "insert-pdf-page-into-another.cs", + "description": "Demonstrates loading two PDF documents, extracting a page from the source PDF, inserting it into a target PDF at a given position, and saving the result.", "tags": [ "pdf", - "form", - "date-picker", - "aspose", - "csharp" + "aspose.pdf", + "csharp", + "page-insertion", + "document-manipulation" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.DateField", - "Aspose.Pdf.Annotations.Border", - "Aspose.Pdf.Color", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Form.Add" + "Aspose.Pdf.PageCollection", + "Aspose.Pdf.PageCollection.Insert", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "extract-hyperlinks-from-pdf": { - "title": "Extract Hyperlinks from PDF and Save to Text File", - "filename": "extract-hyperlinks-from-pdf.cs", - "description": "Loads a PDF, iterates through its pages and link annotations, extracts the target URLs, and writes them to a plain‑text file.", + "interrupt-resume-large-pdf-save": { + "title": "Interrupt and Resume Large PDF Save Operation", + "filename": "interrupt-resume-large-pdf-save.cs", + "description": "Demonstrates how to pause a long-running PDF save using Aspose.Pdf's interrupt monitor, release resources, and then resume the incremental save later.", "tags": [ "pdf", - "hyperlink", - "extraction", - "aspose", - "text-output" + "interrupt", + "asynchronous", + "incremental-save", + "resource-management" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.LinkAnnotation", - "Aspose.Pdf.Annotations.GoToURIAction" + "Aspose.Pdf.Document.SaveAsync", + "Aspose.Pdf.Multithreading.InterruptMonitor", + "Aspose.Pdf.Multithreading.InterruptMonitor.Interrupt", + "Aspose.Pdf.Multithreading.InterruptMonitor.CancellationToken" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, @@ -1968,184 +2438,215 @@ "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "remove-all-annotations-from-pdf__v2": { - "title": "Remove All Annotations from PDF", - "filename": "remove-all-annotations-from-pdf__v2.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, iterate through each page, clear all annotations, and save the sanitized document.", + "log-pdf-sanitization-start-end-times": { + "title": "Log PDF Sanitization Start and End Times", + "filename": "log-pdf-sanitization-start-end-times.cs", + "description": "Demonstrates sanitizing a PDF with Aspose.Pdf while recording the operation's start time, end time, and duration to an audit log for auditing purposes.", "tags": [ "pdf", - "annotations", "sanitization", - "csharp", - "aspose" + "logging", + "audit", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", + "Aspose.Pdf.Document.EnableSignatureSanitization", + "Aspose.Pdf.Document.Validate", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Page.Annotations", - "Aspose.Pdf.AnnotationsCollection.Clear" + "Aspose.Pdf.PdfFormat" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "sanitize-pdf-remove-embedded-scripts": { - "title": "Sanitize PDF by Removing Embedded Scripts and Attachments", - "filename": "sanitize-pdf-remove-embedded-scripts.cs", - "description": "Demonstrates how to configure Aspose.Pdf's hidden data sanitizer to delete JavaScript actions and embedded files before sanitizing a PDF document.", + "merge-pdfs-with-bookmarks": { + "title": "Merge PDFs and Preserve Bookmarks with Aspose.Pdf", + "filename": "merge-pdfs-with-bookmarks.cs", + "description": "Demonstrates how to combine two PDF files into one while copying all pages and preserving the bookmark hierarchy from both source documents using Aspose.Pdf.", "tags": [ "pdf", - "sanitization", - "javascript", - "embedded-files", - "aspose-pdf" + "merge", + "bookmarks", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Security.HiddenDataSanitization.HiddenDataSanitizationOptions", - "Aspose.Pdf.Security.HiddenDataSanitization.HiddenDataSanitizer", - "Aspose.Pdf.Document.EmbeddedFiles", - "Aspose.Pdf.Security.HiddenDataSanitization.HiddenDataSanitizer.Sanitize", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page", + "Aspose.Pdf.OutlineItemCollection", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Pages.Add" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "sanitize-pdf-remove-metadata-private-info": { - "title": "Sanitize PDF by Removing Metadata and Private Information", - "filename": "sanitize-pdf-remove-metadata-private-info.cs", - "description": "Demonstrates how to clear standard metadata and private data such as search indexes from a PDF using Aspose.Pdf's optimization features, then save the sanitized document.", + "merge-two-pdfs-preserve-bookmarks": { + "title": "Merge Two Pdfs Preserve Bookmarks", + "filename": "merge-two-pdfs-preserve-bookmarks.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "merged-header-table-pdf": { + "title": "Merged Header Table Pdf", + "filename": "merged-header-table-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "pdf-header-current-date-javascript": { + "title": "Pdf Header Current Date Javascript", + "filename": "pdf-header-current-date-javascript.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "pdf-processing-with-crash-report": { + "title": "PDF Processing with Detailed Crash Report Generation", + "filename": "pdf-processing-with-crash-report.cs", + "description": "Demonstrates loading a PDF, adding a blank page, saving it, and generating detailed crash reports for Aspose.Pdf exceptions and any unexpected errors using try‑catch blocks.", "tags": [ "pdf", - "metadata", - "sanitization", - "optimization", - "aspose" + "crash-report", + "exception-handling", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.RemoveMetadata", - "Aspose.Pdf.Optimization.OptimizationOptions", - "Aspose.Pdf.Document.OptimizeResources", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Pages.Add", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.PdfException", + "Aspose.Pdf.CrashReportOptions", + "Aspose.Pdf.PdfException.GenerateCrashReport" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "convert-pdf-pages-to-rasterized-images-html": { - "title": "Convert PDF Pages to Rasterized Images in HTML", - "filename": "convert-pdf-pages-to-rasterized-images-html.cs", - "description": "Demonstrates how to load a PDF with Aspose.PDF and save it as HTML where each page is rasterized into external PNG images using a high‑resolution setting.", + "pdf-sanitization-audit-log": { + "title": "Pdf Sanitization Audit Log", + "filename": "pdf-sanitization-audit-log.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "print-pdf-using-default-handler": { + "title": "Print PDF Document Using Default PDF Handler", + "filename": "print-pdf-using-default-handler.cs", + "description": "Shows how to verify a PDF file exists and is valid, then send it to the printer by launching the OS default PDF viewer with the \"print\" verb via Process.Start.", "tags": [ "pdf", - "html", - "rasterization", - "image", - "aspose-pdf" + "printing", + "process", + "validation", + "aspnet" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.HtmlSaveOptions", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.HtmlSaveOptions.RasterImagesSavingMode", - "Aspose.Pdf.HtmlSaveOptions.PartsEmbeddingMode", - "Aspose.Pdf.HtmlSaveOptions.SplitIntoPages" + "Aspose.Pdf.Document" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "compress-pdf-images-and-export-jpeg-quality-80": { - "title": "Compress PDF Images and Export Pages as JPEG with Quality 80", - "filename": "compress-pdf-images-and-export-jpeg-quality-80.cs", - "description": "Shows how to compress embedded images in a PDF using JPEG quality 80 via OptimizationOptions, then render each page to a JPEG file with the same quality.", + "print-pdf-using-os-verb": { + "title": "Print Pdf Using Os Verb", + "filename": "print-pdf-using-os-verb.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "rasterize-pdf-pages-to-png": { + "title": "Rasterize PDF Pages to PNG with Lossless Compression", + "filename": "rasterize-pdf-pages-to-png.cs", + "description": "Demonstrates how to convert each page of a PDF into a high‑resolution PNG image while applying lossless PNG compression using Aspose.Pdf's optimization options.", "tags": [ "pdf", - "image-compression", - "jpeg", - "optimization", - "export" + "png", + "rasterization", + "compression", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Optimization.OptimizationOptions", + "Aspose.Pdf.Optimization.OptimizationOptions.All", "Aspose.Pdf.Optimization.ImageCompressionOptions", - "Aspose.Pdf.Devices.JpegDevice", + "Aspose.Pdf.Devices.PngDevice", "Aspose.Pdf.Devices.Resolution", - "Aspose.Pdf.Document.OptimizeResources", - "Aspose.Pdf.Devices.JpegDevice.Process" + "Aspose.Pdf.Devices.PngDevice.Process" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "convert-pdf-pages-to-jpeg-no-compression": { - "title": "Convert PDF Pages to JPEG without Compression", - "filename": "convert-pdf-pages-to-jpeg-no-compression.cs", - "description": "Shows how to render each PDF page to a high‑resolution JPEG image using Aspose.Pdf while preserving original quality by disabling compression.", + "rasterize-pdf-to-png-lossless-compression": { + "title": "Rasterize Pdf To Png Lossless Compression", + "filename": "rasterize-pdf-to-png-lossless-compression.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "remove-all-annotations-from-pdf": { + "title": "Remove All Annotations from PDF", + "filename": "remove-all-annotations-from-pdf.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, iterate through each page, delete all annotations, and save a clean version.", "tags": [ "pdf", - "jpeg", - "image-conversion", + "annotations", + "remove", "aspose", - "no-compression" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Devices.JpegDevice", - "Aspose.Pdf.Devices.Resolution", "Aspose.Pdf.PageCollection", - "Aspose.Pdf.Devices.JpegDevice.Process" + "Aspose.Pdf.Page.Annotations", + "Aspose.Pdf.Annotations.Delete", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "convert-pdf-pages-to-png-images": { - "title": "Convert PDF Pages to PNG Images", - "filename": "convert-pdf-pages-to-png-images.cs", - "description": "Demonstrates how to load a PDF with Aspose.Pdf, iterate through each page, and save every page as an individual PNG image file.", - "tags": [ - "pdf", - "png", - "image-conversion", - "batch", - "aspnet" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Document.ConvertPageToPNGMemoryStream", - "Aspose.Pdf.Document.Pages" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:21:22Z", - "status": "verified" - }, - "selective-page-rasterization-hidden-data-sanitizer": { - "title": "Selective Page Rasterization with Hidden Data Sanitization", - "filename": "selective-page-rasterization-hidden-data-sanitizer.cs", - "description": "Demonstrates how to sanitize hidden data, optimize PDF resources, and rasterize specific pages by flattening transparency and replacing the original pages.", + "remove-all-annotations-from-pdf__v2": { + "title": "Remove All Annotations from PDF", + "filename": "remove-all-annotations-from-pdf__v2.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, iterate through each page, clear all annotations, and save the sanitized document.", "tags": [ "pdf", - "rasterization", - "hidden-data", - "optimization", + "annotations", + "sanitization", + "csharp", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.HiddenDataSanitizerOptions", - "Aspose.Pdf.OptimizationOptions", - "Aspose.Pdf.Document.OptimizeResources", - "Aspose.Pdf.Document.FlattenTransparency", - "Aspose.Pdf.PageCollection.Insert", - "Aspose.Pdf.PageCollection.Delete" + "Aspose.Pdf.Page", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Page.Annotations", + "Aspose.Pdf.AnnotationsCollection.Clear" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, @@ -2172,295 +2673,312 @@ "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "sanitize-pdfs-remove-metadata": { - "title": "Sanitize PDFs by Removing Metadata and Optimizing Resources", - "filename": "sanitize-pdfs-remove-metadata.cs", - "description": "The example loads each PDF from a folder, removes metadata, compliance information, flattens forms, optimizes resources, and saves the cleaned file to an output directory.", - "tags": [ - "pdf", - "metadata", - "sanitization", - "aspose-pdf", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.RemoveMetadata", - "Aspose.Pdf.Document.RemovePdfUaCompliance", - "Aspose.Pdf.Document.RemovePdfaCompliance", - "Aspose.Pdf.Document.Flatten", - "Aspose.Pdf.Document.OptimizeResources", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:21:22Z", + "remove-annotations-attachments-from-pdf": { + "title": "Remove Annotations Attachments From Pdf", + "filename": "remove-annotations-attachments-from-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "generate-pdf-crash-report": { - "title": "Generate PDF Crash Report on PdfException", - "filename": "generate-pdf-crash-report.cs", - "description": "Demonstrates catching a PdfException, configuring CrashReportOptions, and generating an HTML crash report file using Aspose.Pdf.", - "tags": [ - "pdf", - "exception", - "crash-report", - "aspose", - "error-handling" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.PdfException", - "Aspose.Pdf.CrashReportOptions", - "Aspose.Pdf.PdfException.GenerateCrashReport" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:21:22Z", + "remove-hidden-data-reapply-headings": { + "title": "Remove Hidden Data Reapply Headings", + "filename": "remove-hidden-data-reapply-headings.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "customize-crash-report-filename-message": { - "title": "Customize Crash Report Filename and Message in Aspose.Pdf", - "filename": "customize-crash-report-filename-message.cs", - "description": "Shows how to set a custom message and specify a custom file name for a crash report generated by Aspose.Pdf when an exception occurs.", + "remove-hidden-data-rebuild-headings-pdf": { + "title": "Remove Hidden Data and Rebuild Headings in PDF", + "filename": "remove-hidden-data-rebuild-headings-pdf.cs", + "description": "Loads a PDF, strips hidden metadata and PDF/A/UA compliance flags, optimizes resources, reprocesses paragraphs to restore heading navigation, and saves the cleaned document.", "tags": [ - "crash-report", - "exception-handling", - "custom-message", - "Aspose.Pdf", - "debugging" + "pdf-cleaning", + "metadata", + "headings", + "optimization", + "aspose-pdf" ], "apis_used": [ - "CrashReportOptions", - "CrashReportOptions.CustomMessage", - "CrashReportOptions.CrashReportFilename", - "CrashReportOptions.CrashReportPath", - "PdfException.GenerateCrashReport" + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.RemoveMetadata", + "Aspose.Pdf.Document.RemovePdfaCompliance", + "Aspose.Pdf.Document.RemovePdfUaCompliance", + "Aspose.Pdf.Document.OptimizeResources", + "Aspose.Pdf.Document.ProcessParagraphs", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "generate-crash-report-with-custom-output-directory": { - "title": "Generate Crash Report with Custom Output Directory", - "filename": "generate-crash-report-with-custom-output-directory.cs", - "description": "Demonstrates how to configure a custom directory and filename for Aspose.Pdf crash reports using CrashReportOptions, then verifies that the report is created.", + "remove-javascript-from-pdf": { + "title": "Remove JavaScript from PDF", + "filename": "remove-javascript-from-pdf.cs", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, clear document‑level, page‑level and link‑annotation JavaScript actions, and save the cleaned file.", "tags": [ - "crash-report", - "exception-handling", - "output-directory", - "Aspose.Pdf", - "debugging" + "javascript", + "pdf", + "security", + "aspose-pdf", + "annotations" ], "apis_used": [ - "CrashReportOptions", - "PdfException.GenerateCrashReport" + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Page.Actions", + "Aspose.Pdf.Annotations.LinkAnnotation", + "Aspose.Pdf.Annotations.JavascriptAction" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "pdf-processing-with-crash-report": { - "title": "PDF Processing with Detailed Crash Report Generation", - "filename": "pdf-processing-with-crash-report.cs", - "description": "Demonstrates loading a PDF, adding a blank page, saving it, and generating detailed crash reports for Aspose.Pdf exceptions and any unexpected errors using try‑catch blocks.", + "remove-metadata-javascript-embedded-files-pdf": { + "title": "Remove Metadata, JavaScript, and Embedded Files from a PDF", + "filename": "remove-metadata-javascript-embedded-files-pdf.cs", + "description": "Demonstrates how to clean a PDF by removing standard and hidden metadata, embedded attachments, and JavaScript actions using Aspose.Pdf, then saving the reduced‑size document.", "tags": [ "pdf", - "crash-report", - "exception-handling", - "aspose-pdf", + "metadata", + "cleanup", + "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.PdfException", - "Aspose.Pdf.CrashReportOptions", - "Aspose.Pdf.PdfException.GenerateCrashReport" + "Aspose.Pdf.Document.RemoveMetadata", + "Aspose.Pdf.Document.EmbeddedFiles", + "Aspose.Pdf.Document.OptimizeResources", + "Aspose.Pdf.Optimization.OptimizationOptions.All", + "Aspose.Pdf.Document.RemovePdfaCompliance", + "Aspose.Pdf.Document.RemovePdfUaCompliance" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "add-level-1-heading-to-pdf": { - "title": "Add Level 1 Heading to PDF using Tagged Content", - "filename": "add-level-1-heading-to-pdf.cs", - "description": "Demonstrates how to create a PDF document, use the tagged content API to insert a Level 1 heading element, and save the file.", + "remove-page-from-pdf": { + "title": "Remove a Page from PDF and Renumber Remaining Pages", + "filename": "remove-page-from-pdf.cs", + "description": "Demonstrates how to delete a specific page from a PDF using Aspose.Pdf and automatically renumber the remaining pages before saving the result.", "tags": [ "pdf", - "heading", - "tagged-content", - "structure", - "aspose-pdf" + "delete-page", + "aspose", + "csharp", + "renumber" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.HeaderElement", - "Aspose.Pdf.LogicalStructure.StructureElement", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.PageCollection.Delete", + "Aspose.Pdf.PageCollection.Count", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "add-hierarchical-numbered-headings": { - "title": "Add Hierarchical Numbered Headings to PDF", - "filename": "add-hierarchical-numbered-headings.cs", - "description": "Shows how to apply decimal numbering to headings and create hierarchical numbering (chapters and sections) in a PDF using Aspose.Pdf.", + "replace-image-in-pdf-page": { + "title": "Replace Image in PDF Page", + "filename": "replace-image-in-pdf-page.cs", + "description": "Demonstrates how to replace an existing image on a PDF page with a new image while preserving its layout (position, size, rotation) using Aspose.Pdf.", "tags": [ "pdf", - "heading", - "numbering", - "hierarchical", - "aspose-pdf" + "image", + "replace", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Text.Heading", - "Aspose.Pdf.Text.Paragraphs", + "Aspose.Pdf.ImagePlacementAbsorber", + "Aspose.Pdf.ImagePlacement", + "Aspose.Pdf.ImagePlacement.Replace", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "structured-toc-with-headings": { - "title": "Create Structured Table of Contents with Headings", - "filename": "structured-toc-with-headings.cs", - "description": "Demonstrates adding Heading elements with auto‑sequencing and building a tagged PDF Table of Contents using Aspose.Pdf.", + "replace-pdf-page-with-html": { + "title": "Replace PDF Page with HTML-Generated Page", + "filename": "replace-pdf-page-with-html.cs", + "description": "Demonstrates how to replace a specific page in an existing PDF with a new page created from HTML content using Aspose.Pdf's HTML-to-PDF conversion.", "tags": [ "pdf", - "toc", - "headings", - "tagged-content", + "html", + "page-replacement", + "conversion", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Tagged.Heading", - "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.TOCElement", - "Aspose.Pdf.Tagged.TOCIElement", - "Aspose.Pdf.Text.FontRepository.FindFont", + "Aspose.Pdf.HtmlLoadOptions", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Document.Pages.Delete", + "Aspose.Pdf.Document.Pages.Insert", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "add-new-bookmark-to-pdf-outline": { - "title": "Add New Bookmark to PDF Outline", - "filename": "add-new-bookmark-to-pdf-outline.cs", - "description": "Demonstrates how to create an outline (bookmark) in an existing PDF, set its title, style, and destination, add it to the document's outline hierarchy, and save the updated file.", + "replace-text-in-pdf-preserving-formatting": { + "title": "Replace Text In Pdf Preserving Formatting", + "filename": "replace-text-in-pdf-preserving-formatting.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "replace-word-in-pdf": { + "title": "Replace Word in PDF While Preserving Formatting", + "filename": "replace-word-in-pdf.cs", + "description": "Demonstrates how to search for a specific word in a PDF and replace it with another word using Aspose.Pdf, while automatically keeping the original font, size, and color of the text.", "tags": [ "pdf", - "bookmark", - "outline", - "aspose-pdf", + "text-replacement", + "aspose", + "formatting", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.OutlineItemCollection", - "Aspose.Pdf.XYZExplicitDestination", - "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragmentAbsorber", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.PageCollection.Accept", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "add-dynamic-heading-to-pdf": { - "title": "Add Dynamic Heading to PDF", - "filename": "add-dynamic-heading-to-pdf.cs", - "description": "Shows how to load a PDF template, create a heading with dynamic date and user information, position and style it, and save the updated document.", + "roman-numeral-headings-pdf": { + "title": "Create PDF with Roman Numeral Chapter Headings and Validate Sequence", + "filename": "roman-numeral-headings-pdf.cs", + "description": "Demonstrates how to generate a PDF with chapter headings formatted as uppercase Roman numerals, then reloads the file to verify that each heading follows the correct numeric order.", "tags": [ "pdf", - "heading", - "dynamic-text", - "aspose-pdf", - "csharp" + "roman-numerals", + "headings", + "validation", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Heading", - "Aspose.Pdf.Position", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.FontRepository" + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.FontRepository", + "Aspose.Pdf.Text.TextAbsorber", + "Aspose.Pdf.Position" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "create-pdf-numbered-headings-sanitize": { - "title": "Create PDF with Numbered Headings and Sanitize Structure", - "filename": "create-pdf-numbered-headings-sanitize.cs", - "description": "The example creates a PDF containing numbered headings and body text, enables auto‑tagging to preserve the heading hierarchy, then sanitizes the document by removing metadata and PDF/UA compliance flags.", + "rotate-pdf-pages-90-degrees": { + "title": "Rotate Pdf Pages 90 Degrees", + "filename": "rotate-pdf-pages-90-degrees.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "sanitize-multiple-pdfs": { + "title": "Sanitize Multiple Pdfs", + "filename": "sanitize-multiple-pdfs.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "sanitize-pdf-add-heading": { + "title": "Sanitize PDF and Add Heading with Auto‑Tagging", + "filename": "sanitize-pdf-add-heading.cs", + "description": "Shows how to enable Aspose.Pdf auto‑tagging to sanitize a PDF, set language and title metadata, and create a top‑level heading and paragraph for improved navigation.", "tags": [ "pdf", - "headings", "auto-tagging", - "sanitize", - "aspose-pdf" + "heading", + "accessibility", + "structure" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.FontRepository.FindFont", "Aspose.Pdf.AutoTaggingSettings", - "Aspose.Pdf.Document.RemoveMetadata", - "Aspose.Pdf.Document.RemovePdfUaCompliance", - "Aspose.Pdf.Document.Optimize" + "Aspose.Pdf.Tagged.ITaggedContent", + "Aspose.Pdf.LogicalStructure.StructureElement", + "Aspose.Pdf.Tagged.HeaderElement", + "Aspose.Pdf.Tagged.ParagraphElement" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "remove-hidden-data-rebuild-headings-pdf": { - "title": "Remove Hidden Data and Rebuild Headings in PDF", - "filename": "remove-hidden-data-rebuild-headings-pdf.cs", - "description": "Loads a PDF, strips hidden metadata and PDF/A/UA compliance flags, optimizes resources, reprocesses paragraphs to restore heading navigation, and saves the cleaned document.", + "sanitize-pdf-remove-embedded-scripts": { + "title": "Sanitize PDF by Removing Embedded Scripts and Attachments", + "filename": "sanitize-pdf-remove-embedded-scripts.cs", + "description": "Demonstrates how to configure Aspose.Pdf's hidden data sanitizer to delete JavaScript actions and embedded files before sanitizing a PDF document.", "tags": [ - "pdf-cleaning", - "metadata", - "headings", - "optimization", + "pdf", + "sanitization", + "javascript", + "embedded-files", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.RemoveMetadata", - "Aspose.Pdf.Document.RemovePdfaCompliance", - "Aspose.Pdf.Document.RemovePdfUaCompliance", - "Aspose.Pdf.Document.OptimizeResources", - "Aspose.Pdf.Document.ProcessParagraphs", + "Aspose.Pdf.Security.HiddenDataSanitization.HiddenDataSanitizationOptions", + "Aspose.Pdf.Security.HiddenDataSanitization.HiddenDataSanitizer", + "Aspose.Pdf.Document.EmbeddedFiles", + "Aspose.Pdf.Security.HiddenDataSanitization.HiddenDataSanitizer.Sanitize", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "batch-sanitize-pdfs": { - "title": "Batch Sanitize PDFs and Export Cleaned Versions", - "filename": "batch-sanitize-pdfs.cs", - "description": "Shows how to iterate over a folder of PDF files, remove metadata and compliance information, flatten content, optimize resources, and save sanitized copies to a separate directory using Aspose.Pdf.", + "sanitize-pdf-remove-hidden-content-keep-metadata": { + "title": "Sanitize Pdf Remove Hidden Content Keep Metadata", + "filename": "sanitize-pdf-remove-hidden-content-keep-metadata.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "sanitize-pdf-remove-hidden-data-keep-metadata": { + "title": "Sanitize PDF by Removing Hidden Data While Preserving Metadata", + "filename": "sanitize-pdf-remove-hidden-data-keep-metadata.cs", + "description": "Demonstrates how to configure Aspose.Pdf to strip all hidden content from a PDF except its metadata, using optimization options and compliance flag removal.", "tags": [ "pdf", "sanitization", - "batch", "metadata", - "aspose-pdf" + "optimization", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.RemoveMetadata", "Aspose.Pdf.Document.RemovePdfaCompliance", "Aspose.Pdf.Document.RemovePdfUaCompliance", - "Aspose.Pdf.Document.Flatten", + "Aspose.Pdf.Document.EnableSignatureSanitization", + "Aspose.Pdf.Optimization.OptimizationOptions.All", "Aspose.Pdf.Document.OptimizeResources", "Aspose.Pdf.Document.Save" ], @@ -2491,45 +3009,55 @@ "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "check-hidden-annotations-in-pdf": { - "title": "Check for Hidden Annotations in PDF", - "filename": "check-hidden-annotations-in-pdf.cs", - "description": "Demonstrates how to load a PDF with Aspose.Pdf and inspect each page for annotations that have the Hidden flag set, returning a boolean result.", + "sanitize-pdf-remove-metadata-private-info": { + "title": "Sanitize PDF by Removing Metadata and Private Information", + "filename": "sanitize-pdf-remove-metadata-private-info.cs", + "description": "Demonstrates how to clear standard metadata and private data such as search indexes from a PDF using Aspose.Pdf's optimization features, then save the sanitized document.", "tags": [ "pdf", - "annotations", - "hidden", - "validation", + "metadata", + "sanitization", + "optimization", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.AnnotationFlags", - "Aspose.Pdf.Annotations.AnnotationCollection" + "Aspose.Pdf.Document.RemoveMetadata", + "Aspose.Pdf.Optimization.OptimizationOptions", + "Aspose.Pdf.Document.OptimizeResources", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "sanitize-pdf-remove-hidden-data-keep-metadata": { - "title": "Sanitize PDF by Removing Hidden Data While Preserving Metadata", - "filename": "sanitize-pdf-remove-hidden-data-keep-metadata.cs", - "description": "Demonstrates how to configure Aspose.Pdf to strip all hidden content from a PDF except its metadata, using optimization options and compliance flag removal.", + "sanitize-pdf-remove-metadata": { + "title": "Sanitize Pdf Remove Metadata", + "filename": "sanitize-pdf-remove-metadata.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "sanitize-pdfs-remove-metadata": { + "title": "Sanitize PDFs by Removing Metadata and Optimizing Resources", + "filename": "sanitize-pdfs-remove-metadata.cs", + "description": "The example loads each PDF from a folder, removes metadata, compliance information, flattens forms, optimizes resources, and saves the cleaned file to an output directory.", "tags": [ "pdf", - "sanitization", "metadata", - "optimization", - "Aspose.Pdf" + "sanitization", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.RemovePdfaCompliance", + "Aspose.Pdf.Document.RemoveMetadata", "Aspose.Pdf.Document.RemovePdfUaCompliance", - "Aspose.Pdf.Document.EnableSignatureSanitization", - "Aspose.Pdf.Optimization.OptimizationOptions.All", + "Aspose.Pdf.Document.RemovePdfaCompliance", + "Aspose.Pdf.Document.Flatten", "Aspose.Pdf.Document.OptimizeResources", "Aspose.Pdf.Document.Save" ], @@ -2537,181 +3065,203 @@ "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "rasterize-pdf-pages-to-png": { - "title": "Rasterize PDF Pages to PNG with Lossless Compression", - "filename": "rasterize-pdf-pages-to-png.cs", - "description": "Demonstrates how to convert each page of a PDF into a high‑resolution PNG image while applying lossless PNG compression using Aspose.Pdf's optimization options.", + "selective-page-rasterization-hidden-data-sanitizer": { + "title": "Selective Page Rasterization with Hidden Data Sanitization", + "filename": "selective-page-rasterization-hidden-data-sanitizer.cs", + "description": "Demonstrates how to sanitize hidden data, optimize PDF resources, and rasterize specific pages by flattening transparency and replacing the original pages.", "tags": [ "pdf", - "png", "rasterization", - "compression", + "hidden-data", + "optimization", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Optimization.OptimizationOptions.All", - "Aspose.Pdf.Optimization.ImageCompressionOptions", - "Aspose.Pdf.Devices.PngDevice", - "Aspose.Pdf.Devices.Resolution", - "Aspose.Pdf.Devices.PngDevice.Process" + "Aspose.Pdf.HiddenDataSanitizerOptions", + "Aspose.Pdf.OptimizationOptions", + "Aspose.Pdf.Document.OptimizeResources", + "Aspose.Pdf.Document.FlattenTransparency", + "Aspose.Pdf.PageCollection.Insert", + "Aspose.Pdf.PageCollection.Delete" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "convert-pdf-pages-to-high-resolution-tiff": { - "title": "Convert PDF Pages to High-Resolution TIFF Images", - "filename": "convert-pdf-pages-to-high-resolution-tiff.cs", - "description": "Demonstrates how to load a PDF with Aspose.Pdf, set a custom DPI, and convert each page to a lossless TIFF file using TiffDevice.", + "set-pdf-document-metadata": { + "title": "Set PDF Document Metadata (Creation/Modification Dates and Keywords)", + "filename": "set-pdf-document-metadata.cs", + "description": "Demonstrates how to load an existing PDF with Aspose.Pdf, update its creation and modification dates, add custom keywords, and save the updated file.", "tags": [ "pdf", - "tiff", - "conversion", - "dpi", - "aspose" + "metadata", + "creation-date", + "keywords", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Devices.Resolution", - "Aspose.Pdf.Devices.TiffSettings", - "Aspose.Pdf.Devices.TiffDevice", - "Aspose.Pdf.Devices.TiffDevice.Process" + "Aspose.Pdf.DocumentInfo", + "Aspose.Pdf.DocumentInfo.CreationDate", + "Aspose.Pdf.DocumentInfo.ModDate", + "Aspose.Pdf.DocumentInfo.Keywords", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "convert-pdf-pages-to-png-images__v2": { - "title": "Convert PDF Pages to PNG Images and Verify Count", - "filename": "convert-pdf-pages-to-png-images__v2.cs", - "description": "Loads a PDF, renders each page to a PNG file using Aspose.Pdf, and asserts that the number of generated images matches the page count.", + "set-pdf-expiration-date": { + "title": "Set PDF Expiration Date with JavaScript", + "filename": "set-pdf-expiration-date.cs", + "description": "Shows how to embed a JavaScript action in a PDF using Aspose.Pdf so the document closes automatically after a specified expiration date.", "tags": [ "pdf", - "image-conversion", - "unit-test", + "expiration", + "javascript", "aspose", - "png" + "openaction" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Devices.PngDevice", - "Aspose.Pdf.Devices.PngDevice.Process", - "Aspose.Pdf.Document.Pages" + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Document.OpenAction", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "roman-numeral-headings-pdf": { - "title": "Create PDF with Roman Numeral Chapter Headings and Validate Sequence", - "filename": "roman-numeral-headings-pdf.cs", - "description": "Demonstrates how to generate a PDF with chapter headings formatted as uppercase Roman numerals, then reloads the file to verify that each heading follows the correct numeric order.", + "set-pdf-page-rotation-90-degrees": { + "title": "Set PDF Page Rotation to 90 Degrees", + "filename": "set-pdf-page-rotation-90-degrees.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, set each page's initial rotation to 90° for portrait display on landscape devices, and save the modified file.", "tags": [ "pdf", - "roman-numerals", - "headings", - "validation", - "aspose-pdf" + "rotation", + "pages", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.FontRepository", - "Aspose.Pdf.Text.TextAbsorber", - "Aspose.Pdf.Position" + "Aspose.Pdf.Rotation", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Pages" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "sanitize-pdf-add-heading": { - "title": "Sanitize PDF and Add Heading with Auto‑Tagging", - "filename": "sanitize-pdf-add-heading.cs", - "description": "Shows how to enable Aspose.Pdf auto‑tagging to sanitize a PDF, set language and title metadata, and create a top‑level heading and paragraph for improved navigation.", + "specify-crash-report-output-directory": { + "title": "Specify Crash Report Output Directory", + "filename": "specify-crash-report-output-directory.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "structured-toc-with-headings": { + "title": "Create Structured Table of Contents with Headings", + "filename": "structured-toc-with-headings.cs", + "description": "Demonstrates adding Heading elements with auto‑sequencing and building a tagged PDF Table of Contents using Aspose.Pdf.", "tags": [ "pdf", - "auto-tagging", - "heading", - "accessibility", - "structure" + "toc", + "headings", + "tagged-content", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.AutoTaggingSettings", + "Aspose.Pdf.Page", + "Aspose.Pdf.Tagged.Heading", "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.LogicalStructure.StructureElement", - "Aspose.Pdf.Tagged.HeaderElement", - "Aspose.Pdf.Tagged.ParagraphElement" + "Aspose.Pdf.Tagged.TOCElement", + "Aspose.Pdf.Tagged.TOCIElement", + "Aspose.Pdf.Text.FontRepository.FindFont", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "generate-pdf-crash-report__v2": { - "title": "Generate PDF Crash Report with Custom Message", - "filename": "generate-pdf-crash-report__v2.cs", - "description": "Demonstrates how to catch a PdfException, configure custom crash‑report options, and generate an HTML crash report using Aspose.Pdf.", + "test-convert-pages-to-images": { + "title": "Test Convert Pages To Images", + "filename": "test-convert-pages-to-images.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "update-pdf-author-title-metadata": { + "title": "Update PDF Author and Title Metadata", + "filename": "update-pdf-author-title-metadata.cs", + "description": "Demonstrates how to read existing PDF metadata, change the Author and Title fields, and save the updated document using Aspose.Pdf.", "tags": [ - "crash-report", "pdf", - "exception", - "debugging", + "metadata", + "author", + "title", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PdfException", - "Aspose.Pdf.CrashReportOptions", - "Aspose.Pdf.PdfException.GenerateCrashReport" + "Aspose.Pdf.DocumentInfo", + "Aspose.Pdf.Document.Info", + "Aspose.Pdf.DocumentInfo.Author", + "Aspose.Pdf.DocumentInfo.Title", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "generate-crash-report-to-network-share": { - "title": "Generate Crash Report to Network Share with Aspose.Pdf", - "filename": "generate-crash-report-to-network-share.cs", - "description": "Demonstrates configuring CrashReportOptions to write an Aspose.Pdf crash report to a UNC network share, with fallback handling and verification of the generated file.", + "validate-pdf-a1a-compliance-report": { + "title": "Validate PDF for PDF/A-1A Compliance and Generate Report", + "filename": "validate-pdf-a1a-compliance-report.cs", + "description": "The example loads a PDF file, validates it against the PDF/A‑1A standard using Aspose.Pdf, and writes a detailed validation report to a text file.", "tags": [ - "crash-report", - "network-share", - "Aspose.Pdf", - "exception", - "file-output" + "pdf", + "pdfa", + "validation", + "report", + "aspose-pdf" ], "apis_used": [ - "CrashReportOptions", - "CrashReportOptions.CrashReportDirectory", - "CrashReportOptions.CrashReportFilename", - "CrashReportOptions.CrashReportPath", - "PdfException.GenerateCrashReport" + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Validate", + "Aspose.Pdf.PdfFormat" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" }, - "log-pdf-sanitization-start-end-times": { - "title": "Log PDF Sanitization Start and End Times", - "filename": "log-pdf-sanitization-start-end-times.cs", - "description": "Demonstrates sanitizing a PDF with Aspose.Pdf while recording the operation's start time, end time, and duration to an audit log for auditing purposes.", + "validate-pdf-a1b-compliance": { + "title": "Validate PDF for PDF/A‑1B compliance and log results", + "filename": "validate-pdf-a1b-compliance.cs", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, validate it against the PDF/A‑1B standard, and write a validation log file indicating any non‑conformant elements.", "tags": [ "pdf", - "sanitization", - "logging", - "audit", - "aspose-pdf" + "pdfa", + "validation", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.EnableSignatureSanitization", "Aspose.Pdf.Document.Validate", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.PdfFormat" + "Aspose.Pdf.PdfFormat", + "Aspose.Pdf.Document.IsPdfaCompliant", + "Aspose.Pdf.Document.Dispose" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:21:22Z", "status": "verified" } diff --git a/facades-acroforms/AGENTS.md b/facades-acroforms/AGENTS.md index e7a4653ea..fd30ee943 100644 --- a/facades-acroforms/AGENTS.md +++ b/facades-acroforms/AGENTS.md @@ -8,7 +8,7 @@ parent: ../agents.md # AGENTS - facades-acroforms -> **Facades AcroForms** in PDF using C# / .NET -- **41** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. +> **Facades AcroForms** in PDF using C# / .NET -- **59** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. ## Persona @@ -23,25 +23,25 @@ See the root [agents.md](../agents.md) for repository-wide conventions and bound ## Required Namespaces -- `using Aspose.Pdf.Facades;` (40/41 files) ← category-specific -- `using Aspose.Pdf;` (11/41 files) -- `using Aspose.Pdf.Forms;` (3/41 files) -- `using Aspose.Pdf.Text;` (1/41 files) -- `using System;` (41/41 files) -- `using System.IO;` (39/41 files) -- `using System.Collections.Generic;` (11/41 files) -- `using System.Text.Json;` (8/41 files) -- `using System.Linq;` (3/41 files) -- `using System.Text;` (3/41 files) -- `using System.Threading.Tasks;` (2/41 files) -- `using System.Xml;` (2/41 files) -- `using Newtonsoft.Json;` (1/41 files) -- `using System.Collections;` (1/41 files) -- `using System.Text.Json.Nodes;` (1/41 files) -- `using System.Threading;` (1/41 files) -- `using System.Xml.Linq;` (1/41 files) -- `using System.Xml.Schema;` (1/41 files) -- `using System.Xml.Xsl;` (1/41 files) +- `using Aspose.Pdf.Facades;` (40/59 files) ← category-specific +- `using Aspose.Pdf;` (11/59 files) +- `using Aspose.Pdf.Forms;` (3/59 files) +- `using Aspose.Pdf.Text;` (1/59 files) +- `using System;` (41/59 files) +- `using System.IO;` (39/59 files) +- `using System.Collections.Generic;` (11/59 files) +- `using System.Text.Json;` (8/59 files) +- `using System.Linq;` (3/59 files) +- `using System.Text;` (3/59 files) +- `using System.Threading.Tasks;` (2/59 files) +- `using System.Xml;` (2/59 files) +- `using Newtonsoft.Json;` (1/59 files) +- `using System.Collections;` (1/59 files) +- `using System.Text.Json.Nodes;` (1/59 files) +- `using System.Threading;` (1/59 files) +- `using System.Xml.Linq;` (1/59 files) +- `using System.Xml.Schema;` (1/59 files) +- `using System.Xml.Xsl;` (1/59 files) ## Common Code Pattern @@ -58,17 +58,23 @@ tool.Save("output.pdf"); | File | Title | Key APIs | Description | |------|-------|----------|-------------| +| [add-radio-button-group-default-selection](./add-radio-button-group-default-selection.cs) | Add radio button group default selection | | Add radio button group default selection | | [add-radio-button-group-to-pdf](./add-radio-button-group-to-pdf.cs) | Add Radio Button Group to PDF with Default Selection | `FormEditor`, `AddField`, `Save` | Demonstrates using Aspose.Pdf.Facades.FormEditor to insert a radio button group with three option... | +| [add-text-field-to-pdf-using-formeditor](./add-text-field-to-pdf-using-formeditor.cs) | Add text field to pdf using formeditor | | Add text field to pdf using formeditor | | [add-text-field-to-pdf](./add-text-field-to-pdf.cs) | Add Text Field to PDF Using FormEditor | `FormEditor`, `AddField`, `Save` | Demonstrates how to insert a new text field at specific coordinates on a PDF page using Aspose.Pd... | | [async-export-pdf-form-data-to-xml](./async-export-pdf-form-data-to-xml.cs) | Asynchronously Export PDF Form Data to XML | `Form`, `ExportXml` | Demonstrates exporting AcroForm fields from a PDF to an XML file using async/await to keep the UI... | | [batch-export-pdf-form-data-to-xml](./batch-export-pdf-form-data-to-xml.cs) | Batch Export PDF Form Data to XML | `Document`, `FormEditor`, `Form` | Loops through PDF files in a folder, loads each document, and uses the FormEditor and Form facade... | | [batch-import-json-data-into-pdfs](./batch-import-json-data-into-pdfs.cs) | Batch Import JSON Data into PDFs in Parallel | `Form`, `ImportJson`, `Save` | Demonstrates importing form field values from matching JSON files into PDF documents using Aspose... | | [combine-acroform-json-exports](./combine-acroform-json-exports.cs) | Combine AcroForm JSON Exports from Multiple PDFs | `Form`, `ExportJson` | The example loads several PDF files, uses Aspose.Pdf.Facades.Form to export each document's AcroF... | +| [combine-exported-json-from-multiple-pdf-forms](./combine-exported-json-from-multiple-pdf-forms.cs) | Combine exported json from multiple pdf forms | | Combine exported json from multiple pdf forms | | [create-pdf-form-fields-report](./create-pdf-form-fields-report.cs) | Create PDF Report of AcroForm Fields | `Document`, `Page`, `Table` | Demonstrates how to enumerate AcroForm fields in a PDF and generate a new PDF containing a table ... | +| [export-acroform-data-to-json-split-files](./export-acroform-data-to-json-split-files.cs) | Export acroform data to json split files | | Export acroform data to json split files | +| [export-acroform-data-to-json](./export-acroform-data-to-json.cs) | Export acroform data to json | | Export acroform data to json | | [export-filter-pdf-form-fields-xfdf](./export-filter-pdf-form-fields-xfdf.cs) | Export and Filter PDF Form Fields to XFDF | `Document`, `Form`, `ExportXfdf` | Shows how to export AcroForm fields from a PDF to XFDF, keep only those whose names start with "C... | | [export-import-acroform-xfdf](./export-import-acroform-xfdf.cs) | Export and Import AcroForm Data via XFDF | `Document`, `Form`, `FillField` | Shows how to fill AcroForm fields, export the data to an XFDF file, import the XFDF back into a f... | | [export-import-pdf-form-fields-utf8](./export-import-pdf-form-fields-utf8.cs) | Export and Import PDF Form Fields with UTF-8 Encoding | `Document`, `Form`, `ExportXfdf` | Demonstrates exporting AcroForm field values to an XFDF file and re‑importing them using UTF‑8 st... | | [export-pdf-form-data-to-fdf](./export-pdf-form-data-to-fdf.cs) | Export PDF Form Data to FDF File | `Form`, `ExportFdf` | Demonstrates using the Aspose.Pdf.Facades.Form class to export all AcroForm field values from a P... | +| [export-pdf-form-data-to-html](./export-pdf-form-data-to-html.cs) | Export pdf form data to html | | Export pdf form data to html | | [export-pdf-form-data-to-json-chunks](./export-pdf-form-data-to-json-chunks.cs) | Export PDF Form Data to JSON and Split into Chunks | `Form`, `ExportJson` | Demonstrates how to export AcroForm fields from a PDF to a JSON document using Aspose.Pdf and the... | | [export-pdf-form-data-to-json](./export-pdf-form-data-to-json.cs) | Export PDF Form Data to JSON and Deserialize | `Form`, `ExportJson`, `Dispose` | Shows how to export AcroForm fields from a PDF to a JSON string using Aspose.Pdf.Facades.Form and... | | [export-pdf-form-data-to-xml-memorystream](./export-pdf-form-data-to-xml-memorystream.cs) | Export PDF Form Data to XML Using MemoryStream | `Form`, `ExportXml`, `Close` | Shows how to export AcroForm field data from a PDF directly into a memory stream as XML, eliminat... | @@ -78,20 +84,14 @@ tool.Save("output.pdf"); | [export-pdf-form-to-xml-html](./export-pdf-form-to-xml-html.cs) | Export PDF Form Data to XML and Convert to HTML with XSLT | `Form`, `ExportXml` | Shows how to export AcroForm fields from a PDF to an XML file using Aspose.Pdf.Facades.Form and t... | | [export-selected-acroform-fields-to-json](./export-selected-acroform-fields-to-json.cs) | Export Selected AcroForm Fields to JSON | `Document`, `Form`, `ExportJson` | Shows how to export only specific form fields from a PDF AcroForm to a JSON file by exporting the... | | [export-text-acroform-field-names-to-json](./export-text-acroform-field-names-to-json.cs) | Export Text AcroForm Field Names to JSON | `Form`, `FieldNames`, `GetFieldType` | The example opens a PDF, filters AcroForm fields to include only text fields, and writes the fiel... | +| [export-text-form-field-names-to-json](./export-text-form-field-names-to-json.cs) | Export text form field names to json | | Export text form field names to json | | [extract-pdf-form-field-names](./extract-pdf-form-field-names.cs) | Extract PDF Form Field Names to JSON | `Form`, `FieldNames`, `Dispose` | Shows how to open a PDF using Aspose.Pdf.Facades.Form, retrieve all AcroForm field names, and out... | +| [fill-pdf-acroform-fields-from-json](./fill-pdf-acroform-fields-from-json.cs) | Fill pdf acroform fields from json | | Fill pdf acroform fields from json | | [fill-pdf-acroform-fields](./fill-pdf-acroform-fields.cs) | Fill PDF AcroForm Fields and Save | `Form`, `FillField`, `Save` | Shows how to open a PDF, populate AcroForm fields from a dictionary, and save the updated documen... | -| [fill-pdf-form-fields-from-json](./fill-pdf-form-fields-from-json.cs) | Fill PDF Form Fields from JSON using Aspose.Pdf | `Form`, `FillField`, `Save` | Shows how to read a JSON file into a dictionary, map its keys to AcroForm field names, fill those... | -| [fill-textbox-field-in-pdf](./fill-textbox-field-in-pdf.cs) | Fill TextBox Field in PDF using Aspose.Pdf | `Form`, `FillField`, `Save` | Shows how to open a PDF, fill a specific AcroForm textbox field with a string using Form.FillFiel... | -| [get-selected-radio-button-value](./get-selected-radio-button-value.cs) | Get Selected Radio Button Value from PDF Form | `Form`, `GetButtonOptionCurrentValue` | Demonstrates how to open a PDF form with Aspose.Pdf.Facades and retrieve the currently selected o... | -| [import-fdf-data-into-pdf-form](./import-fdf-data-into-pdf-form.cs) | Import FDF Data into PDF Form | `Form`, `ImportFdf`, `Save` | Shows how to open a PDF form, import field values from an FDF file using a file stream, and save ... | -| [import-form-data-from-json](./import-form-data-from-json.cs) | Import Form Data from JSON into PDF (Ignore Missing Fields) | `Form`, `ImportJson`, `Save` | Demonstrates loading a PDF form, importing field values from a JSON file with Aspose.Pdf.Facades.... | -| [import-form-fields-from-xml](./import-form-fields-from-xml.cs) | Import Form Field Values from XML into PDF | `Form`, `ImportXml`, `Save` | Shows how to load a PDF containing AcroForm fields, import field values from an XML file using Fo... | -| [import-json-data-into-pdf-acroform](./import-json-data-into-pdf-acroform.cs) | Import JSON Data into PDF AcroForm | `Form`, `ImportJson`, `Save` | Shows how to serialize a C# object to JSON, place it in a memory stream, and import the data into... | -| [import-json-data-into-pdf-form](./import-json-data-into-pdf-form.cs) | Import JSON Data into PDF Form Fields | `Form`, `BindPdf`, `ImportJson` | Shows how to load a JSON file containing form field values and import them into an existing PDF u... | -| ... | | | *and 11 more files* | +| ... | | | *and 29 more files* | ## Category Statistics -- Total examples: 41 +- Total examples: 59 ## General Tips - See parent [AGENTS.md](../AGENTS.md) for: @@ -102,5 +102,5 @@ tool.Save("output.pdf"); - Review code examples in this folder for facades-acroforms patterns -Updated: 2026-08-20 | Run: `20260820_001147_12d7b3` +Updated: 2026-09-10 | Run: `20260910_054408_87a7f4` diff --git a/facades-acroforms/README.md b/facades-acroforms/README.md new file mode 100644 index 000000000..5ba4eac8e --- /dev/null +++ b/facades-acroforms/README.md @@ -0,0 +1,78 @@ +# Facades AcroForms + +> **Facades AcroForms** in PDF using C# / .NET -- **59** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. + +- Category: `facades-acroforms` +- Examples: 59 +- NuGet: `Aspose.PDF 26.8.0` -- target `net10.0` + +## Examples + +- [`add-radio-button-group-default-selection.cs`](./add-radio-button-group-default-selection.cs) -- Add radio button group default selection +- [`add-radio-button-group-to-pdf.cs`](./add-radio-button-group-to-pdf.cs) -- Add radio button group to pdf +- [`add-text-field-to-pdf-using-formeditor.cs`](./add-text-field-to-pdf-using-formeditor.cs) -- Add text field to pdf using formeditor +- [`add-text-field-to-pdf.cs`](./add-text-field-to-pdf.cs) -- Add text field to pdf +- [`async-export-pdf-form-data-to-xml.cs`](./async-export-pdf-form-data-to-xml.cs) -- Async export pdf form data to xml +- [`batch-export-pdf-form-data-to-xml.cs`](./batch-export-pdf-form-data-to-xml.cs) -- Batch export pdf form data to xml +- [`batch-import-json-data-into-pdfs.cs`](./batch-import-json-data-into-pdfs.cs) -- Batch import json data into pdfs +- [`combine-acroform-json-exports.cs`](./combine-acroform-json-exports.cs) -- Combine acroform json exports +- [`combine-exported-json-from-multiple-pdf-forms.cs`](./combine-exported-json-from-multiple-pdf-forms.cs) -- Combine exported json from multiple pdf forms +- [`create-pdf-form-fields-report.cs`](./create-pdf-form-fields-report.cs) -- Create pdf form fields report +- [`export-acroform-data-to-json-split-files.cs`](./export-acroform-data-to-json-split-files.cs) -- Export acroform data to json split files +- [`export-acroform-data-to-json.cs`](./export-acroform-data-to-json.cs) -- Export acroform data to json +- [`export-filter-pdf-form-fields-xfdf.cs`](./export-filter-pdf-form-fields-xfdf.cs) -- Export filter pdf form fields xfdf +- [`export-import-acroform-xfdf.cs`](./export-import-acroform-xfdf.cs) -- Export import acroform xfdf +- [`export-import-pdf-form-fields-utf8.cs`](./export-import-pdf-form-fields-utf8.cs) -- Export import pdf form fields utf8 +- [`export-pdf-form-data-to-fdf.cs`](./export-pdf-form-data-to-fdf.cs) -- Export pdf form data to fdf +- [`export-pdf-form-data-to-html.cs`](./export-pdf-form-data-to-html.cs) -- Export pdf form data to html +- [`export-pdf-form-data-to-json-chunks.cs`](./export-pdf-form-data-to-json-chunks.cs) -- Export pdf form data to json chunks +- [`export-pdf-form-data-to-json.cs`](./export-pdf-form-data-to-json.cs) -- Export pdf form data to json +- [`export-pdf-form-data-to-xml-memorystream.cs`](./export-pdf-form-data-to-xml-memorystream.cs) -- Export pdf form data to xml memorystream +- [`export-pdf-form-data-to-xml.cs`](./export-pdf-form-data-to-xml.cs) -- Export pdf form data to xml +- [`export-pdf-form-fields-to-json.cs`](./export-pdf-form-fields-to-json.cs) -- Export pdf form fields to json +- [`export-pdf-form-fields-to-xfdf.cs`](./export-pdf-form-fields-to-xfdf.cs) -- Export pdf form fields to xfdf +- [`export-pdf-form-to-xml-html.cs`](./export-pdf-form-to-xml-html.cs) -- Export pdf form to xml html +- [`export-selected-acroform-fields-to-json.cs`](./export-selected-acroform-fields-to-json.cs) -- Export selected acroform fields to json +- [`export-text-acroform-field-names-to-json.cs`](./export-text-acroform-field-names-to-json.cs) -- Export text acroform field names to json +- [`export-text-form-field-names-to-json.cs`](./export-text-form-field-names-to-json.cs) -- Export text form field names to json +- [`extract-pdf-form-field-names.cs`](./extract-pdf-form-field-names.cs) -- Extract pdf form field names +- [`fill-pdf-acroform-fields-from-json.cs`](./fill-pdf-acroform-fields-from-json.cs) -- Fill pdf acroform fields from json +- [`fill-pdf-acroform-fields.cs`](./fill-pdf-acroform-fields.cs) -- Fill pdf acroform fields +- [`fill-pdf-form-fields-from-byte-array.cs`](./fill-pdf-form-fields-from-byte-array.cs) -- Fill pdf form fields from byte array +- [`fill-pdf-form-fields-from-json.cs`](./fill-pdf-form-fields-from-json.cs) -- Fill pdf form fields from json +- [`fill-textbox-field-in-pdf.cs`](./fill-textbox-field-in-pdf.cs) -- Fill textbox field in pdf +- [`filter-pdf-form-fields-by-name.cs`](./filter-pdf-form-fields-by-name.cs) -- Filter pdf form fields by name +- [`generate-pdf-form-field-report.cs`](./generate-pdf-form-field-report.cs) -- Generate pdf form field report +- [`get-selected-radio-button-value.cs`](./get-selected-radio-button-value.cs) -- Get selected radio button value +- [`import-acroform-data-from-xml-with-missing-field-reporting.cs`](./import-acroform-data-from-xml-with-missing-field-reporting.cs) -- Import acroform data from xml with missing field reporting +- [`import-fdf-data-into-pdf-form.cs`](./import-fdf-data-into-pdf-form.cs) -- Import fdf data into pdf form +- [`import-form-data-from-json.cs`](./import-form-data-from-json.cs) -- Import form data from json +- [`import-form-data-from-xml-to-pdf.cs`](./import-form-data-from-xml-to-pdf.cs) -- Import form data from xml to pdf +- [`import-form-fields-from-xml.cs`](./import-form-fields-from-xml.cs) -- Import form fields from xml +- [`import-json-data-into-pdf-acroform.cs`](./import-json-data-into-pdf-acroform.cs) -- Import json data into pdf acroform +- [`import-json-data-into-pdf-form.cs`](./import-json-data-into-pdf-form.cs) -- Import json data into pdf form +- [`import-json-data-into-pdf-form__v2.cs`](./import-json-data-into-pdf-form__v2.cs) -- Import json data into pdf form v2 +- [`import-xfdf-data-into-pdf-form.cs`](./import-xfdf-data-into-pdf-form.cs) -- Import xfdf data into pdf form +- [`import-xfdf-data-into-pdf.cs`](./import-xfdf-data-into-pdf.cs) -- Import xfdf data into pdf +- [`import-xml-data-validate-required-fields.cs`](./import-xml-data-validate-required-fields.cs) -- Import xml data validate required fields +- [`import-xml-into-pdf-form-validate-required.cs`](./import-xml-into-pdf-form-validate-required.cs) -- Import xml into pdf form validate required +- [`justify-text-in-pdf-form-textbox.cs`](./justify-text-in-pdf-form-textbox.cs) -- Justify text in pdf form textbox +- [`list-pdf-form-field-names.cs`](./list-pdf-form-field-names.cs) -- List pdf form field names +- [`list-pdf-form-fields-to-csv.cs`](./list-pdf-form-fields-to-csv.cs) -- List pdf form fields to csv +- [`merge-acroform-data-into-json.cs`](./merge-acroform-data-into-json.cs) -- Merge acroform data into json +- [`retrieve-radio-button-option-values.cs`](./retrieve-radio-button-option-values.cs) -- Retrieve radio button option values +- [`retrieve-radio-button-options-hashtable.cs`](./retrieve-radio-button-options-hashtable.cs) -- Retrieve radio button options hashtable +- [`roundtrip-xfdf-export-import.cs`](./roundtrip-xfdf-export-import.cs) -- Roundtrip xfdf export import +- [`unicode-form-field-utf8-export-import.cs`](./unicode-form-field-utf8-export-import.cs) -- Unicode form field utf8 export import +- [`update-pdf-acroform-fields-from-byte-array.cs`](./update-pdf-acroform-fields-from-byte-array.cs) -- Update pdf acroform fields from byte array +- [`validate-radio-button-options.cs`](./validate-radio-button-options.cs) -- Validate radio button options +- [`validate-xml-import-into-pdf-form.cs`](./validate-xml-import-into-pdf-form.cs) -- Validate xml import into pdf form + +## See Also + +- [`AGENTS.md`](./AGENTS.md) -- category-specific anti-patterns, API surface, and conventions for AI coding agents +- [`../AGENTS.md`](../AGENTS.md) -- repository-wide agent guide +- [`../README.md`](../README.md) -- full category index and project overview +- [Aspose.PDF for .NET docs](https://docs.aspose.com/pdf/net/) + +> Each `.cs` file is a standalone, build-validated console example. Drop into a fresh `dotnet new console` project, add the `Aspose.PDF` NuGet (version above), and run. diff --git a/facades-acroforms/index.json b/facades-acroforms/index.json index 0944a14a3..cdfebc538 100644 --- a/facades-acroforms/index.json +++ b/facades-acroforms/index.json @@ -1,32 +1,53 @@ { "category": "facades-acroforms", "nuget_version": "26.8.0", - "last_updated": "2026-08-20T07:25:51Z", + "last_updated": "2026-09-10T12:45:08Z", "examples": { - "list-pdf-form-field-names": { - "title": "List PDF Form Field Names using FormEditor", - "filename": "list-pdf-form-field-names.cs", - "description": "Shows how to load a PDF with FormEditor, retrieve all AcroForm field names, and output them to the console. Includes code to create a minimal PDF with a sample TextBox field if the input file is missing.", + "add-radio-button-group-default-selection": { + "title": "Add Radio Button Group Default Selection", + "filename": "add-radio-button-group-default-selection.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-radio-button-group-to-pdf": { + "title": "Add Radio Button Group to PDF with Default Selection", + "filename": "add-radio-button-group-to-pdf.cs", + "description": "Demonstrates using Aspose.Pdf.Facades.FormEditor to insert a radio button group with three options into an existing PDF and programmatically set the default selected option.", "tags": [ + "radio-button", "acroform", "formeditor", - "field-names", "pdf", "csharp" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.FormEditor.BindPdf", - "Aspose.Pdf.Facades.FormEditor.Document", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Form.Fields" + "Aspose.Pdf.Facades.FormEditor", + "Aspose.Pdf.Facades.FormEditor.AddField", + "Aspose.Pdf.Facades.FormEditor.Save", + "Aspose.Pdf.Facades.FormEditor.Close", + "Aspose.Pdf.Facades.FormEditor.RadioGap", + "Aspose.Pdf.Facades.FormEditor.RadioHoriz", + "Aspose.Pdf.Facades.FormEditor.Items", + "Aspose.Pdf.Facades.FieldType" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:25:51Z", "status": "verified" }, + "add-text-field-to-pdf-using-formeditor": { + "title": "Add Text Field To Pdf Using Formeditor", + "filename": "add-text-field-to-pdf-using-formeditor.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "add-text-field-to-pdf": { "title": "Add Text Field to PDF Using FormEditor", "filename": "add-text-field-to-pdf.cs", @@ -48,102 +69,203 @@ "generated_at": "2026-08-20T07:25:51Z", "status": "verified" }, - "fill-textbox-field-in-pdf": { - "title": "Fill TextBox Field in PDF using Aspose.Pdf", - "filename": "fill-textbox-field-in-pdf.cs", - "description": "Shows how to open a PDF, fill a specific AcroForm textbox field with a string using Form.FillField, and save the modified document.", + "async-export-pdf-form-data-to-xml": { + "title": "Asynchronously Export PDF Form Data to XML", + "filename": "async-export-pdf-form-data-to-xml.cs", + "description": "Demonstrates exporting AcroForm fields from a PDF to an XML file using async/await to keep the UI thread responsive.", "tags": [ - "acroform", - "fill-field", + "async", + "form-export", + "xml", "pdf", - "aspose-pdf", - "csharp" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.FillField", - "Aspose.Pdf.Facades.Form.Save" + "Aspose.Pdf.Facades.Form.ExportXml" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:25:51Z", "status": "verified" }, - "justify-text-in-pdf-form-textbox": { - "title": "Justify Text in a PDF Form TextBox", - "filename": "justify-text-in-pdf-form-textbox.cs", - "description": "Shows how to apply justified alignment to a filled textbox field in an AcroForm by configuring FormFieldFacade and calling FormEditor.DecorateField.", + "batch-export-pdf-form-data-to-xml": { + "title": "Batch Export PDF Form Data to XML", + "filename": "batch-export-pdf-form-data-to-xml.cs", + "description": "Loops through PDF files in a folder, loads each document, and uses the FormEditor and Form facades to export AcroForm data to individual XML files.", "tags": [ - "acroform", - "justified", - "formeditor", "pdf", - "csharp" + "forms", + "xml", + "batch", + "export" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormFieldFacade", - "Aspose.Pdf.Facades.FormEditor.DecorateField", - "Aspose.Pdf.Facades.FormEditor.Save", - "Aspose.Pdf.Facades.FormFieldFacade.AlignJustified" + "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.Form.ExportXml" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:25:51Z", "status": "verified" }, - "retrieve-radio-button-option-values": { - "title": "Retrieve Radio Button Option Values from a PDF Form", - "filename": "retrieve-radio-button-option-values.cs", - "description": "Demonstrates how to use the Form facade to get all option values of a radio button group in an AcroForm and store them in a Hashtable for further processing.", + "batch-import-json-data-into-pdfs": { + "title": "Batch Import JSON Data into PDFs in Parallel", + "filename": "batch-import-json-data-into-pdfs.cs", + "description": "Demonstrates importing form field values from matching JSON files into PDF documents using Aspose.Pdf.Facades.Form and processing multiple files concurrently with Parallel.ForEach.", "tags": [ - "acroforms", - "radiobutton", - "hashtable", - "aspdf", - "pdf" + "json", + "form", + "batch", + "parallel", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.GetButtonOptionValues" + "Aspose.Pdf.Facades.Form.ImportJson", + "Aspose.Pdf.Facades.Form.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:25:51Z", "status": "verified" }, - "get-selected-radio-button-value": { - "title": "Get Selected Radio Button Value from PDF Form", - "filename": "get-selected-radio-button-value.cs", - "description": "Demonstrates how to open a PDF form with Aspose.Pdf.Facades and retrieve the currently selected option of a radio button group using GetButtonOptionCurrentValue.", + "combine-acroform-json-exports": { + "title": "Combine AcroForm JSON Exports from Multiple PDFs", + "filename": "combine-acroform-json-exports.cs", + "description": "The example loads several PDF files, uses Aspose.Pdf.Facades.Form to export each document's AcroForm fields to JSON, and merges the resulting JSON objects into a single JSON array written to a file.", "tags": [ - "acroforms", - "radio-button", - "form-field", "pdf", - "aspose-pdf" + "acroform", + "json", + "export", + "combine" ], "apis_used": [ "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.GetButtonOptionCurrentValue" + "Aspose.Pdf.Facades.Form.ExportJson" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:25:51Z", "status": "verified" }, - "export-pdf-form-data-to-xml": { - "title": "Export PDF Form Data to XML", - "filename": "export-pdf-form-data-to-xml.cs", - "description": "Demonstrates how to use Aspose.Pdf.Facades.Form to export all AcroForm field values from a PDF document into an XML file.", + "combine-exported-json-from-multiple-pdf-forms": { + "title": "Combine Exported Json From Multiple Pdf Forms", + "filename": "combine-exported-json-from-multiple-pdf-forms.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-pdf-form-fields-report": { + "title": "Create PDF Report of AcroForm Fields", + "filename": "create-pdf-form-fields-report.cs", + "description": "Demonstrates how to enumerate AcroForm fields in a PDF and generate a new PDF containing a table with each field's name, type, and value.", "tags": [ - "pdf", - "form", + "AcroForm", + "FormFields", + "Table", + "Report", + "Aspose.Pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Table", + "Aspose.Pdf.Row", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.BorderInfo", + "Aspose.Pdf.Color", + "Aspose.Pdf.Text.TextState" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:25:51Z", + "status": "verified" + }, + "export-acroform-data-to-json-split-files": { + "title": "Export Acroform Data To Json Split Files", + "filename": "export-acroform-data-to-json-split-files.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "export-acroform-data-to-json": { + "title": "Export Acroform Data To Json", + "filename": "export-acroform-data-to-json.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "export-filter-pdf-form-fields-xfdf": { + "title": "Export and Filter PDF Form Fields to XFDF", + "filename": "export-filter-pdf-form-fields-xfdf.cs", + "description": "Shows how to export AcroForm fields from a PDF to XFDF, keep only those whose names start with \"Customer\", and write the filtered XML back to a file.", + "tags": [ + "acroform", + "xfdf", + "filter", "export", - "xml", - "acroform" + "aspose-pdf" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.ExportXml" + "Aspose.Pdf.Facades.Form.ExportXfdf" ], - "difficulty": "beginner", + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:25:51Z", + "status": "verified" + }, + "export-import-acroform-xfdf": { + "title": "Export and Import AcroForm Data via XFDF", + "filename": "export-import-acroform-xfdf.cs", + "description": "Shows how to fill AcroForm fields, export the data to an XFDF file, import the XFDF back into a fresh PDF, and verify that the field values are preserved after the round‑trip.", + "tags": [ + "xfdf", + "acroform", + "form-export", + "form-import", + "aspdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.Form.FillField", + "Aspose.Pdf.Facades.Form.ExportXfdf", + "Aspose.Pdf.Facades.Form.ImportXfdf", + "Aspose.Pdf.Facades.Form.GetField", + "Aspose.Pdf.Facades.Form.Save" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:25:51Z", + "status": "verified" + }, + "export-import-pdf-form-fields-utf8": { + "title": "Export and Import PDF Form Fields with UTF-8 Encoding", + "filename": "export-import-pdf-form-fields-utf8.cs", + "description": "Demonstrates exporting AcroForm field values to an XFDF file and re‑importing them using UTF‑8 streams to correctly handle Unicode characters.", + "tags": [ + "acroforms", + "utf-8", + "xfdf", + "export", + "import" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.Form", + "Form.ExportXfdf", + "Form.ImportXfdf", + "Document.Save" + ], + "difficulty": "intermediate", "generated_at": "2026-08-20T07:25:51Z", "status": "verified" }, @@ -166,140 +288,145 @@ "generated_at": "2026-08-20T07:25:51Z", "status": "verified" }, - "export-pdf-form-fields-to-xfdf": { - "title": "Export PDF Form Fields to XFDF", - "filename": "export-pdf-form-fields-to-xfdf.cs", - "description": "Demonstrates how to use Aspose.Pdf.Facades.Form to export AcroForm data from a PDF into an XFDF file and write it to disk.", + "export-pdf-form-data-to-html": { + "title": "Export Pdf Form Data To Html", + "filename": "export-pdf-form-data-to-html.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "export-pdf-form-data-to-json-chunks": { + "title": "Export PDF Form Data to JSON and Split into Chunks", + "filename": "export-pdf-form-data-to-json-chunks.cs", + "description": "Demonstrates how to export AcroForm fields from a PDF to a JSON document using Aspose.Pdf and then split the output into multiple files, each containing up to 100 fields.", "tags": [ - "xfdf", - "form-export", + "pdf", "acroform", - "aspose-pdf", - "facades" + "json", + "export", + "chunking" ], "apis_used": [ "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.ExportXfdf" + "Aspose.Pdf.Facades.Form.ExportJson" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:25:51Z", "status": "verified" }, - "export-pdf-form-fields-to-json": { - "title": "Export PDF Form Fields to JSON and Verify Structure", - "filename": "export-pdf-form-fields-to-json.cs", - "description": "Shows how to export AcroForm field values from a PDF to a JSON file using Aspose.Pdf's Form facade and then read the JSON back to confirm the exported structure.", + "export-pdf-form-data-to-json": { + "title": "Export PDF Form Data to JSON and Deserialize", + "filename": "export-pdf-form-data-to-json.cs", + "description": "Shows how to export AcroForm fields from a PDF to a JSON string using Aspose.Pdf.Facades.Form and then deserialize the JSON into a strongly‑typed C# object with Json.NET.", "tags": [ "pdf", - "acroform", - "export", + "form", "json", - "aspose" + "export", + "deserialization" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.ExportJson" + "Aspose.Pdf.Facades.Form.ExportJson", + "Aspose.Pdf.Facades.Form.Dispose" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:25:51Z", "status": "verified" }, - "import-form-fields-from-xml": { - "title": "Import Form Field Values from XML into PDF", - "filename": "import-form-fields-from-xml.cs", - "description": "Shows how to load a PDF containing AcroForm fields, import field values from an XML file using Form.ImportXml, and save the populated PDF.", + "export-pdf-form-data-to-xml-memorystream": { + "title": "Export PDF Form Data to XML Using MemoryStream", + "filename": "export-pdf-form-data-to-xml-memorystream.cs", + "description": "Shows how to export AcroForm field data from a PDF directly into a memory stream as XML, eliminating the need for intermediate files on disk.", "tags": [ "AcroForm", - "ImportXml", - "PDF", + "ExportXml", + "MemoryStream", "Aspose.Pdf", - "XML" + "C#" ], "apis_used": [ "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.ImportXml", - "Aspose.Pdf.Facades.Form.Save" + "Aspose.Pdf.Facades.Form.ExportXml", + "Aspose.Pdf.Facades.Form.Close" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:25:51Z", "status": "verified" }, - "import-fdf-data-into-pdf-form": { - "title": "Import FDF Data into PDF Form", - "filename": "import-fdf-data-into-pdf-form.cs", - "description": "Shows how to open a PDF form, import field values from an FDF file using a file stream, and save the populated PDF.", + "export-pdf-form-data-to-xml": { + "title": "Export PDF Form Data to XML", + "filename": "export-pdf-form-data-to-xml.cs", + "description": "Demonstrates how to use Aspose.Pdf.Facades.Form to export all AcroForm field values from a PDF document into an XML file.", "tags": [ - "FDF", - "AcroForm", - "Import", - "Aspose.Pdf", - "C#" + "pdf", + "form", + "export", + "xml", + "acroform" ], "apis_used": [ "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.ImportFdf", - "Aspose.Pdf.Facades.Form.Save" + "Aspose.Pdf.Facades.Form.ExportXml" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:25:51Z", "status": "verified" }, - "import-xfdf-data-into-pdf-form": { - "title": "Import XFDF Data into PDF Form", - "filename": "import-xfdf-data-into-pdf-form.cs", - "description": "Shows how to load a PDF, read an XFDF file and import its form field values into the PDF using Aspose.Pdf.Facades.Form, then save the filled document.", + "export-pdf-form-fields-to-json": { + "title": "Export PDF Form Fields to JSON and Verify Structure", + "filename": "export-pdf-form-fields-to-json.cs", + "description": "Shows how to export AcroForm field values from a PDF to a JSON file using Aspose.Pdf's Form facade and then read the JSON back to confirm the exported structure.", "tags": [ - "xfdf", - "form", - "import", "pdf", - "facade" + "acroform", + "export", + "json", + "aspose" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.ImportXfdf", - "Aspose.Pdf.Facades.Form.Save" + "Aspose.Pdf.Facades.Form.ExportJson" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:25:51Z", "status": "verified" }, - "import-json-data-into-pdf-form": { - "title": "Import JSON Data into PDF Form Fields", - "filename": "import-json-data-into-pdf-form.cs", - "description": "Shows how to load a JSON file containing form field values and import them into an existing PDF using Aspose.Pdf.Facades.Form, with basic error handling for missing files and I/O issues.", + "export-pdf-form-fields-to-xfdf": { + "title": "Export PDF Form Fields to XFDF", + "filename": "export-pdf-form-fields-to-xfdf.cs", + "description": "Demonstrates how to use Aspose.Pdf.Facades.Form to export AcroForm data from a PDF into an XFDF file and write it to disk.", "tags": [ - "json", - "pdf", - "form", - "import", - "facade" + "xfdf", + "form-export", + "acroform", + "aspose-pdf", + "facades" ], "apis_used": [ "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.BindPdf", - "Aspose.Pdf.Facades.Form.ImportJson", - "Aspose.Pdf.Facades.Form.Save" + "Aspose.Pdf.Facades.Form.ExportXfdf" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:25:51Z", "status": "verified" }, - "batch-export-pdf-form-data-to-xml": { - "title": "Batch Export PDF Form Data to XML", - "filename": "batch-export-pdf-form-data-to-xml.cs", - "description": "Loops through PDF files in a folder, loads each document, and uses the FormEditor and Form facades to export AcroForm data to individual XML files.", + "export-pdf-form-to-xml-html": { + "title": "Export PDF Form Data to XML and Convert to HTML with XSLT", + "filename": "export-pdf-form-to-xml-html.cs", + "description": "Shows how to export AcroForm fields from a PDF to an XML file using Aspose.Pdf.Facades.Form and then transform that XML into an HTML view with XSLT.", "tags": [ "pdf", - "forms", + "form", "xml", - "batch", - "export" + "xslt", + "html" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.FormEditor", "Aspose.Pdf.Facades.Form", "Aspose.Pdf.Facades.Form.ExportXml" ], @@ -307,543 +434,596 @@ "generated_at": "2026-08-20T07:25:51Z", "status": "verified" }, - "batch-import-json-data-into-pdfs": { - "title": "Batch Import JSON Data into PDFs in Parallel", - "filename": "batch-import-json-data-into-pdfs.cs", - "description": "Demonstrates importing form field values from matching JSON files into PDF documents using Aspose.Pdf.Facades.Form and processing multiple files concurrently with Parallel.ForEach.", + "export-selected-acroform-fields-to-json": { + "title": "Export Selected AcroForm Fields to JSON", + "filename": "export-selected-acroform-fields-to-json.cs", + "description": "Shows how to export only specific form fields from a PDF AcroForm to a JSON file by exporting the full form data, filtering the desired fields, and writing the filtered JSON.", "tags": [ + "acroform", "json", - "form", - "batch", - "parallel", + "export", + "selected-fields", "aspose-pdf" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.ImportJson", - "Aspose.Pdf.Facades.Form.Save" + "Aspose.Pdf.Facades.Form.ExportJson" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:25:51Z", "status": "verified" }, - "combine-acroform-json-exports": { - "title": "Combine AcroForm JSON Exports from Multiple PDFs", - "filename": "combine-acroform-json-exports.cs", - "description": "The example loads several PDF files, uses Aspose.Pdf.Facades.Form to export each document's AcroForm fields to JSON, and merges the resulting JSON objects into a single JSON array written to a file.", + "export-text-acroform-field-names-to-json": { + "title": "Export Text AcroForm Field Names to JSON", + "filename": "export-text-acroform-field-names-to-json.cs", + "description": "The example opens a PDF, filters AcroForm fields to include only text fields, and writes the field names to a JSON file.", "tags": [ - "pdf", "acroform", + "text-field", "json", "export", - "combine" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.ExportJson" + "Aspose.Pdf.Facades.Form.FieldNames", + "Aspose.Pdf.Facades.Form.GetFieldType", + "Aspose.Pdf.Facades.FieldType" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:25:51Z", "status": "verified" }, - "export-pdf-form-data-to-xml-memorystream": { - "title": "Export PDF Form Data to XML Using MemoryStream", - "filename": "export-pdf-form-data-to-xml-memorystream.cs", - "description": "Shows how to export AcroForm field data from a PDF directly into a memory stream as XML, eliminating the need for intermediate files on disk.", - "tags": [ - "AcroForm", - "ExportXml", - "MemoryStream", - "Aspose.Pdf", - "C#" - ], - "apis_used": [ - "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.ExportXml", - "Aspose.Pdf.Facades.Form.Close" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:25:51Z", + "export-text-form-field-names-to-json": { + "title": "Export Text Form Field Names To Json", + "filename": "export-text-form-field-names-to-json.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "merge-acroform-data-into-json": { - "title": "Merge AcroForm Data from Multiple PDFs into JSON", - "filename": "merge-acroform-data-into-json.cs", - "description": "Shows how to iterate over several PDF documents, extract their AcroForm fields with the Form facade, and aggregate the collected values into a single JSON file.", + "extract-pdf-form-field-names": { + "title": "Extract PDF Form Field Names to JSON", + "filename": "extract-pdf-form-field-names.cs", + "description": "Shows how to open a PDF using Aspose.Pdf.Facades.Form, retrieve all AcroForm field names, and output them as a JSON array from a command‑line utility.", "tags": [ + "pdf", "acroform", + "field-names", "json", - "aggregation", - "pdf", - "aspose-pdf" + "command-line" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.Form", - "Form.BindPdf", - "Form.ExportJson", - "System.Text.Json.JsonSerializer" + "Aspose.Pdf.Facades.Form.FieldNames", + "Aspose.Pdf.Facades.Form.Dispose" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:25:51Z", "status": "verified" }, - "export-filter-pdf-form-fields-xfdf": { - "title": "Export and Filter PDF Form Fields to XFDF", - "filename": "export-filter-pdf-form-fields-xfdf.cs", - "description": "Shows how to export AcroForm fields from a PDF to XFDF, keep only those whose names start with \"Customer\", and write the filtered XML back to a file.", + "fill-pdf-acroform-fields-from-json": { + "title": "Fill Pdf Acroform Fields From Json", + "filename": "fill-pdf-acroform-fields-from-json.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "fill-pdf-acroform-fields": { + "title": "Fill PDF AcroForm Fields and Save", + "filename": "fill-pdf-acroform-fields.cs", + "description": "Shows how to open a PDF, populate AcroForm fields from a dictionary, and save the updated document using Aspose.Pdf.Facades.", "tags": [ "acroform", - "xfdf", - "filter", - "export", - "aspose-pdf" + "pdf", + "form-filling", + "aspose", + "csharp" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.ExportXfdf" + "Aspose.Pdf.Facades.Form.FillField", + "Aspose.Pdf.Facades.Form.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:25:51Z", "status": "verified" }, - "export-selected-acroform-fields-to-json": { - "title": "Export Selected AcroForm Fields to JSON", - "filename": "export-selected-acroform-fields-to-json.cs", - "description": "Shows how to export only specific form fields from a PDF AcroForm to a JSON file by exporting the full form data, filtering the desired fields, and writing the filtered JSON.", + "fill-pdf-form-fields-from-byte-array": { + "title": "Fill Pdf Form Fields From Byte Array", + "filename": "fill-pdf-form-fields-from-byte-array.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "fill-pdf-form-fields-from-json": { + "title": "Fill PDF Form Fields from JSON using Aspose.Pdf", + "filename": "fill-pdf-form-fields-from-json.cs", + "description": "Shows how to read a JSON file into a dictionary, map its keys to AcroForm field names, fill those fields with Aspose.Pdf.Facades.Form, and save the resulting PDF.", "tags": [ + "pdf", "acroform", "json", - "export", - "selected-fields", - "aspose-pdf" + "form-filling", + "aspose" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.ExportJson" + "Aspose.Pdf.Facades.Form.FillField", + "Aspose.Pdf.Facades.Form.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:25:51Z", "status": "verified" }, - "import-form-data-from-json": { - "title": "Import Form Data from JSON into PDF (Ignore Missing Fields)", - "filename": "import-form-data-from-json.cs", - "description": "Demonstrates loading a PDF form, importing field values from a JSON file with Aspose.Pdf.Facades.Form while automatically ignoring fields that are not present in the PDF, and saving the filled document.", + "fill-textbox-field-in-pdf": { + "title": "Fill TextBox Field in PDF using Aspose.Pdf", + "filename": "fill-textbox-field-in-pdf.cs", + "description": "Shows how to open a PDF, fill a specific AcroForm textbox field with a string using Form.FillField, and save the modified document.", "tags": [ + "acroform", + "fill-field", "pdf", - "form", - "json", - "import", - "aspose" + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.ImportJson", + "Aspose.Pdf.Facades.Form.FillField", "Aspose.Pdf.Facades.Form.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:25:51Z", "status": "verified" }, - "validate-xml-import-into-pdf-form": { - "title": "Validate XML Against XSD and Import into PDF Form", - "filename": "validate-xml-import-into-pdf-form.cs", - "description": "Shows how to validate an XML file using an XSD schema and then import the validated data into an AcroForm PDF with Aspose.Pdf.Facades.", + "filter-pdf-form-fields-by-name": { + "title": "Filter Pdf Form Fields By Name", + "filename": "filter-pdf-form-fields-by-name.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "generate-pdf-form-field-report": { + "title": "Generate Pdf Form Field Report", + "filename": "generate-pdf-form-field-report.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "get-selected-radio-button-value": { + "title": "Get Selected Radio Button Value from PDF Form", + "filename": "get-selected-radio-button-value.cs", + "description": "Demonstrates how to open a PDF form with Aspose.Pdf.Facades and retrieve the currently selected option of a radio button group using GetButtonOptionCurrentValue.", "tags": [ - "xml-validation", - "xsd", - "pdf-form", - "import-xml", + "acroforms", + "radio-button", + "form-field", + "pdf", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.ImportXml", - "Aspose.Pdf.Facades.Form.Save" + "Aspose.Pdf.Facades.Form.GetButtonOptionCurrentValue" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:25:51Z", "status": "verified" }, - "export-import-pdf-form-fields-utf8": { - "title": "Export and Import PDF Form Fields with UTF-8 Encoding", - "filename": "export-import-pdf-form-fields-utf8.cs", - "description": "Demonstrates exporting AcroForm field values to an XFDF file and re‑importing them using UTF‑8 streams to correctly handle Unicode characters.", - "tags": [ - "acroforms", - "utf-8", - "xfdf", - "export", - "import" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.Form", - "Form.ExportXfdf", - "Form.ImportXfdf", - "Document.Save" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:25:51Z", + "import-acroform-data-from-xml-with-missing-field-reporting": { + "title": "Import Acroform Data From Xml With Missing Field Reporting", + "filename": "import-acroform-data-from-xml-with-missing-field-reporting.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "list-pdf-form-fields-to-csv": { - "title": "List PDF Form Fields and Export to CSV", - "filename": "list-pdf-form-fields-to-csv.cs", - "description": "Shows how to use FormEditor and the Form facade to enumerate all AcroForm fields in a PDF and write each field's name and type to a CSV report.", + "import-fdf-data-into-pdf-form": { + "title": "Import FDF Data into PDF Form", + "filename": "import-fdf-data-into-pdf-form.cs", + "description": "Shows how to open a PDF form, import field values from an FDF file using a file stream, and save the populated PDF.", "tags": [ - "acroform", - "formeditor", - "csv", - "field-extraction", - "aspose-pdf" + "FDF", + "AcroForm", + "Import", + "Aspose.Pdf", + "C#" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.FormEditor", "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.FieldNames", - "Aspose.Pdf.Facades.Form.GetFieldType" + "Aspose.Pdf.Facades.Form.ImportFdf", + "Aspose.Pdf.Facades.Form.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:25:51Z", "status": "verified" }, - "export-text-acroform-field-names-to-json": { - "title": "Export Text AcroForm Field Names to JSON", - "filename": "export-text-acroform-field-names-to-json.cs", - "description": "The example opens a PDF, filters AcroForm fields to include only text fields, and writes the field names to a JSON file.", + "import-form-data-from-json": { + "title": "Import Form Data from JSON into PDF (Ignore Missing Fields)", + "filename": "import-form-data-from-json.cs", + "description": "Demonstrates loading a PDF form, importing field values from a JSON file with Aspose.Pdf.Facades.Form while automatically ignoring fields that are not present in the PDF, and saving the filled document.", "tags": [ - "acroform", - "text-field", + "pdf", + "form", "json", - "export", - "aspose-pdf" + "import", + "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.FieldNames", - "Aspose.Pdf.Facades.Form.GetFieldType", - "Aspose.Pdf.Facades.FieldType" + "Aspose.Pdf.Facades.Form.ImportJson", + "Aspose.Pdf.Facades.Form.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:25:51Z", "status": "verified" }, - "add-radio-button-group-to-pdf": { - "title": "Add Radio Button Group to PDF with Default Selection", - "filename": "add-radio-button-group-to-pdf.cs", - "description": "Demonstrates using Aspose.Pdf.Facades.FormEditor to insert a radio button group with three options into an existing PDF and programmatically set the default selected option.", + "import-form-data-from-xml-to-pdf": { + "title": "Import Form Data From Xml To Pdf", + "filename": "import-form-data-from-xml-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "import-form-fields-from-xml": { + "title": "Import Form Field Values from XML into PDF", + "filename": "import-form-fields-from-xml.cs", + "description": "Shows how to load a PDF containing AcroForm fields, import field values from an XML file using Form.ImportXml, and save the populated PDF.", "tags": [ - "radio-button", - "acroform", - "formeditor", - "pdf", - "csharp" + "AcroForm", + "ImportXml", + "PDF", + "Aspose.Pdf", + "XML" ], "apis_used": [ - "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.AddField", - "Aspose.Pdf.Facades.FormEditor.Save", - "Aspose.Pdf.Facades.FormEditor.Close", - "Aspose.Pdf.Facades.FormEditor.RadioGap", - "Aspose.Pdf.Facades.FormEditor.RadioHoriz", - "Aspose.Pdf.Facades.FormEditor.Items", - "Aspose.Pdf.Facades.FieldType" + "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.Form.ImportXml", + "Aspose.Pdf.Facades.Form.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:25:51Z", "status": "verified" }, - "validate-radio-button-options": { - "title": "Validate Radio Button Options in PDF AcroForm", - "filename": "validate-radio-button-options.cs", - "description": "Demonstrates creating a PDF with a radio button group, retrieving its option values via the Form facade, and comparing them to an expected set to verify form integrity.", + "import-json-data-into-pdf-acroform": { + "title": "Import JSON Data into PDF AcroForm", + "filename": "import-json-data-into-pdf-acroform.cs", + "description": "Shows how to serialize a C# object to JSON, place it in a memory stream, and import the data into an AcroForm using Aspose.Pdf.Facades.Form.", "tags": [ + "json", "acroform", - "radiobutton", - "validation", - "aspose-pdf", - "form-facade" + "import", + "aspose.pdf", + "c#" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Forms.RadioButtonField", "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.GetButtonOptionValues", - "Aspose.Pdf.Forms.RadioButtonField.AddOption" + "Aspose.Pdf.Facades.Form.ImportJson", + "Aspose.Pdf.Facades.Form.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:25:51Z", "status": "verified" }, - "export-import-acroform-xfdf": { - "title": "Export and Import AcroForm Data via XFDF", - "filename": "export-import-acroform-xfdf.cs", - "description": "Shows how to fill AcroForm fields, export the data to an XFDF file, import the XFDF back into a fresh PDF, and verify that the field values are preserved after the round‑trip.", + "import-json-data-into-pdf-form": { + "title": "Import JSON Data into PDF Form Fields", + "filename": "import-json-data-into-pdf-form.cs", + "description": "Shows how to load a JSON file containing form field values and import them into an existing PDF using Aspose.Pdf.Facades.Form, with basic error handling for missing files and I/O issues.", "tags": [ - "xfdf", - "acroform", - "form-export", - "form-import", - "aspdf" + "json", + "pdf", + "form", + "import", + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.FillField", - "Aspose.Pdf.Facades.Form.ExportXfdf", - "Aspose.Pdf.Facades.Form.ImportXfdf", - "Aspose.Pdf.Facades.Form.GetField", + "Aspose.Pdf.Facades.Form.BindPdf", + "Aspose.Pdf.Facades.Form.ImportJson", "Aspose.Pdf.Facades.Form.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:25:51Z", "status": "verified" }, - "fill-pdf-form-fields-from-json": { - "title": "Fill PDF Form Fields from JSON using Aspose.Pdf", - "filename": "fill-pdf-form-fields-from-json.cs", - "description": "Shows how to read a JSON file into a dictionary, map its keys to AcroForm field names, fill those fields with Aspose.Pdf.Facades.Form, and save the resulting PDF.", + "import-json-data-into-pdf-form__v2": { + "title": "Import JSON Data into PDF Form with Error Handling", + "filename": "import-json-data-into-pdf-form__v2.cs", + "description": "Demonstrates importing form field values from a JSON file into a PDF using Aspose.Pdf.Facades.Form and handling missing fields by catching exceptions and logging the field name.", "tags": [ + "acroforms", + "json-import", + "error-handling", "pdf", - "acroform", - "json", - "form-filling", - "aspose" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.FillField", + "Aspose.Pdf.Facades.Form.ImportJson", "Aspose.Pdf.Facades.Form.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:25:51Z", "status": "verified" }, - "update-pdf-acroform-fields-from-byte-array": { - "title": "Update PDF AcroForm Fields from Byte Array", - "filename": "update-pdf-acroform-fields-from-byte-array.cs", - "description": "Loads a PDF from a byte array using MemoryStream, fills specified AcroForm fields, and returns the modified PDF as a byte array.", + "import-xfdf-data-into-pdf-form": { + "title": "Import XFDF Data into PDF Form", + "filename": "import-xfdf-data-into-pdf-form.cs", + "description": "Shows how to load a PDF, read an XFDF file and import its form field values into the PDF using Aspose.Pdf.Facades.Form, then save the filled document.", "tags": [ + "xfdf", + "form", + "import", "pdf", - "acroform", - "fill-field", - "memorystream", - "aspose" + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.FillField", + "Aspose.Pdf.Facades.Form.ImportXfdf", "Aspose.Pdf.Facades.Form.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:25:51Z", "status": "verified" }, - "extract-pdf-form-field-names": { - "title": "Extract PDF Form Field Names to JSON", - "filename": "extract-pdf-form-field-names.cs", - "description": "Shows how to open a PDF using Aspose.Pdf.Facades.Form, retrieve all AcroForm field names, and output them as a JSON array from a command‑line utility.", + "import-xfdf-data-into-pdf": { + "title": "Import Xfdf Data Into Pdf", + "filename": "import-xfdf-data-into-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "import-xml-data-validate-required-fields": { + "title": "Import Xml Data Validate Required Fields", + "filename": "import-xml-data-validate-required-fields.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "import-xml-into-pdf-form-validate-required": { + "title": "Import XML into PDF Form and Validate Required Fields", + "filename": "import-xml-into-pdf-form-validate-required.cs", + "description": "Demonstrates importing form data from an XML file into a PDF using Aspose.Pdf.Facades.Form, then checking required fields and logging any that are empty.", "tags": [ + "xml", "pdf", - "acroform", - "field-names", - "json", - "command-line" + "form", + "validation", + "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.FieldNames", - "Aspose.Pdf.Facades.Form.Dispose" + "Aspose.Pdf.Facades.Form.ImportXml", + "Aspose.Pdf.Facades.Form.IsRequiredField", + "Aspose.Pdf.Facades.Form.GetField", + "Aspose.Pdf.Facades.Form.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:25:51Z", "status": "verified" }, - "fill-pdf-acroform-fields": { - "title": "Fill PDF AcroForm Fields and Save", - "filename": "fill-pdf-acroform-fields.cs", - "description": "Shows how to open a PDF, populate AcroForm fields from a dictionary, and save the updated document using Aspose.Pdf.Facades.", + "justify-text-in-pdf-form-textbox": { + "title": "Justify Text in a PDF Form TextBox", + "filename": "justify-text-in-pdf-form-textbox.cs", + "description": "Shows how to apply justified alignment to a filled textbox field in an AcroForm by configuring FormFieldFacade and calling FormEditor.DecorateField.", "tags": [ "acroform", + "justified", + "formeditor", "pdf", - "form-filling", - "aspose", "csharp" ], "apis_used": [ - "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.FillField", - "Aspose.Pdf.Facades.Form.Save" + "Aspose.Pdf.Facades.FormEditor", + "Aspose.Pdf.Facades.FormFieldFacade", + "Aspose.Pdf.Facades.FormEditor.DecorateField", + "Aspose.Pdf.Facades.FormEditor.Save", + "Aspose.Pdf.Facades.FormFieldFacade.AlignJustified" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:25:51Z", "status": "verified" }, - "export-pdf-form-data-to-json": { - "title": "Export PDF Form Data to JSON and Deserialize", - "filename": "export-pdf-form-data-to-json.cs", - "description": "Shows how to export AcroForm fields from a PDF to a JSON string using Aspose.Pdf.Facades.Form and then deserialize the JSON into a strongly‑typed C# object with Json.NET.", + "list-pdf-form-field-names": { + "title": "List PDF Form Field Names using FormEditor", + "filename": "list-pdf-form-field-names.cs", + "description": "Shows how to load a PDF with FormEditor, retrieve all AcroForm field names, and output them to the console. Includes code to create a minimal PDF with a sample TextBox field if the input file is missing.", "tags": [ + "acroform", + "formeditor", + "field-names", "pdf", - "form", - "json", - "export", - "deserialization" + "csharp" ], "apis_used": [ - "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.ExportJson", - "Aspose.Pdf.Facades.Form.Dispose" + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.FormEditor.BindPdf", + "Aspose.Pdf.Facades.FormEditor.Document", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Form.Fields" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:25:51Z", "status": "verified" }, - "import-json-data-into-pdf-acroform": { - "title": "Import JSON Data into PDF AcroForm", - "filename": "import-json-data-into-pdf-acroform.cs", - "description": "Shows how to serialize a C# object to JSON, place it in a memory stream, and import the data into an AcroForm using Aspose.Pdf.Facades.Form.", + "list-pdf-form-fields-to-csv": { + "title": "List PDF Form Fields and Export to CSV", + "filename": "list-pdf-form-fields-to-csv.cs", + "description": "Shows how to use FormEditor and the Form facade to enumerate all AcroForm fields in a PDF and write each field's name and type to a CSV report.", "tags": [ - "json", "acroform", - "import", - "aspose.pdf", - "c#" + "formeditor", + "csv", + "field-extraction", + "aspose-pdf" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.FormEditor", "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.ImportJson", - "Aspose.Pdf.Facades.Form.Save" + "Aspose.Pdf.Facades.Form.FieldNames", + "Aspose.Pdf.Facades.Form.GetFieldType" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:25:51Z", "status": "verified" }, - "export-pdf-form-data-to-json-chunks": { - "title": "Export PDF Form Data to JSON and Split into Chunks", - "filename": "export-pdf-form-data-to-json-chunks.cs", - "description": "Demonstrates how to export AcroForm fields from a PDF to a JSON document using Aspose.Pdf and then split the output into multiple files, each containing up to 100 fields.", + "merge-acroform-data-into-json": { + "title": "Merge AcroForm Data from Multiple PDFs into JSON", + "filename": "merge-acroform-data-into-json.cs", + "description": "Shows how to iterate over several PDF documents, extract their AcroForm fields with the Form facade, and aggregate the collected values into a single JSON file.", "tags": [ - "pdf", "acroform", "json", - "export", - "chunking" + "aggregation", + "pdf", + "aspose-pdf" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.ExportJson" + "Form.BindPdf", + "Form.ExportJson", + "System.Text.Json.JsonSerializer" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:25:51Z", "status": "verified" }, - "export-pdf-form-to-xml-html": { - "title": "Export PDF Form Data to XML and Convert to HTML with XSLT", - "filename": "export-pdf-form-to-xml-html.cs", - "description": "Shows how to export AcroForm fields from a PDF to an XML file using Aspose.Pdf.Facades.Form and then transform that XML into an HTML view with XSLT.", + "retrieve-radio-button-option-values": { + "title": "Retrieve Radio Button Option Values from a PDF Form", + "filename": "retrieve-radio-button-option-values.cs", + "description": "Demonstrates how to use the Form facade to get all option values of a radio button group in an AcroForm and store them in a Hashtable for further processing.", "tags": [ - "pdf", - "form", - "xml", - "xslt", - "html" + "acroforms", + "radiobutton", + "hashtable", + "aspdf", + "pdf" ], "apis_used": [ "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.ExportXml" + "Aspose.Pdf.Facades.Form.GetButtonOptionValues" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:25:51Z", "status": "verified" }, - "import-xml-into-pdf-form-validate-required": { - "title": "Import XML into PDF Form and Validate Required Fields", - "filename": "import-xml-into-pdf-form-validate-required.cs", - "description": "Demonstrates importing form data from an XML file into a PDF using Aspose.Pdf.Facades.Form, then checking required fields and logging any that are empty.", + "retrieve-radio-button-options-hashtable": { + "title": "Retrieve Radio Button Options Hashtable", + "filename": "retrieve-radio-button-options-hashtable.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "roundtrip-xfdf-export-import": { + "title": "Roundtrip Xfdf Export Import", + "filename": "roundtrip-xfdf-export-import.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "unicode-form-field-utf8-export-import": { + "title": "Unicode Form Field Utf8 Export Import", + "filename": "unicode-form-field-utf8-export-import.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "update-pdf-acroform-fields-from-byte-array": { + "title": "Update PDF AcroForm Fields from Byte Array", + "filename": "update-pdf-acroform-fields-from-byte-array.cs", + "description": "Loads a PDF from a byte array using MemoryStream, fills specified AcroForm fields, and returns the modified PDF as a byte array.", "tags": [ - "xml", "pdf", - "form", - "validation", + "acroform", + "fill-field", + "memorystream", "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.ImportXml", - "Aspose.Pdf.Facades.Form.IsRequiredField", - "Aspose.Pdf.Facades.Form.GetField", + "Aspose.Pdf.Facades.Form.FillField", "Aspose.Pdf.Facades.Form.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:25:51Z", "status": "verified" }, - "import-json-data-into-pdf-form__v2": { - "title": "Import JSON Data into PDF Form with Error Handling", - "filename": "import-json-data-into-pdf-form__v2.cs", - "description": "Demonstrates importing form field values from a JSON file into a PDF using Aspose.Pdf.Facades.Form and handling missing fields by catching exceptions and logging the field name.", + "validate-radio-button-options": { + "title": "Validate Radio Button Options in PDF AcroForm", + "filename": "validate-radio-button-options.cs", + "description": "Demonstrates creating a PDF with a radio button group, retrieving its option values via the Form facade, and comparing them to an expected set to verify form integrity.", "tags": [ - "acroforms", - "json-import", - "error-handling", - "pdf", - "aspose-pdf" + "acroform", + "radiobutton", + "validation", + "aspose-pdf", + "form-facade" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Forms.RadioButtonField", "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.ImportJson", - "Aspose.Pdf.Facades.Form.Save" + "Aspose.Pdf.Facades.Form.GetButtonOptionValues", + "Aspose.Pdf.Forms.RadioButtonField.AddOption" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:25:51Z", "status": "verified" }, - "async-export-pdf-form-data-to-xml": { - "title": "Asynchronously Export PDF Form Data to XML", - "filename": "async-export-pdf-form-data-to-xml.cs", - "description": "Demonstrates exporting AcroForm fields from a PDF to an XML file using async/await to keep the UI thread responsive.", + "validate-xml-import-into-pdf-form": { + "title": "Validate XML Against XSD and Import into PDF Form", + "filename": "validate-xml-import-into-pdf-form.cs", + "description": "Shows how to validate an XML file using an XSD schema and then import the validated data into an AcroForm PDF with Aspose.Pdf.Facades.", "tags": [ - "async", - "form-export", - "xml", - "pdf", + "xml-validation", + "xsd", + "pdf-form", + "import-xml", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.ExportXml" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:25:51Z", - "status": "verified" - }, - "create-pdf-form-fields-report": { - "title": "Create PDF Report of AcroForm Fields", - "filename": "create-pdf-form-fields-report.cs", - "description": "Demonstrates how to enumerate AcroForm fields in a PDF and generate a new PDF containing a table with each field's name, type, and value.", - "tags": [ - "AcroForm", - "FormFields", - "Table", - "Report", - "Aspose.Pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Table", - "Aspose.Pdf.Row", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.BorderInfo", - "Aspose.Pdf.Color", - "Aspose.Pdf.Text.TextState" + "Aspose.Pdf.Facades.Form.ImportXml", + "Aspose.Pdf.Facades.Form.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:25:51Z", diff --git a/facades-annotations/AGENTS.md b/facades-annotations/AGENTS.md index fe3edd05e..869b9c7dd 100644 --- a/facades-annotations/AGENTS.md +++ b/facades-annotations/AGENTS.md @@ -8,7 +8,7 @@ parent: ../agents.md # AGENTS - facades-annotations -> **Facades annotations** in PDF using C# / .NET -- **105** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. +> **Facades annotations** in PDF using C# / .NET -- **155** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. ## Persona @@ -23,28 +23,28 @@ See the root [agents.md](../agents.md) for repository-wide conventions and bound ## Required Namespaces -- `using Aspose.Pdf.Facades;` (103/105 files) ← category-specific -- `using Aspose.Pdf;` (66/105 files) ← category-specific -- `using Aspose.Pdf.Annotations;` (45/105 files) -- `using Aspose.Pdf.Drawing;` (2/105 files) -- `using Aspose.Pdf.Text;` (2/105 files) -- `using System;` (105/105 files) -- `using System.IO;` (95/105 files) -- `using System.Collections.Generic;` (17/105 files) -- `using System.Diagnostics;` (4/105 files) -- `using System.Linq;` (4/105 files) -- `using System.Threading.Tasks;` (4/105 files) -- `using System.Threading;` (3/105 files) -- `using System.Text;` (2/105 files) -- `using System.Xml;` (2/105 files) -- `using System.Xml.Linq;` (2/105 files) -- `using Azure.Storage.Blobs;` (1/105 files) -- `using Azure.Storage.Blobs.Models;` (1/105 files) -- `using Microsoft.VisualStudio.TestTools.UnitTesting;` (1/105 files) -- `using System.IO.Compression;` (1/105 files) -- `using System.Runtime.CompilerServices;` (1/105 files) -- `using System.Text.Json;` (1/105 files) -- `using System.Xml.Schema;` (1/105 files) +- `using Aspose.Pdf.Facades;` (103/155 files) ← category-specific +- `using Aspose.Pdf;` (66/155 files) +- `using Aspose.Pdf.Annotations;` (45/155 files) +- `using Aspose.Pdf.Drawing;` (2/155 files) +- `using Aspose.Pdf.Text;` (2/155 files) +- `using System;` (105/155 files) +- `using System.IO;` (95/155 files) +- `using System.Collections.Generic;` (17/155 files) +- `using System.Diagnostics;` (4/155 files) +- `using System.Linq;` (4/155 files) +- `using System.Threading.Tasks;` (4/155 files) +- `using System.Threading;` (3/155 files) +- `using System.Text;` (2/155 files) +- `using System.Xml;` (2/155 files) +- `using System.Xml.Linq;` (2/155 files) +- `using Azure.Storage.Blobs;` (1/155 files) +- `using Azure.Storage.Blobs.Models;` (1/155 files) +- `using Microsoft.VisualStudio.TestTools.UnitTesting;` (1/155 files) +- `using System.IO.Compression;` (1/155 files) +- `using System.Runtime.CompilerServices;` (1/155 files) +- `using System.Text.Json;` (1/155 files) +- `using System.Xml.Schema;` (1/155 files) ## Common Code Pattern @@ -63,38 +63,38 @@ tool.Save("output.pdf"); |------|-------|----------|-------------| | [add-custom-metadata-to-pdf-annotation](./add-custom-metadata-to-pdf-annotation.cs) | Add Custom Metadata to a PDF Annotation | `Document`, `Page`, `TextAnnotation` | Demonstrates how to create a TextAnnotation, store custom key/value metadata using PdfFileInfo, o... | | [add-text-annotation-with-custom-flags](./add-text-annotation-with-custom-flags.cs) | Add Text Annotation with Custom Flags to PDF | `PdfAnnotationEditor`, `TextAnnotation`, `AnnotationFlags` | Demonstrates creating a TextAnnotation, setting custom annotation flags (Invisible, NoZoom), and ... | +| [annotation-performance-logger](./annotation-performance-logger.cs) | Annotation performance logger | | Annotation performance logger | | [annotation-removal-report](./annotation-removal-report.cs) | Annotation Removal Report for PDFs | `Document`, `Page`, `PdfAnnotationEditor` | Demonstrates how to count and delete all annotations from multiple PDF files using Aspose.Pdf and... | | [async-pdf-annotation-operations](./async-pdf-annotation-operations.cs) | Asynchronous PDF Annotation Operations with Aspose.Pdf | `PdfAnnotationEditor`, `BindPdf`, `FlatteningAnnotations` | Demonstrates how to perform common PDF annotation tasks—flattening, deleting, importing, and expo... | +| [backup-and-flatten-pdf-form-fields](./backup-and-flatten-pdf-form-fields.cs) | Backup and flatten pdf form fields | | Backup and flatten pdf form fields | | [backup-pdf-and-flatten-form-fields](./backup-pdf-and-flatten-form-fields.cs) | Backup PDF and Flatten Form Fields | `Document`, `Form`, `FlattenAllFields` | Demonstrates how to create a backup of a PDF before flattening all interactive form fields using ... | +| [backup-pdf-delete-all-annotations](./backup-pdf-delete-all-annotations.cs) | Backup pdf delete all annotations | | Backup pdf delete all annotations | | [batch-delete-pdf-annotations-azure-blob](./batch-delete-pdf-annotations-azure-blob.cs) | Batch Delete PDF Annotations from Azure Blob Storage | `PdfAnnotationEditor`, `BindPdf`, `DeleteAnnotations` | Demonstrates how to enumerate PDF blobs in an Azure Blob container, stream each PDF into Aspose.P... | | [batch-delete-pdf-annotations-retain-types](./batch-delete-pdf-annotations-retain-types.cs) | Batch Delete PDF Annotations While Retaining Specified Types | `PdfAnnotationEditor`, `AnnotationType`, `BindPdf` | Demonstrates how to load a PDF, read a JSON configuration that lists annotation types to keep, an... | | [batch-delete-pdf-annotations-with-progress](./batch-delete-pdf-annotations-with-progress.cs) | Batch Delete PDF Annotations with Progress | `PdfAnnotationEditor`, `BindPdf`, `DeleteAnnotations` | Demonstrates how to remove all annotations from multiple PDF files using Aspose.Pdf.Facades.PdfAn... | +| [batch-delete-pdf-annotations](./batch-delete-pdf-annotations.cs) | Batch delete pdf annotations | | Batch delete pdf annotations | | [batch-delete-stamp-annotations](./batch-delete-stamp-annotations.cs) | Batch Delete Stamp Annotations from PDFs | `PdfAnnotationEditor`, `BindPdf`, `DeleteAnnotations` | Demonstrates how to iterate through PDF files in a folder and remove all stamp annotations using ... | | [batch-export-delete-annotations-xfdf](./batch-export-delete-annotations-xfdf.cs) | Batch Export Annotations to XFDF and Remove Them | `PdfAnnotationEditor`, `BindPdf`, `ExportAnnotationsToXfdf` | Shows how to process a folder of PDFs, export all annotations to XFDF files for archiving, delete... | +| [batch-export-delete-pdf-annotations](./batch-export-delete-pdf-annotations.cs) | Batch export delete pdf annotations | | Batch export delete pdf annotations | | [batch-flatten-pdf-annotations-cancellation](./batch-flatten-pdf-annotations-cancellation.cs) | Batch Flatten PDF Annotations with Cancellation Support | `Document`, `PdfAnnotationEditor`, `BindPdf` | Demonstrates flattening all annotations in multiple PDF files using Aspose.Pdf's PdfAnnotationEdi... | +| [batch-flatten-pdf-annotations-skip-readonly](./batch-flatten-pdf-annotations-skip-readonly.cs) | Batch flatten pdf annotations skip readonly | | Batch flatten pdf annotations skip readonly | | [batch-flatten-pdf-annotations](./batch-flatten-pdf-annotations.cs) | Batch Flatten PDF Annotations | `PdfAnnotationEditor`, `BindPdf`, `FlatteningAnnotations` | Processes every PDF in a specified folder, flattens all annotations using Aspose.Pdf's PdfAnnotat... | | [batch-import-xfdf-annotations-into-pdfs](./batch-import-xfdf-annotations-into-pdfs.cs) | Batch Import XFDF Annotations into Matching PDFs | `Document`, `PdfAnnotationEditor`, `BindPdf` | Demonstrates iterating over PDF files, locating corresponding XFDF files by name, importing their... | +| [batch-process-pdfs-azure-blob-pdfannotationeditor](./batch-process-pdfs-azure-blob-pdfannotationeditor.cs) | Batch process pdfs azure blob pdfannotationeditor | | Batch process pdfs azure blob pdfannotationeditor | +| [batch-remove-annotations-report](./batch-remove-annotations-report.cs) | Batch remove annotations report | | Batch remove annotations report | | [batch-remove-old-annotations](./batch-remove-old-annotations.cs) | Batch Remove Old Annotations from PDFs | `PdfAnnotationEditor`, `BindPdf`, `Save` | Demonstrates how to iterate through PDFs in a folder and delete annotations whose modification da... | | [batch-update-annotation-author](./batch-update-annotation-author.cs) | Batch Update Annotation Author Across Multiple PDFs | `PdfAnnotationEditor`, `BindPdf`, `ModifyAnnotationsAuthor` | Shows how to iterate through PDF files in a directory and use PdfAnnotationEditor to replace the ... | | [benchmark-delete-annotations](./benchmark-delete-annotations.cs) | Benchmark Deleting PDF Annotations with Aspose.Pdf | `Document`, `Page`, `TextAnnotation` | Creates a PDF with multiple text annotations and measures the performance of deleting all annotat... | +| [benchmark-deleteannotations-vs-deleteannotation](./benchmark-deleteannotations-vs-deleteannotation.cs) | Benchmark deleteannotations vs deleteannotation | | Benchmark deleteannotations vs deleteannotation | +| [change-annotation-subject-color](./change-annotation-subject-color.cs) | Change annotation subject color | | Change annotation subject color | | [check-duplicate-annotation-names](./check-duplicate-annotation-names.cs) | Check for Duplicate Annotation Names in a PDF | `PdfAnnotationEditor`, `Document`, `Page` | Shows how to iterate through all annotations in a PDF with Aspose.Pdf, detect duplicate annotatio... | | [clone-annotation-change-color](./clone-annotation-change-color.cs) | Clone PDF Annotation, Change Its Color, and Add to Another P... | `Document`, `Page`, `Annotation` | Demonstrates how to load a PDF, clone an existing annotation, modify its color, and place the clo... | | [clone-modify-pdf-annotation](./clone-modify-pdf-annotation.cs) | Clone and Modify PDF Annotation | `PdfAnnotationEditor`, `BindPdf`, `Save` | Shows how to clone an existing annotation on a PDF page, change its properties, and add the clone... | | [concurrent-insert-delete-pdf](./concurrent-insert-delete-pdf.cs) | Concurrent Insert and Delete Operations on a PDF | `PdfFileEditor`, `TryInsert`, `TryDelete` | Demonstrates how to safely perform simultaneous page insertions and deletions on the same PDF usi... | -| [conditional-pdf-flattening](./conditional-pdf-flattening.cs) | Conditional PDF Flattening Based on Digital Signatures | `Document`, `PdfFileSignature`, `BindPdf` | The example checks if a PDF contains digital signatures using PdfFileSignature and only flattens ... | -| [copy-annotations-to-multiple-pdfs](./copy-annotations-to-multiple-pdfs.cs) | Copy Annotations from Template PDF to Multiple PDFs | `PdfAnnotationEditor`, `Document`, `Page` | Demonstrates exporting annotations from a template PDF to an XFDF stream and importing them into ... | -| [delete-all-annotations-from-pdf](./delete-all-annotations-from-pdf.cs) | Delete All Annotations from PDF and Verify Count | `PdfAnnotationEditor`, `BindPdf`, `DeleteAnnotations` | Shows how to bind a PDF with PdfAnnotationEditor, count existing annotations, remove them using D... | -| [delete-annotations-by-author](./delete-annotations-by-author.cs) | Delete Annotations by Author Using Aspose.Pdf | `Document`, `Page`, `Annotation` | Shows how to filter PDF annotations by the author's Title and remove them using PdfAnnotationEditor. | -| [delete-annotations-export-xfdf](./delete-annotations-export-xfdf.cs) | Delete Specific Annotations and Export Remaining to XFDF | `PdfAnnotationEditor`, `BindPdf`, `DeleteAnnotations` | Demonstrates how to remove all annotations of a given type (e.g., Text) from a PDF using PdfAnnot... | -| [delete-annotations-from-pdf-using-config](./delete-annotations-from-pdf-using-config.cs) | Delete Specific Annotations from PDF Using Configuration Fil... | `PdfAnnotationEditor`, `BindPdf`, `DeleteAnnotations` | Shows how to read annotation types from a text configuration file and delete those (or all) annot... | -| [delete-annotations-from-pdf](./delete-annotations-from-pdf.cs) | Delete All Annotations from PDF Using PdfAnnotationEditor | `Document`, `Page`, `TextAnnotation` | Shows how to create a PDF with text annotations, remove them with PdfAnnotationEditor.DeleteAnnot... | -| [delete-annotations-with-backup](./delete-annotations-with-backup.cs) | Delete All Annotations with Optional Backup | `Document`, `PdfAnnotationEditor`, `DeleteAnnotations` | Demonstrates how to create a backup copy of a PDF before removing all annotations using Aspose.Pd... | -| [delete-flatten-pdf-annotations](./delete-flatten-pdf-annotations.cs) | Delete and Flatten PDF Annotations | `PdfAnnotationEditor`, `BindPdf`, `DeleteAnnotations` | Demonstrates using Aspose.Pdf.Facades.PdfAnnotationEditor to remove all annotations from a PDF, f... | -| [delete-pdf-annotation-by-name](./delete-pdf-annotation-by-name.cs) | Delete a PDF Annotation by Name | `PdfAnnotationEditor`, `BindPdf`, `DeleteAnnotation` | Shows how to remove a specific annotation identified by its name from a PDF using Aspose.Pdf.Faca... | -| ... | | | *and 75 more files* | +| ... | | | *and 125 more files* | ## Category Statistics -- Total examples: 105 +- Total examples: 155 ## Category-Specific Tips @@ -135,5 +135,5 @@ tool.Save("output.pdf"); - Review code examples in this folder for facades-annotations patterns -Updated: 2026-08-20 | Run: `20260820_001147_12d7b3` +Updated: 2026-09-10 | Run: `20260910_054408_87a7f4` diff --git a/facades-annotations/README.md b/facades-annotations/README.md new file mode 100644 index 000000000..cc03ed5db --- /dev/null +++ b/facades-annotations/README.md @@ -0,0 +1,174 @@ +# Facades annotations + +> **Facades annotations** in PDF using C# / .NET -- **155** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. + +- Category: `facades-annotations` +- Examples: 155 +- NuGet: `Aspose.PDF 26.8.0` -- target `net10.0` + +## Examples + +- [`add-custom-metadata-to-pdf-annotation.cs`](./add-custom-metadata-to-pdf-annotation.cs) -- Add custom metadata to pdf annotation +- [`add-text-annotation-with-custom-flags.cs`](./add-text-annotation-with-custom-flags.cs) -- Add text annotation with custom flags +- [`annotation-performance-logger.cs`](./annotation-performance-logger.cs) -- Annotation performance logger +- [`annotation-removal-report.cs`](./annotation-removal-report.cs) -- Annotation removal report +- [`async-pdf-annotation-operations.cs`](./async-pdf-annotation-operations.cs) -- Async pdf annotation operations +- [`backup-and-flatten-pdf-form-fields.cs`](./backup-and-flatten-pdf-form-fields.cs) -- Backup and flatten pdf form fields +- [`backup-pdf-and-flatten-form-fields.cs`](./backup-pdf-and-flatten-form-fields.cs) -- Backup pdf and flatten form fields +- [`backup-pdf-delete-all-annotations.cs`](./backup-pdf-delete-all-annotations.cs) -- Backup pdf delete all annotations +- [`batch-delete-pdf-annotations-azure-blob.cs`](./batch-delete-pdf-annotations-azure-blob.cs) -- Batch delete pdf annotations azure blob +- [`batch-delete-pdf-annotations-retain-types.cs`](./batch-delete-pdf-annotations-retain-types.cs) -- Batch delete pdf annotations retain types +- [`batch-delete-pdf-annotations-with-progress.cs`](./batch-delete-pdf-annotations-with-progress.cs) -- Batch delete pdf annotations with progress +- [`batch-delete-pdf-annotations.cs`](./batch-delete-pdf-annotations.cs) -- Batch delete pdf annotations +- [`batch-delete-stamp-annotations.cs`](./batch-delete-stamp-annotations.cs) -- Batch delete stamp annotations +- [`batch-export-delete-annotations-xfdf.cs`](./batch-export-delete-annotations-xfdf.cs) -- Batch export delete annotations xfdf +- [`batch-export-delete-pdf-annotations.cs`](./batch-export-delete-pdf-annotations.cs) -- Batch export delete pdf annotations +- [`batch-flatten-pdf-annotations-cancellation.cs`](./batch-flatten-pdf-annotations-cancellation.cs) -- Batch flatten pdf annotations cancellation +- [`batch-flatten-pdf-annotations-skip-readonly.cs`](./batch-flatten-pdf-annotations-skip-readonly.cs) -- Batch flatten pdf annotations skip readonly +- [`batch-flatten-pdf-annotations.cs`](./batch-flatten-pdf-annotations.cs) -- Batch flatten pdf annotations +- [`batch-import-xfdf-annotations-into-pdfs.cs`](./batch-import-xfdf-annotations-into-pdfs.cs) -- Batch import xfdf annotations into pdfs +- [`batch-process-pdfs-azure-blob-pdfannotationeditor.cs`](./batch-process-pdfs-azure-blob-pdfannotationeditor.cs) -- Batch process pdfs azure blob pdfannotationeditor +- [`batch-remove-annotations-report.cs`](./batch-remove-annotations-report.cs) -- Batch remove annotations report +- [`batch-remove-old-annotations.cs`](./batch-remove-old-annotations.cs) -- Batch remove old annotations +- [`batch-update-annotation-author.cs`](./batch-update-annotation-author.cs) -- Batch update annotation author +- [`benchmark-delete-annotations.cs`](./benchmark-delete-annotations.cs) -- Benchmark delete annotations +- [`benchmark-deleteannotations-vs-deleteannotation.cs`](./benchmark-deleteannotations-vs-deleteannotation.cs) -- Benchmark deleteannotations vs deleteannotation +- [`change-annotation-subject-color.cs`](./change-annotation-subject-color.cs) -- Change annotation subject color +- [`check-duplicate-annotation-names.cs`](./check-duplicate-annotation-names.cs) -- Check duplicate annotation names +- [`clone-annotation-change-color.cs`](./clone-annotation-change-color.cs) -- Clone annotation change color +- [`clone-modify-pdf-annotation.cs`](./clone-modify-pdf-annotation.cs) -- Clone modify pdf annotation +- [`concurrent-insert-delete-pdf.cs`](./concurrent-insert-delete-pdf.cs) -- Concurrent insert delete pdf +- [`conditional-pdf-flattening-based-on-digital-signatures.cs`](./conditional-pdf-flattening-based-on-digital-signatures.cs) -- Conditional pdf flattening based on digital signatures +- [`conditional-pdf-flattening.cs`](./conditional-pdf-flattening.cs) -- Conditional pdf flattening +- [`copy-annotations-to-multiple-pdfs.cs`](./copy-annotations-to-multiple-pdfs.cs) -- Copy annotations to multiple pdfs +- [`count-pdf-annotations-by-type.cs`](./count-pdf-annotations-by-type.cs) -- Count pdf annotations by type +- [`delete-all-annotations-from-pdf.cs`](./delete-all-annotations-from-pdf.cs) -- Delete all annotations from pdf +- [`delete-annotations-and-log-to-json.cs`](./delete-annotations-and-log-to-json.cs) -- Delete annotations and log to json +- [`delete-annotations-and-verify-count.cs`](./delete-annotations-and-verify-count.cs) -- Delete annotations and verify count +- [`delete-annotations-by-author.cs`](./delete-annotations-by-author.cs) -- Delete annotations by author +- [`delete-annotations-by-rgb-color.cs`](./delete-annotations-by-rgb-color.cs) -- Delete annotations by rgb color +- [`delete-annotations-export-xfdf.cs`](./delete-annotations-export-xfdf.cs) -- Delete annotations export xfdf +- [`delete-annotations-from-pdf-using-config.cs`](./delete-annotations-from-pdf-using-config.cs) -- Delete annotations from pdf using config +- [`delete-annotations-from-pdf.cs`](./delete-annotations-from-pdf.cs) -- Delete annotations from pdf +- [`delete-annotations-from-pdfs.cs`](./delete-annotations-from-pdfs.cs) -- Delete annotations from pdfs +- [`delete-annotations-pdf-annotation-editor.cs`](./delete-annotations-pdf-annotation-editor.cs) -- Delete annotations pdf annotation editor +- [`delete-annotations-with-backup.cs`](./delete-annotations-with-backup.cs) -- Delete annotations with backup +- [`delete-flatten-pdf-annotations.cs`](./delete-flatten-pdf-annotations.cs) -- Delete flatten pdf annotations +- [`delete-pdf-annotation-by-name.cs`](./delete-pdf-annotation-by-name.cs) -- Delete pdf annotation by name +- [`delete-pdf-annotation-by-name__v2.cs`](./delete-pdf-annotation-by-name__v2.cs) -- Delete pdf annotation by name v2 +- [`delete-pdf-annotation-with-error-handling.cs`](./delete-pdf-annotation-with-error-handling.cs) -- Delete pdf annotation with error handling +- [`delete-pdf-annotation-with-retry.cs`](./delete-pdf-annotation-with-retry.cs) -- Delete pdf annotation with retry +- [`delete-pdf-annotations-by-author.cs`](./delete-pdf-annotations-by-author.cs) -- Delete pdf annotations by author +- [`delete-pdf-annotations-by-color.cs`](./delete-pdf-annotations-by-color.cs) -- Delete pdf annotations by color +- [`delete-pdf-annotations-by-name.cs`](./delete-pdf-annotations-by-name.cs) -- Delete pdf annotations by name +- [`delete-pdf-annotations-in-folder.cs`](./delete-pdf-annotations-in-folder.cs) -- Delete pdf annotations in folder +- [`delete-pdf-annotations-in-parallel.cs`](./delete-pdf-annotations-in-parallel.cs) -- Delete pdf annotations in parallel +- [`delete-specific-annotation-types-from-pdf.cs`](./delete-specific-annotation-types-from-pdf.cs) -- Delete specific annotation types from pdf +- [`delete-text-annotations-from-pdf.cs`](./delete-text-annotations-from-pdf.cs) -- Delete text annotations from pdf +- [`export-all-annotations-from-a-pdf-to-an-xfdf-file-by-invoking-exportannotations-with-a-file-stream-destination.cs`](./export-all-annotations-from-a-pdf-to-an-xfdf-file-by-invoking-exportannotations-with-a-file-stream-destination.cs) -- Export all annotations from a pdf to an xfdf file by invoking exportannotations with a file stream destination +- [`export-annotations-to-xfdf-no-annotations.cs`](./export-annotations-to-xfdf-no-annotations.cs) -- Export annotations to xfdf no annotations +- [`export-annotations-to-xfdf-stream.cs`](./export-annotations-to-xfdf-stream.cs) -- Export annotations to xfdf stream +- [`export-annotations-xfdf-gzip.cs`](./export-annotations-xfdf-gzip.cs) -- Export annotations xfdf gzip +- [`export-annotations-xfdf-no-annotations.cs`](./export-annotations-xfdf-no-annotations.cs) -- Export annotations xfdf no annotations +- [`export-highlight-annotations-to-xfdf.cs`](./export-highlight-annotations-to-xfdf.cs) -- Export highlight annotations to xfdf +- [`export-import-flatten-pdf-annotations-logging.cs`](./export-import-flatten-pdf-annotations-logging.cs) -- Export import flatten pdf annotations logging +- [`export-import-pdf-annotations-xfdf.cs`](./export-import-pdf-annotations-xfdf.cs) -- Export import pdf annotations xfdf +- [`export-pdf-annotations-pretty-xfdf.cs`](./export-pdf-annotations-pretty-xfdf.cs) -- Export pdf annotations pretty xfdf +- [`export-pdf-annotations-to-compressed-xfdf.cs`](./export-pdf-annotations-to-compressed-xfdf.cs) -- Export pdf annotations to compressed xfdf +- [`export-pdf-annotations-to-json.cs`](./export-pdf-annotations-to-json.cs) -- Export pdf annotations to json +- [`export-pdf-annotations-to-pretty-xfdf.cs`](./export-pdf-annotations-to-pretty-xfdf.cs) -- Export pdf annotations to pretty xfdf +- [`export-pdf-annotations-to-xfdf-and-validate.cs`](./export-pdf-annotations-to-xfdf-and-validate.cs) -- Export pdf annotations to xfdf and validate +- [`export-pdf-annotations-to-xfdf-custom-namespace.cs`](./export-pdf-annotations-to-xfdf-custom-namespace.cs) -- Export pdf annotations to xfdf custom namespace +- [`export-pdf-annotations-to-xfdf-with-diagnostic-logging.cs`](./export-pdf-annotations-to-xfdf-with-diagnostic-logging.cs) -- Export pdf annotations to xfdf with diagnostic logging +- [`export-pdf-annotations-to-xfdf-with-log.cs`](./export-pdf-annotations-to-xfdf-with-log.cs) -- Export pdf annotations to xfdf with log +- [`export-pdf-annotations-to-xfdf.cs`](./export-pdf-annotations-to-xfdf.cs) -- Export pdf annotations to xfdf +- [`export-pdf-annotations-to-xfdf__v2.cs`](./export-pdf-annotations-to-xfdf__v2.cs) -- Export pdf annotations to xfdf v2 +- [`extract-annotation-rectangles-to-pdf.cs`](./extract-annotation-rectangles-to-pdf.cs) -- Extract annotation rectangles to pdf +- [`extract-annotation-rectangles.cs`](./extract-annotation-rectangles.cs) -- Extract annotation rectangles +- [`extract-pdf-annotation-comments-summary.cs`](./extract-pdf-annotation-comments-summary.cs) -- Extract pdf annotation comments summary +- [`extract-pdf-annotation-details.cs`](./extract-pdf-annotation-details.cs) -- Extract pdf annotation details +- [`extract-pdf-annotations-summary.cs`](./extract-pdf-annotations-summary.cs) -- Extract pdf annotations summary +- [`flatten-annotations-first-five-pages.cs`](./flatten-annotations-first-five-pages.cs) -- Flatten annotations first five pages +- [`flatten-annotations-network-share.cs`](./flatten-annotations-network-share.cs) -- Flatten annotations network share +- [`flatten-annotations-on-network-share.cs`](./flatten-annotations-on-network-share.cs) -- Flatten annotations on network share +- [`flatten-delete-pdf-annotations-verbose.cs`](./flatten-delete-pdf-annotations-verbose.cs) -- Flatten delete pdf annotations verbose +- [`flatten-pdf-annotations-from-stream.cs`](./flatten-pdf-annotations-from-stream.cs) -- Flatten pdf annotations from stream +- [`flatten-pdf-annotations-log-size-reduction.cs`](./flatten-pdf-annotations-log-size-reduction.cs) -- Flatten pdf annotations log size reduction +- [`flatten-pdf-annotations-validate.cs`](./flatten-pdf-annotations-validate.cs) -- Flatten pdf annotations validate +- [`flatten-pdf-annotations-verify-removal.cs`](./flatten-pdf-annotations-verify-removal.cs) -- Flatten pdf annotations verify removal +- [`flatten-pdf-annotations-verify.cs`](./flatten-pdf-annotations-verify.cs) -- Flatten pdf annotations verify +- [`flatten-pdf-annotations.cs`](./flatten-pdf-annotations.cs) -- Flatten pdf annotations +- [`flatten-pdf-annotations__v2.cs`](./flatten-pdf-annotations__v2.cs) -- Flatten pdf annotations v2 +- [`flatten-pdf-save-custom-output.cs`](./flatten-pdf-save-custom-output.cs) -- Flatten pdf save custom output +- [`flatten-pdf-tag-flatten-date.cs`](./flatten-pdf-tag-flatten-date.cs) -- Flatten pdf tag flatten date +- [`flatten-pdf-tag-flattened-date.cs`](./flatten-pdf-tag-flattened-date.cs) -- Flatten pdf tag flattened date +- [`flatten-pdfs-save-to-custom-output-directory.cs`](./flatten-pdfs-save-to-custom-output-directory.cs) -- Flatten pdfs save to custom output directory +- [`fluent-pdf-annotation-delete-flatten.cs`](./fluent-pdf-annotation-delete-flatten.cs) -- Fluent pdf annotation delete flatten +- [`generate-annotation-summary-report.cs`](./generate-annotation-summary-report.cs) -- Generate annotation summary report +- [`get-annotation-counts-from-pdf.cs`](./get-annotation-counts-from-pdf.cs) -- Get annotation counts from pdf +- [`get-annotation-names-by-author.cs`](./get-annotation-names-by-author.cs) -- Get annotation names by author +- [`import-annotations-from-xfdf-stream.cs`](./import-annotations-from-xfdf-stream.cs) -- Import annotations from xfdf stream +- [`import-annotations-without-overwrite.cs`](./import-annotations-without-overwrite.cs) -- Import annotations without overwrite +- [`import-xfdf-annotations-into-multiple-pdfs.cs`](./import-xfdf-annotations-into-multiple-pdfs.cs) -- Import xfdf annotations into multiple pdfs +- [`import-xfdf-annotations-into-pdf.cs`](./import-xfdf-annotations-into-pdf.cs) -- Import xfdf annotations into pdf +- [`import-xfdf-annotations-into-pdf__v2.cs`](./import-xfdf-annotations-into-pdf__v2.cs) -- Import xfdf annotations into pdf v2 +- [`import-xfdf-annotations-to-specific-pages.cs`](./import-xfdf-annotations-to-specific-pages.cs) -- Import xfdf annotations to specific pages +- [`import-xfdf-into-pdf-cleanup.cs`](./import-xfdf-into-pdf-cleanup.cs) -- Import xfdf into pdf cleanup +- [`list-annotation-names-pdf-annotation-editor.cs`](./list-annotation-names-pdf-annotation-editor.cs) -- List annotation names pdf annotation editor +- [`list-pdf-annotation-names.cs`](./list-pdf-annotation-names.cs) -- List pdf annotation names +- [`list-pdf-annotations-to-csv.cs`](./list-pdf-annotations-to-csv.cs) -- List pdf annotations to csv +- [`log-annotation-deletions-to-csv.cs`](./log-annotation-deletions-to-csv.cs) -- Log annotation deletions to csv +- [`log-annotation-modified-timestamp.cs`](./log-annotation-modified-timestamp.cs) -- Log annotation modified timestamp +- [`log-annotation-workflow.cs`](./log-annotation-workflow.cs) -- Log annotation workflow +- [`log-file-sizes-after-flattening-pdf-annotations.cs`](./log-file-sizes-after-flattening-pdf-annotations.cs) -- Log file sizes after flattening pdf annotations +- [`log-pdf-annotation-operations-duration.cs`](./log-pdf-annotation-operations-duration.cs) -- Log pdf annotation operations duration +- [`log-update-annotation-modification-timestamps.cs`](./log-update-annotation-modification-timestamps.cs) -- Log update annotation modification timestamps +- [`manage-pdf-annotations-verbose.cs`](./manage-pdf-annotations-verbose.cs) -- Manage pdf annotations verbose +- [`measure-annotation-flattening-performance.cs`](./measure-annotation-flattening-performance.cs) -- Measure annotation flattening performance +- [`merge-annotation-layers-from-multiple-pdfs.cs`](./merge-annotation-layers-from-multiple-pdfs.cs) -- Merge annotation layers from multiple pdfs +- [`merge-annotation-layers.cs`](./merge-annotation-layers.cs) -- Merge annotation layers +- [`merge-multiple-xfdf-files.cs`](./merge-multiple-xfdf-files.cs) -- Merge multiple xfdf files +- [`merge-multiple-xfdf-into-pdf.cs`](./merge-multiple-xfdf-into-pdf.cs) -- Merge multiple xfdf into pdf +- [`modify-annotation-author-on-pdf-page.cs`](./modify-annotation-author-on-pdf-page.cs) -- Modify annotation author on pdf page +- [`modify-annotation-subject-unit-test.cs`](./modify-annotation-subject-unit-test.cs) -- Modify annotation subject unit test +- [`monitor-folder-flatten-pdf-annotations.cs`](./monitor-folder-flatten-pdf-annotations.cs) -- Monitor folder flatten pdf annotations +- [`pdf-annotation-flattening-service.cs`](./pdf-annotation-flattening-service.cs) -- Pdf annotation flattening service +- [`pdf-annotation-helper.cs`](./pdf-annotation-helper.cs) -- Pdf annotation helper +- [`pdf-annotation-helper__v2.cs`](./pdf-annotation-helper__v2.cs) -- Pdf annotation helper v2 +- [`pdf-annotation-utility-delete-flatten-export.cs`](./pdf-annotation-utility-delete-flatten-export.cs) -- Pdf annotation utility delete flatten export +- [`pdfannotationeditor-health-check.cs`](./pdfannotationeditor-health-check.cs) -- Pdfannotationeditor health check +- [`remove-all-annotations-from-pdf.cs`](./remove-all-annotations-from-pdf.cs) -- Remove all annotations from pdf +- [`remove-all-annotations-from-pdf__v2.cs`](./remove-all-annotations-from-pdf__v2.cs) -- Remove all annotations from pdf v2 +- [`remove-all-annotations-from-pdfs-in-parallel.cs`](./remove-all-annotations-from-pdfs-in-parallel.cs) -- Remove all annotations from pdfs in parallel +- [`remove-all-annotations-from-pdfs.cs`](./remove-all-annotations-from-pdfs.cs) -- Remove all annotations from pdfs +- [`remove-link-annotations-from-pdf.cs`](./remove-link-annotations-from-pdf.cs) -- Remove link annotations from pdf +- [`remove-link-annotations-from-specific-pdf-pages.cs`](./remove-link-annotations-from-specific-pdf-pages.cs) -- Remove link annotations from specific pdf pages +- [`remove-old-annotations-from-pdf.cs`](./remove-old-annotations-from-pdf.cs) -- Remove old annotations from pdf +- [`remove-pdf-annotations.cs`](./remove-pdf-annotations.cs) -- Remove pdf annotations +- [`rename-pdf-annotation-names.cs`](./rename-pdf-annotation-names.cs) -- Rename pdf annotation names +- [`report-pdf-annotations-by-author.cs`](./report-pdf-annotations-by-author.cs) -- Report pdf annotations by author +- [`retrieve-annotation-count-per-pdf-page.cs`](./retrieve-annotation-count-per-pdf-page.cs) -- Retrieve annotation count per pdf page +- [`retry-annotation-modification-exponential-backoff.cs`](./retry-annotation-modification-exponential-backoff.cs) -- Retry annotation modification exponential backoff +- [`retry-delete-pdf-annotations.cs`](./retry-delete-pdf-annotations.cs) -- Retry delete pdf annotations +- [`set-annotation-open-flag.cs`](./set-annotation-open-flag.cs) -- Set annotation open flag +- [`set-readonly-flag-on-pdf-annotation.cs`](./set-readonly-flag-on-pdf-annotation.cs) -- Set readonly flag on pdf annotation +- [`set-readonly-flag-on-pdf-text-annotation.cs`](./set-readonly-flag-on-pdf-text-annotation.cs) -- Set readonly flag on pdf text annotation +- [`skip-readonly-annotations-when-flattening-pdf.cs`](./skip-readonly-annotations-when-flattening-pdf.cs) -- Skip readonly annotations when flattening pdf +- [`test-export-annotations-unbound-editor.cs`](./test-export-annotations-unbound-editor.cs) -- Test export annotations unbound editor +- [`test-export-annotations-unbound-pdfannotationeditor.cs`](./test-export-annotations-unbound-pdfannotationeditor.cs) -- Test export annotations unbound pdfannotationeditor +- [`update-annotation-modified-date.cs`](./update-annotation-modified-date.cs) -- Update annotation modified date +- [`update-annotation-subject-color.cs`](./update-annotation-subject-color.cs) -- Update annotation subject color +- [`update-annotation-subject.cs`](./update-annotation-subject.cs) -- Update annotation subject +- [`validate-exported-xfdf-against-the-xfdf-schema-by-loading-the-file-into-an-xml-document-and-checking-errors.cs`](./validate-exported-xfdf-against-the-xfdf-schema-by-loading-the-file-into-an-xml-document-and-checking-errors.cs) -- Validate exported xfdf against the xfdf schema by loading the file into an xml document and checking errors +- [`validate-no-annotations-after-flattening.cs`](./validate-no-annotations-after-flattening.cs) -- Validate no annotations after flattening +- [`validate-pdf-integrity-after-annotation-changes.cs`](./validate-pdf-integrity-after-annotation-changes.cs) -- Validate pdf integrity after annotation changes +- [`validate-pdf-integrity-after-annotation.cs`](./validate-pdf-integrity-after-annotation.cs) -- Validate pdf integrity after annotation + +## See Also + +- [`AGENTS.md`](./AGENTS.md) -- category-specific anti-patterns, API surface, and conventions for AI coding agents +- [`../AGENTS.md`](../AGENTS.md) -- repository-wide agent guide +- [`../README.md`](../README.md) -- full category index and project overview +- [Aspose.PDF for .NET docs](https://docs.aspose.com/pdf/net/) + +> Each `.cs` file is a standalone, build-validated console example. Drop into a fresh `dotnet new console` project, add the `Aspose.PDF` NuGet (version above), and run. diff --git a/facades-annotations/index.json b/facades-annotations/index.json index 5d8928ebe..a860597b5 100644 --- a/facades-annotations/index.json +++ b/facades-annotations/index.json @@ -1,228 +1,344 @@ { "category": "facades-annotations", "nuget_version": "26.8.0", - "last_updated": "2026-08-20T07:27:30Z", + "last_updated": "2026-09-10T12:45:08Z", "examples": { - "remove-all-annotations-from-pdf": { - "title": "Remove All Annotations from a PDF using PdfAnnotationEditor", - "filename": "remove-all-annotations-from-pdf.cs", - "description": "Demonstrates how to bind a PDF file to Aspose.Pdf.Facades.PdfAnnotationEditor, delete every annotation in the document, and save the cleaned PDF to a new file.", + "add-custom-metadata-to-pdf-annotation": { + "title": "Add Custom Metadata to a PDF Annotation", + "filename": "add-custom-metadata-to-pdf-annotation.cs", + "description": "Demonstrates how to create a TextAnnotation, store custom key/value metadata using PdfFileInfo, optionally modify the annotation with PdfAnnotationEditor, and save the PDF.", "tags": [ + "annotation", + "metadata", "pdf", - "annotations", - "delete", - "aspose-pdf", - "csharp" + "aspose", + "custom-field" ], "apis_used": [ - "PdfAnnotationEditor", - "PdfAnnotationEditor.BindPdf", - "PdfAnnotationEditor.DeleteAnnotations", - "PdfAnnotationEditor.Save" + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Facades.PdfFileInfo.SetMetaInfo", + "Aspose.Pdf.Facades.PdfAnnotationEditor.ModifyAnnotations" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "remove-all-annotations-from-pdfs": { - "title": "Remove All Annotations from PDFs in a Folder", - "filename": "remove-all-annotations-from-pdfs.cs", - "description": "Shows how to loop through PDF files in a directory, bind each with PdfAnnotationEditor, delete every annotation, and overwrite the original file.", + "add-text-annotation-with-custom-flags": { + "title": "Add Text Annotation with Custom Flags to PDF", + "filename": "add-text-annotation-with-custom-flags.cs", + "description": "Demonstrates creating a TextAnnotation, setting custom annotation flags (Invisible, NoZoom), and applying it to all pages using PdfAnnotationEditor.", "tags": [ + "annotation", + "custom-flags", + "text", "pdf", - "annotations", - "batch", - "Aspose.Pdf", - "delete" + "Aspose" ], "apis_used": [ - "PdfAnnotationEditor", - "PdfAnnotationEditor.BindPdf", - "PdfAnnotationEditor.DeleteAnnotations", - "PdfAnnotationEditor.Save" + "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Annotations.AnnotationFlags", + "Aspose.Pdf.Facades.PdfAnnotationEditor.ModifyAnnotations", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", + "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", + "Aspose.Pdf.Page" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "delete-text-annotations-from-pdf": { - "title": "Delete Text Annotations from PDF", - "filename": "delete-text-annotations-from-pdf.cs", - "description": "Shows how to remove only text (sticky note) annotations from a PDF by using PdfAnnotationEditor.DeleteAnnotations with the type name \"Text\".", + "annotation-performance-logger": { + "title": "Annotation Performance Logger", + "filename": "annotation-performance-logger.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "annotation-removal-report": { + "title": "Annotation Removal Report for PDFs", + "filename": "annotation-removal-report.cs", + "description": "Demonstrates how to count and delete all annotations from multiple PDF files using Aspose.Pdf and generate a CSV‑style report showing the number of annotations removed per file.", "tags": [ "annotations", - "delete", "pdf", - "text", - "Aspose" + "report", + "batch-processing", + "aspose-pdf" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotations", "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "remove-link-annotations-from-pdf": { - "title": "Remove Link Annotations from PDF", - "filename": "remove-link-annotations-from-pdf.cs", - "description": "Shows how to delete link annotations in a PDF using the PdfAnnotationEditor facade from Aspose.Pdf.", + "async-pdf-annotation-operations": { + "title": "Asynchronous PDF Annotation Operations with Aspose.Pdf", + "filename": "async-pdf-annotation-operations.cs", + "description": "Demonstrates how to perform common PDF annotation tasks—flattening, deleting, importing, and exporting—using Aspose.Pdf's PdfAnnotationEditor wrapped in Task.Run for non‑blocking asynchronous execution.", "tags": [ - "pdf", + "async", "annotations", - "delete", - "link", - "Aspose.Pdf" + "pdf", + "Aspose.Pdf", + "flatten" ], "apis_used": [ "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" + "Aspose.Pdf.Facades.PdfAnnotationEditor.FlatteningAnnotations", + "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotation", + "Aspose.Pdf.Facades.PdfAnnotationEditor.ImportAnnotationsFromFdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.ExportAnnotationsToXfdf", + "Aspose.Pdf.Document", + "Aspose.Pdf.Annotations.TextAnnotation" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "delete-pdf-annotation-by-name": { - "title": "Delete a PDF Annotation by Name", - "filename": "delete-pdf-annotation-by-name.cs", - "description": "Shows how to remove a specific annotation identified by its name from a PDF using Aspose.Pdf.Facades.PdfAnnotationEditor.", + "backup-and-flatten-pdf-form-fields": { + "title": "Backup And Flatten Pdf Form Fields", + "filename": "backup-and-flatten-pdf-form-fields.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "backup-pdf-and-flatten-form-fields": { + "title": "Backup PDF and Flatten Form Fields", + "filename": "backup-pdf-and-flatten-form-fields.cs", + "description": "Demonstrates how to create a backup of a PDF before flattening all interactive form fields using Aspose.Pdf and the Form facade.", "tags": [ - "annotation", - "delete", "pdf", - "Aspose.Pdf", - "PdfAnnotationEditor" + "backup", + "flatten", + "form", + "facade" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.Form.FlattenAllFields", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:27:30Z", + "status": "verified" + }, + "backup-pdf-delete-all-annotations": { + "title": "Backup Pdf Delete All Annotations", + "filename": "backup-pdf-delete-all-annotations.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "batch-delete-pdf-annotations-azure-blob": { + "title": "Batch Delete PDF Annotations from Azure Blob Storage", + "filename": "batch-delete-pdf-annotations-azure-blob.cs", + "description": "Demonstrates how to enumerate PDF blobs in an Azure Blob container, stream each PDF into Aspose.Pdf.Facades.PdfAnnotationEditor, delete all annotations, and upload the edited file back to another container.", + "tags": [ + "pdf", + "azure-blob", + "annotations", + "batch-processing", + "streaming" + ], + "apis_used": [ + "PdfAnnotationEditor", + "PdfAnnotationEditor.BindPdf", + "PdfAnnotationEditor.DeleteAnnotations", + "PdfAnnotationEditor.Save", + "PdfAnnotationEditor.Dispose" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:27:30Z", + "status": "verified" + }, + "batch-delete-pdf-annotations-retain-types": { + "title": "Batch Delete PDF Annotations While Retaining Specified Types", + "filename": "batch-delete-pdf-annotations-retain-types.cs", + "description": "Demonstrates how to load a PDF, read a JSON configuration that lists annotation types to keep, and delete all other annotations using Aspose.Pdf's PdfAnnotationEditor.", + "tags": [ + "pdf", + "annotations", + "batch-delete", + "json-config", + "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Annotations.AnnotationType", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotation", + "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotations", "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "delete-pdf-annotation-by-name__v2": { - "title": "Delete PDF Annotation by Name", - "filename": "delete-pdf-annotation-by-name__v2.cs", - "description": "Shows how to remove a specific annotation from a PDF document by passing its name to the DeleteAnnotation method of PdfAnnotationEditor.", + "batch-delete-pdf-annotations-with-progress": { + "title": "Batch Delete PDF Annotations with Progress", + "filename": "batch-delete-pdf-annotations-with-progress.cs", + "description": "Demonstrates how to remove all annotations from multiple PDF files using Aspose.Pdf.Facades.PdfAnnotationEditor while showing a simple console progress percentage.", "tags": [ - "annotation", - "delete", "pdf", - "Aspose.Pdf", - "facade" + "annotations", + "batch", + "progress", + "aspose" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfAnnotationEditor", + "PdfAnnotationEditor", "PdfAnnotationEditor.BindPdf", - "PdfAnnotationEditor.DeleteAnnotation", + "PdfAnnotationEditor.DeleteAnnotations", "PdfAnnotationEditor.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "export-pdf-annotations-to-xfdf": { - "title": "Export PDF Annotations to XFDF", - "filename": "export-pdf-annotations-to-xfdf.cs", - "description": "Demonstrates how to bind a PDF with PdfAnnotationEditor and export all its annotations to an XFDF file using a file stream.", + "batch-delete-pdf-annotations": { + "title": "Batch Delete Pdf Annotations", + "filename": "batch-delete-pdf-annotations.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "batch-delete-stamp-annotations": { + "title": "Batch Delete Stamp Annotations from PDFs", + "filename": "batch-delete-stamp-annotations.cs", + "description": "Demonstrates how to iterate through PDF files in a folder and remove all stamp annotations using Aspose.Pdf's PdfAnnotationEditor facade, saving the cleaned documents.", "tags": [ - "annotations", - "xfdf", - "export", "pdf", - "facade" + "annotations", + "batch", + "delete", + "stamp" ], "apis_used": [ "PdfAnnotationEditor", "PdfAnnotationEditor.BindPdf", - "PdfAnnotationEditor.ExportAnnotationsToXfdf", - "PdfAnnotationEditor.Close" + "PdfAnnotationEditor.DeleteAnnotations", + "PdfAnnotationEditor.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "export-annotations-to-xfdf-stream": { - "title": "Export Annotations from Specific PDF Pages to XFDF Stream", - "filename": "export-annotations-to-xfdf-stream.cs", - "description": "Shows how to bind a PDF, export annotations from pages 1‑2 into an XFDF memory stream, and optionally read the XFDF content.", + "batch-export-delete-annotations-xfdf": { + "title": "Batch Export Annotations to XFDF and Remove Them", + "filename": "batch-export-delete-annotations-xfdf.cs", + "description": "Shows how to process a folder of PDFs, export all annotations to XFDF files for archiving, delete the annotations, and save the cleaned PDFs using Aspose.Pdf.Facades.", "tags": [ "annotations", "xfdf", - "export", + "batch-processing", "pdf", - "memory-stream" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ExportAnnotationsXfdf", - "Aspose.Pdf.Annotations.AnnotationType" + "Aspose.Pdf.Facades.PdfAnnotationEditor.ExportAnnotationsToXfdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotations", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "export-highlight-annotations-to-xfdf": { - "title": "Export Highlight Annotations to XFDF", - "filename": "export-highlight-annotations-to-xfdf.cs", - "description": "Demonstrates how to filter PDF annotations by the Highlight type and export them to an XFDF file using the PdfAnnotationEditor overload.", + "batch-export-delete-pdf-annotations": { + "title": "Batch Export Delete Pdf Annotations", + "filename": "batch-export-delete-pdf-annotations.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "batch-flatten-pdf-annotations-cancellation": { + "title": "Batch Flatten PDF Annotations with Cancellation Support", + "filename": "batch-flatten-pdf-annotations-cancellation.cs", + "description": "Demonstrates flattening all annotations in multiple PDF files using Aspose.Pdf's PdfAnnotationEditor while allowing the operation to be aborted via a CancellationToken.", "tags": [ + "pdf", "annotations", - "xfdf", - "export", - "highlight", - "pdf" + "flatten", + "cancellation", + "batch" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Annotations.AnnotationType", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ExportAnnotationsXfdf" + "Aspose.Pdf.Facades.PdfAnnotationEditor.FlatteningAnnotations", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Close" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "import-xfdf-annotations-into-pdf": { - "title": "Import XFDF Annotations into PDF", - "filename": "import-xfdf-annotations-into-pdf.cs", - "description": "Shows how to bind a PDF with PdfAnnotationEditor, import annotations from an XFDF file, and save the updated PDF.", + "batch-flatten-pdf-annotations-skip-readonly": { + "title": "Batch Flatten Pdf Annotations Skip Readonly", + "filename": "batch-flatten-pdf-annotations-skip-readonly.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "batch-flatten-pdf-annotations": { + "title": "Batch Flatten PDF Annotations", + "filename": "batch-flatten-pdf-annotations.cs", + "description": "Processes every PDF in a specified folder, flattens all annotations using Aspose.Pdf's PdfAnnotationEditor, and saves the result with a \"_flattened\" suffix.", "tags": [ - "xfdf", - "annotations", "pdf", - "import", + "annotations", + "flatten", + "batch", "aspose-pdf" ], "apis_used": [ - "PdfAnnotationEditor", + "Aspose.Pdf.Facades.PdfAnnotationEditor", "PdfAnnotationEditor.BindPdf", - "PdfAnnotationEditor.ImportAnnotationsFromXfdf", + "PdfAnnotationEditor.FlatteningAnnotations", "PdfAnnotationEditor.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "import-xfdf-annotations-to-specific-pages": { - "title": "Import XFDF Annotations to Specific PDF Pages", - "filename": "import-xfdf-annotations-to-specific-pages.cs", - "description": "Demonstrates how to import annotations from an XFDF file into a PDF and retain them only on a defined page range.", + "batch-import-xfdf-annotations-into-pdfs": { + "title": "Batch Import XFDF Annotations into Matching PDFs", + "filename": "batch-import-xfdf-annotations-into-pdfs.cs", + "description": "Demonstrates iterating over PDF files, locating corresponding XFDF files by name, importing their annotations with PdfAnnotationEditor, and saving the updated PDFs.", "tags": [ "xfdf", "annotations", + "batch", "pdf", - "pages", "import" ], "apis_used": [ @@ -230,367 +346,531 @@ "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", "Aspose.Pdf.Facades.PdfAnnotationEditor.ImportAnnotationsFromXfdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", - "Aspose.Pdf.Page", - "Aspose.Pdf.Page.Annotations", - "Aspose.Pdf.Page.Annotations.Delete" + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "import-annotations-without-overwrite": { - "title": "Import Annotations Without Overwriting Existing Ones", - "filename": "import-annotations-without-overwrite.cs", - "description": "Demonstrates how to import annotations from one or more source PDFs into a target PDF while preserving any annotations already present, using the PdfAnnotationEditor facade.", + "batch-process-pdfs-azure-blob-pdfannotationeditor": { + "title": "Batch Process Pdfs Azure Blob Pdfannotationeditor", + "filename": "batch-process-pdfs-azure-blob-pdfannotationeditor.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "batch-remove-annotations-report": { + "title": "Batch Remove Annotations Report", + "filename": "batch-remove-annotations-report.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "batch-remove-old-annotations": { + "title": "Batch Remove Old Annotations from PDFs", + "filename": "batch-remove-old-annotations.cs", + "description": "Demonstrates how to iterate through PDFs in a folder and delete annotations whose modification date is older than a specified number of days using Aspose.Pdf.", "tags": [ "annotations", - "import", + "cleanup", + "batch", "pdf", - "Aspose.Pdf", - "preserve" + "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ImportAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.AnnotationCollection", + "Aspose.Pdf.Annotations.Annotation.Modified" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "flatten-pdf-annotations": { - "title": "Flatten PDF Annotations to Non‑Editable Elements", - "filename": "flatten-pdf-annotations.cs", - "description": "Shows how to use Aspose.Pdf.Facades.PdfAnnotationEditor to flatten all annotations in a PDF, converting them to static visual content, and then save the result.", + "batch-update-annotation-author": { + "title": "Batch Update Annotation Author Across Multiple PDFs", + "filename": "batch-update-annotation-author.cs", + "description": "Shows how to iterate through PDF files in a directory and use PdfAnnotationEditor to replace the author of existing annotations with a new value, saving the modified PDFs to an output folder.", "tags": [ - "flatten", "annotations", + "batch", + "author", "pdf", - "Aspose.Pdf", - "facade" + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.FlatteningAnnotations", + "Aspose.Pdf.Facades.PdfAnnotationEditor.ModifyAnnotationsAuthor", "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Close" + "Aspose.Pdf.Facades.PdfAnnotationEditor.Close", + "Aspose.Pdf.Document.Pages.Count" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "flatten-annotations-first-five-pages": { - "title": "Flatten Annotations on the First Five PDF Pages", - "filename": "flatten-annotations-first-five-pages.cs", - "description": "Demonstrates how to use the PdfAnnotationEditor facade to flatten all annotation types on pages 1 through 5 of a PDF document and save the result.", + "benchmark-delete-annotations": { + "title": "Benchmark Deleting PDF Annotations with Aspose.Pdf", + "filename": "benchmark-delete-annotations.cs", + "description": "Creates a PDF with multiple text annotations and measures the performance of deleting all annotations via DeleteAnnotations versus deleting a single annotation via DeleteAnnotation.", "tags": [ - "flatten", "annotations", - "pdf", - "pages", - "Aspose" + "benchmark", + "performance", + "aspose-pdf", + "pdf-editing" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.FlatteningAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", - "Aspose.Pdf.Annotations.AnnotationType" + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotations", + "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotation", + "Aspose.Pdf.Rectangle" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "modify-annotation-author-on-pdf-page": { - "title": "Modify Annotation Author on a PDF Page", - "filename": "modify-annotation-author-on-pdf-page.cs", - "description": "Demonstrates how to change the author (Title) of text annotations on a specific page of a PDF using Aspose.Pdf's PdfAnnotationEditor.", + "benchmark-deleteannotations-vs-deleteannotation": { + "title": "Benchmark Deleteannotations Vs Deleteannotation", + "filename": "benchmark-deleteannotations-vs-deleteannotation.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "change-annotation-subject-color": { + "title": "Change Annotation Subject Color", + "filename": "change-annotation-subject-color.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "check-duplicate-annotation-names": { + "title": "Check for Duplicate Annotation Names in a PDF", + "filename": "check-duplicate-annotation-names.cs", + "description": "Shows how to iterate through all annotations in a PDF with Aspose.Pdf, detect duplicate annotation names, and write a detailed report to a log file.", "tags": [ "annotations", - "author", + "duplicate", "pdf", - "modify", + "logging", "Aspose.Pdf" ], "apis_used": [ + "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Document", - "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ModifyAnnotationsAuthor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.AnnotationCollection", + "Aspose.Pdf.Annotations.Annotation", "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "update-annotation-subject-color": { - "title": "Update Annotation Subject and Color", - "filename": "update-annotation-subject-color.cs", - "description": "Shows how to change the subject text and color of an existing PDF annotation by creating a new TextAnnotation and applying it with PdfAnnotationEditor.ModifyAnnotations.", + "clone-annotation-change-color": { + "title": "Clone PDF Annotation, Change Its Color, and Add to Another Page", + "filename": "clone-annotation-change-color.cs", + "description": "Demonstrates how to load a PDF, clone an existing annotation, modify its color, and place the cloned annotation on a different page using Aspose.Pdf.", "tags": [ "annotation", - "modify", - "subject", + "clone", "color", - "pdf" + "pdf", + "Aspose.Pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Annotations.StampAnnotation", + "Aspose.Pdf.Color", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:27:30Z", + "status": "verified" + }, + "clone-modify-pdf-annotation": { + "title": "Clone and Modify PDF Annotation", + "filename": "clone-modify-pdf-annotation.cs", + "description": "Shows how to clone an existing annotation on a PDF page, change its properties, and add the cloned annotation back to the same page using Aspose.Pdf.Facades.", + "tags": [ + "annotation", + "clone", + "pdf", + "Aspose.Pdf", + "facade" ], "apis_used": [ + "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Annotations.StampAnnotation" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:27:30Z", + "status": "verified" + }, + "concurrent-insert-delete-pdf": { + "title": "Concurrent Insert and Delete Operations on a PDF", + "filename": "concurrent-insert-delete-pdf.cs", + "description": "Demonstrates how to safely perform simultaneous page insertions and deletions on the same PDF using Aspose.Pdf with multithreading and file locking.", + "tags": [ + "concurrency", + "pdf", + "aspose", + "insert", + "delete" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfFileEditor", + "Aspose.Pdf.Facades.PdfFileEditor.TryInsert", + "Aspose.Pdf.Facades.PdfFileEditor.TryDelete", "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ModifyAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" + "Aspose.Pdf.Document.Pages" ], - "difficulty": "intermediate", + "difficulty": "advanced", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "set-annotation-open-flag": { - "title": "Set Annotation Open Flag for All PDF Annotations", - "filename": "set-annotation-open-flag.cs", - "description": "Demonstrates how to iterate through all pages and annotations in a PDF and set the Open flag to true for text and popup annotations using Aspose.Pdf.", + "conditional-pdf-flattening-based-on-digital-signatures": { + "title": "Conditional Pdf Flattening Based On Digital Signatures", + "filename": "conditional-pdf-flattening-based-on-digital-signatures.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "conditional-pdf-flattening": { + "title": "Conditional PDF Flattening Based on Digital Signatures", + "filename": "conditional-pdf-flattening.cs", + "description": "The example checks if a PDF contains digital signatures using PdfFileSignature and only flattens form fields and annotations when no signatures are present, preserving signature validity.", "tags": [ - "annotations", - "open-flag", "pdf", - "aspose", - "csharp" + "flatten", + "digital-signature", + "aspose.pdf", + "facade" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Annotations.PopupAnnotation" + "Aspose.Pdf.Facades.PdfFileSignature", + "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", + "Aspose.Pdf.Facades.PdfFileSignature.ContainsSignature", + "Aspose.Pdf.Document.Flatten", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "update-annotation-modified-date": { - "title": "Update Annotation Modified Date in PDF", - "filename": "update-annotation-modified-date.cs", - "description": "Shows how to set the Modified property of a PDF annotation to the current system time using PdfAnnotationEditor.ModifyAnnotations.", + "copy-annotations-to-multiple-pdfs": { + "title": "Copy Annotations from Template PDF to Multiple PDFs", + "filename": "copy-annotations-to-multiple-pdfs.cs", + "description": "Demonstrates exporting annotations from a template PDF to an XFDF stream and importing them into several target PDFs using Aspose.Pdf.Facades.PdfAnnotationEditor.", "tags": [ - "annotation", - "modified-date", + "annotations", + "xfdf", "pdf", - "Aspose.Pdf", + "copy", "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ModifyAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" + "PdfAnnotationEditor.BindPdf", + "PdfAnnotationEditor.ExportAnnotationsToXfdf", + "PdfAnnotationEditor.ImportAnnotationsFromXfdf", + "PdfAnnotationEditor.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "set-readonly-flag-on-pdf-text-annotation": { - "title": "Set Read‑Only Flag on PDF Text Annotation", - "filename": "set-readonly-flag-on-pdf-text-annotation.cs", - "description": "Demonstrates creating a TextAnnotation, applying the ReadOnly flag via the Flags property, and adding it to a PDF using PdfAnnotationEditor.ModifyAnnotations.", + "count-pdf-annotations-by-type": { + "title": "Count Pdf Annotations By Type", + "filename": "count-pdf-annotations-by-type.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "delete-all-annotations-from-pdf": { + "title": "Delete All Annotations from PDF and Verify Count", + "filename": "delete-all-annotations-from-pdf.cs", + "description": "Shows how to bind a PDF with PdfAnnotationEditor, count existing annotations, remove them using DeleteAnnotations, and confirm the removal before saving the file.", "tags": [ - "annotation", - "readonly", + "annotations", + "delete", "pdf", - "aspose", - "text" + "Aspose.Pdf", + "verification" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Annotations.AnnotationFlags", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ModifyAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" + "PdfAnnotationEditor", + "PdfAnnotationEditor.BindPdf", + "PdfAnnotationEditor.DeleteAnnotations", + "PdfAnnotationEditor.Save", + "Document" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "batch-update-annotation-author": { - "title": "Batch Update Annotation Author Across Multiple PDFs", - "filename": "batch-update-annotation-author.cs", - "description": "Shows how to iterate through PDF files in a directory and use PdfAnnotationEditor to replace the author of existing annotations with a new value, saving the modified PDFs to an output folder.", + "delete-annotations-and-log-to-json": { + "title": "Delete Annotations And Log To Json", + "filename": "delete-annotations-and-log-to-json.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "delete-annotations-and-verify-count": { + "title": "Delete Annotations And Verify Count", + "filename": "delete-annotations-and-verify-count.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "delete-annotations-by-author": { + "title": "Delete Annotations by Author Using Aspose.Pdf", + "filename": "delete-annotations-by-author.cs", + "description": "Shows how to filter PDF annotations by the author's Title and remove them using PdfAnnotationEditor.", "tags": [ "annotations", - "batch", + "delete", "author", "pdf", "Aspose.Pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.MarkupAnnotation", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ModifyAnnotationsAuthor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Close", - "Aspose.Pdf.Document.Pages.Count" + "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotation", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "export-pdf-annotations-to-xfdf__v2": { - "title": "Export PDF Annotations to XFDF Using MemoryStream", - "filename": "export-pdf-annotations-to-xfdf__v2.cs", - "description": "Shows how to bind a PDF from a byte array via MemoryStream, export all its annotations to an XFDF stream, and return the XFDF data as a byte array.", + "delete-annotations-by-rgb-color": { + "title": "Delete Annotations By Rgb Color", + "filename": "delete-annotations-by-rgb-color.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "delete-annotations-export-xfdf": { + "title": "Delete Specific Annotations and Export Remaining to XFDF", + "filename": "delete-annotations-export-xfdf.cs", + "description": "Demonstrates how to remove all annotations of a given type (e.g., Text) from a PDF using PdfAnnotationEditor and then export the remaining annotations to an XFDF file.", "tags": [ - "pdf", "annotations", + "delete", "xfdf", - "memorystream", - "export" + "pdf", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotations", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", "Aspose.Pdf.Facades.PdfAnnotationEditor.ExportAnnotationsToXfdf" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "import-annotations-from-xfdf-stream": { - "title": "Import Annotations from XFDF Stream into PDF", - "filename": "import-annotations-from-xfdf-stream.cs", - "description": "Shows how to load a PDF and an XFDF annotation file from streams, import the annotations using PdfAnnotationEditor, and save the updated PDF without creating temporary files.", + "delete-annotations-from-pdf-using-config": { + "title": "Delete Specific Annotations from PDF Using Configuration File", + "filename": "delete-annotations-from-pdf-using-config.cs", + "description": "Shows how to read annotation types from a text configuration file and delete those (or all) annotations from a PDF using Aspose.Pdf.Facades.", "tags": [ - "xfdf", "annotations", "pdf", - "stream", - "aspose-pdf" + "delete", + "configuration", + "Aspose.Pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfAnnotationEditor", + "PdfAnnotationEditor", "PdfAnnotationEditor.BindPdf", - "PdfAnnotationEditor.ImportAnnotationsFromXfdf", + "PdfAnnotationEditor.DeleteAnnotations", "PdfAnnotationEditor.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "delete-flatten-pdf-annotations": { - "title": "Delete and Flatten PDF Annotations", - "filename": "delete-flatten-pdf-annotations.cs", - "description": "Demonstrates using Aspose.Pdf.Facades.PdfAnnotationEditor to remove all annotations from a PDF, flatten any remaining ones, and save the processed document.", + "delete-annotations-from-pdf": { + "title": "Delete All Annotations from PDF Using PdfAnnotationEditor", + "filename": "delete-annotations-from-pdf.cs", + "description": "Shows how to create a PDF with text annotations, remove them with PdfAnnotationEditor.DeleteAnnotations, and verify the removal with a unit test.", "tags": [ - "annotations", "pdf", - "flatten", - "delete", - "facade" + "annotations", + "unit-test", + "Aspose.Pdf", + "delete" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.TextAnnotation", "Aspose.Pdf.Facades.PdfAnnotationEditor", - "PdfAnnotationEditor.BindPdf", - "PdfAnnotationEditor.DeleteAnnotations", - "PdfAnnotationEditor.FlatteningAnnotations", - "PdfAnnotationEditor.Save" + "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotations", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", + "Aspose.Pdf.Rectangle" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "export-pdf-annotations-to-xfdf-and-validate": { - "title": "Export PDF Annotations to XFDF and Validate Against Schema", - "filename": "export-pdf-annotations-to-xfdf-and-validate.cs", - "description": "The example exports annotations from a PDF to an XFDF file using the Form facade, then validates the generated XFDF against the official XFDF XSD schema.", + "delete-annotations-from-pdfs": { + "title": "Delete Annotations From Pdfs", + "filename": "delete-annotations-from-pdfs.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "delete-annotations-pdf-annotation-editor": { + "title": "Delete Annotations Pdf Annotation Editor", + "filename": "delete-annotations-pdf-annotation-editor.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "delete-annotations-with-backup": { + "title": "Delete All Annotations with Optional Backup", + "filename": "delete-annotations-with-backup.cs", + "description": "Demonstrates how to create a backup copy of a PDF before removing all annotations using Aspose.Pdf's annotation editor.", "tags": [ - "xfdf", - "validation", "annotations", + "backup", "pdf", - "schema" + "Aspose.Pdf", + "delete" ], "apis_used": [ - "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.ExportXfdf" + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotations", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Close" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "delete-all-annotations-from-pdf": { - "title": "Delete All Annotations from PDF and Verify Count", - "filename": "delete-all-annotations-from-pdf.cs", - "description": "Shows how to bind a PDF with PdfAnnotationEditor, count existing annotations, remove them using DeleteAnnotations, and confirm the removal before saving the file.", + "delete-flatten-pdf-annotations": { + "title": "Delete and Flatten PDF Annotations", + "filename": "delete-flatten-pdf-annotations.cs", + "description": "Demonstrates using Aspose.Pdf.Facades.PdfAnnotationEditor to remove all annotations from a PDF, flatten any remaining ones, and save the processed document.", "tags": [ "annotations", - "delete", "pdf", - "Aspose.Pdf", - "verification" + "flatten", + "delete", + "facade" ], "apis_used": [ - "PdfAnnotationEditor", + "Aspose.Pdf.Facades.PdfAnnotationEditor", "PdfAnnotationEditor.BindPdf", "PdfAnnotationEditor.DeleteAnnotations", - "PdfAnnotationEditor.Save", - "Document" + "PdfAnnotationEditor.FlatteningAnnotations", + "PdfAnnotationEditor.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "extract-pdf-annotation-details": { - "title": "Extract PDF Annotation Details to DTO", - "filename": "extract-pdf-annotation-details.cs", - "description": "Demonstrates how to load a PDF, extract all annotations using PdfAnnotationEditor, and map their name, type, and rectangle into a custom DTO for further analysis.", + "delete-pdf-annotation-by-name": { + "title": "Delete a PDF Annotation by Name", + "filename": "delete-pdf-annotation-by-name.cs", + "description": "Shows how to remove a specific annotation identified by its name from a PDF using Aspose.Pdf.Facades.PdfAnnotationEditor.", "tags": [ - "annotations", - "extraction", + "annotation", + "delete", "pdf", - "facade", - "aspnet" + "Aspose.Pdf", + "PdfAnnotationEditor" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ExtractAnnotations", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.Annotation.AnnotationType", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotation", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "export-pdf-annotations-to-json": { - "title": "Export PDF Annotations and Form Fields to JSON Log", - "filename": "export-pdf-annotations-to-json.cs", - "description": "Shows how to load a PDF, bind it to the annotation editor facade, and export form field (widget) annotations to a JSON file for auditing purposes.", + "delete-pdf-annotation-by-name__v2": { + "title": "Delete PDF Annotation by Name", + "filename": "delete-pdf-annotation-by-name__v2.cs", + "description": "Shows how to remove a specific annotation from a PDF document by passing its name to the DeleteAnnotation method of PdfAnnotationEditor.", "tags": [ + "annotation", + "delete", "pdf", - "annotations", - "json", - "export", - "audit" + "Aspose.Pdf", + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.ExportJson" + "PdfAnnotationEditor.BindPdf", + "PdfAnnotationEditor.DeleteAnnotation", + "PdfAnnotationEditor.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, @@ -616,28 +896,24 @@ "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "delete-annotations-by-author": { - "title": "Delete Annotations by Author Using Aspose.Pdf", - "filename": "delete-annotations-by-author.cs", - "description": "Shows how to filter PDF annotations by the author's Title and remove them using PdfAnnotationEditor.", - "tags": [ - "annotations", - "delete", - "author", - "pdf", - "Aspose.Pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.MarkupAnnotation", - "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotation", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:27:30Z", + "delete-pdf-annotation-with-retry": { + "title": "Delete Pdf Annotation With Retry", + "filename": "delete-pdf-annotation-with-retry.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "delete-pdf-annotations-by-author": { + "title": "Delete Pdf Annotations By Author", + "filename": "delete-pdf-annotations-by-author.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, "delete-pdf-annotations-by-color": { @@ -665,60 +941,62 @@ "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "export-import-pdf-annotations-xfdf": { - "title": "Export and Import PDF Annotations via XFDF", - "filename": "export-import-pdf-annotations-xfdf.cs", - "description": "Demonstrates exporting all annotations from a source PDF to an XFDF file and then importing that XFDF into another PDF to duplicate the annotation layout.", + "delete-pdf-annotations-by-name": { + "title": "Delete PDF Annotations by Name (Literal and Variable)", + "filename": "delete-pdf-annotations-by-name.cs", + "description": "Demonstrates removing specific PDF annotations using Aspose.Pdf by supplying the annotation name directly as a string literal or through a variable.", "tags": [ "annotations", - "xfdf", + "delete", "pdf", - "export", - "import" + "Aspose.Pdf", + "string-literal" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Annotations.TextAnnotation", "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Color" + "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotation", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Close" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "batch-flatten-pdf-annotations": { - "title": "Batch Flatten PDF Annotations", - "filename": "batch-flatten-pdf-annotations.cs", - "description": "Processes every PDF in a specified folder, flattens all annotations using Aspose.Pdf's PdfAnnotationEditor, and saves the result with a \"_flattened\" suffix.", + "delete-pdf-annotations-in-folder": { + "title": "Delete PDF Annotations in a Folder", + "filename": "delete-pdf-annotations-in-folder.cs", + "description": "Shows how to use Aspose.Pdf.Facades.PdfAnnotationEditor to remove all annotations from each PDF file in a source directory and save the cleaned files.", "tags": [ "pdf", "annotations", - "flatten", + "delete", "batch", - "aspose-pdf" + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfAnnotationEditor", "PdfAnnotationEditor.BindPdf", - "PdfAnnotationEditor.FlatteningAnnotations", + "PdfAnnotationEditor.DeleteAnnotations", "PdfAnnotationEditor.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "batch-delete-stamp-annotations": { - "title": "Batch Delete Stamp Annotations from PDFs", - "filename": "batch-delete-stamp-annotations.cs", - "description": "Demonstrates how to iterate through PDF files in a folder and remove all stamp annotations using Aspose.Pdf's PdfAnnotationEditor facade, saving the cleaned documents.", + "delete-pdf-annotations-in-parallel": { + "title": "Delete All Annotations from PDFs in Parallel", + "filename": "delete-pdf-annotations-in-parallel.cs", + "description": "Shows how to remove all annotations from multiple PDF files concurrently using Aspose.Pdf.Facades.PdfAnnotationEditor with Parallel.ForEach for faster processing.", "tags": [ "pdf", "annotations", - "batch", - "delete", - "stamp" + "parallel", + "aspose", + "csharp" ], "apis_used": [ "PdfAnnotationEditor", @@ -726,542 +1004,635 @@ "PdfAnnotationEditor.DeleteAnnotations", "PdfAnnotationEditor.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "import-xfdf-annotations-into-multiple-pdfs": { - "title": "Import XFDF Annotations into Multiple PDFs", - "filename": "import-xfdf-annotations-into-multiple-pdfs.cs", - "description": "Demonstrates how to import a single XFDF file with reviewer comments and apply those annotations to several PDF documents, saving the annotated versions.", + "delete-specific-annotation-types-from-pdf": { + "title": "Delete Specific Annotation Types From Pdf", + "filename": "delete-specific-annotation-types-from-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "delete-text-annotations-from-pdf": { + "title": "Delete Text Annotations from PDF", + "filename": "delete-text-annotations-from-pdf.cs", + "description": "Shows how to remove only text (sticky note) annotations from a PDF by using PdfAnnotationEditor.DeleteAnnotations with the type name \"Text\".", "tags": [ - "xfdf", "annotations", + "delete", "pdf", - "batch", - "Aspose.Pdf" + "text", + "Aspose" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ImportAnnotationsFromXfdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotations", "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "delete-pdf-annotations-in-parallel": { - "title": "Delete All Annotations from PDFs in Parallel", - "filename": "delete-pdf-annotations-in-parallel.cs", - "description": "Shows how to remove all annotations from multiple PDF files concurrently using Aspose.Pdf.Facades.PdfAnnotationEditor with Parallel.ForEach for faster processing.", + "export-all-annotations-from-a-pdf-to-an-xfdf-file-by-invoking-exportannotations-with-a-file-stream-destination": { + "title": "Export All Annotations From A Pdf To An Xfdf File By Invoking Exportannotations With A File Stream Destination", + "filename": "export-all-annotations-from-a-pdf-to-an-xfdf-file-by-invoking-exportannotations-with-a-file-stream-destination.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "export-annotations-to-xfdf-no-annotations": { + "title": "Export Annotations To Xfdf No Annotations", + "filename": "export-annotations-to-xfdf-no-annotations.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "export-annotations-to-xfdf-stream": { + "title": "Export Annotations from Specific PDF Pages to XFDF Stream", + "filename": "export-annotations-to-xfdf-stream.cs", + "description": "Shows how to bind a PDF, export annotations from pages 1‑2 into an XFDF memory stream, and optionally read the XFDF content.", "tags": [ - "pdf", "annotations", - "parallel", - "aspose", - "csharp" + "xfdf", + "export", + "pdf", + "memory-stream" ], "apis_used": [ - "PdfAnnotationEditor", - "PdfAnnotationEditor.BindPdf", - "PdfAnnotationEditor.DeleteAnnotations", - "PdfAnnotationEditor.Save" + "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.ExportAnnotationsXfdf", + "Aspose.Pdf.Annotations.AnnotationType" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "measure-annotation-flattening-performance": { - "title": "Measure Annotation Flattening Performance", - "filename": "measure-annotation-flattening-performance.cs", - "description": "The example loads a PDF, flattens all its annotations using PdfAnnotationEditor, saves the result, and measures the elapsed time to evaluate performance impact.", + "export-annotations-xfdf-gzip": { + "title": "Export Annotations Xfdf Gzip", + "filename": "export-annotations-xfdf-gzip.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "export-annotations-xfdf-no-annotations": { + "title": "Export Annotations to XFDF for PDF with No Annotations", + "filename": "export-annotations-xfdf-no-annotations.cs", + "description": "Demonstrates creating a PDF without any annotations, exporting the (empty) annotation set to XFDF using PdfAnnotationEditor, and validating the XFDF structure.", "tags": [ - "pdf", + "xfdf", "annotations", - "flatten", - "performance", - "stopwatch" + "export", + "pdf", + "validation" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.FlatteningAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" + "Aspose.Pdf.Facades.PdfAnnotationEditor.ExportAnnotationsToXfdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Close" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "list-pdf-annotation-names": { - "title": "List PDF Annotation Names", - "filename": "list-pdf-annotation-names.cs", - "description": "Shows how to bind a PDF with PdfAnnotationEditor, iterate through each page and its annotations, and print the Name of each annotation to the console for debugging.", + "export-highlight-annotations-to-xfdf": { + "title": "Export Highlight Annotations to XFDF", + "filename": "export-highlight-annotations-to-xfdf.cs", + "description": "Demonstrates how to filter PDF annotations by the Highlight type and export them to an XFDF file using the PdfAnnotationEditor overload.", "tags": [ - "pdf", "annotations", - "aspose-pdf", - "enumeration", - "debug" + "xfdf", + "export", + "highlight", + "pdf" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Annotations.AnnotationType", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.AnnotationCollection", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.Annotation.Name" + "Aspose.Pdf.Facades.PdfAnnotationEditor.ExportAnnotationsXfdf" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "delete-annotations-from-pdf": { - "title": "Delete All Annotations from PDF Using PdfAnnotationEditor", - "filename": "delete-annotations-from-pdf.cs", - "description": "Shows how to create a PDF with text annotations, remove them with PdfAnnotationEditor.DeleteAnnotations, and verify the removal with a unit test.", + "export-import-flatten-pdf-annotations-logging": { + "title": "Export, Import and Flatten PDF Annotations with Verbose Logging", + "filename": "export-import-flatten-pdf-annotations-logging.cs", + "description": "The example loads a PDF, exports its annotations to an XFDF file, re-imports them, flattens the annotations into the page content, and saves the modified PDF while writing each step to a verbose log file.", "tags": [ "pdf", "annotations", - "unit-test", - "Aspose.Pdf", - "delete" + "xfdf", + "logging", + "flatten" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.TextAnnotation", "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Facades.PdfAnnotationEditor.ExportAnnotationsToXfdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.ImportAnnotationsFromXfdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.FlatteningAnnotations", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "retry-delete-pdf-annotations": { - "title": "Retry Deleting PDF Annotations with PdfAnnotationEditor", - "filename": "retry-delete-pdf-annotations.cs", - "description": "Demonstrates binding a PDF, deleting all annotations, and retrying the operation with a rebinding if the first attempt fails.", + "export-import-pdf-annotations-xfdf": { + "title": "Export and Import PDF Annotations via XFDF", + "filename": "export-import-pdf-annotations-xfdf.cs", + "description": "Demonstrates exporting all annotations from a source PDF to an XFDF file and then importing that XFDF into another PDF to duplicate the annotation layout.", "tags": [ - "pdf", "annotations", - "retry", - "Aspose.Pdf", - "PdfAnnotationEditor" + "xfdf", + "pdf", + "export", + "import" ], "apis_used": [ - "PdfAnnotationEditor", - "PdfAnnotationEditor.BindPdf", - "PdfAnnotationEditor.DeleteAnnotations", - "PdfAnnotationEditor.Save" + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Color" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" - }, - "log-annotation-deletions-to-csv": { - "title": "Log Annotation Deletions to CSV and Remove from PDF", - "filename": "log-annotation-deletions-to-csv.cs", - "description": "The example extracts all annotations from a PDF, records each annotation's name, type, and page number to a CSV log file, then deletes the annotations and saves the modified document.", + }, + "export-pdf-annotations-pretty-xfdf": { + "title": "Export PDF Annotations to Pretty-Printed XFDF", + "filename": "export-pdf-annotations-pretty-xfdf.cs", + "description": "Shows how to extract all annotations from a PDF and save them as an XFDF file with formatted (indented) XML for easier manual editing.", "tags": [ "annotations", - "deletion", - "logging", - "csv", + "xfdf", + "export", + "pretty-print", "pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.AnnotationCollection", - "Aspose.Pdf.Annotations.Annotation", - "PdfAnnotationEditor.BindPdf", - "PdfAnnotationEditor.DeleteAnnotation", - "PdfAnnotationEditor.Save" + "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.ExportAnnotationsToXfdf" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "delete-annotations-from-pdf-using-config": { - "title": "Delete Specific Annotations from PDF Using Configuration File", - "filename": "delete-annotations-from-pdf-using-config.cs", - "description": "Shows how to read annotation types from a text configuration file and delete those (or all) annotations from a PDF using Aspose.Pdf.Facades.", + "export-pdf-annotations-to-compressed-xfdf": { + "title": "Export PDF Annotations to Compressed XFDF", + "filename": "export-pdf-annotations-to-compressed-xfdf.cs", + "description": "Demonstrates how to export all annotations from a PDF to XFDF using Aspose.Pdf's PdfAnnotationEditor and then compress the XFDF data with GZip for efficient storage.", "tags": [ "annotations", - "pdf", - "delete", - "configuration", - "Aspose.Pdf" + "xfdf", + "gzip", + "export", + "pdf" ], "apis_used": [ + "Document", "PdfAnnotationEditor", "PdfAnnotationEditor.BindPdf", - "PdfAnnotationEditor.DeleteAnnotations", - "PdfAnnotationEditor.Save" + "PdfAnnotationEditor.ExportAnnotationsToXfdf", + "PdfAnnotationEditor (constructor)" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "remove-all-annotations-from-pdf__v2": { - "title": "Remove All Annotations from PDF", - "filename": "remove-all-annotations-from-pdf__v2.cs", - "description": "Shows how to load a PDF, delete every annotation using Aspose.Pdf.Facades.PdfAnnotationEditor, and save the cleaned file.", + "export-pdf-annotations-to-json": { + "title": "Export PDF Annotations and Form Fields to JSON Log", + "filename": "export-pdf-annotations-to-json.cs", + "description": "Shows how to load a PDF, bind it to the annotation editor facade, and export form field (widget) annotations to a JSON file for auditing purposes.", "tags": [ "pdf", "annotations", - "remove", - "aspose", - "console" + "json", + "export", + "audit" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Close" + "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.Form.ExportJson" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "batch-delete-pdf-annotations-with-progress": { - "title": "Batch Delete PDF Annotations with Progress", - "filename": "batch-delete-pdf-annotations-with-progress.cs", - "description": "Demonstrates how to remove all annotations from multiple PDF files using Aspose.Pdf.Facades.PdfAnnotationEditor while showing a simple console progress percentage.", + "export-pdf-annotations-to-pretty-xfdf": { + "title": "Export Pdf Annotations To Pretty Xfdf", + "filename": "export-pdf-annotations-to-pretty-xfdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "export-pdf-annotations-to-xfdf-and-validate": { + "title": "Export PDF Annotations to XFDF and Validate Against Schema", + "filename": "export-pdf-annotations-to-xfdf-and-validate.cs", + "description": "The example exports annotations from a PDF to an XFDF file using the Form facade, then validates the generated XFDF against the official XFDF XSD schema.", "tags": [ - "pdf", + "xfdf", + "validation", "annotations", - "batch", - "progress", - "aspose" + "pdf", + "schema" ], "apis_used": [ - "PdfAnnotationEditor", - "PdfAnnotationEditor.BindPdf", - "PdfAnnotationEditor.DeleteAnnotations", - "PdfAnnotationEditor.Save" + "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.Form.ExportXfdf" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "batch-flatten-pdf-annotations-cancellation": { - "title": "Batch Flatten PDF Annotations with Cancellation Support", - "filename": "batch-flatten-pdf-annotations-cancellation.cs", - "description": "Demonstrates flattening all annotations in multiple PDF files using Aspose.Pdf's PdfAnnotationEditor while allowing the operation to be aborted via a CancellationToken.", + "export-pdf-annotations-to-xfdf-custom-namespace": { + "title": "Export PDF Annotations to XFDF with Custom Namespace", + "filename": "export-pdf-annotations-to-xfdf-custom-namespace.cs", + "description": "Shows how to export all annotations from a PDF to XFDF using Aspose.Pdf, then replace the default XFDF namespace with a custom enterprise namespace before saving the file.", "tags": [ - "pdf", "annotations", - "flatten", - "cancellation", - "batch" + "xfdf", + "namespace", + "export", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.FlatteningAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", + "Aspose.Pdf.Facades.PdfAnnotationEditor.ExportAnnotationsToXfdf", "Aspose.Pdf.Facades.PdfAnnotationEditor.Close" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "get-annotation-names-by-author": { - "title": "Get Annotation Names by Author from PDF", - "filename": "get-annotation-names-by-author.cs", - "description": "Demonstrates how to extract all annotations from a PDF and return the names of those markup annotations whose author (Subject) matches a specified string.", + "export-pdf-annotations-to-xfdf-with-diagnostic-logging": { + "title": "Export PDF Annotations to XFDF with Diagnostic Logging", + "filename": "export-pdf-annotations-to-xfdf-with-diagnostic-logging.cs", + "description": "Demonstrates how to export all PDF annotations to an XFDF file using Aspose.Pdf and simultaneously write the same XFDF content to a diagnostic log file.", "tags": [ "annotations", - "author", - "pdf", - "filter", - "Aspose.Pdf" + "xfdf", + "export", + "diagnostic", + "aspose-pdf" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ExtractAnnotations", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.MarkupAnnotation" + "Aspose.Pdf.Facades.PdfAnnotationEditor.ExportAnnotationsToXfdf" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "copy-annotations-to-multiple-pdfs": { - "title": "Copy Annotations from Template PDF to Multiple PDFs", - "filename": "copy-annotations-to-multiple-pdfs.cs", - "description": "Demonstrates exporting annotations from a template PDF to an XFDF stream and importing them into several target PDFs using Aspose.Pdf.Facades.PdfAnnotationEditor.", + "export-pdf-annotations-to-xfdf-with-log": { + "title": "Export Pdf Annotations To Xfdf With Log", + "filename": "export-pdf-annotations-to-xfdf-with-log.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "export-pdf-annotations-to-xfdf": { + "title": "Export PDF Annotations to XFDF", + "filename": "export-pdf-annotations-to-xfdf.cs", + "description": "Demonstrates how to bind a PDF with PdfAnnotationEditor and export all its annotations to an XFDF file using a file stream.", "tags": [ "annotations", "xfdf", + "export", "pdf", - "copy", "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.TextAnnotation", + "PdfAnnotationEditor", "PdfAnnotationEditor.BindPdf", "PdfAnnotationEditor.ExportAnnotationsToXfdf", - "PdfAnnotationEditor.ImportAnnotationsFromXfdf", - "PdfAnnotationEditor.Save" + "PdfAnnotationEditor.Close" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "flatten-pdf-annotations-verify-removal": { - "title": "Flatten PDF Annotations and Verify Removal", - "filename": "flatten-pdf-annotations-verify-removal.cs", - "description": "Loads a PDF, flattens all annotation objects using Aspose.Pdf.Facades, saves the result, and checks the document structure to ensure no annotations remain.", + "export-pdf-annotations-to-xfdf__v2": { + "title": "Export PDF Annotations to XFDF Using MemoryStream", + "filename": "export-pdf-annotations-to-xfdf__v2.cs", + "description": "Shows how to bind a PDF from a byte array via MemoryStream, export all its annotations to an XFDF stream, and return the XFDF data as a byte array.", "tags": [ - "flatten", - "annotations", - "validation", "pdf", - "aspose" + "annotations", + "xfdf", + "memorystream", + "export" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.FlatteningAnnotations", - "Aspose.Pdf.Page", - "Aspose.Pdf.Page.Annotations", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfAnnotationEditor.ExportAnnotationsToXfdf" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "annotation-removal-report": { - "title": "Annotation Removal Report for PDFs", - "filename": "annotation-removal-report.cs", - "description": "Demonstrates how to count and delete all annotations from multiple PDF files using Aspose.Pdf and generate a CSV‑style report showing the number of annotations removed per file.", + "extract-annotation-rectangles-to-pdf": { + "title": "Extract Annotation Rectangles and Visualize as PDF Pages", + "filename": "extract-annotation-rectangles-to-pdf.cs", + "description": "The example extracts the bounding rectangles of all annotations in a source PDF and creates a new PDF where each page visualizes one annotation rectangle with descriptive text.", "tags": [ "annotations", "pdf", - "report", - "batch-processing", - "aspose-pdf" + "extraction", + "visualization", + "Aspose.Pdf" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" + "Aspose.Pdf.Facades.PdfAnnotationEditor.ExtractAnnotations", + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Text.TextFragment" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "pdf-annotation-helper": { - "title": "PDF Annotation Helper for Binding, Deleting, Flattening, and Saving", - "filename": "pdf-annotation-helper.cs", - "description": "Shows a reusable helper class that wraps Aspose.Pdf.Facades.PdfAnnotationEditor to bind a PDF, delete annotations (all or by type), flatten annotations (all or by page range), and save the updated document.", + "extract-annotation-rectangles": { + "title": "Extract Annotation Rectangles", + "filename": "extract-annotation-rectangles.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-pdf-annotation-comments-summary": { + "title": "Extract PDF Annotation Comments and Create Summary PDF", + "filename": "extract-pdf-annotation-comments-summary.cs", + "description": "Demonstrates how to extract text‑type annotation comments from an existing PDF using Aspose.Pdf.Facades, compile them into a single summary string, and generate a new PDF containing that summary.", "tags": [ - "pdf", "annotations", - "aspose", - "facade", - "helper" + "pdf", + "summary", + "extraction", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.FlatteningAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", - "Aspose.Pdf.Annotations.AnnotationType" + "PdfAnnotationEditor.BindPdf", + "PdfAnnotationEditor.ExtractAnnotations", + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Document", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.FontRepository.FindFont" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "remove-pdf-annotations": { - "title": "Remove All Annotations from a PDF Stream", - "filename": "remove-pdf-annotations.cs", - "description": "Shows how to bind a PDF stream to Aspose.Pdf.Facades.PdfAnnotationEditor, delete every annotation, and return the cleaned PDF as a MemoryStream.", + "extract-pdf-annotation-details": { + "title": "Extract PDF Annotation Details to DTO", + "filename": "extract-pdf-annotation-details.cs", + "description": "Demonstrates how to load a PDF, extract all annotations using PdfAnnotationEditor, and map their name, type, and rectangle into a custom DTO for further analysis.", "tags": [ - "pdf", "annotations", - "aspose", - "stream", - "cleanup" + "extraction", + "pdf", + "facade", + "aspnet" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" + "Aspose.Pdf.Facades.PdfAnnotationEditor.ExtractAnnotations", + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.Annotation.AnnotationType", + "Aspose.Pdf.Rectangle" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "async-pdf-annotation-operations": { - "title": "Asynchronous PDF Annotation Operations with Aspose.Pdf", - "filename": "async-pdf-annotation-operations.cs", - "description": "Demonstrates how to perform common PDF annotation tasks—flattening, deleting, importing, and exporting—using Aspose.Pdf's PdfAnnotationEditor wrapped in Task.Run for non‑blocking asynchronous execution.", + "extract-pdf-annotations-summary": { + "title": "Extract Pdf Annotations Summary", + "filename": "extract-pdf-annotations-summary.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "flatten-annotations-first-five-pages": { + "title": "Flatten Annotations on the First Five PDF Pages", + "filename": "flatten-annotations-first-five-pages.cs", + "description": "Demonstrates how to use the PdfAnnotationEditor facade to flatten all annotation types on pages 1 through 5 of a PDF document and save the result.", "tags": [ - "async", + "flatten", "annotations", "pdf", - "Aspose.Pdf", - "flatten" + "pages", + "Aspose" ], "apis_used": [ "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", "Aspose.Pdf.Facades.PdfAnnotationEditor.FlatteningAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotation", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ImportAnnotationsFromFdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ExportAnnotationsToXfdf", - "Aspose.Pdf.Document", - "Aspose.Pdf.Annotations.TextAnnotation" + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", + "Aspose.Pdf.Annotations.AnnotationType" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "delete-pdf-annotations-in-folder": { - "title": "Delete PDF Annotations in a Folder", - "filename": "delete-pdf-annotations-in-folder.cs", - "description": "Shows how to use Aspose.Pdf.Facades.PdfAnnotationEditor to remove all annotations from each PDF file in a source directory and save the cleaned files.", + "flatten-annotations-network-share": { + "title": "Flatten Annotations in PDFs on a Network Share", + "filename": "flatten-annotations-network-share.cs", + "description": "Shows how to scan a UNC network folder for PDF files and use Aspose.Pdf.Facades.PdfAnnotationEditor to flatten all annotations, saving the changes back to the original files.", "tags": [ "pdf", "annotations", - "delete", - "batch", - "facade" + "flatten", + "network-share", + "batch" ], "apis_used": [ "Aspose.Pdf.Facades.PdfAnnotationEditor", - "PdfAnnotationEditor.BindPdf", - "PdfAnnotationEditor.DeleteAnnotations", - "PdfAnnotationEditor.Save" + "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.FlatteningAnnotations", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "log-update-annotation-modification-timestamps": { - "title": "Log and Update Annotation Modification Timestamps", - "filename": "log-update-annotation-modification-timestamps.cs", - "description": "Demonstrates how to read the Modified timestamp of each PDF annotation, log it, and set a new timestamp using Aspose.Pdf's annotation editor.", + "flatten-annotations-on-network-share": { + "title": "Flatten Annotations On Network Share", + "filename": "flatten-annotations-on-network-share.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "flatten-delete-pdf-annotations-verbose": { + "title": "Flatten Delete Pdf Annotations Verbose", + "filename": "flatten-delete-pdf-annotations-verbose.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "flatten-pdf-annotations-from-stream": { + "title": "Flatten PDF Annotations from Stream", + "filename": "flatten-pdf-annotations-from-stream.cs", + "description": "Shows how to flatten all annotations in a PDF provided as a stream and return the modified PDF in a MemoryStream, avoiding any disk I/O.", "tags": [ + "pdf", "annotations", - "timestamp", - "logging", - "Aspose.Pdf", - "PdfAnnotationEditor" + "flatten", + "memory-stream", + "aspose" ], "apis_used": [ + "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation.Modified" + "Aspose.Pdf.Facades.PdfAnnotationEditor.FlatteningAnnotations", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "delete-annotations-with-backup": { - "title": "Delete All Annotations with Optional Backup", - "filename": "delete-annotations-with-backup.cs", - "description": "Demonstrates how to create a backup copy of a PDF before removing all annotations using Aspose.Pdf's annotation editor.", + "flatten-pdf-annotations-log-size-reduction": { + "title": "Flatten PDF Annotations and Log Size Reduction", + "filename": "flatten-pdf-annotations-log-size-reduction.cs", + "description": "Demonstrates how to flatten all annotations in a PDF using Aspose.Pdf.Facades and then log the original and reduced file sizes for audit purposes.", "tags": [ - "annotations", - "backup", "pdf", - "Aspose.Pdf", - "delete" + "annotations", + "flatten", + "size-reduction", + "audit" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotations", + "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.FlatteningAnnotations", "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", "Aspose.Pdf.Facades.PdfAnnotationEditor.Close" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "delete-pdf-annotations-by-name": { - "title": "Delete PDF Annotations by Name (Literal and Variable)", - "filename": "delete-pdf-annotations-by-name.cs", - "description": "Demonstrates removing specific PDF annotations using Aspose.Pdf by supplying the annotation name directly as a string literal or through a variable.", + "flatten-pdf-annotations-validate": { + "title": "Flatten Pdf Annotations Validate", + "filename": "flatten-pdf-annotations-validate.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "flatten-pdf-annotations-verify-removal": { + "title": "Flatten PDF Annotations and Verify Removal", + "filename": "flatten-pdf-annotations-verify-removal.cs", + "description": "Loads a PDF, flattens all annotation objects using Aspose.Pdf.Facades, saves the result, and checks the document structure to ensure no annotations remain.", "tags": [ + "flatten", "annotations", - "delete", + "validation", "pdf", - "Aspose.Pdf", - "string-literal" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.TextAnnotation", "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotation", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Close" + "Aspose.Pdf.Facades.PdfAnnotationEditor.FlatteningAnnotations", + "Aspose.Pdf.Page", + "Aspose.Pdf.Page.Annotations", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "benchmark-delete-annotations": { - "title": "Benchmark Deleting PDF Annotations with Aspose.Pdf", - "filename": "benchmark-delete-annotations.cs", - "description": "Creates a PDF with multiple text annotations and measures the performance of deleting all annotations via DeleteAnnotations versus deleting a single annotation via DeleteAnnotation.", + "flatten-pdf-annotations-verify": { + "title": "Flatten PDF Annotations and Verify Removal", + "filename": "flatten-pdf-annotations-verify.cs", + "description": "Demonstrates how to flatten all annotations in a PDF using PdfAnnotationEditor and then scan the saved document to ensure no annotation objects remain.", "tags": [ "annotations", - "benchmark", - "performance", - "aspose-pdf", - "pdf-editing" + "flatten", + "validation", + "pdf", + "aspose" ], "apis_used": [ + "Aspose.Pdf.Facades.PdfAnnotationEditor", + "PdfAnnotationEditor.BindPdf", + "PdfAnnotationEditor.FlatteningAnnotations", + "PdfAnnotationEditor.Save", "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotation", - "Aspose.Pdf.Rectangle" + "Page.Annotations" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "flatten-pdf-annotations-log-size-reduction": { - "title": "Flatten PDF Annotations and Log Size Reduction", - "filename": "flatten-pdf-annotations-log-size-reduction.cs", - "description": "Demonstrates how to flatten all annotations in a PDF using Aspose.Pdf.Facades and then log the original and reduced file sizes for audit purposes.", + "flatten-pdf-annotations": { + "title": "Flatten PDF Annotations to Non‑Editable Elements", + "filename": "flatten-pdf-annotations.cs", + "description": "Shows how to use Aspose.Pdf.Facades.PdfAnnotationEditor to flatten all annotations in a PDF, converting them to static visual content, and then save the result.", "tags": [ - "pdf", - "annotations", "flatten", - "size-reduction", - "audit" + "annotations", + "pdf", + "Aspose.Pdf", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfAnnotationEditor", @@ -1274,371 +1645,430 @@ "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "extract-annotation-rectangles-to-pdf": { - "title": "Extract Annotation Rectangles and Visualize as PDF Pages", - "filename": "extract-annotation-rectangles-to-pdf.cs", - "description": "The example extracts the bounding rectangles of all annotations in a source PDF and creates a new PDF where each page visualizes one annotation rectangle with descriptive text.", + "flatten-pdf-annotations__v2": { + "title": "Flatten PDF Annotations to Static Graphics", + "filename": "flatten-pdf-annotations__v2.cs", + "description": "Demonstrates how to flatten all interactive annotations in a PDF, converting them to static graphics while preserving their visual appearance.", "tags": [ + "flatten", "annotations", "pdf", - "extraction", - "visualization", - "Aspose.Pdf" + "Aspose.Pdf", + "static-graphics" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ExtractAnnotations", "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Text.TextFragment" + "Aspose.Pdf.Facades.PdfAnnotationEditor", + "PdfAnnotationEditor.BindPdf", + "PdfAnnotationEditor.FlatteningAnnotations", + "PdfAnnotationEditor.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "add-text-annotation-with-custom-flags": { - "title": "Add Text Annotation with Custom Flags to PDF", - "filename": "add-text-annotation-with-custom-flags.cs", - "description": "Demonstrates creating a TextAnnotation, setting custom annotation flags (Invisible, NoZoom), and applying it to all pages using PdfAnnotationEditor.", + "flatten-pdf-save-custom-output": { + "title": "Flatten Pdf Save Custom Output", + "filename": "flatten-pdf-save-custom-output.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "flatten-pdf-tag-flatten-date": { + "title": "Flatten Pdf Tag Flatten Date", + "filename": "flatten-pdf-tag-flatten-date.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "flatten-pdf-tag-flattened-date": { + "title": "Flatten PDF and Tag with Flattened Date Metadata", + "filename": "flatten-pdf-tag-flattened-date.cs", + "description": "The example loads a PDF, flattens all form fields and annotations, saves it, and then adds a custom metadata entry \"FlattenedDate\" containing the current UTC timestamp using the Aspose.Pdf Facades API.", "tags": [ - "annotation", - "custom-flags", - "text", "pdf", - "Aspose" + "flatten", + "metadata", + "aspose", + "facades" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Annotations.AnnotationFlags", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ModifyAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", - "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Page" + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Flatten", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Facades.PdfFileInfo", + "Aspose.Pdf.Facades.PdfFileInfo.BindPdf", + "Aspose.Pdf.Facades.PdfFileInfo.SetMetaInfo", + "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "flatten-annotations-network-share": { - "title": "Flatten Annotations in PDFs on a Network Share", - "filename": "flatten-annotations-network-share.cs", - "description": "Shows how to scan a UNC network folder for PDF files and use Aspose.Pdf.Facades.PdfAnnotationEditor to flatten all annotations, saving the changes back to the original files.", + "flatten-pdfs-save-to-custom-output-directory": { + "title": "Flatten PDFs and Save to Custom Output Directory", + "filename": "flatten-pdfs-save-to-custom-output-directory.cs", + "description": "Demonstrates how to flatten PDF form fields using Aspose.Pdf and save the resulting PDFs to a user‑specified output folder, preserving original file names.", "tags": [ "pdf", - "annotations", "flatten", - "network-share", - "batch" + "output-directory", + "aspose", + "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.FlatteningAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Flatten()", + "Aspose.Pdf.Document.Save(string)" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" - }, - "flatten-pdf-annotations-verify": { - "title": "Flatten PDF Annotations and Verify Removal", - "filename": "flatten-pdf-annotations-verify.cs", - "description": "Demonstrates how to flatten all annotations in a PDF using PdfAnnotationEditor and then scan the saved document to ensure no annotation objects remain.", + }, + "fluent-pdf-annotation-delete-flatten": { + "title": "Fluent Pdf Annotation Delete Flatten", + "filename": "fluent-pdf-annotation-delete-flatten.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "generate-annotation-summary-report": { + "title": "Generate Annotation Summary Report for PDFs", + "filename": "generate-annotation-summary-report.cs", + "description": "The utility scans all PDF files in a folder, extracts annotations using Aspose.Pdf, counts each annotation type, and writes a summary report to a text file.", "tags": [ "annotations", - "flatten", - "validation", "pdf", - "aspose" + "report", + "aspose", + "csharp" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfAnnotationEditor", + "PdfAnnotationEditor", "PdfAnnotationEditor.BindPdf", - "PdfAnnotationEditor.FlatteningAnnotations", - "PdfAnnotationEditor.Save", - "Aspose.Pdf.Document", - "Page.Annotations" + "PdfAnnotationEditor.ExtractAnnotations", + "Annotation", + "AnnotationType" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "export-pdf-annotations-pretty-xfdf": { - "title": "Export PDF Annotations to Pretty-Printed XFDF", - "filename": "export-pdf-annotations-pretty-xfdf.cs", - "description": "Shows how to extract all annotations from a PDF and save them as an XFDF file with formatted (indented) XML for easier manual editing.", + "get-annotation-counts-from-pdf": { + "title": "Get Annotation Counts from PDF", + "filename": "get-annotation-counts-from-pdf.cs", + "description": "Demonstrates how to extract all annotations from a PDF using Aspose.Pdf's PdfAnnotationEditor and count the occurrences of each annotation type.", "tags": [ "annotations", - "xfdf", - "export", - "pretty-print", - "pdf" + "pdf", + "count", + "Aspose.Pdf", + "facade" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ExportAnnotationsToXfdf" + "PdfAnnotationEditor.BindPdf", + "PdfAnnotationEditor.ExtractAnnotations", + "PdfAnnotationEditor.Save", + "Aspose.Pdf.Annotations.Annotation" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "pdf-annotation-utility-delete-flatten-export": { - "title": "Command‑Line PDF Annotation Utility (Delete, Flatten, Export)", - "filename": "pdf-annotation-utility-delete-flatten-export.cs", - "description": "Demonstrates a console application that uses Aspose.Pdf.Facades to delete specific pages, flatten all annotations, or export annotations to an XFDF file based on command‑line arguments.", + "get-annotation-names-by-author": { + "title": "Get Annotation Names by Author from PDF", + "filename": "get-annotation-names-by-author.cs", + "description": "Demonstrates how to extract all annotations from a PDF and return the names of those markup annotations whose author (Subject) matches a specified string.", "tags": [ - "pdf", "annotations", - "delete", - "flatten", - "export" + "author", + "pdf", + "filter", + "Aspose.Pdf" ], "apis_used": [ - "PdfFileEditor", - "PdfFileEditor.Delete", - "PdfAnnotationEditor", - "PdfAnnotationEditor.BindPdf", - "PdfAnnotationEditor.FlatteningAnnotations", - "PdfAnnotationEditor.Save", - "PdfAnnotationEditor.ExportAnnotationsToXfdf" + "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.ExtractAnnotations", + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.MarkupAnnotation" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "export-annotations-xfdf-no-annotations": { - "title": "Export Annotations to XFDF for PDF with No Annotations", - "filename": "export-annotations-xfdf-no-annotations.cs", - "description": "Demonstrates creating a PDF without any annotations, exporting the (empty) annotation set to XFDF using PdfAnnotationEditor, and validating the XFDF structure.", + "import-annotations-from-xfdf-stream": { + "title": "Import Annotations from XFDF Stream into PDF", + "filename": "import-annotations-from-xfdf-stream.cs", + "description": "Shows how to load a PDF and an XFDF annotation file from streams, import the annotations using PdfAnnotationEditor, and save the updated PDF without creating temporary files.", "tags": [ "xfdf", "annotations", - "export", "pdf", - "validation" + "stream", + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ExportAnnotationsToXfdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Close" + "PdfAnnotationEditor.BindPdf", + "PdfAnnotationEditor.ImportAnnotationsFromXfdf", + "PdfAnnotationEditor.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "merge-multiple-xfdf-files": { - "title": "Merge Multiple XFDF Files into a Single XFDF", - "filename": "merge-multiple-xfdf-files.cs", - "description": "Demonstrates how to import annotations from several XFDF files into a temporary PDF using PdfAnnotationEditor and then export the combined annotations as one XFDF file.", + "import-annotations-without-overwrite": { + "title": "Import Annotations Without Overwriting Existing Ones", + "filename": "import-annotations-without-overwrite.cs", + "description": "Demonstrates how to import annotations from one or more source PDFs into a target PDF while preserving any annotations already present, using the PdfAnnotationEditor facade.", "tags": [ - "xfdf", "annotations", - "merge", + "import", "pdf", - "aspose" + "Aspose.Pdf", + "preserve" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ImportAnnotationsFromXfdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ExportAnnotationsToXfdf" + "Aspose.Pdf.Facades.PdfAnnotationEditor.ImportAnnotations", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "export-import-flatten-pdf-annotations-logging": { - "title": "Export, Import and Flatten PDF Annotations with Verbose Logging", - "filename": "export-import-flatten-pdf-annotations-logging.cs", - "description": "The example loads a PDF, exports its annotations to an XFDF file, re-imports them, flattens the annotations into the page content, and saves the modified PDF while writing each step to a verbose log file.", + "import-xfdf-annotations-into-multiple-pdfs": { + "title": "Import XFDF Annotations into Multiple PDFs", + "filename": "import-xfdf-annotations-into-multiple-pdfs.cs", + "description": "Demonstrates how to import a single XFDF file with reviewer comments and apply those annotations to several PDF documents, saving the annotated versions.", "tags": [ - "pdf", - "annotations", "xfdf", - "logging", - "flatten" + "annotations", + "pdf", + "batch", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ExportAnnotationsToXfdf", "Aspose.Pdf.Facades.PdfAnnotationEditor.ImportAnnotationsFromXfdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.FlatteningAnnotations", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "retrieve-annotation-count-per-pdf-page": { - "title": "Retrieve Annotation Count Per PDF Page", - "filename": "retrieve-annotation-count-per-pdf-page.cs", - "description": "Demonstrates opening a PDF with Aspose.Pdf, iterating through its pages, and counting the annotations on each page to produce a page‑wise report.", + "import-xfdf-annotations-into-pdf": { + "title": "Import XFDF Annotations into PDF", + "filename": "import-xfdf-annotations-into-pdf.cs", + "description": "Shows how to bind a PDF with PdfAnnotationEditor, import annotations from an XFDF file, and save the updated PDF.", "tags": [ + "xfdf", "annotations", - "reporting", "pdf", - "Aspose.Pdf", - "page-count" + "import", + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Document.Save" + "PdfAnnotationEditor", + "PdfAnnotationEditor.BindPdf", + "PdfAnnotationEditor.ImportAnnotationsFromXfdf", + "PdfAnnotationEditor.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "clone-modify-pdf-annotation": { - "title": "Clone and Modify PDF Annotation", - "filename": "clone-modify-pdf-annotation.cs", - "description": "Shows how to clone an existing annotation on a PDF page, change its properties, and add the cloned annotation back to the same page using Aspose.Pdf.Facades.", + "import-xfdf-annotations-into-pdf__v2": { + "title": "Import Xfdf Annotations Into Pdf__V2", + "filename": "import-xfdf-annotations-into-pdf__v2.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "import-xfdf-annotations-to-specific-pages": { + "title": "Import XFDF Annotations to Specific PDF Pages", + "filename": "import-xfdf-annotations-to-specific-pages.cs", + "description": "Demonstrates how to import annotations from an XFDF file into a PDF and retain them only on a defined page range.", "tags": [ - "annotation", - "clone", + "xfdf", + "annotations", "pdf", - "Aspose.Pdf", - "facade" + "pages", + "import" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.ImportAnnotationsFromXfdf", "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", - "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Annotations.StampAnnotation" + "Aspose.Pdf.Page.Annotations", + "Aspose.Pdf.Page.Annotations.Delete" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "batch-import-xfdf-annotations-into-pdfs": { - "title": "Batch Import XFDF Annotations into Matching PDFs", - "filename": "batch-import-xfdf-annotations-into-pdfs.cs", - "description": "Demonstrates iterating over PDF files, locating corresponding XFDF files by name, importing their annotations with PdfAnnotationEditor, and saving the updated PDFs.", + "import-xfdf-into-pdf-cleanup": { + "title": "Import XFDF into PDF and Delete Temporary File", + "filename": "import-xfdf-into-pdf-cleanup.cs", + "description": "Demonstrates how to import XFDF data into a PDF using the Form facade and then remove the temporary XFDF file after a successful import.", "tags": [ "xfdf", - "annotations", - "batch", + "import", "pdf", - "import" + "cleanup", + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ImportAnnotationsFromXfdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" + "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.Form.ImportXfdf", + "Aspose.Pdf.Facades.Form.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "concurrent-insert-delete-pdf": { - "title": "Concurrent Insert and Delete Operations on a PDF", - "filename": "concurrent-insert-delete-pdf.cs", - "description": "Demonstrates how to safely perform simultaneous page insertions and deletions on the same PDF using Aspose.Pdf with multithreading and file locking.", + "list-annotation-names-pdf-annotation-editor": { + "title": "List Annotation Names Pdf Annotation Editor", + "filename": "list-annotation-names-pdf-annotation-editor.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "list-pdf-annotation-names": { + "title": "List PDF Annotation Names", + "filename": "list-pdf-annotation-names.cs", + "description": "Shows how to bind a PDF with PdfAnnotationEditor, iterate through each page and its annotations, and print the Name of each annotation to the console for debugging.", "tags": [ - "concurrency", "pdf", - "aspose", - "insert", - "delete" + "annotations", + "aspose-pdf", + "enumeration", + "debug" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.TryInsert", - "Aspose.Pdf.Facades.PdfFileEditor.TryDelete", + "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages" + "Aspose.Pdf.Page", + "Aspose.Pdf.AnnotationCollection", + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.Annotation.Name" ], - "difficulty": "advanced", + "difficulty": "beginner", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "backup-pdf-and-flatten-form-fields": { - "title": "Backup PDF and Flatten Form Fields", - "filename": "backup-pdf-and-flatten-form-fields.cs", - "description": "Demonstrates how to create a backup of a PDF before flattening all interactive form fields using Aspose.Pdf and the Form facade.", + "list-pdf-annotations-to-csv": { + "title": "List PDF Annotations with Page Numbers to CSV", + "filename": "list-pdf-annotations-to-csv.cs", + "description": "Shows how to extract all annotations from a PDF, obtain each annotation's name and page number, and export the data to a CSV file using Aspose.Pdf.", "tags": [ - "pdf", - "backup", - "flatten", - "form", - "facade" + "annotations", + "csv", + "extraction", + "pdf", + "aspose" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.FlattenAllFields", - "Aspose.Pdf.Document.Save" + "PdfAnnotationEditor", + "PdfAnnotationEditor.BindPdf", + "PdfAnnotationEditor.ExtractAnnotations", + "PdfAnnotationEditor.Document", + "Annotation", + "Annotation.Name", + "Annotation.PageIndex" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "get-annotation-counts-from-pdf": { - "title": "Get Annotation Counts from PDF", - "filename": "get-annotation-counts-from-pdf.cs", - "description": "Demonstrates how to extract all annotations from a PDF using Aspose.Pdf's PdfAnnotationEditor and count the occurrences of each annotation type.", + "log-annotation-deletions-to-csv": { + "title": "Log Annotation Deletions to CSV and Remove from PDF", + "filename": "log-annotation-deletions-to-csv.cs", + "description": "The example extracts all annotations from a PDF, records each annotation's name, type, and page number to a CSV log file, then deletes the annotations and saves the modified document.", "tags": [ "annotations", - "pdf", - "count", - "Aspose.Pdf", - "facade" + "deletion", + "logging", + "csv", + "pdf" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.AnnotationCollection", + "Aspose.Pdf.Annotations.Annotation", "PdfAnnotationEditor.BindPdf", - "PdfAnnotationEditor.ExtractAnnotations", - "PdfAnnotationEditor.Save", - "Aspose.Pdf.Annotations.Annotation" + "PdfAnnotationEditor.DeleteAnnotation", + "PdfAnnotationEditor.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "skip-readonly-annotations-when-flattening-pdf": { - "title": "Skip Read‑Only Annotations When Flattening PDF", - "filename": "skip-readonly-annotations-when-flattening-pdf.cs", - "description": "Shows how to flatten PDF annotations in batch while optionally skipping those marked as read‑only using Aspose.Pdf.Facades.", + "log-annotation-modified-timestamp": { + "title": "Log Annotation Modified Timestamp", + "filename": "log-annotation-modified-timestamp.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "log-annotation-workflow": { + "title": "Log Annotation Workflow", + "filename": "log-annotation-workflow.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "log-file-sizes-after-flattening-pdf-annotations": { + "title": "Log File Sizes After Flattening PDF Annotations", + "filename": "log-file-sizes-after-flattening-pdf-annotations.cs", + "description": "Demonstrates how to flatten all annotations in a PDF using Aspose.Pdf.Facades and log the original and resulting file sizes for audit purposes.", "tags": [ "pdf", "annotations", - "flatten", - "readonly", - "batch" + "flattening", + "audit", + "filesize" ], "apis_used": [ - "PdfAnnotationEditor", + "Aspose.Pdf.Facades.PdfAnnotationEditor", "PdfAnnotationEditor.BindPdf", - "PdfAnnotationEditor.Save", - "Document", - "Page", - "Annotation", - "AnnotationFlags", - "Annotation.Flatten" + "PdfAnnotationEditor.FlatteningAnnotations", + "PdfAnnotationEditor.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, @@ -1665,208 +2095,254 @@ "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "delete-annotations-export-xfdf": { - "title": "Delete Specific Annotations and Export Remaining to XFDF", - "filename": "delete-annotations-export-xfdf.cs", - "description": "Demonstrates how to remove all annotations of a given type (e.g., Text) from a PDF using PdfAnnotationEditor and then export the remaining annotations to an XFDF file.", + "log-update-annotation-modification-timestamps": { + "title": "Log and Update Annotation Modification Timestamps", + "filename": "log-update-annotation-modification-timestamps.cs", + "description": "Demonstrates how to read the Modified timestamp of each PDF annotation, log it, and set a new timestamp using Aspose.Pdf's annotation editor.", "tags": [ "annotations", - "delete", - "xfdf", - "pdf", - "facade" + "timestamp", + "logging", + "Aspose.Pdf", + "PdfAnnotationEditor" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotations", "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ExportAnnotationsToXfdf" + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.Annotation.Modified" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "retry-annotation-modification-exponential-backoff": { - "title": "Retry Annotation Modification with Exponential Backoff", - "filename": "retry-annotation-modification-exponential-backoff.cs", - "description": "Demonstrates how to modify PDF annotations using Aspose.Pdf with a retry policy that applies exponential backoff for transient file access errors.", + "manage-pdf-annotations-verbose": { + "title": "Flatten, Export, Import and Delete PDF Annotations with Verbose Logging", + "filename": "manage-pdf-annotations-verbose.cs", + "description": "The example loads a PDF, uses PdfAnnotationEditor to flatten all annotations, exports and re‑imports them via XFDF, deletes specific annotation types, and optionally logs each step with a --verbose flag.", "tags": [ "annotations", - "retry", - "exponential-backoff", "pdf", - "facade" + "xfdf", + "flatten", + "verbose" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ModifyAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" + "Aspose.Pdf.Document.ExportAnnotationsToXfdf", + "Aspose.Pdf.Document.ImportAnnotationsFromXfdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.FlatteningAnnotations", + "Aspose.Pdf.Annotations.AnnotationType" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "list-pdf-annotations-to-csv": { - "title": "List PDF Annotations with Page Numbers to CSV", - "filename": "list-pdf-annotations-to-csv.cs", - "description": "Shows how to extract all annotations from a PDF, obtain each annotation's name and page number, and export the data to a CSV file using Aspose.Pdf.", + "measure-annotation-flattening-performance": { + "title": "Measure Annotation Flattening Performance", + "filename": "measure-annotation-flattening-performance.cs", + "description": "The example loads a PDF, flattens all its annotations using PdfAnnotationEditor, saves the result, and measures the elapsed time to evaluate performance impact.", "tags": [ - "annotations", - "csv", - "extraction", "pdf", - "aspose" + "annotations", + "flatten", + "performance", + "stopwatch" ], "apis_used": [ - "PdfAnnotationEditor", - "PdfAnnotationEditor.BindPdf", - "PdfAnnotationEditor.ExtractAnnotations", - "PdfAnnotationEditor.Document", - "Annotation", - "Annotation.Name", - "Annotation.PageIndex" + "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.FlatteningAnnotations", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "add-custom-metadata-to-pdf-annotation": { - "title": "Add Custom Metadata to a PDF Annotation", - "filename": "add-custom-metadata-to-pdf-annotation.cs", - "description": "Demonstrates how to create a TextAnnotation, store custom key/value metadata using PdfFileInfo, optionally modify the annotation with PdfAnnotationEditor, and save the PDF.", + "merge-annotation-layers-from-multiple-pdfs": { + "title": "Merge Annotation Layers from Multiple PDFs", + "filename": "merge-annotation-layers-from-multiple-pdfs.cs", + "description": "Demonstrates how to import annotation layers from several source PDFs into a target PDF and save the combined document using Aspose.Pdf.Facades.", "tags": [ - "annotation", - "metadata", + "annotations", "pdf", + "merge", "aspose", - "custom-field" + "facades" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Facades.PdfFileInfo.SetMetaInfo", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ModifyAnnotations" + "Aspose.Pdf.Facades.PdfAnnotationEditor", + "PdfAnnotationEditor.BindPdf", + "PdfAnnotationEditor.ImportAnnotations", + "PdfAnnotationEditor.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "batch-remove-old-annotations": { - "title": "Batch Remove Old Annotations from PDFs", - "filename": "batch-remove-old-annotations.cs", - "description": "Demonstrates how to iterate through PDFs in a folder and delete annotations whose modification date is older than a specified number of days using Aspose.Pdf.", + "merge-annotation-layers": { + "title": "Merge Annotation Layers", + "filename": "merge-annotation-layers.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "merge-multiple-xfdf-files": { + "title": "Merge Multiple XFDF Files into a Single XFDF", + "filename": "merge-multiple-xfdf-files.cs", + "description": "Demonstrates how to import annotations from several XFDF files into a temporary PDF using PdfAnnotationEditor and then export the combined annotations as one XFDF file.", "tags": [ + "xfdf", "annotations", - "cleanup", - "batch", + "merge", "pdf", "aspose" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.AnnotationCollection", - "Aspose.Pdf.Annotations.Annotation.Modified" + "Aspose.Pdf.Facades.PdfAnnotationEditor.ImportAnnotationsFromXfdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.ExportAnnotationsToXfdf" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "check-duplicate-annotation-names": { - "title": "Check for Duplicate Annotation Names in a PDF", - "filename": "check-duplicate-annotation-names.cs", - "description": "Shows how to iterate through all annotations in a PDF with Aspose.Pdf, detect duplicate annotation names, and write a detailed report to a log file.", + "merge-multiple-xfdf-into-pdf": { + "title": "Merge Multiple Xfdf Into Pdf", + "filename": "merge-multiple-xfdf-into-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "modify-annotation-author-on-pdf-page": { + "title": "Modify Annotation Author on a PDF Page", + "filename": "modify-annotation-author-on-pdf-page.cs", + "description": "Demonstrates how to change the author (Title) of text annotations on a specific page of a PDF using Aspose.Pdf's PdfAnnotationEditor.", "tags": [ "annotations", - "duplicate", + "author", "pdf", - "logging", + "modify", "Aspose.Pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.AnnotationCollection", - "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Facades.PdfAnnotationEditor.ModifyAnnotationsAuthor", + "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "extract-pdf-annotation-comments-summary": { - "title": "Extract PDF Annotation Comments and Create Summary PDF", - "filename": "extract-pdf-annotation-comments-summary.cs", - "description": "Demonstrates how to extract text‑type annotation comments from an existing PDF using Aspose.Pdf.Facades, compile them into a single summary string, and generate a new PDF containing that summary.", + "modify-annotation-subject-unit-test": { + "title": "Modify Annotation Subject Unit Test", + "filename": "modify-annotation-subject-unit-test.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "monitor-folder-flatten-pdf-annotations": { + "title": "Monitor Folder and Flatten PDF Annotations", + "filename": "monitor-folder-flatten-pdf-annotations.cs", + "description": "Shows a background service that watches a directory for new PDF files and uses Aspose.Pdf to flatten all annotations, saving the flattened PDFs to an output folder.", "tags": [ - "annotations", "pdf", - "summary", - "extraction", - "aspose-pdf" + "annotations", + "flatten", + "filesystemwatcher", + "background-service" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfAnnotationEditor", - "PdfAnnotationEditor.BindPdf", - "PdfAnnotationEditor.ExtractAnnotations", - "Aspose.Pdf.Annotations.Annotation", "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.FontRepository.FindFont" + "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.FlatteningAnnotations", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "flatten-pdf-annotations__v2": { - "title": "Flatten PDF Annotations to Static Graphics", - "filename": "flatten-pdf-annotations__v2.cs", - "description": "Demonstrates how to flatten all interactive annotations in a PDF, converting them to static graphics while preserving their visual appearance.", + "pdf-annotation-flattening-service": { + "title": "Pdf Annotation Flattening Service", + "filename": "pdf-annotation-flattening-service.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "pdf-annotation-helper": { + "title": "PDF Annotation Helper for Binding, Deleting, Flattening, and Saving", + "filename": "pdf-annotation-helper.cs", + "description": "Shows a reusable helper class that wraps Aspose.Pdf.Facades.PdfAnnotationEditor to bind a PDF, delete annotations (all or by type), flatten annotations (all or by page range), and save the updated document.", "tags": [ - "flatten", - "annotations", "pdf", - "Aspose.Pdf", - "static-graphics" + "annotations", + "aspose", + "facade", + "helper" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfAnnotationEditor", - "PdfAnnotationEditor.BindPdf", - "PdfAnnotationEditor.FlatteningAnnotations", - "PdfAnnotationEditor.Save" + "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotations", + "Aspose.Pdf.Facades.PdfAnnotationEditor.FlatteningAnnotations", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", + "Aspose.Pdf.Annotations.AnnotationType" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "merge-annotation-layers-from-multiple-pdfs": { - "title": "Merge Annotation Layers from Multiple PDFs", - "filename": "merge-annotation-layers-from-multiple-pdfs.cs", - "description": "Demonstrates how to import annotation layers from several source PDFs into a target PDF and save the combined document using Aspose.Pdf.Facades.", + "pdf-annotation-helper__v2": { + "title": "Pdf Annotation Helper__V2", + "filename": "pdf-annotation-helper__v2.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "pdf-annotation-utility-delete-flatten-export": { + "title": "Command‑Line PDF Annotation Utility (Delete, Flatten, Export)", + "filename": "pdf-annotation-utility-delete-flatten-export.cs", + "description": "Demonstrates a console application that uses Aspose.Pdf.Facades to delete specific pages, flatten all annotations, or export annotations to an XFDF file based on command‑line arguments.", "tags": [ - "annotations", "pdf", - "merge", - "aspose", - "facades" + "annotations", + "delete", + "flatten", + "export" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfAnnotationEditor", + "PdfFileEditor", + "PdfFileEditor.Delete", + "PdfAnnotationEditor", "PdfAnnotationEditor.BindPdf", - "PdfAnnotationEditor.ImportAnnotations", - "PdfAnnotationEditor.Save" + "PdfAnnotationEditor.FlatteningAnnotations", + "PdfAnnotationEditor.Save", + "PdfAnnotationEditor.ExportAnnotationsToXfdf" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, @@ -1893,312 +2369,336 @@ "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "batch-export-delete-annotations-xfdf": { - "title": "Batch Export Annotations to XFDF and Remove Them", - "filename": "batch-export-delete-annotations-xfdf.cs", - "description": "Shows how to process a folder of PDFs, export all annotations to XFDF files for archiving, delete the annotations, and save the cleaned PDFs using Aspose.Pdf.Facades.", + "remove-all-annotations-from-pdf": { + "title": "Remove All Annotations from a PDF using PdfAnnotationEditor", + "filename": "remove-all-annotations-from-pdf.cs", + "description": "Demonstrates how to bind a PDF file to Aspose.Pdf.Facades.PdfAnnotationEditor, delete every annotation in the document, and save the cleaned PDF to a new file.", "tags": [ - "annotations", - "xfdf", - "batch-processing", "pdf", - "aspose-pdf" + "annotations", + "delete", + "aspose-pdf", + "csharp" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ExportAnnotationsToXfdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" + "PdfAnnotationEditor", + "PdfAnnotationEditor.BindPdf", + "PdfAnnotationEditor.DeleteAnnotations", + "PdfAnnotationEditor.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "flatten-pdfs-save-to-custom-output-directory": { - "title": "Flatten PDFs and Save to Custom Output Directory", - "filename": "flatten-pdfs-save-to-custom-output-directory.cs", - "description": "Demonstrates how to flatten PDF form fields using Aspose.Pdf and save the resulting PDFs to a user‑specified output folder, preserving original file names.", + "remove-all-annotations-from-pdf__v2": { + "title": "Remove All Annotations from PDF", + "filename": "remove-all-annotations-from-pdf__v2.cs", + "description": "Shows how to load a PDF, delete every annotation using Aspose.Pdf.Facades.PdfAnnotationEditor, and save the cleaned file.", "tags": [ "pdf", - "flatten", - "output-directory", + "annotations", + "remove", "aspose", - "facade" + "console" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Flatten()", - "Aspose.Pdf.Document.Save(string)" + "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotations", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Close" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "log-file-sizes-after-flattening-pdf-annotations": { - "title": "Log File Sizes After Flattening PDF Annotations", - "filename": "log-file-sizes-after-flattening-pdf-annotations.cs", - "description": "Demonstrates how to flatten all annotations in a PDF using Aspose.Pdf.Facades and log the original and resulting file sizes for audit purposes.", + "remove-all-annotations-from-pdfs-in-parallel": { + "title": "Remove All Annotations From Pdfs In Parallel", + "filename": "remove-all-annotations-from-pdfs-in-parallel.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "remove-all-annotations-from-pdfs": { + "title": "Remove All Annotations from PDFs in a Folder", + "filename": "remove-all-annotations-from-pdfs.cs", + "description": "Shows how to loop through PDF files in a directory, bind each with PdfAnnotationEditor, delete every annotation, and overwrite the original file.", "tags": [ "pdf", "annotations", - "flattening", - "audit", - "filesize" + "batch", + "Aspose.Pdf", + "delete" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfAnnotationEditor", + "PdfAnnotationEditor", "PdfAnnotationEditor.BindPdf", - "PdfAnnotationEditor.FlatteningAnnotations", + "PdfAnnotationEditor.DeleteAnnotations", "PdfAnnotationEditor.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "update-annotation-subject": { - "title": "Update Annotation Subject Using PdfAnnotationEditor", - "filename": "update-annotation-subject.cs", - "description": "Demonstrates how to create a PDF with a TextAnnotation, modify its Subject property using PdfAnnotationEditor.ModifyAnnotations, and verify the change with a unit test.", + "remove-link-annotations-from-pdf": { + "title": "Remove Link Annotations from PDF", + "filename": "remove-link-annotations-from-pdf.cs", + "description": "Shows how to delete link annotations in a PDF using the PdfAnnotationEditor facade from Aspose.Pdf.", "tags": [ - "annotations", "pdf", - "modify", - "subject", - "unit-test" + "annotations", + "delete", + "link", + "Aspose.Pdf" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ModifyAnnotations", + "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotations", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "batch-delete-pdf-annotations-retain-types": { - "title": "Batch Delete PDF Annotations While Retaining Specified Types", - "filename": "batch-delete-pdf-annotations-retain-types.cs", - "description": "Demonstrates how to load a PDF, read a JSON configuration that lists annotation types to keep, and delete all other annotations using Aspose.Pdf's PdfAnnotationEditor.", + "remove-link-annotations-from-specific-pdf-pages": { + "title": "Remove Link Annotations From Specific Pdf Pages", + "filename": "remove-link-annotations-from-specific-pdf-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "remove-old-annotations-from-pdf": { + "title": "Remove Old Annotations From Pdf", + "filename": "remove-old-annotations-from-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "remove-pdf-annotations": { + "title": "Remove All Annotations from a PDF Stream", + "filename": "remove-pdf-annotations.cs", + "description": "Shows how to bind a PDF stream to Aspose.Pdf.Facades.PdfAnnotationEditor, delete every annotation, and return the cleaned PDF as a MemoryStream.", "tags": [ "pdf", "annotations", - "batch-delete", - "json-config", - "aspose" + "aspose", + "stream", + "cleanup" ], "apis_used": [ "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Annotations.AnnotationType", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotations", "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "flatten-pdf-annotations-from-stream": { - "title": "Flatten PDF Annotations from Stream", - "filename": "flatten-pdf-annotations-from-stream.cs", - "description": "Shows how to flatten all annotations in a PDF provided as a stream and return the modified PDF in a MemoryStream, avoiding any disk I/O.", + "rename-pdf-annotation-names": { + "title": "Rename PDF Annotation Names with Standard Prefix", + "filename": "rename-pdf-annotation-names.cs", + "description": "Shows how to iterate through all annotations in a PDF using Aspose.Pdf, prepend a standardized prefix to each annotation's name, and save the modified document.", "tags": [ - "pdf", "annotations", - "flatten", - "memory-stream", - "aspose" + "rename", + "prefix", + "pdf", + "batch" ], "apis_used": [ "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.FlatteningAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.Annotation" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "flatten-pdf-tag-flattened-date": { - "title": "Flatten PDF and Tag with Flattened Date Metadata", - "filename": "flatten-pdf-tag-flattened-date.cs", - "description": "The example loads a PDF, flattens all form fields and annotations, saves it, and then adds a custom metadata entry \"FlattenedDate\" containing the current UTC timestamp using the Aspose.Pdf Facades API.", + "report-pdf-annotations-by-author": { + "title": "Report PDF Annotations Grouped by Author", + "filename": "report-pdf-annotations-by-author.cs", + "description": "Shows how to extract all annotations from a PDF, group them by the author (Title property of markup annotations), and output a simple console report.", "tags": [ - "pdf", - "flatten", - "metadata", - "aspose", - "facades" + "annotations", + "author", + "grouping", + "report", + "pdf" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Flatten", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.BindPdf", - "Aspose.Pdf.Facades.PdfFileInfo.SetMetaInfo", - "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" + "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.ExtractAnnotations", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.MarkupAnnotation", + "Aspose.Pdf.Annotations.AnnotationType", + "Aspose.Pdf.Document" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "export-pdf-annotations-to-xfdf-with-diagnostic-logging": { - "title": "Export PDF Annotations to XFDF with Diagnostic Logging", - "filename": "export-pdf-annotations-to-xfdf-with-diagnostic-logging.cs", - "description": "Demonstrates how to export all PDF annotations to an XFDF file using Aspose.Pdf and simultaneously write the same XFDF content to a diagnostic log file.", + "retrieve-annotation-count-per-pdf-page": { + "title": "Retrieve Annotation Count Per PDF Page", + "filename": "retrieve-annotation-count-per-pdf-page.cs", + "description": "Demonstrates opening a PDF with Aspose.Pdf, iterating through its pages, and counting the annotations on each page to produce a page‑wise report.", "tags": [ "annotations", - "xfdf", - "export", - "diagnostic", - "aspose-pdf" + "reporting", + "pdf", + "Aspose.Pdf", + "page-count" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ExportAnnotationsToXfdf" + "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "clone-annotation-change-color": { - "title": "Clone PDF Annotation, Change Its Color, and Add to Another Page", - "filename": "clone-annotation-change-color.cs", - "description": "Demonstrates how to load a PDF, clone an existing annotation, modify its color, and place the cloned annotation on a different page using Aspose.Pdf.", + "retry-annotation-modification-exponential-backoff": { + "title": "Retry Annotation Modification with Exponential Backoff", + "filename": "retry-annotation-modification-exponential-backoff.cs", + "description": "Demonstrates how to modify PDF annotations using Aspose.Pdf with a retry policy that applies exponential backoff for transient file access errors.", "tags": [ - "annotation", - "clone", - "color", + "annotations", + "retry", + "exponential-backoff", "pdf", - "Aspose.Pdf" + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Annotations.StampAnnotation", - "Aspose.Pdf.Color", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Facades.PdfAnnotationEditor.ModifyAnnotations", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "batch-delete-pdf-annotations-azure-blob": { - "title": "Batch Delete PDF Annotations from Azure Blob Storage", - "filename": "batch-delete-pdf-annotations-azure-blob.cs", - "description": "Demonstrates how to enumerate PDF blobs in an Azure Blob container, stream each PDF into Aspose.Pdf.Facades.PdfAnnotationEditor, delete all annotations, and upload the edited file back to another container.", + "retry-delete-pdf-annotations": { + "title": "Retry Deleting PDF Annotations with PdfAnnotationEditor", + "filename": "retry-delete-pdf-annotations.cs", + "description": "Demonstrates binding a PDF, deleting all annotations, and retrying the operation with a rebinding if the first attempt fails.", "tags": [ "pdf", - "azure-blob", "annotations", - "batch-processing", - "streaming" + "retry", + "Aspose.Pdf", + "PdfAnnotationEditor" ], "apis_used": [ "PdfAnnotationEditor", "PdfAnnotationEditor.BindPdf", "PdfAnnotationEditor.DeleteAnnotations", - "PdfAnnotationEditor.Save", - "PdfAnnotationEditor.Dispose" + "PdfAnnotationEditor.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "generate-annotation-summary-report": { - "title": "Generate Annotation Summary Report for PDFs", - "filename": "generate-annotation-summary-report.cs", - "description": "The utility scans all PDF files in a folder, extracts annotations using Aspose.Pdf, counts each annotation type, and writes a summary report to a text file.", + "set-annotation-open-flag": { + "title": "Set Annotation Open Flag for All PDF Annotations", + "filename": "set-annotation-open-flag.cs", + "description": "Demonstrates how to iterate through all pages and annotations in a PDF and set the Open flag to true for text and popup annotations using Aspose.Pdf.", "tags": [ "annotations", + "open-flag", "pdf", - "report", "aspose", "csharp" ], "apis_used": [ - "PdfAnnotationEditor", - "PdfAnnotationEditor.BindPdf", - "PdfAnnotationEditor.ExtractAnnotations", - "Annotation", - "AnnotationType" + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Annotations.PopupAnnotation" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "conditional-pdf-flattening": { - "title": "Conditional PDF Flattening Based on Digital Signatures", - "filename": "conditional-pdf-flattening.cs", - "description": "The example checks if a PDF contains digital signatures using PdfFileSignature and only flattens form fields and annotations when no signatures are present, preserving signature validity.", - "tags": [ - "pdf", - "flatten", - "digital-signature", - "aspose.pdf", - "facade" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfFileSignature", - "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", - "Aspose.Pdf.Facades.PdfFileSignature.ContainsSignature", - "Aspose.Pdf.Document.Flatten", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:27:30Z", + "set-readonly-flag-on-pdf-annotation": { + "title": "Set Readonly Flag On Pdf Annotation", + "filename": "set-readonly-flag-on-pdf-annotation.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "rename-pdf-annotation-names": { - "title": "Rename PDF Annotation Names with Standard Prefix", - "filename": "rename-pdf-annotation-names.cs", - "description": "Shows how to iterate through all annotations in a PDF using Aspose.Pdf, prepend a standardized prefix to each annotation's name, and save the modified document.", + "set-readonly-flag-on-pdf-text-annotation": { + "title": "Set Read‑Only Flag on PDF Text Annotation", + "filename": "set-readonly-flag-on-pdf-text-annotation.cs", + "description": "Demonstrates creating a TextAnnotation, applying the ReadOnly flag via the Flags property, and adding it to a PDF using PdfAnnotationEditor.ModifyAnnotations.", "tags": [ - "annotations", - "rename", - "prefix", + "annotation", + "readonly", "pdf", - "batch" + "aspose", + "text" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation" + "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Annotations.AnnotationFlags", + "Aspose.Pdf.Facades.PdfAnnotationEditor.ModifyAnnotations", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "manage-pdf-annotations-verbose": { - "title": "Flatten, Export, Import and Delete PDF Annotations with Verbose Logging", - "filename": "manage-pdf-annotations-verbose.cs", - "description": "The example loads a PDF, uses PdfAnnotationEditor to flatten all annotations, exports and re‑imports them via XFDF, deletes specific annotation types, and optionally logs each step with a --verbose flag.", + "skip-readonly-annotations-when-flattening-pdf": { + "title": "Skip Read‑Only Annotations When Flattening PDF", + "filename": "skip-readonly-annotations-when-flattening-pdf.cs", + "description": "Shows how to flatten PDF annotations in batch while optionally skipping those marked as read‑only using Aspose.Pdf.Facades.", "tags": [ - "annotations", "pdf", - "xfdf", + "annotations", "flatten", - "verbose" + "readonly", + "batch" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Document.ExportAnnotationsToXfdf", - "Aspose.Pdf.Document.ImportAnnotationsFromXfdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.FlatteningAnnotations", - "Aspose.Pdf.Annotations.AnnotationType" + "PdfAnnotationEditor", + "PdfAnnotationEditor.BindPdf", + "PdfAnnotationEditor.Save", + "Document", + "Page", + "Annotation", + "AnnotationFlags", + "Annotation.Flatten" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", @@ -2223,75 +2723,117 @@ "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "report-pdf-annotations-by-author": { - "title": "Report PDF Annotations Grouped by Author", - "filename": "report-pdf-annotations-by-author.cs", - "description": "Shows how to extract all annotations from a PDF, group them by the author (Title property of markup annotations), and output a simple console report.", + "test-export-annotations-unbound-pdfannotationeditor": { + "title": "Test Export Annotations Unbound Pdfannotationeditor", + "filename": "test-export-annotations-unbound-pdfannotationeditor.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "update-annotation-modified-date": { + "title": "Update Annotation Modified Date in PDF", + "filename": "update-annotation-modified-date.cs", + "description": "Shows how to set the Modified property of a PDF annotation to the current system time using PdfAnnotationEditor.ModifyAnnotations.", "tags": [ - "annotations", - "author", - "grouping", - "report", - "pdf" + "annotation", + "modified-date", + "pdf", + "Aspose.Pdf", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Facades.PdfAnnotationEditor.ModifyAnnotations", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ExtractAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.MarkupAnnotation", - "Aspose.Pdf.Annotations.AnnotationType", - "Aspose.Pdf.Document" + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "export-pdf-annotations-to-xfdf-custom-namespace": { - "title": "Export PDF Annotations to XFDF with Custom Namespace", - "filename": "export-pdf-annotations-to-xfdf-custom-namespace.cs", - "description": "Shows how to export all annotations from a PDF to XFDF using Aspose.Pdf, then replace the default XFDF namespace with a custom enterprise namespace before saving the file.", + "update-annotation-subject-color": { + "title": "Update Annotation Subject and Color", + "filename": "update-annotation-subject-color.cs", + "description": "Shows how to change the subject text and color of an existing PDF annotation by creating a new TextAnnotation and applying it with PdfAnnotationEditor.ModifyAnnotations.", "tags": [ - "annotations", - "xfdf", - "namespace", - "export", - "aspose-pdf" + "annotation", + "modify", + "subject", + "color", + "pdf" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.TextAnnotation", "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ExportAnnotationsToXfdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Close" + "Aspose.Pdf.Facades.PdfAnnotationEditor.ModifyAnnotations", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, - "monitor-folder-flatten-pdf-annotations": { - "title": "Monitor Folder and Flatten PDF Annotations", - "filename": "monitor-folder-flatten-pdf-annotations.cs", - "description": "Shows a background service that watches a directory for new PDF files and uses Aspose.Pdf to flatten all annotations, saving the flattened PDFs to an output folder.", + "update-annotation-subject": { + "title": "Update Annotation Subject Using PdfAnnotationEditor", + "filename": "update-annotation-subject.cs", + "description": "Demonstrates how to create a PDF with a TextAnnotation, modify its Subject property using PdfAnnotationEditor.ModifyAnnotations, and verify the change with a unit test.", "tags": [ - "pdf", "annotations", - "flatten", - "filesystemwatcher", - "background-service" + "pdf", + "modify", + "subject", + "unit-test" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Facades.PdfAnnotationEditor.ModifyAnnotations", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.FlatteningAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" }, + "validate-exported-xfdf-against-the-xfdf-schema-by-loading-the-file-into-an-xml-document-and-checking-errors": { + "title": "Validate Exported Xfdf Against The Xfdf Schema By Loading The File Into An Xml Document And Checking Errors", + "filename": "validate-exported-xfdf-against-the-xfdf-schema-by-loading-the-file-into-an-xml-document-and-checking-errors.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "validate-no-annotations-after-flattening": { + "title": "Validate No Annotations After Flattening", + "filename": "validate-no-annotations-after-flattening.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "validate-pdf-integrity-after-annotation-changes": { + "title": "Validate Pdf Integrity After Annotation Changes", + "filename": "validate-pdf-integrity-after-annotation-changes.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "validate-pdf-integrity-after-annotation": { "title": "Validate PDF Integrity After Adding Text Annotation", "filename": "validate-pdf-integrity-after-annotation.cs", @@ -2314,48 +2856,6 @@ "difficulty": "intermediate", "generated_at": "2026-08-20T07:27:30Z", "status": "verified" - }, - "export-pdf-annotations-to-compressed-xfdf": { - "title": "Export PDF Annotations to Compressed XFDF", - "filename": "export-pdf-annotations-to-compressed-xfdf.cs", - "description": "Demonstrates how to export all annotations from a PDF to XFDF using Aspose.Pdf's PdfAnnotationEditor and then compress the XFDF data with GZip for efficient storage.", - "tags": [ - "annotations", - "xfdf", - "gzip", - "export", - "pdf" - ], - "apis_used": [ - "Document", - "PdfAnnotationEditor", - "PdfAnnotationEditor.BindPdf", - "PdfAnnotationEditor.ExportAnnotationsToXfdf", - "PdfAnnotationEditor (constructor)" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:27:30Z", - "status": "verified" - }, - "import-xfdf-into-pdf-cleanup": { - "title": "Import XFDF into PDF and Delete Temporary File", - "filename": "import-xfdf-into-pdf-cleanup.cs", - "description": "Demonstrates how to import XFDF data into a PDF using the Form facade and then remove the temporary XFDF file after a successful import.", - "tags": [ - "xfdf", - "import", - "pdf", - "cleanup", - "facade" - ], - "apis_used": [ - "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.ImportXfdf", - "Aspose.Pdf.Facades.Form.Save" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:27:30Z", - "status": "verified" } } } \ No newline at end of file diff --git a/facades-bookmarks/AGENTS.md b/facades-bookmarks/AGENTS.md index 24578fc14..aa0e54916 100644 --- a/facades-bookmarks/AGENTS.md +++ b/facades-bookmarks/AGENTS.md @@ -8,7 +8,7 @@ parent: ../agents.md # AGENTS - facades-bookmarks -> **Facades bookmarks** in PDF using C# / .NET -- **35** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. +> **Facades bookmarks** in PDF using C# / .NET -- **48** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. ## Persona @@ -23,14 +23,14 @@ See the root [agents.md](../agents.md) for repository-wide conventions and bound ## Required Namespaces -- `using Aspose.Pdf.Facades;` (35/35 files) ← category-specific -- `using Aspose.Pdf;` (16/35 files) -- `using System;` (35/35 files) -- `using System.IO;` (34/35 files) -- `using System.Collections.Generic;` (12/35 files) -- `using System.Drawing;` (4/35 files) -- `using System.Text.Json;` (3/35 files) -- `using System.Text.RegularExpressions;` (1/35 files) +- `using Aspose.Pdf.Facades;` (35/48 files) ← category-specific +- `using Aspose.Pdf;` (16/48 files) +- `using System;` (35/48 files) +- `using System.IO;` (34/48 files) +- `using System.Collections.Generic;` (12/48 files) +- `using System.Drawing;` (4/48 files) +- `using System.Text.Json;` (3/48 files) +- `using System.Text.RegularExpressions;` (1/48 files) ## Common Code Pattern @@ -54,33 +54,33 @@ tool.Save("output.pdf"); | [add-subbookmarks-to-pdf-chapter](./add-subbookmarks-to-pdf-chapter.cs) | Add Subbookmarks to a PDF Chapter | `PdfBookmarkEditor`, `BindPdf`, `CreateBookmarks` | Shows how to create a parent bookmark and attach child bookmarks to represent sections within a c... | | [add-toc-bookmark-to-pdfs-batch](./add-toc-bookmark-to-pdfs-batch.cs) | Add Table of Contents Bookmark to PDFs in Batch | `PdfBookmarkEditor`, `BindPdf`, `CreateBookmarkOfPage` | Shows how to process all PDF files in a directory and add a top‑level "Table of Contents" bookmar... | | [add-top-level-blue-bookmark-to-pdf](./add-top-level-blue-bookmark-to-pdf.cs) | Add Top-Level Blue Bookmark to PDF | `PdfBookmarkEditor`, `BindPdf`, `CreateBookmarks` | Demonstrates how to create a top‑level bookmark that points to the first page of a PDF and set it... | +| [add-top-level-blue-bookmark](./add-top-level-blue-bookmark.cs) | Add top level blue bookmark | | Add top level blue bookmark | | [adjust-pdf-bookmarks-after-inserting-pages](./adjust-pdf-bookmarks-after-inserting-pages.cs) | Adjust PDF Bookmarks After Inserting Pages | `Document`, `PdfBookmarkEditor`, `ExtractBookmarks` | Shows how to extract existing bookmarks, insert blank pages at the beginning of a PDF, and recrea... | | [batch-add-reviewed-bookmark-to-pdfs](./batch-add-reviewed-bookmark-to-pdfs.cs) | Batch Add "Reviewed" Bookmark to PDFs | `PdfBookmarkEditor`, `BindPdf`, `CreateBookmarkOfPage` | Shows how to loop through PDF files in a directory, use PdfBookmarkEditor to create a "Reviewed" ... | +| [batch-add-toc-bookmark-to-pdfs](./batch-add-toc-bookmark-to-pdfs.cs) | Batch add toc bookmark to pdfs | | Batch add toc bookmark to pdfs | | [batch-delete-bookmarks-from-encrypted-pdfs](./batch-delete-bookmarks-from-encrypted-pdfs.cs) | Batch Delete Bookmarks from Encrypted PDFs | `Document`, `PdfBookmarkEditor`, `DeleteBookmarks` | Shows how to open password‑protected PDF files, remove all bookmarks using PdfBookmarkEditor, and... | | [collapse-specific-pdf-bookmarks](./collapse-specific-pdf-bookmarks.cs) | Collapse Specific PDF Bookmarks Using Aspose.Pdf | `PdfBookmarkEditor`, `BindPdf`, `ExtractBookmarks` | Demonstrates how to set selected PDF bookmarks to a collapsed (closed) state by extracting, modif... | | [convert-bookmark-titles-to-title-case](./convert-bookmark-titles-to-title-case.cs) | Convert PDF Bookmark Titles to Title Case with Proper Noun P... | `PdfBookmarkEditor`, `BindPdf`, `ExtractBookmarks` | Demonstrates how to read PDF bookmarks, convert each title to title case while keeping predefined... | | [create-bookmark-to-named-destination](./create-bookmark-to-named-destination.cs) | Create Bookmark to Named Destination in PDF | `Document`, `PdfContentEditor`, `BindPdf` | Shows how to add a bookmark that points to an existing named destination within a PDF using Aspos... | | [create-hierarchical-pdf-bookmarks](./create-hierarchical-pdf-bookmarks.cs) | Create Hierarchical Bookmarks in a PDF | `PdfBookmarkEditor`, `BindPdf`, `CreateBookmarks` | Demonstrates how to bind an existing PDF with PdfBookmarkEditor and add a multi‑level bookmark hi... | +| [create-image-bookmarks-in-pdf](./create-image-bookmarks-in-pdf.cs) | Create image bookmarks in pdf | | Create image bookmarks in pdf | +| [create-javascript-bookmark](./create-javascript-bookmark.cs) | Create javascript bookmark | | Create javascript bookmark | | [delete-all-bookmarks-from-pdf](./delete-all-bookmarks-from-pdf.cs) | Delete All Bookmarks from PDF | `PdfBookmarkEditor`, `BindPdf`, `DeleteBookmarks` | Demonstrates how to remove every bookmark from a PDF document using Aspose.Pdf's PdfBookmarkEdito... | | [delete-bookmark-from-pdf](./delete-bookmark-from-pdf.cs) | Delete Bookmark from PDF Using PdfBookmarkEditor | `PdfBookmarkEditor`, `BindPdf`, `ExtractBookmarks` | Demonstrates binding a PDF to PdfBookmarkEditor, listing existing bookmarks, deleting a specific ... | | [delete-bookmarks-matching-regex](./delete-bookmarks-matching-regex.cs) | Delete Bookmarks Matching a Regex Pattern | `PdfBookmarkEditor`, `BindPdf`, `ExtractBookmarks` | Demonstrates how to remove PDF bookmarks whose titles match a specified regular expression using ... | +| [delete-pdf-bookmark-verify](./delete-pdf-bookmark-verify.cs) | Delete pdf bookmark verify | | Delete pdf bookmark verify | | [export-pdf-bookmarks-to-csv](./export-pdf-bookmarks-to-csv.cs) | Export PDF Bookmarks to CSV | `PdfBookmarkEditor`, `BindPdf`, `ExtractBookmarks` | Opens a PDF, extracts all bookmarks recursively using PdfBookmarkEditor, and writes each bookmark... | | [export-pdf-bookmarks-to-excel](./export-pdf-bookmarks-to-excel.cs) | Export PDF Bookmarks to Excel | `PdfBookmarkEditor`, `ExcelSaveOptions`, `Document` | Shows how to extract all bookmarks from a PDF using PdfBookmarkEditor, place them in a table, and... | | [export-pdf-bookmarks-to-json](./export-pdf-bookmarks-to-json.cs) | Export PDF Bookmark Hierarchy to JSON | `PdfBookmarkEditor`, `BindPdf`, `ExtractBookmarks` | Shows how to extract the bookmark tree from a PDF using PdfBookmarkEditor and write each bookmark... | +| [export-pdf-bookmarks-to-json__v2](./export-pdf-bookmarks-to-json__v2.cs) | Export pdf bookmarks to json__v2 | | Export pdf bookmarks to json__v2 | +| [export-pdf-bookmarks-to-text-outline](./export-pdf-bookmarks-to-text-outline.cs) | Export pdf bookmarks to text outline | | Export pdf bookmarks to text outline | | [export-pdf-bookmarks-to-text](./export-pdf-bookmarks-to-text.cs) | Export PDF Bookmarks to Text Outline | `PdfBookmarkEditor`, `BindPdf`, `ExtractBookmarks` | Shows how to extract the hierarchical bookmarks from a PDF using Aspose.Pdf.Facades.PdfBookmarkEd... | | [export-pdf-bookmarks-to-xml](./export-pdf-bookmarks-to-xml.cs) | Export PDF Bookmarks to XML | `PdfBookmarkEditor`, `BindPdf`, `ExportBookmarksToXML` | Demonstrates how to bind a PDF with Aspose.Pdf.Facades.PdfBookmarkEditor and export its complete ... | | [extract-pdf-bookmarks-to-json](./extract-pdf-bookmarks-to-json.cs) | Extract PDF Bookmarks to JSON | `PdfBookmarkEditor`, `BindPdf`, `ExtractBookmarks` | Shows how to use Aspose.Pdf.Facades.PdfBookmarkEditor to extract PDF bookmarks, build a hierarchi... | -| [import-bookmarks-from-csv](./import-bookmarks-from-csv.cs) | Import Bookmarks from CSV into PDF | `PdfBookmarkEditor`, `BindPdf`, `CreateBookmarks` | Shows how to read a CSV file, build a hierarchical bookmark tree, and add the bookmarks to a PDF ... | -| [import-bookmarks-from-database](./import-bookmarks-from-database.cs) | Import Bookmarks from Database into PDF | `PdfBookmarkEditor`, `BindPdf`, `CreateBookmarks` | Shows how to read bookmark records (title and page number) from a simulated database query and ad... | -| [import-bookmarks-from-json](./import-bookmarks-from-json.cs) | Import Bookmarks from JSON into a PDF | `PdfBookmarkEditor`, `Bookmark`, `Bookmarks` | Demonstrates how to read a JSON file containing bookmark definitions, map them to Aspose.Pdf.Faca... | -| [import-ofd-bookmarks-to-pdf](./import-ofd-bookmarks-to-pdf.cs) | Import OFD File and Add Bookmarks to PDF | `Document`, `OfdLoadOptions`, `PdfBookmarkEditor` | Demonstrates loading an OFD document, converting each page into a PDF bookmark, and saving the re... | -| [merge-pdf-bookmarks](./merge-pdf-bookmarks.cs) | Merge Bookmarks from One PDF into Another | `PdfBookmarkEditor`, `BindPdf`, `ExportBookmarksToXML` | Shows how to export bookmarks from a source PDF to an XML stream and import them into a target PD... | -| [remove-duplicate-bookmarks](./remove-duplicate-bookmarks.cs) | Remove Duplicate Bookmarks from PDF | `PdfBookmarkEditor`, `BindPdf`, `ExtractBookmarks` | Shows how to extract all bookmarks, filter out duplicates based on title and page number, delete ... | -| [rename-pdf-bookmarks-using-translation-dictionary](./rename-pdf-bookmarks-using-translation-dictionary.cs) | Rename PDF Bookmarks Using a Translation Dictionary | `PdfBookmarkEditor`, `BindPdf`, `ModifyBookmarks` | Demonstrates loading a PDF, renaming its bookmarks according to a translation dictionary, and sav... | -| ... | | | *and 5 more files* | +| ... | | | *and 18 more files* | ## Category Statistics -- Total examples: 35 +- Total examples: 48 ## Category-Specific Tips @@ -122,5 +122,5 @@ tool.Save("output.pdf"); - Review code examples in this folder for facades-bookmarks patterns -Updated: 2026-08-20 | Run: `20260820_001147_12d7b3` +Updated: 2026-09-10 | Run: `20260910_054408_87a7f4` diff --git a/facades-bookmarks/README.md b/facades-bookmarks/README.md new file mode 100644 index 000000000..eebba5d3b --- /dev/null +++ b/facades-bookmarks/README.md @@ -0,0 +1,67 @@ +# Facades bookmarks + +> **Facades bookmarks** in PDF using C# / .NET -- **48** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. + +- Category: `facades-bookmarks` +- Examples: 48 +- NuGet: `Aspose.PDF 26.8.0` -- target `net10.0` + +## Examples + +- [`add-colored-bookmarks-to-pdf.cs`](./add-colored-bookmarks-to-pdf.cs) -- Add colored bookmarks to pdf +- [`add-external-url-bookmarks-to-pdf.cs`](./add-external-url-bookmarks-to-pdf.cs) -- Add external url bookmarks to pdf +- [`add-image-bookmarks-to-pdf.cs`](./add-image-bookmarks-to-pdf.cs) -- Add image bookmarks to pdf +- [`add-javascript-bookmark-to-pdf.cs`](./add-javascript-bookmark-to-pdf.cs) -- Add javascript bookmark to pdf +- [`add-subbookmarks-to-pdf-chapter.cs`](./add-subbookmarks-to-pdf-chapter.cs) -- Add subbookmarks to pdf chapter +- [`add-toc-bookmark-to-pdfs-batch.cs`](./add-toc-bookmark-to-pdfs-batch.cs) -- Add toc bookmark to pdfs batch +- [`add-top-level-blue-bookmark-to-pdf.cs`](./add-top-level-blue-bookmark-to-pdf.cs) -- Add top level blue bookmark to pdf +- [`add-top-level-blue-bookmark.cs`](./add-top-level-blue-bookmark.cs) -- Add top level blue bookmark +- [`adjust-pdf-bookmarks-after-inserting-pages.cs`](./adjust-pdf-bookmarks-after-inserting-pages.cs) -- Adjust pdf bookmarks after inserting pages +- [`batch-add-reviewed-bookmark-to-pdfs.cs`](./batch-add-reviewed-bookmark-to-pdfs.cs) -- Batch add reviewed bookmark to pdfs +- [`batch-add-toc-bookmark-to-pdfs.cs`](./batch-add-toc-bookmark-to-pdfs.cs) -- Batch add toc bookmark to pdfs +- [`batch-delete-bookmarks-from-encrypted-pdfs.cs`](./batch-delete-bookmarks-from-encrypted-pdfs.cs) -- Batch delete bookmarks from encrypted pdfs +- [`collapse-specific-pdf-bookmarks.cs`](./collapse-specific-pdf-bookmarks.cs) -- Collapse specific pdf bookmarks +- [`convert-bookmark-titles-to-title-case.cs`](./convert-bookmark-titles-to-title-case.cs) -- Convert bookmark titles to title case +- [`create-bookmark-to-named-destination.cs`](./create-bookmark-to-named-destination.cs) -- Create bookmark to named destination +- [`create-hierarchical-pdf-bookmarks.cs`](./create-hierarchical-pdf-bookmarks.cs) -- Create hierarchical pdf bookmarks +- [`create-image-bookmarks-in-pdf.cs`](./create-image-bookmarks-in-pdf.cs) -- Create image bookmarks in pdf +- [`create-javascript-bookmark.cs`](./create-javascript-bookmark.cs) -- Create javascript bookmark +- [`delete-all-bookmarks-from-pdf.cs`](./delete-all-bookmarks-from-pdf.cs) -- Delete all bookmarks from pdf +- [`delete-bookmark-from-pdf.cs`](./delete-bookmark-from-pdf.cs) -- Delete bookmark from pdf +- [`delete-bookmarks-matching-regex.cs`](./delete-bookmarks-matching-regex.cs) -- Delete bookmarks matching regex +- [`delete-pdf-bookmark-verify.cs`](./delete-pdf-bookmark-verify.cs) -- Delete pdf bookmark verify +- [`export-pdf-bookmarks-to-csv.cs`](./export-pdf-bookmarks-to-csv.cs) -- Export pdf bookmarks to csv +- [`export-pdf-bookmarks-to-excel.cs`](./export-pdf-bookmarks-to-excel.cs) -- Export pdf bookmarks to excel +- [`export-pdf-bookmarks-to-json.cs`](./export-pdf-bookmarks-to-json.cs) -- Export pdf bookmarks to json +- [`export-pdf-bookmarks-to-json__v2.cs`](./export-pdf-bookmarks-to-json__v2.cs) -- Export pdf bookmarks to json v2 +- [`export-pdf-bookmarks-to-text-outline.cs`](./export-pdf-bookmarks-to-text-outline.cs) -- Export pdf bookmarks to text outline +- [`export-pdf-bookmarks-to-text.cs`](./export-pdf-bookmarks-to-text.cs) -- Export pdf bookmarks to text +- [`export-pdf-bookmarks-to-xml.cs`](./export-pdf-bookmarks-to-xml.cs) -- Export pdf bookmarks to xml +- [`extract-pdf-bookmarks-to-json.cs`](./extract-pdf-bookmarks-to-json.cs) -- Extract pdf bookmarks to json +- [`import-bookmarks-from-csv.cs`](./import-bookmarks-from-csv.cs) -- Import bookmarks from csv +- [`import-bookmarks-from-database.cs`](./import-bookmarks-from-database.cs) -- Import bookmarks from database +- [`import-bookmarks-from-json.cs`](./import-bookmarks-from-json.cs) -- Import bookmarks from json +- [`import-ofd-bookmarks-into-pdf.cs`](./import-ofd-bookmarks-into-pdf.cs) -- Import ofd bookmarks into pdf +- [`import-ofd-bookmarks-to-pdf.cs`](./import-ofd-bookmarks-to-pdf.cs) -- Import ofd bookmarks to pdf +- [`merge-bookmarks-into-pdf.cs`](./merge-bookmarks-into-pdf.cs) -- Merge bookmarks into pdf +- [`merge-pdf-bookmarks.cs`](./merge-pdf-bookmarks.cs) -- Merge pdf bookmarks +- [`modify-pdf-bookmarks-using-memorystream.cs`](./modify-pdf-bookmarks-using-memorystream.cs) -- Modify pdf bookmarks using memorystream +- [`remove-duplicate-bookmarks.cs`](./remove-duplicate-bookmarks.cs) -- Remove duplicate bookmarks +- [`rename-pdf-bookmarks-using-translation-dictionary.cs`](./rename-pdf-bookmarks-using-translation-dictionary.cs) -- Rename pdf bookmarks using translation dictionary +- [`set-bookmark-zoom-level-150-percent.cs`](./set-bookmark-zoom-level-150-percent.cs) -- Set bookmark zoom level 150 percent +- [`set-bookmark-zoom-to-150-percent.cs`](./set-bookmark-zoom-to-150-percent.cs) -- Set bookmark zoom to 150 percent +- [`update-bookmark-destination-to-page-10.cs`](./update-bookmark-destination-to-page-10.cs) -- Update bookmark destination to page 10 +- [`update-bookmark-destination-to-page.cs`](./update-bookmark-destination-to-page.cs) -- Update bookmark destination to page +- [`update-bookmark-titles-to-title-case.cs`](./update-bookmark-titles-to-title-case.cs) -- Update bookmark titles to title case +- [`update-pdf-bookmark-title.cs`](./update-pdf-bookmark-title.cs) -- Update pdf bookmark title +- [`validate-pdf-bookmark-count.cs`](./validate-pdf-bookmark-count.cs) -- Validate pdf bookmark count +- [`validate-pdf-bookmarks-against-toc.cs`](./validate-pdf-bookmarks-against-toc.cs) -- Validate pdf bookmarks against toc + +## See Also + +- [`AGENTS.md`](./AGENTS.md) -- category-specific anti-patterns, API surface, and conventions for AI coding agents +- [`../AGENTS.md`](../AGENTS.md) -- repository-wide agent guide +- [`../README.md`](../README.md) -- full category index and project overview +- [Aspose.PDF for .NET docs](https://docs.aspose.com/pdf/net/) + +> Each `.cs` file is a standalone, build-validated console example. Drop into a fresh `dotnet new console` project, add the `Aspose.PDF` NuGet (version above), and run. diff --git a/facades-bookmarks/index.json b/facades-bookmarks/index.json index 2a5781163..dd6acf706 100644 --- a/facades-bookmarks/index.json +++ b/facades-bookmarks/index.json @@ -1,17 +1,17 @@ { "category": "facades-bookmarks", "nuget_version": "26.8.0", - "last_updated": "2026-08-20T07:31:29Z", + "last_updated": "2026-09-10T12:45:08Z", "examples": { - "create-hierarchical-pdf-bookmarks": { - "title": "Create Hierarchical Bookmarks in a PDF", - "filename": "create-hierarchical-pdf-bookmarks.cs", - "description": "Demonstrates how to bind an existing PDF with PdfBookmarkEditor and add a multi‑level bookmark hierarchy (chapters and sections) before saving the document.", + "add-colored-bookmarks-to-pdf": { + "title": "Add Colored Bookmarks to PDF Sections", + "filename": "add-colored-bookmarks-to-pdf.cs", + "description": "Shows how to create PDF bookmarks and set their title color (red for warnings, green for informational parts) using Aspose.Pdf.Facades.", "tags": [ - "pdf", "bookmarks", - "hierarchy", - "aspose", + "color", + "pdf", + "Aspose.Pdf", "facade" ], "apis_used": [ @@ -19,122 +19,118 @@ "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", "Aspose.Pdf.Facades.PdfBookmarkEditor.CreateBookmarks", "Aspose.Pdf.Facades.PdfBookmarkEditor.Save", - "Aspose.Pdf.Facades.PdfBookmarkEditor.Close", - "Aspose.Pdf.Facades.Bookmark", - "Aspose.Pdf.Facades.Bookmarks" + "Aspose.Pdf.Facades.Bookmark" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:31:29Z", "status": "verified" }, - "merge-pdf-bookmarks": { - "title": "Merge Bookmarks from One PDF into Another", - "filename": "merge-pdf-bookmarks.cs", - "description": "Shows how to export bookmarks from a source PDF to an XML stream and import them into a target PDF, preserving their order, using Aspose.Pdf's PdfBookmarkEditor.", + "add-external-url-bookmarks-to-pdf": { + "title": "Add External URL Bookmarks to PDF", + "filename": "add-external-url-bookmarks-to-pdf.cs", + "description": "Shows how to create PDF bookmarks that open external web addresses using Aspose.Pdf Facades.", "tags": [ "bookmarks", + "uri", "pdf", - "merge", - "import", - "export" + "facades", + "external-links" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfBookmarkEditor", - "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", - "Aspose.Pdf.Facades.PdfBookmarkEditor.ExportBookmarksToXML", - "Aspose.Pdf.Facades.PdfBookmarkEditor.ImportBookmarksWithXML", - "Aspose.Pdf.Facades.PdfBookmarkEditor.Save", - "Aspose.Pdf.Document" + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.CreateBookmarksAction", + "Aspose.Pdf.Facades.PdfContentEditor.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:31:29Z", "status": "verified" }, - "export-pdf-bookmarks-to-csv": { - "title": "Export PDF Bookmarks to CSV", - "filename": "export-pdf-bookmarks-to-csv.cs", - "description": "Opens a PDF, extracts all bookmarks recursively using PdfBookmarkEditor, and writes each bookmark's title, destination, and hierarchy level to a CSV file.", + "add-image-bookmarks-to-pdf": { + "title": "Add Image Bookmarks to PDF", + "filename": "add-image-bookmarks-to-pdf.cs", + "description": "Scans a PDF for images, records each image's page number, and creates a bookmark that links directly to the page containing the image using Aspose.Pdf.", "tags": [ - "bookmarks", - "csv", - "export", "pdf", - "aspose-pdf" + "bookmarks", + "images", + "aspose-pdf", + "facades" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.XImage", "Aspose.Pdf.Facades.PdfBookmarkEditor", - "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", - "Aspose.Pdf.Facades.PdfBookmarkEditor.ExtractBookmarks", - "Aspose.Pdf.Bookmarks", - "Aspose.Pdf.Bookmark" + "Aspose.Pdf.Facades.PdfBookmarkEditor.CreateBookmarkOfPage" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:31:29Z", "status": "verified" }, - "update-bookmark-destination-to-page-10": { - "title": "Update Bookmark Destination to Page 10", - "filename": "update-bookmark-destination-to-page-10.cs", - "description": "Shows how to locate a PDF bookmark by its title and change its destination to page 10 using Aspose.Pdf's PdfBookmarkEditor facade.", + "add-javascript-bookmark-to-pdf": { + "title": "Add JavaScript Bookmark to PDF", + "filename": "add-javascript-bookmark-to-pdf.cs", + "description": "Shows how to create a PDF bookmark that runs JavaScript code when clicked using the Aspose.Pdf Facade API.", "tags": [ - "bookmarks", + "bookmark", + "javascript", "pdf", - "Aspose.Pdf", - "update", - "page-number" + "facade", + "aspose-pdf" ], "apis_used": [ - "PdfBookmarkEditor", - "PdfBookmarkEditor.BindPdf", - "PdfBookmarkEditor.ExtractBookmarks", - "PdfBookmarkEditor.DeleteBookmarks", - "PdfBookmarkEditor.CreateBookmarkOfPage", - "PdfBookmarkEditor.Save", - "Bookmark.PageNumber" + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.CreateBookmarksAction", + "Aspose.Pdf.Facades.PdfContentEditor.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:31:29Z", "status": "verified" }, - "delete-all-bookmarks-from-pdf": { - "title": "Delete All Bookmarks from PDF", - "filename": "delete-all-bookmarks-from-pdf.cs", - "description": "Demonstrates how to remove every bookmark from a PDF document using Aspose.Pdf's PdfBookmarkEditor facade and save the cleaned file.", + "add-subbookmarks-to-pdf-chapter": { + "title": "Add Subbookmarks to a PDF Chapter", + "filename": "add-subbookmarks-to-pdf-chapter.cs", + "description": "Shows how to create a parent bookmark and attach child bookmarks to represent sections within a chapter of a PDF using Aspose.Pdf.Facades.", "tags": [ - "pdf", "bookmarks", - "delete", - "aspose", - "facade" + "pdf", + "hierarchy", + "Aspose.Pdf", + "C#" ], "apis_used": [ - "PdfBookmarkEditor", - "PdfBookmarkEditor.BindPdf", - "PdfBookmarkEditor.DeleteBookmarks", - "PdfBookmarkEditor.Save" + "Aspose.Pdf.Facades.PdfBookmarkEditor", + "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", + "Aspose.Pdf.Facades.PdfBookmarkEditor.CreateBookmarks", + "Aspose.Pdf.Facades.PdfBookmarkEditor.Save", + "Aspose.Pdf.Facades.PdfBookmarkEditor.Close", + "Aspose.Pdf.Facades.Bookmark", + "Aspose.Pdf.Facades.Bookmarks" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:31:29Z", "status": "verified" }, - "delete-bookmark-from-pdf": { - "title": "Delete Bookmark from PDF Using PdfBookmarkEditor", - "filename": "delete-bookmark-from-pdf.cs", - "description": "Demonstrates binding a PDF to PdfBookmarkEditor, listing existing bookmarks, deleting a specific bookmark by title, verifying the removal, and saving the updated document.", + "add-toc-bookmark-to-pdfs-batch": { + "title": "Add Table of Contents Bookmark to PDFs in Batch", + "filename": "add-toc-bookmark-to-pdfs-batch.cs", + "description": "Shows how to process all PDF files in a directory and add a top‑level \"Table of Contents\" bookmark to each document using Aspose.Pdf.Facades.", "tags": [ - "bookmarks", - "delete", "pdf", + "bookmark", + "batch", "aspose", - "facade" + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfBookmarkEditor", "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", - "Aspose.Pdf.Facades.PdfBookmarkEditor.ExtractBookmarks", - "Aspose.Pdf.Facades.PdfBookmarkEditor.DeleteBookmarks", + "Aspose.Pdf.Facades.PdfBookmarkEditor.CreateBookmarkOfPage", "Aspose.Pdf.Facades.PdfBookmarkEditor.Save", - "Aspose.Pdf.Facades.PdfBookmarkEditor.Close" + "Aspose.Pdf.Facades.PdfBookmarkEditor.Dispose" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:31:29Z", @@ -162,207 +158,250 @@ "generated_at": "2026-08-20T07:31:29Z", "status": "verified" }, - "add-subbookmarks-to-pdf-chapter": { - "title": "Add Subbookmarks to a PDF Chapter", - "filename": "add-subbookmarks-to-pdf-chapter.cs", - "description": "Shows how to create a parent bookmark and attach child bookmarks to represent sections within a chapter of a PDF using Aspose.Pdf.Facades.", + "add-top-level-blue-bookmark": { + "title": "Add Top Level Blue Bookmark", + "filename": "add-top-level-blue-bookmark.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "adjust-pdf-bookmarks-after-inserting-pages": { + "title": "Adjust PDF Bookmarks After Inserting Pages", + "filename": "adjust-pdf-bookmarks-after-inserting-pages.cs", + "description": "Shows how to extract existing bookmarks, insert blank pages at the beginning of a PDF, and recreate the bookmarks with corrected page numbers using Aspose.Pdf.Facades.", "tags": [ "bookmarks", + "page insertion", "pdf", - "hierarchy", "Aspose.Pdf", - "C#" + "facades" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfBookmarkEditor", - "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", - "Aspose.Pdf.Facades.PdfBookmarkEditor.CreateBookmarks", + "Aspose.Pdf.Facades.PdfBookmarkEditor.ExtractBookmarks", + "Aspose.Pdf.Facades.PdfBookmarkEditor.CreateBookmarkOfPage", + "Aspose.Pdf.Facades.PdfBookmarkEditor.DeleteBookmarks", "Aspose.Pdf.Facades.PdfBookmarkEditor.Save", - "Aspose.Pdf.Facades.PdfBookmarkEditor.Close", - "Aspose.Pdf.Facades.Bookmark", - "Aspose.Pdf.Facades.Bookmarks" + "Aspose.Pdf.PageCollection.Insert" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:31:29Z", "status": "verified" }, - "extract-pdf-bookmarks-to-json": { - "title": "Extract PDF Bookmarks to JSON", - "filename": "extract-pdf-bookmarks-to-json.cs", - "description": "Shows how to use Aspose.Pdf.Facades.PdfBookmarkEditor to extract PDF bookmarks, build a hierarchical POCO model, and serialize it as indented JSON.", + "batch-add-reviewed-bookmark-to-pdfs": { + "title": "Batch Add \"Reviewed\" Bookmark to PDFs", + "filename": "batch-add-reviewed-bookmark-to-pdfs.cs", + "description": "Shows how to loop through PDF files in a directory, use PdfBookmarkEditor to create a \"Reviewed\" bookmark on the last page of each document, and save the updated PDFs.", "tags": [ - "pdf", "bookmarks", - "json", - "aspose", - "csharp" + "batch", + "pdf", + "aspose-pdf", + "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfBookmarkEditor", - "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", - "Aspose.Pdf.Facades.PdfBookmarkEditor.ExtractBookmarks", - "Aspose.Pdf.Facades.Bookmarks", - "Aspose.Pdf.Facades.Bookmark", - "Aspose.Pdf.Facades.Bookmark.ChildItems" + "PdfBookmarkEditor", + "PdfBookmarkEditor.BindPdf", + "PdfBookmarkEditor.CreateBookmarkOfPage", + "PdfBookmarkEditor.Save", + "PdfBookmarkEditor.Close", + "PdfBookmarkEditor.Document.Pages.Count" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:31:29Z", "status": "verified" }, - "export-pdf-bookmarks-to-xml": { - "title": "Export PDF Bookmarks to XML", - "filename": "export-pdf-bookmarks-to-xml.cs", - "description": "Demonstrates how to bind a PDF with Aspose.Pdf.Facades.PdfBookmarkEditor and export its complete bookmark hierarchy to an XML file.", + "batch-add-toc-bookmark-to-pdfs": { + "title": "Batch Add Toc Bookmark To Pdfs", + "filename": "batch-add-toc-bookmark-to-pdfs.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "batch-delete-bookmarks-from-encrypted-pdfs": { + "title": "Batch Delete Bookmarks from Encrypted PDFs", + "filename": "batch-delete-bookmarks-from-encrypted-pdfs.cs", + "description": "Shows how to open password‑protected PDF files, remove all bookmarks using PdfBookmarkEditor, and save the cleaned documents.", "tags": [ "bookmarks", - "export", - "xml", - "pdf", - "facade" + "encrypted-pdf", + "batch-processing", + "Aspose.Pdf", + "pdf-editing" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfBookmarkEditor", - "PdfBookmarkEditor.BindPdf", - "PdfBookmarkEditor.ExportBookmarksToXML", - "PdfBookmarkEditor.Close" + "Aspose.Pdf.Facades.PdfBookmarkEditor.DeleteBookmarks", + "Aspose.Pdf.Facades.PdfBookmarkEditor.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:31:29Z", "status": "verified" }, - "import-bookmarks-from-json": { - "title": "Import Bookmarks from JSON into a PDF", - "filename": "import-bookmarks-from-json.cs", - "description": "Demonstrates how to read a JSON file containing bookmark definitions, map them to Aspose.Pdf.Facades.Bookmark objects (including nested children), and add them to a PDF using PdfBookmarkEditor.", + "collapse-specific-pdf-bookmarks": { + "title": "Collapse Specific PDF Bookmarks Using Aspose.Pdf", + "filename": "collapse-specific-pdf-bookmarks.cs", + "description": "Demonstrates how to set selected PDF bookmarks to a collapsed (closed) state by extracting, modifying, and re‑creating the bookmark hierarchy with Aspose.Pdf.", "tags": [ "bookmarks", - "json", - "pdf", - "import", - "facade" + "collapse", + "outline", + "Aspose.Pdf", + "C#" ], "apis_used": [ "Aspose.Pdf.Facades.PdfBookmarkEditor", - "Aspose.Pdf.Facades.Bookmark", - "Aspose.Pdf.Facades.Bookmarks", - "PdfBookmarkEditor.BindPdf", - "PdfBookmarkEditor.CreateBookmarks", - "PdfBookmarkEditor.Save" + "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", + "Aspose.Pdf.Facades.PdfBookmarkEditor.ExtractBookmarks", + "Aspose.Pdf.Facades.PdfBookmarkEditor.DeleteBookmarks", + "Aspose.Pdf.Facades.PdfBookmarkEditor.CreateBookmarks", + "Aspose.Pdf.Facades.PdfBookmarkEditor.Save", + "Aspose.Pdf.Bookmarks", + "Aspose.Pdf.Bookmark" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:31:29Z", "status": "verified" }, - "add-toc-bookmark-to-pdfs-batch": { - "title": "Add Table of Contents Bookmark to PDFs in Batch", - "filename": "add-toc-bookmark-to-pdfs-batch.cs", - "description": "Shows how to process all PDF files in a directory and add a top‑level \"Table of Contents\" bookmark to each document using Aspose.Pdf.Facades.", + "convert-bookmark-titles-to-title-case": { + "title": "Convert PDF Bookmark Titles to Title Case with Proper Noun Preservation", + "filename": "convert-bookmark-titles-to-title-case.cs", + "description": "Demonstrates how to read PDF bookmarks, convert each title to title case while keeping predefined proper nouns unchanged, and save the updated PDF using Aspose.Pdf.", "tags": [ - "pdf", - "bookmark", - "batch", - "aspose", - "csharp" + "bookmarks", + "title-case", + "proper-nouns", + "Aspose.Pdf", + "PDF" ], "apis_used": [ "Aspose.Pdf.Facades.PdfBookmarkEditor", "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", - "Aspose.Pdf.Facades.PdfBookmarkEditor.CreateBookmarkOfPage", + "Aspose.Pdf.Facades.PdfBookmarkEditor.ExtractBookmarks", + "Aspose.Pdf.Facades.PdfBookmarkEditor.ModifyBookmarks", "Aspose.Pdf.Facades.PdfBookmarkEditor.Save", - "Aspose.Pdf.Facades.PdfBookmarkEditor.Dispose" + "Aspose.Pdf.Document", + "Aspose.Pdf.OutlineItemCollection" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:31:29Z", "status": "verified" }, - "validate-pdf-bookmark-count": { - "title": "Validate PDF Bookmark Count After Adding Bookmarks", - "filename": "validate-pdf-bookmark-count.cs", - "description": "Demonstrates how to add a bookmark for each page using PdfBookmarkEditor, save the PDF, then extract and verify the total number of bookmarks.", + "create-bookmark-to-named-destination": { + "title": "Create Bookmark to Named Destination in PDF", + "filename": "create-bookmark-to-named-destination.cs", + "description": "Shows how to add a bookmark that points to an existing named destination within a PDF using Aspose.Pdf.Facades.", "tags": [ - "bookmarks", - "validation", + "bookmark", + "named-destination", "pdf", "Aspose.Pdf", - "facade" + "facades" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfBookmarkEditor", - "PdfBookmarkEditor.BindPdf", - "PdfBookmarkEditor.CreateBookmarks", - "PdfBookmarkEditor.Save", - "PdfBookmarkEditor.ExtractBookmarks", - "Aspose.Pdf.Facades.Bookmarks.Count" + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.CreateBookmarksAction", + "Aspose.Pdf.Facades.PdfContentEditor.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:31:29Z", "status": "verified" }, - "update-pdf-bookmark-title": { - "title": "Update PDF Bookmark Title Using MemoryStream", - "filename": "update-pdf-bookmark-title.cs", - "description": "Shows how to bind a PDF from a byte array with MemoryStream, modify a bookmark title using PdfBookmarkEditor, and return the edited PDF as a byte array.", + "create-hierarchical-pdf-bookmarks": { + "title": "Create Hierarchical Bookmarks in a PDF", + "filename": "create-hierarchical-pdf-bookmarks.cs", + "description": "Demonstrates how to bind an existing PDF with PdfBookmarkEditor and add a multi‑level bookmark hierarchy (chapters and sections) before saving the document.", "tags": [ "pdf", - "bookmark", - "memorystream", - "aspose.pdf", - "c#" + "bookmarks", + "hierarchy", + "aspose", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfBookmarkEditor", "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", - "Aspose.Pdf.Facades.PdfBookmarkEditor.ModifyBookmarks", - "Aspose.Pdf.Facades.PdfBookmarkEditor.Save" + "Aspose.Pdf.Facades.PdfBookmarkEditor.CreateBookmarks", + "Aspose.Pdf.Facades.PdfBookmarkEditor.Save", + "Aspose.Pdf.Facades.PdfBookmarkEditor.Close", + "Aspose.Pdf.Facades.Bookmark", + "Aspose.Pdf.Facades.Bookmarks" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:31:29Z", "status": "verified" }, - "add-external-url-bookmarks-to-pdf": { - "title": "Add External URL Bookmarks to PDF", - "filename": "add-external-url-bookmarks-to-pdf.cs", - "description": "Shows how to create PDF bookmarks that open external web addresses using Aspose.Pdf Facades.", + "create-image-bookmarks-in-pdf": { + "title": "Create Image Bookmarks In Pdf", + "filename": "create-image-bookmarks-in-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-javascript-bookmark": { + "title": "Create Javascript Bookmark", + "filename": "create-javascript-bookmark.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "delete-all-bookmarks-from-pdf": { + "title": "Delete All Bookmarks from PDF", + "filename": "delete-all-bookmarks-from-pdf.cs", + "description": "Demonstrates how to remove every bookmark from a PDF document using Aspose.Pdf's PdfBookmarkEditor facade and save the cleaned file.", "tags": [ - "bookmarks", - "uri", "pdf", - "facades", - "external-links" + "bookmarks", + "delete", + "aspose", + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.CreateBookmarksAction", - "Aspose.Pdf.Facades.PdfContentEditor.Save" + "PdfBookmarkEditor", + "PdfBookmarkEditor.BindPdf", + "PdfBookmarkEditor.DeleteBookmarks", + "PdfBookmarkEditor.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:31:29Z", "status": "verified" }, - "convert-bookmark-titles-to-title-case": { - "title": "Convert PDF Bookmark Titles to Title Case with Proper Noun Preservation", - "filename": "convert-bookmark-titles-to-title-case.cs", - "description": "Demonstrates how to read PDF bookmarks, convert each title to title case while keeping predefined proper nouns unchanged, and save the updated PDF using Aspose.Pdf.", + "delete-bookmark-from-pdf": { + "title": "Delete Bookmark from PDF Using PdfBookmarkEditor", + "filename": "delete-bookmark-from-pdf.cs", + "description": "Demonstrates binding a PDF to PdfBookmarkEditor, listing existing bookmarks, deleting a specific bookmark by title, verifying the removal, and saving the updated document.", "tags": [ "bookmarks", - "title-case", - "proper-nouns", - "Aspose.Pdf", - "PDF" + "delete", + "pdf", + "aspose", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfBookmarkEditor", "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", "Aspose.Pdf.Facades.PdfBookmarkEditor.ExtractBookmarks", - "Aspose.Pdf.Facades.PdfBookmarkEditor.ModifyBookmarks", + "Aspose.Pdf.Facades.PdfBookmarkEditor.DeleteBookmarks", "Aspose.Pdf.Facades.PdfBookmarkEditor.Save", - "Aspose.Pdf.Document", - "Aspose.Pdf.OutlineItemCollection" + "Aspose.Pdf.Facades.PdfBookmarkEditor.Close" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:31:29Z", "status": "verified" }, @@ -388,24 +427,31 @@ "generated_at": "2026-08-20T07:31:29Z", "status": "verified" }, - "collapse-specific-pdf-bookmarks": { - "title": "Collapse Specific PDF Bookmarks Using Aspose.Pdf", - "filename": "collapse-specific-pdf-bookmarks.cs", - "description": "Demonstrates how to set selected PDF bookmarks to a collapsed (closed) state by extracting, modifying, and re‑creating the bookmark hierarchy with Aspose.Pdf.", + "delete-pdf-bookmark-verify": { + "title": "Delete Pdf Bookmark Verify", + "filename": "delete-pdf-bookmark-verify.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "export-pdf-bookmarks-to-csv": { + "title": "Export PDF Bookmarks to CSV", + "filename": "export-pdf-bookmarks-to-csv.cs", + "description": "Opens a PDF, extracts all bookmarks recursively using PdfBookmarkEditor, and writes each bookmark's title, destination, and hierarchy level to a CSV file.", "tags": [ "bookmarks", - "collapse", - "outline", - "Aspose.Pdf", - "C#" + "csv", + "export", + "pdf", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfBookmarkEditor", "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", "Aspose.Pdf.Facades.PdfBookmarkEditor.ExtractBookmarks", - "Aspose.Pdf.Facades.PdfBookmarkEditor.DeleteBookmarks", - "Aspose.Pdf.Facades.PdfBookmarkEditor.CreateBookmarks", - "Aspose.Pdf.Facades.PdfBookmarkEditor.Save", "Aspose.Pdf.Bookmarks", "Aspose.Pdf.Bookmark" ], @@ -413,30 +459,73 @@ "generated_at": "2026-08-20T07:31:29Z", "status": "verified" }, - "adjust-pdf-bookmarks-after-inserting-pages": { - "title": "Adjust PDF Bookmarks After Inserting Pages", - "filename": "adjust-pdf-bookmarks-after-inserting-pages.cs", - "description": "Shows how to extract existing bookmarks, insert blank pages at the beginning of a PDF, and recreate the bookmarks with corrected page numbers using Aspose.Pdf.Facades.", + "export-pdf-bookmarks-to-excel": { + "title": "Export PDF Bookmarks to Excel", + "filename": "export-pdf-bookmarks-to-excel.cs", + "description": "Shows how to extract all bookmarks from a PDF using PdfBookmarkEditor, place them in a table, and save the data as an Excel workbook via ExcelSaveOptions.", "tags": [ "bookmarks", - "page insertion", + "excel", "pdf", - "Aspose.Pdf", - "facades" + "export", + "aspose-pdf" ], "apis_used": [ + "Aspose.Pdf.Facades.PdfBookmarkEditor", + "Aspose.Pdf.Facades.ExcelSaveOptions", "Aspose.Pdf.Document", + "Aspose.Pdf.Table", + "Aspose.Pdf.Row", + "Aspose.Pdf.Bookmark", + "Aspose.Pdf.Bookmarks" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:31:29Z", + "status": "verified" + }, + "export-pdf-bookmarks-to-json": { + "title": "Export PDF Bookmark Hierarchy to JSON", + "filename": "export-pdf-bookmarks-to-json.cs", + "description": "Shows how to extract the bookmark tree from a PDF using PdfBookmarkEditor and write each bookmark's title, level, and page number to a JSON file.", + "tags": [ + "bookmarks", + "json", + "export", + "pdf", + "facade" + ], + "apis_used": [ "Aspose.Pdf.Facades.PdfBookmarkEditor", + "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", "Aspose.Pdf.Facades.PdfBookmarkEditor.ExtractBookmarks", - "Aspose.Pdf.Facades.PdfBookmarkEditor.CreateBookmarkOfPage", - "Aspose.Pdf.Facades.PdfBookmarkEditor.DeleteBookmarks", - "Aspose.Pdf.Facades.PdfBookmarkEditor.Save", - "Aspose.Pdf.PageCollection.Insert" + "Aspose.Pdf.Facades.Bookmarks", + "Aspose.Pdf.Facades.Bookmark", + "Aspose.Pdf.Facades.Bookmark.ChildItem" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:31:29Z", "status": "verified" }, + "export-pdf-bookmarks-to-json__v2": { + "title": "Export Pdf Bookmarks To Json__V2", + "filename": "export-pdf-bookmarks-to-json__v2.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "export-pdf-bookmarks-to-text-outline": { + "title": "Export Pdf Bookmarks To Text Outline", + "filename": "export-pdf-bookmarks-to-text-outline.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "export-pdf-bookmarks-to-text": { "title": "Export PDF Bookmarks to Text Outline", "filename": "export-pdf-bookmarks-to-text.cs", @@ -460,339 +549,380 @@ "generated_at": "2026-08-20T07:31:29Z", "status": "verified" }, - "import-ofd-bookmarks-to-pdf": { - "title": "Import OFD File and Add Bookmarks to PDF", - "filename": "import-ofd-bookmarks-to-pdf.cs", - "description": "Demonstrates loading an OFD document, converting each page into a PDF bookmark, and saving the result as a PDF using Aspose.Pdf.", + "export-pdf-bookmarks-to-xml": { + "title": "Export PDF Bookmarks to XML", + "filename": "export-pdf-bookmarks-to-xml.cs", + "description": "Demonstrates how to bind a PDF with Aspose.Pdf.Facades.PdfBookmarkEditor and export its complete bookmark hierarchy to an XML file.", "tags": [ - "ofd", - "pdf", "bookmarks", - "conversion", - "Aspose.Pdf" + "export", + "xml", + "pdf", + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.OfdLoadOptions", "Aspose.Pdf.Facades.PdfBookmarkEditor", - "Aspose.Pdf.Facades.Bookmark", - "PdfBookmarkEditor.CreateBookmarks", - "PdfBookmarkEditor.Save" + "PdfBookmarkEditor.BindPdf", + "PdfBookmarkEditor.ExportBookmarksToXML", + "PdfBookmarkEditor.Close" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:31:29Z", "status": "verified" }, - "add-javascript-bookmark-to-pdf": { - "title": "Add JavaScript Bookmark to PDF", - "filename": "add-javascript-bookmark-to-pdf.cs", - "description": "Shows how to create a PDF bookmark that runs JavaScript code when clicked using the Aspose.Pdf Facade API.", + "extract-pdf-bookmarks-to-json": { + "title": "Extract PDF Bookmarks to JSON", + "filename": "extract-pdf-bookmarks-to-json.cs", + "description": "Shows how to use Aspose.Pdf.Facades.PdfBookmarkEditor to extract PDF bookmarks, build a hierarchical POCO model, and serialize it as indented JSON.", "tags": [ - "bookmark", - "javascript", "pdf", - "facade", - "aspose-pdf" + "bookmarks", + "json", + "aspose", + "csharp" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.CreateBookmarksAction", - "Aspose.Pdf.Facades.PdfContentEditor.Save" + "Aspose.Pdf.Facades.PdfBookmarkEditor", + "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", + "Aspose.Pdf.Facades.PdfBookmarkEditor.ExtractBookmarks", + "Aspose.Pdf.Facades.Bookmarks", + "Aspose.Pdf.Facades.Bookmark", + "Aspose.Pdf.Facades.Bookmark.ChildItems" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:31:29Z", "status": "verified" }, - "batch-delete-bookmarks-from-encrypted-pdfs": { - "title": "Batch Delete Bookmarks from Encrypted PDFs", - "filename": "batch-delete-bookmarks-from-encrypted-pdfs.cs", - "description": "Shows how to open password‑protected PDF files, remove all bookmarks using PdfBookmarkEditor, and save the cleaned documents.", + "import-bookmarks-from-csv": { + "title": "Import Bookmarks from CSV into PDF", + "filename": "import-bookmarks-from-csv.cs", + "description": "Shows how to read a CSV file, build a hierarchical bookmark tree, and add the bookmarks to a PDF using Aspose.Pdf.Facades.", "tags": [ "bookmarks", - "encrypted-pdf", - "batch-processing", - "Aspose.Pdf", - "pdf-editing" - ], + "csv", + "pdf", + "import", + "hierarchy" + ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfBookmarkEditor", - "Aspose.Pdf.Facades.PdfBookmarkEditor.DeleteBookmarks", - "Aspose.Pdf.Facades.PdfBookmarkEditor.Save" + "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", + "Aspose.Pdf.Facades.PdfBookmarkEditor.CreateBookmarks", + "Aspose.Pdf.Facades.PdfBookmarkEditor.Save", + "Aspose.Pdf.Facades.Bookmark", + "Aspose.Pdf.Facades.Bookmarks" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:31:29Z", "status": "verified" }, - "rename-pdf-bookmarks-using-translation-dictionary": { - "title": "Rename PDF Bookmarks Using a Translation Dictionary", - "filename": "rename-pdf-bookmarks-using-translation-dictionary.cs", - "description": "Demonstrates loading a PDF, renaming its bookmarks according to a translation dictionary, and saving the updated file with Aspose.Pdf.Facades.", + "import-bookmarks-from-database": { + "title": "Import Bookmarks from Database into PDF", + "filename": "import-bookmarks-from-database.cs", + "description": "Shows how to read bookmark records (title and page number) from a simulated database query and add them to an existing PDF using Aspose.Pdf's bookmark editor.", "tags": [ "bookmarks", - "rename", - "translation", "pdf", - "facade" + "database", + "Aspose.Pdf", + "import" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfBookmarkEditor", - "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", - "Aspose.Pdf.Facades.PdfBookmarkEditor.ModifyBookmarks", - "Aspose.Pdf.Facades.PdfBookmarkEditor.Save" + "PdfBookmarkEditor", + "PdfBookmarkEditor.BindPdf", + "PdfBookmarkEditor.CreateBookmarks", + "PdfBookmarkEditor.Save", + "Bookmark", + "Document", + "Document.Pages.Add", + "Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:31:29Z", "status": "verified" }, - "validate-pdf-bookmarks-against-toc": { - "title": "Validate PDF Bookmarks Against Table of Contents", - "filename": "validate-pdf-bookmarks-against-toc.cs", - "description": "Demonstrates extracting PDF bookmarks with PdfBookmarkEditor and comparing their page numbers to an expected table of contents for consistency checks.", + "import-bookmarks-from-json": { + "title": "Import Bookmarks from JSON into a PDF", + "filename": "import-bookmarks-from-json.cs", + "description": "Demonstrates how to read a JSON file containing bookmark definitions, map them to Aspose.Pdf.Facades.Bookmark objects (including nested children), and add them to a PDF using PdfBookmarkEditor.", "tags": [ "bookmarks", - "toc", - "validation", + "json", "pdf", - "aspose" + "import", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfBookmarkEditor", - "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", - "Aspose.Pdf.Facades.PdfBookmarkEditor.ExtractBookmarks", + "Aspose.Pdf.Facades.Bookmark", "Aspose.Pdf.Facades.Bookmarks", - "Aspose.Pdf.Facades.Bookmark" + "PdfBookmarkEditor.BindPdf", + "PdfBookmarkEditor.CreateBookmarks", + "PdfBookmarkEditor.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:31:29Z", "status": "verified" }, - "add-image-bookmarks-to-pdf": { - "title": "Add Image Bookmarks to PDF", - "filename": "add-image-bookmarks-to-pdf.cs", - "description": "Scans a PDF for images, records each image's page number, and creates a bookmark that links directly to the page containing the image using Aspose.Pdf.", + "import-ofd-bookmarks-into-pdf": { + "title": "Import Ofd Bookmarks Into Pdf", + "filename": "import-ofd-bookmarks-into-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "import-ofd-bookmarks-to-pdf": { + "title": "Import OFD File and Add Bookmarks to PDF", + "filename": "import-ofd-bookmarks-to-pdf.cs", + "description": "Demonstrates loading an OFD document, converting each page into a PDF bookmark, and saving the result as a PDF using Aspose.Pdf.", "tags": [ + "ofd", "pdf", "bookmarks", - "images", - "aspose-pdf", - "facades" + "conversion", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.XImage", + "Aspose.Pdf.OfdLoadOptions", "Aspose.Pdf.Facades.PdfBookmarkEditor", - "Aspose.Pdf.Facades.PdfBookmarkEditor.CreateBookmarkOfPage" + "Aspose.Pdf.Facades.Bookmark", + "PdfBookmarkEditor.CreateBookmarks", + "PdfBookmarkEditor.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:31:29Z", "status": "verified" }, - "set-bookmark-zoom-level-150-percent": { - "title": "Set Bookmark Zoom Level to 150% in PDF", - "filename": "set-bookmark-zoom-level-150-percent.cs", - "description": "Demonstrates how to load a PDF, traverse its bookmark tree, and set each bookmark's zoom factor to 150% so that pages open at the desired magnification from the outline.", - "tags": [ - "bookmarks", - "zoom", - "pdf", - "Aspose.Pdf", - "outline" - ], - "apis_used": [ - "PdfBookmarkEditor", - "PdfBookmarkEditor.BindPdf", - "PdfBookmarkEditor.ExtractBookmarks", - "PdfBookmarkEditor.Save", - "Bookmark.PageDisplay_Zoom", - "Bookmark.ChildItems" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:31:29Z", + "merge-bookmarks-into-pdf": { + "title": "Merge Bookmarks Into Pdf", + "filename": "merge-bookmarks-into-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "export-pdf-bookmarks-to-excel": { - "title": "Export PDF Bookmarks to Excel", - "filename": "export-pdf-bookmarks-to-excel.cs", - "description": "Shows how to extract all bookmarks from a PDF using PdfBookmarkEditor, place them in a table, and save the data as an Excel workbook via ExcelSaveOptions.", + "merge-pdf-bookmarks": { + "title": "Merge Bookmarks from One PDF into Another", + "filename": "merge-pdf-bookmarks.cs", + "description": "Shows how to export bookmarks from a source PDF to an XML stream and import them into a target PDF, preserving their order, using Aspose.Pdf's PdfBookmarkEditor.", "tags": [ "bookmarks", - "excel", "pdf", - "export", - "aspose-pdf" + "merge", + "import", + "export" ], "apis_used": [ "Aspose.Pdf.Facades.PdfBookmarkEditor", - "Aspose.Pdf.Facades.ExcelSaveOptions", - "Aspose.Pdf.Document", - "Aspose.Pdf.Table", - "Aspose.Pdf.Row", - "Aspose.Pdf.Bookmark", - "Aspose.Pdf.Bookmarks" + "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", + "Aspose.Pdf.Facades.PdfBookmarkEditor.ExportBookmarksToXML", + "Aspose.Pdf.Facades.PdfBookmarkEditor.ImportBookmarksWithXML", + "Aspose.Pdf.Facades.PdfBookmarkEditor.Save", + "Aspose.Pdf.Document" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:31:29Z", "status": "verified" }, - "import-bookmarks-from-csv": { - "title": "Import Bookmarks from CSV into PDF", - "filename": "import-bookmarks-from-csv.cs", - "description": "Shows how to read a CSV file, build a hierarchical bookmark tree, and add the bookmarks to a PDF using Aspose.Pdf.Facades.", + "modify-pdf-bookmarks-using-memorystream": { + "title": "Modify Pdf Bookmarks Using Memorystream", + "filename": "modify-pdf-bookmarks-using-memorystream.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "remove-duplicate-bookmarks": { + "title": "Remove Duplicate Bookmarks from PDF", + "filename": "remove-duplicate-bookmarks.cs", + "description": "Shows how to extract all bookmarks, filter out duplicates based on title and page number, delete the existing outline, and recreate only the unique bookmarks using Aspose.Pdf.", "tags": [ "bookmarks", - "csv", + "duplicate", "pdf", - "import", - "hierarchy" + "Aspose.Pdf", + "outline" ], "apis_used": [ "Aspose.Pdf.Facades.PdfBookmarkEditor", "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", - "Aspose.Pdf.Facades.PdfBookmarkEditor.CreateBookmarks", - "Aspose.Pdf.Facades.PdfBookmarkEditor.Save", - "Aspose.Pdf.Facades.Bookmark", - "Aspose.Pdf.Facades.Bookmarks" + "Aspose.Pdf.Facades.PdfBookmarkEditor.ExtractBookmarks", + "Aspose.Pdf.Facades.PdfBookmarkEditor.DeleteBookmarks", + "Aspose.Pdf.Facades.PdfBookmarkEditor.CreateBookmarkOfPage", + "Aspose.Pdf.Facades.PdfBookmarkEditor.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:31:29Z", "status": "verified" }, - "create-bookmark-to-named-destination": { - "title": "Create Bookmark to Named Destination in PDF", - "filename": "create-bookmark-to-named-destination.cs", - "description": "Shows how to add a bookmark that points to an existing named destination within a PDF using Aspose.Pdf.Facades.", + "rename-pdf-bookmarks-using-translation-dictionary": { + "title": "Rename PDF Bookmarks Using a Translation Dictionary", + "filename": "rename-pdf-bookmarks-using-translation-dictionary.cs", + "description": "Demonstrates loading a PDF, renaming its bookmarks according to a translation dictionary, and saving the updated file with Aspose.Pdf.Facades.", "tags": [ - "bookmark", - "named-destination", + "bookmarks", + "rename", + "translation", "pdf", - "Aspose.Pdf", - "facades" + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.CreateBookmarksAction", - "Aspose.Pdf.Facades.PdfContentEditor.Save" + "Aspose.Pdf.Facades.PdfBookmarkEditor", + "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", + "Aspose.Pdf.Facades.PdfBookmarkEditor.ModifyBookmarks", + "Aspose.Pdf.Facades.PdfBookmarkEditor.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:31:29Z", "status": "verified" }, - "remove-duplicate-bookmarks": { - "title": "Remove Duplicate Bookmarks from PDF", - "filename": "remove-duplicate-bookmarks.cs", - "description": "Shows how to extract all bookmarks, filter out duplicates based on title and page number, delete the existing outline, and recreate only the unique bookmarks using Aspose.Pdf.", + "set-bookmark-zoom-level-150-percent": { + "title": "Set Bookmark Zoom Level to 150% in PDF", + "filename": "set-bookmark-zoom-level-150-percent.cs", + "description": "Demonstrates how to load a PDF, traverse its bookmark tree, and set each bookmark's zoom factor to 150% so that pages open at the desired magnification from the outline.", "tags": [ "bookmarks", - "duplicate", + "zoom", "pdf", "Aspose.Pdf", "outline" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfBookmarkEditor", - "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", - "Aspose.Pdf.Facades.PdfBookmarkEditor.ExtractBookmarks", - "Aspose.Pdf.Facades.PdfBookmarkEditor.DeleteBookmarks", - "Aspose.Pdf.Facades.PdfBookmarkEditor.CreateBookmarkOfPage", - "Aspose.Pdf.Facades.PdfBookmarkEditor.Save" + "PdfBookmarkEditor", + "PdfBookmarkEditor.BindPdf", + "PdfBookmarkEditor.ExtractBookmarks", + "PdfBookmarkEditor.Save", + "Bookmark.PageDisplay_Zoom", + "Bookmark.ChildItems" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:31:29Z", "status": "verified" }, - "batch-add-reviewed-bookmark-to-pdfs": { - "title": "Batch Add \"Reviewed\" Bookmark to PDFs", - "filename": "batch-add-reviewed-bookmark-to-pdfs.cs", - "description": "Shows how to loop through PDF files in a directory, use PdfBookmarkEditor to create a \"Reviewed\" bookmark on the last page of each document, and save the updated PDFs.", + "set-bookmark-zoom-to-150-percent": { + "title": "Set Bookmark Zoom To 150 Percent", + "filename": "set-bookmark-zoom-to-150-percent.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "update-bookmark-destination-to-page-10": { + "title": "Update Bookmark Destination to Page 10", + "filename": "update-bookmark-destination-to-page-10.cs", + "description": "Shows how to locate a PDF bookmark by its title and change its destination to page 10 using Aspose.Pdf's PdfBookmarkEditor facade.", "tags": [ "bookmarks", - "batch", "pdf", - "aspose-pdf", - "facade" + "Aspose.Pdf", + "update", + "page-number" ], "apis_used": [ "PdfBookmarkEditor", "PdfBookmarkEditor.BindPdf", + "PdfBookmarkEditor.ExtractBookmarks", + "PdfBookmarkEditor.DeleteBookmarks", "PdfBookmarkEditor.CreateBookmarkOfPage", "PdfBookmarkEditor.Save", - "PdfBookmarkEditor.Close", - "PdfBookmarkEditor.Document.Pages.Count" + "Bookmark.PageNumber" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:31:29Z", "status": "verified" }, - "add-colored-bookmarks-to-pdf": { - "title": "Add Colored Bookmarks to PDF Sections", - "filename": "add-colored-bookmarks-to-pdf.cs", - "description": "Shows how to create PDF bookmarks and set their title color (red for warnings, green for informational parts) using Aspose.Pdf.Facades.", + "update-bookmark-destination-to-page": { + "title": "Update Bookmark Destination To Page", + "filename": "update-bookmark-destination-to-page.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "update-bookmark-titles-to-title-case": { + "title": "Update Bookmark Titles To Title Case", + "filename": "update-bookmark-titles-to-title-case.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "update-pdf-bookmark-title": { + "title": "Update PDF Bookmark Title Using MemoryStream", + "filename": "update-pdf-bookmark-title.cs", + "description": "Shows how to bind a PDF from a byte array with MemoryStream, modify a bookmark title using PdfBookmarkEditor, and return the edited PDF as a byte array.", "tags": [ - "bookmarks", - "color", "pdf", - "Aspose.Pdf", - "facade" + "bookmark", + "memorystream", + "aspose.pdf", + "c#" ], "apis_used": [ "Aspose.Pdf.Facades.PdfBookmarkEditor", "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", - "Aspose.Pdf.Facades.PdfBookmarkEditor.CreateBookmarks", - "Aspose.Pdf.Facades.PdfBookmarkEditor.Save", - "Aspose.Pdf.Facades.Bookmark" + "Aspose.Pdf.Facades.PdfBookmarkEditor.ModifyBookmarks", + "Aspose.Pdf.Facades.PdfBookmarkEditor.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:31:29Z", "status": "verified" }, - "export-pdf-bookmarks-to-json": { - "title": "Export PDF Bookmark Hierarchy to JSON", - "filename": "export-pdf-bookmarks-to-json.cs", - "description": "Shows how to extract the bookmark tree from a PDF using PdfBookmarkEditor and write each bookmark's title, level, and page number to a JSON file.", + "validate-pdf-bookmark-count": { + "title": "Validate PDF Bookmark Count After Adding Bookmarks", + "filename": "validate-pdf-bookmark-count.cs", + "description": "Demonstrates how to add a bookmark for each page using PdfBookmarkEditor, save the PDF, then extract and verify the total number of bookmarks.", "tags": [ "bookmarks", - "json", - "export", + "validation", "pdf", + "Aspose.Pdf", "facade" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfBookmarkEditor", - "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", - "Aspose.Pdf.Facades.PdfBookmarkEditor.ExtractBookmarks", - "Aspose.Pdf.Facades.Bookmarks", - "Aspose.Pdf.Facades.Bookmark", - "Aspose.Pdf.Facades.Bookmark.ChildItem" + "PdfBookmarkEditor.BindPdf", + "PdfBookmarkEditor.CreateBookmarks", + "PdfBookmarkEditor.Save", + "PdfBookmarkEditor.ExtractBookmarks", + "Aspose.Pdf.Facades.Bookmarks.Count" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:31:29Z", "status": "verified" }, - "import-bookmarks-from-database": { - "title": "Import Bookmarks from Database into PDF", - "filename": "import-bookmarks-from-database.cs", - "description": "Shows how to read bookmark records (title and page number) from a simulated database query and add them to an existing PDF using Aspose.Pdf's bookmark editor.", + "validate-pdf-bookmarks-against-toc": { + "title": "Validate PDF Bookmarks Against Table of Contents", + "filename": "validate-pdf-bookmarks-against-toc.cs", + "description": "Demonstrates extracting PDF bookmarks with PdfBookmarkEditor and comparing their page numbers to an expected table of contents for consistency checks.", "tags": [ "bookmarks", + "toc", + "validation", "pdf", - "database", - "Aspose.Pdf", - "import" + "aspose" ], "apis_used": [ - "PdfBookmarkEditor", - "PdfBookmarkEditor.BindPdf", - "PdfBookmarkEditor.CreateBookmarks", - "PdfBookmarkEditor.Save", - "Bookmark", - "Document", - "Document.Pages.Add", - "Document.Save" + "Aspose.Pdf.Facades.PdfBookmarkEditor", + "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", + "Aspose.Pdf.Facades.PdfBookmarkEditor.ExtractBookmarks", + "Aspose.Pdf.Facades.Bookmarks", + "Aspose.Pdf.Facades.Bookmark" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:31:29Z", diff --git a/facades-convert-documents/AGENTS.md b/facades-convert-documents/AGENTS.md index 880933f32..4ca5da6a2 100644 --- a/facades-convert-documents/AGENTS.md +++ b/facades-convert-documents/AGENTS.md @@ -8,7 +8,7 @@ parent: ../agents.md # AGENTS - facades-convert-documents -> **Facades convert documents** in PDF using C# / .NET -- **37** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. +> **Facades convert documents** in PDF using C# / .NET -- **51** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. ## Persona @@ -23,14 +23,14 @@ See the root [agents.md](../agents.md) for repository-wide conventions and bound ## Required Namespaces -- `using Aspose.Pdf.Facades;` (29/37 files) ← category-specific -- `using Aspose.Pdf;` (27/37 files) ← category-specific -- `using Aspose.Pdf.Devices;` (18/37 files) -- `using Aspose.Pdf.Text;` (4/37 files) -- `using System;` (37/37 files) -- `using System.IO;` (37/37 files) -- `using System.Drawing.Imaging;` (15/37 files) -- `using System.Threading.Tasks;` (1/37 files) +- `using Aspose.Pdf.Facades;` (29/51 files) ← category-specific +- `using Aspose.Pdf;` (27/51 files) ← category-specific +- `using Aspose.Pdf.Devices;` (18/51 files) +- `using Aspose.Pdf.Text;` (4/51 files) +- `using System;` (37/51 files) +- `using System.IO;` (37/51 files) +- `using System.Drawing.Imaging;` (15/51 files) +- `using System.Threading.Tasks;` (1/51 files) ## Common Code Pattern @@ -48,39 +48,39 @@ tool.Save("output.pdf"); | File | Title | Key APIs | Description | |------|-------|----------|-------------| | [batch-convert-pdfs-to-jpeg](./batch-convert-pdfs-to-jpeg.cs) | Batch Convert PDFs to JPEG Images | `PdfConverter`, `BindPdf`, `DoConvert` | Shows how to iterate over PDF files in a folder and convert each page of every PDF into separate ... | +| [convert-odd-pdf-pages-to-png](./convert-odd-pdf-pages-to-png.cs) | Convert odd pdf pages to png | | Convert odd pdf pages to png | | [convert-pdf-odd-pages-to-png](./convert-pdf-odd-pages-to-png.cs) | Convert PDF Odd Pages to PNG Images | `Document`, `PdfConverter`, `BindPdf` | Shows how to extract only the odd‑numbered pages from a PDF and save each page as a separate PNG ... | | [convert-pdf-pages-3-8-to-bmp](./convert-pdf-pages-3-8-to-bmp.cs) | Convert PDF Pages 3‑8 to BMP Images | `PdfConverter`, `BindPdf`, `StartPage` | Shows how to use Aspose.Pdf.Facades.PdfConverter to convert a specific page range (pages 3 to 8) ... | | [convert-pdf-pages-3-8-to-multi-page-tiff](./convert-pdf-pages-3-8-to-multi-page-tiff.cs) | Convert PDF Pages 3‑8 to Multi‑Page TIFF | `Document`, `PdfConverter`, `BindPdf` | Shows how to load a PDF, select a specific page range, and save those pages as a single multi‑pag... | +| [convert-pdf-pages-3-8-to-tiff](./convert-pdf-pages-3-8-to-tiff.cs) | Convert pdf pages 3 8 to tiff | | Convert pdf pages 3 8 to tiff | +| [convert-pdf-pages-4-9-to-multi-page-tiff](./convert-pdf-pages-4-9-to-multi-page-tiff.cs) | Convert pdf pages 4 9 to multi page tiff | | Convert pdf pages 4 9 to multi page tiff | | [convert-pdf-pages-to-bmp-150-dpi](./convert-pdf-pages-to-bmp-150-dpi.cs) | Convert PDF Pages to BMP Images (150 DPI) | `Document`, `Resolution`, `BmpDevice` | Demonstrates loading a PDF with Aspose.Pdf, setting a 150 DPI resolution, and converting the firs... | +| [convert-pdf-pages-to-bmp-helvetica-arial](./convert-pdf-pages-to-bmp-helvetica-arial.cs) | Convert pdf pages to bmp helvetica arial | | Convert pdf pages to bmp helvetica arial | | [convert-pdf-pages-to-bmp-images](./convert-pdf-pages-to-bmp-images.cs) | Convert PDF Pages to BMP Images (Partial Range) | `PdfConverter`, `BindPdf`, `StartPage` | Demonstrates using Aspose.Pdf.Facades.PdfConverter to convert a specific page range of a PDF into... | +| [convert-pdf-pages-to-bmp](./convert-pdf-pages-to-bmp.cs) | Convert pdf pages to bmp | | Convert pdf pages to bmp | | [convert-pdf-pages-to-jpeg-150-dpi](./convert-pdf-pages-to-jpeg-150-dpi.cs) | Convert PDF Pages 1-10 to JPEG Images with 150 DPI | `Document`, `PdfConverter`, `BindPdf` | Demonstrates using Aspose.Pdf's PdfConverter to convert the first ten pages of a PDF into JPEG fi... | +| [convert-pdf-pages-to-jpeg](./convert-pdf-pages-to-jpeg.cs) | Convert pdf pages to jpeg | | Convert pdf pages to jpeg | | [convert-pdf-pages-to-multi-page-tiff](./convert-pdf-pages-to-multi-page-tiff.cs) | Convert PDF Pages 4-9 to Multi-Page TIFF | `Document`, `PdfConverter`, `StartPage` | Demonstrates extracting pages 4 through 9 from a PDF and saving them as a single multi-page TIFF ... | | [convert-pdf-pages-to-png-reverse-order](./convert-pdf-pages-to-png-reverse-order.cs) | Convert PDF Pages to PNG in Reverse Order | `Document`, `PdfConverter`, `BindPdf` | Demonstrates using Aspose.Pdf.Facades.PdfConverter to convert each page of a PDF document to a PN... | +| [convert-pdf-pages-to-png](./convert-pdf-pages-to-png.cs) | Convert pdf pages to png | | Convert pdf pages to png | | [convert-pdf-pages-to-tiff](./convert-pdf-pages-to-tiff.cs) | Convert PDF Pages to Individual TIFF Images | `PdfConverter`, `BindPdf`, `DoConvert` | Shows how to use Aspose.Pdf.Facades.PdfConverter to extract each page of a PDF and save it as a s... | | [convert-pdf-to-bmp-200-dpi](./convert-pdf-to-bmp-200-dpi.cs) | Convert PDF to BMP Images with 200 DPI | `Document`, `Resolution`, `BmpDevice` | Shows how to load a PDF using Aspose.Pdf, set a 200 DPI resolution, and convert each page to a BM... | | [convert-pdf-to-bmp-first-10-pages](./convert-pdf-to-bmp-first-10-pages.cs) | Convert PDF to BMP Images (First 10 Pages) | `PdfConverter`, `BindPdf`, `StartPage` | Demonstrates how to use Aspose.Pdf.Facades.PdfConverter to convert the first ten pages of a PDF i... | | [convert-pdf-to-bmp-images](./convert-pdf-to-bmp-images.cs) | Convert PDF to BMP Images with Resolution Settings | `PdfConverter`, `Document`, `Resolution` | Demonstrates how to convert each page of a PDF document to BMP images using Aspose.Pdf.Facades.Pd... | +| [convert-pdf-to-bmp-images__v2](./convert-pdf-to-bmp-images__v2.cs) | Convert pdf to bmp images__v2 | | Convert pdf to bmp images__v2 | +| [convert-pdf-to-bmp-partial-range](./convert-pdf-to-bmp-partial-range.cs) | Convert pdf to bmp partial range | | Convert pdf to bmp partial range | | [convert-pdf-to-bmp-with-cropbox](./convert-pdf-to-bmp-with-cropbox.cs) | Convert PDF to BMP Images Using CropBox | `Document`, `BmpDevice`, `Resolution` | Demonstrates loading a PDF (creating a placeholder if missing) and rendering each page to a BMP i... | | [convert-pdf-to-bmp-with-font-substitution](./convert-pdf-to-bmp-with-font-substitution.cs) | Convert PDF Pages to BMP Images with Font Substitution | `Document`, `PdfConverter`, `BindPdf` | Shows how to convert each page of a PDF document to BMP images using Aspose.Pdf's PdfConverter, w... | +| [convert-pdf-to-bmp-with-font-substitution__v2](./convert-pdf-to-bmp-with-font-substitution__v2.cs) | Convert pdf to bmp with font substitution__v2 | | Convert pdf to bmp with font substitution__v2 | | [convert-pdf-to-high-resolution-multi-page-tiff](./convert-pdf-to-high-resolution-multi-page-tiff.cs) | Convert PDF to High-Resolution Multi-Page TIFF | `PdfConverter`, `Resolution`, `BindPdf` | Demonstrates how to use Aspose.Pdf.Facades.PdfConverter to convert a PDF file into a single multi... | | [convert-pdf-to-jpeg-300dpi-cropbox](./convert-pdf-to-jpeg-300dpi-cropbox.cs) | Convert PDF to JPEG Images with 300 DPI and CropBox | `PdfConverter`, `Resolution`, `PageCoordinateType` | Demonstrates converting each page of a PDF to high‑resolution JPEG images (300 DPI) using the Cro... | | [convert-pdf-to-jpeg-96-dpi](./convert-pdf-to-jpeg-96-dpi.cs) | Convert PDF to JPEG Images at 96 DPI | `PdfConverter`, `BindPdf`, `Resolution` | Demonstrates converting each page of a PDF into separate JPEG files with a web‑friendly 96 DPI re... | | [convert-pdf-to-jpeg-first-5-pages-200-dpi](./convert-pdf-to-jpeg-first-5-pages-200-dpi.cs) | Convert PDF to JPEG Images (First 5 Pages, 200 DPI) | `Document`, `PdfConverter`, `BindPdf` | Demonstrates how to convert a PDF document to JPEG images using Aspose.Pdf, limiting the conversi... | -| [convert-pdf-to-jpeg-images](./convert-pdf-to-jpeg-images.cs) | Convert PDF to JPEG Images | `PdfConverter`, `BindPdf`, `DoConvert` | Demonstrates converting each page of a PDF into separate JPEG files while preserving the original... | -| [convert-pdf-to-jpeg-images__v2](./convert-pdf-to-jpeg-images__v2.cs) | Convert PDF to JPEG Images Using PdfConverter | `PdfConverter`, `BindPdf`, `DoConvert` | Demonstrates how to extract each page of a PDF as a separate JPEG file using Aspose.Pdf's PdfConv... | -| [convert-pdf-to-jpeg-images__v3](./convert-pdf-to-jpeg-images__v3.cs) | Convert PDF to JPEG Images (One Image per Page) | `Document`, `PdfConverter`, `DoConvert` | Shows how to use Aspose.Pdf's PdfConverter to convert each page of a PDF document into separate J... | -| [convert-pdf-to-jpeg-preview-images](./convert-pdf-to-jpeg-preview-images.cs) | Convert PDF to JPEG Preview Images (Pages 1-3) | `PdfConverter`, `BindPdf`, `StartPage` | Shows how to use Aspose.Pdf.Facades.PdfConverter to render pages 1 through 3 of a PDF as JPEG fil... | -| [convert-pdf-to-jpeg-with-font-substitution](./convert-pdf-to-jpeg-with-font-substitution.cs) | Convert PDF to JPEG with Font Substitution | `Document`, `PdfSaveOptions`, `PdfConverter` | Shows how to convert each page of a PDF into JPEG images while applying a custom font substitutio... | -| [convert-pdf-to-multi-page-tiff-300-dpi](./convert-pdf-to-multi-page-tiff-300-dpi.cs) | Convert PDF to Multi-Page TIFF at 300 DPI | `PdfConverter`, `BindPdf`, `Resolution` | Demonstrates how to use Aspose.Pdf.Facades.PdfConverter to convert a PDF document into a single m... | -| [convert-pdf-to-multi-page-tiff-600-dpi](./convert-pdf-to-multi-page-tiff-600-dpi.cs) | Convert PDF to Multi-Page TIFF at 600 DPI | `PdfConverter`, `BindPdf`, `DoConvert` | Demonstrates how to use Aspose.Pdf's PdfConverter to convert a PDF document into a single multi-p... | -| [convert-pdf-to-multi-page-tiff-with-font-substitut...](./convert-pdf-to-multi-page-tiff-with-font-substitution.cs) | Convert PDF to Multi-Page TIFF with Font Substitution | `Document`, `FontRepository`, `SimpleFontSubstitution` | Demonstrates loading a PDF, applying a Courier → Liberation Mono font substitution, and convertin... | -| [convert-pdf-to-multi-page-tiff-with-font-substitut...](./convert-pdf-to-multi-page-tiff-with-font-substitution__v2.cs) | Convert PDF to Multi-Page TIFF with Font Substitution | `Document`, `PdfSaveOptions`, `PdfConverter` | Demonstrates how to convert a PDF to a single multi-page TIFF while substituting missing Symbol f... | -| [convert-pdf-to-multi-page-tiff](./convert-pdf-to-multi-page-tiff.cs) | Convert PDF to Multi-Page TIFF with Font Substitution | `Document`, `Resolution`, `TiffSettings` | Demonstrates converting a PDF document to a multi-page TIFF image using Aspose.Pdf, with optional... | -| [convert-pdf-to-png-300-dpi](./convert-pdf-to-png-300-dpi.cs) | Convert PDF to PNG Images at 300 DPI | `Document`, `Resolution`, `PngDevice` | Demonstrates how to load a PDF with Aspose.Pdf, set a 300 DPI resolution, and render each page to... | -| ... | | | *and 7 more files* | +| [convert-pdf-to-jpeg-first-5-pages](./convert-pdf-to-jpeg-first-5-pages.cs) | Convert pdf to jpeg first 5 pages | | Convert pdf to jpeg first 5 pages | +| ... | | | *and 21 more files* | ## Category Statistics -- Total examples: 37 +- Total examples: 51 ## General Tips - See parent [AGENTS.md](../AGENTS.md) for: @@ -91,5 +91,5 @@ tool.Save("output.pdf"); - Review code examples in this folder for facades-convert-documents patterns -Updated: 2026-08-20 | Run: `20260820_001147_12d7b3` +Updated: 2026-09-10 | Run: `20260910_054408_87a7f4` diff --git a/facades-convert-documents/README.md b/facades-convert-documents/README.md new file mode 100644 index 000000000..31f1116ea --- /dev/null +++ b/facades-convert-documents/README.md @@ -0,0 +1,70 @@ +# Facades convert documents + +> **Facades convert documents** in PDF using C# / .NET -- **51** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. + +- Category: `facades-convert-documents` +- Examples: 51 +- NuGet: `Aspose.PDF 26.8.0` -- target `net10.0` + +## Examples + +- [`batch-convert-pdfs-to-jpeg.cs`](./batch-convert-pdfs-to-jpeg.cs) -- Batch convert pdfs to jpeg +- [`convert-odd-pdf-pages-to-png.cs`](./convert-odd-pdf-pages-to-png.cs) -- Convert odd pdf pages to png +- [`convert-pdf-odd-pages-to-png.cs`](./convert-pdf-odd-pages-to-png.cs) -- Convert pdf odd pages to png +- [`convert-pdf-pages-3-8-to-bmp.cs`](./convert-pdf-pages-3-8-to-bmp.cs) -- Convert pdf pages 3 8 to bmp +- [`convert-pdf-pages-3-8-to-multi-page-tiff.cs`](./convert-pdf-pages-3-8-to-multi-page-tiff.cs) -- Convert pdf pages 3 8 to multi page tiff +- [`convert-pdf-pages-3-8-to-tiff.cs`](./convert-pdf-pages-3-8-to-tiff.cs) -- Convert pdf pages 3 8 to tiff +- [`convert-pdf-pages-4-9-to-multi-page-tiff.cs`](./convert-pdf-pages-4-9-to-multi-page-tiff.cs) -- Convert pdf pages 4 9 to multi page tiff +- [`convert-pdf-pages-to-bmp-150-dpi.cs`](./convert-pdf-pages-to-bmp-150-dpi.cs) -- Convert pdf pages to bmp 150 dpi +- [`convert-pdf-pages-to-bmp-helvetica-arial.cs`](./convert-pdf-pages-to-bmp-helvetica-arial.cs) -- Convert pdf pages to bmp helvetica arial +- [`convert-pdf-pages-to-bmp-images.cs`](./convert-pdf-pages-to-bmp-images.cs) -- Convert pdf pages to bmp images +- [`convert-pdf-pages-to-bmp.cs`](./convert-pdf-pages-to-bmp.cs) -- Convert pdf pages to bmp +- [`convert-pdf-pages-to-jpeg-150-dpi.cs`](./convert-pdf-pages-to-jpeg-150-dpi.cs) -- Convert pdf pages to jpeg 150 dpi +- [`convert-pdf-pages-to-jpeg.cs`](./convert-pdf-pages-to-jpeg.cs) -- Convert pdf pages to jpeg +- [`convert-pdf-pages-to-multi-page-tiff.cs`](./convert-pdf-pages-to-multi-page-tiff.cs) -- Convert pdf pages to multi page tiff +- [`convert-pdf-pages-to-png-reverse-order.cs`](./convert-pdf-pages-to-png-reverse-order.cs) -- Convert pdf pages to png reverse order +- [`convert-pdf-pages-to-png.cs`](./convert-pdf-pages-to-png.cs) -- Convert pdf pages to png +- [`convert-pdf-pages-to-tiff.cs`](./convert-pdf-pages-to-tiff.cs) -- Convert pdf pages to tiff +- [`convert-pdf-to-bmp-200-dpi.cs`](./convert-pdf-to-bmp-200-dpi.cs) -- Convert pdf to bmp 200 dpi +- [`convert-pdf-to-bmp-first-10-pages.cs`](./convert-pdf-to-bmp-first-10-pages.cs) -- Convert pdf to bmp first 10 pages +- [`convert-pdf-to-bmp-images.cs`](./convert-pdf-to-bmp-images.cs) -- Convert pdf to bmp images +- [`convert-pdf-to-bmp-images__v2.cs`](./convert-pdf-to-bmp-images__v2.cs) -- Convert pdf to bmp images v2 +- [`convert-pdf-to-bmp-partial-range.cs`](./convert-pdf-to-bmp-partial-range.cs) -- Convert pdf to bmp partial range +- [`convert-pdf-to-bmp-with-cropbox.cs`](./convert-pdf-to-bmp-with-cropbox.cs) -- Convert pdf to bmp with cropbox +- [`convert-pdf-to-bmp-with-font-substitution.cs`](./convert-pdf-to-bmp-with-font-substitution.cs) -- Convert pdf to bmp with font substitution +- [`convert-pdf-to-bmp-with-font-substitution__v2.cs`](./convert-pdf-to-bmp-with-font-substitution__v2.cs) -- Convert pdf to bmp with font substitution v2 +- [`convert-pdf-to-high-resolution-multi-page-tiff.cs`](./convert-pdf-to-high-resolution-multi-page-tiff.cs) -- Convert pdf to high resolution multi page tiff +- [`convert-pdf-to-jpeg-300dpi-cropbox.cs`](./convert-pdf-to-jpeg-300dpi-cropbox.cs) -- Convert pdf to jpeg 300dpi cropbox +- [`convert-pdf-to-jpeg-96-dpi.cs`](./convert-pdf-to-jpeg-96-dpi.cs) -- Convert pdf to jpeg 96 dpi +- [`convert-pdf-to-jpeg-first-5-pages-200-dpi.cs`](./convert-pdf-to-jpeg-first-5-pages-200-dpi.cs) -- Convert pdf to jpeg first 5 pages 200 dpi +- [`convert-pdf-to-jpeg-first-5-pages.cs`](./convert-pdf-to-jpeg-first-5-pages.cs) -- Convert pdf to jpeg first 5 pages +- [`convert-pdf-to-jpeg-images.cs`](./convert-pdf-to-jpeg-images.cs) -- Convert pdf to jpeg images +- [`convert-pdf-to-jpeg-images__v2.cs`](./convert-pdf-to-jpeg-images__v2.cs) -- Convert pdf to jpeg images v2 +- [`convert-pdf-to-jpeg-images__v3.cs`](./convert-pdf-to-jpeg-images__v3.cs) -- Convert pdf to jpeg images v3 +- [`convert-pdf-to-jpeg-preview-images.cs`](./convert-pdf-to-jpeg-preview-images.cs) -- Convert pdf to jpeg preview images +- [`convert-pdf-to-jpeg-preview.cs`](./convert-pdf-to-jpeg-preview.cs) -- Convert pdf to jpeg preview +- [`convert-pdf-to-jpeg-with-font-substitution.cs`](./convert-pdf-to-jpeg-with-font-substitution.cs) -- Convert pdf to jpeg with font substitution +- [`convert-pdf-to-multi-page-tiff-300-dpi.cs`](./convert-pdf-to-multi-page-tiff-300-dpi.cs) -- Convert pdf to multi page tiff 300 dpi +- [`convert-pdf-to-multi-page-tiff-400-dpi.cs`](./convert-pdf-to-multi-page-tiff-400-dpi.cs) -- Convert pdf to multi page tiff 400 dpi +- [`convert-pdf-to-multi-page-tiff-600-dpi.cs`](./convert-pdf-to-multi-page-tiff-600-dpi.cs) -- Convert pdf to multi page tiff 600 dpi +- [`convert-pdf-to-multi-page-tiff-with-font-substitution.cs`](./convert-pdf-to-multi-page-tiff-with-font-substitution.cs) -- Convert pdf to multi page tiff with font substitution +- [`convert-pdf-to-multi-page-tiff-with-font-substitution__v2.cs`](./convert-pdf-to-multi-page-tiff-with-font-substitution__v2.cs) -- Convert pdf to multi page tiff with font substitution v2 +- [`convert-pdf-to-multi-page-tiff.cs`](./convert-pdf-to-multi-page-tiff.cs) -- Convert pdf to multi page tiff +- [`convert-pdf-to-png-300-dpi.cs`](./convert-pdf-to-png-300-dpi.cs) -- Convert pdf to png 300 dpi +- [`convert-pdf-to-png-72-dpi.cs`](./convert-pdf-to-png-72-dpi.cs) -- Convert pdf to png 72 dpi +- [`convert-pdf-to-png-72-dpi__v2.cs`](./convert-pdf-to-png-72-dpi__v2.cs) -- Convert pdf to png 72 dpi v2 +- [`convert-pdf-to-png-images.cs`](./convert-pdf-to-png-images.cs) -- Convert pdf to png images +- [`convert-pdf-to-png-in-parallel.cs`](./convert-pdf-to-png-in-parallel.cs) -- Convert pdf to png in parallel +- [`convert-pdf-to-png-parallel.cs`](./convert-pdf-to-png-parallel.cs) -- Convert pdf to png parallel +- [`convert-pdf-to-png-with-font-substitution.cs`](./convert-pdf-to-png-with-font-substitution.cs) -- Convert pdf to png with font substitution +- [`convert-pdf-to-png-with-font-substitution__v2.cs`](./convert-pdf-to-png-with-font-substitution__v2.cs) -- Convert pdf to png with font substitution v2 +- [`convert-pdf-to-tiff-images.cs`](./convert-pdf-to-tiff-images.cs) -- Convert pdf to tiff images + +## See Also + +- [`AGENTS.md`](./AGENTS.md) -- category-specific anti-patterns, API surface, and conventions for AI coding agents +- [`../AGENTS.md`](../AGENTS.md) -- repository-wide agent guide +- [`../README.md`](../README.md) -- full category index and project overview +- [Aspose.PDF for .NET docs](https://docs.aspose.com/pdf/net/) + +> Each `.cs` file is a standalone, build-validated console example. Drop into a fresh `dotnet new console` project, add the `Aspose.PDF` NuGet (version above), and run. diff --git a/facades-convert-documents/index.json b/facades-convert-documents/index.json index 1b0604820..f1effea40 100644 --- a/facades-convert-documents/index.json +++ b/facades-convert-documents/index.json @@ -1,40 +1,50 @@ { "category": "facades-convert-documents", "nuget_version": "26.8.0", - "last_updated": "2026-08-20T07:33:01Z", + "last_updated": "2026-09-10T12:45:08Z", "examples": { - "convert-pdf-to-png-300-dpi": { - "title": "Convert PDF to PNG Images at 300 DPI", - "filename": "convert-pdf-to-png-300-dpi.cs", - "description": "Demonstrates how to load a PDF with Aspose.Pdf, set a 300 DPI resolution, and render each page to separate PNG files.", + "batch-convert-pdfs-to-jpeg": { + "title": "Batch Convert PDFs to JPEG Images", + "filename": "batch-convert-pdfs-to-jpeg.cs", + "description": "Shows how to iterate over PDF files in a folder and convert each page of every PDF into separate JPEG images using Aspose.Pdf.Facades.PdfConverter.", "tags": [ "pdf", - "png", + "jpeg", + "batch", "conversion", - "300dpi", - "aspose-pdf" + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Devices.Resolution", - "Aspose.Pdf.Devices.PngDevice", - "Aspose.Pdf.Devices.PngDevice.Process", - "Aspose.Pdf.Page" + "Aspose.Pdf.Facades.PdfConverter", + "Aspose.Pdf.Facades.PdfConverter.BindPdf", + "Aspose.Pdf.Facades.PdfConverter.DoConvert", + "Aspose.Pdf.Facades.PdfConverter.HasNextImage", + "Aspose.Pdf.Facades.PdfConverter.GetNextImage" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:33:01Z", "status": "verified" }, - "convert-pdf-pages-to-jpeg-150-dpi": { - "title": "Convert PDF Pages 1-10 to JPEG Images with 150 DPI", - "filename": "convert-pdf-pages-to-jpeg-150-dpi.cs", - "description": "Demonstrates using Aspose.Pdf's PdfConverter to convert the first ten pages of a PDF into JPEG files at 150 DPI, relying on the default CropBox coordinate type.", + "convert-odd-pdf-pages-to-png": { + "title": "Convert Odd Pdf Pages To Png", + "filename": "convert-odd-pdf-pages-to-png.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-pdf-odd-pages-to-png": { + "title": "Convert PDF Odd Pages to PNG Images", + "filename": "convert-pdf-odd-pages-to-png.cs", + "description": "Shows how to extract only the odd‑numbered pages from a PDF and save each page as a separate PNG file using Aspose.Pdf.", "tags": [ "pdf", - "jpeg", + "png", + "odd-pages", "conversion", - "resolution", - "cropbox" + "facade" ], "apis_used": [ "Aspose.Pdf.Document", @@ -42,7 +52,6 @@ "Aspose.Pdf.Facades.PdfConverter.BindPdf", "Aspose.Pdf.Facades.PdfConverter.StartPage", "Aspose.Pdf.Facades.PdfConverter.EndPage", - "Aspose.Pdf.Devices.Resolution", "Aspose.Pdf.Facades.PdfConverter.DoConvert", "Aspose.Pdf.Facades.PdfConverter.GetNextImage" ], @@ -50,6 +59,30 @@ "generated_at": "2026-08-20T07:33:01Z", "status": "verified" }, + "convert-pdf-pages-3-8-to-bmp": { + "title": "Convert PDF Pages 3‑8 to BMP Images", + "filename": "convert-pdf-pages-3-8-to-bmp.cs", + "description": "Shows how to use Aspose.Pdf.Facades.PdfConverter to convert a specific page range (pages 3 to 8) of a PDF document into BMP image files.", + "tags": [ + "pdf", + "bmp", + "conversion", + "page-range", + "facade" + ], + "apis_used": [ + "PdfConverter", + "PdfConverter.BindPdf", + "PdfConverter.StartPage", + "PdfConverter.EndPage", + "PdfConverter.DoConvert", + "PdfConverter.HasNextImage", + "PdfConverter.GetNextImage" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:33:01Z", + "status": "verified" + }, "convert-pdf-pages-3-8-to-multi-page-tiff": { "title": "Convert PDF Pages 3‑8 to Multi‑Page TIFF", "filename": "convert-pdf-pages-3-8-to-multi-page-tiff.cs", @@ -74,71 +107,147 @@ "generated_at": "2026-08-20T07:33:01Z", "status": "verified" }, - "convert-pdf-to-png-images": { - "title": "Convert PDF to PNG Images", - "filename": "convert-pdf-to-png-images.cs", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfConverter to convert each page of a PDF document into separate PNG files with sequential naming.", + "convert-pdf-pages-3-8-to-tiff": { + "title": "Convert Pdf Pages 3 8 To Tiff", + "filename": "convert-pdf-pages-3-8-to-tiff.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-pdf-pages-4-9-to-multi-page-tiff": { + "title": "Convert Pdf Pages 4 9 To Multi Page Tiff", + "filename": "convert-pdf-pages-4-9-to-multi-page-tiff.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-pdf-pages-to-bmp-150-dpi": { + "title": "Convert PDF Pages to BMP Images (150 DPI)", + "filename": "convert-pdf-pages-to-bmp-150-dpi.cs", + "description": "Demonstrates loading a PDF with Aspose.Pdf, setting a 150 DPI resolution, and converting the first 20 pages to BMP files using BmpDevice.", "tags": [ "pdf", - "png", + "bmp", "conversion", - "aspose-pdf", - "csharp" + "aspose", + "resolution" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.Devices.BmpDevice", + "Aspose.Pdf.Devices.BmpDevice.Process", + "Aspose.Pdf.PageCollection" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:33:01Z", + "status": "verified" + }, + "convert-pdf-pages-to-bmp-helvetica-arial": { + "title": "Convert Pdf Pages To Bmp Helvetica Arial", + "filename": "convert-pdf-pages-to-bmp-helvetica-arial.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-pdf-pages-to-bmp-images": { + "title": "Convert PDF Pages to BMP Images (Partial Range)", + "filename": "convert-pdf-pages-to-bmp-images.cs", + "description": "Demonstrates using Aspose.Pdf.Facades.PdfConverter to convert a specific page range of a PDF into BMP image files.", + "tags": [ + "pdf", + "bmp", + "conversion", + "page-range", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfConverter", - "Aspose.Pdf.Facades.PdfConverter.BindPdf", - "Aspose.Pdf.Facades.PdfConverter.DoConvert", - "Aspose.Pdf.Facades.PdfConverter.HasNextImage", - "Aspose.Pdf.Facades.PdfConverter.GetNextImage" + "PdfConverter.BindPdf", + "PdfConverter.StartPage", + "PdfConverter.EndPage", + "PdfConverter.DoConvert", + "PdfConverter.HasNextImage", + "PdfConverter.GetNextImage" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:33:01Z", "status": "verified" }, - "convert-pdf-to-jpeg-first-5-pages-200-dpi": { - "title": "Convert PDF to JPEG Images (First 5 Pages, 200 DPI)", - "filename": "convert-pdf-to-jpeg-first-5-pages-200-dpi.cs", - "description": "Demonstrates how to convert a PDF document to JPEG images using Aspose.Pdf, limiting the conversion to the first five pages and setting a resolution of 200 DPI.", + "convert-pdf-pages-to-bmp": { + "title": "Convert Pdf Pages To Bmp", + "filename": "convert-pdf-pages-to-bmp.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-pdf-pages-to-jpeg-150-dpi": { + "title": "Convert PDF Pages 1-10 to JPEG Images with 150 DPI", + "filename": "convert-pdf-pages-to-jpeg-150-dpi.cs", + "description": "Demonstrates using Aspose.Pdf's PdfConverter to convert the first ten pages of a PDF into JPEG files at 150 DPI, relying on the default CropBox coordinate type.", "tags": [ "pdf", "jpeg", "conversion", "resolution", - "pages" + "cropbox" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfConverter", "Aspose.Pdf.Facades.PdfConverter.BindPdf", + "Aspose.Pdf.Facades.PdfConverter.StartPage", + "Aspose.Pdf.Facades.PdfConverter.EndPage", + "Aspose.Pdf.Devices.Resolution", "Aspose.Pdf.Facades.PdfConverter.DoConvert", - "Aspose.Pdf.Facades.PdfConverter.GetNextImage", - "Aspose.Pdf.Devices.Resolution" + "Aspose.Pdf.Facades.PdfConverter.GetNextImage" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:33:01Z", "status": "verified" }, - "convert-pdf-to-multi-page-tiff-300-dpi": { - "title": "Convert PDF to Multi-Page TIFF at 300 DPI", - "filename": "convert-pdf-to-multi-page-tiff-300-dpi.cs", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfConverter to convert a PDF document into a single multi-page TIFF image with a 300 DPI resolution.", + "convert-pdf-pages-to-jpeg": { + "title": "Convert Pdf Pages To Jpeg", + "filename": "convert-pdf-pages-to-jpeg.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-pdf-pages-to-multi-page-tiff": { + "title": "Convert PDF Pages 4-9 to Multi-Page TIFF", + "filename": "convert-pdf-pages-to-multi-page-tiff.cs", + "description": "Demonstrates extracting pages 4 through 9 from a PDF and saving them as a single multi-page TIFF using Aspose.Pdf's PdfConverter facade.", "tags": [ "pdf", "tiff", + "page-range", "conversion", - "300dpi", - "aspose" + "facade" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfConverter", - "Aspose.Pdf.Facades.PdfConverter.BindPdf", - "Aspose.Pdf.Facades.PdfConverter.Resolution", + "Aspose.Pdf.Facades.PdfConverter.StartPage", + "Aspose.Pdf.Facades.PdfConverter.EndPage", "Aspose.Pdf.Facades.PdfConverter.DoConvert", - "Aspose.Pdf.Facades.PdfConverter.SaveAsTIFF", - "Aspose.Pdf.Devices.Resolution" + "Aspose.Pdf.Facades.PdfConverter.SaveAsTIFF" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:33:01Z", "status": "verified" }, @@ -167,16 +276,26 @@ "generated_at": "2026-08-20T07:33:01Z", "status": "verified" }, - "convert-pdf-to-jpeg-images": { - "title": "Convert PDF to JPEG Images", - "filename": "convert-pdf-to-jpeg-images.cs", - "description": "Demonstrates converting each page of a PDF into separate JPEG files while preserving the original page dimensions using Aspose.Pdf.Facades.PdfConverter.", + "convert-pdf-pages-to-png": { + "title": "Convert Pdf Pages To Png", + "filename": "convert-pdf-pages-to-png.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-pdf-pages-to-tiff": { + "title": "Convert PDF Pages to Individual TIFF Images", + "filename": "convert-pdf-pages-to-tiff.cs", + "description": "Shows how to use Aspose.Pdf.Facades.PdfConverter to extract each page of a PDF and save it as a separate TIFF file.", "tags": [ "pdf", - "jpeg", + "tiff", "conversion", - "aspose", - "facade" + "facade", + "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.PdfConverter", @@ -189,325 +308,318 @@ "generated_at": "2026-08-20T07:33:01Z", "status": "verified" }, - "convert-pdf-pages-to-bmp-images": { - "title": "Convert PDF Pages to BMP Images (Partial Range)", - "filename": "convert-pdf-pages-to-bmp-images.cs", - "description": "Demonstrates using Aspose.Pdf.Facades.PdfConverter to convert a specific page range of a PDF into BMP image files.", + "convert-pdf-to-bmp-200-dpi": { + "title": "Convert PDF to BMP Images with 200 DPI", + "filename": "convert-pdf-to-bmp-200-dpi.cs", + "description": "Shows how to load a PDF using Aspose.Pdf, set a 200 DPI resolution, and convert each page to a BMP file while using the default CropBox for balanced quality.", "tags": [ "pdf", "bmp", "conversion", - "page-range", - "facade" + "resolution", + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfConverter", - "PdfConverter.BindPdf", - "PdfConverter.StartPage", - "PdfConverter.EndPage", - "PdfConverter.DoConvert", - "PdfConverter.HasNextImage", - "PdfConverter.GetNextImage" + "Aspose.Pdf.Document", + "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.Devices.BmpDevice", + "Aspose.Pdf.Devices.BmpDevice.Process", + "Aspose.Pdf.Page" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:33:01Z", "status": "verified" }, - "convert-pdf-to-multi-page-tiff-600-dpi": { - "title": "Convert PDF to Multi-Page TIFF at 600 DPI", - "filename": "convert-pdf-to-multi-page-tiff-600-dpi.cs", - "description": "Demonstrates how to use Aspose.Pdf's PdfConverter to convert a PDF document into a single multi-page TIFF image with a resolution of 600 DPI.", + "convert-pdf-to-bmp-first-10-pages": { + "title": "Convert PDF to BMP Images (First 10 Pages)", + "filename": "convert-pdf-to-bmp-first-10-pages.cs", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfConverter to convert the first ten pages of a PDF into BMP image files.", "tags": [ "pdf", - "tiff", + "bmp", "conversion", - "resolution", - "aspose" + "facade", + "pages" ], "apis_used": [ "Aspose.Pdf.Facades.PdfConverter", - "Aspose.Pdf.Facades.PdfConverter.BindPdf", - "Aspose.Pdf.Facades.PdfConverter.DoConvert", - "Aspose.Pdf.Facades.PdfConverter.SaveAsTIFF", - "Aspose.Pdf.Devices.Resolution" + "PdfConverter.BindPdf", + "PdfConverter.StartPage", + "PdfConverter.EndPage", + "PdfConverter.DoConvert", + "PdfConverter.HasNextImage", + "PdfConverter.GetNextImage", + "PdfConverter.Close" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:33:01Z", "status": "verified" }, - "convert-pdf-to-jpeg-with-font-substitution": { - "title": "Convert PDF to JPEG with Font Substitution", - "filename": "convert-pdf-to-jpeg-with-font-substitution.cs", - "description": "Shows how to convert each page of a PDF into JPEG images while applying a custom font substitution for any missing fonts using Aspose.Pdf.", + "convert-pdf-to-bmp-images": { + "title": "Convert PDF to BMP Images with Resolution Settings", + "filename": "convert-pdf-to-bmp-images.cs", + "description": "Demonstrates how to convert each page of a PDF document to BMP images using Aspose.Pdf.Facades.PdfConverter, configuring the output resolution before conversion.", "tags": [ "pdf", - "jpeg", - "font-substitution", + "bmp", "conversion", + "resolution", "facade" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.PdfSaveOptions", "Aspose.Pdf.Facades.PdfConverter", - "Aspose.Pdf.Facades.PdfConverter.BindPdf", - "Aspose.Pdf.Facades.PdfConverter.DoConvert", - "Aspose.Pdf.Facades.PdfConverter.HasNextImage", - "Aspose.Pdf.Facades.PdfConverter.GetNextImage" + "Aspose.Pdf.Document", + "Aspose.Pdf.Devices.Resolution", + "PdfConverter.BindPdf", + "PdfConverter.DoConvert", + "PdfConverter.HasNextImage", + "PdfConverter.GetNextImage" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:33:01Z", "status": "verified" }, - "convert-pdf-pages-3-8-to-bmp": { - "title": "Convert PDF Pages 3‑8 to BMP Images", - "filename": "convert-pdf-pages-3-8-to-bmp.cs", - "description": "Shows how to use Aspose.Pdf.Facades.PdfConverter to convert a specific page range (pages 3 to 8) of a PDF document into BMP image files.", - "tags": [ - "pdf", - "bmp", - "conversion", - "page-range", - "facade" - ], - "apis_used": [ - "PdfConverter", - "PdfConverter.BindPdf", - "PdfConverter.StartPage", - "PdfConverter.EndPage", - "PdfConverter.DoConvert", - "PdfConverter.HasNextImage", - "PdfConverter.GetNextImage" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:33:01Z", + "convert-pdf-to-bmp-images__v2": { + "title": "Convert Pdf To Bmp Images__V2", + "filename": "convert-pdf-to-bmp-images__v2.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "convert-pdf-to-tiff-images": { - "title": "Convert PDF to TIFF Images (One per Page)", - "filename": "convert-pdf-to-tiff-images.cs", - "description": "Demonstrates loading a PDF document and converting each page to an individual TIFF file using Aspose.Pdf's TiffDevice with default settings.", + "convert-pdf-to-bmp-partial-range": { + "title": "Convert Pdf To Bmp Partial Range", + "filename": "convert-pdf-to-bmp-partial-range.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-pdf-to-bmp-with-cropbox": { + "title": "Convert PDF to BMP Images Using CropBox", + "filename": "convert-pdf-to-bmp-with-cropbox.cs", + "description": "Demonstrates loading a PDF (creating a placeholder if missing) and rendering each page to a BMP image with Aspose.Pdf's BmpDevice, which automatically respects the page's CropBox to trim margins.", "tags": [ "pdf", - "tiff", + "bmp", "conversion", - "aspose.pdf", - "csharp" + "cropbox", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Devices.TiffDevice", + "Aspose.Pdf.Devices.BmpDevice", "Aspose.Pdf.Devices.Resolution", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Page" + "Aspose.Pdf.Page", + "Aspose.Pdf.Devices.BmpDevice.Process" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:33:01Z", "status": "verified" }, - "convert-pdf-to-png-72-dpi": { - "title": "Convert PDF to PNG Images with 72 DPI Preview", - "filename": "convert-pdf-to-png-72-dpi.cs", - "description": "Demonstrates how to convert each page of a PDF into PNG images at 72 DPI using Aspose.Pdf's PdfConverter facade.", + "convert-pdf-to-bmp-with-font-substitution": { + "title": "Convert PDF Pages to BMP Images with Font Substitution", + "filename": "convert-pdf-to-bmp-with-font-substitution.cs", + "description": "Shows how to convert each page of a PDF document to BMP images using Aspose.Pdf's PdfConverter, with automatic font substitution for missing fonts.", "tags": [ "pdf", - "png", + "bmp", "conversion", - "preview", - "resolution" + "font-substitution", + "aspose" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfConverter", "Aspose.Pdf.Facades.PdfConverter.BindPdf", - "Aspose.Pdf.Facades.PdfConverter.Resolution", "Aspose.Pdf.Facades.PdfConverter.DoConvert", "Aspose.Pdf.Facades.PdfConverter.HasNextImage", "Aspose.Pdf.Facades.PdfConverter.GetNextImage", - "Aspose.Pdf.Devices.Resolution" + "Aspose.Pdf.Facades.PdfConverter.Close" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:33:01Z", "status": "verified" }, - "convert-pdf-to-jpeg-96-dpi": { - "title": "Convert PDF to JPEG Images at 96 DPI", - "filename": "convert-pdf-to-jpeg-96-dpi.cs", - "description": "Demonstrates converting each page of a PDF into separate JPEG files with a web‑friendly 96 DPI resolution using Aspose.Pdf.", + "convert-pdf-to-bmp-with-font-substitution__v2": { + "title": "Convert Pdf To Bmp With Font Substitution__V2", + "filename": "convert-pdf-to-bmp-with-font-substitution__v2.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-pdf-to-high-resolution-multi-page-tiff": { + "title": "Convert PDF to High-Resolution Multi-Page TIFF", + "filename": "convert-pdf-to-high-resolution-multi-page-tiff.cs", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfConverter to convert a PDF file into a single multi-page TIFF image with a 400 DPI resolution for archival quality.", "tags": [ "pdf", - "jpeg", + "tiff", "conversion", - "resolution", + "high-resolution", "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfConverter", + "Aspose.Pdf.Devices.Resolution", "Aspose.Pdf.Facades.PdfConverter.BindPdf", - "Aspose.Pdf.Facades.PdfConverter.Resolution", "Aspose.Pdf.Facades.PdfConverter.DoConvert", - "Aspose.Pdf.Facades.PdfConverter.HasNextImage", - "Aspose.Pdf.Facades.PdfConverter.GetNextImage", - "Aspose.Pdf.Devices.Resolution" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:33:01Z", - "status": "verified" - }, - "convert-pdf-to-bmp-with-cropbox": { - "title": "Convert PDF to BMP Images Using CropBox", - "filename": "convert-pdf-to-bmp-with-cropbox.cs", - "description": "Demonstrates loading a PDF (creating a placeholder if missing) and rendering each page to a BMP image with Aspose.Pdf's BmpDevice, which automatically respects the page's CropBox to trim margins.", - "tags": [ - "pdf", - "bmp", - "conversion", - "cropbox", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Devices.BmpDevice", - "Aspose.Pdf.Devices.Resolution", - "Aspose.Pdf.Page", - "Aspose.Pdf.Devices.BmpDevice.Process" + "Aspose.Pdf.Facades.PdfConverter.SaveAsTIFF", + "Aspose.Pdf.Facades.PdfConverter.Close" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:33:01Z", "status": "verified" }, - "convert-pdf-to-multi-page-tiff": { - "title": "Convert PDF to Multi-Page TIFF with Font Substitution", - "filename": "convert-pdf-to-multi-page-tiff.cs", - "description": "Demonstrates converting a PDF document to a multi-page TIFF image using Aspose.Pdf, with optional Symbol-to-Arial Unicode font substitution during rendering.", + "convert-pdf-to-jpeg-300dpi-cropbox": { + "title": "Convert PDF to JPEG Images with 300 DPI and CropBox", + "filename": "convert-pdf-to-jpeg-300dpi-cropbox.cs", + "description": "Demonstrates converting each page of a PDF to high‑resolution JPEG images (300 DPI) using the CropBox coordinate type for precise cropping.", "tags": [ "pdf", - "tiff", + "jpeg", "conversion", - "font-substitution", - "aspose-pdf" + "300dpi", + "cropbox" ], "apis_used": [ - "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfConverter", "Aspose.Pdf.Devices.Resolution", - "Aspose.Pdf.Devices.TiffSettings", - "Aspose.Pdf.Devices.TiffDevice", - "Aspose.Pdf.Devices.TiffDevice.Process", - "Aspose.Pdf.Devices.CompressionType", - "Aspose.Pdf.Devices.ColorDepth", - "Aspose.Pdf.Devices.ShapeType" + "Aspose.Pdf.PageCoordinateType", + "Aspose.Pdf.Facades.PdfConverter.BindPdf", + "Aspose.Pdf.Facades.PdfConverter.DoConvert", + "Aspose.Pdf.Facades.PdfConverter.HasNextImage", + "Aspose.Pdf.Facades.PdfConverter.GetNextImage" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:33:01Z", "status": "verified" }, - "convert-pdf-to-png-parallel": { - "title": "Convert PDF to PNG Images in Parallel", - "filename": "convert-pdf-to-png-parallel.cs", - "description": "Demonstrates converting each page of a PDF into separate PNG files using Aspose.Pdf's PdfConverter with parallel processing to improve conversion speed.", + "convert-pdf-to-jpeg-96-dpi": { + "title": "Convert PDF to JPEG Images at 96 DPI", + "filename": "convert-pdf-to-jpeg-96-dpi.cs", + "description": "Demonstrates converting each page of a PDF into separate JPEG files with a web‑friendly 96 DPI resolution using Aspose.Pdf.", "tags": [ "pdf", - "png", - "parallel", + "jpeg", "conversion", - "aspose" + "resolution", + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfConverter", - "Aspose.Pdf.Document.Pages.Count", "Aspose.Pdf.Facades.PdfConverter.BindPdf", + "Aspose.Pdf.Facades.PdfConverter.Resolution", "Aspose.Pdf.Facades.PdfConverter.DoConvert", - "Aspose.Pdf.Facades.PdfConverter.GetNextImage" + "Aspose.Pdf.Facades.PdfConverter.HasNextImage", + "Aspose.Pdf.Facades.PdfConverter.GetNextImage", + "Aspose.Pdf.Devices.Resolution" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:33:01Z", "status": "verified" }, - "batch-convert-pdfs-to-jpeg": { - "title": "Batch Convert PDFs to JPEG Images", - "filename": "batch-convert-pdfs-to-jpeg.cs", - "description": "Shows how to iterate over PDF files in a folder and convert each page of every PDF into separate JPEG images using Aspose.Pdf.Facades.PdfConverter.", + "convert-pdf-to-jpeg-first-5-pages-200-dpi": { + "title": "Convert PDF to JPEG Images (First 5 Pages, 200 DPI)", + "filename": "convert-pdf-to-jpeg-first-5-pages-200-dpi.cs", + "description": "Demonstrates how to convert a PDF document to JPEG images using Aspose.Pdf, limiting the conversion to the first five pages and setting a resolution of 200 DPI.", "tags": [ "pdf", "jpeg", - "batch", "conversion", - "facade" + "resolution", + "pages" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfConverter", "Aspose.Pdf.Facades.PdfConverter.BindPdf", "Aspose.Pdf.Facades.PdfConverter.DoConvert", - "Aspose.Pdf.Facades.PdfConverter.HasNextImage", - "Aspose.Pdf.Facades.PdfConverter.GetNextImage" + "Aspose.Pdf.Facades.PdfConverter.GetNextImage", + "Aspose.Pdf.Devices.Resolution" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:33:01Z", "status": "verified" }, - "convert-pdf-to-bmp-images": { - "title": "Convert PDF to BMP Images with Resolution Settings", - "filename": "convert-pdf-to-bmp-images.cs", - "description": "Demonstrates how to convert each page of a PDF document to BMP images using Aspose.Pdf.Facades.PdfConverter, configuring the output resolution before conversion.", + "convert-pdf-to-jpeg-first-5-pages": { + "title": "Convert Pdf To Jpeg First 5 Pages", + "filename": "convert-pdf-to-jpeg-first-5-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-pdf-to-jpeg-images": { + "title": "Convert PDF to JPEG Images", + "filename": "convert-pdf-to-jpeg-images.cs", + "description": "Demonstrates converting each page of a PDF into separate JPEG files while preserving the original page dimensions using Aspose.Pdf.Facades.PdfConverter.", "tags": [ "pdf", - "bmp", + "jpeg", "conversion", - "resolution", + "aspose", "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfConverter", - "Aspose.Pdf.Document", - "Aspose.Pdf.Devices.Resolution", "PdfConverter.BindPdf", "PdfConverter.DoConvert", "PdfConverter.HasNextImage", "PdfConverter.GetNextImage" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:33:01Z", "status": "verified" }, - "convert-pdf-pages-to-tiff": { - "title": "Convert PDF Pages to Individual TIFF Images", - "filename": "convert-pdf-pages-to-tiff.cs", - "description": "Shows how to use Aspose.Pdf.Facades.PdfConverter to extract each page of a PDF and save it as a separate TIFF file.", + "convert-pdf-to-jpeg-images__v2": { + "title": "Convert PDF to JPEG Images Using PdfConverter", + "filename": "convert-pdf-to-jpeg-images__v2.cs", + "description": "Demonstrates how to extract each page of a PDF as a separate JPEG file using Aspose.Pdf's PdfConverter facade.", "tags": [ "pdf", - "tiff", + "jpeg", "conversion", "facade", - "aspose" + "image" ], "apis_used": [ "Aspose.Pdf.Facades.PdfConverter", - "PdfConverter.BindPdf", - "PdfConverter.DoConvert", - "PdfConverter.HasNextImage", - "PdfConverter.GetNextImage" + "Aspose.Pdf.Facades.PdfConverter.BindPdf", + "Aspose.Pdf.Facades.PdfConverter.DoConvert", + "Aspose.Pdf.Facades.PdfConverter.HasNextImage", + "Aspose.Pdf.Facades.PdfConverter.GetNextImage" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:33:01Z", "status": "verified" }, - "convert-pdf-to-png-with-font-substitution": { - "title": "Convert PDF to PNG with Font Substitution", - "filename": "convert-pdf-to-png-with-font-substitution.cs", - "description": "Shows how to render each page of a PDF document to PNG images using Aspose.Pdf and replace missing Helvetica fonts with Times New Roman via font substitution.", + "convert-pdf-to-jpeg-images__v3": { + "title": "Convert PDF to JPEG Images (One Image per Page)", + "filename": "convert-pdf-to-jpeg-images__v3.cs", + "description": "Shows how to use Aspose.Pdf's PdfConverter to convert each page of a PDF document into separate JPEG files, saving them with a page-number suffix.", "tags": [ "pdf", - "png", - "font-substitution", - "rendering", - "aspose" + "jpeg", + "conversion", + "aspose", + "facade" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Devices.PngDevice", - "Aspose.Pdf.Devices.PngDevice.Process", - "Aspose.Pdf.Text.SimpleFontSubstitution", - "Aspose.Pdf.FontRepository.Substitutions.Add" + "Aspose.Pdf.Facades.PdfConverter", + "Aspose.Pdf.Facades.PdfConverter.DoConvert", + "Aspose.Pdf.Facades.PdfConverter.HasNextImage", + "Aspose.Pdf.Facades.PdfConverter.GetNextImage" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:33:01Z", @@ -537,249 +649,282 @@ "generated_at": "2026-08-20T07:33:01Z", "status": "verified" }, - "convert-pdf-to-bmp-200-dpi": { - "title": "Convert PDF to BMP Images with 200 DPI", - "filename": "convert-pdf-to-bmp-200-dpi.cs", - "description": "Shows how to load a PDF using Aspose.Pdf, set a 200 DPI resolution, and convert each page to a BMP file while using the default CropBox for balanced quality.", + "convert-pdf-to-jpeg-preview": { + "title": "Convert Pdf To Jpeg Preview", + "filename": "convert-pdf-to-jpeg-preview.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-pdf-to-jpeg-with-font-substitution": { + "title": "Convert PDF to JPEG with Font Substitution", + "filename": "convert-pdf-to-jpeg-with-font-substitution.cs", + "description": "Shows how to convert each page of a PDF into JPEG images while applying a custom font substitution for any missing fonts using Aspose.Pdf.", "tags": [ "pdf", - "bmp", + "jpeg", + "font-substitution", "conversion", - "resolution", - "aspose-pdf" + "facade" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Devices.Resolution", - "Aspose.Pdf.Devices.BmpDevice", - "Aspose.Pdf.Devices.BmpDevice.Process", - "Aspose.Pdf.Page" + "Aspose.Pdf.PdfSaveOptions", + "Aspose.Pdf.Facades.PdfConverter", + "Aspose.Pdf.Facades.PdfConverter.BindPdf", + "Aspose.Pdf.Facades.PdfConverter.DoConvert", + "Aspose.Pdf.Facades.PdfConverter.HasNextImage", + "Aspose.Pdf.Facades.PdfConverter.GetNextImage" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:33:01Z", "status": "verified" }, - "convert-pdf-to-high-resolution-multi-page-tiff": { - "title": "Convert PDF to High-Resolution Multi-Page TIFF", - "filename": "convert-pdf-to-high-resolution-multi-page-tiff.cs", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfConverter to convert a PDF file into a single multi-page TIFF image with a 400 DPI resolution for archival quality.", + "convert-pdf-to-multi-page-tiff-300-dpi": { + "title": "Convert PDF to Multi-Page TIFF at 300 DPI", + "filename": "convert-pdf-to-multi-page-tiff-300-dpi.cs", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfConverter to convert a PDF document into a single multi-page TIFF image with a 300 DPI resolution.", "tags": [ "pdf", "tiff", "conversion", - "high-resolution", - "facade" + "300dpi", + "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.PdfConverter", - "Aspose.Pdf.Devices.Resolution", "Aspose.Pdf.Facades.PdfConverter.BindPdf", + "Aspose.Pdf.Facades.PdfConverter.Resolution", "Aspose.Pdf.Facades.PdfConverter.DoConvert", "Aspose.Pdf.Facades.PdfConverter.SaveAsTIFF", - "Aspose.Pdf.Facades.PdfConverter.Close" + "Aspose.Pdf.Devices.Resolution" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:33:01Z", "status": "verified" }, - "convert-pdf-to-png-with-font-substitution__v2": { - "title": "Convert PDF to PNG with Font Substitution", - "filename": "convert-pdf-to-png-with-font-substitution__v2.cs", - "description": "Shows how to convert each page of a PDF into PNG images while enabling font substitution for missing fonts using Aspose.Pdf.", + "convert-pdf-to-multi-page-tiff-400-dpi": { + "title": "Convert Pdf To Multi Page Tiff 400 Dpi", + "filename": "convert-pdf-to-multi-page-tiff-400-dpi.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-pdf-to-multi-page-tiff-600-dpi": { + "title": "Convert PDF to Multi-Page TIFF at 600 DPI", + "filename": "convert-pdf-to-multi-page-tiff-600-dpi.cs", + "description": "Demonstrates how to use Aspose.Pdf's PdfConverter to convert a PDF document into a single multi-page TIFF image with a resolution of 600 DPI.", "tags": [ "pdf", - "png", - "font-substitution", + "tiff", "conversion", - "Aspose.Pdf" + "resolution", + "aspose" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.FontRepository", - "Aspose.Pdf.Text.SimpleFontSubstitution", - "Aspose.Pdf.Devices.PngDevice", - "Aspose.Pdf.Devices.PngDevice.Process" + "Aspose.Pdf.Facades.PdfConverter", + "Aspose.Pdf.Facades.PdfConverter.BindPdf", + "Aspose.Pdf.Facades.PdfConverter.DoConvert", + "Aspose.Pdf.Facades.PdfConverter.SaveAsTIFF", + "Aspose.Pdf.Devices.Resolution" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:33:01Z", "status": "verified" }, - "convert-pdf-to-jpeg-images__v2": { - "title": "Convert PDF to JPEG Images Using PdfConverter", - "filename": "convert-pdf-to-jpeg-images__v2.cs", - "description": "Demonstrates how to extract each page of a PDF as a separate JPEG file using Aspose.Pdf's PdfConverter facade.", + "convert-pdf-to-multi-page-tiff-with-font-substitution": { + "title": "Convert PDF to Multi-Page TIFF with Font Substitution", + "filename": "convert-pdf-to-multi-page-tiff-with-font-substitution.cs", + "description": "Demonstrates loading a PDF, applying a Courier → Liberation Mono font substitution, and converting all pages to a single multi-page TIFF using Aspose.Pdf.Facades.", "tags": [ "pdf", - "jpeg", + "tiff", + "font-substitution", "conversion", - "facade", - "image" + "aspose-pdf" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.FontRepository", + "Aspose.Pdf.Text.SimpleFontSubstitution", "Aspose.Pdf.Facades.PdfConverter", - "Aspose.Pdf.Facades.PdfConverter.BindPdf", "Aspose.Pdf.Facades.PdfConverter.DoConvert", - "Aspose.Pdf.Facades.PdfConverter.HasNextImage", - "Aspose.Pdf.Facades.PdfConverter.GetNextImage" + "Aspose.Pdf.Facades.PdfConverter.SaveAsTIFF" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:33:01Z", "status": "verified" }, - "convert-pdf-to-bmp-first-10-pages": { - "title": "Convert PDF to BMP Images (First 10 Pages)", - "filename": "convert-pdf-to-bmp-first-10-pages.cs", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfConverter to convert the first ten pages of a PDF into BMP image files.", + "convert-pdf-to-multi-page-tiff-with-font-substitution__v2": { + "title": "Convert PDF to Multi-Page TIFF with Font Substitution", + "filename": "convert-pdf-to-multi-page-tiff-with-font-substitution__v2.cs", + "description": "Demonstrates how to convert a PDF to a single multi-page TIFF while substituting missing Symbol fonts with Arial Unicode MS for proper character rendering.", "tags": [ "pdf", - "bmp", + "tiff", + "font-substitution", "conversion", - "facade", - "pages" + "aspose-pdf" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.PdfSaveOptions", "Aspose.Pdf.Facades.PdfConverter", - "PdfConverter.BindPdf", - "PdfConverter.StartPage", - "PdfConverter.EndPage", - "PdfConverter.DoConvert", - "PdfConverter.HasNextImage", - "PdfConverter.GetNextImage", - "PdfConverter.Close" + "Aspose.Pdf.Facades.PdfConverter.BindPdf", + "Aspose.Pdf.Facades.PdfConverter.DoConvert", + "Aspose.Pdf.Facades.PdfConverter.SaveAsTIFF" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:33:01Z", "status": "verified" }, - "convert-pdf-to-multi-page-tiff-with-font-substitution": { + "convert-pdf-to-multi-page-tiff": { "title": "Convert PDF to Multi-Page TIFF with Font Substitution", - "filename": "convert-pdf-to-multi-page-tiff-with-font-substitution.cs", - "description": "Demonstrates loading a PDF, applying a Courier → Liberation Mono font substitution, and converting all pages to a single multi-page TIFF using Aspose.Pdf.Facades.", + "filename": "convert-pdf-to-multi-page-tiff.cs", + "description": "Demonstrates converting a PDF document to a multi-page TIFF image using Aspose.Pdf, with optional Symbol-to-Arial Unicode font substitution during rendering.", "tags": [ "pdf", "tiff", - "font-substitution", "conversion", + "font-substitution", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.FontRepository", - "Aspose.Pdf.Text.SimpleFontSubstitution", - "Aspose.Pdf.Facades.PdfConverter", - "Aspose.Pdf.Facades.PdfConverter.DoConvert", - "Aspose.Pdf.Facades.PdfConverter.SaveAsTIFF" + "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.Devices.TiffSettings", + "Aspose.Pdf.Devices.TiffDevice", + "Aspose.Pdf.Devices.TiffDevice.Process", + "Aspose.Pdf.Devices.CompressionType", + "Aspose.Pdf.Devices.ColorDepth", + "Aspose.Pdf.Devices.ShapeType" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:33:01Z", "status": "verified" }, - "convert-pdf-to-png-72-dpi__v2": { - "title": "Convert PDF to PNG Images with 72 DPI", - "filename": "convert-pdf-to-png-72-dpi__v2.cs", - "description": "Demonstrates loading a PDF using Aspose.Pdf, setting a 72 DPI resolution, and converting each page to PNG images while preserving the CropBox.", + "convert-pdf-to-png-300-dpi": { + "title": "Convert PDF to PNG Images at 300 DPI", + "filename": "convert-pdf-to-png-300-dpi.cs", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, set a 300 DPI resolution, and render each page to separate PNG files.", "tags": [ "pdf", "png", "conversion", - "resolution", + "300dpi", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Devices.PngDevice", "Aspose.Pdf.Devices.Resolution", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Devices.PngDevice.Process" + "Aspose.Pdf.Devices.PngDevice", + "Aspose.Pdf.Devices.PngDevice.Process", + "Aspose.Pdf.Page" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:33:01Z", "status": "verified" }, - "convert-pdf-to-jpeg-images__v3": { - "title": "Convert PDF to JPEG Images (One Image per Page)", - "filename": "convert-pdf-to-jpeg-images__v3.cs", - "description": "Shows how to use Aspose.Pdf's PdfConverter to convert each page of a PDF document into separate JPEG files, saving them with a page-number suffix.", + "convert-pdf-to-png-72-dpi": { + "title": "Convert PDF to PNG Images with 72 DPI Preview", + "filename": "convert-pdf-to-png-72-dpi.cs", + "description": "Demonstrates how to convert each page of a PDF into PNG images at 72 DPI using Aspose.Pdf's PdfConverter facade.", "tags": [ "pdf", - "jpeg", + "png", "conversion", - "aspose", - "facade" + "preview", + "resolution" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfConverter", + "Aspose.Pdf.Facades.PdfConverter.BindPdf", + "Aspose.Pdf.Facades.PdfConverter.Resolution", "Aspose.Pdf.Facades.PdfConverter.DoConvert", "Aspose.Pdf.Facades.PdfConverter.HasNextImage", - "Aspose.Pdf.Facades.PdfConverter.GetNextImage" + "Aspose.Pdf.Facades.PdfConverter.GetNextImage", + "Aspose.Pdf.Devices.Resolution" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:33:01Z", "status": "verified" }, - "convert-pdf-pages-to-bmp-150-dpi": { - "title": "Convert PDF Pages to BMP Images (150 DPI)", - "filename": "convert-pdf-pages-to-bmp-150-dpi.cs", - "description": "Demonstrates loading a PDF with Aspose.Pdf, setting a 150 DPI resolution, and converting the first 20 pages to BMP files using BmpDevice.", + "convert-pdf-to-png-72-dpi__v2": { + "title": "Convert PDF to PNG Images with 72 DPI", + "filename": "convert-pdf-to-png-72-dpi__v2.cs", + "description": "Demonstrates loading a PDF using Aspose.Pdf, setting a 72 DPI resolution, and converting each page to PNG images while preserving the CropBox.", "tags": [ "pdf", - "bmp", + "png", "conversion", - "aspose", - "resolution" + "resolution", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Devices.PngDevice", "Aspose.Pdf.Devices.Resolution", - "Aspose.Pdf.Devices.BmpDevice", - "Aspose.Pdf.Devices.BmpDevice.Process", - "Aspose.Pdf.PageCollection" + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Devices.PngDevice.Process" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:33:01Z", "status": "verified" }, - "convert-pdf-to-multi-page-tiff-with-font-substitution__v2": { - "title": "Convert PDF to Multi-Page TIFF with Font Substitution", - "filename": "convert-pdf-to-multi-page-tiff-with-font-substitution__v2.cs", - "description": "Demonstrates how to convert a PDF to a single multi-page TIFF while substituting missing Symbol fonts with Arial Unicode MS for proper character rendering.", + "convert-pdf-to-png-images": { + "title": "Convert PDF to PNG Images", + "filename": "convert-pdf-to-png-images.cs", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfConverter to convert each page of a PDF document into separate PNG files with sequential naming.", "tags": [ "pdf", - "tiff", - "font-substitution", + "png", "conversion", - "aspose-pdf" + "aspose-pdf", + "csharp" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.PdfSaveOptions", "Aspose.Pdf.Facades.PdfConverter", "Aspose.Pdf.Facades.PdfConverter.BindPdf", "Aspose.Pdf.Facades.PdfConverter.DoConvert", - "Aspose.Pdf.Facades.PdfConverter.SaveAsTIFF" + "Aspose.Pdf.Facades.PdfConverter.HasNextImage", + "Aspose.Pdf.Facades.PdfConverter.GetNextImage" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:33:01Z", "status": "verified" }, - "convert-pdf-odd-pages-to-png": { - "title": "Convert PDF Odd Pages to PNG Images", - "filename": "convert-pdf-odd-pages-to-png.cs", - "description": "Shows how to extract only the odd‑numbered pages from a PDF and save each page as a separate PNG file using Aspose.Pdf.", + "convert-pdf-to-png-in-parallel": { + "title": "Convert Pdf To Png In Parallel", + "filename": "convert-pdf-to-png-in-parallel.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-pdf-to-png-parallel": { + "title": "Convert PDF to PNG Images in Parallel", + "filename": "convert-pdf-to-png-parallel.cs", + "description": "Demonstrates converting each page of a PDF into separate PNG files using Aspose.Pdf's PdfConverter with parallel processing to improve conversion speed.", "tags": [ "pdf", "png", - "odd-pages", + "parallel", "conversion", - "facade" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfConverter", + "Aspose.Pdf.Document.Pages.Count", "Aspose.Pdf.Facades.PdfConverter.BindPdf", - "Aspose.Pdf.Facades.PdfConverter.StartPage", - "Aspose.Pdf.Facades.PdfConverter.EndPage", "Aspose.Pdf.Facades.PdfConverter.DoConvert", "Aspose.Pdf.Facades.PdfConverter.GetNextImage" ], @@ -787,74 +932,69 @@ "generated_at": "2026-08-20T07:33:01Z", "status": "verified" }, - "convert-pdf-to-jpeg-300dpi-cropbox": { - "title": "Convert PDF to JPEG Images with 300 DPI and CropBox", - "filename": "convert-pdf-to-jpeg-300dpi-cropbox.cs", - "description": "Demonstrates converting each page of a PDF to high‑resolution JPEG images (300 DPI) using the CropBox coordinate type for precise cropping.", + "convert-pdf-to-png-with-font-substitution": { + "title": "Convert PDF to PNG with Font Substitution", + "filename": "convert-pdf-to-png-with-font-substitution.cs", + "description": "Shows how to render each page of a PDF document to PNG images using Aspose.Pdf and replace missing Helvetica fonts with Times New Roman via font substitution.", "tags": [ "pdf", - "jpeg", - "conversion", - "300dpi", - "cropbox" + "png", + "font-substitution", + "rendering", + "aspose" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfConverter", - "Aspose.Pdf.Devices.Resolution", - "Aspose.Pdf.PageCoordinateType", - "Aspose.Pdf.Facades.PdfConverter.BindPdf", - "Aspose.Pdf.Facades.PdfConverter.DoConvert", - "Aspose.Pdf.Facades.PdfConverter.HasNextImage", - "Aspose.Pdf.Facades.PdfConverter.GetNextImage" + "Aspose.Pdf.Document", + "Aspose.Pdf.Devices.PngDevice", + "Aspose.Pdf.Devices.PngDevice.Process", + "Aspose.Pdf.Text.SimpleFontSubstitution", + "Aspose.Pdf.FontRepository.Substitutions.Add" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:33:01Z", "status": "verified" }, - "convert-pdf-to-bmp-with-font-substitution": { - "title": "Convert PDF Pages to BMP Images with Font Substitution", - "filename": "convert-pdf-to-bmp-with-font-substitution.cs", - "description": "Shows how to convert each page of a PDF document to BMP images using Aspose.Pdf's PdfConverter, with automatic font substitution for missing fonts.", + "convert-pdf-to-png-with-font-substitution__v2": { + "title": "Convert PDF to PNG with Font Substitution", + "filename": "convert-pdf-to-png-with-font-substitution__v2.cs", + "description": "Shows how to convert each page of a PDF into PNG images while enabling font substitution for missing fonts using Aspose.Pdf.", "tags": [ "pdf", - "bmp", - "conversion", + "png", "font-substitution", - "aspose" + "conversion", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfConverter", - "Aspose.Pdf.Facades.PdfConverter.BindPdf", - "Aspose.Pdf.Facades.PdfConverter.DoConvert", - "Aspose.Pdf.Facades.PdfConverter.HasNextImage", - "Aspose.Pdf.Facades.PdfConverter.GetNextImage", - "Aspose.Pdf.Facades.PdfConverter.Close" + "Aspose.Pdf.FontRepository", + "Aspose.Pdf.Text.SimpleFontSubstitution", + "Aspose.Pdf.Devices.PngDevice", + "Aspose.Pdf.Devices.PngDevice.Process" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:33:01Z", "status": "verified" }, - "convert-pdf-pages-to-multi-page-tiff": { - "title": "Convert PDF Pages 4-9 to Multi-Page TIFF", - "filename": "convert-pdf-pages-to-multi-page-tiff.cs", - "description": "Demonstrates extracting pages 4 through 9 from a PDF and saving them as a single multi-page TIFF using Aspose.Pdf's PdfConverter facade.", + "convert-pdf-to-tiff-images": { + "title": "Convert PDF to TIFF Images (One per Page)", + "filename": "convert-pdf-to-tiff-images.cs", + "description": "Demonstrates loading a PDF document and converting each page to an individual TIFF file using Aspose.Pdf's TiffDevice with default settings.", "tags": [ "pdf", "tiff", - "page-range", "conversion", - "facade" + "aspose.pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfConverter", - "Aspose.Pdf.Facades.PdfConverter.StartPage", - "Aspose.Pdf.Facades.PdfConverter.EndPage", - "Aspose.Pdf.Facades.PdfConverter.DoConvert", - "Aspose.Pdf.Facades.PdfConverter.SaveAsTIFF" + "Aspose.Pdf.Devices.TiffDevice", + "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Page" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:33:01Z", "status": "verified" } diff --git a/facades-documents/AGENTS.md b/facades-documents/AGENTS.md index 839ead87e..f9fa27423 100644 --- a/facades-documents/AGENTS.md +++ b/facades-documents/AGENTS.md @@ -8,7 +8,7 @@ parent: ../agents.md # AGENTS - facades-documents -> **Facades documents** in PDF using C# / .NET -- **101** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. +> **Facades documents** in PDF using C# / .NET -- **153** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. ## Persona @@ -23,21 +23,21 @@ See the root [agents.md](../agents.md) for repository-wide conventions and bound ## Required Namespaces -- `using Aspose.Pdf.Facades;` (98/101 files) ← category-specific -- `using Aspose.Pdf;` (37/101 files) -- `using Aspose.Pdf.Text;` (8/101 files) -- `using Aspose.Pdf.Devices;` (1/101 files) -- `using Aspose.Pdf.Drawing;` (1/101 files) -- `using System;` (101/101 files) -- `using System.IO;` (99/101 files) -- `using System.Collections.Generic;` (11/101 files) -- `using System.Diagnostics;` (3/101 files) -- `using System.Linq;` (3/101 files) -- `using NUnit.Framework;` (2/101 files) -- `using System.Threading.Tasks;` (2/101 files) -- `using System.Globalization;` (1/101 files) -- `using System.IO.Compression;` (1/101 files) -- `using System.Net.Http;` (1/101 files) +- `using Aspose.Pdf.Facades;` (98/153 files) ← category-specific +- `using Aspose.Pdf;` (37/153 files) +- `using Aspose.Pdf.Text;` (8/153 files) +- `using Aspose.Pdf.Devices;` (1/153 files) +- `using Aspose.Pdf.Drawing;` (1/153 files) +- `using System;` (101/153 files) +- `using System.IO;` (99/153 files) +- `using System.Collections.Generic;` (11/153 files) +- `using System.Diagnostics;` (3/153 files) +- `using System.Linq;` (3/153 files) +- `using NUnit.Framework;` (2/153 files) +- `using System.Threading.Tasks;` (2/153 files) +- `using System.Globalization;` (1/153 files) +- `using System.IO.Compression;` (1/153 files) +- `using System.Net.Http;` (1/153 files) ## Common Code Pattern @@ -56,14 +56,19 @@ tool.Save("output.pdf"); |------|-------|----------|-------------| | [append-pages-from-multiple-pdfs](./append-pages-from-multiple-pdfs.cs) | Append Pages from Multiple PDFs to a Base PDF | `PdfFileEditor`, `TryAppend`, `LastException` | Demonstrates inserting a specific page range from several source PDFs into a base PDF in a single... | | [append-pages-to-pdf](./append-pages-to-pdf.cs) | Append Pages from One PDF to Another | `Document`, `PdfFileEditor`, `Append` | Shows how to append all pages of a source PDF to the end of a destination PDF using Aspose.Pdf's ... | +| [append-pdf-pages-using-pdffileeditor](./append-pdf-pages-using-pdffileeditor.cs) | Append pdf pages using pdffileeditor | | Append pdf pages using pdffileeditor | | [audit-log-pdf-page-deletion](./audit-log-pdf-page-deletion.cs) | Audit Log for PDF Page Deletion | `Document`, `PdfFileEditor`, `TryDelete` | Demonstrates how to delete specific pages from a PDF using Aspose.Pdf's facade API and log the nu... | | [batch-concatenate-pdfs](./batch-concatenate-pdfs.cs) | Batch Concatenate PDFs in a Folder | `PdfFileEditor`, `Concatenate` | Shows how to gather all PDF files from a directory and merge them into a single PDF using Aspose.... | +| [batch-create-3x2-nup-pdfs](./batch-create-3x2-nup-pdfs.cs) | Batch create 3x2 nup pdfs | | Batch create 3x2 nup pdfs | | [batch-create-nup-pdfs-3x2](./batch-create-nup-pdfs-3x2.cs) | Batch Create N‑up PDFs with 3 Columns and 2 Rows | `PdfFileEditor`, `MakeNUp` | Shows how to iterate over a list of PDF files and generate N‑up versions using a 3‑column by 2‑ro... | +| [batch-create-pdf-booklets-audit-logging](./batch-create-pdf-booklets-audit-logging.cs) | Batch create pdf booklets audit logging | | Batch create pdf booklets audit logging | | [batch-delete-pages-from-multiple-pdfs](./batch-delete-pages-from-multiple-pdfs.cs) | Batch Delete Pages from Multiple PDFs | `PdfFileEditor`, `Delete` | Demonstrates how to loop through PDF files in a folder and delete specific pages from each using ... | +| [batch-delete-pages-from-pdfs](./batch-delete-pages-from-pdfs.cs) | Batch delete pages from pdfs | | Batch delete pages from pdfs | | [batch-delete-pages-merge-pdfs](./batch-delete-pages-merge-pdfs.cs) | Batch Delete Pages and Merge PDFs | `PdfFileEditor`, `Delete`, `Concatenate` | Shows how to remove specific pages from multiple PDF files and then concatenate the cleaned PDFs ... | | [batch-insert-page-ranges](./batch-insert-page-ranges.cs) | Batch Insert Page Ranges from Multiple PDFs | `PdfFileEditor`, `TryInsert` | Shows how to insert selected pages from several source PDFs into a single destination PDF in a lo... | | [batch-resize-pdfs-to-a4](./batch-resize-pdfs-to-a4.cs) | Batch Resize PDFs to A4 | `PdfPageEditor`, `BindPdf`, `PageSize` | Iterates through all PDF files in a source folder, resizes each document to A4 page size using As... | | [batch-resize-pdfs-to-a5-and-create-booklets](./batch-resize-pdfs-to-a5-and-create-booklets.cs) | Batch Resize PDFs to A5 and Create Booklets | `PdfFileEditor`, `ResizeContents`, `MakeBooklet` | Processes each PDF in a folder, resizes its pages to A5 dimensions, and then generates a booklet ... | +| [compare-pdf-concatenation-overloads](./compare-pdf-concatenation-overloads.cs) | Compare pdf concatenation overloads | | Compare pdf concatenation overloads | | [compare-pdf-concatenation-paths-streams](./compare-pdf-concatenation-paths-streams.cs) | Compare PDF Concatenation via File Paths and Streams | `PdfFileEditor`, `Concatenate(string, string, string)`, `Concatenate(Stream, Stream, Stream)` | Demonstrates how to concatenate two PDF files using Aspose.Pdf.Facades.PdfFileEditor with both fi... | | [concatenate-multiple-pdfs-measure-time](./concatenate-multiple-pdfs-measure-time.cs) | Concatenate Multiple PDFs and Measure Execution Time | `PdfFileEditor`, `Concatenate`, `CloseConcatenatedStreams` | Demonstrates how to concatenate fifty small PDF files using Aspose.Pdf.Facades.PdfFileEditor stre... | | [concatenate-multiple-pdfs-with-logging](./concatenate-multiple-pdfs-with-logging.cs) | Concatenate Multiple PDFs with Logging | `PdfFileEditor`, `Concatenate`, `CopyLogicalStructure` | Demonstrates how to merge several PDF files into a single document using Aspose.Pdf.Facades.PdfFi... | @@ -71,23 +76,18 @@ tool.Save("output.pdf"); | [concatenate-multiple-pdfs__v2](./concatenate-multiple-pdfs__v2.cs) | Concatenate Multiple PDFs Using Aspose.Pdf | `PdfFileEditor`, `Concatenate`, `CloseConcatenatedStreams` | Demonstrates reading PDF files as streams, merging them with Aspose.Pdf.Facades.PdfFileEditor, an... | | [concatenate-pdfs-add-page-numbers](./concatenate-pdfs-add-page-numbers.cs) | Concatenate PDFs and Add Page Numbers | `PdfFileEditor`, `Concatenate`, `PdfFileStamp` | Shows how to merge multiple PDF files into a single document and automatically insert page number... | | [concatenate-pdfs-from-memory-streams](./concatenate-pdfs-from-memory-streams.cs) | Concatenate PDFs from Memory Streams to File | `Document`, `Page`, `TextFragment` | Creates PDF documents in memory, concatenates them using Aspose.Pdf.Facades.PdfFileEditor, and wr... | +| [concatenate-pdfs-from-zip](./concatenate-pdfs-from-zip.cs) | Concatenate pdfs from zip | | Concatenate pdfs from zip | | [concatenate-pdfs-in-zip](./concatenate-pdfs-in-zip.cs) | Concatenate PDFs Inside a Zip Archive | `PdfFileEditor`, `Concatenate`, `Document` | Shows how to read PDF files from a zip archive, merge them with Aspose.Pdf.Facades.PdfFileEditor,... | | [concatenate-pdfs-preserve-metadata](./concatenate-pdfs-preserve-metadata.cs) | Concatenate PDFs While Preserving Original Metadata | `PdfFileInfo`, `PdfFileEditor`, `Concatenate` | Demonstrates how to merge multiple PDF files using PdfFileEditor and then copy the author, title,... | | [concatenate-pdfs-using-stream-overloads](./concatenate-pdfs-using-stream-overloads.cs) | Concatenate PDFs Using Stream Overloads | `PdfFileEditor`, `Concatenate`, `CloseConcatenatedStreams` | Shows how to merge multiple PDF files passed as command‑line arguments into a single PDF using As... | | [concatenate-pdfs-with-blank-pages](./concatenate-pdfs-with-blank-pages.cs) | Concatenate PDFs with Blank Pages | `Document`, `Add`, `Save` | Shows how to merge multiple PDF files and automatically insert a blank page between each document... | +| [concatenate-split-pdfs-insertpages](./concatenate-split-pdfs-insertpages.cs) | Concatenate split pdfs insertpages | | Concatenate split pdfs insertpages | | [concatenate-split-pdfs](./concatenate-split-pdfs.cs) | Concatenate Split PDFs into a Single Document | `PdfFileEditor`, `Insert`, `Document` | Shows how to merge a series of split PDF files into one PDF using Aspose.Pdf's PdfFileEditor.Inse... | | [concatenate-three-pdfs-into-one](./concatenate-three-pdfs-into-one.cs) | Concatenate Three PDFs into a Single Document | `PdfFileEditor`, `Concatenate` | Demonstrates how to merge three PDF files into one using Aspose.Pdf.Facades.PdfFileEditor and the... | -| [concatenate-two-pdfs-using-pdffileeditor](./concatenate-two-pdfs-using-pdffileeditor.cs) | Concatenate Two PDFs Using PdfFileEditor | `PdfFileEditor`, `Concatenate`, `Document` | Shows how to merge two PDF files into a single document using the two‑file overload of PdfFileEdi... | -| [create-2up-pdf-layout](./create-2up-pdf-layout.cs) | Create 2-up PDF Layout with Aspose PdfFileEditor | `PdfFileEditor`, `MakeNUp` | Demonstrates how to use Aspose.Pdf.Facades.PdfFileEditor to combine two PDF pages onto a single p... | -| [create-4up-pdf-with-pdffileeditor](./create-4up-pdf-with-pdffileeditor.cs) | Create 4‑up PDF using PdfFileEditor and MemoryStream | `PdfFileEditor`, `TryMakeNUp` | Demonstrates how to apply a 4‑up (2×2) layout to an existing PDF by using the PdfFileEditor.TryMa... | -| [create-a5-booklet-from-pdf](./create-a5-booklet-from-pdf.cs) | Create A5 Booklet from PDF | `PdfFileEditor`, `MakeBooklet`, `PageSize` | Demonstrates how to generate a booklet with A5 page size from an existing PDF using Aspose.Pdf's ... | -| [create-booklet-custom-page-order](./create-booklet-custom-page-order.cs) | Create Booklet with Custom Left/Right Page Order | `Document`, `TextFragment`, `TextAbsorber` | Demonstrates adding visible page numbers, defining custom left and right page arrays, and using A... | -| [create-booklet-from-second-half](./create-booklet-from-second-half.cs) | Create Booklet from Second Half of PDF | `Document`, `PdfFileEditor`, `MakeBooklet` | Demonstrates how to generate a booklet PDF where the left pages come from the first half of a sou... | -| [create-booklet-pdf-custom-page-order](./create-booklet-pdf-custom-page-order.cs) | Create Booklet PDF with Custom Page Order | `PdfFileEditor`, `MakeBooklet` | Demonstrates how to generate a booklet PDF by specifying left‑hand and right‑hand page sequences ... | -| ... | | | *and 71 more files* | +| ... | | | *and 123 more files* | ## Category Statistics -- Total examples: 101 +- Total examples: 153 ## Category-Specific Tips @@ -131,5 +131,5 @@ tool.Save("output.pdf"); - Review code examples in this folder for facades-documents patterns -Updated: 2026-08-20 | Run: `20260820_001147_12d7b3` +Updated: 2026-09-10 | Run: `20260910_054408_87a7f4` diff --git a/facades-documents/README.md b/facades-documents/README.md new file mode 100644 index 000000000..8e21d5a6a --- /dev/null +++ b/facades-documents/README.md @@ -0,0 +1,172 @@ +# Facades documents + +> **Facades documents** in PDF using C# / .NET -- **153** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. + +- Category: `facades-documents` +- Examples: 153 +- NuGet: `Aspose.PDF 26.8.0` -- target `net10.0` + +## Examples + +- [`append-pages-from-multiple-pdfs.cs`](./append-pages-from-multiple-pdfs.cs) -- Append pages from multiple pdfs +- [`append-pages-to-pdf.cs`](./append-pages-to-pdf.cs) -- Append pages to pdf +- [`append-pdf-pages-using-pdffileeditor.cs`](./append-pdf-pages-using-pdffileeditor.cs) -- Append pdf pages using pdffileeditor +- [`audit-log-pdf-page-deletion.cs`](./audit-log-pdf-page-deletion.cs) -- Audit log pdf page deletion +- [`batch-concatenate-pdfs.cs`](./batch-concatenate-pdfs.cs) -- Batch concatenate pdfs +- [`batch-create-3x2-nup-pdfs.cs`](./batch-create-3x2-nup-pdfs.cs) -- Batch create 3x2 nup pdfs +- [`batch-create-nup-pdfs-3x2.cs`](./batch-create-nup-pdfs-3x2.cs) -- Batch create nup pdfs 3x2 +- [`batch-create-pdf-booklets-audit-logging.cs`](./batch-create-pdf-booklets-audit-logging.cs) -- Batch create pdf booklets audit logging +- [`batch-delete-pages-from-multiple-pdfs.cs`](./batch-delete-pages-from-multiple-pdfs.cs) -- Batch delete pages from multiple pdfs +- [`batch-delete-pages-from-pdfs.cs`](./batch-delete-pages-from-pdfs.cs) -- Batch delete pages from pdfs +- [`batch-delete-pages-merge-pdfs.cs`](./batch-delete-pages-merge-pdfs.cs) -- Batch delete pages merge pdfs +- [`batch-insert-page-ranges.cs`](./batch-insert-page-ranges.cs) -- Batch insert page ranges +- [`batch-resize-pdfs-to-a4.cs`](./batch-resize-pdfs-to-a4.cs) -- Batch resize pdfs to a4 +- [`batch-resize-pdfs-to-a5-and-create-booklets.cs`](./batch-resize-pdfs-to-a5-and-create-booklets.cs) -- Batch resize pdfs to a5 and create booklets +- [`compare-pdf-concatenation-overloads.cs`](./compare-pdf-concatenation-overloads.cs) -- Compare pdf concatenation overloads +- [`compare-pdf-concatenation-paths-streams.cs`](./compare-pdf-concatenation-paths-streams.cs) -- Compare pdf concatenation paths streams +- [`concatenate-multiple-pdfs-measure-time.cs`](./concatenate-multiple-pdfs-measure-time.cs) -- Concatenate multiple pdfs measure time +- [`concatenate-multiple-pdfs-with-logging.cs`](./concatenate-multiple-pdfs-with-logging.cs) -- Concatenate multiple pdfs with logging +- [`concatenate-multiple-pdfs.cs`](./concatenate-multiple-pdfs.cs) -- Concatenate multiple pdfs +- [`concatenate-multiple-pdfs__v2.cs`](./concatenate-multiple-pdfs__v2.cs) -- Concatenate multiple pdfs v2 +- [`concatenate-pdfs-add-page-numbers.cs`](./concatenate-pdfs-add-page-numbers.cs) -- Concatenate pdfs add page numbers +- [`concatenate-pdfs-from-memory-streams.cs`](./concatenate-pdfs-from-memory-streams.cs) -- Concatenate pdfs from memory streams +- [`concatenate-pdfs-from-zip.cs`](./concatenate-pdfs-from-zip.cs) -- Concatenate pdfs from zip +- [`concatenate-pdfs-in-zip.cs`](./concatenate-pdfs-in-zip.cs) -- Concatenate pdfs in zip +- [`concatenate-pdfs-preserve-metadata.cs`](./concatenate-pdfs-preserve-metadata.cs) -- Concatenate pdfs preserve metadata +- [`concatenate-pdfs-using-stream-overloads.cs`](./concatenate-pdfs-using-stream-overloads.cs) -- Concatenate pdfs using stream overloads +- [`concatenate-pdfs-with-blank-pages.cs`](./concatenate-pdfs-with-blank-pages.cs) -- Concatenate pdfs with blank pages +- [`concatenate-split-pdfs-insertpages.cs`](./concatenate-split-pdfs-insertpages.cs) -- Concatenate split pdfs insertpages +- [`concatenate-split-pdfs.cs`](./concatenate-split-pdfs.cs) -- Concatenate split pdfs +- [`concatenate-three-pdfs-into-one.cs`](./concatenate-three-pdfs-into-one.cs) -- Concatenate three pdfs into one +- [`concatenate-two-pdfs-using-pdffileeditor.cs`](./concatenate-two-pdfs-using-pdffileeditor.cs) -- Concatenate two pdfs using pdffileeditor +- [`concatenate-two-pdfs.cs`](./concatenate-two-pdfs.cs) -- Concatenate two pdfs +- [`create-2up-pdf-layout.cs`](./create-2up-pdf-layout.cs) -- Create 2up pdf layout +- [`create-4up-pdf-using-streams.cs`](./create-4up-pdf-using-streams.cs) -- Create 4up pdf using streams +- [`create-4up-pdf-with-pdffileeditor.cs`](./create-4up-pdf-with-pdffileeditor.cs) -- Create 4up pdf with pdffileeditor +- [`create-a-function-that-generates-a-booklet-using-left-pages-from-the-first-half-of-the-source-pdf.cs`](./create-a-function-that-generates-a-booklet-using-left-pages-from-the-first-half-of-the-source-pdf.cs) -- Create a function that generates a booklet using left pages from the first half of the source pdf +- [`create-a5-booklet-from-pdf.cs`](./create-a5-booklet-from-pdf.cs) -- Create a5 booklet from pdf +- [`create-booklet-custom-page-order.cs`](./create-booklet-custom-page-order.cs) -- Create booklet custom page order +- [`create-booklet-from-second-half-right-pages.cs`](./create-booklet-from-second-half-right-pages.cs) -- Create booklet from second half right pages +- [`create-booklet-from-second-half.cs`](./create-booklet-from-second-half.cs) -- Create booklet from second half +- [`create-booklet-left-odd-pages.cs`](./create-booklet-left-odd-pages.cs) -- Create booklet left odd pages +- [`create-booklet-pdf-custom-page-order.cs`](./create-booklet-pdf-custom-page-order.cs) -- Create booklet pdf custom page order +- [`create-booklet-pdf-custom-page-order__v2.cs`](./create-booklet-pdf-custom-page-order__v2.cs) -- Create booklet pdf custom page order v2 +- [`create-booklet-pdf-custom-page-size.cs`](./create-booklet-pdf-custom-page-size.cs) -- Create booklet pdf custom page size +- [`create-booklet-pdf-custom-page-size__v2.cs`](./create-booklet-pdf-custom-page-size__v2.cs) -- Create booklet pdf custom page size v2 +- [`create-booklet-pdf-delete-resize.cs`](./create-booklet-pdf-delete-resize.cs) -- Create booklet pdf delete resize +- [`create-booklet-pdf-from-stream.cs`](./create-booklet-pdf-from-stream.cs) -- Create booklet pdf from stream +- [`create-booklet-pdf-left-odd-pages.cs`](./create-booklet-pdf-left-odd-pages.cs) -- Create booklet pdf left odd pages +- [`create-booklet-pdf-left-right-pages.cs`](./create-booklet-pdf-left-right-pages.cs) -- Create booklet pdf left right pages +- [`create-booklet-pdf-using-pdffileeditor.cs`](./create-booklet-pdf-using-pdffileeditor.cs) -- Create booklet pdf using pdffileeditor +- [`create-booklet-pdf-with-page-deletion.cs`](./create-booklet-pdf-with-page-deletion.cs) -- Create booklet pdf with page deletion +- [`create-booklet-pdf.cs`](./create-booklet-pdf.cs) -- Create booklet pdf +- [`create-booklet-with-custom-page-order.cs`](./create-booklet-with-custom-page-order.cs) -- Create booklet with custom page order +- [`create-custom-booklet-pdf.cs`](./create-custom-booklet-pdf.cs) -- Create custom booklet pdf +- [`create-left-half-booklet.cs`](./create-left-half-booklet.cs) -- Create left half booklet +- [`create-nup-and-booklet-pdf.cs`](./create-nup-and-booklet-pdf.cs) -- Create nup and booklet pdf +- [`create-pdf-booklet-custom-page-order.cs`](./create-pdf-booklet-custom-page-order.cs) -- Create pdf booklet custom page order +- [`create-pdf-booklet-in-separate-folders.cs`](./create-pdf-booklet-in-separate-folders.cs) -- Create pdf booklet in separate folders +- [`create-pdf-booklet-with-audit-log.cs`](./create-pdf-booklet-with-audit-log.cs) -- Create pdf booklet with audit log +- [`create-pdf-booklet.cs`](./create-pdf-booklet.cs) -- Create pdf booklet +- [`create-pdf-booklets.cs`](./create-pdf-booklets.cs) -- Create pdf booklets +- [`create-verify-pdf-booklet-page-sizes.cs`](./create-verify-pdf-booklet-page-sizes.cs) -- Create verify pdf booklet page sizes +- [`delete-and-resize-pdf-pages.cs`](./delete-and-resize-pdf-pages.cs) -- Delete and resize pdf pages +- [`delete-pages-and-create-booklet.cs`](./delete-pages-and-create-booklet.cs) -- Delete pages and create booklet +- [`delete-pages-and-resize-pdf.cs`](./delete-pages-and-resize-pdf.cs) -- Delete pages and resize pdf +- [`delete-pages-apply-two-up-layout.cs`](./delete-pages-apply-two-up-layout.cs) -- Delete pages apply two up layout +- [`delete-pages-concatenate-pdfs.cs`](./delete-pages-concatenate-pdfs.cs) -- Delete pages concatenate pdfs +- [`delete-pages-create-2up-pdf.cs`](./delete-pages-create-2up-pdf.cs) -- Delete pages create 2up pdf +- [`delete-pages-from-multiple-pdfs.cs`](./delete-pages-from-multiple-pdfs.cs) -- Delete pages from multiple pdfs +- [`delete-pages-from-pdf-file-path.cs`](./delete-pages-from-pdf-file-path.cs) -- Delete pages from pdf file path +- [`delete-pages-from-pdfs.cs`](./delete-pages-from-pdfs.cs) -- Delete pages from pdfs +- [`delete-pages-resize-pdf-contents.cs`](./delete-pages-resize-pdf-contents.cs) -- Delete pages resize pdf contents +- [`delete-pages-resize-pdf.cs`](./delete-pages-resize-pdf.cs) -- Delete pages resize pdf +- [`delete-pdf-pages-cli.cs`](./delete-pdf-pages-cli.cs) -- Delete pdf pages cli +- [`delete-pdf-pages-get-size.cs`](./delete-pdf-pages-get-size.cs) -- Delete pdf pages get size +- [`delete-pdf-pages.cs`](./delete-pdf-pages.cs) -- Delete pdf pages +- [`delete-specific-pages-from-pdf.cs`](./delete-specific-pages-from-pdf.cs) -- Delete specific pages from pdf +- [`delete-specific-pages-from-pdfs.cs`](./delete-specific-pages-from-pdfs.cs) -- Delete specific pages from pdfs +- [`delete-specific-pages-pdf-error-handling.cs`](./delete-specific-pages-pdf-error-handling.cs) -- Delete specific pages pdf error handling +- [`delete-specific-pages-with-error-handling.cs`](./delete-specific-pages-with-error-handling.cs) -- Delete specific pages with error handling +- [`extract-first-n-pages-using-splitfromfirst.cs`](./extract-first-n-pages-using-splitfromfirst.cs) -- Extract first n pages using splitfromfirst +- [`extract-front-pages-splitfromfirst-streams.cs`](./extract-front-pages-splitfromfirst-streams.cs) -- Extract front pages splitfromfirst streams +- [`extract-front-part-pdf-splitfromfirst.cs`](./extract-front-part-pdf-splitfromfirst.cs) -- Extract front part pdf splitfromfirst +- [`insert-blank-separator-pages-when-merging-pdfs.cs`](./insert-blank-separator-pages-when-merging-pdfs.cs) -- Insert blank separator pages when merging pdfs +- [`insert-image-into-pdf-and-save-modified-file.cs`](./insert-image-into-pdf-and-save-modified-file.cs) -- Insert image into pdf and save modified file +- [`insert-page-range-into-pdf-using-streams.cs`](./insert-page-range-into-pdf-using-streams.cs) -- Insert page range into pdf using streams +- [`insert-page-range-into-pdf.cs`](./insert-page-range-into-pdf.cs) -- Insert page range into pdf +- [`insert-page-range-into-pdf__v2.cs`](./insert-page-range-into-pdf__v2.cs) -- Insert page range into pdf v2 +- [`insert-pages-at-start-of-pdf.cs`](./insert-pages-at-start-of-pdf.cs) -- Insert pages at start of pdf +- [`insert-pages-into-middle-of-pdf.cs`](./insert-pages-into-middle-of-pdf.cs) -- Insert pages into middle of pdf +- [`insert-pages-into-pdf-and-save.cs`](./insert-pages-into-pdf-and-save.cs) -- Insert pages into pdf and save +- [`insert-pages-into-pdf-at-middle.cs`](./insert-pages-into-pdf-at-middle.cs) -- Insert pages into pdf at middle +- [`insert-pages-into-pdf-in-memory.cs`](./insert-pages-into-pdf-in-memory.cs) -- Insert pages into pdf in memory +- [`insert-pages-multiple-pdfs-into-base.cs`](./insert-pages-multiple-pdfs-into-base.cs) -- Insert pages multiple pdfs into base +- [`insert-pdf-pages-at-beginning.cs`](./insert-pdf-pages-at-beginning.cs) -- Insert pdf pages at beginning +- [`insert-selected-pages-into-pdf.cs`](./insert-selected-pages-into-pdf.cs) -- Insert selected pages into pdf +- [`insert-specific-pages-into-pdf-using-streams.cs`](./insert-specific-pages-into-pdf-using-streams.cs) -- Insert specific pages into pdf using streams +- [`insert-specific-pages-into-pdf.cs`](./insert-specific-pages-into-pdf.cs) -- Insert specific pages into pdf +- [`load-pdf-and-save-copy.cs`](./load-pdf-and-save-copy.cs) -- Load pdf and save copy +- [`load-pdf-and-save-with-aspose-pdf.cs`](./load-pdf-and-save-with-aspose-pdf.cs) -- Load pdf and save with aspose pdf +- [`load-pdf-document-from-file.cs`](./load-pdf-document-from-file.cs) -- Load pdf document from file +- [`log-pdf-page-deletions-audit.cs`](./log-pdf-page-deletions-audit.cs) -- Log pdf page deletions audit +- [`measure-pdf-concatenation-performance.cs`](./measure-pdf-concatenation-performance.cs) -- Measure pdf concatenation performance +- [`measure-pdf-resize-performance-path-vs-stream.cs`](./measure-pdf-resize-performance-path-vs-stream.cs) -- Measure pdf resize performance path vs stream +- [`merge-multiple-pdf-streams.cs`](./merge-multiple-pdf-streams.cs) -- Merge multiple pdf streams +- [`merge-multiple-pdfs-with-logging.cs`](./merge-multiple-pdfs-with-logging.cs) -- Merge multiple pdfs with logging +- [`merge-pdfs-from-memory-streams.cs`](./merge-pdfs-from-memory-streams.cs) -- Merge pdfs from memory streams +- [`merge-pdfs-from-network-streams.cs`](./merge-pdfs-from-network-streams.cs) -- Merge pdfs from network streams +- [`merge-pdfs-from-urls.cs`](./merge-pdfs-from-urls.cs) -- Merge pdfs from urls +- [`merge-pdfs-with-blank-separator-pages.cs`](./merge-pdfs-with-blank-separator-pages.cs) -- Merge pdfs with blank separator pages +- [`merge-three-pdfs-using-pdffileeditor.cs`](./merge-three-pdfs-using-pdffileeditor.cs) -- Merge three pdfs using pdffileeditor +- [`nup-to-booklet-pdf.cs`](./nup-to-booklet-pdf.cs) -- Nup to booklet pdf +- [`parallel-pdf-page-deletion.cs`](./parallel-pdf-page-deletion.cs) -- Parallel pdf page deletion +- [`pdffileeditor-delete-invalid-page-test.cs`](./pdffileeditor-delete-invalid-page-test.cs) -- Pdffileeditor delete invalid page test +- [`remove-first-and-last-pages-from-pdf.cs`](./remove-first-and-last-pages-from-pdf.cs) -- Remove first and last pages from pdf +- [`remove-pages-from-multiple-pdfs-in-parallel.cs`](./remove-pages-from-multiple-pdfs-in-parallel.cs) -- Remove pages from multiple pdfs in parallel +- [`resize-and-concatenate-pdfs.cs`](./resize-and-concatenate-pdfs.cs) -- Resize and concatenate pdfs +- [`resize-and-merge-pdfs.cs`](./resize-and-merge-pdfs.cs) -- Resize and merge pdfs +- [`resize-pdf-landscape-booklet.cs`](./resize-pdf-landscape-booklet.cs) -- Resize pdf landscape booklet +- [`resize-pdf-pages-to-8-5x11-using-stream.cs`](./resize-pdf-pages-to-8-5x11-using-stream.cs) -- Resize pdf pages to 8 5x11 using stream +- [`resize-pdf-pages-using-streams.cs`](./resize-pdf-pages-using-streams.cs) -- Resize pdf pages using streams +- [`resize-pdf-streams-verify-tiff.cs`](./resize-pdf-streams-verify-tiff.cs) -- Resize pdf streams verify tiff +- [`resize-pdf-to-letter-size.cs`](./resize-pdf-to-letter-size.cs) -- Resize pdf to letter size +- [`resize-pdfs-create-booklet.cs`](./resize-pdfs-create-booklet.cs) -- Resize pdfs create booklet +- [`resize-pdfs-to-a5-and-create-booklet.cs`](./resize-pdfs-to-a5-and-create-booklet.cs) -- Resize pdfs to a5 and create booklet +- [`rotate-first-pdf-page-save-to-memorystream.cs`](./rotate-first-pdf-page-save-to-memorystream.cs) -- Rotate first pdf page save to memorystream +- [`rotate-pdf-landscape-create-booklet.cs`](./rotate-pdf-landscape-create-booklet.cs) -- Rotate pdf landscape create booklet +- [`rotate-pdf-page-save-to-memorystream.cs`](./rotate-pdf-page-save-to-memorystream.cs) -- Rotate pdf page save to memorystream +- [`split-pdf-from-first-page-to-end-page.cs`](./split-pdf-from-first-page-to-end-page.cs) -- Split pdf from first page to end page +- [`split-pdf-from-first-to-end-page.cs`](./split-pdf-from-first-to-end-page.cs) -- Split pdf from first to end page +- [`split-pdf-from-page-to-end.cs`](./split-pdf-from-page-to-end.cs) -- Split pdf from page to end +- [`split-pdf-from-page-to-end__v2.cs`](./split-pdf-from-page-to-end__v2.cs) -- Split pdf from page to end v2 +- [`split-pdf-from-start-page-to-end-using-streams.cs`](./split-pdf-from-start-page-to-end-using-streams.cs) -- Split pdf from start page to end using streams +- [`split-pdf-from-start-page-to-end.cs`](./split-pdf-from-start-page-to-end.cs) -- Split pdf from start page to end +- [`split-pdf-from-start-to-end.cs`](./split-pdf-from-start-to-end.cs) -- Split pdf from start to end +- [`split-pdf-into-bulk-page-ranges.cs`](./split-pdf-into-bulk-page-ranges.cs) -- Split pdf into bulk page ranges +- [`split-pdf-into-bulk-page-sets.cs`](./split-pdf-into-bulk-page-sets.cs) -- Split pdf into bulk page sets +- [`split-pdf-into-bulk-page-sets__v2.cs`](./split-pdf-into-bulk-page-sets__v2.cs) -- Split pdf into bulk page sets v2 +- [`split-pdf-into-bulks-using-memorystreams.cs`](./split-pdf-into-bulks-using-memorystreams.cs) -- Split pdf into bulks using memorystreams +- [`split-pdf-into-individual-page-pdfs.cs`](./split-pdf-into-individual-page-pdfs.cs) -- Split pdf into individual page pdfs +- [`split-pdf-into-individual-pages.cs`](./split-pdf-into-individual-pages.cs) -- Split pdf into individual pages +- [`split-pdf-into-individual-pages__v2.cs`](./split-pdf-into-individual-pages__v2.cs) -- Split pdf into individual pages v2 +- [`split-pdf-into-multiple-bulks.cs`](./split-pdf-into-multiple-bulks.cs) -- Split pdf into multiple bulks +- [`split-pdf-into-multiple-page-ranges.cs`](./split-pdf-into-multiple-page-ranges.cs) -- Split pdf into multiple page ranges +- [`split-pdf-into-page-streams.cs`](./split-pdf-into-page-streams.cs) -- Split pdf into page streams +- [`split-pdf-into-single-page-pdfs.cs`](./split-pdf-into-single-page-pdfs.cs) -- Split pdf into single page pdfs +- [`split-pdf-into-single-page-pdfs__v2.cs`](./split-pdf-into-single-page-pdfs__v2.cs) -- Split pdf into single page pdfs v2 +- [`test-makebooklet-null-pagesize.cs`](./test-makebooklet-null-pagesize.cs) -- Test makebooklet null pagesize +- [`test-pdffileeditor-concatenate-empty-input.cs`](./test-pdffileeditor-concatenate-empty-input.cs) -- Test pdffileeditor concatenate empty input +- [`test-pdffileeditor-concatenate-empty-streams.cs`](./test-pdffileeditor-concatenate-empty-streams.cs) -- Test pdffileeditor concatenate empty streams +- [`validate-makebooklet-null-pagesize.cs`](./validate-makebooklet-null-pagesize.cs) -- Validate makebooklet null pagesize +- [`validate-pdf-concatenation-page-order.cs`](./validate-pdf-concatenation-page-order.cs) -- Validate pdf concatenation page order +- [`validate-pdf-page-deletion.cs`](./validate-pdf-page-deletion.cs) -- Validate pdf page deletion + +## See Also + +- [`AGENTS.md`](./AGENTS.md) -- category-specific anti-patterns, API surface, and conventions for AI coding agents +- [`../AGENTS.md`](../AGENTS.md) -- repository-wide agent guide +- [`../README.md`](../README.md) -- full category index and project overview +- [Aspose.PDF for .NET docs](https://docs.aspose.com/pdf/net/) + +> Each `.cs` file is a standalone, build-validated console example. Drop into a fresh `dotnet new console` project, add the `Aspose.PDF` NuGet (version above), and run. diff --git a/facades-documents/index.json b/facades-documents/index.json index 62730b474..3ad3155f2 100644 --- a/facades-documents/index.json +++ b/facades-documents/index.json @@ -1,165 +1,182 @@ { "category": "facades-documents", "nuget_version": "26.8.0", - "last_updated": "2026-08-20T07:34:35Z", + "last_updated": "2026-09-10T12:45:08Z", "examples": { - "insert-page-range-into-pdf": { - "title": "Insert Page Range from Source PDF into Destination PDF", - "filename": "insert-page-range-into-pdf.cs", - "description": "Demonstrates how to insert a specific range of pages from one PDF file into another using Aspose.Pdf's PdfFileEditor.", + "append-pages-from-multiple-pdfs": { + "title": "Append Pages from Multiple PDFs to a Base PDF", + "filename": "append-pages-from-multiple-pdfs.cs", + "description": "Demonstrates inserting a specific page range from several source PDFs into a base PDF in a single operation using Aspose.Pdf.Facades.PdfFileEditor.TryAppend.", "tags": [ "pdf", - "page-insertion", - "merge", + "append", + "pages", "Aspose.Pdf", - "PdfFileEditor" + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Insert" + "Aspose.Pdf.Facades.PdfFileEditor.TryAppend", + "Aspose.Pdf.Facades.PdfFileEditor.LastException" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "insert-page-range-into-pdf__v2": { - "title": "Insert Page Range from One PDF into Another Using Streams", - "filename": "insert-page-range-into-pdf__v2.cs", - "description": "Shows how to insert a specific range of pages from a source PDF stream into a destination PDF stream and write the merged document to an output stream with Aspose.Pdf.Facades.", + "append-pages-to-pdf": { + "title": "Append Pages from One PDF to Another", + "filename": "append-pages-to-pdf.cs", + "description": "Shows how to append all pages of a source PDF to the end of a destination PDF using Aspose.Pdf's PdfFileEditor.", "tags": [ "pdf", - "insert-pages", - "streams", - "aspose", - "c#" + "append", + "merge", + "Aspose.Pdf", + "facade" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Insert" + "Aspose.Pdf.Facades.PdfFileEditor.Append" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "insert-selected-pages-into-pdf": { - "title": "Insert Selected Pages from One PDF into Another", - "filename": "insert-selected-pages-into-pdf.cs", - "description": "Shows how to insert specific pages from a source PDF into a destination PDF at a defined position using Aspose.Pdf.Facades.PdfFileEditor.", - "tags": [ - "pdf", - "insert-pages", - "aspose.pdf", - "facade", - "c#" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Insert" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:34:35Z", + "append-pdf-pages-using-pdffileeditor": { + "title": "Append Pdf Pages Using Pdffileeditor", + "filename": "append-pdf-pages-using-pdffileeditor.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "insert-specific-pages-into-pdf": { - "title": "Insert Specific Pages from One PDF into Another Using Streams", - "filename": "insert-specific-pages-into-pdf.cs", - "description": "Shows how to insert selected pages from a source PDF into a destination PDF at a specified position using Aspose.Pdf.Facades.PdfFileEditor with input and output streams.", + "audit-log-pdf-page-deletion": { + "title": "Audit Log for PDF Page Deletion", + "filename": "audit-log-pdf-page-deletion.cs", + "description": "Demonstrates how to delete specific pages from a PDF using Aspose.Pdf's facade API and log the number of pages actually removed for audit purposes.", "tags": [ "pdf", - "insert-pages", - "streams", + "delete-pages", + "audit", "aspose-pdf", "facade" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Insert" + "Aspose.Pdf.Facades.PdfFileEditor.TryDelete", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Document.Pages.Count" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "insert-pdf-pages-at-beginning": { - "title": "Insert PDF Pages at Beginning Using PdfFileEditor", - "filename": "insert-pdf-pages-at-beginning.cs", - "description": "Shows how to insert all pages from a source PDF at the start of another PDF using Aspose.Pdf.Facades.PdfFileEditor.", + "batch-concatenate-pdfs": { + "title": "Batch Concatenate PDFs in a Folder", + "filename": "batch-concatenate-pdfs.cs", + "description": "Shows how to gather all PDF files from a directory and merge them into a single PDF using Aspose.Pdf.Facades.", "tags": [ "pdf", - "insert", - "pages", + "concatenate", + "batch", "aspose", - "facade" + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Insert", - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Document.Pages.Count" + "Aspose.Pdf.Facades.PdfFileEditor.Concatenate" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "insert-pages-into-middle-of-pdf": { - "title": "Insert Pages from One PDF into the Middle of Another", - "filename": "insert-pages-into-middle-of-pdf.cs", - "description": "Shows how to insert all pages of a source PDF into the middle of a destination PDF using Aspose.Pdf's PdfFileEditor.", + "batch-create-3x2-nup-pdfs": { + "title": "Batch Create 3X2 Nup Pdfs", + "filename": "batch-create-3x2-nup-pdfs.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "batch-create-nup-pdfs-3x2": { + "title": "Batch Create N‑up PDFs with 3 Columns and 2 Rows", + "filename": "batch-create-nup-pdfs-3x2.cs", + "description": "Shows how to iterate over a list of PDF files and generate N‑up versions using a 3‑column by 2‑row layout with Aspose.Pdf.Facades.", "tags": [ "pdf", - "insert-pages", - "aspose.pdf", - "document-merge", - "c#" + "n-up", + "batch", + "aspose", + "csharp" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Insert", - "Aspose.Pdf.PageCollection", - "Aspose.Pdf.PageCollection.Count" + "Aspose.Pdf.Facades.PdfFileEditor.MakeNUp" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "append-pages-to-pdf": { - "title": "Append Pages from One PDF to Another", - "filename": "append-pages-to-pdf.cs", - "description": "Shows how to append all pages of a source PDF to the end of a destination PDF using Aspose.Pdf's PdfFileEditor.", + "batch-create-pdf-booklets-audit-logging": { + "title": "Batch Create Pdf Booklets Audit Logging", + "filename": "batch-create-pdf-booklets-audit-logging.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "batch-delete-pages-from-multiple-pdfs": { + "title": "Batch Delete Pages from Multiple PDFs", + "filename": "batch-delete-pages-from-multiple-pdfs.cs", + "description": "Demonstrates how to loop through PDF files in a folder and delete specific pages from each using Aspose.Pdf.Facades.PdfFileEditor.", "tags": [ "pdf", - "append", - "merge", - "Aspose.Pdf", + "batch", + "page-deletion", + "aspose", "facade" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Append" + "Aspose.Pdf.Facades.PdfFileEditor.Delete" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "insert-pages-into-pdf-in-memory": { - "title": "Insert Pages from One PDF into Another In-Memory", - "filename": "insert-pages-into-pdf-in-memory.cs", - "description": "Shows how to create source and destination PDFs entirely in memory, then insert a specific page from the source PDF into the destination PDF using Aspose.Pdf.Facades.PdfFileEditor.Insert, and output the merged document to a MemoryStream.", + "batch-delete-pages-from-pdfs": { + "title": "Batch Delete Pages From Pdfs", + "filename": "batch-delete-pages-from-pdfs.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "batch-delete-pages-merge-pdfs": { + "title": "Batch Delete Pages and Merge PDFs", + "filename": "batch-delete-pages-merge-pdfs.cs", + "description": "Shows how to remove specific pages from multiple PDF files and then concatenate the cleaned PDFs into a single document using Aspose.Pdf.Facades.", "tags": [ "pdf", - "insert-pages", - "memorystream", - "aspose.pdf", - "facade" + "delete-pages", + "merge", + "batch", + "aspose" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfFileEditor.Insert", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfFileEditor", + "Aspose.Pdf.Facades.PdfFileEditor.Delete", + "Aspose.Pdf.Facades.PdfFileEditor.Concatenate" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:34:35Z", @@ -184,267 +201,314 @@ "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "append-pages-from-multiple-pdfs": { - "title": "Append Pages from Multiple PDFs to a Base PDF", - "filename": "append-pages-from-multiple-pdfs.cs", - "description": "Demonstrates inserting a specific page range from several source PDFs into a base PDF in a single operation using Aspose.Pdf.Facades.PdfFileEditor.TryAppend.", + "batch-resize-pdfs-to-a4": { + "title": "Batch Resize PDFs to A4", + "filename": "batch-resize-pdfs-to-a4.cs", + "description": "Iterates through all PDF files in a source folder, resizes each document to A4 page size using Aspose.Pdf.Facades, and saves the results to a target directory.", "tags": [ "pdf", - "append", - "pages", - "Aspose.Pdf", + "batch", + "resize", + "a4", "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.TryAppend", - "Aspose.Pdf.Facades.PdfFileEditor.LastException" + "PdfPageEditor", + "PdfPageEditor.BindPdf", + "PdfPageEditor.PageSize", + "PdfPageEditor.ApplyChanges", + "PdfPageEditor.Save", + "PageSize" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "load-pdf-and-save-with-aspose-pdf": { - "title": "Load PDF and Save with Aspose.Pdf", - "filename": "load-pdf-and-save-with-aspose-pdf.cs", - "description": "Demonstrates loading an existing PDF file using Aspose.Pdf's Document class, checking its existence, and saving it to a new location.", + "batch-resize-pdfs-to-a5-and-create-booklets": { + "title": "Batch Resize PDFs to A5 and Create Booklets", + "filename": "batch-resize-pdfs-to-a5-and-create-booklets.cs", + "description": "Processes each PDF in a folder, resizes its pages to A5 dimensions, and then generates a booklet PDF from the resized file.", "tags": [ "pdf", - "load", - "save", - "aspose.pdf", - "document" + "batch-processing", + "resize", + "booklet", + "a5" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfFileEditor", + "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents", + "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet", + "Aspose.Pdf.PageSize" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "load-pdf-and-save-copy": { - "title": "Load PDF and Save a Copy using Aspose.Pdf", - "filename": "load-pdf-and-save-copy.cs", - "description": "Shows how to load a PDF file from a file path with Aspose.Pdf's Document class and save it to another location.", + "compare-pdf-concatenation-overloads": { + "title": "Compare Pdf Concatenation Overloads", + "filename": "compare-pdf-concatenation-overloads.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "compare-pdf-concatenation-paths-streams": { + "title": "Compare PDF Concatenation via File Paths and Streams", + "filename": "compare-pdf-concatenation-paths-streams.cs", + "description": "Demonstrates how to concatenate two PDF files using Aspose.Pdf.Facades.PdfFileEditor with both file‑path and stream overloads, while measuring memory consumption for each approach.", "tags": [ "pdf", - "load", - "save", - "aspose", - "document" + "concatenation", + "streams", + "memory", + "aspose" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfFileEditor", + "PdfFileEditor.Concatenate(string, string, string)", + "PdfFileEditor.Concatenate(Stream, Stream, Stream)", + "PdfFileEditor.CloseConcatenatedStreams" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "insert-pages-into-pdf-and-save": { - "title": "Insert Pages into PDF and Save to File", - "filename": "insert-pages-into-pdf-and-save.cs", - "description": "Demonstrates how to insert selected pages from one PDF into another at a specific position using Aspose.Pdf.Facades and save the modified document to a new file.", + "concatenate-multiple-pdfs-measure-time": { + "title": "Concatenate Multiple PDFs and Measure Execution Time", + "filename": "concatenate-multiple-pdfs-measure-time.cs", + "description": "Demonstrates how to concatenate fifty small PDF files using Aspose.Pdf.Facades.PdfFileEditor stream overloads, configure automatic stream closing, and measure the operation duration with Stopwatch.", "tags": [ "pdf", - "page-insertion", - "aspose", - "csharp", - "facade" + "concatenation", + "performance", + "streams", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.TryInsert" + "Aspose.Pdf.Facades.PdfFileEditor.Concatenate", + "Aspose.Pdf.Facades.PdfFileEditor.CloseConcatenatedStreams" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "rotate-pdf-page-save-to-memorystream": { - "title": "Rotate PDF Page and Save to MemoryStream", - "filename": "rotate-pdf-page-save-to-memorystream.cs", - "description": "Loads a PDF, rotates the first page 90 degrees clockwise, and saves the modified document directly into a MemoryStream without writing to disk.", + "concatenate-multiple-pdfs-with-logging": { + "title": "Concatenate Multiple PDFs with Logging", + "filename": "concatenate-multiple-pdfs-with-logging.cs", + "description": "Demonstrates how to merge several PDF files into a single document using Aspose.Pdf.Facades.PdfFileEditor while logging the input and output file names.", "tags": [ "pdf", - "rotation", - "memorystream", - "aspose.pdf", - "csharp" + "concatenation", + "logging", + "aspose", + "facades" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Rotation", - "Aspose.Pdf.Page", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfFileEditor", + "Aspose.Pdf.Facades.PdfFileEditor.Concatenate", + "Aspose.Pdf.Facades.PdfFileEditor.CopyLogicalStructure", + "Aspose.Pdf.Facades.PdfFileEditor.ConversionLog" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "split-pdf-from-first-to-end-page": { - "title": "Split PDF from First Page to Specified End Page", - "filename": "split-pdf-from-first-to-end-page.cs", - "description": "Demonstrates how to split a PDF starting at the first page up to a given page number using Aspose.Pdf.Facades and save the result to a new file.", + "concatenate-multiple-pdfs": { + "title": "Concatenate Multiple PDFs", + "filename": "concatenate-multiple-pdfs.cs", + "description": "Shows how to merge several PDF files into a single document using Aspose.Pdf's PdfFileEditor facade.", "tags": [ "pdf", - "split", - "aspose", + "concatenation", + "merge", "facade", - "csharp" + "command-line" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.SplitFromFirst" + "Aspose.Pdf.Facades.PdfFileEditor.Concatenate", + "Aspose.Pdf.Facades.PdfFileEditor.CloseConcatenatedStreams" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "split-pdf-from-first-page-to-end-page": { - "title": "Split PDF from First Page to Specified End Page Using Streams", - "filename": "split-pdf-from-first-page-to-end-page.cs", - "description": "Demonstrates how to split the first N pages of a PDF into a new document using Aspose.Pdf's PdfFileEditor with in‑memory streams.", + "concatenate-multiple-pdfs__v2": { + "title": "Concatenate Multiple PDFs Using Aspose.Pdf", + "filename": "concatenate-multiple-pdfs__v2.cs", + "description": "Demonstrates reading PDF files as streams, merging them with Aspose.Pdf.Facades.PdfFileEditor, and saving the combined document to disk.", "tags": [ "pdf", - "split", - "streams", + "concatenation", "aspose", + "streams", "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.SplitFromFirst" + "Aspose.Pdf.Facades.PdfFileEditor.Concatenate", + "Aspose.Pdf.Facades.PdfFileEditor.CloseConcatenatedStreams" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "split-pdf-into-bulk-page-sets": { - "title": "Split PDF into Bulk Page Sets with Aspose.PdfFileEditor", - "filename": "split-pdf-into-bulk-page-sets.cs", - "description": "Demonstrates how to split a PDF into multiple bulk page ranges using Aspose.Pdf's PdfFileEditor facade, including placeholder PDF creation and saving each bulk as a separate file.", + "concatenate-pdfs-add-page-numbers": { + "title": "Concatenate PDFs and Add Page Numbers", + "filename": "concatenate-pdfs-add-page-numbers.cs", + "description": "Shows how to merge multiple PDF files into a single document and automatically insert page numbers using Aspose.Pdf.Facades.", "tags": [ "pdf", - "split", - "bulk", + "concatenate", + "page-number", "aspose", "csharp" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfFileEditor", - "PdfFileEditor.SplitToBulks", - "Document.Pages.Add", - "Document.Save" + "PdfFileEditor", + "PdfFileEditor.Concatenate", + "PdfFileStamp", + "PdfFileStamp.AddPageNumber", + "PdfFileStamp.StartingNumber", + "PdfFileStamp.Close" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "split-pdf-into-bulk-page-sets__v2": { - "title": "Split PDF into Bulk Page Sets Using Streams", - "filename": "split-pdf-into-bulk-page-sets__v2.cs", - "description": "Shows how to split a PDF into defined page ranges (bulks) with Aspose.Pdf.Facades.PdfFileEditor and obtain each bulk as a MemoryStream.", + "concatenate-pdfs-from-memory-streams": { + "title": "Concatenate PDFs from Memory Streams to File", + "filename": "concatenate-pdfs-from-memory-streams.cs", + "description": "Creates PDF documents in memory, concatenates them using Aspose.Pdf.Facades.PdfFileEditor, and writes the merged result directly to a file without intermediate storage.", "tags": [ "pdf", - "split", - "bulk", - "memorystream", - "aspose" + "concatenation", + "memory-stream", + "aspose-pdf", + "file-output" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.SplitToBulks" + "Aspose.Pdf.Facades.PdfFileEditor.Concatenate" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "split-pdf-from-page-to-end": { - "title": "Split PDF from Specific Page to End", - "filename": "split-pdf-from-page-to-end.cs", - "description": "Shows how to split a PDF starting at a given page number and save the resulting document using Aspose.Pdf.Facades.", + "concatenate-pdfs-from-zip": { + "title": "Concatenate Pdfs From Zip", + "filename": "concatenate-pdfs-from-zip.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "concatenate-pdfs-in-zip": { + "title": "Concatenate PDFs Inside a Zip Archive", + "filename": "concatenate-pdfs-in-zip.cs", + "description": "Shows how to read PDF files from a zip archive, merge them with Aspose.Pdf.Facades.PdfFileEditor, and write the merged PDF back into the same archive.", "tags": [ - "pdf", - "split", - "aspose", - "facade", - "csharp" + "zip", + "pdf-merge", + "aspose-pdf", + "csharp", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.SplitToEnd" + "Aspose.Pdf.Facades.PdfFileEditor.Concatenate", + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "split-pdf-from-start-to-end": { - "title": "Split PDF from Start Page to End Using MemoryStream", - "filename": "split-pdf-from-start-to-end.cs", - "description": "Shows how to extract the portion of a PDF starting at a given page through the end of the document and return it as a MemoryStream using Aspose.Pdf.Facades.", + "concatenate-pdfs-preserve-metadata": { + "title": "Concatenate PDFs While Preserving Original Metadata", + "filename": "concatenate-pdfs-preserve-metadata.cs", + "description": "Demonstrates how to merge multiple PDF files using PdfFileEditor and then copy the author, title, and other metadata from the first document to the merged result.", "tags": [ "pdf", - "split", - "memorystream", - "aspose", - "c#" + "concatenation", + "metadata", + "aspose-pdf", + "pdffileeditor" ], "apis_used": [ + "Aspose.Pdf.Facades.PdfFileInfo", "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.SplitToEnd" + "Aspose.Pdf.Facades.PdfFileEditor.Concatenate", + "Aspose.Pdf.Facades.PdfFileEditor.CopyOutlines", + "Aspose.Pdf.Facades.PdfFileEditor.CopyLogicalStructure", + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Info", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "split-pdf-into-individual-pages": { - "title": "Split PDF into Individual Page PDFs", - "filename": "split-pdf-into-individual-pages.cs", - "description": "Demonstrates how to split a PDF file into separate one‑page PDF documents using Aspose.Pdf.Facades.PdfFileEditor and save them to a specified output folder.", + "concatenate-pdfs-using-stream-overloads": { + "title": "Concatenate PDFs Using Stream Overloads", + "filename": "concatenate-pdfs-using-stream-overloads.cs", + "description": "Shows how to merge multiple PDF files passed as command‑line arguments into a single PDF using Aspose.Pdf.Facades PdfFileEditor with its stream‑based Concatenate overload.", "tags": [ "pdf", - "split", - "pages", - "aspose", - "csharp" + "concatenation", + "stream", + "command-line", + "aspose.pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.SplitToPages" + "Aspose.Pdf.Facades.PdfFileEditor.Concatenate", + "Aspose.Pdf.Facades.PdfFileEditor.CloseConcatenatedStreams" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "split-pdf-into-individual-page-pdfs": { - "title": "Split PDF into Individual Page PDFs Using Streams", - "filename": "split-pdf-into-individual-page-pdfs.cs", - "description": "Shows how to split a PDF into separate one‑page PDF files by reading the source as a stream, using PdfFileEditor.SplitToPages to get MemoryStreams for each page, and writing each stream to a file.", + "concatenate-pdfs-with-blank-pages": { + "title": "Concatenate PDFs with Blank Pages", + "filename": "concatenate-pdfs-with-blank-pages.cs", + "description": "Shows how to merge multiple PDF files and automatically insert a blank page between each document using Aspose.Pdf.", "tags": [ "pdf", - "split", - "pages", - "stream", - "aspose" + "concatenation", + "blank-page", + "aspose", + "csharp" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Pages.Add", + "Aspose.Pdf.Document.Save", "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.SplitToPages" + "Aspose.Pdf.Facades.PdfFileEditor.Concatenate" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "split-pdf-into-single-page-pdfs": { - "title": "Split PDF into Single‑Page PDFs Using MemoryStream", - "filename": "split-pdf-into-single-page-pdfs.cs", - "description": "Demonstrates how to split a PDF into individual page PDFs using Aspose.Pdf's bulk split, iterating the returned MemoryStream array, and saving each stream to a uniquely named file.", + "concatenate-split-pdfs-insertpages": { + "title": "Concatenate Split Pdfs Insertpages", + "filename": "concatenate-split-pdfs-insertpages.cs", + "description": "", "tags": [], "apis_used": [], "difficulty": "", - "generated_at": "2026-08-20T07:34:35Z", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, "concatenate-split-pdfs": { @@ -469,397 +533,482 @@ "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "extract-front-part-pdf-splitfromfirst": { - "title": "Extract Front Part of PDF with SplitFromFirst", - "filename": "extract-front-part-pdf-splitfromfirst.cs", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfFileEditor.SplitFromFirst to extract pages from the beginning of a PDF up to a specified page and save them as a new document.", + "concatenate-three-pdfs-into-one": { + "title": "Concatenate Three PDFs into a Single Document", + "filename": "concatenate-three-pdfs-into-one.cs", + "description": "Demonstrates how to merge three PDF files into one using Aspose.Pdf.Facades.PdfFileEditor and the three‑argument Concatenate method, employing a temporary file for the intermediate result.", "tags": [ "pdf", - "split", - "pages", - "aspose", - "csharp" + "concatenation", + "aspose-pdf", + "csharp", + "file-editor" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.SplitFromFirst" + "PdfFileEditor.Concatenate" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "extract-front-pages-splitfromfirst-streams": { - "title": "Extract Front Pages from PDF Using SplitFromFirst with Streams", - "filename": "extract-front-pages-splitfromfirst-streams.cs", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfFileEditor.SplitFromFirst with in‑memory streams to extract pages 1 through a specified end page from a PDF.", + "concatenate-two-pdfs-using-pdffileeditor": { + "title": "Concatenate Two PDFs Using PdfFileEditor", + "filename": "concatenate-two-pdfs-using-pdffileeditor.cs", + "description": "Shows how to merge two PDF files into a single document using the two‑file overload of PdfFileEditor.Concatenate, creating sample PDFs on the fly.", "tags": [ "pdf", - "split", - "stream", - "in-memory", - "facade" - ], + "concatenate", + "merge", + "Aspose.Pdf", + "PdfFileEditor" + ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.SplitFromFirst" + "Aspose.Pdf.PdfFileEditor", + "Aspose.Pdf.PdfFileEditor.Concatenate", + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "split-pdf-into-multiple-page-ranges": { - "title": "Split PDF into Multiple Page Ranges Using PdfFileEditor", - "filename": "split-pdf-into-multiple-page-ranges.cs", - "description": "Demonstrates how to split a PDF into separate documents based on defined page ranges with Aspose.Pdf.Facades.PdfFileEditor.SplitToBulks and save each part as a PDF file.", + "concatenate-two-pdfs": { + "title": "Concatenate Two Pdfs", + "filename": "concatenate-two-pdfs.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-2up-pdf-layout": { + "title": "Create 2-up PDF Layout with Aspose PdfFileEditor", + "filename": "create-2up-pdf-layout.cs", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfFileEditor to combine two PDF pages onto a single page (2‑up) and save the result.", "tags": [ - "pdf-split", - "page-ranges", - "memorystream", - "aspose-pdf", - "facades" + "pdf", + "nup", + "aspose", + "csharp", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.SplitToBulks" + "Aspose.Pdf.Facades.PdfFileEditor.MakeNUp" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "split-pdf-into-multiple-bulks": { - "title": "Split PDF into Multiple Bulks Using Streams", - "filename": "split-pdf-into-multiple-bulks.cs", - "description": "Shows how to split a PDF into defined page ranges (bulks) with Aspose.Pdf.Facades.PdfFileEditor.SplitToBulks and process the resulting MemoryStream objects.", + "create-4up-pdf-using-streams": { + "title": "Create 4Up Pdf Using Streams", + "filename": "create-4up-pdf-using-streams.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-4up-pdf-with-pdffileeditor": { + "title": "Create 4‑up PDF using PdfFileEditor and MemoryStream", + "filename": "create-4up-pdf-with-pdffileeditor.cs", + "description": "Demonstrates how to apply a 4‑up (2×2) layout to an existing PDF by using the PdfFileEditor.TryMakeNUp overload that works with streams, keeping the result in memory before optionally saving it to disk.", "tags": [ "pdf", - "split", - "bulks", - "memorystream", - "aspose" + "4-up", + "memory-stream", + "Aspose.Pdf", + "N-up" ], "apis_used": [ - "PdfFileEditor", - "PdfFileEditor.SplitToBulks" + "Aspose.Pdf.Facades.PdfFileEditor", + "Aspose.Pdf.Facades.PdfFileEditor.TryMakeNUp" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "split-pdf-from-start-page-to-end": { - "title": "Split PDF from a Start Page to the End", - "filename": "split-pdf-from-start-page-to-end.cs", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfFileEditor.SplitToEnd to extract pages from a specified start page through the end of a PDF and save them as a new file.", + "create-a-function-that-generates-a-booklet-using-left-pages-from-the-first-half-of-the-source-pdf": { + "title": "Create A Function That Generates A Booklet Using Left Pages From The First Half Of The Source Pdf", + "filename": "create-a-function-that-generates-a-booklet-using-left-pages-from-the-first-half-of-the-source-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-a5-booklet-from-pdf": { + "title": "Create A5 Booklet from PDF", + "filename": "create-a5-booklet-from-pdf.cs", + "description": "Demonstrates how to generate a booklet with A5 page size from an existing PDF using Aspose.Pdf's PdfFileEditor.MakeBooklet overload.", "tags": [ + "booklet", + "A5", "pdf", - "split", - "aspose", - "facade", - "pages" + "Aspose.Pdf", + "page-size" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.SplitToEnd" + "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet", + "Aspose.Pdf.PageSize" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "split-pdf-from-start-page-to-end-using-streams": { - "title": "Split PDF from a Start Page to End Using Streams", - "filename": "split-pdf-from-start-page-to-end-using-streams.cs", - "description": "Demonstrates how to split a PDF from a specified start page to the end of the document using Aspose.Pdf.Facades.PdfFileEditor with input and output streams.", + "create-booklet-custom-page-order": { + "title": "Create Booklet with Custom Left/Right Page Order", + "filename": "create-booklet-custom-page-order.cs", + "description": "Demonstrates adding visible page numbers, defining custom left and right page arrays, and using Aspose.Pdf's MakeBooklet to generate a booklet with the specified order, then verifies the result by extracting the page numbers.", "tags": [ + "booklet", + "custom-pages", + "Aspose.Pdf", + "page-numbering", + "pdf-manipulation" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.TextAbsorber", + "Aspose.Pdf.Facades.PdfFileEditor", + "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet", + "Aspose.Pdf.Position", + "Aspose.Pdf.Color" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:34:35Z", + "status": "verified" + }, + "create-booklet-from-second-half-right-pages": { + "title": "Create Booklet From Second Half Right Pages", + "filename": "create-booklet-from-second-half-right-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-booklet-from-second-half": { + "title": "Create Booklet from Second Half of PDF", + "filename": "create-booklet-from-second-half.cs", + "description": "Demonstrates how to generate a booklet PDF where the left pages come from the first half of a source document and the right pages come from the second half, using Aspose.Pdf's MakeBooklet method.", + "tags": [ + "booklet", "pdf", - "split", - "streams", "aspose", - "facade" + "page-splitting", + "facades" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.SplitToEnd" + "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "split-pdf-into-individual-pages__v2": { - "title": "Split PDF into Individual Pages Using PdfFileEditor", - "filename": "split-pdf-into-individual-pages__v2.cs", - "description": "Demonstrates how to split a multi‑page PDF into separate one‑page PDF files using Aspose.Pdf.Facades.PdfFileEditor.SplitToPages.", + "create-booklet-left-odd-pages": { + "title": "Create Booklet Left Odd Pages", + "filename": "create-booklet-left-odd-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-booklet-pdf-custom-page-order": { + "title": "Create Booklet PDF with Custom Page Order", + "filename": "create-booklet-pdf-custom-page-order.cs", + "description": "Demonstrates how to generate a booklet PDF by specifying left‑hand and right‑hand page sequences using Aspose.Pdf.Facades.PdfFileEditor.", "tags": [ + "booklet", "pdf", - "split", - "pages", "aspose", + "page-order", "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.SplitToPages" + "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "split-pdf-into-page-streams": { - "title": "Split PDF into Individual Page Streams", - "filename": "split-pdf-into-page-streams.cs", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfFileEditor to split a PDF into separate MemoryStream objects, each containing a single page, and optionally write them to files.", + "create-booklet-pdf-custom-page-order__v2": { + "title": "Create Booklet PDF with Custom Page Order", + "filename": "create-booklet-pdf-custom-page-order__v2.cs", + "description": "Demonstrates how to generate a booklet PDF using Aspose.Pdf.Facades by specifying left and right page sequences.", "tags": [ + "booklet", "pdf", - "split", - "memorystream", "aspose", + "page-order", "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.SplitToPages" + "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "delete-pages-from-pdf-file-path": { - "title": "Delete Pages 2‑5 from PDF Using File‑Path Overload", - "filename": "delete-pages-from-pdf-file-path.cs", - "description": "Demonstrates how to remove specific pages (2‑5) from a PDF file by using the PdfFileEditor.Delete method that works with input and output file paths.", + "create-booklet-pdf-custom-page-size": { + "title": "Create Booklet PDF with Custom Page Size", + "filename": "create-booklet-pdf-custom-page-size.cs", + "description": "Demonstrates how to generate a booklet from an existing PDF while specifying a custom page dimension (A5) using Aspose.Pdf's Facade API.", "tags": [ + "booklet", "pdf", - "page-deletion", - "aspose-pdf", - "file-path", - "csharp" + "custom-page-size", + "Aspose.Pdf", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Delete" + "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet", + "Aspose.Pdf.PageSize" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "delete-specific-pages-from-pdf": { - "title": "Delete Specific Pages from PDF using PdfFileEditor", - "filename": "delete-specific-pages-from-pdf.cs", - "description": "Shows how to remove selected pages from a PDF by passing input and output streams to Aspose.Pdf.Facades.PdfFileEditor.", + "create-booklet-pdf-custom-page-size__v2": { + "title": "Create Booklet PDF with Custom 5.5x8.5 Inch Page Size", + "filename": "create-booklet-pdf-custom-page-size__v2.cs", + "description": "Demonstrates how to generate a booklet from an existing PDF stream using Aspose.Pdf.Facades, specifying a custom 5.5 × 8.5 inch page size, and saving the result to disk.", "tags": [ + "booklet", + "custom-page-size", "pdf", - "delete-pages", - "aspose", - "facade", - "csharp" + "aspose.pdf", + "facades" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Delete" + "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet", + "Aspose.Pdf.PageSize" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "remove-first-and-last-pages-from-pdf": { - "title": "Remove First and Last Pages from PDF", - "filename": "remove-first-and-last-pages-from-pdf.cs", - "description": "Demonstrates how to delete the first and last pages of a PDF file using Aspose.Pdf's PdfFileEditor.Delete method with a page number array.", + "create-booklet-pdf-delete-resize": { + "title": "Create Booklet PDF After Deleting and Resizing Pages", + "filename": "create-booklet-pdf-delete-resize.cs", + "description": "Shows how to remove selected pages, resize all page contents, and generate a booklet version of a PDF using Aspose.Pdf.Facades.", "tags": [ "pdf", + "booklet", "delete-pages", - "aspose-pdf", - "csharp", - "facade" + "resize", + "aspose" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Delete" + "Aspose.Pdf.Facades.PdfFileEditor.Delete", + "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents", + "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "batch-delete-pages-from-multiple-pdfs": { - "title": "Batch Delete Pages from Multiple PDFs", - "filename": "batch-delete-pages-from-multiple-pdfs.cs", - "description": "Demonstrates how to loop through PDF files in a folder and delete specific pages from each using Aspose.Pdf.Facades.PdfFileEditor.", + "create-booklet-pdf-from-stream": { + "title": "Create Booklet Pdf From Stream", + "filename": "create-booklet-pdf-from-stream.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-booklet-pdf-left-odd-pages": { + "title": "Create Booklet PDF with Left Pages as Odd Numbers", + "filename": "create-booklet-pdf-left-odd-pages.cs", + "description": "Shows how to use Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet to generate a booklet PDF from input streams while defining odd-numbered left pages and even-numbered right pages.", "tags": [ + "booklet", "pdf", - "batch", - "page-deletion", "aspose", - "facade" + "pdfeditor", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Delete" + "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "validate-pdf-page-deletion": { - "title": "Validate PDF Page Deletion Reduces Page Count", - "filename": "validate-pdf-page-deletion.cs", - "description": "Shows how to delete specific pages from a PDF using Aspose.Pdf.Facades and verify that the total page count decreases after the operation.", - "tags": [ - "pdf", - "delete-pages", - "validation", - "aspose", - "facades" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.GetPages", - "Aspose.Pdf.Facades.PdfFileEditor.TryDelete" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:34:35Z", + "create-booklet-pdf-left-right-pages": { + "title": "Create Booklet Pdf Left Right Pages", + "filename": "create-booklet-pdf-left-right-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "concatenate-three-pdfs-into-one": { - "title": "Concatenate Three PDFs into a Single Document", - "filename": "concatenate-three-pdfs-into-one.cs", - "description": "Demonstrates how to merge three PDF files into one using Aspose.Pdf.Facades.PdfFileEditor and the three‑argument Concatenate method, employing a temporary file for the intermediate result.", + "create-booklet-pdf-using-pdffileeditor": { + "title": "Create Booklet Pdf Using Pdffileeditor", + "filename": "create-booklet-pdf-using-pdffileeditor.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-booklet-pdf-with-page-deletion": { + "title": "Create Booklet Pdf With Page Deletion", + "filename": "create-booklet-pdf-with-page-deletion.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-booklet-pdf": { + "title": "Create Booklet PDF from Stream", + "filename": "create-booklet-pdf.cs", + "description": "Shows how to convert an input PDF stream into a booklet PDF using Aspose.Pdf's PdfFileEditor and return the result as a MemoryStream.", "tags": [ + "booklet", "pdf", - "concatenation", + "memorystream", "aspose-pdf", - "csharp", - "file-editor" + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "PdfFileEditor.Concatenate" + "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "merge-multiple-pdf-streams": { - "title": "Merge Multiple PDF Streams into a Single PDF", - "filename": "merge-multiple-pdf-streams.cs", - "description": "Demonstrates how to concatenate several PDF streams into one output stream using Aspose.Pdf.Facades.PdfFileEditor.", + "create-booklet-with-custom-page-order": { + "title": "Create Booklet PDF with Custom Left/Right Page Order", + "filename": "create-booklet-with-custom-page-order.cs", + "description": "Shows how to generate a booklet PDF using Aspose.Pdf by providing separate left‑hand (odd) and right‑hand (even) page sequences.", "tags": [ + "booklet", "pdf", - "concatenate", - "stream", - "merge", - "aspose" + "custom-page-order", + "aspose.pdf", + "csharp" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Concatenate", - "Aspose.Pdf.Facades.PdfFileEditor.CloseConcatenatedStreams" + "PdfFileEditor.MakeBooklet", + "Aspose.Pdf.PageSize", + "PdfFileEditor", + "PageSize.A4" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "concatenate-two-pdfs-using-pdffileeditor": { - "title": "Concatenate Two PDFs Using PdfFileEditor", - "filename": "concatenate-two-pdfs-using-pdffileeditor.cs", - "description": "Shows how to merge two PDF files into a single document using the two‑file overload of PdfFileEditor.Concatenate, creating sample PDFs on the fly.", - "tags": [ - "pdf", - "concatenate", - "merge", - "Aspose.Pdf", - "PdfFileEditor" - ], - "apis_used": [ - "Aspose.Pdf.PdfFileEditor", - "Aspose.Pdf.PdfFileEditor.Concatenate", - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:34:35Z", + "create-custom-booklet-pdf": { + "title": "Create Custom Booklet Pdf", + "filename": "create-custom-booklet-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "concatenate-pdfs-from-memory-streams": { - "title": "Concatenate PDFs from Memory Streams to File", - "filename": "concatenate-pdfs-from-memory-streams.cs", - "description": "Creates PDF documents in memory, concatenates them using Aspose.Pdf.Facades.PdfFileEditor, and writes the merged result directly to a file without intermediate storage.", + "create-left-half-booklet": { + "title": "Create Left-Half Booklet from PDF", + "filename": "create-left-half-booklet.cs", + "description": "Shows how to generate a booklet PDF using only the even-numbered (left) pages from the first half of a source PDF by leveraging Aspose.Pdf's Document and PdfFileEditor classes.", "tags": [ + "booklet", "pdf", - "concatenation", - "memory-stream", - "aspose-pdf", - "file-output" + "left-pages", + "aspose", + "facades" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Concatenate" + "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "batch-concatenate-pdfs": { - "title": "Batch Concatenate PDFs in a Folder", - "filename": "batch-concatenate-pdfs.cs", - "description": "Shows how to gather all PDF files from a directory and merge them into a single PDF using Aspose.Pdf.Facades.", - "tags": [ - "pdf", - "concatenate", - "batch", - "aspose", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Concatenate" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:34:35Z", + "create-nup-and-booklet-pdf": { + "title": "Create Nup And Booklet Pdf", + "filename": "create-nup-and-booklet-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "concatenate-multiple-pdfs-measure-time": { - "title": "Concatenate Multiple PDFs and Measure Execution Time", - "filename": "concatenate-multiple-pdfs-measure-time.cs", - "description": "Demonstrates how to concatenate fifty small PDF files using Aspose.Pdf.Facades.PdfFileEditor stream overloads, configure automatic stream closing, and measure the operation duration with Stopwatch.", + "create-pdf-booklet-custom-page-order": { + "title": "Create Pdf Booklet Custom Page Order", + "filename": "create-pdf-booklet-custom-page-order.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-pdf-booklet-in-separate-folders": { + "title": "Create PDF Booklets in Separate Output Folders", + "filename": "create-pdf-booklet-in-separate-folders.cs", + "description": "Demonstrates how to generate a booklet PDF from each source file using Aspose.Pdf.Facades and store the result in its own output directory.", "tags": [ "pdf", - "concatenation", - "performance", - "streams", - "aspose-pdf" + "booklet", + "aspose", + "batch", + "output-directory" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Concatenate", - "Aspose.Pdf.Facades.PdfFileEditor.CloseConcatenatedStreams" + "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "compare-pdf-concatenation-paths-streams": { - "title": "Compare PDF Concatenation via File Paths and Streams", - "filename": "compare-pdf-concatenation-paths-streams.cs", - "description": "Demonstrates how to concatenate two PDF files using Aspose.Pdf.Facades.PdfFileEditor with both file‑path and stream overloads, while measuring memory consumption for each approach.", + "create-pdf-booklet-with-audit-log": { + "title": "Create PDF Booklet with Audit Log", + "filename": "create-pdf-booklet-with-audit-log.cs", + "description": "Demonstrates how to generate a booklet PDF using Aspose.Pdf.Facades.PdfFileEditor while logging each step and the conversion log to a text file for audit purposes.", "tags": [ "pdf", - "concatenation", - "streams", - "memory", - "aspose" + "booklet", + "audit-log", + "aspose", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "PdfFileEditor.Concatenate(string, string, string)", - "PdfFileEditor.Concatenate(Stream, Stream, Stream)", - "PdfFileEditor.CloseConcatenatedStreams" + "PdfFileEditor.MakeBooklet", + "PdfFileEditor.ConversionLog" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:34:35Z", @@ -884,105 +1033,98 @@ "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "create-a5-booklet-from-pdf": { - "title": "Create A5 Booklet from PDF", - "filename": "create-a5-booklet-from-pdf.cs", - "description": "Demonstrates how to generate a booklet with A5 page size from an existing PDF using Aspose.Pdf's PdfFileEditor.MakeBooklet overload.", + "create-pdf-booklets": { + "title": "Create Pdf Booklets", + "filename": "create-pdf-booklets.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-verify-pdf-booklet-page-sizes": { + "title": "Create and Verify PDF Booklet with Various Page Sizes", + "filename": "create-verify-pdf-booklet-page-sizes.cs", + "description": "Demonstrates generating sample PDFs, concatenating them, and using Aspose.Pdf's PdfFileEditor to create a booklet while reporting different page size configurations.", "tags": [ - "booklet", - "A5", "pdf", - "Aspose.Pdf", - "page-size" + "booklet", + "page-size", + "aspose", + "testing" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Facades.PdfFileEditor", "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet", + "Aspose.Pdf.Facades.PdfFileEditor.Concatenate", "Aspose.Pdf.PageSize" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "create-booklet-with-custom-page-order": { - "title": "Create Booklet PDF with Custom Left/Right Page Order", - "filename": "create-booklet-with-custom-page-order.cs", - "description": "Shows how to generate a booklet PDF using Aspose.Pdf by providing separate left‑hand (odd) and right‑hand (even) page sequences.", + "delete-and-resize-pdf-pages": { + "title": "Delete and Resize PDF Pages", + "filename": "delete-and-resize-pdf-pages.cs", + "description": "Shows how to delete selected pages from a PDF, resize the remaining pages, and return the processed document as a MemoryStream using Aspose.Pdf.Facades.", "tags": [ - "booklet", "pdf", - "custom-page-order", - "aspose.pdf", - "csharp" + "delete-pages", + "resize", + "memorystream", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "PdfFileEditor.MakeBooklet", - "Aspose.Pdf.PageSize", - "PdfFileEditor", - "PageSize.A4" + "Aspose.Pdf.Facades.PdfFileEditor.Delete", + "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "create-booklet-pdf-custom-page-size": { - "title": "Create Booklet PDF with Custom Page Size", - "filename": "create-booklet-pdf-custom-page-size.cs", - "description": "Demonstrates how to generate a booklet from an existing PDF while specifying a custom page dimension (A5) using Aspose.Pdf's Facade API.", + "delete-pages-and-create-booklet": { + "title": "Delete Pages and Create Booklet from PDF", + "filename": "delete-pages-and-create-booklet.cs", + "description": "Shows how to remove specific pages from a PDF and then generate a booklet using Aspose.Pdf's PdfFileEditor.", "tags": [ - "booklet", "pdf", - "custom-page-size", - "Aspose.Pdf", - "facade" + "delete-pages", + "booklet", + "facade", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet", - "Aspose.Pdf.PageSize" + "Aspose.Pdf.Facades.PdfFileEditor.Delete", + "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "create-pdf-booklet-in-separate-folders": { - "title": "Create PDF Booklets in Separate Output Folders", - "filename": "create-pdf-booklet-in-separate-folders.cs", - "description": "Demonstrates how to generate a booklet PDF from each source file using Aspose.Pdf.Facades and store the result in its own output directory.", - "tags": [ - "pdf", - "booklet", - "aspose", - "batch", - "output-directory" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:34:35Z", + "delete-pages-and-resize-pdf": { + "title": "Delete Pages And Resize Pdf", + "filename": "delete-pages-and-resize-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "delete-pages-and-create-booklet": { - "title": "Delete Pages and Create Booklet from PDF", - "filename": "delete-pages-and-create-booklet.cs", - "description": "Shows how to remove specific pages from a PDF and then generate a booklet using Aspose.Pdf's PdfFileEditor.", - "tags": [ - "pdf", - "delete-pages", - "booklet", - "facade", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Delete", - "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:34:35Z", + "delete-pages-apply-two-up-layout": { + "title": "Delete Pages Apply Two Up Layout", + "filename": "delete-pages-apply-two-up-layout.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, "delete-pages-concatenate-pdfs": { @@ -1005,246 +1147,415 @@ "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "delete-specific-pages-pdf-error-handling": { - "title": "Delete Specific Pages from PDF with Error Handling", - "filename": "delete-specific-pages-pdf-error-handling.cs", - "description": "Demonstrates how to remove selected pages from a PDF using Aspose.Pdf's PdfFileEditor Delete method while handling missing input files and PDF‑related exceptions.", + "delete-pages-create-2up-pdf": { + "title": "Delete Pages and Create 2‑up PDF Layout", + "filename": "delete-pages-create-2up-pdf.cs", + "description": "Shows how to remove specified pages from a PDF stream and then arrange the remaining pages in a 2‑up (two pages per sheet) layout, outputting the result to another stream.", "tags": [ "pdf", - "delete-pages", - "error-handling", - "aspose", - "csharp" + "page-deletion", + "2-up", + "nup", + "stream" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", "Aspose.Pdf.Facades.PdfFileEditor.Delete", - "Aspose.Pdf.PdfException" + "Aspose.Pdf.Facades.PdfFileEditor.MakeNUp" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "create-pdf-booklet-with-audit-log": { - "title": "Create PDF Booklet with Audit Log", - "filename": "create-pdf-booklet-with-audit-log.cs", - "description": "Demonstrates how to generate a booklet PDF using Aspose.Pdf.Facades.PdfFileEditor while logging each step and the conversion log to a text file for audit purposes.", - "tags": [ - "pdf", - "booklet", - "audit-log", - "aspose", - "facade" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfFileEditor", - "PdfFileEditor.MakeBooklet", - "PdfFileEditor.ConversionLog" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:34:35Z", + "delete-pages-from-multiple-pdfs": { + "title": "Delete Pages From Multiple Pdfs", + "filename": "delete-pages-from-multiple-pdfs.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "create-booklet-custom-page-order": { - "title": "Create Booklet with Custom Left/Right Page Order", - "filename": "create-booklet-custom-page-order.cs", - "description": "Demonstrates adding visible page numbers, defining custom left and right page arrays, and using Aspose.Pdf's MakeBooklet to generate a booklet with the specified order, then verifies the result by extracting the page numbers.", + "delete-pages-from-pdf-file-path": { + "title": "Delete Pages 2‑5 from PDF Using File‑Path Overload", + "filename": "delete-pages-from-pdf-file-path.cs", + "description": "Demonstrates how to remove specific pages (2‑5) from a PDF file by using the PdfFileEditor.Delete method that works with input and output file paths.", "tags": [ - "booklet", - "custom-pages", - "Aspose.Pdf", - "page-numbering", - "pdf-manipulation" + "pdf", + "page-deletion", + "aspose-pdf", + "file-path", + "csharp" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextAbsorber", "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet", - "Aspose.Pdf.Position", - "Aspose.Pdf.Color" + "Aspose.Pdf.Facades.PdfFileEditor.Delete" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "resize-pdf-to-letter-size": { - "title": "Resize PDF to Letter Size Using PdfFileEditor", - "filename": "resize-pdf-to-letter-size.cs", - "description": "Demonstrates how to resize all pages of an existing PDF to US Letter dimensions (8.5\" x 11\") using the file‑path overload of PdfFileEditor.ResizeContents and save the result.", + "delete-pages-from-pdfs": { + "title": "Delete Specific Pages from PDFs", + "filename": "delete-pages-from-pdfs.cs", + "description": "Shows how to remove given page numbers from one or more PDF files using Aspose.Pdf.Facades and save the cleaned versions.", "tags": [ "pdf", - "resize", - "letter-size", - "aspose", - "facade" + "page-deletion", + "aspose-pdf", + "csharp", + "facades" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents" + "Aspose.Pdf.Facades.PdfFileEditor.Delete" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "resize-pdf-pages-to-8-5x11-using-stream": { - "title": "Resize PDF Pages to 8.5x11 Inches Using Stream Overload", - "filename": "resize-pdf-pages-to-8-5x11-using-stream.cs", - "description": "Demonstrates how to change all pages of a PDF to standard US Letter size (8.5×11 inches) by using PdfFileEditor’s stream-based ResizeContents method with custom page dimensions.", + "delete-pages-resize-pdf-contents": { + "title": "Delete Pages Resize Pdf Contents", + "filename": "delete-pages-resize-pdf-contents.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "delete-pages-resize-pdf": { + "title": "Delete Pages and Resize PDF Content", + "filename": "delete-pages-resize-pdf.cs", + "description": "Shows how to remove specific pages from a PDF stream using PdfFileEditor and then scale the remaining pages before saving the document.", "tags": [ "pdf", + "delete-pages", "resize", - "page-size", - "stream", - "aspose-pdf" + "aspose-pdf", + "facades" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeParameters", - "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeParameters.PageResize", - "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents" + "Aspose.Pdf.Facades.PdfFileEditor.Delete", + "Aspose.Pdf.Facades.PdfFileEditor.ResizeContentsPct", + "Aspose.Pdf.Document.Pages.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "batch-resize-pdfs-to-a4": { - "title": "Batch Resize PDFs to A4", - "filename": "batch-resize-pdfs-to-a4.cs", - "description": "Iterates through all PDF files in a source folder, resizes each document to A4 page size using Aspose.Pdf.Facades, and saves the results to a target directory.", + "delete-pdf-pages-cli": { + "title": "Delete Pages from PDF via Command Line", + "filename": "delete-pdf-pages-cli.cs", + "description": "Shows how to build a command‑line tool that removes specified pages from a PDF using Aspose.Pdf.Facades.PdfFileEditor and writes the output file.", "tags": [ "pdf", - "batch", - "resize", - "a4", - "facade" + "delete-pages", + "command-line", + "aspose.pdf", + "facades" ], "apis_used": [ - "PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.PageSize", - "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save", - "PageSize" + "Aspose.Pdf.Facades.PdfFileEditor", + "Aspose.Pdf.Facades.PdfFileEditor.TryDelete" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "measure-pdf-resize-performance-path-vs-stream": { - "title": "Measure PDF Resize Performance: Path vs Stream Overloads", - "filename": "measure-pdf-resize-performance-path-vs-stream.cs", - "description": "The example resizes all pages of a large PDF using Aspose.Pdf.Facades.PdfFileEditor and measures the execution time of the file‑path and stream overloads to compare their performance.", + "delete-pdf-pages-get-size": { + "title": "Delete PDF Pages and Get Resulting Size", + "filename": "delete-pdf-pages-get-size.cs", + "description": "Demonstrates how to remove specific pages from a PDF using Aspose.Pdf.Facades.PdfFileEditor and return the size of the modified document.", "tags": [ "pdf", - "resize", - "performance", - "stream", - "aspose-pdf" + "delete-pages", + "filesize", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents(string, string, int[], double, double)", - "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents(Stream, Stream, int[], double, double)" + "Aspose.Pdf.Facades.PdfFileEditor.Delete" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "create-2up-pdf-layout": { - "title": "Create 2-up PDF Layout with Aspose PdfFileEditor", - "filename": "create-2up-pdf-layout.cs", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfFileEditor to combine two PDF pages onto a single page (2‑up) and save the result.", + "delete-pdf-pages": { + "title": "Delete Pdf Pages", + "filename": "delete-pdf-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "delete-specific-pages-from-pdf": { + "title": "Delete Specific Pages from PDF using PdfFileEditor", + "filename": "delete-specific-pages-from-pdf.cs", + "description": "Shows how to remove selected pages from a PDF by passing input and output streams to Aspose.Pdf.Facades.PdfFileEditor.", "tags": [ "pdf", - "nup", + "delete-pages", "aspose", - "csharp", - "facade" + "facade", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.MakeNUp" + "Aspose.Pdf.Facades.PdfFileEditor.Delete" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "create-4up-pdf-with-pdffileeditor": { - "title": "Create 4‑up PDF using PdfFileEditor and MemoryStream", - "filename": "create-4up-pdf-with-pdffileeditor.cs", - "description": "Demonstrates how to apply a 4‑up (2×2) layout to an existing PDF by using the PdfFileEditor.TryMakeNUp overload that works with streams, keeping the result in memory before optionally saving it to disk.", + "delete-specific-pages-from-pdfs": { + "title": "Delete Specific Pages from PDFs in a Folder", + "filename": "delete-specific-pages-from-pdfs.cs", + "description": "Demonstrates how to batch‑process PDF files by removing pages 3 and 4 from each document using Aspose.Pdf.Facades. The example reads PDFs from a source directory and writes the modified files to an output directory.", "tags": [ "pdf", - "4-up", - "memory-stream", - "Aspose.Pdf", - "N-up" + "delete-pages", + "batch-processing", + "aspose", + "facades" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.TryMakeNUp" + "Aspose.Pdf.Facades.PdfFileEditor.Delete" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "batch-create-nup-pdfs-3x2": { - "title": "Batch Create N‑up PDFs with 3 Columns and 2 Rows", - "filename": "batch-create-nup-pdfs-3x2.cs", - "description": "Shows how to iterate over a list of PDF files and generate N‑up versions using a 3‑column by 2‑row layout with Aspose.Pdf.Facades.", + "delete-specific-pages-pdf-error-handling": { + "title": "Delete Specific Pages from PDF with Error Handling", + "filename": "delete-specific-pages-pdf-error-handling.cs", + "description": "Demonstrates how to remove selected pages from a PDF using Aspose.Pdf's PdfFileEditor Delete method while handling missing input files and PDF‑related exceptions.", "tags": [ "pdf", - "n-up", - "batch", + "delete-pages", + "error-handling", "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.MakeNUp" + "Aspose.Pdf.Facades.PdfFileEditor.Delete", + "Aspose.Pdf.PdfException" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "nup-to-booklet-pdf": { - "title": "Create N‑up PDF and Convert to Booklet", - "filename": "nup-to-booklet-pdf.cs", - "description": "Demonstrates how to generate an N‑up layout (multiple original pages per sheet) using PdfFileEditor.MakeNUp and then transform the resulting PDF into a booklet with PdfFileEditor.MakeBooklet, including cleanup of the intermediate file.", + "delete-specific-pages-with-error-handling": { + "title": "Delete Specific Pages With Error Handling", + "filename": "delete-specific-pages-with-error-handling.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-first-n-pages-using-splitfromfirst": { + "title": "Extract First N Pages Using Splitfromfirst", + "filename": "extract-first-n-pages-using-splitfromfirst.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-front-pages-splitfromfirst-streams": { + "title": "Extract Front Pages from PDF Using SplitFromFirst with Streams", + "filename": "extract-front-pages-splitfromfirst-streams.cs", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfFileEditor.SplitFromFirst with in‑memory streams to extract pages 1 through a specified end page from a PDF.", "tags": [ - "n-up", - "booklet", "pdf", - "aspose-pdf", - "facades" + "split", + "stream", + "in-memory", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.MakeNUp", - "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet" + "Aspose.Pdf.Facades.PdfFileEditor.SplitFromFirst" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:34:35Z", + "status": "verified" + }, + "extract-front-part-pdf-splitfromfirst": { + "title": "Extract Front Part of PDF with SplitFromFirst", + "filename": "extract-front-part-pdf-splitfromfirst.cs", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfFileEditor.SplitFromFirst to extract pages from the beginning of a PDF up to a specified page and save them as a new document.", + "tags": [ + "pdf", + "split", + "pages", + "aspose", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfFileEditor", + "Aspose.Pdf.Facades.PdfFileEditor.SplitFromFirst" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:34:35Z", + "status": "verified" + }, + "insert-blank-separator-pages-when-merging-pdfs": { + "title": "Insert Blank Separator Pages When Merging Pdfs", + "filename": "insert-blank-separator-pages-when-merging-pdfs.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "insert-image-into-pdf-and-save-modified-file": { + "title": "Insert Image Into Pdf And Save Modified File", + "filename": "insert-image-into-pdf-and-save-modified-file.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "insert-page-range-into-pdf-using-streams": { + "title": "Insert Page Range Into Pdf Using Streams", + "filename": "insert-page-range-into-pdf-using-streams.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "insert-page-range-into-pdf": { + "title": "Insert Page Range from Source PDF into Destination PDF", + "filename": "insert-page-range-into-pdf.cs", + "description": "Demonstrates how to insert a specific range of pages from one PDF file into another using Aspose.Pdf's PdfFileEditor.", + "tags": [ + "pdf", + "page-insertion", + "merge", + "Aspose.Pdf", + "PdfFileEditor" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfFileEditor", + "Aspose.Pdf.Facades.PdfFileEditor.Insert" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:34:35Z", + "status": "verified" + }, + "insert-page-range-into-pdf__v2": { + "title": "Insert Page Range from One PDF into Another Using Streams", + "filename": "insert-page-range-into-pdf__v2.cs", + "description": "Shows how to insert a specific range of pages from a source PDF stream into a destination PDF stream and write the merged document to an output stream with Aspose.Pdf.Facades.", + "tags": [ + "pdf", + "insert-pages", + "streams", + "aspose", + "c#" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfFileEditor", + "Aspose.Pdf.Facades.PdfFileEditor.Insert" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "delete-pages-resize-pdf": { - "title": "Delete Pages and Resize PDF Content", - "filename": "delete-pages-resize-pdf.cs", - "description": "Shows how to remove specific pages from a PDF stream using PdfFileEditor and then scale the remaining pages before saving the document.", + "insert-pages-at-start-of-pdf": { + "title": "Insert Pages At Start Of Pdf", + "filename": "insert-pages-at-start-of-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "insert-pages-into-middle-of-pdf": { + "title": "Insert Pages from One PDF into the Middle of Another", + "filename": "insert-pages-into-middle-of-pdf.cs", + "description": "Shows how to insert all pages of a source PDF into the middle of a destination PDF using Aspose.Pdf's PdfFileEditor.", "tags": [ "pdf", - "delete-pages", - "resize", - "aspose-pdf", - "facades" + "insert-pages", + "aspose.pdf", + "document-merge", + "c#" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Delete", - "Aspose.Pdf.Facades.PdfFileEditor.ResizeContentsPct", + "Aspose.Pdf.Facades.PdfFileEditor.Insert", + "Aspose.Pdf.PageCollection", + "Aspose.Pdf.PageCollection.Count" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:34:35Z", + "status": "verified" + }, + "insert-pages-into-pdf-and-save": { + "title": "Insert Pages into PDF and Save to File", + "filename": "insert-pages-into-pdf-and-save.cs", + "description": "Demonstrates how to insert selected pages from one PDF into another at a specific position using Aspose.Pdf.Facades and save the modified document to a new file.", + "tags": [ + "pdf", + "page-insertion", + "aspose", + "csharp", + "facade" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfFileEditor", + "Aspose.Pdf.Facades.PdfFileEditor.TryInsert" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:34:35Z", + "status": "verified" + }, + "insert-pages-into-pdf-at-middle": { + "title": "Insert Pages Into Pdf At Middle", + "filename": "insert-pages-into-pdf-at-middle.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "insert-pages-into-pdf-in-memory": { + "title": "Insert Pages from One PDF into Another In-Memory", + "filename": "insert-pages-into-pdf-in-memory.cs", + "description": "Shows how to create source and destination PDFs entirely in memory, then insert a specific page from the source PDF into the destination PDF using Aspose.Pdf.Facades.PdfFileEditor.Insert, and output the merged document to a MemoryStream.", + "tags": [ + "pdf", + "insert-pages", + "memorystream", + "aspose.pdf", + "facade" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfFileEditor.Insert", + "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Document.Pages.Add", "Aspose.Pdf.Document.Save" ], @@ -1252,786 +1563,995 @@ "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "remove-pages-from-multiple-pdfs-in-parallel": { - "title": "Remove Pages from Multiple PDFs in Parallel", - "filename": "remove-pages-from-multiple-pdfs-in-parallel.cs", - "description": "Demonstrates how to delete specified pages from a list of PDF files using Aspose.Pdf.Facades.PdfFileEditor and process the files concurrently with Parallel.ForEach.", + "insert-pages-multiple-pdfs-into-base": { + "title": "Insert Pages Multiple Pdfs Into Base", + "filename": "insert-pages-multiple-pdfs-into-base.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "insert-pdf-pages-at-beginning": { + "title": "Insert PDF Pages at Beginning Using PdfFileEditor", + "filename": "insert-pdf-pages-at-beginning.cs", + "description": "Shows how to insert all pages from a source PDF at the start of another PDF using Aspose.Pdf.Facades.PdfFileEditor.", "tags": [ "pdf", - "page-removal", - "parallel", - "aspose-pdf", - "csharp" + "insert", + "pages", + "aspose", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Delete" + "Aspose.Pdf.Facades.PdfFileEditor.Insert", + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Document.Pages.Count" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "concatenate-pdfs-using-stream-overloads": { - "title": "Concatenate PDFs Using Stream Overloads", - "filename": "concatenate-pdfs-using-stream-overloads.cs", - "description": "Shows how to merge multiple PDF files passed as command‑line arguments into a single PDF using Aspose.Pdf.Facades PdfFileEditor with its stream‑based Concatenate overload.", + "insert-selected-pages-into-pdf": { + "title": "Insert Selected Pages from One PDF into Another", + "filename": "insert-selected-pages-into-pdf.cs", + "description": "Shows how to insert specific pages from a source PDF into a destination PDF at a defined position using Aspose.Pdf.Facades.PdfFileEditor.", "tags": [ "pdf", - "concatenation", - "stream", - "command-line", - "aspose.pdf" + "insert-pages", + "aspose.pdf", + "facade", + "c#" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Concatenate", - "Aspose.Pdf.Facades.PdfFileEditor.CloseConcatenatedStreams" + "Aspose.Pdf.Facades.PdfFileEditor.Insert" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "pdffileeditor-delete-invalid-page-test": { - "title": "Test Delete Throws Exception for Invalid Page Number", - "filename": "pdffileeditor-delete-invalid-page-test.cs", - "description": "Shows how to write a unit test that verifies PdfFileEditor.Delete throws an exception when a page number larger than the document length is supplied.", + "insert-specific-pages-into-pdf-using-streams": { + "title": "Insert Specific Pages Into Pdf Using Streams", + "filename": "insert-specific-pages-into-pdf-using-streams.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "insert-specific-pages-into-pdf": { + "title": "Insert Specific Pages from One PDF into Another Using Streams", + "filename": "insert-specific-pages-into-pdf.cs", + "description": "Shows how to insert selected pages from a source PDF into a destination PDF at a specified position using Aspose.Pdf.Facades.PdfFileEditor with input and output streams.", "tags": [ "pdf", - "unit-test", + "insert-pages", + "streams", + "aspose-pdf", + "facade" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfFileEditor", + "Aspose.Pdf.Facades.PdfFileEditor.Insert" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:34:35Z", + "status": "verified" + }, + "load-pdf-and-save-copy": { + "title": "Load PDF and Save a Copy using Aspose.Pdf", + "filename": "load-pdf-and-save-copy.cs", + "description": "Shows how to load a PDF file from a file path with Aspose.Pdf's Document class and save it to another location.", + "tags": [ + "pdf", + "load", + "save", "aspose", - "delete", - "exception" + "document" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:34:35Z", + "status": "verified" + }, + "load-pdf-and-save-with-aspose-pdf": { + "title": "Load PDF and Save with Aspose.Pdf", + "filename": "load-pdf-and-save-with-aspose-pdf.cs", + "description": "Demonstrates loading an existing PDF file using Aspose.Pdf's Document class, checking its existence, and saving it to a new location.", + "tags": [ + "pdf", + "load", + "save", + "aspose.pdf", + "document" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:34:35Z", + "status": "verified" + }, + "load-pdf-document-from-file": { + "title": "Load Pdf Document From File", + "filename": "load-pdf-document-from-file.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "log-pdf-page-deletions-audit": { + "title": "Log Pdf Page Deletions Audit", + "filename": "log-pdf-page-deletions-audit.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "measure-pdf-concatenation-performance": { + "title": "Measure Pdf Concatenation Performance", + "filename": "measure-pdf-concatenation-performance.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "measure-pdf-resize-performance-path-vs-stream": { + "title": "Measure PDF Resize Performance: Path vs Stream Overloads", + "filename": "measure-pdf-resize-performance-path-vs-stream.cs", + "description": "The example resizes all pages of a large PDF using Aspose.Pdf.Facades.PdfFileEditor and measures the execution time of the file‑path and stream overloads to compare their performance.", + "tags": [ + "pdf", + "resize", + "performance", + "stream", + "aspose-pdf" + ], + "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Facades.PdfFileEditor.Delete" + "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents(string, string, int[], double, double)", + "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents(Stream, Stream, int[], double, double)" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "create-booklet-pdf": { - "title": "Create Booklet PDF from Stream", - "filename": "create-booklet-pdf.cs", - "description": "Shows how to convert an input PDF stream into a booklet PDF using Aspose.Pdf's PdfFileEditor and return the result as a MemoryStream.", + "merge-multiple-pdf-streams": { + "title": "Merge Multiple PDF Streams into a Single PDF", + "filename": "merge-multiple-pdf-streams.cs", + "description": "Demonstrates how to concatenate several PDF streams into one output stream using Aspose.Pdf.Facades.PdfFileEditor.", "tags": [ - "booklet", "pdf", - "memorystream", - "aspose-pdf", - "facade" + "concatenate", + "stream", + "merge", + "aspose" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet" + "Aspose.Pdf.Facades.PdfFileEditor.Concatenate", + "Aspose.Pdf.Facades.PdfFileEditor.CloseConcatenatedStreams" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "create-booklet-pdf-custom-page-order": { - "title": "Create Booklet PDF with Custom Page Order", - "filename": "create-booklet-pdf-custom-page-order.cs", - "description": "Demonstrates how to generate a booklet PDF by specifying left‑hand and right‑hand page sequences using Aspose.Pdf.Facades.PdfFileEditor.", + "merge-multiple-pdfs-with-logging": { + "title": "Merge Multiple Pdfs With Logging", + "filename": "merge-multiple-pdfs-with-logging.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "merge-pdfs-from-memory-streams": { + "title": "Merge Pdfs From Memory Streams", + "filename": "merge-pdfs-from-memory-streams.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "merge-pdfs-from-network-streams": { + "title": "Merge PDFs from Network Streams without Intermediate Files", + "filename": "merge-pdfs-from-network-streams.cs", + "description": "Shows how to download PDF files via HttpClient into memory streams and merge them into a single PDF using Aspose.Pdf.Facades.PdfFileEditor without creating temporary files on disk.", "tags": [ - "booklet", "pdf", - "aspose", - "page-order", - "facade" + "merge", + "network", + "memory-stream", + "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet" + "Aspose.Pdf.Facades.PdfFileEditor.Concatenate" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "create-booklet-pdf-custom-page-size__v2": { - "title": "Create Booklet PDF with Custom 5.5x8.5 Inch Page Size", - "filename": "create-booklet-pdf-custom-page-size__v2.cs", - "description": "Demonstrates how to generate a booklet from an existing PDF stream using Aspose.Pdf.Facades, specifying a custom 5.5 × 8.5 inch page size, and saving the result to disk.", + "merge-pdfs-from-urls": { + "title": "Merge Pdfs From Urls", + "filename": "merge-pdfs-from-urls.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "merge-pdfs-with-blank-separator-pages": { + "title": "Merge PDFs with Blank Separator Pages", + "filename": "merge-pdfs-with-blank-separator-pages.cs", + "description": "Shows how to concatenate several PDF files and insert a blank page between each document using Aspose.Pdf.", "tags": [ - "booklet", - "custom-page-size", "pdf", - "aspose.pdf", - "facades" + "merge", + "separator", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet", - "Aspose.Pdf.PageSize" + "Aspose.Pdf.Facades.PdfFileEditor.Concatenate", + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Pages.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "validate-pdf-concatenation-page-order": { - "title": "Validate PDF Concatenation Preserves Page Order", - "filename": "validate-pdf-concatenation-page-order.cs", - "description": "Shows how to concatenate two PDFs with Aspose.Pdf and verify that the merged document keeps the original page sequence by comparing extracted page text.", + "merge-three-pdfs-using-pdffileeditor": { + "title": "Merge Three Pdfs Using Pdffileeditor", + "filename": "merge-three-pdfs-using-pdffileeditor.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "nup-to-booklet-pdf": { + "title": "Create N‑up PDF and Convert to Booklet", + "filename": "nup-to-booklet-pdf.cs", + "description": "Demonstrates how to generate an N‑up layout (multiple original pages per sheet) using PdfFileEditor.MakeNUp and then transform the resulting PDF into a booklet with PdfFileEditor.MakeBooklet, including cleanup of the intermediate file.", "tags": [ - "pdf-concatenation", - "page-order", - "validation", + "n-up", + "booklet", + "pdf", "aspose-pdf", - "text-extraction" + "facades" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Concatenate", - "Aspose.Pdf.Text.TextAbsorber", - "Aspose.Pdf.Page.Accept" + "Aspose.Pdf.Facades.PdfFileEditor.MakeNUp", + "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "delete-specific-pages-from-pdfs": { - "title": "Delete Specific Pages from PDFs in a Folder", - "filename": "delete-specific-pages-from-pdfs.cs", - "description": "Demonstrates how to batch‑process PDF files by removing pages 3 and 4 from each document using Aspose.Pdf.Facades. The example reads PDFs from a source directory and writes the modified files to an output directory.", + "parallel-pdf-page-deletion": { + "title": "Parallel Deletion of PDF Pages", + "filename": "parallel-pdf-page-deletion.cs", + "description": "Shows how to delete specific pages from multiple PDF documents concurrently using Aspose.Pdf.Facades.PdfFileEditor with Parallel.ForEach.", "tags": [ "pdf", - "delete-pages", - "batch-processing", + "parallel", + "page-deletion", "aspose", - "facades" + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", "Aspose.Pdf.Facades.PdfFileEditor.Delete" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "concatenate-multiple-pdfs-with-logging": { - "title": "Concatenate Multiple PDFs with Logging", - "filename": "concatenate-multiple-pdfs-with-logging.cs", - "description": "Demonstrates how to merge several PDF files into a single document using Aspose.Pdf.Facades.PdfFileEditor while logging the input and output file names.", + "pdffileeditor-delete-invalid-page-test": { + "title": "Test Delete Throws Exception for Invalid Page Number", + "filename": "pdffileeditor-delete-invalid-page-test.cs", + "description": "Shows how to write a unit test that verifies PdfFileEditor.Delete throws an exception when a page number larger than the document length is supplied.", "tags": [ "pdf", - "concatenation", - "logging", + "unit-test", "aspose", - "facades" + "delete", + "exception" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Concatenate", - "Aspose.Pdf.Facades.PdfFileEditor.CopyLogicalStructure", - "Aspose.Pdf.Facades.PdfFileEditor.ConversionLog" + "Aspose.Pdf.Document.Pages.Add", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Facades.PdfFileEditor.Delete" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "create-booklet-pdf-left-odd-pages": { - "title": "Create Booklet PDF with Left Pages as Odd Numbers", - "filename": "create-booklet-pdf-left-odd-pages.cs", - "description": "Shows how to use Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet to generate a booklet PDF from input streams while defining odd-numbered left pages and even-numbered right pages.", + "remove-first-and-last-pages-from-pdf": { + "title": "Remove First and Last Pages from PDF", + "filename": "remove-first-and-last-pages-from-pdf.cs", + "description": "Demonstrates how to delete the first and last pages of a PDF file using Aspose.Pdf's PdfFileEditor.Delete method with a page number array.", "tags": [ - "booklet", "pdf", - "aspose", - "pdfeditor", - "csharp" + "delete-pages", + "aspose-pdf", + "csharp", + "facade" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet" + "Aspose.Pdf.Facades.PdfFileEditor.Delete" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "resize-pdf-streams-verify-tiff": { - "title": "Resize PDF to Custom Dimensions Using Streams and Verify with TIFF Preview", - "filename": "resize-pdf-streams-verify-tiff.cs", - "description": "Demonstrates how to resize all pages of a PDF to 1024x768 points using the PdfFileEditor stream overload, then creates a TIFF preview of the first page to confirm visual fidelity.", + "remove-pages-from-multiple-pdfs-in-parallel": { + "title": "Remove Pages from Multiple PDFs in Parallel", + "filename": "remove-pages-from-multiple-pdfs-in-parallel.cs", + "description": "Demonstrates how to delete specified pages from a list of PDF files using Aspose.Pdf.Facades.PdfFileEditor and process the files concurrently with Parallel.ForEach.", "tags": [ "pdf", - "resize", - "stream", - "preview", - "tiff" + "page-removal", + "parallel", + "aspose-pdf", + "csharp" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents", "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfConverter", - "Aspose.Pdf.Facades.PdfConverter.DoConvert", - "Aspose.Pdf.Facades.PdfConverter.SaveAsTIFF", - "Aspose.Pdf.Devices.Resolution" + "Aspose.Pdf.Facades.PdfFileEditor.Delete" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "batch-delete-pages-merge-pdfs": { - "title": "Batch Delete Pages and Merge PDFs", - "filename": "batch-delete-pages-merge-pdfs.cs", - "description": "Shows how to remove specific pages from multiple PDF files and then concatenate the cleaned PDFs into a single document using Aspose.Pdf.Facades.", + "resize-and-concatenate-pdfs": { + "title": "Resize Multiple PDFs and Concatenate into One Document", + "filename": "resize-and-concatenate-pdfs.cs", + "description": "Shows how to batch‑resize PDF pages to 1024×768 points using PdfFileEditor.ResizeContents and then merge the resized PDFs into a single file with PdfFileEditor.Concatenate.", "tags": [ "pdf", - "delete-pages", - "merge", + "resize", + "concatenate", "batch", - "aspose" + "aspose.pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Delete", + "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents", "Aspose.Pdf.Facades.PdfFileEditor.Concatenate" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "concatenate-multiple-pdfs": { - "title": "Concatenate Multiple PDFs", - "filename": "concatenate-multiple-pdfs.cs", - "description": "Shows how to merge several PDF files into a single document using Aspose.Pdf's PdfFileEditor facade.", - "tags": [ - "pdf", - "concatenation", - "merge", - "facade", - "command-line" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Concatenate", - "Aspose.Pdf.Facades.PdfFileEditor.CloseConcatenatedStreams" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:34:35Z", + "resize-and-merge-pdfs": { + "title": "Resize And Merge Pdfs", + "filename": "resize-and-merge-pdfs.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "merge-pdfs-from-network-streams": { - "title": "Merge PDFs from Network Streams without Intermediate Files", - "filename": "merge-pdfs-from-network-streams.cs", - "description": "Shows how to download PDF files via HttpClient into memory streams and merge them into a single PDF using Aspose.Pdf.Facades.PdfFileEditor without creating temporary files on disk.", + "resize-pdf-landscape-booklet": { + "title": "Resize PDF to Landscape and Create Booklet", + "filename": "resize-pdf-landscape-booklet.cs", + "description": "Shows how to change a PDF's page orientation to landscape using PdfPageEditor and then generate a booklet from the resized document with PdfFileEditor.", "tags": [ "pdf", - "merge", - "network", - "memory-stream", - "aspose" + "landscape", + "booklet", + "page-editing", + "Aspose.Pdf" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfPageEditor", + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Concatenate" + "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "validate-makebooklet-null-pagesize": { - "title": "Validate MakeBooklet Throws Exception for Null PageSize", - "filename": "validate-makebooklet-null-pagesize.cs", - "description": "Shows how to test that PdfFileEditor.MakeBooklet raises an ArgumentNullException when the PageSize parameter is null.", + "resize-pdf-pages-to-8-5x11-using-stream": { + "title": "Resize PDF Pages to 8.5x11 Inches Using Stream Overload", + "filename": "resize-pdf-pages-to-8-5x11-using-stream.cs", + "description": "Demonstrates how to change all pages of a PDF to standard US Letter size (8.5×11 inches) by using PdfFileEditor’s stream-based ResizeContents method with custom page dimensions.", "tags": [ - "makebooklet", - "exception", "pdf", - "aspose", - "validation" + "resize", + "page-size", + "stream", + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeParameters", + "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeParameters.PageResize", + "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "delete-pdf-pages-get-size": { - "title": "Delete PDF Pages and Get Resulting Size", - "filename": "delete-pdf-pages-get-size.cs", - "description": "Demonstrates how to remove specific pages from a PDF using Aspose.Pdf.Facades.PdfFileEditor and return the size of the modified document.", + "resize-pdf-pages-using-streams": { + "title": "Resize Pdf Pages Using Streams", + "filename": "resize-pdf-pages-using-streams.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "resize-pdf-streams-verify-tiff": { + "title": "Resize PDF to Custom Dimensions Using Streams and Verify with TIFF Preview", + "filename": "resize-pdf-streams-verify-tiff.cs", + "description": "Demonstrates how to resize all pages of a PDF to 1024x768 points using the PdfFileEditor stream overload, then creates a TIFF preview of the first page to confirm visual fidelity.", "tags": [ "pdf", - "delete-pages", - "filesize", - "aspose-pdf", - "csharp" + "resize", + "stream", + "preview", + "tiff" ], "apis_used": [ + "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents", "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Delete" + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfConverter", + "Aspose.Pdf.Facades.PdfConverter.DoConvert", + "Aspose.Pdf.Facades.PdfConverter.SaveAsTIFF", + "Aspose.Pdf.Devices.Resolution" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "concatenate-pdfs-with-blank-pages": { - "title": "Concatenate PDFs with Blank Pages", - "filename": "concatenate-pdfs-with-blank-pages.cs", - "description": "Shows how to merge multiple PDF files and automatically insert a blank page between each document using Aspose.Pdf.", + "resize-pdf-to-letter-size": { + "title": "Resize PDF to Letter Size Using PdfFileEditor", + "filename": "resize-pdf-to-letter-size.cs", + "description": "Demonstrates how to resize all pages of an existing PDF to US Letter dimensions (8.5\" x 11\") using the file‑path overload of PdfFileEditor.ResizeContents and save the result.", "tags": [ "pdf", - "concatenation", - "blank-page", + "resize", + "letter-size", "aspose", - "csharp" + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Document.Save", "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Concatenate" + "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "batch-resize-pdfs-to-a5-and-create-booklets": { - "title": "Batch Resize PDFs to A5 and Create Booklets", - "filename": "batch-resize-pdfs-to-a5-and-create-booklets.cs", - "description": "Processes each PDF in a folder, resizes its pages to A5 dimensions, and then generates a booklet PDF from the resized file.", + "resize-pdfs-create-booklet": { + "title": "Resize PDFs and Create a Booklet", + "filename": "resize-pdfs-create-booklet.cs", + "description": "Shows how to resize multiple PDF files to 1024x768 points, concatenate them, and generate a booklet PDF using Aspose.Pdf.Facades.", "tags": [ "pdf", - "batch-processing", "resize", + "concatenate", "booklet", - "a5" + "facades" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents", - "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet", - "Aspose.Pdf.PageSize" + "Aspose.Pdf.Facades.PdfFileEditor.Concatenate", + "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "delete-pages-create-2up-pdf": { - "title": "Delete Pages and Create 2‑up PDF Layout", - "filename": "delete-pages-create-2up-pdf.cs", - "description": "Shows how to remove specified pages from a PDF stream and then arrange the remaining pages in a 2‑up (two pages per sheet) layout, outputting the result to another stream.", + "resize-pdfs-to-a5-and-create-booklet": { + "title": "Resize Pdfs To A5 And Create Booklet", + "filename": "resize-pdfs-to-a5-and-create-booklet.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "rotate-first-pdf-page-save-to-memorystream": { + "title": "Rotate First Pdf Page Save To Memorystream", + "filename": "rotate-first-pdf-page-save-to-memorystream.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "rotate-pdf-landscape-create-booklet": { + "title": "Rotate Pdf Landscape Create Booklet", + "filename": "rotate-pdf-landscape-create-booklet.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "rotate-pdf-page-save-to-memorystream": { + "title": "Rotate PDF Page and Save to MemoryStream", + "filename": "rotate-pdf-page-save-to-memorystream.cs", + "description": "Loads a PDF, rotates the first page 90 degrees clockwise, and saves the modified document directly into a MemoryStream without writing to disk.", "tags": [ "pdf", - "page-deletion", - "2-up", - "nup", - "stream" + "rotation", + "memorystream", + "aspose.pdf", + "csharp" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Delete", - "Aspose.Pdf.Facades.PdfFileEditor.MakeNUp" + "Aspose.Pdf.Document", + "Aspose.Pdf.Rotation", + "Aspose.Pdf.Page", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "create-booklet-pdf-custom-page-order__v2": { - "title": "Create Booklet PDF with Custom Page Order", - "filename": "create-booklet-pdf-custom-page-order__v2.cs", - "description": "Demonstrates how to generate a booklet PDF using Aspose.Pdf.Facades by specifying left and right page sequences.", + "split-pdf-from-first-page-to-end-page": { + "title": "Split PDF from First Page to Specified End Page Using Streams", + "filename": "split-pdf-from-first-page-to-end-page.cs", + "description": "Demonstrates how to split the first N pages of a PDF into a new document using Aspose.Pdf's PdfFileEditor with in‑memory streams.", "tags": [ - "booklet", "pdf", + "split", + "streams", "aspose", - "page-order", - "facade" + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet" + "Aspose.Pdf.Facades.PdfFileEditor.SplitFromFirst" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "concatenate-pdfs-preserve-metadata": { - "title": "Concatenate PDFs While Preserving Original Metadata", - "filename": "concatenate-pdfs-preserve-metadata.cs", - "description": "Demonstrates how to merge multiple PDF files using PdfFileEditor and then copy the author, title, and other metadata from the first document to the merged result.", + "split-pdf-from-first-to-end-page": { + "title": "Split PDF from First Page to Specified End Page", + "filename": "split-pdf-from-first-to-end-page.cs", + "description": "Demonstrates how to split a PDF starting at the first page up to a given page number using Aspose.Pdf.Facades and save the result to a new file.", "tags": [ "pdf", - "concatenation", - "metadata", - "aspose-pdf", - "pdffileeditor" + "split", + "aspose", + "facade", + "csharp" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileInfo", "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Concatenate", - "Aspose.Pdf.Facades.PdfFileEditor.CopyOutlines", - "Aspose.Pdf.Facades.PdfFileEditor.CopyLogicalStructure", - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Info", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfFileEditor.SplitFromFirst" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "create-booklet-pdf-delete-resize": { - "title": "Create Booklet PDF After Deleting and Resizing Pages", - "filename": "create-booklet-pdf-delete-resize.cs", - "description": "Shows how to remove selected pages, resize all page contents, and generate a booklet version of a PDF using Aspose.Pdf.Facades.", + "split-pdf-from-page-to-end": { + "title": "Split PDF from Specific Page to End", + "filename": "split-pdf-from-page-to-end.cs", + "description": "Shows how to split a PDF starting at a given page number and save the resulting document using Aspose.Pdf.Facades.", "tags": [ "pdf", - "booklet", - "delete-pages", - "resize", - "aspose" + "split", + "aspose", + "facade", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Delete", - "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents", - "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet" + "Aspose.Pdf.Facades.PdfFileEditor.SplitToEnd" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "create-verify-pdf-booklet-page-sizes": { - "title": "Create and Verify PDF Booklet with Various Page Sizes", - "filename": "create-verify-pdf-booklet-page-sizes.cs", - "description": "Demonstrates generating sample PDFs, concatenating them, and using Aspose.Pdf's PdfFileEditor to create a booklet while reporting different page size configurations.", + "split-pdf-from-page-to-end__v2": { + "title": "Split Pdf From Page To End__V2", + "filename": "split-pdf-from-page-to-end__v2.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "split-pdf-from-start-page-to-end-using-streams": { + "title": "Split PDF from a Start Page to End Using Streams", + "filename": "split-pdf-from-start-page-to-end-using-streams.cs", + "description": "Demonstrates how to split a PDF from a specified start page to the end of the document using Aspose.Pdf.Facades.PdfFileEditor with input and output streams.", "tags": [ "pdf", - "booklet", - "page-size", + "split", + "streams", "aspose", - "testing" + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet", - "Aspose.Pdf.Facades.PdfFileEditor.Concatenate", - "Aspose.Pdf.PageSize" + "Aspose.Pdf.Facades.PdfFileEditor.SplitToEnd" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "concatenate-pdfs-in-zip": { - "title": "Concatenate PDFs Inside a Zip Archive", - "filename": "concatenate-pdfs-in-zip.cs", - "description": "Shows how to read PDF files from a zip archive, merge them with Aspose.Pdf.Facades.PdfFileEditor, and write the merged PDF back into the same archive.", + "split-pdf-from-start-page-to-end": { + "title": "Split PDF from a Start Page to the End", + "filename": "split-pdf-from-start-page-to-end.cs", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfFileEditor.SplitToEnd to extract pages from a specified start page through the end of a PDF and save them as a new file.", "tags": [ - "zip", - "pdf-merge", - "aspose-pdf", - "csharp", - "facade" + "pdf", + "split", + "aspose", + "facade", + "pages" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Concatenate", - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment" + "Aspose.Pdf.Facades.PdfFileEditor.SplitToEnd" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "delete-pdf-pages-cli": { - "title": "Delete Pages from PDF via Command Line", - "filename": "delete-pdf-pages-cli.cs", - "description": "Shows how to build a command‑line tool that removes specified pages from a PDF using Aspose.Pdf.Facades.PdfFileEditor and writes the output file.", + "split-pdf-from-start-to-end": { + "title": "Split PDF from Start Page to End Using MemoryStream", + "filename": "split-pdf-from-start-to-end.cs", + "description": "Shows how to extract the portion of a PDF starting at a given page through the end of the document and return it as a MemoryStream using Aspose.Pdf.Facades.", "tags": [ "pdf", - "delete-pages", - "command-line", - "aspose.pdf", - "facades" + "split", + "memorystream", + "aspose", + "c#" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.TryDelete" + "Aspose.Pdf.Facades.PdfFileEditor.SplitToEnd" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "parallel-pdf-page-deletion": { - "title": "Parallel Deletion of PDF Pages", - "filename": "parallel-pdf-page-deletion.cs", - "description": "Shows how to delete specific pages from multiple PDF documents concurrently using Aspose.Pdf.Facades.PdfFileEditor with Parallel.ForEach.", + "split-pdf-into-bulk-page-ranges": { + "title": "Split Pdf Into Bulk Page Ranges", + "filename": "split-pdf-into-bulk-page-ranges.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "split-pdf-into-bulk-page-sets": { + "title": "Split PDF into Bulk Page Sets with Aspose.PdfFileEditor", + "filename": "split-pdf-into-bulk-page-sets.cs", + "description": "Demonstrates how to split a PDF into multiple bulk page ranges using Aspose.Pdf's PdfFileEditor facade, including placeholder PDF creation and saving each bulk as a separate file.", "tags": [ "pdf", - "parallel", - "page-deletion", + "split", + "bulk", "aspose", "csharp" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Delete" + "PdfFileEditor.SplitToBulks", + "Document.Pages.Add", + "Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "resize-pdf-landscape-booklet": { - "title": "Resize PDF to Landscape and Create Booklet", - "filename": "resize-pdf-landscape-booklet.cs", - "description": "Shows how to change a PDF's page orientation to landscape using PdfPageEditor and then generate a booklet from the resized document with PdfFileEditor.", + "split-pdf-into-bulk-page-sets__v2": { + "title": "Split PDF into Bulk Page Sets Using Streams", + "filename": "split-pdf-into-bulk-page-sets__v2.cs", + "description": "Shows how to split a PDF into defined page ranges (bulks) with Aspose.Pdf.Facades.PdfFileEditor and obtain each bulk as a MemoryStream.", "tags": [ "pdf", - "landscape", - "booklet", - "page-editing", - "Aspose.Pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "split", + "bulk", + "memorystream", + "aspose" + ], + "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet" + "Aspose.Pdf.Facades.PdfFileEditor.SplitToBulks" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "test-pdffileeditor-concatenate-empty-streams": { - "title": "Unit Test for PdfFileEditor Concatenate with Empty Streams", - "filename": "test-pdffileeditor-concatenate-empty-streams.cs", - "description": "Shows how to write an NUnit unit test that verifies PdfFileEditor.Concatenate throws an ArgumentException when the input stream array is empty.", + "split-pdf-into-bulks-using-memorystreams": { + "title": "Split Pdf Into Bulks Using Memorystreams", + "filename": "split-pdf-into-bulks-using-memorystreams.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "split-pdf-into-individual-page-pdfs": { + "title": "Split PDF into Individual Page PDFs Using Streams", + "filename": "split-pdf-into-individual-page-pdfs.cs", + "description": "Shows how to split a PDF into separate one‑page PDF files by reading the source as a stream, using PdfFileEditor.SplitToPages to get MemoryStreams for each page, and writing each stream to a file.", "tags": [ "pdf", - "unit-test", - "concatenate", - "aspose", - "nunit" + "split", + "pages", + "stream", + "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Concatenate" + "Aspose.Pdf.Facades.PdfFileEditor.SplitToPages" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "concatenate-multiple-pdfs__v2": { - "title": "Concatenate Multiple PDFs Using Aspose.Pdf", - "filename": "concatenate-multiple-pdfs__v2.cs", - "description": "Demonstrates reading PDF files as streams, merging them with Aspose.Pdf.Facades.PdfFileEditor, and saving the combined document to disk.", + "split-pdf-into-individual-pages": { + "title": "Split PDF into Individual Page PDFs", + "filename": "split-pdf-into-individual-pages.cs", + "description": "Demonstrates how to split a PDF file into separate one‑page PDF documents using Aspose.Pdf.Facades.PdfFileEditor and save them to a specified output folder.", "tags": [ "pdf", - "concatenation", + "split", + "pages", "aspose", - "streams", "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Concatenate", - "Aspose.Pdf.Facades.PdfFileEditor.CloseConcatenatedStreams" + "Aspose.Pdf.Facades.PdfFileEditor.SplitToPages" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "audit-log-pdf-page-deletion": { - "title": "Audit Log for PDF Page Deletion", - "filename": "audit-log-pdf-page-deletion.cs", - "description": "Demonstrates how to delete specific pages from a PDF using Aspose.Pdf's facade API and log the number of pages actually removed for audit purposes.", + "split-pdf-into-individual-pages__v2": { + "title": "Split PDF into Individual Pages Using PdfFileEditor", + "filename": "split-pdf-into-individual-pages__v2.cs", + "description": "Demonstrates how to split a multi‑page PDF into separate one‑page PDF files using Aspose.Pdf.Facades.PdfFileEditor.SplitToPages.", "tags": [ "pdf", - "delete-pages", - "audit", - "aspose-pdf", + "split", + "pages", + "aspose", "facade" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.TryDelete", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Document.Pages.Count" + "Aspose.Pdf.Facades.PdfFileEditor.SplitToPages" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "resize-pdfs-create-booklet": { - "title": "Resize PDFs and Create a Booklet", - "filename": "resize-pdfs-create-booklet.cs", - "description": "Shows how to resize multiple PDF files to 1024x768 points, concatenate them, and generate a booklet PDF using Aspose.Pdf.Facades.", + "split-pdf-into-multiple-bulks": { + "title": "Split PDF into Multiple Bulks Using Streams", + "filename": "split-pdf-into-multiple-bulks.cs", + "description": "Shows how to split a PDF into defined page ranges (bulks) with Aspose.Pdf.Facades.PdfFileEditor.SplitToBulks and process the resulting MemoryStream objects.", "tags": [ "pdf", - "resize", - "concatenate", - "booklet", - "facades" + "split", + "bulks", + "memorystream", + "aspose" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents", - "Aspose.Pdf.Facades.PdfFileEditor.Concatenate", - "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet" + "PdfFileEditor", + "PdfFileEditor.SplitToBulks" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "delete-pages-from-pdfs": { - "title": "Delete Specific Pages from PDFs", - "filename": "delete-pages-from-pdfs.cs", - "description": "Shows how to remove given page numbers from one or more PDF files using Aspose.Pdf.Facades and save the cleaned versions.", + "split-pdf-into-multiple-page-ranges": { + "title": "Split PDF into Multiple Page Ranges Using PdfFileEditor", + "filename": "split-pdf-into-multiple-page-ranges.cs", + "description": "Demonstrates how to split a PDF into separate documents based on defined page ranges with Aspose.Pdf.Facades.PdfFileEditor.SplitToBulks and save each part as a PDF file.", "tags": [ - "pdf", - "page-deletion", + "pdf-split", + "page-ranges", + "memorystream", "aspose-pdf", - "csharp", "facades" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Delete" + "Aspose.Pdf.Facades.PdfFileEditor.SplitToBulks" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "merge-pdfs-with-blank-separator-pages": { - "title": "Merge PDFs with Blank Separator Pages", - "filename": "merge-pdfs-with-blank-separator-pages.cs", - "description": "Shows how to concatenate several PDF files and insert a blank page between each document using Aspose.Pdf.", + "split-pdf-into-page-streams": { + "title": "Split PDF into Individual Page Streams", + "filename": "split-pdf-into-page-streams.cs", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfFileEditor to split a PDF into separate MemoryStream objects, each containing a single page, and optionally write them to files.", "tags": [ "pdf", - "merge", - "separator", + "split", + "memorystream", "aspose", - "csharp" + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Concatenate", - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfFileEditor.SplitToPages" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "resize-and-concatenate-pdfs": { - "title": "Resize Multiple PDFs and Concatenate into One Document", - "filename": "resize-and-concatenate-pdfs.cs", - "description": "Shows how to batch‑resize PDF pages to 1024×768 points using PdfFileEditor.ResizeContents and then merge the resized PDFs into a single file with PdfFileEditor.Concatenate.", - "tags": [ - "pdf", - "resize", - "concatenate", - "batch", - "aspose.pdf" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents", - "Aspose.Pdf.Facades.PdfFileEditor.Concatenate" - ], - "difficulty": "intermediate", + "split-pdf-into-single-page-pdfs": { + "title": "Split PDF into Single‑Page PDFs Using MemoryStream", + "filename": "split-pdf-into-single-page-pdfs.cs", + "description": "Demonstrates how to split a PDF into individual page PDFs using Aspose.Pdf's bulk split, iterating the returned MemoryStream array, and saving each stream to a uniquely named file.", + "tags": [], + "apis_used": [], + "difficulty": "", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "delete-and-resize-pdf-pages": { - "title": "Delete and Resize PDF Pages", - "filename": "delete-and-resize-pdf-pages.cs", - "description": "Shows how to delete selected pages from a PDF, resize the remaining pages, and return the processed document as a MemoryStream using Aspose.Pdf.Facades.", + "split-pdf-into-single-page-pdfs__v2": { + "title": "Split Pdf Into Single Page Pdfs__V2", + "filename": "split-pdf-into-single-page-pdfs__v2.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "test-makebooklet-null-pagesize": { + "title": "Test Makebooklet Null Pagesize", + "filename": "test-makebooklet-null-pagesize.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "test-pdffileeditor-concatenate-empty-input": { + "title": "Test Pdffileeditor Concatenate Empty Input", + "filename": "test-pdffileeditor-concatenate-empty-input.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "test-pdffileeditor-concatenate-empty-streams": { + "title": "Unit Test for PdfFileEditor Concatenate with Empty Streams", + "filename": "test-pdffileeditor-concatenate-empty-streams.cs", + "description": "Shows how to write an NUnit unit test that verifies PdfFileEditor.Concatenate throws an ArgumentException when the input stream array is empty.", "tags": [ "pdf", - "delete-pages", - "resize", - "memorystream", - "aspose-pdf" + "unit-test", + "concatenate", + "aspose", + "nunit" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Delete", - "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents" + "Aspose.Pdf.Facades.PdfFileEditor.Concatenate" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "concatenate-pdfs-add-page-numbers": { - "title": "Concatenate PDFs and Add Page Numbers", - "filename": "concatenate-pdfs-add-page-numbers.cs", - "description": "Shows how to merge multiple PDF files into a single document and automatically insert page numbers using Aspose.Pdf.Facades.", + "validate-makebooklet-null-pagesize": { + "title": "Validate MakeBooklet Throws Exception for Null PageSize", + "filename": "validate-makebooklet-null-pagesize.cs", + "description": "Shows how to test that PdfFileEditor.MakeBooklet raises an ArgumentNullException when the PageSize parameter is null.", "tags": [ + "makebooklet", + "exception", "pdf", - "concatenate", - "page-number", "aspose", - "csharp" + "validation" ], "apis_used": [ - "PdfFileEditor", - "PdfFileEditor.Concatenate", - "PdfFileStamp", - "PdfFileStamp.AddPageNumber", - "PdfFileStamp.StartingNumber", - "PdfFileStamp.Close" + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfFileEditor", + "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "create-left-half-booklet": { - "title": "Create Left-Half Booklet from PDF", - "filename": "create-left-half-booklet.cs", - "description": "Shows how to generate a booklet PDF using only the even-numbered (left) pages from the first half of a source PDF by leveraging Aspose.Pdf's Document and PdfFileEditor classes.", + "validate-pdf-concatenation-page-order": { + "title": "Validate PDF Concatenation Preserves Page Order", + "filename": "validate-pdf-concatenation-page-order.cs", + "description": "Shows how to concatenate two PDFs with Aspose.Pdf and verify that the merged document keeps the original page sequence by comparing extracted page text.", "tags": [ - "booklet", - "pdf", - "left-pages", - "aspose", - "facades" + "pdf-concatenation", + "page-order", + "validation", + "aspose-pdf", + "text-extraction" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet" + "Aspose.Pdf.Facades.PdfFileEditor.Concatenate", + "Aspose.Pdf.Text.TextAbsorber", + "Aspose.Pdf.Page.Accept" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:34:35Z", "status": "verified" }, - "create-booklet-from-second-half": { - "title": "Create Booklet from Second Half of PDF", - "filename": "create-booklet-from-second-half.cs", - "description": "Demonstrates how to generate a booklet PDF where the left pages come from the first half of a source document and the right pages come from the second half, using Aspose.Pdf's MakeBooklet method.", + "validate-pdf-page-deletion": { + "title": "Validate PDF Page Deletion Reduces Page Count", + "filename": "validate-pdf-page-deletion.cs", + "description": "Shows how to delete specific pages from a PDF using Aspose.Pdf.Facades and verify that the total page count decreases after the operation.", "tags": [ - "booklet", "pdf", + "delete-pages", + "validation", "aspose", - "page-splitting", "facades" ], "apis_used": [ - "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfPageEditor", "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet" + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.Facades.PdfPageEditor.GetPages", + "Aspose.Pdf.Facades.PdfFileEditor.TryDelete" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:34:35Z", diff --git a/facades-edit-document/AGENTS.md b/facades-edit-document/AGENTS.md index 108d51fd2..a074bd9ee 100644 --- a/facades-edit-document/AGENTS.md +++ b/facades-edit-document/AGENTS.md @@ -8,7 +8,7 @@ parent: ../agents.md # AGENTS - facades-edit-document -> **Facades edit document** in PDF using C# / .NET -- **214** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. +> **Facades edit document** in PDF using C# / .NET -- **328** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. ## Persona @@ -23,30 +23,30 @@ See the root [agents.md](../agents.md) for repository-wide conventions and bound ## Required Namespaces -- `using Aspose.Pdf.Facades;` (192/214 files) ← category-specific -- `using Aspose.Pdf;` (137/214 files) ← category-specific -- `using Aspose.Pdf.Annotations;` (26/214 files) -- `using Aspose.Pdf.Text;` (20/214 files) -- `using Aspose.Pdf.Devices;` (7/214 files) -- `using Aspose.Pdf.Printing;` (4/214 files) -- `using Aspose.Pdf.Drawing;` (2/214 files) -- `using Aspose.Pdf.Forms;` (2/214 files) -- `using System;` (214/214 files) -- `using System.IO;` (201/214 files) -- `using System.Drawing;` (39/214 files) -- `using System.Collections.Generic;` (10/214 files) -- `using System.Text.Json;` (6/214 files) -- `using System.Drawing.Imaging;` (4/214 files) -- `using System.Threading.Tasks;` (4/214 files) -- `using System.Net.Http;` (3/214 files) -- `using NUnit.Framework;` (2/214 files) -- `using System.Security.Cryptography;` (2/214 files) -- `using System.Xml.Linq;` (2/214 files) -- `using System.Collections;` (1/214 files) -- `using System.Drawing.Printing;` (1/214 files) -- `using System.Linq;` (1/214 files) -- `using System.Threading;` (1/214 files) -- `using System.Xml;` (1/214 files) +- `using Aspose.Pdf.Facades;` (192/328 files) ← category-specific +- `using Aspose.Pdf;` (137/328 files) +- `using Aspose.Pdf.Annotations;` (26/328 files) +- `using Aspose.Pdf.Text;` (20/328 files) +- `using Aspose.Pdf.Devices;` (7/328 files) +- `using Aspose.Pdf.Printing;` (4/328 files) +- `using Aspose.Pdf.Drawing;` (2/328 files) +- `using Aspose.Pdf.Forms;` (2/328 files) +- `using System;` (214/328 files) +- `using System.IO;` (201/328 files) +- `using System.Drawing;` (39/328 files) +- `using System.Collections.Generic;` (10/328 files) +- `using System.Text.Json;` (6/328 files) +- `using System.Drawing.Imaging;` (4/328 files) +- `using System.Threading.Tasks;` (4/328 files) +- `using System.Net.Http;` (3/328 files) +- `using NUnit.Framework;` (2/328 files) +- `using System.Security.Cryptography;` (2/328 files) +- `using System.Xml.Linq;` (2/328 files) +- `using System.Collections;` (1/328 files) +- `using System.Drawing.Printing;` (1/328 files) +- `using System.Linq;` (1/328 files) +- `using System.Threading;` (1/328 files) +- `using System.Xml;` (1/328 files) ## Common Code Pattern @@ -64,39 +64,39 @@ tool.Save("output.pdf"); | File | Title | Key APIs | Description | |------|-------|----------|-------------| | [add-an-attachment-with-custom-mime-type-applicatio...](./add-an-attachment-with-custom-mime-type-application-pdf-and-description-invoice-document.cs) | Add An Attachment With Custom Mime Type Application Pdf And ... | `PdfContentEditor` | Add An Attachment With Custom Mime Type Application Pdf And Description Invoice Document | +| [add-and-verify-attachment-in-pdf](./add-and-verify-attachment-in-pdf.cs) | Add and verify attachment in pdf | | Add and verify attachment in pdf | +| [add-and-verify-document-attachment](./add-and-verify-document-attachment.cs) | Add and verify document attachment | | Add and verify document attachment | | [add-annotation-and-merge-pdfs](./add-annotation-and-merge-pdfs.cs) | Add Annotation to PDF and Merge with Another PDF | `Document`, `Page`, `TextAnnotation` | The example loads a PDF, adds a text annotation to its first page, saves it, and then concatenate... | | [add-attachment-and-encrypt-pdf](./add-attachment-and-encrypt-pdf.cs) | Add Attachment and Encrypt PDF with Password | `PdfContentEditor`, `AddDocumentAttachment`, `ChangeViewerPreference` | Demonstrates adding a document attachment, setting viewer preferences, and then encrypting the PD... | +| [add-attachment-and-list-attachments](./add-attachment-and-list-attachments.cs) | Add attachment and list attachments | | Add attachment and list attachments | | [add-attachment-and-list-names](./add-attachment-and-list-names.cs) | Add Attachment to PDF and List Attachment Names | `Document`, `PdfContentEditor`, `PdfExtractor` | Demonstrates how to embed a PDF file as an attachment using PdfContentEditor and then extract and... | | [add-attachment-and-retrieve-name](./add-attachment-and-retrieve-name.cs) | Add Attachment and Retrieve Its Name from PDF | `PdfContentEditor`, `AddDocumentAttachment`, `Save` | Demonstrates how to embed a file as a PDF attachment using PdfContentEditor and then extract the ... | | [add-attachment-and-set-viewer-preference](./add-attachment-and-set-viewer-preference.cs) | Add Attachment and Set Viewer Preference in PDF | `PdfContentEditor`, `BindPdf`, `AddDocumentAttachment` | Shows how to embed a file as a document attachment and configure the PDF viewer to open the attac... | | [add-attachment-and-store-checksum-metadata](./add-attachment-and-store-checksum-metadata.cs) | Add PDF Attachment and Store Checksum in Metadata | `Document`, `TextFragment`, `PdfContentEditor` | Demonstrates attaching a PDF file to another PDF using Aspose.Pdf.Facades, computing its MD5 chec... | | [add-attachment-preserve-existing](./add-attachment-preserve-existing.cs) | Add Attachment to PDF Without Deleting Existing Attachments | `PdfContentEditor`, `BindPdf`, `AddDocumentAttachment` | Demonstrates how to add a new document attachment to an existing PDF while keeping any previously... | +| [add-attachment-set-moddate-pdf](./add-attachment-set-moddate-pdf.cs) | Add attachment set moddate pdf | | Add attachment set moddate pdf | | [add-attachment-set-modification-date](./add-attachment-set-modification-date.cs) | Add Attachment and Set Modification Date in PDF | `PdfContentEditor`, `AddDocumentAttachment`, `BindPdf` | Demonstrates how to attach a file to a PDF and update the document's modification date to the cur... | +| [add-attachment-store-checksum-metadata](./add-attachment-store-checksum-metadata.cs) | Add attachment store checksum metadata | | Add attachment store checksum metadata | | [add-attachment-to-multiple-pdfs](./add-attachment-to-multiple-pdfs.cs) | Add Attachment to Multiple PDFs | `PdfContentEditor`, `BindPdf`, `AddDocumentAttachment` | Shows how to batch‑process a list of PDF files and add the same document attachment to each using... | | [add-attachment-verify-extraction](./add-attachment-verify-extraction.cs) | Add Attachment to PDF and Verify Extraction | `PdfContentEditor`, `AddDocumentAttachment`, `Save` | Demonstrates how to attach a file to a PDF using PdfContentEditor, then extract the attachment wi... | +| [add-attachment-with-custom-mime-type-to-pdf](./add-attachment-with-custom-mime-type-to-pdf.cs) | Add attachment with custom mime type to pdf | | Add attachment with custom mime type to pdf | +| [add-author-and-title-metadata-to-pdf](./add-author-and-title-metadata-to-pdf.cs) | Add author and title metadata to pdf | | Add author and title metadata to pdf | +| [add-base64-image-stamp-to-pdf-page](./add-base64-image-stamp-to-pdf-page.cs) | Add base64 image stamp to pdf page | | Add base64 image stamp to pdf page | | [add-batch-text-annotations-to-pdf](./add-batch-text-annotations-to-pdf.cs) | Add Batch Text Annotations to PDF | `Document`, `PdfAnnotationEditor`, `TextAnnotation` | Shows how to add multiple text annotations to a PDF in a single batch by looping over annotation ... | | [add-bold-red-centered-text-stamp-page-5](./add-bold-red-centered-text-stamp-page-5.cs) | Add Bold Red Centered Text Stamp to Page 5 | `Document`, `TextStamp`, `FontRepository` | Demonstrates how to place a bold, red, centered text stamp on the fifth page of a PDF using Aspos... | | [add-bookmark-to-pdf-page](./add-bookmark-to-pdf-page.cs) | Add Bookmark to PDF Page | `PdfBookmarkEditor`, `BindPdf`, `CreateBookmarkOfPage` | Shows how to create a bookmark titled "Project Overview" that links to page five of a PDF using A... | | [add-confidential-text-stamp](./add-confidential-text-stamp.cs) | Add Confidential Text Stamp to PDF | `FormattedText`, `BindLogo`, `IsBackground` | Demonstrates creating a red "Confidential" text stamp with semi‑transparent background and applyi... | +| [add-confirmation-dialog-to-pdf-submit-button](./add-confirmation-dialog-to-pdf-submit-button.cs) | Add confirmation dialog to pdf submit button | | Add confirmation dialog to pdf submit button | | [add-corporate-branding-xmp-metadata](./add-corporate-branding-xmp-metadata.cs) | Add Corporate Branding XMP Metadata to PDF | `PdfXmpMetadata`, `BindPdf`, `Add` | Demonstrates how to bind a PDF, add custom XMP metadata such as a logo URL and brand color, and s... | +| [add-custom-project-schema-to-pdf-xmp-metadata](./add-custom-project-schema-to-pdf-xmp-metadata.cs) | Add custom project schema to pdf xmp metadata | | Add custom project schema to pdf xmp metadata | | [add-custom-xmp-metadata-projectid](./add-custom-xmp-metadata-projectid.cs) | Add Custom XMP Metadata and Document Property to PDF | `PdfXmpMetadata`, `BindPdf`, `Add` | Demonstrates how to add a custom XMP metadata field (ProjectID) to a PDF and synchronize it with ... | | [add-dashed-line-annotation-to-pdf](./add-dashed-line-annotation-to-pdf.cs) | Add Dashed Line Annotation to PDF Diagram | `PdfContentEditor`, `BindPdf`, `CreateLine` | Demonstrates how to add a custom dashed line annotation to a PDF page using Aspose.Pdf.Facades.Pd... | +| [add-dashed-line-annotation](./add-dashed-line-annotation.cs) | Add dashed line annotation | | Add dashed line annotation | | [add-dashed-rectangle-annotation-with-opacity](./add-dashed-rectangle-annotation-with-opacity.cs) | Add Dashed Rectangle Annotation with Opacity to PDF Page | `PdfContentEditor`, `BindPdf`, `CreateSquareCircle` | Demonstrates how to add a rectangle (square) annotation on page 6 of a PDF, apply a dashed border... | -| [add-document-attachment-with-description](./add-document-attachment-with-description.cs) | Add Document Attachment with Description to PDF | `PdfContentEditor`, `BindPdf`, `AddDocumentAttachment` | Shows how to attach an external PDF file to an existing PDF and assign a descriptive label using ... | -| [add-document-attachment-with-error-handling](./add-document-attachment-with-error-handling.cs) | Add Document Attachment to PDF with Error Handling | `PdfContentEditor`, `BindPdf`, `AddDocumentAttachment` | Demonstrates how to attach an external file to a PDF using Aspose.Pdf.Facades.PdfContentEditor wh... | -| [add-embedded-file-attachment-to-pdf](./add-embedded-file-attachment-to-pdf.cs) | Add Embedded File Attachment to PDF | `PdfContentEditor`, `BindPdf`, `AddDocumentAttachment` | Shows how to embed an external file as a hidden attachment in an existing PDF using Aspose.Pdf's ... | -| [add-encrypted-attachment-aes256](./add-encrypted-attachment-aes256.cs) | Add Encrypted Attachment to PDF with AES‑256 | `Document`, `PdfContentEditor`, `PdfFileSecurity` | Demonstrates adding a file attachment with a custom description to a PDF and then encrypting the ... | -| [add-external-url-bookmark-to-pdf](./add-external-url-bookmark-to-pdf.cs) | Add External URL Bookmark to PDF | `PdfContentEditor`, `BindPdf`, `CreateBookmarksAction` | Shows how to use Aspose.Pdf.Facades.PdfContentEditor to create a bookmark that opens an external ... | -| [add-file-attachment-annotation](./add-file-attachment-annotation.cs) | Add File Attachment Annotation to PDF | `PdfContentEditor`, `BindPdf`, `CreateFileAttachment` | Demonstrates how to attach a file to a PDF page as a clickable annotation using Aspose.Pdf.Facade... | -| [add-file-attachment-data-relationship](./add-file-attachment-data-relationship.cs) | Add File Attachment with Data Relationship to PDF | `PdfContentEditor`, `BindPdf`, `AddDocumentAttachment` | Shows how to attach a file to an existing PDF using PdfContentEditor and set the attachment's AFR... | -| [add-file-attachment-to-encrypted-pdf](./add-file-attachment-to-encrypted-pdf.cs) | Add File Attachment to Encrypted PDF | `Document`, `PdfContentEditor`, `Document(string, string)` | Shows how to open a password‑protected PDF, attach a file to it, and save the modified document. | -| [add-file-attachment-to-pdf](./add-file-attachment-to-pdf.cs) | Add File Attachment to PDF | `PdfContentEditor`, `BindPdf`, `AddDocumentAttachment` | Demonstrates how to attach an external file (Terms.pdf) to an existing PDF document using Aspose.... | -| [add-file-attachment-to-pdf__v2](./add-file-attachment-to-pdf__v2.cs) | Add File Attachment to PDF using PdfContentEditor | `PdfContentEditor`, `BindPdf`, `AddDocumentAttachment` | Shows how to attach a local file to an existing PDF document and save the updated PDF using Aspos... | -| [add-file-attachment-with-creation-date](./add-file-attachment-with-creation-date.cs) | Add File Attachment with Creation Date to PDF | `PdfContentEditor`, `BindPdf`, `CreateFileAttachment` | Shows how to attach a file to a PDF page, give it a description, and set the attachment's creatio... | -| ... | | | *and 184 more files* | +| ... | | | *and 298 more files* | ## Category Statistics -- Total examples: 214 +- Total examples: 328 ## Category-Specific Tips @@ -133,5 +133,5 @@ tool.Save("output.pdf"); - Review code examples in this folder for facades-edit-document patterns -Updated: 2026-08-20 | Run: `20260820_001147_12d7b3` +Updated: 2026-09-10 | Run: `20260910_054408_87a7f4` diff --git a/facades-edit-document/README.md b/facades-edit-document/README.md new file mode 100644 index 000000000..0279bdafc --- /dev/null +++ b/facades-edit-document/README.md @@ -0,0 +1,347 @@ +# Facades edit document + +> **Facades edit document** in PDF using C# / .NET -- **328** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. + +- Category: `facades-edit-document` +- Examples: 328 +- NuGet: `Aspose.PDF 26.8.0` -- target `net10.0` + +## Examples + +- [`add-an-attachment-with-custom-mime-type-application-pdf-and-description-invoice-document.cs`](./add-an-attachment-with-custom-mime-type-application-pdf-and-description-invoice-document.cs) -- Add an attachment with custom mime type application pdf and description invoice document +- [`add-and-verify-attachment-in-pdf.cs`](./add-and-verify-attachment-in-pdf.cs) -- Add and verify attachment in pdf +- [`add-and-verify-document-attachment.cs`](./add-and-verify-document-attachment.cs) -- Add and verify document attachment +- [`add-annotation-and-merge-pdfs.cs`](./add-annotation-and-merge-pdfs.cs) -- Add annotation and merge pdfs +- [`add-attachment-and-encrypt-pdf.cs`](./add-attachment-and-encrypt-pdf.cs) -- Add attachment and encrypt pdf +- [`add-attachment-and-list-attachments.cs`](./add-attachment-and-list-attachments.cs) -- Add attachment and list attachments +- [`add-attachment-and-list-names.cs`](./add-attachment-and-list-names.cs) -- Add attachment and list names +- [`add-attachment-and-retrieve-name.cs`](./add-attachment-and-retrieve-name.cs) -- Add attachment and retrieve name +- [`add-attachment-and-set-viewer-preference.cs`](./add-attachment-and-set-viewer-preference.cs) -- Add attachment and set viewer preference +- [`add-attachment-and-store-checksum-metadata.cs`](./add-attachment-and-store-checksum-metadata.cs) -- Add attachment and store checksum metadata +- [`add-attachment-preserve-existing.cs`](./add-attachment-preserve-existing.cs) -- Add attachment preserve existing +- [`add-attachment-set-moddate-pdf.cs`](./add-attachment-set-moddate-pdf.cs) -- Add attachment set moddate pdf +- [`add-attachment-set-modification-date.cs`](./add-attachment-set-modification-date.cs) -- Add attachment set modification date +- [`add-attachment-store-checksum-metadata.cs`](./add-attachment-store-checksum-metadata.cs) -- Add attachment store checksum metadata +- [`add-attachment-to-multiple-pdfs.cs`](./add-attachment-to-multiple-pdfs.cs) -- Add attachment to multiple pdfs +- [`add-attachment-verify-extraction.cs`](./add-attachment-verify-extraction.cs) -- Add attachment verify extraction +- [`add-attachment-with-custom-mime-type-to-pdf.cs`](./add-attachment-with-custom-mime-type-to-pdf.cs) -- Add attachment with custom mime type to pdf +- [`add-author-and-title-metadata-to-pdf.cs`](./add-author-and-title-metadata-to-pdf.cs) -- Add author and title metadata to pdf +- [`add-base64-image-stamp-to-pdf-page.cs`](./add-base64-image-stamp-to-pdf-page.cs) -- Add base64 image stamp to pdf page +- [`add-batch-text-annotations-to-pdf.cs`](./add-batch-text-annotations-to-pdf.cs) -- Add batch text annotations to pdf +- [`add-bold-red-centered-text-stamp-page-5.cs`](./add-bold-red-centered-text-stamp-page-5.cs) -- Add bold red centered text stamp page 5 +- [`add-bookmark-to-pdf-page.cs`](./add-bookmark-to-pdf-page.cs) -- Add bookmark to pdf page +- [`add-confidential-text-stamp.cs`](./add-confidential-text-stamp.cs) -- Add confidential text stamp +- [`add-confirmation-dialog-to-pdf-submit-button.cs`](./add-confirmation-dialog-to-pdf-submit-button.cs) -- Add confirmation dialog to pdf submit button +- [`add-corporate-branding-xmp-metadata.cs`](./add-corporate-branding-xmp-metadata.cs) -- Add corporate branding xmp metadata +- [`add-custom-project-schema-to-pdf-xmp-metadata.cs`](./add-custom-project-schema-to-pdf-xmp-metadata.cs) -- Add custom project schema to pdf xmp metadata +- [`add-custom-xmp-metadata-projectid.cs`](./add-custom-xmp-metadata-projectid.cs) -- Add custom xmp metadata projectid +- [`add-dashed-line-annotation-to-pdf.cs`](./add-dashed-line-annotation-to-pdf.cs) -- Add dashed line annotation to pdf +- [`add-dashed-line-annotation.cs`](./add-dashed-line-annotation.cs) -- Add dashed line annotation +- [`add-dashed-rectangle-annotation-with-opacity.cs`](./add-dashed-rectangle-annotation-with-opacity.cs) -- Add dashed rectangle annotation with opacity +- [`add-document-attachment-preserve-existing.cs`](./add-document-attachment-preserve-existing.cs) -- Add document attachment preserve existing +- [`add-document-attachment-with-description.cs`](./add-document-attachment-with-description.cs) -- Add document attachment with description +- [`add-document-attachment-with-error-handling.cs`](./add-document-attachment-with-error-handling.cs) -- Add document attachment with error handling +- [`add-embedded-file-attachment-to-pdf.cs`](./add-embedded-file-attachment-to-pdf.cs) -- Add embedded file attachment to pdf +- [`add-encrypted-attachment-aes256.cs`](./add-encrypted-attachment-aes256.cs) -- Add encrypted attachment aes256 +- [`add-encrypted-attachment-with-custom-description.cs`](./add-encrypted-attachment-with-custom-description.cs) -- Add encrypted attachment with custom description +- [`add-external-url-bookmark-to-pdf.cs`](./add-external-url-bookmark-to-pdf.cs) -- Add external url bookmark to pdf +- [`add-file-attachment-annotation-opacity.cs`](./add-file-attachment-annotation-opacity.cs) -- Add file attachment annotation opacity +- [`add-file-attachment-annotation.cs`](./add-file-attachment-annotation.cs) -- Add file attachment annotation +- [`add-file-attachment-data-relationship.cs`](./add-file-attachment-data-relationship.cs) -- Add file attachment data relationship +- [`add-file-attachment-to-encrypted-pdf.cs`](./add-file-attachment-to-encrypted-pdf.cs) -- Add file attachment to encrypted pdf +- [`add-file-attachment-to-pdf.cs`](./add-file-attachment-to-pdf.cs) -- Add file attachment to pdf +- [`add-file-attachment-to-pdf__v2.cs`](./add-file-attachment-to-pdf__v2.cs) -- Add file attachment to pdf v2 +- [`add-file-attachment-with-creation-date.cs`](./add-file-attachment-with-creation-date.cs) -- Add file attachment with creation date +- [`add-file-attachment-with-custom-mime.cs`](./add-file-attachment-with-custom-mime.cs) -- Add file attachment with custom mime +- [`add-file-attachment-with-retry.cs`](./add-file-attachment-with-retry.cs) -- Add file attachment with retry +- [`add-free-text-annotation-helvetica.cs`](./add-free-text-annotation-helvetica.cs) -- Add free text annotation helvetica +- [`add-free-text-html-annotation.cs`](./add-free-text-html-annotation.cs) -- Add free text html annotation +- [`add-freetext-annotation-html.cs`](./add-freetext-annotation-html.cs) -- Add freetext annotation html +- [`add-green-circle-annotation-to-pdf-page.cs`](./add-green-circle-annotation-to-pdf-page.cs) -- Add green circle annotation to pdf page +- [`add-green-circle-annotation-to-pdf-page__v2.cs`](./add-green-circle-annotation-to-pdf-page__v2.cs) -- Add green circle annotation to pdf page v2 +- [`add-green-circle-annotation.cs`](./add-green-circle-annotation.cs) -- Add green circle annotation +- [`add-help-bookmark-open-url.cs`](./add-help-bookmark-open-url.cs) -- Add help bookmark open url +- [`add-highlight-annotation-to-pdf-page.cs`](./add-highlight-annotation-to-pdf-page.cs) -- Add highlight annotation to pdf page +- [`add-highlight-annotation-to-pdf-page__v2.cs`](./add-highlight-annotation-to-pdf-page__v2.cs) -- Add highlight annotation to pdf page v2 +- [`add-hyperlink-annotation-to-pdf-page.cs`](./add-hyperlink-annotation-to-pdf-page.cs) -- Add hyperlink annotation to pdf page +- [`add-hyperlink-annotation-to-pdf.cs`](./add-hyperlink-annotation-to-pdf.cs) -- Add hyperlink annotation to pdf +- [`add-image-attachment-and-stamp.cs`](./add-image-attachment-and-stamp.cs) -- Add image attachment and stamp +- [`add-image-stamp-from-stream.cs`](./add-image-stamp-from-stream.cs) -- Add image stamp from stream +- [`add-image-stamp-to-bottom-right-page-3.cs`](./add-image-stamp-to-bottom-right-page-3.cs) -- Add image stamp to bottom right page 3 +- [`add-image-stamp-to-page-three-50mm.cs`](./add-image-stamp-to-page-three-50mm.cs) -- Add image stamp to page three 50mm +- [`add-image-stamp-to-page-three.cs`](./add-image-stamp-to-page-three.cs) -- Add image stamp to page three +- [`add-image-stamp-to-pdf-page.cs`](./add-image-stamp-to-pdf-page.cs) -- Add image stamp to pdf page +- [`add-image-stamp-to-pdf-page__v2.cs`](./add-image-stamp-to-pdf-page__v2.cs) -- Add image stamp to pdf page v2 +- [`add-image-stamp-to-specific-page.cs`](./add-image-stamp-to-specific-page.cs) -- Add image stamp to specific page +- [`add-image-to-pdf-using-pdffilemend.cs`](./add-image-to-pdf-using-pdffilemend.cs) -- Add image to pdf using pdffilemend +- [`add-image-watermark-to-pdfs.cs`](./add-image-watermark-to-pdfs.cs) -- Add image watermark to pdfs +- [`add-javascript-alert-annotation-to-pdf.cs`](./add-javascript-alert-annotation-to-pdf.cs) -- Add javascript alert annotation to pdf +- [`add-javascript-calculate-action-to-pdf-form.cs`](./add-javascript-calculate-action-to-pdf-form.cs) -- Add javascript calculate action to pdf form +- [`add-javascript-calculation-button-to-pdf-form.cs`](./add-javascript-calculation-button-to-pdf-form.cs) -- Add javascript calculation button to pdf form +- [`add-javascript-calculation-to-pdf-form.cs`](./add-javascript-calculation-to-pdf-form.cs) -- Add javascript calculation to pdf form +- [`add-javascript-click-action-to-pdf-rectangle.cs`](./add-javascript-click-action-to-pdf-rectangle.cs) -- Add javascript click action to pdf rectangle +- [`add-javascript-click-action-to-rectangle.cs`](./add-javascript-click-action-to-rectangle.cs) -- Add javascript click action to rectangle +- [`add-javascript-to-pdf-form-button.cs`](./add-javascript-to-pdf-form-button.cs) -- Add javascript to pdf form button +- [`add-javascript-validation-button-to-pdf-form.cs`](./add-javascript-validation-button-to-pdf-form.cs) -- Add javascript validation button to pdf form +- [`add-javascript-validation-to-pdf-form.cs`](./add-javascript-validation-to-pdf-form.cs) -- Add javascript validation to pdf form +- [`add-large-attachment-to-pdf-buffered.cs`](./add-large-attachment-to-pdf-buffered.cs) -- Add large attachment to pdf buffered +- [`add-large-attachment-to-pdf.cs`](./add-large-attachment-to-pdf.cs) -- Add large attachment to pdf +- [`add-large-stream-attachment-to-pdf.cs`](./add-large-stream-attachment-to-pdf.cs) -- Add large stream attachment to pdf +- [`add-light-gray-background-to-text-annotation.cs`](./add-light-gray-background-to-text-annotation.cs) -- Add light gray background to text annotation +- [`add-line-annotation-with-arrowheads.cs`](./add-line-annotation-with-arrowheads.cs) -- Add line annotation with arrowheads +- [`add-memory-stream-attachment-to-pdf.cs`](./add-memory-stream-attachment-to-pdf.cs) -- Add memory stream attachment to pdf +- [`add-multiline-right-aligned-text-stamp-page-4.cs`](./add-multiline-right-aligned-text-stamp-page-4.cs) -- Add multiline right aligned text stamp page 4 +- [`add-multiline-text-stamp.cs`](./add-multiline-text-stamp.cs) -- Add multiline text stamp +- [`add-network-attachment-to-pdf-with-retry.cs`](./add-network-attachment-to-pdf-with-retry.cs) -- Add network attachment to pdf with retry +- [`add-page-open-javascript-log-page-number.cs`](./add-page-open-javascript-log-page-number.cs) -- Add page open javascript log page number +- [`add-pdf-attachment-with-description.cs`](./add-pdf-attachment-with-description.cs) -- Add pdf attachment with description +- [`add-popup-annotation-to-pdf.cs`](./add-popup-annotation-to-pdf.cs) -- Add popup annotation to pdf +- [`add-popup-annotation-with-bullet-list.cs`](./add-popup-annotation-with-bullet-list.cs) -- Add popup annotation with bullet list +- [`add-popup-annotation-with-bullet-points.cs`](./add-popup-annotation-with-bullet-points.cs) -- Add popup annotation with bullet points +- [`add-rectangle-annotation-dash-opacity.cs`](./add-rectangle-annotation-dash-opacity.cs) -- Add rectangle annotation dash opacity +- [`add-rectangle-annotation-light-gray.cs`](./add-rectangle-annotation-light-gray.cs) -- Add rectangle annotation light gray +- [`add-rectangle-annotation-with-dash-opacity.cs`](./add-rectangle-annotation-with-dash-opacity.cs) -- Add rectangle annotation with dash opacity +- [`add-red-bold-text-stamp-to-page-five.cs`](./add-red-bold-text-stamp-to-page-five.cs) -- Add red bold text stamp to page five +- [`add-red-highlight-annotation-to-pdf.cs`](./add-red-highlight-annotation-to-pdf.cs) -- Add red highlight annotation to pdf +- [`add-red-rectangle-annotation-to-pdf-page.cs`](./add-red-rectangle-annotation-to-pdf-page.cs) -- Add red rectangle annotation to pdf page +- [`add-red-rectangle-annotation.cs`](./add-red-rectangle-annotation.cs) -- Add red rectangle annotation +- [`add-right-aligned-multiline-text-stamp-page-4.cs`](./add-right-aligned-multiline-text-stamp-page-4.cs) -- Add right aligned multiline text stamp page 4 +- [`add-rotated-image-stamp-to-pdf.cs`](./add-rotated-image-stamp-to-pdf.cs) -- Add rotated image stamp to pdf +- [`add-rotated-image-stamp-with-opacity.cs`](./add-rotated-image-stamp-with-opacity.cs) -- Add rotated image stamp with opacity +- [`add-rtl-text-annotation-to-pdf.cs`](./add-rtl-text-annotation-to-pdf.cs) -- Add rtl text annotation to pdf +- [`add-scaled-image-stamp-from-memory-stream.cs`](./add-scaled-image-stamp-from-memory-stream.cs) -- Add scaled image stamp from memory stream +- [`add-semi-transparent-file-attachment-annotation.cs`](./add-semi-transparent-file-attachment-annotation.cs) -- Add semi transparent file attachment annotation +- [`add-semi-transparent-stamp-annotation.cs`](./add-semi-transparent-stamp-annotation.cs) -- Add semi transparent stamp annotation +- [`add-semi-transparent-text-stamp.cs`](./add-semi-transparent-text-stamp.cs) -- Add semi transparent text stamp +- [`add-square-annotation-red-border.cs`](./add-square-annotation-red-border.cs) -- Add square annotation red border +- [`add-square-annotation-with-custom-border.cs`](./add-square-annotation-with-custom-border.cs) -- Add square annotation with custom border +- [`add-sticky-note-annotation-to-pdf.cs`](./add-sticky-note-annotation-to-pdf.cs) -- Add sticky note annotation to pdf +- [`add-subject-to-text-annotation.cs`](./add-subject-to-text-annotation.cs) -- Add subject to text annotation +- [`add-submit-button-confirmation-dialog.cs`](./add-submit-button-confirmation-dialog.cs) -- Add submit button confirmation dialog +- [`add-text-annotation-and-merge-pdfs.cs`](./add-text-annotation-and-merge-pdfs.cs) -- Add text annotation and merge pdfs +- [`add-text-annotation-set-subject.cs`](./add-text-annotation-set-subject.cs) -- Add text annotation set subject +- [`add-text-annotation-thick-border.cs`](./add-text-annotation-thick-border.cs) -- Add text annotation thick border +- [`add-text-annotation-to-pdf-page.cs`](./add-text-annotation-to-pdf-page.cs) -- Add text annotation to pdf page +- [`add-text-annotation-with-author-metadata.cs`](./add-text-annotation-with-author-metadata.cs) -- Add text annotation with author metadata +- [`add-text-annotation-with-custom-author.cs`](./add-text-annotation-with-custom-author.cs) -- Add text annotation with custom author +- [`add-text-annotation-with-opacity.cs`](./add-text-annotation-with-opacity.cs) -- Add text annotation with opacity +- [`add-text-annotation-with-utc-creation-date.cs`](./add-text-annotation-with-utc-creation-date.cs) -- Add text annotation with utc creation date +- [`add-text-annotation-with-utc-timestamp.cs`](./add-text-annotation-with-utc-timestamp.cs) -- Add text annotation with utc timestamp +- [`add-text-stamp-with-shadow.cs`](./add-text-stamp-with-shadow.cs) -- Add text stamp with shadow +- [`add-thick-green-circle-annotation-page-six.cs`](./add-thick-green-circle-annotation-page-six.cs) -- Add thick green circle annotation page six +- [`add-tooltip-annotation-to-pdf.cs`](./add-tooltip-annotation-to-pdf.cs) -- Add tooltip annotation to pdf +- [`add-underlined-text-stamp-to-page-ten.cs`](./add-underlined-text-stamp-to-page-ten.cs) -- Add underlined text stamp to page ten +- [`add-underlined-yellow-text-stamp-to-pdf-page.cs`](./add-underlined-yellow-text-stamp-to-pdf-page.cs) -- Add underlined yellow text stamp to pdf page +- [`add-unicode-attachment-description-to-pdf.cs`](./add-unicode-attachment-description-to-pdf.cs) -- Add unicode attachment description to pdf +- [`add-url-bookmark-to-pdf.cs`](./add-url-bookmark-to-pdf.cs) -- Add url bookmark to pdf +- [`add-watermark-to-pdfs-in-folder.cs`](./add-watermark-to-pdfs-in-folder.cs) -- Add watermark to pdfs in folder +- [`add-watermark-to-pdfs-in-parallel.cs`](./add-watermark-to-pdfs-in-parallel.cs) -- Add watermark to pdfs in parallel +- [`add-web-link-annotation-to-pdf.cs`](./add-web-link-annotation-to-pdf.cs) -- Add web link annotation to pdf +- [`add-xmp-department-metadata-to-pdf.cs`](./add-xmp-department-metadata-to-pdf.cs) -- Add xmp department metadata to pdf +- [`add-xmp-metadata-author-title.cs`](./add-xmp-metadata-author-title.cs) -- Add xmp metadata author title +- [`add-xmp-metadata-corporate-branding.cs`](./add-xmp-metadata-corporate-branding.cs) -- Add xmp metadata corporate branding +- [`add-xmp-metadata-field-to-pdf.cs`](./add-xmp-metadata-field-to-pdf.cs) -- Add xmp metadata field to pdf +- [`align-stamp-with-paragraph-baseline.cs`](./align-stamp-with-paragraph-baseline.cs) -- Align stamp with paragraph baseline +- [`apply-45-degree-rotation-to-stamp.cs`](./apply-45-degree-rotation-to-stamp.cs) -- Apply 45 degree rotation to stamp +- [`apply-viewer-preferences-from-json.cs`](./apply-viewer-preferences-from-json.cs) -- Apply viewer preferences from json +- [`apply-viewer-preferences-to-decrypted-pdf.cs`](./apply-viewer-preferences-to-decrypted-pdf.cs) -- Apply viewer preferences to decrypted pdf +- [`apply-viewer-preferences-to-encrypted-pdf.cs`](./apply-viewer-preferences-to-encrypted-pdf.cs) -- Apply viewer preferences to encrypted pdf +- [`apply-viewer-preferences-to-multiple-pdfs.cs`](./apply-viewer-preferences-to-multiple-pdfs.cs) -- Apply viewer preferences to multiple pdfs +- [`async-add-attachment-to-pdf.cs`](./async-add-attachment-to-pdf.cs) -- Async add attachment to pdf +- [`attach-downloaded-file-to-pdf.cs`](./attach-downloaded-file-to-pdf.cs) -- Attach downloaded file to pdf +- [`attach-image-add-stamp-annotation.cs`](./attach-image-add-stamp-annotation.cs) -- Attach image add stamp annotation +- [`attach-multiple-files-to-pdf.cs`](./attach-multiple-files-to-pdf.cs) -- Attach multiple files to pdf +- [`attach-network-downloaded-file-to-pdf.cs`](./attach-network-downloaded-file-to-pdf.cs) -- Attach network downloaded file to pdf +- [`batch-add-annotations-from-json.cs`](./batch-add-annotations-from-json.cs) -- Batch add annotations from json +- [`batch-add-attachment-to-pdfs.cs`](./batch-add-attachment-to-pdfs.cs) -- Batch add attachment to pdfs +- [`batch-add-javascript-alert-to-rectangle-annotations.cs`](./batch-add-javascript-alert-to-rectangle-annotations.cs) -- Batch add javascript alert to rectangle annotations +- [`batch-add-password-protection-to-pdfs.cs`](./batch-add-password-protection-to-pdfs.cs) -- Batch add password protection to pdfs +- [`batch-add-red-rectangle-annotation.cs`](./batch-add-red-rectangle-annotation.cs) -- Batch add red rectangle annotation +- [`batch-add-text-annotations-to-pdf.cs`](./batch-add-text-annotations-to-pdf.cs) -- Batch add text annotations to pdf +- [`batch-apply-js-alert-to-rectangle-annotations.cs`](./batch-apply-js-alert-to-rectangle-annotations.cs) -- Batch apply js alert to rectangle annotations +- [`batch-extract-images-from-pdfs.cs`](./batch-extract-images-from-pdfs.cs) -- Batch extract images from pdfs +- [`batch-remove-attachments-add-disclaimer-annotation.cs`](./batch-remove-attachments-add-disclaimer-annotation.cs) -- Batch remove attachments add disclaimer annotation +- [`batch-remove-attachments-add-disclaimer.cs`](./batch-remove-attachments-add-disclaimer.cs) -- Batch remove attachments add disclaimer +- [`batch-replace-confidential-with-public.cs`](./batch-replace-confidential-with-public.cs) -- Batch replace confidential with public +- [`batch-reposition-stamps-top-center.cs`](./batch-reposition-stamps-top-center.cs) -- Batch reposition stamps top center +- [`batch-set-pdf-viewer-preference-full-screen.cs`](./batch-set-pdf-viewer-preference-full-screen.cs) -- Batch set pdf viewer preference full screen +- [`batch-set-pdf-viewer-preference-fullscreen.cs`](./batch-set-pdf-viewer-preference-fullscreen.cs) -- Batch set pdf viewer preference fullscreen +- [`center-image-stamp-on-page-8.cs`](./center-image-stamp-on-page-8.cs) -- Center image stamp on page 8 +- [`center-image-stamp-on-page.cs`](./center-image-stamp-on-page.cs) -- Center image stamp on page +- [`change-pdf-viewer-preferences-save.cs`](./change-pdf-viewer-preferences-save.cs) -- Change pdf viewer preferences save +- [`change-pdf-viewer-preferences.cs`](./change-pdf-viewer-preferences.cs) -- Change pdf viewer preferences +- [`check-pdf-checkbox-field.cs`](./check-pdf-checkbox-field.cs) -- Check pdf checkbox field +- [`combine-jpeg-images-into-pdf.cs`](./combine-jpeg-images-into-pdf.cs) -- Combine jpeg images into pdf +- [`combine-jpeg-images-to-pdf.cs`](./combine-jpeg-images-to-pdf.cs) -- Combine jpeg images to pdf +- [`compare-pdf-file-sizes-after-annotation.cs`](./compare-pdf-file-sizes-after-annotation.cs) -- Compare pdf file sizes after annotation +- [`compare-pdf-file-sizes-after-editing.cs`](./compare-pdf-file-sizes-after-editing.cs) -- Compare pdf file sizes after editing +- [`config-driven-pdf-pipeline-attachments-viewer-annotations.cs`](./config-driven-pdf-pipeline-attachments-viewer-annotations.cs) -- Config driven pdf pipeline attachments viewer annotations +- [`configure-continuous-view-mode.cs`](./configure-continuous-view-mode.cs) -- Configure continuous view mode +- [`convert-jpeg-to-pdf.cs`](./convert-jpeg-to-pdf.cs) -- Convert jpeg to pdf +- [`convert-pdf-page-to-high-res-png.cs`](./convert-pdf-page-to-high-res-png.cs) -- Convert pdf page to high res png +- [`convert-pdf-pages-to-bmp.cs`](./convert-pdf-pages-to-bmp.cs) -- Convert pdf pages to bmp +- [`convert-pdf-pages-to-png-150-dpi.cs`](./convert-pdf-pages-to-png-150-dpi.cs) -- Convert pdf pages to png 150 dpi +- [`convert-pdf-pages-to-png-transparent.cs`](./convert-pdf-pages-to-png-transparent.cs) -- Convert pdf pages to png transparent +- [`convert-pdf-pages-to-transparent-png.cs`](./convert-pdf-pages-to-transparent-png.cs) -- Convert pdf pages to transparent png +- [`convert-pdf-to-jpeg-150-dpi.cs`](./convert-pdf-to-jpeg-150-dpi.cs) -- Convert pdf to jpeg 150 dpi +- [`convert-pdf-to-multi-page-tiff-lzw.cs`](./convert-pdf-to-multi-page-tiff-lzw.cs) -- Convert pdf to multi page tiff lzw +- [`convert-pdf-to-png-thumbnails-300-dpi.cs`](./convert-pdf-to-png-thumbnails-300-dpi.cs) -- Convert pdf to png thumbnails 300 dpi +- [`convert-pdf-to-progressive-jpeg-150-dpi.cs`](./convert-pdf-to-progressive-jpeg-150-dpi.cs) -- Convert pdf to progressive jpeg 150 dpi +- [`convert-png-to-multi-page-pdf.cs`](./convert-png-to-multi-page-pdf.cs) -- Convert png to multi page pdf +- [`create-dashed-border-rectangle-annotation.cs`](./create-dashed-border-rectangle-annotation.cs) -- Create dashed border rectangle annotation +- [`create-dashed-rectangle-annotation.cs`](./create-dashed-rectangle-annotation.cs) -- Create dashed rectangle annotation +- [`create-image-stamp-from-memory-stream.cs`](./create-image-stamp-from-memory-stream.cs) -- Create image stamp from memory stream +- [`create-multiline-text-stamp.cs`](./create-multiline-text-stamp.cs) -- Create multiline text stamp +- [`create-nested-bookmarks-pdf.cs`](./create-nested-bookmarks-pdf.cs) -- Create nested bookmarks pdf +- [`create-nested-bookmarks-pdfcontenteditor.cs`](./create-nested-bookmarks-pdfcontenteditor.cs) -- Create nested bookmarks pdfcontenteditor +- [`create-nested-pdf-bookmarks-three-levels.cs`](./create-nested-pdf-bookmarks-three-levels.cs) -- Create nested pdf bookmarks three levels +- [`create-nested-pdf-bookmarks.cs`](./create-nested-pdf-bookmarks.cs) -- Create nested pdf bookmarks +- [`create-pdf-image-catalog.cs`](./create-pdf-image-catalog.cs) -- Create pdf image catalog +- [`create-rubber-stamp-with-custom-appearance.cs`](./create-rubber-stamp-with-custom-appearance.cs) -- Create rubber stamp with custom appearance +- [`custom-annotation-appearance-stream.cs`](./custom-annotation-appearance-stream.cs) -- Custom annotation appearance stream +- [`custom-appearance-rubber-stamp.cs`](./custom-appearance-rubber-stamp.cs) -- Custom appearance rubber stamp +- [`decrypt-edit-reencrypt-pdf.cs`](./decrypt-edit-reencrypt-pdf.cs) -- Decrypt edit reencrypt pdf +- [`delete-all-attachments-verify-count.cs`](./delete-all-attachments-verify-count.cs) -- Delete all attachments verify count +- [`delete-all-pdf-attachments-verify.cs`](./delete-all-pdf-attachments-verify.cs) -- Delete all pdf attachments verify +- [`delete-page-from-pdf.cs`](./delete-page-from-pdf.cs) -- Delete page from pdf +- [`delete-pdf-attachments-matching-old-pdf.cs`](./delete-pdf-attachments-matching-old-pdf.cs) -- Delete pdf attachments matching old pdf +- [`disable-zoom-controls-in-pdf.cs`](./disable-zoom-controls-in-pdf.cs) -- Disable zoom controls in pdf +- [`disable-zoom-controls-set-fixed-zoom.cs`](./disable-zoom-controls-set-fixed-zoom.cs) -- Disable zoom controls set fixed zoom +- [`edit-pdf-text-with-pdfcontenteditor-disposal.cs`](./edit-pdf-text-with-pdfcontenteditor-disposal.cs) -- Edit pdf text with pdfcontenteditor disposal +- [`edit-pdf-with-logging-using-pdfcontenteditor.cs`](./edit-pdf-with-logging-using-pdfcontenteditor.cs) -- Edit pdf with logging using pdfcontenteditor +- [`embed-memory-stream-as-pdf-attachment.cs`](./embed-memory-stream-as-pdf-attachment.cs) -- Embed memory stream as pdf attachment +- [`enable-centerwindow-viewer-preference.cs`](./enable-centerwindow-viewer-preference.cs) -- Enable centerwindow viewer preference +- [`enable-displaydoctitle-viewer-preference.cs`](./enable-displaydoctitle-viewer-preference.cs) -- Enable displaydoctitle viewer preference +- [`encrypt-attachment-and-add-to-pdf.cs`](./encrypt-attachment-and-add-to-pdf.cs) -- Encrypt attachment and add to pdf +- [`encrypt-pdf-128-aes-restrict-permissions.cs`](./encrypt-pdf-128-aes-restrict-permissions.cs) -- Encrypt pdf 128 aes restrict permissions +- [`encrypt-pdf-attachment-and-add-to-pdf.cs`](./encrypt-pdf-attachment-and-add-to-pdf.cs) -- Encrypt pdf attachment and add to pdf +- [`encrypt-pdf-with-attachment-and-viewer-preference.cs`](./encrypt-pdf-with-attachment-and-viewer-preference.cs) -- Encrypt pdf with attachment and viewer preference +- [`encrypt-pdf-with-certificate-signature.cs`](./encrypt-pdf-with-certificate-signature.cs) -- Encrypt pdf with certificate signature +- [`export-modified-pdf-to-memory-stream.cs`](./export-modified-pdf-to-memory-stream.cs) -- Export modified pdf to memory stream +- [`export-pdf-annotations-to-json.cs`](./export-pdf-annotations-to-json.cs) -- Export pdf annotations to json +- [`export-pdf-to-memorystream.cs`](./export-pdf-to-memorystream.cs) -- Export pdf to memorystream +- [`export-pdf-viewer-preferences-to-xml.cs`](./export-pdf-viewer-preferences-to-xml.cs) -- Export pdf viewer preferences to xml +- [`extract-first-image-from-pdf-page2-png.cs`](./extract-first-image-from-pdf-page2-png.cs) -- Extract first image from pdf page2 png +- [`extract-grayscale-images-from-pdf-page.cs`](./extract-grayscale-images-from-pdf-page.cs) -- Extract grayscale images from pdf page +- [`extract-images-from-pdf-pages.cs`](./extract-images-from-pdf-pages.cs) -- Extract images from pdf pages +- [`extract-images-from-pdf-rename-by-page-index.cs`](./extract-images-from-pdf-rename-by-page-index.cs) -- Extract images from pdf rename by page index +- [`extract-images-from-pdf.cs`](./extract-images-from-pdf.cs) -- Extract images from pdf +- [`extract-page5-images-grayscale.cs`](./extract-page5-images-grayscale.cs) -- Extract page5 images grayscale +- [`extract-pdf-viewer-preferences-to-json.cs`](./extract-pdf-viewer-preferences-to-json.cs) -- Extract pdf viewer preferences to json +- [`extract-pdf-viewer-preferences-to-xml.cs`](./extract-pdf-viewer-preferences-to-xml.cs) -- Extract pdf viewer preferences to xml +- [`extract-pdf-viewer-preferences-to-xml__v2.cs`](./extract-pdf-viewer-preferences-to-xml__v2.cs) -- Extract pdf viewer preferences to xml v2 +- [`extract-viewer-preferences-to-json.cs`](./extract-viewer-preferences-to-json.cs) -- Extract viewer preferences to json +- [`fill-acroform-text-field.cs`](./fill-acroform-text-field.cs) -- Fill acroform text field +- [`fill-pdf-acroform-from-xml.cs`](./fill-pdf-acroform-from-xml.cs) -- Fill pdf acroform from xml +- [`fill-pdf-form-fields-from-json.cs`](./fill-pdf-form-fields-from-json.cs) -- Fill pdf form fields from json +- [`fill-pdf-form-fields-from-json__v2.cs`](./fill-pdf-form-fields-from-json__v2.cs) -- Fill pdf form fields from json v2 +- [`folder-pdf-monitor-add-text.cs`](./folder-pdf-monitor-add-text.cs) -- Folder pdf monitor add text +- [`generate-pdf-catalog-of-extracted-images.cs`](./generate-pdf-catalog-of-extracted-images.cs) -- Generate pdf catalog of extracted images +- [`get-pdf-viewer-preferences-zoom.cs`](./get-pdf-viewer-preferences-zoom.cs) -- Get pdf viewer preferences zoom +- [`hide-annotations-in-fullscreen-mode.cs`](./hide-annotations-in-fullscreen-mode.cs) -- Hide annotations in fullscreen mode +- [`hide-annotations-when-fullscreen.cs`](./hide-annotations-when-fullscreen.cs) -- Hide annotations when fullscreen +- [`hide-menubar-viewer-preference.cs`](./hide-menubar-viewer-preference.cs) -- Hide menubar viewer preference +- [`hide-pdf-navigation-panels-use-none.cs`](./hide-pdf-navigation-panels-use-none.cs) -- Hide pdf navigation panels use none +- [`hide-pdf-toolbar-viewer-preference.cs`](./hide-pdf-toolbar-viewer-preference.cs) -- Hide pdf toolbar viewer preference +- [`hide-scrollbars-disable-page-transitions.cs`](./hide-scrollbars-disable-page-transitions.cs) -- Hide scrollbars disable page transitions +- [`hide-scrollbars-pdf-viewer.cs`](./hide-scrollbars-pdf-viewer.cs) -- Hide scrollbars pdf viewer +- [`hide-scrollbars-viewer-preference.cs`](./hide-scrollbars-viewer-preference.cs) -- Hide scrollbars viewer preference +- [`hide-toolbar-and-menubar-viewer-preference.cs`](./hide-toolbar-and-menubar-viewer-preference.cs) -- Hide toolbar and menubar viewer preference +- [`hide-toolbar-and-menubar-viewer-preferences.cs`](./hide-toolbar-and-menubar-viewer-preferences.cs) -- Hide toolbar and menubar viewer preferences +- [`hide-toolbar-and-menubar.cs`](./hide-toolbar-and-menubar.cs) -- Hide toolbar and menubar +- [`hide-toolbar-using-pdfcontenteditor.cs`](./hide-toolbar-using-pdfcontenteditor.cs) -- Hide toolbar using pdfcontenteditor +- [`import-annotations-from-json.cs`](./import-annotations-from-json.cs) -- Import annotations from json +- [`insert-blank-page-add-header.cs`](./insert-blank-page-add-header.cs) -- Insert blank page add header +- [`insert-image-annotation-with-caption.cs`](./insert-image-annotation-with-caption.cs) -- Insert image annotation with caption +- [`insert-image-with-caption-annotation.cs`](./insert-image-with-caption-annotation.cs) -- Insert image with caption annotation +- [`lock-text-annotation-in-pdf.cs`](./lock-text-annotation-in-pdf.cs) -- Lock text annotation in pdf +- [`lock-text-annotation.cs`](./lock-text-annotation.cs) -- Lock text annotation +- [`log-pdf-edit-operations.cs`](./log-pdf-edit-operations.cs) -- Log pdf edit operations +- [`map-pdf-viewer-preferences-to-toggles.cs`](./map-pdf-viewer-preferences-to-toggles.cs) -- Map pdf viewer preferences to toggles +- [`move-last-page-to-beginning.cs`](./move-last-page-to-beginning.cs) -- Move last page to beginning +- [`password-protect-pdf-disable-printing.cs`](./password-protect-pdf-disable-printing.cs) -- Password protect pdf disable printing +- [`pdf-pipeline-attachments-viewer-preferences-annotations.cs`](./pdf-pipeline-attachments-viewer-preferences-annotations.cs) -- Pdf pipeline attachments viewer preferences annotations +- [`pdfcontenteditor-wrapper-text-replace-attachment.cs`](./pdfcontenteditor-wrapper-text-replace-attachment.cs) -- Pdfcontenteditor wrapper text replace attachment +- [`persist-viewer-preferences-after-editing-pdf.cs`](./persist-viewer-preferences-after-editing-pdf.cs) -- Persist viewer preferences after editing pdf +- [`persist-viewer-preferences-in-pdf.cs`](./persist-viewer-preferences-in-pdf.cs) -- Persist viewer preferences in pdf +- [`populate-pdf-form-fields-from-json.cs`](./populate-pdf-form-fields-from-json.cs) -- Populate pdf form fields from json +- [`print-pdf-custom-page-ranges.cs`](./print-pdf-custom-page-ranges.cs) -- Print pdf custom page ranges +- [`print-pdf-duplex-collated-copies.cs`](./print-pdf-duplex-collated-copies.cs) -- Print pdf duplex collated copies +- [`print-pdf-multiple-copies-landscape.cs`](./print-pdf-multiple-copies-landscape.cs) -- Print pdf multiple copies landscape +- [`print-selected-pdf-pages.cs`](./print-selected-pdf-pages.cs) -- Print selected pdf pages +- [`read-pdf-viewer-preferences-zoom.cs`](./read-pdf-viewer-preferences-zoom.cs) -- Read pdf viewer preferences zoom +- [`refresh-pdf-attachments.cs`](./refresh-pdf-attachments.cs) -- Refresh pdf attachments +- [`remove-all-attachments-from-pdf.cs`](./remove-all-attachments-from-pdf.cs) -- Remove all attachments from pdf +- [`remove-all-bookmarks-from-pdf.cs`](./remove-all-bookmarks-from-pdf.cs) -- Remove all bookmarks from pdf +- [`remove-attachments-old-pdf.cs`](./remove-attachments-old-pdf.cs) -- Remove attachments old pdf +- [`remove-embedded-file-from-pdf.cs`](./remove-embedded-file-from-pdf.cs) -- Remove embedded file from pdf +- [`remove-pdf-attachment.cs`](./remove-pdf-attachment.cs) -- Remove pdf attachment +- [`remove-specific-bookmark-from-pdf.cs`](./remove-specific-bookmark-from-pdf.cs) -- Remove specific bookmark from pdf +- [`replace-dates-in-pdf-using-regex.cs`](./replace-dates-in-pdf-using-regex.cs) -- Replace dates in pdf using regex +- [`replace-invoicenumber-with-uuid-page-6.cs`](./replace-invoicenumber-with-uuid-page-6.cs) -- Replace invoicenumber with uuid page 6 +- [`replace-phrase-bold-preserve-font-size.cs`](./replace-phrase-bold-preserve-font-size.cs) -- Replace phrase bold preserve font size +- [`replace-phrase-with-bold-text.cs`](./replace-phrase-with-bold-text.cs) -- Replace phrase with bold text +- [`replace-text-in-pdf-annotations.cs`](./replace-text-in-pdf-annotations.cs) -- Replace text in pdf annotations +- [`replace-text-in-pdf.cs`](./replace-text-in-pdf.cs) -- Replace text in pdf +- [`replace-text-in-pdf__v2.cs`](./replace-text-in-pdf__v2.cs) -- Replace text in pdf v2 +- [`replace-text-on-page-preserve-font-style.cs`](./replace-text-on-page-preserve-font-style.cs) -- Replace text on page preserve font style +- [`replace-text-on-specific-pdf-page.cs`](./replace-text-on-specific-pdf-page.cs) -- Replace text on specific pdf page +- [`replace-text-pdf-content-editor-disposal.cs`](./replace-text-pdf-content-editor-disposal.cs) -- Replace text pdf content editor disposal +- [`replace-text-pdf-using-pdfcontenteditor.cs`](./replace-text-pdf-using-pdfcontenteditor.cs) -- Replace text pdf using pdfcontenteditor +- [`replace-text-preserve-font-style.cs`](./replace-text-preserve-font-style.cs) -- Replace text preserve font style +- [`replace-text-preserve-font.cs`](./replace-text-preserve-font.cs) -- Replace text preserve font +- [`replace-text-preserve-style.cs`](./replace-text-preserve-style.cs) -- Replace text preserve style +- [`replace-text-using-regular-expressions.cs`](./replace-text-using-regular-expressions.cs) -- Replace text using regular expressions +- [`reposition-stamp-left-margin.cs`](./reposition-stamp-left-margin.cs) -- Reposition stamp left margin +- [`reposition-stamp-on-page-four.cs`](./reposition-stamp-on-page-four.cs) -- Reposition stamp on page four +- [`reposition-stamp-to-baseline-page-5.cs`](./reposition-stamp-to-baseline-page-5.cs) -- Reposition stamp to baseline page 5 +- [`retrieve-pdf-viewer-preferences-to-xml.cs`](./retrieve-pdf-viewer-preferences-to-xml.cs) -- Retrieve pdf viewer preferences to xml +- [`retrieve-pdf-viewer-preferences.cs`](./retrieve-pdf-viewer-preferences.cs) -- Retrieve pdf viewer preferences +- [`retrieve-pdf-viewer-preferences__v2.cs`](./retrieve-pdf-viewer-preferences__v2.cs) -- Retrieve pdf viewer preferences v2 +- [`retrieve-verify-incremental-viewer-preferences.cs`](./retrieve-verify-incremental-viewer-preferences.cs) -- Retrieve verify incremental viewer preferences +- [`rotate-pdf-pages-in-parallel.cs`](./rotate-pdf-pages-in-parallel.cs) -- Rotate pdf pages in parallel +- [`rotate-stamp-annotation-90-degrees.cs`](./rotate-stamp-annotation-90-degrees.cs) -- Rotate stamp annotation 90 degrees +- [`rotate-stamp-diagonal.cs`](./rotate-stamp-diagonal.cs) -- Rotate stamp diagonal +- [`rotate-text-annotation-90-degrees.cs`](./rotate-text-annotation-90-degrees.cs) -- Rotate text annotation 90 degrees +- [`secure-pdf-with-certificate-encryption-and-signature.cs`](./secure-pdf-with-certificate-encryption-and-signature.cs) -- Secure pdf with certificate encryption and signature +- [`select-radio-button-in-pdf-form.cs`](./select-radio-button-in-pdf-form.cs) -- Select radio button in pdf form +- [`set-annotation-opacity-image-stamp.cs`](./set-annotation-opacity-image-stamp.cs) -- Set annotation opacity image stamp +- [`set-checkbox-field-in-pdf-form.cs`](./set-checkbox-field-in-pdf-form.cs) -- Set checkbox field in pdf form +- [`set-continuous-view-mode.cs`](./set-continuous-view-mode.cs) -- Set continuous view mode +- [`set-hide-menubar-viewer-preference.cs`](./set-hide-menubar-viewer-preference.cs) -- Set hide menubar viewer preference +- [`set-highlight-annotation-border-color-red.cs`](./set-highlight-annotation-border-color-red.cs) -- Set highlight annotation border color red +- [`set-light-gray-background-for-text-annotations.cs`](./set-light-gray-background-for-text-annotations.cs) -- Set light gray background for text annotations +- [`set-multiple-viewer-preferences-pdf.cs`](./set-multiple-viewer-preferences-pdf.cs) -- Set multiple viewer preferences pdf +- [`set-pdf-permissions-allow-copy-block-form-editing.cs`](./set-pdf-permissions-allow-copy-block-form-editing.cs) -- Set pdf permissions allow copy block form editing +- [`set-pdf-permissions-allow-copy-restrict-form-edit.cs`](./set-pdf-permissions-allow-copy-restrict-form-edit.cs) -- Set pdf permissions allow copy restrict form edit +- [`set-pdf-viewer-preference-and-default-zoom.cs`](./set-pdf-viewer-preference-and-default-zoom.cs) -- Set pdf viewer preference and default zoom +- [`set-pdf-viewer-preference-fullscreen.cs`](./set-pdf-viewer-preference-fullscreen.cs) -- Set pdf viewer preference fullscreen +- [`set-pdf-viewer-preference-show-outline.cs`](./set-pdf-viewer-preference-show-outline.cs) -- Set pdf viewer preference show outline +- [`set-pdf-viewer-preference-single-page.cs`](./set-pdf-viewer-preference-single-page.cs) -- Set pdf viewer preference single page +- [`set-pdf-viewer-preferences-fit-width.cs`](./set-pdf-viewer-preferences-fit-width.cs) -- Set pdf viewer preferences fit width +- [`set-pdf-viewer-preferences-thumbnails-fit-width.cs`](./set-pdf-viewer-preferences-thumbnails-fit-width.cs) -- Set pdf viewer preferences thumbnails fit width +- [`set-pdf-window-title-displaydoctitle.cs`](./set-pdf-window-title-displaydoctitle.cs) -- Set pdf window title displaydoctitle +- [`set-radio-button-value-in-pdf-acroform.cs`](./set-radio-button-value-in-pdf-acroform.cs) -- Set radio button value in pdf acroform +- [`set-viewer-preference-default-zoom.cs`](./set-viewer-preference-default-zoom.cs) -- Set viewer preference default zoom +- [`silently-print-pdf-to-network-printer.cs`](./silently-print-pdf-to-network-printer.cs) -- Silently print pdf to network printer +- [`simple-pdf-editing-wrapper.cs`](./simple-pdf-editing-wrapper.cs) -- Simple pdf editing wrapper +- [`split-pdf-into-single-page-files.cs`](./split-pdf-into-single-page-files.cs) -- Split pdf into single page files +- [`toggle-fullscreen-viewer-preference.cs`](./toggle-fullscreen-viewer-preference.cs) -- Toggle fullscreen viewer preference +- [`toggle-pdf-viewer-preferences.cs`](./toggle-pdf-viewer-preferences.cs) -- Toggle pdf viewer preferences +- [`underline-specific-phrase-on-pdf-page.cs`](./underline-specific-phrase-on-pdf-page.cs) -- Underline specific phrase on pdf page +- [`underline-specific-phrase-page-4.cs`](./underline-specific-phrase-page-4.cs) -- Underline specific phrase page 4 +- [`update-pdf-xmp-creator-metadata.cs`](./update-pdf-xmp-creator-metadata.cs) -- Update pdf xmp creator metadata +- [`update-pdf-xmp-metadata-custom-project-schema.cs`](./update-pdf-xmp-metadata-custom-project-schema.cs) -- Update pdf xmp metadata custom project schema +- [`validate-pdf-integrity-after-adding-margins.cs`](./validate-pdf-integrity-after-adding-margins.cs) -- Validate pdf integrity after adding margins +- [`validate-pdf-integrity-sha256.cs`](./validate-pdf-integrity-sha256.cs) -- Validate pdf integrity sha256 +- [`verify-pdf-attachment-after-save.cs`](./verify-pdf-attachment-after-save.cs) -- Verify pdf attachment after save +- [`verify-text-annotation-position.cs`](./verify-text-annotation-position.cs) -- Verify text annotation position + +## See Also + +- [`AGENTS.md`](./AGENTS.md) -- category-specific anti-patterns, API surface, and conventions for AI coding agents +- [`../AGENTS.md`](../AGENTS.md) -- repository-wide agent guide +- [`../README.md`](../README.md) -- full category index and project overview +- [Aspose.PDF for .NET docs](https://docs.aspose.com/pdf/net/) + +> Each `.cs` file is a standalone, build-validated console example. Drop into a fresh `dotnet new console` project, add the `Aspose.PDF` NuGet (version above), and run. diff --git a/facades-edit-document/index.json b/facades-edit-document/index.json index 967930e18..2ae23f29b 100644 --- a/facades-edit-document/index.json +++ b/facades-edit-document/index.json @@ -1,1376 +1,2181 @@ { "category": "facades-edit-document", "nuget_version": "26.8.0", - "last_updated": "2026-08-20T07:38:22Z", + "last_updated": "2026-09-10T12:45:08Z", "examples": { - "add-red-rectangle-annotation": { - "title": "Add Red Rectangle Annotation to PDF Page", - "filename": "add-red-rectangle-annotation.cs", - "description": "Shows how to place a red rectangle annotation with a 2 mm (≈6 points) border on a specific PDF page using Aspose.Pdf's PdfContentEditor.", - "tags": [ - "annotation", - "rectangle", - "border", - "pdf", - "Aspose" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.CreateSquareCircle", - "Aspose.Pdf.Facades.PdfContentEditor.Save" - ], - "difficulty": "intermediate", + "add-an-attachment-with-custom-mime-type-application-pdf-and-description-invoice-document": { + "title": "Add An Attachment With Custom Mime Type Application Pdf And Description Invoice Document", + "filename": "add-an-attachment-with-custom-mime-type-application-pdf-and-description-invoice-document.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-highlight-annotation-to-pdf-page": { - "title": "Add Highlight Annotation to PDF Page", - "filename": "add-highlight-annotation-to-pdf-page.cs", - "description": "Shows how to insert a yellow highlight annotation over a specific text range on page three of a PDF using Aspose.Pdf.", + "add-and-verify-attachment-in-pdf": { + "title": "Add And Verify Attachment In Pdf", + "filename": "add-and-verify-attachment-in-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-and-verify-document-attachment": { + "title": "Add And Verify Document Attachment", + "filename": "add-and-verify-document-attachment.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-annotation-and-merge-pdfs": { + "title": "Add Annotation to PDF and Merge with Another PDF", + "filename": "add-annotation-and-merge-pdfs.cs", + "description": "The example loads a PDF, adds a text annotation to its first page, saves it, and then concatenates it with a second PDF using Aspose.Pdf.Facades.", "tags": [ - "highlight", "annotation", + "merge", "pdf", "Aspose.Pdf", - "page" + "concatenate" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.TextAnnotation", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.HighlightAnnotation", - "Aspose.Pdf.Color", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfFileEditor.Concatenate" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-sticky-note-annotation-to-pdf": { - "title": "Add Sticky Note Annotation to PDF", - "filename": "add-sticky-note-annotation-to-pdf.cs", - "description": "Shows how to place a sticky note (text annotation) on the first page of a PDF using Aspose.Pdf's PdfContentEditor, including creating a placeholder PDF if the source file is missing.", + "add-attachment-and-encrypt-pdf": { + "title": "Add Attachment and Encrypt PDF with Password", + "filename": "add-attachment-and-encrypt-pdf.cs", + "description": "Demonstrates adding a document attachment, setting viewer preferences, and then encrypting the PDF with user and owner passwords using AES‑256.", "tags": [ - "sticky-note", - "annotation", "pdf", - "Aspose.Pdf", - "facade" + "attachment", + "encryption", + "viewer-preferences", + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.CreateText", - "Aspose.Pdf.Facades.PdfContentEditor.Save" + "PdfContentEditor", + "PdfContentEditor.AddDocumentAttachment", + "PdfContentEditor.ChangeViewerPreference", + "PdfContentEditor.Save", + "PdfFileSecurity", + "PdfFileSecurity.EncryptFile" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-bookmark-to-pdf-page": { - "title": "Add Bookmark to PDF Page", - "filename": "add-bookmark-to-pdf-page.cs", - "description": "Shows how to create a bookmark titled \"Project Overview\" that links to page five of a PDF using Aspose.Pdf.Facades.", - "tags": [ - "bookmark", - "pdf", - "Aspose.Pdf", - "page navigation", - "facade" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfBookmarkEditor", - "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", - "Aspose.Pdf.Facades.PdfBookmarkEditor.CreateBookmarkOfPage", - "Aspose.Pdf.Facades.PdfBookmarkEditor.Save" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:38:22Z", + "add-attachment-and-list-attachments": { + "title": "Add Attachment And List Attachments", + "filename": "add-attachment-and-list-attachments.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "create-nested-bookmarks-pdf": { - "title": "Create Nested Bookmarks in PDF using PdfContentEditor", - "filename": "create-nested-bookmarks-pdf.cs", - "description": "Shows how to add a parent bookmark (Chapter One) and its child section bookmarks to an existing PDF file using Aspose.Pdf's PdfContentEditor class.", + "add-attachment-and-list-names": { + "title": "Add Attachment to PDF and List Attachment Names", + "filename": "add-attachment-and-list-names.cs", + "description": "Demonstrates how to embed a PDF file as an attachment using PdfContentEditor and then extract and display all attachment names with PdfExtractor.", "tags": [ - "bookmarks", + "attachment", "pdf", - "Aspose.Pdf", - "PdfContentEditor", - "nested" + "aspose", + "facade", + "extractor" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.CreateBookmarksAction", - "Aspose.Pdf.Facades.PdfContentEditor.Save" + "Aspose.Pdf.Facades.PdfExtractor", + "Aspose.Pdf.Text.TextFragment", + "PdfContentEditor.AddDocumentAttachment", + "PdfContentEditor.Save", + "PdfExtractor.ExtractAttachment", + "PdfExtractor.GetAttachNames" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-javascript-click-action-to-pdf-rectangle": { - "title": "Add JavaScript Click Action to PDF Rectangle", - "filename": "add-javascript-click-action-to-pdf-rectangle.cs", - "description": "Demonstrates how to attach a JavaScript action to a rectangular annotation in a PDF using Aspose.Pdf.Facades, causing an alert to appear when the area is clicked.", + "add-attachment-and-retrieve-name": { + "title": "Add Attachment and Retrieve Its Name from PDF", + "filename": "add-attachment-and-retrieve-name.cs", + "description": "Demonstrates how to embed a file as a PDF attachment using PdfContentEditor and then extract the attachment's file specification name with PdfExtractor for verification.", "tags": [ - "javascript", - "annotation", + "attachment", "pdf", - "click-action", - "aspose.pdf" + "facade", + "extractor", + "metadata" ], "apis_used": [ "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.CreateJavaScriptLink", + "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment", "Aspose.Pdf.Facades.PdfContentEditor.Save", - "Aspose.Pdf.Facades.PdfContentEditor.Close" + "Aspose.Pdf.Facades.PdfExtractor", + "Aspose.Pdf.Facades.PdfExtractor.ExtractAttachment", + "Aspose.Pdf.Facades.PdfExtractor.GetAttachNames", + "Aspose.Pdf.Facades.PdfExtractor.GetAttachmentInfo", + "Aspose.Pdf.FileSpecification" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-javascript-calculation-button-to-pdf-form": { - "title": "Add JavaScript Calculation Button to PDF Form", - "filename": "add-javascript-calculation-button-to-pdf-form.cs", - "description": "Demonstrates using Aspose.Pdf.Facades.FormEditor to add a push button to an existing PDF form and attach JavaScript that multiplies Price and Quantity fields and writes the result to the Total field.", + "add-attachment-and-set-viewer-preference": { + "title": "Add Attachment and Set Viewer Preference in PDF", + "filename": "add-attachment-and-set-viewer-preference.cs", + "description": "Shows how to embed a file as a document attachment and configure the PDF viewer to open the attachment panel using Aspose.Pdf.Facades.", "tags": [ + "attachment", + "viewer-preference", "pdf", - "form", - "javascript", - "button", - "calculation" + "facade", + "command-line" ], "apis_used": [ - "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.BindPdf", - "Aspose.Pdf.Facades.FormEditor.AddField", - "Aspose.Pdf.Facades.FormEditor.AddFieldScript", - "Aspose.Pdf.Facades.FormEditor.Save" + "PdfContentEditor", + "PdfContentEditor.BindPdf", + "PdfContentEditor.AddDocumentAttachment", + "PdfContentEditor.ChangeViewerPreference", + "PdfContentEditor.Save", + "ViewerPreference" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "extract-first-image-from-pdf-page2-png": { - "title": "Extract First Image from PDF Page 2 as PNG", - "filename": "extract-first-image-from-pdf-page2-png.cs", - "description": "Shows how to extract the first image on a specific PDF page and save it as a PNG file using Aspose.Pdf.", + "add-attachment-and-store-checksum-metadata": { + "title": "Add PDF Attachment and Store Checksum in Metadata", + "filename": "add-attachment-and-store-checksum-metadata.cs", + "description": "Demonstrates attaching a PDF file to another PDF using Aspose.Pdf.Facades, computing its MD5 checksum, and saving the checksum as custom metadata for integrity verification.", "tags": [ - "pdf", - "image-extraction", - "png", - "aspose-pdf", - "page2" + "attachment", + "metadata", + "checksum", + "Aspose.Pdf", + "facades" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfExtractor", - "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", - "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", - "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" + "Aspose.Pdf.Document", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment", + "Aspose.Pdf.Facades.PdfFileInfo", + "Aspose.Pdf.Facades.PdfFileInfo.SetMetaInfo" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "extract-images-from-pdf": { - "title": "Extract Images from PDF", - "filename": "extract-images-from-pdf.cs", - "description": "Shows how to use Aspose.Pdf's PdfExtractor to pull all images from a PDF and save them as PNG files in a specified folder.", + "add-attachment-preserve-existing": { + "title": "Add Attachment to PDF Without Deleting Existing Attachments", + "filename": "add-attachment-preserve-existing.cs", + "description": "Demonstrates how to add a new document attachment to an existing PDF while keeping any previously attached files intact using Aspose.Pdf.Facades.", "tags": [ "pdf", - "image-extraction", - "aspose.pdf", - "csharp", - "facade" + "attachment", + "add", + "preserve", + "Aspose.Pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfExtractor", - "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", - "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", - "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment", + "Aspose.Pdf.Facades.PdfContentEditor.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-image-stamp-to-bottom-right-page-3": { - "title": "Add Image Stamp to Bottom‑Right of Page 3", - "filename": "add-image-stamp-to-bottom-right-page-3.cs", - "description": "Demonstrates how to place an image stamp (logo.png) at the bottom‑right corner of the third page of a PDF using Aspose.Pdf.Facades.", - "tags": [ - "image-stamp", - "pdf", - "Aspose.Pdf", - "page-3", - "bottom-right" + "add-attachment-set-moddate-pdf": { + "title": "Add Attachment Set Moddate Pdf", + "filename": "add-attachment-set-moddate-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-attachment-set-modification-date": { + "title": "Add Attachment and Set Modification Date in PDF", + "filename": "add-attachment-set-modification-date.cs", + "description": "Demonstrates how to attach a file to a PDF and update the document's modification date to the current UTC timestamp using Aspose.Pdf.", + "tags": [ + "attachment", + "modification-date", + "audit", + "pdf", + "Aspose.Pdf" + ], + "apis_used": [ + "PdfContentEditor", + "PdfContentEditor.AddDocumentAttachment", + "PdfContentEditor.BindPdf", + "PdfContentEditor.Save", + "PdfFileInfo", + "PdfFileInfo.ModDate", + "PdfFileInfo.BindPdf", + "PdfFileInfo.Save" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:38:22Z", + "status": "verified" + }, + "add-attachment-store-checksum-metadata": { + "title": "Add Attachment Store Checksum Metadata", + "filename": "add-attachment-store-checksum-metadata.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-attachment-to-multiple-pdfs": { + "title": "Add Attachment to Multiple PDFs", + "filename": "add-attachment-to-multiple-pdfs.cs", + "description": "Shows how to batch‑process a list of PDF files and add the same document attachment to each using Aspose.Pdf.Facades.PdfContentEditor.", + "tags": [ + "pdf", + "attachment", + "batch", + "aspose", + "facade" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfContentEditor", + "PdfContentEditor.BindPdf", + "PdfContentEditor.AddDocumentAttachment", + "PdfContentEditor.Save", + "PdfContentEditor.Close" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:38:22Z", + "status": "verified" + }, + "add-attachment-verify-extraction": { + "title": "Add Attachment to PDF and Verify Extraction", + "filename": "add-attachment-verify-extraction.cs", + "description": "Demonstrates how to attach a file to a PDF using PdfContentEditor, then extract the attachment with PdfExtractor and compare its bytes to the original file.", + "tags": [ + "pdf", + "attachment", + "add", + "extract", + "verification" + ], + "apis_used": [ + "PdfContentEditor", + "PdfContentEditor.AddDocumentAttachment", + "PdfContentEditor.Save", + "PdfExtractor", + "PdfExtractor.ExtractAttachment", + "PdfExtractor.GetAttachNames", + "PdfExtractor.GetAttachment" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:38:22Z", + "status": "verified" + }, + "add-attachment-with-custom-mime-type-to-pdf": { + "title": "Add Attachment With Custom Mime Type To Pdf", + "filename": "add-attachment-with-custom-mime-type-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-author-and-title-metadata-to-pdf": { + "title": "Add Author And Title Metadata To Pdf", + "filename": "add-author-and-title-metadata-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-base64-image-stamp-to-pdf-page": { + "title": "Add Base64 Image Stamp To Pdf Page", + "filename": "add-base64-image-stamp-to-pdf-page.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-batch-text-annotations-to-pdf": { + "title": "Add Batch Text Annotations to PDF", + "filename": "add-batch-text-annotations-to-pdf.cs", + "description": "Shows how to add multiple text annotations to a PDF in a single batch by looping over annotation definitions and using the PdfAnnotationEditor facade.", + "tags": [ + "annotations", + "batch", + "text", + "pdf", + "Aspose.Pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Color", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", + "Aspose.Pdf.Page.Annotations.Add" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:38:22Z", + "status": "verified" + }, + "add-bold-red-centered-text-stamp-page-5": { + "title": "Add Bold Red Centered Text Stamp to Page 5", + "filename": "add-bold-red-centered-text-stamp-page-5.cs", + "description": "Demonstrates how to place a bold, red, centered text stamp on the fifth page of a PDF using Aspose.Pdf Facades.", + "tags": [ + "text-stamp", + "pdf", + "aspose-pdf", + "center-alignment", + "bold" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.TextStamp", + "Aspose.Pdf.Text.FontRepository", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.HorizontalAlignment", + "Aspose.Pdf.VerticalAlignment" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:38:22Z", + "status": "verified" + }, + "add-bookmark-to-pdf-page": { + "title": "Add Bookmark to PDF Page", + "filename": "add-bookmark-to-pdf-page.cs", + "description": "Shows how to create a bookmark titled \"Project Overview\" that links to page five of a PDF using Aspose.Pdf.Facades.", + "tags": [ + "bookmark", + "pdf", + "Aspose.Pdf", + "page navigation", + "facade" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfBookmarkEditor", + "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", + "Aspose.Pdf.Facades.PdfBookmarkEditor.CreateBookmarkOfPage", + "Aspose.Pdf.Facades.PdfBookmarkEditor.Save" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:38:22Z", + "status": "verified" + }, + "add-confidential-text-stamp": { + "title": "Add Confidential Text Stamp to PDF", + "filename": "add-confidential-text-stamp.cs", + "description": "Demonstrates creating a red \"Confidential\" text stamp with semi‑transparent background and applying it as a background watermark to all pages of a PDF using Aspose.Pdf facades.", + "tags": [ + "text-stamp", + "confidential", + "opacity", + "background", + "Aspose.Pdf" + ], + "apis_used": [ + "Aspose.Pdf.Facades.FormattedText", + "Aspose.Pdf.Facades.Stamp.BindLogo", + "Aspose.Pdf.Facades.Stamp.IsBackground", + "Aspose.Pdf.Facades.Stamp.Opacity", + "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", + "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", + "Aspose.Pdf.Facades.PdfFileStamp.Save" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:38:22Z", + "status": "verified" + }, + "add-confirmation-dialog-to-pdf-submit-button": { + "title": "Add Confirmation Dialog To Pdf Submit Button", + "filename": "add-confirmation-dialog-to-pdf-submit-button.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-corporate-branding-xmp-metadata": { + "title": "Add Corporate Branding XMP Metadata to PDF", + "filename": "add-corporate-branding-xmp-metadata.cs", + "description": "Demonstrates how to bind a PDF, add custom XMP metadata such as a logo URL and brand color, and save the branded document using Aspose.Pdf.", + "tags": [ + "XMP", + "metadata", + "branding", + "PDF", + "Aspose" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfXmpMetadata", + "Aspose.Pdf.Facades.PdfXmpMetadata.BindPdf", + "Aspose.Pdf.Facades.PdfXmpMetadata.Add", + "Aspose.Pdf.Facades.PdfXmpMetadata.Save" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:38:22Z", + "status": "verified" + }, + "add-custom-project-schema-to-pdf-xmp-metadata": { + "title": "Add Custom Project Schema To Pdf Xmp Metadata", + "filename": "add-custom-project-schema-to-pdf-xmp-metadata.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-custom-xmp-metadata-projectid": { + "title": "Add Custom XMP Metadata and Document Property to PDF", + "filename": "add-custom-xmp-metadata-projectid.cs", + "description": "Demonstrates how to add a custom XMP metadata field (ProjectID) to a PDF and synchronize it with the document's Info dictionary using Aspose.Pdf.Facades.", + "tags": [ + "xmp", + "metadata", + "pdf", + "custom-property", + "aspose" + ], + "apis_used": [ + "PdfXmpMetadata", + "PdfXmpMetadata.BindPdf", + "PdfXmpMetadata.Add", + "PdfXmpMetadata.Save", + "PdfFileInfo", + "PdfFileInfo.BindPdf", + "PdfFileInfo.SetMetaInfo", + "PdfFileInfo.SaveNewInfoWithXmp" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:38:22Z", + "status": "verified" + }, + "add-dashed-line-annotation-to-pdf": { + "title": "Add Dashed Line Annotation to PDF Diagram", + "filename": "add-dashed-line-annotation-to-pdf.cs", + "description": "Demonstrates how to add a custom dashed line annotation to a PDF page using Aspose.Pdf.Facades.PdfContentEditor, specifying line coordinates, dash pattern, and appearance.", + "tags": [ + "pdf", + "annotation", + "line", + "dash", + "Aspose.Pdf" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfContentEditor", + "PdfContentEditor.BindPdf", + "PdfContentEditor.CreateLine", + "PdfContentEditor.Save" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:38:22Z", + "status": "verified" + }, + "add-dashed-line-annotation": { + "title": "Add Dashed Line Annotation", + "filename": "add-dashed-line-annotation.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-dashed-rectangle-annotation-with-opacity": { + "title": "Add Dashed Rectangle Annotation with Opacity to PDF Page", + "filename": "add-dashed-rectangle-annotation-with-opacity.cs", + "description": "Demonstrates how to add a rectangle (square) annotation on page 6 of a PDF, apply a dashed border style, and set 50% opacity using the Aspose.Pdf facade API.", + "tags": [ + "annotation", + "rectangle", + "border", + "opacity", + "pdf" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.CreateSquareCircle", + "Aspose.Pdf.Facades.PdfContentEditor.Save", + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.Border", + "Aspose.Pdf.Annotations.Dash", + "Aspose.Pdf.Color" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:38:22Z", + "status": "verified" + }, + "add-document-attachment-preserve-existing": { + "title": "Add Document Attachment Preserve Existing", + "filename": "add-document-attachment-preserve-existing.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-document-attachment-with-description": { + "title": "Add Document Attachment with Description to PDF", + "filename": "add-document-attachment-with-description.cs", + "description": "Shows how to attach an external PDF file to an existing PDF and assign a descriptive label using Aspose.Pdf.Facades.", + "tags": [ + "attachment", + "metadata", + "pdf", + "Aspose.Pdf", + "PdfContentEditor" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment", + "Aspose.Pdf.Facades.PdfContentEditor.Save" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:38:22Z", + "status": "verified" + }, + "add-document-attachment-with-error-handling": { + "title": "Add Document Attachment to PDF with Error Handling", + "filename": "add-document-attachment-with-error-handling.cs", + "description": "Demonstrates how to attach an external file to a PDF using Aspose.Pdf.Facades.PdfContentEditor while checking for missing source or attachment files and handling unexpected errors.", + "tags": [ + "pdf", + "attachment", + "error-handling", + "aspose", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfContentEditor", + "PdfContentEditor.BindPdf", + "PdfContentEditor.AddDocumentAttachment", + "PdfContentEditor.Save" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:38:22Z", + "status": "verified" + }, + "add-embedded-file-attachment-to-pdf": { + "title": "Add Embedded File Attachment to PDF", + "filename": "add-embedded-file-attachment-to-pdf.cs", + "description": "Shows how to embed an external file as a hidden attachment in an existing PDF using Aspose.Pdf's PdfContentEditor facade.", + "tags": [ + "pdf", + "attachment", + "embed", + "Aspose.Pdf", + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Facades.Stamp", - "Aspose.Pdf.Facades.Stamp.BindImage", - "Aspose.Pdf.Facades.Stamp.SetImageSize", - "Aspose.Pdf.Facades.Stamp.SetOrigin", - "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.PdfFileStamp.AddStamp" + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment", + "Aspose.Pdf.Facades.PdfContentEditor.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-confidential-text-stamp": { - "title": "Add Confidential Text Stamp to PDF", - "filename": "add-confidential-text-stamp.cs", - "description": "Demonstrates creating a red \"Confidential\" text stamp with semi‑transparent background and applying it as a background watermark to all pages of a PDF using Aspose.Pdf facades.", + "add-encrypted-attachment-aes256": { + "title": "Add Encrypted Attachment to PDF with AES‑256", + "filename": "add-encrypted-attachment-aes256.cs", + "description": "Demonstrates adding a file attachment with a custom description to a PDF and then encrypting the PDF using AES‑256 via Aspose.Pdf.", "tags": [ - "text-stamp", - "confidential", - "opacity", - "background", - "Aspose.Pdf" + "attachment", + "encryption", + "AES", + "PdfContentEditor", + "PdfFileSecurity" ], "apis_used": [ - "Aspose.Pdf.Facades.FormattedText", - "Aspose.Pdf.Facades.Stamp.BindLogo", - "Aspose.Pdf.Facades.Stamp.IsBackground", - "Aspose.Pdf.Facades.Stamp.Opacity", - "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", - "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", - "Aspose.Pdf.Facades.PdfFileStamp.Save" + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfFileSecurity", + "PdfContentEditor.AddDocumentAttachment", + "PdfFileSecurity.EncryptFile" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "reposition-stamp-left-margin": { - "title": "Reposition Stamp on PDF Page to Left Margin", - "filename": "reposition-stamp-left-margin.cs", - "description": "Shows how to move an existing stamp on page 4 of a PDF so that it aligns with the left margin offset by 10 mm using Aspose.Pdf.Facades.", + "add-encrypted-attachment-with-custom-description": { + "title": "Add Encrypted Attachment With Custom Description", + "filename": "add-encrypted-attachment-with-custom-description.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-external-url-bookmark-to-pdf": { + "title": "Add External URL Bookmark to PDF", + "filename": "add-external-url-bookmark-to-pdf.cs", + "description": "Shows how to use Aspose.Pdf.Facades.PdfContentEditor to create a bookmark that opens an external URL when selected in the PDF navigation pane.", "tags": [ - "stamp", - "move", - "margin", + "bookmark", + "url", "pdf", - "Aspose.Pdf" + "aspose", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.MoveStamp", - "Aspose.Pdf.Facades.PdfContentEditor.Save" + "Aspose.Pdf.Facades.PdfContentEditor.CreateBookmarksAction", + "Aspose.Pdf.Facades.PdfContentEditor.Save", + "Aspose.Pdf.Facades.PdfContentEditor.Close" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "replace-text-in-pdf": { - "title": "Replace Text in PDF Using PdfContentEditor", - "filename": "replace-text-in-pdf.cs", - "description": "Shows how to replace every occurrence of a specific word in a PDF document using Aspose.Pdf's PdfContentEditor facade.", + "add-file-attachment-annotation-opacity": { + "title": "Add File Attachment Annotation Opacity", + "filename": "add-file-attachment-annotation-opacity.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-file-attachment-annotation": { + "title": "Add File Attachment Annotation to PDF", + "filename": "add-file-attachment-annotation.cs", + "description": "Demonstrates how to attach a file to a PDF page as a clickable annotation using Aspose.Pdf.Facades. The annotation appears as an icon that opens the attached document when clicked.", "tags": [ - "text-replace", - "pdf-editing", - "aspose-pdf", - "csharp", + "pdf", + "attachment", + "annotation", + "aspose", + "facades" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfContentEditor", + "PdfContentEditor.BindPdf", + "PdfContentEditor.CreateFileAttachment", + "PdfContentEditor.Save" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:38:22Z", + "status": "verified" + }, + "add-file-attachment-data-relationship": { + "title": "Add File Attachment with Data Relationship to PDF", + "filename": "add-file-attachment-data-relationship.cs", + "description": "Shows how to attach a file to an existing PDF using PdfContentEditor and set the attachment's AFRelationship to Data for improved document organization.", + "tags": [ + "attachment", + "AFRelationship", + "PdfContentEditor", + "Aspose.Pdf", + "facade" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment", + "Aspose.Pdf.Facades.PdfContentEditor.Save", + "Aspose.Pdf.Document.EmbeddedFiles", + "Aspose.Pdf.FileSpecification.AFRelationship" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:38:22Z", + "status": "verified" + }, + "add-file-attachment-to-encrypted-pdf": { + "title": "Add File Attachment to Encrypted PDF", + "filename": "add-file-attachment-to-encrypted-pdf.cs", + "description": "Shows how to open a password‑protected PDF, attach a file to it, and save the modified document.", + "tags": [ + "pdf", + "attachment", + "encryption", + "Aspose.Pdf", "facade" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Document(string, string)", + "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment", + "Aspose.Pdf.Facades.PdfContentEditor.Save" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:38:22Z", + "status": "verified" + }, + "add-file-attachment-to-pdf": { + "title": "Add File Attachment to PDF", + "filename": "add-file-attachment-to-pdf.cs", + "description": "Demonstrates how to attach an external file (Terms.pdf) to an existing PDF document using Aspose.Pdf.Facades.PdfContentEditor and save the result.", + "tags": [ + "attachment", + "pdf", + "aspose", + "facade", + "csharp" + ], + "apis_used": [ "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.ReplaceText", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment", + "Aspose.Pdf.Facades.PdfContentEditor.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "replace-invoicenumber-with-uuid-page-6": { - "title": "Replace InvoiceNumber with UUID on PDF Page 6", - "filename": "replace-invoicenumber-with-uuid-page-6.cs", - "description": "Shows how to generate a UUID and replace the case‑sensitive placeholder text \"InvoiceNumber\" on a specific PDF page using Aspose.Pdf's PdfContentEditor.", + "add-file-attachment-to-pdf__v2": { + "title": "Add File Attachment to PDF using PdfContentEditor", + "filename": "add-file-attachment-to-pdf__v2.cs", + "description": "Shows how to attach a local file to an existing PDF document and save the updated PDF using Aspose.Pdf.Facades.", "tags": [ "pdf", - "text-replacement", - "uuid", + "attachment", "aspose", - "facade" + "facade", + "csharp" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.ReplaceText", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment", + "Aspose.Pdf.Facades.PdfContentEditor.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "set-pdf-viewer-preference-and-default-zoom": { - "title": "Set PDF Viewer Preference and Default Zoom", - "filename": "set-pdf-viewer-preference-and-default-zoom.cs", - "description": "Demonstrates how to change a PDF's viewer preference to a single‑page continuous layout and set the default zoom to 100% using Aspose.Pdf facades.", + "add-file-attachment-with-creation-date": { + "title": "Add File Attachment with Creation Date to PDF", + "filename": "add-file-attachment-with-creation-date.cs", + "description": "Shows how to attach a file to a PDF page, give it a description, and set the attachment's creation date to the current system time using Aspose.Pdf.", "tags": [ - "viewer-preference", - "zoom", + "file-attachment", + "annotation", + "creation-date", + "pdf-editing", + "Aspose.Pdf" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.CreateFileAttachment", + "Aspose.Pdf.Document", + "Aspose.Pdf.Annotations.FileAttachmentAnnotation" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:38:22Z", + "status": "verified" + }, + "add-file-attachment-with-custom-mime": { + "title": "Add File Attachment to PDF with Custom MIME Type Note", + "filename": "add-file-attachment-with-custom-mime.cs", + "description": "Demonstrates how to attach a file to a PDF using Aspose.Pdf by creating a FileSpecification and a FileAttachmentAnnotation. The example also explains that a custom MIME type cannot be set directly via the API.", + "tags": [ + "attachment", + "pdf", + "mime-type", + "annotation", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.Annotations.FileAttachmentAnnotation", + "Aspose.Pdf.Rectangle" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:38:22Z", + "status": "verified" + }, + "add-file-attachment-with-retry": { + "title": "Add File Attachment With Retry", + "filename": "add-file-attachment-with-retry.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-free-text-annotation-helvetica": { + "title": "Add Free‑Text Annotation with Helvetica Font to PDF", + "filename": "add-free-text-annotation-helvetica.cs", + "description": "Demonstrates how to add a free‑text annotation with Helvetica, size 12, blue color to a PDF using the Aspose.Pdf Facade API.", + "tags": [ + "free-text", + "annotation", "pdf", - "Aspose.Pdf", - "facades" + "facade", + "appearance" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.ChangeViewerPreference", - "Aspose.Pdf.Facades.PdfContentEditor.Save", - "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.Zoom", - "Aspose.Pdf.Facades.PdfPageEditor.Save" + "Aspose.Pdf.Annotations.FreeTextAnnotation", + "Aspose.Pdf.DefaultAppearance", + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "get-pdf-viewer-preferences-zoom": { - "title": "Get PDF Viewer Preferences and Zoom Settings", - "filename": "get-pdf-viewer-preferences-zoom.cs", - "description": "Demonstrates how to read a PDF's viewer preference flags (page layout) and the current zoom coefficient using Aspose.Pdf facades.", + "add-free-text-html-annotation": { + "title": "Add Free‑Text Annotation with HTML Rich Text to PDF", + "filename": "add-free-text-html-annotation.cs", + "description": "Shows how to create a free‑text annotation on a PDF page and embed HTML‑formatted rich text using Aspose.Pdf.", "tags": [ - "viewer-preferences", - "page-layout", - "zoom", - "Aspose.Pdf", - "facades" + "free-text", + "annotation", + "rich-text", + "html", + "pdf-editing" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.GetViewerPreference", - "Aspose.Pdf.Facades.ViewerPreference", - "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.Zoom" + "Aspose.Pdf.Facades.PdfContentEditor.CreateFreeText", + "Aspose.Pdf.Annotations.FreeTextAnnotation", + "Aspose.Pdf.Annotations.FreeTextAnnotation.RichText" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-file-attachment-to-pdf": { - "title": "Add File Attachment to PDF", - "filename": "add-file-attachment-to-pdf.cs", - "description": "Demonstrates how to attach an external file (Terms.pdf) to an existing PDF document using Aspose.Pdf.Facades.PdfContentEditor and save the result.", + "add-freetext-annotation-html": { + "title": "Add Freetext Annotation Html", + "filename": "add-freetext-annotation-html.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-green-circle-annotation-to-pdf-page": { + "title": "Add Green Circle Annotation to PDF Page", + "filename": "add-green-circle-annotation-to-pdf-page.cs", + "description": "Shows how to place a circle annotation with a green fill color and a 3 pt border on the second page of a PDF using Aspose.Pdf's PdfContentEditor.", "tags": [ - "attachment", + "annotation", + "circle", "pdf", - "aspose", - "facade", - "csharp" + "Aspose.Pdf", + "PdfContentEditor" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment", - "Aspose.Pdf.Facades.PdfContentEditor.Save" + "PdfContentEditor.BindPdf", + "PdfContentEditor.CreateSquareCircle", + "PdfContentEditor.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "remove-embedded-file-from-pdf": { - "title": "Remove Embedded File from PDF", - "filename": "remove-embedded-file-from-pdf.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, delete a specific embedded attachment, and save the updated document.", + "add-green-circle-annotation-to-pdf-page__v2": { + "title": "Add Green Circle Annotation to PDF Page", + "filename": "add-green-circle-annotation-to-pdf-page__v2.cs", + "description": "Shows how to bind an existing PDF, create a thick green circle annotation around a diagram on page six, and save the modified document using Aspose.Pdf.Facades.", "tags": [ + "annotation", + "circle", "pdf", - "attachment", - "remove", - "aspose-pdf", - "embedded-files" + "Aspose.Pdf", + "PdfContentEditor" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.EmbeddedFilesCollection", - "Aspose.Pdf.EmbeddedFilesCollection.Delete", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.CreateSquareCircle", + "Aspose.Pdf.Facades.PdfContentEditor.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "password-protect-pdf-disable-printing": { - "title": "Password Protect PDF and Disable Printing", - "filename": "password-protect-pdf-disable-printing.cs", - "description": "Shows how to encrypt a PDF with a user and owner password using 256‑bit AES and remove all permissions, which disables printing.", + "add-green-circle-annotation": { + "title": "Add Green Circle Annotation", + "filename": "add-green-circle-annotation.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-help-bookmark-open-url": { + "title": "Add Help Bookmark Open Url", + "filename": "add-help-bookmark-open-url.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-highlight-annotation-to-pdf-page": { + "title": "Add Highlight Annotation to PDF Page", + "filename": "add-highlight-annotation-to-pdf-page.cs", + "description": "Shows how to insert a yellow highlight annotation over a specific text range on page three of a PDF using Aspose.Pdf.", "tags": [ - "pdf encryption", - "password protection", - "disable printing", - "permissions", - "aes256" + "highlight", + "annotation", + "pdf", + "Aspose.Pdf", + "page" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.HighlightAnnotation", + "Aspose.Pdf.Color", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "set-pdf-permissions-allow-copy-restrict-form-edit": { - "title": "Set PDF Permissions to Allow Copying but Restrict Form Editing", - "filename": "set-pdf-permissions-allow-copy-restrict-form-edit.cs", - "description": "Demonstrates how to use Aspose.Pdf.Facades to set PDF security privileges, allowing text copying while disabling form filling and annotation modifications.", + "add-highlight-annotation-to-pdf-page__v2": { + "title": "Add Highlight Annotation to PDF Page", + "filename": "add-highlight-annotation-to-pdf-page__v2.cs", + "description": "Shows how to apply a yellow highlight annotation to a selected text rectangle on page three of a PDF using Aspose.Pdf.Facades.", "tags": [ + "highlight", + "annotation", "pdf", - "permissions", - "aspose", - "csharp", - "security" + "Aspose.Pdf", + "PdfContentEditor" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileSecurity", - "Aspose.Pdf.Facades.PdfFileSecurity.SetPrivilege", - "Aspose.Pdf.Facades.DocumentPrivilege", - "Aspose.Pdf.Facades.DocumentPrivilege.AllowAll", - "Aspose.Pdf.Facades.DocumentPrivilege.AllowCopy", - "Aspose.Pdf.Facades.DocumentPrivilege.AllowFillIn", - "Aspose.Pdf.Facades.DocumentPrivilege.AllowModifyAnnotations" + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.CreateMarkup", + "Aspose.Pdf.Facades.PdfContentEditor.Save", + "Aspose.Pdf.Facades.PdfContentEditor.Close" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-xmp-metadata-author-title": { - "title": "Add XMP Metadata (Author and Title) to PDF", - "filename": "add-xmp-metadata-author-title.cs", - "description": "Shows how to bind a PDF, add XMP metadata fields for author and title, and save the updated document using Aspose.Pdf.Facades.", + "add-hyperlink-annotation-to-pdf-page": { + "title": "Add Hyperlink Annotation to PDF Page", + "filename": "add-hyperlink-annotation-to-pdf-page.cs", + "description": "Shows how to insert a clickable web link annotation on a specific page of an existing PDF using Aspose.Pdf.Facades.", "tags": [ - "xmp", - "metadata", - "author", - "title", - "pdf" + "hyperlink", + "annotation", + "pdf", + "Aspose.Pdf", + "PdfContentEditor" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfXmpMetadata", - "PdfXmpMetadata.BindPdf", - "PdfXmpMetadata.Add", - "PdfXmpMetadata.Save" + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.CreateWebLink", + "Aspose.Pdf.Facades.PdfContentEditor.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "update-pdf-xmp-metadata-custom-project-schema": { - "title": "Update PDF XMP Metadata with Custom Project Schema", - "filename": "update-pdf-xmp-metadata-custom-project-schema.cs", - "description": "Demonstrates how to load a PDF, register a custom XMP namespace, add project-specific fields, and save the updated metadata using Aspose.Pdf.Facades.", + "add-hyperlink-annotation-to-pdf": { + "title": "Add Hyperlink Annotation to Jump Between PDF Pages", + "filename": "add-hyperlink-annotation-to-pdf.cs", + "description": "Shows how to create a local hyperlink annotation that links from one page to another within the same PDF document using Aspose.Pdf.Facades.", "tags": [ - "xmp", - "metadata", - "custom-namespace", + "hyperlink", + "annotation", "pdf", - "aspose-pdf" + "aspose", + "facade" ], "apis_used": [ - "PdfXmpMetadata", - "PdfXmpMetadata.BindPdf", - "PdfXmpMetadata.RegisterNamespaceURI", - "PdfXmpMetadata.Add", - "PdfXmpMetadata.Save" + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.CreateLocalLink", + "Aspose.Pdf.Facades.PdfContentEditor.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "fill-acroform-text-field": { - "title": "Fill AcroForm Text Field with Aspose PDF Form", - "filename": "fill-acroform-text-field.cs", - "description": "Shows how to load a PDF containing an AcroForm, fill the \"CustomerName\" text field with a value, and save the updated document using Aspose.Pdf.Facades.", - "tags": [ - "acroform", - "fill-field", - "pdf", - "aspose-pdf", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.FillField", - "Aspose.Pdf.Facades.Form.Save" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:38:22Z", + "add-image-attachment-and-stamp": { + "title": "Add Image Attachment And Stamp", + "filename": "add-image-attachment-and-stamp.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "set-checkbox-field-in-pdf-form": { - "title": "Set Checkbox Field in PDF Form", - "filename": "set-checkbox-field-in-pdf-form.cs", - "description": "Shows how to programmatically check a checkbox field in a PDF form using Aspose.Pdf.Facades.", + "add-image-stamp-from-stream": { + "title": "Add Image Stamp from Stream to PDF", + "filename": "add-image-stamp-from-stream.cs", + "description": "Demonstrates how to create an image stamp directly from a stream and apply it to a PDF using Aspose.Pdf facades without writing the image to disk.", "tags": [ - "checkbox", + "image-stamp", "pdf", - "form", - "aspose", - "csharp" + "stream", + "Aspose.Pdf", + "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.FillField", - "Aspose.Pdf.Facades.Form.Save" + "Aspose.Pdf.Facades.Stamp", + "Aspose.Pdf.Facades.Stamp.BindImage", + "Aspose.Pdf.Facades.Stamp.SetOrigin", + "Aspose.Pdf.Facades.Stamp.SetImageSize", + "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", + "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", + "Aspose.Pdf.Facades.PdfFileStamp.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "set-radio-button-value-in-pdf-acroform": { - "title": "Set Radio Button Value in PDF AcroForm", - "filename": "set-radio-button-value-in-pdf-acroform.cs", - "description": "Demonstrates loading a PDF with an AcroForm, selecting the \"Express\" option of the \"ShippingMethod\" radio button group, and saving the updated document using Aspose.Pdf.Facades.", + "add-image-stamp-to-bottom-right-page-3": { + "title": "Add Image Stamp to Bottom‑Right of Page 3", + "filename": "add-image-stamp-to-bottom-right-page-3.cs", + "description": "Demonstrates how to place an image stamp (logo.png) at the bottom‑right corner of the third page of a PDF using Aspose.Pdf.Facades.", "tags": [ + "image-stamp", "pdf", - "acroform", - "radio-button", - "fill-form", - "aspose-pdf" + "Aspose.Pdf", + "page-3", + "bottom-right" ], "apis_used": [ - "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.FillField", - "Aspose.Pdf.Facades.Form.Save" + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Facades.Stamp", + "Aspose.Pdf.Facades.Stamp.BindImage", + "Aspose.Pdf.Facades.Stamp.SetImageSize", + "Aspose.Pdf.Facades.Stamp.SetOrigin", + "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.Facades.PdfFileStamp.AddStamp" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "convert-pdf-page-to-high-res-png": { - "title": "Convert PDF Page to High-Resolution PNG (300 DPI)", - "filename": "convert-pdf-page-to-high-res-png.cs", - "description": "Shows how to extract page 7 from a PDF and save it as a 300 DPI PNG image using Aspose.Pdf's PdfConverter facade.", + "add-image-stamp-to-page-three-50mm": { + "title": "Add Image Stamp to Page 3 at 50 mm", + "filename": "add-image-stamp-to-page-three-50mm.cs", + "description": "The example decodes a Base64‑encoded image, creates an ImageStamp, positions it 50 mm from the left and bottom edges on the third page of a PDF, and saves the modified document.", "tags": [ + "image-stamp", "pdf", - "png", - "conversion", - "resolution", - "facade" + "aspose-pdf", + "base64", + "positioning" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfConverter", - "Aspose.Pdf.Facades.PdfConverter.BindPdf", - "Aspose.Pdf.Facades.PdfConverter.DoConvert", - "Aspose.Pdf.Facades.PdfConverter.GetNextImage", - "Aspose.Pdf.Devices.Resolution" + "Aspose.Pdf.ImageStamp", + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "convert-pdf-to-multi-page-tiff-lzw": { - "title": "Convert PDF to Multi‑Page TIFF with LZW Compression", - "filename": "convert-pdf-to-multi-page-tiff-lzw.cs", - "description": "Demonstrates how to use Aspose.Pdf.Facades to convert a PDF document into a multi‑page TIFF file while applying LZW compression.", + "add-image-stamp-to-page-three": { + "title": "Add Image Stamp To Page Three", + "filename": "add-image-stamp-to-page-three.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-image-stamp-to-pdf-page": { + "title": "Add Image Stamp to Specific PDF Page", + "filename": "add-image-stamp-to-pdf-page.cs", + "description": "Downloads an image from a URL and stamps it onto page 2 of a PDF using Aspose.Pdf.Facades.", "tags": [ + "image-stamp", "pdf", - "tiff", - "conversion", - "lzw", + "Aspose.Pdf", + "page-2", "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfConverter", - "Aspose.Pdf.Facades.PdfConverter.BindPdf", - "Aspose.Pdf.Facades.PdfConverter.DoConvert", - "Aspose.Pdf.Facades.PdfConverter.SaveAsTIFF", - "Aspose.Pdf.Devices.CompressionType" + "PdfFileStamp", + "PdfFileStamp.BindPdf", + "Stamp", + "Stamp.BindImage", + "Stamp.SetOrigin", + "Stamp.SetImageSize", + "PdfFileStamp.AddStamp", + "PdfFileStamp.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "convert-jpeg-to-pdf": { - "title": "Convert JPEG Image to Single‑Page PDF", - "filename": "convert-jpeg-to-pdf.cs", - "description": "Demonstrates how to load a JPEG file and embed it in a new PDF document as a single page, using the default page margins.", + "add-image-stamp-to-pdf-page__v2": { + "title": "Add Image Stamp To Pdf Page__V2", + "filename": "add-image-stamp-to-pdf-page__v2.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-image-stamp-to-specific-page": { + "title": "Add Image Stamp to Specific PDF Page", + "filename": "add-image-stamp-to-specific-page.cs", + "description": "Shows how to create an image stamp with PdfFileStamp and Stamp, configure its position, size, opacity, and place it on the second page of a PDF.", "tags": [ - "jpeg", + "image-stamp", "pdf", - "image-to-pdf", - "aspose.pdf", - "single-page" + "aspose", + "facade", + "page-number" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Image", - "Aspose.Pdf.Page.Paragraphs.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.Facades.Stamp", + "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", + "Aspose.Pdf.Facades.PdfFileStamp.Close", + "Aspose.Pdf.Facades.Stamp.BindImage", + "Aspose.Pdf.Facades.Stamp.SetOrigin", + "Aspose.Pdf.Facades.Stamp.SetImageSize" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "print-pdf-multiple-copies-landscape": { - "title": "Print PDF to Default Printer with Multiple Copies and Landscape Orientation", - "filename": "print-pdf-multiple-copies-landscape.cs", - "description": "Demonstrates how to load a PDF with Aspose.Pdf, configure printer and page settings, and print the document to the default printer with two copies in landscape mode.", + "add-image-to-pdf-using-pdffilemend": { + "title": "Insert Image into PDF with PdfFileMend", + "filename": "add-image-to-pdf-using-pdffilemend.cs", + "description": "The example loads an existing PDF, inserts a PNG image onto the first page at specified coordinates using the PdfFileMend facade, and saves the edited document.", "tags": [ "pdf", - "printing", - "landscape", - "copies", - "aspose" + "image", + "aspose", + "edit", + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfViewer", - "Aspose.Pdf.Facades.PdfViewer.PrintDocumentWithSettings", - "Aspose.Pdf.Printing.PrinterSettings", - "Aspose.Pdf.Printing.PageSettings" + "Aspose.Pdf.Facades.PdfFileMend", + "Aspose.Pdf.Facades.PdfFileMend.BindPdf", + "Aspose.Pdf.Facades.PdfFileMend.AddImage", + "Aspose.Pdf.Facades.PdfFileMend.Save", + "Aspose.Pdf.Facades.PdfFileMend.Close" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "batch-add-red-rectangle-annotation": { - "title": "Batch Add Red Rectangle Annotation to PDFs", - "filename": "batch-add-red-rectangle-annotation.cs", - "description": "Shows how to iterate over all PDF files in a folder, add a red square (rectangle) annotation to the first page of each document, and save the results to an output directory.", + "add-image-watermark-to-pdfs": { + "title": "Add Image Watermark To Pdfs", + "filename": "add-image-watermark-to-pdfs.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-javascript-alert-annotation-to-pdf": { + "title": "Add JavaScript Alert Annotation to PDF", + "filename": "add-javascript-alert-annotation-to-pdf.cs", + "description": "Shows how to bind an existing PDF, create a JavaScript link annotation that triggers an alert, and save the updated document using Aspose.Pdf.", "tags": [ - "pdf", + "javascript", "annotation", - "batch", - "rectangle", - "Aspose.Pdf" + "pdf", + "aspose", + "link" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.SquareAnnotation", - "Aspose.Pdf.Color", - "Aspose.Pdf.Page.Annotations.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfContentEditor", + "PdfContentEditor.BindPdf", + "PdfContentEditor.CreateJavaScriptLink", + "PdfContentEditor.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "batch-replace-confidential-with-public": { - "title": "Batch Replace 'Confidential' with 'Public' in PDF Files", - "filename": "batch-replace-confidential-with-public.cs", - "description": "Shows how to iterate over a directory of PDF documents and use Aspose.Pdf's PdfContentEditor to replace every occurrence of the word \"Confidential\" with \"Public\" on all pages, then save the updated files.", + "add-javascript-calculate-action-to-pdf-form": { + "title": "Add JavaScript Calculate Action to PDF Form Field", + "filename": "add-javascript-calculate-action-to-pdf-form.cs", + "description": "Shows how to embed a JavaScript calculate action in a PDF form so the Total field is computed when the Quantity field changes, using Aspose.Pdf.Facades.", "tags": [ + "javascript", "pdf", - "text-replacement", - "batch-processing", - "aspose-pdf", - "facade" + "form", + "calculate", + "aspose" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.ReplaceText", - "Aspose.Pdf.Document.Save" + "PdfContentEditor", + "PdfContentEditor.BindPdf", + "PdfContentEditor.AddDocumentAdditionalAction", + "PdfContentEditor.Save", + "PdfContentEditor.DocumentOpen" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "batch-extract-images-from-pdfs": { - "title": "Batch Extract Images from PDFs to Subfolders", - "filename": "batch-extract-images-from-pdfs.cs", - "description": "Shows how to process a directory of PDF files, extract all images using Aspose.Pdf.Facades.PdfExtractor, and save each set of images into its own subfolder.", + "add-javascript-calculation-button-to-pdf-form": { + "title": "Add JavaScript Calculation Button to PDF Form", + "filename": "add-javascript-calculation-button-to-pdf-form.cs", + "description": "Demonstrates using Aspose.Pdf.Facades.FormEditor to add a push button to an existing PDF form and attach JavaScript that multiplies Price and Quantity fields and writes the result to the Total field.", "tags": [ "pdf", - "image-extraction", - "batch-processing", - "aspose-pdf", - "facade" + "form", + "javascript", + "button", + "calculation" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfExtractor", - "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", - "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", - "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" + "Aspose.Pdf.Facades.FormEditor", + "Aspose.Pdf.Facades.FormEditor.BindPdf", + "Aspose.Pdf.Facades.FormEditor.AddField", + "Aspose.Pdf.Facades.FormEditor.AddFieldScript", + "Aspose.Pdf.Facades.FormEditor.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "batch-apply-js-alert-to-rectangle-annotations": { - "title": "Batch Apply JavaScript Alert to Rectangle Annotations", - "filename": "batch-apply-js-alert-to-rectangle-annotations.cs", - "description": "Shows how to process multiple PDF files, locate square (rectangle) annotations on each page, and attach a JavaScript alert action to them using Aspose.Pdf.", + "add-javascript-calculation-to-pdf-form": { + "title": "Add Javascript Calculation To Pdf Form", + "filename": "add-javascript-calculation-to-pdf-form.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-javascript-click-action-to-pdf-rectangle": { + "title": "Add JavaScript Click Action to PDF Rectangle", + "filename": "add-javascript-click-action-to-pdf-rectangle.cs", + "description": "Demonstrates how to attach a JavaScript action to a rectangular annotation in a PDF using Aspose.Pdf.Facades, causing an alert to appear when the area is clicked.", "tags": [ "javascript", "annotation", - "batch", "pdf", - "aspose" + "click-action", + "aspose.pdf" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", "Aspose.Pdf.Facades.PdfContentEditor.CreateJavaScriptLink", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.SquareAnnotation" + "Aspose.Pdf.Facades.PdfContentEditor.Save", + "Aspose.Pdf.Facades.PdfContentEditor.Close" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "batch-set-pdf-viewer-preference-fullscreen": { - "title": "Batch Set PDF Viewer Preference to Full‑Screen Mode", - "filename": "batch-set-pdf-viewer-preference-fullscreen.cs", - "description": "Shows how to loop through all PDF files in a directory and use Aspose.Pdf.Facades to set each document's viewer preference to full‑screen mode, saving the modified files to an output folder.", - "tags": [ - "pdf", - "viewer-preference", - "fullscreen", - "batch-processing", - "aspose-pdf" - ], - "apis_used": [ - "PdfContentEditor", - "PdfContentEditor.BindPdf", - "PdfContentEditor.ChangeViewerPreference", - "PdfContentEditor.Save", - "ViewerPreference.PageModeFullScreen" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:38:22Z", + "add-javascript-click-action-to-rectangle": { + "title": "Add Javascript Click Action To Rectangle", + "filename": "add-javascript-click-action-to-rectangle.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "batch-add-password-protection-to-pdfs": { - "title": "Batch Add Password Protection to PDFs", - "filename": "batch-add-password-protection-to-pdfs.cs", - "description": "Demonstrates how to encrypt all PDF files in a folder with the same user password using Aspose.Pdf, creating protected copies with 256‑bit AES encryption.", + "add-javascript-to-pdf-form-button": { + "title": "Add Javascript To Pdf Form Button", + "filename": "add-javascript-to-pdf-form-button.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-javascript-validation-button-to-pdf-form": { + "title": "Add JavaScript Validation Button to PDF Form", + "filename": "add-javascript-validation-button-to-pdf-form.cs", + "description": "Shows how to insert a push‑button into a PDF form using Aspose.Pdf and attach JavaScript that checks required fields, displaying alerts when fields are missing.", "tags": [ "pdf", - "encryption", - "batch", - "password-protection", + "form", + "javascript", + "validation", "aspose" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileSecurity", - "Aspose.Pdf.Facades.PdfFileSecurity.EncryptFile", - "Aspose.Pdf.DocumentPrivilege", - "Aspose.Pdf.KeySize" + "Aspose.Pdf.Facades.FormEditor", + "Aspose.Pdf.Facades.FormEditor.AddField", + "Aspose.Pdf.Facades.FormEditor.SetFieldScript", + "Aspose.Pdf.Facades.FormEditor.Save", + "Aspose.Pdf.Facades.FieldType" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "convert-pdf-pages-to-transparent-png": { - "title": "Convert PDF Pages to Transparent PNG Images at 150 DPI", - "filename": "convert-pdf-pages-to-transparent-png.cs", - "description": "Demonstrates loading a PDF, configuring a 150 DPI resolution with transparent background, and batch converting each page to a PNG file using Aspose.Pdf.", + "add-javascript-validation-to-pdf-form": { + "title": "Add Javascript Validation To Pdf Form", + "filename": "add-javascript-validation-to-pdf-form.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-large-attachment-to-pdf-buffered": { + "title": "Add Large Attachment To Pdf Buffered", + "filename": "add-large-attachment-to-pdf-buffered.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-large-attachment-to-pdf": { + "title": "Add Large Attachment to PDF and Monitor Memory Usage", + "filename": "add-large-attachment-to-pdf.cs", + "description": "Demonstrates adding a >10 MB attachment to a PDF using PdfContentEditor with a stream to avoid loading the whole file into memory, then checks memory consumption after the operation.", "tags": [ + "attachment", + "large-file", + "memory-usage", "pdf", - "png", - "conversion", - "transparent", - "resolution" + "stream" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Devices.Resolution", - "Aspose.Pdf.Devices.PngDevice", - "Aspose.Pdf.Page", - "Aspose.Pdf.Devices.PngDevice.Process" + "Aspose.Pdf.Document.FileSizeLimitToMemoryLoading", + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment", + "Aspose.Pdf.Facades.PdfContentEditor.Save", + "Aspose.Pdf.Document.FreeMemory" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "batch-reposition-stamps-top-center": { - "title": "Batch Reposition Stamps to Top‑Center in PDFs", - "filename": "batch-reposition-stamps-top-center.cs", - "description": "Shows how to process multiple PDF files, retrieve existing stamps on each page, and move them to a top‑center position using Aspose.Pdf.Facades.PdfContentEditor.", + "add-large-stream-attachment-to-pdf": { + "title": "Add Large Stream Attachment to PDF with Buffered Memory Usage", + "filename": "add-large-stream-attachment-to-pdf.cs", + "description": "Demonstrates how to attach a large file to an existing PDF using Aspose.Pdf.Facades while buffering the data in chunks to keep memory consumption low.", "tags": [ - "stamps", - "batch", "pdf", - "reposition", - "top-center" + "attachment", + "bufferedstream", + "memory-optimization", + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.GetStamps", - "Aspose.Pdf.Facades.PdfContentEditor.MoveStamp", - "Aspose.Pdf.Facades.PdfContentEditor.Save" + "PdfContentEditor", + "PdfContentEditor.BindPdf", + "PdfContentEditor.AddDocumentAttachment", + "PdfContentEditor.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-hyperlink-annotation-to-pdf-page": { - "title": "Add Hyperlink Annotation to PDF Page", - "filename": "add-hyperlink-annotation-to-pdf-page.cs", - "description": "Shows how to insert a clickable web link annotation on a specific page of an existing PDF using Aspose.Pdf.Facades.", + "add-light-gray-background-to-text-annotation": { + "title": "Add Light Gray Background To Text Annotation", + "filename": "add-light-gray-background-to-text-annotation.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-line-annotation-with-arrowheads": { + "title": "Add Line Annotation with Arrowheads to PDF", + "filename": "add-line-annotation-with-arrowheads.cs", + "description": "Demonstrates using Aspose.Pdf.Facades.PdfContentEditor to create a line annotation with arrowheads at both ends on a PDF page.", "tags": [ - "hyperlink", - "annotation", "pdf", - "Aspose.Pdf", - "PdfContentEditor" + "annotation", + "line", + "arrowhead", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.CreateWebLink", - "Aspose.Pdf.Facades.PdfContentEditor.Save" + "Aspose.Pdf.Facades.PdfContentEditor.CreateLine", + "Aspose.Pdf.Facades.PdfContentEditor.Save", + "Aspose.Pdf.Document" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-javascript-calculate-action-to-pdf-form": { - "title": "Add JavaScript Calculate Action to PDF Form Field", - "filename": "add-javascript-calculate-action-to-pdf-form.cs", - "description": "Shows how to embed a JavaScript calculate action in a PDF form so the Total field is computed when the Quantity field changes, using Aspose.Pdf.Facades.", + "add-memory-stream-attachment-to-pdf": { + "title": "Add Memory Stream Attachment To Pdf", + "filename": "add-memory-stream-attachment-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-multiline-right-aligned-text-stamp-page-4": { + "title": "Add Multiline Right-Aligned Text Stamp to Page 4", + "filename": "add-multiline-right-aligned-text-stamp-page-4.cs", + "description": "Demonstrates how to create a multiline text stamp, align it to the right and bottom, and apply it only to the fourth page of a PDF using Aspose.Pdf.", "tags": [ - "javascript", - "pdf", - "form", - "calculate", - "aspose" + "text-stamp", + "multiline", + "right-align", + "page-4", + "Aspose.Pdf" ], "apis_used": [ - "PdfContentEditor", - "PdfContentEditor.BindPdf", - "PdfContentEditor.AddDocumentAdditionalAction", - "PdfContentEditor.Save", - "PdfContentEditor.DocumentOpen" + "Aspose.Pdf.Document", + "Aspose.Pdf.Text.TextStamp", + "Aspose.Pdf.Text.HorizontalAlignment", + "Aspose.Pdf.Text.VerticalAlignment", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "extract-page5-images-grayscale": { - "title": "Extract Images from Page 5 and Convert to Grayscale JPEG", - "filename": "extract-page5-images-grayscale.cs", - "description": "Demonstrates how to extract all images from the fifth page of a PDF using Aspose.Pdf.Facades, save them as JPEG files, and convert each to grayscale.", + "add-multiline-text-stamp": { + "title": "Add Multiline Text Stamp", + "filename": "add-multiline-text-stamp.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-network-attachment-to-pdf-with-retry": { + "title": "Add Network Attachment to PDF with Retry Logic", + "filename": "add-network-attachment-to-pdf-with-retry.cs", + "description": "Demonstrates downloading a file from a network URL with retry-on-timeout logic and attaching it to a PDF using Aspose.Pdf's PdfContentEditor.", "tags": [ "pdf", - "image-extraction", - "grayscale", - "aspose-pdf", - "csharp" + "attachment", + "retry", + "httpclient", + "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfExtractor", - "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", - "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", - "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" + "PdfContentEditor", + "PdfContentEditor.BindPdf", + "PdfContentEditor.CreateFileAttachment", + "PdfContentEditor.Save", + "PdfContentEditor.Dispose" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "center-image-stamp-on-page-8": { - "title": "Center Image Stamp on Page 8 of a PDF", - "filename": "center-image-stamp-on-page-8.cs", - "description": "Demonstrates how to place an image stamp centered horizontally and vertically on the eighth page of a PDF using Aspose.Pdf.Facades.", + "add-page-open-javascript-log-page-number": { + "title": "Add Page‑Open JavaScript to Log Page Number", + "filename": "add-page-open-javascript-log-page-number.cs", + "description": "Demonstrates how to attach a JavaScript action to each PDF page that logs the current page number to the console when the page is opened, using Aspose.Pdf.", "tags": [ - "stamp", - "center", - "page8", + "javascript", "pdf", - "facade" + "page-open", + "aspose-pdf", + "logging" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.Stamp", - "Aspose.Pdf.Facades.Stamp.SetImageSize", - "Aspose.Pdf.Facades.Stamp.SetOrigin", - "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", - "Aspose.Pdf.Facades.PdfFileStamp.Save" + "Aspose.Pdf.JavascriptAction", + "Aspose.Pdf.Page.Actions", + "Aspose.Pdf.Page.Actions.OnOpen" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "replace-text-in-pdf-annotations": { - "title": "Replace Text in PDF Annotations on Specified Pages", - "filename": "replace-text-in-pdf-annotations.cs", - "description": "Demonstrates how to locate annotations within a page range of a PDF and replace a specific substring in their contents using Aspose.Pdf's annotation editor.", + "add-pdf-attachment-with-description": { + "title": "Add Pdf Attachment With Description", + "filename": "add-pdf-attachment-with-description.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-popup-annotation-to-pdf": { + "title": "Add Popup Annotation to PDF", + "filename": "add-popup-annotation-to-pdf.cs", + "description": "Shows how to create a popup annotation that displays a note when the user hovers over it using Aspose.Pdf's PdfContentEditor.", "tags": [ - "annotations", - "text-replace", + "popup", + "annotation", + "hover", "pdf", - "page-range", "Aspose" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ExtractAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ModifyAnnotations", - "Aspose.Pdf.Annotation" + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.CreatePopup", + "Aspose.Pdf.Facades.PdfContentEditor.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "hide-toolbar-and-menubar-viewer-preference": { - "title": "Hide Toolbar and Menu Bar in PDF Viewer Preferences", - "filename": "hide-toolbar-and-menubar-viewer-preference.cs", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfContentEditor to set viewer preferences that hide the toolbar and menu bar when a PDF is opened.", + "add-popup-annotation-with-bullet-list": { + "title": "Add Popup Annotation with Bullet List to PDF", + "filename": "add-popup-annotation-with-bullet-list.cs", + "description": "Demonstrates how to add a collapsed popup annotation containing multi‑line bullet‑point text to a PDF page using Aspose.Pdf's PdfContentEditor.", "tags": [ - "viewer-preference", - "toolbar", - "menubar", + "popup", + "annotation", + "bullet-points", "pdf", "Aspose.Pdf" ], "apis_used": [ - "PdfContentEditor", - "PdfContentEditor.BindPdf", - "PdfContentEditor.ChangeViewerPreference", - "PdfContentEditor.Save", - "ViewerPreference" + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.CreatePopup", + "Aspose.Pdf.Facades.PdfContentEditor.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-an-attachment-with-custom-mime-type-application-pdf-and-description-invoice-document": { - "title": "Add An Attachment With Custom Mime Type Application Pdf And Description Invoice Document", - "filename": "add-an-attachment-with-custom-mime-type-application-pdf-and-description-invoice-document.cs", + "add-popup-annotation-with-bullet-points": { + "title": "Add Popup Annotation With Bullet Points", + "filename": "add-popup-annotation-with-bullet-points.cs", "description": "", "tags": [], "apis_used": [], "difficulty": "", - "generated_at": "2026-08-20T07:38:22Z", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "delete-pdf-attachments-matching-old-pdf": { - "title": "Delete PDF Attachments Matching '_old.pdf' Pattern", - "filename": "delete-pdf-attachments-matching-old-pdf.cs", - "description": "Demonstrates loading a PDF with Aspose.Pdf, enumerating embedded files, selecting those whose names end with \"_old.pdf\", and removing them before saving the document.", + "add-rectangle-annotation-dash-opacity": { + "title": "Add Rectangle Annotation Dash Opacity", + "filename": "add-rectangle-annotation-dash-opacity.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-rectangle-annotation-light-gray": { + "title": "Add Rectangle Annotation with Light Gray Fill", + "filename": "add-rectangle-annotation-light-gray.cs", + "description": "Shows how to insert a rectangle (square) annotation with a light gray interior color and a 1 pt border onto a PDF page using Aspose.Pdf.", "tags": [ - "attachments", - "delete", - "embedded-files", - "pdf", - "aspose-pdf" + "annotation", + "rectangle", + "fill-color", + "border", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.EmbeddedFileCollection", - "Aspose.Pdf.EmbeddedFileCollection.Delete", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Annotations.SquareAnnotation", + "Aspose.Pdf.Annotations.Border", + "Aspose.Pdf.Color", + "Aspose.Pdf.Rectangle" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "encrypt-pdf-128-aes-restrict-permissions": { - "title": "Encrypt PDF with 128‑bit AES and Restrict Permissions", - "filename": "encrypt-pdf-128-aes-restrict-permissions.cs", - "description": "Demonstrates how to encrypt a PDF using 128‑bit AES encryption and apply a privilege set that disables printing, editing, and other actions.", + "add-rectangle-annotation-with-dash-opacity": { + "title": "Add Rectangle Annotation with Custom Dash and Opacity", + "filename": "add-rectangle-annotation-with-dash-opacity.cs", + "description": "Demonstrates how to add a rectangle (square) annotation to the first page of a PDF, apply a custom dash pattern to its border and set 75% opacity using the PdfContentEditor facade.", "tags": [ - "pdf", - "encryption", - "aes", - "permissions", - "aspose-pdf" + "annotation", + "rectangle", + "dash-pattern", + "opacity", + "pdf-editing" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileSecurity", - "Aspose.Pdf.Facades.DocumentPrivilege", - "Aspose.Pdf.Facades.KeySize", - "Aspose.Pdf.Facades.Algorithm", - "Aspose.Pdf.Facades.PdfFileSecurity.EncryptFile" + "PdfContentEditor", + "PdfContentEditor.BindPdf", + "PdfContentEditor.CreateSquareCircle", + "PdfContentEditor.Save", + "SquareAnnotation", + "Border", + "Dash" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-custom-xmp-metadata-projectid": { - "title": "Add Custom XMP Metadata and Document Property to PDF", - "filename": "add-custom-xmp-metadata-projectid.cs", - "description": "Demonstrates how to add a custom XMP metadata field (ProjectID) to a PDF and synchronize it with the document's Info dictionary using Aspose.Pdf.Facades.", + "add-red-bold-text-stamp-to-page-five": { + "title": "Add Red Bold Text Stamp To Page Five", + "filename": "add-red-bold-text-stamp-to-page-five.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-red-highlight-annotation-to-pdf": { + "title": "Add Red Highlight Annotation to PDF", + "filename": "add-red-highlight-annotation-to-pdf.cs", + "description": "Shows how to use Aspose.Pdf.Facades.PdfContentEditor to create a highlight markup annotation with a bright red border on a specific page of a PDF document.", "tags": [ - "xmp", - "metadata", + "highlight", + "annotation", + "color", "pdf", - "custom-property", - "aspose" + "Aspose" ], "apis_used": [ - "PdfXmpMetadata", - "PdfXmpMetadata.BindPdf", - "PdfXmpMetadata.Add", - "PdfXmpMetadata.Save", - "PdfFileInfo", - "PdfFileInfo.BindPdf", - "PdfFileInfo.SetMetaInfo", - "PdfFileInfo.SaveNewInfoWithXmp" + "Aspose.Pdf.Facades.PdfContentEditor", + "PdfContentEditor.BindPdf", + "PdfContentEditor.CreateMarkup", + "PdfContentEditor.Save", + "PdfContentEditor.Close" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-image-stamp-to-page-three-50mm": { - "title": "Add Image Stamp to Page 3 at 50 mm", - "filename": "add-image-stamp-to-page-three-50mm.cs", - "description": "The example decodes a Base64‑encoded image, creates an ImageStamp, positions it 50 mm from the left and bottom edges on the third page of a PDF, and saves the modified document.", + "add-red-rectangle-annotation-to-pdf-page": { + "title": "Add Red Rectangle Annotation To Pdf Page", + "filename": "add-red-rectangle-annotation-to-pdf-page.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-red-rectangle-annotation": { + "title": "Add Red Rectangle Annotation to PDF Page", + "filename": "add-red-rectangle-annotation.cs", + "description": "Shows how to place a red rectangle annotation with a 2 mm (≈6 points) border on a specific PDF page using Aspose.Pdf's PdfContentEditor.", "tags": [ - "image-stamp", + "annotation", + "rectangle", + "border", "pdf", - "aspose-pdf", - "base64", - "positioning" + "Aspose" ], "apis_used": [ - "Aspose.Pdf.ImageStamp", "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.CreateSquareCircle", + "Aspose.Pdf.Facades.PdfContentEditor.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "create-multiline-text-stamp": { - "title": "Create Multiline Text Stamp on PDF", - "filename": "create-multiline-text-stamp.cs", - "description": "Shows how to add a multiline text stamp with Arial 14 pt blue font to a PDF using Aspose.Pdf Facade classes.", + "add-right-aligned-multiline-text-stamp-page-4": { + "title": "Add Right Aligned Multiline Text Stamp Page 4", + "filename": "add-right-aligned-multiline-text-stamp-page-4.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-rotated-image-stamp-to-pdf": { + "title": "Add Rotated Image Stamp to PDF", + "filename": "add-rotated-image-stamp-to-pdf.cs", + "description": "Demonstrates how to place an image stamp on a PDF page with 45‑degree rotation, 80% opacity, and a specific position using Aspose.Pdf.Facades.", "tags": [ - "text-stamp", - "multiline", - "font", - "color", + "image-stamp", + "rotation", + "opacity", + "pdf", "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileStamp", "Aspose.Pdf.Facades.Stamp", - "Aspose.Pdf.Text.FormattedText", - "Stamp.BindLogo", - "PdfFileStamp.BindPdf", - "PdfFileStamp.AddStamp", - "PdfFileStamp.Save" + "Aspose.Pdf.Facades.Stamp.BindImage", + "Aspose.Pdf.Facades.Stamp.Rotation", + "Aspose.Pdf.Facades.Stamp.Opacity", + "Aspose.Pdf.Facades.Stamp.SetOrigin", + "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", + "Aspose.Pdf.Facades.PdfFileStamp.Close" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:38:22Z", + "status": "verified" + }, + "add-rotated-image-stamp-with-opacity": { + "title": "Add Rotated Image Stamp With Opacity", + "filename": "add-rotated-image-stamp-with-opacity.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-rtl-text-annotation-to-pdf": { + "title": "Add Right-to-Left Text Annotation to PDF", + "filename": "add-rtl-text-annotation-to-pdf.cs", + "description": "Shows how to use Aspose.Pdf.Facades.PdfContentEditor to create a text annotation with Arabic (RTL) content, place it on a page, and save the modified PDF.", + "tags": [ + "annotation", + "rtl", + "unicode", + "pdf", + "Aspose.Pdf" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.CreateText", + "Aspose.Pdf.Facades.PdfContentEditor.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "fill-pdf-form-fields-from-json": { - "title": "Fill PDF Form Fields from JSON", - "filename": "fill-pdf-form-fields-from-json.cs", - "description": "Shows how to populate AcroForm fields in a PDF document using a JSON file with Aspose.Pdf.Facades.Form.", + "add-scaled-image-stamp-from-memory-stream": { + "title": "Add Scaled Image Stamp from Memory Stream to PDF", + "filename": "add-scaled-image-stamp-from-memory-stream.cs", + "description": "Demonstrates loading an image into a MemoryStream, creating an ImageStamp, scaling it to 50%, positioning it, and adding it to a PDF page using Aspose.Pdf.", "tags": [ + "image-stamp", + "memory-stream", + "scaling", "pdf", - "form", - "json", - "fill", - "aspose" + "Aspose.Pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.ImportJson", - "Aspose.Pdf.Facades.Form.Save", - "Aspose.Pdf.Facades.Form.Dispose" + "Aspose.Pdf.Document", + "Aspose.Pdf.ImageStamp", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.ImageStamp.Zoom", + "Aspose.Pdf.ImageStamp.XIndent", + "Aspose.Pdf.ImageStamp.YIndent", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "convert-pdf-pages-to-png-transparent": { - "title": "Convert PDF Pages 2‑4 to PNG with 200 DPI and Transparent Background", - "filename": "convert-pdf-pages-to-png-transparent.cs", - "description": "Demonstrates loading a PDF, rendering pages 2 to 4 as PNG images at 200 DPI with a transparent background, and saving them to a folder.", + "add-semi-transparent-file-attachment-annotation": { + "title": "Add Semi-Transparent File Attachment Annotation to PDF Page", + "filename": "add-semi-transparent-file-attachment-annotation.cs", + "description": "Demonstrates how to load a PDF, create a file attachment annotation with 60% opacity, and add it to page three using Aspose.Pdf.", "tags": [ "pdf", - "png", - "conversion", - "transparent", - "resolution" + "annotation", + "opacity", + "file-attachment", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Devices.Resolution", - "Aspose.Pdf.Devices.PngDevice", - "Aspose.Pdf.Devices.PngDevice.Process", - "Aspose.Pdf.PageCollection" + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.Annotations.FileAttachmentAnnotation", + "Aspose.Pdf.Annotations.AnnotationCollection.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "silently-print-pdf-to-network-printer": { - "title": "Silently Print PDF to Network Printer", - "filename": "silently-print-pdf-to-network-printer.cs", - "description": "Shows how to load a PDF with Aspose.Pdf.Facades.PdfViewer and send it to a network printer identified by IP address without displaying any print dialogs.", + "add-semi-transparent-stamp-annotation": { + "title": "Add Semi Transparent Stamp Annotation", + "filename": "add-semi-transparent-stamp-annotation.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-semi-transparent-text-stamp": { + "title": "Add Semi-Transparent Text Stamp to PDF", + "filename": "add-semi-transparent-text-stamp.cs", + "description": "Demonstrates how to create a text stamp with 50% opacity and apply it as a watermark to a PDF using Aspose.Pdf.Facades.", "tags": [ + "stamp", + "opacity", + "watermark", "pdf", - "silent-print", - "network-printer", - "aspose-pdf", - "csharp" + "facade" ], "apis_used": [ - "PdfViewer", - "PdfViewer.BindPdf", - "PdfViewer.AutoResize", - "PdfViewer.AutoRotate", - "PdfViewer.PrintPageDialog", - "PdfViewer.PrintDocumentWithSettings", - "PrinterSettings" + "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.Facades.Stamp", + "Aspose.Pdf.Facades.FormattedText", + "PdfFileStamp.BindPdf", + "PdfFileStamp.AddStamp", + "Stamp.BindLogo", + "Stamp.Opacity" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-dashed-rectangle-annotation-with-opacity": { - "title": "Add Dashed Rectangle Annotation with Opacity to PDF Page", - "filename": "add-dashed-rectangle-annotation-with-opacity.cs", - "description": "Demonstrates how to add a rectangle (square) annotation on page 6 of a PDF, apply a dashed border style, and set 50% opacity using the Aspose.Pdf facade API.", + "add-square-annotation-red-border": { + "title": "Add Square Annotation with Red Border to PDF", + "filename": "add-square-annotation-red-border.cs", + "description": "Demonstrates how to place a square annotation with a red border and semi‑transparent fill on page 5 of a PDF using Aspose.Pdf.", "tags": [ "annotation", - "rectangle", + "square", "border", "opacity", - "pdf" + "Aspose.Pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.CreateSquareCircle", - "Aspose.Pdf.Facades.PdfContentEditor.Save", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.Border", - "Aspose.Pdf.Annotations.Dash", - "Aspose.Pdf.Color" + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.SquareAnnotation", + "Aspose.Pdf.Annotations.Border" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-page-open-javascript-log-page-number": { - "title": "Add Page‑Open JavaScript to Log Page Number", - "filename": "add-page-open-javascript-log-page-number.cs", - "description": "Demonstrates how to attach a JavaScript action to each PDF page that logs the current page number to the console when the page is opened, using Aspose.Pdf.", + "add-square-annotation-with-custom-border": { + "title": "Add Square Annotation With Custom Border", + "filename": "add-square-annotation-with-custom-border.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-sticky-note-annotation-to-pdf": { + "title": "Add Sticky Note Annotation to PDF", + "filename": "add-sticky-note-annotation-to-pdf.cs", + "description": "Shows how to place a sticky note (text annotation) on the first page of a PDF using Aspose.Pdf's PdfContentEditor, including creating a placeholder PDF if the source file is missing.", "tags": [ - "javascript", + "sticky-note", + "annotation", "pdf", - "page-open", - "aspose-pdf", - "logging" + "Aspose.Pdf", + "facade" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.JavascriptAction", - "Aspose.Pdf.Page.Actions", - "Aspose.Pdf.Page.Actions.OnOpen" + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.CreateText", + "Aspose.Pdf.Facades.PdfContentEditor.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "generate-pdf-catalog-of-extracted-images": { - "title": "Generate PDF Catalog of Extracted Images", - "filename": "generate-pdf-catalog-of-extracted-images.cs", - "description": "Extracts all images from a source PDF and builds a new PDF containing thumbnail previews of each extracted image.", + "add-subject-to-text-annotation": { + "title": "Add Subject to Text Annotation in PDF", + "filename": "add-subject-to-text-annotation.cs", + "description": "Demonstrates how to create a TextAnnotation, set its Subject property for searchable categorization, and apply it to a PDF using Aspose.Pdf's annotation editor facade.", "tags": [ - "image extraction", - "pdf catalog", - "thumbnails", - "Aspose.Pdf", - "PdfExtractor" + "annotation", + "subject", + "pdf", + "text-annotation", + "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfExtractor", - "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", - "Aspose.Pdf.Facades.PdfExtractor.GetNextImage", "Aspose.Pdf.Document", - "Aspose.Pdf.Image", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.ModifyAnnotations", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "reposition-stamp-to-baseline-page-5": { - "title": "Reposition Stamp to Text Baseline on Page 5", - "filename": "reposition-stamp-to-baseline-page-5.cs", - "description": "Shows how to extract the baseline Y coordinate of the first text fragment on page 5 and move an image stamp so it aligns with that baseline.", + "add-submit-button-confirmation-dialog": { + "title": "Add Submit Button with Confirmation Dialog to PDF", + "filename": "add-submit-button-confirmation-dialog.cs", + "description": "Shows how to insert a submit button into a PDF and attach JavaScript that displays a confirmation dialog before the form is submitted using Aspose.Pdf.Facades.", "tags": [ - "stamp", - "baseline", - "pdf-edit", - "text-extraction", - "aspose-pdf" + "pdf", + "form", + "javascript", + "submit-button", + "confirmation" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextFragmentAbsorber", - "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.Stamp", - "Aspose.Pdf.Facades.PdfContentEditor.MoveStamp" + "Aspose.Pdf.Facades.FormEditor", + "FormEditor.AddSubmitBtn", + "FormEditor.AddFieldScript", + "FormEditor.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "replace-dates-in-pdf-using-regex": { - "title": "Replace Dates in PDF Using Regex", - "filename": "replace-dates-in-pdf-using-regex.cs", - "description": "Shows how to use Aspose.Pdf's PdfContentEditor with a regular expression to locate dates in MM/DD/YYYY format and replace them with YYYY-MM-DD across all pages of a PDF document.", + "add-text-annotation-and-merge-pdfs": { + "title": "Add Text Annotation And Merge Pdfs", + "filename": "add-text-annotation-and-merge-pdfs.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-text-annotation-set-subject": { + "title": "Add Text Annotation Set Subject", + "filename": "add-text-annotation-set-subject.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-text-annotation-thick-border": { + "title": "Add Text Annotation with Thick Border to PDF", + "filename": "add-text-annotation-thick-border.cs", + "description": "Shows how to create a text annotation on a PDF page and set a custom three‑point border using Aspose.Pdf facades.", "tags": [ - "regex", - "date-format", - "pdf-edit", - "replace-text", - "aspose-pdf" + "annotation", + "border", + "pdf", + "facade", + "text-annotation" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.ReplaceTextStrategy", - "Aspose.Pdf.Facades.PdfContentEditor.ReplaceText", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Annotations.Border", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "set-pdf-viewer-preferences-fit-width": { - "title": "Set PDF Viewer Preferences and Default Zoom (Thumbnails + Fit Width)", - "filename": "set-pdf-viewer-preferences-fit-width.cs", - "description": "Demonstrates how to configure a PDF to open with the thumbnails pane visible, resize the window to fit the page, and set the default zoom to fit the page width using Aspose.Pdf Facades.", + "add-text-annotation-to-pdf-page": { + "title": "Add Text Annotation to PDF Page", + "filename": "add-text-annotation-to-pdf-page.cs", + "description": "Demonstrates how to add a custom text (sticky‑note) annotation at a specific location on the first page of an existing PDF using Aspose.Pdf.Facades.", "tags": [ - "viewer-preferences", - "thumbnails", - "fit-width", + "annotation", "pdf", - "aspose-pdf" + "text", + "Aspose.Pdf", + "facade" ], "apis_used": [ - "PdfContentEditor", - "PdfContentEditor.BindPdf", - "PdfContentEditor.ChangeViewerPreference", - "PdfContentEditor.Save", - "PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.Zoom", - "PdfPageEditor.Save" + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.CreateText", + "Aspose.Pdf.Facades.PdfContentEditor.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "update-pdf-xmp-creator-metadata": { - "title": "Update PDF XMP Creator Metadata", - "filename": "update-pdf-xmp-creator-metadata.cs", - "description": "Shows how to read XMP metadata from an existing PDF, change the dc:creator field, and write the updated metadata back to a new PDF using Aspose.Pdf.Facades.", + "add-text-annotation-with-author-metadata": { + "title": "Add Text Annotation With Author Metadata", + "filename": "add-text-annotation-with-author-metadata.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-text-annotation-with-custom-author": { + "title": "Add Text Annotation with Custom Author to PDF", + "filename": "add-text-annotation-with-custom-author.cs", + "description": "Demonstrates how to add a sticky‑note text annotation to a PDF page and then set a custom author metadata for the annotation using Aspose.Pdf facades.", "tags": [ - "xmp", - "metadata", + "annotation", + "author", "pdf", - "creator", - "aspose" + "aspose", + "facade" ], "apis_used": [ - "PdfXmpMetadata", - "PdfXmpMetadata.BindPdf", - "PdfXmpMetadata.Save", - "PdfXmpMetadata.this[string]", - "XmpValue" + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfContentEditor.CreateText", + "Aspose.Pdf.Facades.PdfAnnotationEditor.ModifyAnnotationsAuthor" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-encrypted-attachment-aes256": { - "title": "Add Encrypted Attachment to PDF with AES‑256", - "filename": "add-encrypted-attachment-aes256.cs", - "description": "Demonstrates adding a file attachment with a custom description to a PDF and then encrypting the PDF using AES‑256 via Aspose.Pdf.", + "add-text-annotation-with-opacity": { + "title": "Add Text Annotation With Opacity", + "filename": "add-text-annotation-with-opacity.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-text-annotation-with-utc-creation-date": { + "title": "Add Text Annotation With Utc Creation Date", + "filename": "add-text-annotation-with-utc-creation-date.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-text-annotation-with-utc-timestamp": { + "title": "Add Text Annotation with UTC Timestamp to PDF", + "filename": "add-text-annotation-with-utc-timestamp.cs", + "description": "Demonstrates how to add a TextAnnotation (sticky note) to a PDF page and set its creation and modification dates to the current UTC time for accurate document history tracking.", "tags": [ - "attachment", - "encryption", - "AES", - "PdfContentEditor", - "PdfFileSecurity" + "annotation", + "pdf", + "utc", + "timestamp", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfFileSecurity", - "PdfContentEditor.AddDocumentAttachment", - "PdfFileSecurity.EncryptFile" + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Annotations.TextIcon", + "Aspose.Pdf.Color", + "Aspose.Pdf.Page.Annotations.Add", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "remove-all-bookmarks-from-pdf": { - "title": "Remove All Bookmarks from PDF", - "filename": "remove-all-bookmarks-from-pdf.cs", - "description": "Shows how to delete every bookmark in a PDF using Aspose.Pdf's PdfBookmarkEditor facade and save the cleaned document.", + "add-text-stamp-with-shadow": { + "title": "Add Text Stamp with Shadow to First PDF Page", + "filename": "add-text-stamp-with-shadow.cs", + "description": "Demonstrates how to place a text stamp with a shadow effect at the top of the first page of a PDF using Aspose.Pdf.", "tags": [ - "bookmarks", + "text-stamp", + "shadow", "pdf", - "delete", "Aspose.Pdf", - "facade" + "first-page" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfBookmarkEditor", - "PdfBookmarkEditor.BindPdf", - "PdfBookmarkEditor.DeleteBookmarks", - "PdfBookmarkEditor.Save", - "PdfBookmarkEditor.Close" + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextStamp", + "Aspose.Pdf.Text.FontRepository.FindFont", + "Aspose.Pdf.Color", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "create-nested-pdf-bookmarks": { - "title": "Create Nested PDF Bookmarks (Three Levels)", - "filename": "create-nested-pdf-bookmarks.cs", - "description": "Demonstrates building a three‑level bookmark hierarchy (section, subsection, sub‑subsection) in a PDF using Aspose.Pdf.Facades.", + "add-thick-green-circle-annotation-page-six": { + "title": "Add Thick Green Circle Annotation Page Six", + "filename": "add-thick-green-circle-annotation-page-six.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-tooltip-annotation-to-pdf": { + "title": "Add Tooltip (Sticky Note) Annotation to PDF", + "filename": "add-tooltip-annotation-to-pdf.cs", + "description": "Shows how to insert a sticky‑note tooltip annotation into a PDF using Aspose.Pdf.Facades.PdfContentEditor, setting its rectangle, title, contents, icon and saving the result.", "tags": [ - "bookmarks", - "nested", + "tooltip", + "annotation", "pdf", - "aspose-pdf", - "facades" + "Aspose.Pdf", + "sticky-note" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfBookmarkEditor", - "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", - "Aspose.Pdf.Facades.PdfBookmarkEditor.CreateBookmarks", - "Aspose.Pdf.Facades.PdfBookmarkEditor.Save", - "Aspose.Pdf.Bookmark", - "Aspose.Pdf.Bookmarks" + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.CreateText", + "Aspose.Pdf.Facades.PdfContentEditor.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, @@ -1398,455 +2203,573 @@ "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-rotated-image-stamp-to-pdf": { - "title": "Add Rotated Image Stamp to PDF", - "filename": "add-rotated-image-stamp-to-pdf.cs", - "description": "Demonstrates how to place an image stamp on a PDF page with 45‑degree rotation, 80% opacity, and a specific position using Aspose.Pdf.Facades.", + "add-underlined-yellow-text-stamp-to-pdf-page": { + "title": "Add Underlined Yellow Text Stamp To Pdf Page", + "filename": "add-underlined-yellow-text-stamp-to-pdf-page.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-unicode-attachment-description-to-pdf": { + "title": "Add Unicode Attachment Description to PDF and Verify Metadata", + "filename": "add-unicode-attachment-description-to-pdf.cs", + "description": "Demonstrates how to attach a file to a PDF with a Unicode description using the Facades API and then extracts the attachment info to confirm the description is stored correctly.", "tags": [ - "image-stamp", - "rotation", - "opacity", + "attachment", + "unicode", + "metadata", + "pdf", + "facades" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment", + "Aspose.Pdf.Facades.PdfContentEditor.Save", + "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor.ExtractAttachment", + "Aspose.Pdf.Facades.PdfExtractor.GetAttachmentInfo" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:38:22Z", + "status": "verified" + }, + "add-url-bookmark-to-pdf": { + "title": "Add URL Bookmark to PDF", + "filename": "add-url-bookmark-to-pdf.cs", + "description": "Loads an existing PDF, creates a bookmark named \"Help\" that opens a specified online documentation URL, and saves the updated document.", + "tags": [ + "bookmark", + "url", "pdf", + "aspose", "facade" ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.CreateBookmarksAction", + "Aspose.Pdf.Facades.PdfContentEditor.Save" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:38:22Z", + "status": "verified" + }, + "add-watermark-to-pdfs-in-folder": { + "title": "Add Watermark to All PDFs in a Folder", + "filename": "add-watermark-to-pdfs-in-folder.cs", + "description": "Shows how to apply a semi‑transparent text watermark to every PDF file in a directory using Aspose.Pdf facades and simple configuration settings.", + "tags": [ + "watermark", + "pdf", + "batch", + "facade", + "Aspose.Pdf" + ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileStamp", "Aspose.Pdf.Facades.Stamp", - "Aspose.Pdf.Facades.Stamp.BindImage", - "Aspose.Pdf.Facades.Stamp.Rotation", - "Aspose.Pdf.Facades.Stamp.Opacity", - "Aspose.Pdf.Facades.Stamp.SetOrigin", + "Aspose.Pdf.Text.FormattedText", + "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", - "Aspose.Pdf.Facades.PdfFileStamp.Close" + "Aspose.Pdf.Facades.PdfFileStamp.Save", + "Aspose.Pdf.Facades.PdfFileStamp.Close", + "Aspose.Pdf.Facades.Stamp.BindLogo" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:38:22Z", + "status": "verified" + }, + "add-watermark-to-pdfs-in-parallel": { + "title": "Add Watermark To Pdfs In Parallel", + "filename": "add-watermark-to-pdfs-in-parallel.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-web-link-annotation-to-pdf": { + "title": "Add Web Link Annotation to PDF", + "filename": "add-web-link-annotation-to-pdf.cs", + "description": "Shows how to bind an existing PDF, create a clickable web link annotation on a specific page using PdfContentEditor, and save the updated document.", + "tags": [ + "web-link", + "annotation", + "pdf", + "Aspose.Pdf", + "PdfContentEditor" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.CreateWebLink", + "Aspose.Pdf.Facades.PdfContentEditor.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "fill-pdf-form-fields-from-json__v2": { - "title": "Fill PDF Form Fields from JSON Configuration", - "filename": "fill-pdf-form-fields-from-json__v2.cs", - "description": "Demonstrates loading default field values from a JSON file and populating a PDF form using Aspose.Pdf.Facades.Form.", + "add-xmp-department-metadata-to-pdf": { + "title": "Add XMP Department Metadata to PDF", + "filename": "add-xmp-department-metadata-to-pdf.cs", + "description": "Shows how to bind an existing PDF, add a custom XMP metadata field \"Department\" with the value \"Finance\", and save the updated document using Aspose.Pdf.Facades.", "tags": [ - "pdf", - "form", - "json", - "fill", - "aspose" + "XMP", + "metadata", + "Aspose.Pdf", + "PDF", + "facades" ], "apis_used": [ - "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.FillField", - "Aspose.Pdf.Facades.Form.Save" + "Aspose.Pdf.Facades.PdfXmpMetadata", + "PdfXmpMetadata.BindPdf", + "PdfXmpMetadata.Add", + "PdfXmpMetadata.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "convert-pdf-pages-to-bmp": { - "title": "Convert PDF Pages to 24‑bit BMP Images", - "filename": "convert-pdf-pages-to-bmp.cs", - "description": "Loads a PDF with Aspose.Pdf, iterates through each page, and saves every page as a 24‑bit BMP image using the BmpDevice class.", + "add-xmp-metadata-author-title": { + "title": "Add XMP Metadata (Author and Title) to PDF", + "filename": "add-xmp-metadata-author-title.cs", + "description": "Shows how to bind a PDF, add XMP metadata fields for author and title, and save the updated document using Aspose.Pdf.Facades.", "tags": [ - "pdf", - "bmp", - "conversion", - "aspose.pdf", - "image" + "xmp", + "metadata", + "author", + "title", + "pdf" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Devices.Resolution", - "Aspose.Pdf.Devices.BmpDevice", - "Aspose.Pdf.Devices.BmpDevice.Process", - "Aspose.Pdf.PageCollection" + "Aspose.Pdf.Facades.PdfXmpMetadata", + "PdfXmpMetadata.BindPdf", + "PdfXmpMetadata.Add", + "PdfXmpMetadata.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "print-pdf-duplex-collated-copies": { - "title": "Print PDF with Duplex and Collated Copies", - "filename": "print-pdf-duplex-collated-copies.cs", - "description": "Shows how to print a PDF using Aspose.Pdf.Facades with duplex mode enabled and collated multiple copies.", + "add-xmp-metadata-corporate-branding": { + "title": "Add Xmp Metadata Corporate Branding", + "filename": "add-xmp-metadata-corporate-branding.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-xmp-metadata-field-to-pdf": { + "title": "Add Xmp Metadata Field To Pdf", + "filename": "add-xmp-metadata-field-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "align-stamp-with-paragraph-baseline": { + "title": "Align Stamp With Paragraph Baseline", + "filename": "align-stamp-with-paragraph-baseline.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "apply-45-degree-rotation-to-stamp": { + "title": "Apply 45° Rotation to a PDF Stamp Annotation", + "filename": "apply-45-degree-rotation-to-stamp.cs", + "description": "Demonstrates how to create a text stamp, set its rotation to 45 degrees for diagonal placement, and apply it to a PDF using the Aspose.Pdf.Facades API.", "tags": [ - "printing", - "duplex", - "collated", + "stamp", + "rotation", "pdf", + "watermark", "facade" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Printing.PrintDuplex", - "Aspose.Pdf.Facades.PdfViewer", - "Aspose.Pdf.Facades.PdfViewer.BindPdf", - "Aspose.Pdf.Facades.PdfViewer.PrintDocumentWithSettings" + "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.Facades.Stamp", + "Aspose.Pdf.Facades.FormattedText", + "Aspose.Pdf.Facades.EncodingType", + "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", + "Aspose.Pdf.Facades.PdfFileStamp.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-rectangle-annotation-light-gray": { - "title": "Add Rectangle Annotation with Light Gray Fill", - "filename": "add-rectangle-annotation-light-gray.cs", - "description": "Shows how to insert a rectangle (square) annotation with a light gray interior color and a 1 pt border onto a PDF page using Aspose.Pdf.", - "tags": [ - "annotation", - "rectangle", - "fill-color", - "border", - "Aspose.Pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Annotations.SquareAnnotation", - "Aspose.Pdf.Annotations.Border", - "Aspose.Pdf.Color", - "Aspose.Pdf.Rectangle" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:38:22Z", - "status": "verified" - }, - "add-javascript-validation-button-to-pdf-form": { - "title": "Add JavaScript Validation Button to PDF Form", - "filename": "add-javascript-validation-button-to-pdf-form.cs", - "description": "Shows how to insert a push‑button into a PDF form using Aspose.Pdf and attach JavaScript that checks required fields, displaying alerts when fields are missing.", + "apply-viewer-preferences-from-json": { + "title": "Apply Viewer Preferences to PDFs from JSON Configuration", + "filename": "apply-viewer-preferences-from-json.cs", + "description": "Demonstrates reading viewer preference settings from a JSON file, building the combined ViewerPreference flags, and applying them to each PDF using Aspose.Pdf's PdfContentEditor.", "tags": [ + "viewer-preferences", + "json", "pdf", - "form", - "javascript", - "validation", - "aspose" + "aspose-pdf", + "csharp" ], "apis_used": [ - "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.AddField", - "Aspose.Pdf.Facades.FormEditor.SetFieldScript", - "Aspose.Pdf.Facades.FormEditor.Save", - "Aspose.Pdf.Facades.FieldType" + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.ChangeViewerPreference", + "Aspose.Pdf.Facades.PdfContentEditor.Save", + "Aspose.Pdf.Facades.ViewerPreference" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-external-url-bookmark-to-pdf": { - "title": "Add External URL Bookmark to PDF", - "filename": "add-external-url-bookmark-to-pdf.cs", - "description": "Shows how to use Aspose.Pdf.Facades.PdfContentEditor to create a bookmark that opens an external URL when selected in the PDF navigation pane.", + "apply-viewer-preferences-to-decrypted-pdf": { + "title": "Apply Viewer Preferences to Decrypted PDF", + "filename": "apply-viewer-preferences-to-decrypted-pdf.cs", + "description": "The example shows how to decrypt an encrypted PDF using a password and then set viewer preferences such as hiding the menu bar and toolbar before saving the final document.", "tags": [ - "bookmark", - "url", "pdf", - "aspose", + "decryption", + "viewer-preferences", + "aspose-pdf", "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.CreateBookmarksAction", - "Aspose.Pdf.Facades.PdfContentEditor.Save", - "Aspose.Pdf.Facades.PdfContentEditor.Close" + "PdfFileSecurity", + "PdfFileSecurity.DecryptFile", + "PdfContentEditor", + "PdfContentEditor.BindPdf", + "PdfContentEditor.ChangeViewerPreference", + "PdfContentEditor.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "hide-scrollbars-disable-page-transitions": { - "title": "Hide Scrollbars and Disable Page Transitions in PDF", - "filename": "hide-scrollbars-disable-page-transitions.cs", - "description": "Shows how to set viewer preferences to hide UI elements such as scrollbars and how to remove page transition effects using Aspose.Pdf facades.", + "apply-viewer-preferences-to-encrypted-pdf": { + "title": "Apply Viewer Preferences To Encrypted Pdf", + "filename": "apply-viewer-preferences-to-encrypted-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "apply-viewer-preferences-to-multiple-pdfs": { + "title": "Apply Viewer Preferences to Multiple PDFs", + "filename": "apply-viewer-preferences-to-multiple-pdfs.cs", + "description": "Shows how to iterate over a collection of PDF files and set common viewer preferences (hide UI elements, fit/center window) using Aspose.Pdf.Facades.PdfContentEditor.", "tags": [ - "viewer-preference", - "hide-scrollbars", - "disable-transitions", - "pdf-facade", - "aspose-pdf" + "viewer-preferences", + "batch-processing", + "pdf", + "aspose-pdf", + "csharp" ], "apis_used": [ "PdfContentEditor", - "PdfPageEditor", - "Document", + "PdfContentEditor.BindPdf", "PdfContentEditor.ChangeViewerPreference", - "PdfPageEditor.TransitionType", - "PdfPageEditor.TransitionDuration", - "PdfPageEditor.ApplyChanges", - "PdfContentEditor.Save" + "PdfContentEditor.Save", + "ViewerPreference" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "extract-viewer-preferences-to-json": { - "title": "Extract PDF Viewer Preferences and Save Layout/Zoom to JSON", - "filename": "extract-viewer-preferences-to-json.cs", - "description": "Demonstrates how to read a PDF's viewer preference flags and current zoom factor using Aspose.Pdf facades, then store the layout and zoom values in a formatted JSON configuration file.", + "async-add-attachment-to-pdf": { + "title": "Asynchronously Add Attachment to PDF Using PdfContentEditor", + "filename": "async-add-attachment-to-pdf.cs", + "description": "Demonstrates adding a file attachment to an existing PDF and saving it asynchronously with Aspose.Pdf's PdfContentEditor facade, keeping the UI thread responsive.", "tags": [ "pdf", - "viewer-preferences", - "json", - "configuration", - "aspose-pdf" + "attachment", + "async", + "aspose", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.GetViewerPreference", - "Aspose.Pdf.Facades.PdfViewer", - "Aspose.Pdf.Facades.PdfViewer.BindPdf", - "Aspose.Pdf.Facades.PdfViewer.ScaleFactor", - "Aspose.Pdf.Facades.ViewerPreference" + "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment", + "Aspose.Pdf.Facades.PdfContentEditor.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-attachment-set-modification-date": { - "title": "Add Attachment and Set Modification Date in PDF", - "filename": "add-attachment-set-modification-date.cs", - "description": "Demonstrates how to attach a file to a PDF and update the document's modification date to the current UTC timestamp using Aspose.Pdf.", + "attach-downloaded-file-to-pdf": { + "title": "Attach Downloaded File To Pdf", + "filename": "attach-downloaded-file-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "attach-image-add-stamp-annotation": { + "title": "Attach Image and Add Stamp Annotation to PDF", + "filename": "attach-image-add-stamp-annotation.cs", + "description": "Shows how to embed an image file as a document attachment and then use the same image as a stamp annotation on a PDF page using Aspose.Pdf.Facades.", "tags": [ - "attachment", - "modification-date", - "audit", - "pdf", - "Aspose.Pdf" - ], - "apis_used": [ - "PdfContentEditor", - "PdfContentEditor.AddDocumentAttachment", - "PdfContentEditor.BindPdf", - "PdfContentEditor.Save", - "PdfFileInfo", - "PdfFileInfo.ModDate", - "PdfFileInfo.BindPdf", - "PdfFileInfo.Save" + "attachment", + "stamp", + "image", + "pdf", + "facade" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment", + "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", + "Aspose.Pdf.Facades.Stamp", + "Aspose.Pdf.Facades.Stamp.BindImage" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "remove-specific-bookmark-from-pdf": { - "title": "Remove Specific Bookmark from PDF", - "filename": "remove-specific-bookmark-from-pdf.cs", - "description": "Demonstrates how to delete a bookmark with a given title from a PDF document using Aspose.Pdf's PdfBookmarkEditor facade.", + "attach-multiple-files-to-pdf": { + "title": "Attach Multiple Files to a PDF", + "filename": "attach-multiple-files-to-pdf.cs", + "description": "Shows how to attach several external files to an existing PDF using Aspose.Pdf's PdfContentEditor facade and save the updated document.", "tags": [ - "bookmark", "pdf", - "delete", - "Aspose.Pdf", - "facade" + "attachment", + "aspose", + "facade", + "csharp" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfBookmarkEditor", - "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", - "Aspose.Pdf.Facades.PdfBookmarkEditor.DeleteBookmarks", - "Aspose.Pdf.Facades.PdfBookmarkEditor.Save", - "Aspose.Pdf.Facades.PdfBookmarkEditor.Close" + "Aspose.Pdf.Facades.PdfContentEditor", + "PdfContentEditor.BindPdf", + "PdfContentEditor.AddDocumentAttachment", + "PdfContentEditor.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "encrypt-pdf-with-certificate-signature": { - "title": "Encrypt PDF with Certificate and Apply Digital Signature", - "filename": "encrypt-pdf-with-certificate-signature.cs", - "description": "Demonstrates how to encrypt a PDF using AES‑256, then sign the encrypted document with a certificate‑based digital signature using Aspose.Pdf facades.", + "attach-network-downloaded-file-to-pdf": { + "title": "Attach Network-Downloaded File to PDF", + "filename": "attach-network-downloaded-file-to-pdf.cs", + "description": "Demonstrates downloading a file via HttpClient, converting it to a memory stream, and attaching it to an existing PDF using Aspose.Pdf's PdfContentEditor.", "tags": [ - "encryption", - "digital-signature", - "certificate", - "Aspose.Pdf", - "facade" + "pdf", + "attachment", + "download", + "memory-stream", + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Facades.PdfFileSignature", - "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", - "Aspose.Pdf.Facades.PdfFileSignature.SetCertificate", - "Aspose.Pdf.Facades.PdfFileSignature.Sign", - "Aspose.Pdf.Forms.PKCS1" + "PdfContentEditor", + "PdfContentEditor.BindPdf", + "PdfContentEditor.AddDocumentAttachment", + "PdfContentEditor.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-text-stamp-with-shadow": { - "title": "Add Text Stamp with Shadow to First PDF Page", - "filename": "add-text-stamp-with-shadow.cs", - "description": "Demonstrates how to place a text stamp with a shadow effect at the top of the first page of a PDF using Aspose.Pdf.", + "batch-add-annotations-from-json": { + "title": "Batch Add Annotations to PDF from JSON", + "filename": "batch-add-annotations-from-json.cs", + "description": "Demonstrates how to read a JSON definition file and programmatically add various annotation types (text, link, square, circle, highlight) to specific pages of a PDF using Aspose.Pdf.", "tags": [ - "text-stamp", - "shadow", "pdf", - "Aspose.Pdf", - "first-page" + "annotations", + "json", + "batch", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextStamp", - "Aspose.Pdf.Text.FontRepository.FindFont", - "Aspose.Pdf.Color", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Annotations.LinkAnnotation", + "Aspose.Pdf.Annotations.SquareAnnotation", + "Aspose.Pdf.Annotations.HighlightAnnotation", + "Aspose.Pdf.Annotations.GoToURIAction" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-image-stamp-from-stream": { - "title": "Add Image Stamp from Stream to PDF", - "filename": "add-image-stamp-from-stream.cs", - "description": "Demonstrates how to create an image stamp directly from a stream and apply it to a PDF using Aspose.Pdf facades without writing the image to disk.", - "tags": [ - "image-stamp", - "pdf", - "stream", - "Aspose.Pdf", - "facade" - ], - "apis_used": [ - "Aspose.Pdf.Facades.Stamp", - "Aspose.Pdf.Facades.Stamp.BindImage", - "Aspose.Pdf.Facades.Stamp.SetOrigin", - "Aspose.Pdf.Facades.Stamp.SetImageSize", - "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", - "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", - "Aspose.Pdf.Facades.PdfFileStamp.Save" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:38:22Z", + "batch-add-attachment-to-pdfs": { + "title": "Batch Add Attachment To Pdfs", + "filename": "batch-add-attachment-to-pdfs.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "convert-pdf-to-jpeg-150-dpi": { - "title": "Convert PDF to JPEG Images (150 DPI)", - "filename": "convert-pdf-to-jpeg-150-dpi.cs", - "description": "Loads a PDF document and converts each page to a JPEG image using a 150 DPI resolution and 90% quality, saving the images to a specified folder.", + "batch-add-javascript-alert-to-rectangle-annotations": { + "title": "Batch Add Javascript Alert To Rectangle Annotations", + "filename": "batch-add-javascript-alert-to-rectangle-annotations.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "batch-add-password-protection-to-pdfs": { + "title": "Batch Add Password Protection to PDFs", + "filename": "batch-add-password-protection-to-pdfs.cs", + "description": "Demonstrates how to encrypt all PDF files in a folder with the same user password using Aspose.Pdf, creating protected copies with 256‑bit AES encryption.", "tags": [ "pdf", - "jpeg", - "conversion", - "resolution", + "encryption", + "batch", + "password-protection", "aspose" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Devices.JpegDevice", - "Aspose.Pdf.Devices.Resolution", - "Aspose.Pdf.Devices.JpegDevice.Process", - "Aspose.Pdf.PageCollection" + "Aspose.Pdf.Facades.PdfFileSecurity", + "Aspose.Pdf.Facades.PdfFileSecurity.EncryptFile", + "Aspose.Pdf.DocumentPrivilege", + "Aspose.Pdf.KeySize" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "convert-png-to-multi-page-pdf": { - "title": "Convert PNG Images to Multi‑Page PDF", - "filename": "convert-png-to-multi-page-pdf.cs", - "description": "Shows how to read PNG files from a folder and combine them into a single PDF, adding each image to its own page with default margins.", + "batch-add-red-rectangle-annotation": { + "title": "Batch Add Red Rectangle Annotation to PDFs", + "filename": "batch-add-red-rectangle-annotation.cs", + "description": "Shows how to iterate over all PDF files in a folder, add a red square (rectangle) annotation to the first page of each document, and save the results to an output directory.", "tags": [ - "png", "pdf", - "image-to-pdf", - "multipage", - "aspose.pdf" + "annotation", + "batch", + "rectangle", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Image", - "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Page.Paragraphs.Add", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.SquareAnnotation", + "Aspose.Pdf.Color", + "Aspose.Pdf.Page.Annotations.Add", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "print-selected-pdf-pages": { - "title": "Print Selected PDF Pages (1‑5, 8‑10) Using PdfViewer", - "filename": "print-selected-pdf-pages.cs", - "description": "Shows how to extract specific pages from a PDF and print them with a custom page range using Aspose.Pdf's PdfFileEditor and PdfViewer.", + "batch-add-text-annotations-to-pdf": { + "title": "Batch Add Text Annotations To Pdf", + "filename": "batch-add-text-annotations-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "batch-apply-js-alert-to-rectangle-annotations": { + "title": "Batch Apply JavaScript Alert to Rectangle Annotations", + "filename": "batch-apply-js-alert-to-rectangle-annotations.cs", + "description": "Shows how to process multiple PDF files, locate square (rectangle) annotations on each page, and attach a JavaScript alert action to them using Aspose.Pdf.", "tags": [ + "javascript", + "annotation", + "batch", "pdf", - "printing", - "page-range", - "extraction", "aspose" ], "apis_used": [ - "PdfFileEditor.Extract", - "PdfViewer.BindPdf", - "PdfViewer.PrintDocumentWithSettings", - "Aspose.Pdf.Printing.PrinterSettings", - "PdfViewer.PrintPageDialog" + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.CreateJavaScriptLink", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.SquareAnnotation" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-semi-transparent-file-attachment-annotation": { - "title": "Add Semi-Transparent File Attachment Annotation to PDF Page", - "filename": "add-semi-transparent-file-attachment-annotation.cs", - "description": "Demonstrates how to load a PDF, create a file attachment annotation with 60% opacity, and add it to page three using Aspose.Pdf.", + "batch-extract-images-from-pdfs": { + "title": "Batch Extract Images from PDFs to Subfolders", + "filename": "batch-extract-images-from-pdfs.cs", + "description": "Shows how to process a directory of PDF files, extract all images using Aspose.Pdf.Facades.PdfExtractor, and save each set of images into its own subfolder.", "tags": [ "pdf", - "annotation", - "opacity", - "file-attachment", - "aspose" + "image-extraction", + "batch-processing", + "aspose-pdf", + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Annotations.FileAttachmentAnnotation", - "Aspose.Pdf.Annotations.AnnotationCollection.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfExtractor", + "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", + "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", + "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "extract-images-from-pdf-rename-by-page-index": { - "title": "Extract Images from PDF and Rename by Page and Index", - "filename": "extract-images-from-pdf-rename-by-page-index.cs", - "description": "The example creates a PDF containing images, then uses Aspose.Pdf's PdfExtractor to extract each image per page and saves them with filenames that include the page number and image index.", + "batch-remove-attachments-add-disclaimer-annotation": { + "title": "Batch Remove Attachments Add Disclaimer Annotation", + "filename": "batch-remove-attachments-add-disclaimer-annotation.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "batch-remove-attachments-add-disclaimer": { + "title": "Batch Remove Attachments and Add Disclaimer Annotation to PDFs", + "filename": "batch-remove-attachments-add-disclaimer.cs", + "description": "Demonstrates how to iterate through a folder of PDF files, delete all embedded attachments, and add a standardized disclaimer text annotation to each page using Aspose.Pdf facades.", "tags": [ "pdf", - "image-extraction", - "aspose-pdf", - "page-index", - "csharp" + "attachments", + "annotation", + "batch-processing", + "disclaimer" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Drawing.Image", - "Aspose.Pdf.Facades.PdfExtractor", - "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", - "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", - "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.DeleteAttachments", + "Aspose.Pdf.Facades.PdfContentEditor.CreateText", + "Aspose.Pdf.Facades.PdfContentEditor.Save", + "Aspose.Pdf.Page" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "replace-text-preserve-style": { - "title": "Replace Text While Preserving Font Style in PDF", - "filename": "replace-text-preserve-style.cs", - "description": "Demonstrates how to replace a specific string in a PDF document using Aspose.Pdf while keeping the original font, size, and color on the affected pages.", + "batch-replace-confidential-with-public": { + "title": "Batch Replace 'Confidential' with 'Public' in PDF Files", + "filename": "batch-replace-confidential-with-public.cs", + "description": "Shows how to iterate over a directory of PDF documents and use Aspose.Pdf's PdfContentEditor to replace every occurrence of the word \"Confidential\" with \"Public\" on all pages, then save the updated files.", "tags": [ - "text-replacement", "pdf", - "font-style", - "Aspose.Pdf", + "text-replacement", + "batch-processing", + "aspose-pdf", "facade" ], "apis_used": [ @@ -1856,124 +2779,153 @@ "Aspose.Pdf.Facades.PdfContentEditor.ReplaceText", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-file-attachment-data-relationship": { - "title": "Add File Attachment with Data Relationship to PDF", - "filename": "add-file-attachment-data-relationship.cs", - "description": "Shows how to attach a file to an existing PDF using PdfContentEditor and set the attachment's AFRelationship to Data for improved document organization.", + "batch-reposition-stamps-top-center": { + "title": "Batch Reposition Stamps to Top‑Center in PDFs", + "filename": "batch-reposition-stamps-top-center.cs", + "description": "Shows how to process multiple PDF files, retrieve existing stamps on each page, and move them to a top‑center position using Aspose.Pdf.Facades.PdfContentEditor.", "tags": [ - "attachment", - "AFRelationship", - "PdfContentEditor", - "Aspose.Pdf", - "facade" + "stamps", + "batch", + "pdf", + "reposition", + "top-center" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment", - "Aspose.Pdf.Facades.PdfContentEditor.Save", - "Aspose.Pdf.Document.EmbeddedFiles", - "Aspose.Pdf.FileSpecification.AFRelationship" + "Aspose.Pdf.Facades.PdfContentEditor.GetStamps", + "Aspose.Pdf.Facades.PdfContentEditor.MoveStamp", + "Aspose.Pdf.Facades.PdfContentEditor.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-corporate-branding-xmp-metadata": { - "title": "Add Corporate Branding XMP Metadata to PDF", - "filename": "add-corporate-branding-xmp-metadata.cs", - "description": "Demonstrates how to bind a PDF, add custom XMP metadata such as a logo URL and brand color, and save the branded document using Aspose.Pdf.", - "tags": [ - "XMP", - "metadata", - "branding", - "PDF", - "Aspose" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfXmpMetadata", - "Aspose.Pdf.Facades.PdfXmpMetadata.BindPdf", - "Aspose.Pdf.Facades.PdfXmpMetadata.Add", - "Aspose.Pdf.Facades.PdfXmpMetadata.Save" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:38:22Z", + "batch-set-pdf-viewer-preference-full-screen": { + "title": "Batch Set Pdf Viewer Preference Full Screen", + "filename": "batch-set-pdf-viewer-preference-full-screen.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "add-multiline-right-aligned-text-stamp-page-4": { - "title": "Add Multiline Right-Aligned Text Stamp to Page 4", - "filename": "add-multiline-right-aligned-text-stamp-page-4.cs", - "description": "Demonstrates how to create a multiline text stamp, align it to the right and bottom, and apply it only to the fourth page of a PDF using Aspose.Pdf.", + "batch-set-pdf-viewer-preference-fullscreen": { + "title": "Batch Set PDF Viewer Preference to Full‑Screen Mode", + "filename": "batch-set-pdf-viewer-preference-fullscreen.cs", + "description": "Shows how to loop through all PDF files in a directory and use Aspose.Pdf.Facades to set each document's viewer preference to full‑screen mode, saving the modified files to an output folder.", "tags": [ - "text-stamp", - "multiline", - "right-align", - "page-4", - "Aspose.Pdf" + "pdf", + "viewer-preference", + "fullscreen", + "batch-processing", + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextStamp", - "Aspose.Pdf.Text.HorizontalAlignment", - "Aspose.Pdf.Text.VerticalAlignment", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save" + "PdfContentEditor", + "PdfContentEditor.BindPdf", + "PdfContentEditor.ChangeViewerPreference", + "PdfContentEditor.Save", + "ViewerPreference.PageModeFullScreen" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-image-stamp-to-pdf-page": { - "title": "Add Image Stamp to Specific PDF Page", - "filename": "add-image-stamp-to-pdf-page.cs", - "description": "Downloads an image from a URL and stamps it onto page 2 of a PDF using Aspose.Pdf.Facades.", + "center-image-stamp-on-page-8": { + "title": "Center Image Stamp on Page 8 of a PDF", + "filename": "center-image-stamp-on-page-8.cs", + "description": "Demonstrates how to place an image stamp centered horizontally and vertically on the eighth page of a PDF using Aspose.Pdf.Facades.", "tags": [ - "image-stamp", + "stamp", + "center", + "page8", "pdf", - "Aspose.Pdf", - "page-2", "facade" ], "apis_used": [ - "PdfFileStamp", - "PdfFileStamp.BindPdf", - "Stamp", - "Stamp.BindImage", - "Stamp.SetOrigin", - "Stamp.SetImageSize", - "PdfFileStamp.AddStamp", - "PdfFileStamp.Save" + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.Facades.Stamp", + "Aspose.Pdf.Facades.Stamp.SetImageSize", + "Aspose.Pdf.Facades.Stamp.SetOrigin", + "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", + "Aspose.Pdf.Facades.PdfFileStamp.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "convert-pdf-to-png-thumbnails-300-dpi": { - "title": "Convert PDF Pages to PNG Thumbnails with 300 DPI and Transparent Background", - "filename": "convert-pdf-to-png-thumbnails-300-dpi.cs", - "description": "Shows how to load a PDF using Aspose.Pdf, render each page to a PNG image at 300 DPI, and enable a transparent background for UI thumbnail generation.", + "center-image-stamp-on-page": { + "title": "Center Image Stamp On Page", + "filename": "center-image-stamp-on-page.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "change-pdf-viewer-preferences-save": { + "title": "Change PDF Viewer Preferences and Save to New File", + "filename": "change-pdf-viewer-preferences-save.cs", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfContentEditor to bind an existing PDF, modify its viewer preferences, and save the edited document to a new file.", "tags": [ "pdf", - "png", - "thumbnail", - "dpi", - "transparent" + "viewer-preferences", + "aspose", + "facade", + "edit" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Resolution", - "Aspose.Pdf.Devices.PngDevice", - "Aspose.Pdf.Devices.PngDevice.Process", - "Aspose.Pdf.PageCollection" + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.ChangeViewerPreference", + "Aspose.Pdf.Facades.PdfContentEditor.Save", + "Aspose.Pdf.Facades.PdfContentEditor.Close", + "Aspose.Pdf.Facades.ViewerPreference" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, + "change-pdf-viewer-preferences": { + "title": "Change Pdf Viewer Preferences", + "filename": "change-pdf-viewer-preferences.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "check-pdf-checkbox-field": { + "title": "Check Pdf Checkbox Field", + "filename": "check-pdf-checkbox-field.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "combine-jpeg-images-into-pdf": { + "title": "Combine Jpeg Images Into Pdf", + "filename": "combine-jpeg-images-into-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "combine-jpeg-images-to-pdf": { "title": "Combine Multiple JPEG Images into a Single PDF", "filename": "combine-jpeg-images-to-pdf.cs", @@ -1997,475 +2949,523 @@ "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-rectangle-annotation-with-dash-opacity": { - "title": "Add Rectangle Annotation with Custom Dash and Opacity", - "filename": "add-rectangle-annotation-with-dash-opacity.cs", - "description": "Demonstrates how to add a rectangle (square) annotation to the first page of a PDF, apply a custom dash pattern to its border and set 75% opacity using the PdfContentEditor facade.", - "tags": [ - "annotation", - "rectangle", - "dash-pattern", - "opacity", - "pdf-editing" - ], - "apis_used": [ - "PdfContentEditor", - "PdfContentEditor.BindPdf", - "PdfContentEditor.CreateSquareCircle", - "PdfContentEditor.Save", - "SquareAnnotation", - "Border", - "Dash" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:38:22Z", - "status": "verified" - }, - "add-submit-button-confirmation-dialog": { - "title": "Add Submit Button with Confirmation Dialog to PDF", - "filename": "add-submit-button-confirmation-dialog.cs", - "description": "Shows how to insert a submit button into a PDF and attach JavaScript that displays a confirmation dialog before the form is submitted using Aspose.Pdf.Facades.", - "tags": [ - "pdf", - "form", - "javascript", - "submit-button", - "confirmation" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.FormEditor", - "FormEditor.AddSubmitBtn", - "FormEditor.AddFieldScript", - "FormEditor.Save" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:38:22Z", - "status": "verified" - }, - "add-url-bookmark-to-pdf": { - "title": "Add URL Bookmark to PDF", - "filename": "add-url-bookmark-to-pdf.cs", - "description": "Loads an existing PDF, creates a bookmark named \"Help\" that opens a specified online documentation URL, and saves the updated document.", + "compare-pdf-file-sizes-after-annotation": { + "title": "Compare PDF File Sizes After Adding Annotation", + "filename": "compare-pdf-file-sizes-after-annotation.cs", + "description": "The example loads an existing PDF, adds a text annotation using Aspose.Pdf, saves the edited file, and then compares the file sizes of the original and edited PDFs to verify that changes were applied.", "tags": [ - "bookmark", - "url", "pdf", + "annotation", + "filesize", "aspose", "facade" ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.CreateBookmarksAction", - "Aspose.Pdf.Facades.PdfContentEditor.Save" + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.TextAnnotation", + "Aspose.Pdf.Color", + "Aspose.Pdf.Facades.PdfFileInfo" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "disable-zoom-controls-in-pdf": { - "title": "Disable Zoom Controls in PDF Viewer", - "filename": "disable-zoom-controls-in-pdf.cs", - "description": "Shows how to hide toolbar and window UI using viewer preferences so the PDF cannot be zoomed, ensuring a fixed zoom level for consistent display.", + "compare-pdf-file-sizes-after-editing": { + "title": "Compare Pdf File Sizes After Editing", + "filename": "compare-pdf-file-sizes-after-editing.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "config-driven-pdf-pipeline-attachments-viewer-annotations": { + "title": "Configuration‑Driven PDF Pipeline for Attachments, Viewer Preferences, and Annotations", + "filename": "config-driven-pdf-pipeline-attachments-viewer-annotations.cs", + "description": "Demonstrates a configuration‑driven pipeline that sequentially adds file attachments, changes viewer preferences, and inserts text or file‑attachment annotations into a PDF using Aspose.Pdf's PdfContentEditor facade.", "tags": [ - "viewer-preference", - "disable-zoom", "pdf", - "Aspose.Pdf", - "PdfContentEditor" + "configuration", + "pipeline", + "attachments", + "annotations" ], "apis_used": [ "PdfContentEditor", "PdfContentEditor.BindPdf", + "PdfContentEditor.AddDocumentAttachment", "PdfContentEditor.ChangeViewerPreference", - "PdfContentEditor.Save", - "ViewerPreference" + "PdfContentEditor.AddAnnotation", + "Aspose.Pdf.Rectangle" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-file-attachment-with-creation-date": { - "title": "Add File Attachment with Creation Date to PDF", - "filename": "add-file-attachment-with-creation-date.cs", - "description": "Shows how to attach a file to a PDF page, give it a description, and set the attachment's creation date to the current system time using Aspose.Pdf.", + "configure-continuous-view-mode": { + "title": "Configure Continuous View Mode", + "filename": "configure-continuous-view-mode.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-jpeg-to-pdf": { + "title": "Convert JPEG Image to Single‑Page PDF", + "filename": "convert-jpeg-to-pdf.cs", + "description": "Demonstrates how to load a JPEG file and embed it in a new PDF document as a single page, using the default page margins.", "tags": [ - "file-attachment", - "annotation", - "creation-date", - "pdf-editing", - "Aspose.Pdf" + "jpeg", + "pdf", + "image-to-pdf", + "aspose.pdf", + "single-page" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.CreateFileAttachment", "Aspose.Pdf.Document", - "Aspose.Pdf.Annotations.FileAttachmentAnnotation" + "Aspose.Pdf.Page", + "Aspose.Pdf.Image", + "Aspose.Pdf.Page.Paragraphs.Add", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-xmp-department-metadata-to-pdf": { - "title": "Add XMP Department Metadata to PDF", - "filename": "add-xmp-department-metadata-to-pdf.cs", - "description": "Shows how to bind an existing PDF, add a custom XMP metadata field \"Department\" with the value \"Finance\", and save the updated document using Aspose.Pdf.Facades.", + "convert-pdf-page-to-high-res-png": { + "title": "Convert PDF Page to High-Resolution PNG (300 DPI)", + "filename": "convert-pdf-page-to-high-res-png.cs", + "description": "Shows how to extract page 7 from a PDF and save it as a 300 DPI PNG image using Aspose.Pdf's PdfConverter facade.", "tags": [ - "XMP", - "metadata", - "Aspose.Pdf", - "PDF", - "facades" + "pdf", + "png", + "conversion", + "resolution", + "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfXmpMetadata", - "PdfXmpMetadata.BindPdf", - "PdfXmpMetadata.Add", - "PdfXmpMetadata.Save" + "Aspose.Pdf.Facades.PdfConverter", + "Aspose.Pdf.Facades.PdfConverter.BindPdf", + "Aspose.Pdf.Facades.PdfConverter.DoConvert", + "Aspose.Pdf.Facades.PdfConverter.GetNextImage", + "Aspose.Pdf.Devices.Resolution" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-bold-red-centered-text-stamp-page-5": { - "title": "Add Bold Red Centered Text Stamp to Page 5", - "filename": "add-bold-red-centered-text-stamp-page-5.cs", - "description": "Demonstrates how to place a bold, red, centered text stamp on the fifth page of a PDF using Aspose.Pdf Facades.", + "convert-pdf-pages-to-bmp": { + "title": "Convert PDF Pages to 24‑bit BMP Images", + "filename": "convert-pdf-pages-to-bmp.cs", + "description": "Loads a PDF with Aspose.Pdf, iterates through each page, and saves every page as a 24‑bit BMP image using the BmpDevice class.", "tags": [ - "text-stamp", "pdf", - "aspose-pdf", - "center-alignment", - "bold" + "bmp", + "conversion", + "aspose.pdf", + "image" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.TextStamp", - "Aspose.Pdf.Text.FontRepository", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.HorizontalAlignment", - "Aspose.Pdf.VerticalAlignment" + "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.Devices.BmpDevice", + "Aspose.Pdf.Devices.BmpDevice.Process", + "Aspose.Pdf.PageCollection" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-scaled-image-stamp-from-memory-stream": { - "title": "Add Scaled Image Stamp from Memory Stream to PDF", - "filename": "add-scaled-image-stamp-from-memory-stream.cs", - "description": "Demonstrates loading an image into a MemoryStream, creating an ImageStamp, scaling it to 50%, positioning it, and adding it to a PDF page using Aspose.Pdf.", + "convert-pdf-pages-to-png-150-dpi": { + "title": "Convert Pdf Pages To Png 150 Dpi", + "filename": "convert-pdf-pages-to-png-150-dpi.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-pdf-pages-to-png-transparent": { + "title": "Convert PDF Pages 2‑4 to PNG with 200 DPI and Transparent Background", + "filename": "convert-pdf-pages-to-png-transparent.cs", + "description": "Demonstrates loading a PDF, rendering pages 2 to 4 as PNG images at 200 DPI with a transparent background, and saving them to a folder.", "tags": [ - "image-stamp", - "memory-stream", - "scaling", "pdf", - "Aspose.Pdf" + "png", + "conversion", + "transparent", + "resolution" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.ImageStamp", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.ImageStamp.Zoom", - "Aspose.Pdf.ImageStamp.XIndent", - "Aspose.Pdf.ImageStamp.YIndent", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.Devices.PngDevice", + "Aspose.Pdf.Devices.PngDevice.Process", + "Aspose.Pdf.PageCollection" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "fill-pdf-acroform-from-xml": { - "title": "Fill PDF AcroForm Fields from XML using XPath", - "filename": "fill-pdf-acroform-from-xml.cs", - "description": "Demonstrates creating a PDF with AcroForm fields, extracting values from an XML document via XPath, and populating the fields using Aspose.Pdf's Form facade.", + "convert-pdf-pages-to-transparent-png": { + "title": "Convert PDF Pages to Transparent PNG Images at 150 DPI", + "filename": "convert-pdf-pages-to-transparent-png.cs", + "description": "Demonstrates loading a PDF, configuring a 150 DPI resolution with transparent background, and batch converting each page to a PNG file using Aspose.Pdf.", "tags": [ "pdf", - "acroform", - "xml", - "xpath", - "aspose.pdf" + "png", + "conversion", + "transparent", + "resolution" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.Devices.PngDevice", "Aspose.Pdf.Page", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.FillField", - "Aspose.Pdf.Facades.Form.Save" + "Aspose.Pdf.Devices.PngDevice.Process" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-green-circle-annotation-to-pdf-page": { - "title": "Add Green Circle Annotation to PDF Page", - "filename": "add-green-circle-annotation-to-pdf-page.cs", - "description": "Shows how to place a circle annotation with a green fill color and a 3 pt border on the second page of a PDF using Aspose.Pdf's PdfContentEditor.", + "convert-pdf-to-jpeg-150-dpi": { + "title": "Convert PDF to JPEG Images (150 DPI)", + "filename": "convert-pdf-to-jpeg-150-dpi.cs", + "description": "Loads a PDF document and converts each page to a JPEG image using a 150 DPI resolution and 90% quality, saving the images to a specified folder.", "tags": [ - "annotation", - "circle", "pdf", - "Aspose.Pdf", - "PdfContentEditor" + "jpeg", + "conversion", + "resolution", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfContentEditor", - "PdfContentEditor.BindPdf", - "PdfContentEditor.CreateSquareCircle", - "PdfContentEditor.Save" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:38:22Z", - "status": "verified" - }, - "add-file-attachment-to-pdf__v2": { - "title": "Add File Attachment to PDF using PdfContentEditor", - "filename": "add-file-attachment-to-pdf__v2.cs", - "description": "Shows how to attach a local file to an existing PDF document and save the updated PDF using Aspose.Pdf.Facades.", - "tags": [ - "pdf", - "attachment", - "aspose", - "facade", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment", - "Aspose.Pdf.Facades.PdfContentEditor.Save" + "Aspose.Pdf.Devices.JpegDevice", + "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.Devices.JpegDevice.Process", + "Aspose.Pdf.PageCollection" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "embed-memory-stream-as-pdf-attachment": { - "title": "Embed Memory Stream as PDF Attachment", - "filename": "embed-memory-stream-as-pdf-attachment.cs", - "description": "Demonstrates how to add a file attachment to a PDF directly from a MemoryStream using Aspose.Pdf's PdfContentEditor.", + "convert-pdf-to-multi-page-tiff-lzw": { + "title": "Convert PDF to Multi‑Page TIFF with LZW Compression", + "filename": "convert-pdf-to-multi-page-tiff-lzw.cs", + "description": "Demonstrates how to use Aspose.Pdf.Facades to convert a PDF document into a multi‑page TIFF file while applying LZW compression.", "tags": [ "pdf", - "attachment", - "memory-stream", - "Aspose.Pdf", - "PdfContentEditor" + "tiff", + "conversion", + "lzw", + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfContentEditor", - "PdfContentEditor.BindPdf", - "PdfContentEditor.AddDocumentAttachment", - "PdfContentEditor.Save" + "Aspose.Pdf.Facades.PdfConverter", + "Aspose.Pdf.Facades.PdfConverter.BindPdf", + "Aspose.Pdf.Facades.PdfConverter.DoConvert", + "Aspose.Pdf.Facades.PdfConverter.SaveAsTIFF", + "Aspose.Pdf.Devices.CompressionType" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", - "status": "verified" - }, - "attach-multiple-files-to-pdf": { - "title": "Attach Multiple Files to a PDF", - "filename": "attach-multiple-files-to-pdf.cs", - "description": "Shows how to attach several external files to an existing PDF using Aspose.Pdf's PdfContentEditor facade and save the updated document.", + "status": "verified" + }, + "convert-pdf-to-png-thumbnails-300-dpi": { + "title": "Convert PDF Pages to PNG Thumbnails with 300 DPI and Transparent Background", + "filename": "convert-pdf-to-png-thumbnails-300-dpi.cs", + "description": "Shows how to load a PDF using Aspose.Pdf, render each page to a PNG image at 300 DPI, and enable a transparent background for UI thumbnail generation.", "tags": [ "pdf", - "attachment", - "aspose", - "facade", - "csharp" + "png", + "thumbnail", + "dpi", + "transparent" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "PdfContentEditor.BindPdf", - "PdfContentEditor.AddDocumentAttachment", - "PdfContentEditor.Save" + "Aspose.Pdf.Document", + "Aspose.Pdf.Resolution", + "Aspose.Pdf.Devices.PngDevice", + "Aspose.Pdf.Devices.PngDevice.Process", + "Aspose.Pdf.PageCollection" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-document-attachment-with-description": { - "title": "Add Document Attachment with Description to PDF", - "filename": "add-document-attachment-with-description.cs", - "description": "Shows how to attach an external PDF file to an existing PDF and assign a descriptive label using Aspose.Pdf.Facades.", + "convert-pdf-to-progressive-jpeg-150-dpi": { + "title": "Convert Pdf To Progressive Jpeg 150 Dpi", + "filename": "convert-pdf-to-progressive-jpeg-150-dpi.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-png-to-multi-page-pdf": { + "title": "Convert PNG Images to Multi‑Page PDF", + "filename": "convert-png-to-multi-page-pdf.cs", + "description": "Shows how to read PNG files from a folder and combine them into a single PDF, adding each image to its own page with default margins.", "tags": [ - "attachment", - "metadata", + "png", "pdf", - "Aspose.Pdf", - "PdfContentEditor" + "image-to-pdf", + "multipage", + "aspose.pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment", - "Aspose.Pdf.Facades.PdfContentEditor.Save" + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Image", + "Aspose.Pdf.Document.Pages.Add", + "Aspose.Pdf.Page.Paragraphs.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-file-attachment-with-custom-mime": { - "title": "Add File Attachment to PDF with Custom MIME Type Note", - "filename": "add-file-attachment-with-custom-mime.cs", - "description": "Demonstrates how to attach a file to a PDF using Aspose.Pdf by creating a FileSpecification and a FileAttachmentAnnotation. The example also explains that a custom MIME type cannot be set directly via the API.", + "create-dashed-border-rectangle-annotation": { + "title": "Create Dashed Border Rectangle Annotation", + "filename": "create-dashed-border-rectangle-annotation.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-dashed-rectangle-annotation": { + "title": "Create Dashed Rectangle Annotation in PDF", + "filename": "create-dashed-rectangle-annotation.cs", + "description": "Shows how to add a square (rectangle) annotation with a custom dashed border to a PDF document using Aspose.PDF.", "tags": [ - "attachment", - "pdf", - "mime-type", "annotation", - "aspose-pdf" + "dashed-border", + "rectangle", + "Aspose.Pdf", + "PDF-modification" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Annotations.FileAttachmentAnnotation", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.SquareAnnotation", + "Aspose.Pdf.Annotations.Border", + "Aspose.Pdf.Annotations.Dash", + "Aspose.Pdf.Color" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "remove-all-attachments-from-pdf": { - "title": "Remove All Attachments from PDF", - "filename": "remove-all-attachments-from-pdf.cs", - "description": "Shows how to delete every embedded attachment in a PDF file using Aspose.Pdf.Facades.PdfContentEditor.", + "create-image-stamp-from-memory-stream": { + "title": "Create Image Stamp From Memory Stream", + "filename": "create-image-stamp-from-memory-stream.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-multiline-text-stamp": { + "title": "Create Multiline Text Stamp on PDF", + "filename": "create-multiline-text-stamp.cs", + "description": "Shows how to add a multiline text stamp with Arial 14 pt blue font to a PDF using Aspose.Pdf Facade classes.", "tags": [ - "pdf", - "attachments", - "delete", - "aspose", + "text-stamp", + "multiline", + "font", + "color", "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.DeleteAttachments", - "Aspose.Pdf.Facades.PdfContentEditor.Save" + "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.Facades.Stamp", + "Aspose.Pdf.Text.FormattedText", + "Stamp.BindLogo", + "PdfFileStamp.BindPdf", + "PdfFileStamp.AddStamp", + "PdfFileStamp.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-attachment-preserve-existing": { - "title": "Add Attachment to PDF Without Deleting Existing Attachments", - "filename": "add-attachment-preserve-existing.cs", - "description": "Demonstrates how to add a new document attachment to an existing PDF while keeping any previously attached files intact using Aspose.Pdf.Facades.", + "create-nested-bookmarks-pdf": { + "title": "Create Nested Bookmarks in PDF using PdfContentEditor", + "filename": "create-nested-bookmarks-pdf.cs", + "description": "Shows how to add a parent bookmark (Chapter One) and its child section bookmarks to an existing PDF file using Aspose.Pdf's PdfContentEditor class.", "tags": [ + "bookmarks", "pdf", - "attachment", - "add", - "preserve", - "Aspose.Pdf" + "Aspose.Pdf", + "PdfContentEditor", + "nested" ], "apis_used": [ "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment", + "Aspose.Pdf.Facades.PdfContentEditor.CreateBookmarksAction", "Aspose.Pdf.Facades.PdfContentEditor.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "refresh-pdf-attachments": { - "title": "Refresh PDF Attachments", - "filename": "refresh-pdf-attachments.cs", - "description": "Shows how to remove all existing attachments from a PDF and add a new set of files using Aspose.Pdf.Facades.PdfContentEditor.", + "create-nested-bookmarks-pdfcontenteditor": { + "title": "Create Nested Bookmarks Pdfcontenteditor", + "filename": "create-nested-bookmarks-pdfcontenteditor.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-nested-pdf-bookmarks-three-levels": { + "title": "Create Nested Pdf Bookmarks Three Levels", + "filename": "create-nested-pdf-bookmarks-three-levels.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-nested-pdf-bookmarks": { + "title": "Create Nested PDF Bookmarks (Three Levels)", + "filename": "create-nested-pdf-bookmarks.cs", + "description": "Demonstrates building a three‑level bookmark hierarchy (section, subsection, sub‑subsection) in a PDF using Aspose.Pdf.Facades.", "tags": [ - "attachments", + "bookmarks", + "nested", "pdf", - "Aspose.Pdf", - "PdfContentEditor", - "delete-add" + "aspose-pdf", + "facades" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "PdfContentEditor.BindPdf", - "PdfContentEditor.DeleteAttachments", - "PdfContentEditor.AddDocumentAttachment", - "PdfContentEditor.Save", - "PdfContentEditor.Close" + "Aspose.Pdf.Facades.PdfBookmarkEditor", + "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", + "Aspose.Pdf.Facades.PdfBookmarkEditor.CreateBookmarks", + "Aspose.Pdf.Facades.PdfBookmarkEditor.Save", + "Aspose.Pdf.Bookmark", + "Aspose.Pdf.Bookmarks" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "attach-network-downloaded-file-to-pdf": { - "title": "Attach Network-Downloaded File to PDF", - "filename": "attach-network-downloaded-file-to-pdf.cs", - "description": "Demonstrates downloading a file via HttpClient, converting it to a memory stream, and attaching it to an existing PDF using Aspose.Pdf's PdfContentEditor.", + "create-pdf-image-catalog": { + "title": "Create Pdf Image Catalog", + "filename": "create-pdf-image-catalog.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-rubber-stamp-with-custom-appearance": { + "title": "Create Rubber Stamp Annotation with Custom Appearance Stream", + "filename": "create-rubber-stamp-with-custom-appearance.cs", + "description": "Demonstrates how to add a rubber‑stamp annotation to a PDF page using a custom appearance PDF stream.", "tags": [ - "pdf", - "attachment", - "download", - "memory-stream", + "rubber-stamp", + "custom-appearance", + "annotation", + "pdf-editing", "aspose-pdf" ], "apis_used": [ - "PdfContentEditor", - "PdfContentEditor.BindPdf", - "PdfContentEditor.AddDocumentAttachment", - "PdfContentEditor.Save" + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.CreateRubberStamp", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-large-attachment-to-pdf": { - "title": "Add Large Attachment to PDF and Monitor Memory Usage", - "filename": "add-large-attachment-to-pdf.cs", - "description": "Demonstrates adding a >10 MB attachment to a PDF using PdfContentEditor with a stream to avoid loading the whole file into memory, then checks memory consumption after the operation.", + "custom-annotation-appearance-stream": { + "title": "Custom Annotation Appearance Stream", + "filename": "custom-annotation-appearance-stream.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "custom-appearance-rubber-stamp": { + "title": "Create Custom Appearance Stream for Rubber Stamp Annotation", + "filename": "custom-appearance-rubber-stamp.cs", + "description": "Demonstrates building an in‑memory PDF with a vector graphic and applying it as a custom appearance stream to a rubber‑stamp annotation using Aspose.Pdf.", "tags": [ - "attachment", - "large-file", - "memory-usage", - "pdf", - "stream" + "rubber-stamp", + "custom-appearance", + "vector-graphic", + "pdf-editing", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.FileSizeLimitToMemoryLoading", + "Aspose.Pdf.Page", + "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Drawing.GraphInfo", + "Aspose.Pdf.Drawing.Rectangle", "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment", - "Aspose.Pdf.Facades.PdfContentEditor.Save", - "Aspose.Pdf.Document.FreeMemory" + "Aspose.Pdf.Facades.PdfContentEditor.CreateRubberStamp" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-attachment-and-retrieve-name": { - "title": "Add Attachment and Retrieve Its Name from PDF", - "filename": "add-attachment-and-retrieve-name.cs", - "description": "Demonstrates how to embed a file as a PDF attachment using PdfContentEditor and then extract the attachment's file specification name with PdfExtractor for verification.", + "decrypt-edit-reencrypt-pdf": { + "title": "Decrypt, Edit, and Re‑encrypt a Password‑Protected PDF", + "filename": "decrypt-edit-reencrypt-pdf.cs", + "description": "Demonstrates loading a password‑protected PDF with a user password, decrypting it for modifications, adding a text fragment, and then re‑encrypting with specific permissions before saving.", "tags": [ - "attachment", "pdf", - "facade", - "extractor", - "metadata" + "encryption", + "decryption", + "editing", + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment", - "Aspose.Pdf.Facades.PdfContentEditor.Save", - "Aspose.Pdf.Facades.PdfExtractor", - "Aspose.Pdf.Facades.PdfExtractor.ExtractAttachment", - "Aspose.Pdf.Facades.PdfExtractor.GetAttachNames", - "Aspose.Pdf.Facades.PdfExtractor.GetAttachmentInfo", - "Aspose.Pdf.FileSpecification" + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Decrypt", + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.Position", + "Aspose.Pdf.Permissions", + "Aspose.Pdf.CryptoAlgorithm" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, + "delete-all-attachments-verify-count": { + "title": "Delete All Attachments Verify Count", + "filename": "delete-all-attachments-verify-count.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "delete-all-pdf-attachments-verify": { "title": "Delete All PDF Attachments and Verify Count", "filename": "delete-all-pdf-attachments-verify.cs", @@ -2491,155 +3491,56 @@ "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-attachment-and-list-names": { - "title": "Add Attachment to PDF and List Attachment Names", - "filename": "add-attachment-and-list-names.cs", - "description": "Demonstrates how to embed a PDF file as an attachment using PdfContentEditor and then extract and display all attachment names with PdfExtractor.", + "delete-page-from-pdf": { + "title": "Delete a Specific Page from PDF", + "filename": "delete-page-from-pdf.cs", + "description": "Demonstrates how to remove page 5 from an existing PDF using Aspose.Pdf's PdfFileEditor and save the result to a new file.", "tags": [ - "attachment", "pdf", + "delete-page", "aspose", - "facade", - "extractor" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfExtractor", - "Aspose.Pdf.Text.TextFragment", - "PdfContentEditor.AddDocumentAttachment", - "PdfContentEditor.Save", - "PdfExtractor.ExtractAttachment", - "PdfExtractor.GetAttachNames" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:38:22Z", - "status": "verified" - }, - "add-unicode-attachment-description-to-pdf": { - "title": "Add Unicode Attachment Description to PDF and Verify Metadata", - "filename": "add-unicode-attachment-description-to-pdf.cs", - "description": "Demonstrates how to attach a file to a PDF with a Unicode description using the Facades API and then extracts the attachment info to confirm the description is stored correctly.", - "tags": [ - "attachment", - "unicode", - "metadata", - "pdf", - "facades" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment", - "Aspose.Pdf.Facades.PdfContentEditor.Save", - "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractAttachment", - "Aspose.Pdf.Facades.PdfExtractor.GetAttachmentInfo" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:38:22Z", - "status": "verified" - }, - "add-embedded-file-attachment-to-pdf": { - "title": "Add Embedded File Attachment to PDF", - "filename": "add-embedded-file-attachment-to-pdf.cs", - "description": "Shows how to embed an external file as a hidden attachment in an existing PDF using Aspose.Pdf's PdfContentEditor facade.", - "tags": [ - "pdf", - "attachment", - "embed", - "Aspose.Pdf", + "csharp", "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment", - "Aspose.Pdf.Facades.PdfContentEditor.Save" + "Aspose.Pdf.Facades.PdfFileEditor", + "Aspose.Pdf.Facades.PdfFileEditor.Delete" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-attachment-and-store-checksum-metadata": { - "title": "Add PDF Attachment and Store Checksum in Metadata", - "filename": "add-attachment-and-store-checksum-metadata.cs", - "description": "Demonstrates attaching a PDF file to another PDF using Aspose.Pdf.Facades, computing its MD5 checksum, and saving the checksum as custom metadata for integrity verification.", - "tags": [ - "attachment", - "metadata", - "checksum", - "Aspose.Pdf", - "facades" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment", - "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.SetMetaInfo" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:38:22Z", - "status": "verified" - }, - "encrypt-pdf-attachment-and-add-to-pdf": { - "title": "Encrypt PDF Attachment and Add to PDF", - "filename": "encrypt-pdf-attachment-and-add-to-pdf.cs", - "description": "Shows how to encrypt a PDF file with a password using PdfFileSecurity and then attach the encrypted PDF to another document with PdfContentEditor.", + "delete-pdf-attachments-matching-old-pdf": { + "title": "Delete PDF Attachments Matching '_old.pdf' Pattern", + "filename": "delete-pdf-attachments-matching-old-pdf.cs", + "description": "Demonstrates loading a PDF with Aspose.Pdf, enumerating embedded files, selecting those whose names end with \"_old.pdf\", and removing them before saving the document.", "tags": [ - "encryption", - "attachment", + "attachments", + "delete", + "embedded-files", "pdf", - "aspose", - "security" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfFileSecurity", - "Aspose.Pdf.Facades.PdfFileSecurity.EncryptFile", - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:38:22Z", - "status": "verified" - }, - "add-attachment-verify-extraction": { - "title": "Add Attachment to PDF and Verify Extraction", - "filename": "add-attachment-verify-extraction.cs", - "description": "Demonstrates how to attach a file to a PDF using PdfContentEditor, then extract the attachment with PdfExtractor and compare its bytes to the original file.", - "tags": [ - "pdf", - "attachment", - "add", - "extract", - "verification" - ], - "apis_used": [ - "PdfContentEditor", - "PdfContentEditor.AddDocumentAttachment", - "PdfContentEditor.Save", - "PdfExtractor", - "PdfExtractor.ExtractAttachment", - "PdfExtractor.GetAttachNames", - "PdfExtractor.GetAttachment" + "Aspose.Pdf.EmbeddedFileCollection", + "Aspose.Pdf.EmbeddedFileCollection.Delete", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "enable-centerwindow-viewer-preference": { - "title": "Enable CenterWindow Viewer Preference for PDF", - "filename": "enable-centerwindow-viewer-preference.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, set the CenterWindow viewer preference to true, and save the modified document.", + "disable-zoom-controls-in-pdf": { + "title": "Disable Zoom Controls in PDF Viewer", + "filename": "disable-zoom-controls-in-pdf.cs", + "description": "Shows how to hide toolbar and window UI using viewer preferences so the PDF cannot be zoomed, ensuring a fixed zoom level for consistent display.", "tags": [ "viewer-preference", - "center-window", + "disable-zoom", "pdf", - "aspose-pdf", - "csharp" + "Aspose.Pdf", + "PdfContentEditor" ], "apis_used": [ "PdfContentEditor", @@ -2652,81 +3553,93 @@ "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "hide-menubar-viewer-preference": { - "title": "Hide Menu Bar Viewer Preference for PDF", - "filename": "hide-menubar-viewer-preference.cs", - "description": "Demonstrates how to use Aspose.Pdf's PdfContentEditor to set the HideMenubar viewer preference so the PDF opens without a menu bar.", + "disable-zoom-controls-set-fixed-zoom": { + "title": "Disable Zoom Controls Set Fixed Zoom", + "filename": "disable-zoom-controls-set-fixed-zoom.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "edit-pdf-text-with-pdfcontenteditor-disposal": { + "title": "Edit PDF Text with PdfContentEditor and Ensure Proper Disposal", + "filename": "edit-pdf-text-with-pdfcontenteditor-disposal.cs", + "description": "Demonstrates how to replace text in a PDF using Aspose.Pdf.Facades.PdfContentEditor while guaranteeing that the editor and bound document are properly disposed in a finally block.", "tags": [ "pdf", - "viewer-preference", - "hide-menubar", - "aspose-pdf", - "facade" + "text-replacement", + "resource-management", + "facade", + "aspose" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.ChangeViewerPreference", + "Aspose.Pdf.Facades.PdfContentEditor.ReplaceText", "Aspose.Pdf.Facades.PdfContentEditor.Save", - "Aspose.Pdf.Document" + "Aspose.Pdf.Facades.PdfContentEditor.Close" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "set-pdf-viewer-preference-fullscreen": { - "title": "Set PDF Viewer Preference to Full‑Screen Mode", - "filename": "set-pdf-viewer-preference-fullscreen.cs", - "description": "Demonstrates using Aspose.Pdf.Facades.PdfContentEditor to enable the full‑screen viewer preference for a PDF document and save the modified file.", + "edit-pdf-with-logging-using-pdfcontenteditor": { + "title": "Edit PDF with Logging using PdfContentEditor", + "filename": "edit-pdf-with-logging-using-pdfcontenteditor.cs", + "description": "Demonstrates how to edit a PDF (replace text, add a web link, delete images) using Aspose.Pdf.Facades.PdfContentEditor while recording each operation to a log file with timestamps.", "tags": [ - "full-screen", - "viewer-preference", - "pdf", - "Aspose.Pdf", - "PdfContentEditor" + "pdf-editing", + "logging", + "aspose-pdf", + "pdfcontenteditor", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.ChangeViewerPreference", - "Aspose.Pdf.Facades.PdfContentEditor.Save", - "Aspose.Pdf.Facades.PdfContentEditor.Close" + "PdfContentEditor.BindPdf", + "PdfContentEditor.ReplaceText", + "PdfContentEditor.CreateWebLink", + "PdfContentEditor.DeleteImage", + "PdfContentEditor.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "set-pdf-viewer-preference-show-outline": { - "title": "Set PDF Viewer Preference to Show Outline Panel", - "filename": "set-pdf-viewer-preference-show-outline.cs", - "description": "Demonstrates how to configure the PDF viewer preference to display the document outline (bookmarks) panel by default using the Aspose.Pdf Facade API.", + "embed-memory-stream-as-pdf-attachment": { + "title": "Embed Memory Stream as PDF Attachment", + "filename": "embed-memory-stream-as-pdf-attachment.cs", + "description": "Demonstrates how to add a file attachment to a PDF directly from a MemoryStream using Aspose.Pdf's PdfContentEditor.", "tags": [ - "viewer-preference", - "outline", "pdf", - "facade", - "Aspose.Pdf" + "attachment", + "memory-stream", + "Aspose.Pdf", + "PdfContentEditor" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.ChangeViewerPreference", - "Aspose.Pdf.Facades.PdfContentEditor.Save", - "Aspose.Pdf.Facades.ViewerPreference" + "PdfContentEditor.BindPdf", + "PdfContentEditor.AddDocumentAttachment", + "PdfContentEditor.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "set-multiple-viewer-preferences-pdf": { - "title": "Set Multiple Viewer Preferences for a PDF", - "filename": "set-multiple-viewer-preferences-pdf.cs", - "description": "Demonstrates how to combine viewer preferences such as CenterWindow and HideToolbar using bitwise OR and apply them to a PDF with Aspose.Pdf.Facades before saving.", + "enable-centerwindow-viewer-preference": { + "title": "Enable CenterWindow Viewer Preference for PDF", + "filename": "enable-centerwindow-viewer-preference.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, set the CenterWindow viewer preference to true, and save the modified document.", "tags": [ "viewer-preference", + "center-window", "pdf", "aspose-pdf", - "pdf-editing", "csharp" ], "apis_used": [ @@ -2734,78 +3647,121 @@ "PdfContentEditor.BindPdf", "PdfContentEditor.ChangeViewerPreference", "PdfContentEditor.Save", - "PdfContentEditor.Close", "ViewerPreference" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "retrieve-pdf-viewer-preferences": { - "title": "Retrieve PDF Viewer Preferences", - "filename": "retrieve-pdf-viewer-preferences.cs", - "description": "Demonstrates how to bind a PDF with PdfContentEditor, obtain the viewer preference flags, and list each enabled flag on the console.", + "enable-displaydoctitle-viewer-preference": { + "title": "Enable DisplayDocTitle Viewer Preference in PDF", + "filename": "enable-displaydoctitle-viewer-preference.cs", + "description": "Loads a PDF, sets its document title, and configures the DisplayDocTitle viewer preference so the title appears in the window caption, then saves the updated file.", "tags": [ "pdf", - "viewer-preferences", + "title", + "viewer-preference", "aspose-pdf", - "csharp", - "facade" + "facades" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.SetTitle", "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.GetViewerPreference", - "Aspose.Pdf.Facades.PdfContentEditor.Dispose", + "Aspose.Pdf.Facades.PdfContentEditor.ChangeViewerPreference", + "Aspose.Pdf.Facades.PdfContentEditor.Save", "Aspose.Pdf.Facades.ViewerPreference" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "set-hide-menubar-viewer-preference": { - "title": "Set Hide Menubar Viewer Preference in PDF", - "filename": "set-hide-menubar-viewer-preference.cs", - "description": "Shows how to read a PDF's current viewer preferences, enable the HideMenubar flag, and save the updated document using Aspose.Pdf.", + "encrypt-attachment-and-add-to-pdf": { + "title": "Encrypt Attachment And Add To Pdf", + "filename": "encrypt-attachment-and-add-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "encrypt-pdf-128-aes-restrict-permissions": { + "title": "Encrypt PDF with 128‑bit AES and Restrict Permissions", + "filename": "encrypt-pdf-128-aes-restrict-permissions.cs", + "description": "Demonstrates how to encrypt a PDF using 128‑bit AES encryption and apply a privilege set that disables printing, editing, and other actions.", "tags": [ - "viewer-preference", - "hide-menubar", - "pdf-editing", - "aspose-pdf", - "csharp" + "pdf", + "encryption", + "aes", + "permissions", + "aspose-pdf" ], "apis_used": [ - "PdfContentEditor", - "PdfContentEditor.BindPdf", - "PdfContentEditor.GetViewerPreference", - "PdfContentEditor.ChangeViewerPreference", - "PdfContentEditor.Save", - "ViewerPreference" + "Aspose.Pdf.Facades.PdfFileSecurity", + "Aspose.Pdf.Facades.DocumentPrivilege", + "Aspose.Pdf.Facades.KeySize", + "Aspose.Pdf.Facades.Algorithm", + "Aspose.Pdf.Facades.PdfFileSecurity.EncryptFile" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "change-pdf-viewer-preferences-save": { - "title": "Change PDF Viewer Preferences and Save to New File", - "filename": "change-pdf-viewer-preferences-save.cs", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfContentEditor to bind an existing PDF, modify its viewer preferences, and save the edited document to a new file.", + "encrypt-pdf-attachment-and-add-to-pdf": { + "title": "Encrypt PDF Attachment and Add to PDF", + "filename": "encrypt-pdf-attachment-and-add-to-pdf.cs", + "description": "Shows how to encrypt a PDF file with a password using PdfFileSecurity and then attach the encrypted PDF to another document with PdfContentEditor.", "tags": [ + "encryption", + "attachment", "pdf", - "viewer-preferences", "aspose", - "facade", - "edit" + "security" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfFileSecurity", + "Aspose.Pdf.Facades.PdfFileSecurity.EncryptFile", "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.ChangeViewerPreference", - "Aspose.Pdf.Facades.PdfContentEditor.Save", - "Aspose.Pdf.Facades.PdfContentEditor.Close", - "Aspose.Pdf.Facades.ViewerPreference" + "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment" ], - "difficulty": "beginner", + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:38:22Z", + "status": "verified" + }, + "encrypt-pdf-with-attachment-and-viewer-preference": { + "title": "Encrypt Pdf With Attachment And Viewer Preference", + "filename": "encrypt-pdf-with-attachment-and-viewer-preference.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "encrypt-pdf-with-certificate-signature": { + "title": "Encrypt PDF with Certificate and Apply Digital Signature", + "filename": "encrypt-pdf-with-certificate-signature.cs", + "description": "Demonstrates how to encrypt a PDF using AES‑256, then sign the encrypted document with a certificate‑based digital signature using Aspose.Pdf facades.", + "tags": [ + "encryption", + "digital-signature", + "certificate", + "Aspose.Pdf", + "facade" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Facades.PdfFileSignature", + "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", + "Aspose.Pdf.Facades.PdfFileSignature.SetCertificate", + "Aspose.Pdf.Facades.PdfFileSignature.Sign", + "Aspose.Pdf.Forms.PKCS1" + ], + "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, @@ -2830,291 +3786,413 @@ "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "hide-pdf-toolbar-viewer-preference": { - "title": "Hide PDF Toolbar Using Viewer Preference", - "filename": "hide-pdf-toolbar-viewer-preference.cs", - "description": "Shows how to hide the PDF viewer toolbar by setting the HideToolbar viewer preference with Aspose.Pdf.Facades.PdfContentEditor.", + "export-pdf-annotations-to-json": { + "title": "Export PDF Annotations to JSON", + "filename": "export-pdf-annotations-to-json.cs", + "description": "Demonstrates extracting all annotations from a PDF with Aspose.Pdf, converting them to XFDF, and wrapping the XFDF XML in a JSON file for external analysis.", "tags": [ - "viewer-preference", - "hide-toolbar", - "pdf-editing", - "Aspose.Pdf", - "facade" + "annotations", + "export", + "json", + "xfdf", + "pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.ChangeViewerPreference", - "Aspose.Pdf.Facades.PdfContentEditor.Save", - "Aspose.Pdf.ViewerPreference" + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Facades.PdfAnnotationEditor.ExportAnnotationsToXfdf" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:38:22Z", + "status": "verified" + }, + "export-pdf-to-memorystream": { + "title": "Export Pdf To Memorystream", + "filename": "export-pdf-to-memorystream.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "export-pdf-viewer-preferences-to-xml": { + "title": "Export PDF Viewer Preferences to XML", + "filename": "export-pdf-viewer-preferences-to-xml.cs", + "description": "Demonstrates how to read viewer preference flags from a PDF using Aspose.Pdf.Facades and serialize them into an XML file for legacy system integration.", + "tags": [ + "pdf", + "viewer-preferences", + "xml", + "export", + "aspose" + ], + "apis_used": [ + "PdfContentEditor", + "PdfContentEditor.BindPdf", + "PdfContentEditor.GetViewerPreference", + "ViewerPreference" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "hide-scrollbars-pdf-viewer": { - "title": "Hide Scrollbars in PDF Viewer", - "filename": "hide-scrollbars-pdf-viewer.cs", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfContentEditor to set the HideWindowUI viewer preference, removing scrollbars and other UI elements for a cleaner display on small‑screen devices.", + "extract-first-image-from-pdf-page2-png": { + "title": "Extract First Image from PDF Page 2 as PNG", + "filename": "extract-first-image-from-pdf-page2-png.cs", + "description": "Shows how to extract the first image on a specific PDF page and save it as a PNG file using Aspose.Pdf.", "tags": [ - "viewer-preference", - "hide-scrollbars", "pdf", - "Aspose.Pdf", - "facade" + "image-extraction", + "png", + "aspose-pdf", + "page2" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.ChangeViewerPreference", - "Aspose.Pdf.Facades.PdfContentEditor.Save", - "Aspose.Pdf.Facades.ViewerPreference" + "Aspose.Pdf.Facades.PdfExtractor", + "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", + "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", + "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "enable-displaydoctitle-viewer-preference": { - "title": "Enable DisplayDocTitle Viewer Preference in PDF", - "filename": "enable-displaydoctitle-viewer-preference.cs", - "description": "Loads a PDF, sets its document title, and configures the DisplayDocTitle viewer preference so the title appears in the window caption, then saves the updated file.", + "extract-grayscale-images-from-pdf-page": { + "title": "Extract Grayscale Images From Pdf Page", + "filename": "extract-grayscale-images-from-pdf-page.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-images-from-pdf-pages": { + "title": "Extract Images From Pdf Pages", + "filename": "extract-images-from-pdf-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-images-from-pdf-rename-by-page-index": { + "title": "Extract Images from PDF and Rename by Page and Index", + "filename": "extract-images-from-pdf-rename-by-page-index.cs", + "description": "The example creates a PDF containing images, then uses Aspose.Pdf's PdfExtractor to extract each image per page and saves them with filenames that include the page number and image index.", "tags": [ "pdf", - "title", - "viewer-preference", + "image-extraction", "aspose-pdf", - "facades" + "page-index", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.SetTitle", - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.ChangeViewerPreference", - "Aspose.Pdf.Facades.PdfContentEditor.Save", - "Aspose.Pdf.Facades.ViewerPreference" + "Aspose.Pdf.Page", + "Aspose.Pdf.Drawing.Image", + "Aspose.Pdf.Facades.PdfExtractor", + "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", + "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", + "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:38:22Z", + "status": "verified" + }, + "extract-images-from-pdf": { + "title": "Extract Images from PDF", + "filename": "extract-images-from-pdf.cs", + "description": "Shows how to use Aspose.Pdf's PdfExtractor to pull all images from a PDF and save them as PNG files in a specified folder.", + "tags": [ + "pdf", + "image-extraction", + "aspose.pdf", + "csharp", + "facade" ], - "difficulty": "intermediate", + "apis_used": [ + "Aspose.Pdf.Facades.PdfExtractor", + "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", + "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", + "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" + ], + "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "retrieve-pdf-viewer-preferences-to-xml": { - "title": "Retrieve PDF Viewer Preferences and Save to XML", - "filename": "retrieve-pdf-viewer-preferences-to-xml.cs", - "description": "Loads a PDF, extracts its viewer preference flags with PdfContentEditor, writes the value to an XML file, and saves the unchanged PDF.", + "extract-page5-images-grayscale": { + "title": "Extract Images from Page 5 and Convert to Grayscale JPEG", + "filename": "extract-page5-images-grayscale.cs", + "description": "Demonstrates how to extract all images from the fifth page of a PDF using Aspose.Pdf.Facades, save them as JPEG files, and convert each to grayscale.", "tags": [ - "viewer-preferences", - "xml-serialization", "pdf", + "image-extraction", + "grayscale", "aspose-pdf", - "facades" + "csharp" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.GetViewerPreference", - "Aspose.Pdf.Facades.PdfContentEditor.Save" + "Aspose.Pdf.Facades.PdfExtractor", + "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", + "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", + "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "apply-viewer-preferences-from-json": { - "title": "Apply Viewer Preferences to PDFs from JSON Configuration", - "filename": "apply-viewer-preferences-from-json.cs", - "description": "Demonstrates reading viewer preference settings from a JSON file, building the combined ViewerPreference flags, and applying them to each PDF using Aspose.Pdf's PdfContentEditor.", + "extract-pdf-viewer-preferences-to-json": { + "title": "Extract Pdf Viewer Preferences To Json", + "filename": "extract-pdf-viewer-preferences-to-json.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-pdf-viewer-preferences-to-xml": { + "title": "Extract Pdf Viewer Preferences To Xml", + "filename": "extract-pdf-viewer-preferences-to-xml.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-pdf-viewer-preferences-to-xml__v2": { + "title": "Extract Pdf Viewer Preferences To Xml__V2", + "filename": "extract-pdf-viewer-preferences-to-xml__v2.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-viewer-preferences-to-json": { + "title": "Extract PDF Viewer Preferences and Save Layout/Zoom to JSON", + "filename": "extract-viewer-preferences-to-json.cs", + "description": "Demonstrates how to read a PDF's viewer preference flags and current zoom factor using Aspose.Pdf facades, then store the layout and zoom values in a formatted JSON configuration file.", "tags": [ + "pdf", "viewer-preferences", "json", - "pdf", - "aspose-pdf", - "csharp" + "configuration", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.ChangeViewerPreference", - "Aspose.Pdf.Facades.PdfContentEditor.Save", + "Aspose.Pdf.Facades.PdfContentEditor.GetViewerPreference", + "Aspose.Pdf.Facades.PdfViewer", + "Aspose.Pdf.Facades.PdfViewer.BindPdf", + "Aspose.Pdf.Facades.PdfViewer.ScaleFactor", "Aspose.Pdf.Facades.ViewerPreference" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "hide-toolbar-and-menubar-viewer-preferences": { - "title": "Hide Toolbar and Menubar Viewer Preferences", - "filename": "hide-toolbar-and-menubar-viewer-preferences.cs", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfContentEditor to set the HideToolbar and HideMenubar viewer preferences, creating a minimalistic PDF UI.", + "fill-acroform-text-field": { + "title": "Fill AcroForm Text Field with Aspose PDF Form", + "filename": "fill-acroform-text-field.cs", + "description": "Shows how to load a PDF containing an AcroForm, fill the \"CustomerName\" text field with a value, and save the updated document using Aspose.Pdf.Facades.", "tags": [ - "viewer-preferences", - "hide-toolbar", - "hide-menubar", - "pdf-editing", - "aspose-pdf" + "acroform", + "fill-field", + "pdf", + "aspose-pdf", + "csharp" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.ChangeViewerPreference", - "Aspose.Pdf.ViewerPreference" + "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.Form.FillField", + "Aspose.Pdf.Facades.Form.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "retrieve-verify-incremental-viewer-preferences": { - "title": "Retrieve and Verify Incremental Viewer Preferences in PDF", - "filename": "retrieve-verify-incremental-viewer-preferences.cs", - "description": "Demonstrates how to change PDF viewer preferences step‑by‑step with PdfContentEditor, read the current preference after each change, and confirm the combined settings in the saved document.", + "fill-pdf-acroform-from-xml": { + "title": "Fill PDF AcroForm Fields from XML using XPath", + "filename": "fill-pdf-acroform-from-xml.cs", + "description": "Demonstrates creating a PDF with AcroForm fields, extracting values from an XML document via XPath, and populating the fields using Aspose.Pdf's Form facade.", "tags": [ - "viewer-preference", - "pdf-editing", - "incremental", - "aspose-pdf", - "csharp" + "pdf", + "acroform", + "xml", + "xpath", + "aspose.pdf" ], "apis_used": [ - "PdfContentEditor", - "PdfContentEditor.BindPdf", - "PdfContentEditor.ChangeViewerPreference", - "PdfContentEditor.GetViewerPreference", - "PdfContentEditor.Save", - "ViewerPreference" + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.Form.FillField", + "Aspose.Pdf.Facades.Form.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "set-pdf-viewer-preference-single-page": { - "title": "Set PDF Viewer Preference to Single-Page Layout", - "filename": "set-pdf-viewer-preference-single-page.cs", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfContentEditor to change a PDF's viewer preference to a single‑page layout and save the modified document.", + "fill-pdf-form-fields-from-json": { + "title": "Fill PDF Form Fields from JSON", + "filename": "fill-pdf-form-fields-from-json.cs", + "description": "Shows how to populate AcroForm fields in a PDF document using a JSON file with Aspose.Pdf.Facades.Form.", "tags": [ - "viewer-preference", - "single-page", "pdf", - "Aspose.Pdf", - "PdfContentEditor" + "form", + "json", + "fill", + "aspose" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.ChangeViewerPreference", - "Aspose.Pdf.Facades.PdfContentEditor.Save", - "Aspose.Pdf.Facades.PdfContentEditor.Close" + "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.Form.ImportJson", + "Aspose.Pdf.Facades.Form.Save", + "Aspose.Pdf.Facades.Form.Dispose" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "set-continuous-view-mode": { - "title": "Set Continuous View Mode for PDF", - "filename": "set-continuous-view-mode.cs", - "description": "Demonstrates how to configure a PDF to use continuous (one‑column) view mode using Aspose.Pdf.Facades.", + "fill-pdf-form-fields-from-json__v2": { + "title": "Fill PDF Form Fields from JSON Configuration", + "filename": "fill-pdf-form-fields-from-json__v2.cs", + "description": "Demonstrates loading default field values from a JSON file and populating a PDF form using Aspose.Pdf.Facades.Form.", "tags": [ - "viewer-preference", - "continuous-scroll", "pdf", - "Aspose.Pdf", - "PdfContentEditor" + "form", + "json", + "fill", + "aspose" ], "apis_used": [ - "PdfContentEditor", - "PdfContentEditor.BindPdf", - "PdfContentEditor.ChangeViewerPreference", - "ViewerPreference.PageLayoutOneColumn", - "PdfContentEditor.Save" + "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.Form.FillField", + "Aspose.Pdf.Facades.Form.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "map-pdf-viewer-preferences-to-toggles": { - "title": "Map PDF Viewer Preferences to Interactive Toggles", - "filename": "map-pdf-viewer-preferences-to-toggles.cs", - "description": "Loads a PDF, displays its current viewer preference flags, lets the user toggle each flag via console prompts, and saves the updated preferences to a new PDF.", + "folder-pdf-monitor-add-text": { + "title": "Folder Pdf Monitor Add Text", + "filename": "folder-pdf-monitor-add-text.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "generate-pdf-catalog-of-extracted-images": { + "title": "Generate PDF Catalog of Extracted Images", + "filename": "generate-pdf-catalog-of-extracted-images.cs", + "description": "Extracts all images from a source PDF and builds a new PDF containing thumbnail previews of each extracted image.", "tags": [ - "viewer-preference", - "pdf", - "toggle", - "console", - "Aspose.Pdf" + "image extraction", + "pdf catalog", + "thumbnails", + "Aspose.Pdf", + "PdfExtractor" ], "apis_used": [ + "Aspose.Pdf.Facades.PdfExtractor", + "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", + "Aspose.Pdf.Facades.PdfExtractor.GetNextImage", "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.GetViewerPreference", - "Aspose.Pdf.Facades.PdfContentEditor.ChangeViewerPreference", - "Aspose.Pdf.Facades.PdfContentEditor.Save", - "Aspose.Pdf.Facades.ViewerPreference" + "Aspose.Pdf.Image", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "toggle-fullscreen-viewer-preference": { - "title": "Toggle FullScreen Viewer Preference in PDF", - "filename": "toggle-fullscreen-viewer-preference.cs", - "description": "Shows how to read a PDF's current viewer preferences, toggle the FullScreen mode flag, and save the modified document using Aspose.Pdf.Facades.", + "get-pdf-viewer-preferences-zoom": { + "title": "Get PDF Viewer Preferences and Zoom Settings", + "filename": "get-pdf-viewer-preferences-zoom.cs", + "description": "Demonstrates how to read a PDF's viewer preference flags (page layout) and the current zoom coefficient using Aspose.Pdf facades.", "tags": [ - "full-screen", - "viewer-preference", - "pdf", - "toggle", - "aspose-pdf" + "viewer-preferences", + "page-layout", + "zoom", + "Aspose.Pdf", + "facades" ], "apis_used": [ - "PdfContentEditor", - "PdfContentEditor.BindPdf", - "PdfContentEditor.GetViewerPreference", - "PdfContentEditor.ChangeViewerPreference", - "PdfContentEditor.Save", - "ViewerPreference" + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.GetViewerPreference", + "Aspose.Pdf.Facades.ViewerPreference", + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.Facades.PdfPageEditor.Zoom" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "apply-viewer-preferences-to-decrypted-pdf": { - "title": "Apply Viewer Preferences to Decrypted PDF", - "filename": "apply-viewer-preferences-to-decrypted-pdf.cs", - "description": "The example shows how to decrypt an encrypted PDF using a password and then set viewer preferences such as hiding the menu bar and toolbar before saving the final document.", + "hide-annotations-in-fullscreen-mode": { + "title": "Hide Annotations In Fullscreen Mode", + "filename": "hide-annotations-in-fullscreen-mode.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "hide-annotations-when-fullscreen": { + "title": "Hide Annotations When PDF Is FullScreen", + "filename": "hide-annotations-when-fullscreen.cs", + "description": "Demonstrates how to detect a FullScreen viewer preference in a PDF and set all annotations to hidden for a cleaner display using Aspose.Pdf.", "tags": [ - "pdf", - "decryption", + "annotations", + "fullscreen", "viewer-preferences", - "aspose-pdf", - "facade" + "Aspose.Pdf", + "document-editing" ], "apis_used": [ - "PdfFileSecurity", - "PdfFileSecurity.DecryptFile", - "PdfContentEditor", - "PdfContentEditor.BindPdf", - "PdfContentEditor.ChangeViewerPreference", - "PdfContentEditor.Save" + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.AnnotationFlags", + "Aspose.Pdf.PageMode" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "export-pdf-viewer-preferences-to-xml": { - "title": "Export PDF Viewer Preferences to XML", - "filename": "export-pdf-viewer-preferences-to-xml.cs", - "description": "Demonstrates how to read viewer preference flags from a PDF using Aspose.Pdf.Facades and serialize them into an XML file for legacy system integration.", + "hide-menubar-viewer-preference": { + "title": "Hide Menu Bar Viewer Preference for PDF", + "filename": "hide-menubar-viewer-preference.cs", + "description": "Demonstrates how to use Aspose.Pdf's PdfContentEditor to set the HideMenubar viewer preference so the PDF opens without a menu bar.", "tags": [ "pdf", - "viewer-preferences", - "xml", - "export", - "aspose" + "viewer-preference", + "hide-menubar", + "aspose-pdf", + "facade" ], "apis_used": [ - "PdfContentEditor", - "PdfContentEditor.BindPdf", - "PdfContentEditor.GetViewerPreference", - "ViewerPreference" + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.ChangeViewerPreference", + "Aspose.Pdf.Facades.PdfContentEditor.Save", + "Aspose.Pdf.Document" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", @@ -3142,810 +4220,820 @@ "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-text-annotation-to-pdf-page": { - "title": "Add Text Annotation to PDF Page", - "filename": "add-text-annotation-to-pdf-page.cs", - "description": "Demonstrates how to add a custom text (sticky‑note) annotation at a specific location on the first page of an existing PDF using Aspose.Pdf.Facades.", + "hide-pdf-toolbar-viewer-preference": { + "title": "Hide PDF Toolbar Using Viewer Preference", + "filename": "hide-pdf-toolbar-viewer-preference.cs", + "description": "Shows how to hide the PDF viewer toolbar by setting the HideToolbar viewer preference with Aspose.Pdf.Facades.PdfContentEditor.", "tags": [ - "annotation", - "pdf", - "text", + "viewer-preference", + "hide-toolbar", + "pdf-editing", "Aspose.Pdf", "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.CreateText", - "Aspose.Pdf.Facades.PdfContentEditor.Save" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:38:22Z", - "status": "verified" - }, - "add-web-link-annotation-to-pdf": { - "title": "Add Web Link Annotation to PDF", - "filename": "add-web-link-annotation-to-pdf.cs", - "description": "Shows how to bind an existing PDF, create a clickable web link annotation on a specific page using PdfContentEditor, and save the updated document.", - "tags": [ - "web-link", - "annotation", - "pdf", - "Aspose.Pdf", - "PdfContentEditor" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.CreateWebLink", - "Aspose.Pdf.Facades.PdfContentEditor.Save" + "Aspose.Pdf.Facades.PdfContentEditor.ChangeViewerPreference", + "Aspose.Pdf.Facades.PdfContentEditor.Save", + "Aspose.Pdf.ViewerPreference" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-image-stamp-to-specific-page": { - "title": "Add Image Stamp to Specific PDF Page", - "filename": "add-image-stamp-to-specific-page.cs", - "description": "Shows how to create an image stamp with PdfFileStamp and Stamp, configure its position, size, opacity, and place it on the second page of a PDF.", - "tags": [ - "image-stamp", - "pdf", - "aspose", - "facade", - "page-number" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.Stamp", - "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", - "Aspose.Pdf.Facades.PdfFileStamp.Close", - "Aspose.Pdf.Facades.Stamp.BindImage", - "Aspose.Pdf.Facades.Stamp.SetOrigin", - "Aspose.Pdf.Facades.Stamp.SetImageSize" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:38:22Z", - "status": "verified" - }, - "add-free-text-annotation-helvetica": { - "title": "Add Free‑Text Annotation with Helvetica Font to PDF", - "filename": "add-free-text-annotation-helvetica.cs", - "description": "Demonstrates how to add a free‑text annotation with Helvetica, size 12, blue color to a PDF using the Aspose.Pdf Facade API.", + "hide-scrollbars-disable-page-transitions": { + "title": "Hide Scrollbars and Disable Page Transitions in PDF", + "filename": "hide-scrollbars-disable-page-transitions.cs", + "description": "Shows how to set viewer preferences to hide UI elements such as scrollbars and how to remove page transition effects using Aspose.Pdf facades.", "tags": [ - "free-text", - "annotation", - "pdf", - "facade", - "appearance" + "viewer-preference", + "hide-scrollbars", + "disable-transitions", + "pdf-facade", + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Annotations.FreeTextAnnotation", - "Aspose.Pdf.DefaultAppearance", - "Aspose.Pdf.Rectangle" + "PdfContentEditor", + "PdfPageEditor", + "Document", + "PdfContentEditor.ChangeViewerPreference", + "PdfPageEditor.TransitionType", + "PdfPageEditor.TransitionDuration", + "PdfPageEditor.ApplyChanges", + "PdfContentEditor.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-highlight-annotation-to-pdf-page__v2": { - "title": "Add Highlight Annotation to PDF Page", - "filename": "add-highlight-annotation-to-pdf-page__v2.cs", - "description": "Shows how to apply a yellow highlight annotation to a selected text rectangle on page three of a PDF using Aspose.Pdf.Facades.", + "hide-scrollbars-pdf-viewer": { + "title": "Hide Scrollbars in PDF Viewer", + "filename": "hide-scrollbars-pdf-viewer.cs", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfContentEditor to set the HideWindowUI viewer preference, removing scrollbars and other UI elements for a cleaner display on small‑screen devices.", "tags": [ - "highlight", - "annotation", + "viewer-preference", + "hide-scrollbars", "pdf", "Aspose.Pdf", - "PdfContentEditor" + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.CreateMarkup", + "Aspose.Pdf.Facades.PdfContentEditor.ChangeViewerPreference", "Aspose.Pdf.Facades.PdfContentEditor.Save", - "Aspose.Pdf.Facades.PdfContentEditor.Close" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:38:22Z", - "status": "verified" - }, - "underline-specific-phrase-page-4": { - "title": "Underline Specific Phrase on PDF Page 4", - "filename": "underline-specific-phrase-page-4.cs", - "description": "Shows how to locate a target phrase on the fourth page of a PDF using TextFragmentAbsorber and add an underline annotation with PdfContentEditor.", - "tags": [ - "underline", - "annotation", - "text-search", - "pdf-edit", - "Aspose.Pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextFragmentAbsorber", - "Aspose.Pdf.Text.TextSearchOptions", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Facades.PdfContentEditor.CreateMarkup" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:38:22Z", - "status": "verified" - }, - "add-square-annotation-red-border": { - "title": "Add Square Annotation with Red Border to PDF", - "filename": "add-square-annotation-red-border.cs", - "description": "Demonstrates how to place a square annotation with a red border and semi‑transparent fill on page 5 of a PDF using Aspose.Pdf.", - "tags": [ - "annotation", - "square", - "border", - "opacity", - "Aspose.Pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.SquareAnnotation", - "Aspose.Pdf.Annotations.Border" + "Aspose.Pdf.Facades.ViewerPreference" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-green-circle-annotation-to-pdf-page__v2": { - "title": "Add Green Circle Annotation to PDF Page", - "filename": "add-green-circle-annotation-to-pdf-page__v2.cs", - "description": "Shows how to bind an existing PDF, create a thick green circle annotation around a diagram on page six, and save the modified document using Aspose.Pdf.Facades.", - "tags": [ - "annotation", - "circle", - "pdf", - "Aspose.Pdf", - "PdfContentEditor" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.CreateSquareCircle", - "Aspose.Pdf.Facades.PdfContentEditor.Save" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:38:22Z", + "hide-scrollbars-viewer-preference": { + "title": "Hide Scrollbars Viewer Preference", + "filename": "hide-scrollbars-viewer-preference.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "add-line-annotation-with-arrowheads": { - "title": "Add Line Annotation with Arrowheads to PDF", - "filename": "add-line-annotation-with-arrowheads.cs", - "description": "Demonstrates using Aspose.Pdf.Facades.PdfContentEditor to create a line annotation with arrowheads at both ends on a PDF page.", + "hide-toolbar-and-menubar-viewer-preference": { + "title": "Hide Toolbar and Menu Bar in PDF Viewer Preferences", + "filename": "hide-toolbar-and-menubar-viewer-preference.cs", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfContentEditor to set viewer preferences that hide the toolbar and menu bar when a PDF is opened.", "tags": [ + "viewer-preference", + "toolbar", + "menubar", "pdf", - "annotation", - "line", - "arrowhead", - "facade" + "Aspose.Pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.CreateLine", - "Aspose.Pdf.Facades.PdfContentEditor.Save", - "Aspose.Pdf.Document" + "PdfContentEditor", + "PdfContentEditor.BindPdf", + "PdfContentEditor.ChangeViewerPreference", + "PdfContentEditor.Save", + "ViewerPreference" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-popup-annotation-to-pdf": { - "title": "Add Popup Annotation to PDF", - "filename": "add-popup-annotation-to-pdf.cs", - "description": "Shows how to create a popup annotation that displays a note when the user hovers over it using Aspose.Pdf's PdfContentEditor.", + "hide-toolbar-and-menubar-viewer-preferences": { + "title": "Hide Toolbar and Menubar Viewer Preferences", + "filename": "hide-toolbar-and-menubar-viewer-preferences.cs", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfContentEditor to set the HideToolbar and HideMenubar viewer preferences, creating a minimalistic PDF UI.", "tags": [ - "popup", - "annotation", - "hover", - "pdf", - "Aspose" + "viewer-preferences", + "hide-toolbar", + "hide-menubar", + "pdf-editing", + "aspose-pdf" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.CreatePopup", - "Aspose.Pdf.Facades.PdfContentEditor.Save" + "Aspose.Pdf.Facades.PdfContentEditor.ChangeViewerPreference", + "Aspose.Pdf.ViewerPreference" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-batch-text-annotations-to-pdf": { - "title": "Add Batch Text Annotations to PDF", - "filename": "add-batch-text-annotations-to-pdf.cs", - "description": "Shows how to add multiple text annotations to a PDF in a single batch by looping over annotation definitions and using the PdfAnnotationEditor facade.", + "hide-toolbar-and-menubar": { + "title": "Hide Toolbar And Menubar", + "filename": "hide-toolbar-and-menubar.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "hide-toolbar-using-pdfcontenteditor": { + "title": "Hide Toolbar Using Pdfcontenteditor", + "filename": "hide-toolbar-using-pdfcontenteditor.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "import-annotations-from-json": { + "title": "Import Annotations from JSON and Apply to PDF", + "filename": "import-annotations-from-json.cs", + "description": "Shows how to read annotation definitions from a JSON file and use Aspose.Pdf.Facades.PdfContentEditor to add text, web‑link, line, and square/circle annotations to a PDF document.", "tags": [ - "annotations", - "batch", - "text", "pdf", - "Aspose.Pdf" + "annotations", + "json", + "aspose.pdf", + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Color", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", - "Aspose.Pdf.Page.Annotations.Add" + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.CreateText", + "Aspose.Pdf.Facades.PdfContentEditor.CreateWebLink", + "Aspose.Pdf.Facades.PdfContentEditor.CreateLine", + "Aspose.Pdf.Facades.PdfContentEditor.CreateSquareCircle", + "Aspose.Pdf.Facades.PdfContentEditor.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-semi-transparent-text-stamp": { - "title": "Add Semi-Transparent Text Stamp to PDF", - "filename": "add-semi-transparent-text-stamp.cs", - "description": "Demonstrates how to create a text stamp with 50% opacity and apply it as a watermark to a PDF using Aspose.Pdf.Facades.", + "insert-blank-page-add-header": { + "title": "Insert Blank Page and Add Header to PDF", + "filename": "insert-blank-page-add-header.cs", + "description": "Demonstrates how to insert a new blank page at a specific position in a PDF and apply a header annotation to all pages using Aspose.Pdf facades.", "tags": [ - "stamp", - "opacity", - "watermark", "pdf", + "insert-page", + "header", + "aspose", "facade" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Pages.Insert", + "Aspose.Pdf.Text.FormattedText", "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.Stamp", - "Aspose.Pdf.Facades.FormattedText", - "PdfFileStamp.BindPdf", - "PdfFileStamp.AddStamp", - "Stamp.BindLogo", - "Stamp.Opacity" + "Aspose.Pdf.Facades.PdfFileStamp.AddHeader", + "Aspose.Pdf.Facades.PdfFileStamp.Save", + "Aspose.Pdf.Facades.PdfFileStamp.Close" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "set-annotation-opacity-image-stamp": { - "title": "Set Annotation Opacity and Apply Image Stamp to PDF", - "filename": "set-annotation-opacity-image-stamp.cs", - "description": "Shows how to add an image stamp to all pages of a PDF and set its opacity to 0.75 using Aspose.Pdf Facades.", + "insert-image-annotation-with-caption": { + "title": "Insert Image Annotation with Caption in PDF", + "filename": "insert-image-annotation-with-caption.cs", + "description": "Demonstrates adding an image as a stamp annotation at specific coordinates and placing a text caption underneath using Aspose.Pdf Facade and core APIs.", "tags": [ - "opacity", + "image", + "annotation", + "caption", "stamp", - "pdf", - "facades", - "image" + "pdf" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.Stamp", "Aspose.Pdf.Facades.PdfFileStamp", - "Stamp.BindImage", - "Stamp.Opacity", - "PdfFileStamp.BindPdf", - "PdfFileStamp.AddStamp", - "PdfFileStamp.Save" + "Aspose.Pdf.Facades.Stamp", + "Aspose.Pdf.Facades.Stamp.BindImage", + "Aspose.Pdf.Facades.Stamp.SetOrigin", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.Position", + "Aspose.Pdf.FontRepository.FindFont" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "rotate-text-annotation-90-degrees": { - "title": "Rotate Text Annotation by 90 Degrees in PDF", - "filename": "rotate-text-annotation-90-degrees.cs", - "description": "Shows how to add a text stamp to a PDF document and rotate it 90 degrees using Aspose.Pdf facades.", + "insert-image-with-caption-annotation": { + "title": "Insert Image With Caption Annotation", + "filename": "insert-image-with-caption-annotation.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "lock-text-annotation-in-pdf": { + "title": "Lock Text Annotation In Pdf", + "filename": "lock-text-annotation-in-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "lock-text-annotation": { + "title": "Lock a Text Annotation in a PDF", + "filename": "lock-text-annotation.cs", + "description": "Shows how to create a text annotation, apply the Locked flag to prevent user edits, and save the PDF using the PdfAnnotationEditor facade.", "tags": [ - "rotation", - "text-stamp", - "pdf", "annotation", - "Aspose.Pdf" + "lock", + "pdf", + "Aspose.Pdf", + "facade" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.Stamp", - "Aspose.Pdf.Text.FormattedText", - "Aspose.Pdf.Facades.PdfFileStamp.AddStamp" + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Annotations.AnnotationFlags", + "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "create-rubber-stamp-with-custom-appearance": { - "title": "Create Rubber Stamp Annotation with Custom Appearance Stream", - "filename": "create-rubber-stamp-with-custom-appearance.cs", - "description": "Demonstrates how to add a rubber‑stamp annotation to a PDF page using a custom appearance PDF stream.", + "log-pdf-edit-operations": { + "title": "Log Pdf Edit Operations", + "filename": "log-pdf-edit-operations.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "map-pdf-viewer-preferences-to-toggles": { + "title": "Map PDF Viewer Preferences to Interactive Toggles", + "filename": "map-pdf-viewer-preferences-to-toggles.cs", + "description": "Loads a PDF, displays its current viewer preference flags, lets the user toggle each flag via console prompts, and saves the updated preferences to a new PDF.", "tags": [ - "rubber-stamp", - "custom-appearance", - "annotation", - "pdf-editing", - "aspose-pdf" + "viewer-preference", + "pdf", + "toggle", + "console", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.CreateRubberStamp", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfContentEditor.GetViewerPreference", + "Aspose.Pdf.Facades.PdfContentEditor.ChangeViewerPreference", + "Aspose.Pdf.Facades.PdfContentEditor.Save", + "Aspose.Pdf.Facades.ViewerPreference" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-text-annotation-thick-border": { - "title": "Add Text Annotation with Thick Border to PDF", - "filename": "add-text-annotation-thick-border.cs", - "description": "Shows how to create a text annotation on a PDF page and set a custom three‑point border using Aspose.Pdf facades.", + "move-last-page-to-beginning": { + "title": "Move Last Page to Beginning of PDF", + "filename": "move-last-page-to-beginning.cs", + "description": "Shows how to reorder a PDF by extracting the last page, inserting it at the start, and deleting the original last page using Aspose.Pdf.Facades.", "tags": [ - "annotation", - "border", "pdf", - "facade", - "text-annotation" + "reorder", + "pages", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Annotations.Border", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Facades.PdfFileEditor", + "Aspose.Pdf.Facades.PdfFileEditor.Extract", + "Aspose.Pdf.Facades.PdfFileEditor.Insert", + "Aspose.Pdf.Facades.PdfFileEditor.Delete" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "create-dashed-rectangle-annotation": { - "title": "Create Dashed Rectangle Annotation in PDF", - "filename": "create-dashed-rectangle-annotation.cs", - "description": "Shows how to add a square (rectangle) annotation with a custom dashed border to a PDF document using Aspose.PDF.", + "password-protect-pdf-disable-printing": { + "title": "Password Protect PDF and Disable Printing", + "filename": "password-protect-pdf-disable-printing.cs", + "description": "Shows how to encrypt a PDF with a user and owner password using 256‑bit AES and remove all permissions, which disables printing.", "tags": [ - "annotation", - "dashed-border", - "rectangle", - "Aspose.Pdf", - "PDF-modification" + "pdf encryption", + "password protection", + "disable printing", + "permissions", + "aes256" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.SquareAnnotation", - "Aspose.Pdf.Annotations.Border", - "Aspose.Pdf.Annotations.Dash", - "Aspose.Pdf.Color" + "Aspose.Pdf.Permissions", + "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "set-light-gray-background-for-text-annotations": { - "title": "Set Light Gray Background for Text Annotations", - "filename": "set-light-gray-background-for-text-annotations.cs", - "description": "Shows how to change the background color of all TextAnnotation objects in a PDF to light gray using PdfAnnotationEditor.", + "pdf-pipeline-attachments-viewer-preferences-annotations": { + "title": "Pdf Pipeline Attachments Viewer Preferences Annotations", + "filename": "pdf-pipeline-attachments-viewer-preferences-annotations.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "pdfcontenteditor-wrapper-text-replace-attachment": { + "title": "Pdfcontenteditor Wrapper Text Replace Attachment", + "filename": "pdfcontenteditor-wrapper-text-replace-attachment.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "persist-viewer-preferences-after-editing-pdf": { + "title": "Persist Viewer Preferences After Editing PDF", + "filename": "persist-viewer-preferences-after-editing-pdf.cs", + "description": "Shows how to set viewer preferences on a PDF using PdfContentEditor, save the document, and verify that the preferences persist after reopening the file.", "tags": [ - "text-annotation", - "background-color", + "viewer-preferences", "pdf-editing", - "Aspose.Pdf", - "annotation" + "unit-test", + "aspose-pdf", + "facade" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ModifyAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.ChangeViewerPreference", + "Aspose.Pdf.Facades.PdfContentEditor.Save", + "Aspose.Pdf.Facades.PdfContentEditor.GetViewerPreference" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "rotate-stamp-annotation-90-degrees": { - "title": "Rotate Stamp Annotation 90 Degrees Clockwise", - "filename": "rotate-stamp-annotation-90-degrees.cs", - "description": "Demonstrates how to add an image stamp to a PDF and rotate it 90 degrees clockwise using Aspose.Pdf.Facades.", + "persist-viewer-preferences-in-pdf": { + "title": "Persist Viewer Preferences In Pdf", + "filename": "persist-viewer-preferences-in-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "populate-pdf-form-fields-from-json": { + "title": "Populate Pdf Form Fields From Json", + "filename": "populate-pdf-form-fields-from-json.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "print-pdf-custom-page-ranges": { + "title": "Print Pdf Custom Page Ranges", + "filename": "print-pdf-custom-page-ranges.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "print-pdf-duplex-collated-copies": { + "title": "Print PDF with Duplex and Collated Copies", + "filename": "print-pdf-duplex-collated-copies.cs", + "description": "Shows how to print a PDF using Aspose.Pdf.Facades with duplex mode enabled and collated multiple copies.", "tags": [ - "stamp", - "rotation", + "printing", + "duplex", + "collated", "pdf", - "image", "facade" ], "apis_used": [ - "PdfFileStamp", - "Stamp", - "PdfFileStamp.BindPdf", - "Stamp.BindImage", - "Stamp.Rotation", - "Stamp.SetOrigin", - "PdfFileStamp.AddStamp", - "PdfFileStamp.Save" + "Aspose.Pdf.Document", + "Aspose.Pdf.Printing.PrintDuplex", + "Aspose.Pdf.Facades.PdfViewer", + "Aspose.Pdf.Facades.PdfViewer.BindPdf", + "Aspose.Pdf.Facades.PdfViewer.PrintDocumentWithSettings" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-file-attachment-annotation": { - "title": "Add File Attachment Annotation to PDF", - "filename": "add-file-attachment-annotation.cs", - "description": "Demonstrates how to attach a file to a PDF page as a clickable annotation using Aspose.Pdf.Facades. The annotation appears as an icon that opens the attached document when clicked.", + "print-pdf-multiple-copies-landscape": { + "title": "Print PDF to Default Printer with Multiple Copies and Landscape Orientation", + "filename": "print-pdf-multiple-copies-landscape.cs", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, configure printer and page settings, and print the document to the default printer with two copies in landscape mode.", "tags": [ "pdf", - "attachment", - "annotation", - "aspose", - "facades" + "printing", + "landscape", + "copies", + "aspose" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "PdfContentEditor.BindPdf", - "PdfContentEditor.CreateFileAttachment", - "PdfContentEditor.Save" + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfViewer", + "Aspose.Pdf.Facades.PdfViewer.PrintDocumentWithSettings", + "Aspose.Pdf.Printing.PrinterSettings", + "Aspose.Pdf.Printing.PageSettings" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-javascript-alert-annotation-to-pdf": { - "title": "Add JavaScript Alert Annotation to PDF", - "filename": "add-javascript-alert-annotation-to-pdf.cs", - "description": "Shows how to bind an existing PDF, create a JavaScript link annotation that triggers an alert, and save the updated document using Aspose.Pdf.", + "print-selected-pdf-pages": { + "title": "Print Selected PDF Pages (1‑5, 8‑10) Using PdfViewer", + "filename": "print-selected-pdf-pages.cs", + "description": "Shows how to extract specific pages from a PDF and print them with a custom page range using Aspose.Pdf's PdfFileEditor and PdfViewer.", "tags": [ - "javascript", - "annotation", "pdf", - "aspose", - "link" + "printing", + "page-range", + "extraction", + "aspose" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "PdfContentEditor.BindPdf", - "PdfContentEditor.CreateJavaScriptLink", - "PdfContentEditor.Save" + "PdfFileEditor.Extract", + "PdfViewer.BindPdf", + "PdfViewer.PrintDocumentWithSettings", + "Aspose.Pdf.Printing.PrinterSettings", + "PdfViewer.PrintPageDialog" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-tooltip-annotation-to-pdf": { - "title": "Add Tooltip (Sticky Note) Annotation to PDF", - "filename": "add-tooltip-annotation-to-pdf.cs", - "description": "Shows how to insert a sticky‑note tooltip annotation into a PDF using Aspose.Pdf.Facades.PdfContentEditor, setting its rectangle, title, contents, icon and saving the result.", - "tags": [ - "tooltip", - "annotation", - "pdf", - "Aspose.Pdf", - "sticky-note" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.CreateText", - "Aspose.Pdf.Facades.PdfContentEditor.Save" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:38:22Z", + "read-pdf-viewer-preferences-zoom": { + "title": "Read Pdf Viewer Preferences Zoom", + "filename": "read-pdf-viewer-preferences-zoom.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "add-dashed-line-annotation-to-pdf": { - "title": "Add Dashed Line Annotation to PDF Diagram", - "filename": "add-dashed-line-annotation-to-pdf.cs", - "description": "Demonstrates how to add a custom dashed line annotation to a PDF page using Aspose.Pdf.Facades.PdfContentEditor, specifying line coordinates, dash pattern, and appearance.", + "refresh-pdf-attachments": { + "title": "Refresh PDF Attachments", + "filename": "refresh-pdf-attachments.cs", + "description": "Shows how to remove all existing attachments from a PDF and add a new set of files using Aspose.Pdf.Facades.PdfContentEditor.", "tags": [ + "attachments", "pdf", - "annotation", - "line", - "dash", - "Aspose.Pdf" + "Aspose.Pdf", + "PdfContentEditor", + "delete-add" ], "apis_used": [ "Aspose.Pdf.Facades.PdfContentEditor", "PdfContentEditor.BindPdf", - "PdfContentEditor.CreateLine", - "PdfContentEditor.Save" + "PdfContentEditor.DeleteAttachments", + "PdfContentEditor.AddDocumentAttachment", + "PdfContentEditor.Save", + "PdfContentEditor.Close" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-popup-annotation-with-bullet-list": { - "title": "Add Popup Annotation with Bullet List to PDF", - "filename": "add-popup-annotation-with-bullet-list.cs", - "description": "Demonstrates how to add a collapsed popup annotation containing multi‑line bullet‑point text to a PDF page using Aspose.Pdf's PdfContentEditor.", + "remove-all-attachments-from-pdf": { + "title": "Remove All Attachments from PDF", + "filename": "remove-all-attachments-from-pdf.cs", + "description": "Shows how to delete every embedded attachment in a PDF file using Aspose.Pdf.Facades.PdfContentEditor.", "tags": [ - "popup", - "annotation", - "bullet-points", "pdf", - "Aspose.Pdf" + "attachments", + "delete", + "aspose", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.CreatePopup", + "Aspose.Pdf.Facades.PdfContentEditor.DeleteAttachments", "Aspose.Pdf.Facades.PdfContentEditor.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "apply-45-degree-rotation-to-stamp": { - "title": "Apply 45° Rotation to a PDF Stamp Annotation", - "filename": "apply-45-degree-rotation-to-stamp.cs", - "description": "Demonstrates how to create a text stamp, set its rotation to 45 degrees for diagonal placement, and apply it to a PDF using the Aspose.Pdf.Facades API.", + "remove-all-bookmarks-from-pdf": { + "title": "Remove All Bookmarks from PDF", + "filename": "remove-all-bookmarks-from-pdf.cs", + "description": "Shows how to delete every bookmark in a PDF using Aspose.Pdf's PdfBookmarkEditor facade and save the cleaned document.", "tags": [ - "stamp", - "rotation", + "bookmarks", "pdf", - "watermark", + "delete", + "Aspose.Pdf", "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.Stamp", - "Aspose.Pdf.Facades.FormattedText", - "Aspose.Pdf.Facades.EncodingType", - "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", - "Aspose.Pdf.Facades.PdfFileStamp.Save" + "Aspose.Pdf.Facades.PdfBookmarkEditor", + "PdfBookmarkEditor.BindPdf", + "PdfBookmarkEditor.DeleteBookmarks", + "PdfBookmarkEditor.Save", + "PdfBookmarkEditor.Close" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-rtl-text-annotation-to-pdf": { - "title": "Add Right-to-Left Text Annotation to PDF", - "filename": "add-rtl-text-annotation-to-pdf.cs", - "description": "Shows how to use Aspose.Pdf.Facades.PdfContentEditor to create a text annotation with Arabic (RTL) content, place it on a page, and save the modified PDF.", - "tags": [ - "annotation", - "rtl", - "unicode", - "pdf", - "Aspose.Pdf" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.CreateText", - "Aspose.Pdf.Facades.PdfContentEditor.Save" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:38:22Z", + "remove-attachments-old-pdf": { + "title": "Remove Attachments Old Pdf", + "filename": "remove-attachments-old-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "add-hyperlink-annotation-to-pdf": { - "title": "Add Hyperlink Annotation to Jump Between PDF Pages", - "filename": "add-hyperlink-annotation-to-pdf.cs", - "description": "Shows how to create a local hyperlink annotation that links from one page to another within the same PDF document using Aspose.Pdf.Facades.", + "remove-embedded-file-from-pdf": { + "title": "Remove Embedded File from PDF", + "filename": "remove-embedded-file-from-pdf.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, delete a specific embedded attachment, and save the updated document.", "tags": [ - "hyperlink", - "annotation", "pdf", - "aspose", - "facade" + "attachment", + "remove", + "aspose-pdf", + "embedded-files" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.CreateLocalLink", - "Aspose.Pdf.Facades.PdfContentEditor.Save" + "Aspose.Pdf.Document", + "Aspose.Pdf.EmbeddedFilesCollection", + "Aspose.Pdf.EmbeddedFilesCollection.Delete", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-red-highlight-annotation-to-pdf": { - "title": "Add Red Highlight Annotation to PDF", - "filename": "add-red-highlight-annotation-to-pdf.cs", - "description": "Shows how to use Aspose.Pdf.Facades.PdfContentEditor to create a highlight markup annotation with a bright red border on a specific page of a PDF document.", + "remove-pdf-attachment": { + "title": "Remove Pdf Attachment", + "filename": "remove-pdf-attachment.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "remove-specific-bookmark-from-pdf": { + "title": "Remove Specific Bookmark from PDF", + "filename": "remove-specific-bookmark-from-pdf.cs", + "description": "Demonstrates how to delete a bookmark with a given title from a PDF document using Aspose.Pdf's PdfBookmarkEditor facade.", "tags": [ - "highlight", - "annotation", - "color", + "bookmark", "pdf", - "Aspose" + "delete", + "Aspose.Pdf", + "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "PdfContentEditor.BindPdf", - "PdfContentEditor.CreateMarkup", - "PdfContentEditor.Save", - "PdfContentEditor.Close" + "Aspose.Pdf.Facades.PdfBookmarkEditor", + "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", + "Aspose.Pdf.Facades.PdfBookmarkEditor.DeleteBookmarks", + "Aspose.Pdf.Facades.PdfBookmarkEditor.Save", + "Aspose.Pdf.Facades.PdfBookmarkEditor.Close" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-free-text-html-annotation": { - "title": "Add Free‑Text Annotation with HTML Rich Text to PDF", - "filename": "add-free-text-html-annotation.cs", - "description": "Shows how to create a free‑text annotation on a PDF page and embed HTML‑formatted rich text using Aspose.Pdf.", + "replace-dates-in-pdf-using-regex": { + "title": "Replace Dates in PDF Using Regex", + "filename": "replace-dates-in-pdf-using-regex.cs", + "description": "Shows how to use Aspose.Pdf's PdfContentEditor with a regular expression to locate dates in MM/DD/YYYY format and replace them with YYYY-MM-DD across all pages of a PDF document.", "tags": [ - "free-text", - "annotation", - "rich-text", - "html", - "pdf-editing" + "regex", + "date-format", + "pdf-edit", + "replace-text", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.CreateFreeText", - "Aspose.Pdf.Annotations.FreeTextAnnotation", - "Aspose.Pdf.Annotations.FreeTextAnnotation.RichText" + "Aspose.Pdf.Facades.ReplaceTextStrategy", + "Aspose.Pdf.Facades.PdfContentEditor.ReplaceText", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "custom-appearance-rubber-stamp": { - "title": "Create Custom Appearance Stream for Rubber Stamp Annotation", - "filename": "custom-appearance-rubber-stamp.cs", - "description": "Demonstrates building an in‑memory PDF with a vector graphic and applying it as a custom appearance stream to a rubber‑stamp annotation using Aspose.Pdf.", + "replace-invoicenumber-with-uuid-page-6": { + "title": "Replace InvoiceNumber with UUID on PDF Page 6", + "filename": "replace-invoicenumber-with-uuid-page-6.cs", + "description": "Shows how to generate a UUID and replace the case‑sensitive placeholder text \"InvoiceNumber\" on a specific PDF page using Aspose.Pdf's PdfContentEditor.", "tags": [ - "rubber-stamp", - "custom-appearance", - "vector-graphic", - "pdf-editing", - "Aspose.Pdf" + "pdf", + "text-replacement", + "uuid", + "aspose", + "facade" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Drawing.Rectangle", "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.CreateRubberStamp" + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.ReplaceText", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-text-annotation-with-custom-author": { - "title": "Add Text Annotation with Custom Author to PDF", - "filename": "add-text-annotation-with-custom-author.cs", - "description": "Demonstrates how to add a sticky‑note text annotation to a PDF page and then set a custom author metadata for the annotation using Aspose.Pdf facades.", + "replace-phrase-bold-preserve-font-size": { + "title": "Replace Phrase with Bold Text While Preserving Font Size", + "filename": "replace-phrase-bold-preserve-font-size.cs", + "description": "Shows how to replace a specific phrase in a PDF with a new phrase, applying a bold style while keeping the original font size using Aspose.Pdf.", "tags": [ - "annotation", - "author", "pdf", - "aspose", - "facade" + "text-replacement", + "bold", + "font-size", + "aspose" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfContentEditor.CreateText", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ModifyAnnotationsAuthor" + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Text.TextFragmentAbsorber", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Facades.PdfContentEditor.ReplaceText" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-text-annotation-with-utc-timestamp": { - "title": "Add Text Annotation with UTC Timestamp to PDF", - "filename": "add-text-annotation-with-utc-timestamp.cs", - "description": "Demonstrates how to add a TextAnnotation (sticky note) to a PDF page and set its creation and modification dates to the current UTC time for accurate document history tracking.", + "replace-phrase-with-bold-text": { + "title": "Replace Phrase With Bold Text", + "filename": "replace-phrase-with-bold-text.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "replace-text-in-pdf-annotations": { + "title": "Replace Text in PDF Annotations on Specified Pages", + "filename": "replace-text-in-pdf-annotations.cs", + "description": "Demonstrates how to locate annotations within a page range of a PDF and replace a specific substring in their contents using Aspose.Pdf's annotation editor.", "tags": [ - "annotation", + "annotations", + "text-replace", "pdf", - "utc", - "timestamp", - "aspose" + "page-range", + "Aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Annotations.TextIcon", - "Aspose.Pdf.Color", - "Aspose.Pdf.Page.Annotations.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Facades.PdfAnnotationEditor.ExtractAnnotations", + "Aspose.Pdf.Facades.PdfAnnotationEditor.ModifyAnnotations", + "Aspose.Pdf.Annotation" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-subject-to-text-annotation": { - "title": "Add Subject to Text Annotation in PDF", - "filename": "add-subject-to-text-annotation.cs", - "description": "Demonstrates how to create a TextAnnotation, set its Subject property for searchable categorization, and apply it to a PDF using Aspose.Pdf's annotation editor facade.", + "replace-text-in-pdf": { + "title": "Replace Text in PDF Using PdfContentEditor", + "filename": "replace-text-in-pdf.cs", + "description": "Shows how to replace every occurrence of a specific word in a PDF document using Aspose.Pdf's PdfContentEditor facade.", "tags": [ - "annotation", - "subject", - "pdf", - "text-annotation", + "text-replace", + "pdf-editing", + "aspose-pdf", + "csharp", "facade" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ModifyAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.ReplaceText", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "lock-text-annotation": { - "title": "Lock a Text Annotation in a PDF", - "filename": "lock-text-annotation.cs", - "description": "Shows how to create a text annotation, apply the Locked flag to prevent user edits, and save the PDF using the PdfAnnotationEditor facade.", + "replace-text-in-pdf__v2": { + "title": "Replace Text in PDF with PdfContentEditor", + "filename": "replace-text-in-pdf__v2.cs", + "description": "Demonstrates loading a PDF, using Aspose.Pdf.Facades.PdfContentEditor to replace all occurrences of a word, and saving the modified document.", "tags": [ - "annotation", - "lock", - "pdf", - "Aspose.Pdf", - "facade" + "text-replacement", + "pdf-editing", + "aspose-pdf", + "facade", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Annotations.AnnotationFlags", - "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.ReplaceText", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "hide-annotations-when-fullscreen": { - "title": "Hide Annotations When PDF Is FullScreen", - "filename": "hide-annotations-when-fullscreen.cs", - "description": "Demonstrates how to detect a FullScreen viewer preference in a PDF and set all annotations to hidden for a cleaner display using Aspose.Pdf.", + "replace-text-on-page-preserve-font-style": { + "title": "Replace Text On Page Preserve Font Style", + "filename": "replace-text-on-page-preserve-font-style.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "replace-text-on-specific-pdf-page": { + "title": "Replace Text on Specific PDF Page", + "filename": "replace-text-on-specific-pdf-page.cs", + "description": "Demonstrates how to replace a given string only on page 3 of a PDF document using Aspose.Pdf's PdfContentEditor facade.", "tags": [ - "annotations", - "fullscreen", - "viewer-preferences", - "Aspose.Pdf", - "document-editing" + "pdf", + "text-replacement", + "page-specific", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.AnnotationFlags", - "Aspose.Pdf.PageMode" + "Aspose.Pdf.Facades.PdfContentEditor", + "PdfContentEditor.BindPdf", + "PdfContentEditor.ReplaceText", + "Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "replace-text-in-pdf__v2": { - "title": "Replace Text in PDF with PdfContentEditor", - "filename": "replace-text-in-pdf__v2.cs", - "description": "Demonstrates loading a PDF, using Aspose.Pdf.Facades.PdfContentEditor to replace all occurrences of a word, and saving the modified document.", + "replace-text-pdf-content-editor-disposal": { + "title": "Replace Text Pdf Content Editor Disposal", + "filename": "replace-text-pdf-content-editor-disposal.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "replace-text-pdf-using-pdfcontenteditor": { + "title": "Replace Text in PDF Using PdfContentEditor with Automatic Disposal", + "filename": "replace-text-pdf-using-pdfcontenteditor.cs", + "description": "Demonstrates how to load a PDF, replace specific text, and save the result using Aspose.Pdf's PdfContentEditor within a using block to ensure proper disposal.", "tags": [ + "pdf", "text-replacement", - "pdf-editing", - "aspose-pdf", - "facade", - "csharp" + "aspose", + "using-statement", + "disposable" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", "Aspose.Pdf.Facades.PdfContentEditor.ReplaceText", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfContentEditor.Save", + "Aspose.Pdf.Facades.PdfContentEditor.Dispose" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", @@ -3973,6 +5061,38 @@ "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, + "replace-text-preserve-font": { + "title": "Replace Text Preserve Font", + "filename": "replace-text-preserve-font.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "replace-text-preserve-style": { + "title": "Replace Text While Preserving Font Style in PDF", + "filename": "replace-text-preserve-style.cs", + "description": "Demonstrates how to replace a specific string in a PDF document using Aspose.Pdf while keeping the original font, size, and color on the affected pages.", + "tags": [ + "text-replacement", + "pdf", + "font-style", + "Aspose.Pdf", + "facade" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.ReplaceText", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:38:22Z", + "status": "verified" + }, "replace-text-using-regular-expressions": { "title": "Replace Text Using Regular Expressions in PDF", "filename": "replace-text-using-regular-expressions.cs", @@ -3995,354 +5115,365 @@ "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "replace-text-on-specific-pdf-page": { - "title": "Replace Text on Specific PDF Page", - "filename": "replace-text-on-specific-pdf-page.cs", - "description": "Demonstrates how to replace a given string only on page 3 of a PDF document using Aspose.Pdf's PdfContentEditor facade.", + "reposition-stamp-left-margin": { + "title": "Reposition Stamp on PDF Page to Left Margin", + "filename": "reposition-stamp-left-margin.cs", + "description": "Shows how to move an existing stamp on page 4 of a PDF so that it aligns with the left margin offset by 10 mm using Aspose.Pdf.Facades.", "tags": [ + "stamp", + "move", + "margin", "pdf", - "text-replacement", - "page-specific", - "aspose", - "csharp" + "Aspose.Pdf" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfContentEditor", - "PdfContentEditor.BindPdf", - "PdfContentEditor.ReplaceText", - "Document.Save" + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.MoveStamp", + "Aspose.Pdf.Facades.PdfContentEditor.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "replace-phrase-bold-preserve-font-size": { - "title": "Replace Phrase with Bold Text While Preserving Font Size", - "filename": "replace-phrase-bold-preserve-font-size.cs", - "description": "Shows how to replace a specific phrase in a PDF with a new phrase, applying a bold style while keeping the original font size using Aspose.Pdf.", + "reposition-stamp-on-page-four": { + "title": "Reposition Stamp On Page Four", + "filename": "reposition-stamp-on-page-four.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "reposition-stamp-to-baseline-page-5": { + "title": "Reposition Stamp to Text Baseline on Page 5", + "filename": "reposition-stamp-to-baseline-page-5.cs", + "description": "Shows how to extract the baseline Y coordinate of the first text fragment on page 5 and move an image stamp so it aligns with that baseline.", "tags": [ - "pdf", - "text-replacement", - "bold", - "font-size", - "aspose" + "stamp", + "baseline", + "pdf-edit", + "text-extraction", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Text.TextFragmentAbsorber", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Facades.PdfContentEditor.ReplaceText" + "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.Facades.Stamp", + "Aspose.Pdf.Facades.PdfContentEditor.MoveStamp" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "insert-blank-page-add-header": { - "title": "Insert Blank Page and Add Header to PDF", - "filename": "insert-blank-page-add-header.cs", - "description": "Demonstrates how to insert a new blank page at a specific position in a PDF and apply a header annotation to all pages using Aspose.Pdf facades.", + "retrieve-pdf-viewer-preferences-to-xml": { + "title": "Retrieve PDF Viewer Preferences and Save to XML", + "filename": "retrieve-pdf-viewer-preferences-to-xml.cs", + "description": "Loads a PDF, extracts its viewer preference flags with PdfContentEditor, writes the value to an XML file, and saves the unchanged PDF.", "tags": [ + "viewer-preferences", + "xml-serialization", "pdf", - "insert-page", - "header", - "aspose", - "facade" + "aspose-pdf", + "facades" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages.Insert", - "Aspose.Pdf.Text.FormattedText", - "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.PdfFileStamp.AddHeader", - "Aspose.Pdf.Facades.PdfFileStamp.Save", - "Aspose.Pdf.Facades.PdfFileStamp.Close" + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.GetViewerPreference", + "Aspose.Pdf.Facades.PdfContentEditor.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "delete-page-from-pdf": { - "title": "Delete a Specific Page from PDF", - "filename": "delete-page-from-pdf.cs", - "description": "Demonstrates how to remove page 5 from an existing PDF using Aspose.Pdf's PdfFileEditor and save the result to a new file.", + "retrieve-pdf-viewer-preferences": { + "title": "Retrieve PDF Viewer Preferences", + "filename": "retrieve-pdf-viewer-preferences.cs", + "description": "Demonstrates how to bind a PDF with PdfContentEditor, obtain the viewer preference flags, and list each enabled flag on the console.", "tags": [ "pdf", - "delete-page", - "aspose", + "viewer-preferences", + "aspose-pdf", "csharp", "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Delete" + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.GetViewerPreference", + "Aspose.Pdf.Facades.PdfContentEditor.Dispose", + "Aspose.Pdf.Facades.ViewerPreference" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "move-last-page-to-beginning": { - "title": "Move Last Page to Beginning of PDF", - "filename": "move-last-page-to-beginning.cs", - "description": "Shows how to reorder a PDF by extracting the last page, inserting it at the start, and deleting the original last page using Aspose.Pdf.Facades.", - "tags": [ - "pdf", - "reorder", - "pages", - "aspose", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Extract", - "Aspose.Pdf.Facades.PdfFileEditor.Insert", - "Aspose.Pdf.Facades.PdfFileEditor.Delete" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:38:22Z", + "retrieve-pdf-viewer-preferences__v2": { + "title": "Retrieve Pdf Viewer Preferences__V2", + "filename": "retrieve-pdf-viewer-preferences__v2.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "add-annotation-and-merge-pdfs": { - "title": "Add Annotation to PDF and Merge with Another PDF", - "filename": "add-annotation-and-merge-pdfs.cs", - "description": "The example loads a PDF, adds a text annotation to its first page, saves it, and then concatenates it with a second PDF using Aspose.Pdf.Facades.", + "retrieve-verify-incremental-viewer-preferences": { + "title": "Retrieve and Verify Incremental Viewer Preferences in PDF", + "filename": "retrieve-verify-incremental-viewer-preferences.cs", + "description": "Demonstrates how to change PDF viewer preferences step‑by‑step with PdfContentEditor, read the current preference after each change, and confirm the combined settings in the saved document.", "tags": [ - "annotation", - "merge", - "pdf", - "Aspose.Pdf", - "concatenate" + "viewer-preference", + "pdf-editing", + "incremental", + "aspose-pdf", + "csharp" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Facades.PdfFileEditor.Concatenate" + "PdfContentEditor", + "PdfContentEditor.BindPdf", + "PdfContentEditor.ChangeViewerPreference", + "PdfContentEditor.GetViewerPreference", + "PdfContentEditor.Save", + "ViewerPreference" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "split-pdf-into-single-page-files": { - "title": "Split PDF into Single-Page Files with Annotations", - "filename": "split-pdf-into-single-page-files.cs", - "description": "Shows how to split an edited PDF that contains annotations into separate one‑page PDF documents using Aspose.Pdf.Facades.", + "rotate-pdf-pages-in-parallel": { + "title": "Rotate PDF Pages in Parallel", + "filename": "rotate-pdf-pages-in-parallel.cs", + "description": "Demonstrates batch processing of PDF files by rotating all pages 90 degrees using Aspose.Pdf.Facades PdfPageEditor with Parallel.ForEach for improved performance.", "tags": [ "pdf", - "split", - "annotations", - "aspose", - "facade" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.SplitToPages" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:38:22Z", - "status": "verified" - }, - "insert-image-annotation-with-caption": { - "title": "Insert Image Annotation with Caption in PDF", - "filename": "insert-image-annotation-with-caption.cs", - "description": "Demonstrates adding an image as a stamp annotation at specific coordinates and placing a text caption underneath using Aspose.Pdf Facade and core APIs.", - "tags": [ - "image", - "annotation", - "caption", - "stamp", - "pdf" + "rotation", + "parallel", + "batch-processing", + "aspose" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.Stamp", - "Aspose.Pdf.Facades.Stamp.BindImage", - "Aspose.Pdf.Facades.Stamp.SetOrigin", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.Position", - "Aspose.Pdf.FontRepository.FindFont" + "PdfPageEditor", + "PdfPageEditor.BindPdf", + "PdfPageEditor.Rotation", + "PdfPageEditor.ApplyChanges", + "PdfPageEditor.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "attach-image-add-stamp-annotation": { - "title": "Attach Image and Add Stamp Annotation to PDF", - "filename": "attach-image-add-stamp-annotation.cs", - "description": "Shows how to embed an image file as a document attachment and then use the same image as a stamp annotation on a PDF page using Aspose.Pdf.Facades.", + "rotate-stamp-annotation-90-degrees": { + "title": "Rotate Stamp Annotation 90 Degrees Clockwise", + "filename": "rotate-stamp-annotation-90-degrees.cs", + "description": "Demonstrates how to add an image stamp to a PDF and rotate it 90 degrees clockwise using Aspose.Pdf.Facades.", "tags": [ - "attachment", "stamp", - "image", + "rotation", "pdf", + "image", "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment", - "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", - "Aspose.Pdf.Facades.Stamp", - "Aspose.Pdf.Facades.Stamp.BindImage" + "PdfFileStamp", + "Stamp", + "PdfFileStamp.BindPdf", + "Stamp.BindImage", + "Stamp.Rotation", + "Stamp.SetOrigin", + "PdfFileStamp.AddStamp", + "PdfFileStamp.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-watermark-to-pdfs-in-folder": { - "title": "Add Watermark to All PDFs in a Folder", - "filename": "add-watermark-to-pdfs-in-folder.cs", - "description": "Shows how to apply a semi‑transparent text watermark to every PDF file in a directory using Aspose.Pdf facades and simple configuration settings.", + "rotate-stamp-diagonal": { + "title": "Rotate Stamp Diagonal", + "filename": "rotate-stamp-diagonal.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "rotate-text-annotation-90-degrees": { + "title": "Rotate Text Annotation by 90 Degrees in PDF", + "filename": "rotate-text-annotation-90-degrees.cs", + "description": "Shows how to add a text stamp to a PDF document and rotate it 90 degrees using Aspose.Pdf facades.", "tags": [ - "watermark", + "rotation", + "text-stamp", "pdf", - "batch", - "facade", + "annotation", "Aspose.Pdf" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileStamp", "Aspose.Pdf.Facades.Stamp", "Aspose.Pdf.Text.FormattedText", - "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", - "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", - "Aspose.Pdf.Facades.PdfFileStamp.Save", - "Aspose.Pdf.Facades.PdfFileStamp.Close", - "Aspose.Pdf.Facades.Stamp.BindLogo" + "Aspose.Pdf.Facades.PdfFileStamp.AddStamp" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "batch-add-annotations-from-json": { - "title": "Batch Add Annotations to PDF from JSON", - "filename": "batch-add-annotations-from-json.cs", - "description": "Demonstrates how to read a JSON definition file and programmatically add various annotation types (text, link, square, circle, highlight) to specific pages of a PDF using Aspose.Pdf.", + "secure-pdf-with-certificate-encryption-and-signature": { + "title": "Secure Pdf With Certificate Encryption And Signature", + "filename": "secure-pdf-with-certificate-encryption-and-signature.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "select-radio-button-in-pdf-form": { + "title": "Select Radio Button In Pdf Form", + "filename": "select-radio-button-in-pdf-form.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-annotation-opacity-image-stamp": { + "title": "Set Annotation Opacity and Apply Image Stamp to PDF", + "filename": "set-annotation-opacity-image-stamp.cs", + "description": "Shows how to add an image stamp to all pages of a PDF and set its opacity to 0.75 using Aspose.Pdf Facades.", "tags": [ + "opacity", + "stamp", "pdf", - "annotations", - "json", - "batch", - "aspose" + "facades", + "image" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Annotations.LinkAnnotation", - "Aspose.Pdf.Annotations.SquareAnnotation", - "Aspose.Pdf.Annotations.HighlightAnnotation", - "Aspose.Pdf.Annotations.GoToURIAction" + "Aspose.Pdf.Facades.Stamp", + "Aspose.Pdf.Facades.PdfFileStamp", + "Stamp.BindImage", + "Stamp.Opacity", + "PdfFileStamp.BindPdf", + "PdfFileStamp.AddStamp", + "PdfFileStamp.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-attachment-and-encrypt-pdf": { - "title": "Add Attachment and Encrypt PDF with Password", - "filename": "add-attachment-and-encrypt-pdf.cs", - "description": "Demonstrates adding a document attachment, setting viewer preferences, and then encrypting the PDF with user and owner passwords using AES‑256.", + "set-checkbox-field-in-pdf-form": { + "title": "Set Checkbox Field in PDF Form", + "filename": "set-checkbox-field-in-pdf-form.cs", + "description": "Shows how to programmatically check a checkbox field in a PDF form using Aspose.Pdf.Facades.", "tags": [ + "checkbox", "pdf", - "attachment", - "encryption", - "viewer-preferences", - "aspose-pdf" + "form", + "aspose", + "csharp" ], "apis_used": [ - "PdfContentEditor", - "PdfContentEditor.AddDocumentAttachment", - "PdfContentEditor.ChangeViewerPreference", - "PdfContentEditor.Save", - "PdfFileSecurity", - "PdfFileSecurity.EncryptFile" + "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.Form.FillField", + "Aspose.Pdf.Facades.Form.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "decrypt-edit-reencrypt-pdf": { - "title": "Decrypt, Edit, and Re‑encrypt a Password‑Protected PDF", - "filename": "decrypt-edit-reencrypt-pdf.cs", - "description": "Demonstrates loading a password‑protected PDF with a user password, decrypting it for modifications, adding a text fragment, and then re‑encrypting with specific permissions before saving.", + "set-continuous-view-mode": { + "title": "Set Continuous View Mode for PDF", + "filename": "set-continuous-view-mode.cs", + "description": "Demonstrates how to configure a PDF to use continuous (one‑column) view mode using Aspose.Pdf.Facades.", "tags": [ + "viewer-preference", + "continuous-scroll", "pdf", - "encryption", - "decryption", - "editing", - "aspose-pdf" + "Aspose.Pdf", + "PdfContentEditor" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Decrypt", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.Position", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm" + "PdfContentEditor", + "PdfContentEditor.BindPdf", + "PdfContentEditor.ChangeViewerPreference", + "ViewerPreference.PageLayoutOneColumn", + "PdfContentEditor.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-file-attachment-to-encrypted-pdf": { - "title": "Add File Attachment to Encrypted PDF", - "filename": "add-file-attachment-to-encrypted-pdf.cs", - "description": "Shows how to open a password‑protected PDF, attach a file to it, and save the modified document.", + "set-hide-menubar-viewer-preference": { + "title": "Set Hide Menubar Viewer Preference in PDF", + "filename": "set-hide-menubar-viewer-preference.cs", + "description": "Shows how to read a PDF's current viewer preferences, enable the HideMenubar flag, and save the updated document using Aspose.Pdf.", "tags": [ - "pdf", - "attachment", - "encryption", - "Aspose.Pdf", - "facade" + "viewer-preference", + "hide-menubar", + "pdf-editing", + "aspose-pdf", + "csharp" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Document(string, string)", - "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment", - "Aspose.Pdf.Facades.PdfContentEditor.Save" + "PdfContentEditor", + "PdfContentEditor.BindPdf", + "PdfContentEditor.GetViewerPreference", + "PdfContentEditor.ChangeViewerPreference", + "PdfContentEditor.Save", + "ViewerPreference" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-attachment-to-multiple-pdfs": { - "title": "Add Attachment to Multiple PDFs", - "filename": "add-attachment-to-multiple-pdfs.cs", - "description": "Shows how to batch‑process a list of PDF files and add the same document attachment to each using Aspose.Pdf.Facades.PdfContentEditor.", + "set-highlight-annotation-border-color-red": { + "title": "Set Highlight Annotation Border Color Red", + "filename": "set-highlight-annotation-border-color-red.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-light-gray-background-for-text-annotations": { + "title": "Set Light Gray Background for Text Annotations", + "filename": "set-light-gray-background-for-text-annotations.cs", + "description": "Shows how to change the background color of all TextAnnotation objects in a PDF to light gray using PdfAnnotationEditor.", "tags": [ - "pdf", - "attachment", - "batch", - "aspose", - "facade" + "text-annotation", + "background-color", + "pdf-editing", + "Aspose.Pdf", + "annotation" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "PdfContentEditor.BindPdf", - "PdfContentEditor.AddDocumentAttachment", - "PdfContentEditor.Save", - "PdfContentEditor.Close" + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Facades.PdfAnnotationEditor.ModifyAnnotations", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "apply-viewer-preferences-to-multiple-pdfs": { - "title": "Apply Viewer Preferences to Multiple PDFs", - "filename": "apply-viewer-preferences-to-multiple-pdfs.cs", - "description": "Shows how to iterate over a collection of PDF files and set common viewer preferences (hide UI elements, fit/center window) using Aspose.Pdf.Facades.PdfContentEditor.", + "set-multiple-viewer-preferences-pdf": { + "title": "Set Multiple Viewer Preferences for a PDF", + "filename": "set-multiple-viewer-preferences-pdf.cs", + "description": "Demonstrates how to combine viewer preferences such as CenterWindow and HideToolbar using bitwise OR and apply them to a PDF with Aspose.Pdf.Facades before saving.", "tags": [ - "viewer-preferences", - "batch-processing", + "viewer-preference", "pdf", "aspose-pdf", + "pdf-editing", "csharp" ], "apis_used": [ @@ -4350,451 +5481,460 @@ "PdfContentEditor.BindPdf", "PdfContentEditor.ChangeViewerPreference", "PdfContentEditor.Save", + "PdfContentEditor.Close", "ViewerPreference" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "rotate-pdf-pages-in-parallel": { - "title": "Rotate PDF Pages in Parallel", - "filename": "rotate-pdf-pages-in-parallel.cs", - "description": "Demonstrates batch processing of PDF files by rotating all pages 90 degrees using Aspose.Pdf.Facades PdfPageEditor with Parallel.ForEach for improved performance.", + "set-pdf-permissions-allow-copy-block-form-editing": { + "title": "Set Pdf Permissions Allow Copy Block Form Editing", + "filename": "set-pdf-permissions-allow-copy-block-form-editing.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-pdf-permissions-allow-copy-restrict-form-edit": { + "title": "Set PDF Permissions to Allow Copying but Restrict Form Editing", + "filename": "set-pdf-permissions-allow-copy-restrict-form-edit.cs", + "description": "Demonstrates how to use Aspose.Pdf.Facades to set PDF security privileges, allowing text copying while disabling form filling and annotation modifications.", "tags": [ "pdf", - "rotation", - "parallel", - "batch-processing", - "aspose" + "permissions", + "aspose", + "csharp", + "security" ], - "apis_used": [ - "PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.Rotation", - "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save" + "apis_used": [ + "Aspose.Pdf.Facades.PdfFileSecurity", + "Aspose.Pdf.Facades.PdfFileSecurity.SetPrivilege", + "Aspose.Pdf.Facades.DocumentPrivilege", + "Aspose.Pdf.Facades.DocumentPrivilege.AllowAll", + "Aspose.Pdf.Facades.DocumentPrivilege.AllowCopy", + "Aspose.Pdf.Facades.DocumentPrivilege.AllowFillIn", + "Aspose.Pdf.Facades.DocumentPrivilege.AllowModifyAnnotations" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "batch-remove-attachments-add-disclaimer": { - "title": "Batch Remove Attachments and Add Disclaimer Annotation to PDFs", - "filename": "batch-remove-attachments-add-disclaimer.cs", - "description": "Demonstrates how to iterate through a folder of PDF files, delete all embedded attachments, and add a standardized disclaimer text annotation to each page using Aspose.Pdf facades.", + "set-pdf-viewer-preference-and-default-zoom": { + "title": "Set PDF Viewer Preference and Default Zoom", + "filename": "set-pdf-viewer-preference-and-default-zoom.cs", + "description": "Demonstrates how to change a PDF's viewer preference to a single‑page continuous layout and set the default zoom to 100% using Aspose.Pdf facades.", "tags": [ + "viewer-preference", + "zoom", "pdf", - "attachments", - "annotation", - "batch-processing", - "disclaimer" + "Aspose.Pdf", + "facades" ], "apis_used": [ "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.DeleteAttachments", - "Aspose.Pdf.Facades.PdfContentEditor.CreateText", + "Aspose.Pdf.Facades.PdfContentEditor.ChangeViewerPreference", "Aspose.Pdf.Facades.PdfContentEditor.Save", - "Aspose.Pdf.Page" + "Aspose.Pdf.Facades.PdfPageEditor", + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.Facades.PdfPageEditor.Zoom", + "Aspose.Pdf.Facades.PdfPageEditor.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "config-driven-pdf-pipeline-attachments-viewer-annotations": { - "title": "Configuration‑Driven PDF Pipeline for Attachments, Viewer Preferences, and Annotations", - "filename": "config-driven-pdf-pipeline-attachments-viewer-annotations.cs", - "description": "Demonstrates a configuration‑driven pipeline that sequentially adds file attachments, changes viewer preferences, and inserts text or file‑attachment annotations into a PDF using Aspose.Pdf's PdfContentEditor facade.", + "set-pdf-viewer-preference-fullscreen": { + "title": "Set PDF Viewer Preference to Full‑Screen Mode", + "filename": "set-pdf-viewer-preference-fullscreen.cs", + "description": "Demonstrates using Aspose.Pdf.Facades.PdfContentEditor to enable the full‑screen viewer preference for a PDF document and save the modified file.", "tags": [ + "full-screen", + "viewer-preference", "pdf", - "configuration", - "pipeline", - "attachments", - "annotations" + "Aspose.Pdf", + "PdfContentEditor" ], "apis_used": [ - "PdfContentEditor", - "PdfContentEditor.BindPdf", - "PdfContentEditor.AddDocumentAttachment", - "PdfContentEditor.ChangeViewerPreference", - "PdfContentEditor.AddAnnotation", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.ChangeViewerPreference", + "Aspose.Pdf.Facades.PdfContentEditor.Save", + "Aspose.Pdf.Facades.PdfContentEditor.Close" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-attachment-and-set-viewer-preference": { - "title": "Add Attachment and Set Viewer Preference in PDF", - "filename": "add-attachment-and-set-viewer-preference.cs", - "description": "Shows how to embed a file as a document attachment and configure the PDF viewer to open the attachment panel using Aspose.Pdf.Facades.", + "set-pdf-viewer-preference-show-outline": { + "title": "Set PDF Viewer Preference to Show Outline Panel", + "filename": "set-pdf-viewer-preference-show-outline.cs", + "description": "Demonstrates how to configure the PDF viewer preference to display the document outline (bookmarks) panel by default using the Aspose.Pdf Facade API.", "tags": [ - "attachment", "viewer-preference", + "outline", "pdf", "facade", - "command-line" + "Aspose.Pdf" ], "apis_used": [ - "PdfContentEditor", - "PdfContentEditor.BindPdf", - "PdfContentEditor.AddDocumentAttachment", - "PdfContentEditor.ChangeViewerPreference", - "PdfContentEditor.Save", - "ViewerPreference" + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.ChangeViewerPreference", + "Aspose.Pdf.Facades.PdfContentEditor.Save", + "Aspose.Pdf.Facades.ViewerPreference" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "async-add-attachment-to-pdf": { - "title": "Asynchronously Add Attachment to PDF Using PdfContentEditor", - "filename": "async-add-attachment-to-pdf.cs", - "description": "Demonstrates adding a file attachment to an existing PDF and saving it asynchronously with Aspose.Pdf's PdfContentEditor facade, keeping the UI thread responsive.", + "set-pdf-viewer-preference-single-page": { + "title": "Set PDF Viewer Preference to Single-Page Layout", + "filename": "set-pdf-viewer-preference-single-page.cs", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfContentEditor to change a PDF's viewer preference to a single‑page layout and save the modified document.", "tags": [ + "viewer-preference", + "single-page", "pdf", - "attachment", - "async", - "aspose", - "facade" + "Aspose.Pdf", + "PdfContentEditor" ], "apis_used": [ "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment", - "Aspose.Pdf.Facades.PdfContentEditor.Save" + "Aspose.Pdf.Facades.PdfContentEditor.ChangeViewerPreference", + "Aspose.Pdf.Facades.PdfContentEditor.Save", + "Aspose.Pdf.Facades.PdfContentEditor.Close" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-large-stream-attachment-to-pdf": { - "title": "Add Large Stream Attachment to PDF with Buffered Memory Usage", - "filename": "add-large-stream-attachment-to-pdf.cs", - "description": "Demonstrates how to attach a large file to an existing PDF using Aspose.Pdf.Facades while buffering the data in chunks to keep memory consumption low.", + "set-pdf-viewer-preferences-fit-width": { + "title": "Set PDF Viewer Preferences and Default Zoom (Thumbnails + Fit Width)", + "filename": "set-pdf-viewer-preferences-fit-width.cs", + "description": "Demonstrates how to configure a PDF to open with the thumbnails pane visible, resize the window to fit the page, and set the default zoom to fit the page width using Aspose.Pdf Facades.", "tags": [ + "viewer-preferences", + "thumbnails", + "fit-width", "pdf", - "attachment", - "bufferedstream", - "memory-optimization", "aspose-pdf" ], "apis_used": [ "PdfContentEditor", "PdfContentEditor.BindPdf", - "PdfContentEditor.AddDocumentAttachment", - "PdfContentEditor.Save" + "PdfContentEditor.ChangeViewerPreference", + "PdfContentEditor.Save", + "PdfPageEditor", + "PdfPageEditor.BindPdf", + "PdfPageEditor.Zoom", + "PdfPageEditor.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-network-attachment-to-pdf-with-retry": { - "title": "Add Network Attachment to PDF with Retry Logic", - "filename": "add-network-attachment-to-pdf-with-retry.cs", - "description": "Demonstrates downloading a file from a network URL with retry-on-timeout logic and attaching it to a PDF using Aspose.Pdf's PdfContentEditor.", - "tags": [ - "pdf", - "attachment", - "retry", - "httpclient", - "facade" - ], - "apis_used": [ - "PdfContentEditor", - "PdfContentEditor.BindPdf", - "PdfContentEditor.CreateFileAttachment", - "PdfContentEditor.Save", - "PdfContentEditor.Dispose" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:38:22Z", + "set-pdf-viewer-preferences-thumbnails-fit-width": { + "title": "Set Pdf Viewer Preferences Thumbnails Fit Width", + "filename": "set-pdf-viewer-preferences-thumbnails-fit-width.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "validate-pdf-integrity-sha256": { - "title": "Validate PDF Integrity After Modification Using SHA‑256", - "filename": "validate-pdf-integrity-sha256.cs", - "description": "The example loads a PDF, makes a simple edit, saves it, validates both original and edited files with Aspose.Pdf.Facades, and compares their SHA‑256 checksums to verify integrity.", - "tags": [ - "pdf", - "integrity", - "checksum", - "aspose", - "sha256" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Facades.PdfFileSignature", - "Aspose.Pdf.Facades.PdfFileSignature.BindPdf" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:38:22Z", + "set-pdf-window-title-displaydoctitle": { + "title": "Set Pdf Window Title Displaydoctitle", + "filename": "set-pdf-window-title-displaydoctitle.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "compare-pdf-file-sizes-after-annotation": { - "title": "Compare PDF File Sizes After Adding Annotation", - "filename": "compare-pdf-file-sizes-after-annotation.cs", - "description": "The example loads an existing PDF, adds a text annotation using Aspose.Pdf, saves the edited file, and then compares the file sizes of the original and edited PDFs to verify that changes were applied.", + "set-radio-button-value-in-pdf-acroform": { + "title": "Set Radio Button Value in PDF AcroForm", + "filename": "set-radio-button-value-in-pdf-acroform.cs", + "description": "Demonstrates loading a PDF with an AcroForm, selecting the \"Express\" option of the \"ShippingMethod\" radio button group, and saving the updated document using Aspose.Pdf.Facades.", "tags": [ "pdf", - "annotation", - "filesize", - "aspose", - "facade" + "acroform", + "radio-button", + "fill-form", + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.TextAnnotation", - "Aspose.Pdf.Color", - "Aspose.Pdf.Facades.PdfFileInfo" + "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.Form.FillField", + "Aspose.Pdf.Facades.Form.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "export-pdf-annotations-to-json": { - "title": "Export PDF Annotations to JSON", - "filename": "export-pdf-annotations-to-json.cs", - "description": "Demonstrates extracting all annotations from a PDF with Aspose.Pdf, converting them to XFDF, and wrapping the XFDF XML in a JSON file for external analysis.", - "tags": [ - "annotations", - "export", - "json", - "xfdf", - "pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ExportAnnotationsToXfdf" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:38:22Z", + "set-viewer-preference-default-zoom": { + "title": "Set Viewer Preference Default Zoom", + "filename": "set-viewer-preference-default-zoom.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "import-annotations-from-json": { - "title": "Import Annotations from JSON and Apply to PDF", - "filename": "import-annotations-from-json.cs", - "description": "Shows how to read annotation definitions from a JSON file and use Aspose.Pdf.Facades.PdfContentEditor to add text, web‑link, line, and square/circle annotations to a PDF document.", + "silently-print-pdf-to-network-printer": { + "title": "Silently Print PDF to Network Printer", + "filename": "silently-print-pdf-to-network-printer.cs", + "description": "Shows how to load a PDF with Aspose.Pdf.Facades.PdfViewer and send it to a network printer identified by IP address without displaying any print dialogs.", "tags": [ "pdf", - "annotations", - "json", - "aspose.pdf", - "facade" + "silent-print", + "network-printer", + "aspose-pdf", + "csharp" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.CreateText", - "Aspose.Pdf.Facades.PdfContentEditor.CreateWebLink", - "Aspose.Pdf.Facades.PdfContentEditor.CreateLine", - "Aspose.Pdf.Facades.PdfContentEditor.CreateSquareCircle", - "Aspose.Pdf.Facades.PdfContentEditor.Save" + "PdfViewer", + "PdfViewer.BindPdf", + "PdfViewer.AutoResize", + "PdfViewer.AutoRotate", + "PdfViewer.PrintPageDialog", + "PdfViewer.PrintDocumentWithSettings", + "PrinterSettings" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "verify-pdf-attachment-after-save": { - "title": "Verify PDF Attachment After Save", - "filename": "verify-pdf-attachment-after-save.cs", - "description": "Creates a PDF, adds a file as a document attachment using PdfContentEditor, saves the document, and confirms the attachment exists with PdfExtractor in a unit test.", + "simple-pdf-editing-wrapper": { + "title": "Simple PDF Editing Wrapper Using Aspose PdfContentEditor", + "filename": "simple-pdf-editing-wrapper.cs", + "description": "Demonstrates a lightweight wrapper around Aspose.Pdf.Facades.PdfContentEditor that simplifies common PDF editing tasks such as text replacement, image removal, and adding attachments.", "tags": [ - "attachment", "pdf", - "unit-test", - "aspose-pdf", - "facade" + "editing", + "wrapper", + "aspose", + "csharp" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfContentEditor.ReplaceText", + "Aspose.Pdf.Facades.PdfContentEditor.DeleteImage", "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment", - "Aspose.Pdf.Facades.PdfExtractor", - "Aspose.Pdf.Facades.PdfExtractor.ExtractAttachment", - "Aspose.Pdf.Facades.PdfExtractor.GetAttachNames" + "Aspose.Pdf.Facades.PdfContentEditor.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "persist-viewer-preferences-after-editing-pdf": { - "title": "Persist Viewer Preferences After Editing PDF", - "filename": "persist-viewer-preferences-after-editing-pdf.cs", - "description": "Shows how to set viewer preferences on a PDF using PdfContentEditor, save the document, and verify that the preferences persist after reopening the file.", + "split-pdf-into-single-page-files": { + "title": "Split PDF into Single-Page Files with Annotations", + "filename": "split-pdf-into-single-page-files.cs", + "description": "Shows how to split an edited PDF that contains annotations into separate one‑page PDF documents using Aspose.Pdf.Facades.", "tags": [ - "viewer-preferences", - "pdf-editing", - "unit-test", - "aspose-pdf", + "pdf", + "split", + "annotations", + "aspose", "facade" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.ChangeViewerPreference", - "Aspose.Pdf.Facades.PdfContentEditor.Save", - "Aspose.Pdf.Facades.PdfContentEditor.GetViewerPreference" + "Aspose.Pdf.Facades.PdfFileEditor", + "Aspose.Pdf.Facades.PdfFileEditor.SplitToPages" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "verify-text-annotation-position": { - "title": "Verify Text Annotation Position on PDF Page", - "filename": "verify-text-annotation-position.cs", - "description": "Creates an in‑memory PDF, adds a text (sticky‑note) annotation using PdfContentEditor, then loads the result to assert that the annotation rectangle matches the expected coordinates.", + "toggle-fullscreen-viewer-preference": { + "title": "Toggle FullScreen Viewer Preference in PDF", + "filename": "toggle-fullscreen-viewer-preference.cs", + "description": "Shows how to read a PDF's current viewer preferences, toggle the FullScreen mode flag, and save the modified document using Aspose.Pdf.Facades.", "tags": [ - "text-annotation", + "full-screen", + "viewer-preference", "pdf", - "unit-test", - "Aspose.Pdf", - "coordinates" + "toggle", + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.CreateText", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.TextAnnotation" + "PdfContentEditor", + "PdfContentEditor.BindPdf", + "PdfContentEditor.GetViewerPreference", + "PdfContentEditor.ChangeViewerPreference", + "PdfContentEditor.Save", + "ViewerPreference" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "edit-pdf-with-logging-using-pdfcontenteditor": { - "title": "Edit PDF with Logging using PdfContentEditor", - "filename": "edit-pdf-with-logging-using-pdfcontenteditor.cs", - "description": "Demonstrates how to edit a PDF (replace text, add a web link, delete images) using Aspose.Pdf.Facades.PdfContentEditor while recording each operation to a log file with timestamps.", + "toggle-pdf-viewer-preferences": { + "title": "Toggle Pdf Viewer Preferences", + "filename": "toggle-pdf-viewer-preferences.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "underline-specific-phrase-on-pdf-page": { + "title": "Underline Specific Phrase On Pdf Page", + "filename": "underline-specific-phrase-on-pdf-page.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "underline-specific-phrase-page-4": { + "title": "Underline Specific Phrase on PDF Page 4", + "filename": "underline-specific-phrase-page-4.cs", + "description": "Shows how to locate a target phrase on the fourth page of a PDF using TextFragmentAbsorber and add an underline annotation with PdfContentEditor.", "tags": [ - "pdf-editing", - "logging", - "aspose-pdf", - "pdfcontenteditor", - "csharp" + "underline", + "annotation", + "text-search", + "pdf-edit", + "Aspose.Pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "PdfContentEditor.BindPdf", - "PdfContentEditor.ReplaceText", - "PdfContentEditor.CreateWebLink", - "PdfContentEditor.DeleteImage", - "PdfContentEditor.Save" + "Aspose.Pdf.Document", + "Aspose.Pdf.Text.TextFragmentAbsorber", + "Aspose.Pdf.Text.TextSearchOptions", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Facades.PdfContentEditor.CreateMarkup" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-document-attachment-with-error-handling": { - "title": "Add Document Attachment to PDF with Error Handling", - "filename": "add-document-attachment-with-error-handling.cs", - "description": "Demonstrates how to attach an external file to a PDF using Aspose.Pdf.Facades.PdfContentEditor while checking for missing source or attachment files and handling unexpected errors.", + "update-pdf-xmp-creator-metadata": { + "title": "Update PDF XMP Creator Metadata", + "filename": "update-pdf-xmp-creator-metadata.cs", + "description": "Shows how to read XMP metadata from an existing PDF, change the dc:creator field, and write the updated metadata back to a new PDF using Aspose.Pdf.Facades.", "tags": [ + "xmp", + "metadata", "pdf", - "attachment", - "error-handling", - "aspose", - "csharp" + "creator", + "aspose" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "PdfContentEditor.BindPdf", - "PdfContentEditor.AddDocumentAttachment", - "PdfContentEditor.Save" + "PdfXmpMetadata", + "PdfXmpMetadata.BindPdf", + "PdfXmpMetadata.Save", + "PdfXmpMetadata.this[string]", + "XmpValue" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "edit-pdf-text-with-pdfcontenteditor-disposal": { - "title": "Edit PDF Text with PdfContentEditor and Ensure Proper Disposal", - "filename": "edit-pdf-text-with-pdfcontenteditor-disposal.cs", - "description": "Demonstrates how to replace text in a PDF using Aspose.Pdf.Facades.PdfContentEditor while guaranteeing that the editor and bound document are properly disposed in a finally block.", + "update-pdf-xmp-metadata-custom-project-schema": { + "title": "Update PDF XMP Metadata with Custom Project Schema", + "filename": "update-pdf-xmp-metadata-custom-project-schema.cs", + "description": "Demonstrates how to load a PDF, register a custom XMP namespace, add project-specific fields, and save the updated metadata using Aspose.Pdf.Facades.", "tags": [ + "xmp", + "metadata", + "custom-namespace", "pdf", - "text-replacement", - "resource-management", - "facade", - "aspose" + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.ReplaceText", - "Aspose.Pdf.Facades.PdfContentEditor.Save", - "Aspose.Pdf.Facades.PdfContentEditor.Close" + "PdfXmpMetadata", + "PdfXmpMetadata.BindPdf", + "PdfXmpMetadata.RegisterNamespaceURI", + "PdfXmpMetadata.Add", + "PdfXmpMetadata.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "replace-text-pdf-using-pdfcontenteditor": { - "title": "Replace Text in PDF Using PdfContentEditor with Automatic Disposal", - "filename": "replace-text-pdf-using-pdfcontenteditor.cs", - "description": "Demonstrates how to load a PDF, replace specific text, and save the result using Aspose.Pdf's PdfContentEditor within a using block to ensure proper disposal.", + "validate-pdf-integrity-after-adding-margins": { + "title": "Validate Pdf Integrity After Adding Margins", + "filename": "validate-pdf-integrity-after-adding-margins.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "validate-pdf-integrity-sha256": { + "title": "Validate PDF Integrity After Modification Using SHA‑256", + "filename": "validate-pdf-integrity-sha256.cs", + "description": "The example loads a PDF, makes a simple edit, saves it, validates both original and edited files with Aspose.Pdf.Facades, and compares their SHA‑256 checksums to verify integrity.", "tags": [ "pdf", - "text-replacement", + "integrity", + "checksum", "aspose", - "using-statement", - "disposable" + "sha256" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.ReplaceText", - "Aspose.Pdf.Facades.PdfContentEditor.Save", - "Aspose.Pdf.Facades.PdfContentEditor.Dispose" + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Facades.PdfFileSignature", + "Aspose.Pdf.Facades.PdfFileSignature.BindPdf" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "add-image-to-pdf-using-pdffilemend": { - "title": "Insert Image into PDF with PdfFileMend", - "filename": "add-image-to-pdf-using-pdffilemend.cs", - "description": "The example loads an existing PDF, inserts a PNG image onto the first page at specified coordinates using the PdfFileMend facade, and saves the edited document.", + "verify-pdf-attachment-after-save": { + "title": "Verify PDF Attachment After Save", + "filename": "verify-pdf-attachment-after-save.cs", + "description": "Creates a PDF, adds a file as a document attachment using PdfContentEditor, saves the document, and confirms the attachment exists with PdfExtractor in a unit test.", "tags": [ + "attachment", "pdf", - "image", - "aspose", - "edit", + "unit-test", + "aspose-pdf", "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileMend", - "Aspose.Pdf.Facades.PdfFileMend.BindPdf", - "Aspose.Pdf.Facades.PdfFileMend.AddImage", - "Aspose.Pdf.Facades.PdfFileMend.Save", - "Aspose.Pdf.Facades.PdfFileMend.Close" + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment", + "Aspose.Pdf.Facades.PdfExtractor", + "Aspose.Pdf.Facades.PdfExtractor.ExtractAttachment", + "Aspose.Pdf.Facades.PdfExtractor.GetAttachNames" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", "status": "verified" }, - "simple-pdf-editing-wrapper": { - "title": "Simple PDF Editing Wrapper Using Aspose PdfContentEditor", - "filename": "simple-pdf-editing-wrapper.cs", - "description": "Demonstrates a lightweight wrapper around Aspose.Pdf.Facades.PdfContentEditor that simplifies common PDF editing tasks such as text replacement, image removal, and adding attachments.", + "verify-text-annotation-position": { + "title": "Verify Text Annotation Position on PDF Page", + "filename": "verify-text-annotation-position.cs", + "description": "Creates an in‑memory PDF, adds a text (sticky‑note) annotation using PdfContentEditor, then loads the result to assert that the annotation rectangle matches the expected coordinates.", "tags": [ + "text-annotation", "pdf", - "editing", - "wrapper", - "aspose", - "csharp" + "unit-test", + "Aspose.Pdf", + "coordinates" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfContentEditor.ReplaceText", - "Aspose.Pdf.Facades.PdfContentEditor.DeleteImage", - "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment", - "Aspose.Pdf.Facades.PdfContentEditor.Save" + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.CreateText", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.TextAnnotation" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:38:22Z", diff --git a/facades-extract-images-and-text/AGENTS.md b/facades-extract-images-and-text/AGENTS.md index f1fa27030..6b4323503 100644 --- a/facades-extract-images-and-text/AGENTS.md +++ b/facades-extract-images-and-text/AGENTS.md @@ -8,7 +8,7 @@ parent: ../agents.md # AGENTS - facades-extract-images-and-text -> **Facades extract images and text** in PDF using C# / .NET -- **81** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. +> **Facades extract images and text** in PDF using C# / .NET -- **125** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. ## Persona @@ -23,34 +23,34 @@ See the root [agents.md](../agents.md) for repository-wide conventions and bound ## Required Namespaces -- `using Aspose.Pdf.Facades;` (80/81 files) ← category-specific -- `using Aspose.Pdf;` (26/81 files) -- `using Aspose.Pdf.Text;` (4/81 files) -- `using Aspose.Pdf.AI;` (1/81 files) -- `using Aspose.Pdf.Drawing;` (1/81 files) -- `using Aspose.Pdf.Multithreading;` (1/81 files) -- `using System;` (81/81 files) -- `using System.IO;` (81/81 files) -- `using System.Text;` (23/81 files) -- `using System.Drawing.Imaging;` (20/81 files) -- `using System.Collections.Generic;` (18/81 files) -- `using System.Threading.Tasks;` (7/81 files) -- `using System.Drawing;` (6/81 files) -- `using System.Text.Json;` (4/81 files) -- `using Azure.Storage.Blobs;` (3/81 files) -- `using System.IO.Compression;` (3/81 files) -- `using System.Threading;` (3/81 files) -- `using NUnit.Framework;` (2/81 files) -- `using System.Security.Cryptography;` (2/81 files) -- `using Azure.Storage.Blobs.Models;` (1/81 files) -- `using Google.Apis.Storage.v1.Data;` (1/81 files) -- `using Google.Cloud.Storage.V1;` (1/81 files) -- `using Microsoft.Azure.WebJobs;` (1/81 files) -- `using Microsoft.Extensions.Logging;` (1/81 files) -- `using Npgsql;` (1/81 files) -- `using System.Collections;` (1/81 files) -- `using System.Diagnostics;` (1/81 files) -- `using System.Drawing.Drawing2D;` (1/81 files) +- `using Aspose.Pdf.Facades;` (80/125 files) ← category-specific +- `using Aspose.Pdf;` (26/125 files) +- `using Aspose.Pdf.Text;` (4/125 files) +- `using Aspose.Pdf.AI;` (1/125 files) +- `using Aspose.Pdf.Drawing;` (1/125 files) +- `using Aspose.Pdf.Multithreading;` (1/125 files) +- `using System;` (81/125 files) +- `using System.IO;` (81/125 files) +- `using System.Text;` (23/125 files) +- `using System.Drawing.Imaging;` (20/125 files) +- `using System.Collections.Generic;` (18/125 files) +- `using System.Threading.Tasks;` (7/125 files) +- `using System.Drawing;` (6/125 files) +- `using System.Text.Json;` (4/125 files) +- `using Azure.Storage.Blobs;` (3/125 files) +- `using System.IO.Compression;` (3/125 files) +- `using System.Threading;` (3/125 files) +- `using NUnit.Framework;` (2/125 files) +- `using System.Security.Cryptography;` (2/125 files) +- `using Azure.Storage.Blobs.Models;` (1/125 files) +- `using Google.Apis.Storage.v1.Data;` (1/125 files) +- `using Google.Cloud.Storage.V1;` (1/125 files) +- `using Microsoft.Azure.WebJobs;` (1/125 files) +- `using Microsoft.Extensions.Logging;` (1/125 files) +- `using Npgsql;` (1/125 files) +- `using System.Collections;` (1/125 files) +- `using System.Diagnostics;` (1/125 files) +- `using System.Drawing.Drawing2D;` (1/125 files) ## Common Code Pattern @@ -68,17 +68,24 @@ tool.Save("output.pdf"); | File | Title | Key APIs | Description | |------|-------|----------|-------------| | [add-watermark-extract-images-from-pdf](./add-watermark-extract-images-from-pdf.cs) | Add Watermark to PDF Pages and Extract Images | `Document`, `PdfFileMend`, `BindPdf` | Demonstrates how to overlay a PNG watermark on each page of a PDF using PdfFileMend, then extract... | +| [async-extract-text-and-images-from-pdf](./async-extract-text-and-images-from-pdf.cs) | Async extract text and images from pdf | | Async extract text and images from pdf | +| [async-pdf-text-extraction-with-cancellation](./async-pdf-text-extraction-with-cancellation.cs) | Async pdf text extraction with cancellation | | Async pdf text extraction with cancellation | | [async-pdf-text-image-extraction](./async-pdf-text-image-extraction.cs) | Asynchronous PDF Text and Image Extraction | `PdfExtractor`, `BindPdf`, `ExtractText` | Demonstrates how to extract text and images from a PDF file asynchronously using Aspose.Pdf's Pdf... | | [batch-extract-text-from-pdfs](./batch-extract-text-from-pdfs.cs) | Batch Extract Text from PDFs | `PdfExtractor`, `BindPdf`, `ExtractText` | Shows how to iterate over a folder of PDF files, extract their text with Aspose.Pdf.Facades.PdfEx... | | [batch-extract-text-from-pdfs__v2](./batch-extract-text-from-pdfs__v2.cs) | Batch Extract Text from PDFs with PdfExtractor | `PdfExtractor`, `BindPdf`, `ExtractText` | Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to extract text from every PDF file in a ... | +| [batch-pdf-text-extraction-azure-blob](./batch-pdf-text-extraction-azure-blob.cs) | Batch pdf text extraction azure blob | | Batch pdf text extraction azure blob | | [cancel-pdf-image-extraction](./cancel-pdf-image-extraction.cs) | Cancel PDF Image Extraction with InterruptMonitor | `PdfExtractor`, `InterruptMonitor`, `BindPdf` | Demonstrates how to use Aspose.Pdf's InterruptMonitor and a CancellationToken to abort a PdfExtra... | | [check-pdf-contains-text](./check-pdf-contains-text.cs) | Check if PDF Contains Text via MemoryStream | `PdfExtractor`, `BindPdf`, `ExtractText` | Shows how to bind a PDF to Aspose.Pdf.Facades.PdfExtractor, extract its text into a MemoryStream,... | | [check-pdf-for-text-and-images](./check-pdf-for-text-and-images.cs) | Check PDF for Both Text and Images | `PdfExtractor`, `BindPdf`, `ExtractText` | Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to determine whether a PDF file contains ... | | [check-pdf-text-only-by-detecting-images](./check-pdf-text-only-by-detecting-images.cs) | Check if PDF is Text‑Only by Detecting Images | `PdfExtractor`, `BindPdf`, `ExtractImage` | Demonstrates using Aspose.Pdf.Facades.PdfExtractor to determine whether a PDF contains any images... | +| [check-pdf-text-only-by-extracting-images](./check-pdf-text-only-by-extracting-images.cs) | Check pdf text only by extracting images | | Check pdf text only by extracting images | | [configurable-pdf-extraction](./configurable-pdf-extraction.cs) | Configurable PDF Text, Image, and Attachment Extraction | `PdfExtractor`, `BindPdf`, `ExtractText` | Demonstrates reading a JSON configuration to enable or disable text, image, and attachment extrac... | +| [convert-pdf-to-multi-page-tiff](./convert-pdf-to-multi-page-tiff.cs) | Convert pdf to multi page tiff | | Convert pdf to multi page tiff | | [create-a-batch-job-that-processes-pdfs-from-an-azu...](./create-a-batch-job-that-processes-pdfs-from-an-azure-blob-container-extracting-text-and-uploading-results-back.cs) | Create A Batch Job That Processes Pdfs From An Azure Blob Co... | `PdfExtractor` | Create A Batch Job That Processes Pdfs From An Azure Blob Container Extracting Text And Uploading... | | [create-contact-sheet-pdf-from-extracted-images](./create-contact-sheet-pdf-from-extracted-images.cs) | Create Contact Sheet PDF from Extracted Images | `PdfExtractor`, `Document`, `Page` | The example extracts all images from a source PDF using PdfExtractor, then arranges them as thumb... | +| [create-contact-sheet-pdf](./create-contact-sheet-pdf.cs) | Create contact sheet pdf | | Create contact sheet pdf | | [create-pdf-summary-from-first-three-pages](./create-pdf-summary-from-first-three-pages.cs) | Create PDF Summary from First Three Pages Text | `PdfExtractor`, `Document`, `TextFragment` | Demonstrates extracting text from the first three pages of a PDF using PdfExtractor and generatin... | +| [export-pdf-images-to-jpeg-quality-85](./export-pdf-images-to-jpeg-quality-85.cs) | Export pdf images to jpeg quality 85 | | Export pdf images to jpeg quality 85 | | [extract-all-images-from-pdf](./extract-all-images-from-pdf.cs) | Extract All Images from PDF using PdfExtractor | `PdfExtractor`, `BindPdf`, `ExtractImage` | Demonstrates how to use Aspose.Pdf's PdfExtractor facade to extract every image from a PDF docume... | | [extract-attachments-compute-sha256](./extract-attachments-compute-sha256.cs) | Extract PDF Attachments and Compute SHA-256 Hashes | `Document`, `FileSpecification`, `Add` | Demonstrates creating a PDF with an embedded file, extracting all attachments using Aspose.Pdf.Fa... | | [extract-embedded-attachments-from-pdf](./extract-embedded-attachments-from-pdf.cs) | Extract Embedded Attachments from PDF | `PdfExtractor`, `BindPdf`, `ExtractAttachment` | Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to retrieve embedded file attachments fro... | @@ -88,19 +95,12 @@ tool.Save("output.pdf"); | [extract-images-create-pdf-portfolio](./extract-images-create-pdf-portfolio.cs) | Extract Images from PDF and Build an Image Portfolio | `PdfExtractor`, `ExtractImage`, `HasNextImage` | Demonstrates how to extract all images from an existing PDF using Aspose.Pdf.Facades.PdfExtractor... | | [extract-images-create-sprite-sheet](./extract-images-create-sprite-sheet.cs) | Extract Images from PDF and Create a Sprite Sheet | `PdfExtractor`, `BindPdf`, `ExtractImage` | Demonstrates how to extract all images from a PDF using Aspose.Pdf.Facades.PdfExtractor and combi... | | [extract-images-first-page-to-byte-arrays](./extract-images-first-page-to-byte-arrays.cs) | Extract Images from First PDF Page into Byte Arrays | `Document`, `Page`, `Image` | The example creates a minimal PDF containing an in‑memory BMP image, then uses Aspose.Pdf.Facades... | +| [extract-images-from-a-pdf-and-embed-them-into-an-h...](./extract-images-from-a-pdf-and-embed-them-into-an-html-report-using-base64-data-uris.cs) | Extract images from a pdf and embed them into an html report... | | Extract images from a pdf and embed them into an html report using base64 data uris | | [extract-images-from-encrypted-pdf](./extract-images-from-encrypted-pdf.cs) | Extract Images from Encrypted PDF with Password | `PdfExtractor`, `Password`, `BindPdf` | Shows how to open an encrypted PDF by supplying the user password and extract all images using As... | -| [extract-images-from-pages-png](./extract-images-from-pages-png.cs) | Extract Images from Specific PDF Pages as PNG | `PdfExtractor`, `BindPdf`, `StartPage` | Demonstrates using Aspose.Pdf.Facades.PdfExtractor to extract images from pages 5 through 10 of a... | -| [extract-images-from-pdf-to-temp-folder](./extract-images-from-pdf-to-temp-folder.cs) | Extract Images from PDF to Temporary Folder | `PdfExtractor`, `BindPdf`, `ExtractImage` | Demonstrates extracting all images from a PDF using Aspose.Pdf's PdfExtractor with the default ex... | -| [extract-images-from-pdf-to-unc](./extract-images-from-pdf-to-unc.cs) | Extract Images from PDF to UNC Network Share | `PdfExtractor`, `BindPdf`, `ExtractImage` | Demonstrates using Aspose.Pdf.Facades.PdfExtractor to pull all images from a PDF and save them as... | -| [extract-images-from-pdf-to-zip](./extract-images-from-pdf-to-zip.cs) | Extract Images from PDF and Create ZIP Archive | `PdfExtractor`, `BindPdf`, `ExtractImage` | Demonstrates how to use Aspose.Pdf to extract all images from a PDF document and package them int... | -| [extract-images-from-pdf-using-pdfextractor](./extract-images-from-pdf-using-pdfextractor.cs) | Extract Images from PDF Using PdfExtractor with Automatic Di... | `PdfExtractor`, `BindPdf`, `ExtractImage` | Demonstrates binding a PDF to Aspose.Pdf.Facades.PdfExtractor, extracting all images, and saving ... | -| [extract-images-from-pdf-with-guid-filenames](./extract-images-from-pdf-with-guid-filenames.cs) | Extract Images from PDF with GUID Filenames | `PdfExtractor`, `BindPdf`, `ExtractImage` | Shows how to use Aspose.Pdf.Facades.PdfExtractor to extract all images from a PDF and save each a... | -| [extract-images-from-specific-pdf-page](./extract-images-from-specific-pdf-page.cs) | Extract Images from a Specific PDF Page | `PdfExtractor`, `BindPdf`, `StartPage` | Shows how to extract all images from a single PDF page by setting the StartPage and EndPage prope... | -| [extract-images-html-gallery](./extract-images-html-gallery.cs) | Extract Images from PDF and Create HTML Gallery | `PdfExtractor`, `BindPdf`, `ExtractImage` | Demonstrates extracting all images from a PDF using Aspose.Pdf.Facades.PdfExtractor and generatin... | -| ... | | | *and 51 more files* | +| ... | | | *and 95 more files* | ## Category Statistics -- Total examples: 81 +- Total examples: 125 ## Category-Specific Tips @@ -139,5 +139,5 @@ tool.Save("output.pdf"); - Review code examples in this folder for facades-extract-images-and-text patterns -Updated: 2026-08-20 | Run: `20260820_001147_12d7b3` +Updated: 2026-09-10 | Run: `20260910_054408_87a7f4` diff --git a/facades-extract-images-and-text/README.md b/facades-extract-images-and-text/README.md new file mode 100644 index 000000000..fce787705 --- /dev/null +++ b/facades-extract-images-and-text/README.md @@ -0,0 +1,144 @@ +# Facades extract images and text + +> **Facades extract images and text** in PDF using C# / .NET -- **125** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. + +- Category: `facades-extract-images-and-text` +- Examples: 125 +- NuGet: `Aspose.PDF 26.8.0` -- target `net10.0` + +## Examples + +- [`add-watermark-extract-images-from-pdf.cs`](./add-watermark-extract-images-from-pdf.cs) -- Add watermark extract images from pdf +- [`async-extract-text-and-images-from-pdf.cs`](./async-extract-text-and-images-from-pdf.cs) -- Async extract text and images from pdf +- [`async-pdf-text-extraction-with-cancellation.cs`](./async-pdf-text-extraction-with-cancellation.cs) -- Async pdf text extraction with cancellation +- [`async-pdf-text-image-extraction.cs`](./async-pdf-text-image-extraction.cs) -- Async pdf text image extraction +- [`batch-extract-text-from-pdfs.cs`](./batch-extract-text-from-pdfs.cs) -- Batch extract text from pdfs +- [`batch-extract-text-from-pdfs__v2.cs`](./batch-extract-text-from-pdfs__v2.cs) -- Batch extract text from pdfs v2 +- [`batch-pdf-text-extraction-azure-blob.cs`](./batch-pdf-text-extraction-azure-blob.cs) -- Batch pdf text extraction azure blob +- [`cancel-pdf-image-extraction.cs`](./cancel-pdf-image-extraction.cs) -- Cancel pdf image extraction +- [`check-pdf-contains-text.cs`](./check-pdf-contains-text.cs) -- Check pdf contains text +- [`check-pdf-for-text-and-images.cs`](./check-pdf-for-text-and-images.cs) -- Check pdf for text and images +- [`check-pdf-text-only-by-detecting-images.cs`](./check-pdf-text-only-by-detecting-images.cs) -- Check pdf text only by detecting images +- [`check-pdf-text-only-by-extracting-images.cs`](./check-pdf-text-only-by-extracting-images.cs) -- Check pdf text only by extracting images +- [`configurable-pdf-extraction.cs`](./configurable-pdf-extraction.cs) -- Configurable pdf extraction +- [`convert-pdf-to-multi-page-tiff.cs`](./convert-pdf-to-multi-page-tiff.cs) -- Convert pdf to multi page tiff +- [`create-a-batch-job-that-processes-pdfs-from-an-azure-blob-container-extracting-text-and-uploading-results-back.cs`](./create-a-batch-job-that-processes-pdfs-from-an-azure-blob-container-extracting-text-and-uploading-results-back.cs) -- Create a batch job that processes pdfs from an azure blob container extracting text and uploading results back +- [`create-contact-sheet-pdf-from-extracted-images.cs`](./create-contact-sheet-pdf-from-extracted-images.cs) -- Create contact sheet pdf from extracted images +- [`create-contact-sheet-pdf.cs`](./create-contact-sheet-pdf.cs) -- Create contact sheet pdf +- [`create-pdf-summary-from-first-three-pages.cs`](./create-pdf-summary-from-first-three-pages.cs) -- Create pdf summary from first three pages +- [`export-pdf-images-to-jpeg-quality-85.cs`](./export-pdf-images-to-jpeg-quality-85.cs) -- Export pdf images to jpeg quality 85 +- [`extract-all-images-from-pdf.cs`](./extract-all-images-from-pdf.cs) -- Extract all images from pdf +- [`extract-attachments-compute-sha256.cs`](./extract-attachments-compute-sha256.cs) -- Extract attachments compute sha256 +- [`extract-embedded-attachments-from-pdf.cs`](./extract-embedded-attachments-from-pdf.cs) -- Extract embedded attachments from pdf +- [`extract-images-and-compress-png-zip.cs`](./extract-images-and-compress-png-zip.cs) -- Extract images and compress png zip +- [`extract-images-and-create-thumbnails.cs`](./extract-images-and-create-thumbnails.cs) -- Extract images and create thumbnails +- [`extract-images-by-keyword.cs`](./extract-images-by-keyword.cs) -- Extract images by keyword +- [`extract-images-create-pdf-portfolio.cs`](./extract-images-create-pdf-portfolio.cs) -- Extract images create pdf portfolio +- [`extract-images-create-sprite-sheet.cs`](./extract-images-create-sprite-sheet.cs) -- Extract images create sprite sheet +- [`extract-images-first-page-to-byte-arrays.cs`](./extract-images-first-page-to-byte-arrays.cs) -- Extract images first page to byte arrays +- [`extract-images-from-a-pdf-and-embed-them-into-an-html-report-using-base64-data-uris.cs`](./extract-images-from-a-pdf-and-embed-them-into-an-html-report-using-base64-data-uris.cs) -- Extract images from a pdf and embed them into an html report using base64 data uris +- [`extract-images-from-encrypted-pdf.cs`](./extract-images-from-encrypted-pdf.cs) -- Extract images from encrypted pdf +- [`extract-images-from-first-pdf-page.cs`](./extract-images-from-first-pdf-page.cs) -- Extract images from first pdf page +- [`extract-images-from-pages-png.cs`](./extract-images-from-pages-png.cs) -- Extract images from pages png +- [`extract-images-from-pdf-pages-png.cs`](./extract-images-from-pdf-pages-png.cs) -- Extract images from pdf pages png +- [`extract-images-from-pdf-png.cs`](./extract-images-from-pdf-png.cs) -- Extract images from pdf png +- [`extract-images-from-pdf-to-base64-json.cs`](./extract-images-from-pdf-to-base64-json.cs) -- Extract images from pdf to base64 json +- [`extract-images-from-pdf-to-temp-folder.cs`](./extract-images-from-pdf-to-temp-folder.cs) -- Extract images from pdf to temp folder +- [`extract-images-from-pdf-to-unc.cs`](./extract-images-from-pdf-to-unc.cs) -- Extract images from pdf to unc +- [`extract-images-from-pdf-to-zip.cs`](./extract-images-from-pdf-to-zip.cs) -- Extract images from pdf to zip +- [`extract-images-from-pdf-using-pdfextractor.cs`](./extract-images-from-pdf-using-pdfextractor.cs) -- Extract images from pdf using pdfextractor +- [`extract-images-from-pdf-with-guid-filenames.cs`](./extract-images-from-pdf-with-guid-filenames.cs) -- Extract images from pdf with guid filenames +- [`extract-images-from-pdf.cs`](./extract-images-from-pdf.cs) -- Extract images from pdf +- [`extract-images-from-specific-pdf-page.cs`](./extract-images-from-specific-pdf-page.cs) -- Extract images from specific pdf page +- [`extract-images-html-gallery.cs`](./extract-images-html-gallery.cs) -- Extract images html gallery +- [`extract-images-markdown-gallery.cs`](./extract-images-markdown-gallery.cs) -- Extract images markdown gallery +- [`extract-images-ocr-from-pdf.cs`](./extract-images-ocr-from-pdf.cs) -- Extract images ocr from pdf +- [`extract-images-ocr-openai-copilot.cs`](./extract-images-ocr-openai-copilot.cs) -- Extract images ocr openai copilot +- [`extract-images-original-format-pdfextractor.cs`](./extract-images-original-format-pdfextractor.cs) -- Extract images original format pdfextractor +- [`extract-images-original-format.cs`](./extract-images-original-format.cs) -- Extract images original format +- [`extract-images-pdf-create-video-slideshow.cs`](./extract-images-pdf-create-video-slideshow.cs) -- Extract images pdf create video slideshow +- [`extract-images-pdf-csv-index.cs`](./extract-images-pdf-csv-index.cs) -- Extract images pdf csv index +- [`extract-images-pdf-csv-manifest.cs`](./extract-images-pdf-csv-manifest.cs) -- Extract images pdf csv manifest +- [`extract-images-pdf-csv-report.cs`](./extract-images-pdf-csv-report.cs) -- Extract images pdf csv report +- [`extract-images-pdf-html-gallery.cs`](./extract-images-pdf-html-gallery.cs) -- Extract images pdf html gallery +- [`extract-images-pdf-to-base64-json.cs`](./extract-images-pdf-to-base64-json.cs) -- Extract images pdf to base64 json +- [`extract-images-pdf-upload-s3.cs`](./extract-images-pdf-upload-s3.cs) -- Extract images pdf upload s3 +- [`extract-images-to-base64.cs`](./extract-images-to-base64.cs) -- Extract images to base64 +- [`extract-images-to-bmp.cs`](./extract-images-to-bmp.cs) -- Extract images to bmp +- [`extract-images-to-html-report.cs`](./extract-images-to-html-report.cs) -- Extract images to html report +- [`extract-images-to-pdfa2b.cs`](./extract-images-to-pdfa2b.cs) -- Extract images to pdfa2b +- [`extract-images-to-tiff.cs`](./extract-images-to-tiff.cs) -- Extract images to tiff +- [`extract-images-to-unc-share.cs`](./extract-images-to-unc-share.cs) -- Extract images to unc share +- [`extract-images-to-unc-share__v2.cs`](./extract-images-to-unc-share__v2.cs) -- Extract images to unc share v2 +- [`extract-images-to-zip.cs`](./extract-images-to-zip.cs) -- Extract images to zip +- [`extract-images-validate-signature.cs`](./extract-images-validate-signature.cs) -- Extract images validate signature +- [`extract-images-with-watermark.cs`](./extract-images-with-watermark.cs) -- Extract images with watermark +- [`extract-pdf-attachments-by-extension.cs`](./extract-pdf-attachments-by-extension.cs) -- Extract pdf attachments by extension +- [`extract-pdf-attachments-rename-timestamp.cs`](./extract-pdf-attachments-rename-timestamp.cs) -- Extract pdf attachments rename timestamp +- [`extract-pdf-attachments-sha256.cs`](./extract-pdf-attachments-sha256.cs) -- Extract pdf attachments sha256 +- [`extract-pdf-attachments-with-timestamp.cs`](./extract-pdf-attachments-with-timestamp.cs) -- Extract pdf attachments with timestamp +- [`extract-pdf-images-as-bmp.cs`](./extract-pdf-images-as-bmp.cs) -- Extract pdf images as bmp +- [`extract-pdf-images-create-video-slideshow.cs`](./extract-pdf-images-create-video-slideshow.cs) -- Extract pdf images create video slideshow +- [`extract-pdf-images-to-azure-blob.cs`](./extract-pdf-images-to-azure-blob.cs) -- Extract pdf images to azure blob +- [`extract-pdf-images-to-gcs.cs`](./extract-pdf-images-to-gcs.cs) -- Extract pdf images to gcs +- [`extract-pdf-images-to-jpeg-quality-85.cs`](./extract-pdf-images-to-jpeg-quality-85.cs) -- Extract pdf images to jpeg quality 85 +- [`extract-pdf-images-to-s3-with-encryption.cs`](./extract-pdf-images-to-s3-with-encryption.cs) -- Extract pdf images to s3 with encryption +- [`extract-pdf-images-to-s3.cs`](./extract-pdf-images-to-s3.cs) -- Extract pdf images to s3 +- [`extract-pdf-text-and-encrypt-aes.cs`](./extract-pdf-text-and-encrypt-aes.cs) -- Extract pdf text and encrypt aes +- [`extract-pdf-text-azure-table.cs`](./extract-pdf-text-azure-table.cs) -- Extract pdf text azure table +- [`extract-pdf-text-in-memory.cs`](./extract-pdf-text-in-memory.cs) -- Extract pdf text in memory +- [`extract-pdf-text-page-by-page.cs`](./extract-pdf-text-page-by-page.cs) -- Extract pdf text page by page +- [`extract-pdf-text-per-page-progress.cs`](./extract-pdf-text-per-page-progress.cs) -- Extract pdf text per page progress +- [`extract-pdf-text-per-page.cs`](./extract-pdf-text-per-page.cs) -- Extract pdf text per page +- [`extract-pdf-text-to-azure-table.cs`](./extract-pdf-text-to-azure-table.cs) -- Extract pdf text to azure table +- [`extract-pdf-text-to-gzip.cs`](./extract-pdf-text-to-gzip.cs) -- Extract pdf text to gzip +- [`extract-pdf-text-to-memory-stream.cs`](./extract-pdf-text-to-memory-stream.cs) -- Extract pdf text to memory stream +- [`extract-pdf-text-to-memorystream.cs`](./extract-pdf-text-to-memorystream.cs) -- Extract pdf text to memorystream +- [`extract-pdf-text-to-postgres.cs`](./extract-pdf-text-to-postgres.cs) -- Extract pdf text to postgres +- [`extract-pdf-text-to-postgresql.cs`](./extract-pdf-text-to-postgresql.cs) -- Extract pdf text to postgresql +- [`extract-pdf-text-to-stringbuilder.cs`](./extract-pdf-text-to-stringbuilder.cs) -- Extract pdf text to stringbuilder +- [`extract-pdf-text-to-stringwriter.cs`](./extract-pdf-text-to-stringwriter.cs) -- Extract pdf text to stringwriter +- [`extract-pdf-text-to-utf8-file.cs`](./extract-pdf-text-to-utf8-file.cs) -- Extract pdf text to utf8 file +- [`extract-pdf-text-utf8.cs`](./extract-pdf-text-utf8.cs) -- Extract pdf text utf8 +- [`extract-pdf-text-verify-temp-file.cs`](./extract-pdf-text-verify-temp-file.cs) -- Extract pdf text verify temp file +- [`extract-pdf-text-with-progress.cs`](./extract-pdf-text-with-progress.cs) -- Extract pdf text with progress +- [`extract-pdf-text-with-progress__v2.cs`](./extract-pdf-text-with-progress__v2.cs) -- Extract pdf text with progress v2 +- [`extract-resource-images-pdf-extractor.cs`](./extract-resource-images-pdf-extractor.cs) -- Extract resource images pdf extractor +- [`extract-text-and-images-from-pdf.cs`](./extract-text-and-images-from-pdf.cs) -- Extract text and images from pdf +- [`extract-text-and-images-from-pdfs.cs`](./extract-text-and-images-from-pdfs.cs) -- Extract text and images from pdfs +- [`extract-text-from-password-protected-pdf.cs`](./extract-text-from-password-protected-pdf.cs) -- Extract text from password protected pdf +- [`extract-text-from-pdf-byte-array.cs`](./extract-text-from-pdf-byte-array.cs) -- Extract text from pdf byte array +- [`extract-text-from-pdf-byte-array__v2.cs`](./extract-text-from-pdf-byte-array__v2.cs) -- Extract text from pdf byte array v2 +- [`extract-text-from-pdf-bytes.cs`](./extract-text-from-pdf-bytes.cs) -- Extract text from pdf bytes +- [`extract-text-from-pdf-cli.cs`](./extract-text-from-pdf-cli.cs) -- Extract text from pdf cli +- [`extract-text-from-pdf-pages-with-progress-bar.cs`](./extract-text-from-pdf-pages-with-progress-bar.cs) -- Extract text from pdf pages with progress bar +- [`extract-text-from-pdf-queue-trigger.cs`](./extract-text-from-pdf-queue-trigger.cs) -- Extract text from pdf queue trigger +- [`extract-text-from-pdf-to-utf8-txt.cs`](./extract-text-from-pdf-to-utf8-txt.cs) -- Extract text from pdf to utf8 txt +- [`extract-text-from-pdf.cs`](./extract-text-from-pdf.cs) -- Extract text from pdf +- [`extract-text-from-pdf__v2.cs`](./extract-text-from-pdf__v2.cs) -- Extract text from pdf v2 +- [`extract-text-from-protected-pdf.cs`](./extract-text-from-protected-pdf.cs) -- Extract text from protected pdf +- [`extract-text-ignoring-images.cs`](./extract-text-ignoring-images.cs) -- Extract text ignoring images +- [`extract-text-images-from-pdfs.cs`](./extract-text-images-from-pdfs.cs) -- Extract text images from pdfs +- [`extract-text-only-ignore-images.cs`](./extract-text-only-ignore-images.cs) -- Extract text only ignore images +- [`extract-text-to-temp-file-and-verify.cs`](./extract-text-to-temp-file-and-verify.cs) -- Extract text to temp file and verify +- [`handle-corrupted-pdf-binding.cs`](./handle-corrupted-pdf-binding.cs) -- Handle corrupted pdf binding +- [`list-embedded-attachment-names.cs`](./list-embedded-attachment-names.cs) -- List embedded attachment names +- [`parallel-image-extraction-from-pdfs.cs`](./parallel-image-extraction-from-pdfs.cs) -- Parallel image extraction from pdfs +- [`pdf-diagnostic-tool-counts.cs`](./pdf-diagnostic-tool-counts.cs) -- Pdf diagnostic tool counts +- [`pdf-extractor-text-extraction-test.cs`](./pdf-extractor-text-extraction-test.cs) -- Pdf extractor text extraction test +- [`pdf-extractor-unit-test.cs`](./pdf-extractor-unit-test.cs) -- Pdf extractor unit test +- [`pdf-text-extraction-azure-function.cs`](./pdf-text-extraction-azure-function.cs) -- Pdf text extraction azure function +- [`pdf-text-extraction-service.cs`](./pdf-text-extraction-service.cs) -- Pdf text extraction service +- [`report-pdf-page-image-attachment-counts.cs`](./report-pdf-page-image-attachment-counts.cs) -- Report pdf page image attachment counts +- [`retry-pdf-text-extraction.cs`](./retry-pdf-text-extraction.cs) -- Retry pdf text extraction +- [`test-image-extraction-mode-pdf-extractor.cs`](./test-image-extraction-mode-pdf-extractor.cs) -- Test image extraction mode pdf extractor +- [`test-image-extraction-mode.cs`](./test-image-extraction-mode.cs) -- Test image extraction mode + +## See Also + +- [`AGENTS.md`](./AGENTS.md) -- category-specific anti-patterns, API surface, and conventions for AI coding agents +- [`../AGENTS.md`](../AGENTS.md) -- repository-wide agent guide +- [`../README.md`](../README.md) -- full category index and project overview +- [Aspose.PDF for .NET docs](https://docs.aspose.com/pdf/net/) + +> Each `.cs` file is a standalone, build-validated console example. Drop into a fresh `dotnet new console` project, add the `Aspose.PDF` NuGet (version above), and run. diff --git a/facades-extract-images-and-text/index.json b/facades-extract-images-and-text/index.json index a69782c36..0ed37b5f1 100644 --- a/facades-extract-images-and-text/index.json +++ b/facades-extract-images-and-text/index.json @@ -1,71 +1,76 @@ { "category": "facades-extract-images-and-text", "nuget_version": "26.8.0", - "last_updated": "2026-08-20T07:46:19Z", + "last_updated": "2026-09-10T12:45:08Z", "examples": { - "extract-text-from-pdf-to-utf8-txt": { - "title": "Extract Text from PDF to UTF-8 Text File", - "filename": "extract-text-from-pdf-to-utf8-txt.cs", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to extract plain text from a PDF document and save it as a UTF-8 encoded .txt file.", - "tags": [ - "pdf", - "text-extraction", - "utf-8", - "aspose-pdf", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfExtractor", - "PdfExtractor.BindPdf", - "PdfExtractor.ExtractText", - "PdfExtractor.GetText" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:46:19Z", - "status": "verified" - }, - "extract-pdf-text-in-memory": { - "title": "Extract PDF Text In-Memory Using PdfExtractor", - "filename": "extract-pdf-text-in-memory.cs", - "description": "Demonstrates loading a PDF from a MemoryStream, extracting its text with Aspose.Pdf.Facades.PdfExtractor, and returning the result in another MemoryStream for further in‑memory processing.", + "add-watermark-extract-images-from-pdf": { + "title": "Add Watermark to PDF Pages and Extract Images", + "filename": "add-watermark-extract-images-from-pdf.cs", + "description": "Demonstrates how to overlay a PNG watermark on each page of a PDF using PdfFileMend, then extract all images from the watermarked PDF with PdfExtractor and save them as PNG files.", "tags": [ + "watermark", + "image-extraction", "pdf", - "text-extraction", - "memorystream", - "aspose-pdf", - "in-memory" + "Aspose.Pdf", + "PdfFileMend" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfFileMend", + "Aspose.Pdf.Facades.PdfFileMend.BindPdf", + "Aspose.Pdf.Facades.PdfFileMend.AddImage", + "Aspose.Pdf.Facades.PdfFileMend.Save", "Aspose.Pdf.Facades.PdfExtractor", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractText", - "Aspose.Pdf.Facades.PdfExtractor.GetText", - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment" + "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", + "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", + "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "check-pdf-contains-text": { - "title": "Check if PDF Contains Text via MemoryStream", - "filename": "check-pdf-contains-text.cs", - "description": "Shows how to bind a PDF to Aspose.Pdf.Facades.PdfExtractor, extract its text into a MemoryStream, and determine whether the document contains any text.", + "async-extract-text-and-images-from-pdf": { + "title": "Async Extract Text And Images From Pdf", + "filename": "async-extract-text-and-images-from-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "async-pdf-text-extraction-with-cancellation": { + "title": "Async Pdf Text Extraction With Cancellation", + "filename": "async-pdf-text-extraction-with-cancellation.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "async-pdf-text-image-extraction": { + "title": "Asynchronous PDF Text and Image Extraction", + "filename": "async-pdf-text-image-extraction.cs", + "description": "Demonstrates how to extract text and images from a PDF file asynchronously using Aspose.Pdf's PdfExtractor with Task.Run and cancellation support, keeping UI threads responsive.", "tags": [ "pdf", + "asynchronous", "text-extraction", - "aspose", - "memorystream", - "validation" + "image-extraction", + "cancellation" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", "Aspose.Pdf.Facades.PdfExtractor.ExtractText", - "Aspose.Pdf.Facades.PdfExtractor.GetText" + "Aspose.Pdf.Facades.PdfExtractor.GetText", + "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", + "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", + "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, @@ -90,647 +95,790 @@ "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "check-pdf-for-text-and-images": { - "title": "Check PDF for Both Text and Images", - "filename": "check-pdf-for-text-and-images.cs", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to determine whether a PDF file contains at least one text fragment and one image.", + "batch-extract-text-from-pdfs__v2": { + "title": "Batch Extract Text from PDFs with PdfExtractor", + "filename": "batch-extract-text-from-pdfs__v2.cs", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to extract text from every PDF file in a folder and save each as a .txt file.", "tags": [ "pdf", "text-extraction", - "image-extraction", - "content-detection", - "aspose-pdf" + "batch", + "aspose", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", "Aspose.Pdf.Facades.PdfExtractor.ExtractText", - "Aspose.Pdf.Facades.PdfExtractor.GetText", - "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", - "Aspose.Pdf.Facades.PdfExtractor.HasNextImage" + "Aspose.Pdf.Facades.PdfExtractor.GetText" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-text-and-images-from-pdf": { - "title": "Extract Text and Images from PDF using PdfExtractor", - "filename": "extract-text-and-images-from-pdf.cs", - "description": "Demonstrates how to create a PdfExtractor, bind it to a PDF file, and simultaneously extract both the document text and embedded images, saving them to separate outputs.", + "batch-pdf-text-extraction-azure-blob": { + "title": "Batch Pdf Text Extraction Azure Blob", + "filename": "batch-pdf-text-extraction-azure-blob.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "cancel-pdf-image-extraction": { + "title": "Cancel PDF Image Extraction with InterruptMonitor", + "filename": "cancel-pdf-image-extraction.cs", + "description": "Demonstrates how to use Aspose.Pdf's InterruptMonitor and a CancellationToken to abort a PdfExtractor image extraction operation when the user requests cancellation.", "tags": [ "pdf", - "text-extraction", "image-extraction", - "aspose", - "csharp" + "cancellation", + "interruptmonitor", + "aspose-pdf" ], "apis_used": [ "PdfExtractor", + "InterruptMonitor", "PdfExtractor.BindPdf", - "PdfExtractor.ExtractText", - "PdfExtractor.GetText", "PdfExtractor.ExtractImage", "PdfExtractor.HasNextImage", - "PdfExtractor.GetNextImage" + "PdfExtractor.GetNextImage", + "InterruptMonitor.Interrupt" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-text-from-protected-pdf": { - "title": "Extract Text from Password-Protected PDF", - "filename": "extract-text-from-protected-pdf.cs", - "description": "Demonstrates how to provide the owner password to a PdfExtractor, bind an encrypted PDF, and extract its text to a file using Aspose.Pdf.", + "check-pdf-contains-text": { + "title": "Check if PDF Contains Text via MemoryStream", + "filename": "check-pdf-contains-text.cs", + "description": "Shows how to bind a PDF to Aspose.Pdf.Facades.PdfExtractor, extract its text into a MemoryStream, and determine whether the document contains any text.", "tags": [ "pdf", "text-extraction", - "password-protected", "aspose", - "csharp" + "memorystream", + "validation" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", - "PdfExtractor.Password", - "PdfExtractor.BindPdf", - "PdfExtractor.ExtractText", - "PdfExtractor.GetText" + "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor.ExtractText", + "Aspose.Pdf.Facades.PdfExtractor.GetText" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-pdf-text-utf8": { - "title": "Extract PDF Text and Save as UTF-8 File", - "filename": "extract-pdf-text-utf8.cs", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to extract text from a PDF document and write it to a UTF‑8 encoded text file.", + "check-pdf-for-text-and-images": { + "title": "Check PDF for Both Text and Images", + "filename": "check-pdf-for-text-and-images.cs", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to determine whether a PDF file contains at least one text fragment and one image.", "tags": [ "pdf", "text-extraction", - "utf-8", - "file-output", + "image-extraction", + "content-detection", "aspose-pdf" ], "apis_used": [ - "PdfExtractor", - "PdfExtractor.BindPdf", - "PdfExtractor.ExtractText", - "PdfExtractor.GetText" + "Aspose.Pdf.Facades.PdfExtractor", + "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor.ExtractText", + "Aspose.Pdf.Facades.PdfExtractor.GetText", + "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", + "Aspose.Pdf.Facades.PdfExtractor.HasNextImage" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-text-from-pdf-byte-array": { - "title": "Extract Text from PDF Byte Array Using PdfExtractor", - "filename": "extract-text-from-pdf-byte-array.cs", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to extract all text from a PDF supplied as a byte array entirely in memory, without writing any files to disk.", + "check-pdf-text-only-by-detecting-images": { + "title": "Check if PDF is Text‑Only by Detecting Images", + "filename": "check-pdf-text-only-by-detecting-images.cs", + "description": "Demonstrates using Aspose.Pdf.Facades.PdfExtractor to determine whether a PDF contains any images, indicating if it is text‑only.", "tags": [ "pdf", - "text-extraction", - "memory-stream", - "facade", - "aspose-pdf" + "image-extraction", + "text-only", + "aspose", + "pdf-extractor" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractText", - "Aspose.Pdf.Facades.PdfExtractor.GetText" + "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", + "Aspose.Pdf.Facades.PdfExtractor.HasNextImage" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-pdf-text-per-page": { - "title": "Extract PDF Text and Save Each Page to a File", - "filename": "extract-pdf-text-per-page.cs", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to extract the full text of a PDF and then split it into separate per‑page text files.", + "check-pdf-text-only-by-extracting-images": { + "title": "Check Pdf Text Only By Extracting Images", + "filename": "check-pdf-text-only-by-extracting-images.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "configurable-pdf-extraction": { + "title": "Configurable PDF Text, Image, and Attachment Extraction", + "filename": "configurable-pdf-extraction.cs", + "description": "Demonstrates reading a JSON configuration to enable or disable text, image, and attachment extraction from a PDF using Aspose.Pdf's PdfExtractor facade.", "tags": [ "pdf", - "text-extraction", + "extraction", + "configuration", "aspose", - "facade", - "pages" + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", "PdfExtractor.BindPdf", "PdfExtractor.ExtractText", "PdfExtractor.GetText", - "PdfExtractor.HasNextPageText", - "PdfExtractor.GetNextPageText" + "PdfExtractor.ExtractImage", + "PdfExtractor.HasNextImage", + "PdfExtractor.GetNextImage", + "PdfExtractor.ExtractAttachment", + "PdfExtractor.GetAttachment" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "pdf-extractor-unit-test": { - "title": "Unit Test for Extracting Text with PdfExtractor", - "filename": "pdf-extractor-unit-test.cs", - "description": "Demonstrates creating a simple PDF, extracting its text using Aspose.Pdf's PdfExtractor, and verifying the extracted content with an NUnit unit test.", + "convert-pdf-to-multi-page-tiff": { + "title": "Convert Pdf To Multi Page Tiff", + "filename": "convert-pdf-to-multi-page-tiff.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-a-batch-job-that-processes-pdfs-from-an-azure-blob-container-extracting-text-and-uploading-results-back": { + "title": "Create A Batch Job That Processes Pdfs From An Azure Blob Container Extracting Text And Uploading Results Back", + "filename": "create-a-batch-job-that-processes-pdfs-from-an-azure-blob-container-extracting-text-and-uploading-results-back.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-08-20T07:46:19Z", + "status": "verified" + }, + "create-contact-sheet-pdf-from-extracted-images": { + "title": "Create Contact Sheet PDF from Extracted Images", + "filename": "create-contact-sheet-pdf-from-extracted-images.cs", + "description": "The example extracts all images from a source PDF using PdfExtractor, then arranges them as thumbnails on a grid to generate a new contact‑sheet PDF.", "tags": [ - "pdf", - "text-extraction", - "unit-test", - "aspose", - "nunit" + "image-extraction", + "contact-sheet", + "thumbnail", + "pdf-generation", + "Aspose.Pdf" ], "apis_used": [ + "Aspose.Pdf.Facades.PdfExtractor", "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Facades.PdfExtractor", - "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractText", - "Aspose.Pdf.Facades.PdfExtractor.GetText" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Page.AddImage", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-text-from-pdf": { - "title": "Extract Text from PDF using Aspose PdfExtractor", - "filename": "extract-text-from-pdf.cs", - "description": "Demonstrates loading a PDF with PdfExtractor, extracting its text content, and outputting the Unicode text to the console.", + "create-contact-sheet-pdf": { + "title": "Create Contact Sheet Pdf", + "filename": "create-contact-sheet-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-pdf-summary-from-first-three-pages": { + "title": "Create PDF Summary from First Three Pages Text", + "filename": "create-pdf-summary-from-first-three-pages.cs", + "description": "Demonstrates extracting text from the first three pages of a PDF using PdfExtractor and generating a new PDF that contains the extracted text as a summary.", "tags": [ "pdf", "text-extraction", - "aspose", - "console", + "summary", + "aspose-pdf", + "facades" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfExtractor", + "Aspose.Pdf.Document", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.FontRepository.FindFont", + "Aspose.Pdf.Color" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:46:19Z", + "status": "verified" + }, + "export-pdf-images-to-jpeg-quality-85": { + "title": "Export Pdf Images To Jpeg Quality 85", + "filename": "export-pdf-images-to-jpeg-quality-85.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-all-images-from-pdf": { + "title": "Extract All Images from PDF using PdfExtractor", + "filename": "extract-all-images-from-pdf.cs", + "description": "Demonstrates how to use Aspose.Pdf's PdfExtractor facade to extract every image from a PDF document and save them as PNG files.", + "tags": [ + "pdf", + "image-extraction", + "aspose-pdf", + "facade", "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractText", - "Aspose.Pdf.Facades.PdfExtractor.GetText" + "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", + "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", + "Aspose.Pdf.Facades.PdfExtractor.GetNextImage", + "Aspose.Pdf.Facades.PdfExtractor.StartPage", + "Aspose.Pdf.Facades.PdfExtractor.EndPage" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-pdf-text-to-stringbuilder": { - "title": "Extract PDF Text to StringBuilder", - "filename": "extract-pdf-text-to-stringbuilder.cs", - "description": "Shows how to use Aspose.Pdf.Facades.PdfExtractor to extract text from a PDF, store it in a StringBuilder for further manipulation, and then write it to a file.", + "extract-attachments-compute-sha256": { + "title": "Extract PDF Attachments and Compute SHA-256 Hashes", + "filename": "extract-attachments-compute-sha256.cs", + "description": "Demonstrates creating a PDF with an embedded file, extracting all attachments using Aspose.Pdf.Facades.PdfExtractor, and calculating a SHA‑256 hash for each extracted file to verify integrity.", "tags": [ "pdf", - "text-extraction", - "stringbuilder", - "aspose-pdf", - "facade" + "attachments", + "extraction", + "hash", + "security" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.EmbeddedFiles.Add", "Aspose.Pdf.Facades.PdfExtractor", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractText", - "Aspose.Pdf.Facades.PdfExtractor.GetText" + "Aspose.Pdf.Facades.PdfExtractor.ExtractAttachment", + "Aspose.Pdf.Facades.PdfExtractor.GetAttachment", + "Aspose.Pdf.Facades.PdfExtractor.GetAttachNames" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "batch-extract-text-from-pdfs__v2": { - "title": "Batch Extract Text from PDFs with PdfExtractor", - "filename": "batch-extract-text-from-pdfs__v2.cs", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to extract text from every PDF file in a folder and save each as a .txt file.", + "extract-embedded-attachments-from-pdf": { + "title": "Extract Embedded Attachments from PDF", + "filename": "extract-embedded-attachments-from-pdf.cs", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to retrieve embedded file attachments from a PDF and save each one to a specified output folder.", "tags": [ "pdf", - "text-extraction", - "batch", + "attachments", + "extraction", "aspose", - "facade" + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractText", - "Aspose.Pdf.Facades.PdfExtractor.GetText" + "Aspose.Pdf.Facades.PdfExtractor.ExtractAttachment", + "Aspose.Pdf.Facades.PdfExtractor.GetAttachNames", + "Aspose.Pdf.Facades.PdfExtractor.GetAttachment" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-text-to-temp-file-and-verify": { - "title": "Extract PDF Text to Temporary File and Verify", - "filename": "extract-text-to-temp-file-and-verify.cs", - "description": "Demonstrates extracting text from a PDF using PdfExtractor, saving it to a temporary file, reading it back, and confirming the extracted content matches the original string.", + "extract-images-and-compress-png-zip": { + "title": "Extract Images from PDF and Compress as PNG ZIP", + "filename": "extract-images-and-compress-png-zip.cs", + "description": "Demonstrates extracting embedded images from a PDF using Aspose.Pdf.Facades.PdfExtractor, saving them as PNG files, and then losslessly compressing the images into a ZIP archive.", "tags": [ - "text-extraction", "pdf", - "temporary-file", - "verification", - "facade" + "image-extraction", + "png", + "zip", + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfExtractor", - "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractText", - "Aspose.Pdf.Facades.PdfExtractor.GetText(MemoryStream)", - "Aspose.Pdf.Facades.PdfExtractor.GetText(string)" + "PdfExtractor", + "PdfExtractor.BindPdf", + "PdfExtractor.ExtractImage", + "PdfExtractor.HasNextImage", + "PdfExtractor.GetNextImage", + "Document", + "Page", + "Aspose.Pdf.Image" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-pdf-text-and-encrypt-aes": { - "title": "Extract Text from PDF and Encrypt with AES", - "filename": "extract-pdf-text-and-encrypt-aes.cs", - "description": "Demonstrates extracting all text from a PDF using Aspose.Pdf's PdfExtractor facade, saving it to a temporary file, and then encrypting that file with AES‑256 before storing the result.", + "extract-images-and-create-thumbnails": { + "title": "Extract Images from PDF and Create Thumbnails", + "filename": "extract-images-and-create-thumbnails.cs", + "description": "Shows how to extract images from a PDF using Aspose.Pdf.Facades.PdfExtractor and generate PNG thumbnails with a maximum dimension of 200 pixels.", "tags": [ - "pdf-extraction", - "text", - "aes-encryption", - "facade-api", + "pdf", + "image-extraction", + "thumbnail", + "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractText", - "Aspose.Pdf.Facades.PdfExtractor.GetText" + "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", + "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", + "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "check-pdf-text-only-by-detecting-images": { - "title": "Check if PDF is Text‑Only by Detecting Images", - "filename": "check-pdf-text-only-by-detecting-images.cs", - "description": "Demonstrates using Aspose.Pdf.Facades.PdfExtractor to determine whether a PDF contains any images, indicating if it is text‑only.", + "extract-images-by-keyword": { + "title": "Extract Images from PDF Pages Containing a Keyword", + "filename": "extract-images-by-keyword.cs", + "description": "Shows how to use PdfExtractor to scan each PDF page for a specific keyword and extract only the images from pages where the keyword is present.", "tags": [ "pdf", - "image-extraction", - "text-only", - "aspose", - "pdf-extractor" + "image extraction", + "keyword search", + "Aspose.Pdf", + "PdfExtractor" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor.ExtractText", "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", + "Aspose.Pdf.Facades.PdfExtractor.GetNextImage", "Aspose.Pdf.Facades.PdfExtractor.HasNextImage" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-text-from-pdf-byte-array__v2": { - "title": "Extract Text from PDF Byte Array using Aspose.Pdf", - "filename": "extract-text-from-pdf-byte-array__v2.cs", - "description": "Demonstrates how to load a PDF from a byte array, extract its textual content with Aspose.Pdf.Facades.PdfExtractor, and return the result as JSON.", + "extract-images-create-pdf-portfolio": { + "title": "Extract Images from PDF and Build an Image Portfolio", + "filename": "extract-images-create-pdf-portfolio.cs", + "description": "Demonstrates how to extract all images from an existing PDF using Aspose.Pdf.Facades.PdfExtractor and then create a new PDF where each extracted image occupies its own page, forming a simple portfolio.", "tags": [ "pdf", - "text-extraction", - "byte-array", - "aspose", + "image-extraction", + "portfolio", + "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", - "PdfExtractor.BindPdf", - "PdfExtractor.ExtractText", - "PdfExtractor.GetText" + "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", + "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", + "Aspose.Pdf.Facades.PdfExtractor.GetNextImage", + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Page.AddImage" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-pdf-text-to-postgresql": { - "title": "Extract PDF Text and Store in PostgreSQL", - "filename": "extract-pdf-text-to-postgresql.cs", - "description": "Demonstrates how to extract Unicode text from a PDF using Aspose.Pdf and insert the extracted content into a PostgreSQL table for searchable indexing.", + "extract-images-create-sprite-sheet": { + "title": "Extract Images from PDF and Create a Sprite Sheet", + "filename": "extract-images-create-sprite-sheet.cs", + "description": "Demonstrates how to extract all images from a PDF using Aspose.Pdf.Facades.PdfExtractor and combine them into a single horizontal sprite sheet PNG.", "tags": [ "pdf", - "text-extraction", - "postgresql", - "aspose", - "database" + "image-extraction", + "sprite-sheet", + "aspose-pdf", + "csharp" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Facades.PdfExtractor", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractText", - "Aspose.Pdf.Facades.PdfExtractor.GetText" + "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", + "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", + "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "cancel-pdf-image-extraction": { - "title": "Cancel PDF Image Extraction with InterruptMonitor", - "filename": "cancel-pdf-image-extraction.cs", - "description": "Demonstrates how to use Aspose.Pdf's InterruptMonitor and a CancellationToken to abort a PdfExtractor image extraction operation when the user requests cancellation.", + "extract-images-first-page-to-byte-arrays": { + "title": "Extract Images from First PDF Page into Byte Arrays", + "filename": "extract-images-first-page-to-byte-arrays.cs", + "description": "The example creates a minimal PDF containing an in‑memory BMP image, then uses Aspose.Pdf.Facades.PdfExtractor to extract all images from the first page directly into byte arrays for further processing.", "tags": [ "pdf", "image-extraction", - "cancellation", - "interruptmonitor", - "aspose-pdf" + "byte-array", + "aspose-pdf", + "facades" ], "apis_used": [ - "PdfExtractor", - "InterruptMonitor", - "PdfExtractor.BindPdf", - "PdfExtractor.ExtractImage", - "PdfExtractor.HasNextImage", - "PdfExtractor.GetNextImage", - "InterruptMonitor.Interrupt" + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Image", + "Aspose.Pdf.Facades.PdfExtractor", + "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", + "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", + "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-pdf-text-to-memorystream": { - "title": "Extract PDF Text to MemoryStream for Further Processing", - "filename": "extract-pdf-text-to-memorystream.cs", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to extract text from a PDF, store it in a MemoryStream, and prepare the stream for consumption by another component.", - "tags": [ - "pdf-extraction", - "memorystream", - "text", - "aspose-pdf", - "facade" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfExtractor", - "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractText", - "Aspose.Pdf.Facades.PdfExtractor.GetText" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:46:19Z", + "extract-images-from-a-pdf-and-embed-them-into-an-html-report-using-base64-data-uris": { + "title": "Extract Images From A Pdf And Embed Them Into An Html Report Using Base64 Data Uris", + "filename": "extract-images-from-a-pdf-and-embed-them-into-an-html-report-using-base64-data-uris.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "extract-text-from-pdf-queue-trigger": { - "title": "Extract Text from PDFs via Azure Queue Trigger", - "filename": "extract-text-from-pdf-queue-trigger.cs", - "description": "Shows an Azure Function that reads a PDF blob name from a storage queue, downloads the PDF, extracts its text with Aspose.Pdf, and uploads the extracted text to another blob container.", + "extract-images-from-encrypted-pdf": { + "title": "Extract Images from Encrypted PDF with Password", + "filename": "extract-images-from-encrypted-pdf.cs", + "description": "Shows how to open an encrypted PDF by supplying the user password and extract all images using Aspose.Pdf's PdfExtractor.", "tags": [ - "azure-functions", - "pdf-extraction", - "aspose", - "storage-queue", - "blob-storage" + "pdf", + "image-extraction", + "encrypted", + "password", + "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", + "Aspose.Pdf.Facades.PdfExtractor.Password", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractText", - "Aspose.Pdf.Facades.PdfExtractor.GetText" + "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", + "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", + "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-pdf-text-to-gzip": { - "title": "Extract PDF Text and Compress to GZip", - "filename": "extract-pdf-text-to-gzip.cs", - "description": "Demonstrates extracting all text from a PDF using Aspose.Pdf.Facades.PdfExtractor and writing it directly to a GZip compressed stream to reduce storage size.", + "extract-images-from-first-pdf-page": { + "title": "Extract Images From First Pdf Page", + "filename": "extract-images-from-first-pdf-page.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-images-from-pages-png": { + "title": "Extract Images from Specific PDF Pages as PNG", + "filename": "extract-images-from-pages-png.cs", + "description": "Demonstrates using Aspose.Pdf.Facades.PdfExtractor to extract images from pages 5 through 10 of a PDF and save each image as a PNG file.", "tags": [ "pdf", - "text-extraction", - "gzip", - "compression", - "aspose-pdf" + "image-extraction", + "pages", + "png", + "aspose" ], "apis_used": [ "PdfExtractor", "PdfExtractor.BindPdf", - "PdfExtractor.ExtractText", - "PdfExtractor.GetText" + "PdfExtractor.StartPage", + "PdfExtractor.EndPage", + "PdfExtractor.ExtractImage", + "PdfExtractor.HasNextImage", + "PdfExtractor.GetNextImage", + "PdfExtractor.Close" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "create-a-batch-job-that-processes-pdfs-from-an-azure-blob-container-extracting-text-and-uploading-results-back": { - "title": "Create A Batch Job That Processes Pdfs From An Azure Blob Container Extracting Text And Uploading Results Back", - "filename": "create-a-batch-job-that-processes-pdfs-from-an-azure-blob-container-extracting-text-and-uploading-results-back.cs", + "extract-images-from-pdf-pages-png": { + "title": "Extract Images From Pdf Pages Png", + "filename": "extract-images-from-pdf-pages-png.cs", "description": "", "tags": [], "apis_used": [], "difficulty": "", - "generated_at": "2026-08-20T07:46:19Z", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "report-pdf-page-image-attachment-counts": { - "title": "Report PDF Page, Image, and Attachment Counts", - "filename": "report-pdf-page-image-attachment-counts.cs", - "description": "Shows how to use Aspose.Pdf.Facades to determine the total number of pages, embedded images, and file attachments in a PDF document.", + "extract-images-from-pdf-png": { + "title": "Extract Images From Pdf Png", + "filename": "extract-images-from-pdf-png.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-images-from-pdf-to-base64-json": { + "title": "Extract Images From Pdf To Base64 Json", + "filename": "extract-images-from-pdf-to-base64-json.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-images-from-pdf-to-temp-folder": { + "title": "Extract Images from PDF to Temporary Folder", + "filename": "extract-images-from-pdf-to-temp-folder.cs", + "description": "Demonstrates extracting all images from a PDF using Aspose.Pdf's PdfExtractor with the default extraction mode and saving them as JPEG files in a uniquely created temporary directory.", "tags": [ "pdf", - "page-count", "image-extraction", - "attachments", - "diagnostics" + "temporary-folder", + "aspose-pdf", + "csharp" ], "apis_used": [ - "PdfFileInfo.NumberOfPages", - "PdfExtractor.BindPdf", - "PdfExtractor.ExtractImage", - "PdfExtractor.HasNextImage", - "PdfExtractor.GetNextImage", - "PdfExtractor.ExtractAttachment", - "PdfExtractor.GetAttachmentInfo" + "Aspose.Pdf.Facades.PdfExtractor", + "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", + "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", + "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "create-pdf-summary-from-first-three-pages": { - "title": "Create PDF Summary from First Three Pages Text", - "filename": "create-pdf-summary-from-first-three-pages.cs", - "description": "Demonstrates extracting text from the first three pages of a PDF using PdfExtractor and generating a new PDF that contains the extracted text as a summary.", + "extract-images-from-pdf-to-unc": { + "title": "Extract Images from PDF to UNC Network Share", + "filename": "extract-images-from-pdf-to-unc.cs", + "description": "Demonstrates using Aspose.Pdf.Facades.PdfExtractor to pull all images from a PDF and save them as PNG files to a network‑mapped UNC folder.", "tags": [ "pdf", - "text-extraction", - "summary", + "image-extraction", + "unc", "aspose-pdf", - "facades" + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", - "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.FontRepository.FindFont", - "Aspose.Pdf.Color" + "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", + "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", + "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "retry-pdf-text-extraction": { - "title": "Retry PDF Text Extraction on IOException", - "filename": "retry-pdf-text-extraction.cs", - "description": "Demonstrates how to extract text from a PDF using Aspose.Pdf's PdfExtractor with a retry loop that handles IOException and attempts the operation up to three times.", + "extract-images-from-pdf-to-zip": { + "title": "Extract Images from PDF and Create ZIP Archive", + "filename": "extract-images-from-pdf-to-zip.cs", + "description": "Demonstrates how to use Aspose.Pdf to extract all images from a PDF document and package them into a ZIP file using .NET's ZipArchive.", "tags": [ "pdf", - "text-extraction", - "retry", - "exception-handling", - "aspose-pdf" + "image-extraction", + "zip", + "aspose-pdf", + "csharp" ], "apis_used": [ - "PdfExtractor", - "PdfExtractor.BindPdf", - "PdfExtractor.ExtractText", - "PdfExtractor.GetText" + "Aspose.Pdf.Facades.PdfExtractor", + "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", + "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", + "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-text-from-pdf__v2": { - "title": "Extract Text from PDF using PdfExtractor", - "filename": "extract-text-from-pdf__v2.cs", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to extract all text from a PDF file and output it to the console.", + "extract-images-from-pdf-using-pdfextractor": { + "title": "Extract Images from PDF Using PdfExtractor with Automatic Disposal", + "filename": "extract-images-from-pdf-using-pdfextractor.cs", + "description": "Demonstrates binding a PDF to Aspose.Pdf.Facades.PdfExtractor, extracting all images, and saving them to a folder while using a using block to automatically dispose the extractor.", "tags": [ "pdf", - "text-extraction", - "command-line", - "aspose-pdf", - "facade" + "image-extraction", + "aspose", + "pdfextractor", + "using-block" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", - "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractText", - "Aspose.Pdf.Facades.PdfExtractor.GetText" + "PdfExtractor.BindPdf", + "PdfExtractor.ExtractImage", + "PdfExtractor.HasNextImage", + "PdfExtractor.GetNextImage" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-pdf-text-to-azure-table": { - "title": "Extract PDF Text and Store in Azure Table", - "filename": "extract-pdf-text-to-azure-table.cs", - "description": "Demonstrates how to extract text from a PDF using Aspose.Pdf.Facades and save the extracted content as an entity in Azure Table storage.", + "extract-images-from-pdf-with-guid-filenames": { + "title": "Extract Images from PDF with GUID Filenames", + "filename": "extract-images-from-pdf-with-guid-filenames.cs", + "description": "Shows how to use Aspose.Pdf.Facades.PdfExtractor to extract all images from a PDF and save each as a PNG file with a unique GUID‑based filename to prevent naming collisions.", "tags": [ "pdf", - "text-extraction", - "azure-table", + "image-extraction", + "guid", "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractText", - "Aspose.Pdf.Facades.PdfExtractor.GetText", - "Aspose.Pdf.Facades.PdfExtractor.Dispose" + "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", + "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", + "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "async-pdf-text-image-extraction": { - "title": "Asynchronous PDF Text and Image Extraction", - "filename": "async-pdf-text-image-extraction.cs", - "description": "Demonstrates how to extract text and images from a PDF file asynchronously using Aspose.Pdf's PdfExtractor with Task.Run and cancellation support, keeping UI threads responsive.", + "extract-images-from-pdf": { + "title": "Extract Images From Pdf", + "filename": "extract-images-from-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-images-from-specific-pdf-page": { + "title": "Extract Images from a Specific PDF Page", + "filename": "extract-images-from-specific-pdf-page.cs", + "description": "Shows how to extract all images from a single PDF page by setting the StartPage and EndPage properties of PdfExtractor.", "tags": [ "pdf", - "asynchronous", - "text-extraction", "image-extraction", - "cancellation" + "single-page", + "Aspose.Pdf", + "C#" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", - "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractText", - "Aspose.Pdf.Facades.PdfExtractor.GetText", - "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", - "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", - "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" + "PdfExtractor.BindPdf", + "PdfExtractor.StartPage", + "PdfExtractor.EndPage", + "PdfExtractor.ExtractImage", + "PdfExtractor.HasNextImage", + "PdfExtractor.GetNextImage" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-pdf-text-to-stringwriter": { - "title": "Extract PDF Text to StringWriter for Logging", - "filename": "extract-pdf-text-to-stringwriter.cs", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to extract all text from a PDF, capture it in a MemoryStream, convert it to a string, and write it to a StringWriter for integration with logging frameworks.", + "extract-images-html-gallery": { + "title": "Extract Images from PDF and Create HTML Gallery", + "filename": "extract-images-html-gallery.cs", + "description": "Demonstrates extracting all images from a PDF using Aspose.Pdf.Facades.PdfExtractor and generating a simple HTML page that displays the extracted PNG files.", "tags": [ "pdf", - "text-extraction", - "stringwriter", - "logging", - "aspose-pdf" + "image-extraction", + "html-gallery", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractText", - "Aspose.Pdf.Facades.PdfExtractor.GetText" + "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", + "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", + "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "configurable-pdf-extraction": { - "title": "Configurable PDF Text, Image, and Attachment Extraction", - "filename": "configurable-pdf-extraction.cs", - "description": "Demonstrates reading a JSON configuration to enable or disable text, image, and attachment extraction from a PDF using Aspose.Pdf's PdfExtractor facade.", + "extract-images-markdown-gallery": { + "title": "Extract Images from PDF and Generate a Markdown Gallery", + "filename": "extract-images-markdown-gallery.cs", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to pull images from a PDF and create a markdown file that displays those images as a gallery.", "tags": [ "pdf", - "extraction", - "configuration", - "aspose", - "facade" + "image-extraction", + "markdown", + "gallery", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", - "PdfExtractor.BindPdf", - "PdfExtractor.ExtractText", - "PdfExtractor.GetText", - "PdfExtractor.ExtractImage", - "PdfExtractor.HasNextImage", - "PdfExtractor.GetNextImage", - "PdfExtractor.ExtractAttachment", - "PdfExtractor.GetAttachment" + "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", + "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", + "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-images-from-pages-png": { - "title": "Extract Images from Specific PDF Pages as PNG", - "filename": "extract-images-from-pages-png.cs", - "description": "Demonstrates using Aspose.Pdf.Facades.PdfExtractor to extract images from pages 5 through 10 of a PDF and save each image as a PNG file.", + "extract-images-ocr-from-pdf": { + "title": "Extract Images Ocr From Pdf", + "filename": "extract-images-ocr-from-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-images-ocr-openai-copilot": { + "title": "Extract Images from PDF and Perform OCR with OpenAI Copilot", + "filename": "extract-images-ocr-openai-copilot.cs", + "description": "The example extracts all images from a PDF using Aspose.Pdf.Facades.PdfExtractor, saves each image, and then runs OCR on the saved images with Aspose.Pdf.AI OpenAIOcrCopilot (OpenAI) to retrieve hidden textual content.", "tags": [ "pdf", "image-extraction", - "pages", - "png", - "aspose" + "ocr", + "aspose-pdf", + "openai" ], "apis_used": [ - "PdfExtractor", + "Aspose.Pdf.Facades.PdfExtractor", "PdfExtractor.BindPdf", - "PdfExtractor.StartPage", - "PdfExtractor.EndPage", "PdfExtractor.ExtractImage", "PdfExtractor.HasNextImage", "PdfExtractor.GetNextImage", - "PdfExtractor.Close" + "Aspose.Pdf.AI.OpenAIOcrCopilotOptions", + "Aspose.Pdf.AI.AICopilotFactory.CreateOcrCopilot", + "Aspose.Pdf.AI.IOcrCopilot.GetTextRecognitionResultAsync" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-resource-images-pdf-extractor": { - "title": "Extract Resource-Based Images from PDF using PdfExtractor", - "filename": "extract-resource-images-pdf-extractor.cs", - "description": "Demonstrates how to set PdfExtractor's ExtractImageMode to DefinedInResources and extract images defined in PDF resources, saving each image to a file.", + "extract-images-original-format-pdfextractor": { + "title": "Extract Images in Original Format Using PdfExtractor", + "filename": "extract-images-original-format-pdfextractor.cs", + "description": "Demonstrates how to extract images from a PDF while preserving their original format by setting ExtractImageMode to DefinedInResources and using GetNextImage without specifying an image format.", "tags": [ - "image extraction", + "image-extraction", + "original-format", "pdf", "aspose-pdf", - "resources", "pdfextractor" ], "apis_used": [ @@ -745,21 +893,28 @@ "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-images-first-page-to-byte-arrays": { - "title": "Extract Images from First PDF Page into Byte Arrays", - "filename": "extract-images-first-page-to-byte-arrays.cs", - "description": "The example creates a minimal PDF containing an in‑memory BMP image, then uses Aspose.Pdf.Facades.PdfExtractor to extract all images from the first page directly into byte arrays for further processing.", + "extract-images-original-format": { + "title": "Extract Images Original Format", + "filename": "extract-images-original-format.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-images-pdf-create-video-slideshow": { + "title": "Extract Images from PDF and Create a Video Slideshow", + "filename": "extract-images-pdf-create-video-slideshow.cs", + "description": "Demonstrates how to extract all images from a PDF using Aspose.Pdf.Facades and then generate a video slideshow from the extracted pictures with FFmpeg.", "tags": [ "pdf", "image-extraction", - "byte-array", - "aspose-pdf", - "facades" + "ffmpeg", + "slideshow", + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Image", "Aspose.Pdf.Facades.PdfExtractor", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", @@ -770,60 +925,81 @@ "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-images-to-bmp": { - "title": "Extract Images from PDF and Save as BMP", - "filename": "extract-images-to-bmp.cs", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to extract all images from a PDF and save them as BMP files while preserving the original resolution and color depth.", + "extract-images-pdf-csv-index": { + "title": "Extract Images from PDF and Create CSV Index", + "filename": "extract-images-pdf-csv-index.cs", + "description": "The example opens a PDF, extracts all embedded images, saves each as a PNG file, and generates a CSV file that lists the image filename, page number, and dimensions.", "tags": [ "pdf", "image-extraction", - "bmp", + "csv", "aspose-pdf", - "facade" + "csharp" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfExtractor", - "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", - "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", - "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" + "Aspose.Pdf.Document", + "Aspose.Pdf.ImagePlacementAbsorber", + "Aspose.Pdf.ImagePlacement", + "Aspose.Pdf.ImagePlacement.Image.Save", + "Aspose.Pdf.Document.Pages.Accept" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-pdf-images-to-jpeg-quality-85": { - "title": "Extract PDF Images to JPEG with Quality 85", - "filename": "extract-pdf-images-to-jpeg-quality-85.cs", - "description": "Demonstrates extracting all images from a PDF and saving them as JPEG files with a quality setting of 85 using Aspose.Pdf.Facades.PdfConverter.", + "extract-images-pdf-csv-manifest": { + "title": "Extract Images from PDF and Generate CSV Manifest", + "filename": "extract-images-pdf-csv-manifest.cs", + "description": "Demonstrates how to extract all images from each page of a PDF using Aspose.Pdf.Facades, save them as PNG files, and create a CSV file that lists each image's file name, page number, and dimensions.", "tags": [ "pdf", "image-extraction", - "jpeg", - "quality", - "aspose-pdf" + "csv", + "aspose", + "facades" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfConverter", - "Aspose.Pdf.Facades.PdfConverter.BindPdf", - "Aspose.Pdf.Facades.PdfConverter.DoConvert", - "Aspose.Pdf.Facades.PdfConverter.HasNextImage", - "Aspose.Pdf.Facades.PdfConverter.GetNextImage" + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfExtractor", + "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", + "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", + "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-images-from-pdf-to-temp-folder": { - "title": "Extract Images from PDF to Temporary Folder", - "filename": "extract-images-from-pdf-to-temp-folder.cs", - "description": "Demonstrates extracting all images from a PDF using Aspose.Pdf's PdfExtractor with the default extraction mode and saving them as JPEG files in a uniquely created temporary directory.", + "extract-images-pdf-csv-report": { + "title": "Extract Images Pdf Csv Report", + "filename": "extract-images-pdf-csv-report.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-images-pdf-html-gallery": { + "title": "Extract Images Pdf Html Gallery", + "filename": "extract-images-pdf-html-gallery.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-images-pdf-to-base64-json": { + "title": "Extract Images from PDF to Base64 JSON", + "filename": "extract-images-pdf-to-base64-json.cs", + "description": "Demonstrates extracting all images from a PDF using Aspose.Pdf.Facades.PdfExtractor, converting them to PNG, encoding them as Base64, and writing a JSON array with image metadata.", "tags": [ "pdf", "image-extraction", - "temporary-folder", - "aspose-pdf", - "csharp" + "base64", + "json", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", @@ -836,6 +1012,16 @@ "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, + "extract-images-pdf-upload-s3": { + "title": "Extract Images Pdf Upload S3", + "filename": "extract-images-pdf-upload-s3.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "extract-images-to-base64": { "title": "Extract Images from PDF and Convert to Base64", "filename": "extract-images-to-base64.cs", @@ -859,39 +1045,37 @@ "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-images-from-specific-pdf-page": { - "title": "Extract Images from a Specific PDF Page", - "filename": "extract-images-from-specific-pdf-page.cs", - "description": "Shows how to extract all images from a single PDF page by setting the StartPage and EndPage properties of PdfExtractor.", + "extract-images-to-bmp": { + "title": "Extract Images from PDF and Save as BMP", + "filename": "extract-images-to-bmp.cs", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to extract all images from a PDF and save them as BMP files while preserving the original resolution and color depth.", "tags": [ "pdf", "image-extraction", - "single-page", - "Aspose.Pdf", - "C#" + "bmp", + "aspose-pdf", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", - "PdfExtractor.BindPdf", - "PdfExtractor.StartPage", - "PdfExtractor.EndPage", - "PdfExtractor.ExtractImage", - "PdfExtractor.HasNextImage", - "PdfExtractor.GetNextImage" + "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", + "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", + "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-images-to-tiff": { - "title": "Extract Images from PDF and Save as TIFF", - "filename": "extract-images-to-tiff.cs", - "description": "Demonstrates extracting all images from a PDF using Aspose.Pdf.Facades.PdfExtractor and saving each image as a lossless TIFF file for archival storage.", + "extract-images-to-html-report": { + "title": "Extract Images from PDF and Embed in HTML Report", + "filename": "extract-images-to-html-report.cs", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to extract images from a PDF, convert them to Base64 data URIs, and generate an HTML report containing the images.", "tags": [ "pdf", "image-extraction", - "tiff", - "archival", + "html", + "base64", "aspose-pdf" ], "apis_used": [ @@ -901,51 +1085,54 @@ "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-images-validate-signature": { - "title": "Extract Images from PDF and Validate Their Signatures", - "filename": "extract-images-validate-signature.cs", - "description": "Demonstrates how to extract images from a PDF using Aspose.Pdf.Facades.PdfExtractor, then verify each image's file signature (magic number) and rename it with the correct extension.", + "extract-images-to-pdfa2b": { + "title": "Extract Images and Generate PDF/A‑2b Document", + "filename": "extract-images-to-pdfa2b.cs", + "description": "The example extracts all images from an existing PDF, embeds them as XObjects in a new PDF, and converts the result to PDF/A‑2b compliance using Aspose.Pdf.", "tags": [ "pdf", "image-extraction", - "file-validation", + "pdfa", "aspose-pdf", - "facade" + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", - "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", - "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" + "Aspose.Pdf.Facades.PdfFileMend", + "Aspose.Pdf.Facades.PdfFileMend.AddImage", + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Convert", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "parallel-image-extraction-from-pdfs": { - "title": "Parallel Image Extraction from Multiple PDFs", - "filename": "parallel-image-extraction-from-pdfs.cs", - "description": "Demonstrates how to extract all images from several PDF files concurrently using Aspose.Pdf.Facades.PdfExtractor and Task.WhenAll for improved throughput.", + "extract-images-to-tiff": { + "title": "Extract Images from PDF and Save as TIFF", + "filename": "extract-images-to-tiff.cs", + "description": "Demonstrates extracting all images from a PDF using Aspose.Pdf.Facades.PdfExtractor and saving each image as a lossless TIFF file for archival storage.", "tags": [ "pdf", "image-extraction", - "parallel", - "aspose", - "facade" + "tiff", + "archival", + "aspose-pdf" ], "apis_used": [ - "PdfExtractor", - "PdfExtractor.BindPdf", - "PdfExtractor.ExtractImage", - "PdfExtractor.HasNextImage", - "PdfExtractor.GetNextImage" + "Aspose.Pdf.Facades.PdfExtractor", + "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", + "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", + "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, @@ -971,16 +1158,36 @@ "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-images-and-create-thumbnails": { - "title": "Extract Images from PDF and Create Thumbnails", - "filename": "extract-images-and-create-thumbnails.cs", - "description": "Shows how to extract images from a PDF using Aspose.Pdf.Facades.PdfExtractor and generate PNG thumbnails with a maximum dimension of 200 pixels.", + "extract-images-to-unc-share__v2": { + "title": "Extract Images To Unc Share__V2", + "filename": "extract-images-to-unc-share__v2.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-images-to-zip": { + "title": "Extract Images To Zip", + "filename": "extract-images-to-zip.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-images-validate-signature": { + "title": "Extract Images from PDF and Validate Their Signatures", + "filename": "extract-images-validate-signature.cs", + "description": "Demonstrates how to extract images from a PDF using Aspose.Pdf.Facades.PdfExtractor, then verify each image's file signature (magic number) and rename it with the correct extension.", "tags": [ "pdf", "image-extraction", - "thumbnail", + "file-validation", "aspose-pdf", - "csharp" + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", @@ -993,114 +1200,100 @@ "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-images-from-pdf-using-pdfextractor": { - "title": "Extract Images from PDF Using PdfExtractor with Automatic Disposal", - "filename": "extract-images-from-pdf-using-pdfextractor.cs", - "description": "Demonstrates binding a PDF to Aspose.Pdf.Facades.PdfExtractor, extracting all images, and saving them to a folder while using a using block to automatically dispose the extractor.", - "tags": [ - "pdf", - "image-extraction", - "aspose", - "pdfextractor", - "using-block" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfExtractor", - "PdfExtractor.BindPdf", - "PdfExtractor.ExtractImage", - "PdfExtractor.HasNextImage", - "PdfExtractor.GetNextImage" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:46:19Z", + "extract-images-with-watermark": { + "title": "Extract Images With Watermark", + "filename": "extract-images-with-watermark.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "extract-images-from-encrypted-pdf": { - "title": "Extract Images from Encrypted PDF with Password", - "filename": "extract-images-from-encrypted-pdf.cs", - "description": "Shows how to open an encrypted PDF by supplying the user password and extract all images using Aspose.Pdf's PdfExtractor.", + "extract-pdf-attachments-by-extension": { + "title": "Extract PDF Attachments and Organize by File Extension", + "filename": "extract-pdf-attachments-by-extension.cs", + "description": "Shows how to use Aspose.Pdf.Facades.PdfExtractor to pull embedded attachments from a PDF and save them into subfolders grouped by their original file extensions.", "tags": [ "pdf", - "image-extraction", - "encrypted", - "password", - "aspose" + "attachments", + "extraction", + "organization", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", - "Aspose.Pdf.Facades.PdfExtractor.Password", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", - "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", - "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" + "Aspose.Pdf.Facades.PdfExtractor.ExtractAttachment", + "Aspose.Pdf.Facades.PdfExtractor.GetAttachNames", + "Aspose.Pdf.Facades.PdfExtractor.GetAttachment" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-text-only-ignore-images": { - "title": "Extract Text Only from PDF Using PdfExtractor (Ignore Images)", - "filename": "extract-text-only-ignore-images.cs", - "description": "Demonstrates how to configure Aspose.Pdf's PdfExtractor to ignore images by omitting the ExtractImage call and extract only the textual content of a PDF.", - "tags": [ - "pdf", - "text-extraction", - "aspose-pdf", - "pdf-extractor", - "ignore-images" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfExtractor", - "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractText", - "Aspose.Pdf.Facades.PdfExtractor.GetText", - "Aspose.Pdf.Facades.PdfExtractor.Close" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:46:19Z", + "extract-pdf-attachments-rename-timestamp": { + "title": "Extract Pdf Attachments Rename Timestamp", + "filename": "extract-pdf-attachments-rename-timestamp.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "extract-images-to-html-report": { - "title": "Extract Images from PDF and Embed in HTML Report", - "filename": "extract-images-to-html-report.cs", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to extract images from a PDF, convert them to Base64 data URIs, and generate an HTML report containing the images.", + "extract-pdf-attachments-sha256": { + "title": "Extract Pdf Attachments Sha256", + "filename": "extract-pdf-attachments-sha256.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-pdf-attachments-with-timestamp": { + "title": "Extract PDF Attachments and Save with Timestamped Filenames", + "filename": "extract-pdf-attachments-with-timestamp.cs", + "description": "The example extracts all embedded file attachments from a PDF using Aspose.Pdf.Facades.PdfExtractor, prefixes each filename with a timestamp, and saves them to a specified folder.", "tags": [ "pdf", - "image-extraction", - "html", - "base64", - "aspose-pdf" + "attachments", + "extraction", + "timestamp", + "aspose" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.FileSpecification", "Aspose.Pdf.Facades.PdfExtractor", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", - "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", - "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" + "Aspose.Pdf.Facades.PdfExtractor.ExtractAttachment", + "Aspose.Pdf.Facades.PdfExtractor.GetAttachNames", + "Aspose.Pdf.Facades.PdfExtractor.GetAttachment" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "handle-corrupted-pdf-binding": { - "title": "Handle Corrupted PDF Binding with PdfExtractor", - "filename": "handle-corrupted-pdf-binding.cs", - "description": "Demonstrates checking for a PDF file's existence and catching exceptions thrown by PdfExtractor when binding a corrupted PDF, using specific Aspose.Pdf exception types.", - "tags": [ - "pdf", - "exception-handling", - "aspose", - "pdf-extractor", - "invalid-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfExtractor", - "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.InvalidPdfFileFormatException", - "Aspose.Pdf.PdfException" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:46:19Z", + "extract-pdf-images-as-bmp": { + "title": "Extract Pdf Images As Bmp", + "filename": "extract-pdf-images-as-bmp.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-pdf-images-create-video-slideshow": { + "title": "Extract Pdf Images Create Video Slideshow", + "filename": "extract-pdf-images-create-video-slideshow.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, "extract-pdf-images-to-azure-blob": { @@ -1125,77 +1318,60 @@ "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-images-and-compress-png-zip": { - "title": "Extract Images from PDF and Compress as PNG ZIP", - "filename": "extract-images-and-compress-png-zip.cs", - "description": "Demonstrates extracting embedded images from a PDF using Aspose.Pdf.Facades.PdfExtractor, saving them as PNG files, and then losslessly compressing the images into a ZIP archive.", + "extract-pdf-images-to-gcs": { + "title": "Extract Images from PDF and Upload to Google Cloud Storage", + "filename": "extract-pdf-images-to-gcs.cs", + "description": "Demonstrates using Aspose.Pdf.Facades.PdfExtractor to pull images from a PDF and upload each image to a Google Cloud Storage bucket with public read access.", "tags": [ "pdf", "image-extraction", - "png", - "zip", - "aspose-pdf" - ], - "apis_used": [ - "PdfExtractor", - "PdfExtractor.BindPdf", - "PdfExtractor.ExtractImage", - "PdfExtractor.HasNextImage", - "PdfExtractor.GetNextImage", - "Document", - "Page", - "Aspose.Pdf.Image" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:46:19Z", - "status": "verified" - }, - "extract-images-original-format-pdfextractor": { - "title": "Extract Images in Original Format Using PdfExtractor", - "filename": "extract-images-original-format-pdfextractor.cs", - "description": "Demonstrates how to extract images from a PDF while preserving their original format by setting ExtractImageMode to DefinedInResources and using GetNextImage without specifying an image format.", - "tags": [ - "image-extraction", - "original-format", - "pdf", - "aspose-pdf", - "pdfextractor" + "google-cloud-storage", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractImageMode", "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-images-pdf-csv-manifest": { - "title": "Extract Images from PDF and Generate CSV Manifest", - "filename": "extract-images-pdf-csv-manifest.cs", - "description": "Demonstrates how to extract all images from each page of a PDF using Aspose.Pdf.Facades, save them as PNG files, and create a CSV file that lists each image's file name, page number, and dimensions.", + "extract-pdf-images-to-jpeg-quality-85": { + "title": "Extract PDF Images to JPEG with Quality 85", + "filename": "extract-pdf-images-to-jpeg-quality-85.cs", + "description": "Demonstrates extracting all images from a PDF and saving them as JPEG files with a quality setting of 85 using Aspose.Pdf.Facades.PdfConverter.", "tags": [ "pdf", "image-extraction", - "csv", - "aspose", - "facades" + "jpeg", + "quality", + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfExtractor", - "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", - "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", - "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" + "Aspose.Pdf.Facades.PdfConverter", + "Aspose.Pdf.Facades.PdfConverter.BindPdf", + "Aspose.Pdf.Facades.PdfConverter.DoConvert", + "Aspose.Pdf.Facades.PdfConverter.HasNextImage", + "Aspose.Pdf.Facades.PdfConverter.GetNextImage" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, + "extract-pdf-images-to-s3-with-encryption": { + "title": "Extract Pdf Images To S3 With Encryption", + "filename": "extract-pdf-images-to-s3-with-encryption.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "extract-pdf-images-to-s3": { "title": "Extract Images from PDF and Upload to Amazon S3", "filename": "extract-pdf-images-to-s3.cs", @@ -1219,325 +1395,403 @@ "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-pdf-text-with-progress": { - "title": "Extract PDF Text with Page-by-Page Progress Reporting", - "filename": "extract-pdf-text-with-progress.cs", - "description": "Demonstrates how to extract text from each page of a PDF using Aspose.Pdf's PdfExtractor while reporting progress in the console.", + "extract-pdf-text-and-encrypt-aes": { + "title": "Extract Text from PDF and Encrypt with AES", + "filename": "extract-pdf-text-and-encrypt-aes.cs", + "description": "Demonstrates extracting all text from a PDF using Aspose.Pdf's PdfExtractor facade, saving it to a temporary file, and then encrypting that file with AES‑256 before storing the result.", "tags": [ - "pdf", - "text-extraction", - "progress", - "aspose-pdf", + "pdf-extraction", + "text", + "aes-encryption", + "facade-api", "csharp" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfExtractor", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", "Aspose.Pdf.Facades.PdfExtractor.ExtractText", - "Aspose.Pdf.Facades.PdfExtractor.HasNextPageText", - "Aspose.Pdf.Facades.PdfExtractor.GetNextPageText" + "Aspose.Pdf.Facades.PdfExtractor.GetText" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-all-images-from-pdf": { - "title": "Extract All Images from PDF using PdfExtractor", - "filename": "extract-all-images-from-pdf.cs", - "description": "Demonstrates how to use Aspose.Pdf's PdfExtractor facade to extract every image from a PDF document and save them as PNG files.", - "tags": [ - "pdf", - "image-extraction", - "aspose-pdf", - "facade", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfExtractor", - "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", - "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", - "Aspose.Pdf.Facades.PdfExtractor.GetNextImage", - "Aspose.Pdf.Facades.PdfExtractor.StartPage", - "Aspose.Pdf.Facades.PdfExtractor.EndPage" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:46:19Z", + "extract-pdf-text-azure-table": { + "title": "Extract Pdf Text Azure Table", + "filename": "extract-pdf-text-azure-table.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "extract-images-ocr-openai-copilot": { - "title": "Extract Images from PDF and Perform OCR with OpenAI Copilot", - "filename": "extract-images-ocr-openai-copilot.cs", - "description": "The example extracts all images from a PDF using Aspose.Pdf.Facades.PdfExtractor, saves each image, and then runs OCR on the saved images with Aspose.Pdf.AI OpenAIOcrCopilot (OpenAI) to retrieve hidden textual content.", + "extract-pdf-text-in-memory": { + "title": "Extract PDF Text In-Memory Using PdfExtractor", + "filename": "extract-pdf-text-in-memory.cs", + "description": "Demonstrates loading a PDF from a MemoryStream, extracting its text with Aspose.Pdf.Facades.PdfExtractor, and returning the result in another MemoryStream for further in‑memory processing.", "tags": [ "pdf", - "image-extraction", - "ocr", + "text-extraction", + "memorystream", "aspose-pdf", - "openai" + "in-memory" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", - "PdfExtractor.BindPdf", - "PdfExtractor.ExtractImage", - "PdfExtractor.HasNextImage", - "PdfExtractor.GetNextImage", - "Aspose.Pdf.AI.OpenAIOcrCopilotOptions", - "Aspose.Pdf.AI.AICopilotFactory.CreateOcrCopilot", - "Aspose.Pdf.AI.IOcrCopilot.GetTextRecognitionResultAsync" + "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor.ExtractText", + "Aspose.Pdf.Facades.PdfExtractor.GetText", + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "list-embedded-attachment-names": { - "title": "List Embedded Attachment Names in PDF", - "filename": "list-embedded-attachment-names.cs", - "description": "Shows how to use Aspose.Pdf.Facades.PdfExtractor to retrieve the names of all embedded attachments in a PDF without extracting the files.", + "extract-pdf-text-page-by-page": { + "title": "Extract Pdf Text Page By Page", + "filename": "extract-pdf-text-page-by-page.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-pdf-text-per-page-progress": { + "title": "Extract Pdf Text Per Page Progress", + "filename": "extract-pdf-text-per-page-progress.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-pdf-text-per-page": { + "title": "Extract PDF Text and Save Each Page to a File", + "filename": "extract-pdf-text-per-page.cs", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to extract the full text of a PDF and then split it into separate per‑page text files.", "tags": [ "pdf", - "attachments", - "list", - "extractor", - "aspnet" + "text-extraction", + "aspose", + "facade", + "pages" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", "PdfExtractor.BindPdf", - "PdfExtractor.ExtractAttachment", - "PdfExtractor.GetAttachNames" + "PdfExtractor.ExtractText", + "PdfExtractor.GetText", + "PdfExtractor.HasNextPageText", + "PdfExtractor.GetNextPageText" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-embedded-attachments-from-pdf": { - "title": "Extract Embedded Attachments from PDF", - "filename": "extract-embedded-attachments-from-pdf.cs", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to retrieve embedded file attachments from a PDF and save each one to a specified output folder.", + "extract-pdf-text-to-azure-table": { + "title": "Extract PDF Text and Store in Azure Table", + "filename": "extract-pdf-text-to-azure-table.cs", + "description": "Demonstrates how to extract text from a PDF using Aspose.Pdf.Facades and save the extracted content as an entity in Azure Table storage.", "tags": [ "pdf", - "attachments", - "extraction", + "text-extraction", + "azure-table", "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractAttachment", - "Aspose.Pdf.Facades.PdfExtractor.GetAttachNames", - "Aspose.Pdf.Facades.PdfExtractor.GetAttachment" + "Aspose.Pdf.Facades.PdfExtractor.ExtractText", + "Aspose.Pdf.Facades.PdfExtractor.GetText", + "Aspose.Pdf.Facades.PdfExtractor.Dispose" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-pdf-attachments-with-timestamp": { - "title": "Extract PDF Attachments and Save with Timestamped Filenames", - "filename": "extract-pdf-attachments-with-timestamp.cs", - "description": "The example extracts all embedded file attachments from a PDF using Aspose.Pdf.Facades.PdfExtractor, prefixes each filename with a timestamp, and saves them to a specified folder.", + "extract-pdf-text-to-gzip": { + "title": "Extract PDF Text and Compress to GZip", + "filename": "extract-pdf-text-to-gzip.cs", + "description": "Demonstrates extracting all text from a PDF using Aspose.Pdf.Facades.PdfExtractor and writing it directly to a GZip compressed stream to reduce storage size.", "tags": [ "pdf", - "attachments", - "extraction", - "timestamp", - "aspose" + "text-extraction", + "gzip", + "compression", + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Facades.PdfExtractor", - "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractAttachment", - "Aspose.Pdf.Facades.PdfExtractor.GetAttachNames", - "Aspose.Pdf.Facades.PdfExtractor.GetAttachment" + "PdfExtractor", + "PdfExtractor.BindPdf", + "PdfExtractor.ExtractText", + "PdfExtractor.GetText" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-attachments-compute-sha256": { - "title": "Extract PDF Attachments and Compute SHA-256 Hashes", - "filename": "extract-attachments-compute-sha256.cs", - "description": "Demonstrates creating a PDF with an embedded file, extracting all attachments using Aspose.Pdf.Facades.PdfExtractor, and calculating a SHA‑256 hash for each extracted file to verify integrity.", + "extract-pdf-text-to-memory-stream": { + "title": "Extract Pdf Text To Memory Stream", + "filename": "extract-pdf-text-to-memory-stream.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-pdf-text-to-memorystream": { + "title": "Extract PDF Text to MemoryStream for Further Processing", + "filename": "extract-pdf-text-to-memorystream.cs", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to extract text from a PDF, store it in a MemoryStream, and prepare the stream for consumption by another component.", "tags": [ - "pdf", - "attachments", - "extraction", - "hash", - "security" + "pdf-extraction", + "memorystream", + "text", + "aspose-pdf", + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.EmbeddedFiles.Add", "Aspose.Pdf.Facades.PdfExtractor", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractAttachment", - "Aspose.Pdf.Facades.PdfExtractor.GetAttachment", - "Aspose.Pdf.Facades.PdfExtractor.GetAttachNames" + "Aspose.Pdf.Facades.PdfExtractor.ExtractText", + "Aspose.Pdf.Facades.PdfExtractor.GetText" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-pdf-attachments-by-extension": { - "title": "Extract PDF Attachments and Organize by File Extension", - "filename": "extract-pdf-attachments-by-extension.cs", - "description": "Shows how to use Aspose.Pdf.Facades.PdfExtractor to pull embedded attachments from a PDF and save them into subfolders grouped by their original file extensions.", + "extract-pdf-text-to-postgres": { + "title": "Extract Pdf Text To Postgres", + "filename": "extract-pdf-text-to-postgres.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-pdf-text-to-postgresql": { + "title": "Extract PDF Text and Store in PostgreSQL", + "filename": "extract-pdf-text-to-postgresql.cs", + "description": "Demonstrates how to extract Unicode text from a PDF using Aspose.Pdf and insert the extracted content into a PostgreSQL table for searchable indexing.", "tags": [ "pdf", - "attachments", - "extraction", - "organization", - "facade" + "text-extraction", + "postgresql", + "aspose", + "database" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Facades.PdfExtractor", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractAttachment", - "Aspose.Pdf.Facades.PdfExtractor.GetAttachNames", - "Aspose.Pdf.Facades.PdfExtractor.GetAttachment" + "Aspose.Pdf.Facades.PdfExtractor.ExtractText", + "Aspose.Pdf.Facades.PdfExtractor.GetText" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "test-image-extraction-mode-pdf-extractor": { - "title": "Test Image Extraction Mode with PdfExtractor", - "filename": "test-image-extraction-mode-pdf-extractor.cs", - "description": "Demonstrates setting PdfExtractor.ExtractImageMode to DefinedInResources or ActuallyUsed and verifying the extracted image count with NUnit.", + "extract-pdf-text-to-stringbuilder": { + "title": "Extract PDF Text to StringBuilder", + "filename": "extract-pdf-text-to-stringbuilder.cs", + "description": "Shows how to use Aspose.Pdf.Facades.PdfExtractor to extract text from a PDF, store it in a StringBuilder for further manipulation, and then write it to a file.", "tags": [ "pdf", - "image-extraction", - "extractor", - "unit-test", - "nunit" + "text-extraction", + "stringbuilder", + "aspose-pdf", + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Image", "Aspose.Pdf.Facades.PdfExtractor", - "Aspose.Pdf.Facades.ExtractImageMode" + "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor.ExtractText", + "Aspose.Pdf.Facades.PdfExtractor.GetText" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-images-from-pdf-with-guid-filenames": { - "title": "Extract Images from PDF with GUID Filenames", - "filename": "extract-images-from-pdf-with-guid-filenames.cs", - "description": "Shows how to use Aspose.Pdf.Facades.PdfExtractor to extract all images from a PDF and save each as a PNG file with a unique GUID‑based filename to prevent naming collisions.", + "extract-pdf-text-to-stringwriter": { + "title": "Extract PDF Text to StringWriter for Logging", + "filename": "extract-pdf-text-to-stringwriter.cs", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to extract all text from a PDF, capture it in a MemoryStream, convert it to a string, and write it to a StringWriter for integration with logging frameworks.", "tags": [ "pdf", - "image-extraction", - "guid", - "aspose", - "csharp" + "text-extraction", + "stringwriter", + "logging", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", - "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", - "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" + "Aspose.Pdf.Facades.PdfExtractor.ExtractText", + "Aspose.Pdf.Facades.PdfExtractor.GetText" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-images-from-pdf-to-zip": { - "title": "Extract Images from PDF and Create ZIP Archive", - "filename": "extract-images-from-pdf-to-zip.cs", - "description": "Demonstrates how to use Aspose.Pdf to extract all images from a PDF document and package them into a ZIP file using .NET's ZipArchive.", - "tags": [ - "pdf", - "image-extraction", - "zip", - "aspose-pdf", + "extract-pdf-text-to-utf8-file": { + "title": "Extract Pdf Text To Utf8 File", + "filename": "extract-pdf-text-to-utf8-file.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-pdf-text-utf8": { + "title": "Extract PDF Text and Save as UTF-8 File", + "filename": "extract-pdf-text-utf8.cs", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to extract text from a PDF document and write it to a UTF‑8 encoded text file.", + "tags": [ + "pdf", + "text-extraction", + "utf-8", + "file-output", + "aspose-pdf" + ], + "apis_used": [ + "PdfExtractor", + "PdfExtractor.BindPdf", + "PdfExtractor.ExtractText", + "PdfExtractor.GetText" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:46:19Z", + "status": "verified" + }, + "extract-pdf-text-verify-temp-file": { + "title": "Extract Pdf Text Verify Temp File", + "filename": "extract-pdf-text-verify-temp-file.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-pdf-text-with-progress": { + "title": "Extract PDF Text with Page-by-Page Progress Reporting", + "filename": "extract-pdf-text-with-progress.cs", + "description": "Demonstrates how to extract text from each page of a PDF using Aspose.Pdf's PdfExtractor while reporting progress in the console.", + "tags": [ + "pdf", + "text-extraction", + "progress", + "aspose-pdf", "csharp" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfExtractor", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", - "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", - "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" + "Aspose.Pdf.Facades.PdfExtractor.ExtractText", + "Aspose.Pdf.Facades.PdfExtractor.HasNextPageText", + "Aspose.Pdf.Facades.PdfExtractor.GetNextPageText" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "create-contact-sheet-pdf-from-extracted-images": { - "title": "Create Contact Sheet PDF from Extracted Images", - "filename": "create-contact-sheet-pdf-from-extracted-images.cs", - "description": "The example extracts all images from a source PDF using PdfExtractor, then arranges them as thumbnails on a grid to generate a new contact‑sheet PDF.", + "extract-pdf-text-with-progress__v2": { + "title": "Extract PDF Text per Page with Progress Indicator", + "filename": "extract-pdf-text-with-progress__v2.cs", + "description": "Demonstrates how to use Aspose.Pdf's PdfExtractor to extract text from each page of a PDF and display a percentage‑based progress update.", "tags": [ - "image-extraction", - "contact-sheet", - "thumbnail", - "pdf-generation", - "Aspose.Pdf" + "pdf", + "text-extraction", + "progress", + "aspose", + "csharp" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfExtractor", - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Page.AddImage", - "Aspose.Pdf.Document.Save" + "PdfExtractor", + "PdfExtractor.BindPdf", + "PdfExtractor.ExtractText", + "PdfExtractor.HasNextPageText", + "PdfExtractor.GetNextPageText", + "PdfExtractor.Document.Pages.Count" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-images-create-pdf-portfolio": { - "title": "Extract Images from PDF and Build an Image Portfolio", - "filename": "extract-images-create-pdf-portfolio.cs", - "description": "Demonstrates how to extract all images from an existing PDF using Aspose.Pdf.Facades.PdfExtractor and then create a new PDF where each extracted image occupies its own page, forming a simple portfolio.", + "extract-resource-images-pdf-extractor": { + "title": "Extract Resource-Based Images from PDF using PdfExtractor", + "filename": "extract-resource-images-pdf-extractor.cs", + "description": "Demonstrates how to set PdfExtractor's ExtractImageMode to DefinedInResources and extract images defined in PDF resources, saving each image to a file.", "tags": [ + "image extraction", "pdf", - "image-extraction", - "portfolio", "aspose-pdf", - "csharp" + "resources", + "pdfextractor" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", + "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor.ExtractImageMode", "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", - "Aspose.Pdf.Facades.PdfExtractor.GetNextImage", - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Page.AddImage" + "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "add-watermark-extract-images-from-pdf": { - "title": "Add Watermark to PDF Pages and Extract Images", - "filename": "add-watermark-extract-images-from-pdf.cs", - "description": "Demonstrates how to overlay a PNG watermark on each page of a PDF using PdfFileMend, then extract all images from the watermarked PDF with PdfExtractor and save them as PNG files.", + "extract-text-and-images-from-pdf": { + "title": "Extract Text and Images from PDF using PdfExtractor", + "filename": "extract-text-and-images-from-pdf.cs", + "description": "Demonstrates how to create a PdfExtractor, bind it to a PDF file, and simultaneously extract both the document text and embedded images, saving them to separate outputs.", "tags": [ - "watermark", + "pdf", + "text-extraction", "image-extraction", + "aspose", + "csharp" + ], + "apis_used": [ + "PdfExtractor", + "PdfExtractor.BindPdf", + "PdfExtractor.ExtractText", + "PdfExtractor.GetText", + "PdfExtractor.ExtractImage", + "PdfExtractor.HasNextImage", + "PdfExtractor.GetNextImage" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:46:19Z", + "status": "verified" + }, + "extract-text-and-images-from-pdfs": { + "title": "Extract Text and Images from PDFs using PdfExtractor", + "filename": "extract-text-and-images-from-pdfs.cs", + "description": "Shows how to use Aspose.Pdf.Facades.PdfExtractor to extract all text to a .txt file and save each embedded image as PNG from PDF files in a mounted directory.", + "tags": [ "pdf", - "Aspose.Pdf", - "PdfFileMend" + "text-extraction", + "image-extraction", + "aspose-pdf", + "docker" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfFileMend", - "Aspose.Pdf.Facades.PdfFileMend.BindPdf", - "Aspose.Pdf.Facades.PdfFileMend.AddImage", - "Aspose.Pdf.Facades.PdfFileMend.Save", "Aspose.Pdf.Facades.PdfExtractor", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor.ExtractText", + "Aspose.Pdf.Facades.PdfExtractor.GetText", "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" @@ -1546,275 +1800,461 @@ "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-images-pdf-to-base64-json": { - "title": "Extract Images from PDF to Base64 JSON", - "filename": "extract-images-pdf-to-base64-json.cs", - "description": "Demonstrates extracting all images from a PDF using Aspose.Pdf.Facades.PdfExtractor, converting them to PNG, encoding them as Base64, and writing a JSON array with image metadata.", + "extract-text-from-password-protected-pdf": { + "title": "Extract Text From Password Protected Pdf", + "filename": "extract-text-from-password-protected-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-text-from-pdf-byte-array": { + "title": "Extract Text from PDF Byte Array Using PdfExtractor", + "filename": "extract-text-from-pdf-byte-array.cs", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to extract all text from a PDF supplied as a byte array entirely in memory, without writing any files to disk.", "tags": [ "pdf", - "image-extraction", - "base64", - "json", + "text-extraction", + "memory-stream", + "facade", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", - "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", - "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" + "Aspose.Pdf.Facades.PdfExtractor.ExtractText", + "Aspose.Pdf.Facades.PdfExtractor.GetText" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:46:19Z", + "status": "verified" + }, + "extract-text-from-pdf-byte-array__v2": { + "title": "Extract Text from PDF Byte Array using Aspose.Pdf", + "filename": "extract-text-from-pdf-byte-array__v2.cs", + "description": "Demonstrates how to load a PDF from a byte array, extract its textual content with Aspose.Pdf.Facades.PdfExtractor, and return the result as JSON.", + "tags": [ + "pdf", + "text-extraction", + "byte-array", + "aspose", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfExtractor", + "PdfExtractor.BindPdf", + "PdfExtractor.ExtractText", + "PdfExtractor.GetText" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-images-pdf-csv-index": { - "title": "Extract Images from PDF and Create CSV Index", - "filename": "extract-images-pdf-csv-index.cs", - "description": "The example opens a PDF, extracts all embedded images, saves each as a PNG file, and generates a CSV file that lists the image filename, page number, and dimensions.", + "extract-text-from-pdf-bytes": { + "title": "Extract Text From Pdf Bytes", + "filename": "extract-text-from-pdf-bytes.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-text-from-pdf-cli": { + "title": "Extract Text From Pdf Cli", + "filename": "extract-text-from-pdf-cli.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-text-from-pdf-pages-with-progress-bar": { + "title": "Extract Text From Pdf Pages With Progress Bar", + "filename": "extract-text-from-pdf-pages-with-progress-bar.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-text-from-pdf-queue-trigger": { + "title": "Extract Text from PDFs via Azure Queue Trigger", + "filename": "extract-text-from-pdf-queue-trigger.cs", + "description": "Shows an Azure Function that reads a PDF blob name from a storage queue, downloads the PDF, extracts its text with Aspose.Pdf, and uploads the extracted text to another blob container.", + "tags": [ + "azure-functions", + "pdf-extraction", + "aspose", + "storage-queue", + "blob-storage" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfExtractor", + "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor.ExtractText", + "Aspose.Pdf.Facades.PdfExtractor.GetText" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:46:19Z", + "status": "verified" + }, + "extract-text-from-pdf-to-utf8-txt": { + "title": "Extract Text from PDF to UTF-8 Text File", + "filename": "extract-text-from-pdf-to-utf8-txt.cs", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to extract plain text from a PDF document and save it as a UTF-8 encoded .txt file.", "tags": [ "pdf", - "image-extraction", - "csv", + "text-extraction", + "utf-8", "aspose-pdf", "csharp" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.ImagePlacementAbsorber", - "Aspose.Pdf.ImagePlacement", - "Aspose.Pdf.ImagePlacement.Image.Save", - "Aspose.Pdf.Document.Pages.Accept" + "Aspose.Pdf.Facades.PdfExtractor", + "PdfExtractor.BindPdf", + "PdfExtractor.ExtractText", + "PdfExtractor.GetText" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-images-create-sprite-sheet": { - "title": "Extract Images from PDF and Create a Sprite Sheet", - "filename": "extract-images-create-sprite-sheet.cs", - "description": "Demonstrates how to extract all images from a PDF using Aspose.Pdf.Facades.PdfExtractor and combine them into a single horizontal sprite sheet PNG.", + "extract-text-from-pdf": { + "title": "Extract Text from PDF using Aspose PdfExtractor", + "filename": "extract-text-from-pdf.cs", + "description": "Demonstrates loading a PDF with PdfExtractor, extracting its text content, and outputting the Unicode text to the console.", + "tags": [ + "pdf", + "text-extraction", + "aspose", + "console", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfExtractor", + "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor.ExtractText", + "Aspose.Pdf.Facades.PdfExtractor.GetText" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:46:19Z", + "status": "verified" + }, + "extract-text-from-pdf__v2": { + "title": "Extract Text from PDF using PdfExtractor", + "filename": "extract-text-from-pdf__v2.cs", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to extract all text from a PDF file and output it to the console.", + "tags": [ + "pdf", + "text-extraction", + "command-line", + "aspose-pdf", + "facade" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfExtractor", + "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor.ExtractText", + "Aspose.Pdf.Facades.PdfExtractor.GetText" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:46:19Z", + "status": "verified" + }, + "extract-text-from-protected-pdf": { + "title": "Extract Text from Password-Protected PDF", + "filename": "extract-text-from-protected-pdf.cs", + "description": "Demonstrates how to provide the owner password to a PdfExtractor, bind an encrypted PDF, and extract its text to a file using Aspose.Pdf.", + "tags": [ + "pdf", + "text-extraction", + "password-protected", + "aspose", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfExtractor", + "PdfExtractor.Password", + "PdfExtractor.BindPdf", + "PdfExtractor.ExtractText", + "PdfExtractor.GetText" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:46:19Z", + "status": "verified" + }, + "extract-text-ignoring-images": { + "title": "Extract Text Ignoring Images", + "filename": "extract-text-ignoring-images.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-text-images-from-pdfs": { + "title": "Extract Text Images From Pdfs", + "filename": "extract-text-images-from-pdfs.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-text-only-ignore-images": { + "title": "Extract Text Only from PDF Using PdfExtractor (Ignore Images)", + "filename": "extract-text-only-ignore-images.cs", + "description": "Demonstrates how to configure Aspose.Pdf's PdfExtractor to ignore images by omitting the ExtractImage call and extract only the textual content of a PDF.", "tags": [ "pdf", - "image-extraction", - "sprite-sheet", + "text-extraction", "aspose-pdf", - "csharp" + "pdf-extractor", + "ignore-images" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", - "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", - "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" + "Aspose.Pdf.Facades.PdfExtractor.ExtractText", + "Aspose.Pdf.Facades.PdfExtractor.GetText", + "Aspose.Pdf.Facades.PdfExtractor.Close" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-images-to-pdfa2b": { - "title": "Extract Images and Generate PDF/A‑2b Document", - "filename": "extract-images-to-pdfa2b.cs", - "description": "The example extracts all images from an existing PDF, embeds them as XObjects in a new PDF, and converts the result to PDF/A‑2b compliance using Aspose.Pdf.", + "extract-text-to-temp-file-and-verify": { + "title": "Extract PDF Text to Temporary File and Verify", + "filename": "extract-text-to-temp-file-and-verify.cs", + "description": "Demonstrates extracting text from a PDF using PdfExtractor, saving it to a temporary file, reading it back, and confirming the extracted content matches the original string.", "tags": [ + "text-extraction", "pdf", - "image-extraction", - "pdfa", - "aspose-pdf", - "csharp" + "temporary-file", + "verification", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", - "Aspose.Pdf.Facades.PdfFileMend", - "Aspose.Pdf.Facades.PdfFileMend.AddImage", - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Convert", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfExtractor.ExtractText", + "Aspose.Pdf.Facades.PdfExtractor.GetText(MemoryStream)", + "Aspose.Pdf.Facades.PdfExtractor.GetText(string)" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-images-from-pdf-to-unc": { - "title": "Extract Images from PDF to UNC Network Share", - "filename": "extract-images-from-pdf-to-unc.cs", - "description": "Demonstrates using Aspose.Pdf.Facades.PdfExtractor to pull all images from a PDF and save them as PNG files to a network‑mapped UNC folder.", + "handle-corrupted-pdf-binding": { + "title": "Handle Corrupted PDF Binding with PdfExtractor", + "filename": "handle-corrupted-pdf-binding.cs", + "description": "Demonstrates checking for a PDF file's existence and catching exceptions thrown by PdfExtractor when binding a corrupted PDF, using specific Aspose.Pdf exception types.", "tags": [ "pdf", - "image-extraction", - "unc", - "aspose-pdf", - "facade" + "exception-handling", + "aspose", + "pdf-extractor", + "invalid-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", - "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", - "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" + "Aspose.Pdf.InvalidPdfFileFormatException", + "Aspose.Pdf.PdfException" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-images-html-gallery": { - "title": "Extract Images from PDF and Create HTML Gallery", - "filename": "extract-images-html-gallery.cs", - "description": "Demonstrates extracting all images from a PDF using Aspose.Pdf.Facades.PdfExtractor and generating a simple HTML page that displays the extracted PNG files.", + "list-embedded-attachment-names": { + "title": "List Embedded Attachment Names in PDF", + "filename": "list-embedded-attachment-names.cs", + "description": "Shows how to use Aspose.Pdf.Facades.PdfExtractor to retrieve the names of all embedded attachments in a PDF without extracting the files.", "tags": [ "pdf", - "image-extraction", - "html-gallery", - "aspose-pdf", - "csharp" + "attachments", + "list", + "extractor", + "aspnet" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", - "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", - "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", - "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" + "PdfExtractor.BindPdf", + "PdfExtractor.ExtractAttachment", + "PdfExtractor.GetAttachNames" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-images-pdf-create-video-slideshow": { - "title": "Extract Images from PDF and Create a Video Slideshow", - "filename": "extract-images-pdf-create-video-slideshow.cs", - "description": "Demonstrates how to extract all images from a PDF using Aspose.Pdf.Facades and then generate a video slideshow from the extracted pictures with FFmpeg.", + "parallel-image-extraction-from-pdfs": { + "title": "Parallel Image Extraction from Multiple PDFs", + "filename": "parallel-image-extraction-from-pdfs.cs", + "description": "Demonstrates how to extract all images from several PDF files concurrently using Aspose.Pdf.Facades.PdfExtractor and Task.WhenAll for improved throughput.", "tags": [ "pdf", "image-extraction", - "ffmpeg", - "slideshow", - "aspose-pdf" + "parallel", + "aspose", + "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfExtractor", - "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", - "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", - "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" + "PdfExtractor", + "PdfExtractor.BindPdf", + "PdfExtractor.ExtractImage", + "PdfExtractor.HasNextImage", + "PdfExtractor.GetNextImage" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-pdf-images-to-gcs": { - "title": "Extract Images from PDF and Upload to Google Cloud Storage", - "filename": "extract-pdf-images-to-gcs.cs", - "description": "Demonstrates using Aspose.Pdf.Facades.PdfExtractor to pull images from a PDF and upload each image to a Google Cloud Storage bucket with public read access.", + "pdf-diagnostic-tool-counts": { + "title": "Pdf Diagnostic Tool Counts", + "filename": "pdf-diagnostic-tool-counts.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "pdf-extractor-text-extraction-test": { + "title": "Pdf Extractor Text Extraction Test", + "filename": "pdf-extractor-text-extraction-test.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "pdf-extractor-unit-test": { + "title": "Unit Test for Extracting Text with PdfExtractor", + "filename": "pdf-extractor-unit-test.cs", + "description": "Demonstrates creating a simple PDF, extracting its text using Aspose.Pdf's PdfExtractor, and verifying the extracted content with an NUnit unit test.", "tags": [ "pdf", - "image-extraction", - "google-cloud-storage", + "text-extraction", + "unit-test", "aspose", - "csharp" + "nunit" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Facades.PdfExtractor", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", - "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", - "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" + "Aspose.Pdf.Facades.PdfExtractor.ExtractText", + "Aspose.Pdf.Facades.PdfExtractor.GetText" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-images-by-keyword": { - "title": "Extract Images from PDF Pages Containing a Keyword", - "filename": "extract-images-by-keyword.cs", - "description": "Shows how to use PdfExtractor to scan each PDF page for a specific keyword and extract only the images from pages where the keyword is present.", + "pdf-text-extraction-azure-function": { + "title": "Pdf Text Extraction Azure Function", + "filename": "pdf-text-extraction-azure-function.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "pdf-text-extraction-service": { + "title": "Pdf Text Extraction Service", + "filename": "pdf-text-extraction-service.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "report-pdf-page-image-attachment-counts": { + "title": "Report PDF Page, Image, and Attachment Counts", + "filename": "report-pdf-page-image-attachment-counts.cs", + "description": "Shows how to use Aspose.Pdf.Facades to determine the total number of pages, embedded images, and file attachments in a PDF document.", "tags": [ "pdf", - "image extraction", - "keyword search", - "Aspose.Pdf", - "PdfExtractor" + "page-count", + "image-extraction", + "attachments", + "diagnostics" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfExtractor", - "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractText", - "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", - "Aspose.Pdf.Facades.PdfExtractor.GetNextImage", - "Aspose.Pdf.Facades.PdfExtractor.HasNextImage" + "PdfFileInfo.NumberOfPages", + "PdfExtractor.BindPdf", + "PdfExtractor.ExtractImage", + "PdfExtractor.HasNextImage", + "PdfExtractor.GetNextImage", + "PdfExtractor.ExtractAttachment", + "PdfExtractor.GetAttachmentInfo" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-pdf-text-with-progress__v2": { - "title": "Extract PDF Text per Page with Progress Indicator", - "filename": "extract-pdf-text-with-progress__v2.cs", - "description": "Demonstrates how to use Aspose.Pdf's PdfExtractor to extract text from each page of a PDF and display a percentage‑based progress update.", + "retry-pdf-text-extraction": { + "title": "Retry PDF Text Extraction on IOException", + "filename": "retry-pdf-text-extraction.cs", + "description": "Demonstrates how to extract text from a PDF using Aspose.Pdf's PdfExtractor with a retry loop that handles IOException and attempts the operation up to three times.", "tags": [ "pdf", "text-extraction", - "progress", - "aspose", - "csharp" + "retry", + "exception-handling", + "aspose-pdf" ], "apis_used": [ "PdfExtractor", "PdfExtractor.BindPdf", "PdfExtractor.ExtractText", - "PdfExtractor.HasNextPageText", - "PdfExtractor.GetNextPageText", - "PdfExtractor.Document.Pages.Count" + "PdfExtractor.GetText" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-images-markdown-gallery": { - "title": "Extract Images from PDF and Generate a Markdown Gallery", - "filename": "extract-images-markdown-gallery.cs", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to pull images from a PDF and create a markdown file that displays those images as a gallery.", + "test-image-extraction-mode-pdf-extractor": { + "title": "Test Image Extraction Mode with PdfExtractor", + "filename": "test-image-extraction-mode-pdf-extractor.cs", + "description": "Demonstrates setting PdfExtractor.ExtractImageMode to DefinedInResources or ActuallyUsed and verifying the extracted image count with NUnit.", "tags": [ "pdf", "image-extraction", - "markdown", - "gallery", - "aspose-pdf" + "extractor", + "unit-test", + "nunit" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Image", "Aspose.Pdf.Facades.PdfExtractor", - "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", - "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", - "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" + "Aspose.Pdf.Facades.ExtractImageMode" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:46:19Z", "status": "verified" }, - "extract-text-and-images-from-pdfs": { - "title": "Extract Text and Images from PDFs using PdfExtractor", - "filename": "extract-text-and-images-from-pdfs.cs", - "description": "Shows how to use Aspose.Pdf.Facades.PdfExtractor to extract all text to a .txt file and save each embedded image as PNG from PDF files in a mounted directory.", - "tags": [ - "pdf", - "text-extraction", - "image-extraction", - "aspose-pdf", - "docker" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfExtractor", - "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractText", - "Aspose.Pdf.Facades.PdfExtractor.GetText", - "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", - "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", - "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:46:19Z", + "test-image-extraction-mode": { + "title": "Test Image Extraction Mode", + "filename": "test-image-extraction-mode.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" } } diff --git a/facades-fill-forms/AGENTS.md b/facades-fill-forms/AGENTS.md index 8db7d54a3..ed20af5e7 100644 --- a/facades-fill-forms/AGENTS.md +++ b/facades-fill-forms/AGENTS.md @@ -8,7 +8,7 @@ parent: ../agents.md # AGENTS - facades-fill-forms -> **Facades fill forms** in PDF using C# / .NET -- **33** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. +> **Facades fill forms** in PDF using C# / .NET -- **61** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. ## Persona @@ -23,73 +23,61 @@ See the root [agents.md](../agents.md) for repository-wide conventions and bound ## Required Namespaces -- `using Aspose.Pdf.Facades;` (31/33 files) ← category-specific -- `using Aspose.Pdf;` (22/33 files) ← category-specific -- `using Aspose.Pdf.Forms;` (12/33 files) -- `using Aspose.Pdf.Annotations;` (6/33 files) -- `using Aspose.Pdf.Text;` (5/33 files) -- `using Aspose.Pdf.Drawing;` (1/33 files) -- `using System;` (33/33 files) -- `using System.IO;` (30/33 files) -- `using System.Data;` (25/33 files) ← category-specific -- `using System.Collections.Generic;` (5/33 files) -- `using System.Threading;` (3/33 files) -- `using System.Text;` (2/33 files) -- `using System.Drawing;` (1/33 files) -- `using System.Linq;` (1/33 files) -- `using System.Text.Json;` (1/33 files) -- `using System.Threading.Tasks;` (1/33 files) - -## Common Code Pattern - -Most files follow this pattern: - -```csharp -using (Document doc = new Document("input.pdf")) -{ - // ... operations ... - doc.Save("output.pdf"); -} -``` +- `using Aspose.Pdf.Facades;` (31/61 files) ← category-specific +- `using Aspose.Pdf;` (22/61 files) +- `using Aspose.Pdf.Forms;` (12/61 files) +- `using Aspose.Pdf.Annotations;` (6/61 files) +- `using Aspose.Pdf.Text;` (5/61 files) +- `using Aspose.Pdf.Drawing;` (1/61 files) +- `using System;` (33/61 files) +- `using System.IO;` (30/61 files) +- `using System.Data;` (25/61 files) +- `using System.Collections.Generic;` (5/61 files) +- `using System.Threading;` (3/61 files) +- `using System.Text;` (2/61 files) +- `using System.Drawing;` (1/61 files) +- `using System.Linq;` (1/61 files) +- `using System.Text.Json;` (1/61 files) +- `using System.Threading.Tasks;` (1/61 files) ## Files in this folder | File | Title | Key APIs | Description | |------|-------|----------|-------------| | [add-date-header-to-pdf-pages](./add-date-header-to-pdf-pages.cs) | Add Date Header to PDF Pages Using AutoFiller | `AutoFiller`, `PdfFileStamp`, `FormattedText` | Shows how to create a PDF template, fill it with data via AutoFiller, and then prepend a header c... | +| [add-text-watermark-to-pdf-pages](./add-text-watermark-to-pdf-pages.cs) | Add text watermark to pdf pages | | Add text watermark to pdf pages | +| [adjust-datatable-columns-to-pdf-fields](./adjust-datatable-columns-to-pdf-fields.cs) | Adjust datatable columns to pdf fields | | Adjust datatable columns to pdf fields | | [apply-password-protection-to-filled-pdf](./apply-password-protection-to-filled-pdf.cs) | Apply Password Protection to a Filled PDF | `Document`, `PdfFileSecurity`, `EncryptFile` | Shows how to load a filled PDF, save a temporary copy, and encrypt it with user and owner passwor... | | [async-fill-pdf-form-from-data-table](./async-fill-pdf-form-from-data-table.cs) | Asynchronously Fill PDF Form from DataTable using Aspose Aut... | `Document`, `Page`, `TextBoxField` | Demonstrates creating a simple PDF template, building a DataTable, and using Aspose.Pdf.Facades.A... | +| [async-fill-pdf-from-xlsx](./async-fill-pdf-from-xlsx.cs) | Async fill pdf from xlsx | | Async fill pdf from xlsx | +| [batch-fill-pdf-form-data-tables](./batch-fill-pdf-form-data-tables.cs) | Batch fill pdf form data tables | | Batch fill pdf form data tables | | [batch-fill-pdf-forms-from-large-csv](./batch-fill-pdf-forms-from-large-csv.cs) | Batch Fill PDF Forms from Large CSV using AutoFiller | `AutoFiller`, `BindPdf`, `ImportDataTable` | The example streams rows from a large CSV (simulating an XLSX) in batches, builds a DataTable for... | | [batch-fill-pdf-template-with-multiple-datatables](./batch-fill-pdf-template-with-multiple-datatables.cs) | Batch Fill PDF Template with Multiple DataTables | `AutoFiller`, `BindPdf`, `GeneratingPath` | Shows how to use Aspose.Pdf's AutoFiller to fill a PDF form repeatedly for each DataTable in a li... | | [bind-pdf-form-to-autofiller](./bind-pdf-form-to-autofiller.cs) | Bind PDF Form to AutoFiller | `AutoFiller`, `BindPdf` | Demonstrates how to create an AutoFiller instance, bind it to a PDF form file, and prepare it for... | +| [cancel-pdf-form-filling-with-timeout](./cancel-pdf-form-filling-with-timeout.cs) | Cancel pdf form filling with timeout | | Cancel pdf form filling with timeout | +| [configure-datacolumn-properties-auto-fill-pdf-form](./configure-datacolumn-properties-auto-fill-pdf-form.cs) | Configure datacolumn properties auto fill pdf form | | Configure datacolumn properties auto fill pdf form | | [convert-in-memory-pdf-to-byte-array](./convert-in-memory-pdf-to-byte-array.cs) | Convert In-Memory PDF to Byte Array | `Document`, `Page`, `TextFragment` | Creates a PDF document entirely in memory with Aspose.Pdf, saves it to a MemoryStream, and return... | +| [convert-large-pdf-to-excel-with-temp-disk-buffer](./convert-large-pdf-to-excel-with-temp-disk-buffer.cs) | Convert large pdf to excel with temp disk buffer | | Convert large pdf to excel with temp disk buffer | | [convert-large-pdf-to-excel-with-temp-folder](./convert-large-pdf-to-excel-with-temp-folder.cs) | Convert Large PDF to Excel Using a Temporary Folder | `PdfFileEditor`, `Document`, `PdfSaveOptions` | Demonstrates how to convert a large PDF to Excel while using a temporary directory and disk buffe... | +| [convert-pdf-to-byte-array](./convert-pdf-to-byte-array.cs) | Convert pdf to byte array | | Convert pdf to byte array | +| [create-pdf-per-datarow](./create-pdf-per-datarow.cs) | Create pdf per datarow | | Create pdf per datarow | | [extract-pdf-pages-with-custom-names](./extract-pdf-pages-with-custom-names.cs) | Extract PDF Pages with Custom File Names from DataTable | `Document`, `PdfFileEditor`, `Extract` | Demonstrates using Aspose.Pdf.Facades.PdfFileEditor to extract specific pages from a PDF and save... | +| [fill-pdf-acroform-using-datatable](./fill-pdf-acroform-using-datatable.cs) | Fill pdf acroform using datatable | | Fill pdf acroform using datatable | | [fill-pdf-form-field-preserve-layout](./fill-pdf-form-field-preserve-layout.cs) | Fill PDF Form Field and Preserve Layout | `Form`, `FillField`, `Save` | Demonstrates how to load a PDF with form fields, fill a specific field using the Aspose.Pdf.Facad... | +| [fill-pdf-form-from-csv-mapping](./fill-pdf-form-from-csv-mapping.cs) | Fill pdf form from csv mapping | | Fill pdf form from csv mapping | | [fill-pdf-form-from-csv-with-mapping](./fill-pdf-form-from-csv-with-mapping.cs) | Fill PDF Form Fields from CSV Using Mapping Configuration | `Form`, `BindPdf`, `FillField` | Demonstrates how to read a CSV file, map its column names to PDF form field names via a JSON conf... | | [fill-pdf-form-from-csv-xlsx](./fill-pdf-form-from-csv-xlsx.cs) | Fill PDF Form from CSV/XLSX Using AutoFiller | `AutoFiller`, `BindPdf`, `ImportDataTable` | Shows how to read CSV (or CSV‑exported XLSX) data into a DataTable and use Aspose.Pdf.Facades.Aut... | | [fill-pdf-form-from-csv](./fill-pdf-form-from-csv.cs) | Fill PDF Form from CSV Data using Aspose.Pdf | `Form`, `ctor`, `FillField` | Demonstrates loading data from a CSV file into a DataTable and using Aspose.Pdf.Facades.Form to f... | +| [fill-pdf-form-from-excel-auto-filler](./fill-pdf-form-from-excel-auto-filler.cs) | Fill pdf form from excel auto filler | | Fill pdf form from excel auto filler | | [fill-pdf-form-from-memory-stream](./fill-pdf-form-from-memory-stream.cs) | Fill PDF Form from Memory Stream using AutoFiller | `Document`, `AutoFiller`, `TextBoxField` | Creates a PDF form template in memory and fills it with data from a DataTable using Aspose.Pdf.Fa... | | [fill-pdf-form-from-multiple-csv-worksheets](./fill-pdf-form-from-multiple-csv-worksheets.cs) | Fill PDF Form from Multiple CSV Worksheets using AutoFiller | `AutoFiller`, `BindPdf`, `ImportDataTable` | The example reads each CSV file as a worksheet, creates a DataTable, and uses Aspose.Pdf.Facades.... | | [fill-pdf-form-using-autofiller-datatable](./fill-pdf-form-using-autofiller-datatable.cs) | Fill PDF Form Using AutoFiller and DataTable | `Document`, `Page`, `TextBoxField` | Demonstrates how to create a PDF template with AcroForm fields, populate a DataTable, and use Asp... | +| [fill-pdf-form-using-datatable-autofiller](./fill-pdf-form-using-datatable-autofiller.cs) | Fill pdf form using datatable autofiller | | Fill pdf form using datatable autofiller | | [fill-pdf-form-verify-size](./fill-pdf-form-verify-size.cs) | Fill PDF Form and Verify Output Size | `AutoFiller`, `BindPdf`, `ImportDataTable` | Demonstrates using Aspose.Pdf.AutoFiller to populate a PDF form from a DataTable, creates a templ... | -| [fill-pdf-form-with-autofiller-exception-handling](./fill-pdf-form-with-autofiller-exception-handling.cs) | Fill PDF Form Using AutoFiller with Exception Handling | `AutoFiller`, `BindPdf`, `ImportDataTable` | Demonstrates binding a PDF template, importing data from a DataTable, and generating a filled PDF... | -| [fill-pdf-form-with-autofiller](./fill-pdf-form-with-autofiller.cs) | Fill PDF Form Using AutoFiller with Custom DataTable Columns | `AutoFiller`, `BindPdf`, `ImportDataTable` | Demonstrates how to create a DataTable, add required and custom columns, and use Aspose.Pdf.Facad... | -| [fill-pdf-form-with-autofiller__v2](./fill-pdf-form-with-autofiller__v2.cs) | Fill PDF Form Using AutoFiller and Dispose Resources | `AutoFiller`, `Document`, `Page` | Demonstrates creating a PDF form template, populating it from a DataTable with AutoFiller, and pr... | -| [fill-pdf-form-with-timeout](./fill-pdf-form-with-timeout.cs) | Fill PDF Form with Timeout Cancellation | `Form`, `BindPdf`, `FillField` | Shows how to fill a PDF form field using Aspose.Pdf's Form facade and abort the operation if it e... | -| [format-numeric-datatable-values-fill-pdf-form](./format-numeric-datatable-values-fill-pdf-form.cs) | Format Numeric DataTable Values and Fill PDF Form Fields | `Document`, `Page`, `Rectangle` | Shows how to format numeric values from a DataTable (e.g., currency) as strings and populate them... | -| [import-datatable-into-pdf-form-with-readonly-uniqu...](./import-datatable-into-pdf-form-with-readonly-unique.cs) | Import DataTable with ReadOnly and Unique Columns into PDF F... | `Document`, `Page`, `TextBoxField` | Demonstrates how to configure DataColumn properties such as ReadOnly and Unique, create matching ... | -| [load-csv-to-datatable-formdata-converter](./load-csv-to-datatable-formdata-converter.cs) | Load CSV into DataTable and Use FormDataConverter for PDF Fo... | `FormDataConverter` | Shows how to read a CSV (as a replacement for an XLSX) into a DataTable and assign it to Aspose.P... | -| [log-datatable-row-processing-pdf-page-creation](./log-datatable-row-processing-pdf-page-creation.cs) | Log DataTable Row Processing and PDF Page Creation | `Document`, `Page`, `TextBoxField` | Demonstrates creating a PDF template with form fields, filling it using AutoFiller from a DataTab... | -| [map-datatable-columns-to-pdf-form-fields](./map-datatable-columns-to-pdf-form-fields.cs) | Map DataTable Columns to PDF Form Fields with AutoFiller | `Document`, `Page`, `TextBoxField` | Demonstrates renaming DataTable columns to match PDF form field identifiers and filling the PDF u... | -| [merge-filled-pdfs-from-datatables](./merge-filled-pdfs-from-datatables.cs) | Merge Multiple Filled PDFs from DataTables into a Single PDF | `AutoFiller`, `BindPdf`, `ImportDataTable` | The example creates a PDF form template from a DataTable, fills separate PDFs for each DataTable ... | -| [pdf-one-page-per-datarow](./pdf-one-page-per-datarow.cs) | Create PDF with One Page per DataTable Row | `Document`, `Page`, `Table` | Shows how to generate a PDF where each row of a DataTable is placed on a separate page using Aspo... | -| [pdf-page-identifier-summary-report](./pdf-page-identifier-summary-report.cs) | Generate PDF Page‑to‑Identifier Summary Report | `Document`, `Page`, `TableAbsorber` | The example opens a PDF, extracts a table identifier from each page using TableAbsorber, falls ba... | -| [retry-autofiller-import-transient-errors](./retry-autofiller-import-transient-errors.cs) | Retry AutoFiller Import with Transient File Access Handling | `AutoFiller`, `BindPdf`, `ImportDataTable` | Demonstrates using Aspose.Pdf's AutoFiller within a retry loop to handle transient I/O and access... | -| ... | | | *and 3 more files* | +| ... | | | *and 31 more files* | ## Category Statistics -- Total examples: 33 +- Total examples: 61 ## Category-Specific Tips @@ -133,5 +121,5 @@ using (Document doc = new Document("input.pdf")) - Review code examples in this folder for facades-fill-forms patterns -Updated: 2026-08-20 | Run: `20260820_001147_12d7b3` +Updated: 2026-09-10 | Run: `20260910_054408_87a7f4` diff --git a/facades-fill-forms/README.md b/facades-fill-forms/README.md new file mode 100644 index 000000000..822dd5156 --- /dev/null +++ b/facades-fill-forms/README.md @@ -0,0 +1,80 @@ +# Facades fill forms + +> **Facades fill forms** in PDF using C# / .NET -- **61** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. + +- Category: `facades-fill-forms` +- Examples: 61 +- NuGet: `Aspose.PDF 26.8.0` -- target `net10.0` + +## Examples + +- [`add-date-header-to-pdf-pages.cs`](./add-date-header-to-pdf-pages.cs) -- Add date header to pdf pages +- [`add-text-watermark-to-pdf-pages.cs`](./add-text-watermark-to-pdf-pages.cs) -- Add text watermark to pdf pages +- [`adjust-datatable-columns-to-pdf-fields.cs`](./adjust-datatable-columns-to-pdf-fields.cs) -- Adjust datatable columns to pdf fields +- [`apply-password-protection-to-filled-pdf.cs`](./apply-password-protection-to-filled-pdf.cs) -- Apply password protection to filled pdf +- [`async-fill-pdf-form-from-data-table.cs`](./async-fill-pdf-form-from-data-table.cs) -- Async fill pdf form from data table +- [`async-fill-pdf-from-xlsx.cs`](./async-fill-pdf-from-xlsx.cs) -- Async fill pdf from xlsx +- [`batch-fill-pdf-form-data-tables.cs`](./batch-fill-pdf-form-data-tables.cs) -- Batch fill pdf form data tables +- [`batch-fill-pdf-forms-from-large-csv.cs`](./batch-fill-pdf-forms-from-large-csv.cs) -- Batch fill pdf forms from large csv +- [`batch-fill-pdf-template-with-multiple-datatables.cs`](./batch-fill-pdf-template-with-multiple-datatables.cs) -- Batch fill pdf template with multiple datatables +- [`bind-pdf-form-to-autofiller.cs`](./bind-pdf-form-to-autofiller.cs) -- Bind pdf form to autofiller +- [`cancel-pdf-form-filling-with-timeout.cs`](./cancel-pdf-form-filling-with-timeout.cs) -- Cancel pdf form filling with timeout +- [`configure-datacolumn-properties-auto-fill-pdf-form.cs`](./configure-datacolumn-properties-auto-fill-pdf-form.cs) -- Configure datacolumn properties auto fill pdf form +- [`convert-in-memory-pdf-to-byte-array.cs`](./convert-in-memory-pdf-to-byte-array.cs) -- Convert in memory pdf to byte array +- [`convert-large-pdf-to-excel-with-temp-disk-buffer.cs`](./convert-large-pdf-to-excel-with-temp-disk-buffer.cs) -- Convert large pdf to excel with temp disk buffer +- [`convert-large-pdf-to-excel-with-temp-folder.cs`](./convert-large-pdf-to-excel-with-temp-folder.cs) -- Convert large pdf to excel with temp folder +- [`convert-pdf-to-byte-array.cs`](./convert-pdf-to-byte-array.cs) -- Convert pdf to byte array +- [`create-pdf-per-datarow.cs`](./create-pdf-per-datarow.cs) -- Create pdf per datarow +- [`extract-pdf-pages-with-custom-names.cs`](./extract-pdf-pages-with-custom-names.cs) -- Extract pdf pages with custom names +- [`fill-pdf-acroform-using-datatable.cs`](./fill-pdf-acroform-using-datatable.cs) -- Fill pdf acroform using datatable +- [`fill-pdf-form-field-preserve-layout.cs`](./fill-pdf-form-field-preserve-layout.cs) -- Fill pdf form field preserve layout +- [`fill-pdf-form-from-csv-mapping.cs`](./fill-pdf-form-from-csv-mapping.cs) -- Fill pdf form from csv mapping +- [`fill-pdf-form-from-csv-with-mapping.cs`](./fill-pdf-form-from-csv-with-mapping.cs) -- Fill pdf form from csv with mapping +- [`fill-pdf-form-from-csv-xlsx.cs`](./fill-pdf-form-from-csv-xlsx.cs) -- Fill pdf form from csv xlsx +- [`fill-pdf-form-from-csv.cs`](./fill-pdf-form-from-csv.cs) -- Fill pdf form from csv +- [`fill-pdf-form-from-excel-auto-filler.cs`](./fill-pdf-form-from-excel-auto-filler.cs) -- Fill pdf form from excel auto filler +- [`fill-pdf-form-from-memory-stream.cs`](./fill-pdf-form-from-memory-stream.cs) -- Fill pdf form from memory stream +- [`fill-pdf-form-from-multiple-csv-worksheets.cs`](./fill-pdf-form-from-multiple-csv-worksheets.cs) -- Fill pdf form from multiple csv worksheets +- [`fill-pdf-form-using-autofiller-datatable.cs`](./fill-pdf-form-using-autofiller-datatable.cs) -- Fill pdf form using autofiller datatable +- [`fill-pdf-form-using-datatable-autofiller.cs`](./fill-pdf-form-using-datatable-autofiller.cs) -- Fill pdf form using datatable autofiller +- [`fill-pdf-form-verify-size.cs`](./fill-pdf-form-verify-size.cs) -- Fill pdf form verify size +- [`fill-pdf-form-with-autofiller-exception-handling.cs`](./fill-pdf-form-with-autofiller-exception-handling.cs) -- Fill pdf form with autofiller exception handling +- [`fill-pdf-form-with-autofiller.cs`](./fill-pdf-form-with-autofiller.cs) -- Fill pdf form with autofiller +- [`fill-pdf-form-with-autofiller__v2.cs`](./fill-pdf-form-with-autofiller__v2.cs) -- Fill pdf form with autofiller v2 +- [`fill-pdf-form-with-datatable-exception-handling.cs`](./fill-pdf-form-with-datatable-exception-handling.cs) -- Fill pdf form with datatable exception handling +- [`fill-pdf-form-with-timeout.cs`](./fill-pdf-form-with-timeout.cs) -- Fill pdf form with timeout +- [`fill-pdf-from-multiple-csv-worksheets.cs`](./fill-pdf-from-multiple-csv-worksheets.cs) -- Fill pdf from multiple csv worksheets +- [`filter-csv-and-fill-pdf-form.cs`](./filter-csv-and-fill-pdf-form.cs) -- Filter csv and fill pdf form +- [`format-numeric-datatable-values-fill-pdf-form.cs`](./format-numeric-datatable-values-fill-pdf-form.cs) -- Format numeric datatable values fill pdf form +- [`generate-datatable-and-use-formdataconverter.cs`](./generate-datatable-and-use-formdataconverter.cs) -- Generate datatable and use formdataconverter +- [`generate-pdf-pages-from-datatable-with-autofiller.cs`](./generate-pdf-pages-from-datatable-with-autofiller.cs) -- Generate pdf pages from datatable with autofiller +- [`import-datatable-into-pdf-form-with-readonly-unique.cs`](./import-datatable-into-pdf-form-with-readonly-unique.cs) -- Import datatable into pdf form with readonly unique +- [`load-csv-to-datatable-formdata-converter.cs`](./load-csv-to-datatable-formdata-converter.cs) -- Load csv to datatable formdata converter +- [`log-datatable-row-processing-pdf-page-creation.cs`](./log-datatable-row-processing-pdf-page-creation.cs) -- Log datatable row processing pdf page creation +- [`map-datatable-columns-to-pdf-form-fields.cs`](./map-datatable-columns-to-pdf-form-fields.cs) -- Map datatable columns to pdf form fields +- [`merge-filled-pdf-forms-from-datatables.cs`](./merge-filled-pdf-forms-from-datatables.cs) -- Merge filled pdf forms from datatables +- [`merge-filled-pdfs-from-datatables.cs`](./merge-filled-pdfs-from-datatables.cs) -- Merge filled pdfs from datatables +- [`pdf-one-page-per-datarow.cs`](./pdf-one-page-per-datarow.cs) -- Pdf one page per datarow +- [`pdf-page-identifier-summary-report.cs`](./pdf-page-identifier-summary-report.cs) -- Pdf page identifier summary report +- [`pdf-page-table-summary-report.cs`](./pdf-page-table-summary-report.cs) -- Pdf page table summary report +- [`populate-pdf-form-fields-from-datatable.cs`](./populate-pdf-form-fields-from-datatable.cs) -- Populate pdf form fields from datatable +- [`protect-pdf-with-password.cs`](./protect-pdf-with-password.cs) -- Protect pdf with password +- [`retry-autofiller-import-transient-errors.cs`](./retry-autofiller-import-transient-errors.cs) -- Retry autofiller import transient errors +- [`retry-autofiller-import-transient-io.cs`](./retry-autofiller-import-transient-io.cs) -- Retry autofiller import transient io +- [`save-filled-pdf-preserve-layout.cs`](./save-filled-pdf-preserve-layout.cs) -- Save filled pdf preserve layout +- [`split-filled-pdf-into-single-page-pdfs.cs`](./split-filled-pdf-into-single-page-pdfs.cs) -- Split filled pdf into single page pdfs +- [`split-pdf-custom-names.cs`](./split-pdf-custom-names.cs) -- Split pdf custom names +- [`stream-large-csv-data-into-pdf-forms.cs`](./stream-large-csv-data-into-pdf-forms.cs) -- Stream large csv data into pdf forms +- [`validate-filled-pdf-fields-against-datatable-values.cs`](./validate-filled-pdf-fields-against-datatable-values.cs) -- Validate filled pdf fields against datatable values +- [`validate-filled-pdf-fields-against-datatable.cs`](./validate-filled-pdf-fields-against-datatable.cs) -- Validate filled pdf fields against datatable +- [`validate-pdf-size-after-filling-form.cs`](./validate-pdf-size-after-filling-form.cs) -- Validate pdf size after filling form +- [`validate-required-pdf-form-fields.cs`](./validate-required-pdf-form-fields.cs) -- Validate required pdf form fields + +## See Also + +- [`AGENTS.md`](./AGENTS.md) -- category-specific anti-patterns, API surface, and conventions for AI coding agents +- [`../AGENTS.md`](../AGENTS.md) -- repository-wide agent guide +- [`../README.md`](../README.md) -- full category index and project overview +- [Aspose.PDF for .NET docs](https://docs.aspose.com/pdf/net/) + +> Each `.cs` file is a standalone, build-validated console example. Drop into a fresh `dotnet new console` project, add the `Aspose.PDF` NuGet (version above), and run. diff --git a/facades-fill-forms/index.json b/facades-fill-forms/index.json index 8d16e23c6..14c5dbce5 100644 --- a/facades-fill-forms/index.json +++ b/facades-fill-forms/index.json @@ -1,62 +1,88 @@ { "category": "facades-fill-forms", "nuget_version": "26.8.0", - "last_updated": "2026-08-20T07:49:34Z", + "last_updated": "2026-09-10T12:45:08Z", "examples": { - "bind-pdf-form-to-autofiller": { - "title": "Bind PDF Form to AutoFiller", - "filename": "bind-pdf-form-to-autofiller.cs", - "description": "Demonstrates how to create an AutoFiller instance, bind it to a PDF form file, and prepare it for further operations such as importing data or saving the filled document.", + "add-date-header-to-pdf-pages": { + "title": "Add Date Header to PDF Pages Using AutoFiller", + "filename": "add-date-header-to-pdf-pages.cs", + "description": "Shows how to create a PDF template, fill it with data via AutoFiller, and then prepend a header containing the current date on every generated page using PdfFileStamp.", "tags": [ - "autofiller", - "pdf-form", - "binding", - "aspose-pdf", - "csharp" + "auto-filler", + "header", + "date", + "pdf", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.AutoFiller", - "Aspose.Pdf.Facades.AutoFiller.BindPdf" + "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.Facades.FormattedText", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Annotations.Border" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:49:34Z", "status": "verified" }, - "load-csv-to-datatable-formdata-converter": { - "title": "Load CSV into DataTable and Use FormDataConverter for PDF Form Mapping", - "filename": "load-csv-to-datatable-formdata-converter.cs", - "description": "Shows how to read a CSV (as a replacement for an XLSX) into a DataTable and assign it to Aspose.Pdf.Facades.FormDataConverter for automatic PDF form filling.", + "add-text-watermark-to-pdf-pages": { + "title": "Add Text Watermark To Pdf Pages", + "filename": "add-text-watermark-to-pdf-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "adjust-datatable-columns-to-pdf-fields": { + "title": "Adjust Datatable Columns To Pdf Fields", + "filename": "adjust-datatable-columns-to-pdf-fields.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "apply-password-protection-to-filled-pdf": { + "title": "Apply Password Protection to a Filled PDF", + "filename": "apply-password-protection-to-filled-pdf.cs", + "description": "Shows how to load a filled PDF, save a temporary copy, and encrypt it with user and owner passwords using Aspose.Pdf's PdfFileSecurity facade.", "tags": [ - "csv", - "datatable", - "formdata", "pdf", - "aspose" + "encryption", + "password-protection", + "aspose.pdf", + "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.FormDataConverter" + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfFileSecurity", + "Aspose.Pdf.Facades.PdfFileSecurity.EncryptFile", + "Aspose.Pdf.DocumentPrivilege", + "Aspose.Pdf.KeySize" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:49:34Z", "status": "verified" }, - "import-datatable-into-pdf-form-with-readonly-unique": { - "title": "Import DataTable with ReadOnly and Unique Columns into PDF Form", - "filename": "import-datatable-into-pdf-form-with-readonly-unique.cs", - "description": "Demonstrates how to configure DataColumn properties such as ReadOnly and Unique, create matching PDF form fields, and import the DataTable into the PDF using AutoFiller.", + "async-fill-pdf-form-from-data-table": { + "title": "Asynchronously Fill PDF Form from DataTable using Aspose AutoFiller", + "filename": "async-fill-pdf-form-from-data-table.cs", + "description": "Demonstrates creating a simple PDF template, building a DataTable, and using Aspose.Pdf.Facades.AutoFiller to populate form fields while performing all file reads and writes with asynchronous streams.", "tags": [ - "DataTable", - "PDF form", - "ReadOnly", - "Unique", - "AutoFiller" + "async", + "pdf", + "form-filling", + "aspose", + "autofiller" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.Border", - "Aspose.Pdf.Facades.AutoFiller", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Facades.AutoFiller.BindPdf", "Aspose.Pdf.Facades.AutoFiller.ImportDataTable", "Aspose.Pdf.Facades.AutoFiller.Save" @@ -65,210 +91,322 @@ "generated_at": "2026-08-20T07:49:34Z", "status": "verified" }, - "fill-pdf-form-using-autofiller-datatable": { - "title": "Fill PDF Form Using AutoFiller and DataTable", - "filename": "fill-pdf-form-using-autofiller-datatable.cs", - "description": "Demonstrates how to create a PDF template with AcroForm fields, populate a DataTable, and use Aspose.Pdf.Facades.AutoFiller to import the table and fill the form automatically.", + "async-fill-pdf-from-xlsx": { + "title": "Async Fill Pdf From Xlsx", + "filename": "async-fill-pdf-from-xlsx.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "batch-fill-pdf-form-data-tables": { + "title": "Batch Fill Pdf Form Data Tables", + "filename": "batch-fill-pdf-form-data-tables.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "batch-fill-pdf-forms-from-large-csv": { + "title": "Batch Fill PDF Forms from Large CSV using AutoFiller", + "filename": "batch-fill-pdf-forms-from-large-csv.cs", + "description": "The example streams rows from a large CSV (simulating an XLSX) in batches, builds a DataTable for each batch, and uses Aspose.Pdf.Facades.AutoFiller to populate a PDF template's form fields, generating individual PDFs without loading the entire dataset into memory.", "tags": [ - "autofiller", - "pdf-form", - "datatable", - "aspnet", - "fill-form" + "auto-filler", + "pdf-forms", + "batch-processing", + "csv", + "streaming" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Forms.TextBoxField", "Aspose.Pdf.Facades.AutoFiller", "Aspose.Pdf.Facades.AutoFiller.BindPdf", "Aspose.Pdf.Facades.AutoFiller.ImportDataTable", - "Aspose.Pdf.Facades.AutoFiller.Save" + "Aspose.Pdf.Facades.AutoFiller.Save", + "Aspose.Pdf.Document", + "Aspose.Pdf.TextBoxField", + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:49:34Z", "status": "verified" }, - "fill-pdf-form-field-preserve-layout": { - "title": "Fill PDF Form Field and Preserve Layout", - "filename": "fill-pdf-form-field-preserve-layout.cs", - "description": "Demonstrates how to load a PDF with form fields, fill a specific field using the Aspose.Pdf.Facades.Form class, and save the document while keeping the original layout intact.", + "batch-fill-pdf-template-with-multiple-datatables": { + "title": "Batch Fill PDF Template with Multiple DataTables", + "filename": "batch-fill-pdf-template-with-multiple-datatables.cs", + "description": "Shows how to use Aspose.Pdf's AutoFiller to fill a PDF form repeatedly for each DataTable in a list, generating separate output PDFs for each data set.", "tags": [ "pdf", - "form", - "fill", - "aspose", + "form-filling", + "batch-processing", + "autofiller", + "datatable" + ], + "apis_used": [ + "AutoFiller", + "AutoFiller.BindPdf", + "AutoFiller.GeneratingPath", + "AutoFiller.BasicFileName", + "AutoFiller.ImportDataTable", + "AutoFiller.Save" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:49:34Z", + "status": "verified" + }, + "bind-pdf-form-to-autofiller": { + "title": "Bind PDF Form to AutoFiller", + "filename": "bind-pdf-form-to-autofiller.cs", + "description": "Demonstrates how to create an AutoFiller instance, bind it to a PDF form file, and prepare it for further operations such as importing data or saving the filled document.", + "tags": [ + "autofiller", + "pdf-form", + "binding", + "aspose-pdf", "csharp" ], "apis_used": [ - "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.FillField", - "Aspose.Pdf.Facades.Form.Save" + "Aspose.Pdf.Facades.AutoFiller", + "Aspose.Pdf.Facades.AutoFiller.BindPdf" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:49:34Z", "status": "verified" }, - "pdf-one-page-per-datarow": { - "title": "Create PDF with One Page per DataTable Row", - "filename": "pdf-one-page-per-datarow.cs", - "description": "Shows how to generate a PDF where each row of a DataTable is placed on a separate page using Aspose.Pdf tables and pages.", + "cancel-pdf-form-filling-with-timeout": { + "title": "Cancel Pdf Form Filling With Timeout", + "filename": "cancel-pdf-form-filling-with-timeout.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "configure-datacolumn-properties-auto-fill-pdf-form": { + "title": "Configure Datacolumn Properties Auto Fill Pdf Form", + "filename": "configure-datacolumn-properties-auto-fill-pdf-form.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-in-memory-pdf-to-byte-array": { + "title": "Convert In-Memory PDF to Byte Array", + "filename": "convert-in-memory-pdf-to-byte-array.cs", + "description": "Creates a PDF document entirely in memory with Aspose.Pdf, saves it to a MemoryStream, and returns the raw byte array for sending over a web API without touching the file system.", "tags": [ "pdf", - "datatable", - "table", - "pages", - "aspose-pdf" + "memory", + "byte-array", + "aspose-pdf", + "web-api" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Table", - "Aspose.Pdf.Row", - "Aspose.Pdf.Cell", - "Aspose.Pdf.Text.TextFragment" + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:49:34Z", "status": "verified" }, - "map-datatable-columns-to-pdf-form-fields": { - "title": "Map DataTable Columns to PDF Form Fields with AutoFiller", - "filename": "map-datatable-columns-to-pdf-form-fields.cs", - "description": "Demonstrates renaming DataTable columns to match PDF form field identifiers and filling the PDF using Aspose.Pdf's AutoFiller.", + "convert-large-pdf-to-excel-with-temp-disk-buffer": { + "title": "Convert Large Pdf To Excel With Temp Disk Buffer", + "filename": "convert-large-pdf-to-excel-with-temp-disk-buffer.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-large-pdf-to-excel-with-temp-folder": { + "title": "Convert Large PDF to Excel Using a Temporary Folder", + "filename": "convert-large-pdf-to-excel-with-temp-folder.cs", + "description": "Demonstrates how to convert a large PDF to Excel while using a temporary directory and disk buffering to avoid memory and disk‑space issues.", "tags": [ - "datatables", - "pdf-forms", - "autofiller", - "field-mapping", + "pdf", + "excel", + "temp-folder", + "large-files", "aspose-pdf" ], "apis_used": [ + "Aspose.Pdf.Facades.PdfFileEditor", "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Annotations.Border", - "Aspose.Pdf.Annotations.BorderStyle", - "Aspose.Pdf.Facades.AutoFiller.BindPdf", - "Aspose.Pdf.Facades.AutoFiller.ImportDataTable", - "Aspose.Pdf.Facades.AutoFiller.Save" + "Aspose.Pdf.PdfSaveOptions", + "Aspose.Pdf.ExcelSaveOptions", + "Aspose.Pdf.PdfSaveOptions.TempPath" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:49:34Z", "status": "verified" }, - "fill-pdf-form-with-autofiller": { - "title": "Fill PDF Form Using AutoFiller with Custom DataTable Columns", - "filename": "fill-pdf-form-with-autofiller.cs", - "description": "Demonstrates how to create a DataTable, add required and custom columns, and use Aspose.Pdf.Facades.AutoFiller to bind a PDF template, import the data, and save the filled form.", + "convert-pdf-to-byte-array": { + "title": "Convert Pdf To Byte Array", + "filename": "convert-pdf-to-byte-array.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-pdf-per-datarow": { + "title": "Create Pdf Per Datarow", + "filename": "create-pdf-per-datarow.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-pdf-pages-with-custom-names": { + "title": "Extract PDF Pages with Custom File Names from DataTable", + "filename": "extract-pdf-pages-with-custom-names.cs", + "description": "Demonstrates using Aspose.Pdf.Facades.PdfFileEditor to extract specific pages from a PDF and save each page with a custom file name defined in a DataTable.", "tags": [ "pdf", - "form-filling", - "autofiller", + "page-extraction", + "custom-naming", "datatable", - "aspose" + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.AutoFiller", - "Aspose.Pdf.Facades.AutoFiller.BindPdf", - "Aspose.Pdf.Facades.AutoFiller.ImportDataTable", - "Aspose.Pdf.Facades.AutoFiller.Save", - "Aspose.Pdf.Facades.AutoFiller.Close" + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfFileEditor", + "Aspose.Pdf.Facades.PdfFileEditor.Extract", + "Aspose.Pdf.Document.Pages.Add", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:49:34Z", "status": "verified" }, - "fill-pdf-form-from-multiple-csv-worksheets": { - "title": "Fill PDF Form from Multiple CSV Worksheets using AutoFiller", - "filename": "fill-pdf-form-from-multiple-csv-worksheets.cs", - "description": "The example reads each CSV file as a worksheet, creates a DataTable, and uses Aspose.Pdf.Facades.AutoFiller to merge the data into a PDF form, generating a separate PDF for each worksheet.", + "fill-pdf-acroform-using-datatable": { + "title": "Fill Pdf Acroform Using Datatable", + "filename": "fill-pdf-acroform-using-datatable.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "fill-pdf-form-field-preserve-layout": { + "title": "Fill PDF Form Field and Preserve Layout", + "filename": "fill-pdf-form-field-preserve-layout.cs", + "description": "Demonstrates how to load a PDF with form fields, fill a specific field using the Aspose.Pdf.Facades.Form class, and save the document while keeping the original layout intact.", "tags": [ "pdf", - "autofiller", - "csv", - "datatables", - "form-fill" + "form", + "fill", + "aspose", + "csharp" ], "apis_used": [ - "Aspose.Pdf.Facades.AutoFiller", - "Aspose.Pdf.Facades.AutoFiller.BindPdf", - "Aspose.Pdf.Facades.AutoFiller.ImportDataTable", - "Aspose.Pdf.Facades.AutoFiller.Save", - "Aspose.Pdf.Facades.AutoFiller.Dispose" + "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.Form.FillField", + "Aspose.Pdf.Facades.Form.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:49:34Z", "status": "verified" }, - "fill-pdf-form-with-autofiller-exception-handling": { - "title": "Fill PDF Form Using AutoFiller with Exception Handling", - "filename": "fill-pdf-form-with-autofiller-exception-handling.cs", - "description": "Demonstrates binding a PDF template, importing data from a DataTable, and generating a filled PDF using Aspose.Pdf's AutoFiller while handling missing file and form field errors.", + "fill-pdf-form-from-csv-mapping": { + "title": "Fill Pdf Form From Csv Mapping", + "filename": "fill-pdf-form-from-csv-mapping.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "fill-pdf-form-from-csv-with-mapping": { + "title": "Fill PDF Form Fields from CSV Using Mapping Configuration", + "filename": "fill-pdf-form-from-csv-with-mapping.cs", + "description": "Demonstrates how to read a CSV file, map its column names to PDF form field names via a JSON configuration, and fill an Aspose.Pdf form for each data row.", "tags": [ - "autofiller", - "pdf-form", - "exception-handling", - "data-table", - "aspose-pdf" + "pdf", + "form-filling", + "csv", + "mapping", + "aspose" ], "apis_used": [ - "AutoFiller", - "AutoFiller.BindPdf", - "AutoFiller.ImportDataTable", - "AutoFiller.Save", - "PdfException" + "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.Form.BindPdf", + "Aspose.Pdf.Facades.Form.FillField", + "Aspose.Pdf.Facades.Form.Save", + "Aspose.Pdf.Facades.Form.Dispose" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:49:34Z", "status": "verified" }, - "fill-pdf-form-with-autofiller__v2": { - "title": "Fill PDF Form Using AutoFiller and Dispose Resources", - "filename": "fill-pdf-form-with-autofiller__v2.cs", - "description": "Demonstrates creating a PDF form template, populating it from a DataTable with AutoFiller, and properly disposing the AutoFiller to release unmanaged resources.", + "fill-pdf-form-from-csv-xlsx": { + "title": "Fill PDF Form from CSV/XLSX Using AutoFiller", + "filename": "fill-pdf-form-from-csv-xlsx.cs", + "description": "Shows how to read CSV (or CSV‑exported XLSX) data into a DataTable and use Aspose.Pdf.Facades.AutoFiller to bind a PDF template, import the data, and generate a filled PDF document.", "tags": [ - "pdf", - "form-filling", "autofiller", - "resource-management", - "aspnet" + "pdf-form", + "csv", + "datatable", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.AutoFiller", - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Annotations.Border", - "Aspose.Pdf.Annotations.BorderStyle" + "AutoFiller.BindPdf", + "AutoFiller.ImportDataTable", + "AutoFiller.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:49:34Z", "status": "verified" }, - "batch-fill-pdf-template-with-multiple-datatables": { - "title": "Batch Fill PDF Template with Multiple DataTables", - "filename": "batch-fill-pdf-template-with-multiple-datatables.cs", - "description": "Shows how to use Aspose.Pdf's AutoFiller to fill a PDF form repeatedly for each DataTable in a list, generating separate output PDFs for each data set.", + "fill-pdf-form-from-csv": { + "title": "Fill PDF Form from CSV Data using Aspose.Pdf", + "filename": "fill-pdf-form-from-csv.cs", + "description": "Demonstrates loading data from a CSV file into a DataTable and using Aspose.Pdf.Facades.Form to fill matching fields in a PDF template and save the filled PDF.", "tags": [ "pdf", "form-filling", - "batch-processing", - "autofiller", - "datatable" - ], - "apis_used": [ - "AutoFiller", - "AutoFiller.BindPdf", - "AutoFiller.GeneratingPath", - "AutoFiller.BasicFileName", - "AutoFiller.ImportDataTable", - "AutoFiller.Save" + "csv", + "aspose.pdf", + "facades" + ], + "apis_used": [ + "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.Form..ctor", + "Aspose.Pdf.Facades.Form.FillField", + "Aspose.Pdf.Facades.Form.Save", + "Aspose.Pdf.Facades.Form.Dispose" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:49:34Z", "status": "verified" }, + "fill-pdf-form-from-excel-auto-filler": { + "title": "Fill Pdf Form From Excel Auto Filler", + "filename": "fill-pdf-form-from-excel-auto-filler.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "fill-pdf-form-from-memory-stream": { "title": "Fill PDF Form from Memory Stream using AutoFiller", "filename": "fill-pdf-form-from-memory-stream.cs", @@ -291,61 +429,38 @@ "generated_at": "2026-08-20T07:49:34Z", "status": "verified" }, - "extract-pdf-pages-with-custom-names": { - "title": "Extract PDF Pages with Custom File Names from DataTable", - "filename": "extract-pdf-pages-with-custom-names.cs", - "description": "Demonstrates using Aspose.Pdf.Facades.PdfFileEditor to extract specific pages from a PDF and save each page with a custom file name defined in a DataTable.", - "tags": [ - "pdf", - "page-extraction", - "custom-naming", - "datatable", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Extract", - "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:49:34Z", - "status": "verified" - }, - "validate-required-pdf-form-fields": { - "title": "Validate Required PDF Form Fields with DataTable", - "filename": "validate-required-pdf-form-fields.cs", - "description": "Demonstrates checking that every required field in a PDF form has a matching column in a DataTable before importing data, and then fills the form using Aspose.Pdf.", + "fill-pdf-form-from-multiple-csv-worksheets": { + "title": "Fill PDF Form from Multiple CSV Worksheets using AutoFiller", + "filename": "fill-pdf-form-from-multiple-csv-worksheets.cs", + "description": "The example reads each CSV file as a worksheet, creates a DataTable, and uses Aspose.Pdf.Facades.AutoFiller to merge the data into a PDF form, generating a separate PDF for each worksheet.", "tags": [ "pdf", - "form", - "validation", - "datatable", - "aspose-pdf" + "autofiller", + "csv", + "datatables", + "form-fill" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.IsRequiredField", - "Aspose.Pdf.Facades.Form.FillField", - "Aspose.Pdf.Facades.Form.Save", - "Aspose.Pdf.Facades.Form.FieldNames" + "Aspose.Pdf.Facades.AutoFiller", + "Aspose.Pdf.Facades.AutoFiller.BindPdf", + "Aspose.Pdf.Facades.AutoFiller.ImportDataTable", + "Aspose.Pdf.Facades.AutoFiller.Save", + "Aspose.Pdf.Facades.AutoFiller.Dispose" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:49:34Z", "status": "verified" }, - "log-datatable-row-processing-pdf-page-creation": { - "title": "Log DataTable Row Processing and PDF Page Creation", - "filename": "log-datatable-row-processing-pdf-page-creation.cs", - "description": "Demonstrates creating a PDF template with form fields, filling it using AutoFiller from a DataTable, and logging each DataTable row processed together with the page numbers generated in the output PDF.", + "fill-pdf-form-using-autofiller-datatable": { + "title": "Fill PDF Form Using AutoFiller and DataTable", + "filename": "fill-pdf-form-using-autofiller-datatable.cs", + "description": "Demonstrates how to create a PDF template with AcroForm fields, populate a DataTable, and use Aspose.Pdf.Facades.AutoFiller to import the table and fill the form automatically.", "tags": [ - "pdf", "autofiller", - "logging", + "pdf-form", "datatable", - "form-fields" + "aspnet", + "fill-form" ], "apis_used": [ "Aspose.Pdf.Document", @@ -360,37 +475,50 @@ "generated_at": "2026-08-20T07:49:34Z", "status": "verified" }, - "apply-password-protection-to-filled-pdf": { - "title": "Apply Password Protection to a Filled PDF", - "filename": "apply-password-protection-to-filled-pdf.cs", - "description": "Shows how to load a filled PDF, save a temporary copy, and encrypt it with user and owner passwords using Aspose.Pdf's PdfFileSecurity facade.", + "fill-pdf-form-using-datatable-autofiller": { + "title": "Fill Pdf Form Using Datatable Autofiller", + "filename": "fill-pdf-form-using-datatable-autofiller.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "fill-pdf-form-verify-size": { + "title": "Fill PDF Form and Verify Output Size", + "filename": "fill-pdf-form-verify-size.cs", + "description": "Demonstrates using Aspose.Pdf.AutoFiller to populate a PDF form from a DataTable, creates a template if needed, and checks that the resulting PDF does not exceed a predefined size limit.", "tags": [ "pdf", - "encryption", - "password-protection", - "aspose.pdf", - "facade" + "form-filling", + "size-validation", + "aspose-pdf", + "autofiller" ], "apis_used": [ + "Aspose.Pdf.Facades.AutoFiller", + "Aspose.Pdf.Facades.AutoFiller.BindPdf", + "Aspose.Pdf.Facades.AutoFiller.ImportDataTable", + "Aspose.Pdf.Facades.AutoFiller.Save", "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfFileSecurity", - "Aspose.Pdf.Facades.PdfFileSecurity.EncryptFile", - "Aspose.Pdf.DocumentPrivilege", - "Aspose.Pdf.KeySize" + "Aspose.Pdf.Page", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:49:34Z", "status": "verified" }, - "merge-filled-pdfs-from-datatables": { - "title": "Merge Multiple Filled PDFs from DataTables into a Single PDF", - "filename": "merge-filled-pdfs-from-datatables.cs", - "description": "The example creates a PDF form template from a DataTable, fills separate PDFs for each DataTable using AutoFiller, and then concatenates the filled documents into one consolidated PDF.", + "fill-pdf-form-with-autofiller-exception-handling": { + "title": "Fill PDF Form Using AutoFiller with Exception Handling", + "filename": "fill-pdf-form-with-autofiller-exception-handling.cs", + "description": "Demonstrates binding a PDF template, importing data from a DataTable, and generating a filled PDF using Aspose.Pdf's AutoFiller while handling missing file and form field errors.", "tags": [ - "pdf", - "merge", - "autofill", - "datatable", + "autofiller", + "pdf-form", + "exception-handling", + "data-table", "aspose-pdf" ], "apis_used": [ @@ -398,306 +526,394 @@ "AutoFiller.BindPdf", "AutoFiller.ImportDataTable", "AutoFiller.Save", - "PdfFileEditor", - "PdfFileEditor.Concatenate", - "Document", - "TextBoxField" + "PdfException" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:49:34Z", "status": "verified" }, - "convert-in-memory-pdf-to-byte-array": { - "title": "Convert In-Memory PDF to Byte Array", - "filename": "convert-in-memory-pdf-to-byte-array.cs", - "description": "Creates a PDF document entirely in memory with Aspose.Pdf, saves it to a MemoryStream, and returns the raw byte array for sending over a web API without touching the file system.", + "fill-pdf-form-with-autofiller": { + "title": "Fill PDF Form Using AutoFiller with Custom DataTable Columns", + "filename": "fill-pdf-form-with-autofiller.cs", + "description": "Demonstrates how to create a DataTable, add required and custom columns, and use Aspose.Pdf.Facades.AutoFiller to bind a PDF template, import the data, and save the filled form.", "tags": [ "pdf", - "memory", - "byte-array", - "aspose-pdf", - "web-api" + "form-filling", + "autofiller", + "datatable", + "aspose" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.AutoFiller", + "Aspose.Pdf.Facades.AutoFiller.BindPdf", + "Aspose.Pdf.Facades.AutoFiller.ImportDataTable", + "Aspose.Pdf.Facades.AutoFiller.Save", + "Aspose.Pdf.Facades.AutoFiller.Close" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:49:34Z", "status": "verified" }, - "async-fill-pdf-form-from-data-table": { - "title": "Asynchronously Fill PDF Form from DataTable using Aspose AutoFiller", - "filename": "async-fill-pdf-form-from-data-table.cs", - "description": "Demonstrates creating a simple PDF template, building a DataTable, and using Aspose.Pdf.Facades.AutoFiller to populate form fields while performing all file reads and writes with asynchronous streams.", + "fill-pdf-form-with-autofiller__v2": { + "title": "Fill PDF Form Using AutoFiller and Dispose Resources", + "filename": "fill-pdf-form-with-autofiller__v2.cs", + "description": "Demonstrates creating a PDF form template, populating it from a DataTable with AutoFiller, and properly disposing the AutoFiller to release unmanaged resources.", "tags": [ - "async", "pdf", "form-filling", - "aspose", - "autofiller" + "autofiller", + "resource-management", + "aspnet" ], "apis_used": [ + "Aspose.Pdf.Facades.AutoFiller", "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Facades.AutoFiller.BindPdf", - "Aspose.Pdf.Facades.AutoFiller.ImportDataTable", - "Aspose.Pdf.Facades.AutoFiller.Save" + "Aspose.Pdf.Annotations.Border", + "Aspose.Pdf.Annotations.BorderStyle" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:49:34Z", "status": "verified" }, - "validate-filled-pdf-fields-against-datatable-values": { - "title": "Validate Filled PDF Fields Against DataTable Values", - "filename": "validate-filled-pdf-fields-against-datatable-values.cs", - "description": "Demonstrates filling a PDF form with AutoFiller using a DataTable, then reading the fields via the Form facade and asserting that each field matches the original DataTable values.", + "fill-pdf-form-with-datatable-exception-handling": { + "title": "Fill Pdf Form With Datatable Exception Handling", + "filename": "fill-pdf-form-with-datatable-exception-handling.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "fill-pdf-form-with-timeout": { + "title": "Fill PDF Form with Timeout Cancellation", + "filename": "fill-pdf-form-with-timeout.cs", + "description": "Shows how to fill a PDF form field using Aspose.Pdf's Form facade and abort the operation if it exceeds a specified timeout by employing a CancellationToken.", "tags": [ "pdf", - "form", - "autofiller", - "unittest", - "datatable" + "form-filling", + "cancellation", + "timeout", + "aspose" ], "apis_used": [ - "Aspose.Pdf.Facades.AutoFiller", - "Aspose.Pdf.Facades.AutoFiller.BindPdf", - "Aspose.Pdf.Facades.AutoFiller.ImportDataTable", - "Aspose.Pdf.Facades.AutoFiller.Save", "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.GetField" + "Aspose.Pdf.Facades.Form.BindPdf", + "Aspose.Pdf.Facades.Form.FillField", + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.SaveAsync" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:49:34Z", "status": "verified" }, - "retry-autofiller-import-transient-errors": { - "title": "Retry AutoFiller Import with Transient File Access Handling", - "filename": "retry-autofiller-import-transient-errors.cs", - "description": "Demonstrates using Aspose.Pdf's AutoFiller within a retry loop to handle transient I/O and access exceptions when binding a PDF template and importing a DataTable.", - "tags": [ - "autofiller", - "retry", - "pdf", - "data-import", - "exception-handling" - ], - "apis_used": [ - "Aspose.Pdf.Facades.AutoFiller", - "Aspose.Pdf.Facades.AutoFiller.BindPdf", - "Aspose.Pdf.Facades.AutoFiller.ImportDataTable", - "Aspose.Pdf.Facades.AutoFiller.Save" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:49:34Z", + "fill-pdf-from-multiple-csv-worksheets": { + "title": "Fill Pdf From Multiple Csv Worksheets", + "filename": "fill-pdf-from-multiple-csv-worksheets.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "pdf-page-identifier-summary-report": { - "title": "Generate PDF Page‑to‑Identifier Summary Report", - "filename": "pdf-page-identifier-summary-report.cs", - "description": "The example opens a PDF, extracts a table identifier from each page using TableAbsorber, falls back to a DataTable mapping, and writes a CSV that lists page numbers with their corresponding row identifiers.", + "filter-csv-and-fill-pdf-form": { + "title": "Filter Csv And Fill Pdf Form", + "filename": "filter-csv-and-fill-pdf-form.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "format-numeric-datatable-values-fill-pdf-form": { + "title": "Format Numeric DataTable Values and Fill PDF Form Fields", + "filename": "format-numeric-datatable-values-fill-pdf-form.cs", + "description": "Shows how to format numeric values from a DataTable (e.g., currency) as strings and populate them into PDF form fields using Aspose.Pdf's AutoFiller.", "tags": [ "pdf", - "summary", + "form-filling", "datatable", - "csv", - "tableabsorber" + "formatting", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TableAbsorber", - "Aspose.Pdf.Text.TableAbsorber.Visit", - "Aspose.Pdf.Text.TextFragment" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Facades.AutoFiller" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:49:34Z", "status": "verified" }, - "add-date-header-to-pdf-pages": { - "title": "Add Date Header to PDF Pages Using AutoFiller", - "filename": "add-date-header-to-pdf-pages.cs", - "description": "Shows how to create a PDF template, fill it with data via AutoFiller, and then prepend a header containing the current date on every generated page using PdfFileStamp.", - "tags": [ - "auto-filler", - "header", - "date", - "pdf", - "aspose-pdf" + "generate-datatable-and-use-formdataconverter": { + "title": "Generate Datatable And Use Formdataconverter", + "filename": "generate-datatable-and-use-formdataconverter.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "generate-pdf-pages-from-datatable-with-autofiller": { + "title": "Generate Pdf Pages From Datatable With Autofiller", + "filename": "generate-pdf-pages-from-datatable-with-autofiller.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "import-datatable-into-pdf-form-with-readonly-unique": { + "title": "Import DataTable with ReadOnly and Unique Columns into PDF Form", + "filename": "import-datatable-into-pdf-form-with-readonly-unique.cs", + "description": "Demonstrates how to configure DataColumn properties such as ReadOnly and Unique, create matching PDF form fields, and import the DataTable into the PDF using AutoFiller.", + "tags": [ + "DataTable", + "PDF form", + "ReadOnly", + "Unique", + "AutoFiller" ], "apis_used": [ - "Aspose.Pdf.Facades.AutoFiller", - "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.FormattedText", + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Annotations.Border" + "Aspose.Pdf.Forms.Border", + "Aspose.Pdf.Facades.AutoFiller", + "Aspose.Pdf.Facades.AutoFiller.BindPdf", + "Aspose.Pdf.Facades.AutoFiller.ImportDataTable", + "Aspose.Pdf.Facades.AutoFiller.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:49:34Z", "status": "verified" }, - "fill-pdf-form-from-csv-with-mapping": { - "title": "Fill PDF Form Fields from CSV Using Mapping Configuration", - "filename": "fill-pdf-form-from-csv-with-mapping.cs", - "description": "Demonstrates how to read a CSV file, map its column names to PDF form field names via a JSON configuration, and fill an Aspose.Pdf form for each data row.", + "load-csv-to-datatable-formdata-converter": { + "title": "Load CSV into DataTable and Use FormDataConverter for PDF Form Mapping", + "filename": "load-csv-to-datatable-formdata-converter.cs", + "description": "Shows how to read a CSV (as a replacement for an XLSX) into a DataTable and assign it to Aspose.Pdf.Facades.FormDataConverter for automatic PDF form filling.", "tags": [ - "pdf", - "form-filling", "csv", - "mapping", + "datatable", + "formdata", + "pdf", "aspose" ], "apis_used": [ - "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.BindPdf", - "Aspose.Pdf.Facades.Form.FillField", - "Aspose.Pdf.Facades.Form.Save", - "Aspose.Pdf.Facades.Form.Dispose" + "Aspose.Pdf.Facades.FormDataConverter" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:49:34Z", "status": "verified" }, - "batch-fill-pdf-forms-from-large-csv": { - "title": "Batch Fill PDF Forms from Large CSV using AutoFiller", - "filename": "batch-fill-pdf-forms-from-large-csv.cs", - "description": "The example streams rows from a large CSV (simulating an XLSX) in batches, builds a DataTable for each batch, and uses Aspose.Pdf.Facades.AutoFiller to populate a PDF template's form fields, generating individual PDFs without loading the entire dataset into memory.", + "log-datatable-row-processing-pdf-page-creation": { + "title": "Log DataTable Row Processing and PDF Page Creation", + "filename": "log-datatable-row-processing-pdf-page-creation.cs", + "description": "Demonstrates creating a PDF template with form fields, filling it using AutoFiller from a DataTable, and logging each DataTable row processed together with the page numbers generated in the output PDF.", "tags": [ - "auto-filler", - "pdf-forms", - "batch-processing", - "csv", - "streaming" + "pdf", + "autofiller", + "logging", + "datatable", + "form-fields" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Forms.TextBoxField", "Aspose.Pdf.Facades.AutoFiller", "Aspose.Pdf.Facades.AutoFiller.BindPdf", "Aspose.Pdf.Facades.AutoFiller.ImportDataTable", - "Aspose.Pdf.Facades.AutoFiller.Save", - "Aspose.Pdf.Document", - "Aspose.Pdf.TextBoxField", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Facades.AutoFiller.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:49:34Z", "status": "verified" }, - "fill-pdf-form-verify-size": { - "title": "Fill PDF Form and Verify Output Size", - "filename": "fill-pdf-form-verify-size.cs", - "description": "Demonstrates using Aspose.Pdf.AutoFiller to populate a PDF form from a DataTable, creates a template if needed, and checks that the resulting PDF does not exceed a predefined size limit.", + "map-datatable-columns-to-pdf-form-fields": { + "title": "Map DataTable Columns to PDF Form Fields with AutoFiller", + "filename": "map-datatable-columns-to-pdf-form-fields.cs", + "description": "Demonstrates renaming DataTable columns to match PDF form field identifiers and filling the PDF using Aspose.Pdf's AutoFiller.", "tags": [ - "pdf", - "form-filling", - "size-validation", - "aspose-pdf", - "autofiller" + "datatables", + "pdf-forms", + "autofiller", + "field-mapping", + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.AutoFiller", - "Aspose.Pdf.Facades.AutoFiller.BindPdf", - "Aspose.Pdf.Facades.AutoFiller.ImportDataTable", - "Aspose.Pdf.Facades.AutoFiller.Save", "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Annotations.Border", + "Aspose.Pdf.Annotations.BorderStyle", + "Aspose.Pdf.Facades.AutoFiller.BindPdf", + "Aspose.Pdf.Facades.AutoFiller.ImportDataTable", + "Aspose.Pdf.Facades.AutoFiller.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:49:34Z", "status": "verified" }, - "fill-pdf-form-from-csv-xlsx": { - "title": "Fill PDF Form from CSV/XLSX Using AutoFiller", - "filename": "fill-pdf-form-from-csv-xlsx.cs", - "description": "Shows how to read CSV (or CSV‑exported XLSX) data into a DataTable and use Aspose.Pdf.Facades.AutoFiller to bind a PDF template, import the data, and generate a filled PDF document.", + "merge-filled-pdf-forms-from-datatables": { + "title": "Merge Filled Pdf Forms From Datatables", + "filename": "merge-filled-pdf-forms-from-datatables.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "merge-filled-pdfs-from-datatables": { + "title": "Merge Multiple Filled PDFs from DataTables into a Single PDF", + "filename": "merge-filled-pdfs-from-datatables.cs", + "description": "The example creates a PDF form template from a DataTable, fills separate PDFs for each DataTable using AutoFiller, and then concatenates the filled documents into one consolidated PDF.", "tags": [ - "autofiller", - "pdf-form", - "csv", + "pdf", + "merge", + "autofill", "datatable", "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.AutoFiller", + "AutoFiller", "AutoFiller.BindPdf", "AutoFiller.ImportDataTable", - "AutoFiller.Save" + "AutoFiller.Save", + "PdfFileEditor", + "PdfFileEditor.Concatenate", + "Document", + "TextBoxField" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:49:34Z", "status": "verified" }, - "fill-pdf-form-with-timeout": { - "title": "Fill PDF Form with Timeout Cancellation", - "filename": "fill-pdf-form-with-timeout.cs", - "description": "Shows how to fill a PDF form field using Aspose.Pdf's Form facade and abort the operation if it exceeds a specified timeout by employing a CancellationToken.", + "pdf-one-page-per-datarow": { + "title": "Create PDF with One Page per DataTable Row", + "filename": "pdf-one-page-per-datarow.cs", + "description": "Shows how to generate a PDF where each row of a DataTable is placed on a separate page using Aspose.Pdf tables and pages.", "tags": [ "pdf", - "form-filling", - "cancellation", - "timeout", - "aspose" + "datatable", + "table", + "pages", + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.BindPdf", - "Aspose.Pdf.Facades.Form.FillField", "Aspose.Pdf.Document", - "Aspose.Pdf.Document.SaveAsync" + "Aspose.Pdf.Page", + "Aspose.Pdf.Table", + "Aspose.Pdf.Row", + "Aspose.Pdf.Cell", + "Aspose.Pdf.Text.TextFragment" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:49:34Z", "status": "verified" }, - "convert-large-pdf-to-excel-with-temp-folder": { - "title": "Convert Large PDF to Excel Using a Temporary Folder", - "filename": "convert-large-pdf-to-excel-with-temp-folder.cs", - "description": "Demonstrates how to convert a large PDF to Excel while using a temporary directory and disk buffering to avoid memory and disk‑space issues.", + "pdf-page-identifier-summary-report": { + "title": "Generate PDF Page‑to‑Identifier Summary Report", + "filename": "pdf-page-identifier-summary-report.cs", + "description": "The example opens a PDF, extracts a table identifier from each page using TableAbsorber, falls back to a DataTable mapping, and writes a CSV that lists page numbers with their corresponding row identifiers.", "tags": [ "pdf", - "excel", - "temp-folder", - "large-files", - "aspose-pdf" + "summary", + "datatable", + "csv", + "tableabsorber" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileEditor", "Aspose.Pdf.Document", - "Aspose.Pdf.PdfSaveOptions", - "Aspose.Pdf.ExcelSaveOptions", - "Aspose.Pdf.PdfSaveOptions.TempPath" + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TableAbsorber", + "Aspose.Pdf.Text.TableAbsorber.Visit", + "Aspose.Pdf.Text.TextFragment" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:49:34Z", "status": "verified" }, - "format-numeric-datatable-values-fill-pdf-form": { - "title": "Format Numeric DataTable Values and Fill PDF Form Fields", - "filename": "format-numeric-datatable-values-fill-pdf-form.cs", - "description": "Shows how to format numeric values from a DataTable (e.g., currency) as strings and populate them into PDF form fields using Aspose.Pdf's AutoFiller.", + "pdf-page-table-summary-report": { + "title": "Pdf Page Table Summary Report", + "filename": "pdf-page-table-summary-report.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "populate-pdf-form-fields-from-datatable": { + "title": "Populate Pdf Form Fields From Datatable", + "filename": "populate-pdf-form-fields-from-datatable.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "protect-pdf-with-password": { + "title": "Protect Pdf With Password", + "filename": "protect-pdf-with-password.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "retry-autofiller-import-transient-errors": { + "title": "Retry AutoFiller Import with Transient File Access Handling", + "filename": "retry-autofiller-import-transient-errors.cs", + "description": "Demonstrates using Aspose.Pdf's AutoFiller within a retry loop to handle transient I/O and access exceptions when binding a PDF template and importing a DataTable.", "tags": [ + "autofiller", + "retry", "pdf", - "form-filling", - "datatable", - "formatting", - "aspose-pdf" + "data-import", + "exception-handling" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Facades.AutoFiller" + "Aspose.Pdf.Facades.AutoFiller", + "Aspose.Pdf.Facades.AutoFiller.BindPdf", + "Aspose.Pdf.Facades.AutoFiller.ImportDataTable", + "Aspose.Pdf.Facades.AutoFiller.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:49:34Z", "status": "verified" }, + "retry-autofiller-import-transient-io": { + "title": "Retry Autofiller Import Transient Io", + "filename": "retry-autofiller-import-transient-io.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "save-filled-pdf-preserve-layout": { + "title": "Save Filled Pdf Preserve Layout", + "filename": "save-filled-pdf-preserve-layout.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "split-filled-pdf-into-single-page-pdfs": { "title": "Split Filled PDF into Single‑Page PDFs", "filename": "split-filled-pdf-into-single-page-pdfs.cs", @@ -717,23 +933,87 @@ "generated_at": "2026-08-20T07:49:34Z", "status": "verified" }, - "fill-pdf-form-from-csv": { - "title": "Fill PDF Form from CSV Data using Aspose.Pdf", - "filename": "fill-pdf-form-from-csv.cs", - "description": "Demonstrates loading data from a CSV file into a DataTable and using Aspose.Pdf.Facades.Form to fill matching fields in a PDF template and save the filled PDF.", + "split-pdf-custom-names": { + "title": "Split Pdf Custom Names", + "filename": "split-pdf-custom-names.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "stream-large-csv-data-into-pdf-forms": { + "title": "Stream Large Csv Data Into Pdf Forms", + "filename": "stream-large-csv-data-into-pdf-forms.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "validate-filled-pdf-fields-against-datatable-values": { + "title": "Validate Filled PDF Fields Against DataTable Values", + "filename": "validate-filled-pdf-fields-against-datatable-values.cs", + "description": "Demonstrates filling a PDF form with AutoFiller using a DataTable, then reading the fields via the Form facade and asserting that each field matches the original DataTable values.", "tags": [ "pdf", - "form-filling", - "csv", - "aspose.pdf", - "facades" + "form", + "autofiller", + "unittest", + "datatable" ], "apis_used": [ + "Aspose.Pdf.Facades.AutoFiller", + "Aspose.Pdf.Facades.AutoFiller.BindPdf", + "Aspose.Pdf.Facades.AutoFiller.ImportDataTable", + "Aspose.Pdf.Facades.AutoFiller.Save", "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form..ctor", + "Aspose.Pdf.Facades.Form.GetField" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:49:34Z", + "status": "verified" + }, + "validate-filled-pdf-fields-against-datatable": { + "title": "Validate Filled Pdf Fields Against Datatable", + "filename": "validate-filled-pdf-fields-against-datatable.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "validate-pdf-size-after-filling-form": { + "title": "Validate Pdf Size After Filling Form", + "filename": "validate-pdf-size-after-filling-form.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "validate-required-pdf-form-fields": { + "title": "Validate Required PDF Form Fields with DataTable", + "filename": "validate-required-pdf-form-fields.cs", + "description": "Demonstrates checking that every required field in a PDF form has a matching column in a DataTable before importing data, and then fills the form using Aspose.Pdf.", + "tags": [ + "pdf", + "form", + "validation", + "datatable", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.Form.IsRequiredField", "Aspose.Pdf.Facades.Form.FillField", "Aspose.Pdf.Facades.Form.Save", - "Aspose.Pdf.Facades.Form.Dispose" + "Aspose.Pdf.Facades.Form.FieldNames" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:49:34Z", diff --git a/facades-forms/AGENTS.md b/facades-forms/AGENTS.md index bb5972145..d150664f9 100644 --- a/facades-forms/AGENTS.md +++ b/facades-forms/AGENTS.md @@ -8,7 +8,7 @@ parent: ../agents.md # AGENTS - facades-forms -> **Facades forms** in PDF using C# / .NET -- **86** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. +> **Facades forms** in PDF using C# / .NET -- **132** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. ## Persona @@ -23,31 +23,19 @@ See the root [agents.md](../agents.md) for repository-wide conventions and bound ## Required Namespaces -- `using Aspose.Pdf.Facades;` (81/86 files) ← category-specific -- `using Aspose.Pdf;` (52/86 files) ← category-specific -- `using Aspose.Pdf.Forms;` (27/86 files) -- `using Aspose.Pdf.Annotations;` (7/86 files) -- `using Aspose.Pdf.Text;` (1/86 files) -- `using System;` (86/86 files) -- `using System.IO;` (79/86 files) -- `using System.Collections.Generic;` (8/86 files) -- `using System.Drawing;` (4/86 files) -- `using System.Text.Json;` (3/86 files) -- `using System.Linq;` (2/86 files) -- `using System.Security.Cryptography;` (1/86 files) -- `using System.Text;` (1/86 files) - -## Common Code Pattern - -Most files follow this pattern: - -```csharp -using (Document doc = new Document("input.pdf")) -{ - // ... operations ... - doc.Save("output.pdf"); -} -``` +- `using Aspose.Pdf.Facades;` (81/132 files) ← category-specific +- `using Aspose.Pdf;` (52/132 files) +- `using Aspose.Pdf.Forms;` (27/132 files) +- `using Aspose.Pdf.Annotations;` (7/132 files) +- `using Aspose.Pdf.Text;` (1/132 files) +- `using System;` (86/132 files) +- `using System.IO;` (79/132 files) +- `using System.Collections.Generic;` (8/132 files) +- `using System.Drawing;` (4/132 files) +- `using System.Text.Json;` (3/132 files) +- `using System.Linq;` (2/132 files) +- `using System.Security.Cryptography;` (1/132 files) +- `using System.Text;` (1/132 files) ## Files in this folder @@ -56,37 +44,37 @@ using (Document doc = new Document("input.pdf")) | [add-confirmation-dialog-to-pdf-submit-button](./add-confirmation-dialog-to-pdf-submit-button.cs) | Add Confirmation Dialog to PDF Submit Button | `FormEditor`, `BindPdf`, `AddFieldScript` | Shows how to use Aspose.Pdf.Facades.FormEditor to attach JavaScript that displays a confirmation ... | | [add-digital-signature-field-and-sign-pdf](./add-digital-signature-field-and-sign-pdf.cs) | Add Digital Signature Field and Sign PDF | `Document`, `FormEditor`, `PdfFileSignature` | Shows how to add a visible signature field to a PDF page and apply a digital signature using Aspo... | | [add-email-validation-javascript-to-pdf-form-field](./add-email-validation-javascript-to-pdf-form-field.cs) | Add Email Validation JavaScript to PDF Form Field | `FormEditor`, `BindPdf`, `Save` | Demonstrates how to attach a JavaScript action to the "Email" form field that validates the email... | +| [add-email-validation-script-to-pdf-form-field](./add-email-validation-script-to-pdf-form-field.cs) | Add email validation script to pdf form field | | Add email validation script to pdf form field | | [add-email-validation-to-pdf-form-field](./add-email-validation-to-pdf-form-field.cs) | Add Email Validation to PDF Form Field | `Document`, `FormEditor`, `SetFieldScript` | Demonstrates how to attach JavaScript to a PDF form field using Aspose.Pdf to validate email addr... | | [add-form-load-javascript-to-pdf](./add-form-load-javascript-to-pdf.cs) | Add Form Load JavaScript to PDF | `PdfContentEditor`, `BindPdf`, `AddDocumentAdditionalAction` | Demonstrates how to attach a document‑level JavaScript action that populates a form field named "... | +| [add-gender-radio-button-group-to-pdf](./add-gender-radio-button-group-to-pdf.cs) | Add gender radio button group to pdf | | Add gender radio button group to pdf | | [add-gender-radio-button-group](./add-gender-radio-button-group.cs) | Add Gender Radio Button Group to PDF Form | `FormEditor`, `BindPdf`, `AddField` | Shows how to insert a radio button group named "Gender" with options Male, Female, and Other, and... | | [add-hidden-authtoken-field-to-pdf](./add-hidden-authtoken-field-to-pdf.cs) | Add Hidden AuthToken Field to PDF | `Document`, `TextBoxField`, `Rectangle` | Generates a secure random token, creates a zero‑size hidden TextBoxField named AuthToken, adds it... | +| [add-hidden-numeric-version-field](./add-hidden-numeric-version-field.cs) | Add hidden numeric version field | | Add hidden numeric version field | +| [add-hidden-sessionid-field-to-pdfs](./add-hidden-sessionid-field-to-pdfs.cs) | Add hidden sessionid field to pdfs | | Add hidden sessionid field to pdfs | | [add-hidden-version-field-to-pdf](./add-hidden-version-field-to-pdf.cs) | Add Hidden Version Field to PDF | `Document`, `FormEditor`, `BindPdf` | Shows how to insert a hidden numeric field named "Version" with a value of 2 into a PDF using Asp... | +| [add-input-mask-to-pdf-form-field](./add-input-mask-to-pdf-form-field.cs) | Add input mask to pdf form field | | Add input mask to pdf form field | | [add-javascript-alert-to-push-button](./add-javascript-alert-to-push-button.cs) | Add JavaScript Alert to Push Button in PDF | `Document`, `Page`, `Rectangle` | Shows how to create a PDF with a push‑button field and attach a JavaScript alert that displays wh... | +| [add-javascript-to-quantity-field-total-price](./add-javascript-to-quantity-field-total-price.cs) | Add javascript to quantity field total price | | Add javascript to quantity field total price | | [add-list-box-field-to-pdf-form](./add-list-box-field-to-pdf-form.cs) | Add List Box Field to PDF Form | `FormEditor`, `BindPdf`, `AddField` | Demonstrates how to create a ListBox form field in a PDF, populate it with items, set a default v... | +| [add-list-item-to-dropdown-field](./add-list-item-to-dropdown-field.cs) | Add list item to dropdown field | | Add list item to dropdown field | | [add-list-item-to-pdf-dropdown](./add-list-item-to-pdf-dropdown.cs) | Add List Item to PDF Dropdown Field | `FormEditor`, `AddListItem`, `Save` | Shows how to add a new option to a combo box (dropdown) form field in a PDF using Aspose.Pdf.Faca... | | [add-print-button-to-pdf](./add-print-button-to-pdf.cs) | Add Print Button to PDF Using Aspose.Pdf | `FormEditor`, `BindPdf`, `AddField` | Shows how to insert a push‑button form field that triggers the PDF print dialog via JavaScript in... | +| [add-print-dialog-button-to-pdf](./add-print-dialog-button-to-pdf.cs) | Add print dialog button to pdf | | Add print dialog button to pdf | | [add-radio-button-group-to-pdf-form](./add-radio-button-group-to-pdf-form.cs) | Add Radio Button Group to PDF Form | `FormEditor`, `AddField`, `Save` | Shows how to create a radio button group named "PaymentMethod" with options "Credit" and "PayPal"... | | [add-reset-form-button-to-pdf](./add-reset-form-button-to-pdf.cs) | Add Reset Form Button to PDF | `Document`, `FormEditor`, `AddField` | Demonstrates how to insert a push button into a PDF that clears all form fields when clicked, usi... | +| [add-state-combo-box-to-pdf-form](./add-state-combo-box-to-pdf-form.cs) | Add state combo box to pdf form | | Add state combo box to pdf form | | [add-state-combobox-to-pdf](./add-state-combobox-to-pdf.cs) | Add State Combo Box to PDF Form | `FormEditor`, `FieldType`, `AddField` | Shows how to insert a combo box field named "State" into an existing PDF and fill it with US stat... | | [add-submit-button-to-pdf-form](./add-submit-button-to-pdf-form.cs) | Add Submit Button to PDF Form | `FormEditor`, `AddSubmitBtn`, `Save` | Shows how to insert a submit button on page 1 of a PDF form that posts the form data to a specifi... | | [add-text-field-to-pdf-page](./add-text-field-to-pdf-page.cs) | Add Text Field to PDF Page | `FormEditor`, `BindPdf`, `AddField` | Shows how to insert a text form field named "CustomerName" on page 1 of an existing PDF using Asp... | +| [add-unchecked-checkbox-field-to-pdf-page](./add-unchecked-checkbox-field-to-pdf-page.cs) | Add unchecked checkbox field to pdf page | | Add unchecked checkbox field to pdf page | | [add-unchecked-checkbox-field-to-pdf](./add-unchecked-checkbox-field-to-pdf.cs) | Add Unchecked Checkbox Field to PDF Page | `Document`, `FormEditor`, `AddField` | Demonstrates how to insert a checkbox form field on a specific PDF page and set its default state... | +| [apply-consistent-decoration-to-checkbox-fields](./apply-consistent-decoration-to-checkbox-fields.cs) | Apply consistent decoration to checkbox fields | | Apply consistent decoration to checkbox fields | | [apply-custom-font-to-pdf-form-text-fields](./apply-custom-font-to-pdf-form-text-fields.cs) | Apply Custom Font to All PDF Form Text Fields | `FormEditor`, `FormFieldFacade`, `FieldType` | Demonstrates how to set a custom font (e.g., Arial Bold) for every text field in a PDF form using... | -| [apply-default-decoration-to-text-fields](./apply-default-decoration-to-text-fields.cs) | Apply Default Decoration to All Text Form Fields | `FormEditor`, `FormFieldFacade`, `FieldType` | Shows how to set default visual attributes via FormFieldFacade and apply them to every text field... | -| [apply-phone-number-input-mask](./apply-phone-number-input-mask.cs) | Apply Phone Number Input Mask to PDF Form Field | `FormEditor`, `SetFieldScript`, `Save` | Demonstrates how to attach JavaScript to a PDF form field using Aspose.Pdf to enforce a phone num... | -| [attach-javascript-clear-discountcode-field](./attach-javascript-clear-discountcode-field.cs) | Clear PDF Form Field on Focus with JavaScript | `Document`, `Field`, `JavascriptAction` | Demonstrates how to attach a JavaScript action to a PDF form field using Aspose.Pdf so that the f... | -| [attach-javascript-to-pdf-form-field](./attach-javascript-to-pdf-form-field.cs) | Attach JavaScript to PDF Form Field for Auto-Calculating Tot... | `Document`, `Form`, `FormField` | Shows how to load a PDF, retrieve the Quantity and TotalPrice form fields, attach a JavaScript On... | -| [attach-javascript-validation-to-pdf-form-field](./attach-javascript-validation-to-pdf-form-field.cs) | Attach JavaScript Validation to PDF Form Field | `FormEditor`, `BindPdf`, `SetFieldScript` | Shows how to bind a PDF, add a JavaScript script to the "Age" form field that displays a warning ... | -| [attach-js-resetform-clear-hidden-fields](./attach-js-resetform-clear-hidden-fields.cs) | Attach JavaScript to ResetForm Button to Clear Hidden Fields | `FormEditor`, `BindPdf`, `AddFieldScript` | Shows how to bind a PDF with Aspose.Pdf.Facades.FormEditor, add JavaScript to a ResetForm button ... | -| [attach-js-validation-to-pdf-submit-button](./attach-js-validation-to-pdf-submit-button.cs) | Attach JavaScript Validation to PDF Submit Button | `FormEditor`, `BindPdf`, `AddFieldScript` | Shows how to use Aspose.Pdf.Facades.FormEditor to add a JavaScript script to a PDF submit button ... | -| [batch-add-selectall-checkbox-to-pdf](./batch-add-selectall-checkbox-to-pdf.cs) | Batch Add SelectAll Checkbox to First Page of PDFs | `FormEditor`, `BindPdf`, `AddField` | Shows how to process multiple PDF files in a directory and use Aspose.Pdf.Facades.FormEditor to a... | -| [batch-rename-pdf-form-fields](./batch-rename-pdf-form-fields.cs) | Batch Rename PDF Form Fields | `Form`, `FormEditor`, `RenameField` | Demonstrates how to rename all form fields in a PDF that start with a specific prefix using Aspos... | -| [batch-update-submit-button-urls](./batch-update-submit-button-urls.cs) | Batch Update Submit Button URLs in PDFs | `Form`, `FormEditor`, `FormSubmitButtonNames` | Demonstrates how to iterate through a folder of PDF files, detect submit buttons in each form, an... | -| [clear-and-populate-list-box-field](./clear-and-populate-list-box-field.cs) | Clear and Populate List Box Field in PDF | `Document`, `ListBoxField`, `Options` | Demonstrates how to remove all existing options from a PDF list box (combo) field and then add ne... | -| ... | | | *and 56 more files* | +| ... | | | *and 102 more files* | ## Category Statistics -- Total examples: 86 +- Total examples: 132 ## Category-Specific Tips @@ -130,5 +118,5 @@ using (Document doc = new Document("input.pdf")) - Review code examples in this folder for facades-forms patterns -Updated: 2026-08-20 | Run: `20260820_001147_12d7b3` +Updated: 2026-09-10 | Run: `20260910_054408_87a7f4` diff --git a/facades-forms/README.md b/facades-forms/README.md new file mode 100644 index 000000000..0e0da3f29 --- /dev/null +++ b/facades-forms/README.md @@ -0,0 +1,151 @@ +# Facades forms + +> **Facades forms** in PDF using C# / .NET -- **132** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. + +- Category: `facades-forms` +- Examples: 132 +- NuGet: `Aspose.PDF 26.8.0` -- target `net10.0` + +## Examples + +- [`add-confirmation-dialog-to-pdf-submit-button.cs`](./add-confirmation-dialog-to-pdf-submit-button.cs) -- Add confirmation dialog to pdf submit button +- [`add-digital-signature-field-and-sign-pdf.cs`](./add-digital-signature-field-and-sign-pdf.cs) -- Add digital signature field and sign pdf +- [`add-email-validation-javascript-to-pdf-form-field.cs`](./add-email-validation-javascript-to-pdf-form-field.cs) -- Add email validation javascript to pdf form field +- [`add-email-validation-script-to-pdf-form-field.cs`](./add-email-validation-script-to-pdf-form-field.cs) -- Add email validation script to pdf form field +- [`add-email-validation-to-pdf-form-field.cs`](./add-email-validation-to-pdf-form-field.cs) -- Add email validation to pdf form field +- [`add-form-load-javascript-to-pdf.cs`](./add-form-load-javascript-to-pdf.cs) -- Add form load javascript to pdf +- [`add-gender-radio-button-group-to-pdf.cs`](./add-gender-radio-button-group-to-pdf.cs) -- Add gender radio button group to pdf +- [`add-gender-radio-button-group.cs`](./add-gender-radio-button-group.cs) -- Add gender radio button group +- [`add-hidden-authtoken-field-to-pdf.cs`](./add-hidden-authtoken-field-to-pdf.cs) -- Add hidden authtoken field to pdf +- [`add-hidden-numeric-version-field.cs`](./add-hidden-numeric-version-field.cs) -- Add hidden numeric version field +- [`add-hidden-sessionid-field-to-pdfs.cs`](./add-hidden-sessionid-field-to-pdfs.cs) -- Add hidden sessionid field to pdfs +- [`add-hidden-version-field-to-pdf.cs`](./add-hidden-version-field-to-pdf.cs) -- Add hidden version field to pdf +- [`add-input-mask-to-pdf-form-field.cs`](./add-input-mask-to-pdf-form-field.cs) -- Add input mask to pdf form field +- [`add-javascript-alert-to-push-button.cs`](./add-javascript-alert-to-push-button.cs) -- Add javascript alert to push button +- [`add-javascript-to-quantity-field-total-price.cs`](./add-javascript-to-quantity-field-total-price.cs) -- Add javascript to quantity field total price +- [`add-list-box-field-to-pdf-form.cs`](./add-list-box-field-to-pdf-form.cs) -- Add list box field to pdf form +- [`add-list-item-to-dropdown-field.cs`](./add-list-item-to-dropdown-field.cs) -- Add list item to dropdown field +- [`add-list-item-to-pdf-dropdown.cs`](./add-list-item-to-pdf-dropdown.cs) -- Add list item to pdf dropdown +- [`add-print-button-to-pdf.cs`](./add-print-button-to-pdf.cs) -- Add print button to pdf +- [`add-print-dialog-button-to-pdf.cs`](./add-print-dialog-button-to-pdf.cs) -- Add print dialog button to pdf +- [`add-radio-button-group-to-pdf-form.cs`](./add-radio-button-group-to-pdf-form.cs) -- Add radio button group to pdf form +- [`add-reset-form-button-to-pdf.cs`](./add-reset-form-button-to-pdf.cs) -- Add reset form button to pdf +- [`add-state-combo-box-to-pdf-form.cs`](./add-state-combo-box-to-pdf-form.cs) -- Add state combo box to pdf form +- [`add-state-combobox-to-pdf.cs`](./add-state-combobox-to-pdf.cs) -- Add state combobox to pdf +- [`add-submit-button-to-pdf-form.cs`](./add-submit-button-to-pdf-form.cs) -- Add submit button to pdf form +- [`add-text-field-to-pdf-page.cs`](./add-text-field-to-pdf-page.cs) -- Add text field to pdf page +- [`add-unchecked-checkbox-field-to-pdf-page.cs`](./add-unchecked-checkbox-field-to-pdf-page.cs) -- Add unchecked checkbox field to pdf page +- [`add-unchecked-checkbox-field-to-pdf.cs`](./add-unchecked-checkbox-field-to-pdf.cs) -- Add unchecked checkbox field to pdf +- [`apply-consistent-decoration-to-checkbox-fields.cs`](./apply-consistent-decoration-to-checkbox-fields.cs) -- Apply consistent decoration to checkbox fields +- [`apply-custom-font-to-pdf-form-text-fields.cs`](./apply-custom-font-to-pdf-form-text-fields.cs) -- Apply custom font to pdf form text fields +- [`apply-default-decoration-to-text-fields.cs`](./apply-default-decoration-to-text-fields.cs) -- Apply default decoration to text fields +- [`apply-phone-number-input-mask.cs`](./apply-phone-number-input-mask.cs) -- Apply phone number input mask +- [`attach-confirmation-js-to-pdf-submit-button.cs`](./attach-confirmation-js-to-pdf-submit-button.cs) -- Attach confirmation js to pdf submit button +- [`attach-javascript-alert-to-pdf-push-button.cs`](./attach-javascript-alert-to-pdf-push-button.cs) -- Attach javascript alert to pdf push button +- [`attach-javascript-clear-discountcode-field.cs`](./attach-javascript-clear-discountcode-field.cs) -- Attach javascript clear discountcode field +- [`attach-javascript-to-pdf-form-field.cs`](./attach-javascript-to-pdf-form-field.cs) -- Attach javascript to pdf form field +- [`attach-javascript-to-resetform-that-also-clears-hidden-fields-during-reset.cs`](./attach-javascript-to-resetform-that-also-clears-hidden-fields-during-reset.cs) -- Attach javascript to resetform that also clears hidden fields during reset +- [`attach-javascript-validation-to-pdf-form-field.cs`](./attach-javascript-validation-to-pdf-form-field.cs) -- Attach javascript validation to pdf form field +- [`attach-js-resetform-clear-hidden-fields.cs`](./attach-js-resetform-clear-hidden-fields.cs) -- Attach js resetform clear hidden fields +- [`attach-js-validation-to-pdf-submit-button.cs`](./attach-js-validation-to-pdf-submit-button.cs) -- Attach js validation to pdf submit button +- [`batch-add-hidden-processeddate-field.cs`](./batch-add-hidden-processeddate-field.cs) -- Batch add hidden processeddate field +- [`batch-add-selectall-checkbox-to-pdf.cs`](./batch-add-selectall-checkbox-to-pdf.cs) -- Batch add selectall checkbox to pdf +- [`batch-rename-pdf-form-fields.cs`](./batch-rename-pdf-form-fields.cs) -- Batch rename pdf form fields +- [`batch-update-submit-button-urls.cs`](./batch-update-submit-button-urls.cs) -- Batch update submit button urls +- [`clear-and-populate-dropdown-list.cs`](./clear-and-populate-dropdown-list.cs) -- Clear and populate dropdown list +- [`clear-and-populate-list-box-field.cs`](./clear-and-populate-list-box-field.cs) -- Clear and populate list box field +- [`clear-pdf-form-field-on-focus.cs`](./clear-pdf-form-field-on-focus.cs) -- Clear pdf form field on focus +- [`clone-form-field-to-page-5.cs`](./clone-form-field-to-page-5.cs) -- Clone form field to page 5 +- [`convert-single-line-to-multi-line-address-field.cs`](./convert-single-line-to-multi-line-address-field.cs) -- Convert single line to multi line address field +- [`convert-single-line-to-multiline-word-wrap.cs`](./convert-single-line-to-multiline-word-wrap.cs) -- Convert single line to multiline word wrap +- [`copy-field-content-between-pdf-form-fields.cs`](./copy-field-content-between-pdf-form-fields.cs) -- Copy field content between pdf form fields +- [`copy-form-field-definitions-to-pdf.cs`](./copy-form-field-definitions-to-pdf.cs) -- Copy form field definitions to pdf +- [`copy-form-field-to-another-page.cs`](./copy-form-field-to-another-page.cs) -- Copy form field to another page +- [`copy-form-field-to-new-field-on-page.cs`](./copy-form-field-to-new-field-on-page.cs) -- Copy form field to new field on page +- [`copy-form-fields-from-template-to-pdf.cs`](./copy-form-fields-from-template-to-pdf.cs) -- Copy form fields from template to pdf +- [`copy-image-field-to-another-field.cs`](./copy-image-field-to-another-field.cs) -- Copy image field to another field +- [`copy-image-form-field-to-another.cs`](./copy-image-form-field-to-another.cs) -- Copy image form field to another +- [`copy-notes-to-summary.cs`](./copy-notes-to-summary.cs) -- Copy notes to summary +- [`copy-pdf-form-field-content.cs`](./copy-pdf-form-field-content.cs) -- Copy pdf form field content +- [`copy-rename-pdf-form-field.cs`](./copy-rename-pdf-form-field.cs) -- Copy rename pdf form field +- [`create-pdf-form-fields-from-json.cs`](./create-pdf-form-fields-from-json.cs) -- Create pdf form fields from json +- [`decorate-checkbox-fields-in-pdfs.cs`](./decorate-checkbox-fields-in-pdfs.cs) -- Decorate checkbox fields in pdfs +- [`decorate-list-box-fields.cs`](./decorate-list-box-fields.cs) -- Decorate list box fields +- [`decorate-list-fields-uniform-border.cs`](./decorate-list-fields-uniform-border.cs) -- Decorate list fields uniform border +- [`decorate-pdf-form-field-appearance.cs`](./decorate-pdf-form-field-appearance.cs) -- Decorate pdf form field appearance +- [`decorate-pdf-form-field-background-image.cs`](./decorate-pdf-form-field-background-image.cs) -- Decorate pdf form field background image +- [`decorate-pdf-form-field-with-header-image.cs`](./decorate-pdf-form-field-with-header-image.cs) -- Decorate pdf form field with header image +- [`duplicate-pdf-form-field.cs`](./duplicate-pdf-form-field.cs) -- Duplicate pdf form field +- [`enable-rich-text-formatting-for-pdf-form-field.cs`](./enable-rich-text-formatting-for-pdf-form-field.cs) -- Enable rich text formatting for pdf form field +- [`export-checkbox-fields-to-fdf.cs`](./export-checkbox-fields-to-fdf.cs) -- Export checkbox fields to fdf +- [`export-checkboxes-to-fdf.cs`](./export-checkboxes-to-fdf.cs) -- Export checkboxes to fdf +- [`export-import-pdf-form-fields-xml.cs`](./export-import-pdf-form-fields-xml.cs) -- Export import pdf form fields xml +- [`export-import-pdf-form-xml.cs`](./export-import-pdf-form-xml.cs) -- Export import pdf form xml +- [`export-pdf-form-field-layout-to-json.cs`](./export-pdf-form-field-layout-to-json.cs) -- Export pdf form field layout to json +- [`export-pdf-form-fields-to-fdf.cs`](./export-pdf-form-fields-to-fdf.cs) -- Export pdf form fields to fdf +- [`export-pdf-form-fields-to-json.cs`](./export-pdf-form-fields-to-json.cs) -- Export pdf form fields to json +- [`hide-form-field-exportable.cs`](./hide-form-field-exportable.cs) -- Hide form field exportable +- [`import-checkboxes-from-fdf.cs`](./import-checkboxes-from-fdf.cs) -- Import checkboxes from fdf +- [`import-form-field-layout-from-json.cs`](./import-form-field-layout-from-json.cs) -- Import form field layout from json +- [`import-pdf-form-fields-from-xml-preserve-order.cs`](./import-pdf-form-fields-from-xml-preserve-order.cs) -- Import pdf form fields from xml preserve order +- [`import-pdf-form-fields-from-xml.cs`](./import-pdf-form-fields-from-xml.cs) -- Import pdf form fields from xml +- [`import-pdf-form-layout-from-json.cs`](./import-pdf-form-layout-from-json.cs) -- Import pdf form layout from json +- [`import-xfdf-data-into-pdf-form-fields.cs`](./import-xfdf-data-into-pdf-form-fields.cs) -- Import xfdf data into pdf form fields +- [`import-xfdf-data-into-pdf-form.cs`](./import-xfdf-data-into-pdf-form.cs) -- Import xfdf data into pdf form +- [`make-taxrate-readonly-add-js.cs`](./make-taxrate-readonly-add-js.cs) -- Make taxrate readonly add js +- [`mark-pdf-form-field-required.cs`](./mark-pdf-form-field-required.cs) -- Mark pdf form field required +- [`merge-pdf-forms-unique-field-names.cs`](./merge-pdf-forms-unique-field-names.cs) -- Merge pdf forms unique field names +- [`merge-pdfs-unique-form-fields.cs`](./merge-pdfs-unique-form-fields.cs) -- Merge pdfs unique form fields +- [`move-footernote-to-bottom-margin.cs`](./move-footernote-to-bottom-margin.cs) -- Move footernote to bottom margin +- [`move-form-field-to-bottom-margin.cs`](./move-form-field-to-bottom-margin.cs) -- Move form field to bottom margin +- [`move-pdf-form-field-to-top-left.cs`](./move-pdf-form-field-to-top-left.cs) -- Move pdf form field to top left +- [`move-pdf-form-field.cs`](./move-pdf-form-field.cs) -- Move pdf form field +- [`move-pdf-form-fields-by-offset.cs`](./move-pdf-form-fields-by-offset.cs) -- Move pdf form fields by offset +- [`move-pdf-form-fields-page-2.cs`](./move-pdf-form-fields-page-2.cs) -- Move pdf form fields page 2 +- [`move-signature-field-to-lower-right-corner-page-5.cs`](./move-signature-field-to-lower-right-corner-page-5.cs) -- Move signature field to lower right corner page 5 +- [`move-signature-field-to-lower-right-corner.cs`](./move-signature-field-to-lower-right-corner.cs) -- Move signature field to lower right corner +- [`populate-country-list-box-pdf.cs`](./populate-country-list-box-pdf.cs) -- Populate country list box pdf +- [`populate-pdf-listbox-with-country-names.cs`](./populate-pdf-listbox-with-country-names.cs) -- Populate pdf listbox with country names +- [`remove-button-fields-from-pdf-form.cs`](./remove-button-fields-from-pdf-form.cs) -- Remove button fields from pdf form +- [`remove-empty-pdf-form-field.cs`](./remove-empty-pdf-form-field.cs) -- Remove empty pdf form field +- [`remove-form-field-from-pdf.cs`](./remove-form-field-from-pdf.cs) -- Remove form field from pdf +- [`remove-list-item-from-pdf-form-field.cs`](./remove-list-item-from-pdf-form-field.cs) -- Remove list item from pdf form field +- [`remove-list-item-from-pdf-form.cs`](./remove-list-item-from-pdf-form.cs) -- Remove list item from pdf form +- [`remove-non-whitelisted-items-from-pdf-combo-box.cs`](./remove-non-whitelisted-items-from-pdf-combo-box.cs) -- Remove non whitelisted items from pdf combo box +- [`remove-pdf-form-field.cs`](./remove-pdf-form-field.cs) -- Remove pdf form field +- [`remove-temporary-form-fields-from-pdf.cs`](./remove-temporary-form-fields-from-pdf.cs) -- Remove temporary form fields from pdf +- [`rename-pdf-form-field.cs`](./rename-pdf-form-field.cs) -- Rename pdf form field +- [`rename-pdf-form-fields-csv-mapping.cs`](./rename-pdf-form-fields-csv-mapping.cs) -- Rename pdf form fields csv mapping +- [`rename-pdf-form-fields-from-csv.cs`](./rename-pdf-form-fields-from-csv.cs) -- Rename pdf form fields from csv +- [`rename-pdf-form-fields-to-camelcase.cs`](./rename-pdf-form-fields-to-camelcase.cs) -- Rename pdf form fields to camelcase +- [`restrict-pdf-form-field-to-integer-0-100.cs`](./restrict-pdf-form-field-to-integer-0-100.cs) -- Restrict pdf form field to integer 0 100 +- [`restrict-pdf-form-field-to-integer-range.cs`](./restrict-pdf-form-field-to-integer-range.cs) -- Restrict pdf form field to integer range +- [`set-custom-attribute-on-pdf-form-field.cs`](./set-custom-attribute-on-pdf-form-field.cs) -- Set custom attribute on pdf form field +- [`set-custom-image-background-for-signature-field.cs`](./set-custom-image-background-for-signature-field.cs) -- Set custom image background for signature field +- [`set-date-field-format-in-pdf.cs`](./set-date-field-format-in-pdf.cs) -- Set date field format in pdf +- [`set-date-field-format.cs`](./set-date-field-format.cs) -- Set date field format +- [`set-field-appearance-format-price.cs`](./set-field-appearance-format-price.cs) -- Set field appearance format price +- [`set-form-field-alignment-to-center.cs`](./set-form-field-alignment-to-center.cs) -- Set form field alignment to center +- [`set-form-field-background-color.cs`](./set-form-field-background-color.cs) -- Set form field background color +- [`set-form-field-readonly-currency-appearance.cs`](./set-form-field-readonly-currency-appearance.cs) -- Set form field readonly currency appearance +- [`set-numeric-limit-for-pdf-form-field.cs`](./set-numeric-limit-for-pdf-form-field.cs) -- Set numeric limit for pdf form field +- [`set-numeric-two-decimal-validation.cs`](./set-numeric-two-decimal-validation.cs) -- Set numeric two decimal validation +- [`set-numeric-validation-two-decimal-discount.cs`](./set-numeric-validation-two-decimal-discount.cs) -- Set numeric validation two decimal discount +- [`set-pdf-form-field-attribute.cs`](./set-pdf-form-field-attribute.cs) -- Set pdf form field attribute +- [`set-pdf-form-field-hidden-exportable.cs`](./set-pdf-form-field-hidden-exportable.cs) -- Set pdf form field hidden exportable +- [`set-pdf-form-field-required.cs`](./set-pdf-form-field-required.cs) -- Set pdf form field required +- [`set-phone-number-field-limit.cs`](./set-phone-number-field-limit.cs) -- Set phone number field limit +- [`set-rich-text-appearance-for-pdf-form-field.cs`](./set-rich-text-appearance-for-pdf-form-field.cs) -- Set rich text appearance for pdf form field +- [`set-signature-field-border-width.cs`](./set-signature-field-border-width.cs) -- Set signature field border width +- [`set-taxrate-readonly-calc-js.cs`](./set-taxrate-readonly-calc-js.cs) -- Set taxrate readonly calc js +- [`set-text-field-multiline.cs`](./set-text-field-multiline.cs) -- Set text field multiline +- [`set-text-field-to-multiline.cs`](./set-text-field-to-multiline.cs) -- Set text field to multiline + +## See Also + +- [`AGENTS.md`](./AGENTS.md) -- category-specific anti-patterns, API surface, and conventions for AI coding agents +- [`../AGENTS.md`](../AGENTS.md) -- repository-wide agent guide +- [`../README.md`](../README.md) -- full category index and project overview +- [Aspose.PDF for .NET docs](https://docs.aspose.com/pdf/net/) + +> Each `.cs` file is a standalone, build-validated console example. Drop into a fresh `dotnet new console` project, add the `Aspose.PDF` NuGet (version above), and run. diff --git a/facades-forms/index.json b/facades-forms/index.json index 4cb9912b7..0ef1826e2 100644 --- a/facades-forms/index.json +++ b/facades-forms/index.json @@ -1,257 +1,307 @@ { "category": "facades-forms", "nuget_version": "26.8.0", - "last_updated": "2026-08-20T07:51:01Z", + "last_updated": "2026-09-10T12:45:08Z", "examples": { - "add-text-field-to-pdf-page": { - "title": "Add Text Field to PDF Page", - "filename": "add-text-field-to-pdf-page.cs", - "description": "Shows how to insert a text form field named \"CustomerName\" on page 1 of an existing PDF using Aspose.Pdf.Facades.FormEditor.", + "add-confirmation-dialog-to-pdf-submit-button": { + "title": "Add Confirmation Dialog to PDF Submit Button", + "filename": "add-confirmation-dialog-to-pdf-submit-button.cs", + "description": "Shows how to use Aspose.Pdf.Facades.FormEditor to attach JavaScript that displays a confirmation dialog before submitting a PDF form.", "tags": [ "pdf", + "javascript", "form", - "textfield", - "aspose", + "confirmation", "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.FormEditor", + "FormEditor", "FormEditor.BindPdf", - "FormEditor.AddField", + "FormEditor.AddFieldScript", "FormEditor.Save", - "Aspose.Pdf.Facades.FieldType" + "FormEditor.Dispose" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "add-unchecked-checkbox-field-to-pdf": { - "title": "Add Unchecked Checkbox Field to PDF Page", - "filename": "add-unchecked-checkbox-field-to-pdf.cs", - "description": "Demonstrates how to insert a checkbox form field on a specific PDF page and set its default state to unchecked using Aspose.Pdf.", + "add-digital-signature-field-and-sign-pdf": { + "title": "Add Digital Signature Field and Sign PDF", + "filename": "add-digital-signature-field-and-sign-pdf.cs", + "description": "Shows how to add a visible signature field to a PDF page and apply a digital signature using Aspose.Pdf facades.", "tags": [ - "checkbox", - "form", + "digital-signature", "pdf", - "aspose", + "form-editor", + "pdffilesignature", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.AddField", - "Aspose.Pdf.Forms.CheckboxField", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfFileSignature", + "Aspose.Pdf.Forms.PKCS1", + "FormEditor.AddField", + "PdfFileSignature.BindPdf", + "PdfFileSignature.Sign" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "add-radio-button-group-to-pdf-form": { - "title": "Add Radio Button Group to PDF Form", - "filename": "add-radio-button-group-to-pdf-form.cs", - "description": "Shows how to create a radio button group named \"PaymentMethod\" with options \"Credit\" and \"PayPal\" on page 3 of an existing PDF using Aspose.Pdf Facades.", + "add-email-validation-javascript-to-pdf-form-field": { + "title": "Add Email Validation JavaScript to PDF Form Field", + "filename": "add-email-validation-javascript-to-pdf-form-field.cs", + "description": "Demonstrates how to attach a JavaScript action to the \"Email\" form field that validates the email format on the blur (lost focus) event using Aspose.Pdf.", "tags": [ - "radio-button", - "pdf-form", - "aspose-pdf", - "facades", - "csharp" + "pdf", + "javascript", + "form-field", + "validation", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.AddField", + "Aspose.Pdf.Facades.FormEditor.BindPdf", "Aspose.Pdf.Facades.FormEditor.Save", - "Aspose.Pdf.Facades.FormEditor.Items", - "Aspose.Pdf.Facades.FormEditor.RadioGap", - "Aspose.Pdf.Facades.FormEditor.RadioHoriz", - "Aspose.Pdf.FieldType" + "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.JavascriptAction" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "add-submit-button-to-pdf-form": { - "title": "Add Submit Button to PDF Form", - "filename": "add-submit-button-to-pdf-form.cs", - "description": "Shows how to insert a submit button on page 1 of a PDF form that posts the form data to a specified URL using Aspose.Pdf.Facades.", - "tags": [ - "pdf", - "form", - "submit-button", - "facades", - "aspose" - ], - "apis_used": [ - "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.AddSubmitBtn", - "Aspose.Pdf.Facades.FormEditor.Save", - "Aspose.Pdf.Facades.FormEditor.Close" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:51:01Z", + "add-email-validation-script-to-pdf-form-field": { + "title": "Add Email Validation Script To Pdf Form Field", + "filename": "add-email-validation-script-to-pdf-form-field.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "add-javascript-alert-to-push-button": { - "title": "Add JavaScript Alert to Push Button in PDF", - "filename": "add-javascript-alert-to-push-button.cs", - "description": "Shows how to create a PDF with a push‑button field and attach a JavaScript alert that displays when the button is clicked using Aspose.Pdf.", + "add-email-validation-to-pdf-form-field": { + "title": "Add Email Validation to PDF Form Field", + "filename": "add-email-validation-to-pdf-form-field.cs", + "description": "Demonstrates how to attach JavaScript to a PDF form field using Aspose.Pdf to validate email addresses with a regular expression.", "tags": [ "pdf", - "javascript", "form", - "button", - "aspose" + "validation", + "javascript", + "email" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.ButtonField", - "Aspose.Pdf.Forms.Form.Add", - "Aspose.Pdf.Facades.FormEditor.BindPdf", - "Aspose.Pdf.Facades.FormEditor.AddFieldScript", - "Aspose.Pdf.Facades.FormEditor.Save" + "Aspose.Pdf.Facades.FormEditor", + "Aspose.Pdf.Facades.FormEditor.SetFieldScript", + "Aspose.Pdf.Facades.FormEditor.Save", + "Aspose.Pdf.Facades.FormEditor.SetFieldAttribute" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "decorate-pdf-form-field-appearance": { - "title": "Decorate PDF Form Field with Custom Appearance", - "filename": "decorate-pdf-form-field-appearance.cs", - "description": "Demonstrates how to set a custom border color, background shade, and font style for a specific PDF form field using Aspose.Pdf.Facades.", + "add-form-load-javascript-to-pdf": { + "title": "Add Form Load JavaScript to PDF", + "filename": "add-form-load-javascript-to-pdf.cs", + "description": "Demonstrates how to attach a document‑level JavaScript action that populates a form field named \"Date\" with the current date when the PDF is opened, using Aspose.Pdf.Facades.", "tags": [ + "javascript", "pdf", - "form-field", - "appearance", - "border-color", - "font-style" + "form", + "document-open", + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormFieldFacade", - "Aspose.Pdf.Facades.FontStyle", - "Aspose.Pdf.Facades.FormEditor.DecorateField", - "Aspose.Pdf.Facades.FormEditor.Save" + "Aspose.Pdf.Facades.PdfContentEditor", + "PdfContentEditor.BindPdf", + "PdfContentEditor.AddDocumentAdditionalAction", + "PdfContentEditor.Save", + "PdfContentEditor.DocumentOpen" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "apply-default-decoration-to-text-fields": { - "title": "Apply Default Decoration to All Text Form Fields", - "filename": "apply-default-decoration-to-text-fields.cs", - "description": "Shows how to set default visual attributes via FormFieldFacade and apply them to every text field in a PDF using FormEditor.", - "tags": [ - "form-fields", - "decoration", - "Aspose.Pdf", - "FormEditor", - "Facade" - ], - "apis_used": [ - "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormFieldFacade", - "Aspose.Pdf.Facades.FieldType", - "Aspose.Pdf.Facades.FormEditor.DecorateField", - "Aspose.Pdf.Facades.FormEditor.Save" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:51:01Z", + "add-gender-radio-button-group-to-pdf": { + "title": "Add Gender Radio Button Group To Pdf", + "filename": "add-gender-radio-button-group-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "set-form-field-alignment-to-center": { - "title": "Set Form Field Alignment to Center", - "filename": "set-form-field-alignment-to-center.cs", - "description": "Shows how to center‑align a PDF form field named \"Address\" using Aspose.Pdf.Facades FormEditor.", + "add-gender-radio-button-group": { + "title": "Add Gender Radio Button Group to PDF Form", + "filename": "add-gender-radio-button-group.cs", + "description": "Shows how to insert a radio button group named \"Gender\" with options Male, Female, and Other, and set a default selection in an existing PDF using Aspose.Pdf.", "tags": [ "pdf", "form", - "alignment", + "radio-button", "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.SetFieldAlignment", - "Aspose.Pdf.Facades.FormEditor.Save", - "Aspose.Pdf.Facades.FormFieldFacade", - "Aspose.Pdf.Facades.FormFieldFacade.AlignCenter" + "FormEditor.BindPdf", + "FormEditor.AddField", + "FormEditor.Save", + "Aspose.Pdf.Facades.FieldType" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "set-custom-image-background-for-signature-field": { - "title": "Set Custom Image Background for Signature Field", - "filename": "set-custom-image-background-for-signature-field.cs", - "description": "Shows how to modify an existing signature field's appearance by assigning a custom background image and visual properties using Aspose.Pdf's PdfFileSignature facade.", + "add-hidden-authtoken-field-to-pdf": { + "title": "Add Hidden AuthToken Field to PDF", + "filename": "add-hidden-authtoken-field-to-pdf.cs", + "description": "Generates a secure random token, creates a zero‑size hidden TextBoxField named AuthToken, adds it to the PDF form, and saves the modified document.", "tags": [ - "signature", - "custom-appearance", - "image-background", "pdf", - "facade" + "hidden-field", + "auth-token", + "aspose-pdf", + "security" ], "apis_used": [ - "PdfFileSignature.BindPdf", - "PdfFileSignature.SignatureAppearance", - "PKCS1", - "SignatureCustomAppearance", - "PdfFileSignature.Sign", - "PdfFileSignature.Save" + "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.Form.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "set-custom-attribute-on-pdf-form-field": { - "title": "Attempt to Set Custom Attribute on PDF Form Field", - "filename": "set-custom-attribute-on-pdf-form-field.cs", - "description": "Demonstrates using FormEditor.SetFieldAttribute to set a predefined flag on a PDF form field and explains that arbitrary custom attributes like \"data-id\" cannot be set with the current API.", + "add-hidden-numeric-version-field": { + "title": "Add Hidden Numeric Version Field", + "filename": "add-hidden-numeric-version-field.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-hidden-sessionid-field-to-pdfs": { + "title": "Add Hidden Sessionid Field To Pdfs", + "filename": "add-hidden-sessionid-field-to-pdfs.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-hidden-version-field-to-pdf": { + "title": "Add Hidden Version Field to PDF", + "filename": "add-hidden-version-field-to-pdf.cs", + "description": "Shows how to insert a hidden numeric field named \"Version\" with a value of 2 into a PDF using Aspose.Pdf's FormEditor facade.", "tags": [ "pdf", "form", - "setfieldattribute", - "custom-attribute", + "hidden-field", + "version", "aspose" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.FormEditor", "Aspose.Pdf.Facades.FormEditor.BindPdf", + "Aspose.Pdf.Facades.FormEditor.AddField", "Aspose.Pdf.Facades.FormEditor.SetFieldAttribute", - "Aspose.Pdf.Facades.FormEditor.Save", - "Aspose.Pdf.Forms.PropertyFlag" + "Aspose.Pdf.Facades.FormEditor.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "set-numeric-limit-for-pdf-form-field": { - "title": "Set Numeric Limit for PDF Form Field", - "filename": "set-numeric-limit-for-pdf-form-field.cs", - "description": "Demonstrates how to open a PDF form, restrict the \"Quantity\" field to a maximum of three characters, add JavaScript validation for a numeric range of 1‑100, and save the updated document.", + "add-input-mask-to-pdf-form-field": { + "title": "Add Input Mask To Pdf Form Field", + "filename": "add-input-mask-to-pdf-form-field.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-javascript-alert-to-push-button": { + "title": "Add JavaScript Alert to Push Button in PDF", + "filename": "add-javascript-alert-to-push-button.cs", + "description": "Shows how to create a PDF with a push‑button field and attach a JavaScript alert that displays when the button is clicked using Aspose.Pdf.", "tags": [ "pdf", + "javascript", "form", - "field-limit", - "validation", + "button", "aspose" ], "apis_used": [ - "Aspose.Pdf.Facades.FormEditor", + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.ButtonField", + "Aspose.Pdf.Forms.Form.Add", "Aspose.Pdf.Facades.FormEditor.BindPdf", - "Aspose.Pdf.Facades.FormEditor.SetFieldLimit", - "Aspose.Pdf.Facades.FormEditor.SetFieldScript", + "Aspose.Pdf.Facades.FormEditor.AddFieldScript", "Aspose.Pdf.Facades.FormEditor.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, + "add-javascript-to-quantity-field-total-price": { + "title": "Add Javascript To Quantity Field Total Price", + "filename": "add-javascript-to-quantity-field-total-price.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-list-box-field-to-pdf-form": { + "title": "Add List Box Field to PDF Form", + "filename": "add-list-box-field-to-pdf-form.cs", + "description": "Demonstrates how to create a ListBox form field in a PDF, populate it with items, set a default value, and save the updated document using Aspose.Pdf.", + "tags": [ + "pdf", + "form", + "listbox", + "aspose", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Facades.FormEditor", + "Aspose.Pdf.Facades.FormEditor.BindPdf", + "Aspose.Pdf.Facades.FormEditor.AddField", + "Aspose.Pdf.Facades.FormEditor.Items", + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:51:01Z", + "status": "verified" + }, + "add-list-item-to-dropdown-field": { + "title": "Add List Item To Dropdown Field", + "filename": "add-list-item-to-dropdown-field.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "add-list-item-to-pdf-dropdown": { "title": "Add List Item to PDF Dropdown Field", "filename": "add-list-item-to-pdf-dropdown.cs", @@ -274,319 +324,288 @@ "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "remove-list-item-from-pdf-form": { - "title": "Remove List Item from PDF Form Field", - "filename": "remove-list-item-from-pdf-form.cs", - "description": "Shows how to delete a specific list item (Option B) from a list field (Choices) in an AcroForm PDF using Aspose.Pdf.Facades.FormEditor.", + "add-print-button-to-pdf": { + "title": "Add Print Button to PDF Using Aspose.Pdf", + "filename": "add-print-button-to-pdf.cs", + "description": "Shows how to insert a push‑button form field that triggers the PDF print dialog via JavaScript in an existing PDF document.", "tags": [ "pdf", "form", - "list-item", - "delete", - "aspose" + "print", + "javascript", + "button" ], "apis_used": [ "Aspose.Pdf.Facades.FormEditor", "Aspose.Pdf.Facades.FormEditor.BindPdf", - "Aspose.Pdf.Facades.FormEditor.DelListItem", - "Aspose.Pdf.Facades.FormEditor.Save" + "Aspose.Pdf.Facades.FormEditor.AddField", + "Aspose.Pdf.Facades.FormEditor.AddFieldScript", + "Aspose.Pdf.Facades.FormEditor.Save", + "Aspose.Pdf.Facades.FieldType" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "copy-field-content-between-pdf-form-fields": { - "title": "Copy Field Content Between PDF Form Fields", - "filename": "copy-field-content-between-pdf-form-fields.cs", - "description": "Demonstrates how to read the value of one form field and write it to another field in the same PDF using Aspose.Pdf.Facades.", - "tags": [ - "pdf", - "form-fields", - "copy", - "aspose", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.GetField", - "Aspose.Pdf.Facades.Form.FillField", - "Aspose.Pdf.Facades.Form.Save" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:51:01Z", + "add-print-dialog-button-to-pdf": { + "title": "Add Print Dialog Button To Pdf", + "filename": "add-print-dialog-button-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "clone-form-field-to-page-5": { - "title": "Clone PDF Form Field to Page 5 and Rename", - "filename": "clone-form-field-to-page-5.cs", - "description": "Demonstrates how to copy the outer definition of an existing form field to a specific page using FormEditor, then rename the cloned field with the Form class.", + "add-radio-button-group-to-pdf-form": { + "title": "Add Radio Button Group to PDF Form", + "filename": "add-radio-button-group-to-pdf-form.cs", + "description": "Shows how to create a radio button group named \"PaymentMethod\" with options \"Credit\" and \"PayPal\" on page 3 of an existing PDF using Aspose.Pdf Facades.", "tags": [ - "form", - "field-cloning", + "radio-button", + "pdf-form", "aspose-pdf", - "copy-outer-field", - "rename-field" + "facades", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.CopyOuterField", + "Aspose.Pdf.Facades.FormEditor.AddField", "Aspose.Pdf.Facades.FormEditor.Save", - "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.RenameField", - "Aspose.Pdf.Facades.Form.Save" + "Aspose.Pdf.Facades.FormEditor.Items", + "Aspose.Pdf.Facades.FormEditor.RadioGap", + "Aspose.Pdf.Facades.FormEditor.RadioHoriz", + "Aspose.Pdf.FieldType" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "move-pdf-form-field": { - "title": "Move PDF Form Field to New Position", - "filename": "move-pdf-form-field.cs", - "description": "Shows how to relocate an existing form field to specific coordinates on a chosen page of a PDF using Aspose.Pdf.Facades.FormEditor.", + "add-reset-form-button-to-pdf": { + "title": "Add Reset Form Button to PDF", + "filename": "add-reset-form-button-to-pdf.cs", + "description": "Demonstrates how to insert a push button into a PDF that clears all form fields when clicked, using Aspose.Pdf.Facades.", "tags": [ "pdf", "form", - "move-field", - "aspose", - "facade" + "reset-button", + "javascript", + "aspose-pdf" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.FormEditor", - "FormEditor.BindPdf", - "FormEditor.MoveField", - "FormEditor.Save" + "Aspose.Pdf.Facades.FormEditor.AddField", + "Aspose.Pdf.Facades.FormEditor.AddFieldScript", + "Aspose.Pdf.Facades.FieldType" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "remove-pdf-form-field": { - "title": "Remove PDF Form Field", - "filename": "remove-pdf-form-field.cs", - "description": "Shows how to delete an existing form field from a PDF document using Aspose.Pdf.Facades.FormEditor.", - "tags": [ - "pdf", - "form", - "remove-field", - "aspose", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Facades.FormEditor", - "FormEditor.BindPdf", - "FormEditor.RemoveField", - "FormEditor.Save" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:51:01Z", + "add-state-combo-box-to-pdf-form": { + "title": "Add State Combo Box To Pdf Form", + "filename": "add-state-combo-box-to-pdf-form.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "rename-pdf-form-field": { - "title": "Rename PDF Form Field Using FormEditor", - "filename": "rename-pdf-form-field.cs", - "description": "Shows how to create a PDF with a form field and rename that field from \"OldName\" to \"NewName\" using Aspose.Pdf.Facades.FormEditor.", + "add-state-combobox-to-pdf": { + "title": "Add State Combo Box to PDF Form", + "filename": "add-state-combobox-to-pdf.cs", + "description": "Shows how to insert a combo box field named \"State\" into an existing PDF and fill it with US state abbreviations using Aspose.Pdf.Facades.", "tags": [ "pdf", "form", - "rename", + "combobox", "aspose", - "facade" + "us-states" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Forms.TextBoxField", "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.BindPdf", - "Aspose.Pdf.Facades.FormEditor.RenameField", - "Aspose.Pdf.Facades.FormEditor.Save" + "Aspose.Pdf.Facades.FieldType", + "FormEditor.AddField", + "FormEditor.AddListItem", + "FormEditor.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "add-email-validation-javascript-to-pdf-form-field": { - "title": "Add Email Validation JavaScript to PDF Form Field", - "filename": "add-email-validation-javascript-to-pdf-form-field.cs", - "description": "Demonstrates how to attach a JavaScript action to the \"Email\" form field that validates the email format on the blur (lost focus) event using Aspose.Pdf.", + "add-submit-button-to-pdf-form": { + "title": "Add Submit Button to PDF Form", + "filename": "add-submit-button-to-pdf-form.cs", + "description": "Shows how to insert a submit button on page 1 of a PDF form that posts the form data to a specified URL using Aspose.Pdf.Facades.", "tags": [ "pdf", - "javascript", - "form-field", - "validation", - "aspose-pdf" + "form", + "submit-button", + "facades", + "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.BindPdf", + "Aspose.Pdf.Facades.FormEditor.AddSubmitBtn", "Aspose.Pdf.Facades.FormEditor.Save", - "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.JavascriptAction" + "Aspose.Pdf.Facades.FormEditor.Close" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "export-pdf-form-fields-to-fdf": { - "title": "Export PDF Form Fields to FDF", - "filename": "export-pdf-form-fields-to-fdf.cs", - "description": "Demonstrates loading a PDF form with the Form facade and exporting all its form fields to an FDF file for external processing.", + "add-text-field-to-pdf-page": { + "title": "Add Text Field to PDF Page", + "filename": "add-text-field-to-pdf-page.cs", + "description": "Shows how to insert a text form field named \"CustomerName\" on page 1 of an existing PDF using Aspose.Pdf.Facades.FormEditor.", "tags": [ "pdf", "form", - "fdf", - "export", + "textfield", + "aspose", "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.ExportFdf" + "Aspose.Pdf.Facades.FormEditor", + "FormEditor.BindPdf", + "FormEditor.AddField", + "FormEditor.Save", + "Aspose.Pdf.Facades.FieldType" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "import-xfdf-data-into-pdf-form": { - "title": "Import XFDF Data into PDF Form", - "filename": "import-xfdf-data-into-pdf-form.cs", - "description": "Shows how to import form field values from an XFDF file into an existing PDF using Aspose.Pdf.Facades.Form and save the updated document.", - "tags": [ - "xfdf", - "form", - "pdf", - "aspose-pdf", - "facade" - ], - "apis_used": [ - "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.ImportXfdf", - "Aspose.Pdf.Facades.Form.Save", - "Aspose.Pdf.Facades.Form(string, string)", - "Aspose.Pdf.Facades.Form.Dispose" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:51:01Z", + "add-unchecked-checkbox-field-to-pdf-page": { + "title": "Add Unchecked Checkbox Field To Pdf Page", + "filename": "add-unchecked-checkbox-field-to-pdf-page.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "decorate-checkbox-fields-in-pdfs": { - "title": "Decorate All Checkbox Fields in PDFs", - "filename": "decorate-checkbox-fields-in-pdfs.cs", - "description": "Demonstrates how to apply a visual decoration to every checkbox form field in multiple PDF documents within a folder using Aspose.Pdf.Facades.", + "add-unchecked-checkbox-field-to-pdf": { + "title": "Add Unchecked Checkbox Field to PDF Page", + "filename": "add-unchecked-checkbox-field-to-pdf.cs", + "description": "Demonstrates how to insert a checkbox form field on a specific PDF page and set its default state to unchecked using Aspose.Pdf.", "tags": [ "checkbox", "form", "pdf", - "decoration", - "batch" + "aspose", + "csharp" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormFieldFacade", - "Aspose.Pdf.Facades.FormEditor.BindPdf", - "Aspose.Pdf.Facades.FormEditor.Save", - "Aspose.Pdf.Facades.FormEditor.DecorateField", - "Aspose.Pdf.Facades.FormEditor.Facade", - "Aspose.Pdf.Facades.FieldType.CheckBox" + "Aspose.Pdf.Facades.FormEditor.AddField", + "Aspose.Pdf.Forms.CheckboxField", + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "batch-update-submit-button-urls": { - "title": "Batch Update Submit Button URLs in PDFs", - "filename": "batch-update-submit-button-urls.cs", - "description": "Demonstrates how to iterate through a folder of PDF files, detect submit buttons in each form, and replace their URLs with a new address using Aspose.Pdf.Facades.", - "tags": [ - "pdf", - "form", - "submit-button", - "batch", - "aspose" - ], - "apis_used": [ - "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.FormEditor", - "Form.FormSubmitButtonNames", - "FormEditor.BindPdf", - "FormEditor.SetSubmitUrl", - "FormEditor.Save" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:51:01Z", + "apply-consistent-decoration-to-checkbox-fields": { + "title": "Apply Consistent Decoration To Checkbox Fields", + "filename": "apply-consistent-decoration-to-checkbox-fields.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "clear-and-populate-list-box-field": { - "title": "Clear and Populate List Box Field in PDF", - "filename": "clear-and-populate-list-box-field.cs", - "description": "Demonstrates how to remove all existing options from a PDF list box (combo) field and then add new items using Aspose.Pdf.", + "apply-custom-font-to-pdf-form-text-fields": { + "title": "Apply Custom Font to All PDF Form Text Fields", + "filename": "apply-custom-font-to-pdf-form-text-fields.cs", + "description": "Demonstrates how to set a custom font (e.g., Arial Bold) for every text field in a PDF form using Aspose.Pdf's FormEditor and FormFieldFacade.", "tags": [ - "listbox", - "form-fields", "pdf", - "aspose-pdf", - "csharp" + "form", + "custom-font", + "facade", + "aspnet" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.ListBoxField", - "Aspose.Pdf.Forms.ListBoxField.Options", - "Aspose.Pdf.Forms.ListBoxField.DeleteOption", - "Aspose.Pdf.Forms.ListBoxField.AddOption", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.FormEditor", + "Aspose.Pdf.Facades.FormFieldFacade", + "Aspose.Pdf.Facades.FieldType", + "Aspose.Pdf.Facades.FormEditor.DecorateField", + "Aspose.Pdf.Facades.FormEditor.Facade" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "populate-country-list-box-pdf": { - "title": "Populate PDF List Box with Country Names", - "filename": "populate-country-list-box-pdf.cs", - "description": "Demonstrates creating a PDF with a ListBox form field and programmatically adding 195 country items to it using Aspose.Pdf's FormEditor.", + "apply-default-decoration-to-text-fields": { + "title": "Apply Default Decoration to All Text Form Fields", + "filename": "apply-default-decoration-to-text-fields.cs", + "description": "Shows how to set default visual attributes via FormFieldFacade and apply them to every text field in a PDF using FormEditor.", "tags": [ - "pdf", - "listbox", "form-fields", - "aspose-pdf", - "csharp" + "decoration", + "Aspose.Pdf", + "FormEditor", + "Facade" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.ListBoxField", "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.BindPdf", - "Aspose.Pdf.Facades.FormEditor.AddListItem", + "Aspose.Pdf.Facades.FormFieldFacade", + "Aspose.Pdf.Facades.FieldType", + "Aspose.Pdf.Facades.FormEditor.DecorateField", "Aspose.Pdf.Facades.FormEditor.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "set-form-field-readonly-currency-appearance": { - "title": "Set Form Field to Read‑Only and Apply Currency Appearance", - "filename": "set-form-field-readonly-currency-appearance.cs", - "description": "Shows how to make a PDF form field read‑only and set its printable appearance (including currency formatting) using Aspose.Pdf Facades.", + "apply-phone-number-input-mask": { + "title": "Apply Phone Number Input Mask to PDF Form Field", + "filename": "apply-phone-number-input-mask.cs", + "description": "Demonstrates how to attach JavaScript to a PDF form field using Aspose.Pdf to enforce a phone number input mask \"(###) ###‑####\".", "tags": [ "pdf", "form", - "readonly", - "appearance", - "currency" + "javascript", + "input-mask", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.BindPdf", - "Aspose.Pdf.Facades.FormEditor.SetFieldAttribute", - "Aspose.Pdf.Facades.FormEditor.SetFieldAppearance", + "Aspose.Pdf.Facades.FormEditor.SetFieldScript", "Aspose.Pdf.Facades.FormEditor.Save", - "Aspose.Pdf.PropertyFlag.ReadOnly", - "Aspose.Pdf.Annotations.AnnotationFlags.Print" + "Aspose.Pdf.Facades.FormEditor.Close" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, + "attach-confirmation-js-to-pdf-submit-button": { + "title": "Attach Confirmation Js To Pdf Submit Button", + "filename": "attach-confirmation-js-to-pdf-submit-button.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "attach-javascript-alert-to-pdf-push-button": { + "title": "Attach Javascript Alert To Pdf Push Button", + "filename": "attach-javascript-alert-to-pdf-push-button.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "attach-javascript-clear-discountcode-field": { "title": "Clear PDF Form Field on Focus with JavaScript", "filename": "attach-javascript-clear-discountcode-field.cs", @@ -609,47 +628,128 @@ "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "copy-form-fields-from-template-to-pdf": { - "title": "Copy Form Fields from Template PDF to Target PDF", - "filename": "copy-form-fields-from-template-to-pdf.cs", - "description": "Shows how to create a template PDF with a form field, create a target PDF, and copy the field definitions from the template to the target using Aspose.Pdf's FormEditor.", + "attach-javascript-to-pdf-form-field": { + "title": "Attach JavaScript to PDF Form Field for Auto-Calculating Total Price", + "filename": "attach-javascript-to-pdf-form-field.cs", + "description": "Shows how to load a PDF, retrieve the Quantity and TotalPrice form fields, attach a JavaScript OnCalculate action that computes TotalPrice from Quantity and UnitPrice, and save the modified document.", "tags": [ - "form-fields", - "pdf-copy", + "pdf", + "javascript", + "form", + "calculation", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.FormField", + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:51:01Z", + "status": "verified" + }, + "attach-javascript-to-resetform-that-also-clears-hidden-fields-during-reset": { + "title": "Attach Javascript To Resetform That Also Clears Hidden Fields During Reset", + "filename": "attach-javascript-to-resetform-that-also-clears-hidden-fields-during-reset.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "attach-javascript-validation-to-pdf-form-field": { + "title": "Attach JavaScript Validation to PDF Form Field", + "filename": "attach-javascript-validation-to-pdf-form-field.cs", + "description": "Shows how to bind a PDF, add a JavaScript script to the \"Age\" form field that displays a warning when the entered value is less than 18, and save the modified PDF.", + "tags": [ + "javascript", + "pdf-form", + "validation", + "aspose-pdf", + "facade" + ], + "apis_used": [ + "Aspose.Pdf.Facades.FormEditor", + "Aspose.Pdf.Facades.FormEditor.BindPdf", + "Aspose.Pdf.Facades.FormEditor.SetFieldScript", + "Aspose.Pdf.Facades.FormEditor.Save" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:51:01Z", + "status": "verified" + }, + "attach-js-resetform-clear-hidden-fields": { + "title": "Attach JavaScript to ResetForm Button to Clear Hidden Fields", + "filename": "attach-js-resetform-clear-hidden-fields.cs", + "description": "Shows how to bind a PDF with Aspose.Pdf.Facades.FormEditor, add JavaScript to a ResetForm button that resets the form and clears specified hidden fields, and then save the modified PDF.", + "tags": [ + "pdf", + "javascript", + "form", + "reset", + "aspose" + ], + "apis_used": [ + "FormEditor", + "FormEditor.BindPdf", + "FormEditor.AddFieldScript", + "FormEditor.Save" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:51:01Z", + "status": "verified" + }, + "attach-js-validation-to-pdf-submit-button": { + "title": "Attach JavaScript Validation to PDF Submit Button", + "filename": "attach-js-validation-to-pdf-submit-button.cs", + "description": "Shows how to use Aspose.Pdf.Facades.FormEditor to add a JavaScript script to a PDF submit button that checks required fields before submitting the form.", + "tags": [ + "javascript", + "pdf-form", + "validation", "aspose-pdf", - "form-editor", "csharp" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.TextBoxField", "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.CopyOuterField", "Aspose.Pdf.Facades.FormEditor.BindPdf", + "Aspose.Pdf.Facades.FormEditor.AddFieldScript", "Aspose.Pdf.Facades.FormEditor.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "move-pdf-form-fields-by-offset": { - "title": "Move PDF Form Fields by Offset", - "filename": "move-pdf-form-fields-by-offset.cs", - "description": "Shows how to shift every form field in a PDF document by a specified X/Y offset using Aspose.Pdf's FormEditor.", + "batch-add-hidden-processeddate-field": { + "title": "Batch Add Hidden Processeddate Field", + "filename": "batch-add-hidden-processeddate-field.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "batch-add-selectall-checkbox-to-pdf": { + "title": "Batch Add SelectAll Checkbox to First Page of PDFs", + "filename": "batch-add-selectall-checkbox-to-pdf.cs", + "description": "Shows how to process multiple PDF files in a directory and use Aspose.Pdf.Facades.FormEditor to add a 'SelectAll' checkbox field on the first page of each PDF, saving the modified files to an output folder.", "tags": [ "pdf", + "checkbox", "form", - "field", - "offset", + "batch", "aspose" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.FormEditor", "Aspose.Pdf.Facades.FormEditor.BindPdf", - "Aspose.Pdf.Facades.FormEditor.MoveField", + "Aspose.Pdf.Facades.FormEditor.AddField", "Aspose.Pdf.Facades.FormEditor.Save", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.FieldType" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:51:01Z", @@ -677,483 +777,617 @@ "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "set-text-field-to-multiline": { - "title": "Set Text Field to Multiline in PDF Form", - "filename": "set-text-field-to-multiline.cs", - "description": "Demonstrates how to convert the single‑line text field \"Comments\" into a multiline field using Aspose.Pdf.Facades.FormEditor.", + "batch-update-submit-button-urls": { + "title": "Batch Update Submit Button URLs in PDFs", + "filename": "batch-update-submit-button-urls.cs", + "description": "Demonstrates how to iterate through a folder of PDF files, detect submit buttons in each form, and replace their URLs with a new address using Aspose.Pdf.Facades.", "tags": [ "pdf", "form", - "multiline", - "aspose", - "facades" + "submit-button", + "batch", + "aspose" ], "apis_used": [ + "Aspose.Pdf.Facades.Form", "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.Single2Multiple", - "Aspose.Pdf.Facades.FormEditor.Save" + "Form.FormSubmitButtonNames", + "FormEditor.BindPdf", + "FormEditor.SetSubmitUrl", + "FormEditor.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "set-signature-field-border-width": { - "title": "Set Signature Field Border Width in PDF", - "filename": "set-signature-field-border-width.cs", - "description": "Demonstrates how to load a PDF, retrieve a form field named \"Signature\", and set its border thickness to 2 points using Aspose.Pdf.Facades.", + "clear-and-populate-dropdown-list": { + "title": "Clear And Populate Dropdown List", + "filename": "clear-and-populate-dropdown-list.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "clear-and-populate-list-box-field": { + "title": "Clear and Populate List Box Field in PDF", + "filename": "clear-and-populate-list-box-field.cs", + "description": "Demonstrates how to remove all existing options from a PDF list box (combo) field and then add new items using Aspose.Pdf.", "tags": [ + "listbox", + "form-fields", "pdf", - "form", - "border", - "signature", - "aspose-pdf" + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.GetFieldFacade", - "Aspose.Pdf.Facades.FormFieldFacade.BorderWidth", - "Aspose.Pdf.Facades.Form.Save" + "Aspose.Pdf.Forms.ListBoxField", + "Aspose.Pdf.Forms.ListBoxField.Options", + "Aspose.Pdf.Forms.ListBoxField.DeleteOption", + "Aspose.Pdf.Forms.ListBoxField.AddOption", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "set-form-field-background-color": { - "title": "Set Form Field Background Color to Light Green", - "filename": "set-form-field-background-color.cs", - "description": "Demonstrates using FormEditor and FormFieldFacade to change the background color of the \"Status\" form field to light green and save the updated PDF.", - "tags": [ - "form", - "field", - "background-color", - "facade", - "pdf" - ], - "apis_used": [ - "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormFieldFacade", - "Aspose.Pdf.Facades.FormEditor.DecorateField", - "Aspose.Pdf.Facades.FormEditor.Save" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:51:01Z", + "clear-pdf-form-field-on-focus": { + "title": "Clear Pdf Form Field On Focus", + "filename": "clear-pdf-form-field-on-focus.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "attach-js-validation-to-pdf-submit-button": { - "title": "Attach JavaScript Validation to PDF Submit Button", - "filename": "attach-js-validation-to-pdf-submit-button.cs", - "description": "Shows how to use Aspose.Pdf.Facades.FormEditor to add a JavaScript script to a PDF submit button that checks required fields before submitting the form.", + "clone-form-field-to-page-5": { + "title": "Clone PDF Form Field to Page 5 and Rename", + "filename": "clone-form-field-to-page-5.cs", + "description": "Demonstrates how to copy the outer definition of an existing form field to a specific page using FormEditor, then rename the cloned field with the Form class.", "tags": [ - "javascript", - "pdf-form", - "validation", + "form", + "field-cloning", "aspose-pdf", - "csharp" + "copy-outer-field", + "rename-field" ], "apis_used": [ "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.BindPdf", - "Aspose.Pdf.Facades.FormEditor.AddFieldScript", - "Aspose.Pdf.Facades.FormEditor.Save" + "Aspose.Pdf.Facades.FormEditor.CopyOuterField", + "Aspose.Pdf.Facades.FormEditor.Save", + "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.Form.RenameField", + "Aspose.Pdf.Facades.Form.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "export-pdf-form-fields-to-json": { - "title": "Export PDF Form Fields to JSON", - "filename": "export-pdf-form-fields-to-json.cs", - "description": "Shows how to use Aspose.Pdf.Facades.Form to export all form field definitions from a PDF document into a pretty‑printed JSON file.", + "convert-single-line-to-multi-line-address-field": { + "title": "Convert Single Line To Multi Line Address Field", + "filename": "convert-single-line-to-multi-line-address-field.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-single-line-to-multiline-word-wrap": { + "title": "Convert Single‑Line Form Field to Multiline with Word Wrap", + "filename": "convert-single-line-to-multiline-word-wrap.cs", + "description": "Demonstrates how to change an existing single‑line PDF form field to a multiline field, enable automatic word wrapping, and save the updated document using Aspose.Pdf.", "tags": [ - "pdf", "form", - "export", - "json", - "facade" + "multiline", + "wordwrap", + "pdf", + "aspose" ], "apis_used": [ - "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.ExportJson" + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.FormEditor.Single2Multiple", + "Aspose.Pdf.Facades.FormEditor.Save", + "Aspose.Pdf.Facades.PdfFileMend", + "Aspose.Pdf.Facades.PdfFileMend.IsWordWrap", + "Aspose.Pdf.Facades.PdfFileMend.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "create-pdf-form-fields-from-json": { - "title": "Create PDF Form Fields from JSON Definitions", - "filename": "create-pdf-form-fields-from-json.cs", - "description": "Demonstrates reading a JSON file with field specifications and adding matching form fields to a newly created PDF using Aspose.Pdf.", + "copy-field-content-between-pdf-form-fields": { + "title": "Copy Field Content Between PDF Form Fields", + "filename": "copy-field-content-between-pdf-form-fields.cs", + "description": "Demonstrates how to read the value of one form field and write it to another field in the same PDF using Aspose.Pdf.Facades.", "tags": [ "pdf", - "form", - "json", + "form-fields", + "copy", "aspose", "csharp" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.AddField", - "Aspose.Pdf.Facades.FieldType" + "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.Form.GetField", + "Aspose.Pdf.Facades.Form.FillField", + "Aspose.Pdf.Facades.Form.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "set-phone-number-field-limit": { - "title": "Set Maximum Character Length for PDF Form Field", - "filename": "set-phone-number-field-limit.cs", - "description": "Shows how to load a PDF with Aspose.Pdf.Facades.FormEditor, set a maximum character count for the \"PhoneNumber\" form field, and save the updated document.", + "copy-form-field-definitions-to-pdf": { + "title": "Copy Form Field Definitions To Pdf", + "filename": "copy-form-field-definitions-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "copy-form-field-to-another-page": { + "title": "Copy Form Field To Another Page", + "filename": "copy-form-field-to-another-page.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "copy-form-field-to-new-field-on-page": { + "title": "Copy Form Field To New Field On Page", + "filename": "copy-form-field-to-new-field-on-page.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "copy-form-fields-from-template-to-pdf": { + "title": "Copy Form Fields from Template PDF to Target PDF", + "filename": "copy-form-fields-from-template-to-pdf.cs", + "description": "Shows how to create a template PDF with a form field, create a target PDF, and copy the field definitions from the template to the target using Aspose.Pdf's FormEditor.", "tags": [ - "pdf", - "form", - "field-limit", + "form-fields", + "pdf-copy", "aspose-pdf", + "form-editor", "csharp" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.TextBoxField", "Aspose.Pdf.Facades.FormEditor", + "Aspose.Pdf.Facades.FormEditor.CopyOuterField", "Aspose.Pdf.Facades.FormEditor.BindPdf", - "Aspose.Pdf.Facades.FormEditor.SetFieldLimit", "Aspose.Pdf.Facades.FormEditor.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "set-date-field-format": { - "title": "Set Date Field Format in PDF Form", - "filename": "set-date-field-format.cs", - "description": "Demonstrates how to locate a DateField in a PDF form and change its display format to \"MM/dd/yyyy\" using Aspose.Pdf.", + "copy-image-field-to-another-field": { + "title": "Copy Image Field Content to Another Field in PDF", + "filename": "copy-image-field-to-another-field.cs", + "description": "Demonstrates how to copy the inner content of an existing image form field to a new image field in the same PDF using Aspose.Pdf.Facades.FormEditor.", "tags": [ "pdf", "form", - "datefield", - "format", - "aspose" + "image-field", + "copy", + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.DateField", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.FormEditor", + "Aspose.Pdf.Facades.FormEditor.CopyInnerField", + "Aspose.Pdf.Facades.FormEditor.Save", + "Aspose.Pdf.Facades.FormEditor.Close" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "add-reset-form-button-to-pdf": { - "title": "Add Reset Form Button to PDF", - "filename": "add-reset-form-button-to-pdf.cs", - "description": "Demonstrates how to insert a push button into a PDF that clears all form fields when clicked, using Aspose.Pdf.Facades.", + "copy-image-form-field-to-another": { + "title": "Copy Image Form Field To Another", + "filename": "copy-image-form-field-to-another.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "copy-notes-to-summary": { + "title": "Copy Notes Field to Summary in PDF Form", + "filename": "copy-notes-to-summary.cs", + "description": "Shows how to read the value of a PDF form field and write it to another field using Aspose.Pdf.Facades.Form.", "tags": [ "pdf", "form", - "reset-button", - "javascript", - "aspose-pdf" + "field", + "aspose-pdf", + "csharp" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.AddField", - "Aspose.Pdf.Facades.FormEditor.AddFieldScript", - "Aspose.Pdf.Facades.FieldType" + "Aspose.Pdf.Facades.Form", + "Form(string)", + "Form.GetField", + "Form.FillField", + "Form.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "restrict-pdf-form-field-to-integer-0-100": { - "title": "Restrict PDF Form Field to Integer 0‑100", - "filename": "restrict-pdf-form-field-to-integer-0-100.cs", - "description": "Shows how to limit a PDF form text field named \"Score\" to accept only integer values between 0 and 100 using Aspose.Pdf.Facades FormEditor with field limits and JavaScript validation.", + "copy-pdf-form-field-content": { + "title": "Copy Pdf Form Field Content", + "filename": "copy-pdf-form-field-content.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "copy-rename-pdf-form-field": { + "title": "Copy and Rename PDF Form Field on a Specific Page", + "filename": "copy-rename-pdf-form-field.cs", + "description": "Demonstrates how to copy the outer definition of an existing PDF form field to a different page and then rename it using Aspose.Pdf.Facades.FormEditor.", "tags": [ "pdf", "form", - "validation", - "aspose-pdf", - "csharp" + "copy-field", + "rename-field", + "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.FormEditor", - "FormEditor.SetFieldLimit", - "FormEditor.SetFieldScript", - "FormEditor.Save", - "FormEditor constructor" + "Aspose.Pdf.Facades.FormEditor.CopyOuterField", + "Aspose.Pdf.Facades.FormEditor.RenameField", + "Aspose.Pdf.Facades.FormEditor.Save", + "Aspose.Pdf.Facades.FormEditor.Dispose" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "attach-javascript-validation-to-pdf-form-field": { - "title": "Attach JavaScript Validation to PDF Form Field", - "filename": "attach-javascript-validation-to-pdf-form-field.cs", - "description": "Shows how to bind a PDF, add a JavaScript script to the \"Age\" form field that displays a warning when the entered value is less than 18, and save the modified PDF.", + "create-pdf-form-fields-from-json": { + "title": "Create PDF Form Fields from JSON Definitions", + "filename": "create-pdf-form-fields-from-json.cs", + "description": "Demonstrates reading a JSON file with field specifications and adding matching form fields to a newly created PDF using Aspose.Pdf.", "tags": [ - "javascript", - "pdf-form", - "validation", - "aspose-pdf", - "facade" + "pdf", + "form", + "json", + "aspose", + "csharp" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.BindPdf", - "Aspose.Pdf.Facades.FormEditor.SetFieldScript", - "Aspose.Pdf.Facades.FormEditor.Save" + "Aspose.Pdf.Facades.FormEditor.AddField", + "Aspose.Pdf.Facades.FieldType" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "copy-image-field-to-another-field": { - "title": "Copy Image Field Content to Another Field in PDF", - "filename": "copy-image-field-to-another-field.cs", - "description": "Demonstrates how to copy the inner content of an existing image form field to a new image field in the same PDF using Aspose.Pdf.Facades.FormEditor.", + "decorate-checkbox-fields-in-pdfs": { + "title": "Decorate All Checkbox Fields in PDFs", + "filename": "decorate-checkbox-fields-in-pdfs.cs", + "description": "Demonstrates how to apply a visual decoration to every checkbox form field in multiple PDF documents within a folder using Aspose.Pdf.Facades.", "tags": [ - "pdf", + "checkbox", "form", - "image-field", - "copy", - "aspose-pdf" + "pdf", + "decoration", + "batch" ], "apis_used": [ "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.CopyInnerField", + "Aspose.Pdf.Facades.FormFieldFacade", + "Aspose.Pdf.Facades.FormEditor.BindPdf", "Aspose.Pdf.Facades.FormEditor.Save", - "Aspose.Pdf.Facades.FormEditor.Close" + "Aspose.Pdf.Facades.FormEditor.DecorateField", + "Aspose.Pdf.Facades.FormEditor.Facade", + "Aspose.Pdf.Facades.FieldType.CheckBox" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "remove-empty-pdf-form-field": { - "title": "Remove Empty PDF Form Field", - "filename": "remove-empty-pdf-form-field.cs", - "description": "Shows how to read a PDF form field value and delete the field with Aspose.Pdf when it is empty or missing.", + "decorate-list-box-fields": { + "title": "Decorate List Box Fields", + "filename": "decorate-list-box-fields.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "decorate-list-fields-uniform-border": { + "title": "Decorate List Fields with Uniform Border and Background", + "filename": "decorate-list-fields-uniform-border.cs", + "description": "Demonstrates applying a consistent background color and border style to all list-type form fields in a PDF using Aspose.Pdf Facades.", "tags": [ "pdf", - "form", - "field-removal", - "aspose-pdf", - "csharp" + "form-fields", + "border", + "background", + "aspose" ], "apis_used": [ - "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.GetField", "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.BindPdf", - "Aspose.Pdf.Facades.FormEditor.RemoveField", - "Aspose.Pdf.Facades.FormEditor.Save" + "Aspose.Pdf.Facades.FormFieldFacade", + "Aspose.Pdf.Facades.FormEditor.DecorateField", + "Aspose.Pdf.Facades.FormEditor.Save", + "Aspose.Pdf.Facades.FieldType" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "rename-pdf-form-fields-csv-mapping": { - "title": "Rename PDF Form Fields Using CSV Mapping", - "filename": "rename-pdf-form-fields-csv-mapping.cs", - "description": "Demonstrates creating a PDF with a form field, loading a CSV file of old‑new field name pairs, and renaming the fields in the PDF using Aspose.Pdf's FormEditor facade.", + "decorate-pdf-form-field-appearance": { + "title": "Decorate PDF Form Field with Custom Appearance", + "filename": "decorate-pdf-form-field-appearance.cs", + "description": "Demonstrates how to set a custom border color, background shade, and font style for a specific PDF form field using Aspose.Pdf.Facades.", "tags": [ "pdf", - "form", - "rename", - "csv", - "facade" + "form-field", + "appearance", + "border-color", + "font-style" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Rectangle", "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.RenameField", + "Aspose.Pdf.Facades.FormFieldFacade", + "Aspose.Pdf.Facades.FontStyle", + "Aspose.Pdf.Facades.FormEditor.DecorateField", "Aspose.Pdf.Facades.FormEditor.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "add-digital-signature-field-and-sign-pdf": { - "title": "Add Digital Signature Field and Sign PDF", - "filename": "add-digital-signature-field-and-sign-pdf.cs", - "description": "Shows how to add a visible signature field to a PDF page and apply a digital signature using Aspose.Pdf facades.", + "decorate-pdf-form-field-background-image": { + "title": "Decorate Pdf Form Field Background Image", + "filename": "decorate-pdf-form-field-background-image.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "decorate-pdf-form-field-with-header-image": { + "title": "Decorate PDF Form Field with Centered Text and Header Image", + "filename": "decorate-pdf-form-field-with-header-image.cs", + "description": "Shows how to set centered text alignment for a PDF form field using FormFieldFacade and then add a background image as a page header with PdfFileStamp.", "tags": [ - "digital-signature", - "pdf", - "form-editor", - "pdffilesignature", - "csharp" + "form-field", + "background-image", + "text-alignment", + "Aspose.Pdf", + "PdfFileStamp" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.PdfFileSignature", - "Aspose.Pdf.Forms.PKCS1", - "FormEditor.AddField", - "PdfFileSignature.BindPdf", - "PdfFileSignature.Sign" + "Aspose.Pdf.Facades.FormFieldFacade", + "Aspose.Pdf.Facades.FormEditor.DecorateField", + "Aspose.Pdf.Facades.FormEditor.Save", + "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.Facades.PdfFileStamp.AddHeader", + "Aspose.Pdf.Facades.PdfFileStamp.Close" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "mark-pdf-form-field-required": { - "title": "Mark PDF Form Field as Required with Asterisk", - "filename": "mark-pdf-form-field-required.cs", - "description": "Demonstrates how to set a form field to required using Aspose.Pdf.Facades.FormEditor, which automatically shows the asterisk indicator in PDF viewers.", + "duplicate-pdf-form-field": { + "title": "Duplicate PDF Form Field Using FormEditor", + "filename": "duplicate-pdf-form-field.cs", + "description": "Demonstrates how to copy an existing form field named \"Signature\" to a new field \"SignatureCopy\" on the same page using Aspose.Pdf.Facades.FormEditor.", "tags": [ "pdf", "form", - "required", + "duplicate", "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.SetFieldAttribute", + "Aspose.Pdf.Facades.FormEditor.CopyInnerField", "Aspose.Pdf.Facades.FormEditor.Save", - "Aspose.Pdf.Facades.PropertyFlag" + "Aspose.Pdf.Facades.FormEditor.Dispose", + "Aspose.Pdf.Facades.FormEditor.FormEditor(string, string)" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "apply-custom-font-to-pdf-form-text-fields": { - "title": "Apply Custom Font to All PDF Form Text Fields", - "filename": "apply-custom-font-to-pdf-form-text-fields.cs", - "description": "Demonstrates how to set a custom font (e.g., Arial Bold) for every text field in a PDF form using Aspose.Pdf's FormEditor and FormFieldFacade.", + "enable-rich-text-formatting-for-pdf-form-field": { + "title": "Enable Rich Text Formatting For Pdf Form Field", + "filename": "enable-rich-text-formatting-for-pdf-form-field.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "export-checkbox-fields-to-fdf": { + "title": "Export Checkbox Form Fields to FDF", + "filename": "export-checkbox-fields-to-fdf.cs", + "description": "Shows how to load a PDF document and use the Form facade to export its form fields to an FDF file, which can then be filtered to keep only checkbox definitions.", "tags": [ "pdf", "form", - "custom-font", - "facade", - "aspnet" + "fdf", + "checkbox", + "export" ], "apis_used": [ - "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormFieldFacade", - "Aspose.Pdf.Facades.FieldType", - "Aspose.Pdf.Facades.FormEditor.DecorateField", - "Aspose.Pdf.Facades.FormEditor.Facade" + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.Form.ExportFdf" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "batch-add-selectall-checkbox-to-pdf": { - "title": "Batch Add SelectAll Checkbox to First Page of PDFs", - "filename": "batch-add-selectall-checkbox-to-pdf.cs", - "description": "Shows how to process multiple PDF files in a directory and use Aspose.Pdf.Facades.FormEditor to add a 'SelectAll' checkbox field on the first page of each PDF, saving the modified files to an output folder.", + "export-checkboxes-to-fdf": { + "title": "Export Checkboxes To Fdf", + "filename": "export-checkboxes-to-fdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "export-import-pdf-form-fields-xml": { + "title": "Export Import Pdf Form Fields Xml", + "filename": "export-import-pdf-form-fields-xml.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "export-import-pdf-form-xml": { + "title": "Export and Import PDF Form Data as XML", + "filename": "export-import-pdf-form-xml.cs", + "description": "Shows how to export form field values from a PDF to an XML file and later re‑import the XML back into a PDF using Aspose.Pdf.", "tags": [ "pdf", - "checkbox", "form", - "batch", - "aspose" + "xml", + "export", + "import" ], "apis_used": [ - "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.BindPdf", - "Aspose.Pdf.Facades.FormEditor.AddField", - "Aspose.Pdf.Facades.FormEditor.Save", - "Aspose.Pdf.Facades.FieldType" + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.Form.ExportXml", + "Aspose.Pdf.Facades.Form.ImportXml", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "move-footernote-to-bottom-margin": { - "title": "Move FooterNote Field to Bottom Margin on Each PDF Page", - "filename": "move-footernote-to-bottom-margin.cs", - "description": "Shows how to copy an existing form field to every page of a PDF and place it at the bottom margin using calculated coordinates.", + "export-pdf-form-field-layout-to-json": { + "title": "Export PDF Form Field Layout to JSON", + "filename": "export-pdf-form-field-layout-to-json.cs", + "description": "Demonstrates how to read the coordinates of each form field in a PDF using Aspose.Pdf.Facades and serialize the layout information to a JSON file for UI reconstruction.", "tags": [ - "form-fields", "pdf", - "footer", - "margin", - "copy-field" + "form", + "layout", + "json", + "export" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.CopyInnerField", - "Aspose.Pdf.Facades.FormEditor.Save" + "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.FormFieldFacade", + "Aspose.Pdf.Facades.Form.FieldNames", + "Aspose.Pdf.Facades.Form.GetFieldFacade", + "Aspose.Pdf.Facades.FormFieldFacade.Position" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "set-field-appearance-format-price": { - "title": "Set Form Field Appearance and Format Price to Two Decimals", - "filename": "set-field-appearance-format-price.cs", - "description": "Demonstrates how to set the appearance flags of a PDF form field and fill the \"Price\" field with a value formatted to two decimal places using Aspose.Pdf.", + "export-pdf-form-fields-to-fdf": { + "title": "Export PDF Form Fields to FDF", + "filename": "export-pdf-form-fields-to-fdf.cs", + "description": "Demonstrates loading a PDF form with the Form facade and exporting all its form fields to an FDF file for external processing.", "tags": [ - "form", - "field-appearance", - "price-format", "pdf", - "aspose" + "form", + "fdf", + "export", + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.FormEditor", "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Annotations.AnnotationFlags", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.Form.ExportFdf" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "attach-javascript-to-pdf-form-field": { - "title": "Attach JavaScript to PDF Form Field for Auto-Calculating Total Price", - "filename": "attach-javascript-to-pdf-form-field.cs", - "description": "Shows how to load a PDF, retrieve the Quantity and TotalPrice form fields, attach a JavaScript OnCalculate action that computes TotalPrice from Quantity and UnitPrice, and save the modified document.", + "export-pdf-form-fields-to-json": { + "title": "Export PDF Form Fields to JSON", + "filename": "export-pdf-form-fields-to-json.cs", + "description": "Shows how to use Aspose.Pdf.Facades.Form to export all form field definitions from a PDF document into a pretty‑printed JSON file.", "tags": [ "pdf", - "javascript", "form", - "calculation", - "aspose" + "export", + "json", + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.FormField", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.Form.ExportJson" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "export-import-pdf-form-xml": { - "title": "Export and Import PDF Form Data as XML", - "filename": "export-import-pdf-form-xml.cs", - "description": "Shows how to export form field values from a PDF to an XML file and later re‑import the XML back into a PDF using Aspose.Pdf.", + "hide-form-field-exportable": { + "title": "Hide Form Field Exportable", + "filename": "hide-form-field-exportable.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "import-checkboxes-from-fdf": { + "title": "Import Checkboxes from FDF and Merge into PDF", + "filename": "import-checkboxes-from-fdf.cs", + "description": "Shows how to import checkbox definitions and values from an FDF file into an existing PDF form and merge them without creating duplicate fields using Aspose.Pdf.Facades.", "tags": [ - "pdf", + "fdf", + "checkbox", "form", - "xml", - "export", - "import" + "merge", + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.ExportXml", - "Aspose.Pdf.Facades.Form.ImportXml", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Facades.Form.ImportFdf", + "Aspose.Pdf.Facades.Form.Save", + "Aspose.Pdf.Facades.Form.Close" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, + "import-form-field-layout-from-json": { + "title": "Import Form Field Layout From Json", + "filename": "import-form-field-layout-from-json.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "import-pdf-form-fields-from-xml-preserve-order": { "title": "Import PDF Form Fields from XML Preserving Order", "filename": "import-pdf-form-fields-from-xml-preserve-order.cs", @@ -1174,46 +1408,108 @@ "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "add-list-box-field-to-pdf-form": { - "title": "Add List Box Field to PDF Form", - "filename": "add-list-box-field-to-pdf-form.cs", - "description": "Demonstrates how to create a ListBox form field in a PDF, populate it with items, set a default value, and save the updated document using Aspose.Pdf.", + "import-pdf-form-fields-from-xml": { + "title": "Import Pdf Form Fields From Xml", + "filename": "import-pdf-form-fields-from-xml.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "import-pdf-form-layout-from-json": { + "title": "Import PDF Form Layout from JSON", + "filename": "import-pdf-form-layout-from-json.cs", + "description": "Creates a JSON layout file, deserializes it, and adds the defined form fields to a new PDF document using Aspose.Pdf.", + "tags": [ + "pdf", + "form", + "json", + "layout", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.FormEditor", + "Aspose.Pdf.Facades.FormEditor.AddField", + "Aspose.Pdf.Facades.FieldType" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:51:01Z", + "status": "verified" + }, + "import-xfdf-data-into-pdf-form-fields": { + "title": "Import Xfdf Data Into Pdf Form Fields", + "filename": "import-xfdf-data-into-pdf-form-fields.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "import-xfdf-data-into-pdf-form": { + "title": "Import XFDF Data into PDF Form", + "filename": "import-xfdf-data-into-pdf-form.cs", + "description": "Shows how to import form field values from an XFDF file into an existing PDF using Aspose.Pdf.Facades.Form and save the updated document.", + "tags": [ + "xfdf", + "form", + "pdf", + "aspose-pdf", + "facade" + ], + "apis_used": [ + "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.Form.ImportXfdf", + "Aspose.Pdf.Facades.Form.Save", + "Aspose.Pdf.Facades.Form(string, string)", + "Aspose.Pdf.Facades.Form.Dispose" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:51:01Z", + "status": "verified" + }, + "make-taxrate-readonly-add-js": { + "title": "Make TaxRate Read‑Only and Add JavaScript Calculation", + "filename": "make-taxrate-readonly-add-js.cs", + "description": "Shows how to set a PDF form field to read‑only and attach JavaScript that computes its value from the Subtotal field using Aspose.Pdf.", "tags": [ "pdf", "form", - "listbox", - "aspose", - "csharp" + "readonly", + "javascript", + "calculation" ], "apis_used": [ - "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.BindPdf", - "Aspose.Pdf.Facades.FormEditor.AddField", - "Aspose.Pdf.Facades.FormEditor.Items", "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.FormEditor", + "Aspose.Pdf.Forms.PropertyFlag", + "FormEditor.SetFieldAttribute", + "FormEditor.SetFieldScript", + "Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "remove-button-fields-from-pdf-form": { - "title": "Remove Button Fields from PDF Form", - "filename": "remove-button-fields-from-pdf-form.cs", - "description": "Demonstrates how to load a PDF, identify all button form fields, and delete them using Aspose.Pdf to simplify the form.", + "mark-pdf-form-field-required": { + "title": "Mark PDF Form Field as Required with Asterisk", + "filename": "mark-pdf-form-field-required.cs", + "description": "Demonstrates how to set a form field to required using Aspose.Pdf.Facades.FormEditor, which automatically shows the asterisk indicator in PDF viewers.", "tags": [ "pdf", "form", - "button", - "remove", - "aspose" + "required", + "aspose", + "csharp" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.ButtonField", - "Aspose.Pdf.Forms.Form.Delete" + "Aspose.Pdf.Facades.FormEditor", + "Aspose.Pdf.Facades.FormEditor.SetFieldAttribute", + "Aspose.Pdf.Facades.FormEditor.Save", + "Aspose.Pdf.Facades.PropertyFlag" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:51:01Z", @@ -1240,97 +1536,145 @@ "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "add-email-validation-to-pdf-form-field": { - "title": "Add Email Validation to PDF Form Field", - "filename": "add-email-validation-to-pdf-form-field.cs", - "description": "Demonstrates how to attach JavaScript to a PDF form field using Aspose.Pdf to validate email addresses with a regular expression.", + "merge-pdfs-unique-form-fields": { + "title": "Merge Pdfs Unique Form Fields", + "filename": "merge-pdfs-unique-form-fields.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "move-footernote-to-bottom-margin": { + "title": "Move FooterNote Field to Bottom Margin on Each PDF Page", + "filename": "move-footernote-to-bottom-margin.cs", + "description": "Shows how to copy an existing form field to every page of a PDF and place it at the bottom margin using calculated coordinates.", "tags": [ + "form-fields", "pdf", - "form", - "validation", - "javascript", - "email" + "footer", + "margin", + "copy-field" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.SetFieldScript", - "Aspose.Pdf.Facades.FormEditor.Save", - "Aspose.Pdf.Facades.FormEditor.SetFieldAttribute" + "Aspose.Pdf.Facades.FormEditor.CopyInnerField", + "Aspose.Pdf.Facades.FormEditor.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "decorate-pdf-form-field-with-header-image": { - "title": "Decorate PDF Form Field with Centered Text and Header Image", - "filename": "decorate-pdf-form-field-with-header-image.cs", - "description": "Shows how to set centered text alignment for a PDF form field using FormFieldFacade and then add a background image as a page header with PdfFileStamp.", + "move-form-field-to-bottom-margin": { + "title": "Move Form Field To Bottom Margin", + "filename": "move-form-field-to-bottom-margin.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "move-pdf-form-field-to-top-left": { + "title": "Move PDF Form Field to Top‑Left Corner", + "filename": "move-pdf-form-field-to-top-left.cs", + "description": "Demonstrates how to reposition a form field named \"Logo\" to the top‑left corner of the first page with a specific width and height, then save the updated PDF.", "tags": [ "form-field", - "background-image", - "text-alignment", - "Aspose.Pdf", - "PdfFileStamp" + "position", + "pdf", + "aspose", + "facades" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormFieldFacade", - "Aspose.Pdf.Facades.FormEditor.DecorateField", + "Aspose.Pdf.Facades.FormEditor.MoveField", "Aspose.Pdf.Facades.FormEditor.Save", - "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.PdfFileStamp.AddHeader", - "Aspose.Pdf.Facades.PdfFileStamp.Close" + "Aspose.Pdf.PageInfo.Height" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "add-hidden-version-field-to-pdf": { - "title": "Add Hidden Version Field to PDF", - "filename": "add-hidden-version-field-to-pdf.cs", - "description": "Shows how to insert a hidden numeric field named \"Version\" with a value of 2 into a PDF using Aspose.Pdf's FormEditor facade.", + "move-pdf-form-field": { + "title": "Move PDF Form Field to New Position", + "filename": "move-pdf-form-field.cs", + "description": "Shows how to relocate an existing form field to specific coordinates on a chosen page of a PDF using Aspose.Pdf.Facades.FormEditor.", "tags": [ "pdf", "form", - "hidden-field", - "version", - "aspose" + "move-field", + "aspose", + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.BindPdf", - "Aspose.Pdf.Facades.FormEditor.AddField", - "Aspose.Pdf.Facades.FormEditor.SetFieldAttribute", - "Aspose.Pdf.Facades.FormEditor.Save" + "FormEditor.BindPdf", + "FormEditor.MoveField", + "FormEditor.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "copy-rename-pdf-form-field": { - "title": "Copy and Rename PDF Form Field on a Specific Page", - "filename": "copy-rename-pdf-form-field.cs", - "description": "Demonstrates how to copy the outer definition of an existing PDF form field to a different page and then rename it using Aspose.Pdf.Facades.FormEditor.", + "move-pdf-form-fields-by-offset": { + "title": "Move PDF Form Fields by Offset", + "filename": "move-pdf-form-fields-by-offset.cs", + "description": "Shows how to shift every form field in a PDF document by a specified X/Y offset using Aspose.Pdf's FormEditor.", "tags": [ "pdf", "form", - "copy-field", - "rename-field", + "field", + "offset", "aspose" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.CopyOuterField", - "Aspose.Pdf.Facades.FormEditor.RenameField", + "Aspose.Pdf.Facades.FormEditor.BindPdf", + "Aspose.Pdf.Facades.FormEditor.MoveField", "Aspose.Pdf.Facades.FormEditor.Save", - "Aspose.Pdf.Facades.FormEditor.Dispose" + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, + "move-pdf-form-fields-page-2": { + "title": "Move PDF Form Fields on Page 2 by 5 Points", + "filename": "move-pdf-form-fields-page-2.cs", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfPageEditor to shift the content and form fields on a specific PDF page by a given offset, adjusting the margin.", + "tags": [ + "pdf", + "form-fields", + "page-editing", + "margin-adjustment", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfPageEditor", + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages", + "Aspose.Pdf.Facades.PdfPageEditor.MovePosition", + "Aspose.Pdf.Facades.PdfPageEditor.Save" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:51:01Z", + "status": "verified" + }, + "move-signature-field-to-lower-right-corner-page-5": { + "title": "Move Signature Field To Lower Right Corner Page 5", + "filename": "move-signature-field-to-lower-right-corner-page-5.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "move-signature-field-to-lower-right-corner": { "title": "Move Signature Form Field to Lower Right Corner on Page 5", "filename": "move-signature-field-to-lower-right-corner.cs", @@ -1351,110 +1695,122 @@ "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "set-rich-text-appearance-for-pdf-form-field": { - "title": "Set Rich Text Appearance for PDF Form Field", - "filename": "set-rich-text-appearance-for-pdf-form-field.cs", - "description": "Shows how to locate a RichTextBoxField in a PDF, configure its default appearance, enable multiline, spell‑check and scrolling, and then save the updated document.", + "populate-country-list-box-pdf": { + "title": "Populate PDF List Box with Country Names", + "filename": "populate-country-list-box-pdf.cs", + "description": "Demonstrates creating a PDF with a ListBox form field and programmatically adding 195 country items to it using Aspose.Pdf's FormEditor.", "tags": [ - "rich-text", - "pdf-form", - "default-appearance", + "pdf", + "listbox", + "form-fields", "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.RichTextBoxField", - "Aspose.Pdf.Text.DefaultAppearance", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.ListBoxField", + "Aspose.Pdf.Facades.FormEditor", + "Aspose.Pdf.Facades.FormEditor.BindPdf", + "Aspose.Pdf.Facades.FormEditor.AddListItem", + "Aspose.Pdf.Facades.FormEditor.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "add-form-load-javascript-to-pdf": { - "title": "Add Form Load JavaScript to PDF", - "filename": "add-form-load-javascript-to-pdf.cs", - "description": "Demonstrates how to attach a document‑level JavaScript action that populates a form field named \"Date\" with the current date when the PDF is opened, using Aspose.Pdf.Facades.", - "tags": [ - "javascript", - "pdf", - "form", - "document-open", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "PdfContentEditor.BindPdf", - "PdfContentEditor.AddDocumentAdditionalAction", - "PdfContentEditor.Save", - "PdfContentEditor.DocumentOpen" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:51:01Z", + "populate-pdf-listbox-with-country-names": { + "title": "Populate Pdf Listbox With Country Names", + "filename": "populate-pdf-listbox-with-country-names.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "export-checkbox-fields-to-fdf": { - "title": "Export Checkbox Form Fields to FDF", - "filename": "export-checkbox-fields-to-fdf.cs", - "description": "Shows how to load a PDF document and use the Form facade to export its form fields to an FDF file, which can then be filtered to keep only checkbox definitions.", + "remove-button-fields-from-pdf-form": { + "title": "Remove Button Fields from PDF Form", + "filename": "remove-button-fields-from-pdf-form.cs", + "description": "Demonstrates how to load a PDF, identify all button form fields, and delete them using Aspose.Pdf to simplify the form.", "tags": [ "pdf", "form", - "fdf", - "checkbox", - "export" + "button", + "remove", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.ExportFdf" + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.ButtonField", + "Aspose.Pdf.Forms.Form.Delete" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "import-checkboxes-from-fdf": { - "title": "Import Checkboxes from FDF and Merge into PDF", - "filename": "import-checkboxes-from-fdf.cs", - "description": "Shows how to import checkbox definitions and values from an FDF file into an existing PDF form and merge them without creating duplicate fields using Aspose.Pdf.Facades.", + "remove-empty-pdf-form-field": { + "title": "Remove Empty PDF Form Field", + "filename": "remove-empty-pdf-form-field.cs", + "description": "Shows how to read a PDF form field value and delete the field with Aspose.Pdf when it is empty or missing.", "tags": [ - "fdf", - "checkbox", + "pdf", "form", - "merge", - "aspose-pdf" + "field-removal", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.ImportFdf", - "Aspose.Pdf.Facades.Form.Save", - "Aspose.Pdf.Facades.Form.Close" + "Aspose.Pdf.Facades.Form.GetField", + "Aspose.Pdf.Facades.FormEditor", + "Aspose.Pdf.Facades.FormEditor.BindPdf", + "Aspose.Pdf.Facades.FormEditor.RemoveField", + "Aspose.Pdf.Facades.FormEditor.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "add-state-combobox-to-pdf": { - "title": "Add State Combo Box to PDF Form", - "filename": "add-state-combobox-to-pdf.cs", - "description": "Shows how to insert a combo box field named \"State\" into an existing PDF and fill it with US state abbreviations using Aspose.Pdf.Facades.", + "remove-form-field-from-pdf": { + "title": "Remove Form Field From Pdf", + "filename": "remove-form-field-from-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "remove-list-item-from-pdf-form-field": { + "title": "Remove List Item From Pdf Form Field", + "filename": "remove-list-item-from-pdf-form-field.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "remove-list-item-from-pdf-form": { + "title": "Remove List Item from PDF Form Field", + "filename": "remove-list-item-from-pdf-form.cs", + "description": "Shows how to delete a specific list item (Option B) from a list field (Choices) in an AcroForm PDF using Aspose.Pdf.Facades.FormEditor.", "tags": [ "pdf", "form", - "combobox", - "aspose", - "us-states" + "list-item", + "delete", + "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FieldType", - "FormEditor.AddField", - "FormEditor.AddListItem", - "FormEditor.Save" + "Aspose.Pdf.Facades.FormEditor.BindPdf", + "Aspose.Pdf.Facades.FormEditor.DelListItem", + "Aspose.Pdf.Facades.FormEditor.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, @@ -1483,51 +1839,107 @@ "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "make-taxrate-readonly-add-js": { - "title": "Make TaxRate Read‑Only and Add JavaScript Calculation", - "filename": "make-taxrate-readonly-add-js.cs", - "description": "Shows how to set a PDF form field to read‑only and attach JavaScript that computes its value from the Subtotal field using Aspose.Pdf.", + "remove-pdf-form-field": { + "title": "Remove PDF Form Field", + "filename": "remove-pdf-form-field.cs", + "description": "Shows how to delete an existing form field from a PDF document using Aspose.Pdf.Facades.FormEditor.", "tags": [ "pdf", "form", - "readonly", - "javascript", - "calculation" + "remove-field", + "aspose", + "csharp" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Forms.PropertyFlag", - "FormEditor.SetFieldAttribute", - "FormEditor.SetFieldScript", - "Document.Save" + "FormEditor.BindPdf", + "FormEditor.RemoveField", + "FormEditor.Save" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:51:01Z", + "status": "verified" + }, + "remove-temporary-form-fields-from-pdf": { + "title": "Remove Temporary Form Fields from PDF", + "filename": "remove-temporary-form-fields-from-pdf.cs", + "description": "Shows how to locate and delete PDF form fields whose names start with \"Temp_\" using Aspose.Pdf's Form and FormEditor classes.", + "tags": [ + "pdf", + "form", + "remove-fields", + "aspose", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.Form.FieldNames", + "Aspose.Pdf.Facades.FormEditor", + "Aspose.Pdf.Facades.FormEditor.RemoveField", + "Aspose.Pdf.Document" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "decorate-list-fields-uniform-border": { - "title": "Decorate List Fields with Uniform Border and Background", - "filename": "decorate-list-fields-uniform-border.cs", - "description": "Demonstrates applying a consistent background color and border style to all list-type form fields in a PDF using Aspose.Pdf Facades.", + "rename-pdf-form-field": { + "title": "Rename PDF Form Field Using FormEditor", + "filename": "rename-pdf-form-field.cs", + "description": "Shows how to create a PDF with a form field and rename that field from \"OldName\" to \"NewName\" using Aspose.Pdf.Facades.FormEditor.", "tags": [ "pdf", - "form-fields", - "border", - "background", - "aspose" + "form", + "rename", + "aspose", + "facade" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Forms.TextBoxField", "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormFieldFacade", - "Aspose.Pdf.Facades.FormEditor.DecorateField", - "Aspose.Pdf.Facades.FormEditor.Save", - "Aspose.Pdf.Facades.FieldType" + "Aspose.Pdf.Facades.FormEditor.BindPdf", + "Aspose.Pdf.Facades.FormEditor.RenameField", + "Aspose.Pdf.Facades.FormEditor.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, + "rename-pdf-form-fields-csv-mapping": { + "title": "Rename PDF Form Fields Using CSV Mapping", + "filename": "rename-pdf-form-fields-csv-mapping.cs", + "description": "Demonstrates creating a PDF with a form field, loading a CSV file of old‑new field name pairs, and renaming the fields in the PDF using Aspose.Pdf's FormEditor facade.", + "tags": [ + "pdf", + "form", + "rename", + "csv", + "facade" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Facades.FormEditor", + "Aspose.Pdf.Facades.FormEditor.RenameField", + "Aspose.Pdf.Facades.FormEditor.Save" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:51:01Z", + "status": "verified" + }, + "rename-pdf-form-fields-from-csv": { + "title": "Rename Pdf Form Fields From Csv", + "filename": "rename-pdf-form-fields-from-csv.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "rename-pdf-form-fields-to-camelcase": { "title": "Rename PDF Form Fields to camelCase", "filename": "rename-pdf-form-fields-to-camelcase.cs", @@ -1550,356 +1962,404 @@ "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "add-print-button-to-pdf": { - "title": "Add Print Button to PDF Using Aspose.Pdf", - "filename": "add-print-button-to-pdf.cs", - "description": "Shows how to insert a push‑button form field that triggers the PDF print dialog via JavaScript in an existing PDF document.", + "restrict-pdf-form-field-to-integer-0-100": { + "title": "Restrict PDF Form Field to Integer 0‑100", + "filename": "restrict-pdf-form-field-to-integer-0-100.cs", + "description": "Shows how to limit a PDF form text field named \"Score\" to accept only integer values between 0 and 100 using Aspose.Pdf.Facades FormEditor with field limits and JavaScript validation.", "tags": [ "pdf", "form", - "print", - "javascript", - "button" + "validation", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.BindPdf", - "Aspose.Pdf.Facades.FormEditor.AddField", - "Aspose.Pdf.Facades.FormEditor.AddFieldScript", - "Aspose.Pdf.Facades.FormEditor.Save", - "Aspose.Pdf.Facades.FieldType" + "FormEditor.SetFieldLimit", + "FormEditor.SetFieldScript", + "FormEditor.Save", + "FormEditor constructor" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "set-pdf-form-field-hidden-exportable": { - "title": "Set PDF Form Field to Hidden but Exportable", - "filename": "set-pdf-form-field-hidden-exportable.cs", - "description": "Shows how to hide a PDF form field while keeping it exportable using Aspose.Pdf's FormEditor and AnnotationFlags.", + "restrict-pdf-form-field-to-integer-range": { + "title": "Restrict Pdf Form Field To Integer Range", + "filename": "restrict-pdf-form-field-to-integer-range.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-custom-attribute-on-pdf-form-field": { + "title": "Attempt to Set Custom Attribute on PDF Form Field", + "filename": "set-custom-attribute-on-pdf-form-field.cs", + "description": "Demonstrates using FormEditor.SetFieldAttribute to set a predefined flag on a PDF form field and explains that arbitrary custom attributes like \"data-id\" cannot be set with the current API.", "tags": [ "pdf", "form", - "hidden-field", - "exportable", + "setfieldattribute", + "custom-attribute", "aspose" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.SetFieldAppearance", - "Aspose.Pdf.Annotations.AnnotationFlags", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.FormEditor.BindPdf", + "Aspose.Pdf.Facades.FormEditor.SetFieldAttribute", + "Aspose.Pdf.Facades.FormEditor.Save", + "Aspose.Pdf.Forms.PropertyFlag" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "copy-notes-to-summary": { - "title": "Copy Notes Field to Summary in PDF Form", - "filename": "copy-notes-to-summary.cs", - "description": "Shows how to read the value of a PDF form field and write it to another field using Aspose.Pdf.Facades.Form.", + "set-custom-image-background-for-signature-field": { + "title": "Set Custom Image Background for Signature Field", + "filename": "set-custom-image-background-for-signature-field.cs", + "description": "Shows how to modify an existing signature field's appearance by assigning a custom background image and visual properties using Aspose.Pdf's PdfFileSignature facade.", "tags": [ + "signature", + "custom-appearance", + "image-background", "pdf", - "form", - "field", - "aspose-pdf", - "csharp" + "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.Form", - "Form(string)", - "Form.GetField", - "Form.FillField", - "Form.Save" + "PdfFileSignature.BindPdf", + "PdfFileSignature.SignatureAppearance", + "PKCS1", + "SignatureCustomAppearance", + "PdfFileSignature.Sign", + "PdfFileSignature.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "move-pdf-form-fields-page-2": { - "title": "Move PDF Form Fields on Page 2 by 5 Points", - "filename": "move-pdf-form-fields-page-2.cs", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfPageEditor to shift the content and form fields on a specific PDF page by a given offset, adjusting the margin.", - "tags": [ - "pdf", - "form-fields", - "page-editing", - "margin-adjustment", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages", - "Aspose.Pdf.Facades.PdfPageEditor.MovePosition", - "Aspose.Pdf.Facades.PdfPageEditor.Save" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:51:01Z", + "set-date-field-format-in-pdf": { + "title": "Set Date Field Format In Pdf", + "filename": "set-date-field-format-in-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "set-numeric-validation-two-decimal-discount": { - "title": "Set Numeric Validation with Two Decimal Precision for PDF Form Field", - "filename": "set-numeric-validation-two-decimal-discount.cs", - "description": "Demonstrates how to add a text box field to a PDF and apply a JavaScript validation script that restricts input to numeric values with up to two decimal places, using Aspose.Pdf.", + "set-date-field-format": { + "title": "Set Date Field Format in PDF Form", + "filename": "set-date-field-format.cs", + "description": "Demonstrates how to locate a DateField in a PDF form and change its display format to \"MM/dd/yyyy\" using Aspose.Pdf.", "tags": [ "pdf", "form", - "validation", - "javascript", + "datefield", + "format", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.SetFieldScript", - "Aspose.Pdf.Facades.FormEditor.SetFieldLimit", - "Aspose.Pdf.Facades.FormEditor.Save" + "Aspose.Pdf.Forms.DateField", + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "add-confirmation-dialog-to-pdf-submit-button": { - "title": "Add Confirmation Dialog to PDF Submit Button", - "filename": "add-confirmation-dialog-to-pdf-submit-button.cs", - "description": "Shows how to use Aspose.Pdf.Facades.FormEditor to attach JavaScript that displays a confirmation dialog before submitting a PDF form.", + "set-field-appearance-format-price": { + "title": "Set Form Field Appearance and Format Price to Two Decimals", + "filename": "set-field-appearance-format-price.cs", + "description": "Demonstrates how to set the appearance flags of a PDF form field and fill the \"Price\" field with a value formatted to two decimal places using Aspose.Pdf.", "tags": [ - "pdf", - "javascript", "form", - "confirmation", - "facade" + "field-appearance", + "price-format", + "pdf", + "aspose" ], - "apis_used": [ - "FormEditor", - "FormEditor.BindPdf", - "FormEditor.AddFieldScript", - "FormEditor.Save", - "FormEditor.Dispose" + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.FormEditor", + "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Annotations.AnnotationFlags", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "add-gender-radio-button-group": { - "title": "Add Gender Radio Button Group to PDF Form", - "filename": "add-gender-radio-button-group.cs", - "description": "Shows how to insert a radio button group named \"Gender\" with options Male, Female, and Other, and set a default selection in an existing PDF using Aspose.Pdf.", + "set-form-field-alignment-to-center": { + "title": "Set Form Field Alignment to Center", + "filename": "set-form-field-alignment-to-center.cs", + "description": "Shows how to center‑align a PDF form field named \"Address\" using Aspose.Pdf.Facades FormEditor.", "tags": [ "pdf", "form", - "radio-button", + "alignment", "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.FormEditor", - "FormEditor.BindPdf", - "FormEditor.AddField", - "FormEditor.Save", - "Aspose.Pdf.Facades.FieldType" + "Aspose.Pdf.Facades.FormEditor.SetFieldAlignment", + "Aspose.Pdf.Facades.FormEditor.Save", + "Aspose.Pdf.Facades.FormFieldFacade", + "Aspose.Pdf.Facades.FormFieldFacade.AlignCenter" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "remove-temporary-form-fields-from-pdf": { - "title": "Remove Temporary Form Fields from PDF", - "filename": "remove-temporary-form-fields-from-pdf.cs", - "description": "Shows how to locate and delete PDF form fields whose names start with \"Temp_\" using Aspose.Pdf's Form and FormEditor classes.", + "set-form-field-background-color": { + "title": "Set Form Field Background Color to Light Green", + "filename": "set-form-field-background-color.cs", + "description": "Demonstrates using FormEditor and FormFieldFacade to change the background color of the \"Status\" form field to light green and save the updated PDF.", "tags": [ - "pdf", "form", - "remove-fields", - "aspose", - "csharp" + "field", + "background-color", + "facade", + "pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.FieldNames", "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.RemoveField", - "Aspose.Pdf.Document" + "Aspose.Pdf.Facades.FormFieldFacade", + "Aspose.Pdf.Facades.FormEditor.DecorateField", + "Aspose.Pdf.Facades.FormEditor.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "convert-single-line-to-multiline-word-wrap": { - "title": "Convert Single‑Line Form Field to Multiline with Word Wrap", - "filename": "convert-single-line-to-multiline-word-wrap.cs", - "description": "Demonstrates how to change an existing single‑line PDF form field to a multiline field, enable automatic word wrapping, and save the updated document using Aspose.Pdf.", + "set-form-field-readonly-currency-appearance": { + "title": "Set Form Field to Read‑Only and Apply Currency Appearance", + "filename": "set-form-field-readonly-currency-appearance.cs", + "description": "Shows how to make a PDF form field read‑only and set its printable appearance (including currency formatting) using Aspose.Pdf Facades.", "tags": [ - "form", - "multiline", - "wordwrap", "pdf", - "aspose" + "form", + "readonly", + "appearance", + "currency" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.FormEditor.Single2Multiple", + "Aspose.Pdf.Facades.FormEditor", + "Aspose.Pdf.Facades.FormEditor.BindPdf", + "Aspose.Pdf.Facades.FormEditor.SetFieldAttribute", + "Aspose.Pdf.Facades.FormEditor.SetFieldAppearance", "Aspose.Pdf.Facades.FormEditor.Save", - "Aspose.Pdf.Facades.PdfFileMend", - "Aspose.Pdf.Facades.PdfFileMend.IsWordWrap", - "Aspose.Pdf.Facades.PdfFileMend.Save" + "Aspose.Pdf.PropertyFlag.ReadOnly", + "Aspose.Pdf.Annotations.AnnotationFlags.Print" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "add-hidden-authtoken-field-to-pdf": { - "title": "Add Hidden AuthToken Field to PDF", - "filename": "add-hidden-authtoken-field-to-pdf.cs", - "description": "Generates a secure random token, creates a zero‑size hidden TextBoxField named AuthToken, adds it to the PDF form, and saves the modified document.", + "set-numeric-limit-for-pdf-form-field": { + "title": "Set Numeric Limit for PDF Form Field", + "filename": "set-numeric-limit-for-pdf-form-field.cs", + "description": "Demonstrates how to open a PDF form, restrict the \"Quantity\" field to a maximum of three characters, add JavaScript validation for a numeric range of 1‑100, and save the updated document.", "tags": [ "pdf", - "hidden-field", - "auth-token", - "aspose-pdf", - "security" + "form", + "field-limit", + "validation", + "aspose" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.Form.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.FormEditor", + "Aspose.Pdf.Facades.FormEditor.BindPdf", + "Aspose.Pdf.Facades.FormEditor.SetFieldLimit", + "Aspose.Pdf.Facades.FormEditor.SetFieldScript", + "Aspose.Pdf.Facades.FormEditor.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "duplicate-pdf-form-field": { - "title": "Duplicate PDF Form Field Using FormEditor", - "filename": "duplicate-pdf-form-field.cs", - "description": "Demonstrates how to copy an existing form field named \"Signature\" to a new field \"SignatureCopy\" on the same page using Aspose.Pdf.Facades.FormEditor.", + "set-numeric-two-decimal-validation": { + "title": "Set Numeric Two Decimal Validation", + "filename": "set-numeric-two-decimal-validation.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-numeric-validation-two-decimal-discount": { + "title": "Set Numeric Validation with Two Decimal Precision for PDF Form Field", + "filename": "set-numeric-validation-two-decimal-discount.cs", + "description": "Demonstrates how to add a text box field to a PDF and apply a JavaScript validation script that restricts input to numeric values with up to two decimal places, using Aspose.Pdf.", "tags": [ "pdf", "form", - "duplicate", - "aspose", - "csharp" + "validation", + "javascript", + "aspose" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.TextBoxField", "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.CopyInnerField", - "Aspose.Pdf.Facades.FormEditor.Save", - "Aspose.Pdf.Facades.FormEditor.Dispose", - "Aspose.Pdf.Facades.FormEditor.FormEditor(string, string)" + "Aspose.Pdf.Facades.FormEditor.SetFieldScript", + "Aspose.Pdf.Facades.FormEditor.SetFieldLimit", + "Aspose.Pdf.Facades.FormEditor.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "move-pdf-form-field-to-top-left": { - "title": "Move PDF Form Field to Top‑Left Corner", - "filename": "move-pdf-form-field-to-top-left.cs", - "description": "Demonstrates how to reposition a form field named \"Logo\" to the top‑left corner of the first page with a specific width and height, then save the updated PDF.", + "set-pdf-form-field-attribute": { + "title": "Set Pdf Form Field Attribute", + "filename": "set-pdf-form-field-attribute.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-pdf-form-field-hidden-exportable": { + "title": "Set PDF Form Field to Hidden but Exportable", + "filename": "set-pdf-form-field-hidden-exportable.cs", + "description": "Shows how to hide a PDF form field while keeping it exportable using Aspose.Pdf's FormEditor and AnnotationFlags.", "tags": [ - "form-field", - "position", "pdf", - "aspose", - "facades" + "form", + "hidden-field", + "exportable", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.MoveField", - "Aspose.Pdf.Facades.FormEditor.Save", - "Aspose.Pdf.PageInfo.Height" + "Aspose.Pdf.Facades.FormEditor.SetFieldAppearance", + "Aspose.Pdf.Annotations.AnnotationFlags", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "apply-phone-number-input-mask": { - "title": "Apply Phone Number Input Mask to PDF Form Field", - "filename": "apply-phone-number-input-mask.cs", - "description": "Demonstrates how to attach JavaScript to a PDF form field using Aspose.Pdf to enforce a phone number input mask \"(###) ###‑####\".", + "set-pdf-form-field-required": { + "title": "Set Pdf Form Field Required", + "filename": "set-pdf-form-field-required.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-phone-number-field-limit": { + "title": "Set Maximum Character Length for PDF Form Field", + "filename": "set-phone-number-field-limit.cs", + "description": "Shows how to load a PDF with Aspose.Pdf.Facades.FormEditor, set a maximum character count for the \"PhoneNumber\" form field, and save the updated document.", "tags": [ "pdf", "form", - "javascript", - "input-mask", - "aspose-pdf" + "field-limit", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.SetFieldScript", - "Aspose.Pdf.Facades.FormEditor.Save", - "Aspose.Pdf.Facades.FormEditor.Close" + "Aspose.Pdf.Facades.FormEditor.BindPdf", + "Aspose.Pdf.Facades.FormEditor.SetFieldLimit", + "Aspose.Pdf.Facades.FormEditor.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "attach-js-resetform-clear-hidden-fields": { - "title": "Attach JavaScript to ResetForm Button to Clear Hidden Fields", - "filename": "attach-js-resetform-clear-hidden-fields.cs", - "description": "Shows how to bind a PDF with Aspose.Pdf.Facades.FormEditor, add JavaScript to a ResetForm button that resets the form and clears specified hidden fields, and then save the modified PDF.", + "set-rich-text-appearance-for-pdf-form-field": { + "title": "Set Rich Text Appearance for PDF Form Field", + "filename": "set-rich-text-appearance-for-pdf-form-field.cs", + "description": "Shows how to locate a RichTextBoxField in a PDF, configure its default appearance, enable multiline, spell‑check and scrolling, and then save the updated document.", "tags": [ - "pdf", - "javascript", - "form", - "reset", - "aspose" + "rich-text", + "pdf-form", + "default-appearance", + "aspose-pdf", + "csharp" ], "apis_used": [ - "FormEditor", - "FormEditor.BindPdf", - "FormEditor.AddFieldScript", - "FormEditor.Save" + "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.RichTextBoxField", + "Aspose.Pdf.Text.DefaultAppearance", + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "export-pdf-form-field-layout-to-json": { - "title": "Export PDF Form Field Layout to JSON", - "filename": "export-pdf-form-field-layout-to-json.cs", - "description": "Demonstrates how to read the coordinates of each form field in a PDF using Aspose.Pdf.Facades and serialize the layout information to a JSON file for UI reconstruction.", + "set-signature-field-border-width": { + "title": "Set Signature Field Border Width in PDF", + "filename": "set-signature-field-border-width.cs", + "description": "Demonstrates how to load a PDF, retrieve a form field named \"Signature\", and set its border thickness to 2 points using Aspose.Pdf.Facades.", "tags": [ "pdf", "form", - "layout", - "json", - "export" + "border", + "signature", + "aspose-pdf" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.FormFieldFacade", - "Aspose.Pdf.Facades.Form.FieldNames", "Aspose.Pdf.Facades.Form.GetFieldFacade", - "Aspose.Pdf.Facades.FormFieldFacade.Position" + "Aspose.Pdf.Facades.FormFieldFacade.BorderWidth", + "Aspose.Pdf.Facades.Form.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" }, - "import-pdf-form-layout-from-json": { - "title": "Import PDF Form Layout from JSON", - "filename": "import-pdf-form-layout-from-json.cs", - "description": "Creates a JSON layout file, deserializes it, and adds the defined form fields to a new PDF document using Aspose.Pdf.", + "set-taxrate-readonly-calc-js": { + "title": "Set Taxrate Readonly Calc Js", + "filename": "set-taxrate-readonly-calc-js.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-text-field-multiline": { + "title": "Set Text Field Multiline", + "filename": "set-text-field-multiline.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-text-field-to-multiline": { + "title": "Set Text Field to Multiline in PDF Form", + "filename": "set-text-field-to-multiline.cs", + "description": "Demonstrates how to convert the single‑line text field \"Comments\" into a multiline field using Aspose.Pdf.Facades.FormEditor.", "tags": [ "pdf", "form", - "json", - "layout", - "aspose" + "multiline", + "aspose", + "facades" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.AddField", - "Aspose.Pdf.Facades.FieldType" + "Aspose.Pdf.Facades.FormEditor.Single2Multiple", + "Aspose.Pdf.Facades.FormEditor.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:51:01Z", "status": "verified" } diff --git a/facades-metadata/AGENTS.md b/facades-metadata/AGENTS.md index 72e8a0a68..cc35a8154 100644 --- a/facades-metadata/AGENTS.md +++ b/facades-metadata/AGENTS.md @@ -8,7 +8,7 @@ parent: ../agents.md # AGENTS - facades-metadata -> **Facades metadata** in PDF using C# / .NET -- **40** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. +> **Facades metadata** in PDF using C# / .NET -- **58** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. ## Persona @@ -23,16 +23,16 @@ See the root [agents.md](../agents.md) for repository-wide conventions and bound ## Required Namespaces -- `using Aspose.Pdf.Facades;` (39/40 files) ← category-specific -- `using Aspose.Pdf;` (5/40 files) -- `using System;` (40/40 files) -- `using System.IO;` (35/40 files) -- `using System.Collections.Generic;` (4/40 files) -- `using System.Text.Json;` (2/40 files) -- `using System.Threading.Tasks;` (2/40 files) -- `using System.Collections.Concurrent;` (1/40 files) -- `using System.Linq;` (1/40 files) -- `using System.Text.RegularExpressions;` (1/40 files) +- `using Aspose.Pdf.Facades;` (39/58 files) ← category-specific +- `using Aspose.Pdf;` (5/58 files) +- `using System;` (40/58 files) +- `using System.IO;` (35/58 files) +- `using System.Collections.Generic;` (4/58 files) +- `using System.Text.Json;` (2/58 files) +- `using System.Threading.Tasks;` (2/58 files) +- `using System.Collections.Concurrent;` (1/58 files) +- `using System.Linq;` (1/58 files) +- `using System.Text.RegularExpressions;` (1/58 files) ## Common Code Pattern @@ -57,32 +57,32 @@ tool.Save("output.pdf"); | [apply-metadata-changes-to-multiple-pdfs-in-paralle...](./apply-metadata-changes-to-multiple-pdfs-in-parallel.cs) | Apply Metadata Changes to Multiple PDFs in Parallel | `PdfFileInfo`, `Title`, `Author` | Demonstrates how to update the Title, Author, and Subject metadata of several PDF files concurren... | | [audit-pdf-metadata-to-csv](./audit-pdf-metadata-to-csv.cs) | Audit PDF Metadata Changes and Log to CSV | `PdfFileInfo`, `Title`, `Author` | Demonstrates how to read existing PDF metadata with Aspose.Pdf.Facades, modify selected fields, s... | | [backup-and-update-pdf-metadata](./backup-and-update-pdf-metadata.cs) | Backup PDFs and Update Metadata with PdfFileInfo | `PdfFileInfo`, `Title`, `Author` | The example creates a backup of each PDF in a folder, then uses Aspose.Pdf.Facades.PdfFileInfo to... | +| [backup-pdfs-update-metadata](./backup-pdfs-update-metadata.cs) | Backup pdfs update metadata | | Backup pdfs update metadata | +| [check-custom-metadata-key](./check-custom-metadata-key.cs) | Check custom metadata key | | Check custom metadata key | | [convert-pdf-to-pdfa-1b-using-pdffileinfo](./convert-pdf-to-pdfa-1b-using-pdffileinfo.cs) | Convert PDF to PDF/A-1B Using PdfFileInfo | `PdfFileInfo`, `Document`, `Convert` | Demonstrates how to load a PDF with PdfFileInfo, convert it to PDF/A‑1B compliance, and save the ... | +| [convert-pdf-to-pdfa-1b-with-pdffileinfo](./convert-pdf-to-pdfa-1b-with-pdffileinfo.cs) | Convert pdf to pdfa 1b with pdffileinfo | | Convert pdf to pdfa 1b with pdffileinfo | | [export-pdf-metadata-to-json](./export-pdf-metadata-to-json.cs) | Export PDF Metadata to JSON | `PdfFileInfo`, `BindPdf`, `Title` | The program scans a folder for PDF files, extracts their metadata using Aspose.Pdf.Facades.PdfFil... | +| [handle-readonly-file-errors-saving-pdf-metadata](./handle-readonly-file-errors-saving-pdf-metadata.cs) | Handle readonly file errors saving pdf metadata | | Handle readonly file errors saving pdf metadata | | [handle-readonly-file-errors-when-saving-pdf-metada...](./handle-readonly-file-errors-when-saving-pdf-metadata.cs) | Handle Read‑Only File Errors When Saving PDF Metadata | `PdfFileInfo`, `Title`, `SaveNewInfo` | Demonstrates how to modify PDF metadata with Aspose.Pdf.Facades and reliably save it even when th... | | [import-json-metadata-to-pdf](./import-json-metadata-to-pdf.cs) | Import JSON Metadata and Apply to PDF Files | `PdfFileInfo`, `Title`, `Author` | The example reads a JSON file containing metadata definitions and applies the standard and custom... | +| [import-pdf-metadata-from-json](./import-pdf-metadata-from-json.cs) | Import pdf metadata from json | | Import pdf metadata from json | | [list-custom-pdf-metadata-keys](./list-custom-pdf-metadata-keys.cs) | List Custom PDF Metadata Keys Alphabetically | `PdfFileInfo`, `GetMetaInfo`, `Document` | Shows how to extract all custom metadata keys from a PDF, sort them alphabetically, and output ea... | | [load-pdf-retrieve-file-info-and-save](./load-pdf-retrieve-file-info-and-save.cs) | Load PDF, Retrieve File Info, and Save with Proper Disposal | `Document`, `PdfFileInfo`, `Save` | Demonstrates loading a PDF using Aspose.Pdf.Document inside a using block, accessing file‑level i... | | [merge-xmp-metadata-with-pdf-fileinfo](./merge-xmp-metadata-with-pdf-fileinfo.cs) | Merge XMP Metadata with PDF FileInfo | `Document`, `Info`, `Metadata` | Demonstrates how to combine standard PDF FileInfo metadata with custom XMP metadata in a PDF usin... | +| [preserve-pdf-metadata-add-version](./preserve-pdf-metadata-add-version.cs) | Preserve pdf metadata add version | | Preserve pdf metadata add version | | [read-custom-pdf-metadata-existence-check](./read-custom-pdf-metadata-existence-check.cs) | Read Custom PDF Metadata with Existence Check | `PdfFileInfo`, `GetMetaInfo` | Shows how to verify a PDF file exists and safely read a custom metadata key "Confidential" using ... | | [read-pdf-author-metadata](./read-pdf-author-metadata.cs) | Read PDF Author Metadata Using PdfFileInfo | `PdfFileInfo`, `Author` | Demonstrates how to open a PDF with Aspose.Pdf.Facades.PdfFileInfo and retrieve the Author metada... | | [read-pdf-creator-metadata](./read-pdf-creator-metadata.cs) | Read PDF Creator Metadata | `PdfFileInfo`, `Creator` | Shows how to use Aspose.Pdf.Facades.PdfFileInfo to retrieve the Creator metadata property from an... | +| [read-pdf-metadata-add-blank-page](./read-pdf-metadata-add-blank-page.cs) | Read pdf metadata add blank page | | Read pdf metadata add blank page | +| [read-pdf-metadata-safely](./read-pdf-metadata-safely.cs) | Read pdf metadata safely | | Read pdf metadata safely | | [read-pdf-metadata-with-null-handling](./read-pdf-metadata-with-null-handling.cs) | Read PDF Metadata with Null Handling | `PdfFileInfo`, `GetMetaInfo`, `Title` | Shows how to read custom and standard PDF metadata using PdfFileInfo and gracefully handle null o... | | [read-pdf-modification-date](./read-pdf-modification-date.cs) | Read PDF Modification Date with PdfFileInfo | `PdfFileInfo`, `ModDate`, `Dispose` | Shows how to use Aspose.Pdf.Facades.PdfFileInfo to obtain the ModDate metadata from a PDF and out... | | [read-pdf-title-metadata-log](./read-pdf-title-metadata-log.cs) | Read PDF Title Metadata and Write to Log | `PdfFileInfo`, `Title` | Demonstrates how to use Aspose.Pdf.Facades.PdfFileInfo to read the Title metadata from a PDF file... | -| [read-pdf-version](./read-pdf-version.cs) | Read PDF Version Using Aspose.Pdf Facade | `PdfFileInfo`, `BindPdf`, `GetPdfVersion` | Shows how to bind a PDF file with PdfFileInfo and retrieve its version string for later use. | -| [read-update-pdf-metadata](./read-update-pdf-metadata.cs) | Read and Update PDF Metadata | `PdfFileInfo`, `BindPdf`, `Title` | Demonstrates how to open a PDF, read its existing metadata, modify fields such as title and autho... | -| [remove-custom-pdf-metadata-entry](./remove-custom-pdf-metadata-entry.cs) | Remove Custom PDF Metadata Entry | `PdfFileInfo`, `BindPdf`, `SetMetaInfo` | Demonstrates how to delete a specific custom metadata field from a PDF by setting its value to an... | -| [retrieve-custom-pdf-metadata-reviewedby](./retrieve-custom-pdf-metadata-reviewedby.cs) | Retrieve Custom PDF Metadata (ReviewedBy) | `PdfFileInfo`, `GetMetaInfo` | Demonstrates how to use Aspose.Pdf.Facades.PdfFileInfo to read a custom metadata property from a ... | -| [retrieve-custom-pdf-metadata](./retrieve-custom-pdf-metadata.cs) | Retrieve Custom PDF Metadata (ProjectCode) | `PdfFileInfo`, `GetMetaInfo` | Shows how to read a custom metadata entry named "ProjectCode" from a PDF file using Aspose.Pdf.Fa... | -| [retrieve-pdf-keywords-metadata](./retrieve-pdf-keywords-metadata.cs) | Retrieve PDF Keywords Metadata using PdfFileInfo | `PdfFileInfo`, `Keywords` | Demonstrates how to open a PDF with Aspose.Pdf.Facades.PdfFileInfo and read the Keywords metadata... | -| [set-pdf-creator-metadata](./set-pdf-creator-metadata.cs) | Set PDF Creator Metadata Using PdfFileInfo | `PdfFileInfo`, `Creator`, `SaveNewInfo` | Demonstrates how to assign a custom Creator value to a PDF file by using Aspose.Pdf.Facades.PdfFi... | -| [set-pdf-document-id-using-guid](./set-pdf-document-id-using-guid.cs) | Set PDF Document ID Using GUID Metadata | `Document`, `PdfFileInfo`, `BindPdf` | Generates a new GUID and stores it as a custom metadata entry (DocumentID) in a PDF using the Pdf... | -| [set-pdf-keywords-metadata](./set-pdf-keywords-metadata.cs) | Set PDF Keywords Metadata Using PdfFileInfo | `PdfFileInfo`, `Keywords`, `SaveNewInfo` | Demonstrates how to assign a Keywords metadata value to a PDF file with Aspose.Pdf.Facades.PdfFil... | -| ... | | | *and 10 more files* | +| [read-pdf-version-using-aspose-pdf-facade](./read-pdf-version-using-aspose-pdf-facade.cs) | Read pdf version using aspose pdf facade | | Read pdf version using aspose pdf facade | +| ... | | | *and 28 more files* | ## Category Statistics -- Total examples: 40 +- Total examples: 58 ## General Tips - See parent [AGENTS.md](../AGENTS.md) for: @@ -93,5 +93,5 @@ tool.Save("output.pdf"); - Review code examples in this folder for facades-metadata patterns -Updated: 2026-08-20 | Run: `20260820_001147_12d7b3` +Updated: 2026-09-10 | Run: `20260910_054408_87a7f4` diff --git a/facades-metadata/README.md b/facades-metadata/README.md new file mode 100644 index 000000000..81461e399 --- /dev/null +++ b/facades-metadata/README.md @@ -0,0 +1,77 @@ +# Facades metadata + +> **Facades metadata** in PDF using C# / .NET -- **58** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. + +- Category: `facades-metadata` +- Examples: 58 +- NuGet: `Aspose.PDF 26.8.0` -- target `net10.0` + +## Examples + +- [`add-custom-metadata-field-to-pdf.cs`](./add-custom-metadata-field-to-pdf.cs) -- Add custom metadata field to pdf +- [`add-custom-metadata-reviewedby-to-pdf.cs`](./add-custom-metadata-reviewedby-to-pdf.cs) -- Add custom metadata reviewedby to pdf +- [`add-custom-metadata-to-pdf.cs`](./add-custom-metadata-to-pdf.cs) -- Add custom metadata to pdf +- [`add-department-metadata-to-pdfs.cs`](./add-department-metadata-to-pdfs.cs) -- Add department metadata to pdfs +- [`add-lastupdated-metadata-to-pdf.cs`](./add-lastupdated-metadata-to-pdf.cs) -- Add lastupdated metadata to pdf +- [`apply-metadata-changes-to-multiple-pdfs-in-parallel.cs`](./apply-metadata-changes-to-multiple-pdfs-in-parallel.cs) -- Apply metadata changes to multiple pdfs in parallel +- [`audit-pdf-metadata-to-csv.cs`](./audit-pdf-metadata-to-csv.cs) -- Audit pdf metadata to csv +- [`backup-and-update-pdf-metadata.cs`](./backup-and-update-pdf-metadata.cs) -- Backup and update pdf metadata +- [`backup-pdfs-update-metadata.cs`](./backup-pdfs-update-metadata.cs) -- Backup pdfs update metadata +- [`check-custom-metadata-key.cs`](./check-custom-metadata-key.cs) -- Check custom metadata key +- [`convert-pdf-to-pdfa-1b-using-pdffileinfo.cs`](./convert-pdf-to-pdfa-1b-using-pdffileinfo.cs) -- Convert pdf to pdfa 1b using pdffileinfo +- [`convert-pdf-to-pdfa-1b-with-pdffileinfo.cs`](./convert-pdf-to-pdfa-1b-with-pdffileinfo.cs) -- Convert pdf to pdfa 1b with pdffileinfo +- [`export-pdf-metadata-to-json.cs`](./export-pdf-metadata-to-json.cs) -- Export pdf metadata to json +- [`handle-readonly-file-errors-saving-pdf-metadata.cs`](./handle-readonly-file-errors-saving-pdf-metadata.cs) -- Handle readonly file errors saving pdf metadata +- [`handle-readonly-file-errors-when-saving-pdf-metadata.cs`](./handle-readonly-file-errors-when-saving-pdf-metadata.cs) -- Handle readonly file errors when saving pdf metadata +- [`import-json-metadata-to-pdf.cs`](./import-json-metadata-to-pdf.cs) -- Import json metadata to pdf +- [`import-pdf-metadata-from-json.cs`](./import-pdf-metadata-from-json.cs) -- Import pdf metadata from json +- [`list-custom-pdf-metadata-keys.cs`](./list-custom-pdf-metadata-keys.cs) -- List custom pdf metadata keys +- [`load-pdf-retrieve-file-info-and-save.cs`](./load-pdf-retrieve-file-info-and-save.cs) -- Load pdf retrieve file info and save +- [`merge-xmp-metadata-with-pdf-fileinfo.cs`](./merge-xmp-metadata-with-pdf-fileinfo.cs) -- Merge xmp metadata with pdf fileinfo +- [`preserve-pdf-metadata-add-version.cs`](./preserve-pdf-metadata-add-version.cs) -- Preserve pdf metadata add version +- [`read-custom-pdf-metadata-existence-check.cs`](./read-custom-pdf-metadata-existence-check.cs) -- Read custom pdf metadata existence check +- [`read-pdf-author-metadata.cs`](./read-pdf-author-metadata.cs) -- Read pdf author metadata +- [`read-pdf-creator-metadata.cs`](./read-pdf-creator-metadata.cs) -- Read pdf creator metadata +- [`read-pdf-metadata-add-blank-page.cs`](./read-pdf-metadata-add-blank-page.cs) -- Read pdf metadata add blank page +- [`read-pdf-metadata-safely.cs`](./read-pdf-metadata-safely.cs) -- Read pdf metadata safely +- [`read-pdf-metadata-with-null-handling.cs`](./read-pdf-metadata-with-null-handling.cs) -- Read pdf metadata with null handling +- [`read-pdf-modification-date.cs`](./read-pdf-modification-date.cs) -- Read pdf modification date +- [`read-pdf-title-metadata-log.cs`](./read-pdf-title-metadata-log.cs) -- Read pdf title metadata log +- [`read-pdf-version-using-aspose-pdf-facade.cs`](./read-pdf-version-using-aspose-pdf-facade.cs) -- Read pdf version using aspose pdf facade +- [`read-pdf-version.cs`](./read-pdf-version.cs) -- Read pdf version +- [`read-update-pdf-metadata.cs`](./read-update-pdf-metadata.cs) -- Read update pdf metadata +- [`remove-custom-pdf-metadata-entry.cs`](./remove-custom-pdf-metadata-entry.cs) -- Remove custom pdf metadata entry +- [`retrieve-custom-pdf-metadata-alphabetically.cs`](./retrieve-custom-pdf-metadata-alphabetically.cs) -- Retrieve custom pdf metadata alphabetically +- [`retrieve-custom-pdf-metadata-projectcode.cs`](./retrieve-custom-pdf-metadata-projectcode.cs) -- Retrieve custom pdf metadata projectcode +- [`retrieve-custom-pdf-metadata-reviewedby.cs`](./retrieve-custom-pdf-metadata-reviewedby.cs) -- Retrieve custom pdf metadata reviewedby +- [`retrieve-custom-pdf-metadata.cs`](./retrieve-custom-pdf-metadata.cs) -- Retrieve custom pdf metadata +- [`retrieve-pdf-keywords-metadata.cs`](./retrieve-pdf-keywords-metadata.cs) -- Retrieve pdf keywords metadata +- [`retrieve-reviewedby-metadata.cs`](./retrieve-reviewedby-metadata.cs) -- Retrieve reviewedby metadata +- [`set-pdf-creator-metadata.cs`](./set-pdf-creator-metadata.cs) -- Set pdf creator metadata +- [`set-pdf-document-id-using-guid.cs`](./set-pdf-document-id-using-guid.cs) -- Set pdf document id using guid +- [`set-pdf-document-id-using-pdffileinfo.cs`](./set-pdf-document-id-using-pdffileinfo.cs) -- Set pdf document id using pdffileinfo +- [`set-pdf-keywords-metadata.cs`](./set-pdf-keywords-metadata.cs) -- Set pdf keywords metadata +- [`set-pdf-language-property.cs`](./set-pdf-language-property.cs) -- Set pdf language property +- [`thread-safe-parallel-pdf-metadata-update.cs`](./thread-safe-parallel-pdf-metadata-update.cs) -- Thread safe parallel pdf metadata update +- [`thread-safe-pdf-metadata-update.cs`](./thread-safe-pdf-metadata-update.cs) -- Thread safe pdf metadata update +- [`update-pdf-author-metadata-conditional.cs`](./update-pdf-author-metadata-conditional.cs) -- Update pdf author metadata conditional +- [`update-pdf-author-metadata.cs`](./update-pdf-author-metadata.cs) -- Update pdf author metadata +- [`update-pdf-keywords-metadata.cs`](./update-pdf-keywords-metadata.cs) -- Update pdf keywords metadata +- [`update-pdf-metadata-audit.cs`](./update-pdf-metadata-audit.cs) -- Update pdf metadata audit +- [`update-pdf-metadata-in-parallel.cs`](./update-pdf-metadata-in-parallel.cs) -- Update pdf metadata in parallel +- [`update-pdf-metadata-memorystream.cs`](./update-pdf-metadata-memorystream.cs) -- Update pdf metadata memorystream +- [`update-pdf-metadata-save-new-file.cs`](./update-pdf-metadata-save-new-file.cs) -- Update pdf metadata save new file +- [`update-pdf-metadata-using-memorystream.cs`](./update-pdf-metadata-using-memorystream.cs) -- Update pdf metadata using memorystream +- [`update-pdf-subject-metadata.cs`](./update-pdf-subject-metadata.cs) -- Update pdf subject metadata +- [`update-pdf-title-metadata.cs`](./update-pdf-title-metadata.cs) -- Update pdf title metadata +- [`validate-pdf-metadata-with-regex.cs`](./validate-pdf-metadata-with-regex.cs) -- Validate pdf metadata with regex +- [`validate-set-pdf-metadata-with-regex.cs`](./validate-set-pdf-metadata-with-regex.cs) -- Validate set pdf metadata with regex + +## See Also + +- [`AGENTS.md`](./AGENTS.md) -- category-specific anti-patterns, API surface, and conventions for AI coding agents +- [`../AGENTS.md`](../AGENTS.md) -- repository-wide agent guide +- [`../README.md`](../README.md) -- full category index and project overview +- [Aspose.PDF for .NET docs](https://docs.aspose.com/pdf/net/) + +> Each `.cs` file is a standalone, build-validated console example. Drop into a fresh `dotnet new console` project, add the `Aspose.PDF` NuGet (version above), and run. diff --git a/facades-metadata/index.json b/facades-metadata/index.json index c8e9abcfa..43303abcb 100644 --- a/facades-metadata/index.json +++ b/facades-metadata/index.json @@ -1,348 +1,393 @@ { "category": "facades-metadata", "nuget_version": "26.8.0", - "last_updated": "2026-08-20T07:54:21Z", + "last_updated": "2026-09-10T12:45:08Z", "examples": { - "read-update-pdf-metadata": { - "title": "Read and Update PDF Metadata", - "filename": "read-update-pdf-metadata.cs", - "description": "Demonstrates how to open a PDF, read its existing metadata, modify fields such as title and author, and save the updated information to a new file using Aspose.Pdf.", + "add-custom-metadata-field-to-pdf": { + "title": "Add Custom Metadata Field to PDF Using PdfFileInfo", + "filename": "add-custom-metadata-field-to-pdf.cs", + "description": "Demonstrates how to preserve existing custom metadata in a PDF and add a new \"Version\" field using the PdfFileInfo facade, then save the updated document.", "tags": [ "metadata", "pdf", "aspose", - "read", - "update" + "custom-metadata", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", - "PdfFileInfo.BindPdf", - "PdfFileInfo.Title", - "PdfFileInfo.Author", - "PdfFileInfo.SaveNewInfo" + "Aspose.Pdf.Facades.PdfFileInfo.SetMetaInfo", + "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:54:21Z", "status": "verified" }, - "read-pdf-author-metadata": { - "title": "Read PDF Author Metadata Using PdfFileInfo", - "filename": "read-pdf-author-metadata.cs", - "description": "Demonstrates how to open a PDF with Aspose.Pdf.Facades.PdfFileInfo and retrieve the Author metadata property, outputting it to the console.", + "add-custom-metadata-reviewedby-to-pdf": { + "title": "Add Custom Metadata 'ReviewedBy' to PDF", + "filename": "add-custom-metadata-reviewedby-to-pdf.cs", + "description": "Demonstrates how to set a custom metadata field in a PDF using Aspose.Pdf.Facades.PdfFileInfo and persist the changes to a new file.", "tags": [ - "pdf", "metadata", - "author", - "aspose.pdf", - "csharp" + "custom", + "pdf", + "aspose", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", - "PdfFileInfo.Author" + "Aspose.Pdf.Facades.PdfFileInfo.SetMetaInfo", + "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:54:21Z", "status": "verified" }, - "read-pdf-title-metadata-log": { - "title": "Read PDF Title Metadata and Write to Log", - "filename": "read-pdf-title-metadata-log.cs", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfFileInfo to read the Title metadata from a PDF file and write the result to a log file.", + "add-custom-metadata-to-pdf": { + "title": "Add Custom Metadata to PDF using PdfFileInfo", + "filename": "add-custom-metadata-to-pdf.cs", + "description": "Demonstrates how to add a custom metadata entry (ProjectCode) to an existing PDF and save the updated document using Aspose.Pdf.Facades.", "tags": [ "metadata", "pdf", - "title", - "logging", - "aspose" + "custom", + "aspose-pdf", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.Title" + "Aspose.Pdf.Facades.PdfFileInfo.SetMetaInfo", + "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:54:21Z", "status": "verified" }, - "retrieve-pdf-keywords-metadata": { - "title": "Retrieve PDF Keywords Metadata using PdfFileInfo", - "filename": "retrieve-pdf-keywords-metadata.cs", - "description": "Demonstrates how to open a PDF with Aspose.Pdf.Facades.PdfFileInfo and read the Keywords metadata property, then display it on the console.", + "add-department-metadata-to-pdfs": { + "title": "Add Custom Department Metadata to PDFs", + "filename": "add-department-metadata-to-pdfs.cs", + "description": "Demonstrates how to loop through PDF files, set a custom \"Department\" metadata field using PdfFileInfo, and save the updated PDFs to a new folder.", "tags": [ - "pdf", "metadata", - "keywords", - "aspose.pdf", - "csharp" + "pdf", + "custom-field", + "batch", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.Keywords" + "PdfFileInfo.SetMetaInfo", + "PdfFileInfo.SaveNewInfo" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:54:21Z", "status": "verified" }, - "read-pdf-creator-metadata": { - "title": "Read PDF Creator Metadata", - "filename": "read-pdf-creator-metadata.cs", - "description": "Shows how to use Aspose.Pdf.Facades.PdfFileInfo to retrieve the Creator metadata property from an existing PDF file.", + "add-lastupdated-metadata-to-pdf": { + "title": "Add LastUpdated Metadata to PDF", + "filename": "add-lastupdated-metadata-to-pdf.cs", + "description": "Demonstrates how to add a custom metadata field named \"LastUpdated\" with the current UTC timestamp to an existing PDF using Aspose.Pdf.Facades.PdfFileInfo and save the updated document.", "tags": [ - "pdf", "metadata", - "creator", - "aspose.pdf", - "csharp" + "custom-field", + "pdf", + "aspose", + "utc" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.Creator" + "Aspose.Pdf.Facades.PdfFileInfo.BindPdf", + "Aspose.Pdf.Facades.PdfFileInfo.SetMetaInfo", + "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:54:21Z", "status": "verified" }, - "read-pdf-modification-date": { - "title": "Read PDF Modification Date with PdfFileInfo", - "filename": "read-pdf-modification-date.cs", - "description": "Shows how to use Aspose.Pdf.Facades.PdfFileInfo to obtain the ModDate metadata from a PDF and output it in a friendly format.", + "apply-metadata-changes-to-multiple-pdfs-in-parallel": { + "title": "Apply Metadata Changes to Multiple PDFs in Parallel", + "filename": "apply-metadata-changes-to-multiple-pdfs-in-parallel.cs", + "description": "Demonstrates how to update the Title, Author, and Subject metadata of several PDF files concurrently using Aspose.Pdf.Facades and the Task Parallel Library.", "tags": [ - "pdf", "metadata", - "moddate", - "aspose.pdf", - "csharp" + "parallel", + "pdf", + "aspose", + "tpl" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.ModDate", - "Aspose.Pdf.Facades.PdfFileInfo.Dispose" + "Aspose.Pdf.Facades.PdfFileInfo.Title", + "Aspose.Pdf.Facades.PdfFileInfo.Author", + "Aspose.Pdf.Facades.PdfFileInfo.Subject", + "Aspose.Pdf.Facades.PdfFileInfo.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:54:21Z", "status": "verified" }, - "update-pdf-author-metadata": { - "title": "Update PDF Author Metadata with PdfFileInfo", - "filename": "update-pdf-author-metadata.cs", - "description": "Demonstrates how to modify the Author property of a PDF file using the Aspose.Pdf.Facades.PdfFileInfo class and persist the changes to a new file with SaveNewInfo.", + "audit-pdf-metadata-to-csv": { + "title": "Audit PDF Metadata Changes and Log to CSV", + "filename": "audit-pdf-metadata-to-csv.cs", + "description": "Demonstrates how to read existing PDF metadata with Aspose.Pdf.Facades, modify selected fields, save the updated PDF, and record original and new values to a CSV file for auditing.", "tags": [ "pdf", "metadata", - "author", - "aspose.pdf", - "facade" + "audit", + "csv", + "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", - "PdfFileInfo.Author", - "PdfFileInfo.SaveNewInfo", - "PdfFileInfo.Dispose", - "PdfFileInfo(string)" + "Aspose.Pdf.Facades.PdfFileInfo.Title", + "Aspose.Pdf.Facades.PdfFileInfo.Author", + "Aspose.Pdf.Facades.PdfFileInfo.Subject", + "Aspose.Pdf.Facades.PdfFileInfo.Keywords", + "Aspose.Pdf.Facades.PdfFileInfo.CreationDate", + "Aspose.Pdf.Facades.PdfFileInfo.ModDate", + "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:54:21Z", "status": "verified" }, - "update-pdf-title-metadata": { - "title": "Update PDF Title Metadata using PdfFileInfo", - "filename": "update-pdf-title-metadata.cs", - "description": "Demonstrates how to modify the Title property of a PDF file using Aspose.Pdf.Facades.PdfFileInfo and save the changes to a new document.", + "backup-and-update-pdf-metadata": { + "title": "Backup PDFs and Update Metadata with PdfFileInfo", + "filename": "backup-and-update-pdf-metadata.cs", + "description": "The example creates a backup of each PDF in a folder, then uses Aspose.Pdf.Facades.PdfFileInfo to modify common metadata fields and saves the changes to the original file.", "tags": [ - "metadata", - "title", "pdf", + "metadata", + "backup", "aspose", "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", "Aspose.Pdf.Facades.PdfFileInfo.Title", + "Aspose.Pdf.Facades.PdfFileInfo.Author", + "Aspose.Pdf.Facades.PdfFileInfo.Subject", + "Aspose.Pdf.Facades.PdfFileInfo.Keywords", "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:54:21Z", "status": "verified" }, - "set-pdf-keywords-metadata": { - "title": "Set PDF Keywords Metadata Using PdfFileInfo", - "filename": "set-pdf-keywords-metadata.cs", - "description": "Demonstrates how to assign a Keywords metadata value to a PDF file with Aspose.Pdf.Facades.PdfFileInfo, save the updated document, and verify the change.", + "backup-pdfs-update-metadata": { + "title": "Backup Pdfs Update Metadata", + "filename": "backup-pdfs-update-metadata.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "check-custom-metadata-key": { + "title": "Check Custom Metadata Key", + "filename": "check-custom-metadata-key.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-pdf-to-pdfa-1b-using-pdffileinfo": { + "title": "Convert PDF to PDF/A-1B Using PdfFileInfo", + "filename": "convert-pdf-to-pdfa-1b-using-pdffileinfo.cs", + "description": "Demonstrates how to load a PDF with PdfFileInfo, convert it to PDF/A‑1B compliance, and save the archival‑ready file.", "tags": [ - "pdf", - "metadata", - "keywords", - "aspose.pdf", - "csharp" + "PDF/A", + "Aspose.Pdf", + "PdfFileInfo", + "conversion", + "archival" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", - "PdfFileInfo.Keywords", - "PdfFileInfo.SaveNewInfo", - "PdfFileInfo.Dispose", - "PdfFileInfo (constructor)" + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Convert", + "Aspose.Pdf.PdfFormat", + "Aspose.Pdf.ConvertErrorAction", + "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:54:21Z", "status": "verified" }, - "set-pdf-creator-metadata": { - "title": "Set PDF Creator Metadata Using PdfFileInfo", - "filename": "set-pdf-creator-metadata.cs", - "description": "Demonstrates how to assign a custom Creator value to a PDF file by using Aspose.Pdf.Facades.PdfFileInfo and persisting the change with SaveNewInfo.", + "convert-pdf-to-pdfa-1b-with-pdffileinfo": { + "title": "Convert Pdf To Pdfa 1B With Pdffileinfo", + "filename": "convert-pdf-to-pdfa-1b-with-pdffileinfo.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "export-pdf-metadata-to-json": { + "title": "Export PDF Metadata to JSON", + "filename": "export-pdf-metadata-to-json.cs", + "description": "The program scans a folder for PDF files, extracts their metadata using Aspose.Pdf.Facades.PdfFileInfo, and writes the collected information to a JSON file for external processing.", "tags": [ "pdf", "metadata", - "creator", - "aspose.pdf", - "csharp" + "json", + "aspose", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.Creator", - "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" + "Aspose.Pdf.Facades.PdfFileInfo.BindPdf", + "Aspose.Pdf.Facades.PdfFileInfo.Title", + "Aspose.Pdf.Facades.PdfFileInfo.Author", + "Aspose.Pdf.Facades.PdfFileInfo.CreationDate", + "Aspose.Pdf.Facades.PdfFileInfo.Header" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:54:21Z", "status": "verified" }, - "add-custom-metadata-to-pdf": { - "title": "Add Custom Metadata to PDF using PdfFileInfo", - "filename": "add-custom-metadata-to-pdf.cs", - "description": "Demonstrates how to add a custom metadata entry (ProjectCode) to an existing PDF and save the updated document using Aspose.Pdf.Facades.", + "handle-readonly-file-errors-saving-pdf-metadata": { + "title": "Handle Readonly File Errors Saving Pdf Metadata", + "filename": "handle-readonly-file-errors-saving-pdf-metadata.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "handle-readonly-file-errors-when-saving-pdf-metadata": { + "title": "Handle Read‑Only File Errors When Saving PDF Metadata", + "filename": "handle-readonly-file-errors-when-saving-pdf-metadata.cs", + "description": "Demonstrates how to modify PDF metadata with Aspose.Pdf.Facades and reliably save it even when the target file is marked as read‑only by clearing the attribute and retrying.", "tags": [ - "metadata", "pdf", - "custom", - "aspose-pdf", - "facade" + "metadata", + "readonly", + "exception-handling", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.SetMetaInfo", + "Aspose.Pdf.Facades.PdfFileInfo.Title", "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:54:21Z", "status": "verified" }, - "retrieve-custom-pdf-metadata": { - "title": "Retrieve Custom PDF Metadata (ProjectCode)", - "filename": "retrieve-custom-pdf-metadata.cs", - "description": "Shows how to read a custom metadata entry named \"ProjectCode\" from a PDF file using Aspose.Pdf.Facades.PdfFileInfo.", + "import-json-metadata-to-pdf": { + "title": "Import JSON Metadata and Apply to PDF Files", + "filename": "import-json-metadata-to-pdf.cs", + "description": "The example reads a JSON file containing metadata definitions and applies the standard and custom properties to corresponding PDF documents using Aspose.Pdf.Facades.PdfFileInfo.", "tags": [ "metadata", + "json", "pdf", "aspose", - "custom", - "csharp" + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.GetMetaInfo" + "PdfFileInfo.Title", + "PdfFileInfo.Author", + "PdfFileInfo.SetMetaInfo", + "PdfFileInfo.SaveNewInfo", + "PdfFileInfo.CreationDate", + "PdfFileInfo.ModDate" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:54:21Z", "status": "verified" }, - "add-custom-metadata-reviewedby-to-pdf": { - "title": "Add Custom Metadata 'ReviewedBy' to PDF", - "filename": "add-custom-metadata-reviewedby-to-pdf.cs", - "description": "Demonstrates how to set a custom metadata field in a PDF using Aspose.Pdf.Facades.PdfFileInfo and persist the changes to a new file.", - "tags": [ - "metadata", - "custom", - "pdf", - "aspose", - "facade" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.SetMetaInfo", - "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:54:21Z", + "import-pdf-metadata-from-json": { + "title": "Import Pdf Metadata From Json", + "filename": "import-pdf-metadata-from-json.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "retrieve-custom-pdf-metadata-reviewedby": { - "title": "Retrieve Custom PDF Metadata (ReviewedBy)", - "filename": "retrieve-custom-pdf-metadata-reviewedby.cs", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfFileInfo to read a custom metadata property from a PDF document and log its value.", + "list-custom-pdf-metadata-keys": { + "title": "List Custom PDF Metadata Keys Alphabetically", + "filename": "list-custom-pdf-metadata-keys.cs", + "description": "Shows how to extract all custom metadata keys from a PDF, sort them alphabetically, and output each key with its value using Aspose.Pdf.", "tags": [ "metadata", + "custom", "pdf", "aspose", - "custom-property", "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.GetMetaInfo" + "Aspose.Pdf.Facades.PdfFileInfo.GetMetaInfo", + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Metadata", + "Aspose.Pdf.DocumentInfo.IsPredefinedKey" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:54:21Z", "status": "verified" }, - "add-department-metadata-to-pdfs": { - "title": "Add Custom Department Metadata to PDFs", - "filename": "add-department-metadata-to-pdfs.cs", - "description": "Demonstrates how to loop through PDF files, set a custom \"Department\" metadata field using PdfFileInfo, and save the updated PDFs to a new folder.", + "load-pdf-retrieve-file-info-and-save": { + "title": "Load PDF, Retrieve File Info, and Save with Proper Disposal", + "filename": "load-pdf-retrieve-file-info-and-save.cs", + "description": "Demonstrates loading a PDF using Aspose.Pdf.Document inside a using block, accessing file‑level information with PdfFileInfo, and saving the document while ensuring both objects are correctly disposed.", "tags": [ - "metadata", "pdf", - "custom-field", - "batch", - "aspose-pdf" + "aspose.pdf", + "disposal", + "fileinfo", + "document" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileInfo", - "PdfFileInfo.SetMetaInfo", - "PdfFileInfo.SaveNewInfo" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Facades.PdfFileInfo.IsEncrypted", + "Aspose.Pdf.Facades.PdfFileInfo.Close" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:54:21Z", "status": "verified" }, - "add-custom-metadata-field-to-pdf": { - "title": "Add Custom Metadata Field to PDF Using PdfFileInfo", - "filename": "add-custom-metadata-field-to-pdf.cs", - "description": "Demonstrates how to preserve existing custom metadata in a PDF and add a new \"Version\" field using the PdfFileInfo facade, then save the updated document.", + "merge-xmp-metadata-with-pdf-fileinfo": { + "title": "Merge XMP Metadata with PDF FileInfo", + "filename": "merge-xmp-metadata-with-pdf-fileinfo.cs", + "description": "Demonstrates how to combine standard PDF FileInfo metadata with custom XMP metadata in a PDF using Aspose.Pdf.", "tags": [ "metadata", + "xmp", "pdf", "aspose", - "custom-metadata", - "facade" + "fileinfo" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.SetMetaInfo", - "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Info", + "Aspose.Pdf.Document.Metadata", + "Aspose.Pdf.Document.Metadata.RegisterNamespaceUri", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:54:21Z", "status": "verified" }, - "remove-custom-pdf-metadata-entry": { - "title": "Remove Custom PDF Metadata Entry", - "filename": "remove-custom-pdf-metadata-entry.cs", - "description": "Demonstrates how to delete a specific custom metadata field from a PDF by setting its value to an empty string using the PdfFileInfo facade.", - "tags": [ - "metadata", - "pdf", - "remove", - "custom", - "Aspose" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.BindPdf", - "Aspose.Pdf.Facades.PdfFileInfo.SetMetaInfo", - "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo", - "Aspose.Pdf.Facades.PdfFileInfo.Close" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:54:21Z", + "preserve-pdf-metadata-add-version": { + "title": "Preserve Pdf Metadata Add Version", + "filename": "preserve-pdf-metadata-add-version.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, "read-custom-pdf-metadata-existence-check": { @@ -364,335 +409,379 @@ "generated_at": "2026-08-20T07:54:21Z", "status": "verified" }, - "add-lastupdated-metadata-to-pdf": { - "title": "Add LastUpdated Metadata to PDF", - "filename": "add-lastupdated-metadata-to-pdf.cs", - "description": "Demonstrates how to add a custom metadata field named \"LastUpdated\" with the current UTC timestamp to an existing PDF using Aspose.Pdf.Facades.PdfFileInfo and save the updated document.", + "read-pdf-author-metadata": { + "title": "Read PDF Author Metadata Using PdfFileInfo", + "filename": "read-pdf-author-metadata.cs", + "description": "Demonstrates how to open a PDF with Aspose.Pdf.Facades.PdfFileInfo and retrieve the Author metadata property, outputting it to the console.", "tags": [ - "metadata", - "custom-field", "pdf", - "aspose", - "utc" + "metadata", + "author", + "aspose.pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.BindPdf", - "Aspose.Pdf.Facades.PdfFileInfo.SetMetaInfo", - "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" + "PdfFileInfo.Author" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:54:21Z", "status": "verified" }, - "update-pdf-metadata-save-new-file": { - "title": "Update PDF Metadata and Save to New File", - "filename": "update-pdf-metadata-save-new-file.cs", - "description": "Demonstrates how to modify PDF metadata such as title, author, subject, keywords, creator, and modification date using Aspose.Pdf.Facades.PdfFileInfo and save the updated information to a new PDF file.", + "read-pdf-creator-metadata": { + "title": "Read PDF Creator Metadata", + "filename": "read-pdf-creator-metadata.cs", + "description": "Shows how to use Aspose.Pdf.Facades.PdfFileInfo to retrieve the Creator metadata property from an existing PDF file.", "tags": [ - "metadata", "pdf", - "aspose", - "csharp", - "save" + "metadata", + "creator", + "aspose.pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", - "PdfFileInfo.Title", - "PdfFileInfo.Author", - "PdfFileInfo.Subject", - "PdfFileInfo.Keywords", - "PdfFileInfo.Creator", - "PdfFileInfo.ModDate", - "PdfFileInfo.SaveNewInfo" + "Aspose.Pdf.Facades.PdfFileInfo.Creator" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:54:21Z", "status": "verified" }, - "load-pdf-retrieve-file-info-and-save": { - "title": "Load PDF, Retrieve File Info, and Save with Proper Disposal", - "filename": "load-pdf-retrieve-file-info-and-save.cs", - "description": "Demonstrates loading a PDF using Aspose.Pdf.Document inside a using block, accessing file‑level information with PdfFileInfo, and saving the document while ensuring both objects are correctly disposed.", + "read-pdf-metadata-add-blank-page": { + "title": "Read Pdf Metadata Add Blank Page", + "filename": "read-pdf-metadata-add-blank-page.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "read-pdf-metadata-safely": { + "title": "Read Pdf Metadata Safely", + "filename": "read-pdf-metadata-safely.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "read-pdf-metadata-with-null-handling": { + "title": "Read PDF Metadata with Null Handling", + "filename": "read-pdf-metadata-with-null-handling.cs", + "description": "Shows how to read custom and standard PDF metadata using PdfFileInfo and gracefully handle null or empty values.", "tags": [ + "metadata", "pdf", - "aspose.pdf", - "disposal", - "fileinfo", - "document" + "aspose", + "null-handling", + "csharp" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Facades.PdfFileInfo.IsEncrypted", - "Aspose.Pdf.Facades.PdfFileInfo.Close" + "Aspose.Pdf.Facades.PdfFileInfo.GetMetaInfo", + "Aspose.Pdf.Facades.PdfFileInfo.Title", + "Aspose.Pdf.Facades.PdfFileInfo.Author" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:54:21Z", "status": "verified" }, - "backup-and-update-pdf-metadata": { - "title": "Backup PDFs and Update Metadata with PdfFileInfo", - "filename": "backup-and-update-pdf-metadata.cs", - "description": "The example creates a backup of each PDF in a folder, then uses Aspose.Pdf.Facades.PdfFileInfo to modify common metadata fields and saves the changes to the original file.", + "read-pdf-modification-date": { + "title": "Read PDF Modification Date with PdfFileInfo", + "filename": "read-pdf-modification-date.cs", + "description": "Shows how to use Aspose.Pdf.Facades.PdfFileInfo to obtain the ModDate metadata from a PDF and output it in a friendly format.", "tags": [ "pdf", "metadata", - "backup", - "aspose", - "facade" + "moddate", + "aspose.pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.Title", - "Aspose.Pdf.Facades.PdfFileInfo.Author", - "Aspose.Pdf.Facades.PdfFileInfo.Subject", - "Aspose.Pdf.Facades.PdfFileInfo.Keywords", - "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" + "Aspose.Pdf.Facades.PdfFileInfo.ModDate", + "Aspose.Pdf.Facades.PdfFileInfo.Dispose" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:54:21Z", "status": "verified" }, - "audit-pdf-metadata-to-csv": { - "title": "Audit PDF Metadata Changes and Log to CSV", - "filename": "audit-pdf-metadata-to-csv.cs", - "description": "Demonstrates how to read existing PDF metadata with Aspose.Pdf.Facades, modify selected fields, save the updated PDF, and record original and new values to a CSV file for auditing.", + "read-pdf-title-metadata-log": { + "title": "Read PDF Title Metadata and Write to Log", + "filename": "read-pdf-title-metadata-log.cs", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfFileInfo to read the Title metadata from a PDF file and write the result to a log file.", "tags": [ - "pdf", "metadata", - "audit", - "csv", + "pdf", + "title", + "logging", "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.Title", - "Aspose.Pdf.Facades.PdfFileInfo.Author", - "Aspose.Pdf.Facades.PdfFileInfo.Subject", - "Aspose.Pdf.Facades.PdfFileInfo.Keywords", - "Aspose.Pdf.Facades.PdfFileInfo.CreationDate", - "Aspose.Pdf.Facades.PdfFileInfo.ModDate", - "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" + "Aspose.Pdf.Facades.PdfFileInfo.Title" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:54:21Z", "status": "verified" }, - "handle-readonly-file-errors-when-saving-pdf-metadata": { - "title": "Handle Read‑Only File Errors When Saving PDF Metadata", - "filename": "handle-readonly-file-errors-when-saving-pdf-metadata.cs", - "description": "Demonstrates how to modify PDF metadata with Aspose.Pdf.Facades and reliably save it even when the target file is marked as read‑only by clearing the attribute and retrying.", + "read-pdf-version-using-aspose-pdf-facade": { + "title": "Read Pdf Version Using Aspose Pdf Facade", + "filename": "read-pdf-version-using-aspose-pdf-facade.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "read-pdf-version": { + "title": "Read PDF Version Using Aspose.Pdf Facade", + "filename": "read-pdf-version.cs", + "description": "Shows how to bind a PDF file with PdfFileInfo and retrieve its version string for later use.", "tags": [ "pdf", - "metadata", - "readonly", - "exception-handling", - "aspose-pdf" + "version", + "aspose", + "facade", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.Title", - "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" + "Aspose.Pdf.Facades.PdfFileInfo.BindPdf", + "Aspose.Pdf.Facades.PdfFileInfo.GetPdfVersion", + "Aspose.Pdf.Facades.SaveableFacade" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:54:21Z", "status": "verified" }, - "update-pdf-metadata-memorystream": { - "title": "Update PDF Metadata Using MemoryStream and PdfFileInfo", - "filename": "update-pdf-metadata-memorystream.cs", - "description": "Demonstrates loading a PDF into a MemoryStream, modifying its metadata with PdfFileInfo, and saving the updated document to a new file.", + "read-update-pdf-metadata": { + "title": "Read and Update PDF Metadata", + "filename": "read-update-pdf-metadata.cs", + "description": "Demonstrates how to open a PDF, read its existing metadata, modify fields such as title and author, and save the updated information to a new file using Aspose.Pdf.", "tags": [ "metadata", "pdf", - "memorystream", - "aspose-pdf", - "facades" + "aspose", + "read", + "update" ], "apis_used": [ - "PdfFileInfo", + "Aspose.Pdf.Facades.PdfFileInfo", + "PdfFileInfo.BindPdf", "PdfFileInfo.Title", "PdfFileInfo.Author", - "PdfFileInfo.SetMetaInfo", "PdfFileInfo.SaveNewInfo" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:54:21Z", "status": "verified" }, - "update-pdf-keywords-metadata": { - "title": "Update PDF Keywords Metadata Using PdfFileInfo", - "filename": "update-pdf-keywords-metadata.cs", - "description": "Demonstrates how to open a PDF from a stream with Aspose.Pdf.Facades.PdfFileInfo, modify the Keywords metadata, and save the updated document to a new file.", + "remove-custom-pdf-metadata-entry": { + "title": "Remove Custom PDF Metadata Entry", + "filename": "remove-custom-pdf-metadata-entry.cs", + "description": "Demonstrates how to delete a specific custom metadata field from a PDF by setting its value to an empty string using the PdfFileInfo facade.", "tags": [ - "pdf", "metadata", - "keywords", - "aspose.pdf", - "csharp" + "pdf", + "remove", + "custom", + "Aspose" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.Keywords", - "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" + "Aspose.Pdf.Facades.PdfFileInfo.BindPdf", + "Aspose.Pdf.Facades.PdfFileInfo.SetMetaInfo", + "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo", + "Aspose.Pdf.Facades.PdfFileInfo.Close" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:54:21Z", "status": "verified" }, - "update-pdf-author-metadata-conditional": { - "title": "Update PDF Author Metadata Conditionally", - "filename": "update-pdf-author-metadata-conditional.cs", - "description": "Shows how to read a PDF's Author metadata with PdfFileInfo, set it only when the field is empty, and save the updated document.", + "retrieve-custom-pdf-metadata-alphabetically": { + "title": "Retrieve Custom Pdf Metadata Alphabetically", + "filename": "retrieve-custom-pdf-metadata-alphabetically.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "retrieve-custom-pdf-metadata-projectcode": { + "title": "Retrieve Custom Pdf Metadata Projectcode", + "filename": "retrieve-custom-pdf-metadata-projectcode.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "retrieve-custom-pdf-metadata-reviewedby": { + "title": "Retrieve Custom PDF Metadata (ReviewedBy)", + "filename": "retrieve-custom-pdf-metadata-reviewedby.cs", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfFileInfo to read a custom metadata property from a PDF document and log its value.", "tags": [ - "pdf", "metadata", - "author", - "conditional", - "aspose" + "pdf", + "aspose", + "custom-property", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.Author", - "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" + "Aspose.Pdf.Facades.PdfFileInfo.GetMetaInfo" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:54:21Z", "status": "verified" }, - "list-custom-pdf-metadata-keys": { - "title": "List Custom PDF Metadata Keys Alphabetically", - "filename": "list-custom-pdf-metadata-keys.cs", - "description": "Shows how to extract all custom metadata keys from a PDF, sort them alphabetically, and output each key with its value using Aspose.Pdf.", + "retrieve-custom-pdf-metadata": { + "title": "Retrieve Custom PDF Metadata (ProjectCode)", + "filename": "retrieve-custom-pdf-metadata.cs", + "description": "Shows how to read a custom metadata entry named \"ProjectCode\" from a PDF file using Aspose.Pdf.Facades.PdfFileInfo.", "tags": [ "metadata", - "custom", "pdf", "aspose", + "custom", "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.GetMetaInfo", - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Metadata", - "Aspose.Pdf.DocumentInfo.IsPredefinedKey" + "Aspose.Pdf.Facades.PdfFileInfo.GetMetaInfo" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:54:21Z", "status": "verified" }, - "merge-xmp-metadata-with-pdf-fileinfo": { - "title": "Merge XMP Metadata with PDF FileInfo", - "filename": "merge-xmp-metadata-with-pdf-fileinfo.cs", - "description": "Demonstrates how to combine standard PDF FileInfo metadata with custom XMP metadata in a PDF using Aspose.Pdf.", + "retrieve-pdf-keywords-metadata": { + "title": "Retrieve PDF Keywords Metadata using PdfFileInfo", + "filename": "retrieve-pdf-keywords-metadata.cs", + "description": "Demonstrates how to open a PDF with Aspose.Pdf.Facades.PdfFileInfo and read the Keywords metadata property, then display it on the console.", "tags": [ - "metadata", - "xmp", "pdf", - "aspose", - "fileinfo" + "metadata", + "keywords", + "aspose.pdf", + "csharp" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Info", - "Aspose.Pdf.Document.Metadata", - "Aspose.Pdf.Document.Metadata.RegisterNamespaceUri", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfFileInfo", + "Aspose.Pdf.Facades.PdfFileInfo.Keywords" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:54:21Z", "status": "verified" }, - "read-pdf-version": { - "title": "Read PDF Version Using Aspose.Pdf Facade", - "filename": "read-pdf-version.cs", - "description": "Shows how to bind a PDF file with PdfFileInfo and retrieve its version string for later use.", + "retrieve-reviewedby-metadata": { + "title": "Retrieve Reviewedby Metadata", + "filename": "retrieve-reviewedby-metadata.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-pdf-creator-metadata": { + "title": "Set PDF Creator Metadata Using PdfFileInfo", + "filename": "set-pdf-creator-metadata.cs", + "description": "Demonstrates how to assign a custom Creator value to a PDF file by using Aspose.Pdf.Facades.PdfFileInfo and persisting the change with SaveNewInfo.", "tags": [ "pdf", - "version", - "aspose", - "facade", + "metadata", + "creator", + "aspose.pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.BindPdf", - "Aspose.Pdf.Facades.PdfFileInfo.GetPdfVersion", - "Aspose.Pdf.Facades.SaveableFacade" + "Aspose.Pdf.Facades.PdfFileInfo.Creator", + "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:54:21Z", "status": "verified" }, - "export-pdf-metadata-to-json": { - "title": "Export PDF Metadata to JSON", - "filename": "export-pdf-metadata-to-json.cs", - "description": "The program scans a folder for PDF files, extracts their metadata using Aspose.Pdf.Facades.PdfFileInfo, and writes the collected information to a JSON file for external processing.", + "set-pdf-document-id-using-guid": { + "title": "Set PDF Document ID Using GUID Metadata", + "filename": "set-pdf-document-id-using-guid.cs", + "description": "Generates a new GUID and stores it as a custom metadata entry (DocumentID) in a PDF using the PdfFileInfo facade. The updated PDF is saved with the new identifier.", "tags": [ "pdf", "metadata", - "json", - "aspose", - "facade" + "guid", + "aspose.pdf", + "document-id" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileInfo", "Aspose.Pdf.Facades.PdfFileInfo.BindPdf", - "Aspose.Pdf.Facades.PdfFileInfo.Title", - "Aspose.Pdf.Facades.PdfFileInfo.Author", - "Aspose.Pdf.Facades.PdfFileInfo.CreationDate", - "Aspose.Pdf.Facades.PdfFileInfo.Header" + "Aspose.Pdf.Facades.PdfFileInfo.SetMetaInfo", + "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:54:21Z", "status": "verified" }, - "import-json-metadata-to-pdf": { - "title": "Import JSON Metadata and Apply to PDF Files", - "filename": "import-json-metadata-to-pdf.cs", - "description": "The example reads a JSON file containing metadata definitions and applies the standard and custom properties to corresponding PDF documents using Aspose.Pdf.Facades.PdfFileInfo.", + "set-pdf-document-id-using-pdffileinfo": { + "title": "Set Pdf Document Id Using Pdffileinfo", + "filename": "set-pdf-document-id-using-pdffileinfo.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-pdf-keywords-metadata": { + "title": "Set PDF Keywords Metadata Using PdfFileInfo", + "filename": "set-pdf-keywords-metadata.cs", + "description": "Demonstrates how to assign a Keywords metadata value to a PDF file with Aspose.Pdf.Facades.PdfFileInfo, save the updated document, and verify the change.", "tags": [ - "metadata", - "json", "pdf", - "aspose", - "facade" + "metadata", + "keywords", + "aspose.pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", - "PdfFileInfo.Title", - "PdfFileInfo.Author", - "PdfFileInfo.SetMetaInfo", + "PdfFileInfo.Keywords", "PdfFileInfo.SaveNewInfo", - "PdfFileInfo.CreationDate", - "PdfFileInfo.ModDate" + "PdfFileInfo.Dispose", + "PdfFileInfo (constructor)" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:54:21Z", "status": "verified" }, - "apply-metadata-changes-to-multiple-pdfs-in-parallel": { - "title": "Apply Metadata Changes to Multiple PDFs in Parallel", - "filename": "apply-metadata-changes-to-multiple-pdfs-in-parallel.cs", - "description": "Demonstrates how to update the Title, Author, and Subject metadata of several PDF files concurrently using Aspose.Pdf.Facades and the Task Parallel Library.", + "set-pdf-language-property": { + "title": "Set PDF Language Property Using PdfFileInfo", + "filename": "set-pdf-language-property.cs", + "description": "Demonstrates how to set the PDF language metadata to \"en-US\" using the PdfFileInfo facade and save the updated document.", "tags": [ "metadata", - "parallel", + "language", "pdf", "aspose", - "tpl" + "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.Title", - "Aspose.Pdf.Facades.PdfFileInfo.Author", - "Aspose.Pdf.Facades.PdfFileInfo.Subject", - "Aspose.Pdf.Facades.PdfFileInfo.Save" + "PdfFileInfo", + "PdfFileInfo(string)", + "PdfFileInfo.SetMetaInfo", + "PdfFileInfo.SaveNewInfo", + "PdfFileInfo.Dispose" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:54:21Z", "status": "verified" }, @@ -719,50 +808,155 @@ "generated_at": "2026-08-20T07:54:21Z", "status": "verified" }, - "validate-set-pdf-metadata-with-regex": { - "title": "Validate and Set PDF Metadata with Regex using PdfFileInfo", - "filename": "validate-set-pdf-metadata-with-regex.cs", - "description": "The example loads a PDF with Aspose.Pdf.Facades.PdfFileInfo, validates each metadata value against a regular expression, sets standard and custom properties, and saves the updated file.", + "thread-safe-pdf-metadata-update": { + "title": "Thread Safe Pdf Metadata Update", + "filename": "thread-safe-pdf-metadata-update.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "update-pdf-author-metadata-conditional": { + "title": "Update PDF Author Metadata Conditionally", + "filename": "update-pdf-author-metadata-conditional.cs", + "description": "Shows how to read a PDF's Author metadata with PdfFileInfo, set it only when the field is empty, and save the updated document.", "tags": [ "pdf", "metadata", - "validation", - "regex", + "author", + "conditional", "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", + "Aspose.Pdf.Facades.PdfFileInfo.Author", + "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:54:21Z", + "status": "verified" + }, + "update-pdf-author-metadata": { + "title": "Update PDF Author Metadata with PdfFileInfo", + "filename": "update-pdf-author-metadata.cs", + "description": "Demonstrates how to modify the Author property of a PDF file using the Aspose.Pdf.Facades.PdfFileInfo class and persist the changes to a new file with SaveNewInfo.", + "tags": [ + "pdf", + "metadata", + "author", + "aspose.pdf", + "facade" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfFileInfo", + "PdfFileInfo.Author", + "PdfFileInfo.SaveNewInfo", + "PdfFileInfo.Dispose", + "PdfFileInfo(string)" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:54:21Z", + "status": "verified" + }, + "update-pdf-keywords-metadata": { + "title": "Update PDF Keywords Metadata Using PdfFileInfo", + "filename": "update-pdf-keywords-metadata.cs", + "description": "Demonstrates how to open a PDF from a stream with Aspose.Pdf.Facades.PdfFileInfo, modify the Keywords metadata, and save the updated document to a new file.", + "tags": [ + "pdf", + "metadata", + "keywords", + "aspose.pdf", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfFileInfo", + "Aspose.Pdf.Facades.PdfFileInfo.Keywords", + "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:54:21Z", + "status": "verified" + }, + "update-pdf-metadata-audit": { + "title": "Update Pdf Metadata Audit", + "filename": "update-pdf-metadata-audit.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "update-pdf-metadata-in-parallel": { + "title": "Update Pdf Metadata In Parallel", + "filename": "update-pdf-metadata-in-parallel.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "update-pdf-metadata-memorystream": { + "title": "Update PDF Metadata Using MemoryStream and PdfFileInfo", + "filename": "update-pdf-metadata-memorystream.cs", + "description": "Demonstrates loading a PDF into a MemoryStream, modifying its metadata with PdfFileInfo, and saving the updated document to a new file.", + "tags": [ + "metadata", + "pdf", + "memorystream", + "aspose-pdf", + "facades" + ], + "apis_used": [ + "PdfFileInfo", "PdfFileInfo.Title", "PdfFileInfo.Author", "PdfFileInfo.SetMetaInfo", - "PdfFileInfo.SaveNewInfo", - "PdfFileInfo.CreationDate" + "PdfFileInfo.SaveNewInfo" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:54:21Z", "status": "verified" }, - "read-pdf-metadata-with-null-handling": { - "title": "Read PDF Metadata with Null Handling", - "filename": "read-pdf-metadata-with-null-handling.cs", - "description": "Shows how to read custom and standard PDF metadata using PdfFileInfo and gracefully handle null or empty values.", + "update-pdf-metadata-save-new-file": { + "title": "Update PDF Metadata and Save to New File", + "filename": "update-pdf-metadata-save-new-file.cs", + "description": "Demonstrates how to modify PDF metadata such as title, author, subject, keywords, creator, and modification date using Aspose.Pdf.Facades.PdfFileInfo and save the updated information to a new PDF file.", "tags": [ "metadata", "pdf", "aspose", - "null-handling", - "csharp" + "csharp", + "save" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.GetMetaInfo", - "Aspose.Pdf.Facades.PdfFileInfo.Title", - "Aspose.Pdf.Facades.PdfFileInfo.Author" + "PdfFileInfo.Title", + "PdfFileInfo.Author", + "PdfFileInfo.Subject", + "PdfFileInfo.Keywords", + "PdfFileInfo.Creator", + "PdfFileInfo.ModDate", + "PdfFileInfo.SaveNewInfo" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:54:21Z", "status": "verified" }, + "update-pdf-metadata-using-memorystream": { + "title": "Update Pdf Metadata Using Memorystream", + "filename": "update-pdf-metadata-using-memorystream.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "update-pdf-subject-metadata": { "title": "Update PDF Subject Metadata with PdfFileInfo", "filename": "update-pdf-subject-metadata.cs", @@ -783,68 +977,54 @@ "generated_at": "2026-08-20T07:54:21Z", "status": "verified" }, - "set-pdf-language-property": { - "title": "Set PDF Language Property Using PdfFileInfo", - "filename": "set-pdf-language-property.cs", - "description": "Demonstrates how to set the PDF language metadata to \"en-US\" using the PdfFileInfo facade and save the updated document.", + "update-pdf-title-metadata": { + "title": "Update PDF Title Metadata using PdfFileInfo", + "filename": "update-pdf-title-metadata.cs", + "description": "Demonstrates how to modify the Title property of a PDF file using Aspose.Pdf.Facades.PdfFileInfo and save the changes to a new document.", "tags": [ "metadata", - "language", + "title", "pdf", "aspose", "facade" ], - "apis_used": [ - "PdfFileInfo", - "PdfFileInfo(string)", - "PdfFileInfo.SetMetaInfo", - "PdfFileInfo.SaveNewInfo", - "PdfFileInfo.Dispose" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:54:21Z", - "status": "verified" - }, - "convert-pdf-to-pdfa-1b-using-pdffileinfo": { - "title": "Convert PDF to PDF/A-1B Using PdfFileInfo", - "filename": "convert-pdf-to-pdfa-1b-using-pdffileinfo.cs", - "description": "Demonstrates how to load a PDF with PdfFileInfo, convert it to PDF/A‑1B compliance, and save the archival‑ready file.", - "tags": [ - "PDF/A", - "Aspose.Pdf", - "PdfFileInfo", - "conversion", - "archival" - ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Convert", - "Aspose.Pdf.PdfFormat", - "Aspose.Pdf.ConvertErrorAction", + "Aspose.Pdf.Facades.PdfFileInfo.Title", "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:54:21Z", "status": "verified" }, - "set-pdf-document-id-using-guid": { - "title": "Set PDF Document ID Using GUID Metadata", - "filename": "set-pdf-document-id-using-guid.cs", - "description": "Generates a new GUID and stores it as a custom metadata entry (DocumentID) in a PDF using the PdfFileInfo facade. The updated PDF is saved with the new identifier.", + "validate-pdf-metadata-with-regex": { + "title": "Validate Pdf Metadata With Regex", + "filename": "validate-pdf-metadata-with-regex.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "validate-set-pdf-metadata-with-regex": { + "title": "Validate and Set PDF Metadata with Regex using PdfFileInfo", + "filename": "validate-set-pdf-metadata-with-regex.cs", + "description": "The example loads a PDF with Aspose.Pdf.Facades.PdfFileInfo, validates each metadata value against a regular expression, sets standard and custom properties, and saves the updated file.", "tags": [ "pdf", "metadata", - "guid", - "aspose.pdf", - "document-id" + "validation", + "regex", + "aspose" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.BindPdf", - "Aspose.Pdf.Facades.PdfFileInfo.SetMetaInfo", - "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" + "PdfFileInfo.Title", + "PdfFileInfo.Author", + "PdfFileInfo.SetMetaInfo", + "PdfFileInfo.SaveNewInfo", + "PdfFileInfo.CreationDate" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:54:21Z", diff --git a/facades-pages/AGENTS.md b/facades-pages/AGENTS.md index 049b9da36..1d409c26a 100644 --- a/facades-pages/AGENTS.md +++ b/facades-pages/AGENTS.md @@ -8,7 +8,7 @@ parent: ../agents.md # AGENTS - facades-pages -> **Facades pages** in PDF using C# / .NET -- **117** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. +> **Facades pages** in PDF using C# / .NET -- **185** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. ## Persona @@ -23,16 +23,16 @@ See the root [agents.md](../agents.md) for repository-wide conventions and bound ## Required Namespaces -- `using Aspose.Pdf.Facades;` (115/117 files) ← category-specific -- `using Aspose.Pdf;` (78/117 files) ← category-specific -- `using Aspose.Pdf.Text;` (6/117 files) -- `using Aspose.Pdf.Annotations;` (1/117 files) -- `using Aspose.Pdf.Forms;` (1/117 files) -- `using System;` (117/117 files) -- `using System.IO;` (108/117 files) -- `using System.Collections.Generic;` (10/117 files) -- `using System.Linq;` (1/117 files) -- `using System.Reflection;` (1/117 files) +- `using Aspose.Pdf.Facades;` (115/185 files) ← category-specific +- `using Aspose.Pdf;` (78/185 files) +- `using Aspose.Pdf.Text;` (6/185 files) +- `using Aspose.Pdf.Annotations;` (1/185 files) +- `using Aspose.Pdf.Forms;` (1/185 files) +- `using System;` (117/185 files) +- `using System.IO;` (108/185 files) +- `using System.Collections.Generic;` (10/185 files) +- `using System.Linq;` (1/185 files) +- `using System.Reflection;` (1/185 files) ## Common Code Pattern @@ -54,35 +54,35 @@ tool.Save("output.pdf"); | [add-20-percent-margins-to-pdf-pages](./add-20-percent-margins-to-pdf-pages.cs) | Add 20% Margins to PDF Pages | `PdfFileEditor`, `AddMarginsPct` | Demonstrates how to add uniform 20 % margins around each page of a PDF using Aspose.Pdf.Facades.P... | | [add-5-percent-margins-and-print-pdf](./add-5-percent-margins-and-print-pdf.cs) | Add 5% Margins and Print PDF | `PdfFileEditor`, `PdfViewer`, `AddMarginsPct` | Shows how to add a 5 % margin to every page of a PDF using PdfFileEditor and then print the modif... | | [add-fade-transition-to-pdf-page](./add-fade-transition-to-pdf-page.cs) | Add Fade Transition to PDF Page | `Document`, `PdfPageEditor`, `TransitionType` | Demonstrates how to set a fade page transition with a two‑second duration on the first page of a ... | +| [add-percentage-margins-to-pdf-pages](./add-percentage-margins-to-pdf-pages.cs) | Add percentage margins to pdf pages | | Add percentage margins to pdf pages | +| [add-transition-to-odd-pdf-pages](./add-transition-to-odd-pdf-pages.cs) | Add transition to odd pdf pages | | Add transition to odd pdf pages | | [adjust-page-zoom-based-on-word-count](./adjust-page-zoom-based-on-word-count.cs) | Adjust Page Zoom Based on Word Count | `Document`, `PdfPageEditor`, `TextAbsorber` | Demonstrates how to analyze each PDF page's word count and apply a dynamic zoom factor—higher zoo... | +| [adjust-pdf-page-zoom-by-word-count](./adjust-pdf-page-zoom-by-word-count.cs) | Adjust pdf page zoom by word count | | Adjust pdf page zoom by word count | | [align-page-three-vertically-top](./align-page-three-vertically-top.cs) | Align Page Three Vertically to Top Using PdfPageEditor | `Document`, `PdfPageEditor`, `BindPdf` | Shows how to vertically align the content of page 3 of a PDF to the top using Aspose.Pdf's PdfPag... | | [align-page-two-left](./align-page-two-left.cs) | Align Page Two Left in PDF | `Document`, `PdfPageEditor`, `ProcessPages` | Demonstrates how to left‑justify the content of the second page of a PDF using Aspose.Pdf's PdfPa... | +| [align-vertical-content-page-three](./align-vertical-content-page-three.cs) | Align vertical content page three | | Align vertical content page three | +| [apply-cover-transition-to-pdf-page](./apply-cover-transition-to-pdf-page.cs) | Apply cover transition to pdf page | | Apply cover transition to pdf page | | [apply-custom-page-transitions](./apply-custom-page-transitions.cs) | Apply Custom Page Transitions Based on Index | `Document`, `PdfPageEditor`, `BindPdf` | Shows how to assign different transition effects to each PDF page using Aspose.Pdf's PdfPageEdito... | | [apply-different-zoom-levels-to-pdf-pages](./apply-different-zoom-levels-to-pdf-pages.cs) | Apply Different Zoom Levels to PDF Pages | `PdfPageEditor`, `BindPdf`, `GetPages` | Shows how to assign a distinct zoom factor to each page of a PDF using the Aspose.Pdf.Facades.Pdf... | | [apply-dissolve-transition-to-pdf-page](./apply-dissolve-transition-to-pdf-page.cs) | Apply Dissolve Transition to a Specific PDF Page | `Document`, `PdfPageEditor`, `ApplyChanges` | Demonstrates how to set a three‑second Dissolve page transition on page 5 of a PDF using Aspose.P... | +| [apply-fade-transition-all-pdf-pages](./apply-fade-transition-all-pdf-pages.cs) | Apply fade transition all pdf pages | | Apply fade transition all pdf pages | | [apply-fade-transition-to-all-pdf-pages](./apply-fade-transition-to-all-pdf-pages.cs) | Apply Fade Transition to All PDF Pages | `Document`, `PdfPageEditor`, `BindPdf` | Shows how to set a uniform Fade (Dissolve) transition and duration for every page in a PDF using ... | | [apply-horizontal-alignment-to-pdf-pages](./apply-horizontal-alignment-to-pdf-pages.cs) | Apply Horizontal Alignment to PDF Pages | `PdfPageEditor`, `BindPdf`, `HorizontalAlignment` | Shows how to set left‑justified horizontal alignment for all pages of a PDF using the PdfPageEdit... | +| [apply-page-settings-from-json](./apply-page-settings-from-json.cs) | Apply page settings from json | | Apply page settings from json | | [apply-page-transitions-by-index](./apply-page-transitions-by-index.cs) | Apply Different Page Transitions Based on Index | `Document`, `PdfPageEditor`, `BindPdf` | Demonstrates how to assign a different transition effect to each PDF page using Aspose.Pdf.Facade... | +| [apply-page-transitions-per-index](./apply-page-transitions-per-index.cs) | Apply page transitions per index | | Apply page transitions per index | | [apply-rotation-size-zoom-to-pdf-pages](./apply-rotation-size-zoom-to-pdf-pages.cs) | Apply Rotation, Size, and Zoom to PDF Pages | `PdfPageEditor`, `BindPdf`, `ApplyChanges` | Demonstrates using Aspose.Pdf's PdfPageEditor facade to rotate pages, change the page size, apply... | +| [apply-rotation-zoom-transition-to-pdf-pages](./apply-rotation-zoom-transition-to-pdf-pages.cs) | Apply rotation zoom transition to pdf pages | | Apply rotation zoom transition to pdf pages | +| [apply-sequential-page-transitions](./apply-sequential-page-transitions.cs) | Apply sequential page transitions | | Apply sequential page transitions | +| [apply-split-transition-to-pdf-page](./apply-split-transition-to-pdf-page.cs) | Apply split transition to pdf page | | Apply split transition to pdf page | | [apply-transition-to-odd-pages](./apply-transition-to-odd-pages.cs) | Apply Transition to Odd Pages in PDF | `Document`, `PdfPageEditor`, `BindPdf` | Shows how to add a page transition effect only to odd‑numbered pages of a PDF using Aspose.Pdf's ... | | [apply-vertical-alignment-to-selected-pdf-pages](./apply-vertical-alignment-to-selected-pdf-pages.cs) | Apply Vertical Alignment to Selected PDF Pages | `PdfPageEditor`, `BindPdf`, `ProcessPages` | Demonstrates how to vertically align the content of specific pages in a PDF to the top using Aspo... | -| [apply-zoom-to-non-consecutive-pdf-pages](./apply-zoom-to-non-consecutive-pdf-pages.cs) | Apply Zoom to Non-Consecutive PDF Pages | `PdfPageEditor`, `BindPdf`, `ProcessPages` | Shows how to select specific non‑consecutive pages using the ProcessPages array and apply a commo... | -| [assign-page-transitions-by-content](./assign-page-transitions-by-content.cs) | Assign Page Transitions Based on Content Type | `Document`, `Page`, `PdfPageEditor` | Shows how to use Aspose.Pdf.Facades.PdfPageEditor to set different transition effects for image a... | -| [audit-pdf-page-dimensions-rotation](./audit-pdf-page-dimensions-rotation.cs) | Audit PDF Page Dimensions and Rotation Before and After Edit... | `PdfPageEditor`, `BindPdf`, `GetPages` | Shows how to log each PDF page's width, height, and rotation, apply a rotation to a page, and sav... | -| [batch-adjust-pdf-page-size](./batch-adjust-pdf-page-size.cs) | Batch Adjust PDF Page Size to A4 | `Document`, `PdfPageEditor`, `PageSize` | Shows how to process all PDFs in a folder and set each page to a specific size (e.g., A4) using A... | -| [batch-convert-pdfs-to-a4](./batch-convert-pdfs-to-a4.cs) | Batch Convert PDFs to A4 Page Size | `PdfPageEditor`, `BindPdf`, `ApplyChanges` | Shows how to iterate over PDF files in a directory and resize each document to A4 using Aspose.Pd... | -| [batch-rotate-first-page-pdfs](./batch-rotate-first-page-pdfs.cs) | Batch Rotate First Page of PDFs | `PdfPageEditor`, `BindPdf`, `PageRotations` | Shows how to process all PDF files in a folder and rotate the first page of each document by 90° ... | -| [batch-set-fade-transition-pdf-slideshow](./batch-set-fade-transition-pdf-slideshow.cs) | Batch Set Fade Transition for PDF Slideshow | `Document`, `PdfPageEditor`, `TransitionType` | Demonstrates how to apply a fade (dissolve) transition with a 2‑second duration to all pages of a... | -| [center-page-content-horizontally](./center-page-content-horizontally.cs) | Center Page Content Horizontally Using PdfPageEditor | `PdfPageEditor`, `BindPdf`, `ProcessPages` | Shows how to use Aspose.Pdf.Facades.PdfPageEditor to center the existing content of a specific pa... | -| [center-page-content-set-display-duration](./center-page-content-set-display-duration.cs) | Center Page Content and Set Display Duration on a Specific P... | `PdfPageEditor`, `Document`, `BindPdf` | Demonstrates how to center the content of a specific PDF page and set its display duration using ... | -| [chain-page-rotation-size-zoom-modifications](./chain-page-rotation-size-zoom-modifications.cs) | Chain Page Rotation, Size, and Zoom Modifications | `Document`, `PdfPageEditor`, `Rotation` | Demonstrates how to use PdfPageEditor to rotate, resize, zoom, and reposition PDF pages in a sing... | -| [change-pdf-page-size-and-undo](./change-pdf-page-size-and-undo.cs) | Change PDF Page Size and Undo to Original | `PdfPageEditor`, `BindPdf`, `GetPageSize` | Shows how to capture a PDF's original page size, apply a custom size to all pages, save the modif... | -| [change-pdf-page-size-to-a3](./change-pdf-page-size-to-a3.cs) | Change PDF Page Size to A3 Using PdfPageEditor | `PdfPageEditor`, `BindPdf`, `PageSize` | Shows how to resize all pages of a PDF to A3 dimensions and optionally increase resolution using ... | -| [combine-page-rotation-zoom-presentation](./combine-page-rotation-zoom-presentation.cs) | Combine Page Rotation, Zoom, and Transitions for PDF Present... | `Document`, `PdfPageEditor`, `BindPdf` | Shows how to rotate, zoom, and apply slide transition effects to every page of a PDF using Aspose... | -| ... | | | *and 87 more files* | +| [apply-zoom-to-even-pdf-pages](./apply-zoom-to-even-pdf-pages.cs) | Apply zoom to even pdf pages | | Apply zoom to even pdf pages | +| [apply-zoom-to-even-pdf-pages__v2](./apply-zoom-to-even-pdf-pages__v2.cs) | Apply zoom to even pdf pages__v2 | | Apply zoom to even pdf pages__v2 | +| ... | | | *and 155 more files* | ## Category Statistics -- Total examples: 117 +- Total examples: 185 ## Category-Specific Tips @@ -115,5 +115,5 @@ tool.Save("output.pdf"); - Review code examples in this folder for facades-pages patterns -Updated: 2026-08-20 | Run: `20260820_001147_12d7b3` +Updated: 2026-09-10 | Run: `20260910_054408_87a7f4` diff --git a/facades-pages/README.md b/facades-pages/README.md new file mode 100644 index 000000000..ff2c7b472 --- /dev/null +++ b/facades-pages/README.md @@ -0,0 +1,204 @@ +# Facades pages + +> **Facades pages** in PDF using C# / .NET -- **185** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. + +- Category: `facades-pages` +- Examples: 185 +- NuGet: `Aspose.PDF 26.8.0` -- target `net10.0` + +## Examples + +- [`add-10-percent-margins-to-pdf-pages.cs`](./add-10-percent-margins-to-pdf-pages.cs) -- Add 10 percent margins to pdf pages +- [`add-15-percent-margins-to-pdf-pages.cs`](./add-15-percent-margins-to-pdf-pages.cs) -- Add 15 percent margins to pdf pages +- [`add-20-percent-margins-to-pdf-pages.cs`](./add-20-percent-margins-to-pdf-pages.cs) -- Add 20 percent margins to pdf pages +- [`add-5-percent-margins-and-print-pdf.cs`](./add-5-percent-margins-and-print-pdf.cs) -- Add 5 percent margins and print pdf +- [`add-fade-transition-to-pdf-page.cs`](./add-fade-transition-to-pdf-page.cs) -- Add fade transition to pdf page +- [`add-percentage-margins-to-pdf-pages.cs`](./add-percentage-margins-to-pdf-pages.cs) -- Add percentage margins to pdf pages +- [`add-transition-to-odd-pdf-pages.cs`](./add-transition-to-odd-pdf-pages.cs) -- Add transition to odd pdf pages +- [`adjust-page-zoom-based-on-word-count.cs`](./adjust-page-zoom-based-on-word-count.cs) -- Adjust page zoom based on word count +- [`adjust-pdf-page-zoom-by-word-count.cs`](./adjust-pdf-page-zoom-by-word-count.cs) -- Adjust pdf page zoom by word count +- [`align-page-three-vertically-top.cs`](./align-page-three-vertically-top.cs) -- Align page three vertically top +- [`align-page-two-left.cs`](./align-page-two-left.cs) -- Align page two left +- [`align-vertical-content-page-three.cs`](./align-vertical-content-page-three.cs) -- Align vertical content page three +- [`apply-cover-transition-to-pdf-page.cs`](./apply-cover-transition-to-pdf-page.cs) -- Apply cover transition to pdf page +- [`apply-custom-page-transitions.cs`](./apply-custom-page-transitions.cs) -- Apply custom page transitions +- [`apply-different-zoom-levels-to-pdf-pages.cs`](./apply-different-zoom-levels-to-pdf-pages.cs) -- Apply different zoom levels to pdf pages +- [`apply-dissolve-transition-to-pdf-page.cs`](./apply-dissolve-transition-to-pdf-page.cs) -- Apply dissolve transition to pdf page +- [`apply-fade-transition-all-pdf-pages.cs`](./apply-fade-transition-all-pdf-pages.cs) -- Apply fade transition all pdf pages +- [`apply-fade-transition-to-all-pdf-pages.cs`](./apply-fade-transition-to-all-pdf-pages.cs) -- Apply fade transition to all pdf pages +- [`apply-horizontal-alignment-to-pdf-pages.cs`](./apply-horizontal-alignment-to-pdf-pages.cs) -- Apply horizontal alignment to pdf pages +- [`apply-page-settings-from-json.cs`](./apply-page-settings-from-json.cs) -- Apply page settings from json +- [`apply-page-transitions-by-index.cs`](./apply-page-transitions-by-index.cs) -- Apply page transitions by index +- [`apply-page-transitions-per-index.cs`](./apply-page-transitions-per-index.cs) -- Apply page transitions per index +- [`apply-rotation-size-zoom-to-pdf-pages.cs`](./apply-rotation-size-zoom-to-pdf-pages.cs) -- Apply rotation size zoom to pdf pages +- [`apply-rotation-zoom-transition-to-pdf-pages.cs`](./apply-rotation-zoom-transition-to-pdf-pages.cs) -- Apply rotation zoom transition to pdf pages +- [`apply-sequential-page-transitions.cs`](./apply-sequential-page-transitions.cs) -- Apply sequential page transitions +- [`apply-split-transition-to-pdf-page.cs`](./apply-split-transition-to-pdf-page.cs) -- Apply split transition to pdf page +- [`apply-transition-to-odd-pages.cs`](./apply-transition-to-odd-pages.cs) -- Apply transition to odd pages +- [`apply-vertical-alignment-to-selected-pdf-pages.cs`](./apply-vertical-alignment-to-selected-pdf-pages.cs) -- Apply vertical alignment to selected pdf pages +- [`apply-zoom-to-even-pdf-pages.cs`](./apply-zoom-to-even-pdf-pages.cs) -- Apply zoom to even pdf pages +- [`apply-zoom-to-even-pdf-pages__v2.cs`](./apply-zoom-to-even-pdf-pages__v2.cs) -- Apply zoom to even pdf pages v2 +- [`apply-zoom-to-non-consecutive-pdf-pages.cs`](./apply-zoom-to-non-consecutive-pdf-pages.cs) -- Apply zoom to non consecutive pdf pages +- [`assign-page-transitions-by-content.cs`](./assign-page-transitions-by-content.cs) -- Assign page transitions by content +- [`audit-pdf-page-dimensions-rotation.cs`](./audit-pdf-page-dimensions-rotation.cs) -- Audit pdf page dimensions rotation +- [`batch-adjust-pdf-page-size.cs`](./batch-adjust-pdf-page-size.cs) -- Batch adjust pdf page size +- [`batch-convert-pdfs-to-a4.cs`](./batch-convert-pdfs-to-a4.cs) -- Batch convert pdfs to a4 +- [`batch-resize-pdf-pages-by-filename.cs`](./batch-resize-pdf-pages-by-filename.cs) -- Batch resize pdf pages by filename +- [`batch-rotate-first-page-pdfs.cs`](./batch-rotate-first-page-pdfs.cs) -- Batch rotate first page pdfs +- [`batch-set-fade-transition-for-pdf-slideshow.cs`](./batch-set-fade-transition-for-pdf-slideshow.cs) -- Batch set fade transition for pdf slideshow +- [`batch-set-fade-transition-pdf-slideshow.cs`](./batch-set-fade-transition-pdf-slideshow.cs) -- Batch set fade transition pdf slideshow +- [`center-align-page-set-display-duration.cs`](./center-align-page-set-display-duration.cs) -- Center align page set display duration +- [`center-content-on-page-two.cs`](./center-content-on-page-two.cs) -- Center content on page two +- [`center-page-content-horizontally.cs`](./center-page-content-horizontally.cs) -- Center page content horizontally +- [`center-page-content-set-display-duration.cs`](./center-page-content-set-display-duration.cs) -- Center page content set display duration +- [`chain-page-rotation-size-zoom-modifications.cs`](./chain-page-rotation-size-zoom-modifications.cs) -- Chain page rotation size zoom modifications +- [`change-pdf-page-size-and-undo.cs`](./change-pdf-page-size-and-undo.cs) -- Change pdf page size and undo +- [`change-pdf-page-size-to-a3.cs`](./change-pdf-page-size-to-a3.cs) -- Change pdf page size to a3 +- [`combine-page-rotation-zoom-presentation.cs`](./combine-page-rotation-zoom-presentation.cs) -- Combine page rotation zoom presentation +- [`convert-pdf-pages-to-landscape.cs`](./convert-pdf-pages-to-landscape.cs) -- Convert pdf pages to landscape +- [`convert-pdf-portrait-to-landscape.cs`](./convert-pdf-portrait-to-landscape.cs) -- Convert pdf portrait to landscape +- [`convert-pdf-to-landscape-a4.cs`](./convert-pdf-to-landscape-a4.cs) -- Convert pdf to landscape a4 +- [`convert-portrait-to-landscape.cs`](./convert-portrait-to-landscape.cs) -- Convert portrait to landscape +- [`create-a-contentsresizeparameters-object-using-percentage-margins-of-fifteen-percent-for-uniform-content-scaling.cs`](./create-a-contentsresizeparameters-object-using-percentage-margins-of-fifteen-percent-for-uniform-content-scaling.cs) -- Create a contentsresizeparameters object using percentage margins of fifteen percent for uniform content scaling +- [`create-contentsresizeparameters-uniform-margins.cs`](./create-contentsresizeparameters-uniform-margins.cs) -- Create contentsresizeparameters uniform margins +- [`create-contentsresizeparameters-with-uniform-margins.cs`](./create-contentsresizeparameters-with-uniform-margins.cs) -- Create contentsresizeparameters with uniform margins +- [`create-pdf-slideshow-with-page-transitions.cs`](./create-pdf-slideshow-with-page-transitions.cs) -- Create pdf slideshow with page transitions +- [`create-pdf-with-a4-pages.cs`](./create-pdf-with-a4-pages.cs) -- Create pdf with a4 pages +- [`create-uniform-15-percent-margin-resize-parameters.cs`](./create-uniform-15-percent-margin-resize-parameters.cs) -- Create uniform 15 percent margin resize parameters +- [`disable-page-transition-animation.cs`](./disable-page-transition-animation.cs) -- Disable page transition animation +- [`dispose-pdfpageeditor-properly.cs`](./dispose-pdfpageeditor-properly.cs) -- Dispose pdfpageeditor properly +- [`edit-pdf-in-memory-using-pdfpageeditor.cs`](./edit-pdf-in-memory-using-pdfpageeditor.cs) -- Edit pdf in memory using pdfpageeditor +- [`edit-pdf-in-memory-using-pdfpageeditor__v2.cs`](./edit-pdf-in-memory-using-pdfpageeditor__v2.cs) -- Edit pdf in memory using pdfpageeditor v2 +- [`edit-pdf-page-zoom-save.cs`](./edit-pdf-page-zoom-save.cs) -- Edit pdf page zoom save +- [`edit-pdf-pages-save-new-file.cs`](./edit-pdf-pages-save-new-file.cs) -- Edit pdf pages save new file +- [`edit-pdf-pages-with-pdfpageeditor-disposal.cs`](./edit-pdf-pages-with-pdfpageeditor-disposal.cs) -- Edit pdf pages with pdfpageeditor disposal +- [`edit-pdf-pages-zoom-rotation.cs`](./edit-pdf-pages-zoom-rotation.cs) -- Edit pdf pages zoom rotation +- [`edit-pdf-with-backup-using-pdfpageeditor.cs`](./edit-pdf-with-backup-using-pdfpageeditor.cs) -- Edit pdf with backup using pdfpageeditor +- [`extract-rotate-selected-pdf-pages.cs`](./extract-rotate-selected-pdf-pages.cs) -- Extract rotate selected pdf pages +- [`handle-invalid-page-rotation.cs`](./handle-invalid-page-rotation.cs) -- Handle invalid page rotation +- [`handle-invalid-rotation-value.cs`](./handle-invalid-rotation-value.cs) -- Handle invalid rotation value +- [`hybrid-content-resize-mixed-margins.cs`](./hybrid-content-resize-mixed-margins.cs) -- Hybrid content resize mixed margins +- [`incremental-update-pdf-text-annotation.cs`](./incremental-update-pdf-text-annotation.cs) -- Incremental update pdf text annotation +- [`load-pdf-with-pdfpageeditor.cs`](./load-pdf-with-pdfpageeditor.cs) -- Load pdf with pdfpageeditor +- [`log-pdf-page-modifications.cs`](./log-pdf-page-modifications.cs) -- Log pdf page modifications +- [`log-pdf-page-property-changes.cs`](./log-pdf-page-property-changes.cs) -- Log pdf page property changes +- [`merge-pdfs-with-uniform-margins.cs`](./merge-pdfs-with-uniform-margins.cs) -- Merge pdfs with uniform margins +- [`modify-pages-in-signed-pdf.cs`](./modify-pages-in-signed-pdf.cs) -- Modify pages in signed pdf +- [`modify-pages-preserve-signature.cs`](./modify-pages-preserve-signature.cs) -- Modify pages preserve signature +- [`report-page-properties-before-after-edit.cs`](./report-page-properties-before-after-edit.cs) -- Report page properties before after edit +- [`report-pdf-page-properties-before-after.cs`](./report-pdf-page-properties-before-after.cs) -- Report pdf page properties before after +- [`reset-page-rotation-to-zero.cs`](./reset-page-rotation-to-zero.cs) -- Reset page rotation to zero +- [`reset-page-rotation.cs`](./reset-page-rotation.cs) -- Reset page rotation +- [`resize-and-rotate-pdf-page.cs`](./resize-and-rotate-pdf-page.cs) -- Resize and rotate pdf page +- [`resize-and-split-pdf-into-chapters.cs`](./resize-and-split-pdf-into-chapters.cs) -- Resize and split pdf into chapters +- [`resize-contents-of-pages-two-and-four-with-custom-left-and-right-margins-using-contentsresizeparameters.cs`](./resize-contents-of-pages-two-and-four-with-custom-left-and-right-margins-using-contentsresizeparameters.cs) -- Resize contents of pages two and four with custom left and right margins using contentsresizeparameters +- [`resize-contents-on-text-pages.cs`](./resize-contents-on-text-pages.cs) -- Resize contents on text pages +- [`resize-contents-only-on-text-pages.cs`](./resize-contents-only-on-text-pages.cs) -- Resize contents only on text pages +- [`resize-page-six-to-letter-size.cs`](./resize-page-six-to-letter-size.cs) -- Resize page six to letter size +- [`resize-pdf-and-split-into-chapters.cs`](./resize-pdf-and-split-into-chapters.cs) -- Resize pdf and split into chapters +- [`resize-pdf-contents-asymmetric-margins.cs`](./resize-pdf-contents-asymmetric-margins.cs) -- Resize pdf contents asymmetric margins +- [`resize-pdf-contents-rotate-pages.cs`](./resize-pdf-contents-rotate-pages.cs) -- Resize pdf contents rotate pages +- [`resize-pdf-contents-top-bottom-margins.cs`](./resize-pdf-contents-top-bottom-margins.cs) -- Resize pdf contents top bottom margins +- [`resize-pdf-contents-uniform-margin.cs`](./resize-pdf-contents-uniform-margin.cs) -- Resize pdf contents uniform margin +- [`resize-pdf-contents-uniform-margins.cs`](./resize-pdf-contents-uniform-margins.cs) -- Resize pdf contents uniform margins +- [`resize-pdf-page-and-revert.cs`](./resize-pdf-page-and-revert.cs) -- Resize pdf page and revert +- [`resize-pdf-page-contents-10-percent-margins.cs`](./resize-pdf-page-contents-10-percent-margins.cs) -- Resize pdf page contents 10 percent margins +- [`resize-pdf-page-contents-5-percent.cs`](./resize-pdf-page-contents-5-percent.cs) -- Resize pdf page contents 5 percent +- [`resize-pdf-page-contents-custom-margins.cs`](./resize-pdf-page-contents-custom-margins.cs) -- Resize pdf page contents custom margins +- [`resize-pdf-page-contents-negative-margins.cs`](./resize-pdf-page-contents-negative-margins.cs) -- Resize pdf page contents negative margins +- [`resize-pdf-pages-content-10-percent-margin.cs`](./resize-pdf-pages-content-10-percent-margin.cs) -- Resize pdf pages content 10 percent margin +- [`resize-pdf-pages-preserve-annotations.cs`](./resize-pdf-pages-preserve-annotations.cs) -- Resize pdf pages preserve annotations +- [`resize-pdf-pages-to-a4.cs`](./resize-pdf-pages-to-a4.cs) -- Resize pdf pages to a4 +- [`resize-pdf-pages-using-pdfpageeditor.cs`](./resize-pdf-pages-using-pdfpageeditor.cs) -- Resize pdf pages using pdfpageeditor +- [`resize-specific-pdf-page-to-letter.cs`](./resize-specific-pdf-page-to-letter.cs) -- Resize specific pdf page to letter +- [`resize-specific-pdf-pages-to-us-letter.cs`](./resize-specific-pdf-pages-to-us-letter.cs) -- Resize specific pdf pages to us letter +- [`retrieve-page-rotation.cs`](./retrieve-page-rotation.cs) -- Retrieve page rotation +- [`retrieve-page-size-after-rotation.cs`](./retrieve-page-size-after-rotation.cs) -- Retrieve page size after rotation +- [`retrieve-pdf-page-size.cs`](./retrieve-pdf-page-size.cs) -- Retrieve pdf page size +- [`retrieve-verify-page-rotation-after-resize.cs`](./retrieve-verify-page-rotation-after-resize.cs) -- Retrieve verify page rotation after resize +- [`retrieve-verify-page-rotation-after-resizing.cs`](./retrieve-verify-page-rotation-after-resizing.cs) -- Retrieve verify page rotation after resizing +- [`revert-page-size-to-original.cs`](./revert-page-size-to-original.cs) -- Revert page size to original +- [`revert-pdf-page-size-to-original.cs`](./revert-pdf-page-size-to-original.cs) -- Revert pdf page size to original +- [`rotate-and-reset-pdf-page-orientation.cs`](./rotate-and-reset-pdf-page-orientation.cs) -- Rotate and reset pdf page orientation +- [`rotate-and-resize-pdf-page-to-letter.cs`](./rotate-and-resize-pdf-page-to-letter.cs) -- Rotate and resize pdf page to letter +- [`rotate-every-third-page-270-degrees.cs`](./rotate-every-third-page-270-degrees.cs) -- Rotate every third page 270 degrees +- [`rotate-every-third-pdf-page.cs`](./rotate-every-third-pdf-page.cs) -- Rotate every third pdf page +- [`rotate-first-page-from-memory-stream.cs`](./rotate-first-page-from-memory-stream.cs) -- Rotate first page from memory stream +- [`rotate-first-page-of-pdfs.cs`](./rotate-first-page-of-pdfs.cs) -- Rotate first page of pdfs +- [`rotate-first-page-pdf.cs`](./rotate-first-page-pdf.cs) -- Rotate first page pdf +- [`rotate-landscape-pdf-pages.cs`](./rotate-landscape-pdf-pages.cs) -- Rotate landscape pdf pages +- [`rotate-page-2-pdf-90-degrees.cs`](./rotate-page-2-pdf-90-degrees.cs) -- Rotate page 2 pdf 90 degrees +- [`rotate-pages-encrypted-pdf.cs`](./rotate-pages-encrypted-pdf.cs) -- Rotate pages encrypted pdf +- [`rotate-pdf-page-180-preserve-transition.cs`](./rotate-pdf-page-180-preserve-transition.cs) -- Rotate pdf page 180 preserve transition +- [`rotate-pdf-page-180-preserve-transitions.cs`](./rotate-pdf-page-180-preserve-transitions.cs) -- Rotate pdf page 180 preserve transitions +- [`rotate-pdf-page-restore-orientation.cs`](./rotate-pdf-page-restore-orientation.cs) -- Rotate pdf page restore orientation +- [`rotate-pdf-pages-and-save.cs`](./rotate-pdf-pages-and-save.cs) -- Rotate pdf pages and save +- [`rotate-pdf-pages-for-brochure.cs`](./rotate-pdf-pages-for-brochure.cs) -- Rotate pdf pages for brochure +- [`rotate-pdf-pages-from-network-stream.cs`](./rotate-pdf-pages-from-network-stream.cs) -- Rotate pdf pages from network stream +- [`rotate-pdf-pages-memory-stream.cs`](./rotate-pdf-pages-memory-stream.cs) -- Rotate pdf pages memory stream +- [`rotate-pdf-pages-preserve-form-fields.cs`](./rotate-pdf-pages-preserve-form-fields.cs) -- Rotate pdf pages preserve form fields +- [`rotate-pdf-pages-preserve-form.cs`](./rotate-pdf-pages-preserve-form.cs) -- Rotate pdf pages preserve form +- [`rotate-pdf-pages-to-landscape-brochure.cs`](./rotate-pdf-pages-to-landscape-brochure.cs) -- Rotate pdf pages to landscape brochure +- [`rotate-pdf-pages-using-pdfpageeditor.cs`](./rotate-pdf-pages-using-pdfpageeditor.cs) -- Rotate pdf pages using pdfpageeditor +- [`rotate-pdf-pages-using-pdfpageeditor__v2.cs`](./rotate-pdf-pages-using-pdfpageeditor__v2.cs) -- Rotate pdf pages using pdfpageeditor v2 +- [`rotate-pdf-pages-with-validation.cs`](./rotate-pdf-pages-with-validation.cs) -- Rotate pdf pages with validation +- [`rotate-resize-pdf-page-to-letter.cs`](./rotate-resize-pdf-page-to-letter.cs) -- Rotate resize pdf page to letter +- [`rotate-resize-zoom-pdf-pages.cs`](./rotate-resize-zoom-pdf-pages.cs) -- Rotate resize zoom pdf pages +- [`rotate-specific-pdf-page.cs`](./rotate-specific-pdf-page.cs) -- Rotate specific pdf page +- [`rotate-specific-pdf-pages.cs`](./rotate-specific-pdf-pages.cs) -- Rotate specific pdf pages +- [`safe-get-pdf-page-size.cs`](./safe-get-pdf-page-size.cs) -- Safe get pdf page size +- [`save-modified-pdf-to-memorystream-using-pdfpageeditor.cs`](./save-modified-pdf-to-memorystream-using-pdfpageeditor.cs) -- Save modified pdf to memorystream using pdfpageeditor +- [`set-boxout-transition-and-zoom.cs`](./set-boxout-transition-and-zoom.cs) -- Set boxout transition and zoom +- [`set-boxout-transition-on-pdf-page.cs`](./set-boxout-transition-on-pdf-page.cs) -- Set boxout transition on pdf page +- [`set-cover-transition-on-pdf-page.cs`](./set-cover-transition-on-pdf-page.cs) -- Set cover transition on pdf page +- [`set-custom-a4-landscape-page-size.cs`](./set-custom-a4-landscape-page-size.cs) -- Set custom a4 landscape page size +- [`set-custom-page-size-with-pdfpageeditor.cs`](./set-custom-page-size-with-pdfpageeditor.cs) -- Set custom page size with pdfpageeditor +- [`set-display-duration-even-pages.cs`](./set-display-duration-even-pages.cs) -- Set display duration even pages +- [`set-display-duration-for-pdf-pages.cs`](./set-display-duration-for-pdf-pages.cs) -- Set display duration for pdf pages +- [`set-display-duration-on-even-pdf-pages.cs`](./set-display-duration-on-even-pdf-pages.cs) -- Set display duration on even pdf pages +- [`set-display-duration-page-five.cs`](./set-display-duration-page-five.cs) -- Set display duration page five +- [`set-horizontal-alignment-and-zoom-on-page.cs`](./set-horizontal-alignment-and-zoom-on-page.cs) -- Set horizontal alignment and zoom on page +- [`set-horizontal-alignment-pdf.cs`](./set-horizontal-alignment-pdf.cs) -- Set horizontal alignment pdf +- [`set-horizontal-alignment-zoom-page.cs`](./set-horizontal-alignment-zoom-page.cs) -- Set horizontal alignment zoom page +- [`set-last-page-size-a5.cs`](./set-last-page-size-a5.cs) -- Set last page size a5 +- [`set-page-display-duration-by-word-count.cs`](./set-page-display-duration-by-word-count.cs) -- Set page display duration by word count +- [`set-page-display-duration-for-pdf-slideshow.cs`](./set-page-display-duration-for-pdf-slideshow.cs) -- Set page display duration for pdf slideshow +- [`set-page-transition-duration-based-on-title-length.cs`](./set-page-transition-duration-based-on-title-length.cs) -- Set page transition duration based on title length +- [`set-page-transition-duration-for-selected-pdf-pages.cs`](./set-page-transition-duration-for-selected-pdf-pages.cs) -- Set page transition duration for selected pdf pages +- [`set-page-transition-fade-2sec.cs`](./set-page-transition-fade-2sec.cs) -- Set page transition fade 2sec +- [`set-page-transitions-fade-boxout-cover.cs`](./set-page-transitions-fade-boxout-cover.cs) -- Set page transitions fade boxout cover +- [`set-page-zoom-to-100-percent.cs`](./set-page-zoom-to-100-percent.cs) -- Set page zoom to 100 percent +- [`set-page-zoom-to-150-percent.cs`](./set-page-zoom-to-150-percent.cs) -- Set page zoom to 150 percent +- [`set-pdf-page-size-a4-landscape.cs`](./set-pdf-page-size-a4-landscape.cs) -- Set pdf page size a4 landscape +- [`set-pdf-page-size-to-a3.cs`](./set-pdf-page-size-to-a3.cs) -- Set pdf page size to a3 +- [`set-pdf-page-size-to-letter-portrait.cs`](./set-pdf-page-size-to-letter-portrait.cs) -- Set pdf page size to letter portrait +- [`set-pdf-page-zoom-preview-final.cs`](./set-pdf-page-zoom-preview-final.cs) -- Set pdf page zoom preview final +- [`set-pdf-page-zoom-using-double-precision.cs`](./set-pdf-page-zoom-using-double-precision.cs) -- Set pdf page zoom using double precision +- [`set-pdf-zoom-preview-final-output.cs`](./set-pdf-zoom-preview-final-output.cs) -- Set pdf zoom preview final output +- [`set-per-page-display-duration-based-on-word-count.cs`](./set-per-page-display-duration-based-on-word-count.cs) -- Set per page display duration based on word count +- [`set-per-page-display-duration.cs`](./set-per-page-display-duration.cs) -- Set per page display duration +- [`set-sequential-page-transitions.cs`](./set-sequential-page-transitions.cs) -- Set sequential page transitions +- [`set-slide-display-duration-pdf-presentation.cs`](./set-slide-display-duration-pdf-presentation.cs) -- Set slide display duration pdf presentation +- [`set-slide-display-duration-pdf.cs`](./set-slide-display-duration-pdf.cs) -- Set slide display duration pdf +- [`set-split-page-transition.cs`](./set-split-page-transition.cs) -- Set split page transition +- [`set-zoom-of-page-to-75-percent.cs`](./set-zoom-of-page-to-75-percent.cs) -- Set zoom of page to 75 percent +- [`set-zoom-on-even-pdf-pages.cs`](./set-zoom-on-even-pdf-pages.cs) -- Set zoom on even pdf pages +- [`set-zoom-on-odd-pages.cs`](./set-zoom-on-odd-pages.cs) -- Set zoom on odd pages +- [`set-zoom-on-specific-pdf-page.cs`](./set-zoom-on-specific-pdf-page.cs) -- Set zoom on specific pdf page +- [`set-zoom-page-5-75-percent.cs`](./set-zoom-page-5-75-percent.cs) -- Set zoom page 5 75 percent +- [`use-try-catch-blocks-around-getpagesize-calls-to-handle-requests-for-non-existent-page-numbers-safely.cs`](./use-try-catch-blocks-around-getpagesize-calls-to-handle-requests-for-non-existent-page-numbers-safely.cs) -- Use try catch blocks around getpagesize calls to handle requests for non existent page numbers safely +- [`vertically-align-page-3-top.cs`](./vertically-align-page-3-top.cs) -- Vertically align page 3 top +- [`vertically-center-page-content.cs`](./vertically-center-page-content.cs) -- Vertically center page content +- [`zoom-even-pages-pdf.cs`](./zoom-even-pages-pdf.cs) -- Zoom even pages pdf +- [`zoom-pages-with-images.cs`](./zoom-pages-with-images.cs) -- Zoom pages with images +- [`zoom-pdf-pages-with-images.cs`](./zoom-pdf-pages-with-images.cs) -- Zoom pdf pages with images +- [`zoom-selected-non-consecutive-pdf-pages.cs`](./zoom-selected-non-consecutive-pdf-pages.cs) -- Zoom selected non consecutive pdf pages + +## See Also + +- [`AGENTS.md`](./AGENTS.md) -- category-specific anti-patterns, API surface, and conventions for AI coding agents +- [`../AGENTS.md`](../AGENTS.md) -- repository-wide agent guide +- [`../README.md`](../README.md) -- full category index and project overview +- [Aspose.PDF for .NET docs](https://docs.aspose.com/pdf/net/) + +> Each `.cs` file is a standalone, build-validated console example. Drop into a fresh `dotnet new console` project, add the `Aspose.PDF` NuGet (version above), and run. diff --git a/facades-pages/index.json b/facades-pages/index.json index aa208729d..8cca9115b 100644 --- a/facades-pages/index.json +++ b/facades-pages/index.json @@ -1,160 +1,181 @@ { "category": "facades-pages", "nuget_version": "26.8.0", - "last_updated": "2026-08-20T07:55:57Z", + "last_updated": "2026-09-10T12:45:08Z", "examples": { - "rotate-first-page-pdf": { - "title": "Rotate First Page of PDF Using PdfPageEditor", - "filename": "rotate-first-page-pdf.cs", - "description": "Demonstrates loading a PDF with PdfPageEditor, rotating the first page, and saving the edited document.", + "add-10-percent-margins-to-pdf-pages": { + "title": "Add 10% Margins to All PDF Pages", + "filename": "add-10-percent-margins-to-pdf-pages.cs", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfFileEditor to add a uniform 10 % margin on all sides of every page in a PDF, producing a resized document ready for printing.", "tags": [ "pdf", - "rotation", - "page-editing", - "aspose", - "csharp" + "margin", + "resize", + "facade", + "printing" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.Rotation", - "PdfPageEditor.ProcessPages", - "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save" + "Aspose.Pdf.Facades.PdfFileEditor", + "Aspose.Pdf.Facades.PdfFileEditor.AddMarginsPct" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "rotate-first-page-from-memory-stream": { - "title": "Rotate First Page of PDF from Memory Stream", - "filename": "rotate-first-page-from-memory-stream.cs", - "description": "Shows how to load a PDF from a MemoryStream into PdfPageEditor, rotate a specific page, and save the edited document.", + "add-15-percent-margins-to-pdf-pages": { + "title": "Add 15% Margins to PDF Pages for Booklet Layout", + "filename": "add-15-percent-margins-to-pdf-pages.cs", + "description": "Shows how to apply a 15 % margin to selected or all pages of a PDF using Aspose.Pdf.Facades, improving readability and binding margins for booklet layouts.", "tags": [ "pdf", - "memory-stream", - "page-rotation", - "aspose-pdf", + "margins", + "booklet", + "aspose", "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Save", - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfFileEditor", + "Aspose.Pdf.Facades.PdfFileEditor.AddMarginsPct" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "edit-pdf-page-zoom-save": { - "title": "Edit PDF Page Zoom and Save with PdfPageEditor", - "filename": "edit-pdf-page-zoom-save.cs", - "description": "Demonstrates loading a PDF using PdfPageEditor, setting the page zoom level, applying the changes, and saving the edited document to a new file.", + "add-20-percent-margins-to-pdf-pages": { + "title": "Add 20% Margins to PDF Pages", + "filename": "add-20-percent-margins-to-pdf-pages.cs", + "description": "Demonstrates how to add uniform 20 % margins around each page of a PDF using Aspose.Pdf.Facades.PdfFileEditor for better printing layout.", "tags": [ "pdf", - "page-editing", - "zoom", - "aspose-pdf", - "save" + "margin", + "printing", + "aspose", + "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.Zoom", - "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save" + "Aspose.Pdf.Facades.PdfFileEditor", + "Aspose.Pdf.Facades.PdfFileEditor.AddMarginsPct" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "edit-pdf-in-memory-using-pdfpageeditor": { - "title": "Edit PDF In-Memory Using PdfPageEditor", - "filename": "edit-pdf-in-memory-using-pdfpageeditor.cs", - "description": "Shows how to bind a PDF from a MemoryStream, apply a modification (zoom factor) with PdfPageEditor, and save the edited PDF back to a MemoryStream, avoiding any disk I/O.", + "add-5-percent-margins-and-print-pdf": { + "title": "Add 5% Margins and Print PDF", + "filename": "add-5-percent-margins-and-print-pdf.cs", + "description": "Shows how to add a 5 % margin to every page of a PDF using PdfFileEditor and then print the modified document with PdfViewer.", "tags": [ - "memory-stream", - "pdf-editing", - "pdfpageeditor", - "aspose-pdf", - "in-memory" + "pdf", + "margin", + "printing", + "aspose", + "facades" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.Save", - "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Facades.PdfPageEditor.Zoom" + "Aspose.Pdf.Facades.PdfFileEditor", + "Aspose.Pdf.Facades.PdfViewer", + "Aspose.Pdf.Facades.PdfFileEditor.AddMarginsPct", + "Aspose.Pdf.Facades.PdfViewer.BindPdf", + "Aspose.Pdf.Facades.PdfViewer.PrintDocument" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "rotate-page-2-pdf-90-degrees": { - "title": "Rotate Page 2 of a PDF by 90 Degrees", - "filename": "rotate-page-2-pdf-90-degrees.cs", - "description": "Demonstrates how to rotate a specific page in a PDF using Aspose.Pdf.Facades.PdfPageEditor by setting a PageRotations entry and applying the changes.", + "add-fade-transition-to-pdf-page": { + "title": "Add Fade Transition to PDF Page", + "filename": "add-fade-transition-to-pdf-page.cs", + "description": "Demonstrates how to set a fade page transition with a two‑second duration on the first page of a PDF using Aspose.Pdf.", "tags": [ "pdf", - "rotation", - "page-editing", - "aspose-pdf", - "csharp" + "fade", + "transition", + "aspose.pdf", + "pdfpageeditor" ], "apis_used": [ - "PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.PageRotations", + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfPageEditor", + "PdfPageEditor.TransitionType", + "PdfPageEditor.TransitionDuration", "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save" + "Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "rotate-specific-pdf-pages": { - "title": "Rotate Specific PDF Pages Using PdfPageEditor", - "filename": "rotate-specific-pdf-pages.cs", - "description": "Demonstrates how to rotate selected pages (3, 5, and 7) of a PDF by 180 degrees using the Aspose.Pdf.Facades.PdfPageEditor facade.", + "add-percentage-margins-to-pdf-pages": { + "title": "Add Percentage Margins To Pdf Pages", + "filename": "add-percentage-margins-to-pdf-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-transition-to-odd-pdf-pages": { + "title": "Add Transition To Odd Pdf Pages", + "filename": "add-transition-to-odd-pdf-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "adjust-page-zoom-based-on-word-count": { + "title": "Adjust Page Zoom Based on Word Count", + "filename": "adjust-page-zoom-based-on-word-count.cs", + "description": "Demonstrates how to analyze each PDF page's word count and apply a dynamic zoom factor—higher zoom for pages with few words and lower zoom for dense pages—using Aspose.Pdf.", "tags": [ "pdf", - "page-rotation", - "facade", - "aspose-pdf", - "csharp" + "zoom", + "word-count", + "page-editing", + "aspose" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", + "Aspose.Pdf.Text.TextAbsorber", "PdfPageEditor.BindPdf", - "PdfPageEditor.PageRotations", "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save" + "PdfPageEditor.Zoom", + "Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "rotate-specific-pdf-page": { - "title": "Rotate Specific PDF Page Using PdfPageEditor", - "filename": "rotate-specific-pdf-page.cs", - "description": "Demonstrates how to rotate page 4 of a PDF document by 180 degrees using the PdfPageEditor facade and save the result.", + "adjust-pdf-page-zoom-by-word-count": { + "title": "Adjust Pdf Page Zoom By Word Count", + "filename": "adjust-pdf-page-zoom-by-word-count.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "align-page-three-vertically-top": { + "title": "Align Page Three Vertically to Top Using PdfPageEditor", + "filename": "align-page-three-vertically-top.cs", + "description": "Shows how to vertically align the content of page 3 of a PDF to the top using Aspose.Pdf's PdfPageEditor facade.", "tags": [ - "rotation", "pdf", - "page", - "editor", + "alignment", + "vertical", + "page-editor", "aspose" ], "apis_used": [ - "PdfPageEditor", + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfPageEditor", "PdfPageEditor.BindPdf", "PdfPageEditor.ProcessPages", - "PdfPageEditor.Rotation", + "PdfPageEditor.VerticalAlignmentType", "PdfPageEditor.ApplyChanges", "PdfPageEditor.Save" ], @@ -162,130 +183,87 @@ "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "retrieve-pdf-page-size": { - "title": "Retrieve PDF Page Dimensions with PdfPageEditor", - "filename": "retrieve-pdf-page-size.cs", - "description": "Demonstrates how to load a PDF, get the size of a specific page using PdfPageEditor, and log the width and height.", + "align-page-two-left": { + "title": "Align Page Two Left in PDF", + "filename": "align-page-two-left.cs", + "description": "Demonstrates how to left‑justify the content of the second page of a PDF using Aspose.Pdf's PdfPageEditor and the HorizontalAlignment property.", "tags": [ "pdf", - "page-size", - "aspose", - "csharp", - "facade" + "alignment", + "page-editing", + "aspose-pdf", + "csharp" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.GetPageSize", - "Aspose.Pdf.PageSize" + "PdfPageEditor.ProcessPages", + "PdfPageEditor.HorizontalAlignment", + "PdfPageEditor.ApplyChanges", + "Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "retrieve-page-rotation": { - "title": "Retrieve Rotation Angle of a PDF Page", - "filename": "retrieve-page-rotation.cs", - "description": "Shows how to bind a PDF with PdfPageEditor and obtain the rotation angle of a specific page using GetPageRotation.", + "align-vertical-content-page-three": { + "title": "Align Vertical Content Page Three", + "filename": "align-vertical-content-page-three.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "apply-cover-transition-to-pdf-page": { + "title": "Apply Cover Transition To Pdf Page", + "filename": "apply-cover-transition-to-pdf-page.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "apply-custom-page-transitions": { + "title": "Apply Custom Page Transitions Based on Index", + "filename": "apply-custom-page-transitions.cs", + "description": "Shows how to assign different transition effects to each PDF page using Aspose.Pdf's PdfPageEditor, selecting the transition type according to the page index.", "tags": [ "pdf", - "rotation", - "page", - "aspose", - "c#" + "page-transitions", + "aspose-pdf", + "csharp", + "facade" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.GetPageRotation" + "PdfPageEditor.BindPdf", + "PdfPageEditor.ProcessPages", + "PdfPageEditor.TransitionDuration", + "PdfPageEditor.TransitionType", + "PdfPageEditor.ApplyChanges", + "PdfPageEditor.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "create-pdf-with-a4-pages": { - "title": "Create PDF with A4 Pages using Aspose.Pdf", - "filename": "create-pdf-with-a4-pages.cs", - "description": "Shows how to create a PDF document, add multiple pages to the Pages collection, set each page's size to A4, and save the resulting file.", + "apply-different-zoom-levels-to-pdf-pages": { + "title": "Apply Different Zoom Levels to PDF Pages", + "filename": "apply-different-zoom-levels-to-pdf-pages.cs", + "description": "Shows how to assign a distinct zoom factor to each page of a PDF using the Aspose.Pdf.Facades.PdfPageEditor facade.", "tags": [ "pdf", - "aspose.pdf", - "pages", - "a4", - "document-creation" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.PageSize", - "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Page.SetPageSize", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:55:57Z", - "status": "verified" - }, - "resize-page-six-to-letter-size": { - "title": "Resize Specific PDF Page to Letter Size with PdfPageEditor", - "filename": "resize-page-six-to-letter-size.cs", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfPageEditor to change only page 6 of a PDF to Letter dimensions (8.5\" x 11\"). The example loads a PDF, sets the target page, applies a custom PageSize, and saves the result.", - "tags": [ - "pdf", - "pagesize", - "pdfpageeditor", - "letter", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages", - "Aspose.Pdf.Facades.PdfPageEditor.PageSize", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Save", - "Aspose.Pdf.PageSize" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:55:57Z", - "status": "verified" - }, - "set-page-zoom-to-150-percent": { - "title": "Set Page Zoom to 150% Using PdfPageEditor", - "filename": "set-page-zoom-to-150-percent.cs", - "description": "Shows how to adjust the zoom level of a specific PDF page (page 3) to 150% with Aspose.Pdf.Facades PdfPageEditor.", - "tags": [ "zoom", - "pdf", "page-editing", "Aspose.Pdf", "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.ProcessPages", - "PdfPageEditor.Zoom", - "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:55:57Z", - "status": "verified" - }, - "zoom-even-pages-pdf": { - "title": "Zoom Even Pages of PDF by 1.2x", - "filename": "zoom-even-pages-pdf.cs", - "description": "Shows how to use Aspose.Pdf.Facades.PdfPageEditor to apply a 1.2 zoom factor to all even‑numbered pages of a PDF and save the modified document.", - "tags": [ - "pdf", - "zoom", - "even-pages", - "Aspose.Pdf", - "facades" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfPageEditor", + "PdfPageEditor", "PdfPageEditor.BindPdf", "PdfPageEditor.GetPages", "PdfPageEditor.ProcessPages", @@ -297,29 +275,6 @@ "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "add-fade-transition-to-pdf-page": { - "title": "Add Fade Transition to PDF Page", - "filename": "add-fade-transition-to-pdf-page.cs", - "description": "Demonstrates how to set a fade page transition with a two‑second duration on the first page of a PDF using Aspose.Pdf.", - "tags": [ - "pdf", - "fade", - "transition", - "aspose.pdf", - "pdfpageeditor" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfPageEditor", - "PdfPageEditor.TransitionType", - "PdfPageEditor.TransitionDuration", - "PdfPageEditor.ApplyChanges", - "Document.Save" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:55:57Z", - "status": "verified" - }, "apply-dissolve-transition-to-pdf-page": { "title": "Apply Dissolve Transition to a Specific PDF Page", "filename": "apply-dissolve-transition-to-pdf-page.cs", @@ -344,171 +299,224 @@ "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "set-display-duration-page-five": { - "title": "Set Display Duration for a Specific PDF Page", - "filename": "set-display-duration-page-five.cs", - "description": "Shows how to use Aspose.Pdf.Facades.PdfPageEditor to set the display duration of page 5 to five seconds in a PDF document.", + "apply-fade-transition-all-pdf-pages": { + "title": "Apply Fade Transition All Pdf Pages", + "filename": "apply-fade-transition-all-pdf-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "apply-fade-transition-to-all-pdf-pages": { + "title": "Apply Fade Transition to All PDF Pages", + "filename": "apply-fade-transition-to-all-pdf-pages.cs", + "description": "Shows how to set a uniform Fade (Dissolve) transition and duration for every page in a PDF using Aspose.Pdf's PdfPageEditor facade.", "tags": [ + "fade", + "transition", "pdf", - "display-duration", - "page-editing", - "slideshow", - "aspose-pdf" + "aspose-pdf", + "pdfpageeditor" ], "apis_used": [ - "PdfPageEditor", + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfPageEditor", "PdfPageEditor.BindPdf", - "PdfPageEditor.ProcessPages", - "PdfPageEditor.DisplayDuration", + "PdfPageEditor.TransitionType", + "PdfPageEditor.TransitionDuration", "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save" + "Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "align-page-two-left": { - "title": "Align Page Two Left in PDF", - "filename": "align-page-two-left.cs", - "description": "Demonstrates how to left‑justify the content of the second page of a PDF using Aspose.Pdf's PdfPageEditor and the HorizontalAlignment property.", + "apply-horizontal-alignment-to-pdf-pages": { + "title": "Apply Horizontal Alignment to PDF Pages", + "filename": "apply-horizontal-alignment-to-pdf-pages.cs", + "description": "Shows how to set left‑justified horizontal alignment for all pages of a PDF using the PdfPageEditor facade.", "tags": [ + "horizontal-alignment", "pdf", - "alignment", - "page-editing", - "aspose-pdf", - "csharp" + "pages", + "Aspose.Pdf", + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "PdfPageEditor.ProcessPages", + "PdfPageEditor.BindPdf", "PdfPageEditor.HorizontalAlignment", "PdfPageEditor.ApplyChanges", - "Document.Save" + "PdfPageEditor.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "align-page-three-vertically-top": { - "title": "Align Page Three Vertically to Top Using PdfPageEditor", - "filename": "align-page-three-vertically-top.cs", - "description": "Shows how to vertically align the content of page 3 of a PDF to the top using Aspose.Pdf's PdfPageEditor facade.", + "apply-page-settings-from-json": { + "title": "Apply Page Settings From Json", + "filename": "apply-page-settings-from-json.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "apply-page-transitions-by-index": { + "title": "Apply Different Page Transitions Based on Index", + "filename": "apply-page-transitions-by-index.cs", + "description": "Demonstrates how to assign a different transition effect to each PDF page using Aspose.Pdf.Facades.PdfPageEditor, cycling through three transition types based on the page number.", "tags": [ "pdf", - "alignment", - "vertical", - "page-editor", - "aspose" + "page-transition", + "aspose", + "facade", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", "PdfPageEditor.BindPdf", + "PdfPageEditor.TransitionType", "PdfPageEditor.ProcessPages", - "PdfPageEditor.VerticalAlignmentType", "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save" + "Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "resize-pdf-pages-content-10-percent-margin": { - "title": "Resize PDF Pages Content with 10% Margin", - "filename": "resize-pdf-pages-content-10-percent-margin.cs", - "description": "Demonstrates how to shrink the contents of all pages in a PDF to 90% of their original size, creating a 10% margin around each page using PdfFileEditor.ResizeContents.", + "apply-page-transitions-per-index": { + "title": "Apply Page Transitions Per Index", + "filename": "apply-page-transitions-per-index.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "apply-rotation-size-zoom-to-pdf-pages": { + "title": "Apply Rotation, Size, and Zoom to PDF Pages", + "filename": "apply-rotation-size-zoom-to-pdf-pages.cs", + "description": "Demonstrates using Aspose.Pdf's PdfPageEditor facade to rotate pages, change the page size, apply a zoom factor, and save the edited PDF.", "tags": [ "pdf", - "resize", - "margin", - "pages", - "aspose-pdf" + "rotation", + "pagesize", + "zoom", + "aspose" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents" + "Aspose.Pdf.Facades.PdfPageEditor", + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Facades.PdfPageEditor.Save", + "Aspose.Pdf.PageSize" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "resize-contents-of-pages-two-and-four-with-custom-left-and-right-margins-using-contentsresizeparameters": { - "title": "Resize Contents Of Pages Two And Four With Custom Left And Right Margins Using Contentsresizeparameters", - "filename": "resize-contents-of-pages-two-and-four-with-custom-left-and-right-margins-using-contentsresizeparameters.cs", + "apply-rotation-zoom-transition-to-pdf-pages": { + "title": "Apply Rotation Zoom Transition To Pdf Pages", + "filename": "apply-rotation-zoom-transition-to-pdf-pages.cs", "description": "", "tags": [], "apis_used": [], "difficulty": "", - "generated_at": "2026-08-20T07:55:57Z", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "batch-rotate-first-page-pdfs": { - "title": "Batch Rotate First Page of PDFs", - "filename": "batch-rotate-first-page-pdfs.cs", - "description": "Shows how to process all PDF files in a folder and rotate the first page of each document by 90° using Aspose.Pdf.Facades.PdfPageEditor.", + "apply-sequential-page-transitions": { + "title": "Apply Sequential Page Transitions", + "filename": "apply-sequential-page-transitions.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "apply-split-transition-to-pdf-page": { + "title": "Apply Split Transition To Pdf Page", + "filename": "apply-split-transition-to-pdf-page.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "apply-transition-to-odd-pages": { + "title": "Apply Transition to Odd Pages in PDF", + "filename": "apply-transition-to-odd-pages.cs", + "description": "Shows how to add a page transition effect only to odd‑numbered pages of a PDF using Aspose.Pdf's PdfPageEditor facade.", "tags": [ "pdf", - "rotation", - "batch", - "facade", - "csharp" + "page-transition", + "odd-pages", + "aspose-pdf", + "facade" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.PageRotations", + "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages", + "Aspose.Pdf.Facades.PdfPageEditor.TransitionType", + "Aspose.Pdf.Facades.PdfPageEditor.TransitionDuration", "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", "Aspose.Pdf.Facades.PdfPageEditor.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "batch-convert-pdfs-to-a4": { - "title": "Batch Convert PDFs to A4 Page Size", - "filename": "batch-convert-pdfs-to-a4.cs", - "description": "Shows how to iterate over PDF files in a directory and resize each document to A4 using Aspose.Pdf's PdfPageEditor.", + "apply-vertical-alignment-to-selected-pdf-pages": { + "title": "Apply Vertical Alignment to Selected PDF Pages", + "filename": "apply-vertical-alignment-to-selected-pdf-pages.cs", + "description": "Demonstrates how to vertically align the content of specific pages in a PDF to the top using Aspose.Pdf's PdfPageEditor.", "tags": [ - "pdf", - "batch", - "a4", - "page-size", - "aspose-pdf" + "vertical-alignment", + "pdf-pages", + "aspose-pdf", + "page-editor", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfPageEditor", "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages", + "Aspose.Pdf.Facades.PdfPageEditor.VerticalAlignmentType", "Aspose.Pdf.Facades.PdfPageEditor.Save", - "Aspose.Pdf.PageSize" + "Aspose.Pdf.VerticalAlignment" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "rotate-and-resize-pdf-page-to-letter": { - "title": "Rotate and Resize PDF Page to Letter", - "filename": "rotate-and-resize-pdf-page-to-letter.cs", - "description": "Shows how to rotate a specific page (page 3) by 90 degrees and change its dimensions to Letter size using Aspose.Pdf.Facades.PdfPageEditor.", - "tags": [ - "pdf", - "rotation", - "page-size", - "Aspose.Pdf", - "facade" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.ProcessPages", - "PdfPageEditor.Rotation", - "PdfPageEditor.PageSize", - "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:55:57Z", + "apply-zoom-to-even-pdf-pages": { + "title": "Apply Zoom To Even Pdf Pages", + "filename": "apply-zoom-to-even-pdf-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "apply-zoom-to-even-pdf-pages__v2": { + "title": "Apply Zoom To Even Pdf Pages__V2", + "filename": "apply-zoom-to-even-pdf-pages__v2.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, "apply-zoom-to-non-consecutive-pdf-pages": { @@ -534,221 +542,230 @@ "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "set-page-transition-duration-for-selected-pdf-pages": { - "title": "Set Page Transition Duration for Selected PDF Pages", - "filename": "set-page-transition-duration-for-selected-pdf-pages.cs", - "description": "Demonstrates how to use the PdfPageEditor facade to specify a range of pages and set each page's transition duration to one second, then save the modified PDF.", + "assign-page-transitions-by-content": { + "title": "Assign Page Transitions Based on Content Type", + "filename": "assign-page-transitions-by-content.cs", + "description": "Shows how to use Aspose.Pdf.Facades.PdfPageEditor to set different transition effects for image and text pages in a PDF document.", "tags": [ "pdf", - "transition", - "pages", - "aspose", - "facade" + "page-transitions", + "facade", + "content-detection", + "aspose-pdf" ], "apis_used": [ - "PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.ProcessPages", - "PdfPageEditor.TransitionDuration", - "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save" + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Facades.PdfPageEditor", + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges()", + "Aspose.Pdf.Facades.PdfPageEditor.Save()", + "Aspose.Pdf.Facades.PdfPageEditor.Close()", + "Aspose.Pdf.Facades.PdfPageEditor.TransitionType" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "rotate-pdf-pages-using-pdfpageeditor": { - "title": "Rotate PDF Pages Using PdfPageEditor", - "filename": "rotate-pdf-pages-using-pdfpageeditor.cs", - "description": "Demonstrates how to validate a rotation angle and apply it to all pages of a PDF using Aspose.Pdf.Facades.PdfPageEditor.", + "audit-pdf-page-dimensions-rotation": { + "title": "Audit PDF Page Dimensions and Rotation Before and After Editing", + "filename": "audit-pdf-page-dimensions-rotation.cs", + "description": "Shows how to log each PDF page's width, height, and rotation, apply a rotation to a page, and save the edited document using Aspose.Pdf.Facades.", "tags": [ - "rotation", "pdf", - "facades", - "validation", - "csharp" + "audit", + "page-rotation", + "dimensions", + "facade" ], "apis_used": [ - "PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.Rotation", - "PdfPageEditor.Save" + "Aspose.Pdf.Facades.PdfPageEditor", + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.Facades.PdfPageEditor.GetPages", + "Aspose.Pdf.Facades.PdfPageEditor.GetPageSize", + "Aspose.Pdf.Facades.PdfPageEditor.GetPageRotation", + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Facades.PdfPageEditor.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "handle-invalid-rotation-value": { - "title": "Handle Invalid Rotation Value When Rotating PDF Pages", - "filename": "handle-invalid-rotation-value.cs", - "description": "Demonstrates how to safely set page rotation using the PdfPageEditor facade and catch invalid rotation values to avoid runtime errors.", + "batch-adjust-pdf-page-size": { + "title": "Batch Adjust PDF Page Size to A4", + "filename": "batch-adjust-pdf-page-size.cs", + "description": "Shows how to process all PDFs in a folder and set each page to a specific size (e.g., A4) using Aspose.Pdf and the PdfPageEditor facade.", "tags": [ "pdf", - "rotation", - "exception-handling", - "facade", - "aspose" + "page-size", + "batch-processing", + "aspose-pdf", + "facade" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.Rotation", + "Aspose.Pdf.PageSize", + "Aspose.Pdf.Page.SetPageSize", "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Close", - "Aspose.Pdf.InvalidValueFormatException" + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "create-contentsresizeparameters-with-uniform-margins": { - "title": "Create ContentsResizeParameters with Uniform Margins", - "filename": "create-contentsresizeparameters-with-uniform-margins.cs", - "description": "Demonstrates how to create a ContentsResizeParameters object with absolute margins of five points on all sides, ready to be used with PdfFileEditor methods such as ResizeContents.", + "batch-convert-pdfs-to-a4": { + "title": "Batch Convert PDFs to A4 Page Size", + "filename": "batch-convert-pdfs-to-a4.cs", + "description": "Shows how to iterate over PDF files in a directory and resize each document to A4 using Aspose.Pdf's PdfPageEditor.", "tags": [ "pdf", - "contents-resize", - "margins", - "Aspose.Pdf", - "facades" + "batch", + "a4", + "page-size", + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeParameters", - "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeParameters.Margins", - "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents" + "Aspose.Pdf.Facades.PdfPageEditor", + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Facades.PdfPageEditor.Save", + "Aspose.Pdf.PageSize" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "create-a-contentsresizeparameters-object-using-percentage-margins-of-fifteen-percent-for-uniform-content-scaling": { - "title": "Create A Contentsresizeparameters Object Using Percentage Margins Of Fifteen Percent For Uniform Content Scaling", - "filename": "create-a-contentsresizeparameters-object-using-percentage-margins-of-fifteen-percent-for-uniform-content-scaling.cs", + "batch-resize-pdf-pages-by-filename": { + "title": "Batch Resize Pdf Pages By Filename", + "filename": "batch-resize-pdf-pages-by-filename.cs", "description": "", "tags": [], "apis_used": [], "difficulty": "", - "generated_at": "2026-08-20T07:55:57Z", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "apply-different-zoom-levels-to-pdf-pages": { - "title": "Apply Different Zoom Levels to PDF Pages", - "filename": "apply-different-zoom-levels-to-pdf-pages.cs", - "description": "Shows how to assign a distinct zoom factor to each page of a PDF using the Aspose.Pdf.Facades.PdfPageEditor facade.", + "batch-rotate-first-page-pdfs": { + "title": "Batch Rotate First Page of PDFs", + "filename": "batch-rotate-first-page-pdfs.cs", + "description": "Shows how to process all PDF files in a folder and rotate the first page of each document by 90° using Aspose.Pdf.Facades.PdfPageEditor.", "tags": [ "pdf", - "zoom", - "page-editing", - "Aspose.Pdf", - "facade" + "rotation", + "batch", + "facade", + "csharp" ], "apis_used": [ - "PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.GetPages", - "PdfPageEditor.ProcessPages", - "PdfPageEditor.Zoom", - "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save" + "Aspose.Pdf.Facades.PdfPageEditor", + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.Facades.PdfPageEditor.PageRotations", + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Facades.PdfPageEditor.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "apply-fade-transition-to-all-pdf-pages": { - "title": "Apply Fade Transition to All PDF Pages", - "filename": "apply-fade-transition-to-all-pdf-pages.cs", - "description": "Shows how to set a uniform Fade (Dissolve) transition and duration for every page in a PDF using Aspose.Pdf's PdfPageEditor facade.", + "batch-set-fade-transition-for-pdf-slideshow": { + "title": "Batch Set Fade Transition For Pdf Slideshow", + "filename": "batch-set-fade-transition-for-pdf-slideshow.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "batch-set-fade-transition-pdf-slideshow": { + "title": "Batch Set Fade Transition for PDF Slideshow", + "filename": "batch-set-fade-transition-pdf-slideshow.cs", + "description": "Demonstrates how to apply a fade (dissolve) transition with a 2‑second duration to all pages of a PDF using Aspose.Pdf's PdfPageEditor facade.", "tags": [ - "fade", - "transition", "pdf", - "aspose-pdf", - "pdfpageeditor" + "transition", + "fade", + "aspose.pdf", + "facade" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.TransitionType", - "PdfPageEditor.TransitionDuration", - "PdfPageEditor.ApplyChanges", - "Document.Save" + "Aspose.Pdf.Facades.PdfPageEditor.TransitionType", + "Aspose.Pdf.Facades.PdfPageEditor.TransitionDuration", + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "assign-page-transitions-by-content": { - "title": "Assign Page Transitions Based on Content Type", - "filename": "assign-page-transitions-by-content.cs", - "description": "Shows how to use Aspose.Pdf.Facades.PdfPageEditor to set different transition effects for image and text pages in a PDF document.", + "center-align-page-set-display-duration": { + "title": "Center Align Page Set Display Duration", + "filename": "center-align-page-set-display-duration.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "center-content-on-page-two": { + "title": "Center Content On Page Two", + "filename": "center-content-on-page-two.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "center-page-content-horizontally": { + "title": "Center Page Content Horizontally Using PdfPageEditor", + "filename": "center-page-content-horizontally.cs", + "description": "Shows how to use Aspose.Pdf.Facades.PdfPageEditor to center the existing content of a specific page (page 2) horizontally in a PDF document.", "tags": [ "pdf", - "page-transitions", - "facade", - "content-detection", - "aspose-pdf" + "alignment", + "page-editor", + "horizontal-center", + "aspose" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges()", - "Aspose.Pdf.Facades.PdfPageEditor.Save()", - "Aspose.Pdf.Facades.PdfPageEditor.Close()", - "Aspose.Pdf.Facades.PdfPageEditor.TransitionType" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T07:55:57Z", - "status": "verified" - }, - "set-page-display-duration-by-word-count": { - "title": "Set Page Display Duration Based on Word Count", - "filename": "set-page-display-duration-by-word-count.cs", - "description": "Shows how to compute reading time from the word count of each PDF page and assign a proportional display duration using Aspose.Pdf.", - "tags": [ - "pdf", - "display-duration", - "word-count", - "reading-time", - "Aspose.Pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Text.TextAbsorber", - "Aspose.Pdf.Facades.PdfPageEditor.DisplayDuration", + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages", + "Aspose.Pdf.Facades.PdfPageEditor.HorizontalAlignment", "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Save" + "Aspose.Pdf.Facades.PdfPageEditor.Save", + "Aspose.Pdf.HorizontalAlignment" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "edit-pdf-in-memory-using-pdfpageeditor__v2": { - "title": "Edit PDF In-Memory Using PdfPageEditor", - "filename": "edit-pdf-in-memory-using-pdfpageeditor__v2.cs", - "description": "Shows how to create a PDF in memory, modify page zoom and rotation with PdfPageEditor, and save the edited document back to a memory stream.", + "center-page-content-set-display-duration": { + "title": "Center Page Content and Set Display Duration on a Specific PDF Page", + "filename": "center-page-content-set-display-duration.cs", + "description": "Demonstrates how to center the content of a specific PDF page and set its display duration using Aspose.Pdf's PdfPageEditor facade.", "tags": [ "pdf", - "memory", - "page-editor", - "zoom", - "rotation" + "page-alignment", + "display-duration", + "aspose", + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Save", - "Aspose.Pdf.Text.TextFragment" + "Aspose.Pdf.Document", + "PdfPageEditor.BindPdf", + "PdfPageEditor.ApplyChanges", + "PdfPageEditor.Save", + "PdfPageEditor.HorizontalAlignment", + "PdfPageEditor.DisplayDuration" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, @@ -777,78 +794,145 @@ "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "reset-page-rotation-to-zero": { - "title": "Reset Page Rotation to Zero Using PdfPageEditor", - "filename": "reset-page-rotation-to-zero.cs", - "description": "Shows how to reset the rotation of a specific PDF page (page 6) to 0 degrees with Aspose.Pdf.Facades.PdfPageEditor.", + "change-pdf-page-size-and-undo": { + "title": "Change PDF Page Size and Undo to Original", + "filename": "change-pdf-page-size-and-undo.cs", + "description": "Shows how to capture a PDF's original page size, apply a custom size to all pages, save the modified document, then revert to the original size to test undo functionality.", + "tags": [ + "page-size", + "pdf-editing", + "undo", + "facade", + "Aspose.Pdf" + ], + "apis_used": [ + "PdfPageEditor", + "PdfPageEditor.BindPdf", + "PdfPageEditor.GetPageSize", + "PdfPageEditor.PageSize", + "PdfPageEditor.ApplyChanges", + "PdfPageEditor.Save", + "PdfPageEditor.Close", + "PageSize" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:55:57Z", + "status": "verified" + }, + "change-pdf-page-size-to-a3": { + "title": "Change PDF Page Size to A3 Using PdfPageEditor", + "filename": "change-pdf-page-size-to-a3.cs", + "description": "Shows how to resize all pages of a PDF to A3 dimensions and optionally increase resolution using the Aspose.Pdf.Facades.PdfPageEditor class.", "tags": [ "pdf", - "rotation", - "page-editing", - "aspose", - "facade" + "page-size", + "a3", + "facade", + "resolution" ], "apis_used": [ "Aspose.Pdf.Facades.PdfPageEditor", "PdfPageEditor.BindPdf", - "PdfPageEditor.PageRotations", - "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save" + "PdfPageEditor.PageSize", + "PdfPageEditor.Save", + "PdfPageEditor.Close" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "revert-pdf-page-size-to-original": { - "title": "Revert PDF Page Size to Original Dimensions", - "filename": "revert-pdf-page-size-to-original.cs", - "description": "Demonstrates how to capture the original size of a PDF page, change the size, and then restore the page to its initial dimensions using Aspose.Pdf facades.", + "combine-page-rotation-zoom-presentation": { + "title": "Combine Page Rotation, Zoom, and Transitions for PDF Presentation", + "filename": "combine-page-rotation-zoom-presentation.cs", + "description": "Shows how to rotate, zoom, and apply slide transition effects to every page of a PDF using Aspose.Pdf's PdfPageEditor facade, then save the result as a presentation PDF.", "tags": [ "pdf", - "page-size", - "revert", - "Aspose.Pdf", - "facade" + "rotation", + "zoom", + "transition", + "presentation" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.GetPageSize", - "Aspose.Pdf.PageSize", - "Aspose.Pdf.Page.SetPageSize" + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Facades.PdfPageEditor.TransitionType" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "audit-pdf-page-dimensions-rotation": { - "title": "Audit PDF Page Dimensions and Rotation Before and After Editing", - "filename": "audit-pdf-page-dimensions-rotation.cs", - "description": "Shows how to log each PDF page's width, height, and rotation, apply a rotation to a page, and save the edited document using Aspose.Pdf.Facades.", + "convert-pdf-pages-to-landscape": { + "title": "Convert PDF Pages to Landscape Orientation", + "filename": "convert-pdf-pages-to-landscape.cs", + "description": "Shows how to change all pages of a PDF to landscape orientation by setting the PageSize to A4 landscape dimensions using Aspose.Pdf.Facades.PdfPageEditor.", "tags": [ "pdf", - "audit", - "page-rotation", - "dimensions", - "facade" + "orientation", + "landscape", + "page-size", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfPageEditor", + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.Facades.PdfPageEditor.PageSize", + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Facades.PdfPageEditor.Save", + "Aspose.Pdf.PageSize" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:55:57Z", + "status": "verified" + }, + "convert-pdf-portrait-to-landscape": { + "title": "Convert Pdf Portrait To Landscape", + "filename": "convert-pdf-portrait-to-landscape.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-pdf-to-landscape-a4": { + "title": "Convert Pdf To Landscape A4", + "filename": "convert-pdf-to-landscape-a4.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-portrait-to-landscape": { + "title": "Convert PDF Page from Portrait to Landscape", + "filename": "convert-portrait-to-landscape.cs", + "description": "Shows how to change a PDF page's orientation to landscape by swapping width and height with PdfPageEditor, rotating the content, and then verifying the new dimensions.", + "tags": [ + "pdf", + "portrait", + "landscape", + "page-size", + "rotation" ], "apis_used": [ "Aspose.Pdf.Facades.PdfPageEditor", "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.GetPages", "Aspose.Pdf.Facades.PdfPageEditor.GetPageSize", - "Aspose.Pdf.Facades.PdfPageEditor.GetPageRotation", "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Save" + "Aspose.Pdf.Facades.PdfPageEditor.Save", + "Aspose.Pdf.Document", + "Aspose.Pdf.Page" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "use-try-catch-blocks-around-getpagesize-calls-to-handle-requests-for-non-existent-page-numbers-safely": { - "title": "Use Try Catch Blocks Around Getpagesize Calls To Handle Requests For Non Existent Page Numbers Safely", - "filename": "use-try-catch-blocks-around-getpagesize-calls-to-handle-requests-for-non-existent-page-numbers-safely.cs", + "create-a-contentsresizeparameters-object-using-percentage-margins-of-fifteen-percent-for-uniform-content-scaling": { + "title": "Create A Contentsresizeparameters Object Using Percentage Margins Of Fifteen Percent For Uniform Content Scaling", + "filename": "create-a-contentsresizeparameters-object-using-percentage-margins-of-fifteen-percent-for-uniform-content-scaling.cs", "description": "", "tags": [], "apis_used": [], @@ -856,269 +940,332 @@ "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "apply-horizontal-alignment-to-pdf-pages": { - "title": "Apply Horizontal Alignment to PDF Pages", - "filename": "apply-horizontal-alignment-to-pdf-pages.cs", - "description": "Shows how to set left‑justified horizontal alignment for all pages of a PDF using the PdfPageEditor facade.", + "create-contentsresizeparameters-uniform-margins": { + "title": "Create Contentsresizeparameters Uniform Margins", + "filename": "create-contentsresizeparameters-uniform-margins.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-contentsresizeparameters-with-uniform-margins": { + "title": "Create ContentsResizeParameters with Uniform Margins", + "filename": "create-contentsresizeparameters-with-uniform-margins.cs", + "description": "Demonstrates how to create a ContentsResizeParameters object with absolute margins of five points on all sides, ready to be used with PdfFileEditor methods such as ResizeContents.", "tags": [ - "horizontal-alignment", "pdf", - "pages", + "contents-resize", + "margins", "Aspose.Pdf", - "facade" + "facades" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.HorizontalAlignment", - "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save" + "Aspose.Pdf.Facades.PdfFileEditor", + "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeParameters", + "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeParameters.Margins", + "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "apply-vertical-alignment-to-selected-pdf-pages": { - "title": "Apply Vertical Alignment to Selected PDF Pages", - "filename": "apply-vertical-alignment-to-selected-pdf-pages.cs", - "description": "Demonstrates how to vertically align the content of specific pages in a PDF to the top using Aspose.Pdf's PdfPageEditor.", + "create-pdf-slideshow-with-page-transitions": { + "title": "Create PDF Slideshow with Page Transitions", + "filename": "create-pdf-slideshow-with-page-transitions.cs", + "description": "Shows how to apply transition effects and display durations to each page of a PDF to generate a slideshow using Aspose.Pdf.", "tags": [ - "vertical-alignment", - "pdf-pages", - "aspose-pdf", + "pdf", + "slideshow", + "transitions", "page-editor", - "csharp" + "aspose.pdf" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", + "Aspose.Pdf.Document.Save", "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages", - "Aspose.Pdf.Facades.PdfPageEditor.VerticalAlignmentType", - "Aspose.Pdf.Facades.PdfPageEditor.Save", - "Aspose.Pdf.VerticalAlignment" + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "set-boxout-transition-on-pdf-page": { - "title": "Set BoxOut Transition on PDF Page", - "filename": "set-boxout-transition-on-pdf-page.cs", - "description": "Demonstrates how to apply a BoxOut page transition with a three‑second duration to a specific page of a PDF using Aspose.Pdf.", + "create-pdf-with-a4-pages": { + "title": "Create PDF with A4 Pages using Aspose.Pdf", + "filename": "create-pdf-with-a4-pages.cs", + "description": "Shows how to create a PDF document, add multiple pages to the Pages collection, set each page's size to A4, and save the resulting file.", "tags": [ "pdf", - "transition", - "boxout", - "page-edit", - "aspose" + "aspose.pdf", + "pages", + "a4", + "document-creation" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfPageEditor", - "PdfPageEditor.ProcessPages", - "PdfPageEditor.TransitionType", - "PdfPageEditor.TransitionDuration", - "PdfPageEditor.ApplyChanges", - "Document.Save" + "Aspose.Pdf.Page", + "Aspose.Pdf.PageSize", + "Aspose.Pdf.Document.Pages.Add", + "Aspose.Pdf.Page.SetPageSize", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "set-cover-transition-on-pdf-page": { - "title": "Set Cover Transition on PDF Page", - "filename": "set-cover-transition-on-pdf-page.cs", - "description": "Demonstrates how to apply a Cover page transition with a 1‑second duration to page 4 of a PDF using Aspose.Pdf.", + "create-uniform-15-percent-margin-resize-parameters": { + "title": "Create Uniform 15 Percent Margin Resize Parameters", + "filename": "create-uniform-15-percent-margin-resize-parameters.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "disable-page-transition-animation": { + "title": "Disable Page Transition Animation for a Specific PDF Page", + "filename": "disable-page-transition-animation.cs", + "description": "Demonstrates how to set the TransitionDuration to zero for page six of a PDF using Aspose.Pdf's PdfPageEditor, removing any page transition animation.", "tags": [ "pdf", "transition", - "cover", "page-editing", - "aspose-pdf" + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Save", - "Aspose.Pdf.Facades.PdfPageEditor.TransitionType", - "Aspose.Pdf.Facades.PdfPageEditor.TransitionDuration" + "Aspose.Pdf.Facades.PdfPageEditor.TransitionDuration", + "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "set-zoom-of-page-to-75-percent": { - "title": "Set Zoom of Specific PDF Page to 75%", - "filename": "set-zoom-of-page-to-75-percent.cs", - "description": "Demonstrates how to set the zoom level of a single PDF page (page 5) to 75% using Aspose.Pdf.Facades.PdfPageEditor.", + "dispose-pdfpageeditor-properly": { + "title": "Dispose PdfPageEditor Properly While Editing PDF", + "filename": "dispose-pdfpageeditor-properly.cs", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfPageEditor within using blocks, apply page rotation and zoom, save the document, and ensure all resources are released by disposing the editor and document objects.", "tags": [ "pdf", - "zoom", - "page-editing", - "Aspose.Pdf", - "C#" + "aspose.pdf", + "facade", + "resource-management", + "page-editing" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.ProcessPages", - "PdfPageEditor.Zoom", - "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save" + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Facades.PdfPageEditor.Save", + "Aspose.Pdf.Facades.PdfPageEditor.Close" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "set-zoom-on-specific-pdf-page": { - "title": "Set Zoom on Specific PDF Page", - "filename": "set-zoom-on-specific-pdf-page.cs", - "description": "Shows how to apply a 2.0 zoom factor (200% magnification) to page 7 of a PDF using Aspose.Pdf.Facades.PdfPageEditor.", + "edit-pdf-in-memory-using-pdfpageeditor": { + "title": "Edit PDF In-Memory Using PdfPageEditor", + "filename": "edit-pdf-in-memory-using-pdfpageeditor.cs", + "description": "Shows how to bind a PDF from a MemoryStream, apply a modification (zoom factor) with PdfPageEditor, and save the edited PDF back to a MemoryStream, avoiding any disk I/O.", "tags": [ - "pdf", - "zoom", - "page-editing", - "Aspose.Pdf", - "facade" + "memory-stream", + "pdf-editing", + "pdfpageeditor", + "aspose-pdf", + "in-memory" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.ProcessPages", - "PdfPageEditor.Zoom", - "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save", - "PdfPageEditor.Close" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.Facades.PdfPageEditor.Save", + "Aspose.Pdf.Document.Pages.Add", + "Aspose.Pdf.Facades.PdfPageEditor.Zoom" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "resize-pdf-page-contents-negative-margins": { - "title": "Resize PDF Page Contents with Negative Margins", - "filename": "resize-pdf-page-contents-negative-margins.cs", - "description": "Demonstrates how to uniformly shrink all pages of a PDF by applying a -5% margin using Aspose.Pdf.Facades.PdfFileEditor.", + "edit-pdf-in-memory-using-pdfpageeditor__v2": { + "title": "Edit PDF In-Memory Using PdfPageEditor", + "filename": "edit-pdf-in-memory-using-pdfpageeditor__v2.cs", + "description": "Shows how to create a PDF in memory, modify page zoom and rotation with PdfPageEditor, and save the edited document back to a memory stream.", "tags": [ "pdf", - "margin", - "resize", - "aspose", - "facade" + "memory", + "page-editor", + "zoom", + "rotation" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.AddMarginsPct" + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfPageEditor", + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Facades.PdfPageEditor.Save", + "Aspose.Pdf.Text.TextFragment" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "add-20-percent-margins-to-pdf-pages": { - "title": "Add 20% Margins to PDF Pages", - "filename": "add-20-percent-margins-to-pdf-pages.cs", - "description": "Demonstrates how to add uniform 20 % margins around each page of a PDF using Aspose.Pdf.Facades.PdfFileEditor for better printing layout.", + "edit-pdf-page-zoom-save": { + "title": "Edit PDF Page Zoom and Save with PdfPageEditor", + "filename": "edit-pdf-page-zoom-save.cs", + "description": "Demonstrates loading a PDF using PdfPageEditor, setting the page zoom level, applying the changes, and saving the edited document to a new file.", "tags": [ "pdf", - "margin", - "printing", - "aspose", - "facade" + "page-editing", + "zoom", + "aspose-pdf", + "save" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.AddMarginsPct" + "Aspose.Pdf.Facades.PdfPageEditor", + "PdfPageEditor.BindPdf", + "PdfPageEditor.Zoom", + "PdfPageEditor.ApplyChanges", + "PdfPageEditor.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "convert-pdf-pages-to-landscape": { - "title": "Convert PDF Pages to Landscape Orientation", - "filename": "convert-pdf-pages-to-landscape.cs", - "description": "Shows how to change all pages of a PDF to landscape orientation by setting the PageSize to A4 landscape dimensions using Aspose.Pdf.Facades.PdfPageEditor.", + "edit-pdf-pages-save-new-file": { + "title": "Edit PDF Pages and Save as New File", + "filename": "edit-pdf-pages-save-new-file.cs", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfPageEditor to modify a PDF (e.g., change zoom) and save the edited version to a separate file, leaving the original unchanged.", "tags": [ "pdf", - "orientation", - "landscape", - "page-size", - "aspose-pdf" + "edit", + "save-as", + "aspose", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.PageSize", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Save", - "Aspose.Pdf.PageSize" + "PdfPageEditor.BindPdf", + "PdfPageEditor.Zoom", + "PdfPageEditor.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "convert-portrait-to-landscape": { - "title": "Convert PDF Page from Portrait to Landscape", - "filename": "convert-portrait-to-landscape.cs", - "description": "Shows how to change a PDF page's orientation to landscape by swapping width and height with PdfPageEditor, rotating the content, and then verifying the new dimensions.", + "edit-pdf-pages-with-pdfpageeditor-disposal": { + "title": "Edit Pdf Pages With Pdfpageeditor Disposal", + "filename": "edit-pdf-pages-with-pdfpageeditor-disposal.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "edit-pdf-pages-zoom-rotation": { + "title": "Edit Pdf Pages Zoom Rotation", + "filename": "edit-pdf-pages-zoom-rotation.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "edit-pdf-with-backup-using-pdfpageeditor": { + "title": "Edit Pdf With Backup Using Pdfpageeditor", + "filename": "edit-pdf-with-backup-using-pdfpageeditor.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-rotate-selected-pdf-pages": { + "title": "Extract and Rotate Selected PDF Pages", + "filename": "extract-rotate-selected-pdf-pages.cs", + "description": "Shows how to extract specific pages from a PDF, rotate those pages, and save the result as a new PDF using Aspose.Pdf.Facades.", "tags": [ "pdf", - "portrait", - "landscape", - "page-size", - "rotation" + "extract", + "rotate", + "pages", + "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.GetPageSize", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Save", - "Aspose.Pdf.Document", - "Aspose.Pdf.Page" + "PdfFileEditor.Extract", + "PdfPageEditor.BindPdf", + "PdfPageEditor.ProcessPages", + "PdfPageEditor.Rotation", + "PdfPageEditor.ApplyChanges", + "PdfPageEditor.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "rotate-pdf-page-180-preserve-transitions": { - "title": "Rotate PDF Page 180° While Preserving Transitions", - "filename": "rotate-pdf-page-180-preserve-transitions.cs", - "description": "Shows how to rotate a specific page of a PDF by 180 degrees using PdfPageEditor, keeping any existing transition effects unchanged.", + "handle-invalid-page-rotation": { + "title": "Handle Invalid Page Rotation", + "filename": "handle-invalid-page-rotation.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "handle-invalid-rotation-value": { + "title": "Handle Invalid Rotation Value When Rotating PDF Pages", + "filename": "handle-invalid-rotation-value.cs", + "description": "Demonstrates how to safely set page rotation using the PdfPageEditor facade and catch invalid rotation values to avoid runtime errors.", "tags": [ "pdf", "rotation", - "page-editor", - "transitions", - "aspose-pdf" + "exception-handling", + "facade", + "aspose" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.PageRotations", - "PdfPageEditor.Save", - "PdfPageEditor.Close" + "Aspose.Pdf.Facades.PdfPageEditor.Rotation", + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Facades.PdfPageEditor.Close", + "Aspose.Pdf.InvalidValueFormatException" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "resize-and-rotate-pdf-page": { - "title": "Resize and Rotate PDF Page by 90 Degrees", - "filename": "resize-and-rotate-pdf-page.cs", - "description": "Shows how to resize the contents of a PDF page and then rotate that page 90° using Aspose.Pdf facades.", + "hybrid-content-resize-mixed-margins": { + "title": "Hybrid Content Resize with Mixed Percentage and Absolute Margins", + "filename": "hybrid-content-resize-mixed-margins.cs", + "description": "Shows how to use Aspose.Pdf.Facades.PdfFileEditor to resize PDF page contents by specifying a mix of percentage‑based and absolute margins.", "tags": [ "pdf", "resize", - "rotate", - "page", - "facade" - ], + "contents", + "percentage", + "aspose" + ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents", - "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.PageRotations", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Save" + "Aspose.Pdf.Facades.PdfFileEditor", + "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeParameters", + "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeValue", + "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeValue.Percents", + "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeValue.Units", + "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:55:57Z", @@ -1147,134 +1294,157 @@ "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "edit-pdf-pages-save-new-file": { - "title": "Edit PDF Pages and Save as New File", - "filename": "edit-pdf-pages-save-new-file.cs", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfPageEditor to modify a PDF (e.g., change zoom) and save the edited version to a separate file, leaving the original unchanged.", - "tags": [ - "pdf", - "edit", - "save-as", - "aspose", - "facade" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.Zoom", - "PdfPageEditor.Save" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T07:55:57Z", + "load-pdf-with-pdfpageeditor": { + "title": "Load Pdf With Pdfpageeditor", + "filename": "load-pdf-with-pdfpageeditor.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "set-page-display-duration-for-pdf-slideshow": { - "title": "Set Page Display Duration for PDF Slideshow", - "filename": "set-page-display-duration-for-pdf-slideshow.cs", - "description": "Shows how to assign a custom display duration to each page of a PDF, creating a timed slideshow using Aspose.Pdf's PdfPageEditor.", + "log-pdf-page-modifications": { + "title": "Log Pdf Page Modifications", + "filename": "log-pdf-page-modifications.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "log-pdf-page-property-changes": { + "title": "Log PDF Page Property Changes with Aspose.Pdf", + "filename": "log-pdf-page-property-changes.cs", + "description": "Demonstrates how to modify PDF page properties using PdfPageEditor and direct page access, while logging each change and any notifications to a text file for audit and debugging.", "tags": [ "pdf", - "slideshow", - "display-duration", - "page-editing", - "aspose-pdf" + "page-modification", + "logging", + "aspose-pdf", + "facade" ], "apis_used": [ - "PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.GetPages", - "PdfPageEditor.ProcessPages", - "PdfPageEditor.DisplayDuration", + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfPageEditor", + "Aspose.Pdf.Page", + "Document.EnableNotificationLogging", "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save" + "Page.GetNotifications", + "Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "set-split-page-transition": { - "title": "Set Split Page Transition for Specific PDF Page", - "filename": "set-split-page-transition.cs", - "description": "Demonstrates how to apply a horizontal split transition lasting two seconds to page 3 of a PDF using Aspose.Pdf.Facades.", + "merge-pdfs-with-uniform-margins": { + "title": "Merge PDFs with Uniform Margins", + "filename": "merge-pdfs-with-uniform-margins.cs", + "description": "Shows how to align the margins of two PDF files using PdfFileEditor.AddMargins and then concatenate them into a single PDF with PdfFileEditor.Concatenate.", "tags": [ "pdf", - "page-transition", - "split", + "merge", + "margin", "aspose", - "csharp" + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.SPLITHIN", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfFileEditor", + "Aspose.Pdf.Facades.PdfFileEditor.AddMargins", + "Aspose.Pdf.Facades.PdfFileEditor.Concatenate" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "disable-page-transition-animation": { - "title": "Disable Page Transition Animation for a Specific PDF Page", - "filename": "disable-page-transition-animation.cs", - "description": "Demonstrates how to set the TransitionDuration to zero for page six of a PDF using Aspose.Pdf's PdfPageEditor, removing any page transition animation.", + "modify-pages-in-signed-pdf": { + "title": "Modify Pages In Signed Pdf", + "filename": "modify-pages-in-signed-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "modify-pages-preserve-signature": { + "title": "Modify Pages in a Digitally Signed PDF While Preserving Signature", + "filename": "modify-pages-preserve-signature.cs", + "description": "Demonstrates how to rotate and resize specific pages of a PDF that already contains a signature field using PdfPageEditor, saving the changes as an incremental update so existing signatures remain valid.", "tags": [ "pdf", - "transition", "page-editing", - "aspose", - "csharp" + "digital-signature", + "incremental-update", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.TransitionDuration", - "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages" + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.PageSize" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "set-sequential-page-transitions": { - "title": "Set Sequential Page Transitions in PDF", - "filename": "set-sequential-page-transitions.cs", - "description": "Demonstrates how to apply different page transition effects to individual pages of a PDF using Aspose.Pdf's PdfPageEditor facade.", + "report-page-properties-before-after-edit": { + "title": "Report Page Properties Before After Edit", + "filename": "report-page-properties-before-after-edit.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "report-pdf-page-properties-before-after": { + "title": "Report PDF Page Properties Before and After Editing", + "filename": "report-pdf-page-properties-before-after.cs", + "description": "Shows how to read page size, rotation, and offsets with PdfFileInfo, apply rotation, zoom, and origin shift using PdfPageEditor, and compare the properties before and after the edits.", "tags": [ "pdf", - "page-transitions", - "aspose-pdf", - "csharp", - "facades" + "page-properties", + "rotation", + "zoom", + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfFileInfo", + "Aspose.Pdf.Facades.PdfFileInfo.GetPageWidth", + "Aspose.Pdf.Facades.PdfFileInfo.GetPageHeight", + "Aspose.Pdf.Facades.PdfFileInfo.GetPageRotation", + "Aspose.Pdf.Facades.PdfFileInfo.GetPageXOffset", + "Aspose.Pdf.Facades.PdfFileInfo.GetPageYOffset", "Aspose.Pdf.Facades.PdfPageEditor", + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.Facades.PdfPageEditor.PageRotations", + "Aspose.Pdf.Facades.PdfPageEditor.Zoom", + "Aspose.Pdf.Facades.PdfPageEditor.MovePosition", "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.TransitionType", - "Aspose.Pdf.Facades.PdfPageEditor.TransitionDuration", - "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfPageEditor.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "set-page-zoom-to-100-percent": { - "title": "Set Page Zoom to 100% for All PDF Pages", - "filename": "set-page-zoom-to-100-percent.cs", - "description": "Demonstrates using Aspose.Pdf.Facades.PdfPageEditor to set the zoom factor to 1.0 (100 %) for every page in a PDF and save the updated document.", + "reset-page-rotation-to-zero": { + "title": "Reset Page Rotation to Zero Using PdfPageEditor", + "filename": "reset-page-rotation-to-zero.cs", + "description": "Shows how to reset the rotation of a specific PDF page (page 6) to 0 degrees with Aspose.Pdf.Facades.PdfPageEditor.", "tags": [ "pdf", - "zoom", - "pages", + "rotation", + "page-editing", "aspose", "facade" ], "apis_used": [ - "PdfPageEditor", + "Aspose.Pdf.Facades.PdfPageEditor", "PdfPageEditor.BindPdf", - "PdfPageEditor.Zoom", + "PdfPageEditor.PageRotations", "PdfPageEditor.ApplyChanges", "PdfPageEditor.Save" ], @@ -1282,462 +1452,557 @@ "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "set-zoom-on-odd-pages": { - "title": "Set Zoom on Odd Pages in PDF", - "filename": "set-zoom-on-odd-pages.cs", - "description": "Shows how to apply a 1.2 zoom factor to all odd‑numbered pages of a PDF using Aspose.Pdf.Facades.PdfPageEditor.", + "reset-page-rotation": { + "title": "Reset Page Rotation", + "filename": "reset-page-rotation.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "resize-and-rotate-pdf-page": { + "title": "Resize and Rotate PDF Page by 90 Degrees", + "filename": "resize-and-rotate-pdf-page.cs", + "description": "Shows how to resize the contents of a PDF page and then rotate that page 90° using Aspose.Pdf facades.", "tags": [ "pdf", - "zoom", - "odd-pages", - "Aspose.Pdf", + "resize", + "rotate", + "page", "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.GetPages", - "PdfPageEditor.ProcessPages", - "PdfPageEditor.Zoom", - "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save" + "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents", + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.Facades.PdfPageEditor.PageRotations", + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Facades.PdfPageEditor.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "set-zoom-on-even-pdf-pages": { - "title": "Set Zoom on Even PDF Pages", - "filename": "set-zoom-on-even-pdf-pages.cs", - "description": "Shows how to apply a zoom factor of 0.8 to all even‑numbered pages of a PDF using Aspose.Pdf.Facades.PdfPageEditor.", + "resize-and-split-pdf-into-chapters": { + "title": "Resize PDF Pages and Split into Chapter PDFs", + "filename": "resize-and-split-pdf-into-chapters.cs", + "description": "Shows how to uniformly resize all pages of a PDF and then split the resized document into separate chapter PDFs using Aspose.Pdf.Facades.", "tags": [ "pdf", - "zoom", - "even-pages", - "Aspose.Pdf", - "page-editing" + "resize", + "split", + "chapters", + "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.GetPages", - "PdfPageEditor.ProcessPages", - "PdfPageEditor.Zoom", - "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save" + "Aspose.Pdf.Facades.PdfFileEditor", + "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents", + "Aspose.Pdf.Facades.PdfFileEditor.SplitToBulks" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "resize-specific-pdf-pages-to-us-letter": { - "title": "Resize Specific PDF Pages to US Letter Size", - "filename": "resize-specific-pdf-pages-to-us-letter.cs", - "description": "Demonstrates how to change the page size of selected pages (3‑6) in a PDF to US Letter dimensions using the Aspose.Pdf.Facades.PdfPageEditor.", - "tags": [ - "pdf", - "page-size", - "letter", - "aspose", - "facade" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.ProcessPages", - "PdfPageEditor.PageSize", - "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save" - ], - "difficulty": "beginner", + "resize-contents-of-pages-two-and-four-with-custom-left-and-right-margins-using-contentsresizeparameters": { + "title": "Resize Contents Of Pages Two And Four With Custom Left And Right Margins Using Contentsresizeparameters", + "filename": "resize-contents-of-pages-two-and-four-with-custom-left-and-right-margins-using-contentsresizeparameters.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "set-last-page-size-a5": { - "title": "Set Last Page Size to A5 in PDF", - "filename": "set-last-page-size-a5.cs", - "description": "Shows how to change only the last page of a PDF to A5 size using Aspose.Pdf's PdfPageEditor facade, useful for creating compact booklet formats.", + "resize-contents-on-text-pages": { + "title": "Resize PDF Contents Only on Pages Containing Text", + "filename": "resize-contents-on-text-pages.cs", + "description": "Shows how to use TextAbsorber to find pages that contain any text and then apply PdfFileEditor.ResizeContents only to those pages.", "tags": [ "pdf", - "page-size", - "last-page", - "Aspose.Pdf", - "booklet" + "resize", + "text-detection", + "pages", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages", - "Aspose.Pdf.Facades.PdfPageEditor.PageSize", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Save" + "Aspose.Pdf.Facades.PdfFileEditor", + "Aspose.Pdf.Text.TextAbsorber", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "rotate-every-third-pdf-page": { - "title": "Rotate Every Third PDF Page to Landscape", - "filename": "rotate-every-third-pdf-page.cs", - "description": "Shows how to rotate every third page of a PDF by 270° using Aspose.Pdf.Facades.PdfPageEditor, resulting in an alternating landscape orientation.", + "resize-contents-only-on-text-pages": { + "title": "Resize Contents Only On Text Pages", + "filename": "resize-contents-only-on-text-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "resize-page-six-to-letter-size": { + "title": "Resize Specific PDF Page to Letter Size with PdfPageEditor", + "filename": "resize-page-six-to-letter-size.cs", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfPageEditor to change only page 6 of a PDF to Letter dimensions (8.5\" x 11\"). The example loads a PDF, sets the target page, applies a custom PageSize, and saves the result.", "tags": [ - "pdf rotation", - "page editing", - "Aspose.Pdf", - "landscape", - "PdfPageEditor" + "pdf", + "pagesize", + "pdfpageeditor", + "letter", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfPageEditor", "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.GetPages", - "Aspose.Pdf.Facades.PdfPageEditor.PageRotations", + "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages", + "Aspose.Pdf.Facades.PdfPageEditor.PageSize", "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Save" + "Aspose.Pdf.Facades.PdfPageEditor.Save", + "Aspose.Pdf.PageSize" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "retrieve-page-size-after-rotation": { - "title": "Retrieve Page Size After Rotation with PdfPageEditor", - "filename": "retrieve-page-size-after-rotation.cs", - "description": "Shows how to rotate a PDF page using Aspose.Pdf.Facades.PdfPageEditor and then obtain the updated page dimensions to confirm the new orientation.", + "resize-pdf-and-split-into-chapters": { + "title": "Resize Pdf And Split Into Chapters", + "filename": "resize-pdf-and-split-into-chapters.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "resize-pdf-contents-asymmetric-margins": { + "title": "Resize PDF Contents with Asymmetric Margins", + "filename": "resize-pdf-contents-asymmetric-margins.cs", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfFileEditor to resize page contents with different left and right margins (and top/bottom) by specifying percentage‑based margins.", "tags": [ "pdf", - "rotation", - "pagesize", - "aspose.pdf", - "facade" + "resize", + "margins", + "asymmetric", + "Aspose.Pdf" ], "apis_used": [ - "PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.Rotation", - "PdfPageEditor.ApplyChanges", - "PdfPageEditor.GetPageRotation", - "PdfPageEditor.GetPageSize", - "PdfPageEditor.Save", - "PageSize" + "Aspose.Pdf.Facades.PdfFileEditor", + "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents", + "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeParameters", + "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeValue", + "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeValue.Percents" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "retrieve-verify-page-rotation-after-resizing": { - "title": "Retrieve and Verify Page Rotation After Resizing PDF Page", - "filename": "retrieve-verify-page-rotation-after-resizing.cs", - "description": "Shows how to obtain a PDF page's rotation, change the page size with PdfPageEditor, and confirm that the rotation value stays the same after resizing.", + "resize-pdf-contents-rotate-pages": { + "title": "Resize Pdf Contents Rotate Pages", + "filename": "resize-pdf-contents-rotate-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "resize-pdf-contents-top-bottom-margins": { + "title": "Resize PDF Page Contents with Different Top and Bottom Margins", + "filename": "resize-pdf-contents-top-bottom-margins.cs", + "description": "Shows how to use PdfFileEditor.ContentsResizeParameters to set distinct top and bottom margins (in percents) for all pages, leaving other margins and sizes automatic.", "tags": [ "pdf", - "rotation", - "pagesize", - "aspose.pdf", - "facade" + "resize", + "contents", + "margins", + "Aspose.Pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.GetPageRotation", - "Aspose.Pdf.Facades.PdfPageEditor.PageSize", - "Aspose.Pdf.Facades.PdfPageEditor.Save", - "Aspose.Pdf.PageSize" + "Aspose.Pdf.Facades.PdfFileEditor", + "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeParameters", + "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeValue", + "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "apply-custom-page-transitions": { - "title": "Apply Custom Page Transitions Based on Index", - "filename": "apply-custom-page-transitions.cs", - "description": "Shows how to assign different transition effects to each PDF page using Aspose.Pdf's PdfPageEditor, selecting the transition type according to the page index.", + "resize-pdf-contents-uniform-margin": { + "title": "Resize PDF Contents with Uniform Margin", + "filename": "resize-pdf-contents-uniform-margin.cs", + "description": "Shows how to uniformly shrink the page contents of a PDF by applying a 10% margin on all sides using Aspose.Pdf's PdfFileEditor and ContentsResizeParameters.", "tags": [ "pdf", - "page-transitions", - "aspose-pdf", - "csharp", + "resize", + "margin", + "Aspose.Pdf", "facade" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.ProcessPages", - "PdfPageEditor.TransitionDuration", - "PdfPageEditor.TransitionType", - "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save" + "Aspose.Pdf.Facades.PdfFileEditor", + "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeParameters", + "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeParameters.MarginsPercent", + "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "set-per-page-display-duration": { - "title": "Set Per-Page Display Duration in PDF", - "filename": "set-per-page-display-duration.cs", - "description": "Shows how to assign a different display duration to each page of a PDF, increasing by one second per page, using Aspose.Pdf's PdfPageEditor.", + "resize-pdf-contents-uniform-margins": { + "title": "Resize Pdf Contents Uniform Margins", + "filename": "resize-pdf-contents-uniform-margins.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "resize-pdf-page-and-revert": { + "title": "Resize Pdf Page And Revert", + "filename": "resize-pdf-page-and-revert.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "resize-pdf-page-contents-10-percent-margins": { + "title": "Resize Pdf Page Contents 10 Percent Margins", + "filename": "resize-pdf-page-contents-10-percent-margins.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "resize-pdf-page-contents-5-percent": { + "title": "Resize Pdf Page Contents 5 Percent", + "filename": "resize-pdf-page-contents-5-percent.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "resize-pdf-page-contents-custom-margins": { + "title": "Resize Pdf Page Contents Custom Margins", + "filename": "resize-pdf-page-contents-custom-margins.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "resize-pdf-page-contents-negative-margins": { + "title": "Resize PDF Page Contents with Negative Margins", + "filename": "resize-pdf-page-contents-negative-margins.cs", + "description": "Demonstrates how to uniformly shrink all pages of a PDF by applying a -5% margin using Aspose.Pdf.Facades.PdfFileEditor.", "tags": [ - "display-duration", - "per-page", "pdf", - "Aspose.Pdf", - "PdfPageEditor" + "margin", + "resize", + "aspose", + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages", - "Aspose.Pdf.Facades.PdfPageEditor.DisplayDuration", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfFileEditor", + "Aspose.Pdf.Facades.PdfFileEditor.AddMarginsPct" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "center-page-content-horizontally": { - "title": "Center Page Content Horizontally Using PdfPageEditor", - "filename": "center-page-content-horizontally.cs", - "description": "Shows how to use Aspose.Pdf.Facades.PdfPageEditor to center the existing content of a specific page (page 2) horizontally in a PDF document.", + "resize-pdf-pages-content-10-percent-margin": { + "title": "Resize PDF Pages Content with 10% Margin", + "filename": "resize-pdf-pages-content-10-percent-margin.cs", + "description": "Demonstrates how to shrink the contents of all pages in a PDF to 90% of their original size, creating a 10% margin around each page using PdfFileEditor.ResizeContents.", "tags": [ "pdf", - "alignment", - "page-editor", - "horizontal-center", - "aspose" + "resize", + "margin", + "pages", + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages", - "Aspose.Pdf.Facades.PdfPageEditor.HorizontalAlignment", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Save", - "Aspose.Pdf.HorizontalAlignment" + "Aspose.Pdf.Facades.PdfFileEditor", + "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "vertically-center-page-content": { - "title": "Vertically Center Page Content Using PdfPageEditor", - "filename": "vertically-center-page-content.cs", - "description": "Shows how to align the content of a specific PDF page (page 3) to the vertical middle using Aspose.Pdf.Facades PdfPageEditor.", + "resize-pdf-pages-preserve-annotations": { + "title": "Resize PDF Pages While Preserving Annotations", + "filename": "resize-pdf-pages-preserve-annotations.cs", + "description": "Demonstrates how to change the page size of a PDF using Aspose.Pdf.Facades.PdfPageEditor while keeping existing annotations intact.", "tags": [ "pdf", - "alignment", - "vertical-center", - "page-editing", - "aspose" + "resize", + "annotations", + "aspose", + "facade" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.Save", - "Aspose.Pdf.Facades.PdfPageEditor.VerticalAlignmentType", - "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages", - "Aspose.Pdf.VerticalAlignment" + "Aspose.Pdf.PageSize", + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "set-horizontal-alignment-and-zoom-on-page": { - "title": "Set Horizontal Alignment and Zoom on Specific PDF Page", - "filename": "set-horizontal-alignment-and-zoom-on-page.cs", - "description": "Shows how to center the content of page 4 and increase its zoom level using Aspose.Pdf.Facades.PdfPageEditor.", + "resize-pdf-pages-to-a4": { + "title": "Resize Pdf Pages To A4", + "filename": "resize-pdf-pages-to-a4.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "resize-pdf-pages-using-pdfpageeditor": { + "title": "Resize PDF Pages Using PdfPageEditor", + "filename": "resize-pdf-pages-using-pdfpageeditor.cs", + "description": "Shows how to load a PDF from a byte array, change its page size to A4 with PdfPageEditor, and save the modified document.", "tags": [ "pdf", - "alignment", - "zoom", - "page-editing", - "aspose" + "page-size", + "aspose.pdf", + "memory-stream", + "pdfpageeditor" ], "apis_used": [ - "PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save", - "PdfPageEditor.Close", - "HorizontalAlignment" + "Aspose.Pdf.Facades.PdfPageEditor", + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Facades.PdfPageEditor.Save", + "Aspose.Pdf.Document", + "Aspose.Pdf.PageSize" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "add-10-percent-margins-to-pdf-pages": { - "title": "Add 10% Margins to All PDF Pages", - "filename": "add-10-percent-margins-to-pdf-pages.cs", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfFileEditor to add a uniform 10 % margin on all sides of every page in a PDF, producing a resized document ready for printing.", + "resize-specific-pdf-page-to-letter": { + "title": "Resize Specific Pdf Page To Letter", + "filename": "resize-specific-pdf-page-to-letter.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "resize-specific-pdf-pages-to-us-letter": { + "title": "Resize Specific PDF Pages to US Letter Size", + "filename": "resize-specific-pdf-pages-to-us-letter.cs", + "description": "Demonstrates how to change the page size of selected pages (3‑6) in a PDF to US Letter dimensions using the Aspose.Pdf.Facades.PdfPageEditor.", "tags": [ "pdf", - "margin", - "resize", - "facade", - "printing" + "page-size", + "letter", + "aspose", + "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.AddMarginsPct" + "Aspose.Pdf.Facades.PdfPageEditor", + "PdfPageEditor.BindPdf", + "PdfPageEditor.ProcessPages", + "PdfPageEditor.PageSize", + "PdfPageEditor.ApplyChanges", + "PdfPageEditor.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "batch-set-fade-transition-pdf-slideshow": { - "title": "Batch Set Fade Transition for PDF Slideshow", - "filename": "batch-set-fade-transition-pdf-slideshow.cs", - "description": "Demonstrates how to apply a fade (dissolve) transition with a 2‑second duration to all pages of a PDF using Aspose.Pdf's PdfPageEditor facade.", + "retrieve-page-rotation": { + "title": "Retrieve Rotation Angle of a PDF Page", + "filename": "retrieve-page-rotation.cs", + "description": "Shows how to bind a PDF with PdfPageEditor and obtain the rotation angle of a specific page using GetPageRotation.", "tags": [ "pdf", - "transition", - "fade", - "aspose.pdf", - "facade" + "rotation", + "page", + "aspose", + "c#" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.TransitionType", - "Aspose.Pdf.Facades.PdfPageEditor.TransitionDuration", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.Facades.PdfPageEditor.GetPageRotation" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "rotate-pdf-pages-and-save": { - "title": "Rotate All Pages of a PDF and Save Back to Stream", - "filename": "rotate-pdf-pages-and-save.cs", - "description": "Shows how to load a PDF from a stream, rotate every page by a given angle using PdfPageEditor, and write the modified PDF back to a new stream (or overwrite the original file).", + "retrieve-page-size-after-rotation": { + "title": "Retrieve Page Size After Rotation with PdfPageEditor", + "filename": "retrieve-page-size-after-rotation.cs", + "description": "Shows how to rotate a PDF page using Aspose.Pdf.Facades.PdfPageEditor and then obtain the updated page dimensions to confirm the new orientation.", "tags": [ - "pdf rotation", - "pdf editing", - "stream", + "pdf", + "rotation", + "pagesize", "aspose.pdf", "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.Rotation", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Save" + "PdfPageEditor", + "PdfPageEditor.BindPdf", + "PdfPageEditor.Rotation", + "PdfPageEditor.ApplyChanges", + "PdfPageEditor.GetPageRotation", + "PdfPageEditor.GetPageSize", + "PdfPageEditor.Save", + "PageSize" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "resize-pdf-pages-using-pdfpageeditor": { - "title": "Resize PDF Pages Using PdfPageEditor", - "filename": "resize-pdf-pages-using-pdfpageeditor.cs", - "description": "Shows how to load a PDF from a byte array, change its page size to A4 with PdfPageEditor, and save the modified document.", + "retrieve-pdf-page-size": { + "title": "Retrieve PDF Page Dimensions with PdfPageEditor", + "filename": "retrieve-pdf-page-size.cs", + "description": "Demonstrates how to load a PDF, get the size of a specific page using PdfPageEditor, and log the width and height.", "tags": [ "pdf", "page-size", - "aspose.pdf", - "memory-stream", - "pdfpageeditor" + "aspose", + "csharp", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfPageEditor", "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Save", - "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfPageEditor.GetPageSize", "Aspose.Pdf.PageSize" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "dispose-pdfpageeditor-properly": { - "title": "Dispose PdfPageEditor Properly While Editing PDF", - "filename": "dispose-pdfpageeditor-properly.cs", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfPageEditor within using blocks, apply page rotation and zoom, save the document, and ensure all resources are released by disposing the editor and document objects.", + "retrieve-verify-page-rotation-after-resize": { + "title": "Retrieve Verify Page Rotation After Resize", + "filename": "retrieve-verify-page-rotation-after-resize.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "retrieve-verify-page-rotation-after-resizing": { + "title": "Retrieve and Verify Page Rotation After Resizing PDF Page", + "filename": "retrieve-verify-page-rotation-after-resizing.cs", + "description": "Shows how to obtain a PDF page's rotation, change the page size with PdfPageEditor, and confirm that the rotation value stays the same after resizing.", "tags": [ "pdf", + "rotation", + "pagesize", "aspose.pdf", - "facade", - "resource-management", - "page-editing" + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Facades.PdfPageEditor.GetPageRotation", + "Aspose.Pdf.Facades.PdfPageEditor.PageSize", "Aspose.Pdf.Facades.PdfPageEditor.Save", - "Aspose.Pdf.Facades.PdfPageEditor.Close" + "Aspose.Pdf.PageSize" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "set-custom-page-size-with-pdfpageeditor": { - "title": "Set Custom Page Size with PdfPageEditor", - "filename": "set-custom-page-size-with-pdfpageeditor.cs", - "description": "Shows how to change a PDF's page dimensions to non‑standard width and height using Aspose.Pdf.Facades.PdfPageEditor and the PageSize property.", + "revert-page-size-to-original": { + "title": "Revert Page Size To Original", + "filename": "revert-page-size-to-original.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "revert-pdf-page-size-to-original": { + "title": "Revert PDF Page Size to Original Dimensions", + "filename": "revert-pdf-page-size-to-original.cs", + "description": "Demonstrates how to capture the original size of a PDF page, change the size, and then restore the page to its initial dimensions using Aspose.Pdf facades.", "tags": [ "pdf", "page-size", - "custom-dimensions", + "revert", "Aspose.Pdf", - "PdfPageEditor" + "facade" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.PageSize", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Save", - "Aspose.Pdf.PageSize" + "Aspose.Pdf.Facades.PdfPageEditor.GetPageSize", + "Aspose.Pdf.PageSize", + "Aspose.Pdf.Page.SetPageSize" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "rotate-pdf-pages-using-pdfpageeditor__v2": { - "title": "Rotate PDF Pages Using PdfPageEditor", - "filename": "rotate-pdf-pages-using-pdfpageeditor__v2.cs", - "description": "Demonstrates how to rotate all pages of a PDF by setting the Rotation property of PdfPageEditor and saving the result.", + "rotate-and-reset-pdf-page-orientation": { + "title": "Rotate and Reset PDF Page Orientation", + "filename": "rotate-and-reset-pdf-page-orientation.cs", + "description": "Demonstrates how to rotate a specific PDF page using PdfPageEditor and then restore it to its original orientation, saving both the rotated and restored documents.", "tags": [ "pdf", "rotation", - "aspose", - "pdfpageeditor", - "csharp" + "page-editor", + "aspose-pdf", + "reversible" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.Rotation", - "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save" + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Facades.PdfPageEditor.PageRotations", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "set-page-transitions-fade-boxout-cover": { - "title": "Set Page Transition Effects (Fade, BoxOut, Cover) in PDF", - "filename": "set-page-transitions-fade-boxout-cover.cs", - "description": "Demonstrates applying different page transition effects (fade, box out, cover) to individual PDF pages using Aspose.Pdf's PdfPageEditor.", + "rotate-and-resize-pdf-page-to-letter": { + "title": "Rotate and Resize PDF Page to Letter", + "filename": "rotate-and-resize-pdf-page-to-letter.cs", + "description": "Shows how to rotate a specific page (page 3) by 90 degrees and change its dimensions to Letter size using Aspose.Pdf.Facades.PdfPageEditor.", "tags": [ "pdf", - "page-transition", - "aspose.pdf", - "fade", - "boxout" + "rotation", + "page-size", + "Aspose.Pdf", + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", + "PdfPageEditor.BindPdf", "PdfPageEditor.ProcessPages", - "PdfPageEditor.TransitionType", - "PdfPageEditor.TransitionDuration", + "PdfPageEditor.Rotation", + "PdfPageEditor.PageSize", "PdfPageEditor.ApplyChanges", "PdfPageEditor.Save" ], @@ -1745,353 +2010,565 @@ "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "set-pdf-page-zoom-using-double-precision": { - "title": "Set PDF Page Zoom Using Double Precision", - "filename": "set-pdf-page-zoom-using-double-precision.cs", - "description": "Demonstrates applying a precise zoom factor to a PDF document with Aspose.Pdf by casting a double to the PdfPageEditor.Zoom property and saving the result.", + "rotate-every-third-page-270-degrees": { + "title": "Rotate Every Third Page 270 Degrees", + "filename": "rotate-every-third-page-270-degrees.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "rotate-every-third-pdf-page": { + "title": "Rotate Every Third PDF Page to Landscape", + "filename": "rotate-every-third-pdf-page.cs", + "description": "Shows how to rotate every third page of a PDF by 270° using Aspose.Pdf.Facades.PdfPageEditor, resulting in an alternating landscape orientation.", "tags": [ - "zoom", - "scaling", - "pdf", + "pdf rotation", + "page editing", "Aspose.Pdf", - "precision" + "landscape", + "PdfPageEditor" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.Zoom", + "Aspose.Pdf.Facades.PdfPageEditor.GetPages", + "Aspose.Pdf.Facades.PdfPageEditor.PageRotations", "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfPageEditor.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "set-slide-display-duration-pdf-presentation": { - "title": "Set Slide Display Duration for PDF Presentation", - "filename": "set-slide-display-duration-pdf-presentation.cs", - "description": "Demonstrates how to set a uniform display duration (in seconds) for each page of a PDF, turning it into a timed presentation using Aspose.Pdf's PdfPageEditor facade.", + "rotate-first-page-from-memory-stream": { + "title": "Rotate First Page of PDF from Memory Stream", + "filename": "rotate-first-page-from-memory-stream.cs", + "description": "Shows how to load a PDF from a MemoryStream into PdfPageEditor, rotate a specific page, and save the edited document.", "tags": [ "pdf", - "presentation", - "display-duration", - "aspose", + "memory-stream", + "page-rotation", + "aspose-pdf", "facade" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.DisplayDuration", + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Save" + "Aspose.Pdf.Facades.PdfPageEditor.Save", + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "set-horizontal-alignment-pdf": { - "title": "Set Horizontal Alignment of PDF Page Content", - "filename": "set-horizontal-alignment-pdf.cs", - "description": "Demonstrates how to use PdfPageEditor to change the horizontal alignment (left, center, right) of existing page content in a PDF document.", + "rotate-first-page-of-pdfs": { + "title": "Rotate First Page Of Pdfs", + "filename": "rotate-first-page-of-pdfs.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "rotate-first-page-pdf": { + "title": "Rotate First Page of PDF Using PdfPageEditor", + "filename": "rotate-first-page-pdf.cs", + "description": "Demonstrates loading a PDF with PdfPageEditor, rotating the first page, and saving the edited document.", "tags": [ "pdf", - "alignment", - "aspose.pdf", - "page-editor", - "horizontal-alignment" + "rotation", + "page-editing", + "aspose", + "csharp" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Save", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Facades.HorizontalAlignment" + "PdfPageEditor.BindPdf", + "PdfPageEditor.Rotation", + "PdfPageEditor.ProcessPages", + "PdfPageEditor.ApplyChanges", + "PdfPageEditor.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "resize-pdf-contents-uniform-margin": { - "title": "Resize PDF Contents with Uniform Margin", - "filename": "resize-pdf-contents-uniform-margin.cs", - "description": "Shows how to uniformly shrink the page contents of a PDF by applying a 10% margin on all sides using Aspose.Pdf's PdfFileEditor and ContentsResizeParameters.", + "rotate-landscape-pdf-pages": { + "title": "Rotate Landscape PDF Pages to Portrait", + "filename": "rotate-landscape-pdf-pages.cs", + "description": "Shows how to detect landscape-oriented pages in a PDF and rotate each 90° to portrait using Aspose.Pdf's PdfPageEditor.", "tags": [ "pdf", - "resize", - "margin", - "Aspose.Pdf", - "facade" + "rotation", + "landscape", + "aspose", + "page-editing" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeParameters", - "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeParameters.MarginsPercent", - "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents" + "Aspose.Pdf.Facades.PdfPageEditor", + "Aspose.Pdf.Facades.PdfPageEditor.Rotation", + "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages", + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Facades.PdfPageEditor.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "resize-pdf-contents-asymmetric-margins": { - "title": "Resize PDF Contents with Asymmetric Margins", - "filename": "resize-pdf-contents-asymmetric-margins.cs", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfFileEditor to resize page contents with different left and right margins (and top/bottom) by specifying percentage‑based margins.", + "rotate-page-2-pdf-90-degrees": { + "title": "Rotate Page 2 of a PDF by 90 Degrees", + "filename": "rotate-page-2-pdf-90-degrees.cs", + "description": "Demonstrates how to rotate a specific page in a PDF using Aspose.Pdf.Facades.PdfPageEditor by setting a PageRotations entry and applying the changes.", "tags": [ "pdf", - "resize", - "margins", - "asymmetric", - "Aspose.Pdf" + "rotation", + "page-editing", + "aspose-pdf", + "csharp" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents", - "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeParameters", - "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeValue", - "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeValue.Percents" + "PdfPageEditor", + "PdfPageEditor.BindPdf", + "PdfPageEditor.PageRotations", + "PdfPageEditor.ApplyChanges", + "PdfPageEditor.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "resize-pdf-contents-top-bottom-margins": { - "title": "Resize PDF Page Contents with Different Top and Bottom Margins", - "filename": "resize-pdf-contents-top-bottom-margins.cs", - "description": "Shows how to use PdfFileEditor.ContentsResizeParameters to set distinct top and bottom margins (in percents) for all pages, leaving other margins and sizes automatic.", + "rotate-pages-encrypted-pdf": { + "title": "Rotate Pages of Encrypted PDF", + "filename": "rotate-pages-encrypted-pdf.cs", + "description": "Demonstrates opening an encrypted PDF with a password, using PdfPageEditor to rotate all pages, and saving the modified document.", "tags": [ - "pdf", - "resize", - "contents", - "margins", - "Aspose.Pdf" + "encrypted-pdf", + "page-rotation", + "pdf-editor", + "Aspose.Pdf", + "password" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeParameters", - "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeValue", - "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents" + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfPageEditor", + "Aspose.Pdf.Facades.PdfPageEditor.Rotation", + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Facades.PdfPageEditor.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "rotate-and-reset-pdf-page-orientation": { - "title": "Rotate and Reset PDF Page Orientation", - "filename": "rotate-and-reset-pdf-page-orientation.cs", - "description": "Demonstrates how to rotate a specific PDF page using PdfPageEditor and then restore it to its original orientation, saving both the rotated and restored documents.", + "rotate-pdf-page-180-preserve-transition": { + "title": "Rotate Pdf Page 180 Preserve Transition", + "filename": "rotate-pdf-page-180-preserve-transition.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "rotate-pdf-page-180-preserve-transitions": { + "title": "Rotate PDF Page 180° While Preserving Transitions", + "filename": "rotate-pdf-page-180-preserve-transitions.cs", + "description": "Shows how to rotate a specific page of a PDF by 180 degrees using PdfPageEditor, keeping any existing transition effects unchanged.", "tags": [ "pdf", "rotation", "page-editor", - "aspose-pdf", - "reversible" + "transitions", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfPageEditor", + "PdfPageEditor.BindPdf", + "PdfPageEditor.PageRotations", + "PdfPageEditor.Save", + "PdfPageEditor.Close" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:55:57Z", + "status": "verified" + }, + "rotate-pdf-page-restore-orientation": { + "title": "Rotate Pdf Page Restore Orientation", + "filename": "rotate-pdf-page-restore-orientation.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "rotate-pdf-pages-and-save": { + "title": "Rotate All Pages of a PDF and Save Back to Stream", + "filename": "rotate-pdf-pages-and-save.cs", + "description": "Shows how to load a PDF from a stream, rotate every page by a given angle using PdfPageEditor, and write the modified PDF back to a new stream (or overwrite the original file).", + "tags": [ + "pdf rotation", + "pdf editing", + "stream", + "aspose.pdf", + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.Facades.PdfPageEditor.Rotation", "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.PageRotations", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfPageEditor.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "change-pdf-page-size-and-undo": { - "title": "Change PDF Page Size and Undo to Original", - "filename": "change-pdf-page-size-and-undo.cs", - "description": "Shows how to capture a PDF's original page size, apply a custom size to all pages, save the modified document, then revert to the original size to test undo functionality.", + "rotate-pdf-pages-for-brochure": { + "title": "Rotate Pdf Pages For Brochure", + "filename": "rotate-pdf-pages-for-brochure.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "rotate-pdf-pages-from-network-stream": { + "title": "Rotate Pdf Pages From Network Stream", + "filename": "rotate-pdf-pages-from-network-stream.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "rotate-pdf-pages-memory-stream": { + "title": "Rotate Pdf Pages Memory Stream", + "filename": "rotate-pdf-pages-memory-stream.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "rotate-pdf-pages-preserve-form-fields": { + "title": "Rotate PDF Pages While Preserving Form Fields", + "filename": "rotate-pdf-pages-preserve-form-fields.cs", + "description": "Shows how to rotate all pages of a PDF by 90° using PdfPageEditor and keep form field positions by exporting to FDF before rotation and re‑importing after.", "tags": [ - "page-size", - "pdf-editing", - "undo", - "facade", + "pdf-rotation", + "form-fields", + "aspose-pdf", + "csharp", + "facade" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.Form.ExportFdf", + "Aspose.Pdf.Facades.Form.ImportFdf", + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.Facades.PdfPageEditor.Rotation", + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T07:55:57Z", + "status": "verified" + }, + "rotate-pdf-pages-preserve-form": { + "title": "Rotate Pdf Pages Preserve Form", + "filename": "rotate-pdf-pages-preserve-form.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "rotate-pdf-pages-to-landscape-brochure": { + "title": "Rotate PDF Pages to Landscape for Brochure Printing", + "filename": "rotate-pdf-pages-to-landscape-brochure.cs", + "description": "Shows how to rotate every page of a PDF to landscape orientation and set the page size to A4 using Aspose.Pdf.Facades.PdfPageEditor, preparing the document for brochure printing.", + "tags": [ + "rotation", + "landscape", + "brochure", + "pdf", "Aspose.Pdf" ], "apis_used": [ "PdfPageEditor", "PdfPageEditor.BindPdf", - "PdfPageEditor.GetPageSize", + "PdfPageEditor.Rotation", "PdfPageEditor.PageSize", "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save", - "PdfPageEditor.Close", - "PageSize" + "PdfPageEditor.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "log-pdf-page-property-changes": { - "title": "Log PDF Page Property Changes with Aspose.Pdf", - "filename": "log-pdf-page-property-changes.cs", - "description": "Demonstrates how to modify PDF page properties using PdfPageEditor and direct page access, while logging each change and any notifications to a text file for audit and debugging.", + "rotate-pdf-pages-using-pdfpageeditor": { + "title": "Rotate PDF Pages Using PdfPageEditor", + "filename": "rotate-pdf-pages-using-pdfpageeditor.cs", + "description": "Demonstrates how to validate a rotation angle and apply it to all pages of a PDF using Aspose.Pdf.Facades.PdfPageEditor.", "tags": [ + "rotation", "pdf", - "page-modification", - "logging", - "aspose-pdf", - "facade" + "facades", + "validation", + "csharp" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Page", - "Document.EnableNotificationLogging", - "PdfPageEditor.ApplyChanges", - "Page.GetNotifications", - "Document.Save" + "PdfPageEditor", + "PdfPageEditor.BindPdf", + "PdfPageEditor.Rotation", + "PdfPageEditor.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "report-pdf-page-properties-before-after": { - "title": "Report PDF Page Properties Before and After Editing", - "filename": "report-pdf-page-properties-before-after.cs", - "description": "Shows how to read page size, rotation, and offsets with PdfFileInfo, apply rotation, zoom, and origin shift using PdfPageEditor, and compare the properties before and after the edits.", + "rotate-pdf-pages-using-pdfpageeditor__v2": { + "title": "Rotate PDF Pages Using PdfPageEditor", + "filename": "rotate-pdf-pages-using-pdfpageeditor__v2.cs", + "description": "Demonstrates how to rotate all pages of a PDF by setting the Rotation property of PdfPageEditor and saving the result.", "tags": [ "pdf", - "page-properties", "rotation", - "zoom", - "aspose-pdf" + "aspose", + "pdfpageeditor", + "csharp" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.GetPageWidth", - "Aspose.Pdf.Facades.PdfFileInfo.GetPageHeight", - "Aspose.Pdf.Facades.PdfFileInfo.GetPageRotation", - "Aspose.Pdf.Facades.PdfFileInfo.GetPageXOffset", - "Aspose.Pdf.Facades.PdfFileInfo.GetPageYOffset", "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.PageRotations", - "Aspose.Pdf.Facades.PdfPageEditor.Zoom", - "Aspose.Pdf.Facades.PdfPageEditor.MovePosition", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Save" + "PdfPageEditor.BindPdf", + "PdfPageEditor.Rotation", + "PdfPageEditor.ApplyChanges", + "PdfPageEditor.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "rotate-pages-encrypted-pdf": { - "title": "Rotate Pages of Encrypted PDF", - "filename": "rotate-pages-encrypted-pdf.cs", - "description": "Demonstrates opening an encrypted PDF with a password, using PdfPageEditor to rotate all pages, and saving the modified document.", + "rotate-pdf-pages-with-validation": { + "title": "Rotate Pdf Pages With Validation", + "filename": "rotate-pdf-pages-with-validation.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "rotate-resize-pdf-page-to-letter": { + "title": "Rotate Resize Pdf Page To Letter", + "filename": "rotate-resize-pdf-page-to-letter.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "rotate-resize-zoom-pdf-pages": { + "title": "Rotate Resize Zoom Pdf Pages", + "filename": "rotate-resize-zoom-pdf-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "rotate-specific-pdf-page": { + "title": "Rotate Specific PDF Page Using PdfPageEditor", + "filename": "rotate-specific-pdf-page.cs", + "description": "Demonstrates how to rotate page 4 of a PDF document by 180 degrees using the PdfPageEditor facade and save the result.", "tags": [ - "encrypted-pdf", + "rotation", + "pdf", + "page", + "editor", + "aspose" + ], + "apis_used": [ + "PdfPageEditor", + "PdfPageEditor.BindPdf", + "PdfPageEditor.ProcessPages", + "PdfPageEditor.Rotation", + "PdfPageEditor.ApplyChanges", + "PdfPageEditor.Save" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:55:57Z", + "status": "verified" + }, + "rotate-specific-pdf-pages": { + "title": "Rotate Specific PDF Pages Using PdfPageEditor", + "filename": "rotate-specific-pdf-pages.cs", + "description": "Demonstrates how to rotate selected pages (3, 5, and 7) of a PDF by 180 degrees using the Aspose.Pdf.Facades.PdfPageEditor facade.", + "tags": [ + "pdf", "page-rotation", - "pdf-editor", - "Aspose.Pdf", - "password" + "facade", + "aspose-pdf", + "csharp" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.Rotation", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Save" + "PdfPageEditor.BindPdf", + "PdfPageEditor.PageRotations", + "PdfPageEditor.ApplyChanges", + "PdfPageEditor.Save" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:55:57Z", + "status": "verified" + }, + "safe-get-pdf-page-size": { + "title": "Safe Get Pdf Page Size", + "filename": "safe-get-pdf-page-size.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "save-modified-pdf-to-memorystream-using-pdfpageeditor": { + "title": "Save Modified Pdf To Memorystream Using Pdfpageeditor", + "filename": "save-modified-pdf-to-memorystream-using-pdfpageeditor.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-boxout-transition-and-zoom": { + "title": "Set BoxOut Transition and Zoom on PDF Page", + "filename": "set-boxout-transition-and-zoom.cs", + "description": "Shows how to apply a BoxOut page transition and a 1.3 zoom factor to page 2 of a PDF using Aspose.Pdf.Facades.PdfPageEditor.", + "tags": [ + "pdf", + "transition", + "zoom", + "page-editing", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfPageEditor", + "PdfPageEditor.BindPdf", + "PdfPageEditor.ProcessPages", + "PdfPageEditor.TransitionType", + "PdfPageEditor.Zoom", + "PdfPageEditor.ApplyChanges", + "PdfPageEditor.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "modify-pages-preserve-signature": { - "title": "Modify Pages in a Digitally Signed PDF While Preserving Signature", - "filename": "modify-pages-preserve-signature.cs", - "description": "Demonstrates how to rotate and resize specific pages of a PDF that already contains a signature field using PdfPageEditor, saving the changes as an incremental update so existing signatures remain valid.", + "set-boxout-transition-on-pdf-page": { + "title": "Set BoxOut Transition on PDF Page", + "filename": "set-boxout-transition-on-pdf-page.cs", + "description": "Demonstrates how to apply a BoxOut page transition with a three‑second duration to a specific page of a PDF using Aspose.Pdf.", "tags": [ "pdf", - "page-editing", - "digital-signature", - "incremental-update", - "Aspose.Pdf" + "transition", + "boxout", + "page-edit", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.PageSize" + "PdfPageEditor.ProcessPages", + "PdfPageEditor.TransitionType", + "PdfPageEditor.TransitionDuration", + "PdfPageEditor.ApplyChanges", + "Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "resize-pdf-pages-preserve-annotations": { - "title": "Resize PDF Pages While Preserving Annotations", - "filename": "resize-pdf-pages-preserve-annotations.cs", - "description": "Demonstrates how to change the page size of a PDF using Aspose.Pdf.Facades.PdfPageEditor while keeping existing annotations intact.", + "set-cover-transition-on-pdf-page": { + "title": "Set Cover Transition on PDF Page", + "filename": "set-cover-transition-on-pdf-page.cs", + "description": "Demonstrates how to apply a Cover page transition with a 1‑second duration to page 4 of a PDF using Aspose.Pdf.", "tags": [ "pdf", - "resize", - "annotations", - "aspose", - "facade" + "transition", + "cover", + "page-editing", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.PageSize", "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfPageEditor.Save", + "Aspose.Pdf.Facades.PdfPageEditor.TransitionType", + "Aspose.Pdf.Facades.PdfPageEditor.TransitionDuration" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "rotate-pdf-pages-preserve-form-fields": { - "title": "Rotate PDF Pages While Preserving Form Fields", - "filename": "rotate-pdf-pages-preserve-form-fields.cs", - "description": "Shows how to rotate all pages of a PDF by 90° using PdfPageEditor and keep form field positions by exporting to FDF before rotation and re‑importing after.", + "set-custom-a4-landscape-page-size": { + "title": "Set Custom A4 Landscape Page Size Using PdfPageEditor", + "filename": "set-custom-a4-landscape-page-size.cs", + "description": "Shows how to change all pages of a PDF to a custom A4 landscape size by setting Width and Height properties via Aspose.Pdf.Facades.PdfPageEditor.", "tags": [ - "pdf-rotation", - "form-fields", - "aspose-pdf", - "csharp", - "facade" + "page-size", + "landscape", + "A4", + "PdfPageEditor", + "Aspose.Pdf" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.Form.ExportFdf", - "Aspose.Pdf.Facades.Form.ImportFdf", + "Aspose.Pdf.Facades.PdfPageEditor", "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.Rotation", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges" + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Facades.PdfPageEditor.Save", + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.PageSize" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "apply-transition-to-odd-pages": { - "title": "Apply Transition to Odd Pages in PDF", - "filename": "apply-transition-to-odd-pages.cs", - "description": "Shows how to add a page transition effect only to odd‑numbered pages of a PDF using Aspose.Pdf's PdfPageEditor facade.", + "set-custom-page-size-with-pdfpageeditor": { + "title": "Set Custom Page Size with PdfPageEditor", + "filename": "set-custom-page-size-with-pdfpageeditor.cs", + "description": "Shows how to change a PDF's page dimensions to non‑standard width and height using Aspose.Pdf.Facades.PdfPageEditor and the PageSize property.", "tags": [ "pdf", - "page-transition", - "odd-pages", - "aspose-pdf", - "facade" + "page-size", + "custom-dimensions", + "Aspose.Pdf", + "PdfPageEditor" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages", - "Aspose.Pdf.Facades.PdfPageEditor.TransitionType", - "Aspose.Pdf.Facades.PdfPageEditor.TransitionDuration", + "Aspose.Pdf.Facades.PdfPageEditor.PageSize", "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Save" + "Aspose.Pdf.Facades.PdfPageEditor.Save", + "Aspose.Pdf.PageSize" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, @@ -2120,137 +2597,173 @@ "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "zoom-pdf-pages-with-images": { - "title": "Zoom PDF Pages Containing Images", - "filename": "zoom-pdf-pages-with-images.cs", - "description": "Shows how to detect pages that contain image objects in a PDF and apply a zoom factor only to those pages using Aspose.Pdf.Facades.", + "set-display-duration-for-pdf-pages": { + "title": "Set Display Duration For Pdf Pages", + "filename": "set-display-duration-for-pdf-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-display-duration-on-even-pdf-pages": { + "title": "Set Display Duration On Even Pdf Pages", + "filename": "set-display-duration-on-even-pdf-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-display-duration-page-five": { + "title": "Set Display Duration for a Specific PDF Page", + "filename": "set-display-duration-page-five.cs", + "description": "Shows how to use Aspose.Pdf.Facades.PdfPageEditor to set the display duration of page 5 to five seconds in a PDF document.", "tags": [ "pdf", - "zoom", - "image-detection", + "display-duration", "page-editing", - "aspose" + "slideshow", + "aspose-pdf" ], "apis_used": [ - "PdfExtractor", "PdfPageEditor", - "PdfExtractor.ExtractImage", - "PdfExtractor.HasNextImage", - "PdfPageEditor.Zoom", - "PdfPageEditor.ApplyChanges" + "PdfPageEditor.BindPdf", + "PdfPageEditor.ProcessPages", + "PdfPageEditor.DisplayDuration", + "PdfPageEditor.ApplyChanges", + "PdfPageEditor.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "resize-contents-on-text-pages": { - "title": "Resize PDF Contents Only on Pages Containing Text", - "filename": "resize-contents-on-text-pages.cs", - "description": "Shows how to use TextAbsorber to find pages that contain any text and then apply PdfFileEditor.ResizeContents only to those pages.", + "set-horizontal-alignment-and-zoom-on-page": { + "title": "Set Horizontal Alignment and Zoom on Specific PDF Page", + "filename": "set-horizontal-alignment-and-zoom-on-page.cs", + "description": "Shows how to center the content of page 4 and increase its zoom level using Aspose.Pdf.Facades.PdfPageEditor.", "tags": [ "pdf", - "resize", - "text-detection", - "pages", + "alignment", + "zoom", + "page-editing", "aspose" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Text.TextAbsorber", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents" + "PdfPageEditor", + "PdfPageEditor.BindPdf", + "PdfPageEditor.ApplyChanges", + "PdfPageEditor.Save", + "PdfPageEditor.Close", + "HorizontalAlignment" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "combine-page-rotation-zoom-presentation": { - "title": "Combine Page Rotation, Zoom, and Transitions for PDF Presentation", - "filename": "combine-page-rotation-zoom-presentation.cs", - "description": "Shows how to rotate, zoom, and apply slide transition effects to every page of a PDF using Aspose.Pdf's PdfPageEditor facade, then save the result as a presentation PDF.", + "set-horizontal-alignment-pdf": { + "title": "Set Horizontal Alignment of PDF Page Content", + "filename": "set-horizontal-alignment-pdf.cs", + "description": "Demonstrates how to use PdfPageEditor to change the horizontal alignment (left, center, right) of existing page content in a PDF document.", "tags": [ "pdf", - "rotation", - "zoom", - "transition", - "presentation" + "alignment", + "aspose.pdf", + "page-editor", + "horizontal-alignment" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.TransitionType" + "Aspose.Pdf.Facades.PdfPageEditor.Save", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Facades.HorizontalAlignment" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "set-custom-a4-landscape-page-size": { - "title": "Set Custom A4 Landscape Page Size Using PdfPageEditor", - "filename": "set-custom-a4-landscape-page-size.cs", - "description": "Shows how to change all pages of a PDF to a custom A4 landscape size by setting Width and Height properties via Aspose.Pdf.Facades.PdfPageEditor.", + "set-horizontal-alignment-zoom-page": { + "title": "Set Horizontal Alignment Zoom Page", + "filename": "set-horizontal-alignment-zoom-page.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-last-page-size-a5": { + "title": "Set Last Page Size to A5 in PDF", + "filename": "set-last-page-size-a5.cs", + "description": "Shows how to change only the last page of a PDF to A5 size using Aspose.Pdf's PdfPageEditor facade, useful for creating compact booklet formats.", "tags": [ + "pdf", "page-size", - "landscape", - "A4", - "PdfPageEditor", - "Aspose.Pdf" + "last-page", + "Aspose.Pdf", + "booklet" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages", + "Aspose.Pdf.Facades.PdfPageEditor.PageSize", "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Save", - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.PageSize" + "Aspose.Pdf.Facades.PdfPageEditor.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "set-pdf-page-size-to-letter-portrait": { - "title": "Set PDF Page Size to Letter Portrait", - "filename": "set-pdf-page-size-to-letter-portrait.cs", - "description": "Demonstrates how to change all pages of a PDF to the standard Letter portrait dimensions using Aspose.Pdf's PdfPageEditor.", + "set-page-display-duration-by-word-count": { + "title": "Set Page Display Duration Based on Word Count", + "filename": "set-page-display-duration-by-word-count.cs", + "description": "Shows how to compute reading time from the word count of each PDF page and assign a proportional display duration using Aspose.Pdf.", "tags": [ - "page-size", - "letter", "pdf", - "facade", + "display-duration", + "word-count", + "reading-time", "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.PageSize", + "Aspose.Pdf.Text.TextAbsorber", + "Aspose.Pdf.Facades.PdfPageEditor.DisplayDuration", + "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages", "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfPageEditor.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "rotate-landscape-pdf-pages": { - "title": "Rotate Landscape PDF Pages to Portrait", - "filename": "rotate-landscape-pdf-pages.cs", - "description": "Shows how to detect landscape-oriented pages in a PDF and rotate each 90° to portrait using Aspose.Pdf's PdfPageEditor.", + "set-page-display-duration-for-pdf-slideshow": { + "title": "Set Page Display Duration for PDF Slideshow", + "filename": "set-page-display-duration-for-pdf-slideshow.cs", + "description": "Shows how to assign a custom display duration to each page of a PDF, creating a timed slideshow using Aspose.Pdf's PdfPageEditor.", "tags": [ "pdf", - "rotation", - "landscape", - "aspose", - "page-editing" + "slideshow", + "display-duration", + "page-editing", + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.Rotation", - "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Save" + "PdfPageEditor", + "PdfPageEditor.BindPdf", + "PdfPageEditor.GetPages", + "PdfPageEditor.ProcessPages", + "PdfPageEditor.DisplayDuration", + "PdfPageEditor.ApplyChanges", + "PdfPageEditor.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:55:57Z", @@ -2278,244 +2791,356 @@ "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "adjust-page-zoom-based-on-word-count": { - "title": "Adjust Page Zoom Based on Word Count", - "filename": "adjust-page-zoom-based-on-word-count.cs", - "description": "Demonstrates how to analyze each PDF page's word count and apply a dynamic zoom factor—higher zoom for pages with few words and lower zoom for dense pages—using Aspose.Pdf.", + "set-page-transition-duration-for-selected-pdf-pages": { + "title": "Set Page Transition Duration for Selected PDF Pages", + "filename": "set-page-transition-duration-for-selected-pdf-pages.cs", + "description": "Demonstrates how to use the PdfPageEditor facade to specify a range of pages and set each page's transition duration to one second, then save the modified PDF.", "tags": [ "pdf", - "zoom", - "word-count", - "page-editing", - "aspose" + "transition", + "pages", + "aspose", + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Text.TextAbsorber", + "PdfPageEditor", "PdfPageEditor.BindPdf", + "PdfPageEditor.ProcessPages", + "PdfPageEditor.TransitionDuration", "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Zoom", - "Document.Save" + "PdfPageEditor.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "batch-adjust-pdf-page-size": { - "title": "Batch Adjust PDF Page Size to A4", - "filename": "batch-adjust-pdf-page-size.cs", - "description": "Shows how to process all PDFs in a folder and set each page to a specific size (e.g., A4) using Aspose.Pdf and the PdfPageEditor facade.", + "set-page-transition-fade-2sec": { + "title": "Set Page Transition Fade 2Sec", + "filename": "set-page-transition-fade-2sec.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-page-transitions-fade-boxout-cover": { + "title": "Set Page Transition Effects (Fade, BoxOut, Cover) in PDF", + "filename": "set-page-transitions-fade-boxout-cover.cs", + "description": "Demonstrates applying different page transition effects (fade, box out, cover) to individual PDF pages using Aspose.Pdf's PdfPageEditor.", "tags": [ "pdf", - "page-size", - "batch-processing", - "aspose-pdf", - "facade" + "page-transition", + "aspose.pdf", + "fade", + "boxout" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.PageSize", - "Aspose.Pdf.Page.SetPageSize", - "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Document.Save" + "PdfPageEditor.ProcessPages", + "PdfPageEditor.TransitionType", + "PdfPageEditor.TransitionDuration", + "PdfPageEditor.ApplyChanges", + "PdfPageEditor.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "extract-rotate-selected-pdf-pages": { - "title": "Extract and Rotate Selected PDF Pages", - "filename": "extract-rotate-selected-pdf-pages.cs", - "description": "Shows how to extract specific pages from a PDF, rotate those pages, and save the result as a new PDF using Aspose.Pdf.Facades.", + "set-page-zoom-to-100-percent": { + "title": "Set Page Zoom to 100% for All PDF Pages", + "filename": "set-page-zoom-to-100-percent.cs", + "description": "Demonstrates using Aspose.Pdf.Facades.PdfPageEditor to set the zoom factor to 1.0 (100 %) for every page in a PDF and save the updated document.", "tags": [ "pdf", - "extract", - "rotate", + "zoom", "pages", + "aspose", "facade" ], "apis_used": [ - "PdfFileEditor.Extract", + "PdfPageEditor", "PdfPageEditor.BindPdf", - "PdfPageEditor.ProcessPages", - "PdfPageEditor.Rotation", + "PdfPageEditor.Zoom", "PdfPageEditor.ApplyChanges", "PdfPageEditor.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "merge-pdfs-with-uniform-margins": { - "title": "Merge PDFs with Uniform Margins", - "filename": "merge-pdfs-with-uniform-margins.cs", - "description": "Shows how to align the margins of two PDF files using PdfFileEditor.AddMargins and then concatenate them into a single PDF with PdfFileEditor.Concatenate.", + "set-page-zoom-to-150-percent": { + "title": "Set Page Zoom to 150% Using PdfPageEditor", + "filename": "set-page-zoom-to-150-percent.cs", + "description": "Shows how to adjust the zoom level of a specific PDF page (page 3) to 150% with Aspose.Pdf.Facades PdfPageEditor.", "tags": [ + "zoom", "pdf", - "merge", - "margin", - "aspose", + "page-editing", + "Aspose.Pdf", "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.AddMargins", - "Aspose.Pdf.Facades.PdfFileEditor.Concatenate" + "Aspose.Pdf.Facades.PdfPageEditor", + "PdfPageEditor.BindPdf", + "PdfPageEditor.ProcessPages", + "PdfPageEditor.Zoom", + "PdfPageEditor.ApplyChanges", + "PdfPageEditor.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "resize-and-split-pdf-into-chapters": { - "title": "Resize PDF Pages and Split into Chapter PDFs", - "filename": "resize-and-split-pdf-into-chapters.cs", - "description": "Shows how to uniformly resize all pages of a PDF and then split the resized document into separate chapter PDFs using Aspose.Pdf.Facades.", + "set-pdf-page-size-a4-landscape": { + "title": "Set Pdf Page Size A4 Landscape", + "filename": "set-pdf-page-size-a4-landscape.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-pdf-page-size-to-a3": { + "title": "Set Pdf Page Size To A3", + "filename": "set-pdf-page-size-to-a3.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-pdf-page-size-to-letter-portrait": { + "title": "Set PDF Page Size to Letter Portrait", + "filename": "set-pdf-page-size-to-letter-portrait.cs", + "description": "Demonstrates how to change all pages of a PDF to the standard Letter portrait dimensions using Aspose.Pdf's PdfPageEditor.", "tags": [ + "page-size", + "letter", "pdf", - "resize", - "split", - "chapters", + "facade", + "Aspose.Pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfPageEditor", + "Aspose.Pdf.PageSize", + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:55:57Z", + "status": "verified" + }, + "set-pdf-page-zoom-preview-final": { + "title": "Set PDF Page Zoom for Preview and Final Output", + "filename": "set-pdf-page-zoom-preview-final.cs", + "description": "Shows how to generate a preview PDF at 50 % zoom and a final PDF at 100 % zoom using Aspose.Pdf.Facades.PdfPageEditor.", + "tags": [ + "pdf", + "zoom", + "preview", + "Aspose.Pdf", "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents", - "Aspose.Pdf.Facades.PdfFileEditor.SplitToBulks" + "Aspose.Pdf.Facades.PdfPageEditor", + "PdfPageEditor.BindPdf", + "PdfPageEditor.Zoom", + "PdfPageEditor.ApplyChanges", + "PdfPageEditor.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "create-pdf-slideshow-with-page-transitions": { - "title": "Create PDF Slideshow with Page Transitions", - "filename": "create-pdf-slideshow-with-page-transitions.cs", - "description": "Shows how to apply transition effects and display durations to each page of a PDF to generate a slideshow using Aspose.Pdf.", + "set-pdf-page-zoom-using-double-precision": { + "title": "Set PDF Page Zoom Using Double Precision", + "filename": "set-pdf-page-zoom-using-double-precision.cs", + "description": "Demonstrates applying a precise zoom factor to a PDF document with Aspose.Pdf by casting a double to the PdfPageEditor.Zoom property and saving the result.", "tags": [ + "zoom", + "scaling", "pdf", - "slideshow", - "transitions", - "page-editor", - "aspose.pdf" + "Aspose.Pdf", + "precision" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Document.Save", "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges" + "Aspose.Pdf.Facades.PdfPageEditor.Zoom", + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "set-boxout-transition-and-zoom": { - "title": "Set BoxOut Transition and Zoom on PDF Page", - "filename": "set-boxout-transition-and-zoom.cs", - "description": "Shows how to apply a BoxOut page transition and a 1.3 zoom factor to page 2 of a PDF using Aspose.Pdf.Facades.PdfPageEditor.", + "set-pdf-zoom-preview-final-output": { + "title": "Set Pdf Zoom Preview Final Output", + "filename": "set-pdf-zoom-preview-final-output.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-per-page-display-duration-based-on-word-count": { + "title": "Set Per Page Display Duration Based On Word Count", + "filename": "set-per-page-display-duration-based-on-word-count.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-per-page-display-duration": { + "title": "Set Per-Page Display Duration in PDF", + "filename": "set-per-page-display-duration.cs", + "description": "Shows how to assign a different display duration to each page of a PDF, increasing by one second per page, using Aspose.Pdf's PdfPageEditor.", "tags": [ + "display-duration", + "per-page", "pdf", - "transition", - "zoom", - "page-editing", - "aspose" + "Aspose.Pdf", + "PdfPageEditor" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.ProcessPages", - "PdfPageEditor.TransitionType", - "PdfPageEditor.Zoom", - "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save" + "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages", + "Aspose.Pdf.Facades.PdfPageEditor.DisplayDuration", + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T07:55:57Z", + "status": "verified" + }, + "set-sequential-page-transitions": { + "title": "Set Sequential Page Transitions in PDF", + "filename": "set-sequential-page-transitions.cs", + "description": "Demonstrates how to apply different page transition effects to individual pages of a PDF using Aspose.Pdf's PdfPageEditor facade.", + "tags": [ + "pdf", + "page-transitions", + "aspose-pdf", + "csharp", + "facades" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfPageEditor", + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Facades.PdfPageEditor.TransitionType", + "Aspose.Pdf.Facades.PdfPageEditor.TransitionDuration", + "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "center-page-content-set-display-duration": { - "title": "Center Page Content and Set Display Duration on a Specific PDF Page", - "filename": "center-page-content-set-display-duration.cs", - "description": "Demonstrates how to center the content of a specific PDF page and set its display duration using Aspose.Pdf's PdfPageEditor facade.", + "set-slide-display-duration-pdf-presentation": { + "title": "Set Slide Display Duration for PDF Presentation", + "filename": "set-slide-display-duration-pdf-presentation.cs", + "description": "Demonstrates how to set a uniform display duration (in seconds) for each page of a PDF, turning it into a timed presentation using Aspose.Pdf's PdfPageEditor facade.", "tags": [ "pdf", - "page-alignment", + "presentation", "display-duration", "aspose", "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfPageEditor", "Aspose.Pdf.Document", - "PdfPageEditor.BindPdf", - "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save", - "PdfPageEditor.HorizontalAlignment", - "PdfPageEditor.DisplayDuration" + "Aspose.Pdf.Facades.PdfPageEditor", + "Aspose.Pdf.Facades.PdfPageEditor.DisplayDuration", + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Facades.PdfPageEditor.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "add-5-percent-margins-and-print-pdf": { - "title": "Add 5% Margins and Print PDF", - "filename": "add-5-percent-margins-and-print-pdf.cs", - "description": "Shows how to add a 5 % margin to every page of a PDF using PdfFileEditor and then print the modified document with PdfViewer.", + "set-slide-display-duration-pdf": { + "title": "Set Slide Display Duration Pdf", + "filename": "set-slide-display-duration-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-split-page-transition": { + "title": "Set Split Page Transition for Specific PDF Page", + "filename": "set-split-page-transition.cs", + "description": "Demonstrates how to apply a horizontal split transition lasting two seconds to page 3 of a PDF using Aspose.Pdf.Facades.", "tags": [ "pdf", - "margin", - "printing", + "page-transition", + "split", "aspose", - "facades" + "csharp" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfViewer", - "Aspose.Pdf.Facades.PdfFileEditor.AddMarginsPct", - "Aspose.Pdf.Facades.PdfViewer.BindPdf", - "Aspose.Pdf.Facades.PdfViewer.PrintDocument" + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfPageEditor", + "Aspose.Pdf.Facades.PdfPageEditor.SPLITHIN", + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "add-15-percent-margins-to-pdf-pages": { - "title": "Add 15% Margins to PDF Pages for Booklet Layout", - "filename": "add-15-percent-margins-to-pdf-pages.cs", - "description": "Shows how to apply a 15 % margin to selected or all pages of a PDF using Aspose.Pdf.Facades, improving readability and binding margins for booklet layouts.", + "set-zoom-of-page-to-75-percent": { + "title": "Set Zoom of Specific PDF Page to 75%", + "filename": "set-zoom-of-page-to-75-percent.cs", + "description": "Demonstrates how to set the zoom level of a single PDF page (page 5) to 75% using Aspose.Pdf.Facades.PdfPageEditor.", "tags": [ "pdf", - "margins", - "booklet", - "aspose", - "facade" + "zoom", + "page-editing", + "Aspose.Pdf", + "C#" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.AddMarginsPct" + "Aspose.Pdf.Facades.PdfPageEditor", + "PdfPageEditor.BindPdf", + "PdfPageEditor.ProcessPages", + "PdfPageEditor.Zoom", + "PdfPageEditor.ApplyChanges", + "PdfPageEditor.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "rotate-pdf-pages-to-landscape-brochure": { - "title": "Rotate PDF Pages to Landscape for Brochure Printing", - "filename": "rotate-pdf-pages-to-landscape-brochure.cs", - "description": "Shows how to rotate every page of a PDF to landscape orientation and set the page size to A4 using Aspose.Pdf.Facades.PdfPageEditor, preparing the document for brochure printing.", + "set-zoom-on-even-pdf-pages": { + "title": "Set Zoom on Even PDF Pages", + "filename": "set-zoom-on-even-pdf-pages.cs", + "description": "Shows how to apply a zoom factor of 0.8 to all even‑numbered pages of a PDF using Aspose.Pdf.Facades.PdfPageEditor.", "tags": [ - "rotation", - "landscape", - "brochure", "pdf", - "Aspose.Pdf" + "zoom", + "even-pages", + "Aspose.Pdf", + "page-editing" ], "apis_used": [ - "PdfPageEditor", + "Aspose.Pdf.Facades.PdfPageEditor", "PdfPageEditor.BindPdf", - "PdfPageEditor.Rotation", - "PdfPageEditor.PageSize", + "PdfPageEditor.GetPages", + "PdfPageEditor.ProcessPages", + "PdfPageEditor.Zoom", "PdfPageEditor.ApplyChanges", "PdfPageEditor.Save" ], @@ -2523,118 +3148,173 @@ "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "change-pdf-page-size-to-a3": { - "title": "Change PDF Page Size to A3 Using PdfPageEditor", - "filename": "change-pdf-page-size-to-a3.cs", - "description": "Shows how to resize all pages of a PDF to A3 dimensions and optionally increase resolution using the Aspose.Pdf.Facades.PdfPageEditor class.", + "set-zoom-on-odd-pages": { + "title": "Set Zoom on Odd Pages in PDF", + "filename": "set-zoom-on-odd-pages.cs", + "description": "Shows how to apply a 1.2 zoom factor to all odd‑numbered pages of a PDF using Aspose.Pdf.Facades.PdfPageEditor.", "tags": [ "pdf", - "page-size", - "a3", - "facade", - "resolution" + "zoom", + "odd-pages", + "Aspose.Pdf", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfPageEditor", "PdfPageEditor.BindPdf", - "PdfPageEditor.PageSize", - "PdfPageEditor.Save", - "PdfPageEditor.Close" + "PdfPageEditor.GetPages", + "PdfPageEditor.ProcessPages", + "PdfPageEditor.Zoom", + "PdfPageEditor.ApplyChanges", + "PdfPageEditor.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "set-pdf-page-zoom-preview-final": { - "title": "Set PDF Page Zoom for Preview and Final Output", - "filename": "set-pdf-page-zoom-preview-final.cs", - "description": "Shows how to generate a preview PDF at 50 % zoom and a final PDF at 100 % zoom using Aspose.Pdf.Facades.PdfPageEditor.", + "set-zoom-on-specific-pdf-page": { + "title": "Set Zoom on Specific PDF Page", + "filename": "set-zoom-on-specific-pdf-page.cs", + "description": "Shows how to apply a 2.0 zoom factor (200% magnification) to page 7 of a PDF using Aspose.Pdf.Facades.PdfPageEditor.", "tags": [ "pdf", "zoom", - "preview", + "page-editing", "Aspose.Pdf", "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfPageEditor", "PdfPageEditor.BindPdf", + "PdfPageEditor.ProcessPages", "PdfPageEditor.Zoom", "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save" + "PdfPageEditor.Save", + "PdfPageEditor.Close" ], "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "hybrid-content-resize-mixed-margins": { - "title": "Hybrid Content Resize with Mixed Percentage and Absolute Margins", - "filename": "hybrid-content-resize-mixed-margins.cs", - "description": "Shows how to use Aspose.Pdf.Facades.PdfFileEditor to resize PDF page contents by specifying a mix of percentage‑based and absolute margins.", + "set-zoom-page-5-75-percent": { + "title": "Set Zoom Page 5 75 Percent", + "filename": "set-zoom-page-5-75-percent.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "use-try-catch-blocks-around-getpagesize-calls-to-handle-requests-for-non-existent-page-numbers-safely": { + "title": "Use Try Catch Blocks Around Getpagesize Calls To Handle Requests For Non Existent Page Numbers Safely", + "filename": "use-try-catch-blocks-around-getpagesize-calls-to-handle-requests-for-non-existent-page-numbers-safely.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-08-20T07:55:57Z", + "status": "verified" + }, + "vertically-align-page-3-top": { + "title": "Vertically Align Page 3 Top", + "filename": "vertically-align-page-3-top.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "vertically-center-page-content": { + "title": "Vertically Center Page Content Using PdfPageEditor", + "filename": "vertically-center-page-content.cs", + "description": "Shows how to align the content of a specific PDF page (page 3) to the vertical middle using Aspose.Pdf.Facades PdfPageEditor.", "tags": [ "pdf", - "resize", - "contents", - "percentage", + "alignment", + "vertical-center", + "page-editing", "aspose" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeParameters", - "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeValue", - "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeValue.Percents", - "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeValue.Units", - "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents" + "Aspose.Pdf.Facades.PdfPageEditor", + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.Facades.PdfPageEditor.Save", + "Aspose.Pdf.Facades.PdfPageEditor.VerticalAlignmentType", + "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages", + "Aspose.Pdf.VerticalAlignment" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "apply-page-transitions-by-index": { - "title": "Apply Different Page Transitions Based on Index", - "filename": "apply-page-transitions-by-index.cs", - "description": "Demonstrates how to assign a different transition effect to each PDF page using Aspose.Pdf.Facades.PdfPageEditor, cycling through three transition types based on the page number.", + "zoom-even-pages-pdf": { + "title": "Zoom Even Pages of PDF by 1.2x", + "filename": "zoom-even-pages-pdf.cs", + "description": "Shows how to use Aspose.Pdf.Facades.PdfPageEditor to apply a 1.2 zoom factor to all even‑numbered pages of a PDF and save the modified document.", "tags": [ "pdf", - "page-transition", - "aspose", - "facade", - "csharp" + "zoom", + "even-pages", + "Aspose.Pdf", + "facades" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", "PdfPageEditor.BindPdf", - "PdfPageEditor.TransitionType", + "PdfPageEditor.GetPages", "PdfPageEditor.ProcessPages", + "PdfPageEditor.Zoom", "PdfPageEditor.ApplyChanges", - "Document.Save" + "PdfPageEditor.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" }, - "apply-rotation-size-zoom-to-pdf-pages": { - "title": "Apply Rotation, Size, and Zoom to PDF Pages", - "filename": "apply-rotation-size-zoom-to-pdf-pages.cs", - "description": "Demonstrates using Aspose.Pdf's PdfPageEditor facade to rotate pages, change the page size, apply a zoom factor, and save the edited PDF.", + "zoom-pages-with-images": { + "title": "Zoom Pages With Images", + "filename": "zoom-pages-with-images.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "zoom-pdf-pages-with-images": { + "title": "Zoom PDF Pages Containing Images", + "filename": "zoom-pdf-pages-with-images.cs", + "description": "Shows how to detect pages that contain image objects in a PDF and apply a zoom factor only to those pages using Aspose.Pdf.Facades.", "tags": [ "pdf", - "rotation", - "pagesize", "zoom", + "image-detection", + "page-editing", "aspose" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Save", - "Aspose.Pdf.PageSize" + "PdfExtractor", + "PdfPageEditor", + "PdfExtractor.ExtractImage", + "PdfExtractor.HasNextImage", + "PdfPageEditor.Zoom", + "PdfPageEditor.ApplyChanges" ], "difficulty": "intermediate", "generated_at": "2026-08-20T07:55:57Z", "status": "verified" + }, + "zoom-selected-non-consecutive-pdf-pages": { + "title": "Zoom Selected Non Consecutive Pdf Pages", + "filename": "zoom-selected-non-consecutive-pdf-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" } } } \ No newline at end of file diff --git a/facades-secure-documents/AGENTS.md b/facades-secure-documents/AGENTS.md index bd0f96584..fc69157b6 100644 --- a/facades-secure-documents/AGENTS.md +++ b/facades-secure-documents/AGENTS.md @@ -8,7 +8,7 @@ parent: ../agents.md # AGENTS - facades-secure-documents -> **Facades secure documents** in PDF using C# / .NET -- **39** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. +> **Facades secure documents** in PDF using C# / .NET -- **59** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. ## Persona @@ -23,16 +23,16 @@ See the root [agents.md](../agents.md) for repository-wide conventions and bound ## Required Namespaces -- `using Aspose.Pdf.Facades;` (38/39 files) ← category-specific -- `using Aspose.Pdf;` (24/39 files) ← category-specific -- `using Aspose.Pdf.Text;` (3/39 files) -- `using System;` (39/39 files) -- `using System.IO;` (36/39 files) -- `using Azure.Identity;` (1/39 files) -- `using Azure.Security.KeyVault.Secrets;` (1/39 files) -- `using NUnit.Framework;` (1/39 files) -- `using System.Collections.Generic;` (1/39 files) -- `using System.Diagnostics;` (1/39 files) +- `using Aspose.Pdf.Facades;` (38/59 files) ← category-specific +- `using Aspose.Pdf;` (24/59 files) +- `using Aspose.Pdf.Text;` (3/59 files) +- `using System;` (39/59 files) +- `using System.IO;` (36/59 files) +- `using Azure.Identity;` (1/59 files) +- `using Azure.Security.KeyVault.Secrets;` (1/59 files) +- `using NUnit.Framework;` (1/59 files) +- `using System.Collections.Generic;` (1/59 files) +- `using System.Diagnostics;` (1/59 files) ## Common Code Pattern @@ -49,40 +49,40 @@ tool.Save("output.pdf"); | File | Title | Key APIs | Description | |------|-------|----------|-------------| +| [add-text-annotation-to-encrypted-pdf](./add-text-annotation-to-encrypted-pdf.cs) | Add text annotation to encrypted pdf | | Add text annotation to encrypted pdf | | [apply-password-protection-to-pdf](./apply-password-protection-to-pdf.cs) | Apply Password Protection to PDF without Loading Document | `PdfFileSecurity`, `EncryptFile`, `DocumentPrivilege` | Shows how to encrypt an existing PDF file with user and owner passwords using the PdfFileSecurity... | +| [batch-decrypt-pdfs-from-config](./batch-decrypt-pdfs-from-config.cs) | Batch decrypt pdfs from config | | Batch decrypt pdfs from config | | [batch-decrypt-pdfs-owner-passwords](./batch-decrypt-pdfs-owner-passwords.cs) | Batch Decrypt PDFs Using Owner Passwords | `PdfFileSecurity`, `DecryptFile`, `PdfFileSecurity (constructor)` | Shows how to read a simple configuration file containing PDF paths and owner passwords, then decr... | | [batch-encrypt-pdf-files](./batch-encrypt-pdf-files.cs) | Batch Encrypt PDF Files with User and Owner Passwords | `PdfFileSecurity`, `EncryptFile`, `DocumentPrivilege` | Shows how to encrypt every PDF in a directory using Aspose.Pdf.Facades.PdfFileSecurity with a com... | +| [batch-encrypt-pdfs](./batch-encrypt-pdfs.cs) | Batch encrypt pdfs | | Batch encrypt pdfs | | [batch-update-pdf-user-passwords](./batch-update-pdf-user-passwords.cs) | Batch Update PDF User Passwords | `PdfFileSecurity`, `TryChangePassword` | Shows how to iterate through a folder of PDF files and change each file's user password to a stan... | +| [change-pdf-owner-password-preserve-user](./change-pdf-owner-password-preserve-user.cs) | Change pdf owner password preserve user | | Change pdf owner password preserve user | | [change-pdf-passwords-from-csv](./change-pdf-passwords-from-csv.cs) | Change User and Owner Passwords for PDFs from CSV | `PdfFileSecurity`, `BindPdf`, `ChangePassword` | Shows how to read PDF file paths and passwords from a CSV file and use Aspose.Pdf.Facades.PdfFile... | | [change-user-and-owner-passwords](./change-user-and-owner-passwords.cs) | Change User and Owner Passwords in PDF | `PdfFileSecurity`, `ChangePassword` | Demonstrates how to change both the user and owner passwords of an encrypted PDF in a single call... | | [change-user-password-of-encrypted-pdf](./change-user-password-of-encrypted-pdf.cs) | Change User Password of Encrypted PDF | `PdfFileSecurity`, `ChangePassword`, `ctor` | Demonstrates how to update the user password of an already encrypted PDF while keeping the existi... | +| [check-pdf-encryption-and-encrypt-decrypt](./check-pdf-encryption-and-encrypt-decrypt.cs) | Check pdf encryption and encrypt decrypt | | Check pdf encryption and encrypt decrypt | | [check-pdf-encryption-and-toggle-protection](./check-pdf-encryption-and-toggle-protection.cs) | Check PDF Encryption and Apply or Remove Protection | `PdfFileInfo`, `Document`, `Encrypt` | The example shows how to inspect a PDF's IsEncrypted flag using PdfFileInfo, then either encrypt ... | | [check-pdf-extended-usage-rights](./check-pdf-extended-usage-rights.cs) | Check PDF for Extended Usage Rights | `Document`, `PdfFileSignature`, `BindPdf` | Shows how to use Aspose.Pdf's PdfFileSignature facade to determine if a PDF contains extended usa... | | [conditional-decrypt-modify-pdf](./conditional-decrypt-modify-pdf.cs) | Conditional Decrypt and Modify PDF with Aspose.Pdf | `Document`, `PdfFileSecurity`, `DecryptFile` | The example loads a PDF, detects if it is encrypted, decrypts it using the owner password when ne... | | [conditional-pdf-encryption-based-on-filename](./conditional-pdf-encryption-based-on-filename.cs) | Conditional PDF Encryption Based on File Name | `PdfFileSecurity`, `BindPdf`, `EncryptFile` | Demonstrates how to encrypt multiple PDF files using Aspose.Pdf, selecting the key size and encry... | | [decrypt-pdf-owner-password](./decrypt-pdf-owner-password.cs) | Decrypt PDF Using Owner Password | `PdfFileSecurity`, `DecryptFile` | Demonstrates how to remove encryption from a PDF file by providing the owner password using Aspos... | | [decrypt-pdf-using-owner-password-azure-key-vault](./decrypt-pdf-using-owner-password-azure-key-vault.cs) | Decrypt PDF Using Owner Password from Azure Key Vault | `PdfFileSecurity`, `DecryptFile` | Shows how to retrieve an owner password stored in Azure Key Vault and use Aspose.Pdf.Facades to d... | +| [decrypt-pdf-with-owner-password](./decrypt-pdf-with-owner-password.cs) | Decrypt pdf with owner password | | Decrypt pdf with owner password | | [disable-copying-enable-printing-pdf](./disable-copying-enable-printing-pdf.cs) | Disable Copying While Enabling Printing for PDF | `PdfFileSecurity`, `SetPrivilege`, `DocumentPrivilege` | Demonstrates using Aspose.Pdf.Facades.PdfFileSecurity to set document privileges so that copying ... | | [encrypt-decrypt-pdf-roundtrip](./encrypt-decrypt-pdf-roundtrip.cs) | Encrypt and Decrypt PDF with Round‑Trip Verification | `PdfFileSecurity`, `BindPdf`, `EncryptFile` | Demonstrates how to encrypt a PDF using a user and owner password, decrypt it back, and verify in... | +| [encrypt-decrypt-pdf-verify-integrity](./encrypt-decrypt-pdf-verify-integrity.cs) | Encrypt decrypt pdf verify integrity | | Encrypt decrypt pdf verify integrity | | [encrypt-pdf-256-aes](./encrypt-pdf-256-aes.cs) | Encrypt PDF with 256‑bit AES using Aspose.Pdf | `PdfFileSecurity`, `EncryptFile`, `DocumentPrivilege` | Shows how to encrypt a PDF with 256‑bit AES, set user and owner passwords, and apply a print priv... | | [encrypt-pdf-aes256-custom-privileges](./encrypt-pdf-aes256-custom-privileges.cs) | Encrypt PDF with AES‑256 and Custom Privileges | `PdfFileSecurity`, `EncryptFile`, `DocumentPrivilege` | Demonstrates encrypting a PDF using AES‑256 while applying custom document privileges such as all... | +| [encrypt-pdf-aes256-to-cloud](./encrypt-pdf-aes256-to-cloud.cs) | Encrypt pdf aes256 to cloud | | Encrypt pdf aes256 to cloud | | [encrypt-pdf-aes256-upload](./encrypt-pdf-aes256-upload.cs) | Encrypt PDF with AES‑256 and Upload to Cloud Storage | `PdfFileSecurity`, `BindPdf`, `EncryptFile` | Shows how to encrypt a PDF using Aspose.Pdf.Facades with AES‑256 and then upload the encrypted st... | +| [encrypt-pdf-byte-array](./encrypt-pdf-byte-array.cs) | Encrypt pdf byte array | | Encrypt pdf byte array | | [encrypt-pdf-from-byte-array](./encrypt-pdf-from-byte-array.cs) | Encrypt PDF from Byte Array using Aspose.Pdf | `Document`, `PdfFileSecurity`, `DocumentPrivilege` | Shows how to load a PDF from a byte array, apply 256‑bit AES encryption with user and owner passw... | +| [encrypt-pdf-rc4-128-allow-print-edit](./encrypt-pdf-rc4-128-allow-print-edit.cs) | Encrypt pdf rc4 128 allow print edit | | Encrypt pdf rc4 128 allow print edit | | [encrypt-pdf-rc4-128-print-edit-privileges](./encrypt-pdf-rc4-128-print-edit-privileges.cs) | Encrypt PDF with RC4‑128 and Enable Print/Edit Privileges | `Document`, `DocumentPrivilege`, `PdfFileSecurity` | Demonstrates how to combine print and edit privileges, then encrypt a PDF using RC4‑128 with Aspo... | -| [encrypt-pdf-rc4-40](./encrypt-pdf-rc4-40.cs) | Encrypt PDF with RC4‑40 and Password | `PdfFileSecurity`, `EncryptFile`, `DocumentPrivilege` | Shows how to encrypt an existing PDF using the RC4‑40 algorithm with user and owner passwords and... | -| [encrypt-pdf-stream-rc4-40](./encrypt-pdf-stream-rc4-40.cs) | Encrypt PDF Stream with RC4‑40 using Aspose.Pdf | `PdfFileSecurity`, `BindPdf`, `EncryptFile` | Shows how to encrypt a PDF supplied as a stream with 40‑bit RC4 encryption using Aspose.Pdf's Pdf... | -| [encrypt-pdf-to-memory-stream](./encrypt-pdf-to-memory-stream.cs) | Encrypt PDF and Save to MemoryStream | `Document`, `Encrypt`, `Permissions` | Demonstrates loading a PDF with Aspose.Pdf, applying AES‑256 encryption with user/owner passwords... | -| [encrypt-pdf-with-password-and-capture-exceptions](./encrypt-pdf-with-password-and-capture-exceptions.cs) | Encrypt PDF with Password and Capture Exceptions | `PdfFileSecurity`, `AllowExceptions`, `BindPdf` | Demonstrates encrypting a PDF using PdfFileSecurity, enabling AllowExceptions to suppress throws,... | -| [encrypt-pdf-with-user-password](./encrypt-pdf-with-user-password.cs) | Encrypt PDF with User Password Only | `PdfFileSecurity`, `EncryptFile`, `DocumentPrivilege` | Shows how to encrypt a PDF using Aspose.Pdf.Facades by providing only a user password (owner pass... | -| [encrypt-pdfs-with-performance-timing](./encrypt-pdfs-with-performance-timing.cs) | Encrypt PDFs with Performance Timing | `PdfFileSecurity`, `BindPdf`, `EncryptFile` | Shows how to encrypt PDF files using Aspose.Pdf's PdfFileSecurity facade while measuring the time... | -| [load-pdf-verify-page-count-facade](./load-pdf-verify-page-count-facade.cs) | Load PDF and Verify Page Count Using PdfFileInfo Facade | `PdfFileInfo`, `Document`, `Pages` | Demonstrates loading a PDF file via the PdfFileInfo facade class and confirming successful loadin... | -| [pdf-decryption-failure-wrong-owner-password-test](./pdf-decryption-failure-wrong-owner-password-test.cs) | Unit Test for PDF Decryption Failure with Incorrect Owner Pa... | `Document`, `Page`, `TextFragment` | Demonstrates encrypting a PDF with Aspose.Pdf and writing an NUnit test that asserts DecryptFile ... | -| [pdf-encryption-summary](./pdf-encryption-summary.cs) | Generate PDF Encryption Summary with Privileges | `PdfFileInfo`, `IsEncrypted`, `GetDocumentPrivilege` | Demonstrates how to inspect PDF files for encryption status, algorithm (when detectable), and doc... | -| [remove-extended-usage-rights-from-signed-pdf](./remove-extended-usage-rights-from-signed-pdf.cs) | Remove Extended Usage Rights from Signed PDF | `PdfFileSignature`, `BindPdf`, `ContainsUsageRights` | Shows how to load a signed PDF, detect extended usage rights, remove them with PdfFileSignature, ... | -| ... | | | *and 9 more files* | +| ... | | | *and 29 more files* | ## Category Statistics -- Total examples: 39 +- Total examples: 59 ## General Tips - See parent [AGENTS.md](../AGENTS.md) for: @@ -93,5 +93,5 @@ tool.Save("output.pdf"); - Review code examples in this folder for facades-secure-documents patterns -Updated: 2026-08-20 | Run: `20260820_001147_12d7b3` +Updated: 2026-09-10 | Run: `20260910_054408_87a7f4` diff --git a/facades-secure-documents/README.md b/facades-secure-documents/README.md new file mode 100644 index 000000000..0faff68c1 --- /dev/null +++ b/facades-secure-documents/README.md @@ -0,0 +1,78 @@ +# Facades secure documents + +> **Facades secure documents** in PDF using C# / .NET -- **59** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. + +- Category: `facades-secure-documents` +- Examples: 59 +- NuGet: `Aspose.PDF 26.8.0` -- target `net10.0` + +## Examples + +- [`add-text-annotation-to-encrypted-pdf.cs`](./add-text-annotation-to-encrypted-pdf.cs) -- Add text annotation to encrypted pdf +- [`apply-password-protection-to-pdf.cs`](./apply-password-protection-to-pdf.cs) -- Apply password protection to pdf +- [`batch-decrypt-pdfs-from-config.cs`](./batch-decrypt-pdfs-from-config.cs) -- Batch decrypt pdfs from config +- [`batch-decrypt-pdfs-owner-passwords.cs`](./batch-decrypt-pdfs-owner-passwords.cs) -- Batch decrypt pdfs owner passwords +- [`batch-encrypt-pdf-files.cs`](./batch-encrypt-pdf-files.cs) -- Batch encrypt pdf files +- [`batch-encrypt-pdfs.cs`](./batch-encrypt-pdfs.cs) -- Batch encrypt pdfs +- [`batch-update-pdf-user-passwords.cs`](./batch-update-pdf-user-passwords.cs) -- Batch update pdf user passwords +- [`change-pdf-owner-password-preserve-user.cs`](./change-pdf-owner-password-preserve-user.cs) -- Change pdf owner password preserve user +- [`change-pdf-passwords-from-csv.cs`](./change-pdf-passwords-from-csv.cs) -- Change pdf passwords from csv +- [`change-user-and-owner-passwords.cs`](./change-user-and-owner-passwords.cs) -- Change user and owner passwords +- [`change-user-password-of-encrypted-pdf.cs`](./change-user-password-of-encrypted-pdf.cs) -- Change user password of encrypted pdf +- [`check-pdf-encryption-and-encrypt-decrypt.cs`](./check-pdf-encryption-and-encrypt-decrypt.cs) -- Check pdf encryption and encrypt decrypt +- [`check-pdf-encryption-and-toggle-protection.cs`](./check-pdf-encryption-and-toggle-protection.cs) -- Check pdf encryption and toggle protection +- [`check-pdf-extended-usage-rights.cs`](./check-pdf-extended-usage-rights.cs) -- Check pdf extended usage rights +- [`conditional-decrypt-modify-pdf.cs`](./conditional-decrypt-modify-pdf.cs) -- Conditional decrypt modify pdf +- [`conditional-pdf-encryption-based-on-filename.cs`](./conditional-pdf-encryption-based-on-filename.cs) -- Conditional pdf encryption based on filename +- [`decrypt-pdf-owner-password.cs`](./decrypt-pdf-owner-password.cs) -- Decrypt pdf owner password +- [`decrypt-pdf-using-owner-password-azure-key-vault.cs`](./decrypt-pdf-using-owner-password-azure-key-vault.cs) -- Decrypt pdf using owner password azure key vault +- [`decrypt-pdf-with-owner-password.cs`](./decrypt-pdf-with-owner-password.cs) -- Decrypt pdf with owner password +- [`disable-copying-enable-printing-pdf.cs`](./disable-copying-enable-printing-pdf.cs) -- Disable copying enable printing pdf +- [`encrypt-decrypt-pdf-roundtrip.cs`](./encrypt-decrypt-pdf-roundtrip.cs) -- Encrypt decrypt pdf roundtrip +- [`encrypt-decrypt-pdf-verify-integrity.cs`](./encrypt-decrypt-pdf-verify-integrity.cs) -- Encrypt decrypt pdf verify integrity +- [`encrypt-pdf-256-aes.cs`](./encrypt-pdf-256-aes.cs) -- Encrypt pdf 256 aes +- [`encrypt-pdf-aes256-custom-privileges.cs`](./encrypt-pdf-aes256-custom-privileges.cs) -- Encrypt pdf aes256 custom privileges +- [`encrypt-pdf-aes256-to-cloud.cs`](./encrypt-pdf-aes256-to-cloud.cs) -- Encrypt pdf aes256 to cloud +- [`encrypt-pdf-aes256-upload.cs`](./encrypt-pdf-aes256-upload.cs) -- Encrypt pdf aes256 upload +- [`encrypt-pdf-byte-array.cs`](./encrypt-pdf-byte-array.cs) -- Encrypt pdf byte array +- [`encrypt-pdf-from-byte-array.cs`](./encrypt-pdf-from-byte-array.cs) -- Encrypt pdf from byte array +- [`encrypt-pdf-rc4-128-allow-print-edit.cs`](./encrypt-pdf-rc4-128-allow-print-edit.cs) -- Encrypt pdf rc4 128 allow print edit +- [`encrypt-pdf-rc4-128-print-edit-privileges.cs`](./encrypt-pdf-rc4-128-print-edit-privileges.cs) -- Encrypt pdf rc4 128 print edit privileges +- [`encrypt-pdf-rc4-40.cs`](./encrypt-pdf-rc4-40.cs) -- Encrypt pdf rc4 40 +- [`encrypt-pdf-stream-rc4-40.cs`](./encrypt-pdf-stream-rc4-40.cs) -- Encrypt pdf stream rc4 40 +- [`encrypt-pdf-to-memory-stream.cs`](./encrypt-pdf-to-memory-stream.cs) -- Encrypt pdf to memory stream +- [`encrypt-pdf-with-exception-handling.cs`](./encrypt-pdf-with-exception-handling.cs) -- Encrypt pdf with exception handling +- [`encrypt-pdf-with-password-and-capture-exceptions.cs`](./encrypt-pdf-with-password-and-capture-exceptions.cs) -- Encrypt pdf with password and capture exceptions +- [`encrypt-pdf-with-user-password-only.cs`](./encrypt-pdf-with-user-password-only.cs) -- Encrypt pdf with user password only +- [`encrypt-pdf-with-user-password.cs`](./encrypt-pdf-with-user-password.cs) -- Encrypt pdf with user password +- [`encrypt-pdfs-by-filename-algorithm.cs`](./encrypt-pdfs-by-filename-algorithm.cs) -- Encrypt pdfs by filename algorithm +- [`encrypt-pdfs-with-performance-timing.cs`](./encrypt-pdfs-with-performance-timing.cs) -- Encrypt pdfs with performance timing +- [`generate-encryption-usage-report.cs`](./generate-encryption-usage-report.cs) -- Generate encryption usage report +- [`generate-pdf-encryption-summary.cs`](./generate-pdf-encryption-summary.cs) -- Generate pdf encryption summary +- [`load-pdf-verify-page-count-facade.cs`](./load-pdf-verify-page-count-facade.cs) -- Load pdf verify page count facade +- [`load-pdf-verify-page-count.cs`](./load-pdf-verify-page-count.cs) -- Load pdf verify page count +- [`modify-pdf-privileges.cs`](./modify-pdf-privileges.cs) -- Modify pdf privileges +- [`pdf-decryption-failure-wrong-owner-password-test.cs`](./pdf-decryption-failure-wrong-owner-password-test.cs) -- Pdf decryption failure wrong owner password test +- [`pdf-encryption-summary.cs`](./pdf-encryption-summary.cs) -- Pdf encryption summary +- [`remove-extended-usage-rights-from-signed-pdf.cs`](./remove-extended-usage-rights-from-signed-pdf.cs) -- Remove extended usage rights from signed pdf +- [`remove-usage-rights-from-signed-pdf.cs`](./remove-usage-rights-from-signed-pdf.cs) -- Remove usage rights from signed pdf +- [`remove-usage-rights-verify.cs`](./remove-usage-rights-verify.cs) -- Remove usage rights verify +- [`report-pdf-encryption-algorithms.cs`](./report-pdf-encryption-algorithms.cs) -- Report pdf encryption algorithms +- [`retrieve-pdf-encryption-algorithm.cs`](./retrieve-pdf-encryption-algorithm.cs) -- Retrieve pdf encryption algorithm +- [`set-pdf-privilege-allow-exceptions-false.cs`](./set-pdf-privilege-allow-exceptions-false.cs) -- Set pdf privilege allow exceptions false +- [`set-pdf-privileges-allow-form-filling-disable-assembly.cs`](./set-pdf-privileges-allow-form-filling-disable-assembly.cs) -- Set pdf privileges allow form filling disable assembly +- [`set-pdf-privileges-allow-printing-only.cs`](./set-pdf-privileges-allow-printing-only.cs) -- Set pdf privileges allow printing only +- [`update-owner-password-pdf.cs`](./update-owner-password-pdf.cs) -- Update owner password pdf +- [`update-pdf-owner-password.cs`](./update-pdf-owner-password.cs) -- Update pdf owner password +- [`validate-pdf-encryption-and-decrypt.cs`](./validate-pdf-encryption-and-decrypt.cs) -- Validate pdf encryption and decrypt +- [`validate-pdf-encryption-before-decryption.cs`](./validate-pdf-encryption-before-decryption.cs) -- Validate pdf encryption before decryption +- [`verify-decryption-fails-incorrect-owner-password.cs`](./verify-decryption-fails-incorrect-owner-password.cs) -- Verify decryption fails incorrect owner password + +## See Also + +- [`AGENTS.md`](./AGENTS.md) -- category-specific anti-patterns, API surface, and conventions for AI coding agents +- [`../AGENTS.md`](../AGENTS.md) -- repository-wide agent guide +- [`../README.md`](../README.md) -- full category index and project overview +- [Aspose.PDF for .NET docs](https://docs.aspose.com/pdf/net/) + +> Each `.cs` file is a standalone, build-validated console example. Drop into a fresh `dotnet new console` project, add the `Aspose.PDF` NuGet (version above), and run. diff --git a/facades-secure-documents/index.json b/facades-secure-documents/index.json index b0637e378..d5c7200db 100644 --- a/facades-secure-documents/index.json +++ b/facades-secure-documents/index.json @@ -1,167 +1,139 @@ { "category": "facades-secure-documents", "nuget_version": "26.8.0", - "last_updated": "2026-08-20T08:00:40Z", + "last_updated": "2026-09-10T12:45:08Z", "examples": { - "load-pdf-verify-page-count-facade": { - "title": "Load PDF and Verify Page Count Using PdfFileInfo Facade", - "filename": "load-pdf-verify-page-count-facade.cs", - "description": "Demonstrates loading a PDF file via the PdfFileInfo facade class and confirming successful loading by checking the document's page count.", + "add-text-annotation-to-encrypted-pdf": { + "title": "Add Text Annotation To Encrypted Pdf", + "filename": "add-text-annotation-to-encrypted-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "apply-password-protection-to-pdf": { + "title": "Apply Password Protection to PDF without Loading Document", + "filename": "apply-password-protection-to-pdf.cs", + "description": "Shows how to encrypt an existing PDF file with user and owner passwords using the PdfFileSecurity facade, avoiding the creation of a Document object.", "tags": [ "pdf", - "load", - "facade", - "verification", - "pages" + "encryption", + "password-protection", + "Aspose.Pdf", + "C#" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.PageCollection.Count" + "Aspose.Pdf.Facades.PdfFileSecurity", + "Aspose.Pdf.Facades.PdfFileSecurity.EncryptFile", + "Aspose.Pdf.DocumentPrivilege", + "Aspose.Pdf.KeySize" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:00:40Z", "status": "verified" }, - "check-pdf-encryption-and-toggle-protection": { - "title": "Check PDF Encryption and Apply or Remove Protection", - "filename": "check-pdf-encryption-and-toggle-protection.cs", - "description": "The example shows how to inspect a PDF's IsEncrypted flag using PdfFileInfo, then either encrypt the document with specific permissions or decrypt it by opening with the owner password and saving without encryption.", - "tags": [ - "encryption", - "decryption", - "pdf", - "permissions", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.PdfFileInfo", - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:00:40Z", + "batch-decrypt-pdfs-from-config": { + "title": "Batch Decrypt Pdfs From Config", + "filename": "batch-decrypt-pdfs-from-config.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "decrypt-pdf-owner-password": { - "title": "Decrypt PDF Using Owner Password", - "filename": "decrypt-pdf-owner-password.cs", - "description": "Demonstrates how to remove encryption from a PDF file by providing the owner password using Aspose.Pdf's PdfFileSecurity facade.", + "batch-decrypt-pdfs-owner-passwords": { + "title": "Batch Decrypt PDFs Using Owner Passwords", + "filename": "batch-decrypt-pdfs-owner-passwords.cs", + "description": "Shows how to read a simple configuration file containing PDF paths and owner passwords, then decrypt each PDF in a batch using Aspose.Pdf.Facades.PdfFileSecurity.", "tags": [ "pdf", "decryption", + "batch", "owner-password", - "aspose", - "facade" + "configuration" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileSecurity", - "Aspose.Pdf.Facades.PdfFileSecurity.DecryptFile" + "PdfFileSecurity", + "PdfFileSecurity.DecryptFile", + "PdfFileSecurity (constructor)" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:00:40Z", "status": "verified" }, - "encrypt-pdf-256-aes": { - "title": "Encrypt PDF with 256‑bit AES using Aspose.Pdf", - "filename": "encrypt-pdf-256-aes.cs", - "description": "Shows how to encrypt a PDF with 256‑bit AES, set user and owner passwords, and apply a print privilege using Aspose.Pdf.Facades.", + "batch-encrypt-pdf-files": { + "title": "Batch Encrypt PDF Files with User and Owner Passwords", + "filename": "batch-encrypt-pdf-files.cs", + "description": "Shows how to encrypt every PDF in a directory using Aspose.Pdf.Facades.PdfFileSecurity with a common user and owner password, creating encrypted copies.", "tags": [ "pdf encryption", - "aes-256", - "aspose.pdf", - "pdf security", - "c#" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfFileSecurity", - "Aspose.Pdf.Facades.PdfFileSecurity.EncryptFile", - "Aspose.Pdf.DocumentPrivilege", - "Aspose.Pdf.Facades.KeySize" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T08:00:40Z", - "status": "verified" - }, - "encrypt-pdf-rc4-40": { - "title": "Encrypt PDF with RC4‑40 and Password", - "filename": "encrypt-pdf-rc4-40.cs", - "description": "Shows how to encrypt an existing PDF using the RC4‑40 algorithm with user and owner passwords and set printing privileges via Aspose.Pdf.Facades.", - "tags": [ - "pdf", - "encryption", - "rc4", - "aspose-pdf", - "csharp" + "batch processing", + "user password", + "owner password", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSecurity", "Aspose.Pdf.Facades.PdfFileSecurity.EncryptFile", "Aspose.Pdf.DocumentPrivilege", - "Aspose.Pdf.Facades.KeySize", - "Aspose.Pdf.Facades.Algorithm" + "Aspose.Pdf.KeySize" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:00:40Z", "status": "verified" }, - "encrypt-pdf-aes256-custom-privileges": { - "title": "Encrypt PDF with AES‑256 and Custom Privileges", - "filename": "encrypt-pdf-aes256-custom-privileges.cs", - "description": "Demonstrates encrypting a PDF using AES‑256 while applying custom document privileges such as allowing printing and copying but forbidding modifications.", - "tags": [ - "pdf-encryption", - "aes-256", - "custom-privileges", - "aspose-pdf", - "facade" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfFileSecurity", - "Aspose.Pdf.Facades.PdfFileSecurity.EncryptFile", - "Aspose.Pdf.DocumentPrivilege", - "Aspose.Pdf.KeySize", - "Aspose.Pdf.Algorithm" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:00:40Z", + "batch-encrypt-pdfs": { + "title": "Batch Encrypt Pdfs", + "filename": "batch-encrypt-pdfs.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "change-user-password-of-encrypted-pdf": { - "title": "Change User Password of Encrypted PDF", - "filename": "change-user-password-of-encrypted-pdf.cs", - "description": "Demonstrates how to update the user password of an already encrypted PDF while keeping the existing encryption settings using Aspose.Pdf.Facades.", + "batch-update-pdf-user-passwords": { + "title": "Batch Update PDF User Passwords", + "filename": "batch-update-pdf-user-passwords.cs", + "description": "Shows how to iterate through a folder of PDF files and change each file's user password to a standardized value using Aspose.Pdf.Facades.", "tags": [ "pdf", - "encryption", "password", - "Aspose.Pdf", - "facade" + "batch", + "security", + "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSecurity", - "Aspose.Pdf.Facades.PdfFileSecurity.ChangePassword", - "Aspose.Pdf.Facades.PdfFileSecurity..ctor", - "Aspose.Pdf.Facades.PdfFileSecurity.Dispose" + "Aspose.Pdf.Facades.PdfFileSecurity.TryChangePassword" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:00:40Z", "status": "verified" }, - "update-owner-password-pdf": { - "title": "Update Owner Password of a Protected PDF", - "filename": "update-owner-password-pdf.cs", - "description": "Shows how to change the owner password of an encrypted PDF without altering the user password or existing privileges using Aspose.Pdf.Facades.", + "change-pdf-owner-password-preserve-user": { + "title": "Change Pdf Owner Password Preserve User", + "filename": "change-pdf-owner-password-preserve-user.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "change-pdf-passwords-from-csv": { + "title": "Change User and Owner Passwords for PDFs from CSV", + "filename": "change-pdf-passwords-from-csv.cs", + "description": "Shows how to read PDF file paths and passwords from a CSV file and use Aspose.Pdf.Facades.PdfFileSecurity to change both user and owner passwords, saving the protected PDFs.", "tags": [ "pdf", - "owner-password", - "encryption", - "aspose", - "facade" + "password", + "csv", + "security", + "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSecurity", @@ -169,7 +141,7 @@ "Aspose.Pdf.Facades.PdfFileSecurity.ChangePassword", "Aspose.Pdf.Facades.PdfFileSecurity.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:00:40Z", "status": "verified" }, @@ -192,89 +164,57 @@ "generated_at": "2026-08-20T08:00:40Z", "status": "verified" }, - "set-pdf-privileges-allow-printing-only": { - "title": "Set PDF Privileges to Allow Printing Only", - "filename": "set-pdf-privileges-allow-printing-only.cs", - "description": "Shows how to use Aspose.Pdf.Facades to enable printing while disabling copying for a PDF and then save the secured document.", - "tags": [ - "pdf", - "security", - "privileges", - "printing", - "Aspose.Pdf" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfFileSecurity", - "Aspose.Pdf.Facades.PdfFileSecurity.SetPrivilege", - "Aspose.Pdf.Facades.PdfFileSecurity.Save", - "Aspose.Pdf.Facades.DocumentPrivilege" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T08:00:40Z", - "status": "verified" - }, - "set-pdf-privileges-allow-form-filling-disable-assembly": { - "title": "Set PDF Privileges: Allow Form Filling, Disable Assembly", - "filename": "set-pdf-privileges-allow-form-filling-disable-assembly.cs", - "description": "Shows how to configure PDF security privileges to permit form filling while disabling document assembly using Aspose.Pdf.Facades.", + "change-user-password-of-encrypted-pdf": { + "title": "Change User Password of Encrypted PDF", + "filename": "change-user-password-of-encrypted-pdf.cs", + "description": "Demonstrates how to update the user password of an already encrypted PDF while keeping the existing encryption settings using Aspose.Pdf.Facades.", "tags": [ "pdf", - "security", - "privileges", - "form-filling", - "assembly" + "encryption", + "password", + "Aspose.Pdf", + "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.DocumentPrivilege", "Aspose.Pdf.Facades.PdfFileSecurity", - "Aspose.Pdf.Facades.PdfFileSecurity.SetPrivilege", - "Aspose.Pdf.Facades.DocumentPrivilege.AllowAll", - "Aspose.Pdf.Facades.DocumentPrivilege.AllowAssembly", - "Aspose.Pdf.Facades.DocumentPrivilege.AllowFillIn" + "Aspose.Pdf.Facades.PdfFileSecurity.ChangePassword", + "Aspose.Pdf.Facades.PdfFileSecurity..ctor", + "Aspose.Pdf.Facades.PdfFileSecurity.Dispose" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:00:40Z", "status": "verified" }, - "disable-copying-enable-printing-pdf": { - "title": "Disable Copying While Enabling Printing for PDF", - "filename": "disable-copying-enable-printing-pdf.cs", - "description": "Demonstrates using Aspose.Pdf.Facades.PdfFileSecurity to set document privileges so that copying is disabled and printing remains allowed.", - "tags": [ - "pdf", - "security", - "privileges", - "printing", - "copy-protection" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfFileSecurity", - "Aspose.Pdf.Facades.PdfFileSecurity.SetPrivilege", - "Aspose.Pdf.Facades.DocumentPrivilege" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T08:00:40Z", + "check-pdf-encryption-and-encrypt-decrypt": { + "title": "Check Pdf Encryption And Encrypt Decrypt", + "filename": "check-pdf-encryption-and-encrypt-decrypt.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "remove-extended-usage-rights-from-signed-pdf": { - "title": "Remove Extended Usage Rights from Signed PDF", - "filename": "remove-extended-usage-rights-from-signed-pdf.cs", - "description": "Shows how to load a signed PDF, detect extended usage rights, remove them with PdfFileSignature, and save the updated document.", + "check-pdf-encryption-and-toggle-protection": { + "title": "Check PDF Encryption and Apply or Remove Protection", + "filename": "check-pdf-encryption-and-toggle-protection.cs", + "description": "The example shows how to inspect a PDF's IsEncrypted flag using PdfFileInfo, then either encrypt the document with specific permissions or decrypt it by opening with the owner password and saving without encryption.", "tags": [ + "encryption", + "decryption", "pdf", - "usage-rights", - "signature", - "remove", + "permissions", "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileSignature", - "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", - "Aspose.Pdf.Facades.PdfFileSignature.ContainsUsageRights", - "Aspose.Pdf.Facades.PdfFileSignature.RemoveUsageRights", - "Aspose.Pdf.Facades.PdfFileSignature.Save" + "Aspose.Pdf.PdfFileInfo", + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Permissions", + "Aspose.Pdf.CryptoAlgorithm" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:00:40Z", "status": "verified" }, @@ -299,95 +239,241 @@ "generated_at": "2026-08-20T08:00:40Z", "status": "verified" }, - "remove-usage-rights-verify": { - "title": "Remove Usage Rights and Verify Removal from PDF", - "filename": "remove-usage-rights-verify.cs", - "description": "Demonstrates how to remove usage rights from a PDF using Aspose.Pdf and then confirm the removal by calling ContainsUsageRights. The resulting PDF is saved without any usage rights.", + "conditional-decrypt-modify-pdf": { + "title": "Conditional Decrypt and Modify PDF with Aspose.Pdf", + "filename": "conditional-decrypt-modify-pdf.cs", + "description": "The example loads a PDF, detects if it is encrypted, decrypts it using the owner password when needed, adds a text fragment to the first page, and saves the modified document.", "tags": [ - "usage rights", - "pdf security", - "remove", - "verification", - "aspose-pdf" + "pdf", + "decryption", + "modification", + "aspose-pdf", + "facade" ], "apis_used": [ - "PdfFileSignature", - "PdfFileSignature.BindPdf", - "PdfFileSignature.RemoveUsageRights", - "PdfFileSignature.ContainsUsageRights", - "PdfFileSignature.Save" + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfFileSecurity", + "Aspose.Pdf.Facades.PdfFileSecurity.DecryptFile", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.Position", + "Aspose.Pdf.Color", + "Aspose.Pdf.Page" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:00:40Z", "status": "verified" }, - "encrypt-pdf-with-password-and-capture-exceptions": { - "title": "Encrypt PDF with Password and Capture Exceptions", - "filename": "encrypt-pdf-with-password-and-capture-exceptions.cs", - "description": "Demonstrates encrypting a PDF using PdfFileSecurity, enabling AllowExceptions to suppress throws, and logging detailed exception information via LastException.", + "conditional-pdf-encryption-based-on-filename": { + "title": "Conditional PDF Encryption Based on File Name", + "filename": "conditional-pdf-encryption-based-on-filename.cs", + "description": "Demonstrates how to encrypt multiple PDF files using Aspose.Pdf, selecting the key size and encryption algorithm (AES or RC4) according to naming conventions, and saving the encrypted files.", "tags": [ - "pdf encryption", - "exception handling", - "Aspose.Pdf", - "password protection", - "facade" + "pdf-encryption", + "aspose-pdf", + "conditional-algorithm", + "batch-processing", + "document-privilege" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSecurity", - "PdfFileSecurity.AllowExceptions", - "PdfFileSecurity.BindPdf", - "PdfFileSecurity.EncryptFile", - "PdfFileSecurity.Save", - "PdfFileSecurity.LastException" + "Aspose.Pdf.Facades.PdfFileSecurity.BindPdf", + "Aspose.Pdf.Facades.PdfFileSecurity.EncryptFile", + "Aspose.Pdf.Facades.PdfFileSecurity.Save", + "Aspose.Pdf.DocumentPrivilege", + "Aspose.Pdf.KeySize", + "Aspose.Pdf.Algorithm" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:00:40Z", "status": "verified" }, - "set-pdf-privilege-allow-exceptions-false": { - "title": "Modify PDF Privilege with Exception Propagation", - "filename": "set-pdf-privilege-allow-exceptions-false.cs", - "description": "Shows how to change a PDF document's privilege using Aspose.Pdf.Facades.PdfFileSecurity while disabling internal exception handling so that runtime exceptions are thrown.", + "decrypt-pdf-owner-password": { + "title": "Decrypt PDF Using Owner Password", + "filename": "decrypt-pdf-owner-password.cs", + "description": "Demonstrates how to remove encryption from a PDF file by providing the owner password using Aspose.Pdf's PdfFileSecurity facade.", "tags": [ "pdf", - "privilege", - "exception", - "Aspose.Pdf", + "decryption", + "owner-password", + "aspose", "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSecurity", - "Aspose.Pdf.Facades.PdfFileSecurity.AllowExceptions", - "Aspose.Pdf.Facades.PdfFileSecurity.SetPrivilege", - "Aspose.Pdf.Facades.DocumentPrivilege", - "Aspose.Pdf.PdfException" + "Aspose.Pdf.Facades.PdfFileSecurity.DecryptFile" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:00:40Z", "status": "verified" }, - "encrypt-pdf-to-memory-stream": { - "title": "Encrypt PDF and Save to MemoryStream", - "filename": "encrypt-pdf-to-memory-stream.cs", - "description": "Demonstrates loading a PDF with Aspose.Pdf, applying AES‑256 encryption with user/owner passwords and specific permissions, and writing the encrypted document to a MemoryStream for network transmission.", + "decrypt-pdf-using-owner-password-azure-key-vault": { + "title": "Decrypt PDF Using Owner Password from Azure Key Vault", + "filename": "decrypt-pdf-using-owner-password-azure-key-vault.cs", + "description": "Shows how to retrieve an owner password stored in Azure Key Vault and use Aspose.Pdf.Facades to decrypt an encrypted PDF file.", + "tags": [ + "pdf", + "decryption", + "azure-key-vault", + "owner-password", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfFileSecurity", + "Aspose.Pdf.Facades.PdfFileSecurity.DecryptFile" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T08:00:40Z", + "status": "verified" + }, + "decrypt-pdf-with-owner-password": { + "title": "Decrypt Pdf With Owner Password", + "filename": "decrypt-pdf-with-owner-password.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "disable-copying-enable-printing-pdf": { + "title": "Disable Copying While Enabling Printing for PDF", + "filename": "disable-copying-enable-printing-pdf.cs", + "description": "Demonstrates using Aspose.Pdf.Facades.PdfFileSecurity to set document privileges so that copying is disabled and printing remains allowed.", "tags": [ "pdf", + "security", + "privileges", + "printing", + "copy-protection" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfFileSecurity", + "Aspose.Pdf.Facades.PdfFileSecurity.SetPrivilege", + "Aspose.Pdf.Facades.DocumentPrivilege" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:00:40Z", + "status": "verified" + }, + "encrypt-decrypt-pdf-roundtrip": { + "title": "Encrypt and Decrypt PDF with Round‑Trip Verification", + "filename": "encrypt-decrypt-pdf-roundtrip.cs", + "description": "Demonstrates how to encrypt a PDF using a user and owner password, decrypt it back, and verify integrity by comparing page counts.", + "tags": [ "encryption", - "memorystream", - "permissions", - "aspose-pdf" + "decryption", + "pdf", + "security", + "verification" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfFileSecurity", + "Aspose.Pdf.Facades.PdfFileSecurity.BindPdf", + "Aspose.Pdf.Facades.PdfFileSecurity.EncryptFile", + "Aspose.Pdf.Facades.PdfFileSecurity.DecryptFile", + "Aspose.Pdf.Document" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T08:00:40Z", + "status": "verified" + }, + "encrypt-decrypt-pdf-verify-integrity": { + "title": "Encrypt Decrypt Pdf Verify Integrity", + "filename": "encrypt-decrypt-pdf-verify-integrity.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "encrypt-pdf-256-aes": { + "title": "Encrypt PDF with 256‑bit AES using Aspose.Pdf", + "filename": "encrypt-pdf-256-aes.cs", + "description": "Shows how to encrypt a PDF with 256‑bit AES, set user and owner passwords, and apply a print privilege using Aspose.Pdf.Facades.", + "tags": [ + "pdf encryption", + "aes-256", + "aspose.pdf", + "pdf security", + "c#" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfFileSecurity", + "Aspose.Pdf.Facades.PdfFileSecurity.EncryptFile", + "Aspose.Pdf.DocumentPrivilege", + "Aspose.Pdf.Facades.KeySize" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:00:40Z", + "status": "verified" + }, + "encrypt-pdf-aes256-custom-privileges": { + "title": "Encrypt PDF with AES‑256 and Custom Privileges", + "filename": "encrypt-pdf-aes256-custom-privileges.cs", + "description": "Demonstrates encrypting a PDF using AES‑256 while applying custom document privileges such as allowing printing and copying but forbidding modifications.", + "tags": [ + "pdf-encryption", + "aes-256", + "custom-privileges", + "aspose-pdf", + "facade" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfFileSecurity", + "Aspose.Pdf.Facades.PdfFileSecurity.EncryptFile", + "Aspose.Pdf.DocumentPrivilege", + "Aspose.Pdf.KeySize", + "Aspose.Pdf.Algorithm" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:00:40Z", "status": "verified" }, + "encrypt-pdf-aes256-to-cloud": { + "title": "Encrypt Pdf Aes256 To Cloud", + "filename": "encrypt-pdf-aes256-to-cloud.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "encrypt-pdf-aes256-upload": { + "title": "Encrypt PDF with AES‑256 and Upload to Cloud Storage", + "filename": "encrypt-pdf-aes256-upload.cs", + "description": "Shows how to encrypt a PDF using Aspose.Pdf.Facades with AES‑256 and then upload the encrypted stream to a cloud storage bucket.", + "tags": [ + "pdf encryption", + "aes-256", + "cloud upload", + "aspose", + "c#" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfFileSecurity", + "PdfFileSecurity.BindPdf", + "PdfFileSecurity.EncryptFile", + "PdfFileSecurity.Save", + "Aspose.Pdf.DocumentPrivilege", + "Aspose.Pdf.KeySize", + "Aspose.Pdf.Algorithm" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T08:00:40Z", + "status": "verified" + }, + "encrypt-pdf-byte-array": { + "title": "Encrypt Pdf Byte Array", + "filename": "encrypt-pdf-byte-array.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "encrypt-pdf-from-byte-array": { "title": "Encrypt PDF from Byte Array using Aspose.Pdf", "filename": "encrypt-pdf-from-byte-array.cs", @@ -411,104 +497,160 @@ "generated_at": "2026-08-20T08:00:40Z", "status": "verified" }, - "encrypt-pdf-with-user-password": { - "title": "Encrypt PDF with User Password Only", - "filename": "encrypt-pdf-with-user-password.cs", - "description": "Shows how to encrypt a PDF using Aspose.Pdf.Facades by providing only a user password (owner password left undefined) and applying 256‑bit AES encryption with print permission.", + "encrypt-pdf-rc4-128-allow-print-edit": { + "title": "Encrypt Pdf Rc4 128 Allow Print Edit", + "filename": "encrypt-pdf-rc4-128-allow-print-edit.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "encrypt-pdf-rc4-128-print-edit-privileges": { + "title": "Encrypt PDF with RC4‑128 and Enable Print/Edit Privileges", + "filename": "encrypt-pdf-rc4-128-print-edit-privileges.cs", + "description": "Demonstrates how to combine print and edit privileges, then encrypt a PDF using RC4‑128 with Aspose.Pdf.Facades. The example also creates a placeholder PDF if the source file is missing.", "tags": [ - "pdf encryption", - "user password", - "Aspose.Pdf", - "AES-256", - "document privilege" + "pdf-encryption", + "rc4", + "privileges", + "aspose-pdf", + "csharp" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.DocumentPrivilege", "Aspose.Pdf.Facades.PdfFileSecurity", + "Aspose.Pdf.Facades.PdfFileSecurity.BindPdf", "Aspose.Pdf.Facades.PdfFileSecurity.EncryptFile", - "Aspose.Pdf.DocumentPrivilege", - "Aspose.Pdf.KeySize" + "Aspose.Pdf.Facades.PdfFileSecurity.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:00:40Z", "status": "verified" }, - "apply-password-protection-to-pdf": { - "title": "Apply Password Protection to PDF without Loading Document", - "filename": "apply-password-protection-to-pdf.cs", - "description": "Shows how to encrypt an existing PDF file with user and owner passwords using the PdfFileSecurity facade, avoiding the creation of a Document object.", + "encrypt-pdf-rc4-40": { + "title": "Encrypt PDF with RC4‑40 and Password", + "filename": "encrypt-pdf-rc4-40.cs", + "description": "Shows how to encrypt an existing PDF using the RC4‑40 algorithm with user and owner passwords and set printing privileges via Aspose.Pdf.Facades.", "tags": [ "pdf", "encryption", - "password-protection", - "Aspose.Pdf", - "C#" + "rc4", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSecurity", "Aspose.Pdf.Facades.PdfFileSecurity.EncryptFile", "Aspose.Pdf.DocumentPrivilege", - "Aspose.Pdf.KeySize" + "Aspose.Pdf.Facades.KeySize", + "Aspose.Pdf.Facades.Algorithm" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:00:40Z", "status": "verified" }, - "retrieve-pdf-encryption-algorithm": { - "title": "Retrieve PDF Encryption Algorithm with Aspose.Pdf Facades", - "filename": "retrieve-pdf-encryption-algorithm.cs", - "description": "Shows how to check if a PDF is encrypted and obtain the encryption algorithm using Aspose.Pdf's Facades API, creating a sample PDF if none exists.", + "encrypt-pdf-stream-rc4-40": { + "title": "Encrypt PDF Stream with RC4‑40 using Aspose.Pdf", + "filename": "encrypt-pdf-stream-rc4-40.cs", + "description": "Shows how to encrypt a PDF supplied as a stream with 40‑bit RC4 encryption using Aspose.Pdf's PdfFileSecurity facade and return the encrypted PDF in a MemoryStream.", "tags": [ - "encryption", - "pdf", - "facades", - "metadata", - "aspose-pdf" + "pdf encryption", + "rc4", + "stream", + "aspose", + "c#" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.IsEncrypted", - "Aspose.Pdf.Facades.PdfFileInfo.Document", - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.CryptoAlgorithm", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Text.TextFragment" + "Aspose.Pdf.Facades.PdfFileSecurity", + "Aspose.Pdf.Facades.PdfFileSecurity.BindPdf", + "Aspose.Pdf.Facades.PdfFileSecurity.EncryptFile", + "Aspose.Pdf.Facades.PdfFileSecurity.Save", + "Aspose.Pdf.DocumentPrivilege", + "Aspose.Pdf.KeySize", + "Aspose.Pdf.Algorithm" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:00:40Z", "status": "verified" }, - "validate-pdf-encryption-and-decrypt": { - "title": "Validate PDF Encryption and Decrypt with Aspose.Pdf", - "filename": "validate-pdf-encryption-and-decrypt.cs", - "description": "Shows how to check whether a PDF is encrypted using PdfFileInfo and, if it is, decrypt it with PdfFileSecurity while handling missing files and copying unencrypted PDFs.", + "encrypt-pdf-to-memory-stream": { + "title": "Encrypt PDF and Save to MemoryStream", + "filename": "encrypt-pdf-to-memory-stream.cs", + "description": "Demonstrates loading a PDF with Aspose.Pdf, applying AES‑256 encryption with user/owner passwords and specific permissions, and writing the encrypted document to a MemoryStream for network transmission.", "tags": [ "pdf", "encryption", - "decryption", - "validation", - "aspose" + "memorystream", + "permissions", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Permissions", + "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T08:00:40Z", + "status": "verified" + }, + "encrypt-pdf-with-exception-handling": { + "title": "Encrypt Pdf With Exception Handling", + "filename": "encrypt-pdf-with-exception-handling.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "encrypt-pdf-with-password-and-capture-exceptions": { + "title": "Encrypt PDF with Password and Capture Exceptions", + "filename": "encrypt-pdf-with-password-and-capture-exceptions.cs", + "description": "Demonstrates encrypting a PDF using PdfFileSecurity, enabling AllowExceptions to suppress throws, and logging detailed exception information via LastException.", + "tags": [ + "pdf encryption", + "exception handling", + "Aspose.Pdf", + "password protection", + "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileInfo", "Aspose.Pdf.Facades.PdfFileSecurity", - "Aspose.Pdf.Facades.PdfFileSecurity.TryDecryptFile", - "Aspose.Pdf.Facades.PdfFileSecurity.Save", - "Aspose.Pdf.Facades.PdfFileSecurity.Close" + "PdfFileSecurity.AllowExceptions", + "PdfFileSecurity.BindPdf", + "PdfFileSecurity.EncryptFile", + "PdfFileSecurity.Save", + "PdfFileSecurity.LastException" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:00:40Z", "status": "verified" }, - "batch-encrypt-pdf-files": { - "title": "Batch Encrypt PDF Files with User and Owner Passwords", - "filename": "batch-encrypt-pdf-files.cs", - "description": "Shows how to encrypt every PDF in a directory using Aspose.Pdf.Facades.PdfFileSecurity with a common user and owner password, creating encrypted copies.", + "encrypt-pdf-with-user-password-only": { + "title": "Encrypt Pdf With User Password Only", + "filename": "encrypt-pdf-with-user-password-only.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "encrypt-pdf-with-user-password": { + "title": "Encrypt PDF with User Password Only", + "filename": "encrypt-pdf-with-user-password.cs", + "description": "Shows how to encrypt a PDF using Aspose.Pdf.Facades by providing only a user password (owner password left undefined) and applying 256‑bit AES encryption with print permission.", "tags": [ "pdf encryption", - "batch processing", "user password", - "owner password", - "Aspose.Pdf" + "Aspose.Pdf", + "AES-256", + "document privilege" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSecurity", @@ -520,87 +662,198 @@ "generated_at": "2026-08-20T08:00:40Z", "status": "verified" }, - "batch-decrypt-pdfs-owner-passwords": { - "title": "Batch Decrypt PDFs Using Owner Passwords", - "filename": "batch-decrypt-pdfs-owner-passwords.cs", - "description": "Shows how to read a simple configuration file containing PDF paths and owner passwords, then decrypt each PDF in a batch using Aspose.Pdf.Facades.PdfFileSecurity.", + "encrypt-pdfs-by-filename-algorithm": { + "title": "Encrypt Pdfs By Filename Algorithm", + "filename": "encrypt-pdfs-by-filename-algorithm.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "encrypt-pdfs-with-performance-timing": { + "title": "Encrypt PDFs with Performance Timing", + "filename": "encrypt-pdfs-with-performance-timing.cs", + "description": "Shows how to encrypt PDF files using Aspose.Pdf's PdfFileSecurity facade while measuring the time taken for each encryption operation.", "tags": [ - "pdf", - "decryption", - "batch", - "owner-password", - "configuration" + "pdf-encryption", + "performance", + "aspose-pdf", + "facade", + "csharp" ], "apis_used": [ - "PdfFileSecurity", - "PdfFileSecurity.DecryptFile", - "PdfFileSecurity (constructor)" + "Aspose.Pdf.Facades.PdfFileSecurity", + "Aspose.Pdf.Facades.PdfFileSecurity.BindPdf", + "Aspose.Pdf.Facades.PdfFileSecurity.EncryptFile", + "Aspose.Pdf.Facades.PdfFileSecurity.Save", + "Aspose.Pdf.DocumentPrivilege", + "Aspose.Pdf.KeySize" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:00:40Z", "status": "verified" }, - "batch-update-pdf-user-passwords": { - "title": "Batch Update PDF User Passwords", - "filename": "batch-update-pdf-user-passwords.cs", - "description": "Shows how to iterate through a folder of PDF files and change each file's user password to a standardized value using Aspose.Pdf.Facades.", + "generate-encryption-usage-report": { + "title": "Generate Encryption Usage Report", + "filename": "generate-encryption-usage-report.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "generate-pdf-encryption-summary": { + "title": "Generate Pdf Encryption Summary", + "filename": "generate-pdf-encryption-summary.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "load-pdf-verify-page-count-facade": { + "title": "Load PDF and Verify Page Count Using PdfFileInfo Facade", + "filename": "load-pdf-verify-page-count-facade.cs", + "description": "Demonstrates loading a PDF file via the PdfFileInfo facade class and confirming successful loading by checking the document's page count.", "tags": [ "pdf", - "password", - "batch", - "security", - "aspose" + "load", + "facade", + "verification", + "pages" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileSecurity", - "Aspose.Pdf.Facades.PdfFileSecurity.TryChangePassword" + "Aspose.Pdf.Facades.PdfFileInfo", + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.PageCollection.Count" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:00:40Z", "status": "verified" }, - "update-pdf-owner-password": { - "title": "Update PDF Owner Password While Preserving User Password", - "filename": "update-pdf-owner-password.cs", - "description": "Demonstrates how to change the owner password of multiple PDF files using Aspose.Pdf.Facades without affecting the existing user passwords, and saves the secured PDFs to new locations.", + "load-pdf-verify-page-count": { + "title": "Load Pdf Verify Page Count", + "filename": "load-pdf-verify-page-count.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "modify-pdf-privileges": { + "title": "Modify Pdf Privileges", + "filename": "modify-pdf-privileges.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "pdf-decryption-failure-wrong-owner-password-test": { + "title": "Unit Test for PDF Decryption Failure with Incorrect Owner Password", + "filename": "pdf-decryption-failure-wrong-owner-password-test.cs", + "description": "Demonstrates encrypting a PDF with Aspose.Pdf and writing an NUnit test that asserts DecryptFile throws InvalidPasswordException when an incorrect owner password is supplied.", "tags": [ "pdf", - "owner-password", - "security", - "aspose", - "csharp" + "encryption", + "unit-test", + "nunit", + "aspose-pdf" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Facades.PdfFileSecurity", - "Aspose.Pdf.Facades.PdfFileSecurity.BindPdf", - "Aspose.Pdf.Facades.PdfFileSecurity.ChangePassword", - "Aspose.Pdf.Facades.PdfFileSecurity.Save" + "Aspose.Pdf.Facades.PdfFileSecurity.EncryptFile", + "Aspose.Pdf.Facades.PdfFileSecurity.DecryptFile", + "Aspose.Pdf.Facades.DocumentPrivilege", + "Aspose.Pdf.Facades.KeySize" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:00:40Z", "status": "verified" }, - "conditional-pdf-encryption-based-on-filename": { - "title": "Conditional PDF Encryption Based on File Name", - "filename": "conditional-pdf-encryption-based-on-filename.cs", - "description": "Demonstrates how to encrypt multiple PDF files using Aspose.Pdf, selecting the key size and encryption algorithm (AES or RC4) according to naming conventions, and saving the encrypted files.", + "pdf-encryption-summary": { + "title": "Generate PDF Encryption Summary with Privileges", + "filename": "pdf-encryption-summary.cs", + "description": "Demonstrates how to inspect PDF files for encryption status, algorithm (when detectable), and document privileges using Aspose.Pdf.Facades and Aspose.Pdf, then writes a summary report.", "tags": [ - "pdf-encryption", - "aspose-pdf", - "conditional-algorithm", - "batch-processing", - "document-privilege" + "pdf", + "encryption", + "privileges", + "summary", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfFileInfo", + "Aspose.Pdf.Facades.PdfFileInfo.IsEncrypted", + "Aspose.Pdf.Facades.PdfFileInfo.GetDocumentPrivilege", + "Aspose.Pdf.Document", + "Aspose.Pdf.InvalidPasswordException" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T08:00:40Z", + "status": "verified" + }, + "remove-extended-usage-rights-from-signed-pdf": { + "title": "Remove Extended Usage Rights from Signed PDF", + "filename": "remove-extended-usage-rights-from-signed-pdf.cs", + "description": "Shows how to load a signed PDF, detect extended usage rights, remove them with PdfFileSignature, and save the updated document.", + "tags": [ + "pdf", + "usage-rights", + "signature", + "remove", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfFileSignature", + "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", + "Aspose.Pdf.Facades.PdfFileSignature.ContainsUsageRights", + "Aspose.Pdf.Facades.PdfFileSignature.RemoveUsageRights", + "Aspose.Pdf.Facades.PdfFileSignature.Save" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:00:40Z", + "status": "verified" + }, + "remove-usage-rights-from-signed-pdf": { + "title": "Remove Usage Rights From Signed Pdf", + "filename": "remove-usage-rights-from-signed-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "remove-usage-rights-verify": { + "title": "Remove Usage Rights and Verify Removal from PDF", + "filename": "remove-usage-rights-verify.cs", + "description": "Demonstrates how to remove usage rights from a PDF using Aspose.Pdf and then confirm the removal by calling ContainsUsageRights. The resulting PDF is saved without any usage rights.", + "tags": [ + "usage rights", + "pdf security", + "remove", + "verification", + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileSecurity", - "Aspose.Pdf.Facades.PdfFileSecurity.BindPdf", - "Aspose.Pdf.Facades.PdfFileSecurity.EncryptFile", - "Aspose.Pdf.Facades.PdfFileSecurity.Save", - "Aspose.Pdf.DocumentPrivilege", - "Aspose.Pdf.KeySize", - "Aspose.Pdf.Algorithm" + "PdfFileSignature", + "PdfFileSignature.BindPdf", + "PdfFileSignature.RemoveUsageRights", + "PdfFileSignature.ContainsUsageRights", + "PdfFileSignature.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:00:40Z", "status": "verified" }, @@ -626,151 +879,127 @@ "generated_at": "2026-08-20T08:00:40Z", "status": "verified" }, - "encrypt-pdf-rc4-128-print-edit-privileges": { - "title": "Encrypt PDF with RC4‑128 and Enable Print/Edit Privileges", - "filename": "encrypt-pdf-rc4-128-print-edit-privileges.cs", - "description": "Demonstrates how to combine print and edit privileges, then encrypt a PDF using RC4‑128 with Aspose.Pdf.Facades. The example also creates a placeholder PDF if the source file is missing.", + "retrieve-pdf-encryption-algorithm": { + "title": "Retrieve PDF Encryption Algorithm with Aspose.Pdf Facades", + "filename": "retrieve-pdf-encryption-algorithm.cs", + "description": "Shows how to check if a PDF is encrypted and obtain the encryption algorithm using Aspose.Pdf's Facades API, creating a sample PDF if none exists.", "tags": [ - "pdf-encryption", - "rc4", - "privileges", - "aspose-pdf", - "csharp" + "encryption", + "pdf", + "facades", + "metadata", + "aspose-pdf" ], "apis_used": [ + "Aspose.Pdf.Facades.PdfFileInfo", + "Aspose.Pdf.Facades.PdfFileInfo.IsEncrypted", + "Aspose.Pdf.Facades.PdfFileInfo.Document", "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.DocumentPrivilege", - "Aspose.Pdf.Facades.PdfFileSecurity", - "Aspose.Pdf.Facades.PdfFileSecurity.BindPdf", - "Aspose.Pdf.Facades.PdfFileSecurity.EncryptFile", - "Aspose.Pdf.Facades.PdfFileSecurity.Save" + "Aspose.Pdf.Document.CryptoAlgorithm", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Text.TextFragment" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:00:40Z", "status": "verified" }, - "conditional-decrypt-modify-pdf": { - "title": "Conditional Decrypt and Modify PDF with Aspose.Pdf", - "filename": "conditional-decrypt-modify-pdf.cs", - "description": "The example loads a PDF, detects if it is encrypted, decrypts it using the owner password when needed, adds a text fragment to the first page, and saves the modified document.", + "set-pdf-privilege-allow-exceptions-false": { + "title": "Modify PDF Privilege with Exception Propagation", + "filename": "set-pdf-privilege-allow-exceptions-false.cs", + "description": "Shows how to change a PDF document's privilege using Aspose.Pdf.Facades.PdfFileSecurity while disabling internal exception handling so that runtime exceptions are thrown.", "tags": [ "pdf", - "decryption", - "modification", - "aspose-pdf", + "privilege", + "exception", + "Aspose.Pdf", "facade" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileSecurity", - "Aspose.Pdf.Facades.PdfFileSecurity.DecryptFile", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.Position", - "Aspose.Pdf.Color", - "Aspose.Pdf.Page" + "Aspose.Pdf.Facades.PdfFileSecurity.AllowExceptions", + "Aspose.Pdf.Facades.PdfFileSecurity.SetPrivilege", + "Aspose.Pdf.Facades.DocumentPrivilege", + "Aspose.Pdf.PdfException" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:00:40Z", "status": "verified" }, - "encrypt-decrypt-pdf-roundtrip": { - "title": "Encrypt and Decrypt PDF with Round‑Trip Verification", - "filename": "encrypt-decrypt-pdf-roundtrip.cs", - "description": "Demonstrates how to encrypt a PDF using a user and owner password, decrypt it back, and verify integrity by comparing page counts.", + "set-pdf-privileges-allow-form-filling-disable-assembly": { + "title": "Set PDF Privileges: Allow Form Filling, Disable Assembly", + "filename": "set-pdf-privileges-allow-form-filling-disable-assembly.cs", + "description": "Shows how to configure PDF security privileges to permit form filling while disabling document assembly using Aspose.Pdf.Facades.", "tags": [ - "encryption", - "decryption", "pdf", "security", - "verification" + "privileges", + "form-filling", + "assembly" ], "apis_used": [ + "Aspose.Pdf.Facades.DocumentPrivilege", "Aspose.Pdf.Facades.PdfFileSecurity", - "Aspose.Pdf.Facades.PdfFileSecurity.BindPdf", - "Aspose.Pdf.Facades.PdfFileSecurity.EncryptFile", - "Aspose.Pdf.Facades.PdfFileSecurity.DecryptFile", - "Aspose.Pdf.Document" + "Aspose.Pdf.Facades.PdfFileSecurity.SetPrivilege", + "Aspose.Pdf.Facades.DocumentPrivilege.AllowAll", + "Aspose.Pdf.Facades.DocumentPrivilege.AllowAssembly", + "Aspose.Pdf.Facades.DocumentPrivilege.AllowFillIn" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:00:40Z", "status": "verified" }, - "encrypt-pdfs-with-performance-timing": { - "title": "Encrypt PDFs with Performance Timing", - "filename": "encrypt-pdfs-with-performance-timing.cs", - "description": "Shows how to encrypt PDF files using Aspose.Pdf's PdfFileSecurity facade while measuring the time taken for each encryption operation.", + "set-pdf-privileges-allow-printing-only": { + "title": "Set PDF Privileges to Allow Printing Only", + "filename": "set-pdf-privileges-allow-printing-only.cs", + "description": "Shows how to use Aspose.Pdf.Facades to enable printing while disabling copying for a PDF and then save the secured document.", "tags": [ - "pdf-encryption", - "performance", - "aspose-pdf", - "facade", - "csharp" + "pdf", + "security", + "privileges", + "printing", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSecurity", - "Aspose.Pdf.Facades.PdfFileSecurity.BindPdf", - "Aspose.Pdf.Facades.PdfFileSecurity.EncryptFile", + "Aspose.Pdf.Facades.PdfFileSecurity.SetPrivilege", "Aspose.Pdf.Facades.PdfFileSecurity.Save", - "Aspose.Pdf.DocumentPrivilege", - "Aspose.Pdf.KeySize" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:00:40Z", - "status": "verified" - }, - "encrypt-pdf-aes256-upload": { - "title": "Encrypt PDF with AES‑256 and Upload to Cloud Storage", - "filename": "encrypt-pdf-aes256-upload.cs", - "description": "Shows how to encrypt a PDF using Aspose.Pdf.Facades with AES‑256 and then upload the encrypted stream to a cloud storage bucket.", - "tags": [ - "pdf encryption", - "aes-256", - "cloud upload", - "aspose", - "c#" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfFileSecurity", - "PdfFileSecurity.BindPdf", - "PdfFileSecurity.EncryptFile", - "PdfFileSecurity.Save", - "Aspose.Pdf.DocumentPrivilege", - "Aspose.Pdf.KeySize", - "Aspose.Pdf.Algorithm" + "Aspose.Pdf.Facades.DocumentPrivilege" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:00:40Z", "status": "verified" }, - "decrypt-pdf-using-owner-password-azure-key-vault": { - "title": "Decrypt PDF Using Owner Password from Azure Key Vault", - "filename": "decrypt-pdf-using-owner-password-azure-key-vault.cs", - "description": "Shows how to retrieve an owner password stored in Azure Key Vault and use Aspose.Pdf.Facades to decrypt an encrypted PDF file.", + "update-owner-password-pdf": { + "title": "Update Owner Password of a Protected PDF", + "filename": "update-owner-password-pdf.cs", + "description": "Shows how to change the owner password of an encrypted PDF without altering the user password or existing privileges using Aspose.Pdf.Facades.", "tags": [ "pdf", - "decryption", - "azure-key-vault", "owner-password", - "aspose" + "encryption", + "aspose", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSecurity", - "Aspose.Pdf.Facades.PdfFileSecurity.DecryptFile" + "Aspose.Pdf.Facades.PdfFileSecurity.BindPdf", + "Aspose.Pdf.Facades.PdfFileSecurity.ChangePassword", + "Aspose.Pdf.Facades.PdfFileSecurity.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:00:40Z", "status": "verified" }, - "change-pdf-passwords-from-csv": { - "title": "Change User and Owner Passwords for PDFs from CSV", - "filename": "change-pdf-passwords-from-csv.cs", - "description": "Shows how to read PDF file paths and passwords from a CSV file and use Aspose.Pdf.Facades.PdfFileSecurity to change both user and owner passwords, saving the protected PDFs.", + "update-pdf-owner-password": { + "title": "Update PDF Owner Password While Preserving User Password", + "filename": "update-pdf-owner-password.cs", + "description": "Demonstrates how to change the owner password of multiple PDF files using Aspose.Pdf.Facades without affecting the existing user passwords, and saves the secured PDFs to new locations.", "tags": [ "pdf", - "password", - "csv", + "owner-password", "security", - "aspose" + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSecurity", @@ -782,75 +1011,46 @@ "generated_at": "2026-08-20T08:00:40Z", "status": "verified" }, - "encrypt-pdf-stream-rc4-40": { - "title": "Encrypt PDF Stream with RC4‑40 using Aspose.Pdf", - "filename": "encrypt-pdf-stream-rc4-40.cs", - "description": "Shows how to encrypt a PDF supplied as a stream with 40‑bit RC4 encryption using Aspose.Pdf's PdfFileSecurity facade and return the encrypted PDF in a MemoryStream.", - "tags": [ - "pdf encryption", - "rc4", - "stream", - "aspose", - "c#" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfFileSecurity", - "Aspose.Pdf.Facades.PdfFileSecurity.BindPdf", - "Aspose.Pdf.Facades.PdfFileSecurity.EncryptFile", - "Aspose.Pdf.Facades.PdfFileSecurity.Save", - "Aspose.Pdf.DocumentPrivilege", - "Aspose.Pdf.KeySize", - "Aspose.Pdf.Algorithm" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T08:00:40Z", - "status": "verified" - }, - "pdf-encryption-summary": { - "title": "Generate PDF Encryption Summary with Privileges", - "filename": "pdf-encryption-summary.cs", - "description": "Demonstrates how to inspect PDF files for encryption status, algorithm (when detectable), and document privileges using Aspose.Pdf.Facades and Aspose.Pdf, then writes a summary report.", + "validate-pdf-encryption-and-decrypt": { + "title": "Validate PDF Encryption and Decrypt with Aspose.Pdf", + "filename": "validate-pdf-encryption-and-decrypt.cs", + "description": "Shows how to check whether a PDF is encrypted using PdfFileInfo and, if it is, decrypt it with PdfFileSecurity while handling missing files and copying unencrypted PDFs.", "tags": [ "pdf", "encryption", - "privileges", - "summary", + "decryption", + "validation", "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.IsEncrypted", - "Aspose.Pdf.Facades.PdfFileInfo.GetDocumentPrivilege", - "Aspose.Pdf.Document", - "Aspose.Pdf.InvalidPasswordException" + "Aspose.Pdf.Facades.PdfFileSecurity", + "Aspose.Pdf.Facades.PdfFileSecurity.TryDecryptFile", + "Aspose.Pdf.Facades.PdfFileSecurity.Save", + "Aspose.Pdf.Facades.PdfFileSecurity.Close" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:00:40Z", "status": "verified" }, - "pdf-decryption-failure-wrong-owner-password-test": { - "title": "Unit Test for PDF Decryption Failure with Incorrect Owner Password", - "filename": "pdf-decryption-failure-wrong-owner-password-test.cs", - "description": "Demonstrates encrypting a PDF with Aspose.Pdf and writing an NUnit test that asserts DecryptFile throws InvalidPasswordException when an incorrect owner password is supplied.", - "tags": [ - "pdf", - "encryption", - "unit-test", - "nunit", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Facades.PdfFileSecurity", - "Aspose.Pdf.Facades.PdfFileSecurity.EncryptFile", - "Aspose.Pdf.Facades.PdfFileSecurity.DecryptFile", - "Aspose.Pdf.Facades.DocumentPrivilege", - "Aspose.Pdf.Facades.KeySize" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:00:40Z", + "validate-pdf-encryption-before-decryption": { + "title": "Validate Pdf Encryption Before Decryption", + "filename": "validate-pdf-encryption-before-decryption.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "verify-decryption-fails-incorrect-owner-password": { + "title": "Verify Decryption Fails Incorrect Owner Password", + "filename": "verify-decryption-fails-incorrect-owner-password.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" } } diff --git a/facades-sign-documents/AGENTS.md b/facades-sign-documents/AGENTS.md index 07e7d78c8..dedd31060 100644 --- a/facades-sign-documents/AGENTS.md +++ b/facades-sign-documents/AGENTS.md @@ -8,7 +8,7 @@ parent: ../agents.md # AGENTS - facades-sign-documents -> **Facades sign documents** in PDF using C# / .NET -- **34** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. +> **Facades sign documents** in PDF using C# / .NET -- **61** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. ## Persona @@ -23,60 +23,60 @@ See the root [agents.md](../agents.md) for repository-wide conventions and bound ## Required Namespaces -- `using Aspose.Pdf.Facades;` (34/34 files) ← category-specific -- `using Aspose.Pdf;` (11/34 files) -- `using Aspose.Pdf.Forms;` (9/34 files) -- `using Aspose.Pdf.Text;` (1/34 files) -- `using System;` (34/34 files) -- `using System.IO;` (28/34 files) -- `using System.Drawing;` (10/34 files) -- `using System.Collections.Generic;` (5/34 files) -- `using System.Security.Cryptography.X509Certificates;` (4/34 files) -- `using System.Globalization;` (2/34 files) -- `using System.Security.Cryptography;` (2/34 files) -- `using System.Drawing.Imaging;` (1/34 files) -- `using System.Text;` (1/34 files) -- `using System.Text.Json;` (1/34 files) -- `using System.Threading;` (1/34 files) +- `using Aspose.Pdf.Facades;` (34/61 files) ← category-specific +- `using Aspose.Pdf;` (11/61 files) +- `using Aspose.Pdf.Forms;` (9/61 files) +- `using Aspose.Pdf.Text;` (1/61 files) +- `using System;` (34/61 files) +- `using System.IO;` (28/61 files) +- `using System.Drawing;` (10/61 files) +- `using System.Collections.Generic;` (5/61 files) +- `using System.Security.Cryptography.X509Certificates;` (4/61 files) +- `using System.Globalization;` (2/61 files) +- `using System.Security.Cryptography;` (2/61 files) +- `using System.Drawing.Imaging;` (1/61 files) +- `using System.Text;` (1/61 files) +- `using System.Text.Json;` (1/61 files) +- `using System.Threading;` (1/61 files) ## Files in this folder | File | Title | Key APIs | Description | |------|-------|----------|-------------| | [add-digital-signature-to-pdf-page](./add-digital-signature-to-pdf-page.cs) | Add Digital Signature to First PDF Page | `PdfFileSignature`, `BindPdf`, `SetCertificate` | Demonstrates how to bind a PDF, set a certificate, and apply a visible digital signature to page ... | +| [add-locale-specific-visible-signatures](./add-locale-specific-visible-signatures.cs) | Add locale specific visible signatures | | Add locale specific visible signatures | +| [add-multiple-digital-signatures-to-pdf](./add-multiple-digital-signatures-to-pdf.cs) | Add multiple digital signatures to pdf | | Add multiple digital signatures to pdf | | [add-second-digital-signature-to-pdf-page-3](./add-second-digital-signature-to-pdf-page-3.cs) | Add Second Digital Signature to PDF Page 3 | `PdfFileSignature`, `BindPdf`, `SetCertificate` | Demonstrates adding a second visible digital signature on page three of an existing PDF using Asp... | | [add-signature-field-and-sign-pdf](./add-signature-field-and-sign-pdf.cs) | Create Signature Field and Sign PDF Document | `Document`, `AddField`, `PdfFileSignature` | Demonstrates how to add an empty digital signature field to a specific page of a PDF using Aspose... | +| [apply-semi-transparent-signature-appearance](./apply-semi-transparent-signature-appearance.cs) | Apply semi transparent signature appearance | | Apply semi transparent signature appearance | +| [audit-pdf-signatures-reason-location](./audit-pdf-signatures-reason-location.cs) | Audit pdf signatures reason location | | Audit pdf signatures reason location | | [configure-custom-signature-appearance](./configure-custom-signature-appearance.cs) | Configure Custom Signature Appearance with Background Color ... | `PdfFileSignature`, `BindPdf`, `Sign` | Demonstrates how to set a custom signature appearance by adding a foreground image and a backgrou... | +| [create-and-sign-pdf-signature-field](./create-and-sign-pdf-signature-field.cs) | Create and sign pdf signature field | | Create and sign pdf signature field | +| [create-invisible-pdf-digital-signature](./create-invisible-pdf-digital-signature.cs) | Create invisible pdf digital signature | | Create invisible pdf digital signature | | [custom-pdf-signature-appearance](./custom-pdf-signature-appearance.cs) | Create Custom PDF Signature Appearance Without Caption | `PdfFileSignature`, `BindPdf`, `Sign` | Demonstrates signing a PDF with Aspose.Pdf using a PKCS#1 signature and a custom appearance that ... | +| [custom-signature-appearance-hide-caption](./custom-signature-appearance-hide-caption.cs) | Custom signature appearance hide caption | | Custom signature appearance hide caption | +| [digitally-sign-first-page-pdf](./digitally-sign-first-page-pdf.cs) | Digitally sign first page pdf | | Digitally sign first page pdf | +| [extract-certificate-details-from-pdf-signature](./extract-certificate-details-from-pdf-signature.cs) | Extract certificate details from pdf signature | | Extract certificate details from pdf signature | | [extract-certificate-details-from-pdf-signatures](./extract-certificate-details-from-pdf-signatures.cs) | Extract Certificate Details from PDF Signatures | `PdfFileSignature`, `BindPdf`, `GetSignatureNames` | Demonstrates how to load a signed PDF, enumerate its digital signatures, and retrieve the X.509 c... | | [extract-certificate-serial-number-from-pdf-signatu...](./extract-certificate-serial-number-from-pdf-signatures.cs) | Extract Certificate Serial Number from PDF Signatures | `PdfFileSignature`, `BindPdf`, `ContainsSignature` | Demonstrates how to open a signed PDF, enumerate its digital signatures, extract the associated X... | +| [extract-certificate-serial-number-from-pdf](./extract-certificate-serial-number-from-pdf.cs) | Extract certificate serial number from pdf | | Extract certificate serial number from pdf | +| [extract-signature-image-png](./extract-signature-image-png.cs) | Extract signature image png | | Extract signature image png | | [extract-signature-images-html-report](./extract-signature-images-html-report.cs) | Extract Signature Images to HTML Report | `PdfFileSignature`, `BindPdf`, `GetSignatureNames` | Demonstrates how to retrieve signature images from a signed PDF using Aspose.Pdf.Facades and embe... | | [extract-signing-certificate-from-pdf](./extract-signing-certificate-from-pdf.cs) | Extract Signing Certificate from PDF Signature Field | `PdfFileSignature`, `BindPdf`, `ExtractCertificate` | Shows how to bind a PDF, extract the X.509 signing certificate from a specific signature field, a... | +| [extract-the-signing-certificate-s-subject-distingu...](./extract-the-signing-certificate-s-subject-distinguished-name-and-store-it-in-a-database.cs) | Extract the signing certificate s subject distinguished name... | | Extract the signing certificate s subject distinguished name and store it in a database | | [extract-witness-signature-image](./extract-witness-signature-image.cs) | Extract Witness Signature Image from PDF | `PdfFileSignature`, `BindPdf`, `ExtractImage` | Demonstrates how to locate a signature field named 'WitnessSignature' in a PDF, extract its image... | | [generate-pdf-signature-report](./generate-pdf-signature-report.cs) | Generate PDF Signature Verification Report | `PdfFileSignature`, `BindPdf`, `GetSignatureNames` | Creates a PDF document that enumerates all digital signatures in a source PDF, displaying signer,... | | [hide-pdf-signature-appearance](./hide-pdf-signature-appearance.cs) | Hide PDF Signature Appearance While Keeping It Valid | `PdfFileSignature`, `BindPdf`, `SetCertificate` | Demonstrates signing a PDF with Aspose.Pdf and making the signature invisible by setting the visi... | +| [list-pdf-signature-names](./list-pdf-signature-names.cs) | List pdf signature names | | List pdf signature names | | [list-signature-names-in-pdf](./list-signature-names-in-pdf.cs) | List Signature Names in a PDF Document | `PdfFileSignature`, `BindPdf`, `GetSignatureNames` | Demonstrates how to use Aspose.Pdf.Facades to open a PDF file and retrieve all non‑empty signatur... | | [list-signature-reasons-and-locations](./list-signature-reasons-and-locations.cs) | List Signature Reasons and Locations in a PDF | `PdfFileSignature`, `BindPdf`, `GetSignatureNames` | Shows how to bind a PDF with Aspose.Pdf.Facades, enumerate its digital signatures, and retrieve e... | | [locale-specific-pdf-digital-signature](./locale-specific-pdf-digital-signature.cs) | Locale‑Specific PDF Digital Signature with Custom Appearance | `PdfFileSignature`, `PKCS7`, `SignatureCustomAppearance` | Demonstrates how to digitally sign a PDF using Aspose.Pdf with appearance text localized for Germ... | | [log-pdf-signature-verification-to-json](./log-pdf-signature-verification-to-json.cs) | Log PDF Signature Verification Results to JSON | `PdfFileSignature`, `BindPdf`, `GetSignatureNames` | Demonstrates how to verify each digital signature in a PDF using Aspose.Pdf.Facades and write the... | -| [remove-all-signatures-from-pdf](./remove-all-signatures-from-pdf.cs) | Remove All Signatures from PDF | `PdfFileSignature`, `BindPdf`, `RemoveSignatures` | Shows how to load a PDF, remove every digital signature using Aspose.Pdf.Facades, and save a clea... | -| [remove-all-signatures-from-pdfs](./remove-all-signatures-from-pdfs.cs) | Remove All Signatures from PDFs Recursively | `PdfFileSignature`, `BindPdf`, `RemoveSignatures` | Demonstrates how to traverse a directory tree, load each PDF with Aspose.Pdf.Facades, remove all ... | -| [remove-and-replace-pdf-signature](./remove-and-replace-pdf-signature.cs) | Remove Existing Signature and Apply New PDF Signature | `PdfFileSignature`, `BindPdf`, `RemoveSignatures` | Shows how to delete all existing signatures from a PDF and then sign the document with a new cert... | -| [remove-pdf-signature-missing-handling](./remove-pdf-signature-missing-handling.cs) | Remove PDF Signature with Missing Signature Handling | `PdfFileSignature`, `BindPdf`, `GetSignatureNames` | Demonstrates how to delete a specific digital signature from a PDF using Aspose.Pdf.Facades and g... | -| [remove-signature-from-pdf](./remove-signature-from-pdf.cs) | Remove Existing Signature from PDF | `PdfFileSignature`, `BindPdf`, `RemoveSignature` | Shows how to delete a digital signature named "ApprovalSignature" from a PDF file using Aspose.Pd... | -| [sign-and-verify-pdf-using-pdffilesignature](./sign-and-verify-pdf-using-pdffilesignature.cs) | Sign and Verify PDF Using PdfFileSignature | `PdfFileSignature`, `BindPdf`, `SetCertificate` | Demonstrates how to sign a PDF with a self‑signed certificate using Aspose.Pdf.Facades.PdfFileSig... | -| [sign-pdf-french-caption](./sign-pdf-french-caption.cs) | Sign PDF with French Caption Using SignatureCustomAppearance | `PdfFileSignature`, `PKCS1`, `SignatureCustomAppearance` | Demonstrates how to digitally sign a PDF with Aspose.Pdf and set the signature caption language t... | -| [sign-pdf-visible-signature-last-page](./sign-pdf-visible-signature-last-page.cs) | Sign PDF with Visible Signature on Last Page | `Document`, `Page`, `PdfFileSignature` | Shows how to apply a digital signature that is visible in the bottom‑right corner of the last pag... | -| [sign-pdf-with-pfx-certificate](./sign-pdf-with-pfx-certificate.cs) | Sign PDF with PFX Certificate using Aspose.Pdf | `PdfFileSignature`, `BindPdf`, `SetCertificate` | Demonstrates how to digitally sign a PDF file using a password‑protected PFX certificate with Asp... | -| [sign-pdf-with-reason-and-location](./sign-pdf-with-reason-and-location.cs) | Sign PDF with Reason and Location using Aspose.Pdf Facade | `PdfFileSignature`, `BindPdf`, `SetCertificate` | Demonstrates how to digitally sign a PDF, setting the signature reason to "Approved for release" ... | -| [sign-pdf-with-retry-on-file-lock](./sign-pdf-with-retry-on-file-lock.cs) | Sign PDF with Retry on File Lock | `PdfFileSignature`, `BindPdf`, `SetCertificate` | Demonstrates how to sign a PDF using Aspose.Pdf.Facades with a retry mechanism that handles file‑... | -| [sign-pdf-with-semi-transparent-appearance](./sign-pdf-with-semi-transparent-appearance.cs) | Sign PDF with Semi‑Transparent Background Appearance | `PdfFileSignature`, `Sign`, `Save` | Demonstrates how to digitally sign a PDF using a PKCS7 certificate and apply a custom signature a... | -| [sign-pdf-with-visible-image-signature](./sign-pdf-with-visible-image-signature.cs) | Sign PDF with Visible Image Signature | `PdfFileSignature`, `BindPdf`, `Sign` | Shows how to add a visible image signature to a PDF file using Aspose.Pdf.Facades.PdfFileSignatur... | -| [suppress-reason-location-when-signing-pdf](./suppress-reason-location-when-signing-pdf.cs) | Suppress Reason and Location When Signing a PDF | `PdfFileSignature`, `BindPdf`, `SetCertificate` | Demonstrates how to digitally sign a PDF with Aspose.Pdf while clearing the Reason, Location, and... | -| ... | | | *and 4 more files* | +| [remove-all-pdf-signatures](./remove-all-pdf-signatures.cs) | Remove all pdf signatures | | Remove all pdf signatures | +| ... | | | *and 31 more files* | ## Category Statistics -- Total examples: 34 +- Total examples: 61 ## Category-Specific Tips @@ -120,5 +120,5 @@ See the root [agents.md](../agents.md) for repository-wide conventions and bound - Review code examples in this folder for facades-sign-documents patterns -Updated: 2026-08-20 | Run: `20260820_001147_12d7b3` +Updated: 2026-09-10 | Run: `20260910_054408_87a7f4` diff --git a/facades-sign-documents/README.md b/facades-sign-documents/README.md new file mode 100644 index 000000000..a3847601d --- /dev/null +++ b/facades-sign-documents/README.md @@ -0,0 +1,80 @@ +# Facades sign documents + +> **Facades sign documents** in PDF using C# / .NET -- **61** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. + +- Category: `facades-sign-documents` +- Examples: 61 +- NuGet: `Aspose.PDF 26.8.0` -- target `net10.0` + +## Examples + +- [`add-digital-signature-to-pdf-page.cs`](./add-digital-signature-to-pdf-page.cs) -- Add digital signature to pdf page +- [`add-locale-specific-visible-signatures.cs`](./add-locale-specific-visible-signatures.cs) -- Add locale specific visible signatures +- [`add-multiple-digital-signatures-to-pdf.cs`](./add-multiple-digital-signatures-to-pdf.cs) -- Add multiple digital signatures to pdf +- [`add-second-digital-signature-to-pdf-page-3.cs`](./add-second-digital-signature-to-pdf-page-3.cs) -- Add second digital signature to pdf page 3 +- [`add-signature-field-and-sign-pdf.cs`](./add-signature-field-and-sign-pdf.cs) -- Add signature field and sign pdf +- [`apply-semi-transparent-signature-appearance.cs`](./apply-semi-transparent-signature-appearance.cs) -- Apply semi transparent signature appearance +- [`audit-pdf-signatures-reason-location.cs`](./audit-pdf-signatures-reason-location.cs) -- Audit pdf signatures reason location +- [`configure-custom-signature-appearance.cs`](./configure-custom-signature-appearance.cs) -- Configure custom signature appearance +- [`create-and-sign-pdf-signature-field.cs`](./create-and-sign-pdf-signature-field.cs) -- Create and sign pdf signature field +- [`create-invisible-pdf-digital-signature.cs`](./create-invisible-pdf-digital-signature.cs) -- Create invisible pdf digital signature +- [`custom-pdf-signature-appearance.cs`](./custom-pdf-signature-appearance.cs) -- Custom pdf signature appearance +- [`custom-signature-appearance-hide-caption.cs`](./custom-signature-appearance-hide-caption.cs) -- Custom signature appearance hide caption +- [`digitally-sign-first-page-pdf.cs`](./digitally-sign-first-page-pdf.cs) -- Digitally sign first page pdf +- [`extract-certificate-details-from-pdf-signature.cs`](./extract-certificate-details-from-pdf-signature.cs) -- Extract certificate details from pdf signature +- [`extract-certificate-details-from-pdf-signatures.cs`](./extract-certificate-details-from-pdf-signatures.cs) -- Extract certificate details from pdf signatures +- [`extract-certificate-serial-number-from-pdf-signatures.cs`](./extract-certificate-serial-number-from-pdf-signatures.cs) -- Extract certificate serial number from pdf signatures +- [`extract-certificate-serial-number-from-pdf.cs`](./extract-certificate-serial-number-from-pdf.cs) -- Extract certificate serial number from pdf +- [`extract-signature-image-png.cs`](./extract-signature-image-png.cs) -- Extract signature image png +- [`extract-signature-images-html-report.cs`](./extract-signature-images-html-report.cs) -- Extract signature images html report +- [`extract-signing-certificate-from-pdf.cs`](./extract-signing-certificate-from-pdf.cs) -- Extract signing certificate from pdf +- [`extract-the-signing-certificate-s-subject-distinguished-name-and-store-it-in-a-database.cs`](./extract-the-signing-certificate-s-subject-distinguished-name-and-store-it-in-a-database.cs) -- Extract the signing certificate s subject distinguished name and store it in a database +- [`extract-witness-signature-image.cs`](./extract-witness-signature-image.cs) -- Extract witness signature image +- [`generate-pdf-signature-report.cs`](./generate-pdf-signature-report.cs) -- Generate pdf signature report +- [`hide-pdf-signature-appearance.cs`](./hide-pdf-signature-appearance.cs) -- Hide pdf signature appearance +- [`list-pdf-signature-names.cs`](./list-pdf-signature-names.cs) -- List pdf signature names +- [`list-signature-names-in-pdf.cs`](./list-signature-names-in-pdf.cs) -- List signature names in pdf +- [`list-signature-reasons-and-locations.cs`](./list-signature-reasons-and-locations.cs) -- List signature reasons and locations +- [`locale-specific-pdf-digital-signature.cs`](./locale-specific-pdf-digital-signature.cs) -- Locale specific pdf digital signature +- [`log-pdf-signature-verification-to-json.cs`](./log-pdf-signature-verification-to-json.cs) -- Log pdf signature verification to json +- [`remove-all-pdf-signatures.cs`](./remove-all-pdf-signatures.cs) -- Remove all pdf signatures +- [`remove-all-signatures-from-pdf.cs`](./remove-all-signatures-from-pdf.cs) -- Remove all signatures from pdf +- [`remove-all-signatures-from-pdfs-recursively.cs`](./remove-all-signatures-from-pdfs-recursively.cs) -- Remove all signatures from pdfs recursively +- [`remove-all-signatures-from-pdfs.cs`](./remove-all-signatures-from-pdfs.cs) -- Remove all signatures from pdfs +- [`remove-and-replace-pdf-signature.cs`](./remove-and-replace-pdf-signature.cs) -- Remove and replace pdf signature +- [`remove-pdf-signature-missing-handling.cs`](./remove-pdf-signature-missing-handling.cs) -- Remove pdf signature missing handling +- [`remove-pdf-signature-with-missing-field-handling.cs`](./remove-pdf-signature-with-missing-field-handling.cs) -- Remove pdf signature with missing field handling +- [`remove-signature-from-pdf.cs`](./remove-signature-from-pdf.cs) -- Remove signature from pdf +- [`remove-signature-re-sign-pdf.cs`](./remove-signature-re-sign-pdf.cs) -- Remove signature re sign pdf +- [`retry-sign-pdf-when-file-locked.cs`](./retry-sign-pdf-when-file-locked.cs) -- Retry sign pdf when file locked +- [`sign-and-verify-pdf-using-pdffilesignature.cs`](./sign-and-verify-pdf-using-pdffilesignature.cs) -- Sign and verify pdf using pdffilesignature +- [`sign-pdf-french-appearance.cs`](./sign-pdf-french-appearance.cs) -- Sign pdf french appearance +- [`sign-pdf-french-caption.cs`](./sign-pdf-french-caption.cs) -- Sign pdf french caption +- [`sign-pdf-suppress-reason-location.cs`](./sign-pdf-suppress-reason-location.cs) -- Sign pdf suppress reason location +- [`sign-pdf-visible-signature-last-page.cs`](./sign-pdf-visible-signature-last-page.cs) -- Sign pdf visible signature last page +- [`sign-pdf-with-custom-appearance.cs`](./sign-pdf-with-custom-appearance.cs) -- Sign pdf with custom appearance +- [`sign-pdf-with-pfx-certificate.cs`](./sign-pdf-with-pfx-certificate.cs) -- Sign pdf with pfx certificate +- [`sign-pdf-with-reason-and-location.cs`](./sign-pdf-with-reason-and-location.cs) -- Sign pdf with reason and location +- [`sign-pdf-with-retry-on-file-lock.cs`](./sign-pdf-with-retry-on-file-lock.cs) -- Sign pdf with retry on file lock +- [`sign-pdf-with-semi-transparent-appearance.cs`](./sign-pdf-with-semi-transparent-appearance.cs) -- Sign pdf with semi transparent appearance +- [`sign-pdf-with-visible-image-signature.cs`](./sign-pdf-with-visible-image-signature.cs) -- Sign pdf with visible image signature +- [`sign-pdf-with-visible-image.cs`](./sign-pdf-with-visible-image.cs) -- Sign pdf with visible image +- [`suppress-reason-location-when-signing-pdf.cs`](./suppress-reason-location-when-signing-pdf.cs) -- Suppress reason location when signing pdf +- [`validate-manager-signature.cs`](./validate-manager-signature.cs) -- Validate manager signature +- [`validate-pdf-signature-field.cs`](./validate-pdf-signature-field.cs) -- Validate pdf signature field +- [`verify-absence-of-pdf-signature.cs`](./verify-absence-of-pdf-signature.cs) -- Verify absence of pdf signature +- [`verify-multiple-pdf-signatures.cs`](./verify-multiple-pdf-signatures.cs) -- Verify multiple pdf signatures +- [`verify-multiple-signatures-pdf.cs`](./verify-multiple-signatures-pdf.cs) -- Verify multiple signatures pdf +- [`verify-pdf-no-signatures-false.cs`](./verify-pdf-no-signatures-false.cs) -- Verify pdf no signatures false +- [`verify-pdf-signature-by-name.cs`](./verify-pdf-signature-by-name.cs) -- Verify pdf signature by name +- [`verify-pdf-signatures-to-json.cs`](./verify-pdf-signatures-to-json.cs) -- Verify pdf signatures to json +- [`verify-specific-pdf-signature.cs`](./verify-specific-pdf-signature.cs) -- Verify specific pdf signature + +## See Also + +- [`AGENTS.md`](./AGENTS.md) -- category-specific anti-patterns, API surface, and conventions for AI coding agents +- [`../AGENTS.md`](../AGENTS.md) -- repository-wide agent guide +- [`../README.md`](../README.md) -- full category index and project overview +- [Aspose.PDF for .NET docs](https://docs.aspose.com/pdf/net/) + +> Each `.cs` file is a standalone, build-validated console example. Drop into a fresh `dotnet new console` project, add the `Aspose.PDF` NuGet (version above), and run. diff --git a/facades-sign-documents/index.json b/facades-sign-documents/index.json index 84d248f5b..0b7590481 100644 --- a/facades-sign-documents/index.json +++ b/facades-sign-documents/index.json @@ -1,7 +1,7 @@ { "category": "facades-sign-documents", "nuget_version": "26.8.0", - "last_updated": "2026-08-20T08:02:21Z", + "last_updated": "2026-09-10T12:45:08Z", "examples": { "add-digital-signature-to-pdf-page": { "title": "Add Digital Signature to First PDF Page", @@ -25,6 +25,26 @@ "generated_at": "2026-08-20T08:02:21Z", "status": "verified" }, + "add-locale-specific-visible-signatures": { + "title": "Add Locale Specific Visible Signatures", + "filename": "add-locale-specific-visible-signatures.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-multiple-digital-signatures-to-pdf": { + "title": "Add Multiple Digital Signatures To Pdf", + "filename": "add-multiple-digital-signatures-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "add-second-digital-signature-to-pdf-page-3": { "title": "Add Second Digital Signature to PDF Page 3", "filename": "add-second-digital-signature-to-pdf-page-3.cs", @@ -47,6 +67,49 @@ "generated_at": "2026-08-20T08:02:21Z", "status": "verified" }, + "add-signature-field-and-sign-pdf": { + "title": "Create Signature Field and Sign PDF Document", + "filename": "add-signature-field-and-sign-pdf.cs", + "description": "Demonstrates how to add an empty digital signature field to a specific page of a PDF using Aspose.Pdf, then sign the document with a self‑signed certificate.", + "tags": [ + "signature", + "pdf", + "digital-signature", + "form-field", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.FormEditor.AddField", + "Aspose.Pdf.Facades.PdfFileSignature", + "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", + "Aspose.Pdf.Facades.PdfFileSignature.SetCertificate", + "Aspose.Pdf.Facades.PdfFileSignature.Sign" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T08:02:21Z", + "status": "verified" + }, + "apply-semi-transparent-signature-appearance": { + "title": "Apply Semi Transparent Signature Appearance", + "filename": "apply-semi-transparent-signature-appearance.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "audit-pdf-signatures-reason-location": { + "title": "Audit Pdf Signatures Reason Location", + "filename": "audit-pdf-signatures-reason-location.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "configure-custom-signature-appearance": { "title": "Configure Custom Signature Appearance with Background Color and Foreground Image", "filename": "configure-custom-signature-appearance.cs", @@ -69,114 +132,162 @@ "generated_at": "2026-08-20T08:02:21Z", "status": "verified" }, - "suppress-reason-location-when-signing-pdf": { - "title": "Suppress Reason and Location When Signing a PDF", - "filename": "suppress-reason-location-when-signing-pdf.cs", - "description": "Demonstrates how to digitally sign a PDF with Aspose.Pdf while clearing the Reason, Location, and ContactInfo fields to hide those details in the visible signature annotation.", - "tags": [ - "pdf", - "digital-signature", - "aspose", - "suppress-text", - "facade" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfFileSignature", - "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", - "Aspose.Pdf.Facades.PdfFileSignature.SetCertificate", - "Aspose.Pdf.Forms.PKCS1", - "Aspose.Pdf.Forms.PKCS1.Reason", - "Aspose.Pdf.Forms.PKCS1.Location", - "Aspose.Pdf.Facades.PdfFileSignature.Sign", - "Aspose.Pdf.Facades.PdfFileSignature.Save" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T08:02:21Z", + "create-and-sign-pdf-signature-field": { + "title": "Create And Sign Pdf Signature Field", + "filename": "create-and-sign-pdf-signature-field.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "sign-pdf-french-caption": { - "title": "Sign PDF with French Caption Using SignatureCustomAppearance", - "filename": "sign-pdf-french-caption.cs", - "description": "Demonstrates how to digitally sign a PDF with Aspose.Pdf and set the signature caption language to French by configuring the SignatureCustomAppearance locale.", + "create-invisible-pdf-digital-signature": { + "title": "Create Invisible Pdf Digital Signature", + "filename": "create-invisible-pdf-digital-signature.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "custom-pdf-signature-appearance": { + "title": "Create Custom PDF Signature Appearance Without Caption", + "filename": "custom-pdf-signature-appearance.cs", + "description": "Demonstrates signing a PDF with Aspose.Pdf using a PKCS#1 signature and a custom appearance that hides the default 'Digitally signed by' label and other fields.", "tags": [ - "digital-signature", - "pdf", - "french", - "signature-appearance", - "aspose-pdf" + "pdf-signature", + "custom-appearance", + "aspose-pdf", + "csharp", + "digital-signature" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSignature", - "Aspose.Pdf.Facades.PKCS1", - "Aspose.Pdf.Facades.SignatureCustomAppearance", "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", - "Aspose.Pdf.Facades.PdfFileSignature.SetCertificate", "Aspose.Pdf.Facades.PdfFileSignature.Sign", - "Aspose.Pdf.Facades.PdfFileSignature.Save" + "Aspose.Pdf.Facades.PdfFileSignature.Save", + "Aspose.Pdf.Forms.PKCS1", + "Aspose.Pdf.Forms.SignatureCustomAppearance" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:02:21Z", "status": "verified" }, - "remove-signature-from-pdf": { - "title": "Remove Existing Signature from PDF", - "filename": "remove-signature-from-pdf.cs", - "description": "Shows how to delete a digital signature named \"ApprovalSignature\" from a PDF file using Aspose.Pdf's PdfFileSignature facade.", + "custom-signature-appearance-hide-caption": { + "title": "Custom Signature Appearance Hide Caption", + "filename": "custom-signature-appearance-hide-caption.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "digitally-sign-first-page-pdf": { + "title": "Digitally Sign First Page Pdf", + "filename": "digitally-sign-first-page-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-certificate-details-from-pdf-signature": { + "title": "Extract Certificate Details From Pdf Signature", + "filename": "extract-certificate-details-from-pdf-signature.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-certificate-details-from-pdf-signatures": { + "title": "Extract Certificate Details from PDF Signatures", + "filename": "extract-certificate-details-from-pdf-signatures.cs", + "description": "Demonstrates how to load a signed PDF, enumerate its digital signatures, and retrieve the X.509 certificate information such as issuer and expiration date for each signature.", "tags": [ "pdf", "signature", - "remove", + "certificate", "aspose", - "csharp" + "extraction" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSignature", "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", - "Aspose.Pdf.Facades.PdfFileSignature.RemoveSignature", - "Aspose.Pdf.Facades.PdfFileSignature.Save", - "Aspose.Pdf.Facades.PdfFileSignature.Close" + "Aspose.Pdf.Facades.PdfFileSignature.GetSignatureNames", + "Aspose.Pdf.Facades.PdfFileSignature.TryExtractCertificate" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:02:21Z", "status": "verified" }, - "verify-pdf-signature-by-name": { - "title": "Verify PDF Signature by Name using Aspose.Pdf", - "filename": "verify-pdf-signature-by-name.cs", - "description": "Demonstrates how to check whether a PDF contains a specific digital signature (e.g., 'ContractSigner') using the Aspose.Pdf.Facades PdfFileSignature class.", + "extract-certificate-serial-number-from-pdf-signatures": { + "title": "Extract Certificate Serial Number from PDF Signatures", + "filename": "extract-certificate-serial-number-from-pdf-signatures.cs", + "description": "Demonstrates how to open a signed PDF, enumerate its digital signatures, extract the associated X.509 certificate, and log the certificate's serial number for audit purposes.", "tags": [ "pdf", "signature", - "verification", - "aspose", - "csharp" + "certificate", + "serial-number", + "audit" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSignature", - "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", - "Aspose.Pdf.Facades.PdfFileSignature.VerifySigned" + "PdfFileSignature.BindPdf", + "PdfFileSignature.ContainsSignature", + "PdfFileSignature.GetSignatureNames", + "PdfFileSignature.TryExtractCertificate", + "Aspose.Pdf.Facades.SignatureName" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:02:21Z", "status": "verified" }, - "validate-manager-signature": { - "title": "Validate ManagerSignature Field in PDF", - "filename": "validate-manager-signature.cs", - "description": "Demonstrates how to load a PDF with Aspose.Pdf.Facades and verify the cryptographic integrity of a signature field named 'ManagerSignature' using the VerifySignature method.", + "extract-certificate-serial-number-from-pdf": { + "title": "Extract Certificate Serial Number From Pdf", + "filename": "extract-certificate-serial-number-from-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-signature-image-png": { + "title": "Extract Signature Image Png", + "filename": "extract-signature-image-png.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-signature-images-html-report": { + "title": "Extract Signature Images to HTML Report", + "filename": "extract-signature-images-html-report.cs", + "description": "Demonstrates how to retrieve signature images from a signed PDF using Aspose.Pdf.Facades and embed them as Base64‑encoded images in an HTML report.", "tags": [ - "pdf", "signature", - "verification", - "facade", - "aspnet" + "pdf", + "image", + "html", + "extraction" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSignature", "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", - "Aspose.Pdf.Facades.PdfFileSignature.VerifySignature" + "Aspose.Pdf.Facades.PdfFileSignature.GetSignatureNames", + "Aspose.Pdf.Facades.PdfFileSignature.ExtractImage", + "Aspose.Pdf.Facades.SignatureName" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:02:21Z", "status": "verified" }, @@ -200,6 +311,16 @@ "generated_at": "2026-08-20T08:02:21Z", "status": "verified" }, + "extract-the-signing-certificate-s-subject-distinguished-name-and-store-it-in-a-database": { + "title": "Extract The Signing Certificate S Subject Distinguished Name And Store It In A Database", + "filename": "extract-the-signing-certificate-s-subject-distinguished-name-and-store-it-in-a-database.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "extract-witness-signature-image": { "title": "Extract Witness Signature Image from PDF", "filename": "extract-witness-signature-image.cs", @@ -222,39 +343,41 @@ "generated_at": "2026-08-20T08:02:21Z", "status": "verified" }, - "custom-pdf-signature-appearance": { - "title": "Create Custom PDF Signature Appearance Without Caption", - "filename": "custom-pdf-signature-appearance.cs", - "description": "Demonstrates signing a PDF with Aspose.Pdf using a PKCS#1 signature and a custom appearance that hides the default 'Digitally signed by' label and other fields.", + "generate-pdf-signature-report": { + "title": "Generate PDF Signature Verification Report", + "filename": "generate-pdf-signature-report.cs", + "description": "Creates a PDF document that enumerates all digital signatures in a source PDF, displaying signer, date, reason, location and whether each signature is valid.", "tags": [ - "pdf-signature", - "custom-appearance", - "aspose-pdf", - "csharp", - "digital-signature" + "pdf", + "signature", + "report", + "verification", + "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSignature", "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", - "Aspose.Pdf.Facades.PdfFileSignature.Sign", - "Aspose.Pdf.Facades.PdfFileSignature.Save", - "Aspose.Pdf.Forms.PKCS1", - "Aspose.Pdf.Forms.SignatureCustomAppearance" + "Aspose.Pdf.Facades.PdfFileSignature.GetSignatureNames", + "Aspose.Pdf.Facades.PdfFileSignature.VerifySignature", + "Aspose.Pdf.Document", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.Position", + "Aspose.Pdf.FontRepository.FindFont" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:02:21Z", "status": "verified" }, - "sign-pdf-with-pfx-certificate": { - "title": "Sign PDF with PFX Certificate using Aspose.Pdf", - "filename": "sign-pdf-with-pfx-certificate.cs", - "description": "Demonstrates how to digitally sign a PDF file using a password‑protected PFX certificate with Aspose.Pdf.Facades, including optional visual signature placement on a specific page.", + "hide-pdf-signature-appearance": { + "title": "Hide PDF Signature Appearance While Keeping It Valid", + "filename": "hide-pdf-signature-appearance.cs", + "description": "Demonstrates signing a PDF with Aspose.Pdf and making the signature invisible by setting the visible flag to false, while preserving a cryptographically valid signature.", "tags": [ - "pdf signing", - "pfx certificate", - "digital signature", + "pdf", + "digital-signature", + "invisible", "aspose.pdf", - "c#" + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSignature", @@ -267,181 +390,318 @@ "generated_at": "2026-08-20T08:02:21Z", "status": "verified" }, - "remove-pdf-signature-missing-handling": { - "title": "Remove PDF Signature with Missing Signature Handling", - "filename": "remove-pdf-signature-missing-handling.cs", - "description": "Demonstrates how to delete a specific digital signature from a PDF using Aspose.Pdf.Facades and gracefully handle the case where the signature does not exist.", + "list-pdf-signature-names": { + "title": "List Pdf Signature Names", + "filename": "list-pdf-signature-names.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "list-signature-names-in-pdf": { + "title": "List Signature Names in a PDF Document", + "filename": "list-signature-names-in-pdf.cs", + "description": "Demonstrates how to use Aspose.Pdf.Facades to open a PDF file and retrieve all non‑empty signature names, printing each to the console.", "tags": [ "pdf", "signature", - "remove", - "error-handling", + "list", + "aspose", "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSignature", "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", "Aspose.Pdf.Facades.PdfFileSignature.GetSignatureNames", - "Aspose.Pdf.Facades.PdfFileSignature.RemoveSignature", - "Aspose.Pdf.Facades.PdfFileSignature.Save", "Aspose.Pdf.Facades.PdfFileSignature.Close", - "Aspose.Pdf.Document" + "Aspose.Pdf.Facades.SignatureName" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:02:21Z", "status": "verified" }, - "log-pdf-signature-verification-to-json": { - "title": "Log PDF Signature Verification Results to JSON", - "filename": "log-pdf-signature-verification-to-json.cs", - "description": "Demonstrates how to verify each digital signature in a PDF using Aspose.Pdf.Facades and write the verification status to a formatted JSON file.", + "list-signature-reasons-and-locations": { + "title": "List Signature Reasons and Locations in a PDF", + "filename": "list-signature-reasons-and-locations.cs", + "description": "Shows how to bind a PDF with Aspose.Pdf.Facades, enumerate its digital signatures, and retrieve each signature's reason and location for auditing purposes.", "tags": [ "pdf", "signature", - "verification", - "json", + "audit", + "aspose", "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileSignature", - "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", - "Aspose.Pdf.Facades.PdfFileSignature.GetSignatureNames", - "Aspose.Pdf.Facades.PdfFileSignature.VerifySignature", - "Aspose.Pdf.Facades.PdfFileSignature.Close", - "Aspose.Pdf.Facades.SignatureName" + "PdfFileSignature", + "PdfFileSignature.BindPdf", + "PdfFileSignature.GetSignatureNames", + "PdfFileSignature.GetReason", + "PdfFileSignature.GetLocation", + "SignatureName" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:02:21Z", "status": "verified" }, - "sign-and-verify-pdf-using-pdffilesignature": { - "title": "Sign and Verify PDF Using PdfFileSignature", - "filename": "sign-and-verify-pdf-using-pdffilesignature.cs", - "description": "Demonstrates how to sign a PDF with a self‑signed certificate using Aspose.Pdf.Facades.PdfFileSignature and then immediately verify the signature's validity.", + "locale-specific-pdf-digital-signature": { + "title": "Locale‑Specific PDF Digital Signature with Custom Appearance", + "filename": "locale-specific-pdf-digital-signature.cs", + "description": "Demonstrates how to digitally sign a PDF using Aspose.Pdf with appearance text localized for German, Spanish, and Japanese languages.", "tags": [ "pdf", "digital-signature", - "verification", + "localization", "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSignature", - "PdfFileSignature.BindPdf", - "PdfFileSignature.SetCertificate", - "PdfFileSignature.Sign", - "PdfFileSignature.Save", - "PdfFileSignature.GetSignatureNames", - "PdfFileSignature.VerifySignature" + "Aspose.Pdf.Facades.PKCS7", + "Aspose.Pdf.Forms.SignatureCustomAppearance", + "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", + "Aspose.Pdf.Facades.PdfFileSignature.SetCertificate", + "Aspose.Pdf.Facades.PdfFileSignature.Sign", + "Aspose.Pdf.Facades.PdfFileSignature.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:02:21Z", "status": "verified" }, - "sign-pdf-with-reason-and-location": { - "title": "Sign PDF with Reason and Location using Aspose.Pdf Facade", - "filename": "sign-pdf-with-reason-and-location.cs", - "description": "Demonstrates how to digitally sign a PDF, setting the signature reason to \"Approved for release\" and location to \"New York\" with a visible signature using Aspose.Pdf.Facades.", + "log-pdf-signature-verification-to-json": { + "title": "Log PDF Signature Verification Results to JSON", + "filename": "log-pdf-signature-verification-to-json.cs", + "description": "Demonstrates how to verify each digital signature in a PDF using Aspose.Pdf.Facades and write the verification status to a formatted JSON file.", "tags": [ "pdf", - "digital-signature", - "aspose-pdf", - "signature-reason", - "visible-signature" + "signature", + "verification", + "json", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSignature", "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", - "Aspose.Pdf.Facades.PdfFileSignature.SetCertificate", - "Aspose.Pdf.Facades.PdfFileSignature.Sign", - "Aspose.Pdf.Facades.PdfFileSignature.Save" + "Aspose.Pdf.Facades.PdfFileSignature.GetSignatureNames", + "Aspose.Pdf.Facades.PdfFileSignature.VerifySignature", + "Aspose.Pdf.Facades.PdfFileSignature.Close", + "Aspose.Pdf.Facades.SignatureName" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T08:02:21Z", + "status": "verified" + }, + "remove-all-pdf-signatures": { + "title": "Remove All Pdf Signatures", + "filename": "remove-all-pdf-signatures.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "remove-all-signatures-from-pdf": { + "title": "Remove All Signatures from PDF", + "filename": "remove-all-signatures-from-pdf.cs", + "description": "Shows how to load a PDF, remove every digital signature using Aspose.Pdf.Facades, and save a clean copy.", + "tags": [ + "pdf", + "signature", + "remove", + "aspose", + "facade" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfFileSignature", + "PdfFileSignature.BindPdf", + "PdfFileSignature.RemoveSignatures", + "PdfFileSignature.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:02:21Z", "status": "verified" }, - "add-signature-field-and-sign-pdf": { - "title": "Create Signature Field and Sign PDF Document", - "filename": "add-signature-field-and-sign-pdf.cs", - "description": "Demonstrates how to add an empty digital signature field to a specific page of a PDF using Aspose.Pdf, then sign the document with a self‑signed certificate.", + "remove-all-signatures-from-pdfs-recursively": { + "title": "Remove All Signatures From Pdfs Recursively", + "filename": "remove-all-signatures-from-pdfs-recursively.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "remove-all-signatures-from-pdfs": { + "title": "Remove All Signatures from PDFs Recursively", + "filename": "remove-all-signatures-from-pdfs.cs", + "description": "Demonstrates how to traverse a directory tree, load each PDF with Aspose.Pdf.Facades, remove all digital signatures, and save a new copy without signatures.", "tags": [ + "pdf", "signature", + "remove", + "recursion", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfFileSignature", + "PdfFileSignature.BindPdf", + "PdfFileSignature.RemoveSignatures", + "PdfFileSignature.Save" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:02:21Z", + "status": "verified" + }, + "remove-and-replace-pdf-signature": { + "title": "Remove Existing Signature and Apply New PDF Signature", + "filename": "remove-and-replace-pdf-signature.cs", + "description": "Shows how to delete all existing signatures from a PDF and then sign the document with a new certificate, optionally adding a visible signature appearance.", + "tags": [ "pdf", - "digital-signature", - "form-field", + "signature", + "remove", + "sign", "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.FormEditor.AddField", + "PdfFileSignature", + "PdfFileSignature.BindPdf", + "PdfFileSignature.RemoveSignatures", + "PdfFileSignature.SetCertificate", + "PdfFileSignature.Sign", + "PdfFileSignature.Save" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T08:02:21Z", + "status": "verified" + }, + "remove-pdf-signature-missing-handling": { + "title": "Remove PDF Signature with Missing Signature Handling", + "filename": "remove-pdf-signature-missing-handling.cs", + "description": "Demonstrates how to delete a specific digital signature from a PDF using Aspose.Pdf.Facades and gracefully handle the case where the signature does not exist.", + "tags": [ + "pdf", + "signature", + "remove", + "error-handling", + "facade" + ], + "apis_used": [ "Aspose.Pdf.Facades.PdfFileSignature", "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", - "Aspose.Pdf.Facades.PdfFileSignature.SetCertificate", - "Aspose.Pdf.Facades.PdfFileSignature.Sign" + "Aspose.Pdf.Facades.PdfFileSignature.GetSignatureNames", + "Aspose.Pdf.Facades.PdfFileSignature.RemoveSignature", + "Aspose.Pdf.Facades.PdfFileSignature.Save", + "Aspose.Pdf.Facades.PdfFileSignature.Close", + "Aspose.Pdf.Document" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:02:21Z", "status": "verified" }, - "extract-certificate-details-from-pdf-signatures": { - "title": "Extract Certificate Details from PDF Signatures", - "filename": "extract-certificate-details-from-pdf-signatures.cs", - "description": "Demonstrates how to load a signed PDF, enumerate its digital signatures, and retrieve the X.509 certificate information such as issuer and expiration date for each signature.", + "remove-pdf-signature-with-missing-field-handling": { + "title": "Remove Pdf Signature With Missing Field Handling", + "filename": "remove-pdf-signature-with-missing-field-handling.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "remove-signature-from-pdf": { + "title": "Remove Existing Signature from PDF", + "filename": "remove-signature-from-pdf.cs", + "description": "Shows how to delete a digital signature named \"ApprovalSignature\" from a PDF file using Aspose.Pdf's PdfFileSignature facade.", "tags": [ "pdf", "signature", - "certificate", + "remove", "aspose", - "extraction" + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSignature", "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", - "Aspose.Pdf.Facades.PdfFileSignature.GetSignatureNames", - "Aspose.Pdf.Facades.PdfFileSignature.TryExtractCertificate" + "Aspose.Pdf.Facades.PdfFileSignature.RemoveSignature", + "Aspose.Pdf.Facades.PdfFileSignature.Save", + "Aspose.Pdf.Facades.PdfFileSignature.Close" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:02:21Z", "status": "verified" }, - "generate-pdf-signature-report": { - "title": "Generate PDF Signature Verification Report", - "filename": "generate-pdf-signature-report.cs", - "description": "Creates a PDF document that enumerates all digital signatures in a source PDF, displaying signer, date, reason, location and whether each signature is valid.", + "remove-signature-re-sign-pdf": { + "title": "Remove Signature Re Sign Pdf", + "filename": "remove-signature-re-sign-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "retry-sign-pdf-when-file-locked": { + "title": "Retry Sign Pdf When File Locked", + "filename": "retry-sign-pdf-when-file-locked.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "sign-and-verify-pdf-using-pdffilesignature": { + "title": "Sign and Verify PDF Using PdfFileSignature", + "filename": "sign-and-verify-pdf-using-pdffilesignature.cs", + "description": "Demonstrates how to sign a PDF with a self‑signed certificate using Aspose.Pdf.Facades.PdfFileSignature and then immediately verify the signature's validity.", "tags": [ "pdf", - "signature", - "report", + "digital-signature", "verification", - "aspose" + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSignature", - "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", - "Aspose.Pdf.Facades.PdfFileSignature.GetSignatureNames", - "Aspose.Pdf.Facades.PdfFileSignature.VerifySignature", - "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.Position", - "Aspose.Pdf.FontRepository.FindFont" + "PdfFileSignature.BindPdf", + "PdfFileSignature.SetCertificate", + "PdfFileSignature.Sign", + "PdfFileSignature.Save", + "PdfFileSignature.GetSignatureNames", + "PdfFileSignature.VerifySignature" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:02:21Z", "status": "verified" }, - "sign-pdf-with-retry-on-file-lock": { - "title": "Sign PDF with Retry on File Lock", - "filename": "sign-pdf-with-retry-on-file-lock.cs", - "description": "Demonstrates how to sign a PDF using Aspose.Pdf.Facades with a retry mechanism that handles file‑lock IOExceptions.", + "sign-pdf-french-appearance": { + "title": "Sign Pdf French Appearance", + "filename": "sign-pdf-french-appearance.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "sign-pdf-french-caption": { + "title": "Sign PDF with French Caption Using SignatureCustomAppearance", + "filename": "sign-pdf-french-caption.cs", + "description": "Demonstrates how to digitally sign a PDF with Aspose.Pdf and set the signature caption language to French by configuring the SignatureCustomAppearance locale.", "tags": [ - "pdf-signature", - "retry", - "file-lock", - "aspose-pdf", - "csharp" + "digital-signature", + "pdf", + "french", + "signature-appearance", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSignature", + "Aspose.Pdf.Facades.PKCS1", + "Aspose.Pdf.Facades.SignatureCustomAppearance", "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", "Aspose.Pdf.Facades.PdfFileSignature.SetCertificate", "Aspose.Pdf.Facades.PdfFileSignature.Sign", @@ -451,66 +711,111 @@ "generated_at": "2026-08-20T08:02:21Z", "status": "verified" }, - "remove-all-signatures-from-pdf": { - "title": "Remove All Signatures from PDF", - "filename": "remove-all-signatures-from-pdf.cs", - "description": "Shows how to load a PDF, remove every digital signature using Aspose.Pdf.Facades, and save a clean copy.", + "sign-pdf-suppress-reason-location": { + "title": "Sign Pdf Suppress Reason Location", + "filename": "sign-pdf-suppress-reason-location.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "sign-pdf-visible-signature-last-page": { + "title": "Sign PDF with Visible Signature on Last Page", + "filename": "sign-pdf-visible-signature-last-page.cs", + "description": "Shows how to apply a digital signature that is visible in the bottom‑right corner of the last page of a PDF using Aspose.Pdf and the PdfFileSignature facade.", "tags": [ + "digital-signature", + "visible-signature", "pdf", - "signature", - "remove", - "aspose", - "facade" + "Aspose.Pdf", + "last-page" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.Facades.PdfFileSignature", "PdfFileSignature.BindPdf", - "PdfFileSignature.RemoveSignatures", + "PdfFileSignature.SetCertificate", + "PdfFileSignature.Sign", "PdfFileSignature.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:02:21Z", "status": "verified" }, - "verify-multiple-pdf-signatures": { - "title": "Verify Multiple Signatures in a PDF", - "filename": "verify-multiple-pdf-signatures.cs", - "description": "Loads a signed PDF, extracts all signature names, and verifies each signature using the VerifySigned method.", + "sign-pdf-with-custom-appearance": { + "title": "Sign Pdf With Custom Appearance", + "filename": "sign-pdf-with-custom-appearance.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "sign-pdf-with-pfx-certificate": { + "title": "Sign PDF with PFX Certificate using Aspose.Pdf", + "filename": "sign-pdf-with-pfx-certificate.cs", + "description": "Demonstrates how to digitally sign a PDF file using a password‑protected PFX certificate with Aspose.Pdf.Facades, including optional visual signature placement on a specific page.", "tags": [ - "pdf", - "signature", - "verification", - "aspose", - "facade" + "pdf signing", + "pfx certificate", + "digital signature", + "aspose.pdf", + "c#" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileSignature", - "Aspose.Pdf.Facades.SignatureName", - "Aspose.Pdf.Facades.PdfFileSignature.GetSignatureNames", - "Aspose.Pdf.Facades.PdfFileSignature.VerifySigned" + "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", + "Aspose.Pdf.Facades.PdfFileSignature.SetCertificate", + "Aspose.Pdf.Facades.PdfFileSignature.Sign", + "Aspose.Pdf.Facades.PdfFileSignature.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:02:21Z", "status": "verified" }, - "extract-signature-images-html-report": { - "title": "Extract Signature Images to HTML Report", - "filename": "extract-signature-images-html-report.cs", - "description": "Demonstrates how to retrieve signature images from a signed PDF using Aspose.Pdf.Facades and embed them as Base64‑encoded images in an HTML report.", + "sign-pdf-with-reason-and-location": { + "title": "Sign PDF with Reason and Location using Aspose.Pdf Facade", + "filename": "sign-pdf-with-reason-and-location.cs", + "description": "Demonstrates how to digitally sign a PDF, setting the signature reason to \"Approved for release\" and location to \"New York\" with a visible signature using Aspose.Pdf.Facades.", "tags": [ - "signature", "pdf", - "image", - "html", - "extraction" + "digital-signature", + "aspose-pdf", + "signature-reason", + "visible-signature" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSignature", "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", - "Aspose.Pdf.Facades.PdfFileSignature.GetSignatureNames", - "Aspose.Pdf.Facades.PdfFileSignature.ExtractImage", - "Aspose.Pdf.Facades.SignatureName" + "Aspose.Pdf.Facades.PdfFileSignature.SetCertificate", + "Aspose.Pdf.Facades.PdfFileSignature.Sign", + "Aspose.Pdf.Facades.PdfFileSignature.Save" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:02:21Z", + "status": "verified" + }, + "sign-pdf-with-retry-on-file-lock": { + "title": "Sign PDF with Retry on File Lock", + "filename": "sign-pdf-with-retry-on-file-lock.cs", + "description": "Demonstrates how to sign a PDF using Aspose.Pdf.Facades with a retry mechanism that handles file‑lock IOExceptions.", + "tags": [ + "pdf-signature", + "retry", + "file-lock", + "aspose-pdf", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfFileSignature", + "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", + "Aspose.Pdf.Facades.PdfFileSignature.SetCertificate", + "Aspose.Pdf.Facades.PdfFileSignature.Sign", + "Aspose.Pdf.Facades.PdfFileSignature.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:02:21Z", @@ -539,28 +844,6 @@ "generated_at": "2026-08-20T08:02:21Z", "status": "verified" }, - "list-signature-names-in-pdf": { - "title": "List Signature Names in a PDF Document", - "filename": "list-signature-names-in-pdf.cs", - "description": "Demonstrates how to use Aspose.Pdf.Facades to open a PDF file and retrieve all non‑empty signature names, printing each to the console.", - "tags": [ - "pdf", - "signature", - "list", - "aspose", - "facade" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfFileSignature", - "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", - "Aspose.Pdf.Facades.PdfFileSignature.GetSignatureNames", - "Aspose.Pdf.Facades.PdfFileSignature.Close", - "Aspose.Pdf.Facades.SignatureName" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T08:02:21Z", - "status": "verified" - }, "sign-pdf-with-visible-image-signature": { "title": "Sign PDF with Visible Image Signature", "filename": "sign-pdf-with-visible-image-signature.cs", @@ -583,77 +866,71 @@ "generated_at": "2026-08-20T08:02:21Z", "status": "verified" }, - "sign-pdf-visible-signature-last-page": { - "title": "Sign PDF with Visible Signature on Last Page", - "filename": "sign-pdf-visible-signature-last-page.cs", - "description": "Shows how to apply a digital signature that is visible in the bottom‑right corner of the last page of a PDF using Aspose.Pdf and the PdfFileSignature facade.", - "tags": [ - "digital-signature", - "visible-signature", - "pdf", - "Aspose.Pdf", - "last-page" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Facades.PdfFileSignature", - "PdfFileSignature.BindPdf", - "PdfFileSignature.SetCertificate", - "PdfFileSignature.Sign", - "PdfFileSignature.Save" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:02:21Z", + "sign-pdf-with-visible-image": { + "title": "Sign Pdf With Visible Image", + "filename": "sign-pdf-with-visible-image.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "locale-specific-pdf-digital-signature": { - "title": "Locale‑Specific PDF Digital Signature with Custom Appearance", - "filename": "locale-specific-pdf-digital-signature.cs", - "description": "Demonstrates how to digitally sign a PDF using Aspose.Pdf with appearance text localized for German, Spanish, and Japanese languages.", + "suppress-reason-location-when-signing-pdf": { + "title": "Suppress Reason and Location When Signing a PDF", + "filename": "suppress-reason-location-when-signing-pdf.cs", + "description": "Demonstrates how to digitally sign a PDF with Aspose.Pdf while clearing the Reason, Location, and ContactInfo fields to hide those details in the visible signature annotation.", "tags": [ "pdf", "digital-signature", - "localization", "aspose", - "csharp" + "suppress-text", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSignature", - "Aspose.Pdf.Facades.PKCS7", - "Aspose.Pdf.Forms.SignatureCustomAppearance", "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", "Aspose.Pdf.Facades.PdfFileSignature.SetCertificate", + "Aspose.Pdf.Forms.PKCS1", + "Aspose.Pdf.Forms.PKCS1.Reason", + "Aspose.Pdf.Forms.PKCS1.Location", "Aspose.Pdf.Facades.PdfFileSignature.Sign", "Aspose.Pdf.Facades.PdfFileSignature.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:02:21Z", "status": "verified" }, - "remove-and-replace-pdf-signature": { - "title": "Remove Existing Signature and Apply New PDF Signature", - "filename": "remove-and-replace-pdf-signature.cs", - "description": "Shows how to delete all existing signatures from a PDF and then sign the document with a new certificate, optionally adding a visible signature appearance.", + "validate-manager-signature": { + "title": "Validate ManagerSignature Field in PDF", + "filename": "validate-manager-signature.cs", + "description": "Demonstrates how to load a PDF with Aspose.Pdf.Facades and verify the cryptographic integrity of a signature field named 'ManagerSignature' using the VerifySignature method.", "tags": [ "pdf", "signature", - "remove", - "sign", - "aspose-pdf" + "verification", + "facade", + "aspnet" ], "apis_used": [ - "PdfFileSignature", - "PdfFileSignature.BindPdf", - "PdfFileSignature.RemoveSignatures", - "PdfFileSignature.SetCertificate", - "PdfFileSignature.Sign", - "PdfFileSignature.Save" + "Aspose.Pdf.Facades.PdfFileSignature", + "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", + "Aspose.Pdf.Facades.PdfFileSignature.VerifySignature" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:02:21Z", "status": "verified" }, + "validate-pdf-signature-field": { + "title": "Validate Pdf Signature Field", + "filename": "validate-pdf-signature-field.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "verify-absence-of-pdf-signature": { "title": "Verify Absence of PDF Signature", "filename": "verify-absence-of-pdf-signature.cs", @@ -674,93 +951,86 @@ "generated_at": "2026-08-20T08:02:21Z", "status": "verified" }, - "remove-all-signatures-from-pdfs": { - "title": "Remove All Signatures from PDFs Recursively", - "filename": "remove-all-signatures-from-pdfs.cs", - "description": "Demonstrates how to traverse a directory tree, load each PDF with Aspose.Pdf.Facades, remove all digital signatures, and save a new copy without signatures.", + "verify-multiple-pdf-signatures": { + "title": "Verify Multiple Signatures in a PDF", + "filename": "verify-multiple-pdf-signatures.cs", + "description": "Loads a signed PDF, extracts all signature names, and verifies each signature using the VerifySigned method.", "tags": [ "pdf", "signature", - "remove", - "recursion", - "aspose" + "verification", + "aspose", + "facade" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileSignature", - "PdfFileSignature.BindPdf", - "PdfFileSignature.RemoveSignatures", - "PdfFileSignature.Save" + "Aspose.Pdf.Facades.SignatureName", + "Aspose.Pdf.Facades.PdfFileSignature.GetSignatureNames", + "Aspose.Pdf.Facades.PdfFileSignature.VerifySigned" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:02:21Z", "status": "verified" }, - "extract-certificate-serial-number-from-pdf-signatures": { - "title": "Extract Certificate Serial Number from PDF Signatures", - "filename": "extract-certificate-serial-number-from-pdf-signatures.cs", - "description": "Demonstrates how to open a signed PDF, enumerate its digital signatures, extract the associated X.509 certificate, and log the certificate's serial number for audit purposes.", - "tags": [ - "pdf", - "signature", - "certificate", - "serial-number", - "audit" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfFileSignature", - "PdfFileSignature.BindPdf", - "PdfFileSignature.ContainsSignature", - "PdfFileSignature.GetSignatureNames", - "PdfFileSignature.TryExtractCertificate", - "Aspose.Pdf.Facades.SignatureName" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:02:21Z", + "verify-multiple-signatures-pdf": { + "title": "Verify Multiple Signatures Pdf", + "filename": "verify-multiple-signatures-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "list-signature-reasons-and-locations": { - "title": "List Signature Reasons and Locations in a PDF", - "filename": "list-signature-reasons-and-locations.cs", - "description": "Shows how to bind a PDF with Aspose.Pdf.Facades, enumerate its digital signatures, and retrieve each signature's reason and location for auditing purposes.", + "verify-pdf-no-signatures-false": { + "title": "Verify Pdf No Signatures False", + "filename": "verify-pdf-no-signatures-false.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "verify-pdf-signature-by-name": { + "title": "Verify PDF Signature by Name using Aspose.Pdf", + "filename": "verify-pdf-signature-by-name.cs", + "description": "Demonstrates how to check whether a PDF contains a specific digital signature (e.g., 'ContractSigner') using the Aspose.Pdf.Facades PdfFileSignature class.", "tags": [ "pdf", "signature", - "audit", + "verification", "aspose", - "facade" + "csharp" ], "apis_used": [ - "PdfFileSignature", - "PdfFileSignature.BindPdf", - "PdfFileSignature.GetSignatureNames", - "PdfFileSignature.GetReason", - "PdfFileSignature.GetLocation", - "SignatureName" + "Aspose.Pdf.Facades.PdfFileSignature", + "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", + "Aspose.Pdf.Facades.PdfFileSignature.VerifySigned" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:02:21Z", "status": "verified" }, - "hide-pdf-signature-appearance": { - "title": "Hide PDF Signature Appearance While Keeping It Valid", - "filename": "hide-pdf-signature-appearance.cs", - "description": "Demonstrates signing a PDF with Aspose.Pdf and making the signature invisible by setting the visible flag to false, while preserving a cryptographically valid signature.", - "tags": [ - "pdf", - "digital-signature", - "invisible", - "aspose.pdf", - "facade" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfFileSignature", - "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", - "Aspose.Pdf.Facades.PdfFileSignature.SetCertificate", - "Aspose.Pdf.Facades.PdfFileSignature.Sign", - "Aspose.Pdf.Facades.PdfFileSignature.Save" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:02:21Z", + "verify-pdf-signatures-to-json": { + "title": "Verify Pdf Signatures To Json", + "filename": "verify-pdf-signatures-to-json.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "verify-specific-pdf-signature": { + "title": "Verify Specific Pdf Signature", + "filename": "verify-specific-pdf-signature.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" } } diff --git a/facades-stamps/AGENTS.md b/facades-stamps/AGENTS.md index a679a0e9c..2d28f6b1e 100644 --- a/facades-stamps/AGENTS.md +++ b/facades-stamps/AGENTS.md @@ -8,7 +8,7 @@ parent: ../agents.md # AGENTS - facades-stamps -> **Facades stamps** in PDF using C# / .NET -- **48** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. +> **Facades stamps** in PDF using C# / .NET -- **82** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. ## Persona @@ -23,16 +23,16 @@ See the root [agents.md](../agents.md) for repository-wide conventions and bound ## Required Namespaces -- `using Aspose.Pdf.Facades;` (37/48 files) ← category-specific -- `using Aspose.Pdf;` (35/48 files) ← category-specific -- `using Aspose.Pdf.Text;` (14/48 files) -- `using Aspose.Pdf.Annotations;` (2/48 files) -- `using Aspose.Pdf.Drawing;` (1/48 files) -- `using Aspose.Pdf.Forms;` (1/48 files) -- `using System;` (48/48 files) -- `using System.IO;` (47/48 files) -- `using System.Drawing;` (11/48 files) -- `using System.Text;` (1/48 files) +- `using Aspose.Pdf.Facades;` (37/82 files) +- `using Aspose.Pdf;` (35/82 files) +- `using Aspose.Pdf.Text;` (14/82 files) +- `using Aspose.Pdf.Annotations;` (2/82 files) +- `using Aspose.Pdf.Drawing;` (1/82 files) +- `using Aspose.Pdf.Forms;` (1/82 files) +- `using System;` (48/82 files) +- `using System.IO;` (47/82 files) +- `using System.Drawing;` (11/82 files) +- `using System.Text;` (1/82 files) ## Common Code Pattern @@ -49,40 +49,40 @@ tool.Save("output.pdf"); | File | Title | Key APIs | Description | |------|-------|----------|-------------| +| [add-background-image-watermark-to-specific-pdf-pag...](./add-background-image-watermark-to-specific-pdf-pages.cs) | Add background image watermark to specific pdf pages | | Add background image watermark to specific pdf pages | | [add-background-watermark-to-specific-pdf-pages](./add-background-watermark-to-specific-pdf-pages.cs) | Add Background Watermark to Specific PDF Pages | `PdfFileStamp`, `Stamp`, `FormattedText` | Demonstrates how to apply a light‑gray background watermark to pages 2‑5 of a PDF using Aspose.Pd... | +| [add-barcode-header-to-pdf-pages](./add-barcode-header-to-pdf-pages.cs) | Add barcode header to pdf pages | | Add barcode header to pdf pages | | [add-confidential-text-and-logo-stamp](./add-confidential-text-and-logo-stamp.cs) | Add Confidential Text and Logo Stamp to PDF | `PdfFileStamp`, `Stamp`, `FormattedText` | Demonstrates using Aspose.Pdf.Facades to place a combined formatted text stamp and a logo image o... | +| [add-creation-date-stamp-to-pdf](./add-creation-date-stamp-to-pdf.cs) | Add creation date stamp to pdf | | Add creation date stamp to pdf | | [add-creation-date-stamp](./add-creation-date-stamp.cs) | Add Creation Date Stamp to PDF | `Document`, `DocumentInfo`, `TextStamp` | Shows how to read a PDF's creation date and place it as a text stamp in the top‑left corner of ev... | | [add-custom-border-stamp-to-pdf](./add-custom-border-stamp-to-pdf.cs) | Add Custom Border Stamp Annotation to PDF | `Document`, `StampAnnotation`, `Border` | Demonstrates how to load a PDF, create a rubber‑stamp annotation with a custom red border and thi... | | [add-dynamic-text-stamp-to-pdf](./add-dynamic-text-stamp-to-pdf.cs) | Add Dynamic Text Stamp to PDF | `Document`, `Page`, `TextStamp` | Demonstrates creating a TextStamp with interpolated author and date values, applying it to each p... | | [add-file-name-header-stamp-to-pdf](./add-file-name-header-stamp-to-pdf.cs) | Add File Name Header Stamp to PDF | `Document`, `TextStamp`, `FindFont` | Demonstrates creating a TextStamp that shows the PDF's file name in the header of each page and a... | | [add-footer-date-stamp-to-last-pdf-page](./add-footer-date-stamp-to-last-pdf-page.cs) | Add Footer Date Stamp to Last PDF Page | `Document`, `Page`, `TextStamp` | Demonstrates how to insert a footer stamp containing the current date (MM-dd-yyyy) on the last pa... | +| [add-footer-page-count-stamp](./add-footer-page-count-stamp.cs) | Add footer page count stamp | | Add footer page count stamp | | [add-footer-stamp-10-points-above-bottom](./add-footer-stamp-10-points-above-bottom.cs) | Add Footer Stamp 10 Points Above Bottom Edge | `PdfFileStamp`, `BindPdf`, `AddFooter` | Demonstrates how to use PdfFileStamp to add a footer stamp positioned exactly 10 points above the... | | [add-footer-with-page-count](./add-footer-with-page-count.cs) | Add Footer with Page Count to PDF | `PdfFileStamp`, `BindPdf`, `AddPageNumber` | Shows how to use Aspose.Pdf.Facades.PdfFileStamp to add a footer that displays the current page n... | +| [add-header-stamp-to-all-pdf-pages](./add-header-stamp-to-all-pdf-pages.cs) | Add header stamp to all pdf pages | | Add header stamp to all pdf pages | | [add-header-stamp-to-pdf-pages](./add-header-stamp-to-pdf-pages.cs) | Add Header Stamp to All PDF Pages | `Document`, `Page`, `TextStamp` | Shows how to load a PDF with Aspose.Pdf, iterate through its Pages collection, and add a centered... | +| [add-image-and-text-stamp-to-pdf](./add-image-and-text-stamp-to-pdf.cs) | Add image and text stamp to pdf | | Add image and text stamp to pdf | | [add-image-stamp-to-pdfs-preserve-filenames](./add-image-stamp-to-pdfs-preserve-filenames.cs) | Add Image Stamp to PDFs and Preserve Filenames | `PdfFileStamp`, `Stamp`, `BindPdf` | Iterates over PDF files in a source folder, applies an image stamp to each page using the PdfFile... | | [add-lower-roman-page-numbers-odd-pages](./add-lower-roman-page-numbers-odd-pages.cs) | Add Lower‑Roman Page Numbers to Odd Pages | `Document`, `PageNumberStamp`, `NumberingStyle` | Demonstrates how to add page numbers in lower‑case Roman numerals to only the odd pages of a PDF ... | +| [add-lowercase-roman-page-numbers-to-odd-pages](./add-lowercase-roman-page-numbers-to-odd-pages.cs) | Add lowercase roman page numbers to odd pages | | Add lowercase roman page numbers to odd pages | | [add-multi-line-colored-header-stamp](./add-multi-line-colored-header-stamp.cs) | Add Multi-Line Colored Header Stamp to PDF | `BindPdf`, `AddStamp`, `Save` | Demonstrates how to apply a multi‑line header stamp with different font colors to each line using... | | [add-multi-line-text-watermark-facade](./add-multi-line-text-watermark-facade.cs) | Add Multi-Line Text Watermark to PDF using Facades | `PdfFileStamp`, `FormattedText`, `AddNewLineText` | Shows how to create a multi-line text watermark with Aspose.Pdf.Facades by using FormattedText, a... | +| [add-multi-line-text-watermark-pdf](./add-multi-line-text-watermark-pdf.cs) | Add multi line text watermark pdf | | Add multi line text watermark pdf | | [add-multi-line-text-watermark](./add-multi-line-text-watermark.cs) | Add Multi‑Line Text Watermark with Varying Font Sizes | `Document`, `Page`, `FindFont` | Demonstrates how to apply a multi‑line watermark to each page of a PDF, using different font size... | | [add-multi-line-watermark-custom-font](./add-multi-line-watermark-custom-font.cs) | Add Multi‑Line Watermark with Custom Font to PDF | `Document`, `FormattedText`, `BindLogo` | Demonstrates loading a PDF from a memory stream and applying a multi‑line, custom‑styled watermar... | +| [add-multi-line-watermark-pdf](./add-multi-line-watermark-pdf.cs) | Add multi line watermark pdf | | Add multi line watermark pdf | +| [add-multi-line-watermark-to-pdf](./add-multi-line-watermark-to-pdf.cs) | Add multi line watermark to pdf | | Add multi line watermark to pdf | +| [add-multi-line-watermark-varying-font-sizes](./add-multi-line-watermark-varying-font-sizes.cs) | Add multi line watermark varying font sizes | | Add multi line watermark varying font sizes | | [add-page-number-stamp-leading-zeros](./add-page-number-stamp-leading-zeros.cs) | Add Page Number Stamp with Leading Zeros to PDF | `Document`, `PdfFileStamp`, `NumberingStyle` | Shows how to use Aspose.Pdf to stamp Arabic numeral page numbers with leading zeros on every page... | | [add-page-number-stamp-to-pdf](./add-page-number-stamp-to-pdf.cs) | Add Page Number Stamp to PDF | `PdfFileStamp`, `AddPageNumber`, `StartingNumber` | Shows how to use Aspose.Pdf.Facades.PdfFileStamp to add a dynamic page‑number stamp (using the "#... | -| [add-qr-code-stamp-from-pdf-metadata](./add-qr-code-stamp-from-pdf-metadata.cs) | Add QR Code Stamp from PDF Metadata | `Document`, `Stamp`, `PdfFileStamp` | Demonstrates how to generate a QR code from a PDF's metadata and apply it as a stamp on the docum... | -| [add-repeating-background-watermark-image](./add-repeating-background-watermark-image.cs) | Add Repeating Background Watermark Image to PDF Pages | `PdfFileStamp`, `Stamp`, `BindImage` | Shows how to use PdfFileStamp with a single Stamp instance to place a semi‑transparent background... | -| [add-right-aligned-logo-stamp-to-pdf](./add-right-aligned-logo-stamp-to-pdf.cs) | Add Right-Aligned Logo Stamp to PDF | `Document`, `ImageStamp`, `AddStamp` | Shows how to place an image stamp (logo) at the right margin of each page in a PDF using Aspose.Pdf. | -| [add-semi-transparent-background-stamp](./add-semi-transparent-background-stamp.cs) | Add Semi-Transparent Background Stamp to PDF | `PdfFileStamp`, `Stamp`, `BindPdf` | Demonstrates how to apply an image as a background stamp on all pages of a PDF with 30% opacity u... | -| [add-transparent-confidential-text-stamp](./add-transparent-confidential-text-stamp.cs) | Add Transparent Confidential Text Stamp to Selected PDF Page... | `Document`, `PdfFileStamp`, `FormattedText` | Demonstrates applying a 70% opaque red "CONFIDENTIAL" text stamp to specific pages of a PDF using... | -| [apply-custom-line-height-stamp](./apply-custom-line-height-stamp.cs) | Apply Custom Line-Height Stamp to PDF | `Stamp`, `PdfFileStamp`, `FormattedText` | Demonstrates how to create a multi‑line watermark with custom line spacing using a formatted text... | -| [apply-external-pdf-template-stamp](./apply-external-pdf-template-stamp.cs) | Apply External PDF Template as Stamp on a Specific Page | `PdfFileStamp`, `Stamp`, `BindPdf` | Shows how to create a PdfFileStamp from an external template PDF and apply it only to the third p... | -| [apply-image-stamp-to-all-pdf-pages](./apply-image-stamp-to-all-pdf-pages.cs) | Apply Image Stamp to All PDF Pages | `PdfFileStamp`, `Stamp`, `BindPdf` | Demonstrates using PdfFileStamp and Stamp to add a semi‑transparent image stamp to every page of ... | -| [apply-pdf-page-stamp-as-background](./apply-pdf-page-stamp-as-background.cs) | Apply PDF Page Stamp as Background to All Pages | `PdfFileStamp`, `Stamp`, `BindPdf` | Demonstrates how to use Aspose.Pdf.Facades to stamp every page of a PDF with the first page of an... | -| [apply-rotated-image-stamp-to-pdf-pages](./apply-rotated-image-stamp-to-pdf-pages.cs) | Apply Rotated Image Stamp to PDF Pages | `PdfFileStamp`, `Stamp`, `Document` | Demonstrates how to add an image stamp rotated by 30° to the bottom‑right corner of every page in... | -| [apply-rotated-text-stamp-odd-pages](./apply-rotated-text-stamp-odd-pages.cs) | Apply Rotated Text Stamp to Odd Pages | `Document`, `TextStamp`, `FindFont` | Demonstrates adding a 30‑degree rotated text stamp to the left margin of every odd‑numbered page ... | -| [apply-rotating-stamps-to-pdf-pages](./apply-rotating-stamps-to-pdf-pages.cs) | Apply Rotating Stamps to Each PDF Page | `Document`, `PdfFileStamp`, `Stamp` | Demonstrates how to add a text stamp to every page of a PDF and rotate each stamp based on the pa... | -| ... | | | *and 18 more files* | +| [add-page-number-stamp-with-leading-zeros](./add-page-number-stamp-with-leading-zeros.cs) | Add page number stamp with leading zeros | | Add page number stamp with leading zeros | +| ... | | | *and 52 more files* | ## Category Statistics -- Total examples: 48 +- Total examples: 82 ## Category-Specific Tips @@ -124,5 +124,5 @@ tool.Save("output.pdf"); - Review code examples in this folder for facades-stamps patterns -Updated: 2026-08-20 | Run: `20260820_001147_12d7b3` +Updated: 2026-09-10 | Run: `20260910_054408_87a7f4` diff --git a/facades-stamps/README.md b/facades-stamps/README.md new file mode 100644 index 000000000..621865dea --- /dev/null +++ b/facades-stamps/README.md @@ -0,0 +1,101 @@ +# Facades stamps + +> **Facades stamps** in PDF using C# / .NET -- **82** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. + +- Category: `facades-stamps` +- Examples: 82 +- NuGet: `Aspose.PDF 26.8.0` -- target `net10.0` + +## Examples + +- [`add-background-image-watermark-to-specific-pdf-pages.cs`](./add-background-image-watermark-to-specific-pdf-pages.cs) -- Add background image watermark to specific pdf pages +- [`add-background-watermark-to-specific-pdf-pages.cs`](./add-background-watermark-to-specific-pdf-pages.cs) -- Add background watermark to specific pdf pages +- [`add-barcode-header-to-pdf-pages.cs`](./add-barcode-header-to-pdf-pages.cs) -- Add barcode header to pdf pages +- [`add-confidential-text-and-logo-stamp.cs`](./add-confidential-text-and-logo-stamp.cs) -- Add confidential text and logo stamp +- [`add-creation-date-stamp-to-pdf.cs`](./add-creation-date-stamp-to-pdf.cs) -- Add creation date stamp to pdf +- [`add-creation-date-stamp.cs`](./add-creation-date-stamp.cs) -- Add creation date stamp +- [`add-custom-border-stamp-to-pdf.cs`](./add-custom-border-stamp-to-pdf.cs) -- Add custom border stamp to pdf +- [`add-dynamic-text-stamp-to-pdf.cs`](./add-dynamic-text-stamp-to-pdf.cs) -- Add dynamic text stamp to pdf +- [`add-file-name-header-stamp-to-pdf.cs`](./add-file-name-header-stamp-to-pdf.cs) -- Add file name header stamp to pdf +- [`add-footer-date-stamp-to-last-pdf-page.cs`](./add-footer-date-stamp-to-last-pdf-page.cs) -- Add footer date stamp to last pdf page +- [`add-footer-page-count-stamp.cs`](./add-footer-page-count-stamp.cs) -- Add footer page count stamp +- [`add-footer-stamp-10-points-above-bottom.cs`](./add-footer-stamp-10-points-above-bottom.cs) -- Add footer stamp 10 points above bottom +- [`add-footer-with-page-count.cs`](./add-footer-with-page-count.cs) -- Add footer with page count +- [`add-header-stamp-to-all-pdf-pages.cs`](./add-header-stamp-to-all-pdf-pages.cs) -- Add header stamp to all pdf pages +- [`add-header-stamp-to-pdf-pages.cs`](./add-header-stamp-to-pdf-pages.cs) -- Add header stamp to pdf pages +- [`add-image-and-text-stamp-to-pdf.cs`](./add-image-and-text-stamp-to-pdf.cs) -- Add image and text stamp to pdf +- [`add-image-stamp-to-pdfs-preserve-filenames.cs`](./add-image-stamp-to-pdfs-preserve-filenames.cs) -- Add image stamp to pdfs preserve filenames +- [`add-lower-roman-page-numbers-odd-pages.cs`](./add-lower-roman-page-numbers-odd-pages.cs) -- Add lower roman page numbers odd pages +- [`add-lowercase-roman-page-numbers-to-odd-pages.cs`](./add-lowercase-roman-page-numbers-to-odd-pages.cs) -- Add lowercase roman page numbers to odd pages +- [`add-multi-line-colored-header-stamp.cs`](./add-multi-line-colored-header-stamp.cs) -- Add multi line colored header stamp +- [`add-multi-line-text-watermark-facade.cs`](./add-multi-line-text-watermark-facade.cs) -- Add multi line text watermark facade +- [`add-multi-line-text-watermark-pdf.cs`](./add-multi-line-text-watermark-pdf.cs) -- Add multi line text watermark pdf +- [`add-multi-line-text-watermark.cs`](./add-multi-line-text-watermark.cs) -- Add multi line text watermark +- [`add-multi-line-watermark-custom-font.cs`](./add-multi-line-watermark-custom-font.cs) -- Add multi line watermark custom font +- [`add-multi-line-watermark-pdf.cs`](./add-multi-line-watermark-pdf.cs) -- Add multi line watermark pdf +- [`add-multi-line-watermark-to-pdf.cs`](./add-multi-line-watermark-to-pdf.cs) -- Add multi line watermark to pdf +- [`add-multi-line-watermark-varying-font-sizes.cs`](./add-multi-line-watermark-varying-font-sizes.cs) -- Add multi line watermark varying font sizes +- [`add-page-number-stamp-leading-zeros.cs`](./add-page-number-stamp-leading-zeros.cs) -- Add page number stamp leading zeros +- [`add-page-number-stamp-to-pdf.cs`](./add-page-number-stamp-to-pdf.cs) -- Add page number stamp to pdf +- [`add-page-number-stamp-with-leading-zeros.cs`](./add-page-number-stamp-with-leading-zeros.cs) -- Add page number stamp with leading zeros +- [`add-page-numbers-to-pdf.cs`](./add-page-numbers-to-pdf.cs) -- Add page numbers to pdf +- [`add-qr-code-stamp-from-pdf-metadata.cs`](./add-qr-code-stamp-from-pdf-metadata.cs) -- Add qr code stamp from pdf metadata +- [`add-qr-code-verification-stamp.cs`](./add-qr-code-verification-stamp.cs) -- Add qr code verification stamp +- [`add-repeating-background-image-stamp.cs`](./add-repeating-background-image-stamp.cs) -- Add repeating background image stamp +- [`add-repeating-background-watermark-image.cs`](./add-repeating-background-watermark-image.cs) -- Add repeating background watermark image +- [`add-right-aligned-image-stamp-to-pdf.cs`](./add-right-aligned-image-stamp-to-pdf.cs) -- Add right aligned image stamp to pdf +- [`add-right-aligned-logo-stamp-to-pdf.cs`](./add-right-aligned-logo-stamp-to-pdf.cs) -- Add right aligned logo stamp to pdf +- [`add-semi-transparent-background-stamp.cs`](./add-semi-transparent-background-stamp.cs) -- Add semi transparent background stamp +- [`add-semi-transparent-png-background-stamp.cs`](./add-semi-transparent-png-background-stamp.cs) -- Add semi transparent png background stamp +- [`add-text-stamp-overlay-to-pdf-pages.cs`](./add-text-stamp-overlay-to-pdf-pages.cs) -- Add text stamp overlay to pdf pages +- [`add-transparent-confidential-text-stamp.cs`](./add-transparent-confidential-text-stamp.cs) -- Add transparent confidential text stamp +- [`add-transparent-text-stamp-to-selected-pdf-pages.cs`](./add-transparent-text-stamp-to-selected-pdf-pages.cs) -- Add transparent text stamp to selected pdf pages +- [`apply-custom-colored-stamp-with-border.cs`](./apply-custom-colored-stamp-with-border.cs) -- Apply custom colored stamp with border +- [`apply-custom-line-height-stamp.cs`](./apply-custom-line-height-stamp.cs) -- Apply custom line height stamp +- [`apply-external-pdf-template-stamp.cs`](./apply-external-pdf-template-stamp.cs) -- Apply external pdf template stamp +- [`apply-image-stamp-to-all-pdf-pages.cs`](./apply-image-stamp-to-all-pdf-pages.cs) -- Apply image stamp to all pdf pages +- [`apply-multi-line-text-stamp-1-5-line-spacing.cs`](./apply-multi-line-text-stamp-1-5-line-spacing.cs) -- Apply multi line text stamp 1 5 line spacing +- [`apply-pdf-page-stamp-as-background.cs`](./apply-pdf-page-stamp-as-background.cs) -- Apply pdf page stamp as background +- [`apply-pdf-stamp-preserve-filenames.cs`](./apply-pdf-stamp-preserve-filenames.cs) -- Apply pdf stamp preserve filenames +- [`apply-pdf-template-stamp-to-page.cs`](./apply-pdf-template-stamp-to-page.cs) -- Apply pdf template stamp to page +- [`apply-rotated-image-stamp-bottom-right.cs`](./apply-rotated-image-stamp-bottom-right.cs) -- Apply rotated image stamp bottom right +- [`apply-rotated-image-stamp-to-pdf-pages.cs`](./apply-rotated-image-stamp-to-pdf-pages.cs) -- Apply rotated image stamp to pdf pages +- [`apply-rotated-text-stamp-odd-pages.cs`](./apply-rotated-text-stamp-odd-pages.cs) -- Apply rotated text stamp odd pages +- [`apply-rotated-text-stamp-to-odd-pages.cs`](./apply-rotated-text-stamp-to-odd-pages.cs) -- Apply rotated text stamp to odd pages +- [`apply-rotating-stamps-to-pdf-pages.cs`](./apply-rotating-stamps-to-pdf-pages.cs) -- Apply rotating stamps to pdf pages +- [`apply-rotating-text-stamps.cs`](./apply-rotating-text-stamps.cs) -- Apply rotating text stamps +- [`apply-semi-transparent-png-background-stamp.cs`](./apply-semi-transparent-png-background-stamp.cs) -- Apply semi transparent png background stamp +- [`apply-stamp-to-even-pdf-pages.cs`](./apply-stamp-to-even-pdf-pages.cs) -- Apply stamp to even pdf pages +- [`apply-text-stamp-to-even-pages.cs`](./apply-text-stamp-to-even-pages.cs) -- Apply text stamp to even pages +- [`apply-text-stamp-to-specific-pdf-pages.cs`](./apply-text-stamp-to-specific-pdf-pages.cs) -- Apply text stamp to specific pdf pages +- [`apply-text-watermark-all-pdf-pages.cs`](./apply-text-watermark-all-pdf-pages.cs) -- Apply text watermark all pdf pages +- [`apply-translucent-text-watermark.cs`](./apply-translucent-text-watermark.cs) -- Apply translucent text watermark +- [`apply-translucent-watermark-to-pdf.cs`](./apply-translucent-watermark-to-pdf.cs) -- Apply translucent watermark to pdf +- [`batch-add-multi-line-watermark-to-pdfs.cs`](./batch-add-multi-line-watermark-to-pdfs.cs) -- Batch add multi line watermark to pdfs +- [`batch-add-rotated-image-stamp-to-first-page.cs`](./batch-add-rotated-image-stamp-to-first-page.cs) -- Batch add rotated image stamp to first page +- [`batch-add-rotated-image-stamp.cs`](./batch-add-rotated-image-stamp.cs) -- Batch add rotated image stamp +- [`batch-apply-rotated-pdf-stamp.cs`](./batch-apply-rotated-pdf-stamp.cs) -- Batch apply rotated pdf stamp +- [`combine-image-text-pdf-stamp.cs`](./combine-image-text-pdf-stamp.cs) -- Combine image text pdf stamp +- [`combine-multiple-pdfs-into-multi-page-stamp.cs`](./combine-multiple-pdfs-into-multi-page-stamp.cs) -- Combine multiple pdfs into multi page stamp +- [`create-multi-page-pdf-stamp.cs`](./create-multi-page-pdf-stamp.cs) -- Create multi page pdf stamp +- [`custom-font-stamp-branding.cs`](./custom-font-stamp-branding.cs) -- Custom font stamp branding +- [`merge-cover-page-background-pdf.cs`](./merge-cover-page-background-pdf.cs) -- Merge cover page background pdf +- [`merge-cover-page-background.cs`](./merge-cover-page-background.cs) -- Merge cover page background +- [`multi-line-watermark-addnewlinetext.cs`](./multi-line-watermark-addnewlinetext.cs) -- Multi line watermark addnewlinetext +- [`overlay-disclaimer-pdf-first-page.cs`](./overlay-disclaimer-pdf-first-page.cs) -- Overlay disclaimer pdf first page +- [`overlay-image-stamp-on-pdf-pages.cs`](./overlay-image-stamp-on-pdf-pages.cs) -- Overlay image stamp on pdf pages +- [`overlay-legal-disclaimer-with-pdffilestamp.cs`](./overlay-legal-disclaimer-with-pdffilestamp.cs) -- Overlay legal disclaimer with pdffilestamp +- [`qr-code-and-text-stamp-for-pdf.cs`](./qr-code-and-text-stamp-for-pdf.cs) -- Qr code and text stamp for pdf +- [`rotate-text-stamp-45-degrees.cs`](./rotate-text-stamp-45-degrees.cs) -- Rotate text stamp 45 degrees +- [`rotate-text-stamp-90-degrees.cs`](./rotate-text-stamp-90-degrees.cs) -- Rotate text stamp 90 degrees +- [`rotate-text-stamp-on-pdf-pages.cs`](./rotate-text-stamp-on-pdf-pages.cs) -- Rotate text stamp on pdf pages +- [`stamp-pdf-with-dynamic-barcode.cs`](./stamp-pdf-with-dynamic-barcode.cs) -- Stamp pdf with dynamic barcode + +## See Also + +- [`AGENTS.md`](./AGENTS.md) -- category-specific anti-patterns, API surface, and conventions for AI coding agents +- [`../AGENTS.md`](../AGENTS.md) -- repository-wide agent guide +- [`../README.md`](../README.md) -- full category index and project overview +- [Aspose.PDF for .NET docs](https://docs.aspose.com/pdf/net/) + +> Each `.cs` file is a standalone, build-validated console example. Drop into a fresh `dotnet new console` project, add the `Aspose.PDF` NuGet (version above), and run. diff --git a/facades-stamps/index.json b/facades-stamps/index.json index 190e589c8..730f57a87 100644 --- a/facades-stamps/index.json +++ b/facades-stamps/index.json @@ -1,168 +1,174 @@ { "category": "facades-stamps", "nuget_version": "26.8.0", - "last_updated": "2026-08-20T08:03:52Z", + "last_updated": "2026-09-10T12:45:08Z", "examples": { - "add-multi-line-text-watermark-facade": { - "title": "Add Multi-Line Text Watermark to PDF using Facades", - "filename": "add-multi-line-text-watermark-facade.cs", - "description": "Shows how to create a multi-line text watermark with Aspose.Pdf.Facades by using FormattedText, adding extra lines via AddNewLineText, and applying it as a background stamp to all pages of a PDF.", + "add-background-image-watermark-to-specific-pdf-pages": { + "title": "Add Background Image Watermark To Specific Pdf Pages", + "filename": "add-background-image-watermark-to-specific-pdf-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-background-watermark-to-specific-pdf-pages": { + "title": "Add Background Watermark to Specific PDF Pages", + "filename": "add-background-watermark-to-specific-pdf-pages.cs", + "description": "Demonstrates how to apply a light‑gray background watermark to pages 2‑5 of a PDF using Aspose.Pdf.Facades.", "tags": [ "watermark", - "formattedtext", - "stamp", + "background", "pdf", - "facades" + "Aspose.Pdf", + "pages" ], "apis_used": [ - "PdfFileStamp", - "FormattedText", - "FormattedText.AddNewLineText", - "Stamp", - "Stamp.BindLogo", - "Stamp.IsBackground", - "PdfFileStamp.AddStamp", - "PdfFileStamp.Save" + "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.Facades.Stamp", + "Aspose.Pdf.Facades.FormattedText", + "Aspose.Pdf.Facades.EncodingType", + "Aspose.Pdf.Facades.Stamp.BindLogo", + "Aspose.Pdf.Facades.PdfFileStamp.AddStamp" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:03:52Z", "status": "verified" }, - "rotate-text-stamp-45-degrees": { - "title": "Rotate Text Stamp 45 Degrees in PDF", - "filename": "rotate-text-stamp-45-degrees.cs", - "description": "Shows how to add a TextStamp to a PDF page and rotate it 45° around its centre using the RotateAngle property.", - "tags": [ - "text-stamp", - "rotation", - "pdf", - "watermark", - "Aspose.Pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextStamp", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T08:03:52Z", + "add-barcode-header-to-pdf-pages": { + "title": "Add Barcode Header To Pdf Pages", + "filename": "add-barcode-header-to-pdf-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "apply-pdf-page-stamp-as-background": { - "title": "Apply PDF Page Stamp as Background to All Pages", - "filename": "apply-pdf-page-stamp-as-background.cs", - "description": "Demonstrates how to use Aspose.Pdf.Facades to stamp every page of a PDF with the first page of another PDF, placing the stamp behind the existing content.", + "add-confidential-text-and-logo-stamp": { + "title": "Add Confidential Text and Logo Stamp to PDF", + "filename": "add-confidential-text-and-logo-stamp.cs", + "description": "Demonstrates using Aspose.Pdf.Facades to place a combined formatted text stamp and a logo image onto a PDF document.", "tags": [ - "pdf", "stamp", - "background", - "facade", - "Aspose" + "logo", + "confidential", + "pdf", + "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.Stamp", + "PdfFileStamp", + "Stamp", + "FormattedText", + "EncodingType", "PdfFileStamp.BindPdf", - "Stamp.BindPdf", - "Stamp.IsBackground", - "PdfFileStamp.AddStamp", - "PdfFileStamp.Save" + "Stamp.BindLogo", + "Stamp.BindImage", + "PdfFileStamp.AddStamp" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:03:52Z", "status": "verified" }, - "apply-external-pdf-template-stamp": { - "title": "Apply External PDF Template as Stamp on a Specific Page", - "filename": "apply-external-pdf-template-stamp.cs", - "description": "Shows how to create a PdfFileStamp from an external template PDF and apply it only to the third page of another PDF document.", + "add-creation-date-stamp-to-pdf": { + "title": "Add Creation Date Stamp To Pdf", + "filename": "add-creation-date-stamp-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-creation-date-stamp": { + "title": "Add Creation Date Stamp to PDF", + "filename": "add-creation-date-stamp.cs", + "description": "Shows how to read a PDF's creation date and place it as a text stamp in the top‑left corner of every page using Aspose.Pdf.", "tags": [ - "pdf", + "creation-date", "stamp", - "template", - "Aspose.Pdf", - "c#" + "textstamp", + "pdf", + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.Stamp", - "PdfFileStamp.BindPdf", - "Stamp.BindPdf", - "Stamp.Pages", - "PdfFileStamp.AddStamp", - "PdfFileStamp.Save", - "PdfFileStamp.Close" + "Aspose.Pdf.Document", + "Aspose.Pdf.DocumentInfo", + "Aspose.Pdf.Text.TextStamp", + "Aspose.Pdf.Text.FontRepository", + "Aspose.Pdf.Page", + "Aspose.Pdf.Color", + "Aspose.Pdf.HorizontalAlignment", + "Aspose.Pdf.VerticalAlignment" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:03:52Z", "status": "verified" }, - "add-lower-roman-page-numbers-odd-pages": { - "title": "Add Lower‑Roman Page Numbers to Odd Pages", - "filename": "add-lower-roman-page-numbers-odd-pages.cs", - "description": "Demonstrates how to add page numbers in lower‑case Roman numerals to only the odd pages of a PDF using Aspose.Pdf's PageNumberStamp.", + "add-custom-border-stamp-to-pdf": { + "title": "Add Custom Border Stamp Annotation to PDF", + "filename": "add-custom-border-stamp-to-pdf.cs", + "description": "Demonstrates how to load a PDF, create a rubber‑stamp annotation with a custom red border and thickness, place it on a page, and save the modified document.", "tags": [ - "page-number", - "roman", - "odd-pages", "stamp", + "annotation", + "border", + "pdf", "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Text.PageNumberStamp", - "Aspose.Pdf.Text.NumberingStyle", - "Aspose.Pdf.Text.FontRepository", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Drawing.HorizontalAlignment" + "Aspose.Pdf.Annotations.StampAnnotation", + "Aspose.Pdf.Annotations.Border", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Color", + "Aspose.Pdf.Page.Annotations.Add", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:03:52Z", "status": "verified" }, - "combine-image-text-pdf-stamp": { - "title": "Combine Image and Text into a PDF Stamp", - "filename": "combine-image-text-pdf-stamp.cs", - "description": "Demonstrates creating a single stamp that contains a logo image and formatted text, then applying it to a PDF document using Aspose.Pdf.Facades.", + "add-dynamic-text-stamp-to-pdf": { + "title": "Add Dynamic Text Stamp to PDF", + "filename": "add-dynamic-text-stamp-to-pdf.cs", + "description": "Demonstrates creating a TextStamp with interpolated author and date values, applying it to each page of a PDF, and saving the stamped document.", "tags": [ - "stamp", - "image", - "text", "pdf", - "watermark" + "textstamp", + "watermark", + "aspose-pdf", + "string-interpolation" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.Stamp", - "Aspose.Pdf.Facades.Stamp.BindImage", - "Aspose.Pdf.Facades.Stamp.BindLogo", - "Aspose.Pdf.Text.FormattedText" + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextStamp", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:03:52Z", "status": "verified" }, - "add-header-stamp-to-pdf-pages": { - "title": "Add Header Stamp to All PDF Pages", - "filename": "add-header-stamp-to-pdf-pages.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, iterate through its Pages collection, and add a centered header TextStamp containing a company name to each page.", + "add-file-name-header-stamp-to-pdf": { + "title": "Add File Name Header Stamp to PDF", + "filename": "add-file-name-header-stamp-to-pdf.cs", + "description": "Demonstrates creating a TextStamp that shows the PDF's file name in the header of each page and applying it to all pages of the document.", "tags": [ - "header", "stamp", - "pdf", - "aspose", - "csharp" + "header", + "filename", + "textstamp", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextStamp", - "Aspose.Pdf.Text.FontRepository.FindFont", + "Aspose.Pdf.FontRepository.FindFont", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Color" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:03:52Z", @@ -192,78 +198,103 @@ "generated_at": "2026-08-20T08:03:52Z", "status": "verified" }, - "apply-rotating-stamps-to-pdf-pages": { - "title": "Apply Rotating Stamps to Each PDF Page", - "filename": "apply-rotating-stamps-to-pdf-pages.cs", - "description": "Demonstrates how to add a text stamp to every page of a PDF and rotate each stamp based on the page index using Aspose.Pdf.Facades.", + "add-footer-page-count-stamp": { + "title": "Add Footer Page Count Stamp", + "filename": "add-footer-page-count-stamp.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-footer-stamp-10-points-above-bottom": { + "title": "Add Footer Stamp 10 Points Above Bottom Edge", + "filename": "add-footer-stamp-10-points-above-bottom.cs", + "description": "Demonstrates how to use PdfFileStamp to add a footer stamp positioned exactly 10 points above the bottom edge of each PDF page.", "tags": [ - "pdf", + "footer", "stamp", - "rotation", - "facade", - "aspose" + "margin", + "pdf", + "Aspose.Pdf" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.Stamp", - "Aspose.Pdf.Facades.Stamp.BindLogo", - "Aspose.Pdf.Facades.Stamp.Rotation", - "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", - "Aspose.Pdf.Facades.PdfFileStamp.Close" + "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", + "Aspose.Pdf.Facades.PdfFileStamp.AddFooter", + "Aspose.Pdf.Facades.PdfFileStamp.Save", + "Aspose.Pdf.FormattedText" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:03:52Z", "status": "verified" }, - "add-background-watermark-to-specific-pdf-pages": { - "title": "Add Background Watermark to Specific PDF Pages", - "filename": "add-background-watermark-to-specific-pdf-pages.cs", - "description": "Demonstrates how to apply a light‑gray background watermark to pages 2‑5 of a PDF using Aspose.Pdf.Facades.", + "add-footer-with-page-count": { + "title": "Add Footer with Page Count to PDF", + "filename": "add-footer-with-page-count.cs", + "description": "Shows how to use Aspose.Pdf.Facades.PdfFileStamp to add a footer that displays the current page number and total page count on each page of a PDF document.", "tags": [ - "watermark", - "background", "pdf", - "Aspose.Pdf", - "pages" + "footer", + "page-number", + "stamp", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.Stamp", - "Aspose.Pdf.Facades.FormattedText", - "Aspose.Pdf.Facades.EncodingType", - "Aspose.Pdf.Facades.Stamp.BindLogo", - "Aspose.Pdf.Facades.PdfFileStamp.AddStamp" + "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", + "Aspose.Pdf.Facades.PdfFileStamp.AddPageNumber", + "Aspose.Pdf.Facades.PdfFileStamp.Save", + "Aspose.Pdf.Facades.PdfFileStamp.Close" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:03:52Z", "status": "verified" }, - "batch-add-multi-line-watermark-to-pdfs": { - "title": "Batch Add Multi‑Line Watermark to PDFs", - "filename": "batch-add-multi-line-watermark-to-pdfs.cs", - "description": "Demonstrates how to process all PDF files in a folder and apply the same multi‑line text watermark to each document using Aspose.Pdf facades.", - "tags": [ - "watermark", - "pdf", - "batch", + "add-header-stamp-to-all-pdf-pages": { + "title": "Add Header Stamp To All Pdf Pages", + "filename": "add-header-stamp-to-all-pdf-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-header-stamp-to-pdf-pages": { + "title": "Add Header Stamp to All PDF Pages", + "filename": "add-header-stamp-to-pdf-pages.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, iterate through its Pages collection, and add a centered header TextStamp containing a company name to each page.", + "tags": [ + "header", "stamp", - "Aspose.Pdf" + "pdf", + "aspose", + "csharp" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.Stamp", - "Aspose.Pdf.Facades.FormattedText", - "PdfFileStamp.BindPdf", - "PdfFileStamp.AddStamp", - "PdfFileStamp.Save", - "Stamp.BindLogo", - "Stamp.SetOrigin" + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextStamp", + "Aspose.Pdf.Text.FontRepository.FindFont", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:03:52Z", "status": "verified" }, + "add-image-and-text-stamp-to-pdf": { + "title": "Add Image And Text Stamp To Pdf", + "filename": "add-image-and-text-stamp-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "add-image-stamp-to-pdfs-preserve-filenames": { "title": "Add Image Stamp to PDFs and Preserve Filenames", "filename": "add-image-stamp-to-pdfs-preserve-filenames.cs", @@ -287,95 +318,119 @@ "generated_at": "2026-08-20T08:03:52Z", "status": "verified" }, - "overlay-legal-disclaimer-with-pdffilestamp": { - "title": "Overlay Legal Disclaimer on First Page Using PdfFileStamp", - "filename": "overlay-legal-disclaimer-with-pdffilestamp.cs", - "description": "Shows how to apply a disclaimer PDF as a background stamp on the first page of multiple target PDFs using Aspose.Pdf's PdfFileStamp facade.", + "add-lower-roman-page-numbers-odd-pages": { + "title": "Add Lower‑Roman Page Numbers to Odd Pages", + "filename": "add-lower-roman-page-numbers-odd-pages.cs", + "description": "Demonstrates how to add page numbers in lower‑case Roman numerals to only the odd pages of a PDF using Aspose.Pdf's PageNumberStamp.", "tags": [ - "pdf", + "page-number", + "roman", + "odd-pages", "stamp", - "disclaimer", - "aspose", - "facade" + "Aspose.Pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.Stamp", - "Aspose.Pdf.Facades.Stamp.BindPdf", - "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", - "Aspose.Pdf.Facades.PdfFileStamp.Close" + "Aspose.Pdf.Document", + "Aspose.Pdf.Text.PageNumberStamp", + "Aspose.Pdf.Text.NumberingStyle", + "Aspose.Pdf.Text.FontRepository", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Drawing.HorizontalAlignment" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:03:52Z", "status": "verified" }, - "apply-translucent-text-watermark": { - "title": "Apply Translucent Text Watermark to All PDF Pages", - "filename": "apply-translucent-text-watermark.cs", - "description": "Demonstrates how to use Aspose.Pdf.Facades to add a semi‑transparent text watermark to every page of a PDF document.", + "add-lowercase-roman-page-numbers-to-odd-pages": { + "title": "Add Lowercase Roman Page Numbers To Odd Pages", + "filename": "add-lowercase-roman-page-numbers-to-odd-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-multi-line-colored-header-stamp": { + "title": "Add Multi-Line Colored Header Stamp to PDF", + "filename": "add-multi-line-colored-header-stamp.cs", + "description": "Demonstrates how to apply a multi‑line header stamp with different font colors to each line using Aspose.Pdf Facades.", "tags": [ - "watermark", - "opacity", "pdf", - "facade", - "text-stamp" + "stamp", + "header", + "colored-text", + "facades" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileStamp", "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", "Aspose.Pdf.Facades.PdfFileStamp.Save", - "Aspose.Pdf.Facades.Stamp", "Aspose.Pdf.Facades.Stamp.BindLogo", - "Aspose.Pdf.Facades.Stamp.Opacity" + "Aspose.Pdf.Facades.Stamp.SetOrigin", + "Aspose.Pdf.Text.FormattedText" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:03:52Z", "status": "verified" }, - "apply-rotated-image-stamp-to-pdf-pages": { - "title": "Apply Rotated Image Stamp to PDF Pages", - "filename": "apply-rotated-image-stamp-to-pdf-pages.cs", - "description": "Demonstrates how to add an image stamp rotated by 30° to the bottom‑right corner of every page in a PDF using the Aspose.Pdf Facades API.", + "add-multi-line-text-watermark-facade": { + "title": "Add Multi-Line Text Watermark to PDF using Facades", + "filename": "add-multi-line-text-watermark-facade.cs", + "description": "Shows how to create a multi-line text watermark with Aspose.Pdf.Facades by using FormattedText, adding extra lines via AddNewLineText, and applying it as a background stamp to all pages of a PDF.", "tags": [ + "watermark", + "formattedtext", "stamp", - "image", - "rotation", "pdf", - "facade" + "facades" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.Stamp", - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Facades.Stamp.SetImageSize", - "Aspose.Pdf.Facades.Stamp.Rotation", - "Aspose.Pdf.Facades.Stamp.SetOrigin", - "Aspose.Pdf.Facades.PdfFileStamp.AddStamp" + "PdfFileStamp", + "FormattedText", + "FormattedText.AddNewLineText", + "Stamp", + "Stamp.BindLogo", + "Stamp.IsBackground", + "PdfFileStamp.AddStamp", + "PdfFileStamp.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:03:52Z", "status": "verified" }, - "add-page-number-stamp-to-pdf": { - "title": "Add Page Number Stamp to PDF", - "filename": "add-page-number-stamp-to-pdf.cs", - "description": "Shows how to use Aspose.Pdf.Facades.PdfFileStamp to add a dynamic page‑number stamp (using the \"#\" placeholder) to every page of a PDF document.", + "add-multi-line-text-watermark-pdf": { + "title": "Add Multi Line Text Watermark Pdf", + "filename": "add-multi-line-text-watermark-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-multi-line-text-watermark": { + "title": "Add Multi‑Line Text Watermark with Varying Font Sizes", + "filename": "add-multi-line-text-watermark.cs", + "description": "Demonstrates how to apply a multi‑line watermark to each page of a PDF, using different font sizes for visual hierarchy and semi‑transparent rendering.", "tags": [ + "watermark", "pdf", - "stamp", - "page-number", - "facade", - "csharp" + "textstamp", + "fontsize", + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileStamp", - "PdfFileStamp.AddPageNumber", - "PdfFileStamp.StartingNumber", - "PdfFileStamp.Close" + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.FontRepository.FindFont", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Text.TextStamp", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:03:52Z", "status": "verified" }, @@ -402,121 +457,247 @@ "generated_at": "2026-08-20T08:03:52Z", "status": "verified" }, - "add-footer-stamp-10-points-above-bottom": { - "title": "Add Footer Stamp 10 Points Above Bottom Edge", - "filename": "add-footer-stamp-10-points-above-bottom.cs", - "description": "Demonstrates how to use PdfFileStamp to add a footer stamp positioned exactly 10 points above the bottom edge of each PDF page.", + "add-multi-line-watermark-pdf": { + "title": "Add Multi Line Watermark Pdf", + "filename": "add-multi-line-watermark-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-multi-line-watermark-to-pdf": { + "title": "Add Multi Line Watermark To Pdf", + "filename": "add-multi-line-watermark-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-multi-line-watermark-varying-font-sizes": { + "title": "Add Multi Line Watermark Varying Font Sizes", + "filename": "add-multi-line-watermark-varying-font-sizes.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-page-number-stamp-leading-zeros": { + "title": "Add Page Number Stamp with Leading Zeros to PDF", + "filename": "add-page-number-stamp-leading-zeros.cs", + "description": "Shows how to use Aspose.Pdf to stamp Arabic numeral page numbers with leading zeros on every page of a PDF document.", "tags": [ - "footer", + "page-number", "stamp", - "margin", - "pdf", - "Aspose.Pdf" + "leading-zeros", + "Aspose.Pdf", + "facades" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", - "Aspose.Pdf.Facades.PdfFileStamp.AddFooter", + "Aspose.Pdf.Facades.PdfFileStamp.NumberingStyle", + "Aspose.Pdf.Facades.PdfFileStamp.AddPageNumber", "Aspose.Pdf.Facades.PdfFileStamp.Save", - "Aspose.Pdf.FormattedText" + "Aspose.Pdf.Facades.PdfFileStamp.Close" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:03:52Z", "status": "verified" }, - "apply-stamp-to-even-pdf-pages": { - "title": "Apply Stamp to Even PDF Pages", - "filename": "apply-stamp-to-even-pdf-pages.cs", - "description": "Shows how to add a text stamp only to even-numbered pages of a PDF using Aspose.Pdf facades.", + "add-page-number-stamp-to-pdf": { + "title": "Add Page Number Stamp to PDF", + "filename": "add-page-number-stamp-to-pdf.cs", + "description": "Shows how to use Aspose.Pdf.Facades.PdfFileStamp to add a dynamic page‑number stamp (using the \"#\" placeholder) to every page of a PDF document.", "tags": [ "pdf", "stamp", - "even-pages", - "Aspose.Pdf", - "facade" + "page-number", + "facade", + "csharp" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", - "Aspose.Pdf.Facades.Stamp", - "Aspose.Pdf.Facades.FormattedText" + "PdfFileStamp.AddPageNumber", + "PdfFileStamp.StartingNumber", + "PdfFileStamp.Close" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:03:52Z", "status": "verified" }, - "qr-code-and-text-stamp-for-pdf": { - "title": "Create QR Code and Text Stamp for PDF Verification", - "filename": "qr-code-and-text-stamp-for-pdf.cs", - "description": "Demonstrates how to add a QR‑code image stamp together with a descriptive text stamp to a PDF using Aspose.Pdf Facades.", + "add-page-number-stamp-with-leading-zeros": { + "title": "Add Page Number Stamp With Leading Zeros", + "filename": "add-page-number-stamp-with-leading-zeros.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-page-numbers-to-pdf": { + "title": "Add Page Numbers To Pdf", + "filename": "add-page-numbers-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-qr-code-stamp-from-pdf-metadata": { + "title": "Add QR Code Stamp from PDF Metadata", + "filename": "add-qr-code-stamp-from-pdf-metadata.cs", + "description": "Demonstrates how to generate a QR code from a PDF's metadata and apply it as a stamp on the document using Aspose.Pdf.", "tags": [ - "pdf", + "qr-code", "stamp", - "qrcode", - "facade", - "verification" + "metadata", + "pdf", + "facades" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.Stamp", "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.FormattedText", "Aspose.Pdf.Facades.Stamp.BindImage", - "Aspose.Pdf.Facades.Stamp.BindLogo", - "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", + "Aspose.Pdf.Facades.Stamp.SetOrigin", + "Aspose.Pdf.Facades.Stamp.SetImageSize", + "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", "Aspose.Pdf.Facades.PdfFileStamp.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:03:52Z", "status": "verified" }, - "apply-text-stamp-to-specific-pdf-pages": { - "title": "Apply Text Stamp to Specific PDF Pages", - "filename": "apply-text-stamp-to-specific-pdf-pages.cs", - "description": "Shows how to add a text watermark (stamp) to only pages 1, 5, and 10 of a PDF using Aspose.Pdf.Facades.", + "add-qr-code-verification-stamp": { + "title": "Add Qr Code Verification Stamp", + "filename": "add-qr-code-verification-stamp.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-repeating-background-image-stamp": { + "title": "Add Repeating Background Image Stamp", + "filename": "add-repeating-background-image-stamp.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-repeating-background-watermark-image": { + "title": "Add Repeating Background Watermark Image to PDF Pages", + "filename": "add-repeating-background-watermark-image.cs", + "description": "Shows how to use PdfFileStamp with a single Stamp instance to place a semi‑transparent background image watermark on every page of a PDF.", "tags": [ - "pdf", - "stamp", "watermark", - "Aspose.Pdf", - "specific-pages" + "background", + "stamp", + "pdf", + "Aspose.Pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileMend", - "Aspose.Pdf.Facades.FormattedText", - "Aspose.Pdf.Facades.EncodingType", - "Aspose.Pdf.Facades.PdfFileMend.BindPdf", - "Aspose.Pdf.Facades.PdfFileMend.AddText", - "Aspose.Pdf.Facades.PdfFileMend.Save", - "Aspose.Pdf.Facades.PdfFileMend.Close" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T08:03:52Z", - "status": "verified" - }, - "overlay-image-stamp-on-pdf-pages": { - "title": "Overlay Image Stamp on PDF Pages", - "filename": "overlay-image-stamp-on-pdf-pages.cs", - "description": "Demonstrates how to add an image stamp that overlays existing PDF content by setting the stamp's IsBackground property to false using Aspose.Pdf.Facades.", + "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.Facades.Stamp", + "Aspose.Pdf.Facades.Stamp.BindImage", + "Aspose.Pdf.Facades.Stamp.IsBackground", + "Aspose.Pdf.Facades.Stamp.SetImageSize", + "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", + "Aspose.Pdf.Facades.PdfFileStamp.Close" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:03:52Z", + "status": "verified" + }, + "add-right-aligned-image-stamp-to-pdf": { + "title": "Add Right Aligned Image Stamp To Pdf", + "filename": "add-right-aligned-image-stamp-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-right-aligned-logo-stamp-to-pdf": { + "title": "Add Right-Aligned Logo Stamp to PDF", + "filename": "add-right-aligned-logo-stamp-to-pdf.cs", + "description": "Shows how to place an image stamp (logo) at the right margin of each page in a PDF using Aspose.Pdf.", "tags": [ + "image-stamp", + "horizontal-alignment", "pdf", + "logo", + "Aspose.Pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.ImageStamp", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.HorizontalAlignment", + "Aspose.Pdf.VerticalAlignment", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:03:52Z", + "status": "verified" + }, + "add-semi-transparent-background-stamp": { + "title": "Add Semi-Transparent Background Stamp to PDF", + "filename": "add-semi-transparent-background-stamp.cs", + "description": "Demonstrates how to apply an image as a background stamp on all pages of a PDF with 30% opacity using Aspose.Pdf.Facades, preserving document readability.", + "tags": [ "stamp", - "image", - "overlay", - "aspose" + "background", + "opacity", + "pdf", + "Aspose" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.Stamp", + "PdfFileStamp", + "Stamp", + "PdfFileStamp.BindPdf", "Stamp.BindImage", + "Stamp.Opacity", "Stamp.IsBackground", "PdfFileStamp.AddStamp", - "PdfFileStamp.Close" + "PdfFileStamp.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:03:52Z", "status": "verified" }, + "add-semi-transparent-png-background-stamp": { + "title": "Add Semi Transparent Png Background Stamp", + "filename": "add-semi-transparent-png-background-stamp.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-text-stamp-overlay-to-pdf-pages": { + "title": "Add Text Stamp Overlay To Pdf Pages", + "filename": "add-text-stamp-overlay-to-pdf-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "add-transparent-confidential-text-stamp": { "title": "Add Transparent Confidential Text Stamp to Selected PDF Pages", "filename": "add-transparent-confidential-text-stamp.cs", @@ -539,71 +720,127 @@ "generated_at": "2026-08-20T08:03:52Z", "status": "verified" }, - "custom-font-stamp-branding": { - "title": "Add Custom Font Stamp to PDF for Branding", - "filename": "custom-font-stamp-branding.cs", - "description": "Shows how to load a TrueType font from a file, create a formatted text stamp using that font, and apply the stamp to a PDF with Aspose.Pdf facades.", + "add-transparent-text-stamp-to-selected-pdf-pages": { + "title": "Add Transparent Text Stamp To Selected Pdf Pages", + "filename": "add-transparent-text-stamp-to-selected-pdf-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "apply-custom-colored-stamp-with-border": { + "title": "Apply Custom Colored Stamp With Border", + "filename": "apply-custom-colored-stamp-with-border.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "apply-custom-line-height-stamp": { + "title": "Apply Custom Line-Height Stamp to PDF", + "filename": "apply-custom-line-height-stamp.cs", + "description": "Demonstrates how to create a multi‑line watermark with custom line spacing using a formatted text stamp and apply it to all pages of a PDF.", "tags": [ "stamp", - "custom-font", - "branding", + "watermark", + "line-spacing", "pdf", - "facade" + "Aspose" ], "apis_used": [ - "Aspose.Pdf.FontRepository.OpenFont", - "Aspose.Pdf.Facades.FormattedText", "Aspose.Pdf.Facades.Stamp", - "Aspose.Pdf.Facades.Stamp.BindLogo", - "Aspose.Pdf.Facades.Stamp.SetOrigin", - "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", - "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", - "Aspose.Pdf.Facades.PdfFileStamp.Save" + "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.FormattedText", + "FormattedText.AddNewLineText", + "Stamp.BindLogo", + "Stamp.SetOrigin", + "PdfFileStamp.AddStamp" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:03:52Z", "status": "verified" }, - "add-page-number-stamp-leading-zeros": { - "title": "Add Page Number Stamp with Leading Zeros to PDF", - "filename": "add-page-number-stamp-leading-zeros.cs", - "description": "Shows how to use Aspose.Pdf to stamp Arabic numeral page numbers with leading zeros on every page of a PDF document.", + "apply-external-pdf-template-stamp": { + "title": "Apply External PDF Template as Stamp on a Specific Page", + "filename": "apply-external-pdf-template-stamp.cs", + "description": "Shows how to create a PdfFileStamp from an external template PDF and apply it only to the third page of another PDF document.", "tags": [ - "page-number", + "pdf", "stamp", - "leading-zeros", + "template", "Aspose.Pdf", - "facades" + "c#" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.PdfFileStamp.NumberingStyle", - "Aspose.Pdf.Facades.PdfFileStamp.AddPageNumber", - "Aspose.Pdf.Facades.PdfFileStamp.Save", - "Aspose.Pdf.Facades.PdfFileStamp.Close" + "Aspose.Pdf.Facades.Stamp", + "PdfFileStamp.BindPdf", + "Stamp.BindPdf", + "Stamp.Pages", + "PdfFileStamp.AddStamp", + "PdfFileStamp.Save", + "PdfFileStamp.Close" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:03:52Z", "status": "verified" }, - "batch-apply-rotated-pdf-stamp": { - "title": "Batch Apply Rotated PDF Stamp to PDFs", - "filename": "batch-apply-rotated-pdf-stamp.cs", - "description": "Demonstrates how to iterate over PDFs in a network share and apply a rotated stamp taken from another PDF to every page, saving the results to an output folder.", + "apply-image-stamp-to-all-pdf-pages": { + "title": "Apply Image Stamp to All PDF Pages", + "filename": "apply-image-stamp-to-all-pdf-pages.cs", + "description": "Demonstrates using PdfFileStamp and Stamp to add a semi‑transparent image stamp to every page of a PDF in a single operation.", + "tags": [ + "stamp", + "watermark", + "pdf", + "Aspose.Pdf", + "facade" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.Facades.Stamp", + "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", + "Aspose.Pdf.Facades.Stamp.BindImage", + "Aspose.Pdf.Facades.Stamp.SetOrigin", + "Aspose.Pdf.Facades.Stamp.SetImageSize", + "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", + "Aspose.Pdf.Facades.PdfFileStamp.Save" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T08:03:52Z", + "status": "verified" + }, + "apply-multi-line-text-stamp-1-5-line-spacing": { + "title": "Apply Multi Line Text Stamp 1 5 Line Spacing", + "filename": "apply-multi-line-text-stamp-1-5-line-spacing.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "apply-pdf-page-stamp-as-background": { + "title": "Apply PDF Page Stamp as Background to All Pages", + "filename": "apply-pdf-page-stamp-as-background.cs", + "description": "Demonstrates how to use Aspose.Pdf.Facades to stamp every page of a PDF with the first page of another PDF, placing the stamp behind the existing content.", "tags": [ "pdf", "stamp", - "rotation", - "batch", - "network-share" + "background", + "facade", + "Aspose" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileStamp", "Aspose.Pdf.Facades.Stamp", "PdfFileStamp.BindPdf", "Stamp.BindPdf", - "Stamp.Rotation", + "Stamp.IsBackground", "PdfFileStamp.AddStamp", "PdfFileStamp.Save" ], @@ -611,52 +848,127 @@ "generated_at": "2026-08-20T08:03:52Z", "status": "verified" }, - "multi-line-watermark-addnewlinetext": { - "title": "Create Multi‑Line Watermark Using AddNewLineText", - "filename": "multi-line-watermark-addnewlinetext.cs", - "description": "Demonstrates how to build a three‑line watermark with Aspose.Pdf.Facades.FormattedText using AddNewLineText, bind it to a Stamp, and apply it to a PDF document.", + "apply-pdf-stamp-preserve-filenames": { + "title": "Apply Pdf Stamp Preserve Filenames", + "filename": "apply-pdf-stamp-preserve-filenames.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "apply-pdf-template-stamp-to-page": { + "title": "Apply Pdf Template Stamp To Page", + "filename": "apply-pdf-template-stamp-to-page.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "apply-rotated-image-stamp-bottom-right": { + "title": "Apply Rotated Image Stamp Bottom Right", + "filename": "apply-rotated-image-stamp-bottom-right.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "apply-rotated-image-stamp-to-pdf-pages": { + "title": "Apply Rotated Image Stamp to PDF Pages", + "filename": "apply-rotated-image-stamp-to-pdf-pages.cs", + "description": "Demonstrates how to add an image stamp rotated by 30° to the bottom‑right corner of every page in a PDF using the Aspose.Pdf Facades API.", "tags": [ - "watermark", - "formattedtext", "stamp", + "image", + "rotation", "pdf", - "addnewlinetext" + "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.FormattedText", - "Aspose.Pdf.Facades.Stamp.BindLogo", - "Aspose.Pdf.Facades.Stamp.SetOrigin", "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.Facades.Stamp", "Aspose.Pdf.Document", - "Aspose.Pdf.Page" + "Aspose.Pdf.Page", + "Aspose.Pdf.Facades.Stamp.SetImageSize", + "Aspose.Pdf.Facades.Stamp.Rotation", + "Aspose.Pdf.Facades.Stamp.SetOrigin", + "Aspose.Pdf.Facades.PdfFileStamp.AddStamp" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:03:52Z", "status": "verified" }, - "add-right-aligned-logo-stamp-to-pdf": { - "title": "Add Right-Aligned Logo Stamp to PDF", - "filename": "add-right-aligned-logo-stamp-to-pdf.cs", - "description": "Shows how to place an image stamp (logo) at the right margin of each page in a PDF using Aspose.Pdf.", + "apply-rotated-text-stamp-odd-pages": { + "title": "Apply Rotated Text Stamp to Odd Pages", + "filename": "apply-rotated-text-stamp-odd-pages.cs", + "description": "Demonstrates adding a 30‑degree rotated text stamp to the left margin of every odd‑numbered page in a PDF using Aspose.Pdf.", "tags": [ - "image-stamp", - "horizontal-alignment", + "text-stamp", + "rotation", + "odd-pages", "pdf", - "logo", "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.ImageStamp", + "Aspose.Pdf.TextStamp", + "Aspose.Pdf.Text.FontRepository.FindFont", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.HorizontalAlignment", - "Aspose.Pdf.VerticalAlignment", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", + "generated_at": "2026-08-20T08:03:52Z", + "status": "verified" + }, + "apply-rotated-text-stamp-to-odd-pages": { + "title": "Apply Rotated Text Stamp To Odd Pages", + "filename": "apply-rotated-text-stamp-to-odd-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "apply-rotating-stamps-to-pdf-pages": { + "title": "Apply Rotating Stamps to Each PDF Page", + "filename": "apply-rotating-stamps-to-pdf-pages.cs", + "description": "Demonstrates how to add a text stamp to every page of a PDF and rotate each stamp based on the page index using Aspose.Pdf.Facades.", + "tags": [ + "pdf", + "stamp", + "rotation", + "facade", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.Facades.Stamp", + "Aspose.Pdf.Facades.Stamp.BindLogo", + "Aspose.Pdf.Facades.Stamp.Rotation", + "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", + "Aspose.Pdf.Facades.PdfFileStamp.Close" + ], + "difficulty": "intermediate", "generated_at": "2026-08-20T08:03:52Z", "status": "verified" }, + "apply-rotating-text-stamps": { + "title": "Apply Rotating Text Stamps", + "filename": "apply-rotating-text-stamps.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "apply-semi-transparent-png-background-stamp": { "title": "Apply Semi-Transparent PNG Background Stamp to PDF", "filename": "apply-semi-transparent-png-background-stamp.cs", @@ -681,240 +993,263 @@ "generated_at": "2026-08-20T08:03:52Z", "status": "verified" }, - "add-creation-date-stamp": { - "title": "Add Creation Date Stamp to PDF", - "filename": "add-creation-date-stamp.cs", - "description": "Shows how to read a PDF's creation date and place it as a text stamp in the top‑left corner of every page using Aspose.Pdf.", + "apply-stamp-to-even-pdf-pages": { + "title": "Apply Stamp to Even PDF Pages", + "filename": "apply-stamp-to-even-pdf-pages.cs", + "description": "Shows how to add a text stamp only to even-numbered pages of a PDF using Aspose.Pdf facades.", "tags": [ - "creation-date", - "stamp", - "textstamp", "pdf", - "aspose-pdf" + "stamp", + "even-pages", + "Aspose.Pdf", + "facade" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.DocumentInfo", - "Aspose.Pdf.Text.TextStamp", - "Aspose.Pdf.Text.FontRepository", - "Aspose.Pdf.Page", - "Aspose.Pdf.Color", - "Aspose.Pdf.HorizontalAlignment", - "Aspose.Pdf.VerticalAlignment" + "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", + "Aspose.Pdf.Facades.Stamp", + "Aspose.Pdf.Facades.FormattedText" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:03:52Z", "status": "verified" }, - "merge-cover-page-background": { - "title": "Merge Cover Page as Background Using PdfFileStamp", - "filename": "merge-cover-page-background.cs", - "description": "Shows how to use Aspose.Pdf.Facades.PdfFileStamp and Stamp to apply the first page of a cover PDF as a background on all pages of another PDF, creating a merged document.", + "apply-text-stamp-to-even-pages": { + "title": "Apply Text Stamp To Even Pages", + "filename": "apply-text-stamp-to-even-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "apply-text-stamp-to-specific-pdf-pages": { + "title": "Apply Text Stamp to Specific PDF Pages", + "filename": "apply-text-stamp-to-specific-pdf-pages.cs", + "description": "Shows how to add a text watermark (stamp) to only pages 1, 5, and 10 of a PDF using Aspose.Pdf.Facades.", "tags": [ "pdf", - "cover-page", - "background", "stamp", - "Aspose.Pdf" + "watermark", + "Aspose.Pdf", + "specific-pages" ], "apis_used": [ - "PdfFileStamp", - "Stamp", - "Stamp.BindPdf", - "Stamp.IsBackground", - "PdfFileStamp.AddStamp", - "PdfFileStamp.Close" + "Aspose.Pdf.Facades.PdfFileMend", + "Aspose.Pdf.Facades.FormattedText", + "Aspose.Pdf.Facades.EncodingType", + "Aspose.Pdf.Facades.PdfFileMend.BindPdf", + "Aspose.Pdf.Facades.PdfFileMend.AddText", + "Aspose.Pdf.Facades.PdfFileMend.Save", + "Aspose.Pdf.Facades.PdfFileMend.Close" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:03:52Z", "status": "verified" }, - "add-confidential-text-and-logo-stamp": { - "title": "Add Confidential Text and Logo Stamp to PDF", - "filename": "add-confidential-text-and-logo-stamp.cs", - "description": "Demonstrates using Aspose.Pdf.Facades to place a combined formatted text stamp and a logo image onto a PDF document.", - "tags": [ - "stamp", - "logo", - "confidential", - "pdf", - "facade" - ], - "apis_used": [ - "PdfFileStamp", - "Stamp", - "FormattedText", - "EncodingType", - "PdfFileStamp.BindPdf", - "Stamp.BindLogo", - "Stamp.BindImage", - "PdfFileStamp.AddStamp" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:03:52Z", + "apply-text-watermark-all-pdf-pages": { + "title": "Apply Text Watermark All Pdf Pages", + "filename": "apply-text-watermark-all-pdf-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "apply-custom-line-height-stamp": { - "title": "Apply Custom Line-Height Stamp to PDF", - "filename": "apply-custom-line-height-stamp.cs", - "description": "Demonstrates how to create a multi‑line watermark with custom line spacing using a formatted text stamp and apply it to all pages of a PDF.", + "apply-translucent-text-watermark": { + "title": "Apply Translucent Text Watermark to All PDF Pages", + "filename": "apply-translucent-text-watermark.cs", + "description": "Demonstrates how to use Aspose.Pdf.Facades to add a semi‑transparent text watermark to every page of a PDF document.", "tags": [ - "stamp", "watermark", - "line-spacing", + "opacity", "pdf", - "Aspose" + "facade", + "text-stamp" ], "apis_used": [ - "Aspose.Pdf.Facades.Stamp", "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.FormattedText", - "FormattedText.AddNewLineText", - "Stamp.BindLogo", - "Stamp.SetOrigin", - "PdfFileStamp.AddStamp" + "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", + "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", + "Aspose.Pdf.Facades.PdfFileStamp.Save", + "Aspose.Pdf.Facades.Stamp", + "Aspose.Pdf.Facades.Stamp.BindLogo", + "Aspose.Pdf.Facades.Stamp.Opacity" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:03:52Z", "status": "verified" }, - "rotate-text-stamp-on-pdf-pages": { - "title": "Rotate Text Stamp on PDF Pages", - "filename": "rotate-text-stamp-on-pdf-pages.cs", - "description": "Demonstrates creating a formatted text stamp, setting its rotation to 90 degrees, and applying it to all pages of a PDF using Aspose.Pdf.Facades.", + "apply-translucent-watermark-to-pdf": { + "title": "Apply Translucent Watermark To Pdf", + "filename": "apply-translucent-watermark-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "batch-add-multi-line-watermark-to-pdfs": { + "title": "Batch Add Multi‑Line Watermark to PDFs", + "filename": "batch-add-multi-line-watermark-to-pdfs.cs", + "description": "Demonstrates how to process all PDF files in a folder and apply the same multi‑line text watermark to each document using Aspose.Pdf facades.", "tags": [ - "stamp", - "rotation", - "pdf", "watermark", + "pdf", + "batch", + "stamp", "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.FormattedText", "Aspose.Pdf.Facades.Stamp", - "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", - "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", - "Aspose.Pdf.Facades.PdfFileStamp.Save", - "Aspose.Pdf.Facades.Stamp.Rotation", - "Aspose.Pdf.Facades.Stamp.SetOrigin" + "Aspose.Pdf.Facades.FormattedText", + "PdfFileStamp.BindPdf", + "PdfFileStamp.AddStamp", + "PdfFileStamp.Save", + "Stamp.BindLogo", + "Stamp.SetOrigin" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:03:52Z", "status": "verified" }, - "add-footer-with-page-count": { - "title": "Add Footer with Page Count to PDF", - "filename": "add-footer-with-page-count.cs", - "description": "Shows how to use Aspose.Pdf.Facades.PdfFileStamp to add a footer that displays the current page number and total page count on each page of a PDF document.", + "batch-add-rotated-image-stamp-to-first-page": { + "title": "Batch Add Rotated Image Stamp to First Page of PDFs", + "filename": "batch-add-rotated-image-stamp-to-first-page.cs", + "description": "Shows how to loop through a directory of PDF files and apply a rotated image stamp to the first page of each document using Aspose.Pdf.Facades.", "tags": [ "pdf", - "footer", - "page-number", "stamp", - "aspose-pdf" + "image", + "rotation", + "batch" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", - "Aspose.Pdf.Facades.PdfFileStamp.AddPageNumber", - "Aspose.Pdf.Facades.PdfFileStamp.Save", - "Aspose.Pdf.Facades.PdfFileStamp.Close" + "PdfFileStamp", + "Stamp", + "PdfFileStamp.BindPdf", + "Stamp.BindImage", + "Stamp.Rotation", + "Stamp.Pages", + "PdfFileStamp.AddStamp", + "PdfFileStamp.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:03:52Z", "status": "verified" }, - "combine-multiple-pdfs-into-multi-page-stamp": { - "title": "Combine Multiple PDFs into a Multi‑Page Stamp", - "filename": "combine-multiple-pdfs-into-multi-page-stamp.cs", - "description": "Shows how to concatenate several PDF files into a single multi‑page PDF and apply it as a stamp to all pages of another PDF using Aspose.Pdf.Facades.", + "batch-add-rotated-image-stamp": { + "title": "Batch Add Rotated Image Stamp", + "filename": "batch-add-rotated-image-stamp.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "batch-apply-rotated-pdf-stamp": { + "title": "Batch Apply Rotated PDF Stamp to PDFs", + "filename": "batch-apply-rotated-pdf-stamp.cs", + "description": "Demonstrates how to iterate over PDFs in a network share and apply a rotated stamp taken from another PDF to every page, saving the results to an output folder.", "tags": [ - "pdf-stamp", - "concatenate", - "aspose-pdf", - "facade", - "multi-page" + "pdf", + "stamp", + "rotation", + "batch", + "network-share" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Facades.PdfFileEditor.Concatenate", "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.Stamp" + "Aspose.Pdf.Facades.Stamp", + "PdfFileStamp.BindPdf", + "Stamp.BindPdf", + "Stamp.Rotation", + "PdfFileStamp.AddStamp", + "PdfFileStamp.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:03:52Z", "status": "verified" }, - "add-custom-border-stamp-to-pdf": { - "title": "Add Custom Border Stamp Annotation to PDF", - "filename": "add-custom-border-stamp-to-pdf.cs", - "description": "Demonstrates how to load a PDF, create a rubber‑stamp annotation with a custom red border and thickness, place it on a page, and save the modified document.", + "combine-image-text-pdf-stamp": { + "title": "Combine Image and Text into a PDF Stamp", + "filename": "combine-image-text-pdf-stamp.cs", + "description": "Demonstrates creating a single stamp that contains a logo image and formatted text, then applying it to a PDF document using Aspose.Pdf.Facades.", "tags": [ "stamp", - "annotation", - "border", + "image", + "text", "pdf", - "Aspose.Pdf" + "watermark" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Annotations.StampAnnotation", - "Aspose.Pdf.Annotations.Border", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Color", - "Aspose.Pdf.Page.Annotations.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.Facades.Stamp", + "Aspose.Pdf.Facades.Stamp.BindImage", + "Aspose.Pdf.Facades.Stamp.BindLogo", + "Aspose.Pdf.Text.FormattedText" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:03:52Z", "status": "verified" }, - "batch-add-rotated-image-stamp-to-first-page": { - "title": "Batch Add Rotated Image Stamp to First Page of PDFs", - "filename": "batch-add-rotated-image-stamp-to-first-page.cs", - "description": "Shows how to loop through a directory of PDF files and apply a rotated image stamp to the first page of each document using Aspose.Pdf.Facades.", + "combine-multiple-pdfs-into-multi-page-stamp": { + "title": "Combine Multiple PDFs into a Multi‑Page Stamp", + "filename": "combine-multiple-pdfs-into-multi-page-stamp.cs", + "description": "Shows how to concatenate several PDF files into a single multi‑page PDF and apply it as a stamp to all pages of another PDF using Aspose.Pdf.Facades.", "tags": [ - "pdf", - "stamp", - "image", - "rotation", - "batch" - ], - "apis_used": [ - "PdfFileStamp", - "Stamp", - "PdfFileStamp.BindPdf", - "Stamp.BindImage", - "Stamp.Rotation", - "Stamp.Pages", - "PdfFileStamp.AddStamp", - "PdfFileStamp.Save" + "pdf-stamp", + "concatenate", + "aspose-pdf", + "facade", + "multi-page" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Facades.PdfFileEditor.Concatenate", + "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.Facades.Stamp" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:03:52Z", "status": "verified" }, - "apply-image-stamp-to-all-pdf-pages": { - "title": "Apply Image Stamp to All PDF Pages", - "filename": "apply-image-stamp-to-all-pdf-pages.cs", - "description": "Demonstrates using PdfFileStamp and Stamp to add a semi‑transparent image stamp to every page of a PDF in a single operation.", + "create-multi-page-pdf-stamp": { + "title": "Create Multi Page Pdf Stamp", + "filename": "create-multi-page-pdf-stamp.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "custom-font-stamp-branding": { + "title": "Add Custom Font Stamp to PDF for Branding", + "filename": "custom-font-stamp-branding.cs", + "description": "Shows how to load a TrueType font from a file, create a formatted text stamp using that font, and apply the stamp to a PDF with Aspose.Pdf facades.", "tags": [ "stamp", - "watermark", + "custom-font", + "branding", "pdf", - "Aspose.Pdf", "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.FontRepository.OpenFont", + "Aspose.Pdf.Facades.FormattedText", "Aspose.Pdf.Facades.Stamp", - "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", - "Aspose.Pdf.Facades.Stamp.BindImage", + "Aspose.Pdf.Facades.Stamp.BindLogo", "Aspose.Pdf.Facades.Stamp.SetOrigin", - "Aspose.Pdf.Facades.Stamp.SetImageSize", + "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", "Aspose.Pdf.Facades.PdfFileStamp.Save" ], @@ -922,132 +1257,151 @@ "generated_at": "2026-08-20T08:03:52Z", "status": "verified" }, - "add-file-name-header-stamp-to-pdf": { - "title": "Add File Name Header Stamp to PDF", - "filename": "add-file-name-header-stamp-to-pdf.cs", - "description": "Demonstrates creating a TextStamp that shows the PDF's file name in the header of each page and applying it to all pages of the document.", - "tags": [ - "stamp", - "header", - "filename", - "textstamp", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextStamp", - "Aspose.Pdf.FontRepository.FindFont", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Color" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T08:03:52Z", + "merge-cover-page-background-pdf": { + "title": "Merge Cover Page Background Pdf", + "filename": "merge-cover-page-background-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "add-semi-transparent-background-stamp": { - "title": "Add Semi-Transparent Background Stamp to PDF", - "filename": "add-semi-transparent-background-stamp.cs", - "description": "Demonstrates how to apply an image as a background stamp on all pages of a PDF with 30% opacity using Aspose.Pdf.Facades, preserving document readability.", + "merge-cover-page-background": { + "title": "Merge Cover Page as Background Using PdfFileStamp", + "filename": "merge-cover-page-background.cs", + "description": "Shows how to use Aspose.Pdf.Facades.PdfFileStamp and Stamp to apply the first page of a cover PDF as a background on all pages of another PDF, creating a merged document.", "tags": [ - "stamp", - "background", - "opacity", "pdf", - "Aspose" + "cover-page", + "background", + "stamp", + "Aspose.Pdf" ], "apis_used": [ "PdfFileStamp", "Stamp", - "PdfFileStamp.BindPdf", - "Stamp.BindImage", - "Stamp.Opacity", + "Stamp.BindPdf", "Stamp.IsBackground", "PdfFileStamp.AddStamp", - "PdfFileStamp.Save" + "PdfFileStamp.Close" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:03:52Z", "status": "verified" }, - "add-multi-line-text-watermark": { - "title": "Add Multi‑Line Text Watermark with Varying Font Sizes", - "filename": "add-multi-line-text-watermark.cs", - "description": "Demonstrates how to apply a multi‑line watermark to each page of a PDF, using different font sizes for visual hierarchy and semi‑transparent rendering.", + "multi-line-watermark-addnewlinetext": { + "title": "Create Multi‑Line Watermark Using AddNewLineText", + "filename": "multi-line-watermark-addnewlinetext.cs", + "description": "Demonstrates how to build a three‑line watermark with Aspose.Pdf.Facades.FormattedText using AddNewLineText, bind it to a Stamp, and apply it to a PDF document.", "tags": [ "watermark", + "formattedtext", + "stamp", "pdf", - "textstamp", - "fontsize", - "aspose-pdf" + "addnewlinetext" ], "apis_used": [ + "Aspose.Pdf.Facades.FormattedText", + "Aspose.Pdf.Facades.Stamp.BindLogo", + "Aspose.Pdf.Facades.Stamp.SetOrigin", + "Aspose.Pdf.Facades.PdfFileStamp", "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.FontRepository.FindFont", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Text.TextStamp", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:03:52Z", "status": "verified" }, - "stamp-pdf-with-dynamic-barcode": { - "title": "Stamp PDF with Dynamic Barcode Using Document ID", - "filename": "stamp-pdf-with-dynamic-barcode.cs", - "description": "Demonstrates how to generate a barcode from a PDF's unique identifier and stamp it onto the original document using Aspose.Pdf facades.", + "overlay-disclaimer-pdf-first-page": { + "title": "Overlay Disclaimer Pdf First Page", + "filename": "overlay-disclaimer-pdf-first-page.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "overlay-image-stamp-on-pdf-pages": { + "title": "Overlay Image Stamp on PDF Pages", + "filename": "overlay-image-stamp-on-pdf-pages.cs", + "description": "Demonstrates how to add an image stamp that overlays existing PDF content by setting the stamp's IsBackground property to false using Aspose.Pdf.Facades.", "tags": [ - "barcode", + "pdf", "stamp", + "image", + "overlay", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.Facades.Stamp", + "Stamp.BindImage", + "Stamp.IsBackground", + "PdfFileStamp.AddStamp", + "PdfFileStamp.Close" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:03:52Z", + "status": "verified" + }, + "overlay-legal-disclaimer-with-pdffilestamp": { + "title": "Overlay Legal Disclaimer on First Page Using PdfFileStamp", + "filename": "overlay-legal-disclaimer-with-pdffilestamp.cs", + "description": "Shows how to apply a disclaimer PDF as a background stamp on the first page of multiple target PDFs using Aspose.Pdf's PdfFileStamp facade.", + "tags": [ "pdf", - "facades", - "document-id" + "stamp", + "disclaimer", + "aspose", + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileStamp", "Aspose.Pdf.Facades.Stamp", - "Aspose.Pdf.Forms.BarcodeField", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Facades.Stamp.BindPdf", + "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", + "Aspose.Pdf.Facades.PdfFileStamp.Close" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:03:52Z", "status": "verified" }, - "apply-rotated-text-stamp-odd-pages": { - "title": "Apply Rotated Text Stamp to Odd Pages", - "filename": "apply-rotated-text-stamp-odd-pages.cs", - "description": "Demonstrates adding a 30‑degree rotated text stamp to the left margin of every odd‑numbered page in a PDF using Aspose.Pdf.", + "qr-code-and-text-stamp-for-pdf": { + "title": "Create QR Code and Text Stamp for PDF Verification", + "filename": "qr-code-and-text-stamp-for-pdf.cs", + "description": "Demonstrates how to add a QR‑code image stamp together with a descriptive text stamp to a PDF using Aspose.Pdf Facades.", "tags": [ - "text-stamp", - "rotation", - "odd-pages", "pdf", - "Aspose.Pdf" + "stamp", + "qrcode", + "facade", + "verification" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.TextStamp", - "Aspose.Pdf.Text.FontRepository.FindFont", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.Stamp", + "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.Facades.FormattedText", + "Aspose.Pdf.Facades.Stamp.BindImage", + "Aspose.Pdf.Facades.Stamp.BindLogo", + "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", + "Aspose.Pdf.Facades.PdfFileStamp.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:03:52Z", "status": "verified" }, - "add-dynamic-text-stamp-to-pdf": { - "title": "Add Dynamic Text Stamp to PDF", - "filename": "add-dynamic-text-stamp-to-pdf.cs", - "description": "Demonstrates creating a TextStamp with interpolated author and date values, applying it to each page of a PDF, and saving the stamped document.", + "rotate-text-stamp-45-degrees": { + "title": "Rotate Text Stamp 45 Degrees in PDF", + "filename": "rotate-text-stamp-45-degrees.cs", + "description": "Shows how to add a TextStamp to a PDF page and rotate it 45° around its centre using the RotateAngle property.", "tags": [ + "text-stamp", + "rotation", "pdf", - "textstamp", "watermark", - "aspose-pdf", - "string-interpolation" + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", @@ -1060,73 +1414,59 @@ "generated_at": "2026-08-20T08:03:52Z", "status": "verified" }, - "add-repeating-background-watermark-image": { - "title": "Add Repeating Background Watermark Image to PDF Pages", - "filename": "add-repeating-background-watermark-image.cs", - "description": "Shows how to use PdfFileStamp with a single Stamp instance to place a semi‑transparent background image watermark on every page of a PDF.", + "rotate-text-stamp-90-degrees": { + "title": "Rotate Text Stamp 90 Degrees", + "filename": "rotate-text-stamp-90-degrees.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "rotate-text-stamp-on-pdf-pages": { + "title": "Rotate Text Stamp on PDF Pages", + "filename": "rotate-text-stamp-on-pdf-pages.cs", + "description": "Demonstrates creating a formatted text stamp, setting its rotation to 90 degrees, and applying it to all pages of a PDF using Aspose.Pdf.Facades.", "tags": [ - "watermark", - "background", "stamp", + "rotation", "pdf", + "watermark", "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.Facades.FormattedText", "Aspose.Pdf.Facades.Stamp", - "Aspose.Pdf.Facades.Stamp.BindImage", - "Aspose.Pdf.Facades.Stamp.IsBackground", - "Aspose.Pdf.Facades.Stamp.SetImageSize", + "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", - "Aspose.Pdf.Facades.PdfFileStamp.Close" + "Aspose.Pdf.Facades.PdfFileStamp.Save", + "Aspose.Pdf.Facades.Stamp.Rotation", + "Aspose.Pdf.Facades.Stamp.SetOrigin" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:03:52Z", "status": "verified" }, - "add-qr-code-stamp-from-pdf-metadata": { - "title": "Add QR Code Stamp from PDF Metadata", - "filename": "add-qr-code-stamp-from-pdf-metadata.cs", - "description": "Demonstrates how to generate a QR code from a PDF's metadata and apply it as a stamp on the document using Aspose.Pdf.", + "stamp-pdf-with-dynamic-barcode": { + "title": "Stamp PDF with Dynamic Barcode Using Document ID", + "filename": "stamp-pdf-with-dynamic-barcode.cs", + "description": "Demonstrates how to generate a barcode from a PDF's unique identifier and stamp it onto the original document using Aspose.Pdf facades.", "tags": [ - "qr-code", + "barcode", "stamp", - "metadata", "pdf", - "facades" + "facades", + "document-id" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.Stamp", "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.Stamp.BindImage", - "Aspose.Pdf.Facades.Stamp.SetOrigin", - "Aspose.Pdf.Facades.Stamp.SetImageSize", - "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", - "Aspose.Pdf.Facades.PdfFileStamp.Save" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:03:52Z", - "status": "verified" - }, - "add-multi-line-colored-header-stamp": { - "title": "Add Multi-Line Colored Header Stamp to PDF", - "filename": "add-multi-line-colored-header-stamp.cs", - "description": "Demonstrates how to apply a multi‑line header stamp with different font colors to each line using Aspose.Pdf Facades.", - "tags": [ - "pdf", - "stamp", - "header", - "colored-text", - "facades" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", - "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", - "Aspose.Pdf.Facades.PdfFileStamp.Save", - "Aspose.Pdf.Facades.Stamp.BindLogo", - "Aspose.Pdf.Facades.Stamp.SetOrigin", - "Aspose.Pdf.Text.FormattedText" + "Aspose.Pdf.Facades.Stamp", + "Aspose.Pdf.Forms.BarcodeField", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:03:52Z", diff --git a/facades-texts-and-images/AGENTS.md b/facades-texts-and-images/AGENTS.md index ae03e4dac..b71787c1a 100644 --- a/facades-texts-and-images/AGENTS.md +++ b/facades-texts-and-images/AGENTS.md @@ -8,7 +8,7 @@ parent: ../agents.md # AGENTS - facades-texts-and-images -> **Facades texts and images** in PDF using C# / .NET -- **28** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. +> **Facades texts and images** in PDF using C# / .NET -- **45** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. ## Persona @@ -23,18 +23,18 @@ See the root [agents.md](../agents.md) for repository-wide conventions and bound ## Required Namespaces -- `using Aspose.Pdf.Facades;` (28/28 files) ← category-specific -- `using Aspose.Pdf;` (14/28 files) ← category-specific -- `using Aspose.Pdf.Text;` (5/28 files) -- `using System;` (28/28 files) -- `using System.IO;` (27/28 files) -- `using System.Drawing.Imaging;` (3/28 files) -- `using System.Drawing;` (2/28 files) -- `using System.Linq;` (2/28 files) -- `using Microsoft.VisualStudio.TestTools.UnitTesting;` (1/28 files) -- `using NUnit.Framework;` (1/28 files) -- `using System.Threading;` (1/28 files) -- `using System.Threading.Tasks;` (1/28 files) +- `using Aspose.Pdf.Facades;` (28/45 files) ← category-specific +- `using Aspose.Pdf;` (14/45 files) +- `using Aspose.Pdf.Text;` (5/45 files) +- `using System;` (28/45 files) +- `using System.IO;` (27/45 files) +- `using System.Drawing.Imaging;` (3/45 files) +- `using System.Drawing;` (2/45 files) +- `using System.Linq;` (2/45 files) +- `using Microsoft.VisualStudio.TestTools.UnitTesting;` (1/45 files) +- `using NUnit.Framework;` (1/45 files) +- `using System.Threading;` (1/45 files) +- `using System.Threading.Tasks;` (1/45 files) ## Common Code Pattern @@ -53,35 +53,38 @@ tool.Save("output.pdf"); |------|-------|----------|-------------| | [add-background-png-to-all-pdf-pages](./add-background-png-to-all-pdf-pages.cs) | Add Background PNG to All PDF Pages | `Document`, `Rect`, `BindPdf` | Shows how to load a PDF, retrieve each page's dimensions, and overlay a PNG image as a background... | | [add-header-image-to-pdf-documents](./add-header-image-to-pdf-documents.cs) | Add Header Image to PDF Documents | `PdfFileStamp`, `BindPdf`, `AddHeader` | Shows how to insert a header image into one or more PDF files using Aspose.Pdf.Facades.PdfFileSta... | +| [add-header-image-to-pdfs](./add-header-image-to-pdfs.cs) | Add header image to pdfs | | Add header image to pdfs | +| [add-image-and-text-audit-pdf](./add-image-and-text-audit-pdf.cs) | Add image and text audit pdf | | Add image and text audit pdf | | [add-image-and-text-to-pdf-with-audit-logging](./add-image-and-text-to-pdf-with-audit-logging.cs) | Add Image and Text to PDF with Audit Logging | `Document`, `PdfFileMend`, `AddImage` | Loads a PDF, adds an image and a formatted text watermark to page 1, logs each AddImage and AddTe... | | [add-image-and-text-watermark-to-pdf](./add-image-and-text-watermark-to-pdf.cs) | Add Image and Semi‑Transparent Text Watermark to PDF | `PdfFileStamp`, `Stamp`, `FormattedText` | Demonstrates how to combine an image and semi‑transparent text into a single stamp and apply it a... | +| [add-image-to-all-pdf-pages-dynamic-position](./add-image-to-all-pdf-pages-dynamic-position.cs) | Add image to all pdf pages dynamic position | | Add image to all pdf pages dynamic position | | [add-image-to-each-pdf-page-dynamic-position](./add-image-to-each-pdf-page-dynamic-position.cs) | Add Image to Each PDF Page with Dynamic Positioning | `Document`, `Page`, `PdfFileMend` | Loads a PDF, calculates each page's dimensions, and places a PNG image in the bottom‑right corner... | +| [add-image-to-pdf-get-memorystream](./add-image-to-pdf-get-memorystream.cs) | Add image to pdf get memorystream | | Add image to pdf get memorystream | | [add-image-to-pdf-page](./add-image-to-pdf-page.cs) | Add Image to Specific PDF Page | `PdfFileMend`, `BindPdf`, `AddImage` | Shows how to use Aspose.Pdf.Facades to insert an image onto a chosen page of a PDF at given recta... | | [add-image-to-pdf-using-pdffilemend](./add-image-to-pdf-using-pdffilemend.cs) | Add Image to PDF Using PdfFileMend with Try‑Finally | `PdfFileMend`, `BindPdf`, `AddImage` | Demonstrates how to bind a PDF, insert an image on a page, save the result, and guarantee that Pd... | | [add-image-to-pdf-with-format-validation](./add-image-to-pdf-with-format-validation.cs) | Add Image to PDF with Format Validation | `PdfFileMend`, `BindPdf`, `AddImage` | Demonstrates how to validate an image's file format and then add the image to a PDF page using As... | +| [add-image-to-pdf-with-pdffilemend](./add-image-to-pdf-with-pdffilemend.cs) | Add image to pdf with pdffilemend | | Add image to pdf with pdffilemend | | [add-image-verify-pdf-byte-size](./add-image-verify-pdf-byte-size.cs) | Add Image to PDF and Verify Byte Size Increase | `Document`, `PdfFileMend`, `BindPdf` | Creates a minimal PDF, binds it with PdfFileMend, adds a PNG image, saves the modified document, ... | | [add-images-to-pdf-with-error-handling](./add-images-to-pdf-with-error-handling.cs) | Add Images to PDF with Error Handling | `PdfFileMend`, `AddImage`, `Close` | Demonstrates how to insert multiple images into a PDF using Aspose.Pdf's PdfFileMend facade while... | | [add-multi-line-text-block-page-3](./add-multi-line-text-block-page-3.cs) | Add Multi‑Line Text Block with Custom Line Spacing to Page 3 | `PdfFileMend`, `Document`, `Page` | Demonstrates how to use the PdfFileMend facade to bind an existing PDF, create a multi‑line TextP... | +| [add-multi-line-text-left-margin-page-3](./add-multi-line-text-left-margin-page-3.cs) | Add multi line text left margin page 3 | | Add multi line text left margin page 3 | | [add-png-image-to-pdf-page](./add-png-image-to-pdf-page.cs) | Add PNG Image to Specific PDF Page using PdfFileMend | `PdfFileMend`, `BindPdf`, `AddImage` | Demonstrates how to bind an existing PDF with PdfFileMend, insert a PNG image onto page two at de... | +| [add-promotional-text-multiple-pdf-pages](./add-promotional-text-multiple-pdf-pages.cs) | Add promotional text multiple pdf pages | | Add promotional text multiple pdf pages | | [add-promotional-text-to-specific-pdf-pages](./add-promotional-text-to-specific-pdf-pages.cs) | Add Promotional Text to Specific PDF Pages | `PdfFileStamp`, `Stamp`, `FormattedText` | Shows how to insert the same promotional message on pages 3, 5, and 7 of a PDF using Aspose.Pdf's... | | [add-text-at-coordinates-verify-position](./add-text-at-coordinates-verify-position.cs) | Add Text at Specific Coordinates and Verify Position | `Document`, `Page`, `TextFragment` | Creates a blank PDF, adds a text fragment at defined X/Y coordinates using TextBuilder, saves and... | | [add-tiff-image-to-last-page-pdf](./add-tiff-image-to-last-page-pdf.cs) | Add TIFF Image to Last Page of PDF using PdfFileMend | `PdfFileMend`, `BindPdf`, `AddImage` | Demonstrates how to use Aspose.Pdf.Facades.PdfFileMend to embed a TIFF image onto the final page ... | +| [add-tiff-image-to-last-pdf-page](./add-tiff-image-to-last-pdf-page.cs) | Add tiff image to last pdf page | | Add tiff image to last pdf page | +| [add-word-wrapped-footer-to-pdf](./add-word-wrapped-footer-to-pdf.cs) | Add word wrapped footer to pdf | | Add word wrapped footer to pdf | | [add-wrapped-footer-to-pdf-pages](./add-wrapped-footer-to-pdf-pages.cs) | Add Word‑by‑Word Wrapped Footer to PDF Pages | `Document`, `PageInfo`, `FormattedText` | Shows how to use Aspose.Pdf Facade API to add a formatted footer that wraps word‑by‑word across t... | | [async-add-image-to-pdf](./async-add-image-to-pdf.cs) | Asynchronously Add Image to PDF Using PdfFileMend | `PdfFileMend`, `BindPdf`, `AddImage` | Demonstrates how to modify a PDF on a background thread by adding an image to the first page with... | | [batch-add-company-logo-to-pdfs](./batch-add-company-logo-to-pdfs.cs) | Batch Add Company Logo to PDFs | `PdfFileMend`, `BindPdf`, `AddImage` | Shows how to process all PDF files in a folder and overlay a PNG company logo at the top‑right co... | +| [batch-add-logo-to-pdf-pages](./batch-add-logo-to-pdf-pages.cs) | Batch add logo to pdf pages | | Batch add logo to pdf pages | | [batch-extract-images-from-pdfs](./batch-extract-images-from-pdfs.cs) | Batch Extract Images from PDFs with Page and Index Naming | `PdfExtractor`, `BindPdf`, `StartPage` | Shows how to process multiple PDF files, extract images from each page using Aspose.Pdf.Facades.P... | | [configure-word-wrapping-bywords-add-long-text](./configure-word-wrapping-bywords-add-long-text.cs) | Configure Word Wrapping ByWords and Add Long Text to PDF | `Document`, `PdfFileMend`, `IsWordWrap` | The example shows how to enable word wrapping on a PDF using PdfFileMend, set the wrap mode to By... | -| [extract-images-from-pdf-pages](./extract-images-from-pdf-pages.cs) | Extract Images from Specific PDF Pages | `PdfExtractor`, `BindPdf`, `StartPage` | Shows how to use Aspose.Pdf.Facades.PdfExtractor to extract all images from pages 2‑5 of a PDF an... | -| [extract-images-from-pdf-to-png](./extract-images-from-pdf-to-png.cs) | Extract Images from PDF to PNG using PdfExtractor | `PdfExtractor`, `BindPdf`, `ExtractImage` | Demonstrates how to use Aspose.Pdf's PdfExtractor to extract all images from a PDF document and s... | -| [insert-png-signature-image-on-every-pdf-page](./insert-png-signature-image-on-every-pdf-page.cs) | Insert PNG Signature Image on Every PDF Page | `PdfFileMend`, `BindPdf`, `AddImage` | Demonstrates how to use PdfFileMend to add a PNG signature image to the bottom‑left corner of eac... | -| [overlay-semi-transparent-gif-on-pdf](./overlay-semi-transparent-gif-on-pdf.cs) | Overlay Semi-Transparent GIF on PDF | `PdfFileMend`, `BindPdf`, `AddImage` | Demonstrates how to place a semi‑transparent GIF over an existing PNG in a PDF using CompositingP... | -| [remove-all-images-from-pdf](./remove-all-images-from-pdf.cs) | Remove All Images from PDF | `PdfContentEditor`, `BindPdf`, `DeleteImage` | Shows how to delete every image in a PDF using Aspose.Pdf's PdfContentEditor facade and save the ... | -| [remove-image-from-pdf-page](./remove-image-from-pdf-page.cs) | Remove Image from Specific PDF Page | `PdfContentEditor`, `BindPdf`, `DeleteImage` | Demonstrates how to delete a particular image identified by its object ID from page four of a PDF... | -| [replace-jpeg-with-bmp-first-page](./replace-jpeg-with-bmp-first-page.cs) | Replace JPEG with High‑Resolution BMP on First PDF Page | `Document`, `PdfContentEditor`, `BindPdf` | Demonstrates how to replace the first image on page one of a PDF with a higher‑resolution BMP usi... | -| [replace-low-res-images-with-high-res-pngs](./replace-low-res-images-with-high-res-pngs.cs) | Replace Low-Resolution Images with High-Resolution PNGs in P... | `Document`, `PdfContentEditor`, `PdfExtractor` | Demonstrates how to iterate through each page of a PDF, detect embedded images, and replace low‑r... | +| ... | | | *and 15 more files* | ## Category Statistics -- Total examples: 28 +- Total examples: 45 ## Category-Specific Tips @@ -123,5 +126,5 @@ tool.Save("output.pdf"); - Review code examples in this folder for facades-texts-and-images patterns -Updated: 2026-08-20 | Run: `20260820_001147_12d7b3` +Updated: 2026-09-10 | Run: `20260910_054408_87a7f4` diff --git a/facades-texts-and-images/README.md b/facades-texts-and-images/README.md new file mode 100644 index 000000000..8b9f88e61 --- /dev/null +++ b/facades-texts-and-images/README.md @@ -0,0 +1,64 @@ +# Facades texts and images + +> **Facades texts and images** in PDF using C# / .NET -- **45** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. + +- Category: `facades-texts-and-images` +- Examples: 45 +- NuGet: `Aspose.PDF 26.8.0` -- target `net10.0` + +## Examples + +- [`add-background-png-to-all-pdf-pages.cs`](./add-background-png-to-all-pdf-pages.cs) -- Add background png to all pdf pages +- [`add-header-image-to-pdf-documents.cs`](./add-header-image-to-pdf-documents.cs) -- Add header image to pdf documents +- [`add-header-image-to-pdfs.cs`](./add-header-image-to-pdfs.cs) -- Add header image to pdfs +- [`add-image-and-text-audit-pdf.cs`](./add-image-and-text-audit-pdf.cs) -- Add image and text audit pdf +- [`add-image-and-text-to-pdf-with-audit-logging.cs`](./add-image-and-text-to-pdf-with-audit-logging.cs) -- Add image and text to pdf with audit logging +- [`add-image-and-text-watermark-to-pdf.cs`](./add-image-and-text-watermark-to-pdf.cs) -- Add image and text watermark to pdf +- [`add-image-to-all-pdf-pages-dynamic-position.cs`](./add-image-to-all-pdf-pages-dynamic-position.cs) -- Add image to all pdf pages dynamic position +- [`add-image-to-each-pdf-page-dynamic-position.cs`](./add-image-to-each-pdf-page-dynamic-position.cs) -- Add image to each pdf page dynamic position +- [`add-image-to-pdf-get-memorystream.cs`](./add-image-to-pdf-get-memorystream.cs) -- Add image to pdf get memorystream +- [`add-image-to-pdf-page.cs`](./add-image-to-pdf-page.cs) -- Add image to pdf page +- [`add-image-to-pdf-using-pdffilemend.cs`](./add-image-to-pdf-using-pdffilemend.cs) -- Add image to pdf using pdffilemend +- [`add-image-to-pdf-with-format-validation.cs`](./add-image-to-pdf-with-format-validation.cs) -- Add image to pdf with format validation +- [`add-image-to-pdf-with-pdffilemend.cs`](./add-image-to-pdf-with-pdffilemend.cs) -- Add image to pdf with pdffilemend +- [`add-image-verify-pdf-byte-size.cs`](./add-image-verify-pdf-byte-size.cs) -- Add image verify pdf byte size +- [`add-images-to-pdf-with-error-handling.cs`](./add-images-to-pdf-with-error-handling.cs) -- Add images to pdf with error handling +- [`add-multi-line-text-block-page-3.cs`](./add-multi-line-text-block-page-3.cs) -- Add multi line text block page 3 +- [`add-multi-line-text-left-margin-page-3.cs`](./add-multi-line-text-left-margin-page-3.cs) -- Add multi line text left margin page 3 +- [`add-png-image-to-pdf-page.cs`](./add-png-image-to-pdf-page.cs) -- Add png image to pdf page +- [`add-promotional-text-multiple-pdf-pages.cs`](./add-promotional-text-multiple-pdf-pages.cs) -- Add promotional text multiple pdf pages +- [`add-promotional-text-to-specific-pdf-pages.cs`](./add-promotional-text-to-specific-pdf-pages.cs) -- Add promotional text to specific pdf pages +- [`add-text-at-coordinates-verify-position.cs`](./add-text-at-coordinates-verify-position.cs) -- Add text at coordinates verify position +- [`add-tiff-image-to-last-page-pdf.cs`](./add-tiff-image-to-last-page-pdf.cs) -- Add tiff image to last page pdf +- [`add-tiff-image-to-last-pdf-page.cs`](./add-tiff-image-to-last-pdf-page.cs) -- Add tiff image to last pdf page +- [`add-word-wrapped-footer-to-pdf.cs`](./add-word-wrapped-footer-to-pdf.cs) -- Add word wrapped footer to pdf +- [`add-wrapped-footer-to-pdf-pages.cs`](./add-wrapped-footer-to-pdf-pages.cs) -- Add wrapped footer to pdf pages +- [`async-add-image-to-pdf.cs`](./async-add-image-to-pdf.cs) -- Async add image to pdf +- [`batch-add-company-logo-to-pdfs.cs`](./batch-add-company-logo-to-pdfs.cs) -- Batch add company logo to pdfs +- [`batch-add-logo-to-pdf-pages.cs`](./batch-add-logo-to-pdf-pages.cs) -- Batch add logo to pdf pages +- [`batch-extract-images-from-pdfs.cs`](./batch-extract-images-from-pdfs.cs) -- Batch extract images from pdfs +- [`configure-word-wrapping-bywords-add-long-text.cs`](./configure-word-wrapping-bywords-add-long-text.cs) -- Configure word wrapping bywords add long text +- [`configure-word-wrapping-bywords.cs`](./configure-word-wrapping-bywords.cs) -- Configure word wrapping bywords +- [`extract-images-from-pdf-pages-2-5.cs`](./extract-images-from-pdf-pages-2-5.cs) -- Extract images from pdf pages 2 5 +- [`extract-images-from-pdf-pages.cs`](./extract-images-from-pdf-pages.cs) -- Extract images from pdf pages +- [`extract-images-from-pdf-to-png.cs`](./extract-images-from-pdf-to-png.cs) -- Extract images from pdf to png +- [`insert-png-signature-image-every-pdf-page.cs`](./insert-png-signature-image-every-pdf-page.cs) -- Insert png signature image every pdf page +- [`insert-png-signature-image-on-every-pdf-page.cs`](./insert-png-signature-image-on-every-pdf-page.cs) -- Insert png signature image on every pdf page +- [`overlay-semi-transparent-gif-on-pdf.cs`](./overlay-semi-transparent-gif-on-pdf.cs) -- Overlay semi transparent gif on pdf +- [`remove-all-images-from-pdf.cs`](./remove-all-images-from-pdf.cs) -- Remove all images from pdf +- [`remove-image-from-pdf-page.cs`](./remove-image-from-pdf-page.cs) -- Remove image from pdf page +- [`replace-jpeg-with-bmp-first-page.cs`](./replace-jpeg-with-bmp-first-page.cs) -- Replace jpeg with bmp first page +- [`replace-jpeg-with-bmp-using-replaceimage.cs`](./replace-jpeg-with-bmp-using-replaceimage.cs) -- Replace jpeg with bmp using replaceimage +- [`replace-low-res-images-with-high-res-pngs.cs`](./replace-low-res-images-with-high-res-pngs.cs) -- Replace low res images with high res pngs +- [`replace-lowres-images-with-highres-png.cs`](./replace-lowres-images-with-highres-png.cs) -- Replace lowres images with highres png +- [`validate-image-format-before-calling-addimage-to-ensure-only-jpg-png-gif-bmp-or-tiff-files-are-used.cs`](./validate-image-format-before-calling-addimage-to-ensure-only-jpg-png-gif-bmp-or-tiff-files-are-used.cs) -- Validate image format before calling addimage to ensure only jpg png gif bmp or tiff files are used +- [`verify-free-text-annotation-coordinates.cs`](./verify-free-text-annotation-coordinates.cs) -- Verify free text annotation coordinates + +## See Also + +- [`AGENTS.md`](./AGENTS.md) -- category-specific anti-patterns, API surface, and conventions for AI coding agents +- [`../AGENTS.md`](../AGENTS.md) -- repository-wide agent guide +- [`../README.md`](../README.md) -- full category index and project overview +- [Aspose.PDF for .NET docs](https://docs.aspose.com/pdf/net/) + +> Each `.cs` file is a standalone, build-validated console example. Drop into a fresh `dotnet new console` project, add the `Aspose.PDF` NuGet (version above), and run. diff --git a/facades-texts-and-images/index.json b/facades-texts-and-images/index.json index 9950bb226..4090fc092 100644 --- a/facades-texts-and-images/index.json +++ b/facades-texts-and-images/index.json @@ -1,256 +1,391 @@ { "category": "facades-texts-and-images", "nuget_version": "26.8.0", - "last_updated": "2026-08-20T08:06:00Z", + "last_updated": "2026-09-10T12:45:08Z", "examples": { - "add-png-image-to-pdf-page": { - "title": "Add PNG Image to Specific PDF Page using PdfFileMend", - "filename": "add-png-image-to-pdf-page.cs", - "description": "Demonstrates how to bind an existing PDF with PdfFileMend, insert a PNG image onto page two at defined coordinates, and save the modified document.", + "add-background-png-to-all-pdf-pages": { + "title": "Add Background PNG to All PDF Pages", + "filename": "add-background-png-to-all-pdf-pages.cs", + "description": "Shows how to load a PDF, retrieve each page's dimensions, and overlay a PNG image as a background on every page using Aspose.Pdf.Facades.", "tags": [ "pdf", - "image", + "background-image", + "add-image", "Aspose.Pdf", - "PdfFileMend", - "C#" + "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileMend", + "Aspose.Pdf.Document", + "Aspose.Pdf.Page.Rect", "Aspose.Pdf.Facades.PdfFileMend.BindPdf", "Aspose.Pdf.Facades.PdfFileMend.AddImage", "Aspose.Pdf.Facades.PdfFileMend.Save", "Aspose.Pdf.Facades.PdfFileMend.Close" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:06:00Z", "status": "verified" }, - "replace-jpeg-with-bmp-first-page": { - "title": "Replace JPEG with High‑Resolution BMP on First PDF Page", - "filename": "replace-jpeg-with-bmp-first-page.cs", - "description": "Demonstrates how to replace the first image on page one of a PDF with a higher‑resolution BMP using Aspose.Pdf's PdfContentEditor.", + "add-header-image-to-pdf-documents": { + "title": "Add Header Image to PDF Documents", + "filename": "add-header-image-to-pdf-documents.cs", + "description": "Shows how to insert a header image into one or more PDF files using Aspose.Pdf.Facades.PdfFileStamp in a console application.", "tags": [ - "replace-image", "pdf", - "bmp", - "aspose-pdf", - "content-editor" + "header", + "image", + "Aspose.Pdf", + "command-line" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.ReplaceImage", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", + "Aspose.Pdf.Facades.PdfFileStamp.AddHeader", + "Aspose.Pdf.Facades.PdfFileStamp.Save", + "Aspose.Pdf.Facades.PdfFileStamp.Close" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:06:00Z", "status": "verified" }, - "overlay-semi-transparent-gif-on-pdf": { - "title": "Overlay Semi-Transparent GIF on PDF", - "filename": "overlay-semi-transparent-gif-on-pdf.cs", - "description": "Demonstrates how to place a semi‑transparent GIF over an existing PNG in a PDF using CompositingParameters with the PdfFileMend facade.", - "tags": [ - "overlay", - "gif", - "pdf", - "compositing", - "aspose-pdf" - ], - "apis_used": [ - "PdfFileMend", - "PdfFileMend.BindPdf", - "PdfFileMend.AddImage", - "CompositingParameters", - "BlendMode" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:06:00Z", + "add-header-image-to-pdfs": { + "title": "Add Header Image To Pdfs", + "filename": "add-header-image-to-pdfs.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "add-wrapped-footer-to-pdf-pages": { - "title": "Add Word‑by‑Word Wrapped Footer to PDF Pages", - "filename": "add-wrapped-footer-to-pdf-pages.cs", - "description": "Shows how to use Aspose.Pdf Facade API to add a formatted footer that wraps word‑by‑word across the page width on every PDF page.", + "add-image-and-text-audit-pdf": { + "title": "Add Image And Text Audit Pdf", + "filename": "add-image-and-text-audit-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-image-and-text-to-pdf-with-audit-logging": { + "title": "Add Image and Text to PDF with Audit Logging", + "filename": "add-image-and-text-to-pdf-with-audit-logging.cs", + "description": "Loads a PDF, adds an image and a formatted text watermark to page 1, logs each AddImage and AddText operation with timestamp, page number and file name, then saves the modified document.", "tags": [ - "footer", - "formatted-text", "pdf", - "Aspose.Pdf", - "word-wrap" + "image", + "text", + "audit", + "facade" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PageInfo", - "Aspose.Pdf.Facades.FormattedText", "Aspose.Pdf.Facades.PdfFileMend", - "PdfFileMend.AddText", - "PdfFileMend.Save" + "Aspose.Pdf.Facades.PdfFileMend.AddImage", + "Aspose.Pdf.Facades.PdfFileMend.AddText", + "Aspose.Pdf.Facades.FormattedText", + "Aspose.Pdf.Facades.EncodingType" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:06:00Z", "status": "verified" }, - "add-promotional-text-to-specific-pdf-pages": { - "title": "Add Promotional Text to Specific PDF Pages", - "filename": "add-promotional-text-to-specific-pdf-pages.cs", - "description": "Shows how to insert the same promotional message on pages 3, 5, and 7 of a PDF using Aspose.Pdf's Facade API with AddStamp.", + "add-image-and-text-watermark-to-pdf": { + "title": "Add Image and Semi‑Transparent Text Watermark to PDF", + "filename": "add-image-and-text-watermark-to-pdf.cs", + "description": "Demonstrates how to combine an image and semi‑transparent text into a single stamp and apply it as a watermark on all pages of a PDF using Aspose.Pdf.", "tags": [ - "pdf", "watermark", + "image", "text", - "facade", - "stamp" + "pdf", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileStamp", "Aspose.Pdf.Facades.Stamp", "Aspose.Pdf.Text.FormattedText", - "Aspose.Pdf.Text.EncodingType", - "Aspose.Pdf.Facades.Stamp.BindLogo", - "Aspose.Pdf.Facades.PdfFileStamp.AddStamp" + "Stamp.BindImage", + "Stamp.BindLogo", + "Stamp.SetOrigin", + "PdfFileStamp.AddStamp" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:06:00Z", "status": "verified" }, - "add-multi-line-text-block-page-3": { - "title": "Add Multi‑Line Text Block with Custom Line Spacing to Page 3", - "filename": "add-multi-line-text-block-page-3.cs", - "description": "Demonstrates how to use the PdfFileMend facade to bind an existing PDF, create a multi‑line TextParagraph with custom line spacing, and place it at the left margin of the third page.", + "add-image-to-all-pdf-pages-dynamic-position": { + "title": "Add Image To All Pdf Pages Dynamic Position", + "filename": "add-image-to-all-pdf-pages-dynamic-position.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-image-to-each-pdf-page-dynamic-position": { + "title": "Add Image to Each PDF Page with Dynamic Positioning", + "filename": "add-image-to-each-pdf-page-dynamic-position.cs", + "description": "Loads a PDF, calculates each page's dimensions, and places a PNG image in the bottom‑right corner of every page using the PdfFileMend facade.", "tags": [ - "text", "pdf", - "facade", - "line-spacing", - "aspnet" + "image", + "positioning", + "Aspose.Pdf", + "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileMend", "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextParagraph", - "Aspose.Pdf.Text.TextFormattingOptions", - "Aspose.Pdf.Facades.TextBuilder" + "Aspose.Pdf.Facades.PdfFileMend", + "Aspose.Pdf.Facades.PdfFileMend.AddImage", + "Aspose.Pdf.Facades.PdfFileMend.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:06:00Z", "status": "verified" }, - "add-image-and-text-watermark-to-pdf": { - "title": "Add Image and Semi‑Transparent Text Watermark to PDF", - "filename": "add-image-and-text-watermark-to-pdf.cs", - "description": "Demonstrates how to combine an image and semi‑transparent text into a single stamp and apply it as a watermark on all pages of a PDF using Aspose.Pdf.", + "add-image-to-pdf-get-memorystream": { + "title": "Add Image To Pdf Get Memorystream", + "filename": "add-image-to-pdf-get-memorystream.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-image-to-pdf-page": { + "title": "Add Image to Specific PDF Page", + "filename": "add-image-to-pdf-page.cs", + "description": "Shows how to use Aspose.Pdf.Facades to insert an image onto a chosen page of a PDF at given rectangle coordinates via a reusable helper method.", "tags": [ - "watermark", - "image", - "text", "pdf", - "Aspose.Pdf" + "image", + "add-image", + "aspose-pdf", + "facades" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.Stamp", - "Aspose.Pdf.Text.FormattedText", - "Stamp.BindImage", - "Stamp.BindLogo", - "Stamp.SetOrigin", - "PdfFileStamp.AddStamp" + "Aspose.Pdf.Facades.PdfFileMend", + "Aspose.Pdf.Facades.PdfFileMend.BindPdf", + "Aspose.Pdf.Facades.PdfFileMend.AddImage", + "Aspose.Pdf.Facades.PdfFileMend.Save", + "Aspose.Pdf.Facades.PdfFileMend.Close" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:06:00Z", "status": "verified" }, - "add-background-png-to-all-pdf-pages": { - "title": "Add Background PNG to All PDF Pages", - "filename": "add-background-png-to-all-pdf-pages.cs", - "description": "Shows how to load a PDF, retrieve each page's dimensions, and overlay a PNG image as a background on every page using Aspose.Pdf.Facades.", + "add-image-to-pdf-using-pdffilemend": { + "title": "Add Image to PDF Using PdfFileMend with Try‑Finally", + "filename": "add-image-to-pdf-using-pdffilemend.cs", + "description": "Demonstrates how to bind a PDF, insert an image on a page, save the result, and guarantee that PdfFileMend is closed using a try‑finally block.", "tags": [ "pdf", - "background-image", - "add-image", + "image", "Aspose.Pdf", - "facade" + "PdfFileMend", + "resource‑cleanup" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page.Rect", + "Aspose.Pdf.Facades.PdfFileMend", "Aspose.Pdf.Facades.PdfFileMend.BindPdf", "Aspose.Pdf.Facades.PdfFileMend.AddImage", "Aspose.Pdf.Facades.PdfFileMend.Save", "Aspose.Pdf.Facades.PdfFileMend.Close" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:06:00Z", "status": "verified" }, - "add-header-image-to-pdf-documents": { - "title": "Add Header Image to PDF Documents", - "filename": "add-header-image-to-pdf-documents.cs", - "description": "Shows how to insert a header image into one or more PDF files using Aspose.Pdf.Facades.PdfFileStamp in a console application.", + "add-image-to-pdf-with-format-validation": { + "title": "Add Image to PDF with Format Validation", + "filename": "add-image-to-pdf-with-format-validation.cs", + "description": "Demonstrates how to validate an image's file format and then add the image to a PDF page using Aspose.Pdf.Facades.", "tags": [ "pdf", - "header", "image", - "Aspose.Pdf", - "command-line" + "validation", + "Aspose", + "add-image" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", - "Aspose.Pdf.Facades.PdfFileStamp.AddHeader", - "Aspose.Pdf.Facades.PdfFileStamp.Save", - "Aspose.Pdf.Facades.PdfFileStamp.Close" + "PdfFileMend", + "PdfFileMend.BindPdf", + "PdfFileMend.AddImage", + "PdfFileMend.Save", + "PdfFileMend.Close" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:06:00Z", "status": "verified" }, - "batch-add-company-logo-to-pdfs": { - "title": "Batch Add Company Logo to PDFs", - "filename": "batch-add-company-logo-to-pdfs.cs", - "description": "Shows how to process all PDF files in a folder and overlay a PNG company logo at the top‑right corner of each page using Aspose.Pdf.Facades.", + "add-image-to-pdf-with-pdffilemend": { + "title": "Add Image To Pdf With Pdffilemend", + "filename": "add-image-to-pdf-with-pdffilemend.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-image-verify-pdf-byte-size": { + "title": "Add Image to PDF and Verify Byte Size Increase", + "filename": "add-image-verify-pdf-byte-size.cs", + "description": "Creates a minimal PDF, binds it with PdfFileMend, adds a PNG image, saves the modified document, and asserts that the resulting PDF byte size is larger than the original.", "tags": [ "pdf", - "logo", - "batch-processing", "image", - "Aspose.Pdf" + "size", + "unit-test", + "aspose-pdf" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileMend", "Aspose.Pdf.Facades.PdfFileMend.BindPdf", "Aspose.Pdf.Facades.PdfFileMend.AddImage", - "Aspose.Pdf.Facades.PdfFileMend.Save", - "Aspose.Pdf.Page" + "Aspose.Pdf.Facades.PdfFileMend.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:06:00Z", "status": "verified" }, - "insert-png-signature-image-on-every-pdf-page": { - "title": "Insert PNG Signature Image on Every PDF Page", - "filename": "insert-png-signature-image-on-every-pdf-page.cs", - "description": "Demonstrates how to use PdfFileMend to add a PNG signature image to the bottom‑left corner of each page in a PDF and save the modified document.", + "add-images-to-pdf-with-error-handling": { + "title": "Add Images to PDF with Error Handling", + "filename": "add-images-to-pdf-with-error-handling.cs", + "description": "Demonstrates how to insert multiple images into a PDF using Aspose.Pdf's PdfFileMend facade while handling missing files and AddImage failures gracefully.", "tags": [ "pdf", "image", - "signature", - "add-image", + "error-handling", + "Aspose.Pdf", "facade" ], + "apis_used": [ + "PdfFileMend", + "PdfFileMend.AddImage", + "PdfFileMend.Close" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T08:06:00Z", + "status": "verified" + }, + "add-multi-line-text-block-page-3": { + "title": "Add Multi‑Line Text Block with Custom Line Spacing to Page 3", + "filename": "add-multi-line-text-block-page-3.cs", + "description": "Demonstrates how to use the PdfFileMend facade to bind an existing PDF, create a multi‑line TextParagraph with custom line spacing, and place it at the left margin of the third page.", + "tags": [ + "text", + "pdf", + "facade", + "line-spacing", + "aspnet" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfFileMend", + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextParagraph", + "Aspose.Pdf.Text.TextFormattingOptions", + "Aspose.Pdf.Facades.TextBuilder" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T08:06:00Z", + "status": "verified" + }, + "add-multi-line-text-left-margin-page-3": { + "title": "Add Multi Line Text Left Margin Page 3", + "filename": "add-multi-line-text-left-margin-page-3.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-png-image-to-pdf-page": { + "title": "Add PNG Image to Specific PDF Page using PdfFileMend", + "filename": "add-png-image-to-pdf-page.cs", + "description": "Demonstrates how to bind an existing PDF with PdfFileMend, insert a PNG image onto page two at defined coordinates, and save the modified document.", + "tags": [ + "pdf", + "image", + "Aspose.Pdf", + "PdfFileMend", + "C#" + ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileMend", "Aspose.Pdf.Facades.PdfFileMend.BindPdf", "Aspose.Pdf.Facades.PdfFileMend.AddImage", "Aspose.Pdf.Facades.PdfFileMend.Save", - "Aspose.Pdf.Facades.PdfFileMend.Document" + "Aspose.Pdf.Facades.PdfFileMend.Close" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:06:00Z", "status": "verified" }, + "add-promotional-text-multiple-pdf-pages": { + "title": "Add Promotional Text Multiple Pdf Pages", + "filename": "add-promotional-text-multiple-pdf-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-promotional-text-to-specific-pdf-pages": { + "title": "Add Promotional Text to Specific PDF Pages", + "filename": "add-promotional-text-to-specific-pdf-pages.cs", + "description": "Shows how to insert the same promotional message on pages 3, 5, and 7 of a PDF using Aspose.Pdf's Facade API with AddStamp.", + "tags": [ + "pdf", + "watermark", + "text", + "facade", + "stamp" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.Facades.Stamp", + "Aspose.Pdf.Text.FormattedText", + "Aspose.Pdf.Text.EncodingType", + "Aspose.Pdf.Facades.Stamp.BindLogo", + "Aspose.Pdf.Facades.PdfFileStamp.AddStamp" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T08:06:00Z", + "status": "verified" + }, + "add-text-at-coordinates-verify-position": { + "title": "Add Text at Specific Coordinates and Verify Position", + "filename": "add-text-at-coordinates-verify-position.cs", + "description": "Creates a blank PDF, adds a text fragment at defined X/Y coordinates using TextBuilder, saves and reloads the file, then uses TextFragmentAbsorber to confirm the text appears at the expected position.", + "tags": [ + "text", + "coordinates", + "pdf", + "unit-test", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.Position", + "Aspose.Pdf.Facades.TextBuilder", + "Aspose.Pdf.Text.TextFragmentAbsorber" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T08:06:00Z", + "status": "verified" + }, "add-tiff-image-to-last-page-pdf": { "title": "Add TIFF Image to Last Page of PDF using PdfFileMend", "filename": "add-tiff-image-to-last-page-pdf.cs", @@ -273,60 +408,59 @@ "generated_at": "2026-08-20T08:06:00Z", "status": "verified" }, - "add-image-to-each-pdf-page-dynamic-position": { - "title": "Add Image to Each PDF Page with Dynamic Positioning", - "filename": "add-image-to-each-pdf-page-dynamic-position.cs", - "description": "Loads a PDF, calculates each page's dimensions, and places a PNG image in the bottom‑right corner of every page using the PdfFileMend facade.", + "add-tiff-image-to-last-pdf-page": { + "title": "Add Tiff Image To Last Pdf Page", + "filename": "add-tiff-image-to-last-pdf-page.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-word-wrapped-footer-to-pdf": { + "title": "Add Word Wrapped Footer To Pdf", + "filename": "add-word-wrapped-footer-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-wrapped-footer-to-pdf-pages": { + "title": "Add Word‑by‑Word Wrapped Footer to PDF Pages", + "filename": "add-wrapped-footer-to-pdf-pages.cs", + "description": "Shows how to use Aspose.Pdf Facade API to add a formatted footer that wraps word‑by‑word across the page width on every PDF page.", "tags": [ + "footer", + "formatted-text", "pdf", - "image", - "positioning", "Aspose.Pdf", - "facade" + "word-wrap" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", + "Aspose.Pdf.PageInfo", + "Aspose.Pdf.Facades.FormattedText", "Aspose.Pdf.Facades.PdfFileMend", - "Aspose.Pdf.Facades.PdfFileMend.AddImage", - "Aspose.Pdf.Facades.PdfFileMend.Save" + "PdfFileMend.AddText", + "PdfFileMend.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:06:00Z", "status": "verified" }, - "add-image-to-pdf-with-format-validation": { - "title": "Add Image to PDF with Format Validation", - "filename": "add-image-to-pdf-with-format-validation.cs", - "description": "Demonstrates how to validate an image's file format and then add the image to a PDF page using Aspose.Pdf.Facades.", + "async-add-image-to-pdf": { + "title": "Asynchronously Add Image to PDF Using PdfFileMend", + "filename": "async-add-image-to-pdf.cs", + "description": "Demonstrates how to modify a PDF on a background thread by adding an image to the first page with Aspose.Pdf's PdfFileMend, wrapped in Task.Run for non‑blocking execution.", "tags": [ + "async", "pdf", "image", - "validation", "Aspose", - "add-image" - ], - "apis_used": [ - "PdfFileMend", - "PdfFileMend.BindPdf", - "PdfFileMend.AddImage", - "PdfFileMend.Save", - "PdfFileMend.Close" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T08:06:00Z", - "status": "verified" - }, - "add-image-to-pdf-using-pdffilemend": { - "title": "Add Image to PDF Using PdfFileMend with Try‑Finally", - "filename": "add-image-to-pdf-using-pdffilemend.cs", - "description": "Demonstrates how to bind a PDF, insert an image on a page, save the result, and guarantee that PdfFileMend is closed using a try‑finally block.", - "tags": [ - "pdf", - "image", - "Aspose.Pdf", - "PdfFileMend", - "resource‑cleanup" + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileMend", @@ -335,48 +469,62 @@ "Aspose.Pdf.Facades.PdfFileMend.Save", "Aspose.Pdf.Facades.PdfFileMend.Close" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:06:00Z", "status": "verified" }, - "add-images-to-pdf-with-error-handling": { - "title": "Add Images to PDF with Error Handling", - "filename": "add-images-to-pdf-with-error-handling.cs", - "description": "Demonstrates how to insert multiple images into a PDF using Aspose.Pdf's PdfFileMend facade while handling missing files and AddImage failures gracefully.", + "batch-add-company-logo-to-pdfs": { + "title": "Batch Add Company Logo to PDFs", + "filename": "batch-add-company-logo-to-pdfs.cs", + "description": "Shows how to process all PDF files in a folder and overlay a PNG company logo at the top‑right corner of each page using Aspose.Pdf.Facades.", "tags": [ "pdf", + "logo", + "batch-processing", "image", - "error-handling", - "Aspose.Pdf", - "facade" + "Aspose.Pdf" ], "apis_used": [ - "PdfFileMend", - "PdfFileMend.AddImage", - "PdfFileMend.Close" + "Aspose.Pdf.Facades.PdfFileMend", + "Aspose.Pdf.Facades.PdfFileMend.BindPdf", + "Aspose.Pdf.Facades.PdfFileMend.AddImage", + "Aspose.Pdf.Facades.PdfFileMend.Save", + "Aspose.Pdf.Page" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:06:00Z", "status": "verified" }, - "add-image-and-text-to-pdf-with-audit-logging": { - "title": "Add Image and Text to PDF with Audit Logging", - "filename": "add-image-and-text-to-pdf-with-audit-logging.cs", - "description": "Loads a PDF, adds an image and a formatted text watermark to page 1, logs each AddImage and AddText operation with timestamp, page number and file name, then saves the modified document.", + "batch-add-logo-to-pdf-pages": { + "title": "Batch Add Logo To Pdf Pages", + "filename": "batch-add-logo-to-pdf-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "batch-extract-images-from-pdfs": { + "title": "Batch Extract Images from PDFs with Page and Index Naming", + "filename": "batch-extract-images-from-pdfs.cs", + "description": "Shows how to process multiple PDF files, extract images from each page using Aspose.Pdf.Facades.PdfExtractor, and save them with filenames that contain the original PDF name, page number, and image index.", "tags": [ "pdf", - "image", - "text", - "audit", - "facade" + "image-extraction", + "batch-processing", + "aspose-pdf", + "csharp" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfFileMend", - "Aspose.Pdf.Facades.PdfFileMend.AddImage", - "Aspose.Pdf.Facades.PdfFileMend.AddText", - "Aspose.Pdf.Facades.FormattedText", - "Aspose.Pdf.Facades.EncodingType" + "Aspose.Pdf.Facades.PdfExtractor", + "PdfExtractor.BindPdf", + "PdfExtractor.StartPage", + "PdfExtractor.EndPage", + "PdfExtractor.ExtractImage", + "PdfExtractor.HasNextImage", + "PdfExtractor.GetNextImage", + "PdfExtractor.Document" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:06:00Z", @@ -407,47 +555,47 @@ "generated_at": "2026-08-20T08:06:00Z", "status": "verified" }, - "add-image-to-pdf-page": { - "title": "Add Image to Specific PDF Page", - "filename": "add-image-to-pdf-page.cs", - "description": "Shows how to use Aspose.Pdf.Facades to insert an image onto a chosen page of a PDF at given rectangle coordinates via a reusable helper method.", - "tags": [ - "pdf", - "image", - "add-image", - "aspose-pdf", - "facades" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfFileMend", - "Aspose.Pdf.Facades.PdfFileMend.BindPdf", - "Aspose.Pdf.Facades.PdfFileMend.AddImage", - "Aspose.Pdf.Facades.PdfFileMend.Save", - "Aspose.Pdf.Facades.PdfFileMend.Close" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:06:00Z", + "configure-word-wrapping-bywords": { + "title": "Configure Word Wrapping Bywords", + "filename": "configure-word-wrapping-bywords.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "async-add-image-to-pdf": { - "title": "Asynchronously Add Image to PDF Using PdfFileMend", - "filename": "async-add-image-to-pdf.cs", - "description": "Demonstrates how to modify a PDF on a background thread by adding an image to the first page with Aspose.Pdf's PdfFileMend, wrapped in Task.Run for non‑blocking execution.", + "extract-images-from-pdf-pages-2-5": { + "title": "Extract Images From Pdf Pages 2 5", + "filename": "extract-images-from-pdf-pages-2-5.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-images-from-pdf-pages": { + "title": "Extract Images from Specific PDF Pages", + "filename": "extract-images-from-pdf-pages.cs", + "description": "Shows how to use Aspose.Pdf.Facades.PdfExtractor to extract all images from pages 2‑5 of a PDF and save them as PNG files in a temporary directory.", "tags": [ - "async", "pdf", - "image", - "Aspose", - "csharp" + "image-extraction", + "aspose", + "csharp", + "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileMend", - "Aspose.Pdf.Facades.PdfFileMend.BindPdf", - "Aspose.Pdf.Facades.PdfFileMend.AddImage", - "Aspose.Pdf.Facades.PdfFileMend.Save", - "Aspose.Pdf.Facades.PdfFileMend.Close" + "PdfExtractor", + "PdfExtractor.BindPdf", + "PdfExtractor.StartPage", + "PdfExtractor.EndPage", + "PdfExtractor.ExtractImage", + "PdfExtractor.HasNextImage", + "PdfExtractor.GetNextImage" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:06:00Z", "status": "verified" }, @@ -473,55 +621,81 @@ "generated_at": "2026-08-20T08:06:00Z", "status": "verified" }, - "extract-images-from-pdf-pages": { - "title": "Extract Images from Specific PDF Pages", - "filename": "extract-images-from-pdf-pages.cs", - "description": "Shows how to use Aspose.Pdf.Facades.PdfExtractor to extract all images from pages 2‑5 of a PDF and save them as PNG files in a temporary directory.", + "insert-png-signature-image-every-pdf-page": { + "title": "Insert Png Signature Image Every Pdf Page", + "filename": "insert-png-signature-image-every-pdf-page.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "insert-png-signature-image-on-every-pdf-page": { + "title": "Insert PNG Signature Image on Every PDF Page", + "filename": "insert-png-signature-image-on-every-pdf-page.cs", + "description": "Demonstrates how to use PdfFileMend to add a PNG signature image to the bottom‑left corner of each page in a PDF and save the modified document.", "tags": [ "pdf", - "image-extraction", - "aspose", - "csharp", + "image", + "signature", + "add-image", "facade" ], "apis_used": [ - "PdfExtractor", - "PdfExtractor.BindPdf", - "PdfExtractor.StartPage", - "PdfExtractor.EndPage", - "PdfExtractor.ExtractImage", - "PdfExtractor.HasNextImage", - "PdfExtractor.GetNextImage" + "Aspose.Pdf.Facades.PdfFileMend", + "Aspose.Pdf.Facades.PdfFileMend.BindPdf", + "Aspose.Pdf.Facades.PdfFileMend.AddImage", + "Aspose.Pdf.Facades.PdfFileMend.Save", + "Aspose.Pdf.Facades.PdfFileMend.Document" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:06:00Z", "status": "verified" }, - "batch-extract-images-from-pdfs": { - "title": "Batch Extract Images from PDFs with Page and Index Naming", - "filename": "batch-extract-images-from-pdfs.cs", - "description": "Shows how to process multiple PDF files, extract images from each page using Aspose.Pdf.Facades.PdfExtractor, and save them with filenames that contain the original PDF name, page number, and image index.", + "overlay-semi-transparent-gif-on-pdf": { + "title": "Overlay Semi-Transparent GIF on PDF", + "filename": "overlay-semi-transparent-gif-on-pdf.cs", + "description": "Demonstrates how to place a semi‑transparent GIF over an existing PNG in a PDF using CompositingParameters with the PdfFileMend facade.", "tags": [ + "overlay", + "gif", "pdf", - "image-extraction", - "batch-processing", - "aspose-pdf", - "csharp" + "compositing", + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfExtractor", - "PdfExtractor.BindPdf", - "PdfExtractor.StartPage", - "PdfExtractor.EndPage", - "PdfExtractor.ExtractImage", - "PdfExtractor.HasNextImage", - "PdfExtractor.GetNextImage", - "PdfExtractor.Document" + "PdfFileMend", + "PdfFileMend.BindPdf", + "PdfFileMend.AddImage", + "CompositingParameters", + "BlendMode" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:06:00Z", "status": "verified" }, + "remove-all-images-from-pdf": { + "title": "Remove All Images from PDF", + "filename": "remove-all-images-from-pdf.cs", + "description": "Shows how to delete every image in a PDF using Aspose.Pdf's PdfContentEditor facade and save the modified document to a new file.", + "tags": [ + "pdf", + "image-removal", + "Aspose.Pdf", + "facade", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfContentEditor", + "PdfContentEditor.BindPdf", + "PdfContentEditor.DeleteImage", + "PdfContentEditor.Save" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:06:00Z", + "status": "verified" + }, "remove-image-from-pdf-page": { "title": "Remove Image from Specific PDF Page", "filename": "remove-image-from-pdf-page.cs", @@ -543,27 +717,38 @@ "generated_at": "2026-08-20T08:06:00Z", "status": "verified" }, - "remove-all-images-from-pdf": { - "title": "Remove All Images from PDF", - "filename": "remove-all-images-from-pdf.cs", - "description": "Shows how to delete every image in a PDF using Aspose.Pdf's PdfContentEditor facade and save the modified document to a new file.", + "replace-jpeg-with-bmp-first-page": { + "title": "Replace JPEG with High‑Resolution BMP on First PDF Page", + "filename": "replace-jpeg-with-bmp-first-page.cs", + "description": "Demonstrates how to replace the first image on page one of a PDF with a higher‑resolution BMP using Aspose.Pdf's PdfContentEditor.", "tags": [ + "replace-image", "pdf", - "image-removal", - "Aspose.Pdf", - "facade", - "csharp" + "bmp", + "aspose-pdf", + "content-editor" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfContentEditor", - "PdfContentEditor.BindPdf", - "PdfContentEditor.DeleteImage", - "PdfContentEditor.Save" + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.ReplaceImage", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:06:00Z", "status": "verified" }, + "replace-jpeg-with-bmp-using-replaceimage": { + "title": "Replace Jpeg With Bmp Using Replaceimage", + "filename": "replace-jpeg-with-bmp-using-replaceimage.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "replace-low-res-images-with-high-res-pngs": { "title": "Replace Low-Resolution Images with High-Resolution PNGs in PDF", "filename": "replace-low-res-images-with-high-res-pngs.cs", @@ -590,49 +775,34 @@ "generated_at": "2026-08-20T08:06:00Z", "status": "verified" }, - "add-text-at-coordinates-verify-position": { - "title": "Add Text at Specific Coordinates and Verify Position", - "filename": "add-text-at-coordinates-verify-position.cs", - "description": "Creates a blank PDF, adds a text fragment at defined X/Y coordinates using TextBuilder, saves and reloads the file, then uses TextFragmentAbsorber to confirm the text appears at the expected position.", - "tags": [ - "text", - "coordinates", - "pdf", - "unit-test", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.Position", - "Aspose.Pdf.Facades.TextBuilder", - "Aspose.Pdf.Text.TextFragmentAbsorber" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:06:00Z", + "replace-lowres-images-with-highres-png": { + "title": "Replace Lowres Images With Highres Png", + "filename": "replace-lowres-images-with-highres-png.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "add-image-verify-pdf-byte-size": { - "title": "Add Image to PDF and Verify Byte Size Increase", - "filename": "add-image-verify-pdf-byte-size.cs", - "description": "Creates a minimal PDF, binds it with PdfFileMend, adds a PNG image, saves the modified document, and asserts that the resulting PDF byte size is larger than the original.", - "tags": [ - "pdf", - "image", - "size", - "unit-test", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfFileMend", - "Aspose.Pdf.Facades.PdfFileMend.BindPdf", - "Aspose.Pdf.Facades.PdfFileMend.AddImage", - "Aspose.Pdf.Facades.PdfFileMend.Save" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:06:00Z", + "validate-image-format-before-calling-addimage-to-ensure-only-jpg-png-gif-bmp-or-tiff-files-are-used": { + "title": "Validate Image Format Before Calling Addimage To Ensure Only Jpg Png Gif Bmp Or Tiff Files Are Used", + "filename": "validate-image-format-before-calling-addimage-to-ensure-only-jpg-png-gif-bmp-or-tiff-files-are-used.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "verify-free-text-annotation-coordinates": { + "title": "Verify Free Text Annotation Coordinates", + "filename": "verify-free-text-annotation-coordinates.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" } } diff --git a/facades-xmp-metadata/AGENTS.md b/facades-xmp-metadata/AGENTS.md index 87d62a9fa..686022b9a 100644 --- a/facades-xmp-metadata/AGENTS.md +++ b/facades-xmp-metadata/AGENTS.md @@ -8,7 +8,7 @@ parent: ../agents.md # AGENTS - facades-xmp-metadata -> **Facades XMP metadata** in PDF using C# / .NET -- **44** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. +> **Facades XMP metadata** in PDF using C# / .NET -- **72** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. ## Persona @@ -23,74 +23,62 @@ See the root [agents.md](../agents.md) for repository-wide conventions and bound ## Required Namespaces -- `using Aspose.Pdf.Facades;` (42/44 files) ← category-specific -- `using Aspose.Pdf;` (23/44 files) ← category-specific -- `using Aspose.Pdf.Text;` (2/44 files) -- `using Aspose.Pdf.Optimization;` (1/44 files) -- `using Aspose.Pdf.XfaConverter;` (1/44 files) -- `using System;` (44/44 files) -- `using System.IO;` (37/44 files) -- `using System.Text;` (7/44 files) -- `using System.Xml;` (5/44 files) -- `using NUnit.Framework;` (3/44 files) -- `using System.Xml.Linq;` (2/44 files) -- `using Newtonsoft.Json;` (1/44 files) -- `using System.Collections.Generic;` (1/44 files) -- `using System.Diagnostics;` (1/44 files) -- `using System.Drawing;` (1/44 files) -- `using System.Threading.Tasks;` (1/44 files) -- `using System.Xml.Schema;` (1/44 files) - -## Common Code Pattern - -Most files follow this pattern: - -```csharp -using (Document doc = new Document("input.pdf")) -{ - // ... operations ... - doc.Save("output.pdf"); -} -``` +- `using Aspose.Pdf.Facades;` (42/72 files) ← category-specific +- `using Aspose.Pdf;` (23/72 files) +- `using Aspose.Pdf.Text;` (2/72 files) +- `using Aspose.Pdf.Optimization;` (1/72 files) +- `using Aspose.Pdf.XfaConverter;` (1/72 files) +- `using System;` (44/72 files) +- `using System.IO;` (37/72 files) +- `using System.Text;` (7/72 files) +- `using System.Xml;` (5/72 files) +- `using NUnit.Framework;` (3/72 files) +- `using System.Xml.Linq;` (2/72 files) +- `using Newtonsoft.Json;` (1/72 files) +- `using System.Collections.Generic;` (1/72 files) +- `using System.Diagnostics;` (1/72 files) +- `using System.Drawing;` (1/72 files) +- `using System.Threading.Tasks;` (1/72 files) +- `using System.Xml.Schema;` (1/72 files) ## Files in this folder | File | Title | Key APIs | Description | |------|-------|----------|-------------| +| [add-creator-metadata-to-pdf-document](./add-creator-metadata-to-pdf-document.cs) | Add creator metadata to pdf document | | Add creator metadata to pdf document | | [add-minimal-xmp-metadata-fallback](./add-minimal-xmp-metadata-fallback.cs) | Add Minimal XMP Metadata Fallback to PDF | `Document`, `PdfXmpMetadata`, `BindPdf` | Shows how to detect missing XMP metadata in a PDF and inject a minimal set of metadata entries us... | +| [add-timestamp-to-pdf-xmp-metadata](./add-timestamp-to-pdf-xmp-metadata.cs) | Add timestamp to pdf xmp metadata | | Add timestamp to pdf xmp metadata | | [add-xmp-timestamp-to-pdf](./add-xmp-timestamp-to-pdf.cs) | Add XMP Timestamp to PDF during Generation | `Document`, `Page`, `TextFragment` | Shows how to create a PDF with Aspose.Pdf, add a page with sample text, and automatically embed a... | +| [benchmark-xmp-metadata-extraction](./benchmark-xmp-metadata-extraction.cs) | Benchmark xmp metadata extraction | | Benchmark xmp metadata extraction | | [bind-pdf-byte-array-to-pdfxmpmetadata](./bind-pdf-byte-array-to-pdfxmpmetadata.cs) | Bind PDF Byte Array to PdfXmpMetadata and Extract XMP | `Document`, `Add`, `Save` | Demonstrates how to create a PDF in memory, bind it from a byte array to the PdfXmpMetadata facad... | +| [clear-all-xmp-metadata](./clear-all-xmp-metadata.cs) | Clear all xmp metadata | | Clear all xmp metadata | | [clear-xmp-metadata-pdf](./clear-xmp-metadata-pdf.cs) | Clear All XMP Metadata from PDF while Preserving Header | `PdfXmpMetadata`, `BindPdf`, `Clear` | Demonstrates how to remove all XMP metadata from a PDF using Aspose.Pdf.Facades, keeping only the... | | [compress-pdf-read-xmp-metadata](./compress-pdf-read-xmp-metadata.cs) | Compress PDF with High Settings and Read XMP Metadata | `Document`, `OptimizationOptions`, `OptimizeResources` | Demonstrates compressing a PDF using high‑compression optimization options and then extracting it... | | [copy-xmp-metadata-and-merge-pdfs](./copy-xmp-metadata-and-merge-pdfs.cs) | Copy XMP Metadata and Merge PDFs | `Document`, `PdfXmpMetadata`, `BindPdf` | Shows how to extract XMP metadata from a source PDF with the PdfXmpMetadata facade, apply it to a... | | [create-pdf-with-xmp-metadata](./create-pdf-with-xmp-metadata.cs) | Create PDF with XMP Metadata | `Document`, `Add`, `RegisterNamespaceUri` | Shows how to generate a new PDF, register XMP namespaces, add custom XMP metadata entries, and sa... | +| [create-xmp-metadata-pdf](./create-xmp-metadata-pdf.cs) | Create xmp metadata pdf | | Create xmp metadata pdf | +| [decrypt-encrypted-pdf-with-pdffilesecurity](./decrypt-encrypted-pdf-with-pdffilesecurity.cs) | Decrypt encrypted pdf with pdffilesecurity | | Decrypt encrypted pdf with pdffilesecurity | +| [decrypt-update-creator-reencrypt-pdf](./decrypt-update-creator-reencrypt-pdf.cs) | Decrypt update creator reencrypt pdf | | Decrypt update creator reencrypt pdf | | [decrypt-update-creatortool-reencrypt-pdf](./decrypt-update-creatortool-reencrypt-pdf.cs) | Decrypt PDF, Update CreatorTool, and Re‑encrypt | `Document`, `PdfFileSecurity`, `PdfFileInfo` | Demonstrates how to open a password‑protected PDF, decrypt it, modify the Creator metadata (Creat... | | [detect-and-modify-xmp-metadata](./detect-and-modify-xmp-metadata.cs) | Detect and Modify XMP Metadata in PDF | `PdfXmpMetadata`, `BindPdf`, `GetXmpMetadata` | Demonstrates how to bind a PDF with Aspose.Pdf.Facades.PdfXmpMetadata, check for existing XMP met... | +| [detect-xmp-metadata-in-pdf](./detect-xmp-metadata-in-pdf.cs) | Detect xmp metadata in pdf | | Detect xmp metadata in pdf | +| [disable-baseurl-injection-for-pdf-generation](./disable-baseurl-injection-for-pdf-generation.cs) | Disable baseurl injection for pdf generation | | Disable baseurl injection for pdf generation | | [disable-baseurl-injection-html-to-pdf](./disable-baseurl-injection-html-to-pdf.cs) | Disable BaseUrl Injection When Converting HTML to PDF | `Document`, `HtmlLoadOptions`, `PdfViewer` | Shows how to use a configuration switch to optionally omit the BaseUrl in HtmlLoadOptions while c... | | [export-pdf-xmp-metadata-to-json](./export-pdf-xmp-metadata-to-json.cs) | Export PDF XMP Metadata to JSON | `PdfXmpMetadata`, `BindPdf`, `GetXmpMetadata` | Shows how to extract XMP metadata from a PDF using Aspose.Pdf.Facades and convert it into JSON fo... | | [export-xmp-metadata-from-pdf](./export-xmp-metadata-from-pdf.cs) | Export XMP Metadata from PDF to a Side‑car File | `PdfXmpMetadata`, `BindPdf`, `GetXmpMetadata` | Demonstrates how to bind a PDF document, retrieve its XMP metadata using Aspose.Pdf.Facades, and ... | +| [export-xmp-metadata-to-json](./export-xmp-metadata-to-json.cs) | Export xmp metadata to json | | Export xmp metadata to json | +| [export-xmp-metadata-to-sidecar](./export-xmp-metadata-to-sidecar.cs) | Export xmp metadata to sidecar | | Export xmp metadata to sidecar | +| [extract-audit-original-xmp-metadata](./extract-audit-original-xmp-metadata.cs) | Extract audit original xmp metadata | | Extract audit original xmp metadata | +| [extract-xmp-metadata-from-pdf-byte-array](./extract-xmp-metadata-from-pdf-byte-array.cs) | Extract xmp metadata from pdf byte array | | Extract xmp metadata from pdf byte array | | [extract-xmp-metadata-from-pdf](./extract-xmp-metadata-from-pdf.cs) | Extract XMP Metadata from PDF | `PdfXmpMetadata`, `BindPdf`, `GetXmpMetadata` | Demonstrates how to bind a PDF with the PdfXmpMetadata facade, retrieve the raw XMP XML bytes, co... | | [extract-xmp-metadata-to-dictionary](./extract-xmp-metadata-to-dictionary.cs) | Extract XMP Metadata from PDF to Dictionary | `PdfXmpMetadata`, `BindPdf`, `GetXmpMetadata` | Shows how to read the XMP packet from a PDF using Aspose.Pdf.Facades and convert the XML into a c... | | [insert-pages-update-xmp-metadata](./insert-pages-update-xmp-metadata.cs) | Insert Pages and Update XMP Metadata in PDF | `PdfFileEditor`, `TryInsert`, `PdfXmpMetadata` | Demonstrates how to insert selected pages from one PDF into another and then add or overwrite XMP... | +| [insert-pdf-pages-update-xmp-metadata](./insert-pdf-pages-update-xmp-metadata.cs) | Insert pdf pages update xmp metadata | | Insert pdf pages update xmp metadata | | [list-xmp-namespaces-in-pdf](./list-xmp-namespaces-in-pdf.cs) | List XMP Namespaces in a PDF | `PdfXmpMetadata`, `BindPdf`, `GetXmpMetadata` | Shows how to extract the XMP metadata packet from a PDF using Aspose.Pdf and enumerate the namesp... | -| [load-encrypted-pdf-decrypt-save](./load-encrypted-pdf-decrypt-save.cs) | Load Encrypted PDF, Decrypt with Password, and Save Unprotec... | `Document`, `ctor(string)`, `ctor(string, string)` | Demonstrates how to detect an encrypted PDF, handle the InvalidPasswordException, load the docume... | -| [log-original-xmp-metadata](./log-original-xmp-metadata.cs) | Log Original XMP Metadata from PDF | `PdfXmpMetadata`, `BindPdf`, `GetXmpMetadata` | Shows how to bind a PDF using the PdfXmpMetadata facade, extract the XMP metadata as XML, and sav... | -| [log-xmp-metadata-size-before-after-modification](./log-xmp-metadata-size-before-after-modification.cs) | Log XMP Metadata Size Before and After Modification | `Document`, `PdfXmpMetadata`, `GetXmpMetadata` | Demonstrates how to retrieve, log, and modify the XMP metadata block of a PDF using Aspose.Pdf, s... | -| [modify-xmp-creator-property](./modify-xmp-creator-property.cs) | Modify XMP Creator Property in PDF | `Document`, `PdfXmpMetadata`, `BindPdf` | Demonstrates reading XMP metadata from a PDF, updating the dc:creator element, and writing the mo... | -| [persist-custom-xmp-metadata-pdf](./persist-custom-xmp-metadata-pdf.cs) | Persist Custom XMP Metadata in PDF | `Document`, `PdfFileInfo`, `Creator` | The example creates a PDF, sets the Creator property and custom XMP metadata entries (BaseUrl and... | -| [read-xmp-metadata-from-large-pdf](./read-xmp-metadata-from-large-pdf.cs) | Read XMP Metadata from Large PDF and Measure Performance | `PdfXmpMetadata`, `BindPdf`, `GetXmpMetadata` | Demonstrates how to bind a large PDF file, extract its XMP metadata using Aspose.Pdf.Facades, and... | -| [read-xmp-metadata-from-pdf-unc](./read-xmp-metadata-from-pdf-unc.cs) | Read XMP Metadata from PDF via UNC Path | `PdfXmpMetadata`, `BindPdf`, `GetXmpMetadata` | Shows how to bind a PDF located on a network share using a UNC path and extract its XMP metadata ... | -| [read-xmp-metadata-from-pdf](./read-xmp-metadata-from-pdf.cs) | Read XMP Metadata from PDF | `PdfXmpMetadata`, `BindPdf`, `GetXmpMetadata` | Demonstrates how to bind a PDF file to a PdfXmpMetadata facade and retrieve its XMP metadata as a... | -| [read-xmp-metadata-from-pdf__v2](./read-xmp-metadata-from-pdf__v2.cs) | Read and Parse XMP Metadata from a PDF | `PdfXmpMetadata`, `BindPdf`, `GetXmpMetadata` | Demonstrates how to bind a PDF, extract its XMP metadata as XML, and read specific schema propert... | -| [refresh-creatortool-metadata-for-pdfs](./refresh-creatortool-metadata-for-pdfs.cs) | Refresh CreatorTool Metadata for PDFs | `PdfFileInfo`, `SaveNewInfo`, `Creator` | Shows how to scan a repository of PDF files and update the CreatorTool‑related XMP metadata (Crea... | -| [remove-nickname-from-xmp-metadata](./remove-nickname-from-xmp-metadata.cs) | Remove Nickname Element from PDF XMP Metadata | `PdfXmpMetadata`, `BindPdf`, `Remove` | Shows how to bind a PDF, remove the Nickname property from its XMP metadata using the PdfXmpMetad... | -| [remove-xmp-metadata-from-pdf](./remove-xmp-metadata-from-pdf.cs) | Remove XMP Metadata from PDF | `PdfXmpMetadata`, `BindPdf`, `Clear` | Shows how to delete the entire XMP metadata block from a PDF using Aspose.Pdf.Facades and save a ... | -| [replace-pdf-xmp-metadata](./replace-pdf-xmp-metadata.cs) | Replace PDF XMP Metadata from External File | `Document`, `SetXmpMetadata`, `Save` | Demonstrates loading a PDF, reading an external XMP file and replacing the document's XMP metadat... | -| [set-baseurl-in-pdf-xmp-metadata](./set-baseurl-in-pdf-xmp-metadata.cs) | Set BaseURL in PDF XMP Metadata | `PdfXmpMetadata`, `BindPdf`, `Add` | Demonstrates how to add or replace the BaseURL property in a PDF's XMP metadata using the PdfXmpM... | -| ... | | | *and 14 more files* | +| ... | | | *and 42 more files* | ## Category Statistics -- Total examples: 44 +- Total examples: 72 ## General Tips - See parent [AGENTS.md](../AGENTS.md) for: @@ -101,5 +89,5 @@ using (Document doc = new Document("input.pdf")) - Review code examples in this folder for facades-xmp-metadata patterns -Updated: 2026-08-20 | Run: `20260820_001147_12d7b3` +Updated: 2026-09-10 | Run: `20260910_054408_87a7f4` diff --git a/facades-xmp-metadata/README.md b/facades-xmp-metadata/README.md new file mode 100644 index 000000000..b4c5c21a2 --- /dev/null +++ b/facades-xmp-metadata/README.md @@ -0,0 +1,91 @@ +# Facades XMP metadata + +> **Facades XMP metadata** in PDF using C# / .NET -- **72** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. + +- Category: `facades-xmp-metadata` +- Examples: 72 +- NuGet: `Aspose.PDF 26.8.0` -- target `net10.0` + +## Examples + +- [`add-creator-metadata-to-pdf-document.cs`](./add-creator-metadata-to-pdf-document.cs) -- Add creator metadata to pdf document +- [`add-minimal-xmp-metadata-fallback.cs`](./add-minimal-xmp-metadata-fallback.cs) -- Add minimal xmp metadata fallback +- [`add-timestamp-to-pdf-xmp-metadata.cs`](./add-timestamp-to-pdf-xmp-metadata.cs) -- Add timestamp to pdf xmp metadata +- [`add-xmp-timestamp-to-pdf.cs`](./add-xmp-timestamp-to-pdf.cs) -- Add xmp timestamp to pdf +- [`benchmark-xmp-metadata-extraction.cs`](./benchmark-xmp-metadata-extraction.cs) -- Benchmark xmp metadata extraction +- [`bind-pdf-byte-array-to-pdfxmpmetadata.cs`](./bind-pdf-byte-array-to-pdfxmpmetadata.cs) -- Bind pdf byte array to pdfxmpmetadata +- [`clear-all-xmp-metadata.cs`](./clear-all-xmp-metadata.cs) -- Clear all xmp metadata +- [`clear-xmp-metadata-pdf.cs`](./clear-xmp-metadata-pdf.cs) -- Clear xmp metadata pdf +- [`compress-pdf-read-xmp-metadata.cs`](./compress-pdf-read-xmp-metadata.cs) -- Compress pdf read xmp metadata +- [`copy-xmp-metadata-and-merge-pdfs.cs`](./copy-xmp-metadata-and-merge-pdfs.cs) -- Copy xmp metadata and merge pdfs +- [`create-pdf-with-xmp-metadata.cs`](./create-pdf-with-xmp-metadata.cs) -- Create pdf with xmp metadata +- [`create-xmp-metadata-pdf.cs`](./create-xmp-metadata-pdf.cs) -- Create xmp metadata pdf +- [`decrypt-encrypted-pdf-with-pdffilesecurity.cs`](./decrypt-encrypted-pdf-with-pdffilesecurity.cs) -- Decrypt encrypted pdf with pdffilesecurity +- [`decrypt-update-creator-reencrypt-pdf.cs`](./decrypt-update-creator-reencrypt-pdf.cs) -- Decrypt update creator reencrypt pdf +- [`decrypt-update-creatortool-reencrypt-pdf.cs`](./decrypt-update-creatortool-reencrypt-pdf.cs) -- Decrypt update creatortool reencrypt pdf +- [`detect-and-modify-xmp-metadata.cs`](./detect-and-modify-xmp-metadata.cs) -- Detect and modify xmp metadata +- [`detect-xmp-metadata-in-pdf.cs`](./detect-xmp-metadata-in-pdf.cs) -- Detect xmp metadata in pdf +- [`disable-baseurl-injection-for-pdf-generation.cs`](./disable-baseurl-injection-for-pdf-generation.cs) -- Disable baseurl injection for pdf generation +- [`disable-baseurl-injection-html-to-pdf.cs`](./disable-baseurl-injection-html-to-pdf.cs) -- Disable baseurl injection html to pdf +- [`export-pdf-xmp-metadata-to-json.cs`](./export-pdf-xmp-metadata-to-json.cs) -- Export pdf xmp metadata to json +- [`export-xmp-metadata-from-pdf.cs`](./export-xmp-metadata-from-pdf.cs) -- Export xmp metadata from pdf +- [`export-xmp-metadata-to-json.cs`](./export-xmp-metadata-to-json.cs) -- Export xmp metadata to json +- [`export-xmp-metadata-to-sidecar.cs`](./export-xmp-metadata-to-sidecar.cs) -- Export xmp metadata to sidecar +- [`extract-audit-original-xmp-metadata.cs`](./extract-audit-original-xmp-metadata.cs) -- Extract audit original xmp metadata +- [`extract-xmp-metadata-from-pdf-byte-array.cs`](./extract-xmp-metadata-from-pdf-byte-array.cs) -- Extract xmp metadata from pdf byte array +- [`extract-xmp-metadata-from-pdf.cs`](./extract-xmp-metadata-from-pdf.cs) -- Extract xmp metadata from pdf +- [`extract-xmp-metadata-to-dictionary.cs`](./extract-xmp-metadata-to-dictionary.cs) -- Extract xmp metadata to dictionary +- [`insert-pages-update-xmp-metadata.cs`](./insert-pages-update-xmp-metadata.cs) -- Insert pages update xmp metadata +- [`insert-pdf-pages-update-xmp-metadata.cs`](./insert-pdf-pages-update-xmp-metadata.cs) -- Insert pdf pages update xmp metadata +- [`list-xmp-namespaces-in-pdf.cs`](./list-xmp-namespaces-in-pdf.cs) -- List xmp namespaces in pdf +- [`load-encrypted-pdf-decrypt-save.cs`](./load-encrypted-pdf-decrypt-save.cs) -- Load encrypted pdf decrypt save +- [`load-pdf-retrieve-xmp-metadata.cs`](./load-pdf-retrieve-xmp-metadata.cs) -- Load pdf retrieve xmp metadata +- [`log-original-xmp-metadata.cs`](./log-original-xmp-metadata.cs) -- Log original xmp metadata +- [`log-xmp-metadata-size-before-after-modification.cs`](./log-xmp-metadata-size-before-after-modification.cs) -- Log xmp metadata size before after modification +- [`modify-xmp-creator-property.cs`](./modify-xmp-creator-property.cs) -- Modify xmp creator property +- [`nightly-creator-metadata-refresh.cs`](./nightly-creator-metadata-refresh.cs) -- Nightly creator metadata refresh +- [`persist-custom-xmp-metadata-pdf.cs`](./persist-custom-xmp-metadata-pdf.cs) -- Persist custom xmp metadata pdf +- [`preserve-xmp-metadata-when-splitting-pdf.cs`](./preserve-xmp-metadata-when-splitting-pdf.cs) -- Preserve xmp metadata when splitting pdf +- [`read-xmp-metadata-from-large-pdf.cs`](./read-xmp-metadata-from-large-pdf.cs) -- Read xmp metadata from large pdf +- [`read-xmp-metadata-from-pdf-unc.cs`](./read-xmp-metadata-from-pdf-unc.cs) -- Read xmp metadata from pdf unc +- [`read-xmp-metadata-from-pdf.cs`](./read-xmp-metadata-from-pdf.cs) -- Read xmp metadata from pdf +- [`read-xmp-metadata-from-pdf__v2.cs`](./read-xmp-metadata-from-pdf__v2.cs) -- Read xmp metadata from pdf v2 +- [`refresh-creatortool-metadata-for-pdfs.cs`](./refresh-creatortool-metadata-for-pdfs.cs) -- Refresh creatortool metadata for pdfs +- [`remove-nickname-from-pdf-xmp-metadata.cs`](./remove-nickname-from-pdf-xmp-metadata.cs) -- Remove nickname from pdf xmp metadata +- [`remove-nickname-from-xmp-metadata.cs`](./remove-nickname-from-xmp-metadata.cs) -- Remove nickname from xmp metadata +- [`remove-xmp-metadata-from-pdf.cs`](./remove-xmp-metadata-from-pdf.cs) -- Remove xmp metadata from pdf +- [`replace-pdf-xmp-metadata.cs`](./replace-pdf-xmp-metadata.cs) -- Replace pdf xmp metadata +- [`retrieve-xmp-metadata-from-pdf.cs`](./retrieve-xmp-metadata-from-pdf.cs) -- Retrieve xmp metadata from pdf +- [`set-baseurl-in-pdf-xmp-metadata.cs`](./set-baseurl-in-pdf-xmp-metadata.cs) -- Set baseurl in pdf xmp metadata +- [`set-creator-tool-xmp-metadata.cs`](./set-creator-tool-xmp-metadata.cs) -- Set creator tool xmp metadata +- [`set-default-creator-metadata.cs`](./set-default-creator-metadata.cs) -- Set default creator metadata +- [`set-pdf-creator-metadata-default.cs`](./set-pdf-creator-metadata-default.cs) -- Set pdf creator metadata default +- [`set-pdf-creator-metadata.cs`](./set-pdf-creator-metadata.cs) -- Set pdf creator metadata +- [`set-xmp-creatortool-to-app-version.cs`](./set-xmp-creatortool-to-app-version.cs) -- Set xmp creatortool to app version +- [`set-xmp-metadata-conditionally-with-warnings.cs`](./set-xmp-metadata-conditionally-with-warnings.cs) -- Set xmp metadata conditionally with warnings +- [`set-xmp-nickname-property.cs`](./set-xmp-nickname-property.cs) -- Set xmp nickname property +- [`set-xmp-property-if-empty.cs`](./set-xmp-property-if-empty.cs) -- Set xmp property if empty +- [`split-pdf-preserve-xmp-metadata.cs`](./split-pdf-preserve-xmp-metadata.cs) -- Split pdf preserve xmp metadata +- [`store-extract-unicode-nickname.cs`](./store-extract-unicode-nickname.cs) -- Store extract unicode nickname +- [`update-multiple-xmp-properties-atomically.cs`](./update-multiple-xmp-properties-atomically.cs) -- Update multiple xmp properties atomically +- [`update-multiple-xmp-properties.cs`](./update-multiple-xmp-properties.cs) -- Update multiple xmp properties +- [`update-pdf-creator-tool-metadata.cs`](./update-pdf-creator-tool-metadata.cs) -- Update pdf creator tool metadata +- [`update-pdf-info-and-xmp-metadata.cs`](./update-pdf-info-and-xmp-metadata.cs) -- Update pdf info and xmp metadata +- [`update-xmp-baseurl.cs`](./update-xmp-baseurl.cs) -- Update xmp baseurl +- [`update-xmp-metadata-and-save-pdf.cs`](./update-xmp-metadata-and-save-pdf.cs) -- Update xmp metadata and save pdf +- [`update-xmp-property-in-pdf.cs`](./update-xmp-property-in-pdf.cs) -- Update xmp property in pdf +- [`validate-mandatory-xmp-metadata.cs`](./validate-mandatory-xmp-metadata.cs) -- Validate mandatory xmp metadata +- [`validate-xmp-metadata-against-the-official-xmp-schema-using-an-xml-schema-validator.cs`](./validate-xmp-metadata-against-the-official-xmp-schema-using-an-xml-schema-validator.cs) -- Validate xmp metadata against the official xmp schema using an xml schema validator +- [`validate-xmp-metadata-in-pdf.cs`](./validate-xmp-metadata-in-pdf.cs) -- Validate xmp metadata in pdf +- [`verify-basepath-uri-escaping.cs`](./verify-basepath-uri-escaping.cs) -- Verify basepath uri escaping +- [`verify-baseurl-escaping.cs`](./verify-baseurl-escaping.cs) -- Verify baseurl escaping +- [`write-verify-xmp-metadata-pdf.cs`](./write-verify-xmp-metadata-pdf.cs) -- Write verify xmp metadata pdf + +## See Also + +- [`AGENTS.md`](./AGENTS.md) -- category-specific anti-patterns, API surface, and conventions for AI coding agents +- [`../AGENTS.md`](../AGENTS.md) -- repository-wide agent guide +- [`../README.md`](../README.md) -- full category index and project overview +- [Aspose.PDF for .NET docs](https://docs.aspose.com/pdf/net/) + +> Each `.cs` file is a standalone, build-validated console example. Drop into a fresh `dotnet new console` project, add the `Aspose.PDF` NuGet (version above), and run. diff --git a/facades-xmp-metadata/index.json b/facades-xmp-metadata/index.json index a1407dc16..367046df7 100644 --- a/facades-xmp-metadata/index.json +++ b/facades-xmp-metadata/index.json @@ -1,264 +1,443 @@ { "category": "facades-xmp-metadata", "nuget_version": "26.8.0", - "last_updated": "2026-08-20T08:07:38Z", + "last_updated": "2026-09-10T12:45:08Z", "examples": { - "read-xmp-metadata-from-pdf": { - "title": "Read XMP Metadata from PDF", - "filename": "read-xmp-metadata-from-pdf.cs", - "description": "Demonstrates how to bind a PDF file to a PdfXmpMetadata facade and retrieve its XMP metadata as a byte array.", + "add-creator-metadata-to-pdf-document": { + "title": "Add Creator Metadata To Pdf Document", + "filename": "add-creator-metadata-to-pdf-document.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-minimal-xmp-metadata-fallback": { + "title": "Add Minimal XMP Metadata Fallback to PDF", + "filename": "add-minimal-xmp-metadata-fallback.cs", + "description": "Shows how to detect missing XMP metadata in a PDF and inject a minimal set of metadata entries using Aspose.Pdf.", "tags": [ - "pdf", "xmp", "metadata", - "aspose.pdf", - "facade" + "pdf", + "fallback", + "aspose" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfXmpMetadata", "Aspose.Pdf.Facades.PdfXmpMetadata.BindPdf", - "Aspose.Pdf.Facades.PdfXmpMetadata.GetXmpMetadata" + "Aspose.Pdf.Facades.PdfXmpMetadata.GetXmpMetadata", + "Aspose.Pdf.Facades.PdfXmpMetadata.Add", + "Aspose.Pdf.Facades.PdfXmpMetadata.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:07:38Z", "status": "verified" }, - "create-pdf-with-xmp-metadata": { - "title": "Create PDF with XMP Metadata", - "filename": "create-pdf-with-xmp-metadata.cs", - "description": "Shows how to generate a new PDF, register XMP namespaces, add custom XMP metadata entries, and save the document using Aspose.Pdf.", + "add-timestamp-to-pdf-xmp-metadata": { + "title": "Add Timestamp To Pdf Xmp Metadata", + "filename": "add-timestamp-to-pdf-xmp-metadata.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-xmp-timestamp-to-pdf": { + "title": "Add XMP Timestamp to PDF during Generation", + "filename": "add-xmp-timestamp-to-pdf.cs", + "description": "Shows how to create a PDF with Aspose.Pdf, add a page with sample text, and automatically embed an XMP ModifyDate timestamp into the document metadata.", + "tags": [ + "xmp", + "metadata", + "timestamp", + "pdf", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Facades.PdfXmpMetadata", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Facades.PdfXmpMetadata.Add" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:07:38Z", + "status": "verified" + }, + "benchmark-xmp-metadata-extraction": { + "title": "Benchmark Xmp Metadata Extraction", + "filename": "benchmark-xmp-metadata-extraction.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "bind-pdf-byte-array-to-pdfxmpmetadata": { + "title": "Bind PDF Byte Array to PdfXmpMetadata and Extract XMP", + "filename": "bind-pdf-byte-array-to-pdfxmpmetadata.cs", + "description": "Demonstrates how to create a PDF in memory, bind it from a byte array to the PdfXmpMetadata facade, and retrieve the XMP metadata as a byte array.", "tags": [ "pdf", "xmp", "metadata", - "aspose", - "csharp" + "byte-array", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Document.Metadata.RegisterNamespaceUri", - "Aspose.Pdf.Document.Metadata (indexer)", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Facades.PdfXmpMetadata", + "Aspose.Pdf.Facades.PdfXmpMetadata.BindPdf", + "Aspose.Pdf.Facades.PdfXmpMetadata.GetXmpMetadata" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:07:38Z", "status": "verified" }, - "detect-and-modify-xmp-metadata": { - "title": "Detect and Modify XMP Metadata in PDF", - "filename": "detect-and-modify-xmp-metadata.cs", - "description": "Demonstrates how to bind a PDF with Aspose.Pdf.Facades.PdfXmpMetadata, check for existing XMP metadata, add a custom XMP property, and save the modified document.", + "clear-all-xmp-metadata": { + "title": "Clear All Xmp Metadata", + "filename": "clear-all-xmp-metadata.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "clear-xmp-metadata-pdf": { + "title": "Clear All XMP Metadata from PDF while Preserving Header", + "filename": "clear-xmp-metadata-pdf.cs", + "description": "Demonstrates how to remove all XMP metadata from a PDF using Aspose.Pdf.Facades, keeping only the mandatory PDF schema header.", "tags": [ "xmp", "metadata", "pdf", "aspose", - "facade" + "clearing" ], "apis_used": [ "Aspose.Pdf.Facades.PdfXmpMetadata", - "PdfXmpMetadata.BindPdf", - "PdfXmpMetadata.GetXmpMetadata", - "PdfXmpMetadata.Add", - "PdfXmpMetadata.Save" + "Aspose.Pdf.Facades.PdfXmpMetadata.BindPdf", + "Aspose.Pdf.Facades.PdfXmpMetadata.Clear", + "Aspose.Pdf.Facades.PdfXmpMetadata.Save", + "Aspose.Pdf.Facades.PdfXmpMetadata.Dispose" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:07:38Z", "status": "verified" }, - "set-baseurl-in-pdf-xmp-metadata": { - "title": "Set BaseURL in PDF XMP Metadata", - "filename": "set-baseurl-in-pdf-xmp-metadata.cs", - "description": "Demonstrates how to add or replace the BaseURL property in a PDF's XMP metadata using the PdfXmpMetadata facade from Aspose.Pdf.", + "compress-pdf-read-xmp-metadata": { + "title": "Compress PDF with High Settings and Read XMP Metadata", + "filename": "compress-pdf-read-xmp-metadata.cs", + "description": "Demonstrates compressing a PDF using high‑compression optimization options and then extracting its XMP metadata as an XML string.", "tags": [ - "XMP", - "BaseURL", - "metadata", - "Aspose.Pdf", - "PDF" + "pdf-compression", + "xmp-metadata", + "optimization", + "aspose-pdf", + "csharp" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Optimization.OptimizationOptions", + "Document.OptimizeResources", + "Document.Save", "Aspose.Pdf.Facades.PdfXmpMetadata", "PdfXmpMetadata.BindPdf", - "PdfXmpMetadata.Add", - "PdfXmpMetadata.Save" + "PdfXmpMetadata.GetXmpMetadata" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:07:38Z", "status": "verified" }, - "set-creator-tool-xmp-metadata": { - "title": "Set CreatorTool in PDF XMP Metadata", - "filename": "set-creator-tool-xmp-metadata.cs", - "description": "Shows how to assign the xmp:CreatorTool property in a PDF's XMP metadata using Aspose.Pdf.Facades and save the updated file.", + "copy-xmp-metadata-and-merge-pdfs": { + "title": "Copy XMP Metadata and Merge PDFs", + "filename": "copy-xmp-metadata-and-merge-pdfs.cs", + "description": "Shows how to extract XMP metadata from a source PDF with the PdfXmpMetadata facade, apply it to another PDF, and then merge the pages into a new document.", "tags": [ - "XMP", + "xmp", "metadata", - "CreatorTool", - "Aspose.Pdf", - "PDF" + "pdf", + "merge", + "facade" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfXmpMetadata", - "Aspose.Pdf.Facades.DefaultMetadataProperties", - "Aspose.Pdf.Facades.XmpValue", "PdfXmpMetadata.BindPdf", - "PdfXmpMetadata.Add", - "PdfXmpMetadata.Save" + "PdfXmpMetadata.GetXmpMetadata", + "Document.SetXmpMetadata", + "Document.Pages.Add", + "Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:07:38Z", "status": "verified" }, - "set-xmp-nickname-property": { - "title": "Set XMP Nickname Property in PDF", - "filename": "set-xmp-nickname-property.cs", - "description": "Shows how to bind a PDF, add or update the XMP Nickname metadata property, and save the updated document using Aspose.Pdf.Facades.", + "create-pdf-with-xmp-metadata": { + "title": "Create PDF with XMP Metadata", + "filename": "create-pdf-with-xmp-metadata.cs", + "description": "Shows how to generate a new PDF, register XMP namespaces, add custom XMP metadata entries, and save the document using Aspose.Pdf.", "tags": [ - "XMP", + "pdf", + "xmp", "metadata", - "nickname", - "Aspose.Pdf", - "PDF" + "aspose", + "csharp" ], "apis_used": [ - "PdfXmpMetadata", - "PdfXmpMetadata.BindPdf", - "PdfXmpMetadata.Add", - "PdfXmpMetadata.Save", - "DefaultMetadataProperties.Nickname" + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Pages.Add", + "Aspose.Pdf.Document.Metadata.RegisterNamespaceUri", + "Aspose.Pdf.Document.Metadata (indexer)", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:07:38Z", "status": "verified" }, - "remove-nickname-from-xmp-metadata": { - "title": "Remove Nickname Element from PDF XMP Metadata", - "filename": "remove-nickname-from-xmp-metadata.cs", - "description": "Shows how to bind a PDF, remove the Nickname property from its XMP metadata using the PdfXmpMetadata facade, and save the updated file.", + "create-xmp-metadata-pdf": { + "title": "Create Xmp Metadata Pdf", + "filename": "create-xmp-metadata-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "decrypt-encrypted-pdf-with-pdffilesecurity": { + "title": "Decrypt Encrypted Pdf With Pdffilesecurity", + "filename": "decrypt-encrypted-pdf-with-pdffilesecurity.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "decrypt-update-creator-reencrypt-pdf": { + "title": "Decrypt Update Creator Reencrypt Pdf", + "filename": "decrypt-update-creator-reencrypt-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "decrypt-update-creatortool-reencrypt-pdf": { + "title": "Decrypt PDF, Update CreatorTool, and Re‑encrypt", + "filename": "decrypt-update-creatortool-reencrypt-pdf.cs", + "description": "Demonstrates how to open a password‑protected PDF, decrypt it, modify the Creator metadata (CreatorTool), and then re‑apply encryption with new passwords and privileges using Aspose.Pdf.", "tags": [ - "XMP", + "pdf", + "encryption", "metadata", - "remove", - "PdfXmpMetadata", - "Aspose.Pdf" + "creatortool", + "aspose-pdf" ], "apis_used": [ - "PdfXmpMetadata", - "PdfXmpMetadata.BindPdf", - "PdfXmpMetadata.Remove", - "PdfXmpMetadata.Save", - "DefaultMetadataProperties" + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfFileSecurity", + "Aspose.Pdf.Facades.PdfFileInfo", + "Aspose.Pdf.DocumentPrivilege", + "Aspose.Pdf.KeySize", + "Aspose.Pdf.Algorithm" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:07:38Z", "status": "verified" }, - "extract-xmp-metadata-from-pdf": { - "title": "Extract XMP Metadata from PDF", - "filename": "extract-xmp-metadata-from-pdf.cs", - "description": "Demonstrates how to bind a PDF with the PdfXmpMetadata facade, retrieve the raw XMP XML bytes, convert them to a UTF‑8 string, and optionally save the metadata to a file.", + "detect-and-modify-xmp-metadata": { + "title": "Detect and Modify XMP Metadata in PDF", + "filename": "detect-and-modify-xmp-metadata.cs", + "description": "Demonstrates how to bind a PDF with Aspose.Pdf.Facades.PdfXmpMetadata, check for existing XMP metadata, add a custom XMP property, and save the modified document.", "tags": [ "xmp", "metadata", "pdf", - "extraction", - "aspose.pdf" + "aspose", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfXmpMetadata", "PdfXmpMetadata.BindPdf", - "PdfXmpMetadata.GetXmpMetadata" + "PdfXmpMetadata.GetXmpMetadata", + "PdfXmpMetadata.Add", + "PdfXmpMetadata.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:07:38Z", "status": "verified" }, - "read-xmp-metadata-from-pdf__v2": { - "title": "Read and Parse XMP Metadata from a PDF", - "filename": "read-xmp-metadata-from-pdf__v2.cs", - "description": "Demonstrates how to bind a PDF, extract its XMP metadata as XML, and read specific schema properties such as creator and creation date using Aspose.Pdf.Facades.", - "tags": [ - "xmp", - "metadata", - "pdf", - "xml", - "aspose" + "detect-xmp-metadata-in-pdf": { + "title": "Detect Xmp Metadata In Pdf", + "filename": "detect-xmp-metadata-in-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "disable-baseurl-injection-for-pdf-generation": { + "title": "Disable Baseurl Injection For Pdf Generation", + "filename": "disable-baseurl-injection-for-pdf-generation.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "disable-baseurl-injection-html-to-pdf": { + "title": "Disable BaseUrl Injection When Converting HTML to PDF", + "filename": "disable-baseurl-injection-html-to-pdf.cs", + "description": "Shows how to use a configuration switch to optionally omit the BaseUrl in HtmlLoadOptions while converting HTML to PDF and uses the PdfViewer facade to bind and save the document.", + "tags": [ + "html-to-pdf", + "baseurl", + "configuration", + "facade", + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfXmpMetadata", - "Aspose.Pdf.Facades.PdfXmpMetadata.BindPdf", - "Aspose.Pdf.Facades.PdfXmpMetadata.GetXmpMetadata", - "Aspose.Pdf.Facades.PdfXmpMetadata.GetXmpMetadata(string)" + "Aspose.Pdf.Document", + "Aspose.Pdf.HtmlLoadOptions", + "Aspose.Pdf.Facades.PdfViewer", + "Aspose.Pdf.Facades.PdfViewer.BindPdf", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:07:38Z", + "status": "verified" + }, + "export-pdf-xmp-metadata-to-json": { + "title": "Export PDF XMP Metadata to JSON", + "filename": "export-pdf-xmp-metadata-to-json.cs", + "description": "Shows how to extract XMP metadata from a PDF using Aspose.Pdf.Facades and convert it into JSON format for integration with non‑XML systems.", + "tags": [ + "XMP", + "metadata", + "JSON", + "Aspose.Pdf", + "PDF" + ], + "apis_used": [ + "PdfXmpMetadata", + "PdfXmpMetadata.BindPdf", + "PdfXmpMetadata.GetXmpMetadata" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:07:38Z", "status": "verified" }, - "modify-xmp-creator-property": { - "title": "Modify XMP Creator Property in PDF", - "filename": "modify-xmp-creator-property.cs", - "description": "Demonstrates reading XMP metadata from a PDF, updating the dc:creator element, and writing the modified metadata back using Aspose.Pdf.", + "export-xmp-metadata-from-pdf": { + "title": "Export XMP Metadata from PDF to a Side‑car File", + "filename": "export-xmp-metadata-from-pdf.cs", + "description": "Demonstrates how to bind a PDF document, retrieve its XMP metadata using Aspose.Pdf.Facades, and save the metadata to a separate .xmp side‑car file.", "tags": [ "xmp", "metadata", "pdf", - "aspose", - "csharp" + "export", + "aspose" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfXmpMetadata", "Aspose.Pdf.Facades.PdfXmpMetadata.BindPdf", - "Aspose.Pdf.Facades.PdfXmpMetadata.GetXmpMetadata", - "Aspose.Pdf.Document.SetXmpMetadata" + "Aspose.Pdf.Facades.PdfXmpMetadata.GetXmpMetadata" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:07:38Z", "status": "verified" }, - "update-multiple-xmp-properties": { - "title": "Update Multiple XMP Properties in a Single Transaction", - "filename": "update-multiple-xmp-properties.cs", - "description": "Shows how to bind a PDF's XMP metadata, modify several properties atomically, and save the changes using a temporary file to ensure an atomic update.", + "export-xmp-metadata-to-json": { + "title": "Export Xmp Metadata To Json", + "filename": "export-xmp-metadata-to-json.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "export-xmp-metadata-to-sidecar": { + "title": "Export Xmp Metadata To Sidecar", + "filename": "export-xmp-metadata-to-sidecar.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-audit-original-xmp-metadata": { + "title": "Extract Audit Original Xmp Metadata", + "filename": "extract-audit-original-xmp-metadata.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-xmp-metadata-from-pdf-byte-array": { + "title": "Extract Xmp Metadata From Pdf Byte Array", + "filename": "extract-xmp-metadata-from-pdf-byte-array.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-xmp-metadata-from-pdf": { + "title": "Extract XMP Metadata from PDF", + "filename": "extract-xmp-metadata-from-pdf.cs", + "description": "Demonstrates how to bind a PDF with the PdfXmpMetadata facade, retrieve the raw XMP XML bytes, convert them to a UTF‑8 string, and optionally save the metadata to a file.", "tags": [ "xmp", "metadata", "pdf", - "transaction", - "aspose" + "extraction", + "aspose.pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfXmpMetadata", - "Aspose.Pdf.Facades.DefaultMetadataProperties", "PdfXmpMetadata.BindPdf", - "PdfXmpMetadata.Add", - "PdfXmpMetadata.Save" + "PdfXmpMetadata.GetXmpMetadata" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:07:38Z", "status": "verified" }, - "update-xmp-metadata-and-save-pdf": { - "title": "Update XMP Metadata and Save PDF", - "filename": "update-xmp-metadata-and-save-pdf.cs", - "description": "Demonstrates how to bind a PDF to the XMP metadata facade, modify Dublin Core properties, and save the document with the updated XMP metadata using Aspose.Pdf.", + "extract-xmp-metadata-to-dictionary": { + "title": "Extract XMP Metadata from PDF to Dictionary", + "filename": "extract-xmp-metadata-to-dictionary.cs", + "description": "Shows how to read the XMP packet from a PDF using Aspose.Pdf.Facades and convert the XML into a case‑insensitive dictionary of key/value pairs.", "tags": [ "xmp", "metadata", "pdf", - "aspose", - "facade" + "dictionary", + "aspose" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfXmpMetadata", - "Aspose.Pdf.XmpValue", - "Aspose.Pdf.Facades.PdfXmpMetadata.BindPdf", - "Aspose.Pdf.Facades.PdfXmpMetadata.Save", - "Aspose.Pdf.Facades.SaveableFacade.Save" + "PdfXmpMetadata", + "PdfXmpMetadata.BindPdf", + "PdfXmpMetadata.GetXmpMetadata" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:07:38Z", "status": "verified" }, @@ -285,63 +464,25 @@ "generated_at": "2026-08-20T08:07:38Z", "status": "verified" }, - "split-pdf-preserve-xmp-metadata": { - "title": "Split PDF into Single Pages While Preserving XMP Metadata", - "filename": "split-pdf-preserve-xmp-metadata.cs", - "description": "Demonstrates how to split a multi‑page PDF into individual page files and retain the original XMP metadata on each resulting document using Aspose.Pdf.", - "tags": [ - "pdf-splitting", - "xmp-metadata", - "aspose-pdf", - "csharp", - "document-processing" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfXmpMetadata", - "Aspose.Pdf.Facades.PdfFileEditor.SplitToPages", - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.SetXmpMetadata", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Facades.PdfXmpMetadata.BindPdf", - "Aspose.Pdf.Facades.PdfXmpMetadata.GetXmpMetadata" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:07:38Z", + "insert-pdf-pages-update-xmp-metadata": { + "title": "Insert Pdf Pages Update Xmp Metadata", + "filename": "insert-pdf-pages-update-xmp-metadata.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "copy-xmp-metadata-and-merge-pdfs": { - "title": "Copy XMP Metadata and Merge PDFs", - "filename": "copy-xmp-metadata-and-merge-pdfs.cs", - "description": "Shows how to extract XMP metadata from a source PDF with the PdfXmpMetadata facade, apply it to another PDF, and then merge the pages into a new document.", + "list-xmp-namespaces-in-pdf": { + "title": "List XMP Namespaces in a PDF", + "filename": "list-xmp-namespaces-in-pdf.cs", + "description": "Shows how to extract the XMP metadata packet from a PDF using Aspose.Pdf and enumerate the namespace declarations defined in the XMP XML.", "tags": [ "xmp", - "metadata", "pdf", - "merge", - "facade" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfXmpMetadata", - "PdfXmpMetadata.BindPdf", - "PdfXmpMetadata.GetXmpMetadata", - "Document.SetXmpMetadata", - "Document.Pages.Add", - "Document.Save" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:07:38Z", - "status": "verified" - }, - "export-xmp-metadata-from-pdf": { - "title": "Export XMP Metadata from PDF to a Side‑car File", - "filename": "export-xmp-metadata-from-pdf.cs", - "description": "Demonstrates how to bind a PDF document, retrieve its XMP metadata using Aspose.Pdf.Facades, and save the metadata to a separate .xmp side‑car file.", - "tags": [ - "xmp", "metadata", - "pdf", - "export", + "namespaces", "aspose" ], "apis_used": [ @@ -349,60 +490,60 @@ "Aspose.Pdf.Facades.PdfXmpMetadata.BindPdf", "Aspose.Pdf.Facades.PdfXmpMetadata.GetXmpMetadata" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:07:38Z", "status": "verified" }, - "replace-pdf-xmp-metadata": { - "title": "Replace PDF XMP Metadata from External File", - "filename": "replace-pdf-xmp-metadata.cs", - "description": "Demonstrates loading a PDF, reading an external XMP file and replacing the document's XMP metadata block, then saving the updated PDF.", + "load-encrypted-pdf-decrypt-save": { + "title": "Load Encrypted PDF, Decrypt with Password, and Save Unprotected Copy", + "filename": "load-encrypted-pdf-decrypt-save.cs", + "description": "Demonstrates how to detect an encrypted PDF, handle the InvalidPasswordException, load the document using a password, and save a decrypted version while ensuring proper disposal.", "tags": [ - "XMP", - "metadata", - "PDF", - "Aspose.Pdf", - "replace" + "encryption", + "pdf", + "decryption", + "error-handling", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.SetXmpMetadata", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document..ctor(string)", + "Aspose.Pdf.Document..ctor(string, string)", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Dispose", + "Aspose.Pdf.InvalidPasswordException" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:07:38Z", "status": "verified" }, - "validate-xmp-metadata-against-the-official-xmp-schema-using-an-xml-schema-validator": { - "title": "Validate Xmp Metadata Against The Official Xmp Schema Using An Xml Schema Validator", - "filename": "validate-xmp-metadata-against-the-official-xmp-schema-using-an-xml-schema-validator.cs", + "load-pdf-retrieve-xmp-metadata": { + "title": "Load Pdf Retrieve Xmp Metadata", + "filename": "load-pdf-retrieve-xmp-metadata.cs", "description": "", "tags": [], "apis_used": [], "difficulty": "", - "generated_at": "2026-08-20T08:07:38Z", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "set-xmp-metadata-conditionally-with-warnings": { - "title": "Set XMP Metadata Conditionally with Warning Logging", - "filename": "set-xmp-metadata-conditionally-with-warnings.cs", - "description": "Demonstrates how to add XMP metadata to a PDF only when the target property is empty, logging a warning if the property already contains a non‑empty value.", + "log-original-xmp-metadata": { + "title": "Log Original XMP Metadata from PDF", + "filename": "log-original-xmp-metadata.cs", + "description": "Shows how to bind a PDF using the PdfXmpMetadata facade, extract the XMP metadata as XML, and save it to a file for audit tracking.", "tags": [ - "xmp", + "XMP", "metadata", - "pdf", - "aspose", - "csharp" + "audit", + "PDF", + "Aspose" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfXmpMetadata", - "Aspose.Pdf.Facades.DefaultMetadataProperties", - "Aspose.Pdf.XmpValue", - "Aspose.Pdf.Facades.PdfXmpMetadata.Save", - "Aspose.Pdf.Facades.PdfXmpMetadata.Add" + "Aspose.Pdf.Facades.PdfXmpMetadata.BindPdf", + "Aspose.Pdf.Facades.PdfXmpMetadata.GetXmpMetadata" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:07:38Z", "status": "verified" }, @@ -428,136 +569,36 @@ "generated_at": "2026-08-20T08:07:38Z", "status": "verified" }, - "log-original-xmp-metadata": { - "title": "Log Original XMP Metadata from PDF", - "filename": "log-original-xmp-metadata.cs", - "description": "Shows how to bind a PDF using the PdfXmpMetadata facade, extract the XMP metadata as XML, and save it to a file for audit tracking.", - "tags": [ - "XMP", - "metadata", - "audit", - "PDF", - "Aspose" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfXmpMetadata", - "Aspose.Pdf.Facades.PdfXmpMetadata.BindPdf", - "Aspose.Pdf.Facades.PdfXmpMetadata.GetXmpMetadata" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T08:07:38Z", - "status": "verified" - }, - "set-pdf-creator-metadata": { - "title": "Set PDF Creator Metadata via Extension Method", - "filename": "set-pdf-creator-metadata.cs", - "description": "Shows how to create a reusable extension method that assigns the Creator XMP metadata to an Aspose.Pdf Document using the PdfFileInfo facade.", - "tags": [ - "creator", - "metadata", - "extension-method", - "aspose-pdf", - "facade" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.BindPdf", - "Aspose.Pdf.Facades.PdfFileInfo.Creator", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T08:07:38Z", - "status": "verified" - }, - "clear-xmp-metadata-pdf": { - "title": "Clear All XMP Metadata from PDF while Preserving Header", - "filename": "clear-xmp-metadata-pdf.cs", - "description": "Demonstrates how to remove all XMP metadata from a PDF using Aspose.Pdf.Facades, keeping only the mandatory PDF schema header.", + "modify-xmp-creator-property": { + "title": "Modify XMP Creator Property in PDF", + "filename": "modify-xmp-creator-property.cs", + "description": "Demonstrates reading XMP metadata from a PDF, updating the dc:creator element, and writing the modified metadata back using Aspose.Pdf.", "tags": [ "xmp", "metadata", "pdf", "aspose", - "clearing" + "csharp" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfXmpMetadata", "Aspose.Pdf.Facades.PdfXmpMetadata.BindPdf", - "Aspose.Pdf.Facades.PdfXmpMetadata.Clear", - "Aspose.Pdf.Facades.PdfXmpMetadata.Save", - "Aspose.Pdf.Facades.PdfXmpMetadata.Dispose" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T08:07:38Z", - "status": "verified" - }, - "remove-xmp-metadata-from-pdf": { - "title": "Remove XMP Metadata from PDF", - "filename": "remove-xmp-metadata-from-pdf.cs", - "description": "Shows how to delete the entire XMP metadata block from a PDF using Aspose.Pdf.Facades and save a metadata‑free document.", - "tags": [ - "xmp", - "metadata", - "pdf", - "remove", - "aspose" - ], - "apis_used": [ - "PdfXmpMetadata", - "PdfXmpMetadata.BindPdf", - "PdfXmpMetadata.Clear", - "PdfXmpMetadata.Save", - "PdfXmpMetadata.Close" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T08:07:38Z", - "status": "verified" - }, - "load-encrypted-pdf-decrypt-save": { - "title": "Load Encrypted PDF, Decrypt with Password, and Save Unprotected Copy", - "filename": "load-encrypted-pdf-decrypt-save.cs", - "description": "Demonstrates how to detect an encrypted PDF, handle the InvalidPasswordException, load the document using a password, and save a decrypted version while ensuring proper disposal.", - "tags": [ - "encryption", - "pdf", - "decryption", - "error-handling", - "Aspose.Pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document..ctor(string)", - "Aspose.Pdf.Document..ctor(string, string)", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Dispose", - "Aspose.Pdf.InvalidPasswordException" + "Aspose.Pdf.Facades.PdfXmpMetadata.GetXmpMetadata", + "Aspose.Pdf.Document.SetXmpMetadata" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:07:38Z", "status": "verified" }, - "decrypt-update-creatortool-reencrypt-pdf": { - "title": "Decrypt PDF, Update CreatorTool, and Re‑encrypt", - "filename": "decrypt-update-creatortool-reencrypt-pdf.cs", - "description": "Demonstrates how to open a password‑protected PDF, decrypt it, modify the Creator metadata (CreatorTool), and then re‑apply encryption with new passwords and privileges using Aspose.Pdf.", - "tags": [ - "pdf", - "encryption", - "metadata", - "creatortool", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfFileSecurity", - "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.DocumentPrivilege", - "Aspose.Pdf.KeySize", - "Aspose.Pdf.Algorithm" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:07:38Z", + "nightly-creator-metadata-refresh": { + "title": "Nightly Creator Metadata Refresh", + "filename": "nightly-creator-metadata-refresh.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, "persist-custom-xmp-metadata-pdf": { @@ -583,47 +624,14 @@ "generated_at": "2026-08-20T08:07:38Z", "status": "verified" }, - "store-extract-unicode-nickname": { - "title": "Store and Extract Unicode Nickname in PDF", - "filename": "store-extract-unicode-nickname.cs", - "description": "Demonstrates creating a PDF with Unicode characters (Chinese text and emoji) using Aspose.Pdf and verifying the stored value by extracting the text with the PdfExtractor facade.", - "tags": [ - "unicode", - "pdf", - "aspose", - "text-extraction", - "nunit" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.FontRepository.FindFont", - "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractText", - "Aspose.Pdf.Facades.PdfExtractor.GetText" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:07:38Z", - "status": "verified" - }, - "verify-baseurl-escaping": { - "title": "Verify BaseUrl Escaping with Special Characters", - "filename": "verify-baseurl-escaping.cs", - "description": "Shows a unit test that checks the BasePath URI in XfaParserOptions is correctly percent‑escaped for spaces and Unicode characters.", - "tags": [ - "unit-test", - "uri-escaping", - "xfa", - "aspose-pdf", - "nunit" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfViewer", - "Aspose.Pdf.XfaConverter.XfaParserOptions" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T08:07:38Z", + "preserve-xmp-metadata-when-splitting-pdf": { + "title": "Preserve Xmp Metadata When Splitting Pdf", + "filename": "preserve-xmp-metadata-when-splitting-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, "read-xmp-metadata-from-large-pdf": { @@ -648,62 +656,18 @@ "generated_at": "2026-08-20T08:07:38Z", "status": "verified" }, - "update-pdf-creator-tool-metadata": { - "title": "Update PDF CreatorTool Metadata in a Folder", - "filename": "update-pdf-creator-tool-metadata.cs", - "description": "Shows how to scan a directory for PDF files and modify the Creator (CreatorTool) XMP metadata of each file using Aspose.Pdf.Facades.", - "tags": [ - "pdf", - "metadata", - "creator", - "aspose", - "batch" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.Creator", - "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T08:07:38Z", - "status": "verified" - }, - "update-xmp-property-in-pdf": { - "title": "Update XMP Metadata Property in PDF", - "filename": "update-xmp-property-in-pdf.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, modify or add an XMP metadata property, and save the updated document.", + "read-xmp-metadata-from-pdf-unc": { + "title": "Read XMP Metadata from PDF via UNC Path", + "filename": "read-xmp-metadata-from-pdf-unc.cs", + "description": "Shows how to bind a PDF located on a network share using a UNC path and extract its XMP metadata using Aspose.Pdf.Facades.", "tags": [ "xmp", - "metadata", - "pdf", - "aspose", - "command-line" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document..ctor", - "Aspose.Pdf.Document.Metadata", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T08:07:38Z", - "status": "verified" - }, - "bind-pdf-byte-array-to-pdfxmpmetadata": { - "title": "Bind PDF Byte Array to PdfXmpMetadata and Extract XMP", - "filename": "bind-pdf-byte-array-to-pdfxmpmetadata.cs", - "description": "Demonstrates how to create a PDF in memory, bind it from a byte array to the PdfXmpMetadata facade, and retrieve the XMP metadata as a byte array.", - "tags": [ "pdf", - "xmp", + "unc", "metadata", - "byte-array", "aspose" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Document.Save", "Aspose.Pdf.Facades.PdfXmpMetadata", "Aspose.Pdf.Facades.PdfXmpMetadata.BindPdf", "Aspose.Pdf.Facades.PdfXmpMetadata.GetXmpMetadata" @@ -712,16 +676,16 @@ "generated_at": "2026-08-20T08:07:38Z", "status": "verified" }, - "read-xmp-metadata-from-pdf-unc": { - "title": "Read XMP Metadata from PDF via UNC Path", - "filename": "read-xmp-metadata-from-pdf-unc.cs", - "description": "Shows how to bind a PDF located on a network share using a UNC path and extract its XMP metadata using Aspose.Pdf.Facades.", + "read-xmp-metadata-from-pdf": { + "title": "Read XMP Metadata from PDF", + "filename": "read-xmp-metadata-from-pdf.cs", + "description": "Demonstrates how to bind a PDF file to a PdfXmpMetadata facade and retrieve its XMP metadata as a byte array.", "tags": [ - "xmp", "pdf", - "unc", + "xmp", "metadata", - "aspose" + "aspose.pdf", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfXmpMetadata", @@ -732,222 +696,538 @@ "generated_at": "2026-08-20T08:07:38Z", "status": "verified" }, - "list-xmp-namespaces-in-pdf": { - "title": "List XMP Namespaces in a PDF", - "filename": "list-xmp-namespaces-in-pdf.cs", - "description": "Shows how to extract the XMP metadata packet from a PDF using Aspose.Pdf and enumerate the namespace declarations defined in the XMP XML.", + "read-xmp-metadata-from-pdf__v2": { + "title": "Read and Parse XMP Metadata from a PDF", + "filename": "read-xmp-metadata-from-pdf__v2.cs", + "description": "Demonstrates how to bind a PDF, extract its XMP metadata as XML, and read specific schema properties such as creator and creation date using Aspose.Pdf.Facades.", "tags": [ "xmp", - "pdf", "metadata", - "namespaces", + "pdf", + "xml", "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.PdfXmpMetadata", "Aspose.Pdf.Facades.PdfXmpMetadata.BindPdf", - "Aspose.Pdf.Facades.PdfXmpMetadata.GetXmpMetadata" + "Aspose.Pdf.Facades.PdfXmpMetadata.GetXmpMetadata", + "Aspose.Pdf.Facades.PdfXmpMetadata.GetXmpMetadata(string)" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:07:38Z", "status": "verified" }, - "add-minimal-xmp-metadata-fallback": { - "title": "Add Minimal XMP Metadata Fallback to PDF", - "filename": "add-minimal-xmp-metadata-fallback.cs", - "description": "Shows how to detect missing XMP metadata in a PDF and inject a minimal set of metadata entries using Aspose.Pdf.", - "tags": [ + "refresh-creatortool-metadata-for-pdfs": { + "title": "Refresh CreatorTool Metadata for PDFs", + "filename": "refresh-creatortool-metadata-for-pdfs.cs", + "description": "Shows how to scan a repository of PDF files and update the CreatorTool‑related XMP metadata (Creator, Author, Title) using Aspose.Pdf.Facades.PdfFileInfo.", + "tags": [ + "metadata", + "creator-tool", + "pdf", + "aspose", + "batch" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfFileInfo", + "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo", + "Aspose.Pdf.Facades.PdfFileInfo.Creator", + "Aspose.Pdf.Facades.PdfFileInfo.Author", + "Aspose.Pdf.Facades.PdfFileInfo.Title" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:07:38Z", + "status": "verified" + }, + "remove-nickname-from-pdf-xmp-metadata": { + "title": "Remove Nickname From Pdf Xmp Metadata", + "filename": "remove-nickname-from-pdf-xmp-metadata.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "remove-nickname-from-xmp-metadata": { + "title": "Remove Nickname Element from PDF XMP Metadata", + "filename": "remove-nickname-from-xmp-metadata.cs", + "description": "Shows how to bind a PDF, remove the Nickname property from its XMP metadata using the PdfXmpMetadata facade, and save the updated file.", + "tags": [ + "XMP", + "metadata", + "remove", + "PdfXmpMetadata", + "Aspose.Pdf" + ], + "apis_used": [ + "PdfXmpMetadata", + "PdfXmpMetadata.BindPdf", + "PdfXmpMetadata.Remove", + "PdfXmpMetadata.Save", + "DefaultMetadataProperties" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:07:38Z", + "status": "verified" + }, + "remove-xmp-metadata-from-pdf": { + "title": "Remove XMP Metadata from PDF", + "filename": "remove-xmp-metadata-from-pdf.cs", + "description": "Shows how to delete the entire XMP metadata block from a PDF using Aspose.Pdf.Facades and save a metadata‑free document.", + "tags": [ "xmp", "metadata", "pdf", - "fallback", + "remove", "aspose" ], + "apis_used": [ + "PdfXmpMetadata", + "PdfXmpMetadata.BindPdf", + "PdfXmpMetadata.Clear", + "PdfXmpMetadata.Save", + "PdfXmpMetadata.Close" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:07:38Z", + "status": "verified" + }, + "replace-pdf-xmp-metadata": { + "title": "Replace PDF XMP Metadata from External File", + "filename": "replace-pdf-xmp-metadata.cs", + "description": "Demonstrates loading a PDF, reading an external XMP file and replacing the document's XMP metadata block, then saving the updated PDF.", + "tags": [ + "XMP", + "metadata", + "PDF", + "Aspose.Pdf", + "replace" + ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Document.SetXmpMetadata", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:07:38Z", + "status": "verified" + }, + "retrieve-xmp-metadata-from-pdf": { + "title": "Retrieve Xmp Metadata From Pdf", + "filename": "retrieve-xmp-metadata-from-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-baseurl-in-pdf-xmp-metadata": { + "title": "Set BaseURL in PDF XMP Metadata", + "filename": "set-baseurl-in-pdf-xmp-metadata.cs", + "description": "Demonstrates how to add or replace the BaseURL property in a PDF's XMP metadata using the PdfXmpMetadata facade from Aspose.Pdf.", + "tags": [ + "XMP", + "BaseURL", + "metadata", + "Aspose.Pdf", + "PDF" + ], + "apis_used": [ "Aspose.Pdf.Facades.PdfXmpMetadata", - "Aspose.Pdf.Facades.PdfXmpMetadata.BindPdf", - "Aspose.Pdf.Facades.PdfXmpMetadata.GetXmpMetadata", - "Aspose.Pdf.Facades.PdfXmpMetadata.Add", - "Aspose.Pdf.Facades.PdfXmpMetadata.Save" + "PdfXmpMetadata.BindPdf", + "PdfXmpMetadata.Add", + "PdfXmpMetadata.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:07:38Z", "status": "verified" }, - "export-pdf-xmp-metadata-to-json": { - "title": "Export PDF XMP Metadata to JSON", - "filename": "export-pdf-xmp-metadata-to-json.cs", - "description": "Shows how to extract XMP metadata from a PDF using Aspose.Pdf.Facades and convert it into JSON format for integration with non‑XML systems.", + "set-creator-tool-xmp-metadata": { + "title": "Set CreatorTool in PDF XMP Metadata", + "filename": "set-creator-tool-xmp-metadata.cs", + "description": "Shows how to assign the xmp:CreatorTool property in a PDF's XMP metadata using Aspose.Pdf.Facades and save the updated file.", "tags": [ "XMP", "metadata", - "JSON", + "CreatorTool", "Aspose.Pdf", "PDF" ], "apis_used": [ - "PdfXmpMetadata", + "Aspose.Pdf.Facades.PdfXmpMetadata", + "Aspose.Pdf.Facades.DefaultMetadataProperties", + "Aspose.Pdf.Facades.XmpValue", "PdfXmpMetadata.BindPdf", - "PdfXmpMetadata.GetXmpMetadata" + "PdfXmpMetadata.Add", + "PdfXmpMetadata.Save" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:07:38Z", + "status": "verified" + }, + "set-default-creator-metadata": { + "title": "Set Default Creator Metadata for PDF", + "filename": "set-default-creator-metadata.cs", + "description": "Demonstrates how to copy a PDF and ensure the Creator XMP metadata field is populated, using a supplied value or a configurable default when the source PDF lacks it.", + "tags": [ + "pdf", + "metadata", + "creator", + "default", + "Aspose" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfFileInfo", + "Aspose.Pdf.Facades.PdfFileInfo.BindPdf", + "Aspose.Pdf.Facades.PdfFileInfo.Save", + "Aspose.Pdf.Facades.PdfFileInfo.Creator" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:07:38Z", "status": "verified" }, - "compress-pdf-read-xmp-metadata": { - "title": "Compress PDF with High Settings and Read XMP Metadata", - "filename": "compress-pdf-read-xmp-metadata.cs", - "description": "Demonstrates compressing a PDF using high‑compression optimization options and then extracting its XMP metadata as an XML string.", + "set-pdf-creator-metadata-default": { + "title": "Set Pdf Creator Metadata Default", + "filename": "set-pdf-creator-metadata-default.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-pdf-creator-metadata": { + "title": "Set PDF Creator Metadata via Extension Method", + "filename": "set-pdf-creator-metadata.cs", + "description": "Shows how to create a reusable extension method that assigns the Creator XMP metadata to an Aspose.Pdf Document using the PdfFileInfo facade.", "tags": [ - "pdf-compression", - "xmp-metadata", - "optimization", + "creator", + "metadata", + "extension-method", "aspose-pdf", - "csharp" + "facade" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Optimization.OptimizationOptions", - "Document.OptimizeResources", - "Document.Save", - "Aspose.Pdf.Facades.PdfXmpMetadata", - "PdfXmpMetadata.BindPdf", - "PdfXmpMetadata.GetXmpMetadata" + "Aspose.Pdf.Facades.PdfFileInfo", + "Aspose.Pdf.Facades.PdfFileInfo.BindPdf", + "Aspose.Pdf.Facades.PdfFileInfo.Creator", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:07:38Z", "status": "verified" }, - "validate-mandatory-xmp-metadata": { - "title": "Validate Mandatory XMP Metadata Before Publishing PDF", - "filename": "validate-mandatory-xmp-metadata.cs", - "description": "Demonstrates how to load a PDF, extract its XMP metadata using Aspose.Pdf, verify that required XMP fields are present and non‑empty, and then save the PDF if validation succeeds.", + "set-xmp-creatortool-to-app-version": { + "title": "Set Xmp Creatortool To App Version", + "filename": "set-xmp-creatortool-to-app-version.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-xmp-metadata-conditionally-with-warnings": { + "title": "Set XMP Metadata Conditionally with Warning Logging", + "filename": "set-xmp-metadata-conditionally-with-warnings.cs", + "description": "Demonstrates how to add XMP metadata to a PDF only when the target property is empty, logging a warning if the property already contains a non‑empty value.", "tags": [ "xmp", "metadata", - "validation", "pdf", - "aspose" + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfXmpMetadata", - "Aspose.Pdf.Facades.PdfXmpMetadata.BindPdf", - "Aspose.Pdf.Facades.PdfXmpMetadata.GetXmpMetadata", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.DefaultMetadataProperties", + "Aspose.Pdf.XmpValue", + "Aspose.Pdf.Facades.PdfXmpMetadata.Save", + "Aspose.Pdf.Facades.PdfXmpMetadata.Add" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:07:38Z", "status": "verified" }, - "add-xmp-timestamp-to-pdf": { - "title": "Add XMP Timestamp to PDF during Generation", - "filename": "add-xmp-timestamp-to-pdf.cs", - "description": "Shows how to create a PDF with Aspose.Pdf, add a page with sample text, and automatically embed an XMP ModifyDate timestamp into the document metadata.", + "set-xmp-nickname-property": { + "title": "Set XMP Nickname Property in PDF", + "filename": "set-xmp-nickname-property.cs", + "description": "Shows how to bind a PDF, add or update the XMP Nickname metadata property, and save the updated document using Aspose.Pdf.Facades.", "tags": [ - "xmp", + "XMP", "metadata", - "timestamp", + "nickname", + "Aspose.Pdf", + "PDF" + ], + "apis_used": [ + "PdfXmpMetadata", + "PdfXmpMetadata.BindPdf", + "PdfXmpMetadata.Add", + "PdfXmpMetadata.Save", + "DefaultMetadataProperties.Nickname" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:07:38Z", + "status": "verified" + }, + "set-xmp-property-if-empty": { + "title": "Set Xmp Property If Empty", + "filename": "set-xmp-property-if-empty.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "split-pdf-preserve-xmp-metadata": { + "title": "Split PDF into Single Pages While Preserving XMP Metadata", + "filename": "split-pdf-preserve-xmp-metadata.cs", + "description": "Demonstrates how to split a multi‑page PDF into individual page files and retain the original XMP metadata on each resulting document using Aspose.Pdf.", + "tags": [ + "pdf-splitting", + "xmp-metadata", + "aspose-pdf", + "csharp", + "document-processing" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfXmpMetadata", + "Aspose.Pdf.Facades.PdfFileEditor.SplitToPages", + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.SetXmpMetadata", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Facades.PdfXmpMetadata.BindPdf", + "Aspose.Pdf.Facades.PdfXmpMetadata.GetXmpMetadata" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T08:07:38Z", + "status": "verified" + }, + "store-extract-unicode-nickname": { + "title": "Store and Extract Unicode Nickname in PDF", + "filename": "store-extract-unicode-nickname.cs", + "description": "Demonstrates creating a PDF with Unicode characters (Chinese text and emoji) using Aspose.Pdf and verifying the stored value by extracting the text with the PdfExtractor facade.", + "tags": [ + "unicode", "pdf", - "aspose" + "aspose", + "text-extraction", + "nunit" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Facades.PdfXmpMetadata", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Facades.PdfXmpMetadata.Add" + "Aspose.Pdf.Text.FontRepository.FindFont", + "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor.ExtractText", + "Aspose.Pdf.Facades.PdfExtractor.GetText" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:07:38Z", "status": "verified" }, - "extract-xmp-metadata-to-dictionary": { - "title": "Extract XMP Metadata from PDF to Dictionary", - "filename": "extract-xmp-metadata-to-dictionary.cs", - "description": "Shows how to read the XMP packet from a PDF using Aspose.Pdf.Facades and convert the XML into a case‑insensitive dictionary of key/value pairs.", + "update-multiple-xmp-properties-atomically": { + "title": "Update Multiple Xmp Properties Atomically", + "filename": "update-multiple-xmp-properties-atomically.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "update-multiple-xmp-properties": { + "title": "Update Multiple XMP Properties in a Single Transaction", + "filename": "update-multiple-xmp-properties.cs", + "description": "Shows how to bind a PDF's XMP metadata, modify several properties atomically, and save the changes using a temporary file to ensure an atomic update.", "tags": [ "xmp", "metadata", "pdf", - "dictionary", + "transaction", "aspose" ], "apis_used": [ - "PdfXmpMetadata", + "Aspose.Pdf.Facades.PdfXmpMetadata", + "Aspose.Pdf.Facades.DefaultMetadataProperties", "PdfXmpMetadata.BindPdf", - "PdfXmpMetadata.GetXmpMetadata" + "PdfXmpMetadata.Add", + "PdfXmpMetadata.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:07:38Z", "status": "verified" }, - "set-default-creator-metadata": { - "title": "Set Default Creator Metadata for PDF", - "filename": "set-default-creator-metadata.cs", - "description": "Demonstrates how to copy a PDF and ensure the Creator XMP metadata field is populated, using a supplied value or a configurable default when the source PDF lacks it.", + "update-pdf-creator-tool-metadata": { + "title": "Update PDF CreatorTool Metadata in a Folder", + "filename": "update-pdf-creator-tool-metadata.cs", + "description": "Shows how to scan a directory for PDF files and modify the Creator (CreatorTool) XMP metadata of each file using Aspose.Pdf.Facades.", "tags": [ "pdf", "metadata", "creator", - "default", - "Aspose" + "aspose", + "batch" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.BindPdf", - "Aspose.Pdf.Facades.PdfFileInfo.Save", - "Aspose.Pdf.Facades.PdfFileInfo.Creator" + "Aspose.Pdf.Facades.PdfFileInfo.Creator", + "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:07:38Z", "status": "verified" }, - "disable-baseurl-injection-html-to-pdf": { - "title": "Disable BaseUrl Injection When Converting HTML to PDF", - "filename": "disable-baseurl-injection-html-to-pdf.cs", - "description": "Shows how to use a configuration switch to optionally omit the BaseUrl in HtmlLoadOptions while converting HTML to PDF and uses the PdfViewer facade to bind and save the document.", + "update-pdf-info-and-xmp-metadata": { + "title": "Update Pdf Info And Xmp Metadata", + "filename": "update-pdf-info-and-xmp-metadata.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "update-xmp-baseurl": { + "title": "Update Xmp Baseurl", + "filename": "update-xmp-baseurl.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "update-xmp-metadata-and-save-pdf": { + "title": "Update XMP Metadata and Save PDF", + "filename": "update-xmp-metadata-and-save-pdf.cs", + "description": "Demonstrates how to bind a PDF to the XMP metadata facade, modify Dublin Core properties, and save the document with the updated XMP metadata using Aspose.Pdf.", "tags": [ - "html-to-pdf", - "baseurl", - "configuration", - "facade", - "aspose-pdf" + "xmp", + "metadata", + "pdf", + "aspose", + "facade" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfXmpMetadata", + "Aspose.Pdf.XmpValue", + "Aspose.Pdf.Facades.PdfXmpMetadata.BindPdf", + "Aspose.Pdf.Facades.PdfXmpMetadata.Save", + "Aspose.Pdf.Facades.SaveableFacade.Save" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:07:38Z", + "status": "verified" + }, + "update-xmp-property-in-pdf": { + "title": "Update XMP Metadata Property in PDF", + "filename": "update-xmp-property-in-pdf.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, modify or add an XMP metadata property, and save the updated document.", + "tags": [ + "xmp", + "metadata", + "pdf", + "aspose", + "command-line" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.HtmlLoadOptions", - "Aspose.Pdf.Facades.PdfViewer", - "Aspose.Pdf.Facades.PdfViewer.BindPdf", + "Aspose.Pdf.Document..ctor", + "Aspose.Pdf.Document.Metadata", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:07:38Z", "status": "verified" }, - "refresh-creatortool-metadata-for-pdfs": { - "title": "Refresh CreatorTool Metadata for PDFs", - "filename": "refresh-creatortool-metadata-for-pdfs.cs", - "description": "Shows how to scan a repository of PDF files and update the CreatorTool‑related XMP metadata (Creator, Author, Title) using Aspose.Pdf.Facades.PdfFileInfo.", + "validate-mandatory-xmp-metadata": { + "title": "Validate Mandatory XMP Metadata Before Publishing PDF", + "filename": "validate-mandatory-xmp-metadata.cs", + "description": "Demonstrates how to load a PDF, extract its XMP metadata using Aspose.Pdf, verify that required XMP fields are present and non‑empty, and then save the PDF if validation succeeds.", "tags": [ + "xmp", "metadata", - "creator-tool", + "validation", "pdf", - "aspose", - "batch" + "aspose" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo", - "Aspose.Pdf.Facades.PdfFileInfo.Creator", - "Aspose.Pdf.Facades.PdfFileInfo.Author", - "Aspose.Pdf.Facades.PdfFileInfo.Title" + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfXmpMetadata", + "Aspose.Pdf.Facades.PdfXmpMetadata.BindPdf", + "Aspose.Pdf.Facades.PdfXmpMetadata.GetXmpMetadata", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T08:07:38Z", + "status": "verified" + }, + "validate-xmp-metadata-against-the-official-xmp-schema-using-an-xml-schema-validator": { + "title": "Validate Xmp Metadata Against The Official Xmp Schema Using An Xml Schema Validator", + "filename": "validate-xmp-metadata-against-the-official-xmp-schema-using-an-xml-schema-validator.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-08-20T08:07:38Z", + "status": "verified" + }, + "validate-xmp-metadata-in-pdf": { + "title": "Validate Xmp Metadata In Pdf", + "filename": "validate-xmp-metadata-in-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "verify-basepath-uri-escaping": { + "title": "Verify Basepath Uri Escaping", + "filename": "verify-basepath-uri-escaping.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "verify-baseurl-escaping": { + "title": "Verify BaseUrl Escaping with Special Characters", + "filename": "verify-baseurl-escaping.cs", + "description": "Shows a unit test that checks the BasePath URI in XfaParserOptions is correctly percent‑escaped for spaces and Unicode characters.", + "tags": [ + "unit-test", + "uri-escaping", + "xfa", + "aspose-pdf", + "nunit" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfViewer", + "Aspose.Pdf.XfaConverter.XfaParserOptions" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:07:38Z", "status": "verified" + }, + "write-verify-xmp-metadata-pdf": { + "title": "Write Verify Xmp Metadata Pdf", + "filename": "write-verify-xmp-metadata-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" } } } \ No newline at end of file diff --git a/graphs-zugferd-operators/AGENTS.md b/graphs-zugferd-operators/AGENTS.md index df373ea33..514cc4916 100644 --- a/graphs-zugferd-operators/AGENTS.md +++ b/graphs-zugferd-operators/AGENTS.md @@ -8,7 +8,7 @@ parent: ../agents.md # AGENTS - graphs-zugferd-operators -> **Graphs ZUGFeRD operators** in PDF using C# / .NET -- **85** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. +> **Graphs ZUGFeRD operators** in PDF using C# / .NET -- **124** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. ## Persona @@ -23,26 +23,26 @@ See the root [agents.md](../agents.md) for repository-wide conventions and bound ## Required Namespaces -- `using Aspose.Pdf;` (84/85 files) ← category-specific -- `using Aspose.Pdf.Annotations;` (24/85 files) -- `using Aspose.Pdf.Text;` (12/85 files) -- `using Aspose.Pdf.Forms;` (9/85 files) -- `using Aspose.Pdf.Drawing;` (7/85 files) -- `using Aspose.Pdf.Devices;` (6/85 files) -- `using Aspose.Pdf.Operators;` (5/85 files) -- `using Aspose.Pdf.Facades;` (3/85 files) -- `using Aspose.Pdf.Tagged;` (2/85 files) -- `using Aspose.Pdf.Optimization;` (1/85 files) -- `using Aspose.Pdf.Signatures;` (1/85 files) -- `using System;` (85/85 files) -- `using System.IO;` (77/85 files) -- `using System.Collections.Generic;` (7/85 files) -- `using System.Drawing;` (1/85 files) -- `using System.Drawing.Printing;` (1/85 files) -- `using System.Reflection;` (1/85 files) -- `using System.Text.Json;` (1/85 files) -- `using System.Xml;` (1/85 files) -- `using System.Xml.Schema;` (1/85 files) +- `using Aspose.Pdf;` (84/124 files) ← category-specific +- `using Aspose.Pdf.Annotations;` (24/124 files) +- `using Aspose.Pdf.Text;` (12/124 files) +- `using Aspose.Pdf.Forms;` (9/124 files) +- `using Aspose.Pdf.Drawing;` (7/124 files) +- `using Aspose.Pdf.Devices;` (6/124 files) +- `using Aspose.Pdf.Operators;` (5/124 files) +- `using Aspose.Pdf.Facades;` (3/124 files) +- `using Aspose.Pdf.Tagged;` (2/124 files) +- `using Aspose.Pdf.Optimization;` (1/124 files) +- `using Aspose.Pdf.Signatures;` (1/124 files) +- `using System;` (85/124 files) +- `using System.IO;` (77/124 files) +- `using System.Collections.Generic;` (7/124 files) +- `using System.Drawing;` (1/124 files) +- `using System.Drawing.Printing;` (1/124 files) +- `using System.Reflection;` (1/124 files) +- `using System.Text.Json;` (1/124 files) +- `using System.Xml;` (1/124 files) +- `using System.Xml.Schema;` (1/124 files) ## Common Code Pattern @@ -66,34 +66,34 @@ using (Document doc = new Document("input.pdf")) | [add-custom-metadata-to-zugferd-pdf](./add-custom-metadata-to-zugferd-pdf.cs) | Add Custom Metadata to ZUGFeRD PDF | `Document`, `DocumentInfo`, `Save` | Demonstrates loading an existing PDF with Aspose.Pdf, adding custom metadata entries such as proj... | | [add-encrypted-file-attachment-to-pdf](./add-encrypted-file-attachment-to-pdf.cs) | Add Encrypted File Attachment to PDF | `Document`, `Page`, `TextFragment` | Shows how to embed a file attachment using a stream and then encrypt the PDF so only authorized u... | | [add-expiry-javascript-action-to-pdf](./add-expiry-javascript-action-to-pdf.cs) | Add Expiry JavaScript Action to PDF | `Document`, `JavascriptAction`, `OpenAction` | Shows how to embed a document‑level JavaScript action that checks a predefined expiry date and cl... | +| [add-file-attachment-annotation-to-pdf](./add-file-attachment-annotation-to-pdf.cs) | Add file attachment annotation to pdf | | Add file attachment annotation to pdf | | [add-file-attachment-to-pdf](./add-file-attachment-to-pdf.cs) | Add File Attachment to PDF with Description | `Document`, `Page`, `Rectangle` | Shows how to attach an external PDF file to a PDF document using Aspose.Pdf, including a descript... | +| [add-javascript-calculate-total-pdf](./add-javascript-calculate-total-pdf.cs) | Add javascript calculate total pdf | | Add javascript calculate total pdf | | [add-javascript-calculation-to-pdf-total](./add-javascript-calculation-to-pdf-total.cs) | Add JavaScript Calculation to PDF Form Total Field | `Document`, `Form`, `Field` | Shows how to embed JavaScript in a PDF using Aspose.Pdf to sum line‑item fields and display the r... | | [add-javascript-open-action-jump-to-page-5](./add-javascript-open-action-jump-to-page-5.cs) | Add JavaScript Open Action to Jump to Page 5 | `Document`, `JavascriptAction`, `OpenAction` | Demonstrates how to attach a JavaScript open action to a PDF using Aspose.Pdf so that the documen... | +| [add-javascript-password-prompt-to-pdf](./add-javascript-password-prompt-to-pdf.cs) | Add javascript password prompt to pdf | | Add javascript password prompt to pdf | | [add-javascript-toggle-optional-sections](./add-javascript-toggle-optional-sections.cs) | Add JavaScript to Toggle Optional Sections in PDF Form | `Document`, `CheckboxField`, `JavascriptAction` | Shows how to attach a JavaScript action to a checkbox field in an Aspose.Pdf form so that optiona... | +| [add-javascript-toggle-pdf-form-sections](./add-javascript-toggle-pdf-form-sections.cs) | Add javascript toggle pdf form sections | | Add javascript toggle pdf form sections | +| [add-js-open-action-navigate-page-10](./add-js-open-action-navigate-page-10.cs) | Add js open action navigate page 10 | | Add js open action navigate page 10 | | [add-page-level-javascript-alert-to-pdf](./add-page-level-javascript-alert-to-pdf.cs) | Add Page-Level JavaScript Alert to PDF | `Document`, `Page`, `JavascriptAction` | Demonstrates how to embed a JavaScript action that shows an alert when a specific PDF page is ope... | +| [add-page-level-javascript-alert](./add-page-level-javascript-alert.cs) | Add page level javascript alert | | Add page level javascript alert | | [add-password-prompt-javascript-to-pdf](./add-password-prompt-javascript-to-pdf.cs) | Add Password Prompt JavaScript to PDF | `Document`, `JavascriptAction`, `OpenAction` | Demonstrates embedding JavaScript in a PDF with Aspose.Pdf to prompt for a password on document o... | +| [add-semi-transparent-background-watermark](./add-semi-transparent-background-watermark.cs) | Add semi transparent background watermark | | Add semi transparent background watermark | | [add-semi-transparent-text-watermark](./add-semi-transparent-text-watermark.cs) | Add Semi-Transparent Text Watermark Behind PDF Content | `Document`, `Page`, `WatermarkArtifact` | Demonstrates how to place a semi‑transparent text watermark behind the existing content on every ... | | [add-signature-field-with-js-validation](./add-signature-field-with-js-validation.cs) | Add Digital Signature Field with JavaScript Validation to PD... | `Document`, `Page`, `Rectangle` | Shows how to create a PDF, insert a digital signature field, and attach a JavaScript action that ... | | [add-xmp-metadata-pdfa-compliance](./add-xmp-metadata-pdfa-compliance.cs) | Add XMP Metadata for PDF/A Compliance | `Document`, `DocumentInfo`, `Metadata` | Shows how to load a PDF, add required XMP metadata entries (creator tool, creation date, document... | +| [apply-form-filling-only-security](./apply-form-filling-only-security.cs) | Apply form filling only security | | Apply form filling only security | | [attach-multiple-files-to-pdf](./attach-multiple-files-to-pdf.cs) | Attach Multiple Files with Descriptions to a PDF | `Document`, `Page`, `FileSpecification` | Demonstrates how to embed several external files into a PDF, each with its own MIME type, descrip... | | [attach-zugferd-xml-to-pdf](./attach-zugferd-xml-to-pdf.cs) | Attach ZUGFeRD XML to PDF and Convert to PDF/A‑3B | `Document`, `FileSpecification`, `EmbeddedFiles` | Shows how to load a PDF, embed a ZUGFeRD XML file as an attached file (AFRelationship.Data), conv... | +| [auto-print-pdf-on-open](./auto-print-pdf-on-open.cs) | Auto print pdf on open | | Auto print pdf on open | | [batch-apply-pdf-password-protection](./batch-apply-pdf-password-protection.cs) | Batch Apply Password Protection to PDFs | `Document`, `Encrypt`, `Save` | Demonstrates how to iterate through a folder of PDF files and apply identical user and owner pass... | | [batch-convert-pdfs-to-jpeg](./batch-convert-pdfs-to-jpeg.cs) | Batch Convert PDFs to JPEG Images | `Document`, `Resolution`, `JpegDevice` | Demonstrates how to iterate through all PDF files in a folder, convert each page to a JPEG image ... | +| [batch-encrypt-pdfs-with-password](./batch-encrypt-pdfs-with-password.cs) | Batch encrypt pdfs with password | | Batch encrypt pdfs with password | | [batch-generate-zugferd-pdfs-from-csv](./batch-generate-zugferd-pdfs-from-csv.cs) | Batch Generate ZUGFeRD‑Compliant PDFs from CSV | `Document`, `Page`, `TextFragment` | Reads invoice data from a CSV file, creates a PDF for each record, adds basic invoice text, and a... | -| [calculate-total-order-amount](./calculate-total-order-amount.cs) | Calculate Total Order Amount from PDF Form Fields | `Document`, `Form`, `Field` | Shows how to read quantity and price fields from an Aspose.Pdf form, compute line totals, and wri... | -| [change-pdf-line-width](./change-pdf-line-width.cs) | Change PDF Line Width from 1 to 3 Points | `Document`, `Page`, `Operator` | Shows how to iterate through each page's content operators and modify SetLineWidth operators to c... | -| [combine-multiple-graphs-on-single-pdf-page](./combine-multiple-graphs-on-single-pdf-page.cs) | Combine Multiple Graphs on a Single PDF Page | `Document`, `Page`, `Graph` | Demonstrates how to place four separate graphs in a 2×2 grid on one PDF page using Aspose.Pdf, in... | -| [compress-pdf-images-optimization](./compress-pdf-images-optimization.cs) | Compress PDF Images and Optimize Resources | `Document`, `OptimizationOptions`, `ImageCompressionOptions` | Demonstrates how to reduce a PDF file size by enabling image compression, resizing high‑resolutio... | -| [convert-pdf-pages-to-high-resolution-png](./convert-pdf-pages-to-high-resolution-png.cs) | Convert PDF Pages to High-Resolution PNG Images | `Document`, `Resolution`, `PngDevice` | Demonstrates loading a PDF with Aspose.Pdf, setting a 300 DPI resolution, and converting each pag... | -| [convert-pdf-to-docx-preserve-layout](./convert-pdf-to-docx-preserve-layout.cs) | Convert PDF to DOCX with Layout Preservation | `Document`, `DocSaveOptions`, `Save` | Shows how to convert a PDF file to DOCX using Aspose.Pdf while keeping the original layout, fonts... | -| [convert-pdf-to-html-with-embedded-images](./convert-pdf-to-html-with-embedded-images.cs) | Convert PDF to HTML with Embedded Images | `Document`, `HtmlSaveOptions`, `PartsEmbeddingModes` | Demonstrates converting a PDF to HTML using Aspose.Pdf while embedding all resources and raster i... | -| [convert-pdf-to-multi-page-tiff](./convert-pdf-to-multi-page-tiff.cs) | Convert PDF to Multi‑Page TIFF | `Document`, `Resolution`, `TiffSettings` | Demonstrates how to load a PDF with Aspose.Pdf, configure TIFF settings, and convert the entire d... | -| [convert-pdf-to-pdfa-2b](./convert-pdf-to-pdfa-2b.cs) | Convert PDF to PDF/A‑2b Compliance | `Document`, `Convert`, `PdfFormat` | Loads a PDF, converts it to PDF/A‑2b archival format using Aspose.Pdf, logs any conversion errors... | -| [convert-pdf-zugferd-to-pdfa3u](./convert-pdf-zugferd-to-pdfa3u.cs) | Convert PDF with ZUGFeRD to PDF/A‑3U preserving XML | `Document`, `Convert`, `Save` | Shows how to load a PDF containing a ZUGFeRD XML attachment and convert it to PDF/A‑3U while keep... | -| ... | | | *and 55 more files* | +| ... | | | *and 94 more files* | ## Category Statistics -- Total examples: 85 +- Total examples: 124 ## Category-Specific Tips @@ -137,5 +137,5 @@ using (Document doc = new Document("input.pdf")) - Review code examples in this folder for graphs-zugferd-operators patterns -Updated: 2026-08-20 | Run: `20260820_001147_12d7b3` +Updated: 2026-09-10 | Run: `20260910_054408_87a7f4` diff --git a/graphs-zugferd-operators/README.md b/graphs-zugferd-operators/README.md new file mode 100644 index 000000000..2927bf1f6 --- /dev/null +++ b/graphs-zugferd-operators/README.md @@ -0,0 +1,143 @@ +# Graphs ZUGFeRD operators + +> **Graphs ZUGFeRD operators** in PDF using C# / .NET -- **124** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. + +- Category: `graphs-zugferd-operators` +- Examples: 124 +- NuGet: `Aspose.PDF 26.8.0` -- target `net10.0` + +## Examples + +- [`add-auto-close-javascript-to-pdf.cs`](./add-auto-close-javascript-to-pdf.cs) -- Add auto close javascript to pdf +- [`add-auto-print-javascript-action-to-pdf.cs`](./add-auto-print-javascript-action-to-pdf.cs) -- Add auto print javascript action to pdf +- [`add-auto-save-javascript-to-pdf.cs`](./add-auto-save-javascript-to-pdf.cs) -- Add auto save javascript to pdf +- [`add-custom-metadata-to-zugferd-pdf.cs`](./add-custom-metadata-to-zugferd-pdf.cs) -- Add custom metadata to zugferd pdf +- [`add-encrypted-file-attachment-to-pdf.cs`](./add-encrypted-file-attachment-to-pdf.cs) -- Add encrypted file attachment to pdf +- [`add-expiry-javascript-action-to-pdf.cs`](./add-expiry-javascript-action-to-pdf.cs) -- Add expiry javascript action to pdf +- [`add-file-attachment-annotation-to-pdf.cs`](./add-file-attachment-annotation-to-pdf.cs) -- Add file attachment annotation to pdf +- [`add-file-attachment-to-pdf.cs`](./add-file-attachment-to-pdf.cs) -- Add file attachment to pdf +- [`add-javascript-calculate-total-pdf.cs`](./add-javascript-calculate-total-pdf.cs) -- Add javascript calculate total pdf +- [`add-javascript-calculation-to-pdf-total.cs`](./add-javascript-calculation-to-pdf-total.cs) -- Add javascript calculation to pdf total +- [`add-javascript-open-action-jump-to-page-5.cs`](./add-javascript-open-action-jump-to-page-5.cs) -- Add javascript open action jump to page 5 +- [`add-javascript-password-prompt-to-pdf.cs`](./add-javascript-password-prompt-to-pdf.cs) -- Add javascript password prompt to pdf +- [`add-javascript-toggle-optional-sections.cs`](./add-javascript-toggle-optional-sections.cs) -- Add javascript toggle optional sections +- [`add-javascript-toggle-pdf-form-sections.cs`](./add-javascript-toggle-pdf-form-sections.cs) -- Add javascript toggle pdf form sections +- [`add-js-open-action-navigate-page-10.cs`](./add-js-open-action-navigate-page-10.cs) -- Add js open action navigate page 10 +- [`add-page-level-javascript-alert-to-pdf.cs`](./add-page-level-javascript-alert-to-pdf.cs) -- Add page level javascript alert to pdf +- [`add-page-level-javascript-alert.cs`](./add-page-level-javascript-alert.cs) -- Add page level javascript alert +- [`add-password-prompt-javascript-to-pdf.cs`](./add-password-prompt-javascript-to-pdf.cs) -- Add password prompt javascript to pdf +- [`add-semi-transparent-background-watermark.cs`](./add-semi-transparent-background-watermark.cs) -- Add semi transparent background watermark +- [`add-semi-transparent-text-watermark.cs`](./add-semi-transparent-text-watermark.cs) -- Add semi transparent text watermark +- [`add-signature-field-with-js-validation.cs`](./add-signature-field-with-js-validation.cs) -- Add signature field with js validation +- [`add-xmp-metadata-pdfa-compliance.cs`](./add-xmp-metadata-pdfa-compliance.cs) -- Add xmp metadata pdfa compliance +- [`apply-form-filling-only-security.cs`](./apply-form-filling-only-security.cs) -- Apply form filling only security +- [`attach-multiple-files-to-pdf.cs`](./attach-multiple-files-to-pdf.cs) -- Attach multiple files to pdf +- [`attach-zugferd-xml-to-pdf.cs`](./attach-zugferd-xml-to-pdf.cs) -- Attach zugferd xml to pdf +- [`auto-print-pdf-on-open.cs`](./auto-print-pdf-on-open.cs) -- Auto print pdf on open +- [`batch-apply-pdf-password-protection.cs`](./batch-apply-pdf-password-protection.cs) -- Batch apply pdf password protection +- [`batch-convert-pdfs-to-jpeg.cs`](./batch-convert-pdfs-to-jpeg.cs) -- Batch convert pdfs to jpeg +- [`batch-encrypt-pdfs-with-password.cs`](./batch-encrypt-pdfs-with-password.cs) -- Batch encrypt pdfs with password +- [`batch-generate-zugferd-pdfs-from-csv.cs`](./batch-generate-zugferd-pdfs-from-csv.cs) -- Batch generate zugferd pdfs from csv +- [`calculate-total-order-amount-pdf-form.cs`](./calculate-total-order-amount-pdf-form.cs) -- Calculate total order amount pdf form +- [`calculate-total-order-amount.cs`](./calculate-total-order-amount.cs) -- Calculate total order amount +- [`change-pdf-line-width.cs`](./change-pdf-line-width.cs) -- Change pdf line width +- [`combine-multiple-graphs-2x2-grid.cs`](./combine-multiple-graphs-2x2-grid.cs) -- Combine multiple graphs 2x2 grid +- [`combine-multiple-graphs-on-single-pdf-page.cs`](./combine-multiple-graphs-on-single-pdf-page.cs) -- Combine multiple graphs on single pdf page +- [`compress-pdf-images-optimization.cs`](./compress-pdf-images-optimization.cs) -- Compress pdf images optimization +- [`convert-pdf-pages-to-high-resolution-png.cs`](./convert-pdf-pages-to-high-resolution-png.cs) -- Convert pdf pages to high resolution png +- [`convert-pdf-to-docx-preserve-layout.cs`](./convert-pdf-to-docx-preserve-layout.cs) -- Convert pdf to docx preserve layout +- [`convert-pdf-to-html-embedded-images.cs`](./convert-pdf-to-html-embedded-images.cs) -- Convert pdf to html embedded images +- [`convert-pdf-to-html-with-embedded-images.cs`](./convert-pdf-to-html-with-embedded-images.cs) -- Convert pdf to html with embedded images +- [`convert-pdf-to-multi-page-tiff.cs`](./convert-pdf-to-multi-page-tiff.cs) -- Convert pdf to multi page tiff +- [`convert-pdf-to-pdfa-2b.cs`](./convert-pdf-to-pdfa-2b.cs) -- Convert pdf to pdfa 2b +- [`convert-pdf-zugferd-to-pdfa3u.cs`](./convert-pdf-zugferd-to-pdfa3u.cs) -- Convert pdf zugferd to pdfa3u +- [`create-bar-chart-pdf.cs`](./create-bar-chart-pdf.cs) -- Create bar chart pdf +- [`create-layered-graphics-with-transparency.cs`](./create-layered-graphics-with-transparency.cs) -- Create layered graphics with transparency +- [`create-line-graph-multiple-stroke-styles.cs`](./create-line-graph-multiple-stroke-styles.cs) -- Create line graph multiple stroke styles +- [`create-pdf-page-transitions-javascript.cs`](./create-pdf-page-transitions-javascript.cs) -- Create pdf page transitions javascript +- [`create-pdf-signature-field-js-validation.cs`](./create-pdf-signature-field-js-validation.cs) -- Create pdf signature field js validation +- [`create-pdf-table-of-contents-with-outlines.cs`](./create-pdf-table-of-contents-with-outlines.cs) -- Create pdf table of contents with outlines +- [`create-zugferd-compliant-invoice-pdf.cs`](./create-zugferd-compliant-invoice-pdf.cs) -- Create zugferd compliant invoice pdf +- [`create-zugferd-invoice-pdf.cs`](./create-zugferd-invoice-pdf.cs) -- Create zugferd invoice pdf +- [`digitally-sign-pdf-with-pfx-timestamp.cs`](./digitally-sign-pdf-with-pfx-timestamp.cs) -- Digitally sign pdf with pfx timestamp +- [`digitally-sign-zugferd-pdf-with-timestamp.cs`](./digitally-sign-zugferd-pdf-with-timestamp.cs) -- Digitally sign zugferd pdf with timestamp +- [`draw-pie-chart-using-low-level-operators.cs`](./draw-pie-chart-using-low-level-operators.cs) -- Draw pie chart using low level operators +- [`draw-pie-chart-using-low-level-pdf-operators.cs`](./draw-pie-chart-using-low-level-pdf-operators.cs) -- Draw pie chart using low level pdf operators +- [`draw-star-shape-low-level-operators.cs`](./draw-star-shape-low-level-operators.cs) -- Draw star shape low level operators +- [`draw-star-shape-pdf-operators.cs`](./draw-star-shape-pdf-operators.cs) -- Draw star shape pdf operators +- [`dynamic-header-footer-pdf.cs`](./dynamic-header-footer-pdf.cs) -- Dynamic header footer pdf +- [`embed-audio-pdf-sound-annotation.cs`](./embed-audio-pdf-sound-annotation.cs) -- Embed audio pdf sound annotation +- [`embed-audio-with-js-playback.cs`](./embed-audio-with-js-playback.cs) -- Embed audio with js playback +- [`embed-custom-font-and-draw-graph.cs`](./embed-custom-font-and-draw-graph.cs) -- Embed custom font and draw graph +- [`embed-custom-ttf-font-in-pdf-graph.cs`](./embed-custom-ttf-font-in-pdf-graph.cs) -- Embed custom ttf font in pdf graph +- [`embed-qr-code-image-at-specific-coordinates.cs`](./embed-qr-code-image-at-specific-coordinates.cs) -- Embed qr code image at specific coordinates +- [`embed-qr-code-using-low-level-operators.cs`](./embed-qr-code-using-low-level-operators.cs) -- Embed qr code using low level operators +- [`embed-subset-custom-font-pdf.cs`](./embed-subset-custom-font-pdf.cs) -- Embed subset custom font pdf +- [`embed-vector-graphic-graph-into-pdf.cs`](./embed-vector-graphic-graph-into-pdf.cs) -- Embed vector graphic graph into pdf +- [`embed-zugferd-xml-into-pdf-invoice.cs`](./embed-zugferd-xml-into-pdf-invoice.cs) -- Embed zugferd xml into pdf invoice +- [`encrypt-pdf-aes256-with-passwords.cs`](./encrypt-pdf-aes256-with-passwords.cs) -- Encrypt pdf aes256 with passwords +- [`encrypt-pdf-with-embedded-attachment.cs`](./encrypt-pdf-with-embedded-attachment.cs) -- Encrypt pdf with embedded attachment +- [`encrypt-zugferd-pdf-with-passwords.cs`](./encrypt-zugferd-pdf-with-passwords.cs) -- Encrypt zugferd pdf with passwords +- [`export-pdf-annotations-to-xfdf.cs`](./export-pdf-annotations-to-xfdf.cs) -- Export pdf annotations to xfdf +- [`export-pdf-form-fields-to-json.cs`](./export-pdf-form-fields-to-json.cs) -- Export pdf form fields to json +- [`export-selected-pdf-pages.cs`](./export-selected-pdf-pages.cs) -- Export selected pdf pages +- [`extract-images-from-pdf.cs`](./extract-images-from-pdf.cs) -- Extract images from pdf +- [`extract-pdf-form-fields-to-json.cs`](./extract-pdf-form-fields-to-json.cs) -- Extract pdf form fields to json +- [`extract-pdf-text-to-searchable-index.cs`](./extract-pdf-text-to-searchable-index.cs) -- Extract pdf text to searchable index +- [`extract-text-from-pdf-preserving-line-breaks.cs`](./extract-text-from-pdf-preserving-line-breaks.cs) -- Extract text from pdf preserving line breaks +- [`extract-text-from-pdf-with-line-breaks.cs`](./extract-text-from-pdf-with-line-breaks.cs) -- Extract text from pdf with line breaks +- [`extract-text-pdf-search-index.cs`](./extract-text-pdf-search-index.cs) -- Extract text pdf search index +- [`extract-validate-zugferd-xml-from-pdf.cs`](./extract-validate-zugferd-xml-from-pdf.cs) -- Extract validate zugferd xml from pdf +- [`extract-validate-zugferd-xml.cs`](./extract-validate-zugferd-xml.cs) -- Extract validate zugferd xml +- [`extract-zugferd-xml-from-pdf.cs`](./extract-zugferd-xml-from-pdf.cs) -- Extract zugferd xml from pdf +- [`generate-png-thumbnails-for-pdf-pages.cs`](./generate-png-thumbnails-for-pdf-pages.cs) -- Generate png thumbnails for pdf pages +- [`hide-form-field-with-checkbox.cs`](./hide-form-field-with-checkbox.cs) -- Hide form field with checkbox +- [`hide-show-pdf-form-field-with-checkbox.cs`](./hide-show-pdf-form-field-with-checkbox.cs) -- Hide show pdf form field with checkbox +- [`hide-toolbar-menu-bar-pdf-javascript.cs`](./hide-toolbar-menu-bar-pdf-javascript.cs) -- Hide toolbar menu bar pdf javascript +- [`hide-toolbar-menu-bar-pdf.cs`](./hide-toolbar-menu-bar-pdf.cs) -- Hide toolbar menu bar pdf +- [`import-fdf-data-into-pdf-and-flatten-form.cs`](./import-fdf-data-into-pdf-and-flatten-form.cs) -- Import fdf data into pdf and flatten form +- [`list-javascript-actions-in-pdf.cs`](./list-javascript-actions-in-pdf.cs) -- List javascript actions in pdf +- [`list-pdf-attachments-names-sizes.cs`](./list-pdf-attachments-names-sizes.cs) -- List pdf attachments names sizes +- [`list-pdf-attachments-sizes.cs`](./list-pdf-attachments-sizes.cs) -- List pdf attachments sizes +- [`merge-multiple-pdfs-preserving-bookmarks.cs`](./merge-multiple-pdfs-preserving-bookmarks.cs) -- Merge multiple pdfs preserving bookmarks +- [`merge-pdfs-with-bookmarks.cs`](./merge-pdfs-with-bookmarks.cs) -- Merge pdfs with bookmarks +- [`populate-pdf-form-from-json-and-flatten.cs`](./populate-pdf-form-from-json-and-flatten.cs) -- Populate pdf form from json and flatten +- [`print-pdf-range-to-network-printer.cs`](./print-pdf-range-to-network-printer.cs) -- Print pdf range to network printer +- [`print-pdf-silently-to-default-printer.cs`](./print-pdf-silently-to-default-printer.cs) -- Print pdf silently to default printer +- [`read-custom-pdf-metadata-audit.cs`](./read-custom-pdf-metadata-audit.cs) -- Read custom pdf metadata audit +- [`read-custom-pdf-metadata-log.cs`](./read-custom-pdf-metadata-log.cs) -- Read custom pdf metadata log +- [`remove-background-operators-from-pdf.cs`](./remove-background-operators-from-pdf.cs) -- Remove background operators from pdf +- [`remove-javascript-from-pdf.cs`](./remove-javascript-from-pdf.cs) -- Remove javascript from pdf +- [`remove-specific-attachment-from-pdf.cs`](./remove-specific-attachment-from-pdf.cs) -- Remove specific attachment from pdf +- [`remove-zugferd-attachment-from-pdf.cs`](./remove-zugferd-attachment-from-pdf.cs) -- Remove zugferd attachment from pdf +- [`render-pdf-page-to-png-high-quality-antialiasing.cs`](./render-pdf-page-to-png-high-quality-antialiasing.cs) -- Render pdf page to png high quality antialiasing +- [`render-pdf-pages-to-png-high-quality-antialiasing.cs`](./render-pdf-pages-to-png-high-quality-antialiasing.cs) -- Render pdf pages to png high quality antialiasing +- [`replace-text-using-showtext-operators.cs`](./replace-text-using-showtext-operators.cs) -- Replace text using showtext operators +- [`secure-pdf-form-filling-only.cs`](./secure-pdf-form-filling-only.cs) -- Secure pdf form filling only +- [`set-pdf-author-dynamically.cs`](./set-pdf-author-dynamically.cs) -- Set pdf author dynamically +- [`set-pdf-author-to-current-user.cs`](./set-pdf-author-to-current-user.cs) -- Set pdf author to current user +- [`set-pdf-creation-modification-dates.cs`](./set-pdf-creation-modification-dates.cs) -- Set pdf creation modification dates +- [`set-pdf-document-language.cs`](./set-pdf-document-language.cs) -- Set pdf document language +- [`set-pdf-metadata-and-custom-property.cs`](./set-pdf-metadata-and-custom-property.cs) -- Set pdf metadata and custom property +- [`set-pdf-open-action-navigate-page-10.cs`](./set-pdf-open-action-navigate-page-10.cs) -- Set pdf open action navigate page 10 +- [`set-pdf-permissions-allow-printing-only.cs`](./set-pdf-permissions-allow-printing-only.cs) -- Set pdf permissions allow printing only +- [`set-pdf-permissions-allow-printing.cs`](./set-pdf-permissions-allow-printing.cs) -- Set pdf permissions allow printing +- [`sign-zugferd-pdf-with-timestamp.cs`](./sign-zugferd-pdf-with-timestamp.cs) -- Sign zugferd pdf with timestamp +- [`split-pdf-into-individual-pages.cs`](./split-pdf-into-individual-pages.cs) -- Split pdf into individual pages +- [`split-pdf-into-single-page-pdfs.cs`](./split-pdf-into-single-page-pdfs.cs) -- Split pdf into single page pdfs +- [`subset-custom-font-in-pdf.cs`](./subset-custom-font-in-pdf.cs) -- Subset custom font in pdf +- [`update-pdf-attachment-description.cs`](./update-pdf-attachment-description.cs) -- Update pdf attachment description +- [`update-zugferd-xml-attachment.cs`](./update-zugferd-xml-attachment.cs) -- Update zugferd xml attachment +- [`validate-pdf-zugferd-compliance.cs`](./validate-pdf-zugferd-compliance.cs) -- Validate pdf zugferd compliance +- [`validate-pdfa-after-zugferd-attachment.cs`](./validate-pdfa-after-zugferd-attachment.cs) -- Validate pdfa after zugferd attachment +- [`validate-pdfa3b-after-adding-zugferd-attachment.cs`](./validate-pdfa3b-after-adding-zugferd-attachment.cs) -- Validate pdfa3b after adding zugferd attachment +- [`verify-pdf-digital-signature.cs`](./verify-pdf-digital-signature.cs) -- Verify pdf digital signature + +## See Also + +- [`AGENTS.md`](./AGENTS.md) -- category-specific anti-patterns, API surface, and conventions for AI coding agents +- [`../AGENTS.md`](../AGENTS.md) -- repository-wide agent guide +- [`../README.md`](../README.md) -- full category index and project overview +- [Aspose.PDF for .NET docs](https://docs.aspose.com/pdf/net/) + +> Each `.cs` file is a standalone, build-validated console example. Drop into a fresh `dotnet new console` project, add the `Aspose.PDF` NuGet (version above), and run. diff --git a/graphs-zugferd-operators/index.json b/graphs-zugferd-operators/index.json index 5c3a8cc2e..8ae428145 100644 --- a/graphs-zugferd-operators/index.json +++ b/graphs-zugferd-operators/index.json @@ -1,132 +1,67 @@ { "category": "graphs-zugferd-operators", "nuget_version": "26.8.0", - "last_updated": "2026-08-20T08:09:47Z", + "last_updated": "2026-09-10T12:45:08Z", "examples": { - "attach-zugferd-xml-to-pdf": { - "title": "Attach ZUGFeRD XML to PDF and Convert to PDF/A‑3B", - "filename": "attach-zugferd-xml-to-pdf.cs", - "description": "Shows how to load a PDF, embed a ZUGFeRD XML file as an attached file (AFRelationship.Data), convert the document to PDF/A‑3B for compliance, and save the updated PDF.", + "add-auto-close-javascript-to-pdf": { + "title": "Add Auto‑Close JavaScript to PDF", + "filename": "add-auto-close-javascript-to-pdf.cs", + "description": "Shows how to embed a document‑level JavaScript action that automatically closes a PDF after a specified timeout using Aspose.Pdf.", "tags": [ - "ZUGFeRD", - "PDF/A-3B", - "attachment", - "Aspose.Pdf", - "C#" + "javascript", + "auto-close", + "pdf", + "aspose-pdf", + "document-action" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Document.EmbeddedFiles", - "Aspose.Pdf.Document.Convert", + "Aspose.Pdf.JavascriptAction", + "Aspose.Pdf.Document.OpenAction", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:09:47Z", - "status": "verified" - }, - "create-zugferd-invoice-pdf": { - "title": "Create ZUGFeRD‑Compliant Invoice PDF", - "filename": "create-zugferd-invoice-pdf.cs", - "description": "Demonstrates embedding a ZUGFeRD XML file into a readable PDF, converting the document to PDF/A‑3 (ZUGFeRD) format, and saving the resulting compliant invoice PDF.", - "tags": [ - "ZUGFeRD", - "PDF/A-3", - "Aspose.Pdf", - "XML embedding", - "Invoice" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.BindXml", - "Aspose.Pdf.Document.Convert", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.PdfFormat", - "Aspose.Pdf.Facades.ConvertErrorAction" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:09:47Z", - "status": "verified" - }, - "validate-pdf-zugferd-compliance": { - "title": "Validate PDF for ZUGFeRD Compliance", - "filename": "validate-pdf-zugferd-compliance.cs", - "description": "Loads a PDF file, checks its existence, and validates it against the ZUGFeRD specification, outputting a validation log.", - "tags": [ - "ZUGFeRD", - "validation", - "PDF", - "Aspose.Pdf", - "document" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Validate", - "Aspose.Pdf.PdfFormat" - ], "difficulty": "beginner", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "extract-zugferd-xml-from-pdf": { - "title": "Extract Embedded ZUGFeRD XML from PDF", - "filename": "extract-zugferd-xml-from-pdf.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, locate an embedded ZUGFeRD XML file, and save it to the local file system.", - "tags": [ - "ZUGFeRD", - "PDF", - "Extraction", - "Aspose.Pdf", - "EmbeddedFiles" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Document.EmbeddedFiles", - "Aspose.Pdf.FileSpecification.Name", - "Aspose.Pdf.FileSpecification.Contents" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:09:47Z", - "status": "verified" - }, - "update-zugferd-xml-attachment": { - "title": "Update ZUGFeRD XML Attachment in PDF", - "filename": "update-zugferd-xml-attachment.cs", - "description": "Demonstrates replacing the ZUGFeRD XML attachment in an existing PDF with a new invoice XML using Aspose.Pdf.", + "add-auto-print-javascript-action-to-pdf": { + "title": "Add Auto‑Print JavaScript Action to PDF", + "filename": "add-auto-print-javascript-action-to-pdf.cs", + "description": "Demonstrates how to attach a JavaScript action that automatically opens the print dialog when the PDF is opened, using Aspose.Pdf.", "tags": [ - "ZUGFeRD", - "PDF", - "XML", - "Aspose.Pdf", - "Invoice" + "javascript", + "print", + "pdf", + "autoprint", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.BindXml", + "Aspose.Pdf.JavascriptAction", + "Aspose.Pdf.Document.OpenAction", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "remove-zugferd-attachment-from-pdf": { - "title": "Remove ZUGFeRD Attachment from PDF", - "filename": "remove-zugferd-attachment-from-pdf.cs", - "description": "Demonstrates how to load a PDF with Aspose.Pdf, delete the ZUGFeRD XML attachment, and save the document while preserving all other content.", + "add-auto-save-javascript-to-pdf": { + "title": "Add Document-Level Auto‑Save JavaScript to PDF", + "filename": "add-auto-save-javascript-to-pdf.cs", + "description": "Demonstrates how to embed a document‑level JavaScript action that automatically saves the PDF at regular intervals using Aspose.Pdf.", "tags": [ - "ZUGFeRD", - "PDF", - "attachment", - "Aspose.Pdf", - "remove" + "javascript", + "autosave", + "document-level", + "pdf", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.EmbeddedFiles", - "Aspose.Pdf.EmbeddedFilesCollection.Delete", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.EmbeddedFilesCollection" + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Document..ctor(string)", + "Aspose.Pdf.Document.OpenAction", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:09:47Z", @@ -152,46 +87,25 @@ "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "encrypt-zugferd-pdf-with-passwords": { - "title": "Encrypt ZUGFeRD PDF with User and Owner Passwords", - "filename": "encrypt-zugferd-pdf-with-passwords.cs", - "description": "Demonstrates loading a ZUGFeRD PDF, setting specific permissions, encrypting it with both user and owner passwords using AES‑256, and saving the protected file.", + "add-encrypted-file-attachment-to-pdf": { + "title": "Add Encrypted File Attachment to PDF", + "filename": "add-encrypted-file-attachment-to-pdf.cs", + "description": "Shows how to embed a file attachment using a stream and then encrypt the PDF so only authorized users can open it.", "tags": [ - "pdf-encryption", - "zugferd", - "permissions", - "aes256", - "aspnet" + "attachment", + "encryption", + "annotation", + "file-specification", + "pdf" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.Annotations.FileAttachmentAnnotation", "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T08:09:47Z", - "status": "verified" - }, - "digitally-sign-zugferd-pdf-with-timestamp": { - "title": "Digitally Sign ZUGFeRD PDF with Timestamp", - "filename": "digitally-sign-zugferd-pdf-with-timestamp.cs", - "description": "Demonstrates loading a ZUGFeRD PDF, adding a signature field, applying a PKCS#7 digital signature from a PFX file, and attaching a timestamp from a TSA server, then saving the signed document.", - "tags": [ - "ZUGFeRD", - "digital-signature", - "timestamp", - "PKCS7", - "Aspose.Pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.PKCS7", - "Aspose.Pdf.Forms.TimestampSettings", - "Aspose.Pdf.Forms.SignatureField.Sign", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.CryptoAlgorithm" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:09:47Z", @@ -218,304 +132,292 @@ "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "set-pdf-open-action-navigate-page-10": { - "title": "Set PDF Open Action to Navigate to Page 10", - "filename": "set-pdf-open-action-navigate-page-10.cs", - "description": "Demonstrates how to add a JavaScript open action to a PDF that automatically navigates the viewer to page 10 when the document is opened, using Aspose.Pdf.", - "tags": [ - "javascript", - "open-action", - "navigation", - "pdf", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document(string)", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Document.OpenAction", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T08:09:47Z", + "add-file-attachment-annotation-to-pdf": { + "title": "Add File Attachment Annotation To Pdf", + "filename": "add-file-attachment-annotation-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "add-page-level-javascript-alert-to-pdf": { - "title": "Add Page-Level JavaScript Alert to PDF", - "filename": "add-page-level-javascript-alert-to-pdf.cs", - "description": "Demonstrates how to embed a JavaScript action that shows an alert when a specific PDF page is opened, using Aspose.Pdf.", + "add-file-attachment-to-pdf": { + "title": "Add File Attachment to PDF with Description", + "filename": "add-file-attachment-to-pdf.cs", + "description": "Shows how to attach an external PDF file to a PDF document using Aspose.Pdf, including a description and proper MIME type.", "tags": [ - "javascript", + "file-attachment", "pdf", - "page-action", - "alert", - "aspose-pdf" + "annotation", + "aspose-pdf", + "metadata" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Page.Actions", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.Annotations.FileAttachmentAnnotation", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Page.Annotations.Add" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "calculate-total-order-amount": { - "title": "Calculate Total Order Amount from PDF Form Fields", - "filename": "calculate-total-order-amount.cs", - "description": "Shows how to read quantity and price fields from an Aspose.Pdf form, compute line totals, and write the summed amount back into a Total field.", + "add-javascript-calculate-total-pdf": { + "title": "Add Javascript Calculate Total Pdf", + "filename": "add-javascript-calculate-total-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-javascript-calculation-to-pdf-total": { + "title": "Add JavaScript Calculation to PDF Form Total Field", + "filename": "add-javascript-calculation-to-pdf-total.cs", + "description": "Shows how to embed JavaScript in a PDF using Aspose.Pdf to sum line‑item fields and display the result in a summary (total) field.", "tags": [ - "pdf", - "form", + "javascript", + "pdf-form", "calculation", "aspose-pdf", - "csharp" + "field-actions" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.Form", "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.Form.AutoRecalculate", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Forms.Field.Actions" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "add-auto-save-javascript-to-pdf": { - "title": "Add Document-Level Auto‑Save JavaScript to PDF", - "filename": "add-auto-save-javascript-to-pdf.cs", - "description": "Demonstrates how to embed a document‑level JavaScript action that automatically saves the PDF at regular intervals using Aspose.Pdf.", - "tags": [ - "javascript", - "autosave", - "document-level", + "add-javascript-open-action-jump-to-page-5": { + "title": "Add JavaScript Open Action to Jump to Page 5", + "filename": "add-javascript-open-action-jump-to-page-5.cs", + "description": "Demonstrates how to attach a JavaScript open action to a PDF using Aspose.Pdf so that the document automatically navigates to page five when opened.", + "tags": [ + "javascript", + "open-action", "pdf", - "aspose-pdf" + "aspose", + "navigation" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Document..ctor(string)", "Aspose.Pdf.Document.OpenAction", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document(string filePath)" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "draw-star-shape-low-level-operators": { - "title": "Draw a Star Shape Using Low-Level PDF Operators", - "filename": "draw-star-shape-low-level-operators.cs", - "description": "Shows how to load a PDF, calculate the vertices of a 5‑point star, and use Aspose.Pdf low‑level graphics operators (q, rg, w, m, l, b, Q) to draw, fill, and stroke the star on a page.", + "add-javascript-password-prompt-to-pdf": { + "title": "Add Javascript Password Prompt To Pdf", + "filename": "add-javascript-password-prompt-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-javascript-toggle-optional-sections": { + "title": "Add JavaScript to Toggle Optional Sections in PDF Form", + "filename": "add-javascript-toggle-optional-sections.cs", + "description": "Shows how to attach a JavaScript action to a checkbox field in an Aspose.Pdf form so that optional sections become visible or hidden based on the user's selection.", "tags": [ - "pdf", - "drawing", - "operators", - "star", + "javascript", + "form", + "visibility", + "checkbox", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.OperatorCollection", - "Aspose.Pdf.Operators.GSave", - "Aspose.Pdf.Operators.SetRGBColor", - "Aspose.Pdf.Operators.SetLineWidth", - "Aspose.Pdf.Operators.ClosePathFillStroke", - "Aspose.Pdf.Operators.GRestore" + "Aspose.Pdf.Forms.CheckboxField", + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.FieldActions" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "change-pdf-line-width": { - "title": "Change PDF Line Width from 1 to 3 Points", - "filename": "change-pdf-line-width.cs", - "description": "Shows how to iterate through each page's content operators and modify SetLineWidth operators to change the line width from 1 point to 3 points using Aspose.Pdf.", - "tags": [ - "line-width", - "pdf-operators", - "aspose-pdf", - "content-modification", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Operators.Operator", - "Aspose.Pdf.Operators.SetLineWidth", - "Aspose.Pdf.Page.Contents" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T08:09:47Z", + "add-javascript-toggle-pdf-form-sections": { + "title": "Add Javascript Toggle Pdf Form Sections", + "filename": "add-javascript-toggle-pdf-form-sections.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "remove-background-operators-from-pdf": { - "title": "Remove Background Operators from PDF Content Stream", - "filename": "remove-background-operators-from-pdf.cs", - "description": "Demonstrates iterating over PDF pages and deleting specific drawing operators (such as FillStroke) from each page's content stream using Aspose.Pdf.", - "tags": [ - "pdf", - "operators", - "background", - "content-stream", - "aspose" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.OperatorCollection", - "Aspose.Pdf.Operators.FillStroke", - "Aspose.Pdf.OperatorCollection.Delete" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:09:47Z", + "add-js-open-action-navigate-page-10": { + "title": "Add Js Open Action Navigate Page 10", + "filename": "add-js-open-action-navigate-page-10.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "replace-text-using-showtext-operators": { - "title": "Replace Text in PDF Using ShowText Operators", - "filename": "replace-text-using-showtext-operators.cs", - "description": "Demonstrates how to locate ShowText operators in a PDF content stream and replace a specific string with a new one using Aspose.Pdf.", + "add-page-level-javascript-alert-to-pdf": { + "title": "Add Page-Level JavaScript Alert to PDF", + "filename": "add-page-level-javascript-alert-to-pdf.cs", + "description": "Demonstrates how to embed a JavaScript action that shows an alert when a specific PDF page is opened, using Aspose.Pdf.", "tags": [ + "javascript", "pdf", - "text-replacement", - "showtext", - "operators", - "aspose" + "page-action", + "alert", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.OperatorCollection", - "Aspose.Pdf.Operators.ShowText", + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Page.Actions", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "create-bar-chart-pdf": { - "title": "Create Bar Chart PDF with Custom Colors and Axis Labels", - "filename": "create-bar-chart-pdf.cs", - "description": "Demonstrates how to generate a PDF bar chart using Aspose.Pdf's Graph API, applying custom colors to each bar and adding X‑ and Y‑axis labels.", - "tags": [ - "bar-chart", - "pdf", - "graph-api", - "custom-colors", - "axis-labels" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Line", - "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Drawing.MarginInfo" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:09:47Z", + "add-page-level-javascript-alert": { + "title": "Add Page Level Javascript Alert", + "filename": "add-page-level-javascript-alert.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "create-line-graph-multiple-stroke-styles": { - "title": "Create Line Graph with Multiple Stroke Styles", - "filename": "create-line-graph-multiple-stroke-styles.cs", - "description": "Demonstrates how to generate a PDF line graph with three data series, each using a distinct stroke style (solid, dashed, dotted) by configuring GraphInfo properties.", + "add-password-prompt-javascript-to-pdf": { + "title": "Add Password Prompt JavaScript to PDF", + "filename": "add-password-prompt-javascript-to-pdf.cs", + "description": "Demonstrates embedding JavaScript in a PDF with Aspose.Pdf to prompt for a password on document open and close the file if the password is incorrect.", "tags": [ - "line-graph", - "stroke-style", - "Aspose.Pdf", - "graph", - "pdf" + "javascript", + "pdf-security", + "open-action", + "aspose.pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Line", - "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Color" + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Document.OpenAction", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "embed-vector-graphic-graph-into-pdf": { - "title": "Embed Vector Graphic (Graph) into PDF", - "filename": "embed-vector-graphic-graph-into-pdf.cs", - "description": "Shows how to create a Graph object, add rectangle and line vector shapes, and embed the resulting vector graphic directly into a PDF page using Aspose.Pdf.", + "add-semi-transparent-background-watermark": { + "title": "Add Semi Transparent Background Watermark", + "filename": "add-semi-transparent-background-watermark.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-semi-transparent-text-watermark": { + "title": "Add Semi-Transparent Text Watermark Behind PDF Content", + "filename": "add-semi-transparent-text-watermark.cs", + "description": "Demonstrates how to place a semi‑transparent text watermark behind the existing content on every page of a PDF using Aspose.Pdf.", "tags": [ - "graph", - "vector-graphic", + "watermark", "pdf", - "aspose", - "shapes" + "text", + "opacity", + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.Line", - "Aspose.Pdf.Drawing.GraphInfo" + "Aspose.Pdf.WatermarkArtifact", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.FontRepository.FindFont", + "Aspose.Pdf.Color.Gray", + "Aspose.Pdf.WatermarkArtifact.SetTextAndState", + "Aspose.Pdf.Page.Artifacts.Add", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "combine-multiple-graphs-on-single-pdf-page": { - "title": "Combine Multiple Graphs on a Single PDF Page", - "filename": "combine-multiple-graphs-on-single-pdf-page.cs", - "description": "Demonstrates how to place four separate graphs in a 2×2 grid on one PDF page using Aspose.Pdf, including background shapes and a diagonal line for each graph.", + "add-signature-field-with-js-validation": { + "title": "Add Digital Signature Field with JavaScript Validation to PDF", + "filename": "add-signature-field-with-js-validation.cs", + "description": "Shows how to create a PDF, insert a digital signature field, and attach a JavaScript action that validates the signature when the field is activated, using Aspose.Pdf.", "tags": [ - "graph", + "signature", + "javascript", "pdf", - "grid", - "aspose-pdf", - "csharp" + "forms", + "validation" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.Line", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Drawing.GraphInfo" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Forms.SignatureField.ExecuteFieldJavaScript", + "Aspose.Pdf.Document.Form.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "add-file-attachment-to-pdf": { - "title": "Add File Attachment to PDF with Description", - "filename": "add-file-attachment-to-pdf.cs", - "description": "Shows how to attach an external PDF file to a PDF document using Aspose.Pdf, including a description and proper MIME type.", + "add-xmp-metadata-pdfa-compliance": { + "title": "Add XMP Metadata for PDF/A Compliance", + "filename": "add-xmp-metadata-pdfa-compliance.cs", + "description": "Shows how to load a PDF, add required XMP metadata entries (creator tool, creation date, document ID) and save the file as PDF/A compliant using Aspose.Pdf.", "tags": [ - "file-attachment", - "pdf", - "annotation", - "aspose-pdf", - "metadata" + "pdfa", + "xmp", + "metadata", + "aspose.pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Annotations.FileAttachmentAnnotation", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Page.Annotations.Add" + "Aspose.Pdf.DocumentInfo", + "Aspose.Pdf.Metadata", + "Aspose.Pdf.Metadata.Add", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, + "apply-form-filling-only-security": { + "title": "Apply Form Filling Only Security", + "filename": "apply-form-filling-only-security.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "attach-multiple-files-to-pdf": { "title": "Attach Multiple Files with Descriptions to a PDF", "filename": "attach-multiple-files-to-pdf.cs", @@ -540,202 +442,244 @@ "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "list-pdf-attachments-names-sizes": { - "title": "List PDF Attachments with Names and Sizes", - "filename": "list-pdf-attachments-names-sizes.cs", - "description": "Shows how to load a PDF using Aspose.Pdf, iterate through its pages and annotations, and extract the names and byte sizes of file attachment annotations.", + "attach-zugferd-xml-to-pdf": { + "title": "Attach ZUGFeRD XML to PDF and Convert to PDF/A‑3B", + "filename": "attach-zugferd-xml-to-pdf.cs", + "description": "Shows how to load a PDF, embed a ZUGFeRD XML file as an attached file (AFRelationship.Data), convert the document to PDF/A‑3B for compliance, and save the updated PDF.", "tags": [ - "pdf", - "attachments", - "aspnet", - "file-attachment", - "metadata" + "ZUGFeRD", + "PDF/A-3B", + "attachment", + "Aspose.Pdf", + "C#" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.FileAttachmentAnnotation", - "Aspose.Pdf.FileSpecification" + "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.Document.EmbeddedFiles", + "Aspose.Pdf.Document.Convert", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "remove-specific-attachment-from-pdf": { - "title": "Remove Specific Attachment from PDF", - "filename": "remove-specific-attachment-from-pdf.cs", - "description": "Demonstrates how to delete a single embedded file from a PDF by its filename while preserving all other attachments using Aspose.Pdf.", + "auto-print-pdf-on-open": { + "title": "Auto Print Pdf On Open", + "filename": "auto-print-pdf-on-open.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "batch-apply-pdf-password-protection": { + "title": "Batch Apply Password Protection to PDFs", + "filename": "batch-apply-pdf-password-protection.cs", + "description": "Demonstrates how to iterate through a folder of PDF files and apply identical user and owner passwords using Aspose.Pdf encryption features.", "tags": [ "pdf", - "attachment", - "remove", + "encryption", + "batch", "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.EmbeddedFileCollection", - "Aspose.Pdf.EmbeddedFileCollection.Delete", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Permissions" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "update-pdf-attachment-description": { - "title": "Update PDF Attachment Description", - "filename": "update-pdf-attachment-description.cs", - "description": "Demonstrates how to load a PDF, locate file‑attachment annotations, and modify the description of the attached file. The example also shows creating a minimal PDF with an attachment if none exists.", + "batch-convert-pdfs-to-jpeg": { + "title": "Batch Convert PDFs to JPEG Images", + "filename": "batch-convert-pdfs-to-jpeg.cs", + "description": "Demonstrates how to iterate through all PDF files in a folder, convert each page to a JPEG image using Aspose.Pdf, and save the images with names derived from the source files.", "tags": [ "pdf", - "attachment", - "description", - "annotation", - "aspose" + "jpeg", + "batch-conversion", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Annotations.FileAttachmentAnnotation", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.Annotation" + "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.Devices.JpegDevice", + "Aspose.Pdf.Devices.JpegDevice.Process", + "Aspose.Pdf.PageCollection" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "set-pdf-metadata-and-custom-property": { - "title": "Set PDF Metadata and Custom Property", - "filename": "set-pdf-metadata-and-custom-property.cs", - "description": "Demonstrates how to load an existing PDF, set standard metadata fields such as Title and Author, add a custom property for the invoice number, and save the updated document.", + "batch-encrypt-pdfs-with-password": { + "title": "Batch Encrypt Pdfs With Password", + "filename": "batch-encrypt-pdfs-with-password.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "batch-generate-zugferd-pdfs-from-csv": { + "title": "Batch Generate ZUGFeRD‑Compliant PDFs from CSV", + "filename": "batch-generate-zugferd-pdfs-from-csv.cs", + "description": "Reads invoice data from a CSV file, creates a PDF for each record, adds basic invoice text, and attaches the corresponding ZUGFeRD XML file to the PDF.", "tags": [ - "metadata", - "pdf", - "aspose", - "custom-property", - "invoice" + "ZUGFeRD", + "PDF", + "CSV", + "Invoice", + "Batch" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.DocumentInfo", - "Aspose.Pdf.DocumentInfo.Title", - "Aspose.Pdf.DocumentInfo.Author", - "Aspose.Pdf.DocumentInfo.Add", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.Position", + "Aspose.Pdf.Document.BindXml", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "read-custom-pdf-metadata-log": { - "title": "Read Custom PDF Metadata and Write to Log", - "filename": "read-custom-pdf-metadata-log.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, extract only custom metadata entries, and write them to a text file for auditing purposes.", + "calculate-total-order-amount-pdf-form": { + "title": "Calculate Total Order Amount Pdf Form", + "filename": "calculate-total-order-amount-pdf-form.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "calculate-total-order-amount": { + "title": "Calculate Total Order Amount from PDF Form Fields", + "filename": "calculate-total-order-amount.cs", + "description": "Shows how to read quantity and price fields from an Aspose.Pdf form, compute line totals, and write the summed amount back into a Total field.", "tags": [ "pdf", - "metadata", - "audit", - "aspose", + "form", + "calculation", + "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.DocumentInfo", - "Aspose.Pdf.DocumentInfo.IsPredefinedKey", - "Aspose.Pdf.DocumentInfo.GetEnumerator", - "Aspose.Pdf.DocumentInfo.Count" + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.Form.AutoRecalculate", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "encrypt-pdf-aes256-with-passwords": { - "title": "Encrypt PDF with AES‑256 and Passwords", - "filename": "encrypt-pdf-aes256-with-passwords.cs", - "description": "Demonstrates loading a PDF, applying AES‑256 encryption with separate user and owner passwords, setting basic permissions, and saving the protected document.", + "change-pdf-line-width": { + "title": "Change PDF Line Width from 1 to 3 Points", + "filename": "change-pdf-line-width.cs", + "description": "Shows how to iterate through each page's content operators and modify SetLineWidth operators to change the line width from 1 point to 3 points using Aspose.Pdf.", "tags": [ - "encryption", - "pdf", - "aes256", - "permissions", - "aspose-pdf" + "line-width", + "pdf-operators", + "aspose-pdf", + "content-modification", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page", + "Aspose.Pdf.Operators.Operator", + "Aspose.Pdf.Operators.SetLineWidth", + "Aspose.Pdf.Page.Contents" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "set-pdf-permissions-allow-printing": { - "title": "Set PDF Permissions to Allow Printing Only", - "filename": "set-pdf-permissions-allow-printing.cs", - "description": "Shows how to encrypt a PDF with Aspose.Pdf and restrict permissions so that only printing is allowed while copying and annotation modifications are disabled.", + "combine-multiple-graphs-2x2-grid": { + "title": "Combine Multiple Graphs 2X2 Grid", + "filename": "combine-multiple-graphs-2x2-grid.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "combine-multiple-graphs-on-single-pdf-page": { + "title": "Combine Multiple Graphs on a Single PDF Page", + "filename": "combine-multiple-graphs-on-single-pdf-page.cs", + "description": "Demonstrates how to place four separate graphs in a 2×2 grid on one PDF page using Aspose.Pdf, including background shapes and a diagonal line for each graph.", "tags": [ + "graph", "pdf", - "permissions", - "encryption", - "printing", - "aspose-pdf" + "grid", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page", + "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Drawing.Line", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Drawing.GraphInfo" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "digitally-sign-pdf-with-pfx-timestamp": { - "title": "Digitally Sign PDF with PFX Certificate and Timestamp", - "filename": "digitally-sign-pdf-with-pfx-timestamp.cs", - "description": "Demonstrates loading a PDF, adding a signature field, applying a PKCS#7 signature from a PFX file, attaching an RFC‑3161 timestamp, and saving the signed document.", + "compress-pdf-images-optimization": { + "title": "Compress PDF Images and Optimize Resources", + "filename": "compress-pdf-images-optimization.cs", + "description": "Demonstrates how to reduce a PDF file size by enabling image compression, resizing high‑resolution images, and applying additional optimizations such as object compression and font subsetting using Aspose.Pdf.", "tags": [ - "pdf-signature", - "pfx", - "timestamp", - "aspose-pdf", - "digital-signature" + "pdf", + "compression", + "optimization", + "images", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.PKCS7", - "Aspose.Pdf.Forms.TimestampSettings", - "Aspose.Pdf.DigestHashAlgorithm" + "Aspose.Pdf.Optimization.OptimizationOptions", + "Aspose.Pdf.Optimization.ImageCompressionOptions", + "Aspose.Pdf.Document.OptimizeResources", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "verify-pdf-digital-signature": { - "title": "Verify PDF Digital Signature and Retrieve Signer Details", - "filename": "verify-pdf-digital-signature.cs", - "description": "Loads a signed PDF, checks for compromised signatures, iterates through signature fields, verifies each signature, and extracts signer information such as authority, date, reason, location, and contact info.", + "convert-pdf-pages-to-high-resolution-png": { + "title": "Convert PDF Pages to High-Resolution PNG Images", + "filename": "convert-pdf-pages-to-high-resolution-png.cs", + "description": "Demonstrates loading a PDF with Aspose.Pdf, setting a 300 DPI resolution, and converting each page to a PNG file.", "tags": [ "pdf", - "digital-signature", - "verification", - "signer-info", - "aspose-pdf" + "png", + "conversion", + "300dpi", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Signatures.SignaturesCompromiseDetector", - "Aspose.Pdf.Signatures.PKCS7", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Signatures.Signature.Verify" + "Aspose.Pdf.Resolution", + "Aspose.Pdf.Devices.PngDevice", + "Aspose.Pdf.Devices.PngDevice.Process", + "Aspose.Pdf.Page" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, @@ -762,6 +706,16 @@ "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, + "convert-pdf-to-html-embedded-images": { + "title": "Convert Pdf To Html Embedded Images", + "filename": "convert-pdf-to-html-embedded-images.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "convert-pdf-to-html-with-embedded-images": { "title": "Convert PDF to HTML with Embedded Images", "filename": "convert-pdf-to-html-with-embedded-images.cs", @@ -784,464 +738,720 @@ "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "convert-pdf-pages-to-high-resolution-png": { - "title": "Convert PDF Pages to High-Resolution PNG Images", - "filename": "convert-pdf-pages-to-high-resolution-png.cs", - "description": "Demonstrates loading a PDF with Aspose.Pdf, setting a 300 DPI resolution, and converting each page to a PNG file.", + "convert-pdf-to-multi-page-tiff": { + "title": "Convert PDF to Multi‑Page TIFF", + "filename": "convert-pdf-to-multi-page-tiff.cs", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, configure TIFF settings, and convert the entire document into a multi‑page TIFF file.", "tags": [ "pdf", - "png", + "tiff", "conversion", - "300dpi", - "aspose" + "multipage", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Resolution", - "Aspose.Pdf.Devices.PngDevice", - "Aspose.Pdf.Devices.PngDevice.Process", - "Aspose.Pdf.Page" + "Aspose.Pdf.Devices.TiffSettings", + "Aspose.Pdf.Devices.TiffDevice", + "Aspose.Pdf.Devices.TiffDevice.Process" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "batch-convert-pdfs-to-jpeg": { - "title": "Batch Convert PDFs to JPEG Images", - "filename": "batch-convert-pdfs-to-jpeg.cs", - "description": "Demonstrates how to iterate through all PDF files in a folder, convert each page to a JPEG image using Aspose.Pdf, and save the images with names derived from the source files.", - "tags": [ - "pdf", - "jpeg", - "batch-conversion", - "aspose", - "csharp" + "convert-pdf-to-pdfa-2b": { + "title": "Convert PDF to PDF/A‑2b Compliance", + "filename": "convert-pdf-to-pdfa-2b.cs", + "description": "Loads a PDF, converts it to PDF/A‑2b archival format using Aspose.Pdf, logs any conversion errors, and saves the compliant document.", + "tags": [ + "pdf", + "pdfa-2b", + "conversion", + "archival", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Devices.Resolution", - "Aspose.Pdf.Devices.JpegDevice", - "Aspose.Pdf.Devices.JpegDevice.Process", - "Aspose.Pdf.PageCollection" + "Aspose.Pdf.Document.Convert", + "Aspose.Pdf.PdfFormat", + "Aspose.Pdf.ConvertErrorAction", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "export-selected-pdf-pages": { - "title": "Export Selected PDF Pages to Separate Files", - "filename": "export-selected-pdf-pages.cs", - "description": "Demonstrates how to load a PDF with Aspose.Pdf, extract specific pages, and save each page as an individual PDF while preserving its original size and orientation.", + "convert-pdf-zugferd-to-pdfa3u": { + "title": "Convert PDF with ZUGFeRD to PDF/A‑3U preserving XML", + "filename": "convert-pdf-zugferd-to-pdfa3u.cs", + "description": "Shows how to load a PDF containing a ZUGFeRD XML attachment and convert it to PDF/A‑3U while keeping the embedded XML data.", "tags": [ - "pdf", - "export", - "pages", - "aspose.pdf", - "csharp" + "ZUGFeRD", + "PDF/A-3U", + "Aspose.Pdf", + "XML attachment", + "conversion" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Document.Convert", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.PageCollection.Add", - "Aspose.Pdf.PageCollection.Count" + "Aspose.Pdf.PdfFormat", + "Aspose.Pdf.ConvertErrorAction" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "merge-pdfs-with-bookmarks": { - "title": "Merge PDFs with Bookmarks Preservation", - "filename": "merge-pdfs-with-bookmarks.cs", - "description": "Shows how to combine multiple PDF files into a single document while keeping the original outlines/bookmarks using Aspose.Pdf.", + "create-bar-chart-pdf": { + "title": "Create Bar Chart PDF with Custom Colors and Axis Labels", + "filename": "create-bar-chart-pdf.cs", + "description": "Demonstrates how to generate a PDF bar chart using Aspose.Pdf's Graph API, applying custom colors to each bar and adding X‑ and Y‑axis labels.", "tags": [ + "bar-chart", "pdf", - "merge", - "bookmarks", - "aspnet", + "graph-api", + "custom-colors", + "axis-labels" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Drawing.Line", + "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Drawing.GraphInfo", + "Aspose.Pdf.Drawing.MarginInfo" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T08:09:47Z", + "status": "verified" + }, + "create-layered-graphics-with-transparency": { + "title": "Create Layered Graphics With Transparency", + "filename": "create-layered-graphics-with-transparency.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-line-graph-multiple-stroke-styles": { + "title": "Create Line Graph with Multiple Stroke Styles", + "filename": "create-line-graph-multiple-stroke-styles.cs", + "description": "Demonstrates how to generate a PDF line graph with three data series, each using a distinct stroke style (solid, dashed, dotted) by configuring GraphInfo properties.", + "tags": [ + "line-graph", + "stroke-style", + "Aspose.Pdf", + "graph", + "pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Drawing.Line", + "Aspose.Pdf.Drawing.GraphInfo", + "Aspose.Pdf.Color" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T08:09:47Z", + "status": "verified" + }, + "create-pdf-page-transitions-javascript": { + "title": "Create PDF with Page Transition Effects via JavaScript", + "filename": "create-pdf-page-transitions-javascript.cs", + "description": "Demonstrates how to add page transition effects to a PDF by attaching JavaScript actions to each page's OnOpen event using Aspose.Pdf.", + "tags": [ + "pdf", + "page-transition", + "javascript", + "aspose-pdf", "document" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Merge", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.FontRepository", + "Aspose.Pdf.Annotations.JavascriptAction" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "split-pdf-into-individual-pages": { - "title": "Split PDF into Individual Page PDFs", - "filename": "split-pdf-into-individual-pages.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, iterate over its pages, and save each page as a separate PDF document.", + "create-pdf-signature-field-js-validation": { + "title": "Create Pdf Signature Field Js Validation", + "filename": "create-pdf-signature-field-js-validation.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-pdf-table-of-contents-with-outlines": { + "title": "Create PDF Table of Contents with Clickable Outlines", + "filename": "create-pdf-table-of-contents-with-outlines.cs", + "description": "Loads an existing PDF, enables auto‑tagging, creates a TOC element, inserts a dedicated page, and configures TocInfo to generate clickable outline (bookmark) entries for each heading.", "tags": [ + "toc", + "outline", + "auto-tagging", "pdf", - "split", - "pages", - "aspose.pdf", - "csharp" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Document.Pages.Add", + "Aspose.Pdf.AutoTaggingSettings", + "Aspose.Pdf.Tagged.ITaggedContent", + "Aspose.Pdf.Tagged.TaggedContent.CreateTOCElement", + "Aspose.Pdf.StructureElement.AppendChild", + "Aspose.Pdf.Page.TocInfo", + "Aspose.Pdf.Text.TextFragment" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T08:09:47Z", + "status": "verified" + }, + "create-zugferd-compliant-invoice-pdf": { + "title": "Create Zugferd Compliant Invoice Pdf", + "filename": "create-zugferd-compliant-invoice-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-zugferd-invoice-pdf": { + "title": "Create ZUGFeRD‑Compliant Invoice PDF", + "filename": "create-zugferd-invoice-pdf.cs", + "description": "Demonstrates embedding a ZUGFeRD XML file into a readable PDF, converting the document to PDF/A‑3 (ZUGFeRD) format, and saving the resulting compliant invoice PDF.", + "tags": [ + "ZUGFeRD", + "PDF/A-3", + "Aspose.Pdf", + "XML embedding", + "Invoice" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.BindXml", + "Aspose.Pdf.Document.Convert", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Pages.Count" + "Aspose.Pdf.PdfFormat", + "Aspose.Pdf.Facades.ConvertErrorAction" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "extract-text-from-pdf-with-line-breaks": { - "title": "Extract Text from PDF with Line Breaks", - "filename": "extract-text-from-pdf-with-line-breaks.cs", - "description": "Demonstrates how to extract all textual content from a PDF while preserving line breaks and spacing using Aspose.Pdf's TextAbsorber with Pure formatting mode.", + "digitally-sign-pdf-with-pfx-timestamp": { + "title": "Digitally Sign PDF with PFX Certificate and Timestamp", + "filename": "digitally-sign-pdf-with-pfx-timestamp.cs", + "description": "Demonstrates loading a PDF, adding a signature field, applying a PKCS#7 signature from a PFX file, attaching an RFC‑3161 timestamp, and saving the signed document.", "tags": [ - "pdf", - "text-extraction", + "pdf-signature", + "pfx", + "timestamp", "aspose-pdf", - "line-breaks", - "csharp" + "digital-signature" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextExtractionOptions", - "Aspose.Pdf.Text.TextAbsorber", - "Aspose.Pdf.PageCollection.Accept", - "Aspose.Pdf.Text.TextExtractionOptions.TextFormattingMode" + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Forms.PKCS7", + "Aspose.Pdf.Forms.TimestampSettings", + "Aspose.Pdf.DigestHashAlgorithm" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "extract-images-from-pdf": { - "title": "Extract Images from PDF with Original Format", - "filename": "extract-images-from-pdf.cs", - "description": "The example opens a PDF, iterates through each page's image resources, and saves each image to disk preserving its original format and resolution.", + "digitally-sign-zugferd-pdf-with-timestamp": { + "title": "Digitally Sign ZUGFeRD PDF with Timestamp", + "filename": "digitally-sign-zugferd-pdf-with-timestamp.cs", + "description": "Demonstrates loading a ZUGFeRD PDF, adding a signature field, applying a PKCS#7 digital signature from a PFX file, and attaching a timestamp from a TSA server, then saving the signed document.", "tags": [ - "pdf", - "image-extraction", - "aspose.pdf", - "csharp", - "file-io" + "ZUGFeRD", + "digital-signature", + "timestamp", + "PKCS7", + "Aspose.Pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Forms.PKCS7", + "Aspose.Pdf.Forms.TimestampSettings", + "Aspose.Pdf.Forms.SignatureField.Sign", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T08:09:47Z", + "status": "verified" + }, + "draw-pie-chart-using-low-level-operators": { + "title": "Draw Pie Chart Using Low-Level PDF Operators", + "filename": "draw-pie-chart-using-low-level-operators.cs", + "description": "Demonstrates how to create a pie chart in a PDF by manually constructing paths with low-level drawing operators and filling each slice with a distinct RGB color.", + "tags": [ + "pie-chart", + "pdf-graphics", + "low-level-operators", + "aspose-pdf", + "drawing" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.XImage", - "Aspose.Pdf.XImage.Save", - "Aspose.Pdf.Page.Resources.Images" + "Aspose.Pdf.Operators.SetRGBColor", + "Aspose.Pdf.Operators.MoveTo", + "Aspose.Pdf.Operators.LineTo", + "Aspose.Pdf.Operators.ClosePath", + "Aspose.Pdf.Operators.Fill", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "export-pdf-form-fields-to-json": { - "title": "Export PDF Form Fields to JSON", - "filename": "export-pdf-form-fields-to-json.cs", - "description": "Loads a PDF document, exports all its form fields to a JSON file using Aspose.Pdf, and optionally reads and displays the generated JSON.", + "draw-pie-chart-using-low-level-pdf-operators": { + "title": "Draw Pie Chart Using Low Level Pdf Operators", + "filename": "draw-pie-chart-using-low-level-pdf-operators.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "draw-star-shape-low-level-operators": { + "title": "Draw a Star Shape Using Low-Level PDF Operators", + "filename": "draw-star-shape-low-level-operators.cs", + "description": "Shows how to load a PDF, calculate the vertices of a 5‑point star, and use Aspose.Pdf low‑level graphics operators (q, rg, w, m, l, b, Q) to draw, fill, and stroke the star on a page.", "tags": [ "pdf", - "form-fields", - "json", - "export", + "drawing", + "operators", + "star", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Form.ExportToJson", - "Aspose.Pdf.ExportFieldsToJsonOptions", - "Aspose.Pdf.Document.Dispose" + "Aspose.Pdf.Page", + "Aspose.Pdf.OperatorCollection", + "Aspose.Pdf.Operators.GSave", + "Aspose.Pdf.Operators.SetRGBColor", + "Aspose.Pdf.Operators.SetLineWidth", + "Aspose.Pdf.Operators.ClosePathFillStroke", + "Aspose.Pdf.Operators.GRestore" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "populate-pdf-form-from-json-and-flatten": { - "title": "Populate PDF Form from JSON and Flatten", - "filename": "populate-pdf-form-from-json-and-flatten.cs", - "description": "Shows how to load a PDF, fill its form fields using a JSON data source, flatten the form to make fields read‑only, and save the updated document.", + "draw-star-shape-pdf-operators": { + "title": "Draw Star Shape Pdf Operators", + "filename": "draw-star-shape-pdf-operators.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "dynamic-header-footer-pdf": { + "title": "Create PDF with Dynamic Header and Footer", + "filename": "dynamic-header-footer-pdf.cs", + "description": "Shows how to add per‑page header and footer text and attach a JavaScript action that runs when each page is opened, using Aspose.Pdf for .NET.", "tags": [ + "header", + "footer", + "javascript", "pdf", - "form", - "json", - "flatten", - "aspose-pdf" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Form.ImportFromJson", - "Aspose.Pdf.Forms.Form.Flatten", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page", + "Aspose.Pdf.HeaderFooter", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Annotations.JavascriptAction" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "print-pdf-silently-to-default-printer": { - "title": "Print PDF Silently to Default Printer", - "filename": "print-pdf-silently-to-default-printer.cs", - "description": "Demonstrates how to load a PDF file and send it directly to the default printer without showing any print dialog using Aspose.Pdf.Facades.", + "embed-audio-pdf-sound-annotation": { + "title": "Embed Audio in PDF with Sound Annotation", + "filename": "embed-audio-pdf-sound-annotation.cs", + "description": "Shows how to create a PDF, add a sound annotation that embeds a WAV file, and save the document using Aspose.Pdf.", "tags": [ + "audio", "pdf", - "printing", - "silent", - "aspose", - "csharp" + "sound-annotation", + "embed", + "aspnet" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfViewer", - "Aspose.Pdf.Facades.PdfViewer.BindPdf", - "Aspose.Pdf.Facades.PdfViewer.PrintDocument", - "Aspose.Pdf.Facades.PdfViewer.Close" + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.SoundAnnotation", + "Aspose.Pdf.Annotations.SoundIcon" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "print-pdf-range-to-network-printer": { - "title": "Print PDF Page Range to Network Printer with Duplex and Paper Size", - "filename": "print-pdf-range-to-network-printer.cs", - "description": "Demonstrates loading a PDF with Aspose.Pdf, rendering selected pages to images and sending them to a network printer while specifying duplex mode and A4 paper size.", + "embed-audio-with-js-playback": { + "title": "Embed Audio With Js Playback", + "filename": "embed-audio-with-js-playback.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "embed-custom-font-and-draw-graph": { + "title": "Embed Custom Font And Draw Graph", + "filename": "embed-custom-font-and-draw-graph.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "embed-custom-ttf-font-in-pdf-graph": { + "title": "Embed Custom TrueType Font in PDF with Graph", + "filename": "embed-custom-ttf-font-in-pdf-graph.cs", + "description": "Demonstrates how to embed an installed TrueType font into a PDF using Aspose.Pdf, draw a simple graph shape, and add text that uses the embedded font.", + "tags": [ + "font-embedding", + "pdf", + "graph", + "aspose-pdf", + "text" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Drawing.GraphInfo", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.FontRepository.FindFont" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T08:09:47Z", + "status": "verified" + }, + "embed-qr-code-image-at-specific-coordinates": { + "title": "Embed QR Code Image at Specific Coordinates in PDF", + "filename": "embed-qr-code-image-at-specific-coordinates.cs", + "description": "Demonstrates how to place a QR code image onto a PDF page at exact lower‑left and upper‑right coordinates using Aspose.Pdf's ImageStamp.", "tags": [ "pdf", - "printing", - "duplex", - "page-range", - "network-printer" + "qr-code", + "image-stamp", + "coordinates", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Devices.PngDevice", - "Aspose.Pdf.Devices.PngDevice.Process", "Aspose.Pdf.Page", - "Aspose.Pdf.Document.Duplex" + "Aspose.Pdf.Drawing.ImageStamp", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "add-javascript-open-action-jump-to-page-5": { - "title": "Add JavaScript Open Action to Jump to Page 5", - "filename": "add-javascript-open-action-jump-to-page-5.cs", - "description": "Demonstrates how to attach a JavaScript open action to a PDF using Aspose.Pdf so that the document automatically navigates to page five when opened.", + "embed-qr-code-using-low-level-operators": { + "title": "Embed Qr Code Using Low Level Operators", + "filename": "embed-qr-code-using-low-level-operators.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "embed-subset-custom-font-pdf": { + "title": "Embed Subset Custom Font Pdf", + "filename": "embed-subset-custom-font-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "embed-vector-graphic-graph-into-pdf": { + "title": "Embed Vector Graphic (Graph) into PDF", + "filename": "embed-vector-graphic-graph-into-pdf.cs", + "description": "Shows how to create a Graph object, add rectangle and line vector shapes, and embed the resulting vector graphic directly into a PDF page using Aspose.Pdf.", "tags": [ - "javascript", - "open-action", + "graph", + "vector-graphic", "pdf", "aspose", - "navigation" + "shapes" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Document.OpenAction", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document(string filePath)" + "Aspose.Pdf.Page", + "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Drawing.Line", + "Aspose.Pdf.Drawing.GraphInfo" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "add-auto-print-javascript-action-to-pdf": { - "title": "Add Auto‑Print JavaScript Action to PDF", - "filename": "add-auto-print-javascript-action-to-pdf.cs", - "description": "Demonstrates how to attach a JavaScript action that automatically opens the print dialog when the PDF is opened, using Aspose.Pdf.", + "embed-zugferd-xml-into-pdf-invoice": { + "title": "Embed Zugferd Xml Into Pdf Invoice", + "filename": "embed-zugferd-xml-into-pdf-invoice.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "encrypt-pdf-aes256-with-passwords": { + "title": "Encrypt PDF with AES‑256 and Passwords", + "filename": "encrypt-pdf-aes256-with-passwords.cs", + "description": "Demonstrates loading a PDF, applying AES‑256 encryption with separate user and owner passwords, setting basic permissions, and saving the protected document.", "tags": [ - "javascript", - "print", + "encryption", "pdf", - "autoprint", + "aes256", + "permissions", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.JavascriptAction", - "Aspose.Pdf.Document.OpenAction", + "Aspose.Pdf.Permissions", + "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.Encrypt", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "set-pdf-author-dynamically": { - "title": "Set PDF Author Dynamically Using Aspose.Pdf", - "filename": "set-pdf-author-dynamically.cs", - "description": "Shows how to create a PDF with Aspose.Pdf and set the Author metadata to the current system user at runtime.", + "encrypt-pdf-with-embedded-attachment": { + "title": "Encrypt Pdf With Embedded Attachment", + "filename": "encrypt-pdf-with-embedded-attachment.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "encrypt-zugferd-pdf-with-passwords": { + "title": "Encrypt ZUGFeRD PDF with User and Owner Passwords", + "filename": "encrypt-zugferd-pdf-with-passwords.cs", + "description": "Demonstrates loading a ZUGFeRD PDF, setting specific permissions, encrypting it with both user and owner passwords using AES‑256, and saving the protected file.", "tags": [ - "pdf", - "metadata", - "author", - "aspose", - "csharp" + "pdf-encryption", + "zugferd", + "permissions", + "aes256", + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.DocumentInfo", - "Aspose.Pdf.DocumentInfo.Author", - "Aspose.Pdf.DocumentInfo.Title", + "Aspose.Pdf.Permissions", + "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.Encrypt", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "hide-form-field-with-checkbox": { - "title": "Hide Form Field with Checkbox Using JavaScript in PDF", - "filename": "hide-form-field-with-checkbox.cs", - "description": "Demonstrates how to add a checkbox and a text field to a PDF and use JavaScript to hide or show the text field based on the checkbox state.", + "export-pdf-annotations-to-xfdf": { + "title": "Export PDF Annotations to XFDF", + "filename": "export-pdf-annotations-to-xfdf.cs", + "description": "Shows how to load a PDF with Aspose.Pdf and export all its annotations to an XFDF file for external processing or archiving.", "tags": [ "pdf", - "form", - "javascript", - "checkbox", - "visibility" + "annotations", + "xfdf", + "export", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Forms.CheckboxField", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Annotations.JavascriptAction" + "Aspose.Pdf.Document.ExportAnnotationsToXfdf" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "embed-qr-code-image-at-specific-coordinates": { - "title": "Embed QR Code Image at Specific Coordinates in PDF", - "filename": "embed-qr-code-image-at-specific-coordinates.cs", - "description": "Demonstrates how to place a QR code image onto a PDF page at exact lower‑left and upper‑right coordinates using Aspose.Pdf's ImageStamp.", + "export-pdf-form-fields-to-json": { + "title": "Export PDF Form Fields to JSON", + "filename": "export-pdf-form-fields-to-json.cs", + "description": "Loads a PDF document, exports all its form fields to a JSON file using Aspose.Pdf, and optionally reads and displays the generated JSON.", "tags": [ "pdf", - "qr-code", - "image-stamp", - "coordinates", + "form-fields", + "json", + "export", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Drawing.ImageStamp", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Form.ExportToJson", + "Aspose.Pdf.ExportFieldsToJsonOptions", + "Aspose.Pdf.Document.Dispose" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "compress-pdf-images-optimization": { - "title": "Compress PDF Images and Optimize Resources", - "filename": "compress-pdf-images-optimization.cs", - "description": "Demonstrates how to reduce a PDF file size by enabling image compression, resizing high‑resolution images, and applying additional optimizations such as object compression and font subsetting using Aspose.Pdf.", + "export-selected-pdf-pages": { + "title": "Export Selected PDF Pages to Separate Files", + "filename": "export-selected-pdf-pages.cs", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, extract specific pages, and save each page as an individual PDF while preserving its original size and orientation.", "tags": [ "pdf", - "compression", - "optimization", - "images", + "export", + "pages", + "aspose.pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Optimization.OptimizationOptions", - "Aspose.Pdf.Optimization.ImageCompressionOptions", - "Aspose.Pdf.Document.OptimizeResources", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.PageCollection.Add", + "Aspose.Pdf.PageCollection.Count" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "convert-pdf-to-pdfa-2b": { - "title": "Convert PDF to PDF/A‑2b Compliance", - "filename": "convert-pdf-to-pdfa-2b.cs", - "description": "Loads a PDF, converts it to PDF/A‑2b archival format using Aspose.Pdf, logs any conversion errors, and saves the compliant document.", + "extract-images-from-pdf": { + "title": "Extract Images from PDF with Original Format", + "filename": "extract-images-from-pdf.cs", + "description": "The example opens a PDF, iterates through each page's image resources, and saves each image to disk preserving its original format and resolution.", "tags": [ "pdf", - "pdfa-2b", - "conversion", - "archival", - "aspose" + "image-extraction", + "aspose.pdf", + "csharp", + "file-io" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Convert", - "Aspose.Pdf.PdfFormat", - "Aspose.Pdf.ConvertErrorAction", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page", + "Aspose.Pdf.XImage", + "Aspose.Pdf.XImage.Save", + "Aspose.Pdf.Page.Resources.Images" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "add-xmp-metadata-pdfa-compliance": { - "title": "Add XMP Metadata for PDF/A Compliance", - "filename": "add-xmp-metadata-pdfa-compliance.cs", - "description": "Shows how to load a PDF, add required XMP metadata entries (creator tool, creation date, document ID) and save the file as PDF/A compliant using Aspose.Pdf.", + "extract-pdf-form-fields-to-json": { + "title": "Extract Pdf Form Fields To Json", + "filename": "extract-pdf-form-fields-to-json.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-pdf-text-to-searchable-index": { + "title": "Extract Text from PDFs and Build a Searchable JSON Index", + "filename": "extract-pdf-text-to-searchable-index.cs", + "description": "Demonstrates how to use Aspose.Pdf to extract all text from PDF files in a folder and store the results in a JSON file that can be queried as a searchable index.", "tags": [ - "pdfa", - "xmp", - "metadata", - "aspose.pdf", - "csharp" + "pdf", + "text-extraction", + "search-index", + "json", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.DocumentInfo", - "Aspose.Pdf.Metadata", - "Aspose.Pdf.Metadata.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Text.TextAbsorber", + "Aspose.Pdf.Text.TextAbsorber.Visit", + "Aspose.Pdf.Text.TextAbsorber.Text", + "Aspose.Pdf.Document.Dispose" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "validate-pdfa3b-after-adding-zugferd-attachment": { - "title": "Validate PDF/A‑3B Compliance After Adding ZUGFeRD Attachment", - "filename": "validate-pdfa3b-after-adding-zugferd-attachment.cs", - "description": "The example loads a PDF, embeds a ZUGFeRD XML invoice as an attached file, and then checks that the resulting document remains PDF/A‑3B compliant, writing a validation log.", - "tags": [ - "PDF/A", - "ZUGFeRD", - "validation", - "embedding", - "Aspose.Pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.PdfFormat", - "Aspose.Pdf.Document.Validate", - "Aspose.Pdf.EmbeddedFilesCollection" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:09:47Z", + "extract-text-from-pdf-preserving-line-breaks": { + "title": "Extract Text From Pdf Preserving Line Breaks", + "filename": "extract-text-from-pdf-preserving-line-breaks.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "convert-pdf-zugferd-to-pdfa3u": { - "title": "Convert PDF with ZUGFeRD to PDF/A‑3U preserving XML", - "filename": "convert-pdf-zugferd-to-pdfa3u.cs", - "description": "Shows how to load a PDF containing a ZUGFeRD XML attachment and convert it to PDF/A‑3U while keeping the embedded XML data.", - "tags": [ - "ZUGFeRD", - "PDF/A-3U", - "Aspose.Pdf", - "XML attachment", - "conversion" + "extract-text-from-pdf-with-line-breaks": { + "title": "Extract Text from PDF with Line Breaks", + "filename": "extract-text-from-pdf-with-line-breaks.cs", + "description": "Demonstrates how to extract all textual content from a PDF while preserving line breaks and spacing using Aspose.Pdf's TextAbsorber with Pure formatting mode.", + "tags": [ + "pdf", + "text-extraction", + "aspose-pdf", + "line-breaks", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Convert", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.PdfFormat", - "Aspose.Pdf.ConvertErrorAction" + "Aspose.Pdf.Text.TextExtractionOptions", + "Aspose.Pdf.Text.TextAbsorber", + "Aspose.Pdf.PageCollection.Accept", + "Aspose.Pdf.Text.TextExtractionOptions.TextFormattingMode" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, + "extract-text-pdf-search-index": { + "title": "Extract Text Pdf Search Index", + "filename": "extract-text-pdf-search-index.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-validate-zugferd-xml-from-pdf": { + "title": "Extract Validate Zugferd Xml From Pdf", + "filename": "extract-validate-zugferd-xml-from-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "extract-validate-zugferd-xml": { "title": "Extract and Validate ZUGFeRD XML from PDF", "filename": "extract-validate-zugferd-xml.cs", @@ -1264,75 +1474,82 @@ "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "batch-generate-zugferd-pdfs-from-csv": { - "title": "Batch Generate ZUGFeRD‑Compliant PDFs from CSV", - "filename": "batch-generate-zugferd-pdfs-from-csv.cs", - "description": "Reads invoice data from a CSV file, creates a PDF for each record, adds basic invoice text, and attaches the corresponding ZUGFeRD XML file to the PDF.", + "extract-zugferd-xml-from-pdf": { + "title": "Extract Embedded ZUGFeRD XML from PDF", + "filename": "extract-zugferd-xml-from-pdf.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, locate an embedded ZUGFeRD XML file, and save it to the local file system.", "tags": [ "ZUGFeRD", "PDF", - "CSV", - "Invoice", - "Batch" + "Extraction", + "Aspose.Pdf", + "EmbeddedFiles" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.Position", - "Aspose.Pdf.Document.BindXml", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.Document.EmbeddedFiles", + "Aspose.Pdf.FileSpecification.Name", + "Aspose.Pdf.FileSpecification.Contents" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "embed-custom-ttf-font-in-pdf-graph": { - "title": "Embed Custom TrueType Font in PDF with Graph", - "filename": "embed-custom-ttf-font-in-pdf-graph.cs", - "description": "Demonstrates how to embed an installed TrueType font into a PDF using Aspose.Pdf, draw a simple graph shape, and add text that uses the embedded font.", + "generate-png-thumbnails-for-pdf-pages": { + "title": "Generate PNG Thumbnails for PDF Pages", + "filename": "generate-png-thumbnails-for-pdf-pages.cs", + "description": "Creates 150x150 PNG preview images for each page of a PDF document using Aspose.Pdf's ThumbnailDevice.", "tags": [ - "font-embedding", "pdf", - "graph", - "aspose-pdf", - "text" + "thumbnail", + "png", + "aspose", + "image" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Devices.ThumbnailDevice", "Aspose.Pdf.Page", - "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.FontRepository.FindFont" + "Aspose.Pdf.PageCollection", + "Aspose.Pdf.Devices.ThumbnailDevice.Process" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "subset-custom-font-in-pdf": { - "title": "Subset Custom Font in PDF Using Low‑Level Operators", - "filename": "subset-custom-font-in-pdf.cs", - "description": "Shows how to embed a custom font, add a text fragment to force its inclusion, and subset all fonts in a PDF so only used glyphs are kept, reducing file size.", + "hide-form-field-with-checkbox": { + "title": "Hide Form Field with Checkbox Using JavaScript in PDF", + "filename": "hide-form-field-with-checkbox.cs", + "description": "Demonstrates how to add a checkbox and a text field to a PDF and use JavaScript to hide or show the text field based on the checkbox state.", "tags": [ - "font-subsetting", "pdf", - "aspose-pdf", - "embedding", - "low-level-operators" + "form", + "javascript", + "checkbox", + "visibility" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.FontRepository.FindFont", - "Aspose.Pdf.Font", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.FontUtilities.SubsetFonts" + "Aspose.Pdf.Page", + "Aspose.Pdf.Forms.CheckboxField", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Annotations.JavascriptAction" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, + "hide-show-pdf-form-field-with-checkbox": { + "title": "Hide Show Pdf Form Field With Checkbox", + "filename": "hide-show-pdf-form-field-with-checkbox.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "hide-toolbar-menu-bar-pdf-javascript": { "title": "Hide Toolbar and Menu Bar in PDF via JavaScript", "filename": "hide-toolbar-menu-bar-pdf-javascript.cs", @@ -1356,95 +1573,239 @@ "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "create-pdf-page-transitions-javascript": { - "title": "Create PDF with Page Transition Effects via JavaScript", - "filename": "create-pdf-page-transitions-javascript.cs", - "description": "Demonstrates how to add page transition effects to a PDF by attaching JavaScript actions to each page's OnOpen event using Aspose.Pdf.", + "hide-toolbar-menu-bar-pdf": { + "title": "Hide Toolbar Menu Bar Pdf", + "filename": "hide-toolbar-menu-bar-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "import-fdf-data-into-pdf-and-flatten-form": { + "title": "Import FDF Data into PDF and Flatten Form", + "filename": "import-fdf-data-into-pdf-and-flatten-form.cs", + "description": "Shows how to load a PDF, import field values from an FDF/XFDF file using XfdfReader, flatten the form to make fields read‑only, and save the updated document.", + "tags": [ + "FDF", + "XFDF", + "form-fill", + "flatten", + "Aspose.Pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Annotations.XfdfReader.ReadFields", + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Form.Flatten", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:09:47Z", + "status": "verified" + }, + "list-javascript-actions-in-pdf": { + "title": "List JavaScript Actions in PDF (Document and Page Level)", + "filename": "list-javascript-actions-in-pdf.cs", + "description": "Demonstrates how to enumerate both document‑level and page‑level JavaScript actions in a PDF using Aspose.Pdf, including Open/Close actions and page Open/Close scripts.", "tags": [ - "pdf", - "page-transition", "javascript", + "pdf", "aspose-pdf", - "document" + "document-actions", + "page-actions" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.FontRepository", - "Aspose.Pdf.Annotations.JavascriptAction" + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Annotations.IAppointment", + "Aspose.Pdf.PdfAction", + "Aspose.Pdf.PageActionCollection" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T08:09:47Z", + "status": "verified" + }, + "list-pdf-attachments-names-sizes": { + "title": "List PDF Attachments with Names and Sizes", + "filename": "list-pdf-attachments-names-sizes.cs", + "description": "Shows how to load a PDF using Aspose.Pdf, iterate through its pages and annotations, and extract the names and byte sizes of file attachment annotations.", + "tags": [ + "pdf", + "attachments", + "aspnet", + "file-attachment", + "metadata" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.FileAttachmentAnnotation", + "Aspose.Pdf.FileSpecification" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T08:09:47Z", + "status": "verified" + }, + "list-pdf-attachments-sizes": { + "title": "List Pdf Attachments Sizes", + "filename": "list-pdf-attachments-sizes.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "merge-multiple-pdfs-preserving-bookmarks": { + "title": "Merge Multiple Pdfs Preserving Bookmarks", + "filename": "merge-multiple-pdfs-preserving-bookmarks.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "merge-pdfs-with-bookmarks": { + "title": "Merge PDFs with Bookmarks Preservation", + "filename": "merge-pdfs-with-bookmarks.cs", + "description": "Shows how to combine multiple PDF files into a single document while keeping the original outlines/bookmarks using Aspose.Pdf.", + "tags": [ + "pdf", + "merge", + "bookmarks", + "aspnet", + "document" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Merge", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "add-javascript-calculation-to-pdf-total": { - "title": "Add JavaScript Calculation to PDF Form Total Field", - "filename": "add-javascript-calculation-to-pdf-total.cs", - "description": "Shows how to embed JavaScript in a PDF using Aspose.Pdf to sum line‑item fields and display the result in a summary (total) field.", + "populate-pdf-form-from-json-and-flatten": { + "title": "Populate PDF Form from JSON and Flatten", + "filename": "populate-pdf-form-from-json-and-flatten.cs", + "description": "Shows how to load a PDF, fill its form fields using a JSON data source, flatten the form to make fields read‑only, and save the updated document.", "tags": [ - "javascript", - "pdf-form", - "calculation", - "aspose-pdf", - "field-actions" + "pdf", + "form", + "json", + "flatten", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Forms.Field.Actions" + "Aspose.Pdf.Forms.Form.ImportFromJson", + "Aspose.Pdf.Forms.Form.Flatten", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:09:47Z", + "status": "verified" + }, + "print-pdf-range-to-network-printer": { + "title": "Print PDF Page Range to Network Printer with Duplex and Paper Size", + "filename": "print-pdf-range-to-network-printer.cs", + "description": "Demonstrates loading a PDF with Aspose.Pdf, rendering selected pages to images and sending them to a network printer while specifying duplex mode and A4 paper size.", + "tags": [ + "pdf", + "printing", + "duplex", + "page-range", + "network-printer" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Devices.PngDevice", + "Aspose.Pdf.Devices.PngDevice.Process", + "Aspose.Pdf.Page", + "Aspose.Pdf.Document.Duplex" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "add-semi-transparent-text-watermark": { - "title": "Add Semi-Transparent Text Watermark Behind PDF Content", - "filename": "add-semi-transparent-text-watermark.cs", - "description": "Demonstrates how to place a semi‑transparent text watermark behind the existing content on every page of a PDF using Aspose.Pdf.", + "print-pdf-silently-to-default-printer": { + "title": "Print PDF Silently to Default Printer", + "filename": "print-pdf-silently-to-default-printer.cs", + "description": "Demonstrates how to load a PDF file and send it directly to the default printer without showing any print dialog using Aspose.Pdf.Facades.", + "tags": [ + "pdf", + "printing", + "silent", + "aspose", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfViewer", + "Aspose.Pdf.Facades.PdfViewer.BindPdf", + "Aspose.Pdf.Facades.PdfViewer.PrintDocument", + "Aspose.Pdf.Facades.PdfViewer.Close" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:09:47Z", + "status": "verified" + }, + "read-custom-pdf-metadata-audit": { + "title": "Read Custom Pdf Metadata Audit", + "filename": "read-custom-pdf-metadata-audit.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "read-custom-pdf-metadata-log": { + "title": "Read Custom PDF Metadata and Write to Log", + "filename": "read-custom-pdf-metadata-log.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, extract only custom metadata entries, and write them to a text file for auditing purposes.", "tags": [ - "watermark", "pdf", - "text", - "opacity", - "aspnet" + "metadata", + "audit", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.WatermarkArtifact", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.FontRepository.FindFont", - "Aspose.Pdf.Color.Gray", - "Aspose.Pdf.WatermarkArtifact.SetTextAndState", - "Aspose.Pdf.Page.Artifacts.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.DocumentInfo", + "Aspose.Pdf.DocumentInfo.IsPredefinedKey", + "Aspose.Pdf.DocumentInfo.GetEnumerator", + "Aspose.Pdf.DocumentInfo.Count" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "secure-pdf-form-filling-only": { - "title": "Secure PDF for Form Filling Only", - "filename": "secure-pdf-form-filling-only.cs", - "description": "Demonstrates how to encrypt a PDF with Aspose.Pdf so that only form filling is permitted while printing, editing, and content extraction are disabled.", + "remove-background-operators-from-pdf": { + "title": "Remove Background Operators from PDF Content Stream", + "filename": "remove-background-operators-from-pdf.cs", + "description": "Demonstrates iterating over PDF pages and deleting specific drawing operators (such as FillStroke) from each page's content stream using Aspose.Pdf.", "tags": [ - "pdf-security", - "form-filling", - "encryption", - "permissions", - "aspose-pdf" + "pdf", + "operators", + "background", + "content-stream", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page", + "Aspose.Pdf.OperatorCollection", + "Aspose.Pdf.Operators.FillStroke", + "Aspose.Pdf.OperatorCollection.Delete" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, @@ -1470,141 +1831,156 @@ "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "list-javascript-actions-in-pdf": { - "title": "List JavaScript Actions in PDF (Document and Page Level)", - "filename": "list-javascript-actions-in-pdf.cs", - "description": "Demonstrates how to enumerate both document‑level and page‑level JavaScript actions in a PDF using Aspose.Pdf, including Open/Close actions and page Open/Close scripts.", + "remove-specific-attachment-from-pdf": { + "title": "Remove Specific Attachment from PDF", + "filename": "remove-specific-attachment-from-pdf.cs", + "description": "Demonstrates how to delete a single embedded file from a PDF by its filename while preserving all other attachments using Aspose.Pdf.", "tags": [ - "javascript", "pdf", - "aspose-pdf", - "document-actions", - "page-actions" + "attachment", + "remove", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Annotations.IAppointment", - "Aspose.Pdf.PdfAction", - "Aspose.Pdf.PageActionCollection" + "Aspose.Pdf.EmbeddedFileCollection", + "Aspose.Pdf.EmbeddedFileCollection.Delete", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "convert-pdf-to-multi-page-tiff": { - "title": "Convert PDF to Multi‑Page TIFF", - "filename": "convert-pdf-to-multi-page-tiff.cs", - "description": "Demonstrates how to load a PDF with Aspose.Pdf, configure TIFF settings, and convert the entire document into a multi‑page TIFF file.", + "remove-zugferd-attachment-from-pdf": { + "title": "Remove ZUGFeRD Attachment from PDF", + "filename": "remove-zugferd-attachment-from-pdf.cs", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, delete the ZUGFeRD XML attachment, and save the document while preserving all other content.", "tags": [ - "pdf", - "tiff", - "conversion", - "multipage", - "aspose-pdf" + "ZUGFeRD", + "PDF", + "attachment", + "Aspose.Pdf", + "remove" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Resolution", - "Aspose.Pdf.Devices.TiffSettings", - "Aspose.Pdf.Devices.TiffDevice", - "Aspose.Pdf.Devices.TiffDevice.Process" + "Aspose.Pdf.Document.EmbeddedFiles", + "Aspose.Pdf.EmbeddedFilesCollection.Delete", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.EmbeddedFilesCollection" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "generate-png-thumbnails-for-pdf-pages": { - "title": "Generate PNG Thumbnails for PDF Pages", - "filename": "generate-png-thumbnails-for-pdf-pages.cs", - "description": "Creates 150x150 PNG preview images for each page of a PDF document using Aspose.Pdf's ThumbnailDevice.", + "render-pdf-page-to-png-high-quality-antialiasing": { + "title": "Render PDF Page to PNG with High‑Quality Anti‑Aliasing", + "filename": "render-pdf-page-to-png-high-quality-antialiasing.cs", + "description": "Demonstrates how to render a PDF page to a PNG image using Aspose.Pdf with enhanced anti‑aliasing settings for smoother lines and curves.", "tags": [ "pdf", - "thumbnail", + "rendering", + "antialiasing", "png", - "aspose", - "image" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Devices.ThumbnailDevice", - "Aspose.Pdf.Page", - "Aspose.Pdf.PageCollection", - "Aspose.Pdf.Devices.ThumbnailDevice.Process" + "Aspose.Pdf.Devices.PngDevice", + "Aspose.Pdf.RenderingOptions", + "Aspose.Pdf.Devices.PngDevice.Process" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "extract-pdf-text-to-searchable-index": { - "title": "Extract Text from PDFs and Build a Searchable JSON Index", - "filename": "extract-pdf-text-to-searchable-index.cs", - "description": "Demonstrates how to use Aspose.Pdf to extract all text from PDF files in a folder and store the results in a JSON file that can be queried as a searchable index.", + "render-pdf-pages-to-png-high-quality-antialiasing": { + "title": "Render Pdf Pages To Png High Quality Antialiasing", + "filename": "render-pdf-pages-to-png-high-quality-antialiasing.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "replace-text-using-showtext-operators": { + "title": "Replace Text in PDF Using ShowText Operators", + "filename": "replace-text-using-showtext-operators.cs", + "description": "Demonstrates how to locate ShowText operators in a PDF content stream and replace a specific string with a new one using Aspose.Pdf.", "tags": [ "pdf", - "text-extraction", - "search-index", - "json", - "aspose-pdf" + "text-replacement", + "showtext", + "operators", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextAbsorber", - "Aspose.Pdf.Text.TextAbsorber.Visit", - "Aspose.Pdf.Text.TextAbsorber.Text", - "Aspose.Pdf.Document.Dispose" + "Aspose.Pdf.Page", + "Aspose.Pdf.OperatorCollection", + "Aspose.Pdf.Operators.ShowText", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "embed-audio-pdf-sound-annotation": { - "title": "Embed Audio in PDF with Sound Annotation", - "filename": "embed-audio-pdf-sound-annotation.cs", - "description": "Shows how to create a PDF, add a sound annotation that embeds a WAV file, and save the document using Aspose.Pdf.", + "secure-pdf-form-filling-only": { + "title": "Secure PDF for Form Filling Only", + "filename": "secure-pdf-form-filling-only.cs", + "description": "Demonstrates how to encrypt a PDF with Aspose.Pdf so that only form filling is permitted while printing, editing, and content extraction are disabled.", "tags": [ - "audio", - "pdf", - "sound-annotation", - "embed", - "aspnet" + "pdf-security", + "form-filling", + "encryption", + "permissions", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.SoundAnnotation", - "Aspose.Pdf.Annotations.SoundIcon" + "Aspose.Pdf.Permissions", + "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "add-encrypted-file-attachment-to-pdf": { - "title": "Add Encrypted File Attachment to PDF", - "filename": "add-encrypted-file-attachment-to-pdf.cs", - "description": "Shows how to embed a file attachment using a stream and then encrypt the PDF so only authorized users can open it.", + "set-pdf-author-dynamically": { + "title": "Set PDF Author Dynamically Using Aspose.Pdf", + "filename": "set-pdf-author-dynamically.cs", + "description": "Shows how to create a PDF with Aspose.Pdf and set the Author metadata to the current system user at runtime.", "tags": [ - "attachment", - "encryption", - "annotation", - "file-specification", - "pdf" + "pdf", + "metadata", + "author", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Annotations.FileAttachmentAnnotation", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm" + "Aspose.Pdf.DocumentInfo", + "Aspose.Pdf.DocumentInfo.Author", + "Aspose.Pdf.DocumentInfo.Title", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, + "set-pdf-author-to-current-user": { + "title": "Set Pdf Author To Current User", + "filename": "set-pdf-author-to-current-user.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "set-pdf-creation-modification-dates": { "title": "Set PDF Creation and Modification Dates", "filename": "set-pdf-creation-modification-dates.cs", @@ -1628,269 +2004,283 @@ "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "draw-pie-chart-using-low-level-operators": { - "title": "Draw Pie Chart Using Low-Level PDF Operators", - "filename": "draw-pie-chart-using-low-level-operators.cs", - "description": "Demonstrates how to create a pie chart in a PDF by manually constructing paths with low-level drawing operators and filling each slice with a distinct RGB color.", + "set-pdf-document-language": { + "title": "Set PDF Document Language for Accessibility", + "filename": "set-pdf-document-language.cs", + "description": "Shows how to load an existing PDF with Aspose.Pdf, assign its primary language via tagged content to improve screen‑reader accessibility, and save the updated document.", "tags": [ - "pie-chart", - "pdf-graphics", - "low-level-operators", - "aspose-pdf", - "drawing" + "pdf", + "accessibility", + "language", + "tagged-content", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Operators.SetRGBColor", - "Aspose.Pdf.Operators.MoveTo", - "Aspose.Pdf.Operators.LineTo", - "Aspose.Pdf.Operators.ClosePath", - "Aspose.Pdf.Operators.Fill", + "Aspose.Pdf.Tagged.ITaggedContent", + "Aspose.Pdf.Tagged.ITaggedContent.SetLanguage", + "Aspose.Pdf.Tagged.ITaggedContent.SetTitle", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "render-pdf-page-to-png-high-quality-antialiasing": { - "title": "Render PDF Page to PNG with High‑Quality Anti‑Aliasing", - "filename": "render-pdf-page-to-png-high-quality-antialiasing.cs", - "description": "Demonstrates how to render a PDF page to a PNG image using Aspose.Pdf with enhanced anti‑aliasing settings for smoother lines and curves.", + "set-pdf-metadata-and-custom-property": { + "title": "Set PDF Metadata and Custom Property", + "filename": "set-pdf-metadata-and-custom-property.cs", + "description": "Demonstrates how to load an existing PDF, set standard metadata fields such as Title and Author, add a custom property for the invoice number, and save the updated document.", "tags": [ + "metadata", "pdf", - "rendering", - "antialiasing", - "png", - "aspose-pdf" + "aspose", + "custom-property", + "invoice" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Devices.PngDevice", - "Aspose.Pdf.RenderingOptions", - "Aspose.Pdf.Devices.PngDevice.Process" + "Aspose.Pdf.DocumentInfo", + "Aspose.Pdf.DocumentInfo.Title", + "Aspose.Pdf.DocumentInfo.Author", + "Aspose.Pdf.DocumentInfo.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "add-password-prompt-javascript-to-pdf": { - "title": "Add Password Prompt JavaScript to PDF", - "filename": "add-password-prompt-javascript-to-pdf.cs", - "description": "Demonstrates embedding JavaScript in a PDF with Aspose.Pdf to prompt for a password on document open and close the file if the password is incorrect.", + "set-pdf-open-action-navigate-page-10": { + "title": "Set PDF Open Action to Navigate to Page 10", + "filename": "set-pdf-open-action-navigate-page-10.cs", + "description": "Demonstrates how to add a JavaScript open action to a PDF that automatically navigates the viewer to page 10 when the document is opened, using Aspose.Pdf.", "tags": [ "javascript", - "pdf-security", "open-action", - "aspose.pdf", - "csharp" + "navigation", + "pdf", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Document(string)", "Aspose.Pdf.Annotations.JavascriptAction", "Aspose.Pdf.Document.OpenAction", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "add-signature-field-with-js-validation": { - "title": "Add Digital Signature Field with JavaScript Validation to PDF", - "filename": "add-signature-field-with-js-validation.cs", - "description": "Shows how to create a PDF, insert a digital signature field, and attach a JavaScript action that validates the signature when the field is activated, using Aspose.Pdf.", + "set-pdf-permissions-allow-printing-only": { + "title": "Set Pdf Permissions Allow Printing Only", + "filename": "set-pdf-permissions-allow-printing-only.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-pdf-permissions-allow-printing": { + "title": "Set PDF Permissions to Allow Printing Only", + "filename": "set-pdf-permissions-allow-printing.cs", + "description": "Shows how to encrypt a PDF with Aspose.Pdf and restrict permissions so that only printing is allowed while copying and annotation modifications are disabled.", "tags": [ - "signature", - "javascript", "pdf", - "forms", - "validation" + "permissions", + "encryption", + "printing", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Forms.SignatureField.ExecuteFieldJavaScript", - "Aspose.Pdf.Document.Form.Add", + "Aspose.Pdf.Permissions", + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.CryptoAlgorithm", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "export-pdf-annotations-to-xfdf": { - "title": "Export PDF Annotations to XFDF", - "filename": "export-pdf-annotations-to-xfdf.cs", - "description": "Shows how to load a PDF with Aspose.Pdf and export all its annotations to an XFDF file for external processing or archiving.", + "sign-zugferd-pdf-with-timestamp": { + "title": "Sign Zugferd Pdf With Timestamp", + "filename": "sign-zugferd-pdf-with-timestamp.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "split-pdf-into-individual-pages": { + "title": "Split PDF into Individual Page PDFs", + "filename": "split-pdf-into-individual-pages.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, iterate over its pages, and save each page as a separate PDF document.", "tags": [ "pdf", - "annotations", - "xfdf", - "export", - "aspose" + "split", + "pages", + "aspose.pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.ExportAnnotationsToXfdf" + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Document.Pages.Add", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Pages.Count" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "import-fdf-data-into-pdf-and-flatten-form": { - "title": "Import FDF Data into PDF and Flatten Form", - "filename": "import-fdf-data-into-pdf-and-flatten-form.cs", - "description": "Shows how to load a PDF, import field values from an FDF/XFDF file using XfdfReader, flatten the form to make fields read‑only, and save the updated document.", - "tags": [ - "FDF", - "XFDF", - "form-fill", - "flatten", - "Aspose.Pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Annotations.XfdfReader.ReadFields", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Form.Flatten", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T08:09:47Z", + "split-pdf-into-single-page-pdfs": { + "title": "Split Pdf Into Single Page Pdfs", + "filename": "split-pdf-into-single-page-pdfs.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "set-pdf-document-language": { - "title": "Set PDF Document Language for Accessibility", - "filename": "set-pdf-document-language.cs", - "description": "Shows how to load an existing PDF with Aspose.Pdf, assign its primary language via tagged content to improve screen‑reader accessibility, and save the updated document.", + "subset-custom-font-in-pdf": { + "title": "Subset Custom Font in PDF Using Low‑Level Operators", + "filename": "subset-custom-font-in-pdf.cs", + "description": "Shows how to embed a custom font, add a text fragment to force its inclusion, and subset all fonts in a PDF so only used glyphs are kept, reducing file size.", "tags": [ + "font-subsetting", "pdf", - "accessibility", - "language", - "tagged-content", - "aspose-pdf" + "aspose-pdf", + "embedding", + "low-level-operators" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.ITaggedContent.SetLanguage", - "Aspose.Pdf.Tagged.ITaggedContent.SetTitle", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.FontRepository.FindFont", + "Aspose.Pdf.Font", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.FontUtilities.SubsetFonts" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "add-javascript-toggle-optional-sections": { - "title": "Add JavaScript to Toggle Optional Sections in PDF Form", - "filename": "add-javascript-toggle-optional-sections.cs", - "description": "Shows how to attach a JavaScript action to a checkbox field in an Aspose.Pdf form so that optional sections become visible or hidden based on the user's selection.", + "update-pdf-attachment-description": { + "title": "Update PDF Attachment Description", + "filename": "update-pdf-attachment-description.cs", + "description": "Demonstrates how to load a PDF, locate file‑attachment annotations, and modify the description of the attached file. The example also shows creating a minimal PDF with an attachment if none exists.", "tags": [ - "javascript", - "form", - "visibility", - "checkbox", - "aspose-pdf" + "pdf", + "attachment", + "description", + "annotation", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.CheckboxField", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.FieldActions" + "Aspose.Pdf.Page", + "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.Annotations.FileAttachmentAnnotation", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.Annotation" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "create-pdf-table-of-contents-with-outlines": { - "title": "Create PDF Table of Contents with Clickable Outlines", - "filename": "create-pdf-table-of-contents-with-outlines.cs", - "description": "Loads an existing PDF, enables auto‑tagging, creates a TOC element, inserts a dedicated page, and configures TocInfo to generate clickable outline (bookmark) entries for each heading.", + "update-zugferd-xml-attachment": { + "title": "Update ZUGFeRD XML Attachment in PDF", + "filename": "update-zugferd-xml-attachment.cs", + "description": "Demonstrates replacing the ZUGFeRD XML attachment in an existing PDF with a new invoice XML using Aspose.Pdf.", "tags": [ - "toc", - "outline", - "auto-tagging", - "pdf", - "aspose-pdf" + "ZUGFeRD", + "PDF", + "XML", + "Aspose.Pdf", + "Invoice" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.AutoTaggingSettings", - "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.TaggedContent.CreateTOCElement", - "Aspose.Pdf.StructureElement.AppendChild", - "Aspose.Pdf.Page.TocInfo", - "Aspose.Pdf.Text.TextFragment" + "Aspose.Pdf.Document.BindXml", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "batch-apply-pdf-password-protection": { - "title": "Batch Apply Password Protection to PDFs", - "filename": "batch-apply-pdf-password-protection.cs", - "description": "Demonstrates how to iterate through a folder of PDF files and apply identical user and owner passwords using Aspose.Pdf encryption features.", + "validate-pdf-zugferd-compliance": { + "title": "Validate PDF for ZUGFeRD Compliance", + "filename": "validate-pdf-zugferd-compliance.cs", + "description": "Loads a PDF file, checks its existence, and validates it against the ZUGFeRD specification, outputting a validation log.", "tags": [ - "pdf", - "encryption", - "batch", - "aspose", - "csharp" + "ZUGFeRD", + "validation", + "PDF", + "Aspose.Pdf", + "document" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Permissions" + "Aspose.Pdf.Document.Validate", + "Aspose.Pdf.PdfFormat" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "dynamic-header-footer-pdf": { - "title": "Create PDF with Dynamic Header and Footer", - "filename": "dynamic-header-footer-pdf.cs", - "description": "Shows how to add per‑page header and footer text and attach a JavaScript action that runs when each page is opened, using Aspose.Pdf for .NET.", + "validate-pdfa-after-zugferd-attachment": { + "title": "Validate Pdfa After Zugferd Attachment", + "filename": "validate-pdfa-after-zugferd-attachment.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "validate-pdfa3b-after-adding-zugferd-attachment": { + "title": "Validate PDF/A‑3B Compliance After Adding ZUGFeRD Attachment", + "filename": "validate-pdfa3b-after-adding-zugferd-attachment.cs", + "description": "The example loads a PDF, embeds a ZUGFeRD XML invoice as an attached file, and then checks that the resulting document remains PDF/A‑3B compliant, writing a validation log.", "tags": [ - "header", - "footer", - "javascript", - "pdf", - "aspose" + "PDF/A", + "ZUGFeRD", + "validation", + "embedding", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.HeaderFooter", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Annotations.JavascriptAction" + "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.PdfFormat", + "Aspose.Pdf.Document.Validate", + "Aspose.Pdf.EmbeddedFilesCollection" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" }, - "add-auto-close-javascript-to-pdf": { - "title": "Add Auto‑Close JavaScript to PDF", - "filename": "add-auto-close-javascript-to-pdf.cs", - "description": "Shows how to embed a document‑level JavaScript action that automatically closes a PDF after a specified timeout using Aspose.Pdf.", + "verify-pdf-digital-signature": { + "title": "Verify PDF Digital Signature and Retrieve Signer Details", + "filename": "verify-pdf-digital-signature.cs", + "description": "Loads a signed PDF, checks for compromised signatures, iterates through signature fields, verifies each signature, and extracts signer information such as authority, date, reason, location, and contact info.", "tags": [ - "javascript", - "auto-close", "pdf", - "aspose-pdf", - "document-action" + "digital-signature", + "verification", + "signer-info", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.JavascriptAction", - "Aspose.Pdf.Document.OpenAction", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Signatures.SignaturesCompromiseDetector", + "Aspose.Pdf.Signatures.PKCS7", + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Signatures.Signature.Verify" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:09:47Z", "status": "verified" } diff --git a/index.json b/index.json index c56a2ce5f..6f24ee1ff 100644 --- a/index.json +++ b/index.json @@ -2,75 +2,97 @@ "product": "Aspose.PDF", "platform": "net", "framework": "net10.0", - "package_version": "26.7.0", - "total_examples": 2636, + "package_version": "26.8.0", + "total_examples": 3998, "total_categories": 35, - "last_updated": "2026-07-21", + "last_updated": "2026-09-10", "categories": [ { "name": "accessibility-and-tagged-pdfs", - "file_count": 45, + "file_count": 70, "files": [ "add-actualtext-to-images.cs", - "add-caption-note-to-figure-in-tagged-pdf.cs", + "add-caption-note-to-figure.cs", "add-custom-cell-tags-and-validate-pdf.cs", "add-custom-tag-to-paragraph.cs", "add-external-link-with-title-to-tagged-pdf.cs", - "add-figure-title-to-tagged-pdf.cs", "add-internal-link-element-to-tagged-pdf.cs", + "add-internal-page-link-to-tagged-pdf.cs", "add-missing-language-attributes-to-pdf-structure.cs", "add-note-element-to-paragraph.cs", "add-page-break-to-tagged-pdf.cs", - "add-paragraph-to-toci-element-actualtext.cs", + "add-placeholder-textbox-form-field-tagged.cs", "add-tagged-form-field-with-placeholder.cs", "add-tagged-table-to-pdf.cs", + "add-textbox-form-field-tagged-pdf.cs", + "append-paragraph-actualtext-to-toci.cs", "apply-custom-row-borders-to-pdf-table.cs", + "batch-convert-pdfs-to-tagged-pdfa.cs", "batch-convert-untagged-pdfs-to-tagged.cs", "batch-pdf-validation-dashboard.cs", + "batch-pdfa1b-validation-xml-logs-dashboard.cs", "batch-tag-pdfs-in-folder.cs", + "batch-tag-pdfs-with-suffix.cs", + "batch-validate-pdfs-summary-csv.cs", "batch-validate-pdfs-xml-logs-summary-csv.cs", "check-pdf-ua-compliance-and-log-result.cs", + "check-pdf-ua-compliance-and-log.cs", "convert-pdf-to-pdf-ua-with-auto-tagging.cs", - "create-form-field-tag-accessibility.cs", "create-merged-table-header-tagged-pdf.cs", + "create-nested-bullet-numbered-lists-tagged-pdf.cs", "create-nested-table-in-paragraph.cs", - "create-pdf-with-tagged-heading.cs", + "create-pdf-with-heading-and-language.cs", + "create-tagged-3x4-table-in-pdf.cs", "create-tagged-list-in-pdf.cs", + "create-tagged-pdf-table-with-merged-header.cs", "create-tagged-pdf-with-toc.cs", + "create-tagged-table-with-custom-tags.cs", + "custom-table-cell-borders-by-row-index.cs", + "enable-auto-tagging-save-tagged-pdf.cs", "export-pdf-structure-tree-to-json.cs", "export-pdf-structure-tree-to-xml-xsl-report.cs", + "export-structure-tree-to-xml-xsl-report.cs", "export-tagged-pdf-content-to-json.cs", "extract-note-elements-to-text.cs", + "extract-notes-from-tagged-pdf.cs", "extract-pdf-links-to-csv.cs", - "extract-text-from-tagged-pdf.cs", + "extract-text-from-tagged-pdf-structure.cs", + "filter-xml-missing-alt-text.cs", "find-images-missing-alt-text.cs", "iterate-tagged-pdf-structure-elements.cs", "modify-paragraph-actualtext-in-tagged-pdf.cs", + "nested-table-in-paragraph-tagged-pdf.cs", "parse-xml-validation-report-summary.cs", + "propagate-language-attribute-to-tagged-pdf.cs", "propagate-language-to-tagged-pdf.cs", + "replace-note-element-in-tagged-pdf.cs", "replace-note-elements-in-tagged-pdf.cs", "set-actualtext-span-pronunciation.cs", - "set-document-language-in-tagged-pdf.cs", + "set-figure-title-in-tagged-pdf.cs", + "set-missing-language-attributes.cs", "set-paragraph-title-accessibility.cs", + "set-paragraph-title-in-tagged-pdf.cs", + "set-primary-language-for-tagged-pdf.cs", "set-root-structure-element-title.cs", "style-table-cells-background-border-padding.cs", + "summarize-pdf-validation-errors.cs", + "update-paragraph-actualtext-in-tagged-pdf.cs", "update-structure-element-language-french.cs", + "update-tagged-element-language-french.cs", + "validate-pdf-ua-compliance-export-xml.cs", "validate-pdf-ua-compliance-xml-report.cs" ], "required_namespaces": [ "Aspose.Pdf", - "Aspose.Pdf.Tagged", "Aspose.Pdf.LogicalStructure", - "Aspose.Pdf.Annotations", + "Aspose.Pdf.Tagged", "Aspose.Pdf.Text", - "Aspose.Pdf.Drawing", - "Aspose.Pdf.Forms" + "Aspose.Pdf.Forms", + "Aspose.Pdf.Annotations" ], "key_apis": [ "TextFragment", "BorderInfo", - "StringBuilder", - "LinkAnnotation", "MarginInfo", "XmlSaveOptions" ], @@ -78,12 +100,12 @@ { "filename": "add-actualtext-to-images.cs", "title": "Add ActualText to Images for PDF Accessibility", - "description": "Demonstrates how to attach an ActualText attribute to image structure elements in a tagged PDF using Aspose.Pdf, providing screen‑reader descriptions for accessibility.", + "description": "Demonstrates how to attach an ActualText attribute to each image in a PDF using Aspose.Pdf's tagged‑content API, enabling screen readers to read alternative text.", "tags": [ "accessibility", "actualtext", "tagged-pdf", - "images", + "image", "aspnet" ], "apis_used": [ @@ -91,14 +113,15 @@ "Aspose.Pdf.Tagged.ITaggedContent", "Aspose.Pdf.Tagged.StructureElement", "Aspose.Pdf.Tagged.FigureElement", - "Aspose.Pdf.XImage" + "Aspose.Pdf.XImage", + "Aspose.Pdf.Tagged.TaggedContent.CreateFigureElement" ], "difficulty": "intermediate" }, { - "filename": "add-caption-note-to-figure-in-tagged-pdf.cs", + "filename": "add-caption-note-to-figure.cs", "title": "Add Caption Note to Figure in Tagged PDF", - "description": "Demonstrates how to use Aspose.Pdf's tagged‑content API to create a Figure element, attach a Note element as its caption, and save the PDF with proper accessibility tags.", + "description": "Demonstrates how to create a Figure element and attach a Note element as a caption within a tagged PDF using Aspose.Pdf, improving accessibility.", "tags": [ "tagged-pdf", "accessibility", @@ -109,55 +132,39 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.TaggedContent.SetLanguage", - "Aspose.Pdf.Tagged.TaggedContent.CreateFigureElement", - "Aspose.Pdf.Tagged.FigureElement.AlternativeText", - "Aspose.Pdf.Tagged.TaggedContent.CreateNoteElement", - "Aspose.Pdf.Tagged.NoteElement.SetText", - "Aspose.Pdf.Tagged.StructureElement.AppendChild" + "Aspose.Pdf.Tagged.FigureElement", + "Aspose.Pdf.Tagged.NoteElement", + "Aspose.Pdf.Tagged.StructureElement", + "Aspose.Pdf.Tagged.ITaggedContent.CreateFigureElement", + "Aspose.Pdf.Tagged.ITaggedContent.CreateNoteElement", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "add-custom-cell-tags-and-validate-pdf.cs", - "title": "Add Custom Data Type Tags to PDF Table Cells and Validate PDF/A Compliance", - "description": "The example loads an existing PDF, creates a tagged table with custom data‑type tags on each cell, saves the modified document, and validates it against PDF/A‑1B compliance.", - "tags": [ - "tagged-pdf", - "table", - "custom-tags", - "validation", - "pdfa" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.LogicalStructure.StructureElement", - "Aspose.Pdf.LogicalStructure.TableElement", - "Aspose.Pdf.LogicalStructure.TableTDElement", - "Aspose.Pdf.Document.Validate" - ], - "difficulty": "intermediate" + "title": "Add Custom Cell Tags And Validate Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "add-custom-tag-to-paragraph.cs", "title": "Add Custom Tag to Paragraph in Tagged PDF", - "description": "Demonstrates how to assign a custom tag name to a paragraph element in a tagged PDF using Aspose.Pdf and save the document.", + "description": "Demonstrates how to create a tagged PDF, add a paragraph element, assign a custom tag name, and save the document using Aspose.Pdf.", "tags": [ "tagged-pdf", "custom-tag", - "paragraph", "accessibility", - "aspose-pdf" + "paragraph", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.LogicalStructure.StructureElement", - "Aspose.Pdf.LogicalStructure.ParagraphElement", - "Aspose.Pdf.Tagged.ITaggedContent.CreateParagraphElement", - "Aspose.Pdf.LogicalStructure.ParagraphElement.SetTag", - "Aspose.Pdf.LogicalStructure.ParagraphElement.SetText", + "Aspose.Pdf.Tagged.StructureElement", + "Aspose.Pdf.Tagged.ParagraphElement", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" @@ -165,96 +172,72 @@ { "filename": "add-external-link-with-title-to-tagged-pdf.cs", "title": "Add External Link with Title to a Tagged PDF", - "description": "Demonstrates how to insert a clickable link with visible text and a title attribute into a tagged PDF for accessibility using Aspose.Pdf.", + "description": "Demonstrates how to insert a clickable external URL into a PDF's tagged structure and set its Title attribute for accessibility.", "tags": [ "tagged-pdf", - "accessibility", "link", - "aspose-pdf", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.StructureElement", - "Aspose.Pdf.Tagged.LinkElement", - "Aspose.Pdf.WebHyperlink" - ], - "difficulty": "intermediate" - }, - { - "filename": "add-figure-title-to-tagged-pdf.cs", - "title": "Add Figure Title to Tagged PDF", - "description": "Demonstrates how to use Aspose.Pdf's Tagged Content API to create a figure element, assign a concise title for accessibility, and insert it into the PDF's structure tree.", - "tags": [ - "pdf", + "title", "accessibility", - "tagged-pdf", - "figure", - "title" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.ITaggedContent.SetLanguage", - "Aspose.Pdf.Tagged.ITaggedContent.SetTitle", - "Aspose.Pdf.Tagged.ITaggedContent.CreateFigureElement", - "Aspose.Pdf.Tagged.FigureElement.Title", - "Aspose.Pdf.Tagged.StructureElement.AppendChild" + "Aspose.Pdf.Tagged.LinkElement", + "Aspose.Pdf.WebHyperlink", + "Aspose.Pdf.LogicalStructure.StructureElement", + "ITaggedContent.CreateLinkElement", + "StructureElement.AppendChild", + "Document.Save" ], "difficulty": "beginner" }, { "filename": "add-internal-link-element-to-tagged-pdf.cs", - "title": "Add Internal Link Element to Tagged PDF", - "description": "Demonstrates how to create a structure element with the /Link role in a tagged PDF, bind it to a visual link annotation, and set an internal page destination.", + "title": "Add Internal Link Element To Tagged Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-internal-page-link-to-tagged-pdf.cs", + "title": "Add Internal Page Link to Tagged PDF", + "description": "Demonstrates how to create a /Link element in a tagged PDF that points to an internal page using Aspose.Pdf's tagged‑content API.", "tags": [ "tagged-pdf", - "link-annotation", - "internal-link", + "link", "accessibility", + "internal-hyperlink", "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Tagged.ITaggedContent", "Aspose.Pdf.Tagged.LinkElement", - "Aspose.Pdf.Annotations.LocalHyperlink", - "Aspose.Pdf.Annotations.LinkAnnotation", + "Aspose.Pdf.LogicalStructure.LocalHyperlink", "Aspose.Pdf.LogicalStructure.StructureElement" ], "difficulty": "intermediate" }, { "filename": "add-missing-language-attributes-to-pdf-structure.cs", - "title": "Add Missing Language Attributes to PDF Structure Elements", - "description": "Demonstrates how to set a default language for a PDF and recursively assign language attributes to all tagged structure elements that lack one, using Aspose.Pdf.", - "tags": [ - "pdf", - "accessibility", - "language", - "tagged-pdf", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.TaggedContent.SetLanguage", - "Aspose.Pdf.LogicalStructure.StructureElement", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "intermediate" + "title": "Add Missing Language Attributes To Pdf Structure", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "add-note-element-to-paragraph.cs", "title": "Add Note Element to Paragraph in Tagged PDF", - "description": "Demonstrates how to create a note (footnote/endnote) element and attach it as a child of a paragraph in a tagged PDF using Aspose.Pdf.", + "description": "Demonstrates how to create a note (footnote/endnote) element and attach it as a child of a paragraph within a tagged PDF using Aspose.Pdf.", "tags": [ "tagged-pdf", "accessibility", "note-element", - "csharp", - "aspose-pdf" + "paragraph", + "aspdf" ], "apis_used": [ "Aspose.Pdf.Document", @@ -262,168 +245,188 @@ "Aspose.Pdf.Tagged.StructureElement", "Aspose.Pdf.Tagged.ParagraphElement", "Aspose.Pdf.Tagged.NoteElement", - "Aspose.Pdf.Tagged.ITaggedContent.CreateParagraphElement", - "Aspose.Pdf.Tagged.ITaggedContent.CreateNoteElement", - "Aspose.Pdf.Tagged.StructureElement.AppendChild" + "Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "add-page-break-to-tagged-pdf.cs", - "title": "Add Page Break to Tagged PDF Logical Structure", - "description": "Shows how to insert a page‑break element into the logical structure tree of a tagged PDF using Aspose.Pdf's tagged content API.", + "title": "Add Page Break Element to Tagged PDF", + "description": "Demonstrates how to insert a page‑break element into the logical structure tree of a tagged PDF using Aspose.Pdf's tagged‑content API.", "tags": [ "tagged-pdf", "page-break", - "logical-structure", "accessibility", + "logical-structure", "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.ITaggedContent.SetLanguage", - "Aspose.Pdf.Tagged.ITaggedContent.CreateParagraphElement", - "Aspose.Pdf.Tagged.DivElement", - "Aspose.Pdf.Tagged.DivElement.SetTag", - "Aspose.Pdf.LogicalStructure.StructureElement" + "Aspose.Pdf.Tagged.StructureElement", + "Aspose.Pdf.Tagged.ParagraphElement", + "Aspose.Pdf.Tagged.DivElement" ], "difficulty": "intermediate" }, { - "filename": "add-paragraph-to-toci-element-actualtext.cs", - "title": "Add Paragraph to TOCI Element with ActualText for Accessibility", - "description": "Demonstrates how to create a TOCI (Table of Contents Item) element, add a paragraph beneath it, and set the paragraph's ActualText to improve screen‑reader accessibility in a tagged PDF using Aspose.Pdf.", + "filename": "add-placeholder-textbox-form-field-tagged.cs", + "title": "Add Placeholder TextBox Form Field with Tagged Structure", + "description": "Loads an existing PDF, inserts a TextBox form field with placeholder text, creates a /Form logical structure element, links the field to the tagged structure, and saves the updated document.", "tags": [ - "accessibility", + "form-field", + "placeholder", "tagged-pdf", - "toc", - "actualtext", - "aspose-pdf" + "accessibility", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.StructureElement", - "Aspose.Pdf.Tagged.TOCIElement", - "Aspose.Pdf.Tagged.ParagraphElement", - "Aspose.Pdf.Tagged.ITaggedContent.CreateTOCIElement", - "Aspose.Pdf.Tagged.ITaggedContent.CreateParagraphElement", - "Aspose.Pdf.Tagged.StructureElement.AppendChild" + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Tagged.TaggedContent", + "Aspose.Pdf.LogicalStructure.StructureElement", + "Aspose.Pdf.LogicalStructure.FormElement" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "add-tagged-form-field-with-placeholder.cs", - "title": "Add Tagged Form Field with Placeholder to PDF", - "description": "Loads an existing PDF, creates a TextBox form field with placeholder text, tags it with a /Form structure element for accessibility, and saves the updated document.", + "title": "Add Tagged Form Field With Placeholder", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-tagged-table-to-pdf.cs", + "title": "Add Tagged Table To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-textbox-form-field-tagged-pdf.cs", + "title": "Add TextBox Form Field and Tag It for Accessibility", + "description": "Demonstrates how to create a TextBox form field, register it in the AcroForm, and associate it with a Form structure element to produce a tagged PDF with accessibility information using Aspose.Pdf.", "tags": [ "form-field", - "accessibility", "tagged-pdf", - "placeholder", - "Aspose.Pdf" + "accessibility", + "textbox", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", + "Aspose.Pdf.Forms.Form", "Aspose.Pdf.Forms.TextBoxField", "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.LogicalStructure.FormElement", - "Aspose.Pdf.LogicalStructure.StructureElement" + "Aspose.Pdf.LogicalStructure.StructureElement", + "Aspose.Pdf.Tagged.FormElement" ], "difficulty": "intermediate" }, { - "filename": "add-tagged-table-to-pdf.cs", - "title": "Add Tagged Table to PDF Document", - "description": "Demonstrates how to create a three‑row, four‑column table in a tagged PDF using Aspose.Pdf's logical structure API.", + "filename": "append-paragraph-actualtext-to-toci.cs", + "title": "Append Paragraph with ActualText to a TOCI Element", + "description": "Demonstrates how to create a TOCI (Table of Contents Item) element in a tagged PDF, add a paragraph child, set its ActualText for screen‑reader accessibility, and save the document.", "tags": [ "tagged-pdf", - "table", "accessibility", - "aspose-pdf", - "logical-structure" + "toc", + "actualtext", + "pdf" ], "apis_used": [ - "Document", - "ITaggedContent", - "StructureElement", - "TableElement", - "TableTBodyElement", - "TableTRElement", - "TableTDElement.SetText" + "Aspose.Pdf.Document", + "Aspose.Pdf.Tagged.ITaggedContent", + "Aspose.Pdf.Tagged.StructureElement", + "Aspose.Pdf.Tagged.TOCIElement", + "Aspose.Pdf.Tagged.ParagraphElement", + "Aspose.Pdf.Tagged.TaggedContent.CreateTOCIElement", + "Aspose.Pdf.Tagged.TaggedContent.CreateParagraphElement", + "Aspose.Pdf.StructureElement.AppendChild" ], "difficulty": "intermediate" }, { "filename": "apply-custom-row-borders-to-pdf-table.cs", - "title": "Apply Custom Row Borders to PDF Table", - "description": "Demonstrates how to set different border styles for table rows and cells in a PDF based on the row index, using Aspose.Pdf's BorderInfo.", - "tags": [ - "table", - "border", - "pdf", - "accessibility", - "tagged-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Table", - "Aspose.Pdf.Row", - "Aspose.Pdf.Cell", - "Aspose.Pdf.BorderInfo", - "Aspose.Pdf.Text.TextFragment" - ], - "difficulty": "intermediate" + "title": "Apply Custom Row Borders To Pdf Table", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "batch-convert-untagged-pdfs-to-tagged.cs", - "title": "Batch Convert Untagged PDFs to Tagged PDFs with Auto‑Tagging", - "description": "Demonstrates how to process a folder of untagged PDF files, enable auto‑tagging, convert them to PDF/UA format, and save the tagged PDFs to a separate directory.", + "filename": "batch-convert-pdfs-to-tagged-pdfa.cs", + "title": "Batch Convert PDFs to Tagged PDF/A with Auto‑Tagging", + "description": "Demonstrates how to process a folder of untagged PDFs, enable Aspose.Pdf auto‑tagging, convert each document to a tagged PDF/A format, and save the results to a separate output directory.", "tags": [ "pdf", "auto-tagging", - "accessibility", "batch", - "pdf/ua" + "accessibility", + "pdfa" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.AutoTaggingSettings", "Aspose.Pdf.PdfFormatConversionOptions", "Aspose.Pdf.PdfFormat", - "Aspose.Pdf.AutoTaggingSettings", "Aspose.Pdf.Document.Convert", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, + { + "filename": "batch-convert-untagged-pdfs-to-tagged.cs", + "title": "Batch Convert Untagged Pdfs To Tagged", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "batch-pdf-validation-dashboard.cs", - "title": "Batch PDF Validation and Dashboard Generation", - "description": "Validates multiple PDFs for PDF/A‑1B compliance, writes XML logs for each file, and creates a summary dashboard PDF that shows compliance percentages per file.", + "title": "Batch Pdf Validation Dashboard", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "batch-pdfa1b-validation-xml-logs-dashboard.cs", + "title": "Batch PDF/A-1B Validation with XML Logs and Compliance Dashboard", + "description": "The example loads all PDF files in a folder, validates each against the PDF/A‑1B standard using Aspose.Pdf, writes XML validation logs, and displays a console dashboard with overall and per‑file compliance percentages.", "tags": [ "pdf-validation", - "batch-processing", - "dashboard", + "pdfa", "xml-logging", - "accessibility" + "batch", + "compliance-dashboard" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Document.Validate", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Color", - "Aspose.Pdf.MarginInfo" + "Aspose.Pdf.PdfFormat", + "Aspose.Pdf.PdfFormat.PDF_A_1B", + "Aspose.Pdf.Document.Dispose" ], "difficulty": "intermediate" }, { "filename": "batch-tag-pdfs-in-folder.cs", - "title": "Batch Tag PDFs in a Folder", - "description": "The example iterates through all PDF files in a directory, enables automatic tagging for missing structure elements, sets language and title, and saves each tagged PDF with a \"_tagged\" suffix.", + "title": "Batch Tag Pdfs In Folder", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "batch-tag-pdfs-with-suffix.cs", + "title": "Batch Tag PDFs and Save with Suffix", + "description": "Demonstrates how to process a folder of PDF files, enable automatic tagging, add missing structure elements, set language and title, and save each tagged PDF with a custom suffix.", "tags": [ "pdf", "tagging", @@ -435,39 +438,57 @@ "Aspose.Pdf.Document", "Aspose.Pdf.Tagged.AutoTaggingSettings", "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.TaggedContent", + "Aspose.Pdf.Tagged.StructureElement", + "Aspose.Pdf.Tagged.ParagraphElement", + "Aspose.Pdf.Tagged.ITaggedContent.Save", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "batch-validate-pdfs-xml-logs-summary-csv.cs", - "title": "Batch Validate PDFs and Generate XML Logs with Summary CSV", - "description": "The example loads each PDF in a folder, validates it against PDF/A‑1B using Aspose.Pdf, saves an XML validation log for each file, and creates a CSV summary of the validation results.", + "filename": "batch-validate-pdfs-summary-csv.cs", + "title": "Batch Validate PDFs and Generate Summary CSV", + "description": "Demonstrates how to iterate through a folder of PDF files, validate each against PDF/A‑1B using Aspose.Pdf, write individual XML logs, and produce a consolidated CSV summary of the compliance results.", "tags": [ - "pdf validation", - "batch processing", - "xml log", - "csv summary", - "aspose.pdf" + "pdf-validation", + "batch-processing", + "csv-report", + "xml-log", + "accessibility" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Validate", - "Aspose.Pdf.PdfFormat" + "Aspose.Pdf.PdfFormat", + "Aspose.Pdf.Document.Validate" ], "difficulty": "intermediate" }, + { + "filename": "batch-validate-pdfs-xml-logs-summary-csv.cs", + "title": "Batch Validate Pdfs Xml Logs Summary Csv", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "check-pdf-ua-compliance-and-log-result.cs", + "title": "Check Pdf Ua Compliance And Log Result", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "check-pdf-ua-compliance-and-log.cs", "title": "Check PDF/UA Compliance and Log Result", - "description": "Shows how to load a PDF with Aspose.Pdf, evaluate its PDF/UA compliance via Document.IsPdfUaCompliant, and write the boolean outcome to the console and a log file.", + "description": "Demonstrates loading a PDF with Aspose.Pdf, checking its PDF/UA accessibility compliance, and appending the boolean outcome to a log file for further processing.", "tags": [ - "pdf", - "pdf/ua", + "pdf-ua", "accessibility", - "compliance", - "logging" + "logging", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", @@ -477,55 +498,113 @@ }, { "filename": "convert-pdf-to-pdf-ua-with-auto-tagging.cs", - "title": "Convert PDF to PDF/UA with Automatic Tagging", - "description": "Shows how to convert an existing PDF to a PDF/UA‑1 compliant document by enabling automatic tagging and saving it as a tagged PDF.", + "title": "Convert Pdf To Pdf Ua With Auto Tagging", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-merged-table-header-tagged-pdf.cs", + "title": "Create Merged Table Header Tagged Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-nested-bullet-numbered-lists-tagged-pdf.cs", + "title": "Create Nested Bullet and Numbered Lists in a Tagged PDF", + "description": "Demonstrates how to build a PDF containing a top‑level bullet list and a numbered list with a nested bullet sub‑list using Aspose.Pdf's tagged content API for accessibility.", "tags": [ - "PDF/UA", - "auto-tagging", + "tagged-pdf", + "nested-list", "accessibility", + "aspnet", + "list-structure" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Tagged.ITaggedContent", + "Aspose.Pdf.Tagged.StructureElement", + "Aspose.Pdf.Tagged.ListElement", + "Aspose.Pdf.Tagged.ListLIElement", + "Aspose.Pdf.Tagged.ParagraphElement" + ], + "difficulty": "intermediate" + }, + { + "filename": "create-nested-table-in-paragraph.cs", + "title": "Create Nested Table In Paragraph", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-pdf-with-heading-and-language.cs", + "title": "Create PDF with Heading Element and Language Attribute", + "description": "Demonstrates how to create a new PDF, enable tagged content, set the document language, add a level‑1 heading element with its own language attribute, and save the file.", + "tags": [ + "pdf", "tagged-pdf", - "Aspose.Pdf" + "accessibility", + "heading", + "language" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PdfFormatConversionOptions", - "Aspose.Pdf.PdfFormat", - "Aspose.Pdf.Tagged.AutoTaggingSettings", - "Aspose.Pdf.Document.Convert", + "Aspose.Pdf.Tagged.ITaggedContent", + "Aspose.Pdf.Tagged.ITaggedContent.SetLanguage", + "Aspose.Pdf.Tagged.ITaggedContent.SetTitle", + "Aspose.Pdf.Tagged.ITaggedContent.CreateHeaderElement", + "Aspose.Pdf.LogicalStructure.StructureElement", + "Aspose.Pdf.LogicalStructure.HeaderElement", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "create-form-field-tag-accessibility.cs", - "title": "Create Form Field and Tag it for Accessibility", - "description": "Shows how to add a TextBox form field to a PDF, register it in the AcroForm, and associate it with a /Form structure element to make the document accessible.", + "filename": "create-tagged-3x4-table-in-pdf.cs", + "title": "Create Tagged 3x4 Table in PDF", + "description": "Demonstrates how to use Aspose.Pdf's Tagged Content API to add a 3‑row by 4‑column table with alternative text to the structure tree of an existing PDF and save the result.", "tags": [ - "form-field", "tagged-pdf", + "table", "accessibility", - "acroform", - "pdf-modification" + "aspose-pdf", + "structure-tree" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Tagged.TaggedContent", - "Aspose.Pdf.Tagged.FormElement", - "Aspose.Pdf.LogicalStructure.StructureElement" + "Aspose.Pdf.Tagged.ITaggedContent", + "Aspose.Pdf.Tagged.TableElement", + "Aspose.Pdf.Tagged.TableTBodyElement", + "Aspose.Pdf.Tagged.TableTRElement", + "Aspose.Pdf.Tagged.TableTDElement" ], "difficulty": "intermediate" }, { - "filename": "create-merged-table-header-tagged-pdf.cs", - "title": "Create Merged Table Header with TH Role and ActualText in Tagged PDF", - "description": "Loads an existing PDF, builds a tagged table with a header row where the first TH cell spans two columns, assigns the /TH role and sets /ActualText for each header, then saves the tagged PDF.", + "filename": "create-tagged-list-in-pdf.cs", + "title": "Create Tagged List In Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-tagged-pdf-table-with-merged-header.cs", + "title": "Create Tagged PDF Table with Merged Header Cells", + "description": "Demonstrates how to tag a PDF table, add a header row with merged cells, assign the TH role, and set ActualText for accessibility using Aspose.Pdf.", "tags": [ "tagged-pdf", - "table-header", - "merged-cells", + "table", + "header", "accessibility", - "aspdf" + "merged-cells" ], "apis_used": [ "Aspose.Pdf.Document", @@ -533,191 +612,202 @@ "Aspose.Pdf.Tagged.StructureElement", "Aspose.Pdf.Tagged.TableElement", "Aspose.Pdf.Tagged.TableTHeadElement", - "Aspose.Pdf.Tagged.TableTHElement", "Aspose.Pdf.Tagged.TableTRElement", - "Aspose.Pdf.Tagged.TableTDElement" + "Aspose.Pdf.Tagged.TableTHElement" ], "difficulty": "intermediate" }, { - "filename": "create-nested-table-in-paragraph.cs", - "title": "Create Nested Table Inside Paragraph for Tagged PDF", - "description": "Shows how to build a tagged PDF where a paragraph contains an outer table, and one of its cells hosts a nested inner table, using Aspose.Pdf's tagging API.", + "filename": "create-tagged-pdf-with-toc.cs", + "title": "Create Tagged PDF with Table of Contents", + "description": "Demonstrates how to generate a PDF, add tagged headings, configure a dedicated Table of Contents page, and build the logical TOC structure for accessibility.", "tags": [ "tagged-pdf", - "nested-table", + "toc", "accessibility", - "Aspose.Pdf", - "C#" + "aspose-pdf", + "pdf-structure" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.ParagraphElement", - "Aspose.Pdf.Tagged.TableElement", - "Aspose.Pdf.Tagged.TableTHeadElement", - "Aspose.Pdf.Tagged.TableTBodyElement", - "Aspose.Pdf.Tagged.TableTRElement", - "Aspose.Pdf.Tagged.TableTDElement" + "Aspose.Pdf.Tagged.HeaderElement", + "Aspose.Pdf.Tagged.TOCElement", + "Aspose.Pdf.Tagged.TOCIElement", + "Aspose.Pdf.Tagged.ReferenceElement", + "Aspose.Pdf.Tagged.TocInfo", + "Aspose.Pdf.Text.TextFragment" ], "difficulty": "intermediate" }, { - "filename": "create-pdf-with-tagged-heading.cs", - "title": "Create PDF with Tagged Heading and Language", - "description": "Shows how to create a new PDF, add a level‑1 heading structure element, set document‑level and element language attributes, and save the tagged PDF for accessibility.", + "filename": "create-tagged-table-with-custom-tags.cs", + "title": "Create Tagged Table with Custom DataType Tags and Validate PDF/A-1B", + "description": "The example loads a PDF, builds a tagged table structure, assigns custom data‑type tags to individual cells, saves the document, and validates it for PDF/A‑1B compliance.", "tags": [ - "pdf", - "accessibility", "tagged-pdf", - "heading", - "language" + "table", + "custom-tags", + "pdfa", + "accessibility" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.TaggedContent.SetLanguage", - "Aspose.Pdf.Tagged.TaggedContent.SetTitle", - "Aspose.Pdf.Tagged.TaggedContent.CreateHeaderElement", - "Aspose.Pdf.Tagged.HeaderElement", "Aspose.Pdf.Tagged.StructureElement", - "Aspose.Pdf.Tagged.StructureElement.AppendChild" + "Aspose.Pdf.Tagged.TableElement", + "Aspose.Pdf.Tagged.TableTDElement", + "Aspose.Pdf.Document.Validate" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "create-tagged-list-in-pdf.cs", - "title": "Create Tagged List in PDF", - "description": "Demonstrates how to add a logical list structure with list items, labels, and body paragraphs to an existing PDF using Aspose.Pdf's tagged‑content API.", + "filename": "custom-table-cell-borders-by-row-index.cs", + "title": "Custom Table Cell Borders by Row Index", + "description": "Shows how to create a PDF table with Aspose.Pdf and apply different background colors (as a visual cue for border styling) to cells based on the row index, demonstrating custom border appearance.", "tags": [ - "tagged-pdf", - "list-structure", - "accessibility", + "table", + "border", + "pdf", "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.ListElement", - "Aspose.Pdf.Tagged.ListLIElement", - "Aspose.Pdf.Tagged.ListLblElement", - "Aspose.Pdf.Tagged.ListLBodyElement", - "Aspose.Pdf.Tagged.ParagraphElement" + "Aspose.Pdf.Page", + "Aspose.Pdf.Table", + "Aspose.Pdf.Row", + "Aspose.Pdf.Cell", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.BorderInfo" ], "difficulty": "intermediate" }, { - "filename": "create-tagged-pdf-with-toc.cs", - "title": "Create Tagged PDF with Table of Contents", - "description": "Demonstrates how to generate a PDF with tagged content, add heading elements, and build a logical table of contents using Aspose.Pdf.", + "filename": "enable-auto-tagging-save-tagged-pdf.cs", + "title": "Enable Automatic Tagging and Save PDF as Tagged PDF", + "description": "Demonstrates how to activate Aspose.Pdf's auto‑tagging feature, set basic language and title metadata, and save the document as a PDF/UA‑compliant tagged PDF.", "tags": [ + "auto-tagging", + "pdf/ua", "tagged-pdf", - "table-of-contents", "accessibility", - "aspose-pdf", - "logical-structure" + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Tagged.AutoTaggingSettings", "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.HeaderElement", - "Aspose.Pdf.Tagged.TOCElement", - "Aspose.Pdf.Tagged.TOCIElement", - "Aspose.Pdf.Tagged.TocInfo", - "Aspose.Pdf.Text.TextFragment" + "Aspose.Pdf.Tagged.ITaggedContent.SetLanguage", + "Aspose.Pdf.Tagged.ITaggedContent.SetTitle", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "export-pdf-structure-tree-to-json.cs", "title": "Export PDF Structure Tree to JSON", - "description": "Shows how to load a PDF, access its tagged (logical) structure, and serialize the structure tree into a JSON file for accessibility analysis.", + "description": "Shows how to load a PDF, read its tagged logical structure with Aspose.Pdf, convert the hierarchy into a serializable DTO, and write the structure tree as a formatted JSON file for accessibility analysis.", "tags": [ "pdf", + "accessibility", "tagged-pdf", "structure", - "json", - "accessibility" + "json" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.LogicalStructure.StructTreeRootElement", - "Aspose.Pdf.LogicalStructure.Element", - "Aspose.Pdf.LogicalStructure.StructureElement" + "Aspose.Pdf.Tagged.StructureElement", + "Aspose.Pdf.Tagged.Element", + "Aspose.Pdf.Tagged.StructureElement.ChildElements" ], "difficulty": "intermediate" }, { "filename": "export-pdf-structure-tree-to-xml-xsl-report.cs", + "title": "Export Pdf Structure Tree To Xml Xsl Report", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "export-structure-tree-to-xml-xsl-report.cs", "title": "Export PDF Structure Tree to XML and Generate Report via XSLT", - "description": "Shows how to export a PDF's logical structure tree to an XML file using Aspose.Pdf and then apply an XSLT stylesheet to create an HTML report.", + "description": "Loads a PDF with Aspose.Pdf, exports its logical structure tree to an XML file using XmlSaveOptions, and then applies an XSLT stylesheet to produce an HTML report.", "tags": [ - "PDF", - "structure tree", - "XML", - "XSLT", - "report" + "structure-tree", + "xml-export", + "xslt", + "report-generation", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.XmlSaveOptions", - "Aspose.Pdf.SaveOptions", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.XmlSaveOptions" ], "difficulty": "intermediate" }, { "filename": "export-tagged-pdf-content-to-json.cs", "title": "Export Tagged PDF Content to JSON", - "description": "Demonstrates how to read the logical structure of a tagged PDF using Aspose.Pdf, convert the hierarchy into a serializable object, and write it as an indented JSON file.", + "description": "Shows how to read a PDF's tagged structure with Aspose.Pdf, build a hierarchical representation, and serialize it to a JSON file.", "tags": [ "tagged-pdf", "json", "accessibility", "structure", - "aspnet" + "export" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Tagged.ITaggedContent", "Aspose.Pdf.Tagged.StructureElement", - "Aspose.Pdf.LogicalStructure.Element", + "Aspose.Pdf.Tagged.Element", "Aspose.Pdf.LogicalStructure.StructureElement" ], "difficulty": "intermediate" }, { "filename": "extract-note-elements-to-text.cs", - "title": "Extract Note Elements from Tagged PDF and Save to Text", - "description": "Loads a PDF, accesses its tagged content, finds all NoteElement objects, concatenates their ActualText values, and writes the combined text to a UTF‑8 plain‑text file.", + "title": "Extract Note Elements To Text", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-notes-from-tagged-pdf.cs", + "title": "Extract Notes from Tagged PDF to Text File", + "description": "Loads a PDF, accesses its tagged content, finds all NoteElement objects, concatenates their ActualText, and writes the combined notes to a plain text file.", "tags": [ "pdf", "accessibility", - "tagged-pdf", "notes", - "text-extraction" + "tagged-pdf", + "extraction" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Tagged.ITaggedContent", "Aspose.Pdf.Tagged.StructureElement", - "Aspose.Pdf.Tagged.NoteElement", + "Aspose.Pdf.LogicalStructure.NoteElement", "Aspose.Pdf.Tagged.StructureElement.FindElements" ], "difficulty": "intermediate" }, { "filename": "extract-pdf-links-to-csv.cs", - "title": "Extract PDF Link URLs to CSV", - "description": "Demonstrates loading a PDF with Aspose.Pdf, iterating through link annotations to retrieve their target URLs, and writing the collected URLs to a CSV file.", + "title": "Extract PDF Links to CSV", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, iterate through its pages and link annotations, extract the target URLs, and write them to a CSV file.", "tags": [ "pdf", "links", - "extraction", "csv", - "aspose-pdf" + "annotations", + "extraction" ], "apis_used": [ "Aspose.Pdf.Document", @@ -729,9 +819,9 @@ "difficulty": "intermediate" }, { - "filename": "extract-text-from-tagged-pdf.cs", - "title": "Extract Text from Tagged PDF via Structure Tree", - "description": "Shows how to load a PDF with Aspose.Pdf, access its tagged content, traverse the logical structure tree, and collect the visible text from each structure element.", + "filename": "extract-text-from-tagged-pdf-structure.cs", + "title": "Extract Text from Tagged PDF Structure Tree", + "description": "Demonstrates how to load a PDF, access its tagged content, and recursively traverse the logical structure tree to extract the actual text of each element.", "tags": [ "tagged-pdf", "text-extraction", @@ -742,117 +832,132 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.StructureElement", + "Aspose.Pdf.LogicalStructure.StructureElement", "Aspose.Pdf.LogicalStructure.Element", - "Aspose.Pdf.Tagged.StructureElement.ActualText" + "Aspose.Pdf.LogicalStructure.ElementList" ], "difficulty": "intermediate" }, { - "filename": "find-images-missing-alt-text.cs", - "title": "Find Images Missing Alternative Text in PDF", - "description": "Loads a PDF, iterates through each page and its image resources, checks for alternative text, and lists the identifiers of images that have no alt text.", + "filename": "filter-xml-missing-alt-text.cs", + "title": "Filter XML Errors for Missing Alt Text", + "description": "Shows how to load an XML validation report, query for errors of type \"MissingAltText\", and output the affected image IDs.", "tags": [ + "xml", "accessibility", "alt-text", - "pdf", - "image", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.XImage", - "Aspose.Pdf.XImage.GetAlternativeText", - "Aspose.Pdf.XImage.GetNameInCollection" + "validation", + "csharp" ], + "apis_used": [], "difficulty": "beginner" }, + { + "filename": "find-images-missing-alt-text.cs", + "title": "Find Images Missing Alt Text", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "iterate-tagged-pdf-structure-elements.cs", - "title": "Iterate Tagged PDF Structure Elements", - "description": "Loads a PDF, accesses its tagged content, and recursively walks the logical structure tree, logging each element's title, language and custom tag name.", + "title": "Iterate Tagged PDF Structure Elements and Log Titles & Languages", + "description": "The example loads a PDF, accesses its tagged content, and recursively walks the logical structure tree, outputting each element's title and language. It also notes the limitation of retrieving custom tags via the Aspose.PDF API.", "tags": [ "tagged-pdf", "structure", "accessibility", - "aspnet", - "pdf" + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Document.TaggedContent", "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.ITaggedContent.RootElement", "Aspose.Pdf.LogicalStructure.StructureElement", - "Aspose.Pdf.LogicalStructure.Element" + "Aspose.Pdf.LogicalStructure.Element.ChildElements" ], "difficulty": "intermediate" }, { "filename": "modify-paragraph-actualtext-in-tagged-pdf.cs", - "title": "Modify Paragraph ActualText in Tagged PDF", - "description": "Loads a tagged PDF, searches for a paragraph by its visible title, updates the paragraph's ActualText for accessibility correction, and saves the modified document.", + "title": "Modify Paragraph Actualtext In Tagged Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "nested-table-in-paragraph-tagged-pdf.cs", + "title": "Create Nested Table Inside Paragraph in Tagged PDF", + "description": "Demonstrates how to build a paragraph element, add an outer table, embed a nested table within a cell, set alternative text, and validate the tagging hierarchy using Aspose.Pdf's Tagged PDF API.", "tags": [ - "accessibility", "tagged-pdf", - "actualtext", - "paragraph", - "aspose-pdf" + "nested-table", + "accessibility", + "pdf-structure", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.StructureElement", "Aspose.Pdf.Tagged.ParagraphElement", - "Aspose.Pdf.Tagged.StructureElement.FindElements", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Tagged.TableElement", + "Aspose.Pdf.Tagged.TableTHeadElement", + "Aspose.Pdf.Tagged.TableTRElement", + "Aspose.Pdf.Tagged.TableTDElement" ], "difficulty": "intermediate" }, { "filename": "parse-xml-validation-report-summary.cs", - "title": "Parse XML Validation Report and Summarize Error Codes", - "description": "Shows how to load an XML validation report, extract error codes using LINQ to XML, count their frequencies, and output a human‑readable summary to the console and a text file.", - "tags": [ - "xml", - "error-report", - "summary", - "linq", - "console" - ], + "title": "Parse Xml Validation Report Summary", + "description": "", + "tags": [], "apis_used": [], - "difficulty": "beginner" + "difficulty": "" }, { - "filename": "propagate-language-to-tagged-pdf.cs", - "title": "Propagate Language Attribute to Tagged PDF Elements", - "description": "Demonstrates how to set a language attribute on the root structure element of a tagged PDF and automatically propagate it to all descendant elements using Aspose.Pdf.", + "filename": "propagate-language-attribute-to-tagged-pdf.cs", + "title": "Propagate Language Attribute to All Tagged PDF Elements", + "description": "Demonstrates how to set a document‑level language and automatically propagate it to every structure element in a tagged PDF using Aspose.Pdf.", "tags": [ - "pdf", "accessibility", - "language", "tagged-pdf", - "aspnet" + "language", + "aspnet", + "pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Tagged.ITaggedContent", "Aspose.Pdf.Tagged.StructureElement", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Tagged.ITaggedContent.SetLanguage", "Aspose.Pdf.Tagged.StructureElement.Language", - "Aspose.Pdf.Tagged.StructureElement.ChildElements", + "Aspose.Pdf.Tagged.StructureElement.FindElements", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "replace-note-elements-in-tagged-pdf.cs", - "title": "Replace Existing Note Elements in a Tagged PDF", - "description": "Shows how to remove all existing NoteElement objects from a PDF's structure tree and add a new note with updated text using Aspose.Pdf's tagged content API.", + "filename": "propagate-language-to-tagged-pdf.cs", + "title": "Propagate Language To Tagged Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "replace-note-element-in-tagged-pdf.cs", + "title": "Replace Note Element in Tagged PDF", + "description": "Shows how to locate an existing Note element in a tagged PDF, remove it, and insert an updated Note with new text using Aspose.Pdf's TaggedContent API.", "tags": [ "tagged-pdf", - "note-element", "accessibility", - "pdf-modification", + "note-element", + "pdf-manipulation", "aspnet" ], "apis_used": [ @@ -860,175 +965,293 @@ "Aspose.Pdf.Tagged.ITaggedContent", "Aspose.Pdf.Tagged.StructureElement", "Aspose.Pdf.Tagged.NoteElement", - "Aspose.Pdf.Tagged.TaggedContent.CreateNoteElement", - "Aspose.Pdf.Tagged.StructureElement.AppendChild" + "Aspose.Pdf.Tagged.ITaggedContent.CreateNoteElement", + "Aspose.Pdf.Tagged.NoteElement.SetText", + "Aspose.Pdf.Tagged.StructureElement.FindElements", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, + { + "filename": "replace-note-elements-in-tagged-pdf.cs", + "title": "Replace Note Elements In Tagged Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "set-actualtext-span-pronunciation.cs", - "title": "Set ActualText on a Span for Hidden Pronunciation in Tagged PDF", - "description": "Shows how to use Aspose.Pdf's TaggedContent API to create a span element, assign hidden pronunciation text via the ActualText property, and add it to a tagged PDF document.", + "title": "Set ActualText on a Span for Pronunciation in Tagged PDF", + "description": "Shows how to create a span element in a tagged PDF, assign visible text, and provide hidden pronunciation text via the ActualText property.", "tags": [ "accessibility", "tagged-pdf", "actualtext", - "span", + "pronunciation", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.StructureElement", "Aspose.Pdf.Tagged.SpanElement", - "Aspose.Pdf.Tagged.ITaggedContent.CreateSpanElement", + "Aspose.Pdf.Tagged.StructureElement", + "Aspose.Pdf.Tagged.ITaggedContent.SetLanguage", + "Aspose.Pdf.Tagged.SpanElement.SetText", "Aspose.Pdf.Tagged.SpanElement.ActualText", - "Aspose.Pdf.Tagged.StructureElement.AppendChild" + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "set-document-language-in-tagged-pdf.cs", - "title": "Set Document Language in Tagged PDF", - "description": "Shows how to add a language attribute to a PDF's structure tree using Aspose.Pdf's tagged content API for improved accessibility.", + "filename": "set-figure-title-in-tagged-pdf.cs", + "title": "Set Figure Title in Tagged PDF", + "description": "Shows how to create a figure element in a tagged PDF, assign a Title and AlternativeText for accessibility, and append it to the structure tree before saving.", "tags": [ - "pdf", - "accessibility", - "language", "tagged-pdf", - "aspnet" + "figure", + "accessibility", + "title", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.ITaggedContent.SetLanguage", - "Aspose.Pdf.LogicalStructure.StructureElement", - "Aspose.Pdf.LogicalStructure.StructureElement.Language", + "Aspose.Pdf.Tagged.FigureElement", + "Aspose.Pdf.Tagged.StructureElement", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "set-paragraph-title-accessibility.cs", - "title": "Set Paragraph Title for PDF Accessibility", - "description": "Demonstrates how to use Aspose.Pdf's tagged‑content API to create a paragraph element, assign a concise Title property for accessibility, and save the updated PDF.", + "filename": "set-missing-language-attributes.cs", + "title": "Set Missing Language Attributes in Tagged PDF", + "description": "Loads a PDF, accesses its tagged structure, and recursively assigns a default language to any structure element that lacks a language attribute, then saves the updated document.", "tags": [ "accessibility", "tagged-pdf", + "language", + "aspnet", + "recursion" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Tagged.ITaggedContent.SetLanguage", + "Aspose.Pdf.Tagged.ITaggedContent.RootElement", + "Aspose.Pdf.Tagged.StructureElement.Language", + "Aspose.Pdf.Tagged.StructureElement.ChildElements", + "Aspose.Pdf.Tagged.Element", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "intermediate" + }, + { + "filename": "set-paragraph-title-accessibility.cs", + "title": "Set Paragraph Title Accessibility", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "set-paragraph-title-in-tagged-pdf.cs", + "title": "Set Paragraph Title in Tagged PDF for Accessibility", + "description": "Shows how to use Aspose.Pdf's TaggedContent API to create a paragraph element, assign a Title property for accessibility, and save the updated PDF.", + "tags": [ + "tagged-pdf", + "accessibility", "paragraph", "title", - "aspose-pdf" + "Aspose.Pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Tagged.ITaggedContent", + "Aspose.Pdf.Tagged.StructureElement", + "Aspose.Pdf.Tagged.ParagraphElement", + "Aspose.Pdf.Tagged.TaggedContent.CreateParagraphElement", + "Aspose.Pdf.Tagged.ParagraphElement.SetText", + "Aspose.Pdf.Tagged.ParagraphElement.Title" + ], + "difficulty": "intermediate" + }, + { + "filename": "set-primary-language-for-tagged-pdf.cs", + "title": "Set Primary Language for a Tagged PDF", + "description": "Demonstrates how to add a language attribute to the structure tree of a tagged PDF using Aspose.Pdf, ensuring the document is marked with its primary content language.", + "tags": [ + "pdf", + "accessibility", + "language", + "tagged-pdf", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.TaggedContent.SetLanguage", - "Aspose.Pdf.Tagged.TaggedContent.SetTitle", + "Aspose.Pdf.Tagged.ITaggedContent.SetLanguage", "Aspose.Pdf.LogicalStructure.StructureElement", - "Aspose.Pdf.LogicalStructure.ParagraphElement", - "Aspose.Pdf.LogicalStructure.ParagraphElement.Title" + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "set-root-structure-element-title.cs", "title": "Set Root Structure Element Title in Tagged PDF", - "description": "Demonstrates how to assign a title to the root structure element of a tagged PDF using Aspose.Pdf, and optionally updates the document's Info.Title property before saving.", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, access its tagged content, retrieve the root structure element, assign a document title, and save the updated file.", "tags": [ "accessibility", "tagged-pdf", "metadata", "title", - "aspose-pdf" + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Tagged.ITaggedContent", "Aspose.Pdf.LogicalStructure.StructureElement", - "Aspose.Pdf.Document.Info", + "Aspose.Pdf.StructureElement.Title", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "style-table-cells-background-border-padding.cs", - "title": "Style Table Cells with Background, Border, and Padding", - "description": "Demonstrates how to apply background color, border thickness, and padding to each cell of a table in a PDF using Aspose.Pdf.", + "title": "Style Table Cells with Background Color, Border, and Padding", + "description": "Shows how to apply background colors, border thickness/color, and padding to individual table cells in a PDF using Aspose.Pdf.", "tags": [ "table", "cell-styling", - "accessibility", - "pdf", - "aspose-pdf" + "background", + "border", + "pdf" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.Table", "Aspose.Pdf.Row", "Aspose.Pdf.Cell", "Aspose.Pdf.BorderInfo", "Aspose.Pdf.MarginInfo", - "Aspose.Pdf.Color" + "Aspose.Pdf.Text.TextFragment" ], - "difficulty": "beginner" + "difficulty": "intermediate" + }, + { + "filename": "summarize-pdf-validation-errors.cs", + "title": "Summarize PDF Validation Report Errors", + "description": "Loads an Aspose.Pdf validation XML report, aggregates error codes and messages, and outputs a summary of error frequencies and the top error messages.", + "tags": [ + "pdf", + "validation", + "xml", + "error-summary", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document.Validate" + ], + "difficulty": "intermediate" + }, + { + "filename": "update-paragraph-actualtext-in-tagged-pdf.cs", + "title": "Update Paragraph ActualText in Tagged PDF", + "description": "Demonstrates loading a PDF, locating a paragraph element by its title via the structure tree, and modifying its ActualText property for accessibility corrections.", + "tags": [ + "tagged-pdf", + "actualtext", + "paragraph", + "accessibility", + "structure-tree" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Tagged.ITaggedContent", + "Aspose.Pdf.LogicalStructure.StructureElement", + "Aspose.Pdf.LogicalStructure.ParagraphElement", + "Aspose.Pdf.LogicalStructure.StructureElement.FindElements", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "intermediate" }, { "filename": "update-structure-element-language-french.cs", + "title": "Update Structure Element Language French", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "update-tagged-element-language-french.cs", "title": "Update Language of a Tagged PDF Structure Element to French", - "description": "Demonstrates how to load a PDF, access its tagged content, locate a ParagraphElement, set its language to French, and save the document. Optionally shows where to invoke PDF/UA validation.", + "description": "Shows how to set the document's default language and modify the language property of a specific tagged structure element in a PDF using Aspose.Pdf.", "tags": [ - "pdf", "tagged-pdf", "language", "accessibility", - "pdf-ua" + "structure", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Tagged.ITaggedContent", + "Aspose.Pdf.Tagged.ITaggedContent.SetLanguage", "Aspose.Pdf.LogicalStructure.StructureElement", - "Aspose.Pdf.LogicalStructure.ParagraphElement", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Validate" + "Aspose.Pdf.LogicalStructure.StructureElement.FindElements", + "Aspose.Pdf.LogicalStructure.StructureElement.Language" ], "difficulty": "intermediate" }, { - "filename": "validate-pdf-ua-compliance-xml-report.cs", - "title": "Validate PDF/UA Compliance and Generate XML Report", - "description": "Demonstrates how to load a PDF with Aspose.Pdf, validate it against PDF/UA‑1 standards, write an XML compliance report, and read the compliance status via the IsPdfUaCompliant property.", + "filename": "validate-pdf-ua-compliance-export-xml.cs", + "title": "Validate PDF/UA Compliance and Export XML Structure", + "description": "Demonstrates how to validate a tagged PDF against PDF/UA standards using Aspose.Pdf, write a validation log, and export the document's logical structure as an XML report.", "tags": [ "pdf-ua", "validation", - "accessibility", "xml-report", + "tagged-pdf", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PdfFormat", - "Aspose.Pdf.PdfFormat.PDF_UA_1", "Aspose.Pdf.Document.Validate", - "Aspose.Pdf.Document.IsPdfUaCompliant" + "Aspose.Pdf.PdfFormat", + "Aspose.Pdf.Document.SaveXml" ], "difficulty": "beginner" + }, + { + "filename": "validate-pdf-ua-compliance-xml-report.cs", + "title": "Validate Pdf Ua Compliance Xml Report", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" } ] }, { "name": "basic-operations", - "file_count": 57, + "file_count": 77, "files": [ - "add-blank-page-to-pdf-document.cs", + "add-blank-page-to-pdf.cs", "add-custom-xmp-metadata-to-pdf.cs", "append-page-incremental-save.cs", + "batch-convert-pdf-to-pdfa-with-report.cs", "batch-convert-pdfs-to-pdfa-1b-high-compression.cs", "batch-convert-pdfs-to-pdfa-1b.cs", "batch-convert-pdfs-to-pdfa-1b__v2.cs", + "batch-convert-pdfs-to-pdfa-with-csv-report.cs", "batch-decrypt-encrypted-pdfs.cs", "batch-encrypt-pdfs-from-filename.cs", + "batch-encrypt-pdfs-in-directory.cs", "batch-encrypt-pdfs-with-configurable-passwords.cs", + "batch-encrypt-pdfs-with-deterministic-passwords.cs", "batch-encrypt-pdfs.cs", + "batch-split-pdf-by-page-ranges.cs", "change-pdf-passwords.cs", "change-pdf-version-to-1-5-incremental-update.cs", "compress-pdf-default-settings.cs", @@ -1039,74 +1262,88 @@ "convert-pdf-to-pdfa1b__v2.cs", "convert-pdf-to-pdfx3-cmyk.cs", "convert-pdf-to-pdfx3-preserve-icc.cs", + "convert-pdf-to-pdfx3.cs", "create-pdfa1b-with-text-paragraph.cs", "create-pdfx3-document-three-pages.cs", "decrypt-encrypted-pdf.cs", + "disable-font-embedding-when-saving-pdf.cs", "download-pdf-from-url-and-save-locally.cs", + "download-pdf-from-url-and-save.cs", "encrypt-pdf-aes128-high-quality-print.cs", + "encrypt-pdf-aes128-verify-print-permissions.cs", "encrypt-pdf-aes256-disable-printing.cs", - "encrypt-pdf-allow-form-fill-disable-extraction.cs", - "encrypt-pdf-allow-form-fill.cs", + "encrypt-pdf-aes256-no-print.cs", + "encrypt-pdf-allow-form-filling.cs", + "encrypt-pdf-form-fill-permission.cs", + "encrypt-pdf-form-filling-permission.cs", "encrypt-pdf-owner-password-aes256.cs", + "encrypt-pdf-owner-password-only.cs", "encrypt-pdf-rc4-128-verify-size.cs", + "encrypt-pdf-rc4-no-copy-permission.cs", "encrypt-pdf-rc4-verify-permissions.cs", "encrypt-pdf-stream.cs", - "encrypt-pdf-user-password-restrict-editing.cs", - "encrypt-pdf-with-form-fill-permission.cs", - "encrypt-pdf-with-passwords-restrict-printing.cs", + "encrypt-pdf-with-owner-user-passwords.cs", + "encrypt-pdf-with-user-password-only.cs", "export-pdf-as-pdfx3-with-color-profiles.cs", "export-pdf-pages-to-separate-files.cs", + "incremental-append-page-to-pdf.cs", "insert-pdf-page-into-another-pdf.cs", "load-pdf-from-stream-set-version-1-4.cs", + "load-pdf-memorystream-set-version-save.cs", "load-pdf-with-custom-loadoptions-disable-font-embedding.cs", - "open-pdf-from-filestream-and-save.cs", + "open-encrypted-pdf-without-password.cs", + "open-pdf-from-filestream-and-save-copy.cs", "open-pdf-get-page-count.cs", - "open-pdf-without-password-handle-exception.cs", "remove-third-page-from-pdf.cs", "rotate-all-pdf-pages-180-degrees.cs", - "rotate-second-page-pdf-90-degrees.cs", + "rotate-pdf-page-3-180-degrees.cs", + "rotate-second-pdf-page-90-degrees.cs", "rotate-third-pdf-page-180-degrees.cs", "save-pdf-to-memory-stream-and-write-to-file.cs", + "save-pdf-to-memorystream-and-write-to-file.cs", "set-pdf-document-title-and-verify.cs", "set-pdf-metadata-author-title-subject.cs", + "split-multi-page-pdf-into-single-page-files.cs", + "split-pdf-at-page-10.cs", "split-pdf-at-page-ten.cs", + "split-pdf-into-individual-pages.cs", "split-pdf-into-sections-by-page-ranges.cs", - "split-pdf-into-single-page-files.cs", "split-pdf-into-single-page-folders.cs", "update-pdf-author-metadata.cs", "update-pdf-author-metadata__v2.cs", - "update-pdf-title-metadata.cs" + "update-pdf-passwords.cs", + "update-pdf-title-metadata.cs", + "update-pdf-version-to-1-5-incremental-save.cs" ], "required_namespaces": [ "Aspose.Pdf", - "Aspose.Pdf.Optimization", "Aspose.Pdf.Text", - "Aspose.Pdf.Facades" + "Aspose.Pdf.Facades", + "Aspose.Pdf.Optimization" ], "key_apis": [ "FileInfo", - "StringBuilder", "PdfSaveOptions", + "StringBuilder", "TextBuilder", "TextFragment" ], "examples": [ { - "filename": "add-blank-page-to-pdf-document.cs", - "title": "Add Blank Page to PDF Document", - "description": "Shows how to load an existing PDF with Aspose.Pdf, append a new blank page, and save the modified document.", + "filename": "add-blank-page-to-pdf.cs", + "title": "Add Blank Page to PDF", + "description": "Shows how to load an existing PDF with Aspose.Pdf, insert an empty page at the end, and save the modified document.", "tags": [ "pdf", "add-page", "aspose", "csharp", - "document-manipulation" + "document" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.PageCollection", - "Aspose.Pdf.PageCollection.Add", + "Aspose.Pdf.Document.Pages.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" @@ -1114,7 +1351,7 @@ { "filename": "add-custom-xmp-metadata-to-pdf.cs", "title": "Add Custom XMP Metadata to PDF", - "description": "Demonstrates loading an existing PDF, inserting a custom XMP metadata packet, and saving the document while preserving the new metadata.", + "description": "Shows how to load a PDF, create a custom XMP metadata packet, attach it to the document using Aspose.Pdf, and save the file while preserving the new metadata.", "tags": [ "pdf", "xmp", @@ -1127,32 +1364,20 @@ "Aspose.Pdf.Document.SetXmpMetadata", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "append-page-incremental-save.cs", - "title": "Append Page to PDF Using Incremental Save", - "description": "Demonstrates opening an existing PDF with read/write access, adding a new blank page with a text fragment, and saving the document using Aspose.Pdf's incremental update mode so only the changes are written.", - "tags": [ - "incremental-save", - "append-page", - "text-fragment", - "Aspose.Pdf", - "C#" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.Position", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner" + "title": "Append Page Incremental Save", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "batch-convert-pdfs-to-pdfa-1b-high-compression.cs", - "title": "Batch Convert PDFs to PDF/A-1b with High Compression", - "description": "Demonstrates how to batch process PDF files, convert each to PDF/A-1b format with high compression using Aspose.Pdf, and generate a summary report of the conversion results.", + "filename": "batch-convert-pdf-to-pdfa-with-report.cs", + "title": "Batch Convert PDFs to PDF/A‑1b with Compression and Report", + "description": "Loads each PDF from a folder, converts it to PDF/A‑1b using high compression, saves the converted file, and generates a CSV summary report with file sizes and conversion status.", "tags": [ "pdfa", "batch-conversion", @@ -1163,20 +1388,29 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.PdfFormatConversionOptions", + "Aspose.Pdf.PdfFormat", "Aspose.Pdf.ConvertErrorAction", "Aspose.Pdf.Document.Convert", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, + { + "filename": "batch-convert-pdfs-to-pdfa-1b-high-compression.cs", + "title": "Batch Convert Pdfs To Pdfa 1B High Compression", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "batch-convert-pdfs-to-pdfa-1b.cs", - "title": "Batch Convert PDFs to PDF/A-1b", - "description": "Shows how to iterate over PDF files in a folder, convert each to PDF/A‑1b compliance with Aspose.Pdf, log conversion issues, and save the output files.", + "title": "Batch Convert PDFs to PDF/A‑1b", + "description": "Shows how to iterate through a folder of PDF files, convert each to PDF/A‑1b compliance with Aspose.Pdf, and save the converted files to an output directory.", "tags": [ "pdf", "pdfa", - "batch", + "batch-processing", "conversion", "aspose" ], @@ -1187,32 +1421,40 @@ "Aspose.Pdf.ConvertErrorAction", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "batch-convert-pdfs-to-pdfa-1b__v2.cs", - "title": "Batch Convert PDFs to PDF/A-1b with CSV Log", - "description": "Demonstrates converting multiple PDF files to PDF/A-1b using Aspose.Pdf, saving the converted files, and logging each conversion result to a CSV file.", + "title": "Batch Convert Pdfs To Pdfa 1B__V2", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "batch-convert-pdfs-to-pdfa-with-csv-report.cs", + "title": "Batch Convert PDFs to PDF/A-1b with CSV Report", + "description": "Processes all PDF files in a folder, converts each to PDF/A‑1b using Aspose.Pdf, writes individual conversion logs, and records the results in a CSV report.", "tags": [ - "pdf conversion", - "pdf/a", - "batch processing", - "csv logging", - "aspose.pdf" + "pdf", + "pdfa", + "batch", + "csv", + "conversion" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Convert", "Aspose.Pdf.PdfFormat", "Aspose.Pdf.ConvertErrorAction", - "Aspose.Pdf.Document.Save" + "Document.Convert", + "Document.Save" ], "difficulty": "intermediate" }, { "filename": "batch-decrypt-encrypted-pdfs.cs", "title": "Batch Decrypt Encrypted PDFs with Owner Password", - "description": "Shows how to open multiple password‑protected PDF files using a shared owner password, remove their encryption, and save unprotected copies.", + "description": "Demonstrates how to iterate through a folder of encrypted PDF files, open each using a shared owner password, remove the encryption, and save an unprotected copy.", "tags": [ "pdf decryption", "batch processing", @@ -1230,136 +1472,148 @@ }, { "filename": "batch-encrypt-pdfs-from-filename.cs", - "title": "Batch Encrypt PDFs with Passwords Derived from File Names", - "description": "Demonstrates how to encrypt multiple PDF files using Aspose.Pdf, generating deterministic passwords from each file name and storing them in a log.", + "title": "Batch Encrypt Pdfs From Filename", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "batch-encrypt-pdfs-in-directory.cs", + "title": "Batch Encrypt PDFs in a Directory", + "description": "Demonstrates how to encrypt all PDF files in a folder using a common user and owner password, applying specific permissions and saving the encrypted copies to a separate directory.", "tags": [ "pdf", "encryption", "batch", "aspose", - "password-generation" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm", "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Permissions", + "Aspose.Pdf.CryptoAlgorithm" ], "difficulty": "intermediate" }, { "filename": "batch-encrypt-pdfs-with-configurable-passwords.cs", - "title": "Batch Encrypt PDFs with Configurable Passwords", - "description": "Demonstrates how to read a list of PDF encryption jobs from a JSON configuration file, apply user and owner passwords with specific permissions, and log the results for each file.", + "title": "Batch Encrypt Pdfs With Configurable Passwords", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "batch-encrypt-pdfs-with-deterministic-passwords.cs", + "title": "Batch Encrypt PDFs with Deterministic Passwords", + "description": "Demonstrates how to encrypt multiple PDF files in a folder using Aspose.Pdf, generating a unique password for each file from its name and logging the passwords securely.", "tags": [ - "pdf", - "encryption", - "batch", - "configuration", - "logging" + "pdf-encryption", + "batch-processing", + "aspose-pdf", + "csharp", + "password-generation" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Permissions", "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Permissions", + "Aspose.Pdf.CryptoAlgorithm", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "batch-encrypt-pdfs.cs", - "title": "Batch Encrypt PDFs with a User Password", - "description": "Shows how to encrypt every PDF in a directory using the same user and owner passwords, applying specific permissions and saving the encrypted files to a separate folder.", + "title": "Batch Encrypt PDFs with User Passwords", + "description": "Demonstrates reading a JSON configuration, encrypting multiple PDF files with individual user passwords and a common owner password using Aspose.Pdf, and logging the outcomes.", "tags": [ - "pdf encryption", - "batch processing", - "Aspose.Pdf", - "permissions", - "AES-256" + "pdf", + "encryption", + "batch", + "aspose.pdf", + "json" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Document.Encrypt", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm" + "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Permissions" ], "difficulty": "intermediate" }, { - "filename": "change-pdf-passwords.cs", - "title": "Change PDF Passwords with Aspose.Pdf", - "description": "Shows how to open a password‑protected PDF, modify its user and owner passwords, and save the document with the new credentials using Aspose.Pdf.", + "filename": "batch-split-pdf-by-page-ranges.cs", + "title": "Batch Split PDF into Sections by Page Ranges", + "description": "Shows how to read page range definitions from a configuration file and split a PDF into separate documents using Aspose.Pdf.", "tags": [ "pdf", - "password", - "change", + "split", + "page-ranges", "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.ChangePasswords", + "Aspose.Pdf.Document.Pages", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.InvalidPasswordException" + "Aspose.Pdf.PageCollection.Add", + "Aspose.Pdf.PageCollection.Count" ], - "difficulty": "beginner" + "difficulty": "intermediate" + }, + { + "filename": "change-pdf-passwords.cs", + "title": "Change Pdf Passwords", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "change-pdf-version-to-1-5-incremental-update.cs", - "title": "Change PDF Version to 1.5 with Incremental Update", - "description": "Loads an existing PDF, creates a new document with PDF version 1.5, copies all pages, and saves the result using Aspose.Pdf's incremental update feature.", - "tags": [ - "pdf-version", - "incremental-update", - "aspose-pdf", - "page-copy", - "save" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.PdfVersion", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.PageCollection.Add", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner" + "title": "Change Pdf Version To 1 5 Incremental Update", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "compress-pdf-default-settings.cs", - "title": "Compress PDF with Default Settings", - "description": "Demonstrates how to reduce a PDF file size by applying Aspose.Pdf's default optimization (object compression) and saving the result, then compares the original and compressed sizes.", + "title": "Compress PDF with Default Settings using Aspose.Pdf", + "description": "Demonstrates loading a PDF, saving it with Aspose.Pdf's default compression, and comparing the file size before and after compression.", "tags": [ "pdf", "compression", - "optimization", - "size-reduction", - "aspnet" + "filesize", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Optimization.OptimizationOptions", - "Aspose.Pdf.Document.OptimizeResources", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "compress-pdf-high-optimization.cs", - "title": "Compress PDF with High Optimization Settings", - "description": "Demonstrates loading a PDF, applying high‑level compression via OptimizationOptions, and saving the result while reporting size reduction.", + "title": "Compress PDF with High Optimization and Compare File Size", + "description": "Loads a PDF, applies high‑level compression using Aspose.Pdf optimization options, saves the result, and prints the original and optimized file sizes.", "tags": [ "pdf", "compression", "optimization", - "csharp", + "size-reduction", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Optimization.OptimizationOptions", + "Aspose.Pdf.Optimization.OptimizationOptions.All", "Aspose.Pdf.Document.OptimizeResources", "Aspose.Pdf.PdfSaveOptions", "Aspose.Pdf.Document.Save" @@ -1368,19 +1622,20 @@ }, { "filename": "convert-pdf-to-pdfa-1b.cs", - "title": "Convert PDF to PDF/A-1b Preserving Structure and Fonts", - "description": "Shows how to load a PDF with Aspose.Pdf, set conversion options for PDF/A-1b while keeping the original document structure and embedded fonts, and save the resulting PDF/A-1b file.", + "title": "Convert PDF to PDF/A-1b preserving structure", + "description": "Demonstrates loading a PDF with Aspose.Pdf, configuring PDF/A‑1b conversion options, performing the conversion, and saving the resulting PDF/A‑1b file.", "tags": [ "pdf", - "pdfa-1b", + "pdfa", "conversion", - "fonts", - "aspose-pdf" + "aspose", + "fonts" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.PdfFormatConversionOptions", "Aspose.Pdf.PdfFormat", + "Aspose.Pdf.ConvertErrorAction", "Aspose.Pdf.Document.Convert", "Aspose.Pdf.Document.Save" ], @@ -1391,11 +1646,11 @@ "title": "Convert PDF to PDF/A‑1b Compliance", "description": "Loads a PDF file, converts it to PDF/A‑1b compliance while logging conversion errors, and saves the compliant document.", "tags": [ - "pdf", - "pdfa", + "pdf/a", "conversion", - "csharp", - "aspnet" + "aspose.pdf", + "document", + "compliance" ], "apis_used": [ "Aspose.Pdf.Document", @@ -1409,13 +1664,13 @@ { "filename": "convert-pdf-to-pdfa1b.cs", "title": "Convert PDF to PDF/A-1b with Metadata Preservation", - "description": "Shows how to load a PDF, convert it to PDF/A-1b compliance while preserving its metadata, and save the resulting file using Aspose.Pdf.", + "description": "Demonstrates loading a PDF, converting it to PDF/A-1b compliance while preserving metadata, and saving the result using Aspose.Pdf.", "tags": [ - "pdf", "pdfa", "conversion", "metadata", - "csharp" + "csharp", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", @@ -1428,110 +1683,119 @@ }, { "filename": "convert-pdf-to-pdfa1b__v2.cs", - "title": "Convert PDF to PDF/A‑1b with Font Embedding", - "description": "Shows how to load a PDF, convert it to PDF/A‑1b compliance (automatically embedding missing fonts), and save the archival‑ready document using Aspose.Pdf.", + "title": "Convert Pdf To Pdfa1B__V2", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "convert-pdf-to-pdfx3-cmyk.cs", + "title": "Convert PDF to PDF/X-3 with CMYK Color Space", + "description": "Shows how to convert a PDF to PDF/X-3 compliance while forcing all colors to CMYK using an ICC profile with Aspose.Pdf.", "tags": [ - "pdf", - "pdfa", + "pdfx-3", + "cmyk", + "icc-profile", "conversion", - "font-embedding", - "archival" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.OutputIntent", "Aspose.Pdf.Document.Convert", "Aspose.Pdf.PdfFormat", - "Aspose.Pdf.ConvertErrorAction", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.ConvertErrorAction" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "convert-pdf-to-pdfx3-cmyk.cs", - "title": "Convert PDF to PDF/X-3 with CMYK Color Space", - "description": "Shows how to load a PDF, convert it to PDF/X‑3 compliance while forcing all colors to CMYK using an ICC profile, and save the resulting file.", + "filename": "convert-pdf-to-pdfx3-preserve-icc.cs", + "title": "Convert PDF to PDF/X‑3 Preserving ICC Profile", + "description": "Demonstrates loading a PDF with Aspose.Pdf, converting it to PDF/X‑3 format while keeping the existing ICC color profile, and saving the result.", "tags": [ + "pdf conversion", "pdfx-3", - "cmyk", - "icc", - "conversion", - "aspose-pdf" + "icc profile", + "aspose.pdf", + "c#" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.PdfFormatConversionOptions", - "Aspose.Pdf.OutputIntent", + "Aspose.Pdf.PdfFormat", "Aspose.Pdf.Document.Convert", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "convert-pdf-to-pdfx3-preserve-icc.cs", - "title": "Convert PDF to PDF/X‑3 Preserving ICC Profiles", - "description": "Demonstrates loading a PDF with Aspose.Pdf, converting it to PDF/X‑3 while keeping any existing ICC color profiles, and saving the result. Errors are logged to a file.", + "filename": "convert-pdf-to-pdfx3.cs", + "title": "Convert PDF to PDF/X-3 while Preserving Color Profiles", + "description": "Shows how to load a PDF, convert it to PDF/X-3 compliance (which retains embedded ICC color profiles), and save the resulting document.", "tags": [ - "pdf", - "pdfx-3", - "icc", + "pdfx3", "conversion", - "printing" + "color-profiles", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PdfFormatConversionOptions", + "Aspose.Pdf.Document.Convert", "Aspose.Pdf.PdfFormat", "Aspose.Pdf.ConvertErrorAction", - "Aspose.Pdf.Document.Convert", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "create-pdfa1b-with-text-paragraph.cs", "title": "Create PDF/A-1b Document with Text Paragraph", - "description": "The example creates a new PDF document, adds a text paragraph to the first page, converts the file to PDF/A‑1b compliance, and saves it.", + "description": "Creates a new PDF, adds a text paragraph to the first page, converts the document to PDF/A‑1b compliance, and saves the result.", "tags": [ "pdf", - "pdfa-1b", - "text-paragraph", + "pdfa", + "text", "conversion", - "aspose-pdf" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextParagraph", "Aspose.Pdf.Text.TextBuilder", + "Aspose.Pdf.PdfFormat", "Aspose.Pdf.Document.Convert", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "create-pdfx3-document-three-pages.cs", "title": "Create PDF/X‑3 Document with Three Pages", "description": "Shows how to create a new PDF, add three blank pages, convert it to PDF/X‑3 compliance, and save the resulting file.", "tags": [ + "pdf", "pdfx-3", - "create-pdf", - "add-pages", - "conversion", - "aspose-pdf" + "aspose.pdf", + "document-creation", + "conversion" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Document.Pages.Add", "Aspose.Pdf.Document.Convert", - "Aspose.Pdf.PdfFormat", - "Aspose.Pdf.ConvertErrorAction" + "Aspose.Pdf.PdfFormat.PDF_X_3", + "Aspose.Pdf.Facades.ConvertErrorAction.Delete", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "decrypt-encrypted-pdf.cs", "title": "Decrypt Encrypted PDF with User Password", - "description": "Shows how to open a password‑protected PDF using Aspose.Pdf, decrypt it, and save an unprotected copy.", + "description": "Demonstrates opening a password‑protected PDF, decrypting it, and saving an unprotected copy using Aspose.Pdf.", "tags": [ "pdf", "decryption", @@ -1547,75 +1811,119 @@ ], "difficulty": "beginner" }, + { + "filename": "disable-font-embedding-when-saving-pdf.cs", + "title": "Disable Font Embedding When Saving PDF", + "description": "The example opens an existing PDF, sets a default font in PdfSaveOptions to substitute missing fonts (preventing font embedding), and saves the document with the custom options.", + "tags": [ + "pdf", + "font-embedding", + "save-options", + "Aspose.Pdf", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.PdfSaveOptions", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.PdfSaveOptions.DefaultFontName", + "Aspose.Pdf.Document..ctor(Stream)" + ], + "difficulty": "beginner" + }, { "filename": "download-pdf-from-url-and-save-locally.cs", + "title": "Download Pdf From Url And Save Locally", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "download-pdf-from-url-and-save.cs", "title": "Download PDF from URL and Save Locally with Aspose.Pdf", - "description": "Shows how to download a PDF file from a network URL using HttpClient, load it into an Aspose.Pdf Document from a stream, and save it to a local file.", + "description": "Demonstrates downloading a PDF via HttpClient, loading it into an Aspose.Pdf Document from a stream, and saving it to a local file.", "tags": [ "pdf", "download", "httpclient", - "aspose", + "aspose.pdf", "stream" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document..ctor(System.IO.Stream)" ], "difficulty": "beginner" }, { "filename": "encrypt-pdf-aes128-high-quality-print.cs", - "title": "Encrypt PDF with AES‑128 and Enable High‑Quality Printing", - "description": "Shows how to encrypt a PDF using AES‑128, set high‑quality printing permission, and verify the permission after opening the encrypted document.", + "title": "Encrypt Pdf Aes128 High Quality Print", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "encrypt-pdf-aes128-verify-print-permissions.cs", + "title": "Encrypt PDF with AES‑128 and Verify Print Permissions", + "description": "The example loads a PDF, applies AES‑128 encryption with user and owner passwords, sets printing and high‑quality printing permissions, saves the encrypted file, and then opens it to verify the applied permissions.", "tags": [ "encryption", - "AES-128", - "permissions", + "aes-128", "printing", - "PDF" + "permissions", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Permissions", + "Aspose.Pdf.Permissions", "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Permissions" + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "encrypt-pdf-aes256-disable-printing.cs", - "title": "Encrypt PDF with AES‑256 and Disable Printing", - "description": "Demonstrates how to encrypt a PDF using AES‑256, set custom permissions to disallow printing, and verify the encryption status.", + "title": "Encrypt Pdf Aes256 Disable Printing", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "encrypt-pdf-aes256-no-print.cs", + "title": "Encrypt PDF with AES‑256 and No Printing Permission", + "description": "Demonstrates how to apply AES‑256 encryption to a PDF using Aspose.Pdf, set no permissions (disabling printing), and verify the encryption status.", "tags": [ - "encryption", - "AES-256", - "permissions", - "PDF", - "Aspose.Pdf" + "pdf-encryption", + "aes-256", + "no-print", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm", "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Permissions", "Aspose.Pdf.Document.IsEncrypted", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "encrypt-pdf-allow-form-fill-disable-extraction.cs", - "title": "Encrypt PDF with Form Filling Permission Only", - "description": "Loads an existing PDF, encrypts it with user and owner passwords, and sets permissions to allow only form filling while disabling content extraction, then saves the encrypted file.", + "filename": "encrypt-pdf-allow-form-filling.cs", + "title": "Encrypt PDF Allowing Only Form Filling", + "description": "The example loads a PDF, encrypts it with AES‑256, and sets permissions so that only form filling is allowed, then saves the protected file.", "tags": [ - "pdf-encryption", + "pdf", + "encryption", "permissions", "form-filling", - "Aspose.Pdf", - "C#" + "aes256" ], "apis_used": [ "Aspose.Pdf.Document", @@ -1627,41 +1935,69 @@ "difficulty": "beginner" }, { - "filename": "encrypt-pdf-allow-form-fill.cs", - "title": "Encrypt PDF Allowing Only Form Filling", - "description": "Loads a PDF, applies AES‑256 encryption with permissions limited to form filling, and saves the protected document.", + "filename": "encrypt-pdf-form-fill-permission.cs", + "title": "Encrypt PDF and Allow Only Form Filling", + "description": "Demonstrates how to encrypt a PDF with user and owner passwords, restrict permissions to form filling only, and disable printing using Aspose.Pdf.", "tags": [ "pdf", "encryption", "permissions", - "form-fill", - "aes256" + "form-filling", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Permissions", + "Aspose.Pdf.CryptoAlgorithm", "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner" + }, + { + "filename": "encrypt-pdf-form-filling-permission.cs", + "title": "Encrypt PDF with Form Filling Permission Only", + "description": "Demonstrates how to encrypt a PDF using Aspose.Pdf, allowing only form filling and disabling content extraction by setting appropriate permissions.", + "tags": [ + "pdf-encryption", + "permissions", + "form-filling", + "Aspose.Pdf", + "C#" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Permissions", "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.Encrypt", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "encrypt-pdf-owner-password-aes256.cs", - "title": "Encrypt PDF with Owner Password Only (AES-256)", - "description": "Demonstrates how to encrypt a PDF using Aspose.Pdf by setting only an owner password, disabling all user permissions, and applying AES‑256 encryption.", + "title": "Encrypt Pdf Owner Password Aes256", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "encrypt-pdf-owner-password-only.cs", + "title": "Encrypt PDF with Owner Password Only", + "description": "Shows how to encrypt a PDF using Aspose.Pdf by applying only an owner password, giving the owner full access and restricting all user permissions.", "tags": [ "pdf encryption", "owner password", - "aes-256", "permissions", + "aes-256", "aspose.pdf" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Permissions", "Aspose.Pdf.Document.Encrypt", "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Permissions", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" @@ -1669,32 +2005,32 @@ { "filename": "encrypt-pdf-rc4-128-verify-size.cs", "title": "Encrypt PDF with 128‑bit RC4 and Verify Size Increase", - "description": "Demonstrates how to encrypt a PDF using 128‑bit RC4 encryption with Aspose.Pdf, then checks that the encrypted file size is slightly larger than the original.", + "description": "Demonstrates how to encrypt a PDF using 128‑bit RC4 encryption with Aspose.Pdf and compare the original and encrypted file sizes.", "tags": [ - "pdf", - "encryption", + "pdf encryption", "rc4", - "filesize", - "aspose" + "aspose.pdf", + "file size", + "c#" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.CryptoAlgorithm", "Aspose.Pdf.Permissions", + "Aspose.Pdf.CryptoAlgorithm", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "encrypt-pdf-rc4-verify-permissions.cs", - "title": "Encrypt PDF with RC4 and Verify Permissions", - "description": "Demonstrates encrypting a PDF using the RC4 128‑bit algorithm, disabling all permissions, and programmatically verifying the security settings by testing password access.", + "filename": "encrypt-pdf-rc4-no-copy-permission.cs", + "title": "Encrypt PDF with RC4 and Restrict Copy Permission", + "description": "Demonstrates how to encrypt a PDF using the RC4 128‑bit algorithm with Aspose.Pdf, set permissions to allow only printing (disabling copy), and programmatically verify the applied security settings.", "tags": [ + "pdf", "encryption", "rc4", "permissions", - "validation", "aspose-pdf" ], "apis_used": [ @@ -1703,40 +2039,48 @@ "Aspose.Pdf.CryptoAlgorithm", "Aspose.Pdf.Document.Encrypt", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.InvalidPasswordException" + "Aspose.Pdf.Document.Permissions" ], "difficulty": "intermediate" }, + { + "filename": "encrypt-pdf-rc4-verify-permissions.cs", + "title": "Encrypt Pdf Rc4 Verify Permissions", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "encrypt-pdf-stream.cs", - "title": "Encrypt PDF from Stream and Write to Output Stream", - "description": "Demonstrates loading a PDF from an input stream, applying AES‑256 encryption with user and owner passwords, and saving the secured PDF to an output stream using Aspose.Pdf.", + "title": "Encrypt PDF Stream with Passwords", + "description": "Shows how to load a PDF from a stream, apply password protection with specific permissions using AES‑256 encryption, and write the secured PDF back to an output stream.", "tags": [ "pdf", "encryption", "stream", - "aspose", - "csharp" + "permissions", + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Document.Save", + "Aspose.Pdf.CryptoAlgorithm", "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm" + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "encrypt-pdf-user-password-restrict-editing.cs", - "title": "Encrypt PDF with User Password and Restrict Editing/Copying", - "description": "Demonstrates encrypting a PDF with a user password only, allowing printing while disabling editing and content extraction using Aspose.Pdf.", + "filename": "encrypt-pdf-with-owner-user-passwords.cs", + "title": "Encrypt PDF with Owner and User Passwords and Restrict Printing", + "description": "Shows how to load a PDF, apply AES‑256 encryption using user and owner passwords, and limit printing by setting specific permissions.", "tags": [ - "pdf", - "encryption", + "pdf-encryption", "permissions", - "user-password", - "aes256" + "aes-256", + "owner-password", + "user-password" ], "apis_used": [ "Aspose.Pdf.Document", @@ -1748,75 +2092,43 @@ "difficulty": "beginner" }, { - "filename": "encrypt-pdf-with-form-fill-permission.cs", - "title": "Encrypt PDF with Password and Form‑Fill Permission", - "description": "The example loads a PDF, applies user and owner passwords, grants only form‑filling permission while disabling printing, and saves the encrypted document using AES‑256 encryption.", + "filename": "encrypt-pdf-with-user-password-only.cs", + "title": "Encrypt PDF with User Password Only", + "description": "Shows how to encrypt a PDF using Aspose.Pdf by applying a user password (leaving the owner password empty) and limiting permissions to viewing/printing.", "tags": [ "pdf encryption", - "form filling", + "user password", "permissions", - "aes-256", - "aspose-pdf" + "Aspose.Pdf", + "C#" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Permissions", "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner" - }, - { - "filename": "encrypt-pdf-with-passwords-restrict-printing.cs", - "title": "Encrypt PDF with Passwords and Restrict Printing", - "description": "Shows how to encrypt a PDF using user and owner passwords, apply specific permissions, and disable printing using Aspose.Pdf.", - "tags": [ - "pdf-encryption", - "permissions", - "disable-printing", - "aspose-pdf", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Permissions", "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Document.Encrypt", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "export-pdf-as-pdfx3-with-color-profiles.cs", - "title": "Export PDF as PDF/X‑3 with Color Profiles", - "description": "Demonstrates loading a PDF, converting it to PDF/X‑3 compliance while preserving embedded color profiles, and saving the converted document.", - "tags": [ - "pdfx-3", - "conversion", - "color-profiles", - "aspose-pdf", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Convert", - "Aspose.Pdf.PdfFormat", - "Aspose.Pdf.ConvertErrorAction", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner" + "title": "Export Pdf As Pdfx3 With Color Profiles", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "export-pdf-pages-to-separate-files.cs", "title": "Export PDF Pages to Separate Files", - "description": "Demonstrates how to load a PDF, iterate through its pages, and save each page as an individual PDF file using Aspose.Pdf.", + "description": "Shows how to split a PDF into individual page PDFs by iterating through each page with Aspose.Pdf and saving each page as its own document.", "tags": [ "pdf", + "split", "export", "pages", - "aspose.pdf", - "csharp" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", @@ -1827,16 +2139,36 @@ ], "difficulty": "beginner" }, + { + "filename": "incremental-append-page-to-pdf.cs", + "title": "Incrementally Append a Page to an Existing PDF", + "description": "Shows how to open a PDF with read/write access and save it incrementally, preserving the original content while adding a new blank page with text.", + "tags": [ + "incremental-update", + "append-page", + "pdf", + "aspose-pdf", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Pages.Add" + ], + "difficulty": "intermediate" + }, { "filename": "insert-pdf-page-into-another-pdf.cs", - "title": "Insert PDF Page into Another PDF at Specific Position", - "description": "Demonstrates how to insert a page from one PDF into another PDF at a given position using Aspose.Pdf's Pages.Insert method.", + "title": "Insert PDF Page into Another PDF", + "description": "Demonstrates loading two PDF documents, selecting a page from the source PDF, inserting it into a specific position of the target PDF using Pages.Insert, and saving the merged result.", "tags": [ "pdf", "insert-page", "aspose-pdf", "csharp", - "pages" + "document" ], "apis_used": [ "Aspose.Pdf.Document", @@ -1849,8 +2181,16 @@ }, { "filename": "load-pdf-from-stream-set-version-1-4.cs", - "title": "Load PDF from Stream and Set Version to 1.4", - "description": "Demonstrates loading a PDF from a MemoryStream, converting its PDF version to 1.4 using Document.Convert, and saving the updated file to disk.", + "title": "Load Pdf From Stream Set Version 1 4", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "load-pdf-memorystream-set-version-save.cs", + "title": "Load PDF from MemoryStream, Change Version to 1.4, and Save", + "description": "Demonstrates loading a PDF from a MemoryStream, converting it to PDF version 1.4 using the Convert method, and saving the result to the file system.", "tags": [ "pdf", "memorystream", @@ -1860,42 +2200,49 @@ ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Convert", "Aspose.Pdf.PdfFormat", "Aspose.Pdf.ConvertErrorAction", - "Aspose.Pdf.Document.Save" + "Document.Convert", + "Document.Save" ], "difficulty": "intermediate" }, { "filename": "load-pdf-with-custom-loadoptions-disable-font-embedding.cs", - "title": "Load PDF with Custom LoadOptions and Save", - "description": "Demonstrates opening an existing PDF using HtmlLoadOptions (setting IsEmbedFonts to false) and then saving it back to PDF, including a file existence check.", + "title": "Load Pdf With Custom Loadoptions Disable Font Embedding", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "open-encrypted-pdf-without-password.cs", + "title": "Open Encrypted PDF Without Providing a Password", + "description": "Demonstrates how to attempt opening a password‑protected PDF using Aspose.Pdf and catch the InvalidPasswordException when no password is supplied.", "tags": [ "pdf", - "loadoptions", - "font-embedding", - "aspose-pdf", - "csharp" + "encryption", + "exception-handling", + "aspose.pdf", + "c#" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.HtmlLoadOptions", - "Aspose.Pdf.HtmlLoadOptions.IsEmbedFonts", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document..ctor" + "Aspose.Pdf.InvalidPasswordException", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Document.Pages.Count" ], "difficulty": "beginner" }, { - "filename": "open-pdf-from-filestream-and-save.cs", - "title": "Open PDF from FileStream and Save to New File", - "description": "Demonstrates loading a PDF document using a FileStream and saving it to another file with default settings using Aspose.Pdf.", + "filename": "open-pdf-from-filestream-and-save-copy.cs", + "title": "Open PDF from FileStream and Save Copy", + "description": "Shows how to open a PDF document using a FileStream and then save it to a new file with the default Aspose.Pdf settings.", "tags": [ "pdf", "filestream", + "aspose", "save", - "aspose.pdf", "csharp" ], "apis_used": [ @@ -1906,51 +2253,33 @@ }, { "filename": "open-pdf-get-page-count.cs", - "title": "Open PDF and Get Page Count", - "description": "Shows how to load a PDF file from disk using Aspose.Pdf.Document and retrieve the total number of pages in the document.", + "title": "Open PDF and Retrieve Page Count", + "description": "Shows how to open a PDF file from disk using Aspose.Pdf's Document class and obtain the total number of pages.", "tags": [ "pdf", "document", "page-count", - "aspose", - "csharp" + "file-exists", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.PageCollection", "Aspose.Pdf.PageCollection.Count" ], "difficulty": "beginner" }, - { - "filename": "open-pdf-without-password-handle-exception.cs", - "title": "Open PDF Without Password and Handle InvalidPasswordException", - "description": "Demonstrates attempting to open a password‑protected PDF using Aspose.Pdf, catching the InvalidPasswordException, and handling the error gracefully.", - "tags": [ - "pdf", - "password-protection", - "exception-handling", - "aspose.pdf", - "c#" - ], - "apis_used": [ - "Document", - "InvalidPasswordException", - "Document.Pages", - "Document.Pages.Count" - ], - "difficulty": "beginner" - }, { "filename": "remove-third-page-from-pdf.cs", "title": "Remove Third Page from PDF", - "description": "Shows how to delete the third page of a PDF document with Aspose.Pdf and save the modified file.", + "description": "Shows how to load a PDF with Aspose.Pdf, delete the third page, and save the resulting document.", "tags": [ "pdf", - "remove-page", - "aspnet", - "document-manipulation", - "csharp" + "delete-page", + "aspose-pdf", + "csharp", + "document-manipulation" ], "apis_used": [ "Aspose.Pdf.Document", @@ -1962,27 +2291,28 @@ }, { "filename": "rotate-all-pdf-pages-180-degrees.cs", - "title": "Rotate All PDF Pages 180 Degrees", - "description": "Shows how to load a PDF with Aspose.Pdf, rotate each page by 180 degrees, and save the modified document.", + "title": "Rotate All PDF Pages by 180 Degrees", + "description": "Shows how to load a PDF with Aspose.Pdf, rotate each page 180°, and save the modified document.", "tags": [ "pdf", "rotation", - "aspose", "pages", + "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rotation", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Pages" ], "difficulty": "beginner" }, { - "filename": "rotate-second-page-pdf-90-degrees.cs", - "title": "Rotate Second Page of PDF by 90 Degrees", - "description": "Shows how to open a PDF with Aspose.Pdf, rotate the second page 90° clockwise, and save the modified document.", + "filename": "rotate-pdf-page-3-180-degrees.cs", + "title": "Rotate PDF Page 3 by 180 Degrees", + "description": "Shows how to load a PDF (or from a byte array), rotate the third page 180°, and save the modified document.", "tags": [ "pdf", "rotate", @@ -2000,114 +2330,109 @@ "difficulty": "beginner" }, { - "filename": "rotate-third-pdf-page-180-degrees.cs", - "title": "Rotate Third PDF Page by 180 Degrees", - "description": "Shows how to load a PDF (optionally from a byte array), rotate the third page 180 degrees, and save the modified document.", + "filename": "rotate-second-pdf-page-90-degrees.cs", + "title": "Rotate Second PDF Page 90 Degrees", + "description": "Demonstrates how to open a PDF with Aspose.Pdf, rotate the second page 90° clockwise, and save the modified document.", "tags": [ - "rotate", "pdf", + "rotate", "page", - "aspose", + "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.PageCollection.Add", + "Aspose.Pdf.Page", "Aspose.Pdf.Page.Rotate", "Aspose.Pdf.Rotation" ], "difficulty": "beginner" }, + { + "filename": "rotate-third-pdf-page-180-degrees.cs", + "title": "Rotate Third Pdf Page 180 Degrees", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "save-pdf-to-memory-stream-and-write-to-file.cs", + "title": "Save Pdf To Memory Stream And Write To File", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "save-pdf-to-memorystream-and-write-to-file.cs", "title": "Save PDF to MemoryStream and Write to File", - "description": "Demonstrates loading a PDF with Aspose.Pdf, saving it into a MemoryStream, and then writing the stream contents to a new file.", + "description": "Demonstrates loading a PDF with Aspose.Pdf, saving it into a MemoryStream, and then writing the stream to a physical file.", "tags": [ "pdf", - "memory-stream", - "file-output", - "aspose-pdf", + "memorystream", + "file-io", + "aspose", "csharp" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save" + "Document", + "Document.Save" ], "difficulty": "beginner" }, { "filename": "set-pdf-document-title-and-verify.cs", "title": "Set PDF Document Title and Verify It", - "description": "Demonstrates how to open a PDF with Aspose.Pdf, set its document title metadata, save the file, and then reopen it to confirm the title was applied correctly.", + "description": "Demonstrates how to open a PDF with Aspose.Pdf, set its document title property, save the file, and then read back the title to confirm the change.", "tags": [ "pdf", - "metadata", "title", - "aspose.pdf", + "metadata", + "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Document.SetTitle", + "Aspose.Pdf.Document.Save", "Aspose.Pdf.Document.Info", - "Aspose.Pdf.DocumentInfo.Title", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.DocumentInfo.Title" ], "difficulty": "beginner" }, { "filename": "set-pdf-metadata-author-title-subject.cs", - "title": "Set PDF Metadata (Author, Title, Subject)", - "description": "The example opens an existing PDF, sets its document information such as Author, Title, and Subject using Aspose.Pdf, saves the file, and then reopens it to verify the metadata.", + "title": "Set PDF Document Metadata (Author, Title, Subject)", + "description": "This example shows how to open an existing PDF with Aspose.Pdf, set its document information such as Author, Title, and Subject, save the changes, and then verify the metadata by reloading the file.", "tags": [ "pdf", "metadata", "author", "title", - "aspose-pdf" + "aspose.pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.DocumentInfo", - "Aspose.Pdf.Document.Save", "Aspose.Pdf.DocumentInfo.Author", "Aspose.Pdf.DocumentInfo.Title", - "Aspose.Pdf.DocumentInfo.Subject" + "Aspose.Pdf.DocumentInfo.Subject", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "split-pdf-at-page-ten.cs", - "title": "Split PDF into Two Parts at Page Ten", - "description": "Shows how to split a PDF into two separate documents at page 10 using Aspose.Pdf, including validation, page range extraction, and saving each part with descriptive filenames.", - "tags": [ - "pdf-split", - "aspose-pdf", - "csharp", - "page-range", - "file-io" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.PageCollection.Add", - "Aspose.Pdf.PageCollection.Count" - ], - "difficulty": "intermediate" - }, - { - "filename": "split-pdf-into-sections-by-page-ranges.cs", - "title": "Split PDF into Sections Using Page Ranges", - "description": "Demonstrates how to read page‑range definitions from a text file and split a source PDF into separate section PDFs using Aspose.Pdf.", + "filename": "split-multi-page-pdf-into-single-page-files.cs", + "title": "Split Multi-Page PDF into Single-Page Files", + "description": "Shows how to load a multi-page PDF and split it into separate one-page PDF documents using Aspose.Pdf's Document class and page collection.", "tags": [ "pdf", "split", "pages", - "aspose", - "csharp" + "aspose.pdf", + "c#" ], "apis_used": [ "Aspose.Pdf.Document", @@ -2116,52 +2441,75 @@ "Aspose.Pdf.PageCollection.Add", "Aspose.Pdf.PageCollection.Count" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "split-pdf-into-single-page-files.cs", - "title": "Split PDF into Single‑Page Files", - "description": "Demonstrates how to load a multi‑page PDF with Aspose.Pdf, iterate through its pages, and save each page as an individual PDF file.", + "filename": "split-pdf-at-page-10.cs", + "title": "Split PDF into Two Parts at Page 10", + "description": "Shows how to split a PDF document into two separate files at page ten using Aspose.Pdf, with descriptive output filenames.", "tags": [ "pdf", "split", "pages", - "aspose.pdf", + "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Document.Save", "Aspose.Pdf.PageCollection.Add", - "Aspose.Pdf.PageCollection.Count" + "Aspose.Pdf.PageCollection.Count", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "split-pdf-into-single-page-folders.cs", - "title": "Split PDF into Single-Page Files in Separate Folders", - "description": "Demonstrates how to split a large PDF into individual page PDFs, placing each page in its own folder using Aspose.Pdf.", + "filename": "split-pdf-at-page-ten.cs", + "title": "Split Pdf At Page Ten", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "split-pdf-into-individual-pages.cs", + "title": "Split PDF into Individual Pages and Save to Separate Folders", + "description": "Shows how to load a PDF with Aspose.Pdf, extract each page into its own Document, and save each page as a separate PDF file inside a dedicated folder.", "tags": [ "pdf", "split", "pages", "aspose", - "csharp" + "filesystem" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Document.Save", "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Document.Pages.Count" + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" + }, + { + "filename": "split-pdf-into-sections-by-page-ranges.cs", + "title": "Split Pdf Into Sections By Page Ranges", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "split-pdf-into-single-page-folders.cs", + "title": "Split Pdf Into Single Page Folders", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "update-pdf-author-metadata.cs", "title": "Update PDF Author Metadata with Aspose.Pdf", - "description": "Shows how to open a PDF file, modify its Author metadata, and overwrite the original file using Aspose.Pdf in C#.", + "description": "Shows how to open a PDF using a FileInfo object, modify its Author metadata, and save the changes back to the original file.", "tags": [ "pdf", "metadata", @@ -2172,6 +2520,7 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.DocumentInfo", + "Aspose.Pdf.Document.Info", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" @@ -2179,7 +2528,7 @@ { "filename": "update-pdf-author-metadata__v2.cs", "title": "Update PDF Author Metadata", - "description": "Shows how to load a PDF with Aspose.Pdf, replace the Author metadata with the current user name, and save the updated document.", + "description": "Loads a PDF file, replaces its Author metadata with the current user name, and saves the updated document.", "tags": [ "pdf", "metadata", @@ -2191,15 +2540,34 @@ "Aspose.Pdf.Document", "Aspose.Pdf.DocumentInfo", "Aspose.Pdf.Document.Info", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.DocumentInfo.Author" + "Aspose.Pdf.DocumentInfo.Author", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, + { + "filename": "update-pdf-passwords.cs", + "title": "Update Passwords of an Encrypted PDF", + "description": "Shows how to open a password‑protected PDF using the owner password, change its user and owner passwords, and save the PDF with the new credentials.", + "tags": [ + "pdf", + "encryption", + "password", + "aspose.pdf", + "c#" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.ChangePasswords", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.InvalidPasswordException" + ], + "difficulty": "intermediate" + }, { "filename": "update-pdf-title-metadata.cs", "title": "Update PDF Title Metadata from Byte Array", - "description": "Demonstrates loading a PDF from a byte array, changing its Title metadata, and saving the modified document to disk using Aspose.Pdf.", + "description": "Demonstrates loading a PDF from a byte array, changing its title metadata, and saving the modified document to disk using Aspose.Pdf.", "tags": [ "pdf", "metadata", @@ -2209,9 +2577,30 @@ ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.DocumentInfo", - "Aspose.Pdf.DocumentInfo.Title", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Info", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Document.Pages.Add" + ], + "difficulty": "beginner" + }, + { + "filename": "update-pdf-version-to-1-5-incremental-save.cs", + "title": "Update PDF Version to 1.5 with Incremental Save", + "description": "Loads a PDF, converts it to PDF version 1.5 using Document.Convert, and saves it back with incremental update enabled.", + "tags": [ + "pdf-version", + "incremental-save", + "aspose-pdf", + "convert", + "document" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Convert", + "Aspose.Pdf.PdfFormat", + "Aspose.Pdf.ConvertErrorAction", + "Aspose.Pdf.PdfSaveOptions" ], "difficulty": "beginner" } @@ -2219,126 +2608,160 @@ }, { "name": "compare-pdf", - "file_count": 29, + "file_count": 44, "files": [ + "batch-pdf-comparison-parallel.cs", "compare-encrypted-pdfs-side-by-side.cs", + "compare-pdf-documents-page-by-page-diff.cs", "compare-pdf-documents-page-by-page.cs", + "compare-pdf-text-ignoring-compression.cs", + "compare-pdfs-detect-font-differences.cs", "compare-pdfs-different-page-sizes.cs", "compare-pdfs-excluding-footer-areas.cs", "compare-pdfs-font-differences.cs", "compare-pdfs-from-streams.cs", + "compare-pdfs-generate-json-diff-report.cs", "compare-pdfs-ignore-compression.cs", "compare-pdfs-ignore-signature-fields.cs", "compare-pdfs-including-form-field-values.cs", "compare-pdfs-log-diff-operations.cs", + "compare-pdfs-log-differences.cs", "compare-pdfs-unicode-text-differences.cs", + "compare-pdfs-with-form-fields.cs", "compare-selected-page-range-pdfs.cs", + "compare-selected-pdf-pages-side-by-side.cs", "compare-selected-pdf-pages.cs", + "compare-specific-page-range-pdf.cs", "compare-two-pdfs-and-generate-visual-diff.cs", + "compare-two-pdfs-aspdf-comparison.cs", "compare-two-pdfs-visual-diff.cs", - "create-diff-pdf-using-graphicalpdfcomparer.cs", "exclude-annotations-from-pdf-comparison.cs", "exclude-areas-from-pdf-comparison.cs", + "exclude-footer-areas-in-pdf-comparison.cs", + "generate-diff-pdf-by-comparing-two-pdfs.cs", "generate-diff-pdf-highlighted-text-changes.cs", + "generate-pdf-diff-images-zip.cs", "generate-pdf-difference-image.cs", "generate-visual-diff-pdf.cs", + "get-image-differences-between-pdf-pages.cs", + "in-memory-pdf-comparison-diff.cs", "multi-threaded-pdf-comparison.cs", "parallel-batch-pdf-comparison.cs", "pdf-diff-images-to-zip.cs", "pdf-diff-report-json.cs", + "preserve-original-metadata-in-diff-pdf.cs", "preserve-pdf-metadata-after-comparison.cs", - "replace-changed-text-in-pdf.cs", + "replace-text-using-diffoperation.cs", "set-custom-image-similarity-tolerance-pdf-comparison.cs", "write-pdf-diff-to-http-response.cs" ], "required_namespaces": [ "Aspose.Pdf", "Aspose.Pdf.Comparison", + "Aspose.Pdf.Text", "Aspose.Pdf.Annotations", - "Aspose.Pdf.Forms", - "Aspose.Pdf.Text" + "Aspose.Pdf.Devices", + "Aspose.Pdf.Forms" ], "key_apis": [ - "TextFragment" + "TextFragment", + "TextAbsorber" ], "examples": [ + { + "filename": "batch-pdf-comparison-parallel.cs", + "title": "Batch PDF Comparison with Parallel Processing", + "description": "Demonstrates how to compare a large set of PDFs against a reference file using Aspose.Pdf's comparison API while limiting concurrency with SemaphoreSlim to control memory usage.", + "tags": [ + "pdf-comparison", + "parallel-processing", + "aspose-pdf", + "batch", + "concurrency" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Comparison.SideBySidePdfComparer", + "Aspose.Pdf.Comparison.SideBySidePdfComparer.Compare", + "Aspose.Pdf.Comparison.ComparisonOptions", + "Aspose.Pdf.Comparison.SideBySideComparisonOptions" + ], + "difficulty": "intermediate" + }, { "filename": "compare-encrypted-pdfs-side-by-side.cs", - "title": "Compare Encrypted PDFs with Side‑by‑Side Visual Result", - "description": "Demonstrates loading password‑protected PDF files, comparing them using Aspose.Pdf's side‑by‑side comparer, and saving a visual diff PDF.", + "title": "Compare Encrypted PDFs Side‑by‑Side with Passwords", + "description": "Demonstrates loading two password‑protected PDF files and performing a side‑by‑side visual comparison using Aspose.Pdf, saving the result as a new PDF.", "tags": [ "pdf-comparison", "encrypted-pdf", - "side-by-side", "password", - "aspnet" + "side-by-side", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Comparison.SideBySidePdfComparer.Compare", "Aspose.Pdf.Comparison.SideBySideComparisonOptions", - "Aspose.Pdf.Comparison.ComparisonOptions", - "Aspose.Pdf.Comparison.TextPdfComparer.CompareFlatDocuments" + "Aspose.Pdf.Comparison.SideBySidePdfComparer", + "Aspose.Pdf.Comparison.SideBySidePdfComparer.Compare" ], "difficulty": "intermediate" }, { - "filename": "compare-pdf-documents-page-by-page.cs", + "filename": "compare-pdf-documents-page-by-page-diff.cs", "title": "Compare PDF Documents Page by Page and Generate Diff PDF", - "description": "", - "tags": [], - "apis_used": [], - "difficulty": "" - }, - { - "filename": "compare-pdfs-different-page-sizes.cs", - "title": "Align and Compare PDF Pages with Different Sizes", - "description": "The example loads two PDF documents, adjusts the second page to match the first page's dimensions, and uses Aspose.Pdf's GraphicalPdfComparer to compare the pages and generate a comparison PDF.", + "description": "Demonstrates how to compare two PDF files page by page using Aspose.Pdf's default ComparisonOptions and save the resulting diff PDF.", "tags": [ "pdf-comparison", - "page-size", + "diff", + "page-by-page", "aspose-pdf", - "graphical-comparer", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.PageInfo", - "Aspose.Pdf.Comparison.GraphicalPdfComparer", - "Aspose.Pdf.Comparison.GraphicalPdfComparer.ComparePagesToPdf" + "Aspose.Pdf.Comparison.ComparisonOptions", + "Aspose.Pdf.Comparison.TextPdfComparer", + "Aspose.Pdf.Comparison.TextPdfComparer.CompareDocumentsPageByPage" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "compare-pdfs-excluding-footer-areas.cs", - "title": "Compare PDFs While Excluding Footer Areas", - "description": "Demonstrates how to exclude rectangular footer regions from a side‑by‑side PDF comparison using Aspose.Pdf's comparison options.", + "filename": "compare-pdf-documents-page-by-page.cs", + "title": "Compare Pdf Documents Page By Page", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "compare-pdf-text-ignoring-compression.cs", + "title": "Compare PDFs Textually Ignoring Compression Differences", + "description": "Demonstrates how to compare two PDF files that have identical content but different compression settings using Aspose.Pdf's flat text comparison, ensuring compression does not affect the diff results.", "tags": [ "pdf-comparison", - "exclude-areas", - "footer", + "text-diff", + "compression", "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Comparison.SideBySideComparisonOptions", - "Aspose.Pdf.Comparison.SideBySidePdfComparer.Compare" + "Aspose.Pdf.Comparison.ComparisonOptions", + "Aspose.Pdf.Comparison.TextPdfComparer.CompareFlatDocuments", + "Aspose.Pdf.Comparison.DiffOperation" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "compare-pdfs-font-differences.cs", - "title": "Compare PDFs for Font Differences and Generate JSON Report", - "description": "Shows how to compare two PDF files, filter out font‑related differences, and export the diff operations to a JSON report using Aspose.Pdf.", + "filename": "compare-pdfs-detect-font-differences.cs", + "title": "Compare PDFs and Detect Font Differences", + "description": "Demonstrates how to compare two PDF files using Aspose.Pdf and report font changes as separate diff operations.", "tags": [ "pdf-comparison", "font-differences", - "json-report", "aspose-pdf", + "diff-operations", "csharp" ], "apis_used": [ @@ -2346,116 +2769,143 @@ "Aspose.Pdf.Comparison.ComparisonOptions", "Aspose.Pdf.Comparison.TextPdfComparer.CompareFlatDocuments", "Aspose.Pdf.Comparison.DiffOperation", - "Aspose.Pdf.Comparison.JsonDiffOutputGenerator.GenerateOutput" + "Aspose.Pdf.Comparison.DiffOperation.Operation" ], "difficulty": "intermediate" }, { - "filename": "compare-pdfs-from-streams.cs", - "title": "Compare PDFs from Streams and Generate Diff PDF", - "description": "Shows how to load two PDF documents from in‑memory streams, perform a visual page‑by‑page comparison using GraphicalPdfComparer, and write the resulting diff PDF to a MemoryStream without creating temporary files.", + "filename": "compare-pdfs-different-page-sizes.cs", + "title": "Compare PDFs with Different Page Sizes", + "description": "Shows how to align the page dimensions of two PDFs and use GraphicalPdfComparer to compare them, handling size mismatches and customizing comparison settings.", "tags": [ "pdf-comparison", - "memory-stream", - "visual-diff", - "aspose-pdf", - "csharp" + "page-size-alignment", + "graphical-comparer", + "resolution", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.PageInfo", "Aspose.Pdf.Comparison.GraphicalPdfComparer", - "Aspose.Pdf.Comparison.GraphicalPdfComparer.ComparePagesToPdf", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Pages" + "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.Color" ], "difficulty": "intermediate" }, { - "filename": "compare-pdfs-ignore-compression.cs", - "title": "Compare PDFs Ignoring Compression Differences", - "description": "Shows how to compare two PDFs that use different compression settings, focusing on textual differences and producing both a visual diff PDF and a JSON diff report.", + "filename": "compare-pdfs-excluding-footer-areas.cs", + "title": "Compare Pdfs Excluding Footer Areas", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "compare-pdfs-font-differences.cs", + "title": "Compare Pdfs Font Differences", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "compare-pdfs-from-streams.cs", + "title": "Compare Pdfs From Streams", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "compare-pdfs-generate-json-diff-report.cs", + "title": "Compare PDFs and Generate JSON Diff Report", + "description": "The example loads two PDF files, extracts their text page by page using Aspose.Pdf, identifies added, removed or modified pages, creates DiffOperation objects, and serializes the differences to a JSON report.", "tags": [ "pdf-comparison", - "text-diff", - "compression", - "json-output", + "text-extraction", + "json-serialization", + "diff-report", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Comparison.ComparisonOptions", - "Aspose.Pdf.Comparison.TextPdfComparer.CompareFlatDocuments", - "Aspose.Pdf.Comparison.DiffOperation", - "Aspose.Pdf.Comparison.JsonDiffOutputGenerator.GenerateOutput" + "Aspose.Pdf.Text.TextAbsorber", + "Aspose.Pdf.Text.TextAbsorber.Visit", + "Aspose.Pdf.Page", + "Aspose.Pdf.Document.Pages" ], "difficulty": "intermediate" }, + { + "filename": "compare-pdfs-ignore-compression.cs", + "title": "Compare Pdfs Ignore Compression", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "compare-pdfs-ignore-signature-fields.cs", "title": "Compare PDFs While Ignoring Signature Fields", - "description": "Demonstrates how to compare two PDF documents, verify their digital signatures, and exclude signature field regions from the visual diff using Aspose.Pdf.", + "description": "Loads two signed PDFs, extracts the rectangles of all signature fields, excludes those areas from comparison, and generates a visual diff PDF.", "tags": [ "pdf-comparison", - "digital-signature", + "signature", "exclude-areas", - "aspose-pdf", - "text-comparison" + "text-diff", + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotation.Annotation", + "Aspose.Pdf.Forms.SignatureField", "Aspose.Pdf.Comparison.ComparisonOptions", - "Aspose.Pdf.Comparison.TextPdfComparer.CompareDocumentsPageByPage", - "Aspose.Pdf.Annotations.SignatureField", - "Aspose.Pdf.Signatures.SignaturesCompromiseDetector", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Comparison.TextPdfComparer.CompareDocumentsPageByPage" ], "difficulty": "intermediate" }, { "filename": "compare-pdfs-including-form-field-values.cs", - "title": "Compare PDFs Including Form Field Values", - "description": "Shows how to compare two PDF files with Aspose.Pdf while taking AcroForm field values into account, producing a side‑by‑side visual diff and retrieving raw page‑level differences.", - "tags": [ - "pdf-comparison", - "form-fields", - "aspose-pdf", - "side-by-side", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Comparison.ComparisonOptions", - "Aspose.Pdf.Comparison.SideBySideComparisonOptions", - "Aspose.Pdf.Comparison.SideBySidePdfComparer.Compare", - "Aspose.Pdf.Comparison.TextPdfComparer.CompareDocumentsPageByPage" - ], - "difficulty": "intermediate" + "title": "Compare Pdfs Including Form Field Values", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "compare-pdfs-log-diff-operations.cs", - "title": "Compare PDFs and Log Diff Operations by Page", - "description": "Demonstrates how to compare two PDF documents page‑by‑page using Aspose.Pdf and write an audit log that records each diff operation type together with its page number.", + "title": "Compare Pdfs Log Diff Operations", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "compare-pdfs-log-differences.cs", + "title": "Compare PDFs and Log Differences by Page", + "description": "Shows how to compare two PDF documents page‑by‑page with Aspose.Pdf and write an audit log that records each diff operation type together with its page number.", "tags": [ "pdf-comparison", "audit-log", - "diff-operation", + "page-diff", "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Comparison.ComparisonOptions", - "Aspose.Pdf.Comparison.TextPdfComparer", "Aspose.Pdf.Comparison.TextPdfComparer.CompareDocumentsPageByPage", - "Aspose.Pdf.Comparison.DiffOperation", - "Aspose.Pdf.Comparison.DiffOperation.Operation" + "Aspose.Pdf.Comparison.DiffOperation" ], "difficulty": "intermediate" }, { "filename": "compare-pdfs-unicode-text-differences.cs", - "title": "Detect Unicode Text Differences Between PDFs", - "description": "Demonstrates how to compare two PDF files with different language encodings (e.g., English and Russian) using Aspose.Pdf.Comparison to detect Unicode text differences and generate a visual diff PDF.", + "title": "Compare PDFs with Unicode Text and Detect Differences", + "description": "Creates English and Russian PDFs, then uses Aspose.Pdf's comparison API to detect Unicode text differences and generate a visual diff PDF.", "tags": [ "pdf-comparison", "unicode", @@ -2465,114 +2915,140 @@ ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Comparison.ComparisonOptions", "Aspose.Pdf.Comparison.TextPdfComparer.CompareFlatDocuments", "Aspose.Pdf.Comparison.DiffOperation" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "compare-selected-page-range-pdfs.cs", - "title": "Compare Selected Page Range of Two PDFs", - "description": "Loads two PDF documents, adjusts a user‑defined page range, and performs a text‑based comparison on each page within that range.", + "filename": "compare-pdfs-with-form-fields.cs", + "title": "Compare PDFs Including Form Field Values", + "description": "Demonstrates how to compare two PDF documents, including form field values, and generate both a JSON diff report and a side‑by‑side visual PDF using Aspose.Pdf.Comparison.", "tags": [ - "pdf", - "comparison", - "page-range", - "text-diff", - "aspose" + "pdf-comparison", + "form-fields", + "aspose-pdf", + "json-report", + "visual-diff" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.Comparison.ComparisonOptions", - "Aspose.Pdf.Comparison.TextPdfComparer.ComparePages", - "Aspose.Pdf.Comparison.DiffOperation" + "Aspose.Pdf.Comparison.TextPdfComparer.CompareDocumentsPageByPage", + "Aspose.Pdf.Comparison.JsonDiffOutputGenerator", + "Aspose.Pdf.Comparison.SideBySidePdfComparer", + "Aspose.Pdf.Comparison.SideBySideComparisonOptions" ], "difficulty": "intermediate" }, { - "filename": "compare-selected-pdf-pages.cs", - "title": "Compare Selected PDF Pages Using Aspose.Pdf", - "description": "Demonstrates how to compare specific pages from two PDF documents by extracting those pages into temporary documents and using the side‑by‑side comparer provided by Aspose.Pdf.", + "filename": "compare-selected-page-range-pdfs.cs", + "title": "Compare Selected Page Range Pdfs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "compare-selected-pdf-pages-side-by-side.cs", + "title": "Compare Selected PDF Pages Side‑by‑Side", + "description": "Demonstrates how to compare specific pages of two PDFs using Aspose.Pdf's side‑by‑side visual comparer and retrieve textual differences.", "tags": [ - "pdf-comparison", - "selected-pages", - "aspose-pdf", + "pdf comparison", + "selected pages", "side-by-side", - "csharp" + "aspose.pdf", + "text differences" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Comparison.SideBySidePdfComparer", + "Aspose.Pdf.Comparison.ComparisonOptions", "Aspose.Pdf.Comparison.SideBySideComparisonOptions", - "Aspose.Pdf.Pages", - "Aspose.Pdf.Page" + "Aspose.Pdf.Comparison.SideBySidePdfComparer.Compare", + "Aspose.Pdf.Comparison.TextPdfComparer.ComparePages" ], "difficulty": "intermediate" }, { - "filename": "compare-two-pdfs-and-generate-visual-diff.cs", - "title": "Compare Two PDFs and Generate a Visual Diff", - "description": "Loads two PDF files, compares them with Aspose.Pdf.Comparison, saves a diff PDF, and prints basic text‑difference statistics.", - "tags": [ - "pdf", - "comparison", - "diff", - "statistics", - "aspose-pdf" + "filename": "compare-selected-pdf-pages.cs", + "title": "Compare Selected Pdf Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "compare-specific-page-range-pdf.cs", + "title": "Compare Specific Page Range of Two PDFs", + "description": "Loads two PDF documents, defines a page range, compares the selected pages using Aspose.Pdf's comparison API, and reports the number of differences per page.", + "tags": [ + "pdf-comparison", + "page-range", + "aspose-pdf", + "csharp", + "diff" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Comparison.ComparisonOptions", - "Aspose.Pdf.Comparison.TextPdfComparer.CompareFlatDocuments", - "Aspose.Pdf.Comparison.TextPdfComparer.CreateComparisonStatistics", - "Aspose.Pdf.Comparison.DiffOperation", - "Aspose.Pdf.Comparison.TextItemComparisonStatistics" + "Aspose.Pdf.Comparison.TextPdfComparer.CompareDocumentsPageByPage", + "Aspose.Pdf.Comparison.DiffOperation" ], "difficulty": "intermediate" }, { - "filename": "compare-two-pdfs-visual-diff.cs", - "title": "Compare Two PDFs and Generate Visual Diff", - "description": "Loads two PDF files, compares them with Aspose.Pdf's flat document comparison, saves a PDF that highlights the differences, and prints a summary of the diff operations.", + "filename": "compare-two-pdfs-and-generate-visual-diff.cs", + "title": "Compare Two Pdfs And Generate Visual Diff", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "compare-two-pdfs-aspdf-comparison.cs", + "title": "Compare Two PDFs Using Aspose.Pdf.Comparison", + "description": "Demonstrates how to compare two PDF documents with Aspose.Pdf, generating a result PDF that highlights differences. The example notes that case‑insensitive text comparison is not directly supported in the current API.", "tags": [ "pdf-comparison", - "visual-diff", "aspose-pdf", "csharp", - "document-comparison" + "text-comparison", + "case-sensitive" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Comparison.ComparisonOptions", - "Aspose.Pdf.Comparison.TextPdfComparer.CompareFlatDocuments", - "Aspose.Pdf.Comparison.DiffOperation" + "Aspose.Pdf.Comparison.TextPdfComparer", + "Aspose.Pdf.Comparison.TextPdfComparer.CompareFlatDocuments" ], "difficulty": "beginner" }, { - "filename": "create-diff-pdf-using-graphicalpdfcomparer.cs", - "title": "Create Diff PDF Using GraphicalPdfComparer", - "description": "Loads two PDF files, compares them with Aspose.Pdf's GraphicalPdfComparer, and saves a diff PDF that highlights the changes to a specified folder.", + "filename": "compare-two-pdfs-visual-diff.cs", + "title": "Compare Two PDFs and Generate a Visual Diff", + "description": "Demonstrates how to compare two PDF documents using Aspose.Pdf, generate a list of differences, and create a result PDF that visually highlights those differences.", "tags": [ "pdf-comparison", - "diff-pdf", - "aspose-pdf", + "visual-diff", "csharp", - "graphicalpdfcomparer" + "aspose-pdf", + "document-compare" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Comparison.GraphicalPdfComparer", - "Aspose.Pdf.Comparison.GraphicalPdfComparer.CompareDocumentsToPdf" + "Aspose.Pdf.Comparison.ComparisonOptions", + "Aspose.Pdf.Comparison.TextPdfComparer.CompareFlatDocuments", + "Aspose.Pdf.Comparison.DiffOperation" ], "difficulty": "beginner" }, { "filename": "exclude-annotations-from-pdf-comparison.cs", "title": "Exclude Annotations from PDF Comparison", - "description": "Shows how to collect annotation bounding rectangles from two PDFs and configure side‑by‑side comparison to ignore those areas using Aspose.Pdf.", + "description": "Demonstrates collecting annotation bounding rectangles from two PDFs and configuring SideBySideComparisonOptions to exclude those areas during a side‑by‑side comparison.", "tags": [ "pdf-comparison", "annotations", @@ -2592,14 +3068,14 @@ }, { "filename": "exclude-areas-from-pdf-comparison.cs", - "title": "Exclude Areas from PDF Side‑by‑Side Comparison", - "description": "Shows how to define rectangular regions to exclude from both PDFs and perform a side‑by‑side comparison using Aspose.Pdf.Comparison.", + "title": "Exclude Areas from PDF Comparison", + "description": "Demonstrates how to define rectangular regions to exclude from each PDF and perform a side‑by‑side comparison using Aspose.Pdf.", "tags": [ "pdf-comparison", "exclude-areas", - "rectangle", "side-by-side", - "aspnet" + "csharp", + "aspdf" ], "apis_used": [ "Aspose.Pdf.Document", @@ -2610,178 +3086,238 @@ ], "difficulty": "intermediate" }, + { + "filename": "exclude-footer-areas-in-pdf-comparison.cs", + "title": "Exclude Footer Areas in PDF Comparison", + "description": "Demonstrates how to define rectangular exclude areas to omit footers when performing a side‑by‑side PDF comparison using Aspose.Pdf.", + "tags": [ + "pdf-comparison", + "exclude-areas", + "footer", + "side-by-side", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Comparison.SideBySideComparisonOptions", + "Aspose.Pdf.Comparison.SideBySidePdfComparer.Compare" + ], + "difficulty": "intermediate" + }, + { + "filename": "generate-diff-pdf-by-comparing-two-pdfs.cs", + "title": "Generate a Diff PDF by Comparing Two PDFs", + "description": "Demonstrates how to use Aspose.Pdf to compare two PDF documents and create a highlighted diff PDF saved to a specified folder.", + "tags": [ + "pdf", + "comparison", + "diff", + "aspose.pdf", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Comparison.GraphicalPdfComparer", + "Aspose.Pdf.Comparison.GraphicalPdfComparer.CompareDocumentsToPdf" + ], + "difficulty": "beginner" + }, { "filename": "generate-diff-pdf-highlighted-text-changes.cs", - "title": "Generate Diff PDF with Highlighted Text Changes", - "description": "Demonstrates comparing two PDFs, creating a diff PDF with highlighted text changes using Aspose.Pdf, and verifying that the highlight colour matches the default yellow.", + "title": "Generate Diff PDF with Highlighted Text Changes and Verify Default Colors", + "description": "Demonstrates how to compare two PDF pages, generate a diff PDF with highlighted insertions/deletions, and validate that the highlight color matches the default red setting.", "tags": [ "pdf-comparison", "highlight", "diff", "aspose-pdf", - "verification" + "validation" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Comparison.ComparisonOptions", - "Aspose.Pdf.Comparison.TextPdfComparer.CompareDocumentsPageByPage", + "Aspose.Pdf.Comparison.TextPdfComparer.ComparePages", + "Aspose.Pdf.Comparison.PdfOutputGenerator", "Aspose.Pdf.Comparison.PdfOutputGenerator.GenerateOutput", "Aspose.Pdf.Annotations.HighlightAnnotation", - "Aspose.Pdf.Color.Yellow" + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Color" ], "difficulty": "intermediate" }, { - "filename": "generate-pdf-difference-image.cs", - "title": "Generate Visual Difference Image Between Two PDFs", - "description": "Demonstrates how to compare the first pages of two PDF files using Aspose.Pdf's GraphicalPdfComparer, obtain an ImagesDifference object, and save a PNG that visualizes the pixel‑wise differences.", + "filename": "generate-pdf-diff-images-zip.cs", + "title": "Generate PDF Diff Images and Zip Them", + "description": "Shows how to compare two PDFs with Aspose.Pdf's GraphicalPdfComparer, export the visual differences as PNG images, and package the resulting images into a ZIP archive.", "tags": [ - "pdf-comparison", - "image-difference", - "aspose-pdf", - "graphical-comparer", - "csharp" + "pdf", + "comparison", + "diff-images", + "zip", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Comparison.GraphicalPdfComparer", - "Aspose.Pdf.Comparison.ImagesDifference", - "Aspose.Pdf.Comparison.GraphicalPdfComparer.GetDifference", - "Aspose.Pdf.Comparison.ImagesDifference.GetDestinationImage" + "Aspose.Pdf.Comparison.GraphicalPdfComparer.CompareDocumentsToImages" ], "difficulty": "intermediate" }, + { + "filename": "generate-pdf-difference-image.cs", + "title": "Generate Pdf Difference Image", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "generate-visual-diff-pdf.cs", "title": "Generate Visual Diff PDF Using GraphicalPdfComparer", - "description": "Demonstrates how to compare two PDF documents visually and create a diff PDF using Aspose.Pdf's GraphicalPdfComparer.", + "description": "Demonstrates how to compare two PDF documents and create a visual diff PDF with Aspose.Pdf's GraphicalPdfComparer.", "tags": [ "pdf-comparison", "visual-diff", "aspose-pdf", "csharp", - "graphical-comparer" + "document-comparison" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Comparison.GraphicalPdfComparer", - "Aspose.Pdf.Comparison.GraphicalPdfComparer.CompareDocumentsToPdf", - "Aspose.Pdf.Color" + "Aspose.Pdf.Comparison.GraphicalPdfComparer.CompareDocumentsToPdf" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "multi-threaded-pdf-comparison.cs", - "title": "Multi‑Threaded PDF Comparison with Aspose.Pdf", - "description": "Demonstrates how to compare multiple PDF pairs concurrently using Aspose.Pdf's side‑by‑side comparison API and .NET tasks, saving each result to a separate file.", + "filename": "get-image-differences-between-pdf-pages.cs", + "title": "Get Image Differences Between PDF Pages", + "description": "Demonstrates how to compare two PDF documents page‑by‑page using Aspose.Pdf's GraphicalPdfComparer, retrieve image differences, and save the source and destination images.", "tags": [ "pdf-comparison", - "multithreading", + "image-difference", "aspose-pdf", - "side-by-side", - "csharp" + "csharp", + "graphics" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Comparison.SideBySideComparisonOptions", - "Aspose.Pdf.Comparison.SideBySidePdfComparer", - "Aspose.Pdf.Comparison.SideBySidePdfComparer.Compare" + "Aspose.Pdf.Page", + "Aspose.Pdf.Comparison.GraphicalPdfComparer", + "Aspose.Pdf.Comparison.ImagesDifference", + "Aspose.Pdf.Comparison.ImagesDifference.GetDestinationImage" ], "difficulty": "intermediate" }, { - "filename": "parallel-batch-pdf-comparison.cs", - "title": "Parallel Batch PDF Comparison with Concurrency Limit", - "description": "Compares multiple PDF files against a baseline PDF in parallel while limiting the degree of parallelism to control memory usage, and saves side‑by‑side comparison results.", + "filename": "in-memory-pdf-comparison-diff.cs", + "title": "In-Memory PDF Comparison with Diff Output", + "description": "Demonstrates loading two PDFs from memory streams, comparing them page‑by‑page using Aspose's GraphicalPdfComparer, and returning the visual diff as a new PDF in a memory stream.", "tags": [ "pdf-comparison", - "parallel-processing", - "concurrency", + "in-memory", + "graphical-comparer", "aspose-pdf", - "batch" + "memorystream" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Comparison.SideBySideComparisonOptions", - "Aspose.Pdf.Comparison.SideBySidePdfComparer", - "Aspose.Pdf.Comparison.SideBySidePdfComparer.Compare" + "Aspose.Pdf.Comparison.GraphicalPdfComparer", + "Aspose.Pdf.Comparison.GraphicalPdfComparer.ComparePagesToPdf", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Text.TextFragment" ], "difficulty": "intermediate" }, { - "filename": "pdf-diff-images-to-zip.cs", - "title": "Generate PDF Diff Images and Zip Them", - "description": "Demonstrates how to compare two PDFs with Aspose.Pdf, create visual diff images, and package the images into a ZIP archive for easy distribution.", + "filename": "multi-threaded-pdf-comparison.cs", + "title": "Multi-Threaded PDF Comparison with Aspose.Pdf", + "description": "Demonstrates how to compare multiple pairs of PDF files concurrently using Aspose.Pdf's side‑by‑side comparer together with .NET tasks.", "tags": [ "pdf-comparison", - "diff-images", - "zip-archive", + "multithreading", "aspose-pdf", + "side-by-side", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Comparison.GraphicalPdfComparer", - "Aspose.Pdf.Comparison.GraphicalPdfComparer.CompareDocumentsToImages" + "Aspose.Pdf.Comparison.SideBySideComparisonOptions", + "Aspose.Pdf.Comparison.SideBySidePdfComparer", + "Aspose.Pdf.Comparison.SideBySidePdfComparer.Compare", + "Aspose.Pdf.Comparison.PdfComparisonResult" ], "difficulty": "intermediate" }, + { + "filename": "parallel-batch-pdf-comparison.cs", + "title": "Parallel Batch Pdf Comparison", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "pdf-diff-images-to-zip.cs", + "title": "Pdf Diff Images To Zip", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "pdf-diff-report-json.cs", - "title": "Generate PDF Difference Report in JSON", - "description": "The example loads two PDF files, compares page count and page dimensions, records any differences, and writes a JSON report of the diff operations.", - "tags": [ - "pdf", - "diff", - "json", - "aspose-pdf", - "comparison" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.PageInfo", - "Aspose.Pdf.PageInfo.Width", - "Aspose.Pdf.PageInfo.Height" - ], - "difficulty": "beginner" + "title": "Pdf Diff Report Json", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "preserve-pdf-metadata-after-comparison.cs", - "title": "Preserve PDF Metadata After Comparison", - "description": "Shows how to compare two PDFs side‑by‑side using Aspose.Pdf and then copy the original document's metadata to the generated diff PDF.", + "filename": "preserve-original-metadata-in-diff-pdf.cs", + "title": "Copy Original PDF Metadata to Diff PDF", + "description": "The example compares two PDF files using Aspose.Pdf.Comparison and then copies all document metadata from the original PDF to the generated diff PDF, ensuring the diff retains the original information.", "tags": [ "pdf-comparison", "metadata", "aspose-pdf", - "side-by-side", + "document-info", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Comparison.SideBySidePdfComparer", - "Aspose.Pdf.Comparison.SideBySideComparisonOptions", - "Aspose.Pdf.Document.Info", + "Aspose.Pdf.Comparison.TextPdfComparer.CompareDocumentsPageByPage", + "Aspose.Pdf.Comparison.ComparisonOptions", + "Aspose.Pdf.DocumentInfo", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "replace-changed-text-in-pdf.cs", - "title": "Replace Changed Text in PDF Using DiffOperation", - "description": "Compares two PDF pages, extracts the original text from the first PDF via DiffOperation objects, and replaces the changed content on the second PDF with the original text.", + "filename": "preserve-pdf-metadata-after-comparison.cs", + "title": "Preserve Pdf Metadata After Comparison", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "replace-text-using-diffoperation.cs", + "title": "Replace Text in PDF Using DiffOperation Comparison", + "description": "Demonstrates how to compare two PDF pages, reconstruct the original text from the first PDF using DiffOperation objects, and replace the text content of the second PDF page with the reconstructed text.", "tags": [ - "pdf-comparison", + "pdf", + "comparison", "diffoperation", "text-replacement", - "aspose-pdf", - "csharp" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Comparison.TextPdfComparer.ComparePages", "Aspose.Pdf.Comparison.ComparisonOptions", - "Aspose.Pdf.Comparison.DiffOperation", + "Aspose.Pdf.Comparison.TextPdfComparer.ComparePages", "Aspose.Pdf.Comparison.TextPdfComparer.AssemblySourcePageText", "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment" @@ -2791,149 +3327,187 @@ { "filename": "set-custom-image-similarity-tolerance-pdf-comparison.cs", "title": "Set Custom Image Similarity Tolerance for PDF Comparison", - "description": "Demonstrates how to compare two PDFs containing scanned images using Aspose.Pdf's GraphicalPdfComparer with a custom similarity tolerance.", + "description": "Demonstrates how to configure a custom tolerance percentage for image differences when comparing two PDFs using Aspose.Pdf's GraphicalPdfComparer and generate diff images.", "tags": [ "pdf-comparison", "image-tolerance", "graphical-comparer", "aspose-pdf", - "scanned-images" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Comparison.GraphicalPdfComparer", "Aspose.Pdf.Comparison.GraphicalPdfComparer.Threshold", - "Aspose.Pdf.Comparison.GraphicalPdfComparer.CompareDocumentsToPdf", + "Aspose.Pdf.Comparison.GraphicalPdfComparer.CompareDocumentsToImages", "Aspose.Pdf.Comparison.ComparisonOptions" ], "difficulty": "beginner" }, { "filename": "write-pdf-diff-to-http-response.cs", - "title": "Write PDF Diff Directly to HTTP Response Stream", - "description": "Demonstrates comparing two PDFs side‑by‑side and writing the resulting diff PDF directly to a provided output stream, suitable for ASP.NET Core response bodies.", - "tags": [ - "pdf-comparison", - "side-by-side", - "output-stream", - "aspnet-core", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Comparison.SideBySideComparisonOptions", - "Aspose.Pdf.Comparison.SideBySidePdfComparer.Compare" - ], - "difficulty": "beginner" + "title": "Write Pdf Diff To Http Response", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" } ] }, { "name": "conversion", - "file_count": 102, + "file_count": 150, "files": [ "add-attachment-to-pdfa3b-document.cs", + "add-external-text-file-attachment-to-pdfa3b.cs", + "add-external-xml-attachment-to-pdfa.cs", "add-logo-to-pdf-and-convert-to-pptx.cs", "add-xml-attachment-to-pdfa1b-document.cs", + "batch-convert-pdfs-to-jpeg-custom-naming.cs", "batch-convert-pdfs-to-jpeg-images.cs", "batch-convert-pdfs-to-multi-page-tiff.cs", "batch-convert-pdfs-to-png-preserve-hierarchy.cs", + "batch-convert-pdfs-to-png.cs", + "batch-convert-pdfs-to-pptx-slides-as-images.cs", "batch-convert-pdfs-to-pptx-slidesasimages.cs", "convert-epub-to-pdf-custom-page-size.cs", "convert-latex-to-pdf.cs", + "convert-markdown-to-pdf-preserving-code-blocks.cs", "convert-markdown-to-pdf.cs", "convert-ofd-to-pdf.cs", "convert-pcl-to-pdf-hpgl2.cs", "convert-pdf-page-region-to-png.cs", "convert-pdf-page-to-jpeg.cs", - "convert-pdf-pages-to-gif.cs", "convert-pdf-pages-to-html.cs", + "convert-pdf-pages-to-separate-html-files.cs", "convert-pdf-to-bmp-images.cs", "convert-pdf-to-doc-custom-recognition.cs", "convert-pdf-to-doc-default.cs", + "convert-pdf-to-doc-image-extraction.cs", + "convert-pdf-to-doc-plain-text.cs", "convert-pdf-to-doc-text-mode.cs", + "convert-pdf-to-docx-add-table-of-figures.cs", + "convert-pdf-to-docx-and-pdfa.cs", "convert-pdf-to-docx-and-zip.cs", "convert-pdf-to-docx-auto-detection.cs", + "convert-pdf-to-docx-enhanced-flow.cs", "convert-pdf-to-docx-enhanced-recognition.cs", "convert-pdf-to-docx-extract-images.cs", + "convert-pdf-to-docx-layout.cs", "convert-pdf-to-docx-preserve-layout.cs", "convert-pdf-to-docx-with-embedded-fonts.cs", "convert-pdf-to-docx-with-footnotes.cs", "convert-pdf-to-docx-with-hyphenation.cs", "convert-pdf-to-docx-with-metadata.cs", + "convert-pdf-to-docx-with-stats.cs", "convert-pdf-to-docx-with-table-of-figures.cs", + "convert-pdf-to-emf-images.cs", "convert-pdf-to-emf.cs", "convert-pdf-to-epub-with-cover.cs", "convert-pdf-to-epub.cs", + "convert-pdf-to-gif-images.cs", "convert-pdf-to-html-and-minify.cs", + "convert-pdf-to-html-and-pptx-with-embedded-fonts.cs", "convert-pdf-to-html-and-pptx.cs", "convert-pdf-to-html-compressed-svg.cs", + "convert-pdf-to-html-docx-with-embedded-fonts.cs", "convert-pdf-to-html-pages-with-index.cs", "convert-pdf-to-html-per-page-image-subfolders.cs", + "convert-pdf-to-html-png-background.cs", + "convert-pdf-to-html-png-background__v2.cs", "convert-pdf-to-html-png-page-background.cs", "convert-pdf-to-html-png-page-background__v2.cs", + "convert-pdf-to-html-sitemap.cs", "convert-pdf-to-html-with-custom-css.cs", "convert-pdf-to-html-with-custom-font.cs", + "convert-pdf-to-html-with-embedded-custom-fonts.cs", "convert-pdf-to-html-with-svg-compression.cs", "convert-pdf-to-html-with-svg-images.cs", "convert-pdf-to-html-zip-archive.cs", + "convert-pdf-to-html-zip.cs", "convert-pdf-to-jpeg-images.cs", + "convert-pdf-to-jpeg.cs", "convert-pdf-to-latex-with-custom-macros.cs", "convert-pdf-to-latex-with-output-directory.cs", + "convert-pdf-to-latex.cs", + "convert-pdf-to-markdown-default-options.cs", "convert-pdf-to-markdown-with-custom-heading-mapping.cs", "convert-pdf-to-markdown.cs", "convert-pdf-to-mobixml-with-custom-metadata.cs", + "convert-pdf-to-mobixml-with-metadata.cs", "convert-pdf-to-mobixml.cs", "convert-pdf-to-multi-page-html.cs", "convert-pdf-to-multi-page-tiff.cs", "convert-pdf-to-multi-page-tiff__v2.cs", "convert-pdf-to-pdfa-1b-and-validate.cs", + "convert-pdf-to-pdfa-1b-skip-errors.cs", + "convert-pdf-to-pdfa-3b-throw-errors.cs", "convert-pdf-to-pdfa-3b-throw-on-error.cs", - "convert-pdf-to-pdfa-3b-with-font-substitution.cs", "convert-pdf-to-pdfa1b-skip-errors.cs", + "convert-pdf-to-pdfa3b-with-font-substitution.cs", "convert-pdf-to-pdfa4-with-auto-tagging.cs", + "convert-pdf-to-pdfa4-with-converterroraction.cs", "convert-pdf-to-pdfa4-with-error-action.cs", "convert-pdf-to-png-transparent-background.cs", "convert-pdf-to-png-transparent-background__v2.cs", "convert-pdf-to-pptx-add-custom-properties.cs", "convert-pdf-to-pptx-and-compress.cs", + "convert-pdf-to-pptx-and-pdfa.cs", "convert-pdf-to-pptx-extract-images.cs", "convert-pdf-to-pptx-extract-slide-titles-csv.cs", "convert-pdf-to-pptx-optional-password-protection.cs", "convert-pdf-to-pptx-slides-as-images.cs", "convert-pdf-to-pptx-slidesasimages-high-dpi.cs", "convert-pdf-to-pptx-to-pdfa.cs", + "convert-pdf-to-pptx-with-annotation-notes.cs", "convert-pdf-to-pptx-with-custom-font.cs", + "convert-pdf-to-pptx-with-logo.cs", "convert-pdf-to-pptx-with-notes.cs", "convert-pdf-to-pptx-with-progress-handler.cs", "convert-pdf-to-pptx-with-progress.cs", "convert-pdf-to-pptx.cs", "convert-pdf-to-pptx__v2.cs", "convert-pdf-to-pptx__v3.cs", + "convert-pdf-to-pptx__v4.cs", + "convert-pdf-to-pptx__v5.cs", "convert-pdf-to-responsive-html.cs", "convert-pdf-to-single-page-html.cs", + "convert-pdf-to-svg-custom-output.cs", "convert-pdf-to-svg-with-embedded-css.cs", "convert-pdf-to-svg-with-output-folder.cs", "convert-pdf-to-svg.cs", - "convert-pdf-to-text-using-textdevice.cs", + "convert-pdf-to-svg__v2.cs", + "convert-pdf-to-text.cs", "convert-pdf-to-xps-custom-page-size.cs", "convert-pdf-to-xps.cs", "convert-postscript-to-pdf.cs", "convert-xml-to-pdf-using-xsl-fo.cs", "convert-xsl-fo-to-pdf.cs", + "convert-xslfo-to-pdf.cs", "create-multi-page-tiff-from-pdf.cs", "create-single-page-tiff-from-first-pdf-page.cs", + "create-single-page-tiff-from-pdf.cs", "enable-auto-tagging-pdfa-conversion.cs", + "extract-pdf-page-region-to-png.cs", "extract-pdf-text-to-utf8-file.cs", + "extract-pdf-text-to-utf8-preserve-line-breaks.cs", "extract-visible-text-from-pdf.cs", "pdf-to-docx-conversion-json-report.cs", "pdf-to-docx-to-pdfa-conversion.cs", "pdf-to-html-embed-fonts-to-docx.cs", + "pdf-to-html-merge-and-convert-back.cs", + "pdf-to-html-per-page-image-folders.cs", "pdf-to-html-roundtrip-conversion.cs", "pdf-to-html-sitemap.cs", "pdf-to-html-with-toc.cs", + "pdf-to-markdown-with-heading-mapping.cs", "pdf-to-png-binarize-bradley.cs", - "replace-missing-fonts-pdfa-conversion.cs" + "pdf-to-png-bradley-contrast.cs", + "pdf-to-pptx-export-slide-titles-csv.cs", + "pdf-to-responsive-html.cs", + "replace-missing-fonts-pdfa-conversion.cs", + "validate-and-convert-pdf-to-pdfa-1b.cs", + "xml-to-pdf-xsl-fo-conversion.cs" ], "required_namespaces": [ "Aspose.Pdf", @@ -2941,86 +3515,74 @@ "Aspose.Pdf.Text", "Aspose.Pdf.Annotations", "Aspose.Pdf.Drawing", - "Aspose.Pdf.Tagged", "Aspose.Pdf.Facades", - "Aspose.Pdf.LogicalStructure" + "Aspose.Pdf.LogicalStructure", + "Aspose.Pdf.Tagged" ], "key_apis": [ - "PptxSaveOptions", "HtmlSaveOptions", + "PptxSaveOptions", "TiffDevice", "PngDevice", "JpegDevice", "SvgSaveOptions", - "TextAbsorber", - "EpubSaveOptions", - "HtmlLoadOptions", + "FileAttachmentAnnotation", "MobiXmlSaveOptions", + "StringBuilder", "XpsSaveOptions", "BmpDevice", "EmfDevice", "EpubLoadOptions", - "FileAttachmentAnnotation", + "EpubSaveOptions", "FileInfo", "GifDevice", - "ImageStamp", + "HtmlLoadOptions", "MarkdownSaveOptions", "MdLoadOptions", "OfdLoadOptions", "PclLoadOptions", "PsLoadOptions", - "StringBuilder", + "TeXLoadOptions", "TeXSaveOptions", + "TextAbsorber", "TextDevice", + "TextFragment", "XmlLoadOptions", "XslFoLoadOptions" ], "examples": [ { "filename": "add-attachment-to-pdfa3b-document.cs", - "title": "Add File Attachment and Convert to PDF/A‑3b", - "description": "Demonstrates how to embed an external text file into a PDF/A‑3b document using Aspose.Pdf, then convert the document to PDF/A‑3b compliance and save it.", + "title": "Add Attachment To Pdfa3B Document", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-external-text-file-attachment-to-pdfa3b.cs", + "title": "Add External Text File Attachment to PDF/A‑3b Document", + "description": "Demonstrates how to embed an external text file as a file attachment annotation and convert the PDF to PDF/A‑3b compliance using Aspose.Pdf.", "tags": [ "pdfa-3b", "attachment", - "embedding", + "annotation", "conversion", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.Annotations.FileAttachmentAnnotation", "Aspose.Pdf.Document.Convert", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Document.EmbeddedFiles" - ], - "difficulty": "intermediate" - }, - { - "filename": "add-logo-to-pdf-and-convert-to-pptx.cs", - "title": "Add Logo to PDF and Convert to PPTX", - "description": "Loads a PDF, stamps a semi‑transparent company logo on each page, and then converts the modified document to a PPTX file using Aspose.Pdf.", - "tags": [ - "pdf", - "pptx", - "image-stamp", - "conversion", - "logo" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.ImageStamp", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.PptxSaveOptions", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "add-xml-attachment-to-pdfa1b-document.cs", - "title": "Add XML Attachment to PDF/A-1b Document", - "description": "Shows how to convert a PDF to PDF/A‑1b and embed an external XML file as a file‑attachment annotation on a page.", + "filename": "add-external-xml-attachment-to-pdfa.cs", + "title": "Add External XML Attachment to PDF/A‑1b Document", + "description": "Demonstrates converting a PDF to PDF/A‑1b and attaching an external XML file as a file‑attachment annotation on the first page.", "tags": [ "pdfa", "attachment", @@ -3031,24 +3593,40 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Document.Convert", - "Aspose.Pdf.PdfFormat", "Aspose.Pdf.FileSpecification", "Aspose.Pdf.Annotations.FileAttachmentAnnotation", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Color" ], "difficulty": "intermediate" }, { - "filename": "batch-convert-pdfs-to-jpeg-images.cs", - "title": "Batch Convert PDFs to JPEG Images with Custom Naming", - "description": "Demonstrates how to enumerate PDF files in a folder, convert each page to a JPEG image using Aspose.Pdf, and save the images with a custom _page.jpeg naming pattern.", + "filename": "add-logo-to-pdf-and-convert-to-pptx.cs", + "title": "Add Logo To Pdf And Convert To Pptx", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-xml-attachment-to-pdfa1b-document.cs", + "title": "Add Xml Attachment To Pdfa1B Document", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "batch-convert-pdfs-to-jpeg-custom-naming.cs", + "title": "Batch Convert PDFs to JPEG with Custom Naming", + "description": "Demonstrates how to convert all PDF files in a folder to JPEG images page‑by‑page using Aspose.Pdf, applying a custom file‑naming pattern for each output image.", "tags": [ "pdf", "jpeg", - "batch-conversion", - "image", - "aspose-pdf" + "batch", + "aspose.pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", @@ -3059,34 +3637,52 @@ ], "difficulty": "intermediate" }, + { + "filename": "batch-convert-pdfs-to-jpeg-images.cs", + "title": "Batch Convert Pdfs To Jpeg Images", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "batch-convert-pdfs-to-multi-page-tiff.cs", "title": "Batch Convert PDFs to Multi‑Page TIFF", - "description": "Shows how to iterate through a folder of PDF files and convert each document into a multi‑page TIFF archive using Aspose.Pdf's Document and TiffDevice classes.", + "description": "Demonstrates how to merge several PDF files into a single document and then convert the combined document into a multi‑page TIFF archive using default compression.", "tags": [ "pdf", "tiff", - "batch-conversion", - "aspose.pdf", - "csharp" + "conversion", + "batch", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Pages.Add", "Aspose.Pdf.Devices.TiffDevice", + "Aspose.Pdf.Devices.Resolution", "Aspose.Pdf.Devices.TiffDevice.Process" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "batch-convert-pdfs-to-png-preserve-hierarchy.cs", - "title": "Batch Convert PDFs to PNG Preserving Folder Hierarchy", - "description": "Shows how to recursively locate PDF files, keep their relative directory structure, and convert each page to PNG images using Aspose.Pdf.", + "title": "Batch Convert Pdfs To Png Preserve Hierarchy", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "batch-convert-pdfs-to-png.cs", + "title": "Batch Convert PDFs to PNG Preserving Folder Structure", + "description": "Demonstrates how to recursively locate PDF files, keep their relative folder hierarchy, and convert each page to a PNG image using Aspose.Pdf.", "tags": [ "pdf", "png", - "batch", - "folder-structure", - "conversion" + "batch-conversion", + "folder-hierarchy", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", @@ -3098,9 +3694,9 @@ "difficulty": "intermediate" }, { - "filename": "batch-convert-pdfs-to-pptx-slidesasimages.cs", + "filename": "batch-convert-pdfs-to-pptx-slides-as-images.cs", "title": "Batch Convert PDFs to PPTX with SlidesAsImages", - "description": "Demonstrates how to convert multiple PDF files in a folder to PPTX format, rendering each slide as an image by enabling the SlidesAsImages option.", + "description": "Iterates through PDF files in a folder and converts each to a PPTX presentation using Aspose.Pdf, enabling the SlidesAsImages option to rasterize each slide.", "tags": [ "pdf", "pptx", @@ -3110,17 +3706,25 @@ ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Document..ctor", "Aspose.Pdf.PptxSaveOptions", - "Aspose.Pdf.Document.Save", "Aspose.Pdf.PptxSaveOptions.SlidesAsImages", - "Aspose.Pdf.SaveOptions" + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, + { + "filename": "batch-convert-pdfs-to-pptx-slidesasimages.cs", + "title": "Batch Convert Pdfs To Pptx Slidesasimages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "convert-epub-to-pdf-custom-page-size.cs", "title": "Convert EPUB to PDF with Custom Page Size", - "description": "Demonstrates loading an EPUB file with EpubLoadOptions to set a custom page size and saving it as a PDF using Aspose.Pdf.", + "description": "Demonstrates loading an EPUB file with EpubLoadOptions to set a custom page size and converting it to a PDF document using Aspose.Pdf.", "tags": [ "epub", "pdf", @@ -3129,8 +3733,8 @@ "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.EpubLoadOptions", + "Aspose.Pdf.Document", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" @@ -3138,33 +3742,31 @@ { "filename": "convert-latex-to-pdf.cs", "title": "Convert LaTeX (.tex) to PDF with Aspose.Pdf", - "description": "Shows how to load a .tex file using TeXLoadOptions and convert it to a PDF document using Aspose.Pdf.", + "description": "Demonstrates loading a LaTeX (.tex) file using Aspose.Pdf's TeXLoadOptions and converting it to a PDF document while preserving equations and formatting.", "tags": [ "latex", "pdf", "conversion", - "aspose-pdf", + "aspose.pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.TeXLoadOptions", - "Aspose.Pdf.TeXLoadOptions.RasterizeFormulas", - "Aspose.Pdf.TeXLoadOptions.ShowTerminalOutput", "Aspose.Pdf.Document", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "convert-markdown-to-pdf.cs", - "title": "Convert Markdown to PDF with Code Block Preservation", - "description": "Demonstrates loading a Markdown file using MdLoadOptions and converting it to a PDF document while preserving code blocks.", + "filename": "convert-markdown-to-pdf-preserving-code-blocks.cs", + "title": "Convert Markdown to PDF Preserving Code Blocks", + "description": "Demonstrates loading a Markdown file with MdLoadOptions and converting it to a PDF while keeping code block formatting using Aspose.Pdf.", "tags": [ "markdown", "pdf", "conversion", - "aspose", - "code-blocks" + "code-blocks", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.MdLoadOptions", @@ -3173,16 +3775,24 @@ ], "difficulty": "beginner" }, + { + "filename": "convert-markdown-to-pdf.cs", + "title": "Convert Markdown To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "convert-ofd-to-pdf.cs", - "title": "Convert OFD to PDF", - "description": "Shows how to load an OFD document using OfdLoadOptions and save it as a PDF with default settings using Aspose.Pdf.", + "title": "Convert OFD to PDF with Aspose.Pdf", + "description": "Demonstrates loading an OFD file using OfdLoadOptions and saving it as a PDF with default settings.", "tags": [ - "ofd", - "pdf", + "OFD", + "PDF", "conversion", - "aspose", - "csharp" + "Aspose.Pdf", + "C#" ], "apis_used": [ "Aspose.Pdf.Document", @@ -3194,146 +3804,109 @@ { "filename": "convert-pcl-to-pdf-hpgl2.cs", "title": "Convert PCL to PDF with HP‑GL/2 Vectors", - "description": "Demonstrates loading a PCL file (including HP‑GL/2 vector graphics) using Aspose.Pdf and saving it as a PDF document.", + "description": "Demonstrates loading a PCL file (including HP‑GL/2 vector data) using Aspose.Pdf and saving it as a PDF document. The example creates a minimal PCL file for self‑containment and handles conversion errors gracefully.", "tags": [ "pcl", "pdf", "conversion", "hpgl2", - "aspose" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.PclLoadOptions", "Aspose.Pdf.Document", + "Aspose.Pdf.Document..ctor", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "convert-pdf-page-region-to-png.cs", - "title": "Convert PDF Page Region to PNG Image", - "description": "Shows how to extract a specific rectangular area from a PDF page and save it as a PNG file using Aspose.Pdf.", - "tags": [ - "pdf", - "png", - "region", - "crop", - "aspose" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Page.ConvertToPNGMemoryStream", - "Aspose.Pdf.Devices.PngDevice" - ], - "difficulty": "intermediate" + "title": "Convert Pdf Page Region To Png", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "convert-pdf-page-to-jpeg.cs", "title": "Convert PDF Page to JPEG Image", - "description": "Demonstrates how to convert a specific page of a PDF document to a JPEG image using Aspose.Pdf's JpegDevice with the default DPI.", + "description": "Demonstrates how to load a PDF, validate a page number, and convert that specific page to a JPEG image using Aspose.Pdf's JpegDevice with the default DPI.", "tags": [ "pdf", "jpeg", "conversion", - "page", - "aspose-pdf" + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.Devices.JpegDevice", - "Aspose.Pdf.Devices.JpegDevice.Process", - "Aspose.Pdf.Devices.ImageDevice" - ], - "difficulty": "beginner" - }, - { - "filename": "convert-pdf-pages-to-gif.cs", - "title": "Convert PDF Pages to GIF Images", - "description": "Shows how to load a PDF with Aspose.Pdf and convert each page to a GIF image using the GifDevice with default parameters.", - "tags": [ - "pdf", - "gif", - "conversion", - "aspose.pdf", - "image" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Devices.GifDevice", - "Aspose.Pdf.Devices.GifDevice.Process", + "Aspose.Pdf.Page", "Aspose.Pdf.PageCollection", - "Aspose.Pdf.Page" + "Aspose.Pdf.Devices.JpegDevice.Process" ], "difficulty": "beginner" }, { "filename": "convert-pdf-pages-to-html.cs", + "title": "Convert Pdf Pages To Html", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "convert-pdf-pages-to-separate-html-files.cs", "title": "Convert PDF Pages to Separate HTML Files", - "description": "Demonstrates how to convert each page of a PDF into an individual HTML file using Aspose.Pdf's HtmlSaveOptions with SplitIntoPages enabled.", + "description": "Demonstrates how to use Aspose.Pdf to convert each page of a PDF into its own HTML file by enabling the SplitIntoPages option.", "tags": [ "pdf", "html", "conversion", - "split-pages", - "aspose" + "split-into-pages", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.HtmlSaveOptions", - "Aspose.Pdf.HtmlSaveOptions.SplitIntoPages", - "Aspose.Pdf.HtmlSaveOptions.RasterImagesSavingMode", - "Aspose.Pdf.HtmlSaveOptions.RasterImagesSavingModes", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.HtmlSaveOptions.SplitIntoPages" ], "difficulty": "beginner" }, { "filename": "convert-pdf-to-bmp-images.cs", "title": "Convert PDF to BMP Images", - "description": "Demonstrates how to convert each page of a PDF document into separate BMP image files using Aspose.Pdf's BmpDevice with default settings.", + "description": "Shows how to load a PDF with Aspose.Pdf, iterate through its pages, and render each page to a BMP file using BmpDevice with default settings.", "tags": [ "pdf", "bmp", "conversion", - "aspose.pdf", + "aspose-pdf", "image" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Devices.BmpDevice", - "Aspose.Pdf.Page", + "Aspose.Pdf.Document.Pages", "Aspose.Pdf.Devices.BmpDevice.Process", - "Aspose.Pdf.Document.Pages" + "Aspose.Pdf.Page" ], "difficulty": "beginner" }, { "filename": "convert-pdf-to-doc-custom-recognition.cs", - "title": "Convert PDF to DOC with Images Using Custom Recognition Mode", - "description": "Demonstrates converting a PDF file to a DOC document with Aspose.Pdf while preserving images by using the Flow recognition mode and setting a higher image resolution.", - "tags": [ - "pdf", - "doc", - "conversion", - "images", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.DocSaveOptions", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.DocSaveOptions.RecognitionMode", - "Aspose.Pdf.DocSaveOptions.DocFormat" - ], - "difficulty": "beginner" + "title": "Convert Pdf To Doc Custom Recognition", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "convert-pdf-to-doc-default.cs", "title": "Convert PDF to DOC with Default Settings", - "description": "Shows how to load a PDF and save it as a DOC file using Aspose.Pdf with default text extraction options.", + "description": "Demonstrates converting a PDF file to the legacy DOC format using Aspose.Pdf with default text extraction settings.", "tags": [ "pdf", "doc", @@ -3350,35 +3923,35 @@ "difficulty": "beginner" }, { - "filename": "convert-pdf-to-doc-text-mode.cs", - "title": "Convert PDF to DOC Using Textbox Mode", - "description": "Loads a PDF file, configures DocSaveOptions to use the Textbox recognition mode for plain‑text extraction, and saves the document as a DOC file.", + "filename": "convert-pdf-to-doc-image-extraction.cs", + "title": "Convert PDF to DOC with Image Extraction (Textbox Mode)", + "description": "Demonstrates how to convert a PDF file to a DOC document using Aspose.Pdf with custom recognition mode (Textbox) to extract only images.", "tags": [ "pdf", "doc", "conversion", - "text-extraction", + "image-extraction", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.DocSaveOptions", "Aspose.Pdf.DocSaveOptions.Format", - "Aspose.Pdf.DocSaveOptions.RecognitionMode", + "Aspose.Pdf.DocSaveOptions.Mode", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "convert-pdf-to-docx-and-zip.cs", - "title": "Convert PDF to DOCX and Zip the Result", - "description": "Demonstrates converting a PDF file to DOCX using Aspose.Pdf and then compressing the generated DOCX into a ZIP archive for storage.", + "filename": "convert-pdf-to-doc-plain-text.cs", + "title": "Convert PDF to DOC with Plain Text Extraction", + "description": "Shows how to convert a PDF file to a DOC file using Aspose.Pdf, configuring DocSaveOptions to extract only plain text via the Textbox recognition mode.", "tags": [ "pdf", - "docx", + "doc", "conversion", - "zip", - "aspose" + "plaintext", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", @@ -3387,78 +3960,89 @@ "Aspose.Pdf.DocSaveOptions.RecognitionMode", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "convert-pdf-to-docx-auto-detection.cs", - "title": "Convert PDF to DOCX with Automatic Content Detection", - "description": "Demonstrates loading a PDF using Aspose.Pdf and saving it as a DOCX with DocSaveOptions set to RecognitionMode.Flow for automatic content detection.", + "filename": "convert-pdf-to-doc-text-mode.cs", + "title": "Convert Pdf To Doc Text Mode", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "convert-pdf-to-docx-add-table-of-figures.cs", + "title": "Convert PDF to DOCX and Add Table of Figures", + "description": "Demonstrates converting a PDF file to DOCX using Aspose.Pdf while extracting images, generating captions, and inserting a table of figures into the document.", "tags": [ "pdf", "docx", - "conversion", - "aspose-pdf", - "recognition-mode" + "table-of-figures", + "image-captions", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.DocSaveOptions", - "Aspose.Pdf.DocSaveOptions.RecognitionMode", - "Aspose.Pdf.DocSaveOptions.DocFormat", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page", + "Aspose.Pdf.XImage", + "Aspose.Pdf.Tagged.ITaggedContent", + "Aspose.Pdf.Tagged.StructureElement", + "Aspose.Pdf.Tagged.TableElement", + "Aspose.Pdf.DocSaveOptions" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "convert-pdf-to-docx-enhanced-recognition.cs", - "title": "Convert PDF to DOCX with Enhanced Table and Graphic Recognition", - "description": "Demonstrates how to convert a PDF file to a DOCX document using Aspose.Pdf with the EnhancedFlow recognition mode to better handle complex tables and graphics.", + "filename": "convert-pdf-to-docx-and-pdfa.cs", + "title": "Convert PDF to DOCX and then to PDF/A", + "description": "Demonstrates loading a PDF with Aspose.Pdf, converting it to a DOCX file, and then creating a PDF/A‑1B compliant document from the generated DOCX.", "tags": [ "pdf", "docx", + "pdfa", "conversion", - "enhanced-recognition", - "tables" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.DocSaveOptions", + "Aspose.Pdf.DocSaveOptions.DocFormat", "Aspose.Pdf.DocSaveOptions.RecognitionMode", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.DocSaveOptions.RecognizeBullets" + "Aspose.Pdf.Document.Convert" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "convert-pdf-to-docx-extract-images.cs", - "title": "Convert PDF to DOCX and Extract Embedded Images", - "description": "Demonstrates how to convert a PDF file to DOCX format using Aspose.Pdf and then iterate through each page to extract all embedded images into a specified folder.", + "filename": "convert-pdf-to-docx-and-zip.cs", + "title": "Convert PDF to DOCX and Zip the Result", + "description": "Shows how to use Aspose.Pdf to convert a PDF file to DOCX format and then compress the generated DOCX into a ZIP archive for storage.", "tags": [ "pdf", "docx", - "image-extraction", "conversion", - "aspose-pdf" + "zip", + "compression" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.DocSaveOptions", - "Aspose.Pdf.Page", - "Aspose.Pdf.XImage", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.XImage.Save" + "Aspose.Pdf.DocSaveOptions.Format", + "Aspose.Pdf.DocSaveOptions.Mode", + "Aspose.Pdf.DocSaveOptions.RecognizeBullets" ], "difficulty": "intermediate" }, { - "filename": "convert-pdf-to-docx-preserve-layout.cs", - "title": "Convert PDF to DOCX with Layout Preservation", - "description": "Demonstrates how to convert a PDF file to a DOCX document using Aspose.Pdf while preserving the original layout via standard recognition mode.", + "filename": "convert-pdf-to-docx-auto-detection.cs", + "title": "Convert PDF to DOCX with Automatic Content Detection", + "description": "Demonstrates how to convert a PDF file to DOCX using Aspose.Pdf with the DocSaveOptions.Mode set to Flow for automatic content detection.", "tags": [ "pdf", "docx", "conversion", - "layout", + "autosave", "aspose-pdf" ], "apis_used": [ @@ -3471,152 +4055,242 @@ "difficulty": "beginner" }, { - "filename": "convert-pdf-to-docx-with-embedded-fonts.cs", - "title": "Convert PDF to DOCX with Embedded Fonts", - "description": "Demonstrates loading a PDF with Aspose.Pdf, configuring DocSaveOptions to embed fonts, and saving the document as a DOCX file.", + "filename": "convert-pdf-to-docx-enhanced-flow.cs", + "title": "Convert PDF to DOCX with Enhanced Flow Mode", + "description": "Demonstrates how to convert a PDF file to a DOCX document using Aspose.Pdf with the enhanced flow recognition mode to preserve complex tables and graphics.", "tags": [ "pdf", "docx", "conversion", - "fonts", - "aspose-pdf" + "enhanced-flow", + "tables" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.DocSaveOptions", - "Aspose.Pdf.DocSaveOptions.DocFormat", "Aspose.Pdf.DocSaveOptions.RecognitionMode", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.DocSaveOptions.RecognizeBullets" + ], + "difficulty": "beginner" + }, + { + "filename": "convert-pdf-to-docx-enhanced-recognition.cs", + "title": "Convert Pdf To Docx Enhanced Recognition", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "convert-pdf-to-docx-extract-images.cs", + "title": "Convert PDF to DOCX and Extract Embedded Images", + "description": "Demonstrates how to convert a PDF file to DOCX format using Aspose.Pdf and then iterate through each page to extract all embedded images into a specified folder.", + "tags": [ + "pdf", + "docx", + "image-extraction", + "conversion", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.DocSaveOptions", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Page", + "Aspose.Pdf.XImage.Save" + ], + "difficulty": "intermediate" + }, + { + "filename": "convert-pdf-to-docx-layout.cs", + "title": "Convert PDF to DOCX with Layout Preservation", + "description": "Demonstrates converting a PDF file to a DOCX document using Aspose.Pdf's standard textbox recognition mode to preserve the original layout.", + "tags": [ + "pdf", + "docx", + "conversion", + "layout", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.DocSaveOptions", + "Aspose.Pdf.DocSaveOptions.RecognitionMode", + "Aspose.Pdf.DocSaveOptions.DocFormat", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner" + }, + { + "filename": "convert-pdf-to-docx-preserve-layout.cs", + "title": "Convert Pdf To Docx Preserve Layout", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "convert-pdf-to-docx-with-embedded-fonts.cs", + "title": "Convert PDF to DOCX with Embedded Fonts", + "description": "Demonstrates converting a PDF file to a DOCX document using Aspose.Pdf while embedding fonts to preserve layout and appearance.", + "tags": [ + "pdf", + "docx", + "conversion", + "font-embedding", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.DocSaveOptions", + "Aspose.Pdf.DocSaveOptions.DocFormat", + "Aspose.Pdf.DocSaveOptions.RecognitionMode", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "convert-pdf-to-docx-with-footnotes.cs", - "title": "Convert PDF to DOCX with Footnote Preservation", - "description": "Demonstrates converting a PDF file to DOCX using Aspose.Pdf while enabling enhanced flow recognition to preserve footnotes.", + "title": "Convert PDF to DOCX with Footnotes Preservation", + "description": "Demonstrates converting a PDF file to DOCX using Aspose.Pdf while preserving footnotes by enabling the EnhancedFlow recognition mode.", "tags": [ "pdf", "docx", "conversion", "footnotes", - "enhanced-recognition" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.DocSaveOptions", + "Aspose.Pdf.DocSaveOptions.DocFormat", "Aspose.Pdf.DocSaveOptions.RecognitionMode", - "Aspose.Pdf.DocSaveOptions.Mode", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "convert-pdf-to-docx-with-hyphenation.cs", - "title": "Convert PDF to DOCX with Language‑Specific Hyphenation", - "description": "Shows how to load a PDF, set its language to enable hyphenation, configure DOCX save options, and save the document as a DOCX file using Aspose.Pdf.", + "title": "Convert PDF to DOCX with Hyphenation and Flow Settings", + "description": "Demonstrates converting a PDF file to DOCX using Aspose.Pdf while applying flow‑based recognition and language‑aware hyphenation settings.", "tags": [ "pdf", "docx", "conversion", "hyphenation", - "aspose-pdf" + "flow-recognition" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.ITaggedContent.SetLanguage", "Aspose.Pdf.DocSaveOptions", "Aspose.Pdf.DocSaveOptions.Format", - "Aspose.Pdf.DocSaveOptions.RecognizeBullets" + "Aspose.Pdf.DocSaveOptions.Mode", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "convert-pdf-to-docx-with-metadata.cs", - "title": "Convert PDF to DOCX with Custom Metadata", - "description": "Shows how to load a PDF using Aspose.Pdf, set author and title metadata, and convert it to a DOCX file with specific save options.", + "title": "Convert PDF to DOCX with Author and Title Metadata", + "description": "Demonstrates loading a PDF with Aspose.Pdf, setting author and title metadata, and converting it to an editable DOCX using DocSaveOptions.", "tags": [ "pdf", "docx", - "conversion", "metadata", - "aspose-pdf" + "conversion", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.DocumentInfo", "Aspose.Pdf.DocSaveOptions", + "Aspose.Pdf.Document.Save", "Aspose.Pdf.DocSaveOptions.Format", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.DocSaveOptions.RecognitionMode" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "convert-pdf-to-docx-with-table-of-figures.cs", - "title": "Convert PDF to DOCX with Table of Figures", - "description": "Demonstrates loading a PDF, creating a tagged Table of Figures from extracted images, and saving the result as a DOCX document.", + "filename": "convert-pdf-to-docx-with-stats.cs", + "title": "Convert PDF to DOCX with Conversion Statistics", + "description": "Demonstrates how to use Aspose.Pdf to convert a PDF file to DOCX format while capturing conversion metrics such as file sizes, page count, and elapsed time, and outputs the results as JSON.", "tags": [ "pdf", "docx", "conversion", - "table-of-figures", - "tagged-content" + "statistics", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.StructureElement", - "Aspose.Pdf.Tagged.TableElement", - "Aspose.Pdf.Drawing.XImage", - "Aspose.Pdf.SaveFormat" + "Aspose.Pdf.DocSaveOptions", + "Aspose.Pdf.DocSaveOptions.DocFormat", + "Aspose.Pdf.DocSaveOptions.RecognitionMode", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "convert-pdf-to-emf.cs", - "title": "Convert PDF Pages to EMF Images", - "description": "Shows how to load a PDF document and convert each page to a vector EMF image using Aspose.Pdf's EmfDevice.", + "filename": "convert-pdf-to-docx-with-table-of-figures.cs", + "title": "Convert Pdf To Docx With Table Of Figures", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "convert-pdf-to-emf-images.cs", + "title": "Convert PDF Pages to EMF Images with Vector Preservation", + "description": "Demonstrates how to load a PDF document and convert each page to an EMF image using Aspose.Pdf's EmfDevice while preserving vector data.", "tags": [ "pdf", "emf", "conversion", "vector", - "aspose-pdf" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Devices.Resolution", "Aspose.Pdf.Devices.EmfDevice", - "Aspose.Pdf.Page", + "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.PageCollection", "Aspose.Pdf.Devices.EmfDevice.Process" ], - "difficulty": "intermediate" + "difficulty": "beginner" + }, + { + "filename": "convert-pdf-to-emf.cs", + "title": "Convert Pdf To Emf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "convert-pdf-to-epub-with-cover.cs", - "title": "Convert PDF to EPUB with Custom Cover and Metadata", - "description": "Shows how to convert a PDF file to EPUB using Aspose.Pdf, set PDF/EPUB metadata, and optionally attach a cover image.", + "title": "Convert PDF to EPUB with Custom Cover Image and Metadata", + "description": "Demonstrates converting a PDF to an EPUB file while adding a custom cover page, setting document metadata, and configuring EPUB save options using Aspose.Pdf.", "tags": [ "pdf", "epub", "conversion", - "metadata", - "cover-image" + "cover-image", + "metadata" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.DocumentInfo", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.EpubSaveOptions", - "Aspose.Pdf.Drawing.Image", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "convert-pdf-to-epub.cs", - "title": "Convert PDF to EPUB", - "description": "Shows how to load a PDF document with Aspose.Pdf and save it as an EPUB file using the default conversion settings.", + "title": "Convert PDF to EPUB with Aspose.Pdf", + "description": "Demonstrates loading a PDF file and saving it as an EPUB using Aspose.Pdf with the default conversion settings.", "tags": [ "pdf", "epub", @@ -3631,10 +4305,29 @@ ], "difficulty": "beginner" }, + { + "filename": "convert-pdf-to-gif-images.cs", + "title": "Convert PDF to GIF Images", + "description": "Shows how to convert each page of a PDF document into separate GIF files using Aspose.Pdf's GifDevice with default parameters.", + "tags": [ + "pdf", + "gif", + "conversion", + "image", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Devices.GifDevice", + "Aspose.Pdf.PageCollection", + "Aspose.Pdf.Devices.GifDevice.Process" + ], + "difficulty": "beginner" + }, { "filename": "convert-pdf-to-html-and-minify.cs", - "title": "Convert PDF to HTML and Minify the Result", - "description": "Demonstrates loading a PDF with Aspose.Pdf, optimizing it, converting it to a single HTML file, and then minifying the HTML to reduce size for faster web loading.", + "title": "Convert PDF to Single-File HTML and Minify Output", + "description": "Demonstrates converting a PDF to a single HTML file using Aspose.Pdf and then minifying the generated HTML by stripping comments and collapsing whitespace.", "tags": [ "pdf", "html", @@ -3644,32 +4337,41 @@ ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Save", "Aspose.Pdf.HtmlSaveOptions", - "Aspose.Pdf.HtmlSaveOptions.PartsEmbeddingModes", - "Aspose.Pdf.Document.Optimize", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.HtmlSaveOptions.RasterImagesSavingModes", + "Aspose.Pdf.HtmlSaveOptions.SplitIntoPages" ], "difficulty": "intermediate" }, { - "filename": "convert-pdf-to-html-and-pptx.cs", - "title": "Convert PDF to HTML with Embedded Fonts and to PPTX", - "description": "Shows how to convert a PDF document to an HTML file with all fonts embedded, then convert the same PDF to a PPTX presentation using Aspose.Pdf.", + "filename": "convert-pdf-to-html-and-pptx-with-embedded-fonts.cs", + "title": "Convert PDF to HTML and PPTX with Embedded Fonts", + "description": "The example loads a PDF, converts it to an HTML file with embedded fonts and resources, and then creates a PPTX presentation with cached glyphs to ensure uniform appearance across viewers.", "tags": [ - "pdf", - "html", - "pptx", - "conversion", - "fonts" + "pdf conversion", + "html export", + "pptx export", + "embedded fonts", + "aspose.pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.HtmlSaveOptions", "Aspose.Pdf.PptxSaveOptions", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.HtmlSaveOptions.FontSavingModes" ], "difficulty": "intermediate" }, + { + "filename": "convert-pdf-to-html-and-pptx.cs", + "title": "Convert Pdf To Html And Pptx", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "convert-pdf-to-html-compressed-svg.cs", "title": "Convert PDF to HTML with Compressed SVG Images", @@ -3684,16 +4386,36 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.HtmlSaveOptions", - "Aspose.Pdf.HtmlSaveOptions.CompressSvgGraphicsIfAny", "Aspose.Pdf.Document.Save", + "Aspose.Pdf.HtmlSaveOptions.CompressSvgGraphicsIfAny", "Aspose.Pdf.SaveOptions" ], "difficulty": "beginner" }, + { + "filename": "convert-pdf-to-html-docx-with-embedded-fonts.cs", + "title": "Convert PDF to HTML and DOCX with Embedded Fonts", + "description": "Demonstrates converting a PDF to HTML with all fonts embedded, then converting the same PDF to DOCX while embedding custom fonts using Aspose.Pdf.", + "tags": [ + "pdf", + "html", + "docx", + "font-embedding", + "conversion" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.HtmlSaveOptions", + "Aspose.Pdf.DocSaveOptions", + "Aspose.Pdf.HtmlSaveOptions.FontSavingModes", + "Aspose.Pdf.HtmlSaveOptions.PartsEmbeddingModes" + ], + "difficulty": "intermediate" + }, { "filename": "convert-pdf-to-html-pages-with-index.cs", - "title": "Convert PDF to HTML Pages and Create Index", - "description": "The example converts a PDF document into separate HTML files—one per page—using Aspose.Pdf, then generates an index.html that links to each generated page.", + "title": "Convert PDF to Separate HTML Pages with Index", + "description": "Loads a PDF with Aspose.Pdf, converts each page into an individual HTML file, and creates an index.html that links to all generated pages.", "tags": [ "pdf", "html", @@ -3705,79 +4427,103 @@ "Aspose.Pdf.Document", "Aspose.Pdf.HtmlSaveOptions", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Document.Pages" + "Aspose.Pdf.HtmlSaveOptions.SplitIntoPages" ], "difficulty": "intermediate" }, { "filename": "convert-pdf-to-html-per-page-image-subfolders.cs", - "title": "Convert PDF to HTML with Per-Page Image Subfolders", - "description": "Demonstrates converting a PDF to HTML using Aspose.Pdf while storing each page's raster images in separate subfolders via a custom resource-saving strategy.", + "title": "Convert Pdf To Html Per Page Image Subfolders", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "convert-pdf-to-html-png-background.cs", + "title": "Convert PDF to HTML with PNG Page Backgrounds", + "description": "Shows how to convert a PDF document to HTML using Aspose.Pdf while rendering each page's background images as a single embedded PNG.", "tags": [ "pdf", "html", - "image-extraction", - "aspose-pdf", - "custom-resource-saving" + "conversion", + "png", + "background" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.HtmlSaveOptions", "Aspose.Pdf.HtmlSaveOptions.RasterImagesSavingModes", - "Aspose.Pdf.HtmlSaveOptions.HtmlImageSavingInfo", + "Aspose.Pdf.HtmlSaveOptions.PartsEmbeddingModes", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "convert-pdf-to-html-png-page-background.cs", + "filename": "convert-pdf-to-html-png-background__v2.cs", "title": "Convert PDF to HTML with PNG Page Backgrounds", - "description": "Demonstrates how to convert a PDF document to HTML while embedding each page's background images as a single PNG. Uses Aspose.Pdf's HtmlSaveOptions to control raster image saving mode.", + "description": "Shows how to convert a PDF to HTML using Aspose.Pdf and configure HtmlSaveOptions to render each page background as an embedded PNG image.", "tags": [ "pdf", "html", "conversion", "png", - "background" + "aspose.pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.HtmlSaveOptions", + "Aspose.Pdf.HtmlSaveOptions.RasterImagesSavingMode", "Aspose.Pdf.HtmlSaveOptions.RasterImagesSavingModes", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, + { + "filename": "convert-pdf-to-html-png-page-background.cs", + "title": "Convert Pdf To Html Png Page Background", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "convert-pdf-to-html-png-page-background__v2.cs", - "title": "Convert PDF to HTML with PNG Page Backgrounds", - "description": "Demonstrates how to convert a PDF document to HTML while rendering each page's background as an embedded PNG image using Aspose.Pdf.", + "title": "Convert Pdf To Html Png Page Background__V2", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "convert-pdf-to-html-sitemap.cs", + "title": "Convert PDF to HTML and Generate Sitemap XML", + "description": "Shows how to convert a PDF document to a single HTML file with Aspose.Pdf and then create a sitemap.xml that lists the generated HTML page for SEO purposes.", "tags": [ "pdf", "html", + "sitemap", "conversion", - "png", - "background" + "seo" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.HtmlSaveOptions", - "Aspose.Pdf.HtmlSaveOptions.RasterImagesSavingMode", - "Aspose.Pdf.HtmlSaveOptions.RasterImagesSavingModes", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.HtmlSaveOptions.SplitIntoPages", + "Aspose.Pdf.Document.Dispose" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "convert-pdf-to-html-with-custom-css.cs", "title": "Convert PDF to HTML with Custom CSS", - "description": "Shows how to convert a PDF document to HTML using Aspose.Pdf and apply a custom CSS file by providing a custom CSS saving strategy.", + "description": "Demonstrates converting a PDF document to HTML using Aspose.Pdf and injecting a user‑provided CSS file via a custom CSS saving strategy.", "tags": [ "pdf", "html", - "css", "conversion", + "css", "aspose" ], "apis_used": [ @@ -3785,35 +4531,42 @@ "Aspose.Pdf.HtmlSaveOptions", "Aspose.Pdf.HtmlSaveOptions.CssSavingStrategy", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.HtmlSaveOptions.CssClassNamesPrefix" + "Aspose.Pdf.HtmlSaveOptions.Title" ], "difficulty": "intermediate" }, { "filename": "convert-pdf-to-html-with-custom-font.cs", - "title": "Convert PDF to HTML with Custom Font Embedding", - "description": "Shows how to convert a PDF to HTML using Aspose.Pdf and embed a custom WOFF font via a generated @font-face rule in the CSS.", + "title": "Convert Pdf To Html With Custom Font", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "convert-pdf-to-html-with-embedded-custom-fonts.cs", + "title": "Convert PDF to HTML with Embedded Custom Fonts", + "description": "Shows how to convert a PDF to HTML using Aspose.Pdf and embed a custom TrueType font as WOFF with @font-face rules in the generated CSS.", "tags": [ "pdf", "html", "font-embedding", - "aspose", + "aspose-pdf", "conversion" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.HtmlSaveOptions", "Aspose.Pdf.HtmlSaveOptions.FontSavingModes", - "Aspose.Pdf.HtmlSaveOptions.CustomCssSavingStrategy", - "Aspose.Pdf.HtmlSaveOptions.SpecialFolderForAllImages", - "Aspose.Pdf.HtmlSaveOptions.CssSavingInfo" + "Aspose.Pdf.FileFontSource", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "convert-pdf-to-html-with-svg-compression.cs", "title": "Convert PDF to HTML with SVG Compression", - "description": "Shows how to convert a PDF file to HTML using Aspose.Pdf and enable SVG graphics compression to reduce the size of embedded SVG images.", + "description": "Demonstrates converting a PDF file to HTML using Aspose.Pdf while enabling SVG graphics compression to reduce the size of embedded SVG images.", "tags": [ "pdf", "html", @@ -3825,14 +4578,15 @@ "Aspose.Pdf.Document", "Aspose.Pdf.HtmlSaveOptions", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.HtmlSaveOptions.CompressSvgGraphicsIfAny" + "Aspose.Pdf.HtmlSaveOptions.CompressSvgGraphicsIfAny", + "Aspose.Pdf.SaveOptions" ], "difficulty": "beginner" }, { "filename": "convert-pdf-to-html-with-svg-images.cs", - "title": "Convert PDF to HTML with SVG Images Saved to Folder", - "description": "Demonstrates converting a PDF to HTML using Aspose.Pdf, saving raster images as external PNG files referenced via SVG and storing the generated SVG images in a specified folder.", + "title": "Convert PDF to HTML with SVG Images", + "description": "Demonstrates how to convert a PDF document to an HTML file while extracting each page's vector graphics as separate SVG files stored in a designated folder.", "tags": [ "pdf", "html", @@ -3844,60 +4598,77 @@ "Aspose.Pdf.Document", "Aspose.Pdf.HtmlSaveOptions", "Aspose.Pdf.HtmlSaveOptions.RasterImagesSavingModes", - "Aspose.Pdf.HtmlSaveOptions.PartsEmbeddingModes", + "Aspose.Pdf.HtmlSaveOptions.SpecialFolderForSvgImages", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "convert-pdf-to-html-zip-archive.cs", - "title": "Convert PDF to HTML and Package into ZIP Archive", - "description": "Demonstrates converting a PDF into split HTML pages with external assets using Aspose.Pdf, then bundling the HTML files and assets into a ZIP file for distribution.", + "title": "Convert Pdf To Html Zip Archive", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "convert-pdf-to-html-zip.cs", + "title": "Convert PDF to Multi-Page HTML and Zip the Output", + "description": "Shows how to use Aspose.Pdf to convert a PDF into separate HTML pages with assets and then package the generated files into a ZIP archive.", "tags": [ "pdf", "html", "conversion", "zip", - "assets" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.HtmlSaveOptions", - "Aspose.Pdf.HtmlSaveOptions.RasterImagesSavingModes", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.HtmlSaveOptions.PartsEmbeddingModes", + "Aspose.Pdf.HtmlSaveOptions.RasterImagesSavingModes" ], "difficulty": "intermediate" }, { "filename": "convert-pdf-to-jpeg-images.cs", - "title": "Convert PDF to JPEG Images", - "description": "Demonstrates how to load a PDF with Aspose.Pdf and export each page as a JPEG image using JpegDevice with default quality.", + "title": "Convert Pdf To Jpeg Images", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "convert-pdf-to-jpeg.cs", + "title": "Convert PDF Pages to JPEG Images", + "description": "Shows how to load a PDF with Aspose.Pdf and convert each page to a JPEG image using JpegDevice with the default quality settings.", "tags": [ "pdf", "jpeg", "conversion", - "aspose-pdf", - "image-export" + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Devices.JpegDevice", - "Aspose.Pdf.Devices.JpegDevice.Process", "Aspose.Pdf.PageCollection", - "Aspose.Pdf.Page" + "Aspose.Pdf.Page", + "Aspose.Pdf.Devices.JpegDevice.Process" ], "difficulty": "beginner" }, { "filename": "convert-pdf-to-latex-with-custom-macros.cs", - "title": "Convert PDF to LaTeX with Custom Macros", - "description": "Demonstrates converting a PDF file to LaTeX using Aspose.Pdf and prepending custom macro definitions for special symbols.", + "title": "Convert PDF to LaTeX with Custom Macro Definitions", + "description": "Demonstrates how to convert a PDF document to a LaTeX (.tex) file using Aspose.Pdf and prepend custom macro definitions for special symbols.", "tags": [ "pdf", "latex", "conversion", - "macros", - "aspose" + "aspose-pdf", + "custom-macros" ], "apis_used": [ "Aspose.Pdf.Document", @@ -3908,14 +4679,22 @@ }, { "filename": "convert-pdf-to-latex-with-output-directory.cs", - "title": "Convert PDF to LaTeX with Specified Output Directory", - "description": "Demonstrates loading a PDF using Aspose.Pdf, configuring TeXSaveOptions to set an output directory, and saving the document as a LaTeX (.tex) file.", + "title": "Convert Pdf To Latex With Output Directory", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "convert-pdf-to-latex.cs", + "title": "Convert PDF to LaTeX with TeXSaveOptions", + "description": "Shows how to load a PDF using Aspose.Pdf and export it to a LaTeX .tex file with TeXSaveOptions, specifying an output directory for auxiliary files.", "tags": [ "pdf", "latex", "conversion", - "output-directory", - "aspose-pdf" + "aspose.pdf", + "texsaveoptions" ], "apis_used": [ "Aspose.Pdf.Document", @@ -3925,73 +4704,77 @@ "difficulty": "beginner" }, { - "filename": "convert-pdf-to-markdown-with-custom-heading-mapping.cs", - "title": "Convert PDF to Markdown with Custom Heading Mapping", - "description": "Demonstrates loading a PDF with Aspose.Pdf, configuring MarkdownSaveOptions to use heuristic heading recognition and a custom heading level threshold, and saving the result as a Markdown file.", + "filename": "convert-pdf-to-markdown-default-options.cs", + "title": "Convert PDF to Markdown with Default Options", + "description": "Demonstrates loading a PDF file with Aspose.Pdf and saving it as a Markdown document using the default MarkdownSaveOptions.", "tags": [ "pdf", "markdown", "conversion", - "heading", - "aspose-pdf" + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.MarkdownSaveOptions", - "Aspose.Pdf.HeadingRecognitionStrategy", - "Aspose.Pdf.HeadingLevels", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, + { + "filename": "convert-pdf-to-markdown-with-custom-heading-mapping.cs", + "title": "Convert Pdf To Markdown With Custom Heading Mapping", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "convert-pdf-to-markdown.cs", - "title": "Convert PDF to Markdown", - "description": "Shows how to load a PDF document with Aspose.Pdf and save it as a Markdown file using the default MarkdownSaveOptions.", - "tags": [ - "pdf", - "markdown", - "conversion", - "aspose", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.MarkdownSaveOptions", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner" + "title": "Convert Pdf To Markdown", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "convert-pdf-to-mobixml-with-custom-metadata.cs", - "title": "Convert PDF to MobiXml with Custom Metadata", - "description": "Demonstrates converting a PDF to MobiXml format using Aspose.Pdf while setting the standard Author metadata and a custom Publisher metadata field.", + "title": "Convert Pdf To Mobixml With Custom Metadata", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "convert-pdf-to-mobixml-with-metadata.cs", + "title": "Convert PDF to MobiXml with Author and Publisher Metadata", + "description": "Demonstrates loading a PDF using Aspose.Pdf, setting both standard (author) and custom (publisher) metadata, and saving the document as a MobiXml file.", "tags": [ "pdf", "mobixml", "metadata", "conversion", - "aspose" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.DocumentInfo", "Aspose.Pdf.MobiXmlSaveOptions", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.DocumentInfo.this[string]" + "Aspose.Pdf.DocumentInfo.Author" ], "difficulty": "beginner" }, { "filename": "convert-pdf-to-mobixml.cs", - "title": "Convert PDF to MobiXML", - "description": "Demonstrates how to load a PDF file with Aspose.Pdf and save it as a MobiXML document using the default MobiXmlSaveOptions.", + "title": "Convert PDF to MobiXml with Aspose.Pdf", + "description": "Shows how to load a PDF file and save it as a MobiXml document using Aspose.Pdf's default MobiXmlSaveOptions.", "tags": [ "pdf", "mobixml", "conversion", - "csharp", - "aspose" + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", @@ -4003,27 +4786,27 @@ { "filename": "convert-pdf-to-multi-page-html.cs", "title": "Convert PDF to Multi-Page HTML with SplitIntoPages", - "description": "Demonstrates loading a PDF with Aspose.Pdf, configuring HtmlSaveOptions to split the output into separate HTML files per page, and saving the result.", + "description": "Demonstrates loading a PDF with Aspose.Pdf, configuring HtmlSaveOptions to split each page into separate HTML files, and saving the result to a folder.", "tags": [ "pdf", "html", "conversion", "split-into-pages", - "Aspose.Pdf" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.HtmlSaveOptions", "Aspose.Pdf.HtmlSaveOptions.RasterImagesSavingModes", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.HtmlSaveOptions.SplitIntoPages" + "Aspose.Pdf.HtmlSaveOptions.PartsEmbeddingModes", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "convert-pdf-to-multi-page-tiff.cs", "title": "Convert PDF to Multi-Page TIFF using TiffDevice", - "description": "Shows how to load a PDF and convert all its pages into a single multi-page TIFF file with custom resolution and TIFF settings using Aspose.Pdf.", + "description": "Demonstrates how to convert all pages of a PDF into a single multi-page TIFF image using Aspose.Pdf's TiffDevice with custom resolution and settings.", "tags": [ "pdf", "tiff", @@ -4037,57 +4820,45 @@ "Aspose.Pdf.Devices.TiffSettings", "Aspose.Pdf.Devices.TiffDevice", "Aspose.Pdf.Devices.TiffDevice.Process", - "Aspose.Pdf.Devices.CompressionType" + "Aspose.Pdf.Devices.CompressionType", + "Aspose.Pdf.Devices.ColorDepth", + "Aspose.Pdf.Devices.ShapeType" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "convert-pdf-to-multi-page-tiff__v2.cs", - "title": "Convert PDF to Multi-Page TIFF", - "description": "Shows how to load a PDF with Aspose.Pdf and use TiffDevice to convert all pages into a single multi-page TIFF file using default settings.", + "title": "Convert PDF to Multi‑Page TIFF", + "description": "Shows how to load a PDF with Aspose.Pdf and use TiffDevice to convert all pages into a single multi‑page TIFF file using default settings.", "tags": [ "pdf", "tiff", "conversion", - "aspose", - "csharp" + "aspose-pdf", + "multpage" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Devices.TiffDevice", - "Aspose.Pdf.Devices.TiffDevice.Process", - "Aspose.Pdf.Devices", - "Aspose.Pdf" + "Aspose.Pdf.Devices.TiffDevice.Process" ], "difficulty": "beginner" }, { "filename": "convert-pdf-to-pdfa-1b-and-validate.cs", - "title": "Convert PDF to PDF/A‑1b and Validate", - "description": "Loads a PDF, converts it to PDF/A‑1b format, validates the result against PDF/A‑1b compliance, and saves the compliant document.", - "tags": [ - "pdf", - "pdfa", - "conversion", - "validation", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Convert", - "Aspose.Pdf.Document.Validate", - "Aspose.Pdf.PdfFormat", - "Aspose.Pdf.ConvertErrorAction" - ], - "difficulty": "intermediate" + "title": "Convert Pdf To Pdfa 1B And Validate", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "convert-pdf-to-pdfa-3b-throw-on-error.cs", - "title": "Convert PDF to PDF/A-3b with Throw on Conversion Errors", - "description": "Demonstrates loading a PDF, configuring conversion options for PDF/A‑3b with ConvertErrorAction set to throw exceptions on errors, performing the conversion, saving the result, and handling conversion‑specific exceptions.", + "filename": "convert-pdf-to-pdfa-1b-skip-errors.cs", + "title": "Convert PDF to PDF/A‑1b with Skip Error Action", + "description": "Demonstrates how to convert a PDF file to PDF/A‑1b format while setting ConvertErrorAction to skip non‑convertible elements, using Aspose.Pdf.", "tags": [ "pdf", - "pdfa-3b", + "pdfa", "conversion", "error-handling", "aspose-pdf" @@ -4095,51 +4866,65 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.PdfFormatConversionOptions", - "Aspose.Pdf.PdfFormat", "Aspose.Pdf.ConvertErrorAction", + "Aspose.Pdf.PdfFormat", "Aspose.Pdf.Document.Convert", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.ConvertException" + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "convert-pdf-to-pdfa-3b-with-font-substitution.cs", - "title": "Convert PDF to PDF/A‑3b with Font Substitution", - "description": "Demonstrates how to convert a PDF document to PDF/A‑3b compliance using Aspose.Pdf, enabling default font substitution for missing fonts, and saving the resulting file.", + "filename": "convert-pdf-to-pdfa-3b-throw-errors.cs", + "title": "Convert PDF to PDF/A‑3b with Throw on Conversion Errors", + "description": "Shows how to load a PDF using Aspose.Pdf, convert it to PDF/A‑3b format with ConvertErrorAction set to Throw so that conversion problems raise exceptions, and handle the outcome.", "tags": [ "pdf", "pdfa-3b", - "font-substitution", "conversion", + "error-handling", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PdfFormatConversionOptions", - "Aspose.Pdf.PdfFormat", - "Aspose.Pdf.FontEmbeddingOptions", "Aspose.Pdf.Document.Convert", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.ConvertErrorAction", + "Aspose.Pdf.ConvertException", + "Aspose.Pdf.PdfFormat" ], "difficulty": "beginner" }, + { + "filename": "convert-pdf-to-pdfa-3b-throw-on-error.cs", + "title": "Convert Pdf To Pdfa 3B Throw On Error", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "convert-pdf-to-pdfa1b-skip-errors.cs", - "title": "Convert PDF to PDF/A-1b and Skip Non‑Convertible Elements", - "description": "Demonstrates loading a PDF with Aspose.Pdf, configuring PdfFormatConversionOptions to target PDF/A‑1b, setting ConvertErrorAction to skip elements that cannot be converted, performing the conversion, and saving the resulting PDF/A‑1b file.", + "title": "Convert Pdf To Pdfa1B Skip Errors", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "convert-pdf-to-pdfa3b-with-font-substitution.cs", + "title": "Convert PDF to PDF/A‑3b with Font Substitution", + "description": "Shows how to convert a PDF to PDF/A‑3b using Aspose.Pdf, enable default font substitution for missing fonts, and save the resulting PDF/A‑3b file.", "tags": [ "pdf", - "pdfa", + "pdfa-3b", + "font-substitution", "conversion", - "error-handling", - "aspose-pdf" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.PdfFormatConversionOptions", "Aspose.Pdf.PdfFormat", - "Aspose.Pdf.Text.ConvertErrorAction", + "Aspose.Pdf.Text.FontEmbeddingOptions", "Aspose.Pdf.Document.Convert", "Aspose.Pdf.Document.Save" ], @@ -4147,19 +4932,18 @@ }, { "filename": "convert-pdf-to-pdfa4-with-auto-tagging.cs", - "title": "Convert PDF to PDF/A‑4 with Auto‑Tagging", - "description": "Demonstrates loading a PDF, converting it to PDF/A‑4 format while enabling auto‑tagging, and saving the resulting file using Aspose.Pdf.", + "title": "Convert PDF to PDF/A-4 with Auto-Tagging", + "description": "Demonstrates converting a PDF document to PDF/A-4 format while enabling automatic tagging using Aspose.Pdf's AutoTaggingSettings.", "tags": [ + "pdf", "pdfa-4", "auto-tagging", "conversion", - "aspose-pdf", - "csharp" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.PdfFormatConversionOptions", - "Aspose.Pdf.PdfFormat", "Aspose.Pdf.AutoTaggingSettings", "Aspose.Pdf.Document.Convert", "Aspose.Pdf.Document.Save" @@ -4167,51 +4951,57 @@ "difficulty": "intermediate" }, { - "filename": "convert-pdf-to-pdfa4-with-error-action.cs", - "title": "Convert PDF to PDF/A‑4 with Error Conversion Options", - "description": "Demonstrates loading a PDF, configuring conversion to PDF/A‑4 with a specific ConvertErrorAction to handle problematic elements, performing the conversion, and saving the result.", + "filename": "convert-pdf-to-pdfa4-with-converterroraction.cs", + "title": "Convert PDF to PDF/A-4 with ConvertErrorAction", + "description": "Demonstrates loading a PDF, converting it to PDF/A‑4 while specifying a ConvertErrorAction, and saving the result with a conversion log.", "tags": [ "pdf", - "pdfa-4", + "pdfa", "conversion", - "error-action", + "error-handling", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PdfFormatConversionOptions", + "Aspose.Pdf.Document.Convert", "Aspose.Pdf.PdfFormat", "Aspose.Pdf.ConvertErrorAction", - "Aspose.Pdf.Document.Convert", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, + { + "filename": "convert-pdf-to-pdfa4-with-error-action.cs", + "title": "Convert Pdf To Pdfa4 With Error Action", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "convert-pdf-to-png-transparent-background.cs", "title": "Convert PDF to PNG with Transparent Background", - "description": "Demonstrates how to convert each page of a PDF into PNG images using Aspose.Pdf's ImageDevice with a specified resolution and transparent background.", + "description": "Shows how to convert each page of a PDF document to PNG images using Aspose.Pdf's PngDevice while enabling a transparent background.", "tags": [ "pdf", "png", "conversion", "transparent", - "aspose-pdf" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Resolution", "Aspose.Pdf.Devices.PngDevice", "Aspose.Pdf.Devices.PngDevice.Process", - "Aspose.Pdf.PageCollection", - "Aspose.Pdf.Page" + "Aspose.Pdf.PageCollection" ], "difficulty": "beginner" }, { "filename": "convert-pdf-to-png-transparent-background__v2.cs", "title": "Convert PDF Pages to PNG with Transparent Background", - "description": "Demonstrates converting each page of a PDF document to PNG images while preserving transparency by enabling the TransparentBackground option of PngDevice.", + "description": "Loads a PDF document, creates a PngDevice with TransparentBackground enabled, and saves each page as a PNG image preserving any alpha channel.", "tags": [ "pdf", "png", @@ -4223,135 +5013,135 @@ "Aspose.Pdf.Document", "Aspose.Pdf.Devices.PngDevice", "Aspose.Pdf.Devices.Resolution", - "Aspose.Pdf.Devices.PngDevice.Process", - "Aspose.Pdf.Document.Pages" + "Aspose.Pdf.Page", + "Aspose.Pdf.Devices.PngDevice.Process" ], "difficulty": "beginner" }, { "filename": "convert-pdf-to-pptx-add-custom-properties.cs", "title": "Convert PDF to PPTX and Add Custom Document Properties", - "description": "Demonstrates converting a PDF file to PPTX using Aspose.Pdf while setting both standard and custom document properties before saving.", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, set standard and custom document properties, and save the document as a PPTX file.", "tags": [ "pdf", "pptx", "conversion", - "document-properties", - "aspose" + "custom-properties", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.DocumentInfo", "Aspose.Pdf.PptxSaveOptions", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.DocumentInfo.Subject", - "Aspose.Pdf.DocumentInfo.Item" + "Aspose.Pdf.DocumentInfo.this[string]" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "convert-pdf-to-pptx-and-compress.cs", "title": "Convert PDF to PPTX and Compress the Resulting File", - "description": "Demonstrates converting a PDF document to a PPTX presentation using Aspose.Pdf and then recompressing the PPTX (a ZIP archive) to reduce its file size for distribution.", + "description": "Demonstrates converting a PDF document to PPTX using Aspose.Pdf and then recompressing the PPTX (a ZIP archive) with optimal compression to reduce file size.", "tags": [ "pdf", "pptx", "conversion", "compression", - "aspose" + "zip" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.PptxSaveOptions", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "intermediate" - }, - { - "filename": "convert-pdf-to-pptx-extract-images.cs", - "title": "Convert PDF to PPTX and Extract Images from Slides", - "description": "Demonstrates converting a PDF file to a PPTX presentation using Aspose.Pdf and then extracting the slide images by reading the PPTX package as a ZIP archive.", - "tags": [ - "pdf", - "pptx", - "image-extraction", - "conversion", - "aspose" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.SaveFormat", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Pages.Add" ], "difficulty": "intermediate" }, { - "filename": "convert-pdf-to-pptx-extract-slide-titles-csv.cs", - "title": "Convert PDF to PPTX and Export Slide Titles to CSV", - "description": "Loads a PDF, converts it to a PPTX file using Aspose.Pdf, then extracts the first non‑empty line from each page as a slide title and writes slide numbers with titles to a CSV file.", + "filename": "convert-pdf-to-pptx-and-pdfa.cs", + "title": "Convert PDF to PPTX and then to PDF/A", + "description": "Demonstrates how to convert a PDF file to a PPTX presentation using Aspose.Pdf, then load the PPTX and generate a PDF/A‑1b compliant document for archival purposes.", "tags": [ "pdf", "pptx", + "pdfa", "conversion", - "csv", - "text-extraction" + "archival" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.PptxSaveOptions", - "Aspose.Pdf.Text.TextAbsorber", + "Aspose.Pdf.PdfFormat", + "Aspose.Pdf.ConvertErrorAction", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Page.Accept" + "Aspose.Pdf.Document.Convert" ], "difficulty": "intermediate" }, { - "filename": "convert-pdf-to-pptx-optional-password-protection.cs", - "title": "Convert PDF to PPTX with Optional Password Protection", - "description": "Demonstrates converting a PDF file to a PPTX presentation using Aspose.Pdf and shows how to apply password protection with Aspose.Slides if the library is available.", + "filename": "convert-pdf-to-pptx-extract-images.cs", + "title": "Convert PDF to PPTX and Extract Slide Images", + "description": "Shows how to convert a PDF document to a PPTX presentation with Aspose.Pdf and then extract the images embedded in the generated slides by reading the PPTX ZIP structure.", "tags": [ "pdf", "pptx", + "image-extraction", "conversion", - "password-protection", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.SaveFormat" + "Aspose.Pdf.SaveFormat", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, + { + "filename": "convert-pdf-to-pptx-extract-slide-titles-csv.cs", + "title": "Convert Pdf To Pptx Extract Slide Titles Csv", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "convert-pdf-to-pptx-optional-password-protection.cs", + "title": "Convert Pdf To Pptx Optional Password Protection", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "convert-pdf-to-pptx-slides-as-images.cs", "title": "Convert PDF to PPTX with Slides as Images", - "description": "Demonstrates how to convert a PDF file to a PPTX presentation using Aspose.Pdf, with each slide rendered as a raster image by enabling the SlidesAsImages option.", + "description": "Demonstrates converting a PDF file to a PPTX presentation where each PDF page is rendered as a raster image on its own slide using Aspose.Pdf.", "tags": [ "pdf", "pptx", "conversion", - "slidesasimages", - "aspose.pdf" + "slides-as-images", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.PptxSaveOptions", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.PptxSaveOptions.SlidesAsImages" + "Aspose.Pdf.PptxSaveOptions.SlidesAsImages", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "convert-pdf-to-pptx-slidesasimages-high-dpi.cs", "title": "Convert PDF to PPTX with SlidesAsImages and High DPI", - "description": "Demonstrates converting a PDF document to a PPTX presentation where each slide is rendered as an image, using a specified image resolution (DPI) for high‑quality output.", + "description": "Demonstrates how to convert a PDF document to a PPTX presentation using Aspose.Pdf, rendering each PDF page as an image slide and setting a high image resolution (DPI) for better quality.", "tags": [ "pdf", "pptx", "conversion", "slidesasimages", - "dpi" + "high-dpi" ], "apis_used": [ "Aspose.Pdf.Document", @@ -4364,69 +5154,74 @@ }, { "filename": "convert-pdf-to-pptx-to-pdfa.cs", - "title": "Convert PDF to PPTX and then to PDF/A", - "description": "Demonstrates converting a PDF file to PPTX using Aspose.Pdf, then converting the PPTX to a PDF/A‑1B file for archival compliance.", - "tags": [ - "pdf", - "pptx", - "pdfa", - "conversion", - "archival" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.PptxSaveOptions", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Convert", - "Aspose.Pdf.PdfFormat", - "Aspose.Pdf.ConvertErrorAction" - ], - "difficulty": "intermediate" + "title": "Convert Pdf To Pptx To Pdfa", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "convert-pdf-to-pptx-with-custom-font.cs", - "title": "Convert PDF to PPTX with Custom Font Embedding", - "description": "Demonstrates loading a PDF, configuring a fallback font, and saving it as a PPTX presentation where the custom font is embedded for consistent appearance.", + "filename": "convert-pdf-to-pptx-with-annotation-notes.cs", + "title": "Convert PDF to PPTX and Add Speaker Notes from Annotations", + "description": "Demonstrates converting a PDF document to a PPTX file using Aspose.Pdf and extracting annotation contents to use as speaker notes for each slide.", "tags": [ "pdf", "pptx", "conversion", - "custom-font", - "aspose" + "annotations", + "speaker-notes" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PdfSaveOptions", - "Aspose.Pdf.PptxSaveOptions", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotation", + "Aspose.Pdf.MarkupAnnotation", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.SaveFormat" ], "difficulty": "intermediate" }, { - "filename": "convert-pdf-to-pptx-with-notes.cs", - "title": "Convert PDF to PPTX and Export Annotation Notes", - "description": "Shows how to convert a PDF file to PPTX using Aspose.Pdf, extract annotation contents from each PDF page, and output them as speaker notes for the corresponding slides.", + "filename": "convert-pdf-to-pptx-with-custom-font.cs", + "title": "Convert Pdf To Pptx With Custom Font", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "convert-pdf-to-pptx-with-logo.cs", + "title": "Convert PDF to PPTX with Logo on Each Slide", + "description": "Shows how to load a PDF, overlay a logo image on every page, and then save the modified document as a PPTX presentation using Aspose.Pdf.", "tags": [ "pdf", "pptx", - "annotations", - "conversion", - "notes" + "logo", + "image-overlay", + "conversion" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotation", - "Aspose.Pdf.Annotations.MarkupAnnotation", - "Aspose.Pdf.SaveFormat", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.PptxSaveOptions", + "Aspose.Pdf.Page.AddImage", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, + { + "filename": "convert-pdf-to-pptx-with-notes.cs", + "title": "Convert Pdf To Pptx With Notes", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "convert-pdf-to-pptx-with-progress-handler.cs", "title": "Convert PDF to PPTX with Custom Progress Handler", - "description": "Shows how to convert a PDF file to PPTX using Aspose.Pdf while attaching a custom progress handler to receive conversion status updates.", + "description": "Demonstrates converting a PDF document to PPTX using Aspose.Pdf while assigning a custom progress handler to monitor conversion status.", "tags": [ "pdf", "pptx", @@ -4445,222 +5240,245 @@ }, { "filename": "convert-pdf-to-pptx-with-progress.cs", - "title": "Convert PDF to PPTX with Custom Progress Handler", - "description": "Demonstrates converting a PDF to PPTX using Aspose.Pdf while attaching a custom progress handler to log conversion progress events.", + "title": "Convert Pdf To Pptx With Progress", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "convert-pdf-to-pptx.cs", + "title": "Convert PDF to Editable PPTX", + "description": "Shows how to load a PDF with Aspose.Pdf and save it as an editable PowerPoint presentation using the default PPTX save options.", "tags": [ "pdf", "pptx", "conversion", - "progress", - "aspose" + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.PptxSaveOptions", - "Aspose.Pdf.PptxSaveOptions.CustomProgressHandler", - "Aspose.Pdf.PptxSaveOptions.ConversionProgressEventHandler", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "convert-pdf-to-pptx.cs", - "title": "Convert PDF to PPTX", - "description": "Demonstrates converting a PDF document to an editable PowerPoint (PPTX) file using Aspose.Pdf with default save options.", + "filename": "convert-pdf-to-pptx__v2.cs", + "title": "Convert PDF to PPTX with Aspose.Pdf", + "description": "Shows how to convert a PDF document to a PPTX presentation using Aspose.Pdf and mentions the optional step of password‑protecting the PPTX with Aspose.Slides.", "tags": [ "pdf", "pptx", "conversion", "aspose", - "csharp" + "password-protection" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PptxSaveOptions", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.SaveOptions", - "Aspose.Pdf.Document.Dispose" + "Aspose.Pdf.SaveFormat", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "convert-pdf-to-pptx__v2.cs", - "title": "Convert PDF to PPTX using Aspose.Pdf", - "description": "Shows how to convert a PDF document to a PowerPoint PPTX file programmatically with Aspose.Pdf's Document class and Save method.", + "filename": "convert-pdf-to-pptx__v3.cs", + "title": "Convert PDF to PPTX Presentation", + "description": "Demonstrates how to load a PDF file with Aspose.Pdf and save it directly as a PPTX presentation using the Save method and SaveFormat.Pptx.", "tags": [ "pdf", "pptx", "conversion", - "aspose.pdf", + "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", "Aspose.Pdf.SaveFormat", - "Aspose.Pdf.SaveFormat.Pptx", - "Aspose.Pdf" + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "convert-pdf-to-pptx__v3.cs", - "title": "Convert PDF to PPTX", - "description": "Shows how to convert a PDF document to a PowerPoint PPTX file using Aspose.Pdf's Document class and Save method.", + "filename": "convert-pdf-to-pptx__v4.cs", + "title": "Convert PDF to PPTX using Aspose.Pdf", + "description": "Shows how to convert a PDF document to a PowerPoint PPTX file by using Aspose.Pdf's Document class and its Save method with the Pptx format.", "tags": [ "pdf", "pptx", "conversion", - "aspose", - "document" + "aspose.pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.SaveFormat", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.SaveFormat" ], "difficulty": "beginner" }, { - "filename": "convert-pdf-to-responsive-html.cs", - "title": "Convert PDF to Responsive HTML with CSS", - "description": "Shows how to convert a PDF document to HTML using Aspose.Pdf and then inject a responsive CSS stylesheet to create a mobile‑friendly layout.", + "filename": "convert-pdf-to-pptx__v5.cs", + "title": "Convert PDF to PPTX with Aspose.Pdf", + "description": "Shows how to convert a PDF document to a PPTX presentation using Aspose.Pdf's Document.Save method.", "tags": [ "pdf", - "html", - "responsive", - "css", - "conversion" + "pptx", + "conversion", + "aspose.pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.HtmlSaveOptions", - "Aspose.Pdf.HtmlSaveOptions.RasterImagesSavingModes", - "Aspose.Pdf.HtmlSaveOptions.FixedLayout", - "Aspose.Pdf.HtmlSaveOptions.Title", + "Aspose.Pdf.SaveFormat", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" + }, + { + "filename": "convert-pdf-to-responsive-html.cs", + "title": "Convert Pdf To Responsive Html", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "convert-pdf-to-single-page-html.cs", - "title": "Convert PDF to Single-Page HTML", - "description": "Shows how to load a PDF document using Aspose.Pdf and save it as a single HTML file that contains all pages while preserving the original formatting and fonts.", + "title": "Convert PDF to Single-Page HTML with Embedded Resources", + "description": "Shows how to convert a PDF document into a single HTML file that embeds all images, CSS, and fonts (saved as WOFF) using Aspose.Pdf.", "tags": [ "pdf", "html", "conversion", - "aspose", - "csharp" + "embedding", + "fonts" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.HtmlSaveOptions", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.HtmlSaveOptions.FontSavingModes" + "Aspose.Pdf.HtmlSaveOptions.PartsEmbeddingModes", + "Aspose.Pdf.HtmlSaveOptions.FontSavingModes", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "convert-pdf-to-svg-with-embedded-css.cs", - "title": "Convert PDF to SVG with Embedded CSS", - "description": "Shows how to load a PDF using Aspose.Pdf, configure SvgSaveOptions (which embed CSS by default), and save the document as an SVG file.", + "filename": "convert-pdf-to-svg-custom-output.cs", + "title": "Convert PDF to SVG with Custom Output Folder", + "description": "Shows how to load a PDF with Aspose.Pdf, configure SvgSaveOptions, and save each page as SVG files into a specified output directory.", "tags": [ "pdf", "svg", "conversion", - "css", + "output-folder", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.SvgSaveOptions", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.SvgSaveOptions.TreatTargetFileNameAsDirectory" ], "difficulty": "beginner" }, + { + "filename": "convert-pdf-to-svg-with-embedded-css.cs", + "title": "Convert Pdf To Svg With Embedded Css", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "convert-pdf-to-svg-with-output-folder.cs", - "title": "Convert PDF to SVG with Custom Output Folder", - "description": "Demonstrates how to convert a PDF document to SVG files using Aspose.Pdf, creating a dedicated output folder where each page is saved as a separate SVG.", + "title": "Convert Pdf To Svg With Output Folder", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "convert-pdf-to-svg.cs", + "title": "Convert PDF to SVG using Aspose.Pdf", + "description": "Shows how to load a PDF document and save each page as SVG images using the default SvgSaveOptions.", "tags": [ "pdf", "svg", "conversion", - "output-folder", - "aspose-pdf" + "aspose.pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.SvgSaveOptions", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.SvgSaveOptions.TreatTargetFileNameAsDirectory", - "Aspose.Pdf.SvgSaveOptions (constructor)" + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "convert-pdf-to-svg.cs", - "title": "Convert PDF to SVG Images", - "description": "Shows how to load a PDF document and save each page as an SVG image using Aspose.Pdf's Document class with default SvgSaveOptions.", + "filename": "convert-pdf-to-svg__v2.cs", + "title": "Convert PDF to SVG with Aspose.Pdf", + "description": "Shows how to load a PDF document using Aspose.Pdf and save it as an SVG file by configuring SvgSaveOptions.", "tags": [ "pdf", "svg", "conversion", - "aspose-pdf", - "save-options" + "aspose.pdf", + "c#" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Devices.SvgSaveOptions", + "Aspose.Pdf.SvgSaveOptions", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "convert-pdf-to-text-using-textdevice.cs", - "title": "Convert PDF to Text Using TextDevice", - "description": "Demonstrates how to load a PDF with Aspose.Pdf and extract its text to a UTF‑8 encoded .txt file using the TextDevice class.", + "filename": "convert-pdf-to-text.cs", + "title": "Convert PDF to Text Using Aspose.Pdf TextDevice", + "description": "Demonstrates how to load a PDF file with Aspose.Pdf and extract its plain text content page by page using the TextDevice class, writing the result to a .txt file.", "tags": [ "pdf", - "text extraction", - "aspose.pdf", + "text-extraction", + "aspose-pdf", "csharp", - "textdevice" + "conversion" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Devices.TextDevice", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Devices.TextDevice.Process" + "Aspose.Pdf.Devices.TextDevice.Process", + "Aspose.Pdf.PageCollection", + "Aspose.Pdf.Page" ], "difficulty": "beginner" }, { "filename": "convert-pdf-to-xps-custom-page-size.cs", - "title": "Convert PDF to XPS with Custom Page Size and Orientation", - "description": "Demonstrates loading a PDF, applying a custom page size and landscape/portrait orientation to each page, and saving the result as an XPS document using Aspose.Pdf.", + "title": "Convert PDF to XPS with Custom Page Size and Landscape Orientation", + "description": "Demonstrates loading a PDF, applying a custom page size and landscape orientation to each page, and saving the result as an XPS document using Aspose.Pdf.", "tags": [ "pdf", "xps", "conversion", - "page-size", - "orientation" + "custom-page-size", + "landscape" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.XpsSaveOptions", "Aspose.Pdf.Page.SetPageSize", - "Aspose.Pdf.Page.PageInfo", + "Aspose.Pdf.Page.PageInfo.IsLandscape", + "Aspose.Pdf.XpsSaveOptions", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "convert-pdf-to-xps.cs", "title": "Convert PDF to XPS using Aspose.Pdf", - "description": "Demonstrates how to load a PDF file with Aspose.Pdf and save it as an XPS document using default XpsSaveOptions.", + "description": "Demonstrates how to load a PDF file with Aspose.Pdf and save it as an XPS document using XpsSaveOptions with default settings.", "tags": [ "pdf", "xps", @@ -4677,13 +5495,13 @@ }, { "filename": "convert-postscript-to-pdf.cs", - "title": "Convert PostScript to PDF", - "description": "Shows how to load a PostScript (.ps) file with PsLoadOptions and save it as a PDF using Aspose.Pdf.", + "title": "Convert PostScript to PDF using Aspose.Pdf", + "description": "Shows how to load a PostScript (.ps) file with PsLoadOptions and save it as a PDF using Aspose.Pdf's default settings.", "tags": [ "postscript", "pdf", "conversion", - "aspose", + "aspose-pdf", "csharp" ], "apis_used": [ @@ -4695,26 +5513,24 @@ }, { "filename": "convert-xml-to-pdf-using-xsl-fo.cs", - "title": "Convert XML to PDF using XSL‑FO with Aspose.Pdf", - "description": "Demonstrates loading an XML file, applying an XSL‑FO stylesheet, and saving the result as a PDF using Aspose.Pdf.", - "tags": [ - "xml", - "xsl-fo", - "pdf", - "conversion", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner" + "title": "Convert Xml To Pdf Using Xsl Fo", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "convert-xsl-fo-to-pdf.cs", - "title": "Convert XSL‑FO to PDF with Aspose.Pdf", - "description": "Demonstrates loading an XSL‑FO file (creating a minimal one if missing) and converting it to a PDF using Aspose.Pdf with default conversion options.", + "title": "Convert Xsl Fo To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "convert-xslfo-to-pdf.cs", + "title": "Convert XSL‑FO to PDF using Aspose.Pdf", + "description": "Shows how to load an XSL‑FO file with XslFoLoadOptions and convert it to a PDF document using Aspose.Pdf's Document class.", "tags": [ "xsl-fo", "pdf", @@ -4731,14 +5547,14 @@ }, { "filename": "create-multi-page-tiff-from-pdf.cs", - "title": "Create Multi‑Page TIFF from PDF", - "description": "Demonstrates how to convert all pages of a PDF document into a single multi‑page TIFF file using Aspose.Pdf's TiffDevice with default compression.", + "title": "Create Multi‑Page TIFF from PDF Using TiffDevice", + "description": "Demonstrates how to convert all pages of a PDF into a single multi‑page TIFF file using Aspose.Pdf's TiffDevice with default compression.", "tags": [ "pdf", "tiff", "conversion", - "aspose", - "csharp" + "multipage", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", @@ -4749,51 +5565,87 @@ }, { "filename": "create-single-page-tiff-from-first-pdf-page.cs", - "title": "Create Single-Page TIFF from First PDF Page", - "description": "Demonstrates how to convert the first page of a PDF into a single-page TIFF image using Aspose.Pdf's TiffDevice with custom resolution and compression settings.", + "title": "Create Single Page Tiff From First Pdf Page", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-single-page-tiff-from-pdf.cs", + "title": "Create Single-Page TIFF from PDF", + "description": "Demonstrates how to load a PDF, configure TIFF conversion settings, and generate a single‑page TIFF image of the first PDF page using Aspose.Pdf's TiffDevice.", "tags": [ "pdf", "tiff", "conversion", - "aspnet", - "compression" + "compression", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Devices.TiffDevice", "Aspose.Pdf.Devices.Resolution", "Aspose.Pdf.Devices.TiffSettings", "Aspose.Pdf.Devices.CompressionType", - "Aspose.Pdf.Devices.ColorDepth" + "Aspose.Pdf.Devices.ColorDepth", + "Aspose.Pdf.Devices.ShapeType", + "Aspose.Pdf.Devices.TiffDevice.Process" ], "difficulty": "beginner" }, { "filename": "enable-auto-tagging-pdfa-conversion.cs", "title": "Enable Auto‑Tagging for PDF/A Conversion", - "description": "Demonstrates how to enable automatic tagging by setting AutoTaggingSettings on PdfFormatConversionOptions and convert a PDF to PDF/A‑1B using Aspose.Pdf.", + "description": "Demonstrates how to enable automatic tagging when converting a PDF to PDF/A‑1B using Aspose.Pdf by configuring AutoTaggingSettings in the conversion options.", "tags": [ - "pdfa", "auto-tagging", + "pdfa", "conversion", "aspose-pdf", - "csharp" + "document" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.PdfFormatConversionOptions", - "Aspose.Pdf.PdfFormat", - "Aspose.Pdf.ConvertErrorAction", "Aspose.Pdf.AutoTaggingSettings", - "Aspose.Pdf.Document", "Aspose.Pdf.Document.Convert", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, + { + "filename": "extract-pdf-page-region-to-png.cs", + "title": "Extract PDF Page Region to PNG", + "description": "Shows how to define a rectangular region on a PDF page using the CropBox and render that area to a PNG image with Aspose.Pdf.", + "tags": [ + "pdf", + "png", + "cropbox", + "region", + "conversion" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Devices.PngDevice", + "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.PageCoordinateType" + ], + "difficulty": "intermediate" + }, { "filename": "extract-pdf-text-to-utf8-file.cs", - "title": "Extract PDF Text to UTF-8 File with Line Breaks", - "description": "Shows how to load a PDF using Aspose.Pdf, extract its text while preserving line breaks with TextAbsorber in Pure mode, and write the result to a UTF-8 encoded text file.", + "title": "Extract Pdf Text To Utf8 File", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-pdf-text-to-utf8-preserve-line-breaks.cs", + "title": "Extract PDF Text to UTF-8 File Preserving Line Breaks", + "description": "Demonstrates loading a PDF with Aspose.Pdf, extracting its text while keeping original line breaks using Pure formatting mode, and saving the result to a UTF‑8 encoded text file.", "tags": [ "pdf", "text-extraction", @@ -4813,11 +5665,11 @@ { "filename": "extract-visible-text-from-pdf.cs", "title": "Extract Visible Text from PDF", - "description": "Shows how to load a PDF with Aspose.Pdf, use a TextAbsorber in Pure formatting mode to extract only visible text, and write the result to a .txt file.", + "description": "Shows how to load a PDF with Aspose.Pdf, use a TextAbsorber configured for Pure formatting to extract only visible text, and write the result to a plain text file.", "tags": [ "pdf", "text-extraction", - "aspose", + "aspose-pdf", "csharp", "visible-text" ], @@ -4832,290 +5684,433 @@ }, { "filename": "pdf-to-docx-conversion-json-report.cs", - "title": "PDF to DOCX Conversion with JSON Report", - "description": "Demonstrates loading a PDF with Aspose.Pdf, converting it to DOCX using DocSaveOptions, and generating a JSON report that captures conversion statistics such as file sizes, page counts, and elapsed time.", + "title": "Pdf To Docx Conversion Json Report", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "pdf-to-docx-to-pdfa-conversion.cs", + "title": "Pdf To Docx To Pdfa Conversion", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "pdf-to-html-embed-fonts-to-docx.cs", + "title": "Pdf To Html Embed Fonts To Docx", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "pdf-to-html-merge-and-convert-back.cs", + "title": "Convert PDF to HTML, Merge Pages, and Convert Back to PDF", + "description": "Demonstrates converting each PDF page to separate HTML files, concatenating those HTML pages into a single document, and then converting the combined HTML back into a PDF using Aspose.Pdf.", "tags": [ "pdf", - "docx", + "html", "conversion", - "json", - "aspose" + "merge", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.DocSaveOptions", - "Aspose.Pdf.DocSaveOptions.DocFormat", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Pages" + "Aspose.Pdf.HtmlSaveOptions", + "Aspose.Pdf.HtmlSaveOptions.RasterImagesSavingModes", + "Aspose.Pdf.HtmlLoadOptions" ], "difficulty": "intermediate" }, { - "filename": "pdf-to-docx-to-pdfa-conversion.cs", - "title": "Convert PDF to DOCX and then to PDF/A", - "description": "Demonstrates converting a PDF file to DOCX with Aspose.Pdf, then loading the DOCX and creating a PDF/A‑1B compliant document.", + "filename": "pdf-to-html-per-page-image-folders.cs", + "title": "Convert PDF to HTML with Per‑Page Image Subfolders", + "description": "Demonstrates converting a PDF to HTML using Aspose.Pdf, splitting the output into separate pages and saving each page's images into its own subfolder via a custom resource‑saving strategy.", "tags": [ "pdf", - "docx", - "pdfa", + "html", "conversion", - "aspose-pdf" + "images", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.DocSaveOptions", - "Aspose.Pdf.DocSaveOptions.DocFormat", - "Aspose.Pdf.DocSaveOptions.RecognitionMode", - "Aspose.Pdf.PdfFormat", - "Aspose.Pdf.ConvertErrorAction", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Convert" + "Aspose.Pdf.HtmlSaveOptions", + "Aspose.Pdf.HtmlSaveOptions.HtmlImageSavingInfo", + "Aspose.Pdf.HtmlSaveOptions.RasterImagesSavingModes", + "Aspose.Pdf.HtmlSaveOptions.PartsEmbeddingModes" ], "difficulty": "intermediate" }, { - "filename": "pdf-to-html-embed-fonts-to-docx.cs", - "title": "Convert PDF to HTML with Embedded Fonts and then to DOCX", - "description": "Demonstrates converting a PDF to a single HTML file with all fonts embedded, then loading that HTML and saving it as a DOCX while preserving the fonts.", + "filename": "pdf-to-html-roundtrip-conversion.cs", + "title": "Pdf To Html Roundtrip Conversion", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "pdf-to-html-sitemap.cs", + "title": "Pdf To Html Sitemap", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "pdf-to-html-with-toc.cs", + "title": "Convert PDF to HTML with Automatic Table of Contents", + "description": "Demonstrates converting a PDF file to a single HTML document using Aspose.Pdf and then generating a navigable table of contents by adding IDs to heading tags.", "tags": [ "pdf", "html", - "docx", - "font-embedding", - "conversion" + "toc", + "conversion", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.HtmlSaveOptions", - "Aspose.Pdf.HtmlLoadOptions", - "Aspose.Pdf.DocSaveOptions", + "Aspose.Pdf.HtmlSaveOptions.PartsEmbeddingModes", + "Aspose.Pdf.HtmlSaveOptions.RasterImagesSavingModes", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "pdf-to-html-roundtrip-conversion.cs", - "title": "PDF to HTML Round‑Trip Conversion", - "description": "Shows how to convert a PDF to a single HTML file with embedded resources using Aspose.Pdf, then load that HTML and save it back to PDF, including basic error handling.", + "filename": "pdf-to-markdown-with-heading-mapping.cs", + "title": "Convert PDF to Markdown with Custom Heading Mapping", + "description": "Demonstrates how to convert a PDF file to Markdown using Aspose.Pdf while configuring heading recognition and custom heading levels.", "tags": [ "pdf", - "html", + "markdown", "conversion", - "aspose.pdf", - "roundtrip" + "heading", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.HtmlSaveOptions", - "Aspose.Pdf.HtmlLoadOptions", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.HtmlSaveOptions.PartsEmbeddingModes", - "Aspose.Pdf.HtmlSaveOptions.RasterImagesSavingModes" + "Aspose.Pdf.MarkdownSaveOptions", + "Aspose.Pdf.HeadingRecognitionStrategy", + "Aspose.Pdf.HeadingLevels", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner" + }, + { + "filename": "pdf-to-png-binarize-bradley.cs", + "title": "Pdf To Png Binarize Bradley", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "pdf-to-png-bradley-contrast.cs", + "title": "Convert PDF Pages to PNG with Bradley Contrast Enhancement", + "description": "Demonstrates converting each PDF page to a PNG image and applying the Bradley binarization algorithm to enhance contrast before saving the result.", + "tags": [ + "pdf", + "png", + "bradley", + "binarization", + "conversion" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Devices.PngDevice", + "Aspose.Pdf.Devices.TiffDevice", + "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.Devices.TiffDevice.BinarizeBradley" ], "difficulty": "intermediate" }, { - "filename": "pdf-to-html-sitemap.cs", - "title": "Convert PDF to HTML Pages and Generate Sitemap XML", - "description": "Shows how to convert each page of a PDF into separate HTML files using Aspose.Pdf and then create a sitemap.xml that lists all generated HTML pages for SEO.", + "filename": "pdf-to-pptx-export-slide-titles-csv.cs", + "title": "Convert PDF to PPTX and Export Slide Titles to CSV", + "description": "Demonstrates how to convert a PDF document to a PPTX file using Aspose.Pdf, then parses the generated PPTX package to extract each slide's title and writes them to a CSV file.", "tags": [ "pdf", - "html", - "sitemap", + "pptx", "conversion", + "csv", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.HtmlSaveOptions", - "Aspose.Pdf.HtmlSaveOptions.CustomHtmlSavingStrategy", - "Aspose.Pdf.HtmlSaveOptions.HtmlPageMarkupSavingInfo" + "Aspose.Pdf.SaveFormat", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "pdf-to-html-with-toc.cs", - "title": "Convert PDF to HTML and Add a Table of Contents", - "description": "Demonstrates converting a PDF file to a single‑file HTML document using Aspose.Pdf, then generating a navigable table of contents by adding IDs to headings and inserting a TOC block.", + "filename": "pdf-to-responsive-html.cs", + "title": "Convert PDF to Responsive HTML with Embedded CSS", + "description": "Demonstrates converting a PDF file to a single HTML document using Aspose.Pdf, creating a simple responsive CSS stylesheet, and injecting the stylesheet link into the generated HTML for mobile‑friendly rendering.", "tags": [ "pdf", "html", - "toc", - "aspose-pdf", + "responsive", + "css", "conversion" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.HtmlSaveOptions", + "Aspose.Pdf.Document.Save", "Aspose.Pdf.HtmlSaveOptions.RasterImagesSavingModes", - "Aspose.Pdf.HtmlSaveOptions.HtmlMarkupGenerationModes", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.HtmlSaveOptions.SplitIntoPages" ], "difficulty": "intermediate" }, { - "filename": "pdf-to-png-binarize-bradley.cs", - "title": "Convert PDF Pages to Binarized PNG with Bradley Algorithm", - "description": "Loads a PDF document, converts each page to a PNG image, applies the Bradley binarization algorithm to enhance contrast, and saves the resulting PNG files to disk.", + "filename": "replace-missing-fonts-pdfa-conversion.cs", + "title": "Replace Missing Fonts During PDF/A Conversion", + "description": "Demonstrates how to configure font substitution with a fallback font (Arial) and convert a PDF to PDF/A while ensuring missing fonts are replaced and embedded correctly.", "tags": [ - "pdf", - "png", - "binarization", - "bradley", + "pdfa", + "font-substitution", + "conversion", + "fallback-font", "aspose-pdf" ], "apis_used": [ + "Aspose.Pdf.FontRepository", + "Aspose.Pdf.Text.SimpleFontSubstitution", "Aspose.Pdf.Document", - "Aspose.Pdf.Devices.PngDevice", - "Aspose.Pdf.Devices.Resolution", - "Aspose.Pdf.Devices.TiffDevice", - "Aspose.Pdf.Devices.TiffDevice.BinarizeBradley" + "Aspose.Pdf.PdfFormatConversionOptions", + "Aspose.Pdf.PdfFormat", + "Aspose.Pdf.FontEmbeddingOptions", + "Aspose.Pdf.Document.Convert", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "replace-missing-fonts-pdfa-conversion.cs", - "title": "Replace Missing Fonts During PDF/A Conversion with Font Substitution", - "description": "Demonstrates how to configure font substitution fallback fonts when converting a PDF to PDF/A using Aspose.Pdf, ensuring missing fonts are replaced and embedded correctly.", + "filename": "validate-and-convert-pdf-to-pdfa-1b.cs", + "title": "Validate and Convert PDF to PDF/A‑1b", + "description": "Shows how to validate a PDF against PDF/A‑1b, generate an XML validation log, convert the document to PDF/A‑1b with a conversion log, and save the compliant file using Aspose.Pdf.", "tags": [ + "pdf", "pdfa", - "font-substitution", + "validation", "conversion", - "csharp", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PdfFormatConversionOptions", - "Aspose.Pdf.FontRepository.Substitutions", - "Aspose.Pdf.Text.SimpleFontSubstitution", + "Aspose.Pdf.Document.Validate", "Aspose.Pdf.Document.Convert", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.PdfFormat" ], "difficulty": "intermediate" + }, + { + "filename": "xml-to-pdf-xsl-fo-conversion.cs", + "title": "Convert XML with XSL‑FO to PDF using Aspose.Pdf", + "description": "Demonstrates loading an XML file, applying an XSL‑FO stylesheet via XmlLoadOptions, and saving the result as a PDF document with Aspose.Pdf.", + "tags": [ + "xml", + "xsl-fo", + "pdf", + "conversion", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.XmlLoadOptions", + "Aspose.Pdf.XmlLoadOptions..ctor(string)", + "Aspose.Pdf.Document", + "Aspose.Pdf.Document..ctor(string, XmlLoadOptions)", + "Aspose.Pdf.Document.Save(string)", + "Aspose.Pdf.Document.Dispose" + ], + "difficulty": "beginner" } ] }, { "name": "document", - "file_count": 117, + "file_count": 175, "files": [ + "add-accessibility-tags-to-pdf.cs", "add-background-color-to-pdf-page.cs", + "add-background-template-to-pdf-pages.cs", "add-captions-below-images-in-pdf.cs", "add-checked-checkbox-form-field.cs", "add-company-logo-header-to-pdf-pages.cs", + "add-custom-document-info-and-xmp-metadata.cs", "add-custom-signature-appearance-last-page.cs", "add-custom-xml-xmp-metadata-to-pdf.cs", - "add-diagonal-text-stamp-to-pdf-pages.cs", + "add-diagonal-text-stamp-to-pdf.cs", "add-digital-signature-to-pdf.cs", "add-dynamic-heading-to-pdf.cs", "add-heading-to-pdf-outline.cs", + "add-hierarchical-numbered-headings.cs", "add-hyperlink-annotation-to-pdf.cs", "add-indented-paragraph-with-line-spacing.cs", "add-javascript-calculation-to-pdf-form-fields.cs", "add-javascript-open-action-to-pdf.cs", + "add-javascript-sum-calculation-to-pdf-form.cs", + "add-javascript-sum-numeric-pdf-form-fields.cs", "add-javascript-total-calculation-to-pdf-form.cs", - "add-line-annotation-custom-color-thickness.cs", + "add-level-1-heading-to-pdf.cs", + "add-line-annotation-with-custom-color-thickness.cs", "add-line-separator-annotation-to-pdf-page.cs", "add-link-annotation-open-pdf-attachment.cs", + "add-multi-level-toc-to-pdf.cs", + "add-new-bookmark-to-pdf-outline.cs", + "add-page-count-footer-to-pdf.cs", "add-page-number-footer-to-pdf.cs", "add-page-numbers-to-pdf-footer.cs", "add-popup-note-annotation.cs", "add-reusable-background-image-to-all-pdf-pages.cs", "add-signature-field-to-pdf.cs", + "add-signature-image-stamp-to-last-page.cs", "add-structured-headings-to-pdf.cs", + "add-styled-table-alternating-row-colors.cs", "add-styled-table-with-borders-to-pdf.cs", + "add-visible-digital-signature-and-lock-pdf.cs", "add-visible-signature-field-and-lock-pdf.cs", + "add-watermark-layer-merge-layers.cs", + "apply-password-protection-to-pdf.cs", "apply-semi-transparent-image-watermark-to-pdf.cs", + "apply-semi-transparent-image-watermark.cs", "attach-pdf-portfolio-with-metadata.cs", - "auto-tagging-and-headings-pdf.cs", + "attach-portfolio-pdf-set-description-metadata.cs", "batch-sanitize-pdfs.cs", + "check-hidden-annotations-in-pdf.cs", "check-pdf-incremental-updates.cs", "clean-pdf-remove-metadata-attachments-javascript.cs", + "combine-multiple-html-to-pdf.cs", + "compress-pdf-images-and-export-jpeg-quality-80.cs", "convert-pdf-pages-to-high-resolution-tiff.cs", "convert-pdf-pages-to-jpeg-images.cs", "convert-pdf-pages-to-jpeg-no-compression.cs", "convert-pdf-pages-to-jpeg-quality-80.cs", + "convert-pdf-pages-to-png-images.cs", + "convert-pdf-pages-to-png-images__v2.cs", + "convert-pdf-pages-to-rasterized-images-html.cs", "convert-pdf-to-html-with-rasterized-pages.cs", "convert-pdf-to-html.cs", "create-5x7-inch-postcard-pdf.cs", + "create-clickable-table-of-contents.cs", "create-hierarchical-numbered-headings.cs", "create-landscape-pdf-page.cs", "create-magazine-pdf-with-text-and-image.cs", "create-multi-page-table-pdf.cs", + "create-pdf-clickable-index.cs", "create-pdf-clickable-table-of-contents.cs", + "create-pdf-custom-title-page.cs", "create-pdf-dynamic-table.cs", "create-pdf-from-multiple-html-fragments.cs", + "create-pdf-header-with-current-date.cs", "create-pdf-multiple-page-sizes-orientations.cs", + "create-pdf-multiple-sections-different-page-sizes.cs", + "create-pdf-numbered-headings-sanitize.cs", "create-pdf-portfolio.cs", + "create-pdf-radio-button-group.cs", "create-pdf-roman-headings-validation.cs", "create-pdf-table-with-rich-text-formatting.cs", + "create-pdf-table-with-rich-text.cs", "create-pdf-title-page-custom-font.cs", + "create-pdf-toc-with-dot-leaders.cs", "create-pdf-with-background-template.cs", + "create-pdf-with-clickable-email-link.cs", "create-pdf-with-clickable-index.cs", "create-pdf-with-date-picker-form-field.cs", + "create-pdf-with-date-picker.cs", "create-pdf-with-dropdown-list.cs", "create-pdf-with-email-link.cs", "create-pdf-with-embedded-truetype-font.cs", - "create-pdf-with-level-1-heading.cs", + "create-pdf-with-merged-header-table.cs", "create-pdf-with-radio-button-form.cs", "create-read-only-text-field.cs", + "create-readonly-text-field-with-default-value.cs", + "create-rotated-landscape-pdf-page.cs", "create-sanitize-pdf-with-auto-numbered-headings.cs", "create-searchable-pdf-from-scanned-images.cs", + "create-zugferd-compliant-pdf-invoice.cs", "create-zugferd-pdf-invoice.cs", - "customize-crash-report-filename.cs", + "customize-crash-report-filename-message.cs", + "customize-toc-formatting.cs", "detect-hidden-annotations-in-pdf.cs", "digitally-sign-pdf-with-timestamp.cs", "embed-zugferd-xml-into-pdf.cs", "encrypt-pdf-aes256-restrict-permissions.cs", - "encrypt-pdf-with-user-owner-passwords.cs", "extract-embedded-files-from-pdf-portfolio.cs", "extract-hyperlinks-from-pdf.cs", "extract-images-from-pdf-to-png.cs", "extract-pdf-outline-hierarchy.cs", "extract-text-from-pdf-page-range.cs", + "extract-text-from-pdf-pages.cs", "extract-text-from-pdf-to-utf8-file.cs", "extract-xmp-metadata-from-pdf.cs", "flatten-pdf-form-fields.cs", "generate-accessible-pdf-with-tags.cs", "generate-crash-report-for-pdf-exceptions.cs", + "generate-crash-report-pdf.cs", "generate-crash-report-to-network-share.cs", + "generate-crash-report-with-custom-output-directory.cs", + "generate-dynamic-pdf-table.cs", "generate-pdf-crash-report.cs", "generate-pdf-crash-report__v2.cs", "handle-pdf-errors-generate-crash-report.cs", "insert-automatic-page-numbers-into-pdf.cs", "insert-blank-cover-page-into-pdf.cs", "insert-high-res-image-into-pdf.cs", + "insert-image-into-pdf-absolute-coordinates.cs", "insert-pdf-page-into-another.cs", "interrupt-resume-large-pdf-save.cs", "load-pdf-into-document.cs", + "log-pdf-sanitization-start-end-times.cs", + "merge-pdfs-with-bookmarks.cs", "merge-two-pdfs-preserve-bookmarks.cs", "merged-header-table-pdf.cs", "pdf-header-current-date-javascript.cs", + "pdf-processing-with-crash-report.cs", "pdf-sanitization-audit-log.cs", + "print-pdf-using-default-handler.cs", "print-pdf-using-os-verb.cs", + "rasterize-pdf-pages-to-png.cs", "rasterize-pdf-to-png-lossless-compression.cs", "remove-all-annotations-from-pdf.cs", "remove-all-annotations-from-pdf__v2.cs", + "remove-annotations-and-attachments.cs", "remove-annotations-attachments-from-pdf.cs", "remove-hidden-data-reapply-headings.cs", + "remove-hidden-data-rebuild-headings-pdf.cs", "remove-javascript-from-pdf.cs", + "remove-metadata-javascript-embedded-files-pdf.cs", "remove-page-from-pdf.cs", "replace-image-in-pdf-page.cs", "replace-pdf-page-with-html.cs", "replace-text-in-pdf-preserving-formatting.cs", + "replace-word-in-pdf.cs", + "roman-numeral-headings-pdf.cs", "rotate-pdf-pages-90-degrees.cs", "sanitize-multiple-pdfs.cs", + "sanitize-pdf-add-heading.cs", "sanitize-pdf-remove-embedded-scripts.cs", "sanitize-pdf-remove-hidden-content-keep-metadata.cs", + "sanitize-pdf-remove-hidden-data-keep-metadata.cs", + "sanitize-pdf-remove-hidden-data.cs", "sanitize-pdf-remove-metadata-private-info.cs", "sanitize-pdf-remove-metadata.cs", + "sanitize-pdfs-remove-metadata.cs", + "selective-page-rasterization-hidden-data-sanitizer.cs", "set-pdf-document-metadata.cs", "set-pdf-expiration-date.cs", + "set-pdf-page-rotation-90-degrees.cs", "specify-crash-report-output-directory.cs", + "structured-toc-with-headings.cs", "test-convert-pages-to-images.cs", - "update-pdf-metadata-author-title.cs", + "update-pdf-author-title-metadata.cs", "validate-pdf-a1a-compliance-report.cs", "validate-pdf-a1b-compliance.cs" ], @@ -5124,54 +6119,73 @@ "Aspose.Pdf.Text", "Aspose.Pdf.Annotations", "Aspose.Pdf.Forms", - "Aspose.Pdf.Devices", - "Aspose.Pdf.Drawing", - "Aspose.Pdf.LogicalStructure", "Aspose.Pdf.Optimization", "Aspose.Pdf.Tagged", + "Aspose.Pdf.LogicalStructure", + "Aspose.Pdf.Devices", + "Aspose.Pdf.Drawing", "Aspose.Pdf.Facades", - "Aspose.Pdf.Comparison", "Aspose.Pdf.Multithreading", "Aspose.Pdf.Security.HiddenDataSanitization" ], "key_apis": [ "TextFragment", - "BorderInfo", "JavascriptAction", "LinkAnnotation", - "JpegDevice", + "ImageStamp", + "BorderInfo", "TextAbsorber", - "FileAttachmentAnnotation", "GoToAction", "GoToURIAction", "HtmlLoadOptions", - "ImageStamp", + "JpegDevice", "LineAnnotation", - "MarginInfo", "OutlineItemCollection", "PageNumberStamp", "PdfPageStamp", "PngDevice", "TextBuilder", - "TextStamp", - "FitExplicitDestination", "GoToRemoteAction", - "HtmlSaveOptions", + "ImagePlacementAbsorber", + "MarginInfo", "PopupAnnotation", - "ProcessStartInfo", - "StringBuilder", "TextAnnotation", "TextFragmentAbsorber", - "TiffDevice" + "TextStamp", + "TiffDevice", + "TocInfo", + "XYZExplicitDestination" ], "examples": [ + { + "filename": "add-accessibility-tags-to-pdf.cs", + "title": "Add Accessibility Tags to PDF (Headings, Paragraphs, Tables)", + "description": "Loads an existing PDF, enables auto‑tagging, sets language and title metadata, and creates tagged heading, paragraph, and table elements with alternative text for screen readers before saving the tagged PDF.", + "tags": [ + "accessibility", + "pdf", + "tagging", + "heading", + "table" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Tagged.ITaggedContent", + "Aspose.Pdf.Tagged.StructureElement", + "Aspose.Pdf.Tagged.HeaderElement", + "Aspose.Pdf.Tagged.ParagraphElement", + "Aspose.Pdf.Tagged.TableElement", + "Aspose.Pdf.Tagged.TableTHeadElement" + ], + "difficulty": "intermediate" + }, { "filename": "add-background-color-to-pdf-page.cs", - "title": "Add Background Color to PDF Page Using Rectangle with Opacity", - "description": "Demonstrates how to apply a semi‑transparent background color to a PDF page by drawing a full‑page rectangle shape with opacity using Aspose.Pdf.", + "title": "Add Background Color to PDF Page with Opacity", + "description": "Demonstrates how to fill an entire PDF page with a semi‑transparent color by adding a rectangle shape to a Graph and inserting it into the page's paragraphs collection.", "tags": [ "pdf", - "background-color", + "background", "opacity", "rectangle", "Aspose.Pdf" @@ -5181,37 +6195,58 @@ "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.GraphInfo" + "Aspose.Pdf.Drawing.GraphInfo", + "Aspose.Pdf.Drawing.Color" ], "difficulty": "beginner" }, + { + "filename": "add-background-template-to-pdf-pages.cs", + "title": "Add Background Template to All PDF Pages", + "description": "Shows how to load a PDF and a single‑page background template, then stamp each page of the target document with the template as a background using Aspose.Pdf.", + "tags": [ + "pdf", + "background", + "stamp", + "Aspose.Pdf", + "C#" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Facades.PdfPageStamp", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "intermediate" + }, { "filename": "add-captions-below-images-in-pdf.cs", "title": "Add Captions Below Images in PDF", - "description": "Shows how to iterate through PDF pages, locate each image, and insert a styled text caption beneath it using Aspose.Pdf.", + "description": "Shows how to iterate over image resources in a PDF and insert a styled caption paragraph beneath each image using Aspose.Pdf's text APIs.", "tags": [ "pdf", "caption", "image", - "textfragment", + "text", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.XImage", - "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.TextParagraph", + "Aspose.Pdf.Text.TextState", "Aspose.Pdf.Text.TextBuilder", - "Aspose.Pdf.FontRepository", - "Aspose.Pdf.Color", - "Aspose.Pdf.Position" + "Aspose.Pdf.Text.FontRepository", + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate" }, { "filename": "add-checked-checkbox-form-field.cs", "title": "Add Checked Checkbox Form Field to PDF", - "description": "Demonstrates creating a PDF document, adding a checkbox form field, setting its default state to checked, and saving the file.", + "description": "Shows how to create a PDF document, add a checkbox form field, set its default state to checked, and save the file.", "tags": [ "checkbox", "form-field", @@ -5232,7 +6267,7 @@ { "filename": "add-company-logo-header-to-pdf-pages.cs", "title": "Add Company Logo Header to PDF Pages", - "description": "Shows how to load an existing PDF with Aspose.Pdf, iterate over all pages, and place an ImageStamp containing a company logo as a header on each page before saving the document.", + "description": "Shows how to load an existing PDF, create an ImageStamp for a logo, position it as a top‑center header on each page, and save the modified document using Aspose.Pdf.", "tags": [ "pdf", "header", @@ -5243,47 +6278,22 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.ImageStamp", + "Aspose.Pdf.Facades.ImageStamp", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.HorizontalAlignment", - "Aspose.Pdf.VerticalAlignment" - ], - "difficulty": "intermediate" - }, - { - "filename": "add-custom-signature-appearance-last-page.cs", - "title": "Add Custom Signature Appearance to Last PDF Page", - "description": "Shows how to create a signature field on the last page of a PDF and apply a custom signature image as its appearance using Aspose.Pdf.", - "tags": [ - "signature", - "image", - "pdf", - "aspose.pdf", - "last-page" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.ImageStamp", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Forms.Form.Add", - "Aspose.Pdf.Page.AddStamp" + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "add-custom-xml-xmp-metadata-to-pdf.cs", - "title": "Add Custom XML XMP Metadata to PDF", - "description": "The example loads an existing PDF, adds custom key‑value pairs to the document information dictionary, creates custom XMP metadata as XML, embeds it into the PDF, and saves the modified file.", + "filename": "add-custom-document-info-and-xmp-metadata.cs", + "title": "Add Custom Document Info and XMP Metadata to PDF", + "description": "Demonstrates how to add custom key/value pairs to a PDF's DocumentInfo dictionary and embed XMP metadata using Aspose.Pdf.", "tags": [ "pdf", "metadata", "xmp", - "custom", - "aspose-pdf" + "documentinfo", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", @@ -5295,13 +6305,29 @@ "difficulty": "intermediate" }, { - "filename": "add-diagonal-text-stamp-to-pdf-pages.cs", - "title": "Add Diagonal Text Stamp to PDF Pages", - "description": "Demonstrates loading a PDF with Aspose.Pdf, creating a TextStamp with a custom message, configuring its appearance and rotation, and applying it as a watermark to every page before saving.", + "filename": "add-custom-signature-appearance-last-page.cs", + "title": "Add Custom Signature Appearance Last Page", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-custom-xml-xmp-metadata-to-pdf.cs", + "title": "Add Custom Xml Xmp Metadata To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-diagonal-text-stamp-to-pdf.cs", + "title": "Add Diagonal Text Stamp Watermark to PDF", + "description": "Shows how to load a PDF with Aspose.Pdf, create a TextStamp with a custom message, configure its appearance, apply it to every page, and save the stamped document.", "tags": [ - "pdf", "watermark", "textstamp", + "pdf", "aspose-pdf", "csharp" ], @@ -5309,69 +6335,77 @@ "Aspose.Pdf.Document", "Aspose.Pdf.Text.TextStamp", "Aspose.Pdf.Text.FontRepository", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page", + "Aspose.Pdf.Color" ], "difficulty": "beginner" }, { "filename": "add-digital-signature-to-pdf.cs", "title": "Add Digital Signature Field and Sign PDF with Self‑Signed Certificate", - "description": "Demonstrates how to create a signature field on a PDF page, configure a PKCS#7 self‑signed certificate, and apply the digital signature using Aspose.Pdf.", + "description": "Demonstrates how to create a signature field in a PDF, configure a PKCS#1 signature using a self‑signed PFX certificate, and save the signed document using Aspose.Pdf.", "tags": [ "pdf", "digital-signature", "certificate", - "aspose", + "aspose.pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.PKCS7", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Forms.PKCS1", + "SignatureField.Sign", + "Document.Save" ], "difficulty": "intermediate" }, { "filename": "add-dynamic-heading-to-pdf.cs", - "title": "Add Dynamic Heading to PDF Document", - "description": "Demonstrates loading an existing PDF, creating a heading with dynamic content (date and user name), inserting it at the top of the first page, and saving the updated file.", + "title": "Add Dynamic Heading to PDF", + "description": "Shows how to load a PDF template, create a heading with dynamic date and user information, position and style it, and save the updated document.", "tags": [ "pdf", "heading", "dynamic-text", - "metadata", - "aspose-pdf" + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Text.Heading", - "Aspose.Pdf.Text.FontRepository", - "Aspose.Pdf.Text.Color", - "Aspose.Pdf.Text.HorizontalAlignment" + "Aspose.Pdf.Heading", + "Aspose.Pdf.Position", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.FontRepository" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "add-heading-to-pdf-outline.cs", - "title": "Add Heading to PDF Outline (Bookmark)", - "description": "Demonstrates how to insert a new outline (bookmark) into an existing PDF and set its destination to a specific page using Aspose.Pdf.", + "title": "Add Heading To Pdf Outline", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-hierarchical-numbered-headings.cs", + "title": "Add Hierarchical Numbered Headings to PDF", + "description": "Shows how to apply decimal numbering to headings and create hierarchical numbering (chapters and sections) in a PDF using Aspose.Pdf.", "tags": [ "pdf", - "bookmark", - "outline", - "aspose-pdf", - "csharp" + "heading", + "numbering", + "hierarchical", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.OutlineItemCollection", - "Aspose.Pdf.FitExplicitDestination", - "Aspose.Pdf.Document.Outlines", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.Heading", + "Aspose.Pdf.Text.Paragraphs", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" @@ -5379,13 +6413,13 @@ { "filename": "add-hyperlink-annotation-to-pdf.cs", "title": "Add Hyperlink Annotation to PDF", - "description": "Shows how to insert a clickable link annotation that opens an external website when clicked, using Aspose.Pdf.", + "description": "Shows how to insert a clickable hyperlink annotation that opens an external website in a PDF document using Aspose.Pdf.", "tags": [ "hyperlink", "annotation", "pdf", - "link", - "Aspose.Pdf" + "Aspose.Pdf", + "link" ], "apis_used": [ "Aspose.Pdf.Document", @@ -5393,39 +6427,66 @@ "Aspose.Pdf.Rectangle", "Aspose.Pdf.Annotations.LinkAnnotation", "Aspose.Pdf.Annotations.GoToURIAction", - "Aspose.Pdf.Color" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Page.Annotations.Add" ], "difficulty": "beginner" }, { "filename": "add-indented-paragraph-with-line-spacing.cs", - "title": "Add Indented Paragraph with Custom Line Spacing to PDF", - "description": "Shows how to load an existing PDF, create a TextParagraph with first‑line and subsequent‑line indentation, apply extra line spacing, and insert it onto a page using Aspose.Pdf.", + "title": "Add Indented Paragraph with Line Spacing to PDF", + "description": "Shows how to load a PDF, create a TextParagraph with first‑line and subsequent line indentation, apply line spacing, and insert it onto a page using Aspose.Pdf.", "tags": [ "pdf", "indentation", "line-spacing", "text-paragraph", - "aspose-pdf" + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextParagraph", "Aspose.Pdf.Text.TextBuilder", - "Aspose.Pdf.Text.TextFormattingOptions", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Text.HorizontalAlignment", + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate" }, { "filename": "add-javascript-calculation-to-pdf-form-fields.cs", - "title": "Add JavaScript Calculation to PDF Form Fields", - "description": "Demonstrates creating a PDF with two numeric fields and a read‑only sum field, then attaching a JavaScript action that calculates and displays the sum of the two fields.", + "title": "Add Javascript Calculation To Pdf Form Fields", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-javascript-open-action-to-pdf.cs", + "title": "Add JavaScript Open Action to PDF", + "description": "Demonstrates embedding JavaScript in a PDF with Aspose.Pdf so an alert dialog appears when the document is opened.", + "tags": [ + "javascript", + "pdf", + "open-action", + "alert", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Annotations.JavascriptAction" + ], + "difficulty": "beginner" + }, + { + "filename": "add-javascript-sum-calculation-to-pdf-form.cs", + "title": "Calculate Sum of Two PDF Form Fields with JavaScript", + "description": "Demonstrates creating a PDF with two numeric input fields and a read‑only sum field, then attaching JavaScript actions to automatically calculate and display the sum when either field changes.", "tags": [ "pdf", "javascript", - "form", + "form-fields", "calculation", "aspose-pdf" ], @@ -5434,59 +6495,68 @@ "Aspose.Pdf.Page", "Aspose.Pdf.Forms.NumberField", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Annotations.JavascriptAction" + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Forms.Form.AutoRecalculate" ], "difficulty": "intermediate" }, { - "filename": "add-javascript-open-action-to-pdf.cs", - "title": "Add JavaScript Open Action to PDF", - "description": "Demonstrates how to embed a JavaScript action that shows an alert dialog when the PDF document is opened using Aspose.Pdf.", + "filename": "add-javascript-sum-numeric-pdf-form-fields.cs", + "title": "Add JavaScript to Sum Numeric PDF Form Fields", + "description": "Demonstrates embedding Acrobat JavaScript in a PDF with Aspose.Pdf to calculate the total of two numeric form fields and display the result in a third field.", "tags": [ - "javascript", "pdf", - "open-action", - "alert", + "javascript", + "form-fields", + "calculation", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.TextBoxField", "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Document.OpenAction", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.TextBoxField.ExecuteFieldJavaScript" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "add-javascript-total-calculation-to-pdf-form.cs", - "title": "Add JavaScript Total Calculation to PDF Form Fields", - "description": "Demonstrates how to programmatically attach a JavaScript calculate action to PDF form fields using Aspose.Pdf, creating a read‑only total field that sums specified numeric fields.", + "title": "Add Javascript Total Calculation To Pdf Form", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-level-1-heading-to-pdf.cs", + "title": "Add Level 1 Heading to PDF using Tagged Content", + "description": "Demonstrates how to create a PDF document, use the tagged content API to insert a Level 1 heading element, and save the file.", "tags": [ "pdf", - "javascript", - "form", - "calculation", - "aspose" + "heading", + "tagged-content", + "structure", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.Form.AutoRecalculate" + "Aspose.Pdf.Tagged.ITaggedContent", + "Aspose.Pdf.Tagged.HeaderElement", + "Aspose.Pdf.LogicalStructure.StructureElement", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "add-line-annotation-custom-color-thickness.cs", + "filename": "add-line-annotation-with-custom-color-thickness.cs", "title": "Add Line Annotation with Custom Color and Thickness to PDF", - "description": "Demonstrates loading a PDF, creating a line annotation with a custom blue color and thickness, adding it to a page, and saving the modified document.", + "description": "Demonstrates how to create a line annotation on a PDF page, set its color, and adjust its thickness using Aspose.Pdf.", "tags": [ - "line-annotation", "pdf", - "aspose-pdf", - "custom-color", + "annotation", + "line", + "color", "border" ], "apis_used": [ @@ -5495,7 +6565,6 @@ "Aspose.Pdf.Rectangle", "Aspose.Pdf.Point", "Aspose.Pdf.Annotations.LineAnnotation", - "Aspose.Pdf.Color", "Aspose.Pdf.Annotations.Border" ], "difficulty": "beginner" @@ -5503,7 +6572,7 @@ { "filename": "add-line-separator-annotation-to-pdf-page.cs", "title": "Add Line Separator Annotation to PDF Page", - "description": "Demonstrates how to insert a horizontal line annotation as a visual separator on a PDF page using Aspose.Pdf.", + "description": "Demonstrates how to insert a horizontal line annotation as a visual separator on a specific PDF page using Aspose.Pdf and save the modified document.", "tags": [ "pdf", "annotation", @@ -5514,17 +6583,17 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", "Aspose.Pdf.Point", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Annotations.LineAnnotation", - "Aspose.Pdf.Border" + "Aspose.Pdf.Annotations.Border" ], "difficulty": "beginner" }, { "filename": "add-link-annotation-open-pdf-attachment.cs", - "title": "Create Link Annotation to Open PDF Attachment", - "description": "Demonstrates how to add a link annotation to a PDF page that opens an external PDF attachment when clicked, using Aspose.Pdf's GoToRemoteAction.", + "title": "Add Link Annotation to Open PDF Attachment", + "description": "Shows how to create a link annotation on a PDF page that opens an external PDF attachment using Aspose.Pdf.", "tags": [ "link-annotation", "pdf-attachment", @@ -5542,54 +6611,108 @@ "difficulty": "beginner" }, { - "filename": "add-page-number-footer-to-pdf.cs", - "title": "Add Page Number Footer to PDF", - "description": "Shows how to add a custom footer that displays \"Page X of Y\" on every page of an existing PDF using Aspose.Pdf.", + "filename": "add-multi-level-toc-to-pdf.cs", + "title": "Add Multi‑Level Table of Contents to PDF", + "description": "Demonstrates how to enable auto‑tagging, detect headings, create a TOC element, insert a dedicated TOC page, and configure its appearance and outline integration using Aspose.Pdf.", + "tags": [ + "toc", + "autotagging", + "pdf-structure", + "aspnet", + "aspdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.AutoTaggingSettings", + "Aspose.Pdf.Document.ProcessParagraphs", + "Aspose.Pdf.Tagged.ITaggedContent", + "Aspose.Pdf.Tagged.TOCElement", + "Aspose.Pdf.Structure.StructureElement", + "Aspose.Pdf.TocInfo", + "Aspose.Pdf.Text.TextFragment" + ], + "difficulty": "intermediate" + }, + { + "filename": "add-new-bookmark-to-pdf-outline.cs", + "title": "Add New Bookmark to PDF Outline", + "description": "Demonstrates how to create an outline (bookmark) in an existing PDF, set its title, style, and destination, add it to the document's outline hierarchy, and save the updated file.", + "tags": [ + "pdf", + "bookmark", + "outline", + "aspose-pdf", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.OutlineItemCollection", + "Aspose.Pdf.XYZExplicitDestination", + "Aspose.Pdf.Page", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "intermediate" + }, + { + "filename": "add-page-count-footer-to-pdf.cs", + "title": "Add Page Count Footer to PDF Pages", + "description": "Demonstrates how to add a custom footer that shows \"Page X of Y\" on each page of a PDF using Aspose.Pdf, including creating a placeholder PDF if the source file is missing.", "tags": [ "pdf", "footer", "page-number", - "textstamp", - "aspose-pdf" + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextStamp", - "Aspose.Pdf.Text.FontRepository", - "Aspose.Pdf.Text.Color" + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.Position", + "Aspose.Pdf.Text.HorizontalAlignment" ], "difficulty": "beginner" }, + { + "filename": "add-page-number-footer-to-pdf.cs", + "title": "Add Page Number Footer To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "add-page-numbers-to-pdf-footer.cs", "title": "Add Page Numbers to PDF Footer", - "description": "Shows how to insert dynamic page numbers in the footer of each PDF page using Aspose.Pdf's PageNumberStamp.", + "description": "Demonstrates how to insert sequential page numbers into the footer of each page in a PDF using Aspose.Pdf's PageNumberStamp.", "tags": [ "pdf", "page-number", "footer", "stamp", - "aspose-pdf" + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.PageNumberStamp", - "Aspose.Pdf.Text.FontRepository", - "Aspose.Pdf.Text.Color" + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.FontRepository", + "Aspose.Pdf.Color", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "add-popup-note-annotation.cs", "title": "Add Pop‑up Note Annotation to PDF", - "description": "Shows how to create a TextAnnotation (sticky‑note) with an associated PopupAnnotation that displays detailed information when the user hovers over the note.", + "description": "Shows how to create a TextAnnotation with a linked PopupAnnotation in a PDF using Aspose.Pdf and save the modified document.", "tags": [ "pdf", "annotation", "popup", - "aspose-pdf", + "aspose", "csharp" ], "apis_used": [ @@ -5597,205 +6720,274 @@ "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Annotations.PopupAnnotation" + "Aspose.Pdf.Annotations.PopupAnnotation", + "Aspose.Pdf.Page.Annotations.Add", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "add-reusable-background-image-to-all-pdf-pages.cs", - "title": "Add Reusable Background Image to All PDF Pages", - "description": "Shows how to use a single‑page PDF as a reusable background stamp and apply it to every page of another PDF with Aspose.Pdf.", - "tags": [ - "pdf", - "background", - "stamp", - "Aspose.Pdf", - "C#" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.PdfPageStamp", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Pages" - ], - "difficulty": "beginner" + "title": "Add Reusable Background Image To All Pdf Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "add-signature-field-to-pdf.cs", - "title": "Add Signature Field to PDF with Default Appearance", - "description": "Demonstrates how to load a PDF, set a default appearance for form fields, create a signature field, and add it to the document using Aspose.Pdf.", + "title": "Add Signature Field to PDF with Matching Appearance", + "description": "Shows how to insert a user signature form field into an existing PDF and configure its default appearance to align with the document's style using Aspose.Pdf.", "tags": [ "signature", - "pdf", - "form", + "form-field", "appearance", + "pdf", "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Form", - "Aspose.Pdf.DefaultAppearance", "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Forms.DefaultAppearance", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Form.Add", - "Aspose.Pdf.Form.AddFieldAppearance" + "Aspose.Pdf.Document.Form.Add", + "Aspose.Pdf.Document.Form.AddFieldAppearance", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "add-structured-headings-to-pdf.cs", - "title": "Add Structured Headings to PDF", - "description": "Demonstrates how to create a PDF, add Heading objects with different levels and automatic numbering, and save the document, building a simple table of contents.", + "filename": "add-signature-image-stamp-to-last-page.cs", + "title": "Add Signature Image Stamp to Last PDF Page", + "description": "Shows how to load a PDF with Aspose.Pdf, create an ImageStamp from a signature image, position it on the last page, and save the updated document.", "tags": [ "pdf", - "headings", - "toc", - "aspose", - "csharp" + "signature", + "imagestamp", + "last-page", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Text.Heading", - "Aspose.Pdf.Paragraphs.Add", + "Aspose.Pdf.ImageStamp", + "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "add-styled-table-with-borders-to-pdf.cs", - "title": "Add Styled Table with Borders and Alternating Row Colors to PDF", - "description": "Demonstrates creating a table with a full border, header styling, and alternating row background colors, then inserting it into an existing PDF using Aspose.Pdf.", + "filename": "add-structured-headings-to-pdf.cs", + "title": "Add Structured Headings To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-styled-table-alternating-row-colors.cs", + "title": "Add Styled Table with Alternating Row Colors to PDF", + "description": "Demonstrates creating a table with borders, header styling, and alternating row background colors, then inserting it into a PDF using Aspose.Pdf.", "tags": [ "table", - "borders", - "alternating-rows", "pdf", - "aspose" + "border", + "alternating-rows", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", "Aspose.Pdf.Row", - "Aspose.Pdf.Drawing.BorderInfo", - "Aspose.Pdf.Drawing.Color" + "Aspose.Pdf.BorderInfo", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.FontRepository.FindFont" ], "difficulty": "intermediate" }, { - "filename": "add-visible-signature-field-and-lock-pdf.cs", - "title": "Add Visible Signature Field and Lock PDF after Signing", - "description": "Demonstrates how to create a visible signature field in a PDF, sign it with a PKCS#7 certificate, and lock the document to prevent further modifications.", + "filename": "add-styled-table-with-borders-to-pdf.cs", + "title": "Add Styled Table With Borders To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-visible-digital-signature-and-lock-pdf.cs", + "title": "Add Visible Digital Signature Field and Lock PDF", + "description": "The example loads an existing PDF, creates a visible signature field on the first page, signs it with a PKCS#1 certificate, makes the field read‑only and enforces append‑only mode to lock the document.", "tags": [ - "pdf", "digital-signature", "visible-signature", - "document-lock", - "Aspose.Pdf" + "pdf", + "aspose-pdf", + "document-lock" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.PKCS7", - "Aspose.Pdf.Document.Form.Add", - "Aspose.Pdf.Document.Form.AddFieldAppearance", - "Aspose.Pdf.Forms.SignatureField.Sign", - "Aspose.Pdf.Document.Form.SignaturesAppendOnly", + "Aspose.Pdf.Forms.PKCS1", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.Form.SignaturesAppendOnly" + ], + "difficulty": "intermediate" + }, + { + "filename": "add-visible-signature-field-and-lock-pdf.cs", + "title": "Add Visible Signature Field And Lock Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-watermark-layer-merge-layers.cs", + "title": "Add Watermark Layer and Merge Layers in PDF", + "description": "Demonstrates how to create a watermark as an optional content group (layer), add it to each page of an existing PDF, and then merge all layers into a single layer using Aspose.Pdf.", + "tags": [ + "watermark", + "layer", + "merge", + "pdf", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Layer", + "Aspose.Pdf.ImageStamp", + "Aspose.Pdf.Page.Layers.Add", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Page.MergeLayers", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, + { + "filename": "apply-password-protection-to-pdf.cs", + "title": "Apply Password Protection and Permissions to a PDF", + "description": "Demonstrates loading a PDF, setting user and owner passwords, defining permissions, encrypting with AES‑256, and saving the protected document.", + "tags": [ + "pdf", + "encryption", + "permissions", + "aspose", + "security" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Permissions", + "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner" + }, { "filename": "apply-semi-transparent-image-watermark-to-pdf.cs", + "title": "Apply Semi Transparent Image Watermark To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "apply-semi-transparent-image-watermark.cs", "title": "Apply Semi-Transparent Image Watermark to PDF Pages", - "description": "Demonstrates adding a semi‑transparent image overlay as a watermark to each page of a PDF using Aspose.Pdf.", + "description": "Demonstrates how to overlay a semi‑transparent PNG image as a watermark on every page of a PDF using Aspose.Pdf.", "tags": [ - "watermark", "pdf", - "image-overlay", + "watermark", + "image", "opacity", "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.WatermarkArtifact", - "Aspose.Pdf.WatermarkArtifact.SetImage", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.ImageStamp", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.HorizontalAlignment", + "Aspose.Pdf.VerticalAlignment" ], "difficulty": "beginner" }, { "filename": "attach-pdf-portfolio-with-metadata.cs", - "title": "Attach PDF Portfolio and Set Custom Metadata", - "description": "Demonstrates embedding a PDF as a portfolio (embedded file) into an existing PDF, adding an optional visible file attachment annotation, and setting custom XMP metadata and document information.", + "title": "Attach Pdf Portfolio With Metadata", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "attach-portfolio-pdf-set-description-metadata.cs", + "title": "Attach Portfolio PDF and Set Custom Description Metadata", + "description": "Demonstrates how to embed a PDF portfolio file into an existing PDF document using Aspose.Pdf and add custom description metadata (both XMP and document info).", "tags": [ - "pdf", - "attachment", + "pdf-attachment", "metadata", - "embedded-files", - "aspose-pdf" + "aspose-pdf", + "file-specification", + "embedded-files" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Annotations.FileAttachmentAnnotation", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Color", - "Aspose.Pdf.Document.Metadata", - "Aspose.Pdf.Document.Info" + "Aspose.Pdf.Document.EmbeddedFiles.Add", + "Aspose.Pdf.Document.Metadata.Add", + "Aspose.Pdf.Document.Info.Title", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "auto-tagging-and-headings-pdf.cs", - "title": "Create Clean Navigable PDF with Auto‑Tagging and Headings", - "description": "Demonstrates how to enable Aspose.Pdf auto‑tagging for PDF sanitization, set document metadata, and programmatically add heading and paragraph elements to build a navigable structure tree.", + "filename": "batch-sanitize-pdfs.cs", + "title": "Batch Sanitize PDFs and Export Cleaned Versions", + "description": "Shows how to iterate over a folder of PDF files, remove metadata and compliance information, flatten content, optimize resources, and save sanitized copies to a separate directory using Aspose.Pdf.", "tags": [ "pdf", - "auto-tagging", - "headings", - "structure", - "navigation" + "sanitization", + "batch", + "metadata", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.AutoTaggingSettings", - "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.LogicalStructure.StructureElement", - "Aspose.Pdf.Tagged.HeaderElement", - "Aspose.Pdf.Tagged.ParagraphElement" + "Aspose.Pdf.Document.RemoveMetadata", + "Aspose.Pdf.Document.RemovePdfaCompliance", + "Aspose.Pdf.Document.RemovePdfUaCompliance", + "Aspose.Pdf.Document.Flatten", + "Aspose.Pdf.Document.OptimizeResources", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "batch-sanitize-pdfs.cs", - "title": "Batch Sanitize PDFs and Save Cleaned Copies", - "description": "Demonstrates how to iterate over a folder of PDF files, remove metadata and compliance flags, optimize each document, and save the sanitized versions to a separate directory using Aspose.Pdf.", + "filename": "check-hidden-annotations-in-pdf.cs", + "title": "Check for Hidden Annotations in PDF", + "description": "Demonstrates how to load a PDF with Aspose.Pdf and inspect each page for annotations that have the Hidden flag set, returning a boolean result.", "tags": [ "pdf", - "sanitization", - "batch-processing", - "metadata", - "aspose-pdf" + "annotations", + "hidden", + "validation", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Document.RemoveMetadata", - "Document.RemovePdfaCompliance", - "Document.RemovePdfUaCompliance", - "Document.Optimize", - "Document.Save" + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.AnnotationFlags", + "Aspose.Pdf.Annotations.AnnotationCollection" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "check-pdf-incremental-updates.cs", - "title": "Check PDF for Incremental Updates using Aspose.Pdf", - "description": "Demonstrates how to load a PDF with Aspose.Pdf and determine whether it contains incremental updates, indicating post‑creation modifications.", + "title": "Check PDF for Incremental Updates", + "description": "Loads a PDF using Aspose.Pdf and determines whether the file contains incremental updates saved after its initial creation.", "tags": [ "pdf", "incremental-update", @@ -5811,36 +7003,63 @@ }, { "filename": "clean-pdf-remove-metadata-attachments-javascript.cs", - "title": "Clean PDF by Removing Metadata, Attachments, and JavaScript", - "description": "Loads a PDF with Aspose.Pdf, strips all document metadata, embedded file attachments, and JavaScript actions, then optimizes resources and saves the cleaned file.", + "title": "Clean Pdf Remove Metadata Attachments Javascript", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "combine-multiple-html-to-pdf.cs", + "title": "Combine Multiple HTML Strings into a Single PDF", + "description": "Shows how to load HTML strings into Aspose.Pdf Document objects with custom HtmlLoadOptions, merge the documents, and save the combined result as a PDF file.", "tags": [ + "html", "pdf", - "metadata", - "attachments", - "javascript", - "optimization" + "merge", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.RemoveMetadata", - "Aspose.Pdf.Document.EmbeddedFiles", - "Aspose.Pdf.Document.RemovePdfUaCompliance", - "Aspose.Pdf.Document.RemovePdfaCompliance", - "Aspose.Pdf.Document.OptimizeResources", + "Aspose.Pdf.HtmlLoadOptions", + "Aspose.Pdf.Document.Merge", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, + { + "filename": "compress-pdf-images-and-export-jpeg-quality-80.cs", + "title": "Compress PDF Images and Export Pages as JPEG with Quality 80", + "description": "Shows how to compress embedded images in a PDF using JPEG quality 80 via OptimizationOptions, then render each page to a JPEG file with the same quality.", + "tags": [ + "pdf", + "image-compression", + "jpeg", + "optimization", + "export" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Optimization.OptimizationOptions", + "Aspose.Pdf.Optimization.ImageCompressionOptions", + "Aspose.Pdf.Devices.JpegDevice", + "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.Document.OptimizeResources", + "Aspose.Pdf.Devices.JpegDevice.Process" + ], + "difficulty": "intermediate" + }, { "filename": "convert-pdf-pages-to-high-resolution-tiff.cs", "title": "Convert PDF Pages to High-Resolution TIFF Images", - "description": "Shows how to load a PDF with Aspose.Pdf and convert each page to a TIFF file at a specified DPI using TiffDevice and resolution settings.", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, set a custom DPI, and convert each page to a lossless TIFF file using TiffDevice.", "tags": [ "pdf", "tiff", "conversion", - "resolution", - "aspose.pdf" + "dpi", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", @@ -5853,14 +7072,22 @@ }, { "filename": "convert-pdf-pages-to-jpeg-images.cs", - "title": "Convert PDF Pages to JPEG Images", - "description": "Shows how to load a PDF with Aspose.Pdf and convert each page into a separate JPEG image file saved to a directory.", + "title": "Convert Pdf Pages To Jpeg Images", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "convert-pdf-pages-to-jpeg-no-compression.cs", + "title": "Convert PDF Pages to JPEG without Compression", + "description": "Shows how to render each PDF page to a high‑resolution JPEG image using Aspose.Pdf while preserving original quality by disabling compression.", "tags": [ "pdf", - "image-conversion", "jpeg", + "image-conversion", "aspose", - "csharp" + "no-compression" ], "apis_used": [ "Aspose.Pdf.Document", @@ -5872,172 +7099,160 @@ "difficulty": "beginner" }, { - "filename": "convert-pdf-pages-to-jpeg-no-compression.cs", - "title": "Convert PDF Pages to JPEG Without Image Compression", - "description": "Loads a PDF, disables image compression during optimization, and exports each page as a high‑quality JPEG image, preserving the original image data.", + "filename": "convert-pdf-pages-to-jpeg-quality-80.cs", + "title": "Convert Pdf Pages To Jpeg Quality 80", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "convert-pdf-pages-to-png-images.cs", + "title": "Convert PDF Pages to PNG Images", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, iterate through each page, and save every page as an individual PNG image file.", "tags": [ "pdf", - "jpeg", - "image-compression", - "optimization", - "aspose-pdf" + "png", + "image-conversion", + "batch", + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Optimization.OptimizationOptions", - "Aspose.Pdf.Document.OptimizeResources", - "Aspose.Pdf.Devices.JpegDevice", - "Aspose.Pdf.Devices.JpegDevice.Process" + "Aspose.Pdf.Page", + "Aspose.Pdf.Document.ConvertPageToPNGMemoryStream", + "Aspose.Pdf.Document.Pages" ], "difficulty": "intermediate" }, { - "filename": "convert-pdf-pages-to-jpeg-quality-80.cs", - "title": "Convert PDF Pages to JPEG Images with 80% Quality", - "description": "The example loads a PDF, applies JPEG compression with quality 80 to embedded images, and then converts each page to a high‑resolution JPEG file using a JpegDevice.", + "filename": "convert-pdf-pages-to-png-images__v2.cs", + "title": "Convert PDF Pages to PNG Images and Verify Count", + "description": "Loads a PDF, renders each page to a PNG file using Aspose.Pdf, and asserts that the number of generated images matches the page count.", "tags": [ "pdf", - "jpeg", - "compression", - "conversion", - "aspose-pdf" + "image-conversion", + "unit-test", + "aspose", + "png" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Optimization.OptimizationOptions", - "Aspose.Pdf.Devices.JpegDevice", - "Aspose.Pdf.Devices.Resolution", - "Aspose.Pdf.Page" + "Aspose.Pdf.Page", + "Aspose.Pdf.Devices.PngDevice", + "Aspose.Pdf.Devices.PngDevice.Process", + "Aspose.Pdf.Document.Pages" ], "difficulty": "intermediate" }, { - "filename": "convert-pdf-to-html-with-rasterized-pages.cs", - "title": "Convert PDF to HTML with Rasterized Pages", - "description": "Shows how to convert a PDF document to HTML while rasterizing each page as external PNG images using Aspose.Pdf's HtmlSaveOptions.", + "filename": "convert-pdf-pages-to-rasterized-images-html.cs", + "title": "Convert PDF Pages to Rasterized Images in HTML", + "description": "Demonstrates how to load a PDF with Aspose.PDF and save it as HTML where each page is rasterized into external PNG images using a high‑resolution setting.", "tags": [ "pdf", "html", "rasterization", - "conversion", - "Aspose.Pdf" + "image", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.HtmlSaveOptions", - "Aspose.Pdf.HtmlSaveOptions.RasterImagesSavingModes", - "Aspose.Pdf.HtmlSaveOptions.PartsEmbeddingModes", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.HtmlSaveOptions.RasterImagesSavingMode", + "Aspose.Pdf.HtmlSaveOptions.PartsEmbeddingMode", + "Aspose.Pdf.HtmlSaveOptions.SplitIntoPages" ], "difficulty": "beginner" }, + { + "filename": "convert-pdf-to-html-with-rasterized-pages.cs", + "title": "Convert Pdf To Html With Rasterized Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "convert-pdf-to-html.cs", - "title": "Convert PDF to HTML", - "description": "Loads a PDF document and saves it as an HTML file using Aspose.Pdf's Document and HtmlSaveOptions classes.", - "tags": [ - "pdf", - "html", - "conversion", - "aspose-pdf", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.HtmlSaveOptions", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner" + "title": "Convert Pdf To Html", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "create-5x7-inch-postcard-pdf.cs", - "title": "Create a 5×7 Inch Postcard PDF", - "description": "Demonstrates how to generate a PDF with a custom 5×7‑inch page size suitable for postcard printing using Aspose.Pdf.", + "title": "Create a 5x7 Inch Postcard PDF with Aspose.Pdf", + "description": "Demonstrates how to generate a PDF with a custom 5x7‑inch page size and add a sample text fragment using Aspose.Pdf.", "tags": [ "pdf", - "postcard", "custom-page-size", - "aspose", + "postcard", + "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.Page.SetPageSize", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.FontRepository.FindFont", + "Aspose.Pdf.Text.Position", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "create-hierarchical-numbered-headings.cs", - "title": "Create Hierarchical Numbered Headings in PDF", - "description": "Shows how to add Heading objects with automatic decimal (Arabic) numbering and proper hierarchical sequencing to a PDF document using Aspose.Pdf.", + "filename": "create-clickable-table-of-contents.cs", + "title": "Create Clickable Table of Contents in PDF", + "description": "Shows how to generate a PDF with a table of contents where each entry is a clickable link that jumps to the corresponding section heading using Aspose.Pdf.", "tags": [ - "heading", - "numbering", "pdf", - "hierarchy", - "Aspose.Pdf" + "table-of-contents", + "linkannotation", + "gotoaction", + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Text.Heading", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.NumberingStyle" + "Aspose.Pdf.Annotations.LinkAnnotation", + "Aspose.Pdf.Annotations.GoToAction", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.FontRepository" ], - "difficulty": "beginner" + "difficulty": "intermediate" + }, + { + "filename": "create-hierarchical-numbered-headings.cs", + "title": "Create Hierarchical Numbered Headings", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "create-landscape-pdf-page.cs", - "title": "Create Landscape PDF Page with Rotation", - "description": "Shows how to generate a PDF page in landscape orientation by setting the page size, marking it as landscape, applying a 90‑degree rotation, and adding sample text.", - "tags": [ - "pdf", - "landscape", - "rotation", - "aspose-pdf", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.PageSize", - "Aspose.Pdf.PageInfo.IsLandscape", - "Aspose.Pdf.Page.Rotate", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.Position", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner" + "title": "Create Landscape Pdf Page", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "create-magazine-pdf-with-text-and-image.cs", - "title": "Create Magazine‑Style PDF with Text and Advertisement Image", - "description": "Demonstrates how to generate a PDF that mimics a magazine article layout by adding a block of text and placing an advertisement image in a right‑hand column.", - "tags": [ - "pdf", - "magazine", - "text", - "image", - "layout" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.FontRepository", - "Aspose.Pdf.Color", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Page.AddImage", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "intermediate" + "title": "Create Magazine Pdf With Text And Image", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "create-multi-page-table-pdf.cs", "title": "Create Multi‑Page Table in PDF with Aspose.Pdf", - "description": "Shows how to generate a PDF containing a table that automatically splits across multiple pages, with a repeating header row, using Aspose.Pdf.", + "description": "Shows how to generate a PDF containing a table that automatically splits across pages, repeats the header row, and auto‑fits column widths using Aspose.Pdf.", "tags": [ "pdf", "table", @@ -6049,186 +7264,265 @@ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", - "Aspose.Pdf.BorderInfo", "Aspose.Pdf.Table.ImportDataTable", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.ColumnAdjustment" ], "difficulty": "intermediate" }, { - "filename": "create-pdf-clickable-table-of-contents.cs", + "filename": "create-pdf-clickable-index.cs", "title": "Create PDF with Clickable Table of Contents", - "description": "Shows how to generate a PDF that includes a table of contents where each entry is a clickable link that jumps to its corresponding section page using Aspose.Pdf.", + "description": "Shows how to build a PDF that contains a Table of Contents page with entries linked to their respective section pages using Aspose.Pdf link annotations and GoTo actions.", "tags": [ "pdf", "table-of-contents", "link", - "aspose-pdf", - "document" + "goto", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.FontRepository", "Aspose.Pdf.Annotations.LinkAnnotation", "Aspose.Pdf.Annotations.GoToAction", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Color", + "Aspose.Pdf.Border" ], "difficulty": "intermediate" }, { - "filename": "create-pdf-dynamic-table.cs", - "title": "Create PDF with Dynamic Table from DataTable", - "description": "Demonstrates generating a PDF document with a table whose rows are populated from a DataTable, allowing the number of rows to vary dynamically.", + "filename": "create-pdf-clickable-table-of-contents.cs", + "title": "Create Pdf Clickable Table Of Contents", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-pdf-custom-title-page.cs", + "title": "Create PDF with Custom Title Page and Background", + "description": "Demonstrates how to generate a PDF, set document metadata, add a full‑page colored background using a Graph, and place centered title text with a custom font and color.", "tags": [ "pdf", - "table", - "aspose", - "datatable", - "dynamic" + "title-page", + "background", + "custom-font", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Table", - "Aspose.Pdf.BorderInfo", - "Aspose.Pdf.MarginInfo", - "Aspose.Pdf.Color", - "Aspose.Pdf.Table.ImportDataTable" + "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.FontRepository.FindFont" ], "difficulty": "intermediate" }, + { + "filename": "create-pdf-dynamic-table.cs", + "title": "Create Pdf Dynamic Table", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "create-pdf-from-multiple-html-fragments.cs", - "title": "Create PDF from Multiple HTML Fragments with Custom Options", - "description": "Shows how to convert a collection of HTML strings into a single PDF document using Aspose.Pdf, applying custom HtmlLoadOptions and merging the generated pages.", + "title": "Create Pdf From Multiple Html Fragments", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-pdf-header-with-current-date.cs", + "title": "Create PDF Header with Current Date Using JavaScript", + "description": "Shows how to add a shared read‑only date field to the top of each PDF page and populate it with the current date via a JavaScript OnOpen action.", "tags": [ "pdf", - "html", - "aspose-pdf", - "merge", - "load-options" + "header", + "javascript", + "datefield", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.HtmlLoadOptions", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Pages.Add" + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.DateField", + "Aspose.Pdf.Annotations.JavascriptAction" ], "difficulty": "intermediate" }, { "filename": "create-pdf-multiple-page-sizes-orientations.cs", - "title": "Create PDF with Multiple Page Sizes and Orientations", - "description": "Demonstrates how to add pages with different sizes and portrait/landscape orientations to a single PDF document using Aspose.Pdf.", + "title": "Create Pdf Multiple Page Sizes Orientations", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-pdf-multiple-sections-different-page-sizes.cs", + "title": "Create PDF with Multiple Sections and Different Page Sizes", + "description": "Demonstrates how to generate a PDF containing several pages, each with its own page size and orientation (portrait, landscape, custom) using Aspose.Pdf.", "tags": [ "pdf", "page-size", "orientation", - "aspose-pdf", - "csharp" + "multiple-pages", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Page.SetPageSize", + "Aspose.Pdf.PageSize", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Page.Paragraphs.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Page.SetPageSize" + ], + "difficulty": "intermediate" + }, + { + "filename": "create-pdf-numbered-headings-sanitize.cs", + "title": "Create PDF with Numbered Headings and Sanitize Structure", + "description": "The example creates a PDF containing numbered headings and body text, enables auto‑tagging to preserve the heading hierarchy, then sanitizes the document by removing metadata and PDF/UA compliance flags.", + "tags": [ + "pdf", + "headings", + "auto-tagging", + "sanitize", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.FontRepository.FindFont", + "Aspose.Pdf.AutoTaggingSettings", + "Aspose.Pdf.Document.RemoveMetadata", + "Aspose.Pdf.Document.RemovePdfUaCompliance", + "Aspose.Pdf.Document.Optimize" ], "difficulty": "intermediate" }, { "filename": "create-pdf-portfolio.cs", - "title": "Create PDF Portfolio with Embedded PDFs", - "description": "Shows how to bundle several PDF files into a single PDF portfolio container using Aspose.Pdf.", + "title": "Create PDF Portfolio with Embedded Files", + "description": "Shows how to bundle several PDF documents into a single PDF portfolio by embedding each source file as a file specification using Aspose.Pdf.", "tags": [ "pdf", "portfolio", "embedding", - "aspose-pdf", - "collection" + "aspose.pdf", + "c#" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Collection", "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Document.Info", + "Aspose.Pdf.Document.Pages.Add", + "Aspose.Pdf.Document.EmbeddedFiles.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "create-pdf-roman-headings-validation.cs", - "title": "Create PDF with Roman Numeral Chapter Headings and Validate Order", - "description": "Demonstrates generating a PDF where each page has a chapter heading formatted as a Roman numeral, then extracts the headings to verify the sequence is correct.", + "filename": "create-pdf-radio-button-group.cs", + "title": "Create PDF with Radio Button Group for Multiple Choice", + "description": "Demonstrates how to generate a PDF document containing a form with a radio button group representing a multiple‑choice question using Aspose.Pdf.", "tags": [ "pdf", - "roman-numerals", - "headings", - "validation", - "aspose" + "form", + "radio-button", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.FontRepository.FindFont", + "Aspose.Pdf.Forms.RadioButtonField", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.Position", - "Aspose.Pdf.Text.TextAbsorber" + "Aspose.Pdf.Text.Position" ], - "difficulty": "intermediate" + "difficulty": "beginner" + }, + { + "filename": "create-pdf-roman-headings-validation.cs", + "title": "Create Pdf Roman Headings Validation", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "create-pdf-table-with-rich-text-formatting.cs", + "title": "Create Pdf Table With Rich Text Formatting", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-pdf-table-with-rich-text.cs", "title": "Create PDF Table with Rich Text Formatting", - "description": "Shows how to generate a PDF containing a table where each cell displays text with different styles such as bold, italic, underline, and colored fonts using Aspose.Pdf.", + "description": "Demonstrates how to build a PDF document containing a table where each cell can hold rich‑text formatting such as bold, italic, colored, underlined and multiple text segments using Aspose.Pdf.", "tags": [ "pdf", "table", "rich-text", - "formatting", - "aspose-pdf" + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", "Aspose.Pdf.Row", - "Aspose.Pdf.Cell", "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.TextSegment", "Aspose.Pdf.FontRepository.FindFont" ], "difficulty": "intermediate" }, { "filename": "create-pdf-title-page-custom-font.cs", - "title": "Create PDF Title Page with Custom Font and Color", - "description": "Demonstrates how to generate a PDF, set document metadata, and add a centered title page using a custom font, size, and color with Aspose.Pdf.", + "title": "Create Pdf Title Page Custom Font", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-pdf-toc-with-dot-leaders.cs", + "title": "Create PDF Table of Contents with Dot Leaders", + "description": "Shows how to generate a PDF document that includes a table of contents with dot leaders between entry titles and page numbers using Aspose.Pdf's tagged content features.", "tags": [ "pdf", - "title-page", - "custom-font", - "color", - "aspose-pdf" + "toc", + "dot-leader", + "tagged-content", + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.FontRepository", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Color", - "Aspose.Pdf.Position" + "Aspose.Pdf.Tagged.ITaggedContent", + "Aspose.Pdf.Tagged.TOCElement", + "Aspose.Pdf.LogicalStructure.LevelFormat", + "Aspose.Pdf.LogicalStructure.TabLeaderType", + "Aspose.Pdf.LogicalStructure.TocInfo" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "create-pdf-with-background-template.cs", "title": "Create PDF with Background Template Page", - "description": "Shows how to use a page from an existing PDF as a background template for multiple new pages using Aspose.Pdf.", + "description": "Shows how to load a PDF page as a background template and apply it to multiple pages using PdfPageStamp in Aspose.Pdf.", "tags": [ "pdf", "background", @@ -6238,65 +7532,83 @@ ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.PdfPageStamp", - "Aspose.Pdf.PageInfo", + "Aspose.Pdf.Document.Pages.Add", "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "create-pdf-with-clickable-index.cs", - "title": "Create PDF with Clickable Index", - "description": "Shows how to generate a PDF that contains an index page where each entry links to its corresponding section using Aspose.Pdf link annotations and GoTo actions.", + "filename": "create-pdf-with-clickable-email-link.cs", + "title": "Create PDF with Clickable Email Link", + "description": "Shows how to add a link annotation that opens the default mail client via a mailto URI in a PDF using Aspose.Pdf.", "tags": [ "pdf", - "index", - "link", + "email-link", "annotation", - "goto" + "mailto", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Annotations.LinkAnnotation", - "Aspose.Pdf.Annotations.GoToAction", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Annotations.GoToURIAction", + "Aspose.Pdf.Border", + "Aspose.Pdf.Color" ], - "difficulty": "intermediate" + "difficulty": "beginner" + }, + { + "filename": "create-pdf-with-clickable-index.cs", + "title": "Create Pdf With Clickable Index", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "create-pdf-with-date-picker-form-field.cs", + "title": "Create Pdf With Date Picker Form Field", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-pdf-with-date-picker.cs", "title": "Create PDF with Date Picker Form Field", - "description": "Shows how to add a date picker (DateField) to a PDF, set its format and appearance, and save the document using Aspose.Pdf.", + "description": "Shows how to generate a PDF that contains a date picker form field, set its format, and apply basic visual styling using Aspose.Pdf.", "tags": [ "pdf", "form", - "datefield", - "datepicker", - "aspose" + "date-picker", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.DateField", - "Aspose.Pdf.Drawing.DefaultAppearance", - "Document.Save" + "Aspose.Pdf.Annotations.Border", + "Aspose.Pdf.Color", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Form.Add" ], "difficulty": "beginner" }, { "filename": "create-pdf-with-dropdown-list.cs", - "title": "Create PDF with Dropdown List (ComboBox)", - "description": "Shows how to generate a PDF containing a form ComboBox populated from an array using Aspose.Pdf.", + "title": "Create PDF with Dropdown (ComboBox) Form Field", + "description": "Shows how to generate a PDF containing a ComboBox (dropdown) form field and populate it with items from an array using Aspose.Pdf.", "tags": [ "pdf", - "form", "dropdown", "combobox", + "form", "aspose" ], "apis_used": [ @@ -6304,37 +7616,24 @@ "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.ComboBoxField", - "Document.Save", - "Document.Form.Add", - "ComboBoxField.AddOption", - "ComboBoxField.Selected" + "Aspose.Pdf.Forms.ComboBoxField.AddOption", + "Aspose.Pdf.Form", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "create-pdf-with-email-link.cs", - "title": "Create PDF with Clickable Email Link", - "description": "Shows how to add a link annotation that opens the default mail client using a mailto: URI in a PDF generated with Aspose.Pdf.", - "tags": [ - "pdf", - "email-link", - "annotation", - "mailto", - "aspose" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.LinkAnnotation", - "Aspose.Pdf.Annotations.GoToURIAction" - ], - "difficulty": "beginner" + "title": "Create Pdf With Email Link", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "create-pdf-with-embedded-truetype-font.cs", "title": "Create PDF with Embedded TrueType Font", - "description": "Demonstrates how to generate a PDF document and embed a TrueType font so the text renders consistently on any device.", + "description": "Demonstrates how to embed a TrueType font into a PDF using Aspose.Pdf so the document renders consistently on any device.", "tags": [ "pdf", "font-embedding", @@ -6344,112 +7643,115 @@ ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.FontRepository", - "Aspose.Pdf.Font", "Aspose.Pdf.Page", + "Aspose.Pdf.FontRepository.OpenFont", + "Aspose.Pdf.Font", "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Color", - "Aspose.Pdf.Position" - ], - "difficulty": "beginner" - }, - { - "filename": "create-pdf-with-level-1-heading.cs", - "title": "Create PDF with Level 1 Heading", - "description": "Shows how to create a new PDF document, add a level‑1 heading using the tagged content API, and save the file.", - "tags": [ - "pdf", - "heading", - "tagged-content", - "aspose-pdf", - "document" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.HeaderElement", - "Aspose.Pdf.Tagged.StructureElement", - "Aspose.Pdf.Tagged.TaggedContent.CreateHeaderElement", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "create-pdf-with-radio-button-form.cs", - "title": "Create PDF with Radio Button Form", - "description": "Shows how to generate a PDF containing a multiple‑choice question by adding a RadioButtonField with several options using Aspose.Pdf and saving the document.", + "filename": "create-pdf-with-merged-header-table.cs", + "title": "Create PDF with Merged Header Table", + "description": "Shows how to generate a PDF that contains a single merged‑header table followed by a multi‑column data table, applying borders, padding, and text styling with Aspose.Pdf.", "tags": [ "pdf", - "form", - "radiobutton", - "aspose", + "table", + "merged-header", + "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Forms.RadioButtonField", - "Aspose.Pdf.Forms.RadioButtonField.AddOption", - "Aspose.Pdf.Document.Form.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Table", + "Aspose.Pdf.Row", + "Aspose.Pdf.Cell", + "Aspose.Pdf.BorderInfo", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Text.TextFragment" ], "difficulty": "intermediate" }, + { + "filename": "create-pdf-with-radio-button-form.cs", + "title": "Create Pdf With Radio Button Form", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "create-read-only-text-field.cs", + "title": "Create Read Only Text Field", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-readonly-text-field-with-default-value.cs", "title": "Create Read‑Only Text Field with Default Value in PDF", - "description": "Demonstrates how to add a text box form field to a PDF, set a default value, make it read‑only, and define its appearance using Aspose.Pdf.", + "description": "Demonstrates how to add a TextBoxField to a PDF, set its default text, and make it read‑only using Aspose.Pdf.", "tags": [ "pdf", "textfield", "readonly", - "default-value", - "aspose-pdf" + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Annotations.DefaultAppearance" + "Aspose.Pdf.Text.DefaultAppearance", + "Aspose.Pdf.Form.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "create-sanitize-pdf-with-auto-numbered-headings.cs", - "title": "Create and Sanitize PDF with Auto‑Numbered Headings", - "description": "Demonstrates how to generate a PDF containing auto‑numbered headings and then sanitize the document by removing annotations, metadata, and flattening form fields while preserving the heading structure.", + "filename": "create-rotated-landscape-pdf-page.cs", + "title": "Create Rotated Landscape PDF Page", + "description": "Shows how to rotate a PDF page 90° to achieve landscape orientation with Aspose.Pdf and add a text fragment for visual verification.", "tags": [ "pdf", - "headings", - "auto-numbering", - "sanitization", - "aspose-pdf" + "landscape", + "rotation", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Heading", - "Aspose.Pdf.TextFragment", - "Aspose.Pdf.FontRepository", - "Aspose.Pdf.AutoTaggingSettings", - "Aspose.Pdf.Document.RemoveMetadata", - "Aspose.Pdf.Document.Flatten" + "Aspose.Pdf.PageSize", + "Aspose.Pdf.Rotation", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Position" ], - "difficulty": "intermediate" + "difficulty": "beginner" + }, + { + "filename": "create-sanitize-pdf-with-auto-numbered-headings.cs", + "title": "Create Sanitize Pdf With Auto Numbered Headings", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "create-searchable-pdf-from-scanned-images.cs", "title": "Create Searchable PDF from Scanned Images using OCR Overlay", - "description": "Shows how to load a scanned PDF, run OCR on each page to generate an invisible text layer, and save the result as a searchable PDF.", + "description": "Shows how to load a scanned‑image PDF, use Aspose.Pdf's Convert method to overlay invisible OCR text via a callback, and save the result as a searchable PDF.", "tags": [ - "OCR", - "searchable-pdf", - "Aspose.Pdf", - "image-to-text", - "document-processing" + "pdf", + "ocr", + "searchable", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", @@ -6459,15 +7761,15 @@ "difficulty": "intermediate" }, { - "filename": "create-zugferd-pdf-invoice.cs", - "title": "Create ZUGFeRD PDF Invoice with Embedded XML", - "description": "Shows how to build a simple invoice PDF, add text elements, embed a ZUGFeRD XML file, convert the document to ZUGFeRD format, and save the resulting PDF.", + "filename": "create-zugferd-compliant-pdf-invoice.cs", + "title": "Create ZUGFeRD-Compliant PDF Invoice with Embedded XML", + "description": "The example creates a simple PDF invoice, embeds ZUGFeRD XML data, converts the document to ZUGFeRD format, and saves the resulting PDF.", "tags": [ "ZUGFeRD", "PDF", + "Invoice", "Aspose.Pdf", - "XML", - "Invoice" + "XML" ], "apis_used": [ "Aspose.Pdf.Document", @@ -6476,56 +7778,70 @@ "Aspose.Pdf.FontRepository.FindFont", "Aspose.Pdf.Document.BindXml", "Aspose.Pdf.Document.Convert", - "Aspose.Pdf.PdfFormat.ZUGFeRD", - "Aspose.Pdf.ConvertErrorAction.Delete" + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "customize-crash-report-filename.cs", - "title": "Customize Crash Report Filename and Message with Aspose.Pdf", - "description": "Shows how to set a custom message and override the default filename when generating an HTML crash report using Aspose.Pdf's CrashReportOptions.", + "filename": "create-zugferd-pdf-invoice.cs", + "title": "Create Zugferd Pdf Invoice", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "customize-crash-report-filename-message.cs", + "title": "Customize Crash Report Filename and Message in Aspose.Pdf", + "description": "Shows how to set a custom message and specify a custom file name for a crash report generated by Aspose.Pdf when an exception occurs.", "tags": [ "crash-report", + "exception-handling", "custom-message", - "pdf", - "exception", - "Aspose.Pdf" + "Aspose.Pdf", + "debugging" ], "apis_used": [ - "Aspose.Pdf.CrashReportOptions", - "Aspose.Pdf.PdfException.GenerateCrashReport", - "Aspose.Pdf.CrashReportOptions.CustomMessage", - "Aspose.Pdf.CrashReportOptions.CrashReportFilename", - "Aspose.Pdf.CrashReportOptions.CrashReportPath" + "CrashReportOptions", + "CrashReportOptions.CustomMessage", + "CrashReportOptions.CrashReportFilename", + "CrashReportOptions.CrashReportPath", + "PdfException.GenerateCrashReport" ], "difficulty": "beginner" }, { - "filename": "detect-hidden-annotations-in-pdf.cs", - "title": "Detect Hidden Annotations in a PDF", - "description": "Demonstrates loading a PDF with Aspose.Pdf and iterating through its pages and annotations to determine if any annotation has the Hidden flag set.", + "filename": "customize-toc-formatting.cs", + "title": "Customize Table of Contents Formatting in PDF", + "description": "Demonstrates how to set different tab leader types for TOC levels and disable page number display using Aspose.Pdf.", "tags": [ - "pdf", - "annotations", - "hidden", - "validation", - "aspose" + "toc", + "formatting", + "aspose.pdf", + "csharp", + "pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.AnnotationFlags", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Page.Annotations" + "Aspose.Pdf.TocInfo", + "Aspose.Pdf.Text.LevelFormat", + "Aspose.Pdf.Text.TabLeaderType", + "Aspose.Pdf.Page" ], - "difficulty": "beginner" + "difficulty": "intermediate" + }, + { + "filename": "detect-hidden-annotations-in-pdf.cs", + "title": "Detect Hidden Annotations In Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "digitally-sign-pdf-with-timestamp.cs", - "title": "Digitally Sign PDF with Timestamp from TSA", - "description": "Demonstrates how to add a PKCS#7 digital signature to a PDF using Aspose.Pdf and include a trusted Time‑Stamp Authority timestamp.", + "title": "Digitally Sign PDF with Trusted Timestamp", + "description": "Demonstrates how to add a PKCS#7 digital signature to a PDF and attach a timestamp from a trusted Time‑Stamp Authority using Aspose.Pdf.", "tags": [ "pdf", "digital-signature", @@ -6538,6 +7854,7 @@ "Aspose.Pdf.Forms.SignatureField", "Aspose.Pdf.Forms.PKCS7", "Aspose.Pdf.Forms.TimestampSettings", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.SignatureField.Sign", "Aspose.Pdf.Document.Save" ], @@ -6545,95 +7862,74 @@ }, { "filename": "embed-zugferd-xml-into-pdf.cs", - "title": "Embed ZUGFeRD XML into PDF and Verify Attachment", - "description": "Demonstrates how to attach a ZUGFeRD XML file to an existing PDF as an invisible file‑attachment annotation, save the result, and confirm the embedded file using Aspose.Pdf's EmbeddedFiles collection.", + "title": "Embed ZUGFeRD XML into PDF and Verify Embedding", + "description": "Demonstrates how to embed a ZUGFeRD invoice XML file into an existing PDF using Aspose.Pdf and then verify that the XML is present in the embedded files collection.", "tags": [ "ZUGFeRD", "PDF", - "attachment", + "Embedding", "Aspose.Pdf", - "embed-xml" + "Invoice" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Annotations.FileAttachmentAnnotation", - "Aspose.Pdf.Annotations.AnnotationFlags", - "Aspose.Pdf.EmbeddedFileCollection", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Document.EmbeddedFiles", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.FileSpecification.Name" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "encrypt-pdf-aes256-restrict-permissions.cs", - "title": "Encrypt PDF with AES‑256 and Restrict Printing/Copying", - "description": "Shows how to encrypt a PDF using AES‑256 with Aspose.Pdf, set user and owner passwords, and limit permissions to prevent printing and copying.", + "title": "Encrypt PDF with AES‑256 and Restrict Permissions", + "description": "Shows how to load a PDF, apply AES‑256 encryption, disable printing and copying by setting no permissions, and save the encrypted file.", "tags": [ - "pdf encryption", + "pdf", + "encryption", "aes-256", "permissions", - "aspose.pdf", - "c#" + "aspose.pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Encrypt", "Aspose.Pdf.Permissions", "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.Encrypt", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, - { - "filename": "encrypt-pdf-with-user-owner-passwords.cs", - "title": "Encrypt PDF with User and Owner Passwords", - "description": "Demonstrates how to load a PDF, apply AES‑256 encryption with separate user and owner passwords, set specific permissions, and save the protected document using Aspose.Pdf.", - "tags": [ - "pdf-encryption", - "permissions", - "aspose-pdf", - "csharp", - "aes256" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm", - "Document.Encrypt", - "Document.Save" - ], - "difficulty": "beginner" - }, { "filename": "extract-embedded-files-from-pdf-portfolio.cs", "title": "Extract Embedded Files from PDF Portfolio", - "description": "Demonstrates how to iterate through a PDF portfolio's embedded files and save each one to a local directory, using Aspose.Pdf with reflection for flexibility.", + "description": "Demonstrates how to load a PDF portfolio, enumerate its embedded files, and save each file to a specified output directory using Aspose.Pdf.", "tags": [ "pdf", - "embedded-files", + "embedded", "extraction", "portfolio", - "aspose-pdf" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Document.EmbeddedFiles", - "Aspose.Pdf.EmbeddedFile.Save", - "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.FileSpecification.Contents" + "Aspose.Pdf.EmbeddedFileCollection", + "Aspose.Pdf.EmbeddedFile", + "Aspose.Pdf.EmbeddedFile.GetFileStream" ], "difficulty": "intermediate" }, { "filename": "extract-hyperlinks-from-pdf.cs", - "title": "Extract Hyperlinks from PDF to Text File", - "description": "Demonstrates how to load a PDF with Aspose.Pdf, iterate through its pages and link annotations, collect external URI actions, and write the URLs to a plain‑text file.", + "title": "Extract Hyperlinks from PDF and Save to Text File", + "description": "Loads a PDF, iterates through its pages and link annotations, extracts the target URLs, and writes them to a plain‑text file.", "tags": [ "pdf", "hyperlink", "extraction", "aspose", - "csharp" + "text-output" ], "apis_used": [ "Aspose.Pdf.Document", @@ -6647,69 +7943,75 @@ { "filename": "extract-images-from-pdf-to-png.cs", "title": "Extract Images from PDF and Save as PNG", - "description": "Shows how to iterate through PDF pages, retrieve embedded XImage resources, and render each image to a PNG file while preserving its original resolution using Aspose.Pdf.", + "description": "Demonstrates how to open a PDF with Aspose.Pdf, iterate through each page's image resources, and save each image as a PNG file while preserving its original resolution.", "tags": [ "pdf", "image-extraction", - "png", "aspose-pdf", + "png", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.XImage", - "Aspose.Pdf.Devices.PngDevice", - "Aspose.Pdf.Operators.Do", - "Aspose.Pdf.Operators.GSave", - "Aspose.Pdf.Operators.GRestore" + "Aspose.Pdf.Page.Resources", + "Aspose.Pdf.XImage.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "extract-pdf-outline-hierarchy.cs", "title": "Extract and Print PDF Outline Hierarchy", - "description": "Shows how to create a PDF with bookmarks (outlines) and then read and display the outline hierarchy using Aspose.Pdf.", + "description": "Loads a PDF file, accesses its outline (bookmarks) and prints the hierarchical structure to the console.", "tags": [ "pdf", - "outlines", + "outline", "bookmarks", - "aspose-pdf", - "recursion" + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Outlines", "Aspose.Pdf.OutlineCollection", - "Aspose.Pdf.OutlineItemCollection", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Outlines" + "Aspose.Pdf.OutlineCollection.VisibleCount", + "Aspose.Pdf.OutlineItemCollection" ], "difficulty": "beginner" }, { "filename": "extract-text-from-pdf-page-range.cs", - "title": "Extract Text from Specific PDF Page Range", - "description": "Shows how to extract text from a defined range of pages in a PDF using Aspose.Pdf and write the result to a UTF‑8 text file.", + "title": "Extract Text From Pdf Page Range", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-text-from-pdf-pages.cs", + "title": "Extract Text from Specific PDF Pages", + "description": "Shows how to load a PDF with Aspose.Pdf, extract text from a defined page range using TextAbsorber, and write the result to a plain text file.", "tags": [ "pdf", "text-extraction", "page-range", - "aspose", + "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextAbsorber", "Aspose.Pdf.Page.Accept", - "Aspose.Pdf.Document.Pages" + "Aspose.Pdf.PageCollection", + "Aspose.Pdf.Page" ], "difficulty": "intermediate" }, { "filename": "extract-text-from-pdf-to-utf8-file.cs", - "title": "Extract Text from PDF and Save as UTF-8 File", - "description": "Demonstrates how to load a PDF with Aspose.Pdf, extract all textual content using a TextAbsorber, and write the result to a UTF‑8 encoded text file.", + "title": "Extract Text from PDF to UTF-8 File", + "description": "Demonstrates loading a PDF with Aspose.Pdf, extracting all page text using TextAbsorber, and writing the result to a UTF‑8 encoded text file.", "tags": [ "pdf", "text-extraction", @@ -6720,20 +8022,21 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Text.TextAbsorber", - "Aspose.Pdf.Document.Pages.Accept" + "Aspose.Pdf.Document.Pages.Accept", + "Aspose.Pdf.Text.TextAbsorber.Text" ], "difficulty": "beginner" }, { "filename": "extract-xmp-metadata-from-pdf.cs", - "title": "Extract XMP Metadata from PDF to XML", - "description": "Shows how to load a PDF with Aspose.Pdf, retrieve its embedded XMP metadata, and save it as an XML file.", + "title": "Extract XMP Metadata from PDF", + "description": "Shows how to load a PDF using Aspose.Pdf, retrieve its embedded XMP metadata, and save it as an XML file.", "tags": [ "pdf", "xmp", "metadata", - "aspose.pdf", - "csharp" + "extraction", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", @@ -6744,7 +8047,7 @@ { "filename": "flatten-pdf-form-fields.cs", "title": "Flatten PDF Form Fields to Static Content", - "description": "Demonstrates loading a PDF with Aspose.Pdf, flattening all interactive form fields into static content, and saving the resulting PDF.", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, flatten all interactive form fields into static page content, and save the resulting document.", "tags": [ "pdf", "flatten", @@ -6761,142 +8064,162 @@ }, { "filename": "generate-accessible-pdf-with-tags.cs", - "title": "Generate Accessible PDF with Headings, Paragraphs, and Table", - "description": "Shows how to create a PDF and add accessibility tags for a level‑1 heading, a paragraph, and a table using Aspose.Pdf's tagging API.", - "tags": [ - "accessibility", - "pdf", - "tagging", - "heading", - "table" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.AutoTaggingSettings", - "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.HeaderElement", - "Aspose.Pdf.Tagged.ParagraphElement", - "Aspose.Pdf.Tagged.TableElement", - "Aspose.Pdf.Table" - ], - "difficulty": "intermediate" + "title": "Generate Accessible Pdf With Tags", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "generate-crash-report-for-pdf-exceptions.cs", - "title": "Generate Crash Report for PDF Exceptions", - "description": "Demonstrates how to catch a PdfException, configure CrashReportOptions, and generate an HTML crash report file using Aspose.Pdf.", + "title": "Generate Crash Report For Pdf Exceptions", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "generate-crash-report-pdf.cs", + "title": "Generate Crash Report PDF from Exception", + "description": "Demonstrates capturing an exception, creating an HTML crash report with Aspose.Pdf, and converting that report into a PDF document.", "tags": [ - "pdf", - "exception-handling", "crash-report", + "pdf", + "exception", "aspose-pdf", - "csharp" + "html-to-pdf" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.PdfException", "Aspose.Pdf.CrashReportOptions", "Aspose.Pdf.PdfException.GenerateCrashReport", - "Aspose.Pdf.CrashReportOptions.CustomMessage" + "Aspose.Pdf.Document", + "Aspose.Pdf.HtmlLoadOptions", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "generate-crash-report-to-network-share.cs", "title": "Generate Crash Report to Network Share with Aspose.Pdf", - "description": "Shows how to configure CrashReportOptions to write an Aspose.Pdf crash report to a network share, with fallback to a local folder and verification of the generated file.", + "description": "Demonstrates configuring CrashReportOptions to write an Aspose.Pdf crash report to a UNC network share, with fallback handling and verification of the generated file.", "tags": [ "crash-report", "network-share", "Aspose.Pdf", "exception", - "file-io" + "file-output" ], "apis_used": [ - "Aspose.Pdf.CrashReportOptions", - "Aspose.Pdf.PdfException.GenerateCrashReport", - "Aspose.Pdf.CrashReportOptions.CrashReportDirectory", - "Aspose.Pdf.CrashReportOptions.CrashReportFilename", - "Aspose.Pdf.CrashReportOptions.CrashReportPath" + "CrashReportOptions", + "CrashReportOptions.CrashReportDirectory", + "CrashReportOptions.CrashReportFilename", + "CrashReportOptions.CrashReportPath", + "PdfException.GenerateCrashReport" ], "difficulty": "intermediate" }, { - "filename": "generate-pdf-crash-report.cs", - "title": "Generate PDF Crash Report from an Exception", - "description": "Shows how to capture an exception, create an HTML crash report with Aspose.Pdf's CrashReportOptions, and convert that report into a PDF file.", + "filename": "generate-crash-report-with-custom-output-directory.cs", + "title": "Generate Crash Report with Custom Output Directory", + "description": "Demonstrates how to configure a custom directory and filename for Aspose.Pdf crash reports using CrashReportOptions, then verifies that the report is created.", "tags": [ "crash-report", - "exception", - "pdf", - "aspose", - "html-to-pdf" + "exception-handling", + "output-directory", + "Aspose.Pdf", + "debugging" ], "apis_used": [ "CrashReportOptions", - "PdfException.GenerateCrashReport", - "Document", - "HtmlLoadOptions" + "PdfException.GenerateCrashReport" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "generate-pdf-crash-report__v2.cs", - "title": "Generate PDF Crash Report with Custom Message", - "description": "Demonstrates catching a PDF loading error and creating an HTML crash report using Aspose.Pdf's CrashReportOptions with a custom message.", + "filename": "generate-dynamic-pdf-table.cs", + "title": "Generate a Dynamic PDF Table from a DataTable", + "description": "Demonstrates how to build a DataTable at runtime and import it into an Aspose.Pdf Table that automatically expands rows, then save the result as a PDF.", "tags": [ - "crash-report", - "error-handling", "pdf", - "aspose-pdf", - "debugging" + "table", + "aspose", + "datatable", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.CrashReportOptions", - "Aspose.Pdf.PdfException", - "Aspose.Pdf.PdfException.GenerateCrashReport", - "Aspose.Pdf.CrashReportOptions.CrashReportPath" + "Aspose.Pdf.Page", + "Aspose.Pdf.Table", + "Aspose.Pdf.BorderInfo", + "Aspose.Pdf.Table.ImportDataTable", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "handle-pdf-errors-generate-crash-report.cs", - "title": "Handle PDF Errors and Generate Crash Report", - "description": "The example loads a PDF with Aspose.Pdf, performs simple processing, and demonstrates robust error handling by catching PdfException and generic exceptions, then creates a detailed HTML crash report.", + "filename": "generate-pdf-crash-report.cs", + "title": "Generate PDF Crash Report on PdfException", + "description": "Demonstrates catching a PdfException, configuring CrashReportOptions, and generating an HTML crash report file using Aspose.Pdf.", "tags": [ "pdf", - "error-handling", + "exception", "crash-report", "aspose", - "csharp" + "error-handling" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", "Aspose.Pdf.PdfException", "Aspose.Pdf.CrashReportOptions", "Aspose.Pdf.PdfException.GenerateCrashReport" ], - "difficulty": "intermediate" + "difficulty": "beginner" + }, + { + "filename": "generate-pdf-crash-report__v2.cs", + "title": "Generate PDF Crash Report with Custom Message", + "description": "Demonstrates how to catch a PdfException, configure custom crash‑report options, and generate an HTML crash report using Aspose.Pdf.", + "tags": [ + "crash-report", + "pdf", + "exception", + "debugging", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.PdfException", + "Aspose.Pdf.CrashReportOptions", + "Aspose.Pdf.PdfException.GenerateCrashReport" + ], + "difficulty": "beginner" + }, + { + "filename": "handle-pdf-errors-generate-crash-report.cs", + "title": "Handle Pdf Errors Generate Crash Report", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "insert-automatic-page-numbers-into-pdf.cs", "title": "Insert Automatic Page Numbers into PDF", - "description": "Shows how to add a page number stamp to a PDF, apply it to existing and newly inserted pages, and update pagination so the numbers adjust automatically.", + "description": "Shows how to add a PageNumberStamp to every page of a PDF and reapply it after inserting a new page so the numbering updates automatically.", "tags": [ - "pdf", - "pagenumber", + "page-number", "stamp", - "aspose", - "csharp" + "pdf", + "Aspose.Pdf", + "insert-page" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PageNumberStamp", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.PageNumberStamp", + "Aspose.Pdf.Text.FontRepository.FindFont", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Pages.Insert", - "Aspose.Pdf.Pages.UpdatePagination", + "Aspose.Pdf.Document.Pages.Insert", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" @@ -6904,7 +8227,7 @@ { "filename": "insert-blank-cover-page-into-pdf.cs", "title": "Insert Blank Cover Page into PDF", - "description": "Shows how to load a PDF with Aspose.Pdf, insert an empty page at the beginning as a cover sheet, and save the modified document.", + "description": "Shows how to load a PDF with Aspose.Pdf, insert an empty page at the beginning as a cover sheet, and save the updated document.", "tags": [ "pdf", "cover-page", @@ -6914,49 +8237,57 @@ ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Pages.Insert", + "Aspose.Pdf.PageCollection", + "Aspose.Pdf.PageCollection.Insert", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Page" + "Aspose.Pdf.Document.Pages" ], "difficulty": "beginner" }, { "filename": "insert-high-res-image-into-pdf.cs", - "title": "Insert High‑Resolution Image into PDF with Absolute Positioning", - "description": "Shows how to create a high‑resolution bitmap in memory, encode it as JPEG, and place it on a PDF page at specific coordinates using Aspose.Pdf.", + "title": "Insert High Res Image Into Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "insert-image-into-pdf-absolute-coordinates.cs", + "title": "Insert Image into PDF at Absolute Coordinates", + "description": "The example creates a PDF document, defines a rectangle with absolute coordinates, and inserts an in‑memory PNG image into the page at that location.", "tags": [ "pdf", "image", - "positioning", - "Aspose.Pdf", - "C#" + "absolute-position", + "aspose-pdf", + "memory-stream" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", + "Aspose.Pdf.PageCollection.Add", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Page.AddImage", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "insert-pdf-page-into-another.cs", - "title": "Insert a PDF Page into Another PDF", - "description": "Demonstrates how to copy a specific page from one PDF document and insert it at a given position in another PDF using Aspose.Pdf.", + "title": "Insert a PDF Page into Another PDF at a Specific Position", + "description": "Demonstrates loading two PDF documents, extracting a page from the source PDF, inserting it into a target PDF at a given position, and saving the result.", "tags": [ "pdf", - "page-insertion", "aspose.pdf", "csharp", + "page-insertion", "document-manipulation" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Pages", - "Aspose.Pdf.Pages.Insert", + "Aspose.Pdf.PageCollection", + "Aspose.Pdf.PageCollection.Insert", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" @@ -6964,13 +8295,13 @@ { "filename": "interrupt-resume-large-pdf-save.cs", "title": "Interrupt and Resume Large PDF Save Operation", - "description": "Shows how to cancel a long‑running PDF save using Aspose.Pdf's async API and an InterruptMonitor, then release resources and resume the save later.", + "description": "Demonstrates how to pause a long-running PDF save using Aspose.Pdf's interrupt monitor, release resources, and then resume the incremental save later.", "tags": [ "pdf", - "aspose", - "cancellation", - "async", - "interrupt" + "interrupt", + "asynchronous", + "incremental-save", + "resource-management" ], "apis_used": [ "Aspose.Pdf.Document", @@ -6983,8 +8314,8 @@ }, { "filename": "load-pdf-into-document.cs", - "title": "Load PDF into Document", - "description": "Shows how to load a PDF file into an Aspose.Pdf Document object and retrieve basic information such as page count.", + "title": "Load PDF File into Aspose.Pdf Document", + "description": "Demonstrates how to verify a PDF file's existence, load it into an Aspose.Pdf Document object, and access basic document information such as page count.", "tags": [ "pdf", "load", @@ -6994,106 +8325,116 @@ ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages" + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.PageCollection", + "Aspose.Pdf.PageCollection.Count", + "Aspose.Pdf.Document.Dispose" ], "difficulty": "beginner" }, { - "filename": "merge-two-pdfs-preserve-bookmarks.cs", - "title": "Merge Two PDFs While Preserving Bookmarks", - "description": "Shows how to combine two PDF files into a single document using Aspose.Pdf, keeping the outlines/bookmarks from both source PDFs.", + "filename": "log-pdf-sanitization-start-end-times.cs", + "title": "Log PDF Sanitization Start and End Times", + "description": "Demonstrates sanitizing a PDF with Aspose.Pdf while recording the operation's start time, end time, and duration to an audit log for auditing purposes.", "tags": [ - "pdf-merge", - "bookmarks", - "aspose-pdf", - "csharp", - "document" + "pdf", + "sanitization", + "logging", + "audit", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Merge", + "Aspose.Pdf.Document.EnableSignatureSanitization", + "Aspose.Pdf.Document.Validate", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.MergeOptions", - "Aspose.Pdf.Document.MergeOptions.IsNeedPageTreeBalance" + "Aspose.Pdf.PdfFormat" ], "difficulty": "intermediate" }, { - "filename": "merged-header-table-pdf.cs", - "title": "Create PDF with Merged Header Table", - "description": "Shows how to generate a PDF that contains a header table with a single cell spanning multiple columns, followed by a regular data table, using Aspose.Pdf.", + "filename": "merge-pdfs-with-bookmarks.cs", + "title": "Merge PDFs and Preserve Bookmarks with Aspose.Pdf", + "description": "Demonstrates how to combine two PDF files into one while copying all pages and preserving the bookmark hierarchy from both source documents using Aspose.Pdf.", "tags": [ "pdf", - "table", - "merged-header", - "aspose-pdf", + "merge", + "bookmarks", + "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Table", - "Aspose.Pdf.Row", - "Aspose.Pdf.Cell", - "Aspose.Pdf.BorderInfo", - "Aspose.Pdf.MarginInfo", - "Aspose.Pdf.Text.FontRepository" + "Aspose.Pdf.OutlineItemCollection", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Pages.Add" ], "difficulty": "intermediate" }, + { + "filename": "merge-two-pdfs-preserve-bookmarks.cs", + "title": "Merge Two Pdfs Preserve Bookmarks", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "merged-header-table-pdf.cs", + "title": "Merged Header Table Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "pdf-header-current-date-javascript.cs", - "title": "Create PDF Header with Current Date Using JavaScript", - "description": "Shows how to add a shared DateField in the header of a PDF and populate it with the current date via page‑level JavaScript using Aspose.Pdf.", - "tags": [ - "pdf", - "header", - "javascript", - "datefield", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.DateField", - "Aspose.Pdf.Annotations.JavascriptAction", - "Page.Actions.OnOpen", - "Document.Form.Add", - "Document.Save" - ], - "difficulty": "intermediate" + "title": "Pdf Header Current Date Javascript", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "pdf-sanitization-audit-log.cs", - "title": "PDF Sanitization with Auditing Log", - "description": "Demonstrates how to sanitize a PDF using Aspose.Pdf, record the operation's start and end timestamps, and write an audit entry to a log file.", + "filename": "pdf-processing-with-crash-report.cs", + "title": "PDF Processing with Detailed Crash Report Generation", + "description": "Demonstrates loading a PDF, adding a blank page, saving it, and generating detailed crash reports for Aspose.Pdf exceptions and any unexpected errors using try‑catch blocks.", "tags": [ "pdf", - "sanitization", - "audit", - "logging", - "aspose-pdf" + "crash-report", + "exception-handling", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.EnableSignatureSanitization", - "Aspose.Pdf.Document.Validate", + "Aspose.Pdf.Document.Pages.Add", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.PdfFormat" + "Aspose.Pdf.PdfException", + "Aspose.Pdf.CrashReportOptions", + "Aspose.Pdf.PdfException.GenerateCrashReport" ], "difficulty": "intermediate" }, { - "filename": "print-pdf-using-os-verb.cs", - "title": "Print PDF Document Using OS Print Verb", - "description": "Shows how to load a PDF with Aspose.Pdf and dispatch it to the default printer using the operating system's \"print\" verb from a .NET application.", + "filename": "pdf-sanitization-audit-log.cs", + "title": "Pdf Sanitization Audit Log", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "print-pdf-using-default-handler.cs", + "title": "Print PDF Document Using Default PDF Handler", + "description": "Shows how to verify a PDF file exists and is valid, then send it to the printer by launching the OS default PDF viewer with the \"print\" verb via Process.Start.", "tags": [ "pdf", "printing", - "aspose", "process", - "csharp" + "validation", + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document" @@ -7101,43 +8442,58 @@ "difficulty": "beginner" }, { - "filename": "rasterize-pdf-to-png-lossless-compression.cs", + "filename": "print-pdf-using-os-verb.cs", + "title": "Print Pdf Using Os Verb", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "rasterize-pdf-pages-to-png.cs", "title": "Rasterize PDF Pages to PNG with Lossless Compression", - "description": "The example loads a PDF, configures ImageCompressionOptions for lossless PNG output, optimizes the document, and rasterizes each page to PNG files at a specified DPI.", + "description": "Demonstrates how to convert each page of a PDF into a high‑resolution PNG image while applying lossless PNG compression using Aspose.Pdf's optimization options.", "tags": [ "pdf", "png", - "image-compression", "rasterization", - "aspose-pdf" + "compression", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.OptimizationOptions", - "Aspose.Pdf.OptimizationOptions.ImageCompressionOptions", - "Aspose.Pdf.Document.OptimizeResources", + "Aspose.Pdf.Optimization.OptimizationOptions.All", + "Aspose.Pdf.Optimization.ImageCompressionOptions", "Aspose.Pdf.Devices.PngDevice", "Aspose.Pdf.Devices.Resolution", "Aspose.Pdf.Devices.PngDevice.Process" ], "difficulty": "intermediate" }, + { + "filename": "rasterize-pdf-to-png-lossless-compression.cs", + "title": "Rasterize Pdf To Png Lossless Compression", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "remove-all-annotations-from-pdf.cs", - "title": "Remove All Annotations from a PDF", - "description": "Loads a PDF document, iterates through each page, deletes every annotation, and saves a clean copy without any markup.", + "title": "Remove All Annotations from PDF", + "description": "Shows how to load a PDF with Aspose.Pdf, iterate through each page, delete all annotations, and save a clean version.", "tags": [ "pdf", "annotations", - "cleanup", + "remove", "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.AnnotationCollection", + "Aspose.Pdf.PageCollection", "Aspose.Pdf.Page.Annotations", + "Aspose.Pdf.Annotations.Delete", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" @@ -7145,76 +8501,92 @@ { "filename": "remove-all-annotations-from-pdf__v2.cs", "title": "Remove All Annotations from PDF", - "description": "Loads a PDF document, iterates through each page, deletes all annotations, and saves the sanitized file.", + "description": "Shows how to load a PDF with Aspose.Pdf, iterate through each page, clear all annotations, and save the sanitized document.", "tags": [ "pdf", "annotations", "sanitization", - "aspose.pdf", - "csharp" + "csharp", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.AnnotationCollection", - "Aspose.Pdf.AnnotationCollection.Delete", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Page.Annotations", + "Aspose.Pdf.AnnotationsCollection.Clear" ], "difficulty": "beginner" }, { - "filename": "remove-annotations-attachments-from-pdf.cs", - "title": "Remove Annotations and Attachments from PDF", - "description": "Demonstrates how to strip all comments, markup, and embedded files from a PDF using Aspose.Pdf, then optimizes resources and saves the cleaned document.", + "filename": "remove-annotations-and-attachments.cs", + "title": "Strip Annotations and Embedded Files from PDF", + "description": "Demonstrates how to flatten a PDF to remove annotations and form fields, delete embedded file attachments, and optimize the document by discarding unused objects and streams using Aspose.Pdf.", "tags": [ "pdf", "annotations", "attachments", - "cleanup", - "aspose" + "flatten", + "optimization" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Document.Flatten", "Aspose.Pdf.Document.EmbeddedFiles", - "Aspose.Pdf.EmbeddedFileCollection.Delete", - "Aspose.Pdf.Document.OptimizeResources", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.EmbeddedFiles.Delete", + "Aspose.Pdf.Optimization.OptimizationOptions", + "Aspose.Pdf.Document.OptimizeResources" ], - "difficulty": "beginner" + "difficulty": "intermediate" + }, + { + "filename": "remove-annotations-attachments-from-pdf.cs", + "title": "Remove Annotations Attachments From Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "remove-hidden-data-reapply-headings.cs", - "title": "Remove Hidden Data and Re‑Apply Headings in a PDF", - "description": "Demonstrates loading a PDF, stripping hidden metadata, outlines, and unused resources, then enabling auto‑tagging to recreate heading structures for proper navigation before saving the cleaned file.", + "title": "Remove Hidden Data Reapply Headings", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "remove-hidden-data-rebuild-headings-pdf.cs", + "title": "Remove Hidden Data and Rebuild Headings in PDF", + "description": "Loads a PDF, strips hidden metadata and PDF/A/UA compliance flags, optimizes resources, reprocesses paragraphs to restore heading navigation, and saves the cleaned document.", "tags": [ "pdf-cleaning", "metadata", - "auto-tagging", "headings", - "Aspose.Pdf" + "optimization", + "aspose-pdf" ], "apis_used": [ - "Document", - "Document.RemoveMetadata", - "Document.RemovePdfaCompliance", - "Document.Outlines.Delete", - "Document.Flatten", - "Document.OptimizeResources", - "AutoTaggingSettings" + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.RemoveMetadata", + "Aspose.Pdf.Document.RemovePdfaCompliance", + "Aspose.Pdf.Document.RemovePdfUaCompliance", + "Aspose.Pdf.Document.OptimizeResources", + "Aspose.Pdf.Document.ProcessParagraphs", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "remove-javascript-from-pdf.cs", - "title": "Remove JavaScript from PDF Document", - "description": "Demonstrates how to strip all JavaScript actions—including document‑level, page‑level, and annotation‑level scripts—from a PDF using Aspose.Pdf, then saves the cleaned file.", + "title": "Remove JavaScript from PDF", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, clear document‑level, page‑level and link‑annotation JavaScript actions, and save the cleaned file.", "tags": [ "javascript", "pdf", "security", - "annotations", - "aspose" + "aspose-pdf", + "annotations" ], "apis_used": [ "Aspose.Pdf.Document", @@ -7223,6 +8595,28 @@ "Aspose.Pdf.Annotations.LinkAnnotation", "Aspose.Pdf.Annotations.JavascriptAction" ], + "difficulty": "beginner" + }, + { + "filename": "remove-metadata-javascript-embedded-files-pdf.cs", + "title": "Remove Metadata, JavaScript, and Embedded Files from a PDF", + "description": "Demonstrates how to clean a PDF by removing standard and hidden metadata, embedded attachments, and JavaScript actions using Aspose.Pdf, then saving the reduced‑size document.", + "tags": [ + "pdf", + "metadata", + "cleanup", + "aspose", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.RemoveMetadata", + "Aspose.Pdf.Document.EmbeddedFiles", + "Aspose.Pdf.Document.OptimizeResources", + "Aspose.Pdf.Optimization.OptimizationOptions.All", + "Aspose.Pdf.Document.RemovePdfaCompliance", + "Aspose.Pdf.Document.RemovePdfUaCompliance" + ], "difficulty": "intermediate" }, { @@ -7239,30 +8633,29 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.PageCollection", "Aspose.Pdf.PageCollection.Delete", + "Aspose.Pdf.PageCollection.Count", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "replace-image-in-pdf-page.cs", - "title": "Replace Existing Image in PDF Page", - "description": "Shows how to replace an existing image resource on a PDF page using Aspose.Pdf while preserving its layout, and how to add a new image when no images are present.", + "title": "Replace Image in PDF Page", + "description": "Demonstrates how to replace an existing image on a PDF page with a new image while preserving its layout (position, size, rotation) using Aspose.Pdf.", "tags": [ "pdf", - "image-replacement", + "image", + "replace", "aspose-pdf", - "csharp", - "page-manipulation" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Page.Resources.Images", - "Aspose.Pdf.ImagesCollection.Replace", - "Aspose.Pdf.Page.AddImage", - "Aspose.Pdf.Rectangle", + "Aspose.Pdf.ImagePlacementAbsorber", + "Aspose.Pdf.ImagePlacement", + "Aspose.Pdf.ImagePlacement.Replace", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" @@ -7270,18 +8663,18 @@ { "filename": "replace-pdf-page-with-html.cs", "title": "Replace PDF Page with HTML-Generated Page", - "description": "Demonstrates how to replace a specific page in an existing PDF with a page generated from HTML using Aspose.Pdf's HTML conversion capabilities.", + "description": "Demonstrates how to replace a specific page in an existing PDF with a new page created from HTML content using Aspose.Pdf's HTML-to-PDF conversion.", "tags": [ "pdf", "html", "page-replacement", - "aspose", - "conversion" + "conversion", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.HtmlLoadOptions", - "Aspose.Pdf.Page", + "Aspose.Pdf.Document.Pages", "Aspose.Pdf.Document.Pages.Delete", "Aspose.Pdf.Document.Pages.Insert", "Aspose.Pdf.Document.Save" @@ -7290,8 +8683,16 @@ }, { "filename": "replace-text-in-pdf-preserving-formatting.cs", - "title": "Replace Text in PDF While Preserving Formatting", - "description": "Demonstrates loading a PDF, searching for a specific word using TextFragmentAbsorber, replacing each occurrence while keeping the original formatting, and saving the updated document.", + "title": "Replace Text In Pdf Preserving Formatting", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "replace-word-in-pdf.cs", + "title": "Replace Word in PDF While Preserving Formatting", + "description": "Demonstrates how to search for a specific word in a PDF and replace it with another word using Aspose.Pdf, while automatically keeping the original font, size, and color of the text.", "tags": [ "pdf", "text-replacement", @@ -7303,153 +8704,227 @@ "Aspose.Pdf.Document", "Aspose.Pdf.Text.TextFragmentAbsorber", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Document.Pages.Accept", + "Aspose.Pdf.PageCollection.Accept", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "rotate-pdf-pages-90-degrees.cs", - "title": "Rotate PDF Pages 90 Degrees for Portrait Display", - "description": "Loads a PDF document, sets each page's rotation to 90 degrees so it appears in portrait orientation on landscape devices, and saves the modified file.", + "filename": "roman-numeral-headings-pdf.cs", + "title": "Create PDF with Roman Numeral Chapter Headings and Validate Sequence", + "description": "Demonstrates how to generate a PDF with chapter headings formatted as uppercase Roman numerals, then reloads the file to verify that each heading follows the correct numeric order.", "tags": [ "pdf", - "rotation", - "aspose", - "csharp", - "pages" + "roman-numerals", + "headings", + "validation", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rotation", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Pages" + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.FontRepository", + "Aspose.Pdf.Text.TextAbsorber", + "Aspose.Pdf.Position" ], - "difficulty": "beginner" + "difficulty": "intermediate" + }, + { + "filename": "rotate-pdf-pages-90-degrees.cs", + "title": "Rotate Pdf Pages 90 Degrees", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "sanitize-multiple-pdfs.cs", - "title": "Sanitize Multiple PDFs and Save Cleaned Versions", - "description": "Demonstrates loading all PDF files from a folder, removing metadata, compliance tags, form fields, and unused resources, then saving the sanitized copies to a target directory using Aspose.Pdf.", + "title": "Sanitize Multiple Pdfs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "sanitize-pdf-add-heading.cs", + "title": "Sanitize PDF and Add Heading with Auto‑Tagging", + "description": "Shows how to enable Aspose.Pdf auto‑tagging to sanitize a PDF, set language and title metadata, and create a top‑level heading and paragraph for improved navigation.", "tags": [ "pdf", - "sanitization", - "batch", - "metadata", - "aspnet" + "auto-tagging", + "heading", + "accessibility", + "structure" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.RemoveMetadata", - "Aspose.Pdf.Document.RemovePdfaCompliance", - "Aspose.Pdf.Document.RemovePdfUaCompliance", - "Aspose.Pdf.Document.Flatten", - "Aspose.Pdf.Document.OptimizeResources", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.AutoTaggingSettings", + "Aspose.Pdf.Tagged.ITaggedContent", + "Aspose.Pdf.LogicalStructure.StructureElement", + "Aspose.Pdf.Tagged.HeaderElement", + "Aspose.Pdf.Tagged.ParagraphElement" ], "difficulty": "intermediate" }, { "filename": "sanitize-pdf-remove-embedded-scripts.cs", - "title": "Sanitize PDF by Removing Embedded Scripts", - "description": "Demonstrates how to configure Aspose.Pdf's hidden data sanitization to delete embedded JavaScript and actions from a PDF before saving the sanitized document.", + "title": "Sanitize PDF by Removing Embedded Scripts and Attachments", + "description": "Demonstrates how to configure Aspose.Pdf's hidden data sanitizer to delete JavaScript actions and embedded files before sanitizing a PDF document.", "tags": [ "pdf", "sanitization", "javascript", - "hidden-data", - "aspnet" + "embedded-files", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Security.HiddenDataSanitization.HiddenDataSanitizationOptions", "Aspose.Pdf.Security.HiddenDataSanitization.HiddenDataSanitizer", "Aspose.Pdf.Document.EmbeddedFiles", + "Aspose.Pdf.Security.HiddenDataSanitization.HiddenDataSanitizer.Sanitize", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "sanitize-pdf-remove-hidden-content-keep-metadata.cs", - "title": "Sanitize PDF by Removing Hidden Content While Keeping Metadata", - "description": "Shows how to configure Aspose.Pdf's optimization options to strip hidden data such as private info, unused objects/streams, and PDF/A/UA compliance markers while preserving the document metadata.", - "tags": [ - "pdf", - "sanitization", - "metadata", + "title": "Sanitize Pdf Remove Hidden Content Keep Metadata", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "sanitize-pdf-remove-hidden-data-keep-metadata.cs", + "title": "Sanitize PDF by Removing Hidden Data While Preserving Metadata", + "description": "Demonstrates how to configure Aspose.Pdf to strip all hidden content from a PDF except its metadata, using optimization options and compliance flag removal.", + "tags": [ + "pdf", + "sanitization", + "metadata", "optimization", - "aspnet" + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Optimization.OptimizationOptions", - "Aspose.Pdf.Document.OptimizeResources", "Aspose.Pdf.Document.RemovePdfaCompliance", "Aspose.Pdf.Document.RemovePdfUaCompliance", + "Aspose.Pdf.Document.EnableSignatureSanitization", + "Aspose.Pdf.Optimization.OptimizationOptions.All", + "Aspose.Pdf.Document.OptimizeResources", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "intermediate" + }, + { + "filename": "sanitize-pdf-remove-hidden-data.cs", + "title": "Sanitize PDF by Removing Hidden Data", + "description": "Shows a console app that loads a PDF with Aspose.Pdf, clears metadata, JavaScript, and embedded file annotations, then saves a sanitized copy.", + "tags": [ + "pdf", + "sanitization", + "metadata", + "aspose", + "console" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.FileAttachmentAnnotation", + "Aspose.Pdf.DocumentInfo", + "Aspose.Pdf.Document.JavaScript", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "sanitize-pdf-remove-metadata-private-info.cs", - "title": "Sanitize PDF by Removing Metadata and Private Info", - "description": "Demonstrates how to clear PDF metadata, compliance flags, and private search index data using Aspose.Pdf's optimization options.", + "title": "Sanitize PDF by Removing Metadata and Private Information", + "description": "Demonstrates how to clear standard metadata and private data such as search indexes from a PDF using Aspose.Pdf's optimization features, then save the sanitized document.", "tags": [ "pdf", "metadata", "sanitization", "optimization", - "aspose-pdf" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.RemovePdfaCompliance", - "Aspose.Pdf.Document.RemovePdfUaCompliance", "Aspose.Pdf.Document.RemoveMetadata", "Aspose.Pdf.Optimization.OptimizationOptions", - "Aspose.Pdf.Document.OptimizeResources" + "Aspose.Pdf.Document.OptimizeResources", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "sanitize-pdf-remove-metadata.cs", - "title": "Sanitize PDF by Removing Metadata and Flattening Content", - "description": "Demonstrates a console application that loads a PDF, removes hidden metadata, compliance information, flattens forms, optimizes resources, and saves a sanitized copy.", + "title": "Sanitize Pdf Remove Metadata", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "sanitize-pdfs-remove-metadata.cs", + "title": "Sanitize PDFs by Removing Metadata and Optimizing Resources", + "description": "The example loads each PDF from a folder, removes metadata, compliance information, flattens forms, optimizes resources, and saves the cleaned file to an output directory.", "tags": [ "pdf", "metadata", "sanitization", "aspose-pdf", - "console" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Document.RemoveMetadata", - "Aspose.Pdf.Document.RemovePdfaCompliance", "Aspose.Pdf.Document.RemovePdfUaCompliance", + "Aspose.Pdf.Document.RemovePdfaCompliance", "Aspose.Pdf.Document.Flatten", "Aspose.Pdf.Document.OptimizeResources", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.PdfException" + "Aspose.Pdf.Document.Save" + ], + "difficulty": "intermediate" + }, + { + "filename": "selective-page-rasterization-hidden-data-sanitizer.cs", + "title": "Selective Page Rasterization with Hidden Data Sanitization", + "description": "Demonstrates how to sanitize hidden data, optimize PDF resources, and rasterize specific pages by flattening transparency and replacing the original pages.", + "tags": [ + "pdf", + "rasterization", + "hidden-data", + "optimization", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.HiddenDataSanitizerOptions", + "Aspose.Pdf.OptimizationOptions", + "Aspose.Pdf.Document.OptimizeResources", + "Aspose.Pdf.Document.FlattenTransparency", + "Aspose.Pdf.PageCollection.Insert", + "Aspose.Pdf.PageCollection.Delete" ], "difficulty": "intermediate" }, { "filename": "set-pdf-document-metadata.cs", - "title": "Set PDF Document Metadata (Creation Date, Modification Date, Keywords)", - "description": "Demonstrates how to load a PDF with Aspose.Pdf, set its creation and modification dates, add custom keywords, and save the updated file.", + "title": "Set PDF Document Metadata (Creation/Modification Dates and Keywords)", + "description": "Demonstrates how to load an existing PDF with Aspose.Pdf, update its creation and modification dates, add custom keywords, and save the updated file.", "tags": [ "pdf", "metadata", "creation-date", "keywords", - "aspose" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.DocumentInfo", - "Aspose.Pdf.Document.Info", "Aspose.Pdf.DocumentInfo.CreationDate", "Aspose.Pdf.DocumentInfo.ModDate", "Aspose.Pdf.DocumentInfo.Keywords", @@ -7460,79 +8935,98 @@ { "filename": "set-pdf-expiration-date.cs", "title": "Set PDF Expiration Date with JavaScript", - "description": "Shows how to embed a JavaScript action in a PDF using Aspose.Pdf so the document automatically closes after a specified expiration date.", + "description": "Shows how to embed a JavaScript action in a PDF using Aspose.Pdf so the document closes automatically after a specified expiration date.", "tags": [ "pdf", - "javascript", "expiration", + "javascript", "aspose", "openaction" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.JavascriptAction", + "Aspose.Pdf.Annotations.JavascriptAction", "Aspose.Pdf.Document.OpenAction", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "specify-crash-report-output-directory.cs", - "title": "Specify Crash Report Output Directory and Verify Generation", - "description": "Shows how to set a custom directory and filename for an Aspose.Pdf crash report, generate the report, and confirm the file exists.", + "filename": "set-pdf-page-rotation-90-degrees.cs", + "title": "Set PDF Page Rotation to 90 Degrees", + "description": "Shows how to load a PDF with Aspose.Pdf, set each page's initial rotation to 90° for portrait display on landscape devices, and save the modified file.", "tags": [ - "crash-report", - "output-directory", + "pdf", + "rotation", + "pages", "aspose-pdf", - "exception", - "verification" + "csharp" ], "apis_used": [ - "Aspose.Pdf.CrashReportOptions", - "Aspose.Pdf.PdfException.GenerateCrashReport", - "Aspose.Pdf.CrashReportOptions.CrashReportDirectory", - "Aspose.Pdf.CrashReportOptions.CrashReportFilename", - "Aspose.Pdf.CrashReportOptions.CustomMessage", - "Aspose.Pdf.CrashReportOptions.CrashReportPath" + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rotation", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Pages" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "test-convert-pages-to-images.cs", - "title": "Test ConvertPagesToImages Generates Images per PDF Page", - "description": "Shows a unit test that creates two identical PDFs, uses Aspose.Pdf's graphical comparer to export each page as an image, and asserts that an image file is generated for every page.", + "filename": "specify-crash-report-output-directory.cs", + "title": "Specify Crash Report Output Directory", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "structured-toc-with-headings.cs", + "title": "Create Structured Table of Contents with Headings", + "description": "Demonstrates adding Heading elements with auto‑sequencing and building a tagged PDF Table of Contents using Aspose.Pdf.", "tags": [ "pdf", - "image-conversion", - "unit-test", - "aspose-pdf", - "graphical-comparison" + "toc", + "headings", + "tagged-content", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Comparison.GraphicalPdfComparer", - "Aspose.Pdf.Comparison.GraphicalPdfComparer.CompareDocumentsToImages" + "Aspose.Pdf.Tagged.Heading", + "Aspose.Pdf.Tagged.ITaggedContent", + "Aspose.Pdf.Tagged.TOCElement", + "Aspose.Pdf.Tagged.TOCIElement", + "Aspose.Pdf.Text.FontRepository.FindFont", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "update-pdf-metadata-author-title.cs", - "title": "Update PDF Author and Title Metadata with Aspose.Pdf", + "filename": "test-convert-pages-to-images.cs", + "title": "Test Convert Pages To Images", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "update-pdf-author-title-metadata.cs", + "title": "Update PDF Author and Title Metadata", "description": "Demonstrates how to read existing PDF metadata, change the Author and Title fields, and save the updated document using Aspose.Pdf.", "tags": [ "pdf", "metadata", "author", "title", - "aspose" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Info", "Aspose.Pdf.DocumentInfo", + "Aspose.Pdf.Document.Info", "Aspose.Pdf.DocumentInfo.Author", + "Aspose.Pdf.DocumentInfo.Title", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" @@ -7540,7 +9034,7 @@ { "filename": "validate-pdf-a1a-compliance-report.cs", "title": "Validate PDF for PDF/A-1A Compliance and Generate Report", - "description": "The example loads a PDF file using Aspose.Pdf, validates it against the PDF/A‑1A standard, and writes a detailed validation report to a text file.", + "description": "The example loads a PDF file, validates it against the PDF/A‑1A standard using Aspose.Pdf, and writes a detailed validation report to a text file.", "tags": [ "pdf", "pdfa", @@ -7557,8 +9051,8 @@ }, { "filename": "validate-pdf-a1b-compliance.cs", - "title": "Validate PDF for PDF/A-1B Compliance with Aspose.Pdf", - "description": "Demonstrates how to validate a PDF file against PDF/A‑1B compliance using Aspose.Pdf, write a validation log, and check the compliance flag.", + "title": "Validate PDF for PDF/A‑1B compliance and log results", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, validate it against the PDF/A‑1B standard, and write a validation log file indicating any non‑conformant elements.", "tags": [ "pdf", "pdfa", @@ -7579,28 +9073,40 @@ }, { "name": "facades-acroforms", - "file_count": 41, + "file_count": 59, "files": [ "add-radio-button-group-default-selection.cs", + "add-radio-button-group-to-pdf.cs", "add-text-field-to-pdf-using-formeditor.cs", + "add-text-field-to-pdf.cs", "async-export-pdf-form-data-to-xml.cs", "batch-export-pdf-form-data-to-xml.cs", "batch-import-json-data-into-pdfs.cs", + "combine-acroform-json-exports.cs", "combine-exported-json-from-multiple-pdf-forms.cs", + "create-pdf-form-fields-report.cs", "export-acroform-data-to-json-split-files.cs", "export-acroform-data-to-json.cs", + "export-filter-pdf-form-fields-xfdf.cs", + "export-import-acroform-xfdf.cs", + "export-import-pdf-form-fields-utf8.cs", "export-pdf-form-data-to-fdf.cs", "export-pdf-form-data-to-html.cs", + "export-pdf-form-data-to-json-chunks.cs", + "export-pdf-form-data-to-json.cs", "export-pdf-form-data-to-xml-memorystream.cs", "export-pdf-form-data-to-xml.cs", "export-pdf-form-fields-to-json.cs", "export-pdf-form-fields-to-xfdf.cs", + "export-pdf-form-to-xml-html.cs", "export-selected-acroform-fields-to-json.cs", + "export-text-acroform-field-names-to-json.cs", "export-text-form-field-names-to-json.cs", "extract-pdf-form-field-names.cs", "fill-pdf-acroform-fields-from-json.cs", "fill-pdf-acroform-fields.cs", "fill-pdf-form-fields-from-byte-array.cs", + "fill-pdf-form-fields-from-json.cs", "fill-textbox-field-in-pdf.cs", "filter-pdf-form-fields-by-name.cs", "generate-pdf-form-field-report.cs", @@ -7609,17 +9115,23 @@ "import-fdf-data-into-pdf-form.cs", "import-form-data-from-json.cs", "import-form-data-from-xml-to-pdf.cs", + "import-form-fields-from-xml.cs", + "import-json-data-into-pdf-acroform.cs", "import-json-data-into-pdf-form.cs", "import-json-data-into-pdf-form__v2.cs", + "import-xfdf-data-into-pdf-form.cs", "import-xfdf-data-into-pdf.cs", "import-xml-data-validate-required-fields.cs", + "import-xml-into-pdf-form-validate-required.cs", "justify-text-in-pdf-form-textbox.cs", "list-pdf-form-field-names.cs", "list-pdf-form-fields-to-csv.cs", "merge-acroform-data-into-json.cs", + "retrieve-radio-button-option-values.cs", "retrieve-radio-button-options-hashtable.cs", "roundtrip-xfdf-export-import.cs", "unicode-form-field-utf8-export-import.cs", + "update-pdf-acroform-fields-from-byte-array.cs", "validate-radio-button-options.cs", "validate-xml-import-into-pdf-form.cs" ], @@ -7627,49 +9139,63 @@ "Aspose.Pdf.Facades", "Aspose.Pdf", "Aspose.Pdf.Forms", - "Aspose.Pdf.Drawing", "Aspose.Pdf.Text" ], "key_apis": [ "Form", "FormEditor", - "BorderInfo", - "TextFragment" + "BorderInfo" ], "examples": [ { "filename": "add-radio-button-group-default-selection.cs", - "title": "Add Radio Button Group with Default Selection using FormEditor", - "description": "Shows how to create a PDF, initialize FormEditor, configure a radio button group with three options, set a default selected option programmatically, and save the file.", + "title": "Add Radio Button Group Default Selection", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-radio-button-group-to-pdf.cs", + "title": "Add Radio Button Group to PDF with Default Selection", + "description": "Demonstrates using Aspose.Pdf.Facades.FormEditor to insert a radio button group with three options into an existing PDF and programmatically set the default selected option.", "tags": [ "radio-button", - "form-editor", "acroform", + "formeditor", "pdf", - "aspnet" + "csharp" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.FormEditor", "Aspose.Pdf.Facades.FormEditor.AddField", "Aspose.Pdf.Facades.FormEditor.Save", - "Aspose.Pdf.Facades.FieldType", + "Aspose.Pdf.Facades.FormEditor.Close", "Aspose.Pdf.Facades.FormEditor.RadioGap", "Aspose.Pdf.Facades.FormEditor.RadioHoriz", - "Aspose.Pdf.Facades.FormEditor.Items" + "Aspose.Pdf.Facades.FormEditor.Items", + "Aspose.Pdf.Facades.FieldType" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "add-text-field-to-pdf-using-formeditor.cs", + "title": "Add Text Field To Pdf Using Formeditor", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-text-field-to-pdf.cs", "title": "Add Text Field to PDF Using FormEditor", - "description": "Shows how to insert a new text field at specific coordinates into an existing PDF document using Aspose.Pdf's FormEditor facade.", + "description": "Demonstrates how to insert a new text field at specific coordinates on a PDF page using Aspose.Pdf's FormEditor facade and then save the modified document.", "tags": [ "pdf", - "form", + "acroform", "textfield", "aspose", - "facades" + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.FormEditor", @@ -7682,13 +9208,13 @@ { "filename": "async-export-pdf-form-data-to-xml.cs", "title": "Asynchronously Export PDF Form Data to XML", - "description": "Shows how to use async/await with Aspose.Pdf to export AcroForm fields from a PDF document to an XML file without blocking the UI thread.", + "description": "Demonstrates exporting AcroForm fields from a PDF to an XML file using async/await to keep the UI thread responsive.", "tags": [ "async", - "pdf", - "form", + "form-export", "xml", - "export" + "pdf", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.Form", @@ -7699,33 +9225,32 @@ { "filename": "batch-export-pdf-form-data-to-xml.cs", "title": "Batch Export PDF Form Data to XML", - "description": "Shows how to loop through PDF files, bind each to a FormEditor, and export the AcroForm data to individual XML files using Aspose.Pdf.", + "description": "Loops through PDF files in a folder, loads each document, and uses the FormEditor and Form facades to export AcroForm data to individual XML files.", "tags": [ "pdf", - "acroform", - "export", + "forms", "xml", - "batch" + "batch", + "export" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.BindPdf", - "Aspose.Pdf.Form", - "Aspose.Pdf.Form.ExportXml", - "Aspose.Pdf.Document" + "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.Form.ExportXml" ], "difficulty": "intermediate" }, { "filename": "batch-import-json-data-into-pdfs.cs", "title": "Batch Import JSON Data into PDFs in Parallel", - "description": "Shows how to import form data from matching JSON files into PDF documents using Aspose.Pdf.Facades.Form and process multiple files concurrently with Parallel.ForEach.", + "description": "Demonstrates importing form field values from matching JSON files into PDF documents using Aspose.Pdf.Facades.Form and processing multiple files concurrently with Parallel.ForEach.", "tags": [ "json", - "pdf", "form", + "batch", "parallel", - "import" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.Form", @@ -7735,68 +9260,133 @@ "difficulty": "intermediate" }, { - "filename": "combine-exported-json-from-multiple-pdf-forms.cs", - "title": "Combine Exported JSON from Multiple PDF Forms", - "description": "Shows how to export AcroForm data from several PDFs as JSON, merge the fragments into a single JSON array, and write the result to a file using Aspose.Pdf.Facades.", + "filename": "combine-acroform-json-exports.cs", + "title": "Combine AcroForm JSON Exports from Multiple PDFs", + "description": "The example loads several PDF files, uses Aspose.Pdf.Facades.Form to export each document's AcroForm fields to JSON, and merges the resulting JSON objects into a single JSON array written to a file.", "tags": [ "pdf", + "acroform", "json", - "acroforms", "export", - "merge" + "combine" ], "apis_used": [ "Aspose.Pdf.Facades.Form", "Aspose.Pdf.Facades.Form.ExportJson" ], + "difficulty": "beginner" + }, + { + "filename": "combine-exported-json-from-multiple-pdf-forms.cs", + "title": "Combine Exported Json From Multiple Pdf Forms", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-pdf-form-fields-report.cs", + "title": "Create PDF Report of AcroForm Fields", + "description": "Demonstrates how to enumerate AcroForm fields in a PDF and generate a new PDF containing a table with each field's name, type, and value.", + "tags": [ + "AcroForm", + "FormFields", + "Table", + "Report", + "Aspose.Pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Table", + "Aspose.Pdf.Row", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.BorderInfo", + "Aspose.Pdf.Color", + "Aspose.Pdf.Text.TextState" + ], "difficulty": "intermediate" }, { "filename": "export-acroform-data-to-json-split-files.cs", - "title": "Export AcroForm Data to JSON and Split into Multiple Files", - "description": "Demonstrates exporting all form fields from a PDF AcroForm to a JSON array with Aspose.Pdf, then dividing the array into chunks of up to 100 fields and writing each chunk to separate JSON files.", + "title": "Export Acroform Data To Json Split Files", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "export-acroform-data-to-json.cs", + "title": "Export Acroform Data To Json", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "export-filter-pdf-form-fields-xfdf.cs", + "title": "Export and Filter PDF Form Fields to XFDF", + "description": "Shows how to export AcroForm fields from a PDF to XFDF, keep only those whose names start with \"Customer\", and write the filtered XML back to a file.", "tags": [ "acroform", - "json", + "xfdf", + "filter", "export", - "split", "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.ExportJson", "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Form.Add" + "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.Form.ExportXfdf" ], "difficulty": "intermediate" }, { - "filename": "export-acroform-data-to-json.cs", - "title": "Export AcroForm Data to JSON and Deserialize", - "description": "Creates a PDF with AcroForm fields, exports the form values to a JSON file using Aspose.Pdf.Facades.Form, and deserializes the JSON into a strongly‑typed C# object with Json.NET.", + "filename": "export-import-acroform-xfdf.cs", + "title": "Export and Import AcroForm Data via XFDF", + "description": "Shows how to fill AcroForm fields, export the data to an XFDF file, import the XFDF back into a fresh PDF, and verify that the field values are preserved after the round‑trip.", "tags": [ + "xfdf", "acroform", - "json", + "form-export", + "form-import", + "aspdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.Form.FillField", + "Aspose.Pdf.Facades.Form.ExportXfdf", + "Aspose.Pdf.Facades.Form.ImportXfdf", + "Aspose.Pdf.Facades.Form.GetField", + "Aspose.Pdf.Facades.Form.Save" + ], + "difficulty": "intermediate" + }, + { + "filename": "export-import-pdf-form-fields-utf8.cs", + "title": "Export and Import PDF Form Fields with UTF-8 Encoding", + "description": "Demonstrates exporting AcroForm field values to an XFDF file and re‑importing them using UTF‑8 streams to correctly handle Unicode characters.", + "tags": [ + "acroforms", + "utf-8", + "xfdf", "export", - "deserialization", - "aspose-pdf" + "import" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Facades.Form.ExportJson" + "Aspose.Pdf.Facades.Form", + "Form.ExportXfdf", + "Form.ImportXfdf", + "Document.Save" ], "difficulty": "intermediate" }, { "filename": "export-pdf-form-data-to-fdf.cs", - "title": "Export PDF Form Data to FDF", - "description": "Demonstrates how to use Aspose.Pdf.Facades.Form to export the field values of a PDF form into an FDF file via a file stream.", + "title": "Export PDF Form Data to FDF File", + "description": "Demonstrates using the Aspose.Pdf.Facades.Form class to export all AcroForm field values from a PDF document into an FDF file via a file stream.", "tags": [ "pdf", "form", @@ -7812,26 +9402,51 @@ }, { "filename": "export-pdf-form-data-to-html.cs", - "title": "Export PDF Form Data to HTML via XML and XSLT", - "description": "Shows how to export AcroForm fields from a PDF to an XML file using Aspose.Pdf.Facades.Form and then transform that XML into an HTML view with an XSLT stylesheet.", + "title": "Export Pdf Form Data To Html", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "export-pdf-form-data-to-json-chunks.cs", + "title": "Export PDF Form Data to JSON and Split into Chunks", + "description": "Demonstrates how to export AcroForm fields from a PDF to a JSON document using Aspose.Pdf and then split the output into multiple files, each containing up to 100 fields.", "tags": [ "pdf", "acroform", - "xml", - "xslt", - "html" + "json", + "export", + "chunking" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.ExportXml" + "Aspose.Pdf.Facades.Form.ExportJson" ], "difficulty": "intermediate" }, + { + "filename": "export-pdf-form-data-to-json.cs", + "title": "Export PDF Form Data to JSON and Deserialize", + "description": "Shows how to export AcroForm fields from a PDF to a JSON string using Aspose.Pdf.Facades.Form and then deserialize the JSON into a strongly‑typed C# object with Json.NET.", + "tags": [ + "pdf", + "form", + "json", + "export", + "deserialization" + ], + "apis_used": [ + "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.Form.ExportJson", + "Aspose.Pdf.Facades.Form.Dispose" + ], + "difficulty": "beginner" + }, { "filename": "export-pdf-form-data-to-xml-memorystream.cs", "title": "Export PDF Form Data to XML Using MemoryStream", - "description": "Demonstrates exporting AcroForm fields from a PDF to an XML string with Aspose.Pdf.Facades.Form and a MemoryStream, eliminating the need for intermediate files.", + "description": "Shows how to export AcroForm field data from a PDF directly into a memory stream as XML, eliminating the need for intermediate files on disk.", "tags": [ "AcroForm", "ExportXml", @@ -7841,7 +9456,8 @@ ], "apis_used": [ "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.ExportXml" + "Aspose.Pdf.Facades.Form.ExportXml", + "Aspose.Pdf.Facades.Form.Close" ], "difficulty": "beginner" }, @@ -7854,7 +9470,7 @@ "form", "export", "xml", - "aspose" + "acroform" ], "apis_used": [ "Aspose.Pdf.Facades.Form", @@ -7864,16 +9480,17 @@ }, { "filename": "export-pdf-form-fields-to-json.cs", - "title": "Export PDF Form Fields to JSON and Validate Structure", - "description": "Shows how to export AcroForm field values from a PDF to a JSON file using Aspose.Pdf.Facades.Form.ExportJson and then verifies the resulting JSON structure.", + "title": "Export PDF Form Fields to JSON and Verify Structure", + "description": "Shows how to export AcroForm field values from a PDF to a JSON file using Aspose.Pdf's Form facade and then read the JSON back to confirm the exported structure.", "tags": [ "pdf", "acroform", "export", "json", - "validation" + "aspose" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.Form", "Aspose.Pdf.Facades.Form.ExportJson" ], @@ -7882,13 +9499,13 @@ { "filename": "export-pdf-form-fields-to-xfdf.cs", "title": "Export PDF Form Fields to XFDF", - "description": "Shows how to export all form field values from a PDF document to an XFDF file using the Aspose.Pdf.Facades.Form class.", + "description": "Demonstrates how to use Aspose.Pdf.Facades.Form to export AcroForm data from a PDF into an XFDF file and write it to disk.", "tags": [ "xfdf", - "form", - "export", - "pdf", - "facade" + "form-export", + "acroform", + "aspose-pdf", + "facades" ], "apis_used": [ "Aspose.Pdf.Facades.Form", @@ -7896,30 +9513,48 @@ ], "difficulty": "beginner" }, + { + "filename": "export-pdf-form-to-xml-html.cs", + "title": "Export PDF Form Data to XML and Convert to HTML with XSLT", + "description": "Shows how to export AcroForm fields from a PDF to an XML file using Aspose.Pdf.Facades.Form and then transform that XML into an HTML view with XSLT.", + "tags": [ + "pdf", + "form", + "xml", + "xslt", + "html" + ], + "apis_used": [ + "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.Form.ExportXml" + ], + "difficulty": "intermediate" + }, { "filename": "export-selected-acroform-fields-to-json.cs", "title": "Export Selected AcroForm Fields to JSON", - "description": "Shows how to export only specific form fields from a PDF by exporting all fields to JSON, filtering by a list of field names, and writing the filtered result to a file.", + "description": "Shows how to export only specific form fields from a PDF AcroForm to a JSON file by exporting the full form data, filtering the desired fields, and writing the filtered JSON.", "tags": [ "acroform", "json", "export", - "filter", - "aspdf" + "selected-fields", + "aspose-pdf" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.Form", "Aspose.Pdf.Facades.Form.ExportJson" ], "difficulty": "intermediate" }, { - "filename": "export-text-form-field-names-to-json.cs", - "title": "Export Text Form Field Names to JSON", - "description": "Loads a PDF containing AcroForm fields, filters the fields to keep only text fields, and writes the collected field names to a JSON array file.", + "filename": "export-text-acroform-field-names-to-json.cs", + "title": "Export Text AcroForm Field Names to JSON", + "description": "The example opens a PDF, filters AcroForm fields to include only text fields, and writes the field names to a JSON file.", "tags": [ "acroform", - "text-fields", + "text-field", "json", "export", "aspose-pdf" @@ -7932,16 +9567,24 @@ ], "difficulty": "beginner" }, + { + "filename": "export-text-form-field-names-to-json.cs", + "title": "Export Text Form Field Names To Json", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "extract-pdf-form-field-names.cs", "title": "Extract PDF Form Field Names to JSON", - "description": "Demonstrates how to load a PDF using Aspose.Pdf.Facades.Form, retrieve all AcroForm field names, and output them as a JSON array on the console.", + "description": "Shows how to open a PDF using Aspose.Pdf.Facades.Form, retrieve all AcroForm field names, and output them as a JSON array from a command‑line utility.", "tags": [ + "pdf", "acroform", - "form-fields", + "field-names", "json", - "command-line", - "aspose-pdf" + "command-line" ], "apis_used": [ "Aspose.Pdf.Facades.Form", @@ -7952,30 +9595,19 @@ }, { "filename": "fill-pdf-acroform-fields-from-json.cs", - "title": "Fill PDF AcroForm Fields from JSON", - "description": "Shows how to read a JSON file into a dictionary and use Aspose.Pdf.Facades.Form to map JSON keys to AcroForm field names, fill those fields, and save the resulting PDF.", - "tags": [ - "pdf", - "acroform", - "json", - "fill-fields", - "aspose" - ], - "apis_used": [ - "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.FieldNames", - "Aspose.Pdf.Facades.Form.FillField", - "Aspose.Pdf.Facades.Form.Save" - ], - "difficulty": "beginner" + "title": "Fill Pdf Acroform Fields From Json", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "fill-pdf-acroform-fields.cs", - "title": "Fill PDF AcroForm Fields with Aspose.Pdf", - "description": "Shows how to open a PDF, populate its AcroForm fields from a dictionary, and save the updated document using Aspose.Pdf.Facades.", + "title": "Fill PDF AcroForm Fields and Save", + "description": "Shows how to open a PDF, populate AcroForm fields from a dictionary, and save the updated document using Aspose.Pdf.Facades.", "tags": [ - "pdf", "acroform", + "pdf", "form-filling", "aspose", "csharp" @@ -7989,33 +9621,39 @@ }, { "filename": "fill-pdf-form-fields-from-byte-array.cs", - "title": "Fill PDF Form Fields from Byte Array", - "description": "Shows how to load a PDF from a byte array using MemoryStream, fill AcroForm fields with Aspose.Pdf.Facades.Form, and return the updated PDF as a byte array.", + "title": "Fill Pdf Form Fields From Byte Array", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "fill-pdf-form-fields-from-json.cs", + "title": "Fill PDF Form Fields from JSON using Aspose.Pdf", + "description": "Shows how to read a JSON file into a dictionary, map its keys to AcroForm field names, fill those fields with Aspose.Pdf.Facades.Form, and save the resulting PDF.", "tags": [ "pdf", "acroform", - "fill-field", - "memorystream", + "json", + "form-filling", "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.Form", "Aspose.Pdf.Facades.Form.FillField", - "Aspose.Pdf.Facades.Form.Save", - "Aspose.Pdf.Facades.Form (constructor with Stream)", - "Aspose.Pdf.Facades.Form.Dispose" + "Aspose.Pdf.Facades.Form.Save" ], "difficulty": "beginner" }, { "filename": "fill-textbox-field-in-pdf.cs", - "title": "Fill TextBox Field in PDF Using Aspose.Pdf Form Facade", - "description": "Demonstrates how to load a PDF, fill a specific AcroForm text box field with a string value using the Form facade, and save the updated document.", + "title": "Fill TextBox Field in PDF using Aspose.Pdf", + "description": "Shows how to open a PDF, fill a specific AcroForm textbox field with a string using Form.FillField, and save the modified document.", "tags": [ - "acroforms", + "acroform", "fill-field", "pdf", - "aspose", + "aspose-pdf", "csharp" ], "apis_used": [ @@ -8027,53 +9665,30 @@ }, { "filename": "filter-pdf-form-fields-by-name.cs", - "title": "Filter PDF Form Fields by Name and Export to XML", - "description": "Loads a PDF form, exports its fields to XFDF XML, keeps only fields whose names start with \"Customer\", and saves the filtered XML to a file.", - "tags": [ - "pdf", - "form", - "xfdf", - "filter", - "xml" - ], - "apis_used": [ - "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.ExportXml" - ], - "difficulty": "intermediate" + "title": "Filter Pdf Form Fields By Name", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "generate-pdf-form-field-report.cs", - "title": "Generate PDF Form Field Report with Table", - "description": "Creates a PDF report that lists all AcroForm fields, showing each field's name, type, and value in a table.", - "tags": [ - "AcroForm", - "FormFacade", - "Table", - "Report", - "Aspose.Pdf" - ], - "apis_used": [ - "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Document", - "Aspose.Pdf.Table", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.FontRepository", - "Aspose.Pdf.BorderInfo", - "Aspose.Pdf.Color" - ], - "difficulty": "intermediate" + "title": "Generate Pdf Form Field Report", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "get-selected-radio-button-value.cs", "title": "Get Selected Radio Button Value from PDF Form", - "description": "Demonstrates how to open a PDF form with the Aspose.Pdf.Facades.Form class and retrieve the currently selected option of a radio button group using GetButtonOptionCurrentValue.", + "description": "Demonstrates how to open a PDF form with Aspose.Pdf.Facades and retrieve the currently selected option of a radio button group using GetButtonOptionCurrentValue.", "tags": [ "acroforms", "radio-button", + "form-field", "pdf", - "form", - "aspnet" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.Form", @@ -8083,29 +9698,16 @@ }, { "filename": "import-acroform-data-from-xml-with-missing-field-reporting.cs", - "title": "Import AcroForm Data from XML with Missing Field Reporting", - "description": "Demonstrates how to import AcroForm field values from an XML file into a PDF using Aspose.Pdf.Facades.Form, and how to detect and log fields that are missing in the PDF.", - "tags": [ - "acroform", - "import-xml", - "missing-fields", - "form-facade", - "pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.ImportXml", - "Aspose.Pdf.Facades.Form.ImportResult", - "Aspose.Pdf.Facades.Form.ImportStatus", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "intermediate" + "title": "Import Acroform Data From Xml With Missing Field Reporting", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "import-fdf-data-into-pdf-form.cs", "title": "Import FDF Data into PDF Form", - "description": "Shows how to open a PDF form, import field values from an FDF file via a file stream, and save the resulting filled PDF.", + "description": "Shows how to open a PDF form, import field values from an FDF file using a file stream, and save the populated PDF.", "tags": [ "FDF", "AcroForm", @@ -8122,34 +9724,40 @@ }, { "filename": "import-form-data-from-json.cs", - "title": "Import Form Data from JSON into PDF (ignore missing fields)", - "description": "Demonstrates how to bind a PDF, import AcroForm field values from a JSON file while automatically ignoring fields that are not present in the PDF, and save the updated document.", + "title": "Import Form Data from JSON into PDF (Ignore Missing Fields)", + "description": "Demonstrates loading a PDF form, importing field values from a JSON file with Aspose.Pdf.Facades.Form while automatically ignoring fields that are not present in the PDF, and saving the filled document.", "tags": [ + "pdf", + "form", "json", - "acroform", "import", - "pdf", "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.BindPdf", "Aspose.Pdf.Facades.Form.ImportJson", - "Aspose.Pdf.Facades.Form.ImportResult", "Aspose.Pdf.Facades.Form.Save" ], "difficulty": "beginner" }, { "filename": "import-form-data-from-xml-to-pdf.cs", + "title": "Import Form Data From Xml To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "import-form-fields-from-xml.cs", "title": "Import Form Field Values from XML into PDF", - "description": "Shows how to read an XML file with AcroForm field values and import them into a PDF using Aspose.Pdf.Facades.Form, then save the populated document.", + "description": "Shows how to load a PDF containing AcroForm fields, import field values from an XML file using Form.ImportXml, and save the populated PDF.", "tags": [ - "pdf", - "forms", - "xml", - "import", - "aspose.pdf" + "AcroForm", + "ImportXml", + "PDF", + "Aspose.Pdf", + "XML" ], "apis_used": [ "Aspose.Pdf.Facades.Form", @@ -8159,34 +9767,52 @@ "difficulty": "beginner" }, { - "filename": "import-json-data-into-pdf-form.cs", - "title": "Import JSON Data into PDF Form", - "description": "Shows how to load a PDF form, import field values from a JSON file using Form.ImportJson, and save the updated PDF while handling possible errors.", + "filename": "import-json-data-into-pdf-acroform.cs", + "title": "Import JSON Data into PDF AcroForm", + "description": "Shows how to serialize a C# object to JSON, place it in a memory stream, and import the data into an AcroForm using Aspose.Pdf.Facades.Form.", "tags": [ "json", - "pdf-form", + "acroform", "import", - "aspose-pdf", - "error-handling" + "aspose.pdf", + "c#" ], "apis_used": [ "Aspose.Pdf.Facades.Form", "Aspose.Pdf.Facades.Form.ImportJson", - "Aspose.Pdf.Facades.Form.Save", - "Aspose.Pdf.PdfException" + "Aspose.Pdf.Facades.Form.Save" ], "difficulty": "beginner" }, { - "filename": "import-json-data-into-pdf-form__v2.cs", - "title": "Import JSON Data into PDF Form Using Aspose.Pdf", - "description": "Shows how to serialize a C# object to JSON, load it into a memory stream, and import the data into an AcroForm PDF using the Aspose.Pdf Form facade.", + "filename": "import-json-data-into-pdf-form.cs", + "title": "Import JSON Data into PDF Form Fields", + "description": "Shows how to load a JSON file containing form field values and import them into an existing PDF using Aspose.Pdf.Facades.Form, with basic error handling for missing files and I/O issues.", "tags": [ "json", - "pdf-form", + "pdf", + "form", "import", - "aspose-pdf", - "c#" + "facade" + ], + "apis_used": [ + "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.Form.BindPdf", + "Aspose.Pdf.Facades.Form.ImportJson", + "Aspose.Pdf.Facades.Form.Save" + ], + "difficulty": "beginner" + }, + { + "filename": "import-json-data-into-pdf-form__v2.cs", + "title": "Import JSON Data into PDF Form with Error Handling", + "description": "Demonstrates importing form field values from a JSON file into a PDF using Aspose.Pdf.Facades.Form and handling missing fields by catching exceptions and logging the field name.", + "tags": [ + "acroforms", + "json-import", + "error-handling", + "pdf", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.Form", @@ -8196,15 +9822,15 @@ "difficulty": "intermediate" }, { - "filename": "import-xfdf-data-into-pdf.cs", + "filename": "import-xfdf-data-into-pdf-form.cs", "title": "Import XFDF Data into PDF Form", - "description": "Shows how to import form field values from an XFDF file into a PDF using Aspose.Pdf.Facades.Form and save the updated document.", + "description": "Shows how to load a PDF, read an XFDF file and import its form field values into the PDF using Aspose.Pdf.Facades.Form, then save the filled document.", "tags": [ "xfdf", "form", "import", "pdf", - "aspose-pdf" + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.Form", @@ -8213,188 +9839,201 @@ ], "difficulty": "beginner" }, + { + "filename": "import-xfdf-data-into-pdf.cs", + "title": "Import Xfdf Data Into Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "import-xml-data-validate-required-fields.cs", - "title": "Import XML Data into PDF Form and Validate Required Fields", - "description": "Demonstrates how to import XML data into an AcroForm PDF using Aspose.Pdf, then checks required fields for empty values and logs any violations before saving the result.", + "title": "Import Xml Data Validate Required Fields", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "import-xml-into-pdf-form-validate-required.cs", + "title": "Import XML into PDF Form and Validate Required Fields", + "description": "Demonstrates importing form data from an XML file into a PDF using Aspose.Pdf.Facades.Form, then checking required fields and logging any that are empty.", "tags": [ - "acroforms", - "xml-import", - "validation", + "xml", "pdf", - "aspose" + "form", + "validation", + "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.Form", - "Form.ImportXml", - "Form.FieldNames", - "Form.IsRequiredField", - "Form.GetField", - "Form.Save" + "Aspose.Pdf.Facades.Form.ImportXml", + "Aspose.Pdf.Facades.Form.IsRequiredField", + "Aspose.Pdf.Facades.Form.GetField", + "Aspose.Pdf.Facades.Form.Save" ], "difficulty": "intermediate" }, { "filename": "justify-text-in-pdf-form-textbox.cs", "title": "Justify Text in a PDF Form TextBox", - "description": "Shows how to set justified alignment for a filled textbox field in an AcroForm by configuring FormFieldFacade and calling FormEditor.DecorateField.", + "description": "Shows how to apply justified alignment to a filled textbox field in an AcroForm by configuring FormFieldFacade and calling FormEditor.DecorateField.", "tags": [ - "AcroForm", - "Justify", - "FormEditor", - "Pdf", - "CSharp" + "acroform", + "justified", + "formeditor", + "pdf", + "csharp" ], "apis_used": [ - "FormEditor", - "FormEditor.BindPdf", - "FormEditor.Save", - "FormFieldFacade", - "FormFieldFacade.Alignment", - "FormEditor.DecorateField" + "Aspose.Pdf.Facades.FormEditor", + "Aspose.Pdf.Facades.FormFieldFacade", + "Aspose.Pdf.Facades.FormEditor.DecorateField", + "Aspose.Pdf.Facades.FormEditor.Save", + "Aspose.Pdf.Facades.FormFieldFacade.AlignJustified" ], "difficulty": "beginner" }, { "filename": "list-pdf-form-field-names.cs", - "title": "List PDF Form Field Names with FormEditor", - "description": "Shows how to load a PDF, bind it to a FormEditor, retrieve all AcroForm field names, and print them to the console.", + "title": "List PDF Form Field Names using FormEditor", + "description": "Shows how to load a PDF with FormEditor, retrieve all AcroForm field names, and output them to the console. Includes code to create a minimal PDF with a sample TextBox field if the input file is missing.", "tags": [ "acroform", - "formfields", - "list", - "console", - "aspose-pdf" + "formeditor", + "field-names", + "pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.FormEditor", "Aspose.Pdf.Facades.FormEditor.BindPdf", - "Aspose.Pdf.Form", - "Aspose.Pdf.Form.FieldNames" + "Aspose.Pdf.Facades.FormEditor.Document", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Form.Fields" ], "difficulty": "beginner" }, { "filename": "list-pdf-form-fields-to-csv.cs", "title": "List PDF Form Fields and Export to CSV", - "description": "Shows how to bind a PDF with FormEditor, retrieve all AcroForm field names and types via the Form facade, and write the results to a CSV report.", + "description": "Shows how to use FormEditor and the Form facade to enumerate all AcroForm fields in a PDF and write each field's name and type to a CSV report.", "tags": [ "acroform", - "form-fields", + "formeditor", "csv", - "aspose-pdf", - "facades" + "field-extraction", + "aspose-pdf" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.BindPdf", "Aspose.Pdf.Facades.Form", "Aspose.Pdf.Facades.Form.FieldNames", - "Aspose.Pdf.Facades.Form.GetFieldType", - "Aspose.Pdf.Document" + "Aspose.Pdf.Facades.Form.GetFieldType" ], "difficulty": "beginner" }, { "filename": "merge-acroform-data-into-json.cs", "title": "Merge AcroForm Data from Multiple PDFs into JSON", - "description": "The example loads several PDF files, extracts each AcroForm field value, aggregates the values per field across all documents, and writes the result as a JSON file.", + "description": "Shows how to iterate over several PDF documents, extract their AcroForm fields with the Form facade, and aggregate the collected values into a single JSON file.", "tags": [ "acroform", - "pdf", "json", "aggregation", + "pdf", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.Field.PartialName", - "Aspose.Pdf.Forms.Field.Value" + "Aspose.Pdf.Facades.Form", + "Form.BindPdf", + "Form.ExportJson", + "System.Text.Json.JsonSerializer" ], "difficulty": "intermediate" }, { - "filename": "retrieve-radio-button-options-hashtable.cs", - "title": "Retrieve Radio Button Options and Store in Hashtable", - "description": "Creates a PDF with a radio‑button group, then uses the Form facade to read all option display names and export values via GetButtonOptionValues and copies them into a Hashtable.", + "filename": "retrieve-radio-button-option-values.cs", + "title": "Retrieve Radio Button Option Values from a PDF Form", + "description": "Demonstrates how to use the Form facade to get all option values of a radio button group in an AcroForm and store them in a Hashtable for further processing.", "tags": [ - "radio-button", - "form-facade", + "acroforms", + "radiobutton", "hashtable", - "aspose-pdf", - "options" + "aspdf", + "pdf" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.RadioButtonField", "Aspose.Pdf.Facades.Form", "Aspose.Pdf.Facades.Form.GetButtonOptionValues" ], - "difficulty": "intermediate" + "difficulty": "beginner" + }, + { + "filename": "retrieve-radio-button-options-hashtable.cs", + "title": "Retrieve Radio Button Options Hashtable", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "roundtrip-xfdf-export-import.cs", - "title": "Round‑Trip XFDF Export/Import for AcroForm Fields", - "description": "Shows how to fill an AcroForm, export its data to XFDF, import the XFDF back into a fresh form, and verify that all field values are preserved.", - "tags": [ - "xfdf", - "acroform", - "roundtrip", - "form-filling", - "validation" - ], - "apis_used": [ - "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.FillField", - "Aspose.Pdf.Facades.Form.ExportXfdf", - "Aspose.Pdf.Facades.Form.ImportXfdf", - "Aspose.Pdf.Facades.Form.Save", - "Aspose.Pdf.Facades.Form.GetField" - ], - "difficulty": "intermediate" + "title": "Roundtrip Xfdf Export Import", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "unicode-form-field-utf8-export-import.cs", - "title": "Handle Unicode Form Field Values with UTF-8 Export/Import", - "description": "Demonstrates exporting AcroForm field values to an XML file using UTF‑8 encoding and importing them back into a PDF, preserving Unicode characters.", + "title": "Unicode Form Field Utf8 Export Import", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "update-pdf-acroform-fields-from-byte-array.cs", + "title": "Update PDF AcroForm Fields from Byte Array", + "description": "Loads a PDF from a byte array using MemoryStream, fills specified AcroForm fields, and returns the modified PDF as a byte array.", "tags": [ - "unicode", + "pdf", "acroform", - "utf-8", - "export", - "import" + "fill-field", + "memorystream", + "aspose" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.ExportXml", - "Aspose.Pdf.Facades.Form.ImportXml", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.Form.FillField", + "Aspose.Pdf.Facades.Form.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "validate-radio-button-options.cs", - "title": "Validate Radio Button Options in a PDF Form", - "description": "Demonstrates creating a PDF with a radio button group, adding options, and using the Form facade to retrieve and verify the export values against an expected set.", + "title": "Validate Radio Button Options in PDF AcroForm", + "description": "Demonstrates creating a PDF with a radio button group, retrieving its option values via the Form facade, and comparing them to an expected set to verify form integrity.", "tags": [ - "radio-button", "acroform", + "radiobutton", "validation", "aspose-pdf", - "facade" + "form-facade" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Page", "Aspose.Pdf.Forms.RadioButtonField", "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.GetButtonOptionValues" + "Aspose.Pdf.Facades.Form.GetButtonOptionValues", + "Aspose.Pdf.Forms.RadioButtonField.AddOption" ], "difficulty": "intermediate" }, @@ -8405,15 +10044,14 @@ "tags": [ "xml-validation", "xsd", - "pdf-forms", - "aspose-pdf", - "facades" + "pdf-form", + "import-xml", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.Form", "Aspose.Pdf.Facades.Form.ImportXml", - "Aspose.Pdf.Facades.Form.Save", - "Aspose.Pdf.Facades.SaveableFacade" + "Aspose.Pdf.Facades.Form.Save" ], "difficulty": "intermediate" } @@ -8421,17 +10059,22 @@ }, { "name": "facades-annotations", - "file_count": 106, + "file_count": 155, "files": [ "add-custom-metadata-to-pdf-annotation.cs", "add-text-annotation-with-custom-flags.cs", "annotation-performance-logger.cs", + "annotation-removal-report.cs", "async-pdf-annotation-operations.cs", "backup-and-flatten-pdf-form-fields.cs", + "backup-pdf-and-flatten-form-fields.cs", "backup-pdf-delete-all-annotations.cs", + "batch-delete-pdf-annotations-azure-blob.cs", + "batch-delete-pdf-annotations-retain-types.cs", "batch-delete-pdf-annotations-with-progress.cs", "batch-delete-pdf-annotations.cs", "batch-delete-stamp-annotations.cs", + "batch-export-delete-annotations-xfdf.cs", "batch-export-delete-pdf-annotations.cs", "batch-flatten-pdf-annotations-cancellation.cs", "batch-flatten-pdf-annotations-skip-readonly.cs", @@ -8439,7 +10082,9 @@ "batch-import-xfdf-annotations-into-pdfs.cs", "batch-process-pdfs-azure-blob-pdfannotationeditor.cs", "batch-remove-annotations-report.cs", + "batch-remove-old-annotations.cs", "batch-update-annotation-author.cs", + "benchmark-delete-annotations.cs", "benchmark-deleteannotations-vs-deleteannotation.cs", "change-annotation-subject-color.cs", "check-duplicate-annotation-names.cs", @@ -8447,51 +10092,75 @@ "clone-modify-pdf-annotation.cs", "concurrent-insert-delete-pdf.cs", "conditional-pdf-flattening-based-on-digital-signatures.cs", + "conditional-pdf-flattening.cs", "copy-annotations-to-multiple-pdfs.cs", "count-pdf-annotations-by-type.cs", - "delete-all-annotations-from-pdfs.cs", + "delete-all-annotations-from-pdf.cs", "delete-annotations-and-log-to-json.cs", "delete-annotations-and-verify-count.cs", + "delete-annotations-by-author.cs", "delete-annotations-by-rgb-color.cs", "delete-annotations-export-xfdf.cs", + "delete-annotations-from-pdf-using-config.cs", + "delete-annotations-from-pdf.cs", "delete-annotations-from-pdfs.cs", "delete-annotations-pdf-annotation-editor.cs", + "delete-annotations-with-backup.cs", + "delete-flatten-pdf-annotations.cs", "delete-pdf-annotation-by-name.cs", "delete-pdf-annotation-by-name__v2.cs", "delete-pdf-annotation-with-error-handling.cs", "delete-pdf-annotation-with-retry.cs", "delete-pdf-annotations-by-author.cs", - "delete-specific-annotation-from-pdf.cs", + "delete-pdf-annotations-by-color.cs", + "delete-pdf-annotations-by-name.cs", + "delete-pdf-annotations-in-folder.cs", + "delete-pdf-annotations-in-parallel.cs", "delete-specific-annotation-types-from-pdf.cs", "delete-text-annotations-from-pdf.cs", "export-all-annotations-from-a-pdf-to-an-xfdf-file-by-invoking-exportannotations-with-a-file-stream-destination.cs", "export-annotations-to-xfdf-no-annotations.cs", + "export-annotations-to-xfdf-stream.cs", "export-annotations-xfdf-gzip.cs", + "export-annotations-xfdf-no-annotations.cs", "export-highlight-annotations-to-xfdf.cs", + "export-import-flatten-pdf-annotations-logging.cs", "export-import-pdf-annotations-xfdf.cs", + "export-pdf-annotations-pretty-xfdf.cs", + "export-pdf-annotations-to-compressed-xfdf.cs", "export-pdf-annotations-to-json.cs", "export-pdf-annotations-to-pretty-xfdf.cs", + "export-pdf-annotations-to-xfdf-and-validate.cs", "export-pdf-annotations-to-xfdf-custom-namespace.cs", + "export-pdf-annotations-to-xfdf-with-diagnostic-logging.cs", "export-pdf-annotations-to-xfdf-with-log.cs", "export-pdf-annotations-to-xfdf.cs", "export-pdf-annotations-to-xfdf__v2.cs", + "extract-annotation-rectangles-to-pdf.cs", "extract-annotation-rectangles.cs", + "extract-pdf-annotation-comments-summary.cs", "extract-pdf-annotation-details.cs", "extract-pdf-annotations-summary.cs", "flatten-annotations-first-five-pages.cs", + "flatten-annotations-network-share.cs", "flatten-annotations-on-network-share.cs", "flatten-delete-pdf-annotations-verbose.cs", "flatten-pdf-annotations-from-stream.cs", "flatten-pdf-annotations-log-size-reduction.cs", - "flatten-pdf-annotations-measure-time.cs", "flatten-pdf-annotations-validate.cs", + "flatten-pdf-annotations-verify-removal.cs", + "flatten-pdf-annotations-verify.cs", "flatten-pdf-annotations.cs", "flatten-pdf-annotations__v2.cs", "flatten-pdf-save-custom-output.cs", "flatten-pdf-tag-flatten-date.cs", + "flatten-pdf-tag-flattened-date.cs", + "flatten-pdfs-save-to-custom-output-directory.cs", "fluent-pdf-annotation-delete-flatten.cs", "generate-annotation-summary-report.cs", + "get-annotation-counts-from-pdf.cs", "get-annotation-names-by-author.cs", + "import-annotations-from-xfdf-stream.cs", "import-annotations-without-overwrite.cs", "import-xfdf-annotations-into-multiple-pdfs.cs", "import-xfdf-annotations-into-pdf.cs", @@ -8499,14 +10168,23 @@ "import-xfdf-annotations-to-specific-pages.cs", "import-xfdf-into-pdf-cleanup.cs", "list-annotation-names-pdf-annotation-editor.cs", + "list-pdf-annotation-names.cs", "list-pdf-annotations-to-csv.cs", + "log-annotation-deletions-to-csv.cs", "log-annotation-modified-timestamp.cs", "log-annotation-workflow.cs", "log-file-sizes-after-flattening-pdf-annotations.cs", + "log-pdf-annotation-operations-duration.cs", + "log-update-annotation-modification-timestamps.cs", + "manage-pdf-annotations-verbose.cs", + "measure-annotation-flattening-performance.cs", + "merge-annotation-layers-from-multiple-pdfs.cs", "merge-annotation-layers.cs", + "merge-multiple-xfdf-files.cs", "merge-multiple-xfdf-into-pdf.cs", "modify-annotation-author-on-pdf-page.cs", "modify-annotation-subject-unit-test.cs", + "monitor-folder-flatten-pdf-annotations.cs", "pdf-annotation-flattening-service.cs", "pdf-annotation-helper.cs", "pdf-annotation-helper__v2.cs", @@ -8515,20 +10193,29 @@ "remove-all-annotations-from-pdf.cs", "remove-all-annotations-from-pdf__v2.cs", "remove-all-annotations-from-pdfs-in-parallel.cs", + "remove-all-annotations-from-pdfs.cs", + "remove-link-annotations-from-pdf.cs", "remove-link-annotations-from-specific-pdf-pages.cs", "remove-old-annotations-from-pdf.cs", "remove-pdf-annotations.cs", - "rename-pdf-annotations-with-standard-prefix.cs", + "rename-pdf-annotation-names.cs", "report-pdf-annotations-by-author.cs", "retrieve-annotation-count-per-pdf-page.cs", "retry-annotation-modification-exponential-backoff.cs", + "retry-delete-pdf-annotations.cs", "set-annotation-open-flag.cs", "set-readonly-flag-on-pdf-annotation.cs", + "set-readonly-flag-on-pdf-text-annotation.cs", + "skip-readonly-annotations-when-flattening-pdf.cs", + "test-export-annotations-unbound-editor.cs", "test-export-annotations-unbound-pdfannotationeditor.cs", "update-annotation-modified-date.cs", + "update-annotation-subject-color.cs", + "update-annotation-subject.cs", "validate-exported-xfdf-against-the-xfdf-schema-by-loading-the-file-into-an-xml-document-and-checking-errors.cs", "validate-no-annotations-after-flattening.cs", - "validate-pdf-integrity-after-annotation-changes.cs" + "validate-pdf-integrity-after-annotation-changes.cs", + "validate-pdf-integrity-after-annotation.cs" ], "required_namespaces": [ "Aspose.Pdf.Facades", @@ -8542,10 +10229,8 @@ "TextAnnotation", "Form", "FileInfo", - "PdfContentEditor", "PdfFileEditor", "PdfFileInfo", - "FluentPdfAnnotationEditor", "StampAnnotation", "StringBuilder", "TextFragment" @@ -8553,101 +10238,116 @@ "examples": [ { "filename": "add-custom-metadata-to-pdf-annotation.cs", - "title": "Add Custom Metadata to PDF Annotation", - "description": "Demonstrates how to create a TextAnnotation, extend its dictionary with custom metadata, modify it using PdfAnnotationEditor, and add document‑level metadata with PdfFileInfo before saving the PDF.", + "title": "Add Custom Metadata to a PDF Annotation", + "description": "Demonstrates how to create a TextAnnotation, store custom key/value metadata using PdfFileInfo, optionally modify the annotation with PdfAnnotationEditor, and save the PDF.", "tags": [ "annotation", "metadata", "pdf", - "Aspose.Pdf", - "custom-fields" + "aspose", + "custom-field" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ModifyAnnotations", "Aspose.Pdf.Facades.PdfFileInfo.SetMetaInfo", - "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" + "Aspose.Pdf.Facades.PdfAnnotationEditor.ModifyAnnotations" ], "difficulty": "intermediate" }, { "filename": "add-text-annotation-with-custom-flags.cs", - "title": "Add Text Annotation with Custom Flags", - "description": "Shows how to create a TextAnnotation, set custom annotation flags, and apply it to specific pages using PdfAnnotationEditor.ModifyAnnotations.", + "title": "Add Text Annotation with Custom Flags to PDF", + "description": "Demonstrates creating a TextAnnotation, setting custom annotation flags (Invisible, NoZoom), and applying it to all pages using PdfAnnotationEditor.", "tags": [ "annotation", "custom-flags", + "text", "pdf", - "text-annotation", - "Aspose.Pdf" + "Aspose" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.TextAnnotation", "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Annotations.AnnotationFlags", "Aspose.Pdf.Facades.PdfAnnotationEditor.ModifyAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", + "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", + "Aspose.Pdf.Page" ], "difficulty": "intermediate" }, { "filename": "annotation-performance-logger.cs", - "title": "Log Annotation Operation Durations in PDF", - "description": "Demonstrates using Aspose.Pdf.Facades.PdfAnnotationEditor to add, flatten, and save PDF annotations while measuring and logging the execution time of each operation.", + "title": "Annotation Performance Logger", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "annotation-removal-report.cs", + "title": "Annotation Removal Report for PDFs", + "description": "Demonstrates how to count and delete all annotations from multiple PDF files using Aspose.Pdf and generate a CSV‑style report showing the number of annotations removed per file.", "tags": [ "annotations", - "performance", - "logging", "pdf", - "facade" + "report", + "batch-processing", + "aspose-pdf" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotation", - "Aspose.Pdf.Facades.PdfAnnotationEditor.FlatteningAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", - "Aspose.Pdf.Document", - "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotations", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" ], "difficulty": "intermediate" }, { "filename": "async-pdf-annotation-operations.cs", - "title": "Asynchronous PDF Annotation Operations with PdfAnnotationEditor", - "description": "Shows how to perform annotation tasks such as flattening, deleting, importing, and exporting on a PDF asynchronously by wrapping PdfAnnotationEditor calls in Task.Run.", + "title": "Asynchronous PDF Annotation Operations with Aspose.Pdf", + "description": "Demonstrates how to perform common PDF annotation tasks—flattening, deleting, importing, and exporting—using Aspose.Pdf's PdfAnnotationEditor wrapped in Task.Run for non‑blocking asynchronous execution.", "tags": [ - "pdf", - "annotations", "async", + "annotations", + "pdf", "Aspose.Pdf", - "facade" + "flatten" ], "apis_used": [ - "PdfAnnotationEditor", - "PdfAnnotationEditor.BindPdf", - "PdfAnnotationEditor.FlatteningAnnotations", - "PdfAnnotationEditor.DeleteAnnotations", - "PdfAnnotationEditor.ImportAnnotationsFromFdf", - "PdfAnnotationEditor.ExportAnnotationsToXfdf", - "PdfAnnotationEditor.Save", - "PdfAnnotationEditor.Close" + "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.FlatteningAnnotations", + "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotation", + "Aspose.Pdf.Facades.PdfAnnotationEditor.ImportAnnotationsFromFdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.ExportAnnotationsToXfdf", + "Aspose.Pdf.Document", + "Aspose.Pdf.Annotations.TextAnnotation" ], "difficulty": "intermediate" }, { "filename": "backup-and-flatten-pdf-form-fields.cs", - "title": "Backup and Flatten PDF Form Fields", - "description": "Shows how to create a backup of a PDF file and then flatten all form fields using Aspose.Pdf.Facades to prevent data loss.", + "title": "Backup And Flatten Pdf Form Fields", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "backup-pdf-and-flatten-form-fields.cs", + "title": "Backup PDF and Flatten Form Fields", + "description": "Demonstrates how to create a backup of a PDF before flattening all interactive form fields using Aspose.Pdf and the Form facade.", "tags": [ "pdf", "backup", "flatten", - "forms", - "facades" + "form", + "facade" ], "apis_used": [ "Aspose.Pdf.Document", @@ -8659,14 +10359,22 @@ }, { "filename": "backup-pdf-delete-all-annotations.cs", - "title": "Backup PDF and Delete All Annotations", - "description": "Creates a backup copy of the original PDF and then removes every annotation using the PdfAnnotationEditor facade, saving the cleaned document to a new file.", + "title": "Backup Pdf Delete All Annotations", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "batch-delete-pdf-annotations-azure-blob.cs", + "title": "Batch Delete PDF Annotations from Azure Blob Storage", + "description": "Demonstrates how to enumerate PDF blobs in an Azure Blob container, stream each PDF into Aspose.Pdf.Facades.PdfAnnotationEditor, delete all annotations, and upload the edited file back to another container.", "tags": [ "pdf", + "azure-blob", "annotations", - "backup", - "delete", - "aspose" + "batch-processing", + "streaming" ], "apis_used": [ "PdfAnnotationEditor", @@ -8675,91 +10383,106 @@ "PdfAnnotationEditor.Save", "PdfAnnotationEditor.Dispose" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "batch-delete-pdf-annotations-with-progress.cs", - "title": "Batch Delete PDF Annotations with Progress Display", - "description": "Shows how to remove all annotations from multiple PDF files using Aspose.Pdf.Facades.PdfAnnotationEditor while reporting the processing percentage in the console.", + "filename": "batch-delete-pdf-annotations-retain-types.cs", + "title": "Batch Delete PDF Annotations While Retaining Specified Types", + "description": "Demonstrates how to load a PDF, read a JSON configuration that lists annotation types to keep, and delete all other annotations using Aspose.Pdf's PdfAnnotationEditor.", "tags": [ "pdf", "annotations", - "batch-processing", - "progress", - "aspose-pdf" + "batch-delete", + "json-config", + "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.PdfAnnotationEditor", - "PdfAnnotationEditor.BindPdf", - "PdfAnnotationEditor.DeleteAnnotations", - "PdfAnnotationEditor.Save" + "Aspose.Pdf.Annotations.AnnotationType", + "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotations", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "batch-delete-pdf-annotations.cs", - "title": "Batch Delete PDF Annotations Using Retention Config", - "description": "Shows how to load a JSON configuration that lists annotation types to keep, then removes all other annotation types from a PDF using Aspose.Pdf's PdfAnnotationEditor.", + "filename": "batch-delete-pdf-annotations-with-progress.cs", + "title": "Batch Delete PDF Annotations with Progress", + "description": "Demonstrates how to remove all annotations from multiple PDF files using Aspose.Pdf.Facades.PdfAnnotationEditor while showing a simple console progress percentage.", "tags": [ - "annotations", "pdf", - "batch-deletion", - "configuration", + "annotations", + "batch", + "progress", "aspose" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", - "Aspose.Pdf.Document" + "PdfAnnotationEditor", + "PdfAnnotationEditor.BindPdf", + "PdfAnnotationEditor.DeleteAnnotations", + "PdfAnnotationEditor.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" + }, + { + "filename": "batch-delete-pdf-annotations.cs", + "title": "Batch Delete Pdf Annotations", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "batch-delete-stamp-annotations.cs", "title": "Batch Delete Stamp Annotations from PDFs", - "description": "Shows how to loop through PDF files in a directory and remove all stamp annotations using Aspose.Pdf.Facades.PdfAnnotationEditor.", + "description": "Demonstrates how to iterate through PDF files in a folder and remove all stamp annotations using Aspose.Pdf's PdfAnnotationEditor facade, saving the cleaned documents.", "tags": [ "pdf", "annotations", - "batch-processing", - "stamp", - "aspose-pdf" + "batch", + "delete", + "stamp" ], "apis_used": [ "PdfAnnotationEditor", "PdfAnnotationEditor.BindPdf", "PdfAnnotationEditor.DeleteAnnotations", - "PdfAnnotationEditor.Save", - "PdfAnnotationEditor.Close" + "PdfAnnotationEditor.Save" ], "difficulty": "beginner" }, { - "filename": "batch-export-delete-pdf-annotations.cs", - "title": "Batch Export and Delete PDF Annotations to XFDF", - "description": "Demonstrates how to iterate over PDF files, export all annotations to XFDF, remove the annotations, and save the cleaned PDFs while archiving the XFDF files.", + "filename": "batch-export-delete-annotations-xfdf.cs", + "title": "Batch Export Annotations to XFDF and Remove Them", + "description": "Shows how to process a folder of PDFs, export all annotations to XFDF files for archiving, delete the annotations, and save the cleaned PDFs using Aspose.Pdf.Facades.", "tags": [ "annotations", "xfdf", "batch-processing", "pdf", - "aspose" + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", "Aspose.Pdf.Facades.PdfAnnotationEditor.ExportAnnotationsToXfdf", "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotations", "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" ], "difficulty": "intermediate" }, + { + "filename": "batch-export-delete-pdf-annotations.cs", + "title": "Batch Export Delete Pdf Annotations", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "batch-flatten-pdf-annotations-cancellation.cs", "title": "Batch Flatten PDF Annotations with Cancellation Support", - "description": "Demonstrates how to flatten annotations in multiple PDF files using Aspose.Pdf's PdfAnnotationEditor while supporting user‑initiated cancellation via a CancellationToken.", + "description": "Demonstrates flattening all annotations in multiple PDF files using Aspose.Pdf's PdfAnnotationEditor while allowing the operation to be aborted via a CancellationToken.", "tags": [ "pdf", "annotations", @@ -8768,58 +10491,46 @@ "batch" ], "apis_used": [ - "PdfAnnotationEditor", - "PdfAnnotationEditor.BindPdf", - "PdfAnnotationEditor.FlatteningAnnotations", - "PdfAnnotationEditor.Save", - "Aspose.Pdf.Facades" + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.FlatteningAnnotations", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Close" ], "difficulty": "intermediate" }, { "filename": "batch-flatten-pdf-annotations-skip-readonly.cs", - "title": "Batch Flatten PDF Annotations with Read‑Only Skip", - "description": "Demonstrates how to iterate through all pages and annotations in a PDF, flatten each annotation, and optionally skip those marked as read‑only using a configuration flag.", - "tags": [ - "pdf", - "annotations", - "flatten", - "read-only", - "batch" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Annotations.AnnotationFlags", - "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Annotations.Annotation.Flatten" - ], - "difficulty": "intermediate" + "title": "Batch Flatten Pdf Annotations Skip Readonly", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "batch-flatten-pdf-annotations.cs", "title": "Batch Flatten PDF Annotations", - "description": "Iterates through all PDF files in a directory and uses Aspose.Pdf.Facades.PdfAnnotationEditor to flatten annotations, saving each result with a _flattened suffix.", + "description": "Processes every PDF in a specified folder, flattens all annotations using Aspose.Pdf's PdfAnnotationEditor, and saves the result with a \"_flattened\" suffix.", "tags": [ "pdf", "annotations", "flatten", "batch", - "aspose" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.FlatteningAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" + "PdfAnnotationEditor.BindPdf", + "PdfAnnotationEditor.FlatteningAnnotations", + "PdfAnnotationEditor.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "batch-import-xfdf-annotations-into-pdfs.cs", "title": "Batch Import XFDF Annotations into Matching PDFs", - "description": "Demonstrates how to iterate through a folder of PDFs, locate corresponding XFDF files by name, import the annotations using Aspose.Pdf, and save the updated PDFs to an output folder.", + "description": "Demonstrates iterating over PDF files, locating corresponding XFDF files by name, importing their annotations with PdfAnnotationEditor, and saving the updated PDFs.", "tags": [ "xfdf", "annotations", @@ -8838,156 +10549,147 @@ }, { "filename": "batch-process-pdfs-azure-blob-pdfannotationeditor.cs", - "title": "Batch Process PDFs from Azure Blob Storage with PdfAnnotationEditor", - "description": "Streams PDF files from an Azure Blob Storage container, uses Aspose.Pdf.Facades.PdfAnnotationEditor to delete all annotations, and uploads the edited PDFs to another container.", - "tags": [ - "azure-blob", - "pdf", - "annotations", - "batch-processing", - "streaming" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Dispose" - ], - "difficulty": "intermediate" + "title": "Batch Process Pdfs Azure Blob Pdfannotationeditor", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "batch-remove-annotations-report.cs", - "title": "Batch Remove Annotations from PDFs and Generate Report", - "description": "The example counts all annotations in each PDF, removes them using PdfAnnotationEditor, saves a cleaned copy, and prints a per‑file removal summary.", + "title": "Batch Remove Annotations Report", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "batch-remove-old-annotations.cs", + "title": "Batch Remove Old Annotations from PDFs", + "description": "Demonstrates how to iterate through PDFs in a folder and delete annotations whose modification date is older than a specified number of days using Aspose.Pdf.", "tags": [ "annotations", + "cleanup", + "batch", "pdf", - "batch-processing", - "report", - "Aspose.Pdf" + "aspose" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotations", "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", - "Aspose.Pdf.Page.Annotations" + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.AnnotationCollection", + "Aspose.Pdf.Annotations.Annotation.Modified" ], "difficulty": "intermediate" }, { "filename": "batch-update-annotation-author.cs", - "title": "Batch Update Annotation Author in Multiple PDFs", - "description": "Demonstrates how to loop through a folder of PDF files and use Aspose.Pdf.Facades.PdfAnnotationEditor to replace the author of all annotations with a new value, saving the updated PDFs.", + "title": "Batch Update Annotation Author Across Multiple PDFs", + "description": "Shows how to iterate through PDF files in a directory and use PdfAnnotationEditor to replace the author of existing annotations with a new value, saving the modified PDFs to an output folder.", "tags": [ "annotations", - "author", "batch", + "author", "pdf", "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfAnnotationEditor", - "PdfAnnotationEditor.BindPdf", - "PdfAnnotationEditor.ModifyAnnotationsAuthor", - "PdfAnnotationEditor.Save", - "PdfAnnotationEditor.Document.Pages.Count" + "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.ModifyAnnotationsAuthor", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Close", + "Aspose.Pdf.Document.Pages.Count" ], "difficulty": "intermediate" }, { - "filename": "benchmark-deleteannotations-vs-deleteannotation.cs", - "title": "Benchmark DeleteAnnotations vs DeleteAnnotation", - "description": "Shows how to measure the performance of deleting all PDF annotations at once versus deleting a single annotation using Aspose.Pdf's PdfAnnotationEditor.", + "filename": "benchmark-delete-annotations.cs", + "title": "Benchmark Deleting PDF Annotations with Aspose.Pdf", + "description": "Creates a PDF with multiple text annotations and measures the performance of deleting all annotations via DeleteAnnotations versus deleting a single annotation via DeleteAnnotation.", "tags": [ "annotations", "benchmark", - "delete", - "pdf", - "performance" + "performance", + "aspose-pdf", + "pdf-editing" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotations", "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotation", - "Aspose.Pdf.Annotations.Annotation" + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate" }, + { + "filename": "benchmark-deleteannotations-vs-deleteannotation.cs", + "title": "Benchmark Deleteannotations Vs Deleteannotation", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "change-annotation-subject-color.cs", - "title": "Change Annotation Subject and Color", - "description": "Demonstrates how to modify the Subject and Color of an existing PDF annotation by creating a new TextAnnotation and applying it with ModifyAnnotations.", - "tags": [ - "annotation", - "modify", - "subject", - "color", - "pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ModifyAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" - ], - "difficulty": "intermediate" + "title": "Change Annotation Subject Color", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "check-duplicate-annotation-names.cs", "title": "Check for Duplicate Annotation Names in a PDF", - "description": "Shows how to traverse all annotations in a PDF with Aspose.Pdf, detect duplicate annotation names, and write a conflict report to a log file.", + "description": "Shows how to iterate through all annotations in a PDF with Aspose.Pdf, detect duplicate annotation names, and write a detailed report to a log file.", "tags": [ "annotations", "duplicate", "pdf", - "validation", - "logging" + "logging", + "Aspose.Pdf" ], "apis_used": [ - "PdfAnnotationEditor.BindPdf", - "PdfAnnotationEditor.Document", - "Document.Pages", - "Page.Annotations", - "Annotation.Name" + "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.AnnotationCollection", + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" ], "difficulty": "intermediate" }, { "filename": "clone-annotation-change-color.cs", "title": "Clone PDF Annotation, Change Its Color, and Add to Another Page", - "description": "Demonstrates how to extract a specific annotation from one page, clone it with a new color, and place the cloned annotation on a different page using Aspose.Pdf.", + "description": "Demonstrates how to load a PDF, clone an existing annotation, modify its color, and place the cloned annotation on a different page using Aspose.Pdf.", "tags": [ "annotation", "clone", "color", "pdf", - "Aspose" + "Aspose.Pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ExtractAnnotations", - "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Annotations.AnnotationCollection.Add", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" + "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Annotations.StampAnnotation", + "Aspose.Pdf.Color", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "clone-modify-pdf-annotation.cs", "title": "Clone and Modify PDF Annotation", - "description": "Demonstrates how to clone an existing annotation on a PDF page, modify its properties, add the cloned annotation back to the same page, and save the document using Aspose.Pdf.", + "description": "Shows how to clone an existing annotation on a PDF page, change its properties, and add the cloned annotation back to the same page using Aspose.Pdf.Facades.", "tags": [ "annotation", "clone", @@ -8996,48 +10698,61 @@ "facade" ], "apis_used": [ + "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.Annotation", "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Annotations.StampAnnotation", - "Aspose.Pdf.Facades.PdfAnnotationEditor" + "Aspose.Pdf.Annotations.StampAnnotation" ], "difficulty": "intermediate" }, { "filename": "concurrent-insert-delete-pdf.cs", - "title": "Concurrent Insert and Delete Operations on PDF", - "description": "Demonstrates how to run page insertion and page deletion on the same PDF simultaneously using Aspose.Pdf.Facades.PdfFileEditor and .NET tasks to test thread safety.", + "title": "Concurrent Insert and Delete Operations on a PDF", + "description": "Demonstrates how to safely perform simultaneous page insertions and deletions on the same PDF using Aspose.Pdf with multithreading and file locking.", "tags": [ "concurrency", "pdf", + "aspose", "insert", - "delete", - "aspose" + "delete" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Insert", - "Aspose.Pdf.Facades.PdfFileEditor.Delete" + "Aspose.Pdf.Facades.PdfFileEditor.TryInsert", + "Aspose.Pdf.Facades.PdfFileEditor.TryDelete", + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Pages" ], - "difficulty": "intermediate" + "difficulty": "advanced" }, { "filename": "conditional-pdf-flattening-based-on-digital-signatures.cs", + "title": "Conditional Pdf Flattening Based On Digital Signatures", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "conditional-pdf-flattening.cs", "title": "Conditional PDF Flattening Based on Digital Signatures", - "description": "The example checks whether a PDF contains digital signatures and skips flattening to preserve signature validity; otherwise it flattens form fields and annotations.", + "description": "The example checks if a PDF contains digital signatures using PdfFileSignature and only flattens form fields and annotations when no signatures are present, preserving signature validity.", "tags": [ "pdf", - "digital-signature", "flatten", - "aspose-pdf", - "facades" + "digital-signature", + "aspose.pdf", + "facade" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileSignature", "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", "Aspose.Pdf.Facades.PdfFileSignature.ContainsSignature", - "Aspose.Pdf.Document", "Aspose.Pdf.Document.Flatten", "Aspose.Pdf.Document.Save" ], @@ -9046,200 +10761,228 @@ { "filename": "copy-annotations-to-multiple-pdfs.cs", "title": "Copy Annotations from Template PDF to Multiple PDFs", - "description": "Shows how to export annotations from a template PDF to an XFDF stream and import them into several target PDFs using Aspose.Pdf's PdfAnnotationEditor.", + "description": "Demonstrates exporting annotations from a template PDF to an XFDF stream and importing them into several target PDFs using Aspose.Pdf.Facades.PdfAnnotationEditor.", "tags": [ "annotations", "xfdf", "pdf", "copy", - "Aspose.Pdf" + "facade" ], "apis_used": [ + "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ExportAnnotationsToXfdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ImportAnnotationsFromXfdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" + "PdfAnnotationEditor.BindPdf", + "PdfAnnotationEditor.ExportAnnotationsToXfdf", + "PdfAnnotationEditor.ImportAnnotationsFromXfdf", + "PdfAnnotationEditor.Save" ], "difficulty": "intermediate" }, { "filename": "count-pdf-annotations-by-type.cs", - "title": "Count PDF Annotations by Type", - "description": "Demonstrates how to load a PDF, extract all annotations using the PdfAnnotationEditor facade, and return a dictionary that maps each annotation type to its occurrence count.", - "tags": [ - "annotations", - "pdf", - "count", - "aspose", - "facade" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ExtractAnnotations", - "Aspose.Pdf.Annotations.Annotation" - ], - "difficulty": "intermediate" + "title": "Count Pdf Annotations By Type", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "delete-all-annotations-from-pdfs.cs", - "title": "Delete All Annotations from PDFs in a Folder", - "description": "Demonstrates how to loop through a directory of PDF files, bind each with Aspose.Pdf.Facades.PdfAnnotationEditor, remove all annotations, and overwrite the original files.", + "filename": "delete-all-annotations-from-pdf.cs", + "title": "Delete All Annotations from PDF and Verify Count", + "description": "Shows how to bind a PDF with PdfAnnotationEditor, count existing annotations, remove them using DeleteAnnotations, and confirm the removal before saving the file.", "tags": [ - "pdf", "annotations", - "batch", + "delete", + "pdf", "Aspose.Pdf", - "delete" + "verification" ], "apis_used": [ "PdfAnnotationEditor", "PdfAnnotationEditor.BindPdf", "PdfAnnotationEditor.DeleteAnnotations", - "PdfAnnotationEditor.Save" + "PdfAnnotationEditor.Save", + "Document" ], "difficulty": "beginner" }, { "filename": "delete-annotations-and-log-to-json.cs", - "title": "Delete All Annotations and Log Deletions to JSON", - "description": "The example loads a PDF, iterates through every page, deletes each annotation, and writes a JSON log entry containing the annotation's name, type, and page number. The cleaned PDF is then saved.", + "title": "Delete Annotations And Log To Json", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "delete-annotations-and-verify-count.cs", + "title": "Delete Annotations And Verify Count", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "delete-annotations-by-author.cs", + "title": "Delete Annotations by Author Using Aspose.Pdf", + "description": "Shows how to filter PDF annotations by the author's Title and remove them using PdfAnnotationEditor.", "tags": [ "annotations", + "delete", + "author", "pdf", - "logging", - "Aspose.Pdf", - "facade" + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.AnnotationCollection", "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", - "Aspose.Pdf.Annotations.Annotation.AnnotationType" - ], - "difficulty": "intermediate" - }, + "Aspose.Pdf.Annotations.MarkupAnnotation", + "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotation", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" + ], + "difficulty": "intermediate" + }, { - "filename": "delete-annotations-and-verify-count.cs", - "title": "Delete All Annotations and Verify Count", - "description": "The example counts annotations in a PDF, removes all of them using PdfAnnotationEditor, saves the cleaned file, and then recounts to confirm the deletion.", + "filename": "delete-annotations-by-rgb-color.cs", + "title": "Delete Annotations By Rgb Color", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "delete-annotations-export-xfdf.cs", + "title": "Delete Specific Annotations and Export Remaining to XFDF", + "description": "Demonstrates how to remove all annotations of a given type (e.g., Text) from a PDF using PdfAnnotationEditor and then export the remaining annotations to an XFDF file.", "tags": [ "annotations", "delete", + "xfdf", "pdf", - "Aspose.Pdf", - "verification" + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotations", "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", - "Aspose.Pdf.Page.Annotations" + "Aspose.Pdf.Facades.PdfAnnotationEditor.ExportAnnotationsToXfdf" ], "difficulty": "intermediate" }, { - "filename": "delete-annotations-by-rgb-color.cs", - "title": "Delete Annotations by Specific RGB Color", - "description": "Demonstrates how to remove PDF annotations whose Color property matches a given RGB value using Aspose.Pdf's annotation editor.", + "filename": "delete-annotations-from-pdf-using-config.cs", + "title": "Delete Specific Annotations from PDF Using Configuration File", + "description": "Shows how to read annotation types from a text configuration file and delete those (or all) annotations from a PDF using Aspose.Pdf.Facades.", "tags": [ "annotations", - "color", "pdf", - "Aspose.Pdf", - "deletion" + "delete", + "configuration", + "Aspose.Pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.AnnotationCollection", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Color" + "PdfAnnotationEditor", + "PdfAnnotationEditor.BindPdf", + "PdfAnnotationEditor.DeleteAnnotations", + "PdfAnnotationEditor.Save" ], "difficulty": "intermediate" }, { - "filename": "delete-annotations-export-xfdf.cs", - "title": "Delete Specific Annotations and Export Remaining to XFDF", - "description": "Shows how to remove all annotations of a given type from a PDF using PdfAnnotationEditor and then export the remaining annotations to an XFDF file.", + "filename": "delete-annotations-from-pdf.cs", + "title": "Delete All Annotations from PDF Using PdfAnnotationEditor", + "description": "Shows how to create a PDF with text annotations, remove them with PdfAnnotationEditor.DeleteAnnotations, and verify the removal with a unit test.", "tags": [ - "annotations", - "delete", - "xfdf", "pdf", - "Aspose.Pdf" + "annotations", + "unit-test", + "Aspose.Pdf", + "delete" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.TextAnnotation", "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotations", "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ExportAnnotationsToXfdf" + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate" }, { "filename": "delete-annotations-from-pdfs.cs", - "title": "Delete Annotations from PDFs in a Folder", - "description": "Demonstrates how to batch‑process PDF files in a directory, removing all annotations using Aspose.Pdf's PdfAnnotationEditor and saving the cleaned PDFs to an output folder.", + "title": "Delete Annotations From Pdfs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "delete-annotations-pdf-annotation-editor.cs", + "title": "Delete Annotations Pdf Annotation Editor", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "delete-annotations-with-backup.cs", + "title": "Delete All Annotations with Optional Backup", + "description": "Demonstrates how to create a backup copy of a PDF before removing all annotations using Aspose.Pdf's annotation editor.", "tags": [ "annotations", + "backup", "pdf", - "batch", - "delete", - "aspose" + "Aspose.Pdf", + "delete" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Close" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "delete-annotations-pdf-annotation-editor.cs", - "title": "Delete All Annotations from PDF Using PdfAnnotationEditor", - "description": "The example creates a PDF with two text annotations, uses PdfAnnotationEditor.DeleteAnnotations to remove them, and verifies the removal with a unit test.", + "filename": "delete-flatten-pdf-annotations.cs", + "title": "Delete and Flatten PDF Annotations", + "description": "Demonstrates using Aspose.Pdf.Facades.PdfAnnotationEditor to remove all annotations from a PDF, flatten any remaining ones, and save the processed document.", "tags": [ "annotations", "pdf", - "unit-test", - "Aspose.Pdf", - "PdfAnnotationEditor" + "flatten", + "delete", + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.TextAnnotation", "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotations", - "Aspose.Pdf.Rectangle" + "PdfAnnotationEditor.BindPdf", + "PdfAnnotationEditor.DeleteAnnotations", + "PdfAnnotationEditor.FlatteningAnnotations", + "PdfAnnotationEditor.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "delete-pdf-annotation-by-name.cs", - "title": "Delete PDF Annotation by Name", - "description": "Shows how to remove a specific annotation from a PDF document using Aspose.Pdf.Facades PdfAnnotationEditor by providing the annotation's name.", + "title": "Delete a PDF Annotation by Name", + "description": "Shows how to remove a specific annotation identified by its name from a PDF using Aspose.Pdf.Facades.PdfAnnotationEditor.", "tags": [ "annotation", "delete", "pdf", "Aspose.Pdf", - "facades" + "PdfAnnotationEditor" ], "apis_used": [ "Aspose.Pdf.Facades.PdfAnnotationEditor", @@ -9251,40 +10994,37 @@ }, { "filename": "delete-pdf-annotation-by-name__v2.cs", - "title": "Delete PDF Annotation by Name (Literal and Variable)", - "description": "Demonstrates removing a named annotation from a PDF using Aspose.Pdf's PdfAnnotationEditor, with examples of using a string literal and a variable for the annotation name.", + "title": "Delete PDF Annotation by Name", + "description": "Shows how to remove a specific annotation from a PDF document by passing its name to the DeleteAnnotation method of PdfAnnotationEditor.", "tags": [ "annotation", "delete", "pdf", "Aspose.Pdf", - "csharp" + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.TextAnnotation", "Aspose.Pdf.Facades.PdfAnnotationEditor", "PdfAnnotationEditor.BindPdf", "PdfAnnotationEditor.DeleteAnnotation", "PdfAnnotationEditor.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "delete-pdf-annotation-with-error-handling.cs", "title": "Delete PDF Annotation with Error Handling", - "description": "Demonstrates how to delete a specific annotation from a PDF using Aspose.Pdf and gracefully handle errors when the annotation does not exist.", + "description": "Demonstrates deleting an annotation from a PDF using PdfAnnotationEditor and handling exceptions when the specified annotation does not exist.", "tags": [ "annotation", "delete", "error-handling", "pdf", - "Aspose" + "Aspose.Pdf" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotation", "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", "Aspose.Pdf.PdfException" @@ -9293,101 +11033,128 @@ }, { "filename": "delete-pdf-annotation-with-retry.cs", - "title": "Delete PDF Annotation with Retry Mechanism", - "description": "Demonstrates how to delete a specific annotation from a PDF using Aspose.Pdf.Facades with a retry mechanism that rebinds the document if the first attempt fails.", + "title": "Delete Pdf Annotation With Retry", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "delete-pdf-annotations-by-author.cs", + "title": "Delete Pdf Annotations By Author", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "delete-pdf-annotations-by-color.cs", + "title": "Delete PDF Annotations by Specific Color", + "description": "Shows how to iterate through a PDF, compare each annotation's Color with a target RGB value, and delete only those annotations that match the color.", "tags": [ - "annotation", - "retry", + "annotations", + "color", "pdf", - "Aspose", - "facade" + "deletion", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Color.FromRgb", + "Page.Annotations.Delete", "PdfAnnotationEditor.BindPdf", - "PdfAnnotationEditor.DeleteAnnotation", - "PdfAnnotationEditor.Save", - "PdfAnnotationEditor.Close" + "PdfAnnotationEditor.Save" ], "difficulty": "intermediate" }, { - "filename": "delete-pdf-annotations-by-author.cs", - "title": "Delete PDF Annotations by Author Name", - "description": "Shows how to filter annotations in a PDF by the author (Title) and remove them using Aspose.Pdf's annotation editor.", + "filename": "delete-pdf-annotations-by-name.cs", + "title": "Delete PDF Annotations by Name (Literal and Variable)", + "description": "Demonstrates removing specific PDF annotations using Aspose.Pdf by supplying the annotation name directly as a string literal or through a variable.", "tags": [ "annotations", "delete", - "author", "pdf", - "Aspose" + "Aspose.Pdf", + "string-literal" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.TextAnnotation", "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotation", "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.AnnotationCollection", - "Aspose.Pdf.Annotations.MarkupAnnotation" + "Aspose.Pdf.Facades.PdfAnnotationEditor.Close" ], "difficulty": "intermediate" }, { - "filename": "delete-specific-annotation-from-pdf.cs", - "title": "Delete Specific Annotation from PDF", - "description": "Demonstrates how to remove a single annotation identified by its Name property (\"Comment1\") from a PDF using Aspose.Pdf's PdfAnnotationEditor.", + "filename": "delete-pdf-annotations-in-folder.cs", + "title": "Delete PDF Annotations in a Folder", + "description": "Shows how to use Aspose.Pdf.Facades.PdfAnnotationEditor to remove all annotations from each PDF file in a source directory and save the cleaned files.", "tags": [ - "annotation", - "delete", "pdf", - "Aspose.Pdf", + "annotations", + "delete", + "batch", "facade" ], "apis_used": [ - "PdfAnnotationEditor", + "Aspose.Pdf.Facades.PdfAnnotationEditor", "PdfAnnotationEditor.BindPdf", - "PdfAnnotationEditor.DeleteAnnotation", + "PdfAnnotationEditor.DeleteAnnotations", "PdfAnnotationEditor.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "delete-specific-annotation-types-from-pdf.cs", - "title": "Delete Specific Annotation Types from PDF Using Configuration", - "description": "Shows how to read a JSON file that lists annotation types and delete those annotations from a PDF using Aspose.Pdf's PdfAnnotationEditor.", + "filename": "delete-pdf-annotations-in-parallel.cs", + "title": "Delete All Annotations from PDFs in Parallel", + "description": "Shows how to remove all annotations from multiple PDF files concurrently using Aspose.Pdf.Facades.PdfAnnotationEditor with Parallel.ForEach for faster processing.", "tags": [ - "annotations", "pdf", - "delete", - "configuration", - "aspose" + "annotations", + "parallel", + "aspose", + "csharp" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" + "PdfAnnotationEditor", + "PdfAnnotationEditor.BindPdf", + "PdfAnnotationEditor.DeleteAnnotations", + "PdfAnnotationEditor.Save" ], "difficulty": "intermediate" }, + { + "filename": "delete-specific-annotation-types-from-pdf.cs", + "title": "Delete Specific Annotation Types From Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "delete-text-annotations-from-pdf.cs", "title": "Delete Text Annotations from PDF", - "description": "Shows how to remove only text (sticky note) annotations from a PDF using Aspose.Pdf.Facades.PdfAnnotationEditor.", + "description": "Shows how to remove only text (sticky note) annotations from a PDF by using PdfAnnotationEditor.DeleteAnnotations with the type name \"Text\".", "tags": [ "annotations", - "pdf", "delete", + "pdf", "text", "Aspose" ], "apis_used": [ "Aspose.Pdf.Facades.PdfAnnotationEditor", - "PdfAnnotationEditor.BindPdf", - "PdfAnnotationEditor.DeleteAnnotations", - "PdfAnnotationEditor.Save" + "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotations", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" ], "difficulty": "beginner" }, @@ -9401,34 +11168,49 @@ }, { "filename": "export-annotations-to-xfdf-no-annotations.cs", - "title": "Export Annotations to XFDF When PDF Has No Annotations", - "description": "Demonstrates creating a blank PDF, binding it to PdfAnnotationEditor, exporting annotations to an XFDF stream, and asserting the output contains the root element even when there are no annotations.", + "title": "Export Annotations To Xfdf No Annotations", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "export-annotations-to-xfdf-stream.cs", + "title": "Export Annotations from Specific PDF Pages to XFDF Stream", + "description": "Shows how to bind a PDF, export annotations from pages 1‑2 into an XFDF memory stream, and optionally read the XFDF content.", "tags": [ - "xfdf", "annotations", + "xfdf", "export", "pdf", - "unit-test" + "memory-stream" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ExportAnnotationsToXfdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Close" + "Aspose.Pdf.Facades.PdfAnnotationEditor.ExportAnnotationsXfdf", + "Aspose.Pdf.Annotations.AnnotationType" ], "difficulty": "beginner" }, { "filename": "export-annotations-xfdf-gzip.cs", - "title": "Export PDF Annotations to XFDF and GZip Compress", - "description": "Shows how to extract all annotations from a PDF, export them to an XFDF stream, and compress the result using GZip for efficient storage.", + "title": "Export Annotations Xfdf Gzip", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "export-annotations-xfdf-no-annotations.cs", + "title": "Export Annotations to XFDF for PDF with No Annotations", + "description": "Demonstrates creating a PDF without any annotations, exporting the (empty) annotation set to XFDF using PdfAnnotationEditor, and validating the XFDF structure.", "tags": [ - "annotations", "xfdf", - "gzip", + "annotations", "export", - "pdf" + "pdf", + "validation" ], "apis_used": [ "Aspose.Pdf.Document", @@ -9437,12 +11219,12 @@ "Aspose.Pdf.Facades.PdfAnnotationEditor.ExportAnnotationsToXfdf", "Aspose.Pdf.Facades.PdfAnnotationEditor.Close" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "export-highlight-annotations-to-xfdf.cs", "title": "Export Highlight Annotations to XFDF", - "description": "Demonstrates how to filter PDF annotations to only highlights and export them to an XFDF file using the PdfAnnotationEditor overload.", + "description": "Demonstrates how to filter PDF annotations by the Highlight type and export them to an XFDF file using the PdfAnnotationEditor overload.", "tags": [ "annotations", "xfdf", @@ -9451,63 +11233,61 @@ "pdf" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Annotations.AnnotationType", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ExportAnnotationsXfdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Document", - "Aspose.Pdf.Annotations.AnnotationType" + "Aspose.Pdf.Facades.PdfAnnotationEditor.ExportAnnotationsXfdf" ], "difficulty": "beginner" }, { - "filename": "export-import-pdf-annotations-xfdf.cs", - "title": "Export and Import PDF Annotations via XFDF", - "description": "Shows how to export annotations from a source PDF to an XFDF file and then import that XFDF into another PDF to duplicate the annotation layout.", + "filename": "export-import-flatten-pdf-annotations-logging.cs", + "title": "Export, Import and Flatten PDF Annotations with Verbose Logging", + "description": "The example loads a PDF, exports its annotations to an XFDF file, re-imports them, flattens the annotations into the page content, and saves the modified PDF while writing each step to a verbose log file.", "tags": [ + "pdf", "annotations", "xfdf", - "export", - "import", - "pdf" + "logging", + "flatten" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfAnnotationEditor", - "PdfAnnotationEditor.BindPdf", - "PdfAnnotationEditor.ExportAnnotationsToXfdf", - "PdfAnnotationEditor.ImportAnnotationsFromXfdf", - "Document.Save", - "PdfAnnotationEditor.Close" + "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.ExportAnnotationsToXfdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.ImportAnnotationsFromXfdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.FlatteningAnnotations", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "export-pdf-annotations-to-json.cs", - "title": "Export PDF Annotations to JSON Log", - "description": "The example loads a PDF using PdfAnnotationEditor, iterates through each page and its annotations, extracts key annotation properties, and writes the collected data as indented JSON to an audit log file.", + "filename": "export-import-pdf-annotations-xfdf.cs", + "title": "Export and Import PDF Annotations via XFDF", + "description": "Demonstrates exporting all annotations from a source PDF to an XFDF file and then importing that XFDF into another PDF to duplicate the annotation layout.", "tags": [ "annotations", - "json", + "xfdf", "pdf", - "audit", - "aspose-pdf" + "export", + "import" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Annotations.PopupAnnotation", - "Aspose.Pdf.Annotations.MarkupAnnotation" + "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Color" ], "difficulty": "intermediate" }, { - "filename": "export-pdf-annotations-to-pretty-xfdf.cs", - "title": "Export PDF Annotations to Pretty‑Printed XFDF", - "description": "Shows how to extract annotations from a PDF and save them as an indented XFDF file for easy manual editing using Aspose.Pdf.", + "filename": "export-pdf-annotations-pretty-xfdf.cs", + "title": "Export PDF Annotations to Pretty-Printed XFDF", + "description": "Shows how to extract all annotations from a PDF and save them as an XFDF file with formatted (indented) XML for easier manual editing.", "tags": [ "annotations", "xfdf", @@ -9521,20 +11301,86 @@ "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", "Aspose.Pdf.Facades.PdfAnnotationEditor.ExportAnnotationsToXfdf" ], + "difficulty": "beginner" + }, + { + "filename": "export-pdf-annotations-to-compressed-xfdf.cs", + "title": "Export PDF Annotations to Compressed XFDF", + "description": "Demonstrates how to export all annotations from a PDF to XFDF using Aspose.Pdf's PdfAnnotationEditor and then compress the XFDF data with GZip for efficient storage.", + "tags": [ + "annotations", + "xfdf", + "gzip", + "export", + "pdf" + ], + "apis_used": [ + "Document", + "PdfAnnotationEditor", + "PdfAnnotationEditor.BindPdf", + "PdfAnnotationEditor.ExportAnnotationsToXfdf", + "PdfAnnotationEditor (constructor)" + ], "difficulty": "intermediate" }, { - "filename": "export-pdf-annotations-to-xfdf-custom-namespace.cs", - "title": "Export PDF Annotations to XFDF with Custom Namespace", - "description": "Demonstrates exporting annotations from a PDF to an XFDF file and replacing the default XFDF namespace with a custom one required by enterprise XML standards.", + "filename": "export-pdf-annotations-to-json.cs", + "title": "Export PDF Annotations and Form Fields to JSON Log", + "description": "Shows how to load a PDF, bind it to the annotation editor facade, and export form field (widget) annotations to a JSON file for auditing purposes.", + "tags": [ + "pdf", + "annotations", + "json", + "export", + "audit" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", + "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.Form.ExportJson" + ], + "difficulty": "intermediate" + }, + { + "filename": "export-pdf-annotations-to-pretty-xfdf.cs", + "title": "Export Pdf Annotations To Pretty Xfdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "export-pdf-annotations-to-xfdf-and-validate.cs", + "title": "Export PDF Annotations to XFDF and Validate Against Schema", + "description": "The example exports annotations from a PDF to an XFDF file using the Form facade, then validates the generated XFDF against the official XFDF XSD schema.", "tags": [ "xfdf", + "validation", "annotations", - "custom-namespace", "pdf", - "export" + "schema" + ], + "apis_used": [ + "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.Form.ExportXfdf" + ], + "difficulty": "intermediate" + }, + { + "filename": "export-pdf-annotations-to-xfdf-custom-namespace.cs", + "title": "Export PDF Annotations to XFDF with Custom Namespace", + "description": "Shows how to export all annotations from a PDF to XFDF using Aspose.Pdf, then replace the default XFDF namespace with a custom enterprise namespace before saving the file.", + "tags": [ + "annotations", + "xfdf", + "namespace", + "export", + "aspose-pdf" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", "Aspose.Pdf.Facades.PdfAnnotationEditor.ExportAnnotationsToXfdf", @@ -9543,45 +11389,49 @@ "difficulty": "intermediate" }, { - "filename": "export-pdf-annotations-to-xfdf-with-log.cs", + "filename": "export-pdf-annotations-to-xfdf-with-diagnostic-logging.cs", "title": "Export PDF Annotations to XFDF with Diagnostic Logging", - "description": "Demonstrates how to export all annotations from a PDF to an XFDF file and simultaneously write the same XFDF content to a diagnostic log file.", + "description": "Demonstrates how to export all PDF annotations to an XFDF file using Aspose.Pdf and simultaneously write the same XFDF content to a diagnostic log file.", "tags": [ "annotations", "xfdf", "export", "diagnostic", - "pdf" + "aspose-pdf" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", "Aspose.Pdf.Facades.PdfAnnotationEditor.ExportAnnotationsToXfdf" ], "difficulty": "intermediate" }, + { + "filename": "export-pdf-annotations-to-xfdf-with-log.cs", + "title": "Export Pdf Annotations To Xfdf With Log", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "export-pdf-annotations-to-xfdf.cs", - "title": "Export PDF Annotations to XFDF Memory Stream", - "description": "Demonstrates how to create a PDF with annotations, then export the annotations from specific pages to an XFDF format using a memory stream for further processing.", + "title": "Export PDF Annotations to XFDF", + "description": "Demonstrates how to bind a PDF with PdfAnnotationEditor and export all its annotations to an XFDF file using a file stream.", "tags": [ "annotations", "xfdf", "export", "pdf", - "aspnet" + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Annotations.AnnotationType", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ExportAnnotationsXfdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Color" + "PdfAnnotationEditor", + "PdfAnnotationEditor.BindPdf", + "PdfAnnotationEditor.ExportAnnotationsToXfdf", + "PdfAnnotationEditor.Close" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "export-pdf-annotations-to-xfdf__v2.cs", @@ -9602,80 +11452,97 @@ "difficulty": "beginner" }, { - "filename": "extract-annotation-rectangles.cs", - "title": "Extract Annotation Rectangles and Create Visual PDF", - "description": "Shows how to read annotation rectangles from a PDF using PdfAnnotationEditor and generate a new PDF where each annotation is visualized as a red rectangle on its own page.", + "filename": "extract-annotation-rectangles-to-pdf.cs", + "title": "Extract Annotation Rectangles and Visualize as PDF Pages", + "description": "The example extracts the bounding rectangles of all annotations in a source PDF and creates a new PDF where each page visualizes one annotation rectangle with descriptive text.", "tags": [ "annotations", "pdf", "extraction", "visualization", - "aspose-pdf" + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.ExtractAnnotations", "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Drawing.Graph", "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Graph", - "Aspose.Pdf.GraphInfo" + "Aspose.Pdf.Text.TextFragment" ], "difficulty": "intermediate" }, { - "filename": "extract-pdf-annotation-details.cs", - "title": "Extract PDF Annotation Details to Custom DTO", - "description": "Shows how to load a PDF, extract all annotations with PdfAnnotationEditor, and map each annotation's name, type, and rectangle into a custom C# data transfer object.", + "filename": "extract-annotation-rectangles.cs", + "title": "Extract Annotation Rectangles", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-pdf-annotation-comments-summary.cs", + "title": "Extract PDF Annotation Comments and Create Summary PDF", + "description": "Demonstrates how to extract text‑type annotation comments from an existing PDF using Aspose.Pdf.Facades, compile them into a single summary string, and generate a new PDF containing that summary.", "tags": [ - "pdf", "annotations", + "pdf", + "summary", "extraction", - "aspose", - "csharp" + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ExtractAnnotations", + "PdfAnnotationEditor.BindPdf", + "PdfAnnotationEditor.ExtractAnnotations", "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.Annotation.AnnotationType", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Document", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.FontRepository.FindFont" ], "difficulty": "intermediate" }, { - "filename": "extract-pdf-annotations-summary.cs", - "title": "Extract PDF Annotations and Create a Summary Document", - "description": "The example reads all textual annotations from an input PDF, aggregates their contents, and generates a new PDF containing a compiled summary of those comments.", + "filename": "extract-pdf-annotation-details.cs", + "title": "Extract PDF Annotation Details to DTO", + "description": "Demonstrates how to load a PDF, extract all annotations using PdfAnnotationEditor, and map their name, type, and rectangle into a custom DTO for further analysis.", "tags": [ "annotations", - "pdf", - "summary", "extraction", - "facades" + "pdf", + "facade", + "aspnet" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Document", - "Aspose.Pdf.Page", + "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Facades.PdfAnnotationEditor.ExtractAnnotations", "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.FontRepository.FindFont" + "Aspose.Pdf.Annotations.Annotation.AnnotationType", + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate" }, + { + "filename": "extract-pdf-annotations-summary.cs", + "title": "Extract Pdf Annotations Summary", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "flatten-annotations-first-five-pages.cs", - "title": "Flatten Annotations on First Five PDF Pages", - "description": "Shows how to flatten all types of annotations on pages 1‑5 of a PDF document using Aspose.Pdf's PdfAnnotationEditor.", + "title": "Flatten Annotations on the First Five PDF Pages", + "description": "Demonstrates how to use the PdfAnnotationEditor facade to flatten all annotation types on pages 1 through 5 of a PDF document and save the result.", "tags": [ "flatten", "annotations", "pdf", "pages", - "Aspose.Pdf" + "Aspose" ], "apis_used": [ "Aspose.Pdf.Facades.PdfAnnotationEditor", @@ -9687,15 +11554,15 @@ "difficulty": "beginner" }, { - "filename": "flatten-annotations-on-network-share.cs", + "filename": "flatten-annotations-network-share.cs", "title": "Flatten Annotations in PDFs on a Network Share", - "description": "Demonstrates how to scan a UNC network share for PDF files, use Aspose.Pdf.Facades.PdfAnnotationEditor to flatten all annotations, and overwrite the original documents, suitable for nightly scheduling.", + "description": "Shows how to scan a UNC network folder for PDF files and use Aspose.Pdf.Facades.PdfAnnotationEditor to flatten all annotations, saving the changes back to the original files.", "tags": [ "pdf", "annotations", "flatten", "network-share", - "task-scheduler" + "batch" ], "apis_used": [ "Aspose.Pdf.Facades.PdfAnnotationEditor", @@ -9705,36 +11572,31 @@ ], "difficulty": "beginner" }, + { + "filename": "flatten-annotations-on-network-share.cs", + "title": "Flatten Annotations On Network Share", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "flatten-delete-pdf-annotations-verbose.cs", - "title": "Flatten and Delete PDF Annotations with Verbose Logging", - "description": "Shows how to bind a PDF, export its annotations to XFDF, flatten and delete all annotations, and save the modified file, with an optional --verbose flag for detailed operation logging.", - "tags": [ - "annotations", - "flatten", - "delete", - "verbose", - "pdf" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ExportAnnotationsToXfdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.FlatteningAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" - ], - "difficulty": "intermediate" + "title": "Flatten Delete Pdf Annotations Verbose", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "flatten-pdf-annotations-from-stream.cs", - "title": "Flatten PDF Annotations from a Stream", + "title": "Flatten PDF Annotations from Stream", "description": "Shows how to flatten all annotations in a PDF provided as a stream and return the modified PDF in a MemoryStream, avoiding any disk I/O.", "tags": [ "pdf", "annotations", "flatten", - "stream", + "memory-stream", "aspose" ], "apis_used": [ @@ -9748,7 +11610,7 @@ { "filename": "flatten-pdf-annotations-log-size-reduction.cs", "title": "Flatten PDF Annotations and Log Size Reduction", - "description": "Shows how to flatten all annotations in a PDF using Aspose.Pdf.Facades, then record the original and flattened file sizes to calculate the size reduction for audit purposes.", + "description": "Demonstrates how to flatten all annotations in a PDF using Aspose.Pdf.Facades and then log the original and reduced file sizes for audit purposes.", "tags": [ "pdf", "annotations", @@ -9760,56 +11622,66 @@ "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", "Aspose.Pdf.Facades.PdfAnnotationEditor.FlatteningAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Close" ], "difficulty": "beginner" }, { - "filename": "flatten-pdf-annotations-measure-time.cs", - "title": "Flatten PDF Annotations and Measure Execution Time", - "description": "Loads a 500‑page PDF, flattens all annotations using the PdfAnnotationEditor facade, saves the result, and reports the time taken to perform the operation.", + "filename": "flatten-pdf-annotations-validate.cs", + "title": "Flatten Pdf Annotations Validate", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "flatten-pdf-annotations-verify-removal.cs", + "title": "Flatten PDF Annotations and Verify Removal", + "description": "Loads a PDF, flattens all annotation objects using Aspose.Pdf.Facades, saves the result, and checks the document structure to ensure no annotations remain.", "tags": [ - "annotations", "flatten", - "performance", + "annotations", + "validation", "pdf", - "Aspose.Pdf" + "aspose" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", "Aspose.Pdf.Facades.PdfAnnotationEditor.FlatteningAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" + "Aspose.Pdf.Page", + "Aspose.Pdf.Page.Annotations", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "flatten-pdf-annotations-validate.cs", + "filename": "flatten-pdf-annotations-verify.cs", "title": "Flatten PDF Annotations and Verify Removal", - "description": "The example flattens all annotations in a PDF using PdfAnnotationEditor and then checks each page to ensure no annotation objects remain.", + "description": "Demonstrates how to flatten all annotations in a PDF using PdfAnnotationEditor and then scan the saved document to ensure no annotation objects remain.", "tags": [ - "flatten", "annotations", + "flatten", "validation", "pdf", "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.FlatteningAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", + "PdfAnnotationEditor.BindPdf", + "PdfAnnotationEditor.FlatteningAnnotations", + "PdfAnnotationEditor.Save", "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Page", - "Aspose.Pdf.Page.Annotations" + "Page.Annotations" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "flatten-pdf-annotations.cs", - "title": "Flatten PDF Annotations", - "description": "Loads a PDF, flattens all annotations into non‑editable visual elements, and saves the resulting document.", + "title": "Flatten PDF Annotations to Non‑Editable Elements", + "description": "Shows how to use Aspose.Pdf.Facades.PdfAnnotationEditor to flatten all annotations in a PDF, converting them to static visual content, and then save the result.", "tags": [ "flatten", "annotations", @@ -9821,104 +11693,132 @@ "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", "Aspose.Pdf.Facades.PdfAnnotationEditor.FlatteningAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Close" ], "difficulty": "beginner" }, { "filename": "flatten-pdf-annotations__v2.cs", "title": "Flatten PDF Annotations to Static Graphics", - "description": "Shows how to convert interactive PDF annotations into static graphics while preserving their visual appearance using Aspose.Pdf.Facades.PdfAnnotationEditor.", + "description": "Demonstrates how to flatten all interactive annotations in a PDF, converting them to static graphics while preserving their visual appearance.", "tags": [ - "pdf", - "annotations", "flatten", + "annotations", + "pdf", "Aspose.Pdf", - "facade" + "static-graphics" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.FlatteningAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" + "PdfAnnotationEditor.BindPdf", + "PdfAnnotationEditor.FlatteningAnnotations", + "PdfAnnotationEditor.Save" ], "difficulty": "beginner" }, { "filename": "flatten-pdf-save-custom-output.cs", - "title": "Flatten PDF and Save to Custom Output Directory", - "description": "Demonstrates how to flatten a PDF (removing form fields) and save the resulting file to a user‑specified output folder using Aspose.Pdf.", - "tags": [ - "pdf", - "flatten", - "output-directory", - "aspose", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Flatten", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner" + "title": "Flatten Pdf Save Custom Output", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "flatten-pdf-tag-flatten-date.cs", - "title": "Flatten PDF and Tag with Flatten Date Metadata", - "description": "Shows how to flatten a PDF (remove interactive form fields) and add a custom metadata entry that records the flattening date using Aspose.Pdf.", + "title": "Flatten Pdf Tag Flatten Date", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "flatten-pdf-tag-flattened-date.cs", + "title": "Flatten PDF and Tag with Flattened Date Metadata", + "description": "The example loads a PDF, flattens all form fields and annotations, saves it, and then adds a custom metadata entry \"FlattenedDate\" containing the current UTC timestamp using the Aspose.Pdf Facades API.", "tags": [ + "pdf", "flatten", "metadata", - "pdf", "aspose", - "custom-tag" + "facades" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Document.Flatten", + "Aspose.Pdf.Document.Save", "Aspose.Pdf.Facades.PdfFileInfo", + "Aspose.Pdf.Facades.PdfFileInfo.BindPdf", "Aspose.Pdf.Facades.PdfFileInfo.SetMetaInfo", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" ], "difficulty": "intermediate" }, { - "filename": "fluent-pdf-annotation-delete-flatten.cs", - "title": "Fluent Workflow for Deleting and Flattening PDF Annotations", - "description": "Shows a fluent wrapper around Aspose.Pdf.Facades.PdfAnnotationEditor that binds a PDF, deletes all annotations, flattens remaining ones, and saves the file in a single method chain. Also creates a sample PDF with a text annotation for demonstration.", + "filename": "flatten-pdfs-save-to-custom-output-directory.cs", + "title": "Flatten PDFs and Save to Custom Output Directory", + "description": "Demonstrates how to flatten PDF form fields using Aspose.Pdf and save the resulting PDFs to a user‑specified output folder, preserving original file names.", "tags": [ - "fluent", - "annotations", - "delete", + "pdf", "flatten", - "pdf" + "output-directory", + "aspose", + "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Document.Flatten()", + "Aspose.Pdf.Document.Save(string)" ], - "difficulty": "intermediate" + "difficulty": "beginner" + }, + { + "filename": "fluent-pdf-annotation-delete-flatten.cs", + "title": "Fluent Pdf Annotation Delete Flatten", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "generate-annotation-summary-report.cs", "title": "Generate Annotation Summary Report for PDFs", - "description": "Shows how to enumerate all annotations in one or more PDF files, count each annotation type, and write a summary report. It also demonstrates using the PdfAnnotationEditor facade to load and optionally save PDFs.", + "description": "The utility scans all PDF files in a folder, extracts annotations using Aspose.Pdf, counts each annotation type, and writes a summary report to a text file.", "tags": [ "annotations", - "summary", "pdf", "report", + "aspose", + "csharp" + ], + "apis_used": [ + "PdfAnnotationEditor", + "PdfAnnotationEditor.BindPdf", + "PdfAnnotationEditor.ExtractAnnotations", + "Annotation", + "AnnotationType" + ], + "difficulty": "intermediate" + }, + { + "filename": "get-annotation-counts-from-pdf.cs", + "title": "Get Annotation Counts from PDF", + "description": "Demonstrates how to extract all annotations from a PDF using Aspose.Pdf's PdfAnnotationEditor and count the occurrences of each annotation type.", + "tags": [ + "annotations", + "pdf", + "count", + "Aspose.Pdf", "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", "Aspose.Pdf.Document", - "Aspose.Pdf.Page", + "Aspose.Pdf.Facades.PdfAnnotationEditor", + "PdfAnnotationEditor.BindPdf", + "PdfAnnotationEditor.ExtractAnnotations", + "PdfAnnotationEditor.Save", "Aspose.Pdf.Annotations.Annotation" ], "difficulty": "intermediate" @@ -9926,28 +11826,46 @@ { "filename": "get-annotation-names-by-author.cs", "title": "Get Annotation Names by Author from PDF", - "description": "Shows how to use Aspose.Pdf to iterate through PDF pages and annotations, filtering by the annotation's author (Subject) and returning their names.", + "description": "Demonstrates how to extract all annotations from a PDF and return the names of those markup annotations whose author (Subject) matches a specified string.", "tags": [ "annotations", "author", "pdf", - "Aspose.Pdf", - "csharp" + "filter", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", + "Aspose.Pdf.Facades.PdfAnnotationEditor.ExtractAnnotations", "Aspose.Pdf.Annotations.Annotation", "Aspose.Pdf.Annotations.MarkupAnnotation" ], "difficulty": "intermediate" }, + { + "filename": "import-annotations-from-xfdf-stream.cs", + "title": "Import Annotations from XFDF Stream into PDF", + "description": "Shows how to load a PDF and an XFDF annotation file from streams, import the annotations using PdfAnnotationEditor, and save the updated PDF without creating temporary files.", + "tags": [ + "xfdf", + "annotations", + "pdf", + "stream", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfAnnotationEditor", + "PdfAnnotationEditor.BindPdf", + "PdfAnnotationEditor.ImportAnnotationsFromXfdf", + "PdfAnnotationEditor.Save" + ], + "difficulty": "beginner" + }, { "filename": "import-annotations-without-overwrite.cs", "title": "Import Annotations Without Overwriting Existing Ones", - "description": "Shows how to import annotations from one or more source PDFs into a target PDF while preserving any existing annotations by disabling the overwrite option.", + "description": "Demonstrates how to import annotations from one or more source PDFs into a target PDF while preserving any annotations already present, using the PdfAnnotationEditor facade.", "tags": [ "annotations", "import", @@ -9959,23 +11877,23 @@ "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", "Aspose.Pdf.Facades.PdfAnnotationEditor.ImportAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", - "Aspose.Pdf.Annotations.AnnotationType" + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "import-xfdf-annotations-into-multiple-pdfs.cs", "title": "Import XFDF Annotations into Multiple PDFs", - "description": "Shows how to load a single XFDF file with reviewer comments and apply those annotations to several PDF documents, saving each annotated PDF with a new name.", + "description": "Demonstrates how to import a single XFDF file with reviewer comments and apply those annotations to several PDF documents, saving the annotated versions.", "tags": [ "xfdf", "annotations", "pdf", "batch", - "aspose" + "Aspose.Pdf" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", "Aspose.Pdf.Facades.PdfAnnotationEditor.ImportAnnotationsFromXfdf", @@ -9995,7 +11913,7 @@ "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfAnnotationEditor", + "PdfAnnotationEditor", "PdfAnnotationEditor.BindPdf", "PdfAnnotationEditor.ImportAnnotationsFromXfdf", "PdfAnnotationEditor.Save" @@ -10004,47 +11922,39 @@ }, { "filename": "import-xfdf-annotations-into-pdf__v2.cs", - "title": "Import XFDF Annotations into PDF from Streams", - "description": "Shows how to bind a PDF from a FileStream, import annotations from an XFDF stream, and save the updated PDF without creating temporary files using Aspose.Pdf.", - "tags": [ - "xfdf", - "annotations", - "pdf", - "stream", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfAnnotationEditor", - "PdfAnnotationEditor.BindPdf", - "PdfAnnotationEditor.ImportAnnotationsFromXfdf", - "PdfAnnotationEditor.Save" - ], - "difficulty": "beginner" + "title": "Import Xfdf Annotations Into Pdf__V2", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "import-xfdf-annotations-to-specific-pages.cs", "title": "Import XFDF Annotations to Specific PDF Pages", - "description": "Shows how to import annotations from an XFDF file into a PDF and retain them only on a defined page range by using PdfAnnotationEditor and removing unwanted annotations.", + "description": "Demonstrates how to import annotations from an XFDF file into a PDF and retain them only on a defined page range.", "tags": [ "xfdf", "annotations", "pdf", - "page-range", - "aspose-pdf" + "pages", + "import" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", "Aspose.Pdf.Facades.PdfAnnotationEditor.ImportAnnotationsFromXfdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ModifyAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", + "Aspose.Pdf.Page", + "Aspose.Pdf.Page.Annotations", + "Aspose.Pdf.Page.Annotations.Delete" ], "difficulty": "intermediate" }, { "filename": "import-xfdf-into-pdf-cleanup.cs", - "title": "Import XFDF into PDF and Clean Up Temporary File", - "description": "Demonstrates how to import XFDF data into a PDF using the Aspose.Pdf Form facade and then delete the temporary XFDF file after a successful import.", + "title": "Import XFDF into PDF and Delete Temporary File", + "description": "Demonstrates how to import XFDF data into a PDF using the Form facade and then remove the temporary XFDF file after a successful import.", "tags": [ "xfdf", "import", @@ -10061,100 +11971,186 @@ }, { "filename": "list-annotation-names-pdf-annotation-editor.cs", - "title": "List Annotation Names in a PDF using PdfAnnotationEditor", - "description": "Shows how to add a named text annotation to a PDF, then load the file with PdfAnnotationEditor and enumerate all annotation names, printing them to the console for debugging.", + "title": "List Annotation Names Pdf Annotation Editor", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "list-pdf-annotation-names.cs", + "title": "List PDF Annotation Names", + "description": "Shows how to bind a PDF with PdfAnnotationEditor, iterate through each page and its annotations, and print the Name of each annotation to the console for debugging.", "tags": [ - "annotations", "pdf", - "debugging", + "annotations", "aspose-pdf", - "annotation-editor" + "enumeration", + "debug" ], "apis_used": [ + "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.TextAnnotation", - "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Document", "Aspose.Pdf.AnnotationCollection", + "Aspose.Pdf.Annotations.Annotation", "Aspose.Pdf.Annotations.Annotation.Name" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "list-pdf-annotations-to-csv.cs", "title": "List PDF Annotations with Page Numbers to CSV", - "description": "Shows how to extract annotation names and their corresponding page numbers from a PDF using Aspose.Pdf and write the results to a CSV file.", + "description": "Shows how to extract all annotations from a PDF, obtain each annotation's name and page number, and export the data to a CSV file using Aspose.Pdf.", "tags": [ "annotations", "csv", - "aspose-pdf", "extraction", - "pages" + "pdf", + "aspose" ], "apis_used": [ "PdfAnnotationEditor", "PdfAnnotationEditor.BindPdf", - "PdfAnnotationEditor.Close", - "Document", - "Page", + "PdfAnnotationEditor.ExtractAnnotations", + "PdfAnnotationEditor.Document", "Annotation", - "Annotation.Name" + "Annotation.Name", + "Annotation.PageIndex" + ], + "difficulty": "intermediate" + }, + { + "filename": "log-annotation-deletions-to-csv.cs", + "title": "Log Annotation Deletions to CSV and Remove from PDF", + "description": "The example extracts all annotations from a PDF, records each annotation's name, type, and page number to a CSV log file, then deletes the annotations and saves the modified document.", + "tags": [ + "annotations", + "deletion", + "logging", + "csv", + "pdf" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.AnnotationCollection", + "Aspose.Pdf.Annotations.Annotation", + "PdfAnnotationEditor.BindPdf", + "PdfAnnotationEditor.DeleteAnnotation", + "PdfAnnotationEditor.Save" ], "difficulty": "intermediate" }, { "filename": "log-annotation-modified-timestamp.cs", - "title": "Log and Update Annotation Modified Timestamps", - "description": "Shows how to assign a Modified timestamp to all annotations in a PDF using PdfAnnotationEditor and then log each annotation's name and its timestamp.", + "title": "Log Annotation Modified Timestamp", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "log-annotation-workflow.cs", + "title": "Log Annotation Workflow", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "log-file-sizes-after-flattening-pdf-annotations.cs", + "title": "Log File Sizes After Flattening PDF Annotations", + "description": "Demonstrates how to flatten all annotations in a PDF using Aspose.Pdf.Facades and log the original and resulting file sizes for audit purposes.", "tags": [ + "pdf", "annotations", - "modified", - "timestamp", + "flattening", + "audit", + "filesize" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfAnnotationEditor", + "PdfAnnotationEditor.BindPdf", + "PdfAnnotationEditor.FlatteningAnnotations", + "PdfAnnotationEditor.Save" + ], + "difficulty": "beginner" + }, + { + "filename": "log-pdf-annotation-operations-duration.cs", + "title": "Log PDF Annotation Operation Durations", + "description": "Demonstrates a wrapper around Aspose.Pdf's PdfAnnotationEditor that measures and logs the execution time of each annotation operation for performance monitoring.", + "tags": [ + "pdf", + "annotations", + "performance", "logging", "aspose" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ModifyAnnotations", - "Aspose.Pdf.Page" + "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotations", + "Aspose.Pdf.Facades.PdfAnnotationEditor.ExportAnnotationsToXfdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.FlatteningAnnotations", + "Aspose.Pdf.Document" ], "difficulty": "intermediate" }, { - "filename": "log-annotation-workflow.cs", - "title": "Verbose Annotation Workflow Logging", - "description": "Shows how to iterate through PDF pages, inspect each annotation, log detailed diagnostic information, and save the document using Aspose.Pdf.", + "filename": "log-update-annotation-modification-timestamps.cs", + "title": "Log and Update Annotation Modification Timestamps", + "description": "Demonstrates how to read the Modified timestamp of each PDF annotation, log it, and set a new timestamp using Aspose.Pdf's annotation editor.", "tags": [ "annotations", + "timestamp", "logging", - "diagnostic", + "Aspose.Pdf", + "PdfAnnotationEditor" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.Annotation.Modified" + ], + "difficulty": "intermediate" + }, + { + "filename": "manage-pdf-annotations-verbose.cs", + "title": "Flatten, Export, Import and Delete PDF Annotations with Verbose Logging", + "description": "The example loads a PDF, uses PdfAnnotationEditor to flatten all annotations, exports and re‑imports them via XFDF, deletes specific annotation types, and optionally logs each step with a --verbose flag.", + "tags": [ + "annotations", "pdf", - "aspose-pdf" + "xfdf", + "flatten", + "verbose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.AnnotationCollection", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.LinkAnnotation", - "Aspose.Pdf.Annotations.TextAnnotation" + "Aspose.Pdf.Document.ExportAnnotationsToXfdf", + "Aspose.Pdf.Document.ImportAnnotationsFromXfdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.FlatteningAnnotations", + "Aspose.Pdf.Annotations.AnnotationType" ], "difficulty": "intermediate" }, { - "filename": "log-file-sizes-after-flattening-pdf-annotations.cs", - "title": "Log File Sizes After Flattening PDF Annotations", - "description": "Demonstrates how to flatten all annotations in a PDF using Aspose.Pdf.Facades and log the original and resulting file sizes for audit purposes.", + "filename": "measure-annotation-flattening-performance.cs", + "title": "Measure Annotation Flattening Performance", + "description": "The example loads a PDF, flattens all its annotations using PdfAnnotationEditor, saves the result, and measures the elapsed time to evaluate performance impact.", "tags": [ "pdf", "annotations", - "flattening", - "audit", - "facades" + "flatten", + "performance", + "stopwatch" ], "apis_used": [ "Aspose.Pdf.Facades.PdfAnnotationEditor", @@ -10165,50 +12161,64 @@ "difficulty": "beginner" }, { - "filename": "merge-annotation-layers.cs", + "filename": "merge-annotation-layers-from-multiple-pdfs.cs", "title": "Merge Annotation Layers from Multiple PDFs", - "description": "Shows how to import annotation layers from several source PDFs into a target PDF and save the combined result using Aspose.Pdf's PdfAnnotationEditor.", + "description": "Demonstrates how to import annotation layers from several source PDFs into a target PDF and save the combined document using Aspose.Pdf.Facades.", "tags": [ - "pdf", "annotations", + "pdf", "merge", - "facade", - "aspose" + "aspose", + "facades" ], "apis_used": [ "Aspose.Pdf.Facades.PdfAnnotationEditor", "PdfAnnotationEditor.BindPdf", "PdfAnnotationEditor.ImportAnnotations", - "PdfAnnotationEditor.Save", - "PdfAnnotationEditor.Close" + "PdfAnnotationEditor.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "merge-multiple-xfdf-into-pdf.cs", - "title": "Merge Multiple XFDF Files and Import into PDF", - "description": "Demonstrates how to combine several XFDF files into a single XFDF document and import the merged form fields and annotations into a PDF using Aspose.Pdf facades.", + "filename": "merge-annotation-layers.cs", + "title": "Merge Annotation Layers", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "merge-multiple-xfdf-files.cs", + "title": "Merge Multiple XFDF Files into a Single XFDF", + "description": "Demonstrates how to import annotations from several XFDF files into a temporary PDF using PdfAnnotationEditor and then export the combined annotations as one XFDF file.", "tags": [ "xfdf", - "merge", "annotations", - "form", - "pdf" + "merge", + "pdf", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.Form", "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.Form.ImportXfdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", "Aspose.Pdf.Facades.PdfAnnotationEditor.ImportAnnotationsFromXfdf", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfAnnotationEditor.ExportAnnotationsToXfdf" ], "difficulty": "intermediate" }, + { + "filename": "merge-multiple-xfdf-into-pdf.cs", + "title": "Merge Multiple Xfdf Into Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "modify-annotation-author-on-pdf-page.cs", - "title": "Modify Annotation Author on Specific PDF Page", - "description": "Shows how to replace the author of annotations on a given PDF page using Aspose.Pdf.Facades.PdfAnnotationEditor.", + "title": "Modify Annotation Author on a PDF Page", + "description": "Demonstrates how to change the author (Title) of text annotations on a specific page of a PDF using Aspose.Pdf's PdfAnnotationEditor.", "tags": [ "annotations", "author", @@ -10217,7 +12227,9 @@ "Aspose.Pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Document", + "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Drawing.Rectangle", "Aspose.Pdf.Facades.PdfAnnotationEditor.ModifyAnnotationsAuthor", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" @@ -10226,234 +12238,217 @@ }, { "filename": "modify-annotation-subject-unit-test.cs", - "title": "Unit Test for Updating PDF Annotation Subject", - "description": "Demonstrates creating a PDF with a TextAnnotation, using PdfAnnotationEditor.ModifyAnnotations to change its Subject property, and verifying the update with an NUnit test.", - "tags": [ - "pdf", - "annotation", - "unit-test", - "aspose-pdf", - "nunit" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ModifyAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" - ], - "difficulty": "intermediate" + "title": "Modify Annotation Subject Unit Test", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "pdf-annotation-flattening-service.cs", - "title": "Folder Watcher to Flatten PDF Annotations", - "description": "Demonstrates a background service that watches a directory for new PDF files and uses Aspose.Pdf to flatten all annotations in each document automatically.", + "filename": "monitor-folder-flatten-pdf-annotations.cs", + "title": "Monitor Folder and Flatten PDF Annotations", + "description": "Shows a background service that watches a directory for new PDF files and uses Aspose.Pdf to flatten all annotations, saving the flattened PDFs to an output folder.", "tags": [ "pdf", "annotations", - "folder-watcher", "flatten", - "aspose" + "filesystemwatcher", + "background-service" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", "Aspose.Pdf.Facades.PdfAnnotationEditor.FlatteningAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Close" + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" ], "difficulty": "intermediate" }, + { + "filename": "pdf-annotation-flattening-service.cs", + "title": "Pdf Annotation Flattening Service", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "pdf-annotation-helper.cs", - "title": "PDF Annotation Helper for Deleting, Flattening, and Saving", - "description": "Demonstrates a reusable C# helper that binds to a PDF, deletes or flattens annotations, and saves the modified document using Aspose.Pdf.Facades.", + "title": "PDF Annotation Helper for Binding, Deleting, Flattening, and Saving", + "description": "Shows a reusable helper class that wraps Aspose.Pdf.Facades.PdfAnnotationEditor to bind a PDF, delete annotations (all or by type), flatten annotations (all or by page range), and save the updated document.", "tags": [ "pdf", "annotations", "aspose", "facade", - "csharp" + "helper" ], "apis_used": [ "Aspose.Pdf.Facades.PdfAnnotationEditor", - "PdfAnnotationEditor.BindPdf", - "PdfAnnotationEditor.DeleteAnnotations", - "PdfAnnotationEditor.FlatteningAnnotations", - "PdfAnnotationEditor.Save", - "PdfAnnotationEditor.Close", + "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotations", + "Aspose.Pdf.Facades.PdfAnnotationEditor.FlatteningAnnotations", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", "Aspose.Pdf.Annotations.AnnotationType" ], "difficulty": "intermediate" }, { "filename": "pdf-annotation-helper__v2.cs", - "title": "PDF Annotation Helper for Adding and Deleting Annotations", - "description": "Demonstrates a wrapper class that abstracts Aspose.Pdf.Facades to add text (sticky‑note) annotations, delete specific or all annotations, and save the modified PDF.", - "tags": [ - "pdf", - "annotation", - "aspose", - "facade", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.CreateText", - "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotation", - "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" - ], - "difficulty": "intermediate" + "title": "Pdf Annotation Helper__V2", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "pdf-annotation-utility-delete-flatten-export.cs", - "title": "PDF Annotation Utility (Delete, Flatten, Export)", - "description": "Demonstrates a command‑line tool that uses Aspose.Pdf.Facades to delete specific pages, flatten all annotations, or export annotations to an XFDF file.", + "title": "Command‑Line PDF Annotation Utility (Delete, Flatten, Export)", + "description": "Demonstrates a console application that uses Aspose.Pdf.Facades to delete specific pages, flatten all annotations, or export annotations to an XFDF file based on command‑line arguments.", "tags": [ "pdf", "annotations", - "delete-pages", + "delete", "flatten", - "xfdf" + "export" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Delete", - "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.FlatteningAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ExportAnnotationsToXfdf" + "PdfFileEditor", + "PdfFileEditor.Delete", + "PdfAnnotationEditor", + "PdfAnnotationEditor.BindPdf", + "PdfAnnotationEditor.FlatteningAnnotations", + "PdfAnnotationEditor.Save", + "PdfAnnotationEditor.ExportAnnotationsToXfdf" ], "difficulty": "intermediate" }, { "filename": "pdfannotationeditor-health-check.cs", "title": "Health Check for PdfAnnotationEditor Binding", - "description": "Demonstrates a simple health‑check that verifies the PdfAnnotationEditor facade can bind to a PDF file without throwing exceptions.", + "description": "Creates a minimal PDF if missing and verifies that PdfAnnotationEditor can bind to the document without errors, serving as a simple health check.", "tags": [ - "health-check", "pdf", + "health-check", "annotation", "binding", "aspose" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Pages.Add", + "Aspose.Pdf.Document.Save", "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf" + "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Document" ], "difficulty": "beginner" }, { "filename": "remove-all-annotations-from-pdf.cs", - "title": "Remove All Annotations from a PDF", - "description": "Demonstrates how to bind an existing PDF with PdfAnnotationEditor, delete every annotation, and save the cleaned document to a new file.", + "title": "Remove All Annotations from a PDF using PdfAnnotationEditor", + "description": "Demonstrates how to bind a PDF file to Aspose.Pdf.Facades.PdfAnnotationEditor, delete every annotation in the document, and save the cleaned PDF to a new file.", "tags": [ "pdf", "annotations", "delete", - "aspose.pdf", + "aspose-pdf", "csharp" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" + "PdfAnnotationEditor", + "PdfAnnotationEditor.BindPdf", + "PdfAnnotationEditor.DeleteAnnotations", + "PdfAnnotationEditor.Save" ], "difficulty": "beginner" }, { "filename": "remove-all-annotations-from-pdf__v2.cs", "title": "Remove All Annotations from PDF", - "description": "Shows how to load a PDF document, delete every annotation, and save the cleaned file using Aspose.Pdf.Facades.", + "description": "Shows how to load a PDF, delete every annotation using Aspose.Pdf.Facades.PdfAnnotationEditor, and save the cleaned file.", "tags": [ "pdf", "annotations", "remove", "aspose", - "facade" + "console" ], "apis_used": [ "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Close" ], "difficulty": "beginner" }, { "filename": "remove-all-annotations-from-pdfs-in-parallel.cs", - "title": "Remove All Annotations from PDFs in Parallel", - "description": "Demonstrates how to delete every annotation from a collection of PDF files using Aspose.Pdf's PdfAnnotationEditor while processing the files concurrently with Parallel.ForEach to speed up execution.", + "title": "Remove All Annotations From Pdfs In Parallel", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "remove-all-annotations-from-pdfs.cs", + "title": "Remove All Annotations from PDFs in a Folder", + "description": "Shows how to loop through PDF files in a directory, bind each with PdfAnnotationEditor, delete every annotation, and overwrite the original file.", "tags": [ "pdf", "annotations", - "parallel", - "aspose", - "csharp" + "batch", + "Aspose.Pdf", + "delete" ], "apis_used": [ "PdfAnnotationEditor", "PdfAnnotationEditor.BindPdf", "PdfAnnotationEditor.DeleteAnnotations", - "PdfAnnotationEditor.Save", - "PdfAnnotationEditor.Close" + "PdfAnnotationEditor.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "remove-link-annotations-from-specific-pdf-pages.cs", - "title": "Remove Link Annotations from Specific PDF Pages", - "description": "Shows how to delete all link annotations on pages 3 through 7 of a PDF using Aspose.Pdf's PdfAnnotationEditor.", + "filename": "remove-link-annotations-from-pdf.cs", + "title": "Remove Link Annotations from PDF", + "description": "Shows how to delete link annotations in a PDF using the PdfAnnotationEditor facade from Aspose.Pdf.", "tags": [ - "annotations", "pdf", + "annotations", "delete", "link", "Aspose.Pdf" ], "apis_used": [ - "PdfAnnotationEditor", - "PdfAnnotationEditor.BindPdf", - "PdfAnnotationEditor.ExtractAnnotations", - "PdfAnnotationEditor.DeleteAnnotation", - "PdfAnnotationEditor.Save", - "Annotation" + "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotations", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" + }, + { + "filename": "remove-link-annotations-from-specific-pdf-pages.cs", + "title": "Remove Link Annotations From Specific Pdf Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "remove-old-annotations-from-pdf.cs", - "title": "Batch Remove Old Annotations from PDF", - "description": "Demonstrates how to load a PDF, iterate through its pages and annotations, and delete any annotation whose Modified date is older than a given number of days, then save the cleaned document.", - "tags": [ - "annotations", - "pdf", - "cleanup", - "batch", - "Aspose.Pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Page", - "Aspose.Pdf.AnnotationCollection", - "Aspose.Pdf.AnnotationCollection.Delete", - "Aspose.Pdf.Annotation.Modified" - ], - "difficulty": "intermediate" + "title": "Remove Old Annotations From Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "remove-pdf-annotations.cs", "title": "Remove All Annotations from a PDF Stream", - "description": "Shows how to load a PDF from a stream, delete every annotation using Aspose.Pdf.Facades, and return the cleaned PDF as a MemoryStream.", + "description": "Shows how to bind a PDF stream to Aspose.Pdf.Facades.PdfAnnotationEditor, delete every annotation, and return the cleaned PDF as a MemoryStream.", "tags": [ "pdf", "annotations", @@ -10467,18 +12462,18 @@ "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotations", "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "rename-pdf-annotations-with-standard-prefix.cs", - "title": "Rename PDF Annotations with Standard Prefix", - "description": "Shows how to batch rename annotation names in a PDF by adding a standardized prefix using the Aspose.Pdf PdfAnnotationEditor facade.", + "filename": "rename-pdf-annotation-names.cs", + "title": "Rename PDF Annotation Names with Standard Prefix", + "description": "Shows how to iterate through all annotations in a PDF using Aspose.Pdf, prepend a standardized prefix to each annotation's name, and save the modified document.", "tags": [ "annotations", "rename", - "batch", + "prefix", "pdf", - "facade" + "batch" ], "apis_used": [ "Aspose.Pdf.Facades.PdfAnnotationEditor", @@ -10486,10 +12481,9 @@ "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.Annotation.Name" + "Aspose.Pdf.Annotations.Annotation" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "report-pdf-annotations-by-author.cs", @@ -10498,78 +12492,101 @@ "tags": [ "annotations", "author", + "grouping", "report", - "Aspose.Pdf", - "grouping" + "pdf" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.ExtractAnnotations", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", "Aspose.Pdf.Annotations.Annotation", "Aspose.Pdf.Annotations.MarkupAnnotation", - "Aspose.Pdf.Page" + "Aspose.Pdf.Annotations.AnnotationType", + "Aspose.Pdf.Document" ], "difficulty": "intermediate" }, { "filename": "retrieve-annotation-count-per-pdf-page.cs", - "title": "Retrieve Annotation Count per PDF Page", - "description": "Demonstrates using Aspose.Pdf's PdfAnnotationEditor to iterate through each page of a PDF, extract all annotations, and return a dictionary mapping page numbers to their annotation counts.", + "title": "Retrieve Annotation Count Per PDF Page", + "description": "Demonstrates opening a PDF with Aspose.Pdf, iterating through its pages, and counting the annotations on each page to produce a page‑wise report.", "tags": [ "annotations", + "reporting", "pdf", - "count", - "facades", - "Aspose.Pdf" + "Aspose.Pdf", + "page-count" ], "apis_used": [ "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ExtractAnnotations", "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.AnnotationType" + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "retry-annotation-modification-exponential-backoff.cs", "title": "Retry Annotation Modification with Exponential Backoff", - "description": "Demonstrates how to modify PDF annotations using Aspose.Pdf while applying a retry policy with exponential backoff to handle transient I/O errors.", + "description": "Demonstrates how to modify PDF annotations using Aspose.Pdf with a retry policy that applies exponential backoff for transient file access errors.", "tags": [ - "pdf", "annotations", "retry", "exponential-backoff", - "Aspose.Pdf" + "pdf", + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.DeleteAnnotations", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.CreateFreeText", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Facades.PdfAnnotationEditor.ModifyAnnotations", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" ], "difficulty": "intermediate" }, { - "filename": "set-annotation-open-flag.cs", - "title": "Set Annotation Open Flag for All PDF Annotations", - "description": "Shows how to iterate through every page of a PDF and set the Open property of text and popup annotations to true using Aspose.Pdf.", + "filename": "retry-delete-pdf-annotations.cs", + "title": "Retry Deleting PDF Annotations with PdfAnnotationEditor", + "description": "Demonstrates binding a PDF, deleting all annotations, and retrying the operation with a rebinding if the first attempt fails.", "tags": [ - "annotations", - "open-flag", "pdf", - "iteration", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfAnnotationEditor", + "annotations", + "retry", + "Aspose.Pdf", + "PdfAnnotationEditor" + ], + "apis_used": [ + "PdfAnnotationEditor", + "PdfAnnotationEditor.BindPdf", + "PdfAnnotationEditor.DeleteAnnotations", + "PdfAnnotationEditor.Save" + ], + "difficulty": "intermediate" + }, + { + "filename": "set-annotation-open-flag.cs", + "title": "Set Annotation Open Flag for All PDF Annotations", + "description": "Demonstrates how to iterate through all pages and annotations in a PDF and set the Open flag to true for text and popup annotations using Aspose.Pdf.", + "tags": [ + "annotations", + "open-flag", + "pdf", + "aspose", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", - "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.Annotations.TextAnnotation", "Aspose.Pdf.Annotations.PopupAnnotation" ], @@ -10577,47 +12594,86 @@ }, { "filename": "set-readonly-flag-on-pdf-annotation.cs", - "title": "Set Read‑Only Flag on PDF Annotation", - "description": "Demonstrates extracting a text annotation, setting its ReadOnly flag, and applying the change with PdfAnnotationEditor.ModifyAnnotations.", + "title": "Set Readonly Flag On Pdf Annotation", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "set-readonly-flag-on-pdf-text-annotation.cs", + "title": "Set Read‑Only Flag on PDF Text Annotation", + "description": "Demonstrates creating a TextAnnotation, applying the ReadOnly flag via the Flags property, and adding it to a PDF using PdfAnnotationEditor.ModifyAnnotations.", "tags": [ "annotation", "readonly", "pdf", - "facade", - "modify" + "aspose", + "text" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.TextAnnotation", "Aspose.Pdf.Annotations.AnnotationFlags", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ExtractAnnotations", "Aspose.Pdf.Facades.PdfAnnotationEditor.ModifyAnnotations", "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "test-export-annotations-unbound-pdfannotationeditor.cs", - "title": "Test ExportAnnotations on Unbound PdfAnnotationEditor", - "description": "Demonstrates how to verify that calling ExportAnnotationsToXfdf on a PdfAnnotationEditor that hasn't been bound to a PDF throws an exception.", + "filename": "skip-readonly-annotations-when-flattening-pdf.cs", + "title": "Skip Read‑Only Annotations When Flattening PDF", + "description": "Shows how to flatten PDF annotations in batch while optionally skipping those marked as read‑only using Aspose.Pdf.Facades.", + "tags": [ + "pdf", + "annotations", + "flatten", + "readonly", + "batch" + ], + "apis_used": [ + "PdfAnnotationEditor", + "PdfAnnotationEditor.BindPdf", + "PdfAnnotationEditor.Save", + "Document", + "Page", + "Annotation", + "AnnotationFlags", + "Annotation.Flatten" + ], + "difficulty": "intermediate" + }, + { + "filename": "test-export-annotations-unbound-editor.cs", + "title": "Test ExportAnnotations throws on unbound PdfAnnotationEditor", + "description": "Demonstrates how to verify that calling ExportAnnotationsToXfdf on a PdfAnnotationEditor that hasn't been bound to a PDF document throws an exception.", "tags": [ "pdf", "annotations", + "export", "exception", - "testing", - "Aspose.Pdf" + "testing" ], "apis_used": [ "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.ExportAnnotationsToXfdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Dispose" + "Aspose.Pdf.Facades.PdfAnnotationEditor.ExportAnnotationsToXfdf" ], "difficulty": "beginner" }, + { + "filename": "test-export-annotations-unbound-pdfannotationeditor.cs", + "title": "Test Export Annotations Unbound Pdfannotationeditor", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "update-annotation-modified-date.cs", "title": "Update Annotation Modified Date in PDF", - "description": "Shows how to set a TextAnnotation's Modified property to the current system time and apply the change to all pages using PdfAnnotationEditor.", + "description": "Shows how to set the Modified property of a PDF annotation to the current system time using PdfAnnotationEditor.ModifyAnnotations.", "tags": [ "annotation", "modified-date", @@ -10627,14 +12683,57 @@ ], "apis_used": [ "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", + "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Facades.PdfAnnotationEditor.ModifyAnnotations", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", + "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" + ], + "difficulty": "intermediate" + }, + { + "filename": "update-annotation-subject-color.cs", + "title": "Update Annotation Subject and Color", + "description": "Shows how to change the subject text and color of an existing PDF annotation by creating a new TextAnnotation and applying it with PdfAnnotationEditor.ModifyAnnotations.", + "tags": [ + "annotation", + "modify", + "subject", + "color", + "pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.ModifyAnnotations", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" + ], + "difficulty": "intermediate" + }, + { + "filename": "update-annotation-subject.cs", + "title": "Update Annotation Subject Using PdfAnnotationEditor", + "description": "Demonstrates how to create a PDF with a TextAnnotation, modify its Subject property using PdfAnnotationEditor.ModifyAnnotations, and verify the change with a unit test.", + "tags": [ + "annotations", + "pdf", + "modify", + "subject", + "unit-test" + ], + "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Facades.PdfAnnotationEditor.ModifyAnnotations", + "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", "Aspose.Pdf.Rectangle" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "validate-exported-xfdf-against-the-xfdf-schema-by-loading-the-file-into-an-xml-document-and-checking-errors.cs", @@ -10646,43 +12745,38 @@ }, { "filename": "validate-no-annotations-after-flattening.cs", - "title": "Validate No Annotations Remain After Flattening PDF", - "description": "Loads a PDF, flattens all annotations with PdfAnnotationEditor, scans each page to verify no annotation objects remain, and saves the flattened document.", - "tags": [ - "flatten", - "annotations", - "validation", - "pdf", - "aspose" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.FlatteningAnnotations", - "Aspose.Pdf.Page", - "Aspose.Pdf.Page.Annotations", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "intermediate" + "title": "Validate No Annotations After Flattening", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "validate-pdf-integrity-after-annotation-changes.cs", - "title": "Validate PDF Integrity After Annotation Changes", - "description": "Demonstrates using Aspose.Pdf's PdfAnnotationEditor facade to validate a PDF's structural integrity after annotation modifications, writing a validation log and handling corrupted object exceptions.", + "title": "Validate Pdf Integrity After Annotation Changes", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "validate-pdf-integrity-after-annotation.cs", + "title": "Validate PDF Integrity After Adding Text Annotation", + "description": "Demonstrates adding a text annotation to a PDF with Aspose.Pdf, saving the modified file, and then validating the document for corrupted objects while logging the results.", "tags": [ - "pdf-validation", - "annotations", + "pdf", + "annotation", + "validation", "integrity", - "aspose-pdf", - "error-handling" + "aspose" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfAnnotationEditor", - "PdfAnnotationEditor.BindPdf", - "PdfAnnotationEditor.Document", - "Document.Validate", - "PdfFormat.PDF_UA_1", - "ObjectReferenceCorruptedException" + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Document.Validate", + "Aspose.Pdf.PdfFormat" ], "difficulty": "intermediate" } @@ -10690,22 +12784,28 @@ }, { "name": "facades-bookmarks", - "file_count": 35, + "file_count": 48, "files": [ "add-colored-bookmarks-to-pdf.cs", "add-external-url-bookmarks-to-pdf.cs", + "add-image-bookmarks-to-pdf.cs", + "add-javascript-bookmark-to-pdf.cs", "add-subbookmarks-to-pdf-chapter.cs", + "add-toc-bookmark-to-pdfs-batch.cs", + "add-top-level-blue-bookmark-to-pdf.cs", "add-top-level-blue-bookmark.cs", "adjust-pdf-bookmarks-after-inserting-pages.cs", "batch-add-reviewed-bookmark-to-pdfs.cs", "batch-add-toc-bookmark-to-pdfs.cs", "batch-delete-bookmarks-from-encrypted-pdfs.cs", "collapse-specific-pdf-bookmarks.cs", + "convert-bookmark-titles-to-title-case.cs", "create-bookmark-to-named-destination.cs", "create-hierarchical-pdf-bookmarks.cs", "create-image-bookmarks-in-pdf.cs", "create-javascript-bookmark.cs", "delete-all-bookmarks-from-pdf.cs", + "delete-bookmark-from-pdf.cs", "delete-bookmarks-matching-regex.cs", "delete-pdf-bookmark-verify.cs", "export-pdf-bookmarks-to-csv.cs", @@ -10713,40 +12813,44 @@ "export-pdf-bookmarks-to-json.cs", "export-pdf-bookmarks-to-json__v2.cs", "export-pdf-bookmarks-to-text-outline.cs", + "export-pdf-bookmarks-to-text.cs", "export-pdf-bookmarks-to-xml.cs", + "extract-pdf-bookmarks-to-json.cs", "import-bookmarks-from-csv.cs", "import-bookmarks-from-database.cs", "import-bookmarks-from-json.cs", "import-ofd-bookmarks-into-pdf.cs", + "import-ofd-bookmarks-to-pdf.cs", "merge-bookmarks-into-pdf.cs", + "merge-pdf-bookmarks.cs", "modify-pdf-bookmarks-using-memorystream.cs", "remove-duplicate-bookmarks.cs", "rename-pdf-bookmarks-using-translation-dictionary.cs", + "set-bookmark-zoom-level-150-percent.cs", "set-bookmark-zoom-to-150-percent.cs", + "update-bookmark-destination-to-page-10.cs", "update-bookmark-destination-to-page.cs", "update-bookmark-titles-to-title-case.cs", + "update-pdf-bookmark-title.cs", "validate-pdf-bookmark-count.cs", "validate-pdf-bookmarks-against-toc.cs" ], "required_namespaces": [ "Aspose.Pdf.Facades", - "Aspose.Pdf", - "Aspose.Pdf.Annotations", - "Aspose.Pdf.Text" + "Aspose.Pdf" ], "key_apis": [ "PdfBookmarkEditor", - "OutlineItemCollection", "PdfContentEditor", - "FitExplicitDestination", + "ExcelSaveOptions", "OfdLoadOptions", - "TextFragmentAbsorber" + "OutlineItemCollection" ], "examples": [ { "filename": "add-colored-bookmarks-to-pdf.cs", "title": "Add Colored Bookmarks to PDF Sections", - "description": "Shows how to create PDF bookmarks with different colors (red for warnings, green for informational sections) using Aspose.Pdf.Facades.", + "description": "Shows how to create PDF bookmarks and set their title color (red for warnings, green for informational parts) using Aspose.Pdf.Facades.", "tags": [ "bookmarks", "color", @@ -10755,66 +12859,125 @@ "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.CreateBookmarksAction", - "Aspose.Pdf.Facades.PdfContentEditor.Save", - "Aspose.Pdf.Facades.PdfContentEditor.Close" + "Aspose.Pdf.Facades.PdfBookmarkEditor", + "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", + "Aspose.Pdf.Facades.PdfBookmarkEditor.CreateBookmarks", + "Aspose.Pdf.Facades.PdfBookmarkEditor.Save", + "Aspose.Pdf.Facades.Bookmark" ], "difficulty": "beginner" }, { "filename": "add-external-url-bookmarks-to-pdf.cs", "title": "Add External URL Bookmarks to PDF", - "description": "Shows how to create PDF bookmarks that open external web URLs using Aspose.Pdf's bookmark editor.", + "description": "Shows how to create PDF bookmarks that open external web addresses using Aspose.Pdf Facades.", "tags": [ "bookmarks", + "uri", "pdf", - "external-links", - "aspose", - "csharp" + "facades", + "external-links" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.CreateBookmarksAction", + "Aspose.Pdf.Facades.PdfContentEditor.Save" + ], + "difficulty": "beginner" + }, + { + "filename": "add-image-bookmarks-to-pdf.cs", + "title": "Add Image Bookmarks to PDF", + "description": "Scans a PDF for images, records each image's page number, and creates a bookmark that links directly to the page containing the image using Aspose.Pdf.", + "tags": [ + "pdf", + "bookmarks", + "images", + "aspose-pdf", + "facades" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.XImage", "Aspose.Pdf.Facades.PdfBookmarkEditor", - "Aspose.Pdf.Bookmark", - "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", - "Aspose.Pdf.Facades.PdfBookmarkEditor.CreateBookmarks", - "Aspose.Pdf.Facades.PdfBookmarkEditor.Save" + "Aspose.Pdf.Facades.PdfBookmarkEditor.CreateBookmarkOfPage" + ], + "difficulty": "intermediate" + }, + { + "filename": "add-javascript-bookmark-to-pdf.cs", + "title": "Add JavaScript Bookmark to PDF", + "description": "Shows how to create a PDF bookmark that runs JavaScript code when clicked using the Aspose.Pdf Facade API.", + "tags": [ + "bookmark", + "javascript", + "pdf", + "facade", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.CreateBookmarksAction", + "Aspose.Pdf.Facades.PdfContentEditor.Save" ], "difficulty": "beginner" }, { "filename": "add-subbookmarks-to-pdf-chapter.cs", - "title": "Add Sub-Bookmarks to a PDF Chapter", - "description": "Shows how to create a parent bookmark with child bookmarks (sub‑sections) in a PDF using Aspose.Pdf.Facades.", + "title": "Add Subbookmarks to a PDF Chapter", + "description": "Shows how to create a parent bookmark and attach child bookmarks to represent sections within a chapter of a PDF using Aspose.Pdf.Facades.", "tags": [ "bookmarks", "pdf", - "subsections", + "hierarchy", "Aspose.Pdf", - "facade" + "C#" ], "apis_used": [ "Aspose.Pdf.Facades.PdfBookmarkEditor", "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", "Aspose.Pdf.Facades.PdfBookmarkEditor.CreateBookmarks", "Aspose.Pdf.Facades.PdfBookmarkEditor.Save", + "Aspose.Pdf.Facades.PdfBookmarkEditor.Close", "Aspose.Pdf.Facades.Bookmark", "Aspose.Pdf.Facades.Bookmarks" ], "difficulty": "intermediate" }, { - "filename": "add-top-level-blue-bookmark.cs", + "filename": "add-toc-bookmark-to-pdfs-batch.cs", + "title": "Add Table of Contents Bookmark to PDFs in Batch", + "description": "Shows how to process all PDF files in a directory and add a top‑level \"Table of Contents\" bookmark to each document using Aspose.Pdf.Facades.", + "tags": [ + "pdf", + "bookmark", + "batch", + "aspose", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfBookmarkEditor", + "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", + "Aspose.Pdf.Facades.PdfBookmarkEditor.CreateBookmarkOfPage", + "Aspose.Pdf.Facades.PdfBookmarkEditor.Save", + "Aspose.Pdf.Facades.PdfBookmarkEditor.Dispose" + ], + "difficulty": "beginner" + }, + { + "filename": "add-top-level-blue-bookmark-to-pdf.cs", "title": "Add Top-Level Blue Bookmark to PDF", - "description": "Demonstrates how to create a top-level bookmark that points to the first page of a PDF and set its title color to blue using Aspose.Pdf.Facades.", + "description": "Demonstrates how to create a top‑level bookmark that points to the first page of a PDF and set its title color to blue using Aspose.Pdf.Facades.", "tags": [ "bookmark", "pdf", - "aspose", + "facade", "color", - "facade" + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfBookmarkEditor", @@ -10825,206 +12988,221 @@ ], "difficulty": "beginner" }, + { + "filename": "add-top-level-blue-bookmark.cs", + "title": "Add Top Level Blue Bookmark", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "adjust-pdf-bookmarks-after-inserting-pages.cs", "title": "Adjust PDF Bookmarks After Inserting Pages", - "description": "Shows how to insert pages at the start of a PDF and shift existing bookmark destinations so they remain accurate using Aspose.Pdf.", + "description": "Shows how to extract existing bookmarks, insert blank pages at the beginning of a PDF, and recreate the bookmarks with corrected page numbers using Aspose.Pdf.Facades.", "tags": [ "bookmarks", - "page-insertion", + "page insertion", "pdf", - "aspose-pdf", - "document-editing" + "Aspose.Pdf", + "facades" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages.Insert", - "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", + "Aspose.Pdf.Facades.PdfBookmarkEditor", "Aspose.Pdf.Facades.PdfBookmarkEditor.ExtractBookmarks", + "Aspose.Pdf.Facades.PdfBookmarkEditor.CreateBookmarkOfPage", "Aspose.Pdf.Facades.PdfBookmarkEditor.DeleteBookmarks", - "Aspose.Pdf.Facades.PdfBookmarkEditor.CreateBookmarkOfPage" + "Aspose.Pdf.Facades.PdfBookmarkEditor.Save", + "Aspose.Pdf.PageCollection.Insert" ], "difficulty": "intermediate" }, { "filename": "batch-add-reviewed-bookmark-to-pdfs.cs", "title": "Batch Add \"Reviewed\" Bookmark to PDFs", - "description": "Shows how to loop through PDF files in a directory and append a \"Reviewed\" bookmark on the last page of each document using Aspose.Pdf's PdfBookmarkEditor.", + "description": "Shows how to loop through PDF files in a directory, use PdfBookmarkEditor to create a \"Reviewed\" bookmark on the last page of each document, and save the updated PDFs.", "tags": [ "bookmarks", - "batch-processing", + "batch", "pdf", - "aspose", - "reviewed" + "aspose-pdf", + "facade" ], "apis_used": [ "PdfBookmarkEditor", "PdfBookmarkEditor.BindPdf", "PdfBookmarkEditor.CreateBookmarkOfPage", "PdfBookmarkEditor.Save", + "PdfBookmarkEditor.Close", "PdfBookmarkEditor.Document.Pages.Count" ], "difficulty": "intermediate" }, { "filename": "batch-add-toc-bookmark-to-pdfs.cs", - "title": "Batch Add Table of Contents Bookmark to PDFs", - "description": "Shows how to loop through a directory of PDF files and add a standard \"Table of Contents\" bookmark to each document using Aspose.Pdf.Facades.", - "tags": [ - "pdf", - "bookmark", - "batch", - "toc", - "aspose" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfBookmarkEditor", - "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", - "Aspose.Pdf.Facades.PdfBookmarkEditor.CreateBookmarkOfPage", - "Aspose.Pdf.Facades.PdfBookmarkEditor.Save", - "Aspose.Pdf.Facades.PdfBookmarkEditor.Close" - ], - "difficulty": "beginner" + "title": "Batch Add Toc Bookmark To Pdfs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "batch-delete-bookmarks-from-encrypted-pdfs.cs", "title": "Batch Delete Bookmarks from Encrypted PDFs", - "description": "Shows how to open password‑protected PDF files, remove all bookmarks using PdfBookmarkEditor, and save the cleaned PDFs to a specified output folder.", + "description": "Shows how to open password‑protected PDF files, remove all bookmarks using PdfBookmarkEditor, and save the cleaned documents.", "tags": [ "bookmarks", "encrypted-pdf", - "batch", + "batch-processing", "Aspose.Pdf", "pdf-editing" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfBookmarkEditor", - "PdfBookmarkEditor.DeleteBookmarks", - "PdfBookmarkEditor.Save" + "Aspose.Pdf.Facades.PdfBookmarkEditor.DeleteBookmarks", + "Aspose.Pdf.Facades.PdfBookmarkEditor.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "collapse-specific-pdf-bookmarks.cs", "title": "Collapse Specific PDF Bookmarks Using Aspose.Pdf", - "description": "Shows how to bind a PDF, extract its bookmarks, recursively set the Open property to false for bookmarks that match a predicate (e.g., titles starting with \"Chapter\"), and save the updated document.", + "description": "Demonstrates how to set selected PDF bookmarks to a collapsed (closed) state by extracting, modifying, and re‑creating the bookmark hierarchy with Aspose.Pdf.", "tags": [ "bookmarks", "collapse", - "pdf", - "aspose", - "outline" + "outline", + "Aspose.Pdf", + "C#" ], "apis_used": [ "Aspose.Pdf.Facades.PdfBookmarkEditor", "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", "Aspose.Pdf.Facades.PdfBookmarkEditor.ExtractBookmarks", + "Aspose.Pdf.Facades.PdfBookmarkEditor.DeleteBookmarks", + "Aspose.Pdf.Facades.PdfBookmarkEditor.CreateBookmarks", "Aspose.Pdf.Facades.PdfBookmarkEditor.Save", "Aspose.Pdf.Bookmarks", - "Aspose.Pdf.Bookmark", - "Aspose.Pdf.Bookmark.Open", - "Aspose.Pdf.Bookmark.Title" + "Aspose.Pdf.Bookmark" + ], + "difficulty": "intermediate" + }, + { + "filename": "convert-bookmark-titles-to-title-case.cs", + "title": "Convert PDF Bookmark Titles to Title Case with Proper Noun Preservation", + "description": "Demonstrates how to read PDF bookmarks, convert each title to title case while keeping predefined proper nouns unchanged, and save the updated PDF using Aspose.Pdf.", + "tags": [ + "bookmarks", + "title-case", + "proper-nouns", + "Aspose.Pdf", + "PDF" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfBookmarkEditor", + "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", + "Aspose.Pdf.Facades.PdfBookmarkEditor.ExtractBookmarks", + "Aspose.Pdf.Facades.PdfBookmarkEditor.ModifyBookmarks", + "Aspose.Pdf.Facades.PdfBookmarkEditor.Save", + "Aspose.Pdf.Document", + "Aspose.Pdf.OutlineItemCollection" ], "difficulty": "intermediate" }, { "filename": "create-bookmark-to-named-destination.cs", "title": "Create Bookmark to Named Destination in PDF", - "description": "Shows how to define a named destination in a PDF and add a bookmark that references it using Aspose.Pdf.", + "description": "Shows how to add a bookmark that points to an existing named destination within a PDF using Aspose.Pdf.Facades.", "tags": [ "bookmark", "named-destination", "pdf", "Aspose.Pdf", - "cross-reference" + "facades" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.FitExplicitDestination", - "Aspose.Pdf.Bookmark", - "Aspose.Pdf.Facades.PdfBookmarkEditor" + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.CreateBookmarksAction", + "Aspose.Pdf.Facades.PdfContentEditor.Save" ], "difficulty": "intermediate" }, { "filename": "create-hierarchical-pdf-bookmarks.cs", - "title": "Create Hierarchical PDF Bookmarks with PdfBookmarkEditor", - "description": "Shows how to bind a PDF to PdfBookmarkEditor, create top‑level chapter bookmarks with child section bookmarks, and save the document with a hierarchical bookmark structure.", + "title": "Create Hierarchical Bookmarks in a PDF", + "description": "Demonstrates how to bind an existing PDF with PdfBookmarkEditor and add a multi‑level bookmark hierarchy (chapters and sections) before saving the document.", "tags": [ "pdf", "bookmarks", "hierarchy", "aspose", - "csharp" + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfBookmarkEditor", "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", "Aspose.Pdf.Facades.PdfBookmarkEditor.CreateBookmarks", "Aspose.Pdf.Facades.PdfBookmarkEditor.Save", - "Aspose.Pdf.Bookmark", - "Aspose.Pdf.Bookmarks" + "Aspose.Pdf.Facades.PdfBookmarkEditor.Close", + "Aspose.Pdf.Facades.Bookmark", + "Aspose.Pdf.Facades.Bookmarks" ], "difficulty": "intermediate" }, { "filename": "create-image-bookmarks-in-pdf.cs", - "title": "Create Image Bookmarks in PDF", - "description": "Shows how to add a bookmark for each image found in a PDF, linking the bookmark to the page that contains the image using Aspose.Pdf.", + "title": "Create Image Bookmarks In Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-javascript-bookmark.cs", + "title": "Create Javascript Bookmark", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "delete-all-bookmarks-from-pdf.cs", + "title": "Delete All Bookmarks from PDF", + "description": "Demonstrates how to remove every bookmark from a PDF document using Aspose.Pdf's PdfBookmarkEditor facade and save the cleaned file.", "tags": [ "pdf", "bookmarks", - "images", - "Aspose.Pdf", + "delete", + "aspose", "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfBookmarkEditor", - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.XImage", + "PdfBookmarkEditor", "PdfBookmarkEditor.BindPdf", - "PdfBookmarkEditor.CreateBookmarkOfPage", + "PdfBookmarkEditor.DeleteBookmarks", "PdfBookmarkEditor.Save" ], - "difficulty": "intermediate" - }, - { - "filename": "create-javascript-bookmark.cs", - "title": "Create JavaScript Bookmark in PDF", - "description": "Shows how to add a bookmark that executes JavaScript code when clicked using Aspose.Pdf's PdfContentEditor.", - "tags": [ - "bookmark", - "javascript", - "pdf", - "interactive", - "Aspose.Pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.CreateBookmarksAction", - "Aspose.Pdf.Facades.PdfContentEditor.Save" - ], "difficulty": "beginner" }, { - "filename": "delete-all-bookmarks-from-pdf.cs", - "title": "Delete All Bookmarks from PDF", - "description": "Demonstrates how to remove every bookmark from a PDF document using the PdfBookmarkEditor facade and then save the cleaned file.", + "filename": "delete-bookmark-from-pdf.cs", + "title": "Delete Bookmark from PDF Using PdfBookmarkEditor", + "description": "Demonstrates binding a PDF to PdfBookmarkEditor, listing existing bookmarks, deleting a specific bookmark by title, verifying the removal, and saving the updated document.", "tags": [ "bookmarks", "delete", "pdf", - "Aspose.Pdf", + "aspose", "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfBookmarkEditor", "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", + "Aspose.Pdf.Facades.PdfBookmarkEditor.ExtractBookmarks", "Aspose.Pdf.Facades.PdfBookmarkEditor.DeleteBookmarks", "Aspose.Pdf.Facades.PdfBookmarkEditor.Save", "Aspose.Pdf.Facades.PdfBookmarkEditor.Close" @@ -11034,51 +13212,35 @@ { "filename": "delete-bookmarks-matching-regex.cs", "title": "Delete Bookmarks Matching a Regex Pattern", - "description": "Shows how to remove PDF bookmarks whose titles match a regular expression using Aspose.Pdf's PdfBookmarkEditor facade.", + "description": "Demonstrates how to remove PDF bookmarks whose titles match a specified regular expression using Aspose.Pdf.Facades. The example extracts bookmarks, filters them with a regex, and deletes the matching entries.", "tags": [ "bookmarks", "regex", "delete", "pdf", - "facade" - ], - "apis_used": [ - "PdfBookmarkEditor", - "PdfBookmarkEditor.BindPdf", - "PdfBookmarkEditor.ExtractBookmarks", - "PdfBookmarkEditor.DeleteBookmarks", - "PdfBookmarkEditor.Save", - "Bookmark" - ], - "difficulty": "intermediate" - }, - { - "filename": "delete-pdf-bookmark-verify.cs", - "title": "Delete a PDF Bookmark and Verify Removal", - "description": "Demonstrates how to delete a specific bookmark from a PDF using PdfBookmarkEditor and then confirm its removal by extracting the remaining bookmarks.", - "tags": [ - "bookmarks", - "delete", - "verification", - "aspose.pdf", - "csharp" + "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.PdfBookmarkEditor", "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", - "Aspose.Pdf.Facades.PdfBookmarkEditor.DeleteBookmarks", - "Aspose.Pdf.Facades.PdfBookmarkEditor.Save", "Aspose.Pdf.Facades.PdfBookmarkEditor.ExtractBookmarks", - "Aspose.Pdf.Facades.PdfBookmarkEditor.Close", - "Aspose.Pdf.Bookmarks", - "Aspose.Pdf.Bookmark" + "Aspose.Pdf.Facades.PdfBookmarkEditor.DeleteBookmarks", + "Aspose.Pdf.Facades.PdfBookmarkEditor.Save" ], "difficulty": "intermediate" }, + { + "filename": "delete-pdf-bookmark-verify.cs", + "title": "Delete Pdf Bookmark Verify", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "export-pdf-bookmarks-to-csv.cs", "title": "Export PDF Bookmarks to CSV", - "description": "Shows how to extract all bookmarks from a PDF using Aspose.Pdf.Facades.PdfBookmarkEditor and write each bookmark's title, destination page, and hierarchy level into a CSV file.", + "description": "Opens a PDF, extracts all bookmarks recursively using PdfBookmarkEditor, and writes each bookmark's title, destination, and hierarchy level to a CSV file.", "tags": [ "bookmarks", "csv", @@ -11090,138 +13252,156 @@ "Aspose.Pdf.Facades.PdfBookmarkEditor", "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", "Aspose.Pdf.Facades.PdfBookmarkEditor.ExtractBookmarks", - "Aspose.Pdf.Facades.Bookmarks", - "Aspose.Pdf.Facades.Bookmark" + "Aspose.Pdf.Bookmarks", + "Aspose.Pdf.Bookmark" ], "difficulty": "intermediate" }, { "filename": "export-pdf-bookmarks-to-excel.cs", "title": "Export PDF Bookmarks to Excel", - "description": "Extracts all bookmarks from a PDF using PdfBookmarkEditor, traverses the bookmark hierarchy, and writes the title, level, and destination page to a CSV file that can be opened in Excel.", + "description": "Shows how to extract all bookmarks from a PDF using PdfBookmarkEditor, place them in a table, and save the data as an Excel workbook via ExcelSaveOptions.", "tags": [ "bookmarks", - "export", "excel", - "csv", - "pdf" + "pdf", + "export", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfBookmarkEditor", - "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", - "Aspose.Pdf.Facades.PdfBookmarkEditor.ExtractBookmarks", - "Aspose.Pdf.Facades.Bookmarks", - "Aspose.Pdf.Facades.Bookmark" + "Aspose.Pdf.Facades.ExcelSaveOptions", + "Aspose.Pdf.Document", + "Aspose.Pdf.Table", + "Aspose.Pdf.Row", + "Aspose.Pdf.Bookmark", + "Aspose.Pdf.Bookmarks" ], "difficulty": "intermediate" }, { "filename": "export-pdf-bookmarks-to-json.cs", - "title": "Export PDF Bookmarks to JSON", - "description": "The example opens a PDF file, extracts its hierarchical bookmarks using Aspose.Pdf.Facades.PdfBookmarkEditor, converts them into a plain DTO, and writes the structure to an indented JSON file.", + "title": "Export PDF Bookmark Hierarchy to JSON", + "description": "Shows how to extract the bookmark tree from a PDF using PdfBookmarkEditor and write each bookmark's title, level, and page number to a JSON file.", "tags": [ - "pdf", "bookmarks", "json", "export", - "aspose" + "pdf", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfBookmarkEditor", "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", "Aspose.Pdf.Facades.PdfBookmarkEditor.ExtractBookmarks", + "Aspose.Pdf.Facades.Bookmarks", "Aspose.Pdf.Facades.Bookmark", - "Aspose.Pdf.Facades.Bookmark.ChildItems" + "Aspose.Pdf.Facades.Bookmark.ChildItem" ], "difficulty": "intermediate" }, { "filename": "export-pdf-bookmarks-to-json__v2.cs", - "title": "Export PDF Bookmarks to JSON", - "description": "Demonstrates extracting the bookmark hierarchy from a PDF with Aspose.Pdf, flattening it while preserving level information, and writing the data to a pretty‑printed JSON file.", + "title": "Export Pdf Bookmarks To Json__V2", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "export-pdf-bookmarks-to-text-outline.cs", + "title": "Export Pdf Bookmarks To Text Outline", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "export-pdf-bookmarks-to-text.cs", + "title": "Export PDF Bookmarks to Text Outline", + "description": "Shows how to extract the hierarchical bookmarks from a PDF using Aspose.Pdf.Facades.PdfBookmarkEditor and write them to a plain‑text file with indentation that reflects each bookmark level.", "tags": [ "bookmarks", - "json", "export", + "text", "pdf", - "aspose" + "outline" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", - "Aspose.Pdf.Facades.PdfBookmarkEditor.ExtractBookmarks", - "Aspose.Pdf.Facades.PdfBookmarkEditor.Close", - "Aspose.Pdf.Bookmarks", - "Aspose.Pdf.Bookmark", - "Aspose.Pdf.Bookmark.ChildItem" + "PdfBookmarkEditor", + "PdfBookmarkEditor.BindPdf", + "PdfBookmarkEditor.ExtractBookmarks", + "Bookmarks", + "Bookmark", + "Bookmark.ChildItem" ], "difficulty": "intermediate" }, { - "filename": "export-pdf-bookmarks-to-text-outline.cs", - "title": "Export PDF Bookmarks to a Text Outline", - "description": "Demonstrates how to extract hierarchical bookmarks from a PDF using Aspose.Pdf and write them to a plain‑text file with indentation that reflects the bookmark hierarchy.", + "filename": "export-pdf-bookmarks-to-xml.cs", + "title": "Export PDF Bookmarks to XML", + "description": "Demonstrates how to bind a PDF with Aspose.Pdf.Facades.PdfBookmarkEditor and export its complete bookmark hierarchy to an XML file.", "tags": [ "bookmarks", "export", - "text", - "outline", - "Aspose.Pdf" + "xml", + "pdf", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfBookmarkEditor", - "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", - "Aspose.Pdf.Facades.PdfBookmarkEditor.ExtractBookmarks", - "Aspose.Pdf.Bookmarks", - "Aspose.Pdf.Bookmark", - "Aspose.Pdf.Document", - "Aspose.Pdf.OutlineItemCollection" + "PdfBookmarkEditor.BindPdf", + "PdfBookmarkEditor.ExportBookmarksToXML", + "PdfBookmarkEditor.Close" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "export-pdf-bookmarks-to-xml.cs", - "title": "Export PDF Bookmarks to XML", - "description": "Demonstrates how to bind a PDF document with PdfBookmarkEditor and export its complete bookmark hierarchy to an XML file for external use.", + "filename": "extract-pdf-bookmarks-to-json.cs", + "title": "Extract PDF Bookmarks to JSON", + "description": "Shows how to use Aspose.Pdf.Facades.PdfBookmarkEditor to extract PDF bookmarks, build a hierarchical POCO model, and serialize it as indented JSON.", "tags": [ + "pdf", "bookmarks", - "export", - "xml", - "Aspose.Pdf", - "PdfBookmarkEditor" + "json", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfBookmarkEditor", "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", - "Aspose.Pdf.Facades.PdfBookmarkEditor.ExportBookmarksToXML", - "Aspose.Pdf.Facades.PdfBookmarkEditor.Close" + "Aspose.Pdf.Facades.PdfBookmarkEditor.ExtractBookmarks", + "Aspose.Pdf.Facades.Bookmarks", + "Aspose.Pdf.Facades.Bookmark", + "Aspose.Pdf.Facades.Bookmark.ChildItems" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "import-bookmarks-from-csv.cs", "title": "Import Bookmarks from CSV into PDF", - "description": "Shows how to read a CSV file, build a hierarchical bookmark tree, and add the bookmarks to an existing PDF using Aspose.Pdf and the PdfBookmarkEditor facade.", + "description": "Shows how to read a CSV file, build a hierarchical bookmark tree, and add the bookmarks to a PDF using Aspose.Pdf.Facades.", "tags": [ "bookmarks", "csv", "pdf", - "aspose", - "facade" + "import", + "hierarchy" ], "apis_used": [ - "Aspose.Pdf.Bookmarks", - "Aspose.Pdf.Bookmark", "Aspose.Pdf.Facades.PdfBookmarkEditor", "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", "Aspose.Pdf.Facades.PdfBookmarkEditor.CreateBookmarks", - "Aspose.Pdf.Facades.PdfBookmarkEditor.Save" + "Aspose.Pdf.Facades.PdfBookmarkEditor.Save", + "Aspose.Pdf.Facades.Bookmark", + "Aspose.Pdf.Facades.Bookmarks" ], "difficulty": "intermediate" }, { "filename": "import-bookmarks-from-database.cs", - "title": "Import Bookmarks from Database into a PDF", - "description": "Demonstrates how to read bookmark data from a database‑like result set and add each entry as a PDF bookmark using Aspose.Pdf.Facades.", + "title": "Import Bookmarks from Database into PDF", + "description": "Shows how to read bookmark records (title and page number) from a simulated database query and add them to an existing PDF using Aspose.Pdf's bookmark editor.", "tags": [ "bookmarks", "pdf", @@ -11230,106 +13410,114 @@ "import" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Facades.PdfBookmarkEditor", - "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", - "Aspose.Pdf.Facades.PdfBookmarkEditor.CreateBookmarks", - "Aspose.Pdf.Facades.PdfBookmarkEditor.Save", - "Aspose.Pdf.Facades.Bookmark" + "PdfBookmarkEditor", + "PdfBookmarkEditor.BindPdf", + "PdfBookmarkEditor.CreateBookmarks", + "PdfBookmarkEditor.Save", + "Bookmark", + "Document", + "Document.Pages.Add", + "Document.Save" ], "difficulty": "intermediate" }, { "filename": "import-bookmarks-from-json.cs", - "title": "Import Bookmarks from JSON into PDF", - "description": "Shows how to read a JSON file with bookmark titles and page numbers, deserialize it, and add those bookmarks to a PDF using Aspose.Pdf's bookmark editor.", + "title": "Import Bookmarks from JSON into a PDF", + "description": "Demonstrates how to read a JSON file containing bookmark definitions, map them to Aspose.Pdf.Facades.Bookmark objects (including nested children), and add them to a PDF using PdfBookmarkEditor.", "tags": [ "bookmarks", "json", "pdf", - "aspose", - "import" + "import", + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfBookmarkEditor", - "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", - "Aspose.Pdf.Facades.PdfBookmarkEditor.CreateBookmarkOfPage", - "Aspose.Pdf.Facades.PdfBookmarkEditor.Save" + "Aspose.Pdf.Facades.Bookmark", + "Aspose.Pdf.Facades.Bookmarks", + "PdfBookmarkEditor.BindPdf", + "PdfBookmarkEditor.CreateBookmarks", + "PdfBookmarkEditor.Save" ], "difficulty": "intermediate" }, { "filename": "import-ofd-bookmarks-into-pdf.cs", - "title": "Import OFD Bookmarks into PDF", - "description": "Demonstrates loading an OFD file, converting its outline items to Aspose.Pdf.Bookmark objects, and adding them to a PDF using PdfBookmarkEditor.", + "title": "Import Ofd Bookmarks Into Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "import-ofd-bookmarks-to-pdf.cs", + "title": "Import OFD File and Add Bookmarks to PDF", + "description": "Demonstrates loading an OFD document, converting each page into a PDF bookmark, and saving the result as a PDF using Aspose.Pdf.", "tags": [ "ofd", - "bookmarks", "pdf", - "import", + "bookmarks", + "conversion", "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.OfdLoadOptions", - "Aspose.Pdf.OutlineItemCollection", - "Aspose.Pdf.Bookmark", - "Aspose.Pdf.Facades.PdfBookmarkEditor" + "Aspose.Pdf.Facades.PdfBookmarkEditor", + "Aspose.Pdf.Facades.Bookmark", + "PdfBookmarkEditor.CreateBookmarks", + "PdfBookmarkEditor.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "merge-bookmarks-into-pdf.cs", + "title": "Merge Bookmarks Into Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "merge-pdf-bookmarks.cs", "title": "Merge Bookmarks from One PDF into Another", - "description": "Demonstrates how to extract the bookmark hierarchy from a source PDF and append it to a target PDF, preserving the original order using Aspose.Pdf facades.", + "description": "Shows how to export bookmarks from a source PDF to an XML stream and import them into a target PDF, preserving their order, using Aspose.Pdf's PdfBookmarkEditor.", "tags": [ "bookmarks", - "merge", "pdf", - "Aspose", - "facade" + "merge", + "import", + "export" ], "apis_used": [ "Aspose.Pdf.Facades.PdfBookmarkEditor", - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", - "Aspose.Pdf.Facades.PdfBookmarkEditor.ExtractBookmarks", - "Aspose.Pdf.Facades.PdfBookmarkEditor.CreateBookmarks", - "Aspose.Pdf.Facades.PdfBookmarkEditor.Save" + "Aspose.Pdf.Facades.PdfBookmarkEditor.ExportBookmarksToXML", + "Aspose.Pdf.Facades.PdfBookmarkEditor.ImportBookmarksWithXML", + "Aspose.Pdf.Facades.PdfBookmarkEditor.Save", + "Aspose.Pdf.Document" ], "difficulty": "intermediate" }, { "filename": "modify-pdf-bookmarks-using-memorystream.cs", - "title": "Modify PDF Bookmarks Using MemoryStream", - "description": "Shows how to bind a PDF from a byte array via MemoryStream, rename a specific bookmark, and return the updated PDF as a byte array.", - "tags": [ - "pdf", - "bookmarks", - "memorystream", - "aspose", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfBookmarkEditor", - "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", - "Aspose.Pdf.Facades.PdfBookmarkEditor.ModifyBookmarks", - "Aspose.Pdf.Facades.PdfBookmarkEditor.Save" - ], - "difficulty": "beginner" + "title": "Modify Pdf Bookmarks Using Memorystream", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "remove-duplicate-bookmarks.cs", "title": "Remove Duplicate Bookmarks from PDF", - "description": "Demonstrates how to extract all bookmarks from a PDF, identify and remove duplicates based on title and page number, and then re‑add only the unique bookmarks using Aspose.Pdf.Facades.", + "description": "Shows how to extract all bookmarks, filter out duplicates based on title and page number, delete the existing outline, and recreate only the unique bookmarks using Aspose.Pdf.", "tags": [ "bookmarks", "duplicate", "pdf", "Aspose.Pdf", - "facade" + "outline" ], "apis_used": [ "Aspose.Pdf.Facades.PdfBookmarkEditor", @@ -11337,35 +13525,33 @@ "Aspose.Pdf.Facades.PdfBookmarkEditor.ExtractBookmarks", "Aspose.Pdf.Facades.PdfBookmarkEditor.DeleteBookmarks", "Aspose.Pdf.Facades.PdfBookmarkEditor.CreateBookmarkOfPage", - "Aspose.Pdf.Facades.PdfBookmarkEditor.Save", - "Aspose.Pdf.Facades.PdfBookmarkEditor.Close" + "Aspose.Pdf.Facades.PdfBookmarkEditor.Save" ], "difficulty": "intermediate" }, { "filename": "rename-pdf-bookmarks-using-translation-dictionary.cs", "title": "Rename PDF Bookmarks Using a Translation Dictionary", - "description": "Shows how to rename PDF bookmarks by applying a case‑insensitive translation map with Aspose.Pdf.Facades, then saving the updated document.", + "description": "Demonstrates loading a PDF, renaming its bookmarks according to a translation dictionary, and saving the updated file with Aspose.Pdf.Facades.", "tags": [ "bookmarks", "rename", "translation", "pdf", - "Aspose.Pdf" + "facade" ], "apis_used": [ - "PdfBookmarkEditor", - "PdfBookmarkEditor.BindPdf", - "PdfBookmarkEditor.ModifyBookmarks", - "PdfBookmarkEditor.Save", - "PdfBookmarkEditor.Close" + "Aspose.Pdf.Facades.PdfBookmarkEditor", + "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", + "Aspose.Pdf.Facades.PdfBookmarkEditor.ModifyBookmarks", + "Aspose.Pdf.Facades.PdfBookmarkEditor.Save" ], "difficulty": "beginner" }, { - "filename": "set-bookmark-zoom-to-150-percent.cs", - "title": "Set Bookmark Zoom to 150% in PDF", - "description": "Shows how to bind a PDF, extract its bookmarks, recursively set each bookmark's PageDisplay_Zoom to 150%, and save the modified document.", + "filename": "set-bookmark-zoom-level-150-percent.cs", + "title": "Set Bookmark Zoom Level to 150% in PDF", + "description": "Demonstrates how to load a PDF, traverse its bookmark tree, and set each bookmark's zoom factor to 150% so that pages open at the desired magnification from the outline.", "tags": [ "bookmarks", "zoom", @@ -11374,82 +13560,106 @@ "outline" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfBookmarkEditor", - "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", - "Aspose.Pdf.Facades.PdfBookmarkEditor.ExtractBookmarks", - "Aspose.Pdf.Facades.PdfBookmarkEditor.Save", - "Aspose.Pdf.Bookmark.PageDisplay_Zoom" + "PdfBookmarkEditor", + "PdfBookmarkEditor.BindPdf", + "PdfBookmarkEditor.ExtractBookmarks", + "PdfBookmarkEditor.Save", + "Bookmark.PageDisplay_Zoom", + "Bookmark.ChildItems" ], "difficulty": "intermediate" }, { - "filename": "update-bookmark-destination-to-page.cs", + "filename": "set-bookmark-zoom-to-150-percent.cs", + "title": "Set Bookmark Zoom To 150 Percent", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "update-bookmark-destination-to-page-10.cs", "title": "Update Bookmark Destination to Page 10", - "description": "Shows how to locate a bookmark by its title (used as an ID) and change its destination to page 10 using Aspose.Pdf.Facades.PdfBookmarkEditor.", + "description": "Shows how to locate a PDF bookmark by its title and change its destination to page 10 using Aspose.Pdf's PdfBookmarkEditor facade.", "tags": [ - "bookmark", + "bookmarks", "pdf", "Aspose.Pdf", - "page", - "update" + "update", + "page-number" ], "apis_used": [ "PdfBookmarkEditor", "PdfBookmarkEditor.BindPdf", "PdfBookmarkEditor.ExtractBookmarks", "PdfBookmarkEditor.DeleteBookmarks", - "PdfBookmarkEditor.CreateBookmarks", + "PdfBookmarkEditor.CreateBookmarkOfPage", "PdfBookmarkEditor.Save", - "Bookmark" + "Bookmark.PageNumber" ], "difficulty": "intermediate" }, + { + "filename": "update-bookmark-destination-to-page.cs", + "title": "Update Bookmark Destination To Page", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "update-bookmark-titles-to-title-case.cs", - "title": "Update Bookmark Titles to Title Case with Proper Noun Preservation", - "description": "Demonstrates extracting PDF bookmarks, converting their titles to title case while keeping predefined proper nouns unchanged, and saving the updated PDF.", + "title": "Update Bookmark Titles To Title Case", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "update-pdf-bookmark-title.cs", + "title": "Update PDF Bookmark Title Using MemoryStream", + "description": "Shows how to bind a PDF from a byte array with MemoryStream, modify a bookmark title using PdfBookmarkEditor, and return the edited PDF as a byte array.", "tags": [ - "bookmarks", - "title-case", - "proper-nouns", "pdf", - "Aspose.Pdf" + "bookmark", + "memorystream", + "aspose.pdf", + "c#" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.OutlineItemCollection", "Aspose.Pdf.Facades.PdfBookmarkEditor", - "Aspose.Pdf.Facades.Bookmarks", - "Aspose.Pdf.Facades.Bookmark", + "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", "Aspose.Pdf.Facades.PdfBookmarkEditor.ModifyBookmarks", - "Aspose.Pdf.Facades.PdfBookmarkEditor.ExtractBookmarks" + "Aspose.Pdf.Facades.PdfBookmarkEditor.Save" ], "difficulty": "intermediate" }, { "filename": "validate-pdf-bookmark-count.cs", - "title": "Validate PDF Bookmark Count After Saving", - "description": "The example binds a PDF, optionally creates or modifies its bookmarks, saves the document, then extracts the bookmarks from the saved file to verify that the number of bookmarks matches an expected count.", + "title": "Validate PDF Bookmark Count After Adding Bookmarks", + "description": "Demonstrates how to add a bookmark for each page using PdfBookmarkEditor, save the PDF, then extract and verify the total number of bookmarks.", "tags": [ "bookmarks", "validation", "pdf", - "aspose", - "csharp" + "Aspose.Pdf", + "facade" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfBookmarkEditor", - "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", - "Aspose.Pdf.Facades.PdfBookmarkEditor.Save", - "Aspose.Pdf.Facades.PdfBookmarkEditor.ExtractBookmarks", - "Aspose.Pdf.Facades.Bookmarks" + "PdfBookmarkEditor.BindPdf", + "PdfBookmarkEditor.CreateBookmarks", + "PdfBookmarkEditor.Save", + "PdfBookmarkEditor.ExtractBookmarks", + "Aspose.Pdf.Facades.Bookmarks.Count" ], "difficulty": "intermediate" }, { "filename": "validate-pdf-bookmarks-against-toc.cs", - "title": "Validate PDF Bookmarks Against Generated TOC", - "description": "Extracts PDF bookmarks, builds a simple table of contents using font‑size heuristics, and compares the bookmark page numbers with the TOC entries to detect mismatches.", + "title": "Validate PDF Bookmarks Against Table of Contents", + "description": "Demonstrates extracting PDF bookmarks with PdfBookmarkEditor and comparing their page numbers to an expected table of contents for consistency checks.", "tags": [ "bookmarks", "toc", @@ -11459,12 +13669,10 @@ ], "apis_used": [ "Aspose.Pdf.Facades.PdfBookmarkEditor", - "Aspose.Pdf.Bookmarks", - "Aspose.Pdf.Bookmark", - "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextFragmentAbsorber", - "Aspose.Pdf.Text.TextExtractionOptions", - "Aspose.Pdf.Text.TextFragment" + "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", + "Aspose.Pdf.Facades.PdfBookmarkEditor.ExtractBookmarks", + "Aspose.Pdf.Facades.Bookmarks", + "Aspose.Pdf.Facades.Bookmark" ], "difficulty": "intermediate" } @@ -11472,30 +13680,42 @@ }, { "name": "facades-convert-documents", - "file_count": 36, + "file_count": 51, "files": [ "batch-convert-pdfs-to-jpeg.cs", "convert-odd-pdf-pages-to-png.cs", + "convert-pdf-odd-pages-to-png.cs", "convert-pdf-pages-3-8-to-bmp.cs", + "convert-pdf-pages-3-8-to-multi-page-tiff.cs", "convert-pdf-pages-3-8-to-tiff.cs", "convert-pdf-pages-4-9-to-multi-page-tiff.cs", + "convert-pdf-pages-to-bmp-150-dpi.cs", "convert-pdf-pages-to-bmp-helvetica-arial.cs", + "convert-pdf-pages-to-bmp-images.cs", "convert-pdf-pages-to-bmp.cs", + "convert-pdf-pages-to-jpeg-150-dpi.cs", "convert-pdf-pages-to-jpeg.cs", + "convert-pdf-pages-to-multi-page-tiff.cs", "convert-pdf-pages-to-png-reverse-order.cs", "convert-pdf-pages-to-png.cs", "convert-pdf-pages-to-tiff.cs", + "convert-pdf-to-bmp-200-dpi.cs", "convert-pdf-to-bmp-first-10-pages.cs", "convert-pdf-to-bmp-images.cs", "convert-pdf-to-bmp-images__v2.cs", "convert-pdf-to-bmp-partial-range.cs", + "convert-pdf-to-bmp-with-cropbox.cs", "convert-pdf-to-bmp-with-font-substitution.cs", "convert-pdf-to-bmp-with-font-substitution__v2.cs", - "convert-pdf-to-jpeg-300-dpi.cs", + "convert-pdf-to-high-resolution-multi-page-tiff.cs", + "convert-pdf-to-jpeg-300dpi-cropbox.cs", "convert-pdf-to-jpeg-96-dpi.cs", + "convert-pdf-to-jpeg-first-5-pages-200-dpi.cs", "convert-pdf-to-jpeg-first-5-pages.cs", "convert-pdf-to-jpeg-images.cs", "convert-pdf-to-jpeg-images__v2.cs", + "convert-pdf-to-jpeg-images__v3.cs", + "convert-pdf-to-jpeg-preview-images.cs", "convert-pdf-to-jpeg-preview.cs", "convert-pdf-to-jpeg-with-font-substitution.cs", "convert-pdf-to-multi-page-tiff-300-dpi.cs", @@ -11503,10 +13723,13 @@ "convert-pdf-to-multi-page-tiff-600-dpi.cs", "convert-pdf-to-multi-page-tiff-with-font-substitution.cs", "convert-pdf-to-multi-page-tiff-with-font-substitution__v2.cs", + "convert-pdf-to-multi-page-tiff.cs", + "convert-pdf-to-png-300-dpi.cs", "convert-pdf-to-png-72-dpi.cs", "convert-pdf-to-png-72-dpi__v2.cs", "convert-pdf-to-png-images.cs", "convert-pdf-to-png-in-parallel.cs", + "convert-pdf-to-png-parallel.cs", "convert-pdf-to-png-with-font-substitution.cs", "convert-pdf-to-png-with-font-substitution__v2.cs", "convert-pdf-to-tiff-images.cs" @@ -11519,16 +13742,16 @@ ], "key_apis": [ "PdfConverter", - "BmpDevice", - "JpegDevice", "PngDevice", - "TiffDevice" + "BmpDevice", + "TiffDevice", + "TextFragment" ], "examples": [ { "filename": "batch-convert-pdfs-to-jpeg.cs", "title": "Batch Convert PDFs to JPEG Images", - "description": "Shows how to iterate over PDF files in a folder and convert each page to separate JPEG images using Aspose.Pdf.Facades.PdfConverter.", + "description": "Shows how to iterate over PDF files in a folder and convert each page of every PDF into separate JPEG images using Aspose.Pdf.Facades.PdfConverter.", "tags": [ "pdf", "jpeg", @@ -11547,8 +13770,16 @@ }, { "filename": "convert-odd-pdf-pages-to-png.cs", - "title": "Convert Odd PDF Pages to PNG Images", - "description": "Demonstrates extracting only odd‑numbered pages from a PDF and saving each page as a separate PNG file using Aspose.Pdf and the Facade API.", + "title": "Convert Odd Pdf Pages To Png", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "convert-pdf-odd-pages-to-png.cs", + "title": "Convert PDF Odd Pages to PNG Images", + "description": "Shows how to extract only the odd‑numbered pages from a PDF and save each page as a separate PNG file using Aspose.Pdf.", "tags": [ "pdf", "png", @@ -11559,19 +13790,18 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfConverter", - "Document.Pages.Count", - "PdfConverter.BindPdf", - "PdfConverter.StartPage", - "PdfConverter.EndPage", - "PdfConverter.DoConvert", - "PdfConverter.GetNextImage" + "Aspose.Pdf.Facades.PdfConverter.BindPdf", + "Aspose.Pdf.Facades.PdfConverter.StartPage", + "Aspose.Pdf.Facades.PdfConverter.EndPage", + "Aspose.Pdf.Facades.PdfConverter.DoConvert", + "Aspose.Pdf.Facades.PdfConverter.GetNextImage" ], "difficulty": "intermediate" }, { "filename": "convert-pdf-pages-3-8-to-bmp.cs", "title": "Convert PDF Pages 3‑8 to BMP Images", - "description": "Demonstrates how to use Aspose.Pdf's PdfConverter facade to convert a specific page range (pages 3 to 8) of a PDF document into BMP image files.", + "description": "Shows how to use Aspose.Pdf.Facades.PdfConverter to convert a specific page range (pages 3 to 8) of a PDF document into BMP image files.", "tags": [ "pdf", "bmp", @@ -11580,8 +13810,7 @@ "facade" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfConverter", + "PdfConverter", "PdfConverter.BindPdf", "PdfConverter.StartPage", "PdfConverter.EndPage", @@ -11589,120 +13818,166 @@ "PdfConverter.HasNextImage", "PdfConverter.GetNextImage" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "convert-pdf-pages-3-8-to-tiff.cs", - "title": "Convert PDF Pages 3-8 to TIFF", - "description": "Shows how to load a PDF with Aspose.Pdf and use TiffDevice to convert pages 3 through 8 into a single multi‑page TIFF using the default resolution and CropBox.", + "filename": "convert-pdf-pages-3-8-to-multi-page-tiff.cs", + "title": "Convert PDF Pages 3‑8 to Multi‑Page TIFF", + "description": "Shows how to load a PDF, select a specific page range, and save those pages as a single multi‑page TIFF using Aspose.Pdf's PdfConverter with default resolution and CropBox coordinates.", "tags": [ "pdf", "tiff", "conversion", - "pages", - "aspose" + "page-range", + "facade" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Devices.TiffDevice", - "Aspose.Pdf.Devices.TiffDevice.Process" + "Aspose.Pdf.Facades.PdfConverter", + "PdfConverter.BindPdf", + "PdfConverter.StartPage", + "PdfConverter.EndPage", + "PdfConverter.DoConvert", + "PdfConverter.SaveAsTIFF" ], "difficulty": "beginner" }, + { + "filename": "convert-pdf-pages-3-8-to-tiff.cs", + "title": "Convert Pdf Pages 3 8 To Tiff", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "convert-pdf-pages-4-9-to-multi-page-tiff.cs", - "title": "Convert PDF Pages 4-9 to Multi-Page TIFF", - "description": "Shows how to extract pages 4 through 9 from a PDF and save them as a single multi-page TIFF using Aspose.Pdf's PdfConverter facade.", + "title": "Convert Pdf Pages 4 9 To Multi Page Tiff", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "convert-pdf-pages-to-bmp-150-dpi.cs", + "title": "Convert PDF Pages to BMP Images (150 DPI)", + "description": "Demonstrates loading a PDF with Aspose.Pdf, setting a 150 DPI resolution, and converting the first 20 pages to BMP files using BmpDevice.", "tags": [ "pdf", - "tiff", - "page-range", + "bmp", "conversion", - "facade" + "aspose", + "resolution" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfConverter", - "Aspose.Pdf.Facades.PdfConverter.BindPdf", - "Aspose.Pdf.Facades.PdfConverter.StartPage", - "Aspose.Pdf.Facades.PdfConverter.EndPage", - "Aspose.Pdf.Facades.PdfConverter.DoConvert", - "Aspose.Pdf.Facades.PdfConverter.SaveAsTIFF" + "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.Devices.BmpDevice", + "Aspose.Pdf.Devices.BmpDevice.Process", + "Aspose.Pdf.PageCollection" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "convert-pdf-pages-to-bmp-helvetica-arial.cs", - "title": "Convert PDF Pages 5‑7 to BMP with Helvetica‑to‑Arial Substitution", - "description": "Shows how to replace Helvetica with Arial using font substitution and convert pages 5 to 7 of a PDF into BMP images with the PdfConverter facade.", + "title": "Convert Pdf Pages To Bmp Helvetica Arial", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "convert-pdf-pages-to-bmp-images.cs", + "title": "Convert PDF Pages to BMP Images (Partial Range)", + "description": "Demonstrates using Aspose.Pdf.Facades.PdfConverter to convert a specific page range of a PDF into BMP image files.", "tags": [ - "pdf conversion", + "pdf", "bmp", - "font substitution", - "page range", - "Aspose.Pdf" + "conversion", + "page-range", + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfConverter", - "Aspose.Pdf.FontRepository.Substitutions.Add", - "Aspose.Pdf.Text.SimpleFontSubstitution", - "Aspose.Pdf.Facades.PdfConverter.GetNextImage" + "PdfConverter.BindPdf", + "PdfConverter.StartPage", + "PdfConverter.EndPage", + "PdfConverter.DoConvert", + "PdfConverter.HasNextImage", + "PdfConverter.GetNextImage" ], "difficulty": "intermediate" }, { "filename": "convert-pdf-pages-to-bmp.cs", - "title": "Convert PDF Pages to BMP Images (150 DPI)", - "description": "Demonstrates loading a PDF with Aspose.Pdf, setting a 150 DPI resolution, and converting the first 20 pages to BMP files.", + "title": "Convert Pdf Pages To Bmp", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "convert-pdf-pages-to-jpeg-150-dpi.cs", + "title": "Convert PDF Pages 1-10 to JPEG Images with 150 DPI", + "description": "Demonstrates using Aspose.Pdf's PdfConverter to convert the first ten pages of a PDF into JPEG files at 150 DPI, relying on the default CropBox coordinate type.", "tags": [ "pdf", - "bmp", + "jpeg", "conversion", - "aspose", - "resolution" + "resolution", + "cropbox" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfConverter", + "Aspose.Pdf.Facades.PdfConverter.BindPdf", + "Aspose.Pdf.Facades.PdfConverter.StartPage", + "Aspose.Pdf.Facades.PdfConverter.EndPage", "Aspose.Pdf.Devices.Resolution", - "Aspose.Pdf.Devices.BmpDevice", - "Aspose.Pdf.Devices.BmpDevice.Process", - "Aspose.Pdf.PageCollection", - "Aspose.Pdf.Page" + "Aspose.Pdf.Facades.PdfConverter.DoConvert", + "Aspose.Pdf.Facades.PdfConverter.GetNextImage" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "convert-pdf-pages-to-jpeg.cs", - "title": "Convert PDF Pages to JPEG Images", - "description": "Shows how to use Aspose.Pdf.Facades.PdfConverter to convert each page of a PDF into separate JPEG files, naming them with a page number suffix.", + "title": "Convert Pdf Pages To Jpeg", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "convert-pdf-pages-to-multi-page-tiff.cs", + "title": "Convert PDF Pages 4-9 to Multi-Page TIFF", + "description": "Demonstrates extracting pages 4 through 9 from a PDF and saving them as a single multi-page TIFF using Aspose.Pdf's PdfConverter facade.", "tags": [ "pdf", - "jpeg", + "tiff", + "page-range", "conversion", - "facade", - "aspose" + "facade" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfConverter", - "PdfConverter.BindPdf", - "PdfConverter.DoConvert", - "PdfConverter.HasNextImage", - "PdfConverter.GetNextImage", - "PdfConverter.Close" + "Aspose.Pdf.Facades.PdfConverter.StartPage", + "Aspose.Pdf.Facades.PdfConverter.EndPage", + "Aspose.Pdf.Facades.PdfConverter.DoConvert", + "Aspose.Pdf.Facades.PdfConverter.SaveAsTIFF" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "convert-pdf-pages-to-png-reverse-order.cs", - "title": "Convert PDF Pages to PNG Images in Reverse Order", - "description": "Demonstrates how to load a PDF with Aspose.Pdf, iterate its pages from last to first, and save each page as a PNG image using PdfConverter.", + "title": "Convert PDF Pages to PNG in Reverse Order", + "description": "Demonstrates using Aspose.Pdf.Facades.PdfConverter to convert each page of a PDF document to a PNG image while processing the pages from the last to the first.", "tags": [ "pdf", "png", "conversion", "reverse-order", - "aspose-pdf" + "facade" ], "apis_used": [ "Aspose.Pdf.Document", @@ -11711,35 +13986,23 @@ "PdfConverter.StartPage", "PdfConverter.EndPage", "PdfConverter.DoConvert", - "PdfConverter.GetNextImage" + "PdfConverter.GetNextImage", + "PdfConverter.Close" ], "difficulty": "intermediate" }, { "filename": "convert-pdf-pages-to-png.cs", - "title": "Convert PDF Pages to PNG Images", - "description": "Shows how to use Aspose.Pdf's PdfConverter facade to convert each page of a PDF document into separate PNG files with sequential naming.", - "tags": [ - "pdf", - "png", - "conversion", - "aspose", - "facade" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfConverter", - "Aspose.Pdf.Facades.PdfConverter.BindPdf", - "Aspose.Pdf.Facades.PdfConverter.DoConvert", - "Aspose.Pdf.Facades.PdfConverter.HasNextImage", - "Aspose.Pdf.Facades.PdfConverter.GetNextImage" - ], - "difficulty": "intermediate" + "title": "Convert Pdf Pages To Png", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "convert-pdf-pages-to-tiff.cs", - "title": "Convert PDF Pages to Separate TIFF Images", - "description": "Demonstrates how to use Aspose.Pdf's PdfConverter facade to extract each page of a PDF as an individual TIFF file, saving them with sequential page indexes.", + "title": "Convert PDF Pages to Individual TIFF Images", + "description": "Shows how to use Aspose.Pdf.Facades.PdfConverter to extract each page of a PDF and save it as a separate TIFF file.", "tags": [ "pdf", "tiff", @@ -11748,19 +14011,38 @@ "aspose" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PpdfConverter", + "Aspose.Pdf.Facades.PdfConverter", "PdfConverter.BindPdf", "PdfConverter.DoConvert", "PdfConverter.HasNextImage", "PdfConverter.GetNextImage" ], - "difficulty": "intermediate" + "difficulty": "beginner" + }, + { + "filename": "convert-pdf-to-bmp-200-dpi.cs", + "title": "Convert PDF to BMP Images with 200 DPI", + "description": "Shows how to load a PDF using Aspose.Pdf, set a 200 DPI resolution, and convert each page to a BMP file while using the default CropBox for balanced quality.", + "tags": [ + "pdf", + "bmp", + "conversion", + "resolution", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.Devices.BmpDevice", + "Aspose.Pdf.Devices.BmpDevice.Process", + "Aspose.Pdf.Page" + ], + "difficulty": "beginner" }, { "filename": "convert-pdf-to-bmp-first-10-pages.cs", "title": "Convert PDF to BMP Images (First 10 Pages)", - "description": "Demonstrates using Aspose.Pdf.Facades.PdfConverter to convert the first ten pages of a PDF document into BMP image files.", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfConverter to convert the first ten pages of a PDF into BMP image files.", "tags": [ "pdf", "bmp", @@ -11778,12 +14060,12 @@ "PdfConverter.GetNextImage", "PdfConverter.Close" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "convert-pdf-to-bmp-images.cs", "title": "Convert PDF to BMP Images with Resolution Settings", - "description": "Demonstrates how to convert each page of a PDF document to BMP images using the PdfConverter facade, configuring the output resolution before conversion.", + "description": "Demonstrates how to convert each page of a PDF document to BMP images using Aspose.Pdf.Facades.PdfConverter, configuring the output resolution before conversion.", "tags": [ "pdf", "bmp", @@ -11792,9 +14074,10 @@ "facade" ], "apis_used": [ - "PdfConverter", + "Aspose.Pdf.Facades.PdfConverter", + "Aspose.Pdf.Document", + "Aspose.Pdf.Devices.Resolution", "PdfConverter.BindPdf", - "PdfConverter.Resolution", "PdfConverter.DoConvert", "PdfConverter.HasNextImage", "PdfConverter.GetNextImage" @@ -11803,182 +14086,194 @@ }, { "filename": "convert-pdf-to-bmp-images__v2.cs", - "title": "Convert PDF to BMP Images", - "description": "Shows how to load a PDF with Aspose.Pdf, rasterize each page to a BMP file at 200 DPI using BmpDevice, and save the images to an output folder.", + "title": "Convert Pdf To Bmp Images__V2", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "convert-pdf-to-bmp-partial-range.cs", + "title": "Convert Pdf To Bmp Partial Range", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "convert-pdf-to-bmp-with-cropbox.cs", + "title": "Convert PDF to BMP Images Using CropBox", + "description": "Demonstrates loading a PDF (creating a placeholder if missing) and rendering each page to a BMP image with Aspose.Pdf's BmpDevice, which automatically respects the page's CropBox to trim margins.", "tags": [ "pdf", "bmp", "conversion", - "rasterization", + "cropbox", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Devices.BmpDevice", - "Aspose.Pdf.Devices.BmpDevice.Process", - "Aspose.Pdf.PageCollection", - "Aspose.Pdf.Page" + "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.Page", + "Aspose.Pdf.Devices.BmpDevice.Process" ], "difficulty": "beginner" }, - { - "filename": "convert-pdf-to-bmp-partial-range.cs", - "title": "Convert PDF Pages to BMP Images (Partial Range)", - "description": "Demonstrates using Aspose.Pdf.Facades.PdfConverter to convert a specific page range (pages 2‑6) of a PDF into BMP image files.", - "tags": [ - "pdf", - "bmp", - "conversion", - "page-range", - "facade" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfConverter", - "PdfConverter.BindPdf", - "PdfConverter.StartPage", - "PdfConverter.EndPage", - "PdfConverter.DoConvert", - "PdfConverter.HasNextImage", - "PdfConverter.GetNextImage" - ], - "difficulty": "intermediate" - }, { "filename": "convert-pdf-to-bmp-with-font-substitution.cs", - "title": "Convert PDF to BMP Images with Times New Roman to Calibri Substitution", - "description": "Loads a PDF, replaces Times New Roman with Calibri via custom font substitution, and converts each page to a BMP image at 300 DPI using Aspose.Pdf's PdfConverter.", + "title": "Convert PDF Pages to BMP Images with Font Substitution", + "description": "Shows how to convert each page of a PDF document to BMP images using Aspose.Pdf's PdfConverter, with automatic font substitution for missing fonts.", "tags": [ "pdf", "bmp", - "font-substitution", "conversion", + "font-substitution", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfConverter", + "Aspose.Pdf.Facades.PdfConverter.BindPdf", "Aspose.Pdf.Facades.PdfConverter.DoConvert", + "Aspose.Pdf.Facades.PdfConverter.HasNextImage", "Aspose.Pdf.Facades.PdfConverter.GetNextImage", - "Aspose.Pdf.Text.FontRepository", - "Aspose.Pdf.Text.SimpleFontSubstitution", - "Aspose.Pdf.Devices.Resolution" + "Aspose.Pdf.Facades.PdfConverter.Close" ], "difficulty": "intermediate" }, { "filename": "convert-pdf-to-bmp-with-font-substitution__v2.cs", - "title": "Convert PDF to BMP Images with Font Substitution", - "description": "Demonstrates converting each page of a PDF to BMP images using PdfConverter and applying a global font substitution for missing fonts.", + "title": "Convert Pdf To Bmp With Font Substitution__V2", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "convert-pdf-to-high-resolution-multi-page-tiff.cs", + "title": "Convert PDF to High-Resolution Multi-Page TIFF", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfConverter to convert a PDF file into a single multi-page TIFF image with a 400 DPI resolution for archival quality.", "tags": [ "pdf", - "bmp", + "tiff", "conversion", - "font-substitution", + "high-resolution", "facade" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfConverter", + "Aspose.Pdf.Devices.Resolution", "Aspose.Pdf.Facades.PdfConverter.BindPdf", "Aspose.Pdf.Facades.PdfConverter.DoConvert", - "Aspose.Pdf.Facades.PdfConverter.HasNextImage", - "Aspose.Pdf.Facades.PdfConverter.GetNextImage", - "Aspose.Pdf.FontRepository.Substitutions.Add", - "Aspose.Pdf.Text.SimpleFontSubstitution" + "Aspose.Pdf.Facades.PdfConverter.SaveAsTIFF", + "Aspose.Pdf.Facades.PdfConverter.Close" ], "difficulty": "intermediate" }, { - "filename": "convert-pdf-to-jpeg-300-dpi.cs", - "title": "Convert PDF to JPEG Images at 300 DPI Using CropBox", - "description": "Shows how to convert each page of a PDF into high‑resolution JPEG images (300 DPI) using Aspose.Pdf's PdfConverter, which utilizes the CropBox for precise cropping.", + "filename": "convert-pdf-to-jpeg-300dpi-cropbox.cs", + "title": "Convert PDF to JPEG Images with 300 DPI and CropBox", + "description": "Demonstrates converting each page of a PDF to high‑resolution JPEG images (300 DPI) using the CropBox coordinate type for precise cropping.", "tags": [ "pdf", "jpeg", "conversion", "300dpi", - "facades" + "cropbox" ], "apis_used": [ - "PdfConverter", - "Resolution", - "PdfConverter.BindPdf", - "PdfConverter.DoConvert", - "PdfConverter.HasNextImage", - "PdfConverter.GetNextImage" + "Aspose.Pdf.Facades.PdfConverter", + "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.PageCoordinateType", + "Aspose.Pdf.Facades.PdfConverter.BindPdf", + "Aspose.Pdf.Facades.PdfConverter.DoConvert", + "Aspose.Pdf.Facades.PdfConverter.HasNextImage", + "Aspose.Pdf.Facades.PdfConverter.GetNextImage" ], "difficulty": "intermediate" }, { "filename": "convert-pdf-to-jpeg-96-dpi.cs", "title": "Convert PDF to JPEG Images at 96 DPI", - "description": "Demonstrates loading a PDF with Aspose.Pdf, setting a 96 DPI resolution, and converting each page to a JPEG image saved to a directory.", + "description": "Demonstrates converting each page of a PDF into separate JPEG files with a web‑friendly 96 DPI resolution using Aspose.Pdf.", "tags": [ "pdf", "jpeg", "conversion", "resolution", - "aspose" + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Devices.Resolution", - "Aspose.Pdf.Devices.JpegDevice", - "Aspose.Pdf.Devices.JpegDevice.Process", - "Aspose.Pdf.PageCollection" + "Aspose.Pdf.Facades.PdfConverter", + "Aspose.Pdf.Facades.PdfConverter.BindPdf", + "Aspose.Pdf.Facades.PdfConverter.Resolution", + "Aspose.Pdf.Facades.PdfConverter.DoConvert", + "Aspose.Pdf.Facades.PdfConverter.HasNextImage", + "Aspose.Pdf.Facades.PdfConverter.GetNextImage", + "Aspose.Pdf.Devices.Resolution" ], "difficulty": "beginner" }, { - "filename": "convert-pdf-to-jpeg-first-5-pages.cs", + "filename": "convert-pdf-to-jpeg-first-5-pages-200-dpi.cs", "title": "Convert PDF to JPEG Images (First 5 Pages, 200 DPI)", - "description": "Demonstrates loading a PDF with Aspose.Pdf, setting a 200 DPI resolution, and converting up to the first five pages to JPEG files.", + "description": "Demonstrates how to convert a PDF document to JPEG images using Aspose.Pdf, limiting the conversion to the first five pages and setting a resolution of 200 DPI.", "tags": [ "pdf", "jpeg", "conversion", - "aspose", - "dpi" + "resolution", + "pages" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Devices.Resolution", - "Aspose.Pdf.Devices.JpegDevice", - "Aspose.Pdf.Devices.JpegDevice.Process", - "Aspose.Pdf.Page" + "Aspose.Pdf.Facades.PdfConverter", + "Aspose.Pdf.Facades.PdfConverter.BindPdf", + "Aspose.Pdf.Facades.PdfConverter.DoConvert", + "Aspose.Pdf.Facades.PdfConverter.GetNextImage", + "Aspose.Pdf.Devices.Resolution" ], - "difficulty": "beginner" + "difficulty": "intermediate" + }, + { + "filename": "convert-pdf-to-jpeg-first-5-pages.cs", + "title": "Convert Pdf To Jpeg First 5 Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "convert-pdf-to-jpeg-images.cs", - "title": "Convert PDF to JPEG Images Using PdfConverter", - "description": "Shows how to convert each page of a PDF into separate JPEG files while preserving the original page dimensions and color depth using Aspose.Pdf.Facades.PdfConverter.", + "title": "Convert PDF to JPEG Images", + "description": "Demonstrates converting each page of a PDF into separate JPEG files while preserving the original page dimensions using Aspose.Pdf.Facades.PdfConverter.", "tags": [ "pdf", "jpeg", "conversion", - "facade", - "aspose" + "aspose", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfConverter", - "Aspose.Pdf.Facades.PdfConverter.BindPdf", - "Aspose.Pdf.Facades.PdfConverter.DoConvert", - "Aspose.Pdf.Facades.PdfConverter.HasNextImage", - "Aspose.Pdf.Facades.PdfConverter.GetNextImage" + "PdfConverter.BindPdf", + "PdfConverter.DoConvert", + "PdfConverter.HasNextImage", + "PdfConverter.GetNextImage" ], "difficulty": "beginner" }, { "filename": "convert-pdf-to-jpeg-images__v2.cs", - "title": "Convert PDF to JPEG Images using PdfConverter", - "description": "Shows how to convert each page of a PDF into separate JPEG files using Aspose.Pdf's PdfConverter facade with default settings.", + "title": "Convert PDF to JPEG Images Using PdfConverter", + "description": "Demonstrates how to extract each page of a PDF as a separate JPEG file using Aspose.Pdf's PdfConverter facade.", "tags": [ "pdf", "jpeg", "conversion", "facade", - "aspose" + "image" ], "apis_used": [ "Aspose.Pdf.Facades.PdfConverter", @@ -11990,37 +14285,65 @@ "difficulty": "beginner" }, { - "filename": "convert-pdf-to-jpeg-preview.cs", - "title": "Convert PDF Pages to JPEG Images (Preview)", - "description": "Shows how to convert the first three pages of a PDF document into separate JPEG files using Aspose.Pdf's PdfConverter facade.", + "filename": "convert-pdf-to-jpeg-images__v3.cs", + "title": "Convert PDF to JPEG Images (One Image per Page)", + "description": "Shows how to use Aspose.Pdf's PdfConverter to convert each page of a PDF document into separate JPEG files, saving them with a page-number suffix.", "tags": [ "pdf", "jpeg", "conversion", - "preview", + "aspose", "facade" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfConverter", - "Aspose.Pdf.Facades.PdfConverter.StartPage", - "Aspose.Pdf.Facades.PdfConverter.EndPage", "Aspose.Pdf.Facades.PdfConverter.DoConvert", "Aspose.Pdf.Facades.PdfConverter.HasNextImage", "Aspose.Pdf.Facades.PdfConverter.GetNextImage" ], + "difficulty": "intermediate" + }, + { + "filename": "convert-pdf-to-jpeg-preview-images.cs", + "title": "Convert PDF to JPEG Preview Images (Pages 1-3)", + "description": "Shows how to use Aspose.Pdf.Facades.PdfConverter to render pages 1 through 3 of a PDF as JPEG files for a preview.", + "tags": [ + "pdf", + "jpeg", + "preview", + "conversion", + "facade" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfConverter", + "PdfConverter.BindPdf", + "PdfConverter.StartPage", + "PdfConverter.EndPage", + "PdfConverter.DoConvert", + "PdfConverter.HasNextImage", + "PdfConverter.GetNextImage" + ], "difficulty": "beginner" }, + { + "filename": "convert-pdf-to-jpeg-preview.cs", + "title": "Convert Pdf To Jpeg Preview", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "convert-pdf-to-jpeg-with-font-substitution.cs", "title": "Convert PDF to JPEG with Font Substitution", - "description": "Shows how to load a PDF, apply a default font for missing fonts, and convert each page to JPEG images using Aspose.Pdf.", + "description": "Shows how to convert each page of a PDF into JPEG images while applying a custom font substitution for any missing fonts using Aspose.Pdf.", "tags": [ "pdf", "jpeg", "font-substitution", "conversion", - "aspose" + "facade" ], "apis_used": [ "Aspose.Pdf.Document", @@ -12035,70 +14358,57 @@ }, { "filename": "convert-pdf-to-multi-page-tiff-300-dpi.cs", - "title": "Convert PDF to Multi‑Page TIFF at 300 DPI", - "description": "Demonstrates how to use Aspose.Pdf's PdfConverter facade to convert a PDF document into a single multi‑page TIFF image with a 300 DPI resolution.", + "title": "Convert PDF to Multi-Page TIFF at 300 DPI", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfConverter to convert a PDF document into a single multi-page TIFF image with a 300 DPI resolution.", "tags": [ "pdf", "tiff", "conversion", - "resolution", - "facade" + "300dpi", + "aspose" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfConverter", - "Aspose.Pdf.Devices.Resolution", - "PdfConverter.BindPdf", - "PdfConverter.DoConvert", - "PdfConverter.SaveAsTIFF" + "Aspose.Pdf.Facades.PdfConverter.BindPdf", + "Aspose.Pdf.Facades.PdfConverter.Resolution", + "Aspose.Pdf.Facades.PdfConverter.DoConvert", + "Aspose.Pdf.Facades.PdfConverter.SaveAsTIFF", + "Aspose.Pdf.Devices.Resolution" ], "difficulty": "intermediate" }, { "filename": "convert-pdf-to-multi-page-tiff-400-dpi.cs", - "title": "Convert PDF to Multi-Page TIFF at 400 DPI", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfConverter to convert a PDF into a single multi-page TIFF image with 400 DPI resolution for archival quality.", - "tags": [ - "pdf", - "tiff", - "conversion", - "high-resolution", - "facade" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfConverter", - "Aspose.Pdf.Devices.Resolution", - "PdfConverter.BindPdf", - "PdfConverter.DoConvert", - "PdfConverter.SaveAsTIFF" - ], - "difficulty": "beginner" + "title": "Convert Pdf To Multi Page Tiff 400 Dpi", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "convert-pdf-to-multi-page-tiff-600-dpi.cs", - "title": "Convert PDF to Multi‑Page TIFF at 600 DPI", - "description": "Demonstrates how to use Aspose.Pdf's PdfConverter to bind a PDF, set a 600 DPI resolution, and save all pages as a single multi‑page TIFF image.", + "title": "Convert PDF to Multi-Page TIFF at 600 DPI", + "description": "Demonstrates how to use Aspose.Pdf's PdfConverter to convert a PDF document into a single multi-page TIFF image with a resolution of 600 DPI.", "tags": [ "pdf", "tiff", "conversion", - "600dpi", - "aspose.pdf" + "resolution", + "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.PdfConverter", "Aspose.Pdf.Facades.PdfConverter.BindPdf", - "Aspose.Pdf.Facades.PdfConverter.Resolution", "Aspose.Pdf.Facades.PdfConverter.DoConvert", "Aspose.Pdf.Facades.PdfConverter.SaveAsTIFF", "Aspose.Pdf.Devices.Resolution" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "convert-pdf-to-multi-page-tiff-with-font-substitution.cs", - "title": "Convert PDF to Multi‑Page TIFF with Symbol to Arial Font Substitution", - "description": "Demonstrates loading a PDF, applying a fallback Arial font for missing Symbol characters, and converting the result to a single multi‑page TIFF image.", + "title": "Convert PDF to Multi-Page TIFF with Font Substitution", + "description": "Demonstrates loading a PDF, applying a Courier → Liberation Mono font substitution, and converting all pages to a single multi-page TIFF using Aspose.Pdf.Facades.", "tags": [ "pdf", "tiff", @@ -12108,19 +14418,18 @@ ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PdfSaveOptions", + "Aspose.Pdf.FontRepository", + "Aspose.Pdf.Text.SimpleFontSubstitution", "Aspose.Pdf.Facades.PdfConverter", - "Document.Save", - "PdfConverter.BindPdf", - "PdfConverter.DoConvert", - "PdfConverter.SaveAsTIFF" + "Aspose.Pdf.Facades.PdfConverter.DoConvert", + "Aspose.Pdf.Facades.PdfConverter.SaveAsTIFF" ], "difficulty": "intermediate" }, { "filename": "convert-pdf-to-multi-page-tiff-with-font-substitution__v2.cs", - "title": "Convert PDF to Multi‑Page TIFF with Font Substitution", - "description": "Demonstrates loading a PDF, substituting missing Symbol fonts with Arial Unicode MS, and converting the document to a single multi‑page TIFF image using Aspose.Pdf.", + "title": "Convert PDF to Multi-Page TIFF with Font Substitution", + "description": "Demonstrates how to convert a PDF to a single multi-page TIFF while substituting missing Symbol fonts with Arial Unicode MS for proper character rendering.", "tags": [ "pdf", "tiff", @@ -12138,21 +14447,64 @@ ], "difficulty": "intermediate" }, + { + "filename": "convert-pdf-to-multi-page-tiff.cs", + "title": "Convert PDF to Multi-Page TIFF with Font Substitution", + "description": "Demonstrates converting a PDF document to a multi-page TIFF image using Aspose.Pdf, with optional Symbol-to-Arial Unicode font substitution during rendering.", + "tags": [ + "pdf", + "tiff", + "conversion", + "font-substitution", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.Devices.TiffSettings", + "Aspose.Pdf.Devices.TiffDevice", + "Aspose.Pdf.Devices.TiffDevice.Process", + "Aspose.Pdf.Devices.CompressionType", + "Aspose.Pdf.Devices.ColorDepth", + "Aspose.Pdf.Devices.ShapeType" + ], + "difficulty": "intermediate" + }, + { + "filename": "convert-pdf-to-png-300-dpi.cs", + "title": "Convert PDF to PNG Images at 300 DPI", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, set a 300 DPI resolution, and render each page to separate PNG files.", + "tags": [ + "pdf", + "png", + "conversion", + "300dpi", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.Devices.PngDevice", + "Aspose.Pdf.Devices.PngDevice.Process", + "Aspose.Pdf.Page" + ], + "difficulty": "beginner" + }, { "filename": "convert-pdf-to-png-72-dpi.cs", "title": "Convert PDF to PNG Images with 72 DPI Preview", - "description": "Demonstrates how to convert each page of a PDF into separate PNG files using Aspose.Pdf's PdfConverter with a 72 DPI resolution for quick preview generation.", + "description": "Demonstrates how to convert each page of a PDF into PNG images at 72 DPI using Aspose.Pdf's PdfConverter facade.", "tags": [ "pdf", "png", "conversion", "preview", - "aspose" + "resolution" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfConverter", "Aspose.Pdf.Facades.PdfConverter.BindPdf", + "Aspose.Pdf.Facades.PdfConverter.Resolution", "Aspose.Pdf.Facades.PdfConverter.DoConvert", "Aspose.Pdf.Facades.PdfConverter.HasNextImage", "Aspose.Pdf.Facades.PdfConverter.GetNextImage", @@ -12162,196 +14514,238 @@ }, { "filename": "convert-pdf-to-png-72-dpi__v2.cs", - "title": "Convert PDF to PNG Images at 72 DPI Using CropBox", - "description": "Demonstrates how to load a PDF with Aspose.Pdf, set a 72 DPI resolution, and convert each page to a PNG image while preserving the visible content via the CropBox.", + "title": "Convert PDF to PNG Images with 72 DPI", + "description": "Demonstrates loading a PDF using Aspose.Pdf, setting a 72 DPI resolution, and converting each page to PNG images while preserving the CropBox.", "tags": [ "pdf", "png", "conversion", "resolution", - "cropbox" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Devices.PngDevice", "Aspose.Pdf.Devices.Resolution", - "Aspose.Pdf.Page", + "Aspose.Pdf.Document.Pages", "Aspose.Pdf.Devices.PngDevice.Process" ], "difficulty": "beginner" }, { "filename": "convert-pdf-to-png-images.cs", - "title": "Convert PDF Pages to PNG Images Using PdfConverter", - "description": "Demonstrates converting each page of a PDF into separate PNG files with Aspose.Pdf's PdfConverter, using the default CropBox to capture only the visible page area.", + "title": "Convert PDF to PNG Images", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfConverter to convert each page of a PDF document into separate PNG files with sequential naming.", "tags": [ "pdf", "png", "conversion", - "cropbox", - "aspose-pdf" + "aspose-pdf", + "csharp" ], "apis_used": [ - "PdfConverter", - "PdfConverter.BindPdf", - "PdfConverter.DoConvert", - "PdfConverter.HasNextImage", - "PdfConverter.GetNextImage" + "Aspose.Pdf.Facades.PdfConverter", + "Aspose.Pdf.Facades.PdfConverter.BindPdf", + "Aspose.Pdf.Facades.PdfConverter.DoConvert", + "Aspose.Pdf.Facades.PdfConverter.HasNextImage", + "Aspose.Pdf.Facades.PdfConverter.GetNextImage" ], "difficulty": "beginner" }, { "filename": "convert-pdf-to-png-in-parallel.cs", + "title": "Convert Pdf To Png In Parallel", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "convert-pdf-to-png-parallel.cs", "title": "Convert PDF to PNG Images in Parallel", - "description": "Demonstrates loading a PDF with Aspose.Pdf, setting a resolution, and converting each page to a PNG file using parallel processing to speed up conversion.", + "description": "Demonstrates converting each page of a PDF into separate PNG files using Aspose.Pdf's PdfConverter with parallel processing to improve conversion speed.", "tags": [ "pdf", "png", - "conversion", "parallel", + "conversion", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Resolution", - "Aspose.Pdf.Devices.PngDevice", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Devices.PngDevice.Process" + "Aspose.Pdf.Facades.PdfConverter", + "Aspose.Pdf.Document.Pages.Count", + "Aspose.Pdf.Facades.PdfConverter.BindPdf", + "Aspose.Pdf.Facades.PdfConverter.DoConvert", + "Aspose.Pdf.Facades.PdfConverter.GetNextImage" ], "difficulty": "intermediate" }, { "filename": "convert-pdf-to-png-with-font-substitution.cs", "title": "Convert PDF to PNG with Font Substitution", - "description": "Shows how to convert each page of a PDF into PNG images while replacing missing Helvetica fonts with Times New Roman using Aspose.Pdf.", + "description": "Shows how to render each page of a PDF document to PNG images using Aspose.Pdf and replace missing Helvetica fonts with Times New Roman via font substitution.", "tags": [ "pdf", "png", "font-substitution", - "conversion", + "rendering", "aspose" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfConverter", - "Aspose.Pdf.Facades.PdfConverter.BindPdf", - "Aspose.Pdf.Facades.PdfConverter.DoConvert", - "Aspose.Pdf.Facades.PdfConverter.GetNextImage", - "Aspose.Pdf.Text.FontRepository.Substitutions", + "Aspose.Pdf.Document", + "Aspose.Pdf.Devices.PngDevice", + "Aspose.Pdf.Devices.PngDevice.Process", "Aspose.Pdf.Text.SimpleFontSubstitution", - "Aspose.Pdf.Devices.Resolution" + "Aspose.Pdf.FontRepository.Substitutions.Add" ], "difficulty": "intermediate" }, { "filename": "convert-pdf-to-png-with-font-substitution__v2.cs", "title": "Convert PDF to PNG with Font Substitution", - "description": "Shows how to convert each page of a PDF to PNG images while registering a generic font substitution (missing fonts replaced by Arial) using Aspose.Pdf.", + "description": "Shows how to convert each page of a PDF into PNG images while enabling font substitution for missing fonts using Aspose.Pdf.", "tags": [ "pdf", "png", - "conversion", "font-substitution", - "aspose-pdf" + "conversion", + "Aspose.Pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfConverter", - "Aspose.Pdf.Facades.PdfConverter.BindPdf", - "Aspose.Pdf.Facades.PdfConverter.DoConvert", - "Aspose.Pdf.Facades.PdfConverter.GetNextImage", - "Aspose.Pdf.Facades.PdfConverter.Close", - "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.Document", + "Aspose.Pdf.FontRepository", "Aspose.Pdf.Text.SimpleFontSubstitution", - "Aspose.Pdf.FontRepository.Substitutions.Add" + "Aspose.Pdf.Devices.PngDevice", + "Aspose.Pdf.Devices.PngDevice.Process" ], "difficulty": "intermediate" }, { "filename": "convert-pdf-to-tiff-images.cs", - "title": "Convert PDF to TIFF Images Using PdfConverter", - "description": "Demonstrates how to convert each page of a PDF into separate TIFF files using Aspose.Pdf's PdfConverter with default settings.", + "title": "Convert PDF to TIFF Images (One per Page)", + "description": "Demonstrates loading a PDF document and converting each page to an individual TIFF file using Aspose.Pdf's TiffDevice with default settings.", "tags": [ "pdf", "tiff", "conversion", - "facade", - "aspose" + "aspose.pdf", + "csharp" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfConverter", - "Aspose.Pdf.Facades.PdfConverter.BindPdf", - "Aspose.Pdf.Facades.PdfConverter.DoConvert", - "Aspose.Pdf.Facades.PdfConverter.HasNextImage", - "Aspose.Pdf.Facades.PdfConverter.GetNextImage", - "Aspose.Pdf.Facades.PdfConverter.Close" + "Aspose.Pdf.Document", + "Aspose.Pdf.Devices.TiffDevice", + "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Page" ], - "difficulty": "beginner" + "difficulty": "intermediate" } ] }, { "name": "facades-documents", - "file_count": 101, + "file_count": 153, "files": [ + "append-pages-from-multiple-pdfs.cs", + "append-pages-to-pdf.cs", "append-pdf-pages-using-pdffileeditor.cs", + "audit-log-pdf-page-deletion.cs", "batch-concatenate-pdfs.cs", "batch-create-3x2-nup-pdfs.cs", + "batch-create-nup-pdfs-3x2.cs", "batch-create-pdf-booklets-audit-logging.cs", + "batch-delete-pages-from-multiple-pdfs.cs", "batch-delete-pages-from-pdfs.cs", "batch-delete-pages-merge-pdfs.cs", "batch-insert-page-ranges.cs", "batch-resize-pdfs-to-a4.cs", + "batch-resize-pdfs-to-a5-and-create-booklets.cs", "compare-pdf-concatenation-overloads.cs", + "compare-pdf-concatenation-paths-streams.cs", + "concatenate-multiple-pdfs-measure-time.cs", + "concatenate-multiple-pdfs-with-logging.cs", "concatenate-multiple-pdfs.cs", "concatenate-multiple-pdfs__v2.cs", "concatenate-pdfs-add-page-numbers.cs", + "concatenate-pdfs-from-memory-streams.cs", "concatenate-pdfs-from-zip.cs", + "concatenate-pdfs-in-zip.cs", "concatenate-pdfs-preserve-metadata.cs", "concatenate-pdfs-using-stream-overloads.cs", "concatenate-pdfs-with-blank-pages.cs", "concatenate-split-pdfs-insertpages.cs", + "concatenate-split-pdfs.cs", + "concatenate-three-pdfs-into-one.cs", + "concatenate-two-pdfs-using-pdffileeditor.cs", "concatenate-two-pdfs.cs", "create-2up-pdf-layout.cs", "create-4up-pdf-using-streams.cs", + "create-4up-pdf-with-pdffileeditor.cs", "create-a-function-that-generates-a-booklet-using-left-pages-from-the-first-half-of-the-source-pdf.cs", - "create-booklet-a5-pdf.cs", + "create-a5-booklet-from-pdf.cs", + "create-booklet-custom-page-order.cs", "create-booklet-from-second-half-right-pages.cs", + "create-booklet-from-second-half.cs", "create-booklet-left-odd-pages.cs", + "create-booklet-pdf-custom-page-order.cs", + "create-booklet-pdf-custom-page-order__v2.cs", "create-booklet-pdf-custom-page-size.cs", "create-booklet-pdf-custom-page-size__v2.cs", + "create-booklet-pdf-delete-resize.cs", "create-booklet-pdf-from-stream.cs", + "create-booklet-pdf-left-odd-pages.cs", "create-booklet-pdf-left-right-pages.cs", "create-booklet-pdf-using-pdffileeditor.cs", "create-booklet-pdf-with-page-deletion.cs", - "create-booklet-pdf-with-specified-page-order.cs", + "create-booklet-pdf.cs", + "create-booklet-with-custom-page-order.cs", "create-custom-booklet-pdf.cs", + "create-left-half-booklet.cs", "create-nup-and-booklet-pdf.cs", "create-pdf-booklet-custom-page-order.cs", + "create-pdf-booklet-in-separate-folders.cs", + "create-pdf-booklet-with-audit-log.cs", "create-pdf-booklet.cs", "create-pdf-booklets.cs", + "create-verify-pdf-booklet-page-sizes.cs", + "delete-and-resize-pdf-pages.cs", "delete-pages-and-create-booklet.cs", "delete-pages-and-resize-pdf.cs", "delete-pages-apply-two-up-layout.cs", "delete-pages-concatenate-pdfs.cs", + "delete-pages-create-2up-pdf.cs", "delete-pages-from-multiple-pdfs.cs", "delete-pages-from-pdf-file-path.cs", + "delete-pages-from-pdfs.cs", "delete-pages-resize-pdf-contents.cs", + "delete-pages-resize-pdf.cs", + "delete-pdf-pages-cli.cs", "delete-pdf-pages-get-size.cs", "delete-pdf-pages.cs", "delete-specific-pages-from-pdf.cs", "delete-specific-pages-from-pdfs.cs", + "delete-specific-pages-pdf-error-handling.cs", "delete-specific-pages-with-error-handling.cs", - "extract-first-n-pages-pdf-splitfromfirst.cs", "extract-first-n-pages-using-splitfromfirst.cs", + "extract-front-pages-splitfromfirst-streams.cs", + "extract-front-part-pdf-splitfromfirst.cs", "insert-blank-separator-pages-when-merging-pdfs.cs", "insert-image-into-pdf-and-save-modified-file.cs", "insert-page-range-into-pdf-using-streams.cs", "insert-page-range-into-pdf.cs", + "insert-page-range-into-pdf__v2.cs", "insert-pages-at-start-of-pdf.cs", + "insert-pages-into-middle-of-pdf.cs", + "insert-pages-into-pdf-and-save.cs", "insert-pages-into-pdf-at-middle.cs", "insert-pages-into-pdf-in-memory.cs", "insert-pages-multiple-pdfs-into-base.cs", + "insert-pdf-pages-at-beginning.cs", + "insert-selected-pages-into-pdf.cs", "insert-specific-pages-into-pdf-using-streams.cs", "insert-specific-pages-into-pdf.cs", + "load-pdf-and-save-copy.cs", "load-pdf-and-save-with-aspose-pdf.cs", "load-pdf-document-from-file.cs", "log-pdf-page-deletions-audit.cs", @@ -12360,80 +14754,139 @@ "merge-multiple-pdf-streams.cs", "merge-multiple-pdfs-with-logging.cs", "merge-pdfs-from-memory-streams.cs", + "merge-pdfs-from-network-streams.cs", "merge-pdfs-from-urls.cs", + "merge-pdfs-with-blank-separator-pages.cs", "merge-three-pdfs-using-pdffileeditor.cs", + "nup-to-booklet-pdf.cs", "parallel-pdf-page-deletion.cs", + "pdffileeditor-delete-invalid-page-test.cs", "remove-first-and-last-pages-from-pdf.cs", "remove-pages-from-multiple-pdfs-in-parallel.cs", + "resize-and-concatenate-pdfs.cs", "resize-and-merge-pdfs.cs", - "resize-pdf-pages-to-custom-dimensions.cs", + "resize-pdf-landscape-booklet.cs", + "resize-pdf-pages-to-8-5x11-using-stream.cs", "resize-pdf-pages-using-streams.cs", + "resize-pdf-streams-verify-tiff.cs", "resize-pdf-to-letter-size.cs", "resize-pdfs-create-booklet.cs", "resize-pdfs-to-a5-and-create-booklet.cs", "rotate-first-pdf-page-save-to-memorystream.cs", "rotate-pdf-landscape-create-booklet.cs", + "rotate-pdf-page-save-to-memorystream.cs", "split-pdf-from-first-page-to-end-page.cs", "split-pdf-from-first-to-end-page.cs", "split-pdf-from-page-to-end.cs", "split-pdf-from-page-to-end__v2.cs", "split-pdf-from-start-page-to-end-using-streams.cs", + "split-pdf-from-start-page-to-end.cs", "split-pdf-from-start-to-end.cs", "split-pdf-into-bulk-page-ranges.cs", "split-pdf-into-bulk-page-sets.cs", + "split-pdf-into-bulk-page-sets__v2.cs", "split-pdf-into-bulks-using-memorystreams.cs", "split-pdf-into-individual-page-pdfs.cs", - "split-pdf-into-individual-page-streams.cs", "split-pdf-into-individual-pages.cs", + "split-pdf-into-individual-pages__v2.cs", + "split-pdf-into-multiple-bulks.cs", "split-pdf-into-multiple-page-ranges.cs", + "split-pdf-into-page-streams.cs", "split-pdf-into-single-page-pdfs.cs", "split-pdf-into-single-page-pdfs__v2.cs", - "test-delete-throws-exception-out-of-range-pages.cs", "test-makebooklet-null-pagesize.cs", "test-pdffileeditor-concatenate-empty-input.cs", + "test-pdffileeditor-concatenate-empty-streams.cs", + "validate-makebooklet-null-pagesize.cs", "validate-pdf-concatenation-page-order.cs", "validate-pdf-page-deletion.cs" ], "required_namespaces": [ "Aspose.Pdf.Facades", "Aspose.Pdf", - "Aspose.Pdf.Text" + "Aspose.Pdf.Text", + "Aspose.Pdf.Devices", + "Aspose.Pdf.Drawing" ], "key_apis": [ "PdfFileEditor", - "PdfPageEditor", "TextFragment", + "PdfPageEditor", "TextAbsorber", "FileInfo", + "PdfConverter", "PdfFileInfo", - "PdfFileMend", "PdfFileStamp" ], "examples": [ { - "filename": "append-pdf-pages-using-pdffileeditor.cs", - "title": "Append PDF Pages Using PdfFileEditor", - "description": "Demonstrates how to append all pages from a source PDF to the end of a destination PDF using Aspose.Pdf.Facades.PdfFileEditor. The example retrieves the source page count with Document and writes the merged result to a new file.", + "filename": "append-pages-from-multiple-pdfs.cs", + "title": "Append Pages from Multiple PDFs to a Base PDF", + "description": "Demonstrates inserting a specific page range from several source PDFs into a base PDF in a single operation using Aspose.Pdf.Facades.PdfFileEditor.TryAppend.", "tags": [ "pdf", "append", + "pages", "Aspose.Pdf", - "PdfFileEditor", - "merge" + "facade" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfFileEditor", + "Aspose.Pdf.Facades.PdfFileEditor.TryAppend", + "Aspose.Pdf.Facades.PdfFileEditor.LastException" + ], + "difficulty": "intermediate" + }, + { + "filename": "append-pages-to-pdf.cs", + "title": "Append Pages from One PDF to Another", + "description": "Shows how to append all pages of a source PDF to the end of a destination PDF using Aspose.Pdf's PdfFileEditor.", + "tags": [ + "pdf", + "append", + "merge", + "Aspose.Pdf", + "facade" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Document.Pages.Count", "Aspose.Pdf.Facades.PdfFileEditor", "Aspose.Pdf.Facades.PdfFileEditor.Append" ], - "difficulty": "beginner" + "difficulty": "intermediate" + }, + { + "filename": "append-pdf-pages-using-pdffileeditor.cs", + "title": "Append Pdf Pages Using Pdffileeditor", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "audit-log-pdf-page-deletion.cs", + "title": "Audit Log for PDF Page Deletion", + "description": "Demonstrates how to delete specific pages from a PDF using Aspose.Pdf's facade API and log the number of pages actually removed for audit purposes.", + "tags": [ + "pdf", + "delete-pages", + "audit", + "aspose-pdf", + "facade" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfFileEditor", + "Aspose.Pdf.Facades.PdfFileEditor.TryDelete", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Document.Pages.Count" + ], + "difficulty": "intermediate" }, { "filename": "batch-concatenate-pdfs.cs", "title": "Batch Concatenate PDFs in a Folder", - "description": "Shows how to combine all PDF files from a specified directory into a single PDF document using Aspose.Pdf.Facades.", + "description": "Shows how to gather all PDF files from a directory and merge them into a single PDF using Aspose.Pdf.Facades.", "tags": [ "pdf", "concatenate", @@ -12449,14 +14902,22 @@ }, { "filename": "batch-create-3x2-nup-pdfs.cs", - "title": "Batch Create 3‑by‑2 N‑up PDFs", - "description": "Demonstrates how to process multiple PDF files and generate N‑up versions with three columns and two rows using Aspose.Pdf.Facades.", + "title": "Batch Create 3X2 Nup Pdfs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "batch-create-nup-pdfs-3x2.cs", + "title": "Batch Create N‑up PDFs with 3 Columns and 2 Rows", + "description": "Shows how to iterate over a list of PDF files and generate N‑up versions using a 3‑column by 2‑row layout with Aspose.Pdf.Facades.", "tags": [ "pdf", "n-up", "batch", "aspose", - "facade" + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", @@ -12466,29 +14927,19 @@ }, { "filename": "batch-create-pdf-booklets-audit-logging.cs", - "title": "Batch Create PDF Booklets with Audit Logging", - "description": "Demonstrates processing multiple PDF files, converting each into a booklet using Aspose.Pdf.Facades.PdfFileEditor, and writing detailed audit information to a text log.", - "tags": [ - "pdf", - "booklet", - "batch", - "logging", - "aspose" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet", - "Aspose.Pdf.Facades.PdfFileEditor.ConversionLog" - ], - "difficulty": "intermediate" + "title": "Batch Create Pdf Booklets Audit Logging", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "batch-delete-pages-from-pdfs.cs", + "filename": "batch-delete-pages-from-multiple-pdfs.cs", "title": "Batch Delete Pages from Multiple PDFs", - "description": "Demonstrates how to loop through a directory of PDF files and delete specified pages from each document using Aspose.Pdf.Facades.PdfFileEditor.", + "description": "Demonstrates how to loop through PDF files in a folder and delete specific pages from each using Aspose.Pdf.Facades.PdfFileEditor.", "tags": [ "pdf", - "batch-processing", + "batch", "page-deletion", "aspose", "facade" @@ -12499,15 +14950,23 @@ ], "difficulty": "beginner" }, + { + "filename": "batch-delete-pages-from-pdfs.cs", + "title": "Batch Delete Pages From Pdfs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "batch-delete-pages-merge-pdfs.cs", "title": "Batch Delete Pages and Merge PDFs", - "description": "Shows how to remove specified pages from several PDF files and then concatenate the cleaned PDFs into one document using Aspose.Pdf.Facades.", + "description": "Shows how to remove specific pages from multiple PDF files and then concatenate the cleaned PDFs into a single document using Aspose.Pdf.Facades.", "tags": [ "pdf", - "batch-processing", "delete-pages", "merge", + "batch", "aspose" ], "apis_used": [ @@ -12520,55 +14979,99 @@ { "filename": "batch-insert-page-ranges.cs", "title": "Batch Insert Page Ranges from Multiple PDFs", - "description": "Shows how to iteratively insert specific page ranges from several source PDFs into a base PDF using Aspose.Pdf.Facades.PdfFileEditor.", + "description": "Shows how to insert selected pages from several source PDFs into a single destination PDF in a loop, updating the insert position after each operation.", "tags": [ "pdf", - "insert", - "pages", - "batch", - "aspose" + "batch-insert", + "page-range", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Insert" + "Aspose.Pdf.Facades.PdfFileEditor.TryInsert" ], "difficulty": "intermediate" }, { "filename": "batch-resize-pdfs-to-a4.cs", - "title": "Batch Resize PDFs to A4 Using PdfPageEditor", - "description": "Shows how to loop through all PDF files in a folder and resize each document to A4 page size using Aspose.Pdf's PdfPageEditor facade.", + "title": "Batch Resize PDFs to A4", + "description": "Iterates through all PDF files in a source folder, resizes each document to A4 page size using Aspose.Pdf.Facades, and saves the results to a target directory.", "tags": [ "pdf", - "resize", "batch", + "resize", "a4", "facade" ], "apis_used": [ "PdfPageEditor", "PdfPageEditor.BindPdf", - "PdfPageEditor.Save", - "PdfPageEditor.ApplyChanges", "PdfPageEditor.PageSize", + "PdfPageEditor.ApplyChanges", + "PdfPageEditor.Save", "PageSize" ], "difficulty": "intermediate" }, + { + "filename": "batch-resize-pdfs-to-a5-and-create-booklets.cs", + "title": "Batch Resize PDFs to A5 and Create Booklets", + "description": "Processes each PDF in a folder, resizes its pages to A5 dimensions, and then generates a booklet PDF from the resized file.", + "tags": [ + "pdf", + "batch-processing", + "resize", + "booklet", + "a5" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfFileEditor", + "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents", + "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet", + "Aspose.Pdf.PageSize" + ], + "difficulty": "intermediate" + }, { "filename": "compare-pdf-concatenation-overloads.cs", - "title": "Compare PDF Concatenation Overloads (File Path vs Stream)", - "description": "Demonstrates how to concatenate two PDFs using Aspose.Pdf's file‑path and stream overloads while measuring memory consumption for each approach.", + "title": "Compare Pdf Concatenation Overloads", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "compare-pdf-concatenation-paths-streams.cs", + "title": "Compare PDF Concatenation via File Paths and Streams", + "description": "Demonstrates how to concatenate two PDF files using Aspose.Pdf.Facades.PdfFileEditor with both file‑path and stream overloads, while measuring memory consumption for each approach.", "tags": [ "pdf", "concatenation", - "memory", "streams", + "memory", "aspose" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Facades.PdfFileEditor", + "PdfFileEditor.Concatenate(string, string, string)", + "PdfFileEditor.Concatenate(Stream, Stream, Stream)", + "PdfFileEditor.CloseConcatenatedStreams" + ], + "difficulty": "intermediate" + }, + { + "filename": "concatenate-multiple-pdfs-measure-time.cs", + "title": "Concatenate Multiple PDFs and Measure Execution Time", + "description": "Demonstrates how to concatenate fifty small PDF files using Aspose.Pdf.Facades.PdfFileEditor stream overloads, configure automatic stream closing, and measure the operation duration with Stopwatch.", + "tags": [ + "pdf", + "concatenation", + "performance", + "streams", + "aspose-pdf" + ], + "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", "Aspose.Pdf.Facades.PdfFileEditor.Concatenate", "Aspose.Pdf.Facades.PdfFileEditor.CloseConcatenatedStreams" @@ -12576,26 +15079,46 @@ "difficulty": "intermediate" }, { - "filename": "concatenate-multiple-pdfs.cs", - "title": "Concatenate Multiple PDFs into a Single Document", - "description": "Demonstrates how to merge several PDF files into one using Aspose.Pdf.Facades.PdfFileEditor. The program validates input files, concatenates them, and writes the result to a user‑specified output path.", + "filename": "concatenate-multiple-pdfs-with-logging.cs", + "title": "Concatenate Multiple PDFs with Logging", + "description": "Demonstrates how to merge several PDF files into a single document using Aspose.Pdf.Facades.PdfFileEditor while logging the input and output file names.", "tags": [ "pdf", "concatenation", + "logging", "aspose", - "facades", + "facades" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfFileEditor", + "Aspose.Pdf.Facades.PdfFileEditor.Concatenate", + "Aspose.Pdf.Facades.PdfFileEditor.CopyLogicalStructure", + "Aspose.Pdf.Facades.PdfFileEditor.ConversionLog" + ], + "difficulty": "beginner" + }, + { + "filename": "concatenate-multiple-pdfs.cs", + "title": "Concatenate Multiple PDFs", + "description": "Shows how to merge several PDF files into a single document using Aspose.Pdf's PdfFileEditor facade.", + "tags": [ + "pdf", + "concatenation", + "merge", + "facade", "command-line" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Concatenate" + "Aspose.Pdf.Facades.PdfFileEditor.Concatenate", + "Aspose.Pdf.Facades.PdfFileEditor.CloseConcatenatedStreams" ], "difficulty": "beginner" }, { "filename": "concatenate-multiple-pdfs__v2.cs", - "title": "Concatenate Multiple PDFs into a Single Document", - "description": "Shows how to merge several PDF files into one using Aspose.Pdf.Facades.PdfFileEditor with stream handling.", + "title": "Concatenate Multiple PDFs Using Aspose.Pdf", + "description": "Demonstrates reading PDF files as streams, merging them with Aspose.Pdf.Facades.PdfFileEditor, and saving the combined document to disk.", "tags": [ "pdf", "concatenation", @@ -12616,55 +15139,88 @@ "description": "Shows how to merge multiple PDF files into a single document and automatically insert page numbers using Aspose.Pdf.Facades.", "tags": [ "pdf", - "concatenation", - "page-numbering", + "concatenate", + "page-number", "aspose", "csharp" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Concatenate", - "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.PdfFileStamp.AddPageNumber", - "Aspose.Pdf.Facades.PdfFileStamp.Close" + "PdfFileEditor", + "PdfFileEditor.Concatenate", + "PdfFileStamp", + "PdfFileStamp.AddPageNumber", + "PdfFileStamp.StartingNumber", + "PdfFileStamp.Close" ], "difficulty": "intermediate" }, { - "filename": "concatenate-pdfs-from-zip.cs", - "title": "Concatenate PDFs from a ZIP Archive and Update the Archive", - "description": "The example extracts all PDF files from a ZIP archive, merges them into a single PDF using Aspose.Pdf.Facades, and writes the merged document back into the same archive.", + "filename": "concatenate-pdfs-from-memory-streams.cs", + "title": "Concatenate PDFs from Memory Streams to File", + "description": "Creates PDF documents in memory, concatenates them using Aspose.Pdf.Facades.PdfFileEditor, and writes the merged result directly to a file without intermediate storage.", "tags": [ "pdf", - "zip", "concatenation", - "aspose", + "memory-stream", + "aspose-pdf", + "file-output" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Facades.PdfFileEditor", + "Aspose.Pdf.Facades.PdfFileEditor.Concatenate" + ], + "difficulty": "beginner" + }, + { + "filename": "concatenate-pdfs-from-zip.cs", + "title": "Concatenate Pdfs From Zip", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "concatenate-pdfs-in-zip.cs", + "title": "Concatenate PDFs Inside a Zip Archive", + "description": "Shows how to read PDF files from a zip archive, merge them with Aspose.Pdf.Facades.PdfFileEditor, and write the merged PDF back into the same archive.", + "tags": [ + "zip", + "pdf-merge", + "aspose-pdf", + "csharp", "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", "Aspose.Pdf.Facades.PdfFileEditor.Concatenate", - "Aspose.Pdf.Facades.PdfFileEditor.CloseConcatenatedStreams" + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment" ], "difficulty": "intermediate" }, { "filename": "concatenate-pdfs-preserve-metadata.cs", "title": "Concatenate PDFs While Preserving Original Metadata", - "description": "Demonstrates how to merge multiple PDF files using Aspose.Pdf.Facades.PdfFileEditor and then copy the author, title, and other metadata from the first document to the merged output.", + "description": "Demonstrates how to merge multiple PDF files using PdfFileEditor and then copy the author, title, and other metadata from the first document to the merged result.", "tags": [ "pdf", "concatenation", "metadata", "aspose-pdf", - "facade" + "pdffileeditor" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", "Aspose.Pdf.Facades.PdfFileEditor", "Aspose.Pdf.Facades.PdfFileEditor.Concatenate", + "Aspose.Pdf.Facades.PdfFileEditor.CopyOutlines", + "Aspose.Pdf.Facades.PdfFileEditor.CopyLogicalStructure", "Aspose.Pdf.Document", - "Aspose.Pdf.DocumentInfo", + "Aspose.Pdf.Document.Info", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" @@ -12672,25 +15228,25 @@ { "filename": "concatenate-pdfs-using-stream-overloads.cs", "title": "Concatenate PDFs Using Stream Overloads", - "description": "Shows how to merge multiple PDF files into a single document by passing file streams to Aspose.Pdf.Facades.PdfFileEditor.Concatenate.", + "description": "Shows how to merge multiple PDF files passed as command‑line arguments into a single PDF using Aspose.Pdf.Facades PdfFileEditor with its stream‑based Concatenate overload.", "tags": [ "pdf", "concatenation", - "streams", - "aspose.pdf", - "console" + "stream", + "command-line", + "aspose.pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", "Aspose.Pdf.Facades.PdfFileEditor.Concatenate", "Aspose.Pdf.Facades.PdfFileEditor.CloseConcatenatedStreams" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "concatenate-pdfs-with-blank-pages.cs", "title": "Concatenate PDFs with Blank Pages", - "description": "Shows how to merge multiple PDF files into a single document while automatically inserting a blank page between each source PDF using Aspose.Pdf.", + "description": "Shows how to merge multiple PDF files and automatically insert a blank page between each document using Aspose.Pdf.", "tags": [ "pdf", "concatenation", @@ -12709,51 +15265,87 @@ }, { "filename": "concatenate-split-pdfs-insertpages.cs", - "title": "Concatenate Split PDFs Using InsertPages", - "description": "Demonstrates how to merge multiple split PDF files into a single document by iteratively inserting pages with Aspose.Pdf.Facades.PdfFileEditor.Insert.", + "title": "Concatenate Split Pdfs Insertpages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "concatenate-split-pdfs.cs", + "title": "Concatenate Split PDFs into a Single Document", + "description": "Shows how to merge a series of split PDF files into one PDF using Aspose.Pdf's PdfFileEditor.Insert method, with page counting and temporary file handling.", "tags": [ "pdf", - "concatenation", - "insertpages", + "merge", + "split", "aspose", - "facades" + "csharp" ], "apis_used": [ + "Aspose.Pdf.Facades.PdfFileEditor", + "Aspose.Pdf.Facades.PdfFileEditor.Insert", "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Document.Pages.Count" + ], + "difficulty": "intermediate" + }, + { + "filename": "concatenate-three-pdfs-into-one.cs", + "title": "Concatenate Three PDFs into a Single Document", + "description": "Demonstrates how to merge three PDF files into one using Aspose.Pdf.Facades.PdfFileEditor and the three‑argument Concatenate method, employing a temporary file for the intermediate result.", + "tags": [ + "pdf", + "concatenation", + "aspose-pdf", + "csharp", + "file-editor" + ], + "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Insert" + "PdfFileEditor.Concatenate" ], "difficulty": "intermediate" }, { - "filename": "concatenate-two-pdfs.cs", - "title": "Concatenate Two PDFs into a New PDF", - "description": "Shows how to merge two existing PDF files into a single PDF document using the Aspose.Pdf.Facades PdfFileEditor Concatenate overload.", + "filename": "concatenate-two-pdfs-using-pdffileeditor.cs", + "title": "Concatenate Two PDFs Using PdfFileEditor", + "description": "Shows how to merge two PDF files into a single document using the two‑file overload of PdfFileEditor.Concatenate, creating sample PDFs on the fly.", "tags": [ "pdf", - "merge", "concatenate", - "aspose", - "facade" + "merge", + "Aspose.Pdf", + "PdfFileEditor" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Concatenate" + "Aspose.Pdf.PdfFileEditor", + "Aspose.Pdf.PdfFileEditor.Concatenate", + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment" ], "difficulty": "beginner" }, + { + "filename": "concatenate-two-pdfs.cs", + "title": "Concatenate Two Pdfs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "create-2up-pdf-layout.cs", - "title": "Create 2‑up PDF Layout with Aspose.PdfFileEditor", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfFileEditor to generate a 2‑up (two pages per sheet) PDF by specifying columns and rows, and saves the result to a new file.", + "title": "Create 2-up PDF Layout with Aspose PdfFileEditor", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfFileEditor to combine two PDF pages onto a single page (2‑up) and save the result.", "tags": [ "pdf", - "n-up", - "aspose.pdf", + "nup", + "aspose", "csharp", - "document-processing" + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", @@ -12763,20 +15355,28 @@ }, { "filename": "create-4up-pdf-using-streams.cs", - "title": "Create a 4‑up PDF using PdfFileEditor and streams", - "description": "Demonstrates applying a 4‑up (2 × 2) layout to a PDF via the PdfFileEditor.MakeNUp stream overload and storing the result in a memory stream.", + "title": "Create 4Up Pdf Using Streams", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-4up-pdf-with-pdffileeditor.cs", + "title": "Create 4‑up PDF using PdfFileEditor and MemoryStream", + "description": "Demonstrates how to apply a 4‑up (2×2) layout to an existing PDF by using the PdfFileEditor.TryMakeNUp overload that works with streams, keeping the result in memory before optionally saving it to disk.", "tags": [ "pdf", - "n-up", + "4-up", "memory-stream", - "aspose-pdf", - "facade" + "Aspose.Pdf", + "N-up" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.MakeNUp" + "Aspose.Pdf.Facades.PdfFileEditor.TryMakeNUp" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "create-a-function-that-generates-a-booklet-using-left-pages-from-the-first-half-of-the-source-pdf.cs", @@ -12787,15 +15387,15 @@ "difficulty": "" }, { - "filename": "create-booklet-a5-pdf.cs", - "title": "Create Booklet PDF with Custom A5 Page Size", - "description": "Demonstrates how to generate a booklet from an existing PDF using the Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet overload that accepts a custom page size (A5).", + "filename": "create-a5-booklet-from-pdf.cs", + "title": "Create A5 Booklet from PDF", + "description": "Demonstrates how to generate a booklet with A5 page size from an existing PDF using Aspose.Pdf's PdfFileEditor.MakeBooklet overload.", "tags": [ "booklet", "A5", "pdf", "Aspose.Pdf", - "facade" + "page-size" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", @@ -12805,166 +15405,208 @@ "difficulty": "beginner" }, { - "filename": "create-booklet-from-second-half-right-pages.cs", - "title": "Create Booklet from Second Half Right Pages", - "description": "Shows how to generate a booklet PDF that includes only the odd‑numbered (right‑hand) pages from the second half of a source PDF using Aspose.Pdf.", + "filename": "create-booklet-custom-page-order.cs", + "title": "Create Booklet with Custom Left/Right Page Order", + "description": "Demonstrates adding visible page numbers, defining custom left and right page arrays, and using Aspose.Pdf's MakeBooklet to generate a booklet with the specified order, then verifies the result by extracting the page numbers.", "tags": [ "booklet", - "pdf", - "right-pages", + "custom-pages", "Aspose.Pdf", - "c#" + "page-numbering", + "pdf-manipulation" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.TextAbsorber", "Aspose.Pdf.Facades.PdfFileEditor", "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Document.Pages.Count" + "Aspose.Pdf.Position", + "Aspose.Pdf.Color" ], "difficulty": "intermediate" }, { - "filename": "create-booklet-left-odd-pages.cs", - "title": "Create Booklet PDF with Left Pages as Odd Numbers", - "description": "Shows how to use Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet to reorder pages and generate a booklet PDF where left‑hand pages are odd‑numbered.", + "filename": "create-booklet-from-second-half-right-pages.cs", + "title": "Create Booklet From Second Half Right Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-booklet-from-second-half.cs", + "title": "Create Booklet from Second Half of PDF", + "description": "Demonstrates how to generate a booklet PDF where the left pages come from the first half of a source document and the right pages come from the second half, using Aspose.Pdf's MakeBooklet method.", "tags": [ "booklet", "pdf", - "page-order", - "Aspose.Pdf", - "PdfFileEditor" + "aspose", + "page-splitting", + "facades" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Document.Pages.Count" + "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet" ], "difficulty": "intermediate" }, { - "filename": "create-booklet-pdf-custom-page-size.cs", - "title": "Create Booklet PDF with Custom Page Size Using Streams", - "description": "Demonstrates how to generate a booklet PDF from an existing document using Aspose.Pdf's PdfFileEditor facade, reading and writing via streams and specifying a custom page size such as A5.", + "filename": "create-booklet-left-odd-pages.cs", + "title": "Create Booklet Left Odd Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-booklet-pdf-custom-page-order.cs", + "title": "Create Booklet PDF with Custom Page Order", + "description": "Demonstrates how to generate a booklet PDF by specifying left‑hand and right‑hand page sequences using Aspose.Pdf.Facades.PdfFileEditor.", "tags": [ "booklet", - "streams", - "page-size", "pdf", + "aspose", + "page-order", "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet", - "Aspose.Pdf.PageSize" + "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet" ], "difficulty": "beginner" }, { - "filename": "create-booklet-pdf-custom-page-size__v2.cs", - "title": "Create Booklet PDF with Custom Page Size", - "description": "Demonstrates how to generate a booklet PDF from an existing PDF stream using a custom 5.5×8.5‑inch page size and save it to disk.", + "filename": "create-booklet-pdf-custom-page-order__v2.cs", + "title": "Create Booklet PDF with Custom Page Order", + "description": "Demonstrates how to generate a booklet PDF using Aspose.Pdf.Facades by specifying left and right page sequences.", "tags": [ "booklet", - "custom-page-size", "pdf", "aspose", - "csharp" + "page-order", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet", - "Aspose.Pdf.PageSize" + "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet" ], "difficulty": "beginner" }, { - "filename": "create-booklet-pdf-from-stream.cs", - "title": "Create Booklet PDF from Stream", - "description": "Shows how to use Aspose.Pdf.Facades to convert an input PDF stream into a booklet‑formatted PDF and return it as a MemoryStream.", + "filename": "create-booklet-pdf-custom-page-size.cs", + "title": "Create Booklet PDF with Custom Page Size", + "description": "Demonstrates how to generate a booklet from an existing PDF while specifying a custom page dimension (A5) using Aspose.Pdf's Facade API.", "tags": [ "booklet", "pdf", - "stream", + "custom-page-size", "Aspose.Pdf", - "memory" + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet" + "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet", + "Aspose.Pdf.PageSize" ], "difficulty": "beginner" }, { - "filename": "create-booklet-pdf-left-right-pages.cs", - "title": "Create Booklet PDF with Custom Left/Right Page Order", - "description": "Shows how to split a source PDF into odd (right‑hand) and even (left‑hand) page collections and generate a booklet using Aspose.Pdf's MakeBooklet method.", + "filename": "create-booklet-pdf-custom-page-size__v2.cs", + "title": "Create Booklet PDF with Custom 5.5x8.5 Inch Page Size", + "description": "Demonstrates how to generate a booklet from an existing PDF stream using Aspose.Pdf.Facades, specifying a custom 5.5 × 8.5 inch page size, and saving the result to disk.", "tags": [ "booklet", + "custom-page-size", "pdf", - "page-order", - "aspose", - "csharp" + "aspose.pdf", + "facades" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Document.Pages.Count", "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet" + "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet", + "Aspose.Pdf.PageSize" ], "difficulty": "intermediate" }, { - "filename": "create-booklet-pdf-using-pdffileeditor.cs", - "title": "Create Booklet PDF Using PdfFileEditor", - "description": "Shows how to generate a booklet PDF from existing documents with Aspose.Pdf.Facades PdfFileEditor.MakeBooklet and validates the resulting file.", + "filename": "create-booklet-pdf-delete-resize.cs", + "title": "Create Booklet PDF After Deleting and Resizing Pages", + "description": "Shows how to remove selected pages, resize all page contents, and generate a booklet version of a PDF using Aspose.Pdf.Facades.", "tags": [ - "booklet", "pdf", - "aspose", - "pdffileeditor", - "automation" + "booklet", + "delete-pages", + "resize", + "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet", - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Document.Pages.Count" + "Aspose.Pdf.Facades.PdfFileEditor.Delete", + "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents", + "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet" ], "difficulty": "intermediate" }, { - "filename": "create-booklet-pdf-with-page-deletion.cs", - "title": "Create Booklet PDF with Page Deletion and Resizing", - "description": "Demonstrates how to delete specific pages, resize page contents, and convert a PDF into a booklet using Aspose.Pdf.Facades.", + "filename": "create-booklet-pdf-from-stream.cs", + "title": "Create Booklet Pdf From Stream", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-booklet-pdf-left-odd-pages.cs", + "title": "Create Booklet PDF with Left Pages as Odd Numbers", + "description": "Shows how to use Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet to generate a booklet PDF from input streams while defining odd-numbered left pages and even-numbered right pages.", "tags": [ - "pdf", "booklet", - "page-deletion", - "resize", - "aspose" + "pdf", + "aspose", + "pdfeditor", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Delete", - "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents", "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet" ], - "difficulty": "intermediate" + "difficulty": "beginner" + }, + { + "filename": "create-booklet-pdf-left-right-pages.cs", + "title": "Create Booklet Pdf Left Right Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-booklet-pdf-using-pdffileeditor.cs", + "title": "Create Booklet Pdf Using Pdffileeditor", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-booklet-pdf-with-page-deletion.cs", + "title": "Create Booklet Pdf With Page Deletion", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "create-booklet-pdf-with-specified-page-order.cs", - "title": "Create Booklet PDF with Specified Page Order", - "description": "Shows how to generate a booklet PDF by defining left and right page sequences using Aspose.Pdf.Facades.", + "filename": "create-booklet-pdf.cs", + "title": "Create Booklet PDF from Stream", + "description": "Shows how to convert an input PDF stream into a booklet PDF using Aspose.Pdf's PdfFileEditor and return the result as a MemoryStream.", "tags": [ "booklet", "pdf", - "aspose", - "page-order", + "memorystream", + "aspose-pdf", "facade" ], "apis_used": [ @@ -12974,87 +15616,112 @@ "difficulty": "beginner" }, { - "filename": "create-custom-booklet-pdf.cs", - "title": "Create Custom Booklet PDF with Specified Page Order", - "description": "Demonstrates generating a booklet PDF using PdfFileEditor.MakeBooklet with custom left and right page arrays and verifies the resulting page order by extracting text from each page.", + "filename": "create-booklet-with-custom-page-order.cs", + "title": "Create Booklet PDF with Custom Left/Right Page Order", + "description": "Shows how to generate a booklet PDF using Aspose.Pdf by providing separate left‑hand (odd) and right‑hand (even) page sequences.", "tags": [ "booklet", - "custom-pages", - "aspose-pdf", - "makebooklet", - "text-extraction" + "pdf", + "custom-page-order", + "aspose.pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet", - "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextAbsorber", - "Aspose.Pdf.Page.Accept" + "PdfFileEditor.MakeBooklet", + "Aspose.Pdf.PageSize", + "PdfFileEditor", + "PageSize.A4" ], "difficulty": "intermediate" }, { - "filename": "create-nup-and-booklet-pdf.cs", - "title": "Create N‑up Layout and Convert to Booklet PDF", - "description": "Demonstrates how to generate a 2×2 N‑up PDF using Aspose.Pdf.Facades and then transform that intermediate file into a printable booklet.", + "filename": "create-custom-booklet-pdf.cs", + "title": "Create Custom Booklet Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-left-half-booklet.cs", + "title": "Create Left-Half Booklet from PDF", + "description": "Shows how to generate a booklet PDF using only the even-numbered (left) pages from the first half of a source PDF by leveraging Aspose.Pdf's Document and PdfFileEditor classes.", "tags": [ - "nup", "booklet", "pdf", + "left-pages", "aspose", - "facade" + "facades" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.MakeNUp", "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet" ], "difficulty": "intermediate" }, + { + "filename": "create-nup-and-booklet-pdf.cs", + "title": "Create Nup And Booklet Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "create-pdf-booklet-custom-page-order.cs", - "title": "Create PDF Booklet with Custom Page Order", - "description": "Demonstrates using Aspose.Pdf.Facades.PdfFileEditor to generate a booklet PDF by specifying left and right page sequences.", + "title": "Create Pdf Booklet Custom Page Order", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-pdf-booklet-in-separate-folders.cs", + "title": "Create PDF Booklets in Separate Output Folders", + "description": "Demonstrates how to generate a booklet PDF from each source file using Aspose.Pdf.Facades and store the result in its own output directory.", "tags": [ "pdf", "booklet", "aspose", - "page-arrangement", - "facades" + "batch", + "output-directory" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "create-pdf-booklet.cs", - "title": "Create PDF Booklet Using Aspose.Pdf", - "description": "Demonstrates how to generate a booklet PDF from an existing document using the PdfFileEditor.MakeBooklet method with default settings.", + "filename": "create-pdf-booklet-with-audit-log.cs", + "title": "Create PDF Booklet with Audit Log", + "description": "Demonstrates how to generate a booklet PDF using Aspose.Pdf.Facades.PdfFileEditor while logging each step and the conversion log to a text file for audit purposes.", "tags": [ "pdf", "booklet", - "Aspose.Pdf", - "PdfFileEditor", - "C#" + "audit-log", + "aspose", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet" + "PdfFileEditor.MakeBooklet", + "PdfFileEditor.ConversionLog" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "create-pdf-booklets.cs", - "title": "Create Booklet PDFs for Multiple Files", - "description": "Shows how to generate a booklet PDF for each source PDF and place the result in a dedicated output folder using Aspose.Pdf.Facades.", + "filename": "create-pdf-booklet.cs", + "title": "Create Booklet PDF with Aspose.Pdf", + "description": "Shows how to generate a booklet PDF from an existing file using PdfFileEditor.MakeBooklet with default settings.", "tags": [ "booklet", "pdf", - "aspose", - "batch", - "facade" + "Aspose.Pdf", + "facade", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", @@ -13063,26 +15730,39 @@ "difficulty": "beginner" }, { - "filename": "delete-pages-and-create-booklet.cs", - "title": "Delete Pages and Create Booklet from PDF", - "description": "Shows how to remove specific pages from a PDF file and then generate a booklet layout using Aspose.Pdf.Facades.", + "filename": "create-pdf-booklets.cs", + "title": "Create Pdf Booklets", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-verify-pdf-booklet-page-sizes.cs", + "title": "Create and Verify PDF Booklet with Various Page Sizes", + "description": "Demonstrates generating sample PDFs, concatenating them, and using Aspose.Pdf's PdfFileEditor to create a booklet while reporting different page size configurations.", "tags": [ "pdf", - "delete-pages", "booklet", - "facade" + "page-size", + "aspose", + "testing" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Delete", - "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet" + "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet", + "Aspose.Pdf.Facades.PdfFileEditor.Concatenate", + "Aspose.Pdf.PageSize" ], "difficulty": "intermediate" }, { - "filename": "delete-pages-and-resize-pdf.cs", - "title": "Delete Pages and Resize PDF Content", - "description": "Shows how to remove specific pages from a PDF, resize the remaining page contents, and return the processed document as a MemoryStream.", + "filename": "delete-and-resize-pdf-pages.cs", + "title": "Delete and Resize PDF Pages", + "description": "Shows how to delete selected pages from a PDF, resize the remaining pages, and return the processed document as a MemoryStream using Aspose.Pdf.Facades.", "tags": [ "pdf", "delete-pages", @@ -13098,73 +15778,110 @@ "difficulty": "intermediate" }, { - "filename": "delete-pages-apply-two-up-layout.cs", - "title": "Delete Pages and Apply 2‑up Layout to PDF", - "description": "Shows how to remove selected pages from a PDF stream and then create a 2‑up (side‑by‑side) layout using Aspose.Pdf, saving the result to an output stream.", + "filename": "delete-pages-and-create-booklet.cs", + "title": "Delete Pages and Create Booklet from PDF", + "description": "Shows how to remove specific pages from a PDF and then generate a booklet using Aspose.Pdf's PdfFileEditor.", "tags": [ "pdf", - "page-deletion", - "two-up", - "nup", - "aspose" + "delete-pages", + "booklet", + "facade", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", "Aspose.Pdf.Facades.PdfFileEditor.Delete", - "Aspose.Pdf.Facades.PdfFileEditor.MakeNUp", - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Pages.Add" + "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet" ], "difficulty": "intermediate" }, + { + "filename": "delete-pages-and-resize-pdf.cs", + "title": "Delete Pages And Resize Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "delete-pages-apply-two-up-layout.cs", + "title": "Delete Pages Apply Two Up Layout", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "delete-pages-concatenate-pdfs.cs", - "title": "Delete Pages and Concatenate PDFs with PdfFileEditor", - "description": "Demonstrates removing selected pages from a PDF and then merging the edited PDF with another document using Aspose.Pdf's PdfFileEditor.", + "title": "Delete Pages and Concatenate PDFs", + "description": "Shows how to remove selected pages from a PDF and then merge the resulting document with another PDF using Aspose.Pdf.Facades.PdfFileEditor.", "tags": [ "pdf", "delete-pages", "concatenate", "aspose", - "pdffileeditor" + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", "Aspose.Pdf.Facades.PdfFileEditor.Delete", - "Aspose.Pdf.Facades.PdfFileEditor.Concatenate", - "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextFragment" + "Aspose.Pdf.Facades.PdfFileEditor.Concatenate" ], "difficulty": "intermediate" }, { - "filename": "delete-pages-from-multiple-pdfs.cs", - "title": "Delete Specific Pages from Multiple PDFs", - "description": "Shows how to use Aspose.Pdf.Facades.PdfFileEditor to remove given page numbers from each PDF in a collection and save the cleaned files.", + "filename": "delete-pages-create-2up-pdf.cs", + "title": "Delete Pages and Create 2‑up PDF Layout", + "description": "Shows how to remove specified pages from a PDF stream and then arrange the remaining pages in a 2‑up (two pages per sheet) layout, outputting the result to another stream.", "tags": [ "pdf", "page-deletion", - "aspose.pdf", - "facade", - "csharp" + "2-up", + "nup", + "stream" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Delete" + "Aspose.Pdf.Facades.PdfFileEditor.Delete", + "Aspose.Pdf.Facades.PdfFileEditor.MakeNUp" ], "difficulty": "intermediate" }, + { + "filename": "delete-pages-from-multiple-pdfs.cs", + "title": "Delete Pages From Multiple Pdfs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "delete-pages-from-pdf-file-path.cs", "title": "Delete Pages 2‑5 from PDF Using File‑Path Overload", - "description": "Demonstrates how to remove specific pages (2 through 5) from a PDF file using Aspose.Pdf.Facades.PdfFileEditor with the file‑path overload.", + "description": "Demonstrates how to remove specific pages (2‑5) from a PDF file by using the PdfFileEditor.Delete method that works with input and output file paths.", "tags": [ "pdf", - "delete-pages", + "page-deletion", + "aspose-pdf", + "file-path", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfFileEditor", + "Aspose.Pdf.Facades.PdfFileEditor.Delete" + ], + "difficulty": "beginner" + }, + { + "filename": "delete-pages-from-pdfs.cs", + "title": "Delete Specific Pages from PDFs", + "description": "Shows how to remove given page numbers from one or more PDF files using Aspose.Pdf.Facades and save the cleaned versions.", + "tags": [ + "pdf", + "page-deletion", "aspose-pdf", "csharp", - "facade" + "facades" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", @@ -13174,60 +15891,79 @@ }, { "filename": "delete-pages-resize-pdf-contents.cs", - "title": "Delete Pages and Resize PDF Contents", - "description": "Shows how to remove specific pages from a PDF using Aspose.Pdf.Facades and then resize the remaining page contents before saving the document.", + "title": "Delete Pages Resize Pdf Contents", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "delete-pages-resize-pdf.cs", + "title": "Delete Pages and Resize PDF Content", + "description": "Shows how to remove specific pages from a PDF stream using PdfFileEditor and then scale the remaining pages before saving the document.", "tags": [ "pdf", "delete-pages", "resize", - "streams", - "facade" + "aspose-pdf", + "facades" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileEditor", "Aspose.Pdf.Facades.PdfFileEditor.Delete", - "Aspose.Pdf.Facades.PdfFileEditor.ResizeContentsPct" + "Aspose.Pdf.Facades.PdfFileEditor.ResizeContentsPct", + "Aspose.Pdf.Document.Pages.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "delete-pdf-pages-get-size.cs", - "title": "Delete Specific PDF Pages and Return File Size", - "description": "Shows how to remove selected pages from a PDF using Aspose.Pdf.Facades.PdfFileEditor and obtain the size of the resulting document.", + "filename": "delete-pdf-pages-cli.cs", + "title": "Delete Pages from PDF via Command Line", + "description": "Shows how to build a command‑line tool that removes specified pages from a PDF using Aspose.Pdf.Facades.PdfFileEditor and writes the output file.", "tags": [ "pdf", - "page-deletion", - "aspose", - "file-size", - "c#" + "delete-pages", + "command-line", + "aspose.pdf", + "facades" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Delete" + "Aspose.Pdf.Facades.PdfFileEditor.TryDelete" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "delete-pdf-pages.cs", - "title": "Delete Pages from PDF using Aspose.Pdf", - "description": "Demonstrates a command‑line utility that removes specified pages from a PDF file using Aspose.Pdf.Facades.PdfFileEditor and saves the result to a new file.", + "filename": "delete-pdf-pages-get-size.cs", + "title": "Delete PDF Pages and Get Resulting Size", + "description": "Demonstrates how to remove specific pages from a PDF using Aspose.Pdf.Facades.PdfFileEditor and return the size of the modified document.", "tags": [ "pdf", "delete-pages", - "command-line", - "aspose.pdf", - "c#" + "filesize", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", "Aspose.Pdf.Facades.PdfFileEditor.Delete" ], - "difficulty": "beginner" + "difficulty": "intermediate" + }, + { + "filename": "delete-pdf-pages.cs", + "title": "Delete Pdf Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "delete-specific-pages-from-pdf.cs", "title": "Delete Specific Pages from PDF using PdfFileEditor", - "description": "Shows how to remove selected pages from a PDF by opening input and output streams and calling Aspose.Pdf.Facades.PdfFileEditor.Delete.", + "description": "Shows how to remove selected pages from a PDF by passing input and output streams to Aspose.Pdf.Facades.PdfFileEditor.", "tags": [ "pdf", "delete-pages", @@ -13243,12 +15979,12 @@ }, { "filename": "delete-specific-pages-from-pdfs.cs", - "title": "Delete Specific Pages from PDFs", - "description": "Shows how to remove pages 3 and 4 from every PDF in a source directory and save the modified files to a destination folder using Aspose.Pdf.Facades.", + "title": "Delete Specific Pages from PDFs in a Folder", + "description": "Demonstrates how to batch‑process PDF files by removing pages 3 and 4 from each document using Aspose.Pdf.Facades. The example reads PDFs from a source directory and writes the modified files to an output directory.", "tags": [ "pdf", "delete-pages", - "batch", + "batch-processing", "aspose", "facades" ], @@ -13259,32 +15995,49 @@ "difficulty": "beginner" }, { - "filename": "delete-specific-pages-with-error-handling.cs", + "filename": "delete-specific-pages-pdf-error-handling.cs", "title": "Delete Specific Pages from PDF with Error Handling", - "description": "Demonstrates how to remove selected pages from a PDF using Aspose.Pdf.Facades.PdfFileEditor while checking for a missing input file and handling the operation result.", + "description": "Demonstrates how to remove selected pages from a PDF using Aspose.Pdf's PdfFileEditor Delete method while handling missing input files and PDF‑related exceptions.", "tags": [ "pdf", "delete-pages", "error-handling", - "aspose.pdf", - "facade" + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.TryDelete" + "Aspose.Pdf.Facades.PdfFileEditor.Delete", + "Aspose.Pdf.PdfException" ], "difficulty": "beginner" }, { - "filename": "extract-first-n-pages-pdf-splitfromfirst.cs", - "title": "Extract First N Pages from PDF using SplitFromFirst", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfFileEditor.SplitFromFirst to extract pages from the beginning of a PDF up to a specified page and save them as a new file.", + "filename": "delete-specific-pages-with-error-handling.cs", + "title": "Delete Specific Pages With Error Handling", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-first-n-pages-using-splitfromfirst.cs", + "title": "Extract First N Pages Using Splitfromfirst", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-front-pages-splitfromfirst-streams.cs", + "title": "Extract Front Pages from PDF Using SplitFromFirst with Streams", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfFileEditor.SplitFromFirst with in‑memory streams to extract pages 1 through a specified end page from a PDF.", "tags": [ "pdf", "split", - "pages", - "aspose", - "csharp" + "stream", + "in-memory", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", @@ -13293,15 +16046,15 @@ "difficulty": "beginner" }, { - "filename": "extract-first-n-pages-using-splitfromfirst.cs", - "title": "Extract First N Pages from PDF Using SplitFromFirst and Streams", - "description": "Demonstrates how to split the first N pages of a PDF into an in‑memory stream using Aspose.Pdf.Facades.PdfFileEditor.SplitFromFirst, then optionally save the result to a file.", + "filename": "extract-front-part-pdf-splitfromfirst.cs", + "title": "Extract Front Part of PDF with SplitFromFirst", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfFileEditor.SplitFromFirst to extract pages from the beginning of a PDF up to a specified page and save them as a new document.", "tags": [ "pdf", "split", "pages", - "memory-stream", - "aspose-pdf" + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", @@ -13311,200 +16064,214 @@ }, { "filename": "insert-blank-separator-pages-when-merging-pdfs.cs", - "title": "Insert Blank Separator Pages When Merging PDFs", - "description": "Demonstrates how to add a single‑page blank PDF as a separator between multiple PDFs during concatenation using Aspose.Pdf.", - "tags": [ - "pdf", - "concatenation", - "separator", - "blank-page", - "Aspose.Pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Concatenate" - ], - "difficulty": "intermediate" + "title": "Insert Blank Separator Pages When Merging Pdfs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "insert-image-into-pdf-and-save-modified-file.cs", - "title": "Insert Image into PDF and Save Modified File", - "description": "Demonstrates using Aspose.Pdf.Facades.PdfFileMend to bind an existing PDF, insert an image onto a specific page at given coordinates, and save the modified document to a new file.", - "tags": [ - "pdf", - "image", - "insertion", - "Aspose.Pdf", - "facade" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfFileMend", - "PdfFileMend.BindPdf", - "PdfFileMend.AddImage", - "PdfFileMend.Save", - "PdfFileMend.Close" - ], - "difficulty": "beginner" + "title": "Insert Image Into Pdf And Save Modified File", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "insert-page-range-into-pdf-using-streams.cs", - "title": "Insert Page Range into PDF Using Streams", - "description": "Demonstrates how to insert a specific range of pages from a source PDF into a destination PDF by working with file streams and the Aspose.Pdf.Facades.PdfFileEditor.Insert method.", + "title": "Insert Page Range Into Pdf Using Streams", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "insert-page-range-into-pdf.cs", + "title": "Insert Page Range from Source PDF into Destination PDF", + "description": "Demonstrates how to insert a specific range of pages from one PDF file into another using Aspose.Pdf's PdfFileEditor.", "tags": [ "pdf", - "insert", - "pages", - "streams", - "Aspose.Pdf" + "page-insertion", + "merge", + "Aspose.Pdf", + "PdfFileEditor" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", "Aspose.Pdf.Facades.PdfFileEditor.Insert" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "insert-page-range-into-pdf.cs", - "title": "Insert Page Range into PDF", - "description": "Demonstrates how to insert a specific range of pages from a source PDF into a destination PDF using Aspose.Pdf.Facades.PdfFileEditor.", + "filename": "insert-page-range-into-pdf__v2.cs", + "title": "Insert Page Range from One PDF into Another Using Streams", + "description": "Shows how to insert a specific range of pages from a source PDF stream into a destination PDF stream and write the merged document to an output stream with Aspose.Pdf.Facades.", "tags": [ "pdf", - "insert", - "pages", + "insert-pages", + "streams", "aspose", - "facade" + "c#" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", "Aspose.Pdf.Facades.PdfFileEditor.Insert" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "insert-pages-at-start-of-pdf.cs", - "title": "Insert Pages at Start of PDF using PdfFileEditor", - "description": "Demonstrates how to prepend all pages from a source PDF to another PDF by using Aspose.Pdf's PdfFileEditor.Insert method.", + "title": "Insert Pages At Start Of Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "insert-pages-into-middle-of-pdf.cs", + "title": "Insert Pages from One PDF into the Middle of Another", + "description": "Shows how to insert all pages of a source PDF into the middle of a destination PDF using Aspose.Pdf's PdfFileEditor.", "tags": [ "pdf", "insert-pages", - "aspose-pdf", - "pdffileeditor", - "csharp" + "aspose.pdf", + "document-merge", + "c#" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileEditor", "Aspose.Pdf.Facades.PdfFileEditor.Insert", - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Document.Pages.Count" + "Aspose.Pdf.PageCollection", + "Aspose.Pdf.PageCollection.Count" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "insert-pages-into-pdf-at-middle.cs", - "title": "Insert Pages into PDF at Middle Position", - "description": "Demonstrates how to insert a range of pages from a source PDF into the middle of another PDF using Aspose.Pdf's PdfFileEditor.", + "filename": "insert-pages-into-pdf-and-save.cs", + "title": "Insert Pages into PDF and Save to File", + "description": "Demonstrates how to insert selected pages from one PDF into another at a specific position using Aspose.Pdf.Facades and save the modified document to a new file.", "tags": [ "pdf", - "insert-pages", - "aspose-pdf", - "merge", - "document" + "page-insertion", + "aspose", + "csharp", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Insert", - "Aspose.Pdf.Document", - "Aspose.Pdf.PageCollection", - "Aspose.Pdf.Page" + "Aspose.Pdf.Facades.PdfFileEditor.TryInsert" ], - "difficulty": "intermediate" + "difficulty": "beginner" + }, + { + "filename": "insert-pages-into-pdf-at-middle.cs", + "title": "Insert Pages Into Pdf At Middle", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "insert-pages-into-pdf-in-memory.cs", - "title": "Insert Pages into PDF in Memory using Aspose.Pdf", - "description": "Shows how to create PDFs entirely in memory, then insert selected pages from a source PDF into a destination PDF using PdfFileEditor and retrieve the merged result in a MemoryStream.", + "title": "Insert Pages from One PDF into Another In-Memory", + "description": "Shows how to create source and destination PDFs entirely in memory, then insert a specific page from the source PDF into the destination PDF using Aspose.Pdf.Facades.PdfFileEditor.Insert, and output the merged document to a MemoryStream.", "tags": [ "pdf", "insert-pages", - "memory-stream", - "aspose-pdf", + "memorystream", + "aspose.pdf", "facade" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfFileEditor.Insert", + "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Insert" + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "insert-pages-multiple-pdfs-into-base.cs", - "title": "Insert Pages from Multiple PDFs into a Base PDF", - "description": "Demonstrates how to append a specific page range from several source PDFs into a base PDF using Aspose.Pdf.Facades.PdfFileEditor. The example validates file existence, performs the merge, and handles errors.", + "title": "Insert Pages Multiple Pdfs Into Base", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "insert-pdf-pages-at-beginning.cs", + "title": "Insert PDF Pages at Beginning Using PdfFileEditor", + "description": "Shows how to insert all pages from a source PDF at the start of another PDF using Aspose.Pdf.Facades.PdfFileEditor.", "tags": [ "pdf", - "merge", + "insert", "pages", "aspose", - "csharp" + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Append" + "Aspose.Pdf.Facades.PdfFileEditor.Insert", + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Document.Pages.Count" ], "difficulty": "intermediate" }, { - "filename": "insert-specific-pages-into-pdf-using-streams.cs", - "title": "Insert Specific Pages from One PDF into Another Using Streams", - "description": "Shows how to insert selected pages from a source PDF into a destination PDF at a given position using Aspose.Pdf's PdfFileEditor with stream overloads.", + "filename": "insert-selected-pages-into-pdf.cs", + "title": "Insert Selected Pages from One PDF into Another", + "description": "Shows how to insert specific pages from a source PDF into a destination PDF at a defined position using Aspose.Pdf.Facades.PdfFileEditor.", "tags": [ "pdf", "insert-pages", - "streams", - "aspose-pdf", - "facade" + "aspose.pdf", + "facade", + "c#" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Insert", - "Aspose.Pdf.PageCollection.Add" + "Aspose.Pdf.Facades.PdfFileEditor.Insert" ], - "difficulty": "intermediate" + "difficulty": "beginner" + }, + { + "filename": "insert-specific-pages-into-pdf-using-streams.cs", + "title": "Insert Specific Pages Into Pdf Using Streams", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "insert-specific-pages-into-pdf.cs", - "title": "Insert Specific Pages from One PDF into Another", - "description": "Demonstrates how to insert selected pages from a source PDF into a destination PDF at a specified position using Aspose.Pdf.Facades.PdfFileEditor.", + "title": "Insert Specific Pages from One PDF into Another Using Streams", + "description": "Shows how to insert selected pages from a source PDF into a destination PDF at a specified position using Aspose.Pdf.Facades.PdfFileEditor with input and output streams.", "tags": [ "pdf", "insert-pages", - "aspose", - "facade", - "csharp" + "streams", + "aspose-pdf", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", "Aspose.Pdf.Facades.PdfFileEditor.Insert" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "load-pdf-and-save-with-aspose-pdf.cs", - "title": "Load PDF and Save to New File", - "description": "The example demonstrates how to load an existing PDF file using Aspose.Pdf's Document class and then save it to a new location, including basic error handling for missing files.", + "filename": "load-pdf-and-save-copy.cs", + "title": "Load PDF and Save a Copy using Aspose.Pdf", + "description": "Shows how to load a PDF file from a file path with Aspose.Pdf's Document class and save it to another location.", "tags": [ "pdf", "load", "save", - "aspose.pdf", + "aspose", "document" ], "apis_used": [ @@ -13514,90 +16281,78 @@ "difficulty": "beginner" }, { - "filename": "load-pdf-document-from-file.cs", - "title": "Load PDF Document from File Path", - "description": "Shows how to load a PDF file using Aspose.Pdf.Document, check its page count, and optionally save it.", + "filename": "load-pdf-and-save-with-aspose-pdf.cs", + "title": "Load PDF and Save with Aspose.Pdf", + "description": "Demonstrates loading an existing PDF file using Aspose.Pdf's Document class, checking its existence, and saving it to a new location.", "tags": [ "pdf", "load", - "document", - "aspose", - "csharp" + "save", + "aspose.pdf", + "document" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, + { + "filename": "load-pdf-document-from-file.cs", + "title": "Load Pdf Document From File", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "log-pdf-page-deletions-audit.cs", - "title": "Log PDF Page Deletions with Audit Trail", - "description": "Demonstrates deleting specific pages from a PDF using Aspose.Pdf.Facades and recording the number of pages removed in an audit log.", - "tags": [ - "pdf", - "page-deletion", - "audit-log", - "aspose", - "facade" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.TryDelete" - ], - "difficulty": "intermediate" + "title": "Log Pdf Page Deletions Audit", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "measure-pdf-concatenation-performance.cs", - "title": "Measure PDF Concatenation Performance Using Stream Overloads", - "description": "Demonstrates how to concatenate fifty small PDF files using Aspose.Pdf.Facades.PdfFileEditor stream overloads and measures the execution time with a Stopwatch.", - "tags": [ - "pdf", - "concatenation", - "performance", - "streams", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Concatenate", - "Aspose.Pdf.Facades.PdfFileEditor.CloseConcatenatedStreams" - ], - "difficulty": "intermediate" + "title": "Measure Pdf Concatenation Performance", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "measure-pdf-resize-performance-path-vs-stream.cs", "title": "Measure PDF Resize Performance: Path vs Stream Overloads", - "description": "Demonstrates how to resize a large PDF using Aspose.Pdf.Facades.PdfPageEditor and compares the execution time of the file‑path overload versus the stream overload.", + "description": "The example resizes all pages of a large PDF using Aspose.Pdf.Facades.PdfFileEditor and measures the execution time of the file‑path and stream overloads to compare their performance.", "tags": [ "pdf", - "performance", "resize", + "performance", "stream", "aspose-pdf" ], "apis_used": [ - "PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.Zoom", - "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save" + "Aspose.Pdf.Facades.PdfFileEditor", + "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents(string, string, int[], double, double)", + "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents(Stream, Stream, int[], double, double)" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "merge-multiple-pdf-streams.cs", "title": "Merge Multiple PDF Streams into a Single PDF", - "description": "Demonstrates how to concatenate an array of PDF input streams into one output stream using Aspose.Pdf.Facades.PdfFileEditor.", + "description": "Demonstrates how to concatenate several PDF streams into one output stream using Aspose.Pdf.Facades.PdfFileEditor.", "tags": [ "pdf", + "concatenate", + "stream", "merge", - "streams", - "aspose", - "concatenate" + "aspose" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Facades.PdfFileEditor", "Aspose.Pdf.Facades.PdfFileEditor.Concatenate", "Aspose.Pdf.Facades.PdfFileEditor.CloseConcatenatedStreams" @@ -13606,82 +16361,95 @@ }, { "filename": "merge-multiple-pdfs-with-logging.cs", - "title": "Merge Multiple PDFs with Logging", - "description": "Demonstrates how to concatenate several PDF files into a single document using Aspose.Pdf.Facades.PdfFileEditor while logging the input and output file names.", - "tags": [ - "pdf", - "merge", - "concatenation", - "logging", - "aspose" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Concatenate", - "Aspose.Pdf.Facades.PdfFileEditor.CopyOutlines", - "Aspose.Pdf.Facades.PdfFileEditor.CopyLogicalStructure", - "Aspose.Pdf.Facades.PdfFileEditor.ConversionLog" - ], - "difficulty": "beginner" + "title": "Merge Multiple Pdfs With Logging", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "merge-pdfs-from-memory-streams.cs", - "title": "Merge PDFs from Memory Streams and Save Directly to File", - "description": "Creates two PDF documents entirely in memory, then concatenates them using PdfFileEditor and writes the merged PDF straight to a file without any intermediate storage.", + "title": "Merge Pdfs From Memory Streams", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "merge-pdfs-from-network-streams.cs", + "title": "Merge PDFs from Network Streams without Intermediate Files", + "description": "Shows how to download PDF files via HttpClient into memory streams and merge them into a single PDF using Aspose.Pdf.Facades.PdfFileEditor without creating temporary files on disk.", "tags": [ "pdf", - "concatenate", + "merge", + "network", "memory-stream", - "aspose-pdf", - "merge" + "aspose" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Concatenate", - "Aspose.Pdf.Facades.PdfFileEditor.CloseConcatenatedStreams" + "Aspose.Pdf.Facades.PdfFileEditor.Concatenate" ], "difficulty": "intermediate" }, { "filename": "merge-pdfs-from-urls.cs", - "title": "Merge PDFs from URLs without Temporary Files", - "description": "Shows how to download PDF files into memory streams and use Aspose.Pdf.Facades.PdfFileEditor to concatenate them into a single PDF saved locally, avoiding intermediate files.", + "title": "Merge Pdfs From Urls", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "merge-pdfs-with-blank-separator-pages.cs", + "title": "Merge PDFs with Blank Separator Pages", + "description": "Shows how to concatenate several PDF files and insert a blank page between each document using Aspose.Pdf.", "tags": [ "pdf", "merge", - "memory-stream", + "separator", "aspose", - "httpclient" + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Concatenate" + "Aspose.Pdf.Facades.PdfFileEditor.Concatenate", + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Pages.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "merge-three-pdfs-using-pdffileeditor.cs", - "title": "Merge Three PDFs Using Aspose PdfFileEditor", - "description": "Demonstrates how to merge three PDF documents into a single file using Aspose.Pdf.Facades.PdfFileEditor’s three‑argument Concatenate method, with a temporary intermediate file for the first two PDFs.", + "title": "Merge Three Pdfs Using Pdffileeditor", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "nup-to-booklet-pdf.cs", + "title": "Create N‑up PDF and Convert to Booklet", + "description": "Demonstrates how to generate an N‑up layout (multiple original pages per sheet) using PdfFileEditor.MakeNUp and then transform the resulting PDF into a booklet with PdfFileEditor.MakeBooklet, including cleanup of the intermediate file.", "tags": [ + "n-up", + "booklet", "pdf", - "merge", - "concatenate", - "Aspose.Pdf", - "C#" + "aspose-pdf", + "facades" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Concatenate" + "Aspose.Pdf.Facades.PdfFileEditor.MakeNUp", + "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet" ], "difficulty": "intermediate" }, { "filename": "parallel-pdf-page-deletion.cs", - "title": "Parallel Deletion of PDF Pages using Aspose.Pdf", - "description": "Demonstrates how to delete specified pages from multiple PDF files concurrently using Aspose.Pdf's PdfFileEditor within a Parallel.ForEach loop.", + "title": "Parallel Deletion of PDF Pages", + "description": "Shows how to delete specific pages from multiple PDF documents concurrently using Aspose.Pdf.Facades.PdfFileEditor with Parallel.ForEach.", "tags": [ "pdf", "parallel", @@ -13695,10 +16463,30 @@ ], "difficulty": "intermediate" }, + { + "filename": "pdffileeditor-delete-invalid-page-test.cs", + "title": "Test Delete Throws Exception for Invalid Page Number", + "description": "Shows how to write a unit test that verifies PdfFileEditor.Delete throws an exception when a page number larger than the document length is supplied.", + "tags": [ + "pdf", + "unit-test", + "aspose", + "delete", + "exception" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfFileEditor", + "Aspose.Pdf.Document.Pages.Add", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Facades.PdfFileEditor.Delete" + ], + "difficulty": "beginner" + }, { "filename": "remove-first-and-last-pages-from-pdf.cs", "title": "Remove First and Last Pages from PDF", - "description": "Shows how to delete the first and last pages of a PDF using Aspose.Pdf's PdfFileEditor Delete method with an integer array.", + "description": "Demonstrates how to delete the first and last pages of a PDF file using Aspose.Pdf's PdfFileEditor.Delete method with a page number array.", "tags": [ "pdf", "delete-pages", @@ -13709,21 +16497,20 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Delete", - "Aspose.Pdf.Document.Pages.Count" + "Aspose.Pdf.Facades.PdfFileEditor.Delete" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "remove-pages-from-multiple-pdfs-in-parallel.cs", - "title": "Remove Specified Pages from Multiple PDFs in Parallel", - "description": "Shows how to delete given page numbers from several PDF files concurrently using Aspose.Pdf's PdfFileEditor.", + "title": "Remove Pages from Multiple PDFs in Parallel", + "description": "Demonstrates how to delete specified pages from a list of PDF files using Aspose.Pdf.Facades.PdfFileEditor and process the files concurrently with Parallel.ForEach.", "tags": [ "pdf", - "page removal", - "parallel processing", - "aspose", - "c#" + "page-removal", + "parallel", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", @@ -13732,37 +16519,62 @@ "difficulty": "intermediate" }, { - "filename": "resize-and-merge-pdfs.cs", - "title": "Resize PDFs to 1024x768 and Merge into One Document", - "description": "Shows how to resize multiple PDF files to a fixed 1024x768 page size using PdfPageEditor and then concatenate them into a single PDF using PdfFileEditor.", + "filename": "resize-and-concatenate-pdfs.cs", + "title": "Resize Multiple PDFs and Concatenate into One Document", + "description": "Shows how to batch‑resize PDF pages to 1024×768 points using PdfFileEditor.ResizeContents and then merge the resized PDFs into a single file with PdfFileEditor.Concatenate.", "tags": [ "pdf", "resize", - "merge", - "aspose-pdf", - "csharp" + "concatenate", + "batch", + "aspose.pdf" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfFileEditor", + "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents", + "Aspose.Pdf.Facades.PdfFileEditor.Concatenate" + ], + "difficulty": "intermediate" + }, + { + "filename": "resize-and-merge-pdfs.cs", + "title": "Resize And Merge Pdfs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "resize-pdf-landscape-booklet.cs", + "title": "Resize PDF to Landscape and Create Booklet", + "description": "Shows how to change a PDF's page orientation to landscape using PdfPageEditor and then generate a booklet from the resized document with PdfFileEditor.", + "tags": [ + "pdf", + "landscape", + "booklet", + "page-editing", + "Aspose.Pdf" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PageSize", - "PdfPageEditor.BindPdf", - "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save", - "PdfFileEditor.Concatenate" + "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet" ], "difficulty": "intermediate" }, { - "filename": "resize-pdf-pages-to-custom-dimensions.cs", - "title": "Resize PDF Pages to Custom Dimensions Using Stream Overload", - "description": "Shows how to resize all pages of a PDF to 8.5×11 inches (612 × 792 points) by using Aspose.Pdf.Facades.PdfFileEditor with the stream overload and page resize parameters.", + "filename": "resize-pdf-pages-to-8-5x11-using-stream.cs", + "title": "Resize PDF Pages to 8.5x11 Inches Using Stream Overload", + "description": "Demonstrates how to change all pages of a PDF to standard US Letter size (8.5×11 inches) by using PdfFileEditor’s stream-based ResizeContents method with custom page dimensions.", "tags": [ "pdf", "resize", - "pages", + "page-size", "stream", - "aspose" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", @@ -13770,62 +16582,67 @@ "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeParameters.PageResize", "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "resize-pdf-pages-using-streams.cs", - "title": "Resize PDF Pages to Custom Dimensions Using Streams", - "description": "Demonstrates resizing all pages of a PDF to 1024 × 768 points via the PdfFileEditor stream overload and verifies the new page dimensions.", + "title": "Resize Pdf Pages Using Streams", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "resize-pdf-streams-verify-tiff.cs", + "title": "Resize PDF to Custom Dimensions Using Streams and Verify with TIFF Preview", + "description": "Demonstrates how to resize all pages of a PDF to 1024x768 points using the PdfFileEditor stream overload, then creates a TIFF preview of the first page to confirm visual fidelity.", "tags": [ "pdf", "resize", "stream", - "aspose", - "facade" + "preview", + "tiff" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeParameters", "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents", + "Aspose.Pdf.Facades.PdfFileEditor", "Aspose.Pdf.Document", - "Aspose.Pdf.Page" + "Aspose.Pdf.Facades.PdfConverter", + "Aspose.Pdf.Facades.PdfConverter.DoConvert", + "Aspose.Pdf.Facades.PdfConverter.SaveAsTIFF", + "Aspose.Pdf.Devices.Resolution" ], "difficulty": "intermediate" }, { "filename": "resize-pdf-to-letter-size.cs", - "title": "Resize PDF to Letter Size Using PdfPageEditor", - "description": "Demonstrates how to resize all pages of a PDF to Letter dimensions using the PdfPageEditor facade with the file‑path overload, and save the result as a new file.", + "title": "Resize PDF to Letter Size Using PdfFileEditor", + "description": "Demonstrates how to resize all pages of an existing PDF to US Letter dimensions (8.5\" x 11\") using the file‑path overload of PdfFileEditor.ResizeContents and save the result.", "tags": [ "pdf", "resize", - "letter", - "facade", - "aspose" + "letter-size", + "aspose", + "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.PageSize", - "PageSize.PageLetter", - "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save" + "Aspose.Pdf.Facades.PdfFileEditor", + "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents" ], "difficulty": "beginner" }, { "filename": "resize-pdfs-create-booklet.cs", "title": "Resize PDFs and Create a Booklet", - "description": "Demonstrates how to resize multiple PDF files to a specific page size, concatenate them, and generate a booklet using Aspose.Pdf.", + "description": "Shows how to resize multiple PDF files to 1024x768 points, concatenate them, and generate a booklet PDF using Aspose.Pdf.Facades.", "tags": [ "pdf", "resize", "concatenate", "booklet", - "aspose-pdf" + "facades" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileEditor", "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents", "Aspose.Pdf.Facades.PdfFileEditor.Concatenate", @@ -13835,34 +16652,38 @@ }, { "filename": "resize-pdfs-to-a5-and-create-booklet.cs", - "title": "Resize PDFs to A5 and Generate Booklet", - "description": "Demonstrates batch processing of PDF files by resizing each document to A5 using PdfPageEditor and then creating a booklet from the resized file with PdfFileEditor.MakeBooklet.", - "tags": [ - "pdf", - "resize", - "booklet", - "batch", - "aspose-pdf" - ], - "apis_used": [ - "PdfPageEditor", - "PdfFileEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.ApplyChanges", - "PdfFileEditor.MakeBooklet" - ], - "difficulty": "intermediate" + "title": "Resize Pdfs To A5 And Create Booklet", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "rotate-first-pdf-page-save-to-memorystream.cs", - "title": "Rotate First PDF Page and Save to MemoryStream", - "description": "Loads a PDF, rotates the first page 90° clockwise, and saves the modified document directly to a MemoryStream without writing to disk.", + "title": "Rotate First Pdf Page Save To Memorystream", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "rotate-pdf-landscape-create-booklet.cs", + "title": "Rotate Pdf Landscape Create Booklet", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "rotate-pdf-page-save-to-memorystream.cs", + "title": "Rotate PDF Page and Save to MemoryStream", + "description": "Loads a PDF, rotates the first page 90 degrees clockwise, and saves the modified document directly into a MemoryStream without writing to disk.", "tags": [ "pdf", "rotation", "memorystream", "aspose.pdf", - "c#" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", @@ -13872,37 +16693,16 @@ ], "difficulty": "beginner" }, - { - "filename": "rotate-pdf-landscape-create-booklet.cs", - "title": "Rotate PDF to Landscape and Generate Booklet", - "description": "Loads a PDF, rotates all pages to landscape orientation using PdfPageEditor, then creates a booklet from the rotated document with PdfFileEditor.MakeBooklet and saves the result.", - "tags": [ - "pdf", - "rotation", - "booklet", - "Aspose.Pdf", - "facade" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.Rotation", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet" - ], - "difficulty": "intermediate" - }, { "filename": "split-pdf-from-first-page-to-end-page.cs", "title": "Split PDF from First Page to Specified End Page Using Streams", - "description": "Shows how to split a PDF from the first page up to a given end page using Aspose.Pdf's PdfFileEditor with in‑memory streams.", + "description": "Demonstrates how to split the first N pages of a PDF into a new document using Aspose.Pdf's PdfFileEditor with in‑memory streams.", "tags": [ "pdf", "split", "streams", "aspose", - "facade" + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", @@ -13913,7 +16713,7 @@ { "filename": "split-pdf-from-first-to-end-page.cs", "title": "Split PDF from First Page to Specified End Page", - "description": "Demonstrates how to extract pages 1 through a given end page from a PDF and save the result using Aspose.Pdf.Facades PdfFileEditor.", + "description": "Demonstrates how to split a PDF starting at the first page up to a given page number using Aspose.Pdf.Facades and save the result to a new file.", "tags": [ "pdf", "split", @@ -13930,7 +16730,7 @@ { "filename": "split-pdf-from-page-to-end.cs", "title": "Split PDF from Specific Page to End", - "description": "Shows how to split a PDF starting at a given 1‑based page number to the end of the document using Aspose.Pdf.Facades.PdfFileEditor.", + "description": "Shows how to split a PDF starting at a given page number and save the resulting document using Aspose.Pdf.Facades.", "tags": [ "pdf", "split", @@ -13946,14 +16746,22 @@ }, { "filename": "split-pdf-from-page-to-end__v2.cs", - "title": "Split PDF from Specific Page to End", - "description": "Demonstrates using Aspose.Pdf.Facades.PdfFileEditor.SplitToEnd to extract pages starting at a given page through the end of a PDF and save them as a new document.", + "title": "Split Pdf From Page To End__V2", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "split-pdf-from-start-page-to-end-using-streams.cs", + "title": "Split PDF from a Start Page to End Using Streams", + "description": "Demonstrates how to split a PDF from a specified start page to the end of the document using Aspose.Pdf.Facades.PdfFileEditor with input and output streams.", "tags": [ "pdf", "split", - "Aspose.Pdf", - "PdfFileEditor", - "C#" + "streams", + "aspose", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", @@ -13962,15 +16770,15 @@ "difficulty": "beginner" }, { - "filename": "split-pdf-from-start-page-to-end-using-streams.cs", - "title": "Split PDF from a Start Page to End Using Streams", - "description": "Demonstrates how to split a PDF from a specified start page to the end using Aspose.Pdf.Facades.PdfFileEditor with input and output streams, keeping the result in memory before saving to a file.", + "filename": "split-pdf-from-start-page-to-end.cs", + "title": "Split PDF from a Start Page to the End", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfFileEditor.SplitToEnd to extract pages from a specified start page through the end of a PDF and save them as a new file.", "tags": [ "pdf", "split", - "streams", - "in-memory", - "Aspose.Pdf" + "aspose", + "facade", + "pages" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", @@ -13980,14 +16788,14 @@ }, { "filename": "split-pdf-from-start-to-end.cs", - "title": "Split PDF from Start Page to End Using Aspose.Pdf", - "description": "Shows how to extract pages from a given start page to the end of a PDF and return the result as a MemoryStream using Aspose.Pdf.Facades.", + "title": "Split PDF from Start Page to End Using MemoryStream", + "description": "Shows how to extract the portion of a PDF starting at a given page through the end of the document and return it as a MemoryStream using Aspose.Pdf.Facades.", "tags": [ "pdf", "split", "memorystream", "aspose", - "facade" + "c#" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", @@ -13997,25 +16805,36 @@ }, { "filename": "split-pdf-into-bulk-page-ranges.cs", - "title": "Split PDF into Bulk Page Ranges", - "description": "Shows how to split a PDF into multiple documents based on defined start‑end page ranges using Aspose.Pdf.Facades.", + "title": "Split Pdf Into Bulk Page Ranges", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "split-pdf-into-bulk-page-sets.cs", + "title": "Split PDF into Bulk Page Sets with Aspose.PdfFileEditor", + "description": "Demonstrates how to split a PDF into multiple bulk page ranges using Aspose.Pdf's PdfFileEditor facade, including placeholder PDF creation and saving each bulk as a separate file.", "tags": [ "pdf", "split", "bulk", - "pages", - "aspose" + "aspose", + "csharp" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.SplitToBulks" + "PdfFileEditor.SplitToBulks", + "Document.Pages.Add", + "Document.Save" ], "difficulty": "intermediate" }, { - "filename": "split-pdf-into-bulk-page-sets.cs", - "title": "Split PDF into Bulk Page Sets Using MemoryStreams", - "description": "Demonstrates how to split a PDF into multiple page ranges (bulks) with Aspose.Pdf.Facades.PdfFileEditor and retrieve each bulk as a MemoryStream.", + "filename": "split-pdf-into-bulk-page-sets__v2.cs", + "title": "Split PDF into Bulk Page Sets Using Streams", + "description": "Shows how to split a PDF into defined page ranges (bulks) with Aspose.Pdf.Facades.PdfFileEditor and obtain each bulk as a MemoryStream.", "tags": [ "pdf", "split", @@ -14027,35 +16846,26 @@ "Aspose.Pdf.Facades.PdfFileEditor", "Aspose.Pdf.Facades.PdfFileEditor.SplitToBulks" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "split-pdf-into-bulks-using-memorystreams.cs", - "title": "Split PDF into Bulks Using MemoryStreams", - "description": "Shows how to split a PDF into multiple page ranges (bulks) with Aspose.Pdf.Facades.PdfFileEditor.SplitToBulks and process the resulting MemoryStream objects.", - "tags": [ - "pdf", - "split", - "bulks", - "memorystream", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.SplitToBulks" - ], - "difficulty": "intermediate" + "title": "Split Pdf Into Bulks Using Memorystreams", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "split-pdf-into-individual-page-pdfs.cs", "title": "Split PDF into Individual Page PDFs Using Streams", - "description": "Shows how to split a PDF into separate one‑page PDFs by reading the source file as a stream, using PdfFileEditor.SplitToPages, and writing each resulting MemoryStream to a file.", + "description": "Shows how to split a PDF into separate one‑page PDF files by reading the source as a stream, using PdfFileEditor.SplitToPages to get MemoryStreams for each page, and writing each stream to a file.", "tags": [ "pdf", "split", - "streams", - "aspose.pdf", - "memorystream" + "pages", + "stream", + "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", @@ -14064,15 +16874,15 @@ "difficulty": "beginner" }, { - "filename": "split-pdf-into-individual-page-streams.cs", - "title": "Split PDF into Individual Page Streams", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfFileEditor.SplitToPages to split a PDF into separate MemoryStream objects for each page and save them as individual PDF files.", + "filename": "split-pdf-into-individual-pages.cs", + "title": "Split PDF into Individual Page PDFs", + "description": "Demonstrates how to split a PDF file into separate one‑page PDF documents using Aspose.Pdf.Facades.PdfFileEditor and save them to a specified output folder.", "tags": [ "pdf", "split", - "memorystream", "pages", - "aspose" + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", @@ -14081,9 +16891,9 @@ "difficulty": "beginner" }, { - "filename": "split-pdf-into-individual-pages.cs", - "title": "Split PDF into Individual Page PDFs", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfFileEditor to split a PDF into separate one‑page PDF files using a filename template.", + "filename": "split-pdf-into-individual-pages__v2.cs", + "title": "Split PDF into Individual Pages Using PdfFileEditor", + "description": "Demonstrates how to split a multi‑page PDF into separate one‑page PDF files using Aspose.Pdf.Facades.PdfFileEditor.SplitToPages.", "tags": [ "pdf", "split", @@ -14098,49 +16908,49 @@ "difficulty": "beginner" }, { - "filename": "split-pdf-into-multiple-page-ranges.cs", - "title": "Split PDF into Multiple Page Ranges Using SplitToBulks", - "description": "Shows how to split a PDF into separate documents based on defined page ranges using Aspose.Pdf's SplitToBulks method and save each part as an individual PDF file.", + "filename": "split-pdf-into-multiple-bulks.cs", + "title": "Split PDF into Multiple Bulks Using Streams", + "description": "Shows how to split a PDF into defined page ranges (bulks) with Aspose.Pdf.Facades.PdfFileEditor.SplitToBulks and process the resulting MemoryStream objects.", "tags": [ "pdf", "split", - "page-ranges", - "aspose", - "facade" + "bulks", + "memorystream", + "aspose" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.SplitToBulks" + "PdfFileEditor", + "PdfFileEditor.SplitToBulks" ], "difficulty": "intermediate" }, { - "filename": "split-pdf-into-single-page-pdfs.cs", - "title": "Split PDF into Single-Page PDFs", - "description": "Demonstrates how to split a PDF into separate one‑page PDF files using Aspose.Pdf's PdfFileEditor facade.", + "filename": "split-pdf-into-multiple-page-ranges.cs", + "title": "Split PDF into Multiple Page Ranges Using PdfFileEditor", + "description": "Demonstrates how to split a PDF into separate documents based on defined page ranges with Aspose.Pdf.Facades.PdfFileEditor.SplitToBulks and save each part as a PDF file.", "tags": [ - "pdf", - "split", - "pages", - "aspose", - "facade" + "pdf-split", + "page-ranges", + "memorystream", + "aspose-pdf", + "facades" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.SplitToPages" + "Aspose.Pdf.Facades.PdfFileEditor.SplitToBulks" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "split-pdf-into-single-page-pdfs__v2.cs", - "title": "Split PDF into Single-Page PDFs Using MemoryStream", - "description": "Shows how to split a PDF into individual page PDFs by using PdfFileEditor.SplitToPages to get an array of MemoryStream objects and writing each stream to a uniquely named file.", + "filename": "split-pdf-into-page-streams.cs", + "title": "Split PDF into Individual Page Streams", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfFileEditor to split a PDF into separate MemoryStream objects, each containing a single page, and optionally write them to files.", "tags": [ "pdf", "split", "memorystream", - "aspose.pdf", - "csharp" + "aspose", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", @@ -14149,85 +16959,98 @@ "difficulty": "beginner" }, { - "filename": "test-delete-throws-exception-out-of-range-pages.cs", - "title": "Test Delete Throws Exception for Out-of-Range Pages", - "description": "Demonstrates an NUnit unit test that verifies PdfFileEditor.Delete raises an exception when attempting to delete page numbers beyond the PDF's length.", + "filename": "split-pdf-into-single-page-pdfs.cs", + "title": "Split PDF into Single‑Page PDFs Using MemoryStream", + "description": "Demonstrates how to split a PDF into individual page PDFs using Aspose.Pdf's bulk split, iterating the returned MemoryStream array, and saving each stream to a uniquely named file.", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "split-pdf-into-single-page-pdfs__v2.cs", + "title": "Split Pdf Into Single Page Pdfs__V2", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "test-makebooklet-null-pagesize.cs", + "title": "Test Makebooklet Null Pagesize", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "test-pdffileeditor-concatenate-empty-input.cs", + "title": "Test Pdffileeditor Concatenate Empty Input", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "test-pdffileeditor-concatenate-empty-streams.cs", + "title": "Unit Test for PdfFileEditor Concatenate with Empty Streams", + "description": "Shows how to write an NUnit unit test that verifies PdfFileEditor.Concatenate throws an ArgumentException when the input stream array is empty.", "tags": [ "pdf", "unit-test", + "concatenate", "aspose", - "delete", - "exception" + "nunit" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Facades.PdfFileEditor.Delete" + "Aspose.Pdf.Facades.PdfFileEditor.Concatenate" ], "difficulty": "beginner" }, { - "filename": "test-makebooklet-null-pagesize.cs", - "title": "Test MakeBooklet Throws Exception for Null PageSize", - "description": "Shows how to verify that PdfFileEditor.MakeBooklet raises an exception when the custom PageSize argument is null.", + "filename": "validate-makebooklet-null-pagesize.cs", + "title": "Validate MakeBooklet Throws Exception for Null PageSize", + "description": "Shows how to test that PdfFileEditor.MakeBooklet raises an ArgumentNullException when the PageSize parameter is null.", "tags": [ - "booklet", + "makebooklet", "exception", - "validation", "pdf", - "Aspose.Pdf" + "aspose", + "validation" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet" - ], - "difficulty": "beginner" - }, - { - "filename": "test-pdffileeditor-concatenate-empty-input.cs", - "title": "Test PdfFileEditor Concatenate Throws on Empty Input", - "description": "Demonstrates an NUnit unit test that verifies PdfFileEditor.Concatenate throws an ArgumentException when called with an empty array of input streams.", - "tags": [ - "unit-test", - "pdf", - "concatenate", - "exception", - "nunit" - ], - "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Concatenate" + "Aspose.Pdf.Facades.PdfFileEditor.MakeBooklet", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "validate-pdf-concatenation-page-order.cs", "title": "Validate PDF Concatenation Preserves Page Order", - "description": "Demonstrates how to concatenate two PDFs using Aspose.Pdf.Facades and then verify that the original page order and content are retained in the resulting document.", + "description": "Shows how to concatenate two PDFs with Aspose.Pdf and verify that the merged document keeps the original page sequence by comparing extracted page text.", "tags": [ - "pdf concatenation", - "page order", + "pdf-concatenation", + "page-order", "validation", - "aspose.pdf", - "facades" + "aspose-pdf", + "text-extraction" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileEditor", "Aspose.Pdf.Facades.PdfFileEditor.Concatenate", - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextAbsorber" + "Aspose.Pdf.Text.TextAbsorber", + "Aspose.Pdf.Page.Accept" ], "difficulty": "intermediate" }, { "filename": "validate-pdf-page-deletion.cs", - "title": "Validate PDF Page Deletion with Aspose.Pdf", - "description": "Demonstrates deleting specific pages from a PDF using Aspose.Pdf.Facades and verifying the page count before and after the operation.", + "title": "Validate PDF Page Deletion Reduces Page Count", + "description": "Shows how to delete specific pages from a PDF using Aspose.Pdf.Facades and verify that the total page count decreases after the operation.", "tags": [ "pdf", "delete-pages", @@ -14237,10 +17060,10 @@ ], "apis_used": [ "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Delete", + "Aspose.Pdf.Facades.PdfFileEditor", "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", "Aspose.Pdf.Facades.PdfPageEditor.GetPages", - "Aspose.Pdf.Facades.PdfPageEditor.Close" + "Aspose.Pdf.Facades.PdfFileEditor.TryDelete" ], "difficulty": "intermediate" } @@ -14248,28 +17071,43 @@ }, { "name": "facades-edit-document", - "file_count": 213, + "file_count": 328, "files": [ + "add-an-attachment-with-custom-mime-type-application-pdf-and-description-invoice-document.cs", "add-and-verify-attachment-in-pdf.cs", "add-and-verify-document-attachment.cs", + "add-annotation-and-merge-pdfs.cs", + "add-attachment-and-encrypt-pdf.cs", "add-attachment-and-list-attachments.cs", + "add-attachment-and-list-names.cs", + "add-attachment-and-retrieve-name.cs", + "add-attachment-and-set-viewer-preference.cs", + "add-attachment-and-store-checksum-metadata.cs", + "add-attachment-preserve-existing.cs", "add-attachment-set-moddate-pdf.cs", - "add-attachment-set-viewer-preference.cs", + "add-attachment-set-modification-date.cs", "add-attachment-store-checksum-metadata.cs", + "add-attachment-to-multiple-pdfs.cs", + "add-attachment-verify-extraction.cs", "add-attachment-with-custom-mime-type-to-pdf.cs", "add-author-and-title-metadata-to-pdf.cs", "add-base64-image-stamp-to-pdf-page.cs", + "add-batch-text-annotations-to-pdf.cs", + "add-bold-red-centered-text-stamp-page-5.cs", "add-bookmark-to-pdf-page.cs", "add-confidential-text-stamp.cs", "add-confirmation-dialog-to-pdf-submit-button.cs", + "add-corporate-branding-xmp-metadata.cs", "add-custom-project-schema-to-pdf-xmp-metadata.cs", "add-custom-xmp-metadata-projectid.cs", + "add-dashed-line-annotation-to-pdf.cs", "add-dashed-line-annotation.cs", "add-dashed-rectangle-annotation-with-opacity.cs", "add-document-attachment-preserve-existing.cs", "add-document-attachment-with-description.cs", "add-document-attachment-with-error-handling.cs", "add-embedded-file-attachment-to-pdf.cs", + "add-encrypted-attachment-aes256.cs", "add-encrypted-attachment-with-custom-description.cs", "add-external-url-bookmark-to-pdf.cs", "add-file-attachment-annotation-opacity.cs", @@ -14279,9 +17117,13 @@ "add-file-attachment-to-pdf.cs", "add-file-attachment-to-pdf__v2.cs", "add-file-attachment-with-creation-date.cs", + "add-file-attachment-with-custom-mime.cs", "add-file-attachment-with-retry.cs", "add-free-text-annotation-helvetica.cs", + "add-free-text-html-annotation.cs", "add-freetext-annotation-html.cs", + "add-green-circle-annotation-to-pdf-page.cs", + "add-green-circle-annotation-to-pdf-page__v2.cs", "add-green-circle-annotation.cs", "add-help-bookmark-open-url.cs", "add-highlight-annotation-to-pdf-page.cs", @@ -14289,178 +17131,274 @@ "add-hyperlink-annotation-to-pdf-page.cs", "add-hyperlink-annotation-to-pdf.cs", "add-image-attachment-and-stamp.cs", + "add-image-stamp-from-stream.cs", + "add-image-stamp-to-bottom-right-page-3.cs", + "add-image-stamp-to-page-three-50mm.cs", "add-image-stamp-to-page-three.cs", "add-image-stamp-to-pdf-page.cs", "add-image-stamp-to-pdf-page__v2.cs", + "add-image-stamp-to-specific-page.cs", + "add-image-to-pdf-using-pdffilemend.cs", "add-image-watermark-to-pdfs.cs", "add-javascript-alert-annotation-to-pdf.cs", + "add-javascript-calculate-action-to-pdf-form.cs", + "add-javascript-calculation-button-to-pdf-form.cs", "add-javascript-calculation-to-pdf-form.cs", + "add-javascript-click-action-to-pdf-rectangle.cs", "add-javascript-click-action-to-rectangle.cs", "add-javascript-to-pdf-form-button.cs", + "add-javascript-validation-button-to-pdf-form.cs", "add-javascript-validation-to-pdf-form.cs", "add-large-attachment-to-pdf-buffered.cs", "add-large-attachment-to-pdf.cs", + "add-large-stream-attachment-to-pdf.cs", "add-light-gray-background-to-text-annotation.cs", "add-line-annotation-with-arrowheads.cs", "add-memory-stream-attachment-to-pdf.cs", + "add-multiline-right-aligned-text-stamp-page-4.cs", "add-multiline-text-stamp.cs", + "add-network-attachment-to-pdf-with-retry.cs", "add-page-open-javascript-log-page-number.cs", "add-pdf-attachment-with-description.cs", "add-popup-annotation-to-pdf.cs", + "add-popup-annotation-with-bullet-list.cs", "add-popup-annotation-with-bullet-points.cs", "add-rectangle-annotation-dash-opacity.cs", "add-rectangle-annotation-light-gray.cs", + "add-rectangle-annotation-with-dash-opacity.cs", "add-red-bold-text-stamp-to-page-five.cs", + "add-red-highlight-annotation-to-pdf.cs", "add-red-rectangle-annotation-to-pdf-page.cs", + "add-red-rectangle-annotation.cs", "add-right-aligned-multiline-text-stamp-page-4.cs", + "add-rotated-image-stamp-to-pdf.cs", "add-rotated-image-stamp-with-opacity.cs", "add-rtl-text-annotation-to-pdf.cs", "add-scaled-image-stamp-from-memory-stream.cs", + "add-semi-transparent-file-attachment-annotation.cs", "add-semi-transparent-stamp-annotation.cs", + "add-semi-transparent-text-stamp.cs", "add-square-annotation-red-border.cs", "add-square-annotation-with-custom-border.cs", "add-sticky-note-annotation-to-pdf.cs", + "add-subject-to-text-annotation.cs", + "add-submit-button-confirmation-dialog.cs", "add-text-annotation-and-merge-pdfs.cs", "add-text-annotation-set-subject.cs", + "add-text-annotation-thick-border.cs", "add-text-annotation-to-pdf-page.cs", "add-text-annotation-with-author-metadata.cs", + "add-text-annotation-with-custom-author.cs", "add-text-annotation-with-opacity.cs", "add-text-annotation-with-utc-creation-date.cs", + "add-text-annotation-with-utc-timestamp.cs", "add-text-stamp-with-shadow.cs", "add-thick-green-circle-annotation-page-six.cs", "add-tooltip-annotation-to-pdf.cs", + "add-underlined-text-stamp-to-page-ten.cs", "add-underlined-yellow-text-stamp-to-pdf-page.cs", "add-unicode-attachment-description-to-pdf.cs", + "add-url-bookmark-to-pdf.cs", + "add-watermark-to-pdfs-in-folder.cs", "add-watermark-to-pdfs-in-parallel.cs", "add-web-link-annotation-to-pdf.cs", + "add-xmp-department-metadata-to-pdf.cs", + "add-xmp-metadata-author-title.cs", "add-xmp-metadata-corporate-branding.cs", "add-xmp-metadata-field-to-pdf.cs", "align-stamp-with-paragraph-baseline.cs", + "apply-45-degree-rotation-to-stamp.cs", "apply-viewer-preferences-from-json.cs", + "apply-viewer-preferences-to-decrypted-pdf.cs", "apply-viewer-preferences-to-encrypted-pdf.cs", "apply-viewer-preferences-to-multiple-pdfs.cs", "async-add-attachment-to-pdf.cs", "attach-downloaded-file-to-pdf.cs", + "attach-image-add-stamp-annotation.cs", "attach-multiple-files-to-pdf.cs", + "attach-network-downloaded-file-to-pdf.cs", "batch-add-annotations-from-json.cs", "batch-add-attachment-to-pdfs.cs", "batch-add-javascript-alert-to-rectangle-annotations.cs", "batch-add-password-protection-to-pdfs.cs", "batch-add-red-rectangle-annotation.cs", "batch-add-text-annotations-to-pdf.cs", + "batch-apply-js-alert-to-rectangle-annotations.cs", "batch-extract-images-from-pdfs.cs", "batch-remove-attachments-add-disclaimer-annotation.cs", + "batch-remove-attachments-add-disclaimer.cs", "batch-replace-confidential-with-public.cs", "batch-reposition-stamps-top-center.cs", "batch-set-pdf-viewer-preference-full-screen.cs", + "batch-set-pdf-viewer-preference-fullscreen.cs", + "center-image-stamp-on-page-8.cs", "center-image-stamp-on-page.cs", + "change-pdf-viewer-preferences-save.cs", "change-pdf-viewer-preferences.cs", "check-pdf-checkbox-field.cs", "combine-jpeg-images-into-pdf.cs", + "combine-jpeg-images-to-pdf.cs", + "compare-pdf-file-sizes-after-annotation.cs", "compare-pdf-file-sizes-after-editing.cs", + "config-driven-pdf-pipeline-attachments-viewer-annotations.cs", "configure-continuous-view-mode.cs", "convert-jpeg-to-pdf.cs", "convert-pdf-page-to-high-res-png.cs", "convert-pdf-pages-to-bmp.cs", "convert-pdf-pages-to-png-150-dpi.cs", + "convert-pdf-pages-to-png-transparent.cs", "convert-pdf-pages-to-transparent-png.cs", + "convert-pdf-to-jpeg-150-dpi.cs", "convert-pdf-to-multi-page-tiff-lzw.cs", "convert-pdf-to-png-thumbnails-300-dpi.cs", "convert-pdf-to-progressive-jpeg-150-dpi.cs", "convert-png-to-multi-page-pdf.cs", "create-dashed-border-rectangle-annotation.cs", + "create-dashed-rectangle-annotation.cs", "create-image-stamp-from-memory-stream.cs", + "create-multiline-text-stamp.cs", + "create-nested-bookmarks-pdf.cs", "create-nested-bookmarks-pdfcontenteditor.cs", "create-nested-pdf-bookmarks-three-levels.cs", + "create-nested-pdf-bookmarks.cs", "create-pdf-image-catalog.cs", + "create-rubber-stamp-with-custom-appearance.cs", "custom-annotation-appearance-stream.cs", "custom-appearance-rubber-stamp.cs", "decrypt-edit-reencrypt-pdf.cs", "delete-all-attachments-verify-count.cs", + "delete-all-pdf-attachments-verify.cs", "delete-page-from-pdf.cs", + "delete-pdf-attachments-matching-old-pdf.cs", + "disable-zoom-controls-in-pdf.cs", "disable-zoom-controls-set-fixed-zoom.cs", + "edit-pdf-text-with-pdfcontenteditor-disposal.cs", + "edit-pdf-with-logging-using-pdfcontenteditor.cs", + "embed-memory-stream-as-pdf-attachment.cs", "enable-centerwindow-viewer-preference.cs", + "enable-displaydoctitle-viewer-preference.cs", "encrypt-attachment-and-add-to-pdf.cs", "encrypt-pdf-128-aes-restrict-permissions.cs", + "encrypt-pdf-attachment-and-add-to-pdf.cs", "encrypt-pdf-with-attachment-and-viewer-preference.cs", + "encrypt-pdf-with-certificate-signature.cs", + "export-modified-pdf-to-memory-stream.cs", "export-pdf-annotations-to-json.cs", "export-pdf-to-memorystream.cs", - "extract-first-image-from-pdf-page.cs", + "export-pdf-viewer-preferences-to-xml.cs", + "extract-first-image-from-pdf-page2-png.cs", "extract-grayscale-images-from-pdf-page.cs", "extract-images-from-pdf-pages.cs", + "extract-images-from-pdf-rename-by-page-index.cs", "extract-images-from-pdf.cs", + "extract-page5-images-grayscale.cs", "extract-pdf-viewer-preferences-to-json.cs", "extract-pdf-viewer-preferences-to-xml.cs", "extract-pdf-viewer-preferences-to-xml__v2.cs", + "extract-viewer-preferences-to-json.cs", "fill-acroform-text-field.cs", "fill-pdf-acroform-from-xml.cs", "fill-pdf-form-fields-from-json.cs", + "fill-pdf-form-fields-from-json__v2.cs", "folder-pdf-monitor-add-text.cs", + "generate-pdf-catalog-of-extracted-images.cs", + "get-pdf-viewer-preferences-zoom.cs", "hide-annotations-in-fullscreen-mode.cs", + "hide-annotations-when-fullscreen.cs", "hide-menubar-viewer-preference.cs", + "hide-pdf-navigation-panels-use-none.cs", + "hide-pdf-toolbar-viewer-preference.cs", "hide-scrollbars-disable-page-transitions.cs", + "hide-scrollbars-pdf-viewer.cs", "hide-scrollbars-viewer-preference.cs", - "hide-toolbar-and-menu-bar.cs", + "hide-toolbar-and-menubar-viewer-preference.cs", + "hide-toolbar-and-menubar-viewer-preferences.cs", "hide-toolbar-and-menubar.cs", "hide-toolbar-using-pdfcontenteditor.cs", + "import-annotations-from-json.cs", "insert-blank-page-add-header.cs", + "insert-image-annotation-with-caption.cs", "insert-image-with-caption-annotation.cs", "lock-text-annotation-in-pdf.cs", + "lock-text-annotation.cs", "log-pdf-edit-operations.cs", + "map-pdf-viewer-preferences-to-toggles.cs", "move-last-page-to-beginning.cs", "password-protect-pdf-disable-printing.cs", "pdf-pipeline-attachments-viewer-preferences-annotations.cs", "pdfcontenteditor-wrapper-text-replace-attachment.cs", + "persist-viewer-preferences-after-editing-pdf.cs", "persist-viewer-preferences-in-pdf.cs", "populate-pdf-form-fields-from-json.cs", "print-pdf-custom-page-ranges.cs", "print-pdf-duplex-collated-copies.cs", "print-pdf-multiple-copies-landscape.cs", + "print-selected-pdf-pages.cs", "read-pdf-viewer-preferences-zoom.cs", "refresh-pdf-attachments.cs", "remove-all-attachments-from-pdf.cs", "remove-all-bookmarks-from-pdf.cs", "remove-attachments-old-pdf.cs", + "remove-embedded-file-from-pdf.cs", "remove-pdf-attachment.cs", "remove-specific-bookmark-from-pdf.cs", - "replace-dates-mmddyyyy-to-yyyymmdd.cs", - "replace-draft-with-final-in-pdf.cs", + "replace-dates-in-pdf-using-regex.cs", + "replace-invoicenumber-with-uuid-page-6.cs", + "replace-phrase-bold-preserve-font-size.cs", "replace-phrase-with-bold-text.cs", "replace-text-in-pdf-annotations.cs", "replace-text-in-pdf.cs", + "replace-text-in-pdf__v2.cs", "replace-text-on-page-preserve-font-style.cs", "replace-text-on-specific-pdf-page.cs", "replace-text-pdf-content-editor-disposal.cs", "replace-text-pdf-using-pdfcontenteditor.cs", + "replace-text-preserve-font-style.cs", "replace-text-preserve-font.cs", - "replace-text-using-regex-across-pdf-pages.cs", - "replace-text-with-uuid-on-pdf-page.cs", + "replace-text-preserve-style.cs", + "replace-text-using-regular-expressions.cs", + "reposition-stamp-left-margin.cs", "reposition-stamp-on-page-four.cs", + "reposition-stamp-to-baseline-page-5.cs", + "retrieve-pdf-viewer-preferences-to-xml.cs", "retrieve-pdf-viewer-preferences.cs", "retrieve-pdf-viewer-preferences__v2.cs", + "retrieve-verify-incremental-viewer-preferences.cs", + "rotate-pdf-pages-in-parallel.cs", "rotate-stamp-annotation-90-degrees.cs", "rotate-stamp-diagonal.cs", "rotate-text-annotation-90-degrees.cs", "secure-pdf-with-certificate-encryption-and-signature.cs", "select-radio-button-in-pdf-form.cs", + "set-annotation-opacity-image-stamp.cs", + "set-checkbox-field-in-pdf-form.cs", + "set-continuous-view-mode.cs", "set-hide-menubar-viewer-preference.cs", "set-highlight-annotation-border-color-red.cs", + "set-light-gray-background-for-text-annotations.cs", "set-multiple-viewer-preferences-pdf.cs", "set-pdf-permissions-allow-copy-block-form-editing.cs", + "set-pdf-permissions-allow-copy-restrict-form-edit.cs", + "set-pdf-viewer-preference-and-default-zoom.cs", "set-pdf-viewer-preference-fullscreen.cs", - "set-pdf-viewer-preference-show-outlines.cs", + "set-pdf-viewer-preference-show-outline.cs", "set-pdf-viewer-preference-single-page.cs", - "set-pdf-viewer-preference-use-none.cs", + "set-pdf-viewer-preferences-fit-width.cs", "set-pdf-viewer-preferences-thumbnails-fit-width.cs", "set-pdf-window-title-displaydoctitle.cs", + "set-radio-button-value-in-pdf-acroform.cs", "set-viewer-preference-default-zoom.cs", "silently-print-pdf-to-network-printer.cs", + "simple-pdf-editing-wrapper.cs", "split-pdf-into-single-page-files.cs", "toggle-fullscreen-viewer-preference.cs", "toggle-pdf-viewer-preferences.cs", "underline-specific-phrase-on-pdf-page.cs", + "underline-specific-phrase-page-4.cs", "update-pdf-xmp-creator-metadata.cs", + "update-pdf-xmp-metadata-custom-project-schema.cs", "validate-pdf-integrity-after-adding-margins.cs", + "validate-pdf-integrity-sha256.cs", "verify-pdf-attachment-after-save.cs", "verify-text-annotation-position.cs" ], @@ -14471,402 +17409,539 @@ "Aspose.Pdf.Text", "Aspose.Pdf.Devices", "Aspose.Pdf.Printing", - "Aspose.Pdf.Forms", - "Aspose.Pdf.Drawing" + "Aspose.Pdf.Drawing", + "Aspose.Pdf.Forms" ], "key_apis": [ "PdfContentEditor", "PdfFileStamp", "PdfExtractor", "TextAnnotation", + "PdfAnnotationEditor", "PdfFileSecurity", "Form", - "PdfAnnotationEditor", "PdfFileEditor", - "PdfConverter", + "PdfPageEditor", "SquareAnnotation", - "TextStamp", "PdfBookmarkEditor", "PdfFileInfo", - "PdfPageEditor", "TextFragment", - "CircleAnnotation", - "FileInfo", + "TextFragmentAbsorber", + "TextStamp", "FormEditor", - "GoToURIAction", - "HighlightAnnotation", - "JavascriptAction", "PngDevice", - "TextFragmentAbsorber", "FileAttachmentAnnotation", - "FreeTextAnnotation", + "HighlightAnnotation", "ImageStamp", + "PdfConverter", + "PdfFileMend", + "BmpDevice", + "CircleAnnotation", + "FileInfo", + "FreeTextAnnotation", + "GoToURIAction", + "JavascriptAction", + "JpegDevice", "LinkAnnotation", - "OutlineItemCollection" + "SimplePdfEditor" ], "examples": [ { - "filename": "add-and-verify-attachment-in-pdf.cs", - "title": "Add and Verify Attachment in PDF", - "description": "Shows how to attach a file to a PDF with PdfContentEditor, extract it using PdfExtractor, and compare the extracted bytes to the original file to confirm integrity.", - "tags": [ - "attachment", - "pdf", - "extraction", - "verification", + "filename": "add-an-attachment-with-custom-mime-type-application-pdf-and-description-invoice-document.cs", + "title": "Add An Attachment With Custom Mime Type Application Pdf And Description Invoice Document", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-and-verify-attachment-in-pdf.cs", + "title": "Add And Verify Attachment In Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-and-verify-document-attachment.cs", + "title": "Add And Verify Document Attachment", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-annotation-and-merge-pdfs.cs", + "title": "Add Annotation to PDF and Merge with Another PDF", + "description": "The example loads a PDF, adds a text annotation to its first page, saves it, and then concatenates it with a second PDF using Aspose.Pdf.Facades.", + "tags": [ + "annotation", + "merge", + "pdf", + "Aspose.Pdf", + "concatenate" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Facades.PdfFileEditor.Concatenate" + ], + "difficulty": "intermediate" + }, + { + "filename": "add-attachment-and-encrypt-pdf.cs", + "title": "Add Attachment and Encrypt PDF with Password", + "description": "Demonstrates adding a document attachment, setting viewer preferences, and then encrypting the PDF with user and owner passwords using AES‑256.", + "tags": [ + "pdf", + "attachment", + "encryption", + "viewer-preferences", "aspose-pdf" ], "apis_used": [ + "PdfContentEditor", + "PdfContentEditor.AddDocumentAttachment", + "PdfContentEditor.ChangeViewerPreference", + "PdfContentEditor.Save", + "PdfFileSecurity", + "PdfFileSecurity.EncryptFile" + ], + "difficulty": "intermediate" + }, + { + "filename": "add-attachment-and-list-attachments.cs", + "title": "Add Attachment And List Attachments", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-attachment-and-list-names.cs", + "title": "Add Attachment to PDF and List Attachment Names", + "description": "Demonstrates how to embed a PDF file as an attachment using PdfContentEditor and then extract and display all attachment names with PdfExtractor.", + "tags": [ + "attachment", + "pdf", + "aspose", + "facade", + "extractor" + ], + "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Facades.PdfExtractor", - "PdfContentEditor.BindPdf", + "Aspose.Pdf.Text.TextFragment", "PdfContentEditor.AddDocumentAttachment", "PdfContentEditor.Save", - "PdfExtractor.BindPdf", "PdfExtractor.ExtractAttachment", - "PdfExtractor.GetAttachNames", - "PdfExtractor.GetAttachment" + "PdfExtractor.GetAttachNames" ], "difficulty": "intermediate" }, { - "filename": "add-and-verify-document-attachment.cs", - "title": "Add and Verify Document Attachment in PDF", - "description": "Demonstrates how to attach a file to a PDF using PdfContentEditor and then retrieve the attachment name with PdfExtractor for verification.", + "filename": "add-attachment-and-retrieve-name.cs", + "title": "Add Attachment and Retrieve Its Name from PDF", + "description": "Demonstrates how to embed a file as a PDF attachment using PdfContentEditor and then extract the attachment's file specification name with PdfExtractor for verification.", "tags": [ "attachment", "pdf", - "verification", - "Aspose.Pdf", - "PdfContentEditor" + "facade", + "extractor", + "metadata" ], "apis_used": [ + "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment", "Aspose.Pdf.Facades.PdfContentEditor.Save", - "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor", "Aspose.Pdf.Facades.PdfExtractor.ExtractAttachment", "Aspose.Pdf.Facades.PdfExtractor.GetAttachNames", - "Aspose.Pdf.Document" + "Aspose.Pdf.Facades.PdfExtractor.GetAttachmentInfo", + "Aspose.Pdf.FileSpecification" ], "difficulty": "intermediate" }, { - "filename": "add-attachment-and-list-attachments.cs", - "title": "Add Attachment to PDF and List Attachments", - "description": "Demonstrates how to embed a file as a document attachment using PdfContentEditor and then retrieve the list of attachment names with PdfExtractor.", + "filename": "add-attachment-and-set-viewer-preference.cs", + "title": "Add Attachment and Set Viewer Preference in PDF", + "description": "Shows how to embed a file as a document attachment and configure the PDF viewer to open the attachment panel using Aspose.Pdf.Facades.", "tags": [ "attachment", + "viewer-preference", "pdf", - "facades", - "extractor", - "aspose-pdf" + "facade", + "command-line" + ], + "apis_used": [ + "PdfContentEditor", + "PdfContentEditor.BindPdf", + "PdfContentEditor.AddDocumentAttachment", + "PdfContentEditor.ChangeViewerPreference", + "PdfContentEditor.Save", + "ViewerPreference" + ], + "difficulty": "intermediate" + }, + { + "filename": "add-attachment-and-store-checksum-metadata.cs", + "title": "Add PDF Attachment and Store Checksum in Metadata", + "description": "Demonstrates attaching a PDF file to another PDF using Aspose.Pdf.Facades, computing its MD5 checksum, and saving the checksum as custom metadata for integrity verification.", + "tags": [ + "attachment", + "metadata", + "checksum", + "Aspose.Pdf", + "facades" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment", - "Aspose.Pdf.Facades.PdfContentEditor.Save", - "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractAttachment", - "Aspose.Pdf.Facades.PdfExtractor.GetAttachNames" + "Aspose.Pdf.Facades.PdfFileInfo", + "Aspose.Pdf.Facades.PdfFileInfo.SetMetaInfo" ], "difficulty": "intermediate" }, { - "filename": "add-attachment-set-moddate-pdf.cs", - "title": "Add Attachment and Set Modification Date in PDF", - "description": "Shows how to attach a file to a PDF document and update its modification date to the current UTC timestamp for auditing purposes using Aspose.Pdf.", + "filename": "add-attachment-preserve-existing.cs", + "title": "Add Attachment to PDF Without Deleting Existing Attachments", + "description": "Demonstrates how to add a new document attachment to an existing PDF while keeping any previously attached files intact using Aspose.Pdf.Facades.", "tags": [ - "attachment", - "moddate", "pdf", - "audit", + "attachment", + "add", + "preserve", "Aspose.Pdf" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment", - "Aspose.Pdf.Facades.PdfContentEditor.Save", - "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.ModDate" + "Aspose.Pdf.Facades.PdfContentEditor.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" + }, + { + "filename": "add-attachment-set-moddate-pdf.cs", + "title": "Add Attachment Set Moddate Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "add-attachment-set-viewer-preference.cs", - "title": "Add Attachment and Set Viewer Preference", - "description": "Demonstrates adding a file attachment to a PDF without a visible annotation and configuring the viewer to show the attachment panel using the PdfContentEditor facade.", + "filename": "add-attachment-set-modification-date.cs", + "title": "Add Attachment and Set Modification Date in PDF", + "description": "Demonstrates how to attach a file to a PDF and update the document's modification date to the current UTC timestamp using Aspose.Pdf.", "tags": [ "attachment", - "viewer-preference", + "modification-date", + "audit", "pdf", - "facade", - "command-line" + "Aspose.Pdf" ], "apis_used": [ "PdfContentEditor", - "PdfContentEditor.BindPdf", "PdfContentEditor.AddDocumentAttachment", - "PdfContentEditor.ChangeViewerPreference", + "PdfContentEditor.BindPdf", "PdfContentEditor.Save", - "ViewerPreference.PageModeUseAttachment" + "PdfFileInfo", + "PdfFileInfo.ModDate", + "PdfFileInfo.BindPdf", + "PdfFileInfo.Save" ], "difficulty": "intermediate" }, { "filename": "add-attachment-store-checksum-metadata.cs", - "title": "Add Attachment and Store Checksum in PDF Metadata", - "description": "Shows how to embed a file into a PDF, retrieve its MD5 checksum, and write that checksum as custom metadata using Aspose.Pdf Facades.", + "title": "Add Attachment Store Checksum Metadata", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-attachment-to-multiple-pdfs.cs", + "title": "Add Attachment to Multiple PDFs", + "description": "Shows how to batch‑process a list of PDF files and add the same document attachment to each using Aspose.Pdf.Facades.PdfContentEditor.", "tags": [ - "attachment", - "checksum", - "metadata", "pdf", - "facades" + "attachment", + "batch", + "aspose", + "facade" ], "apis_used": [ - "PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor", + "PdfContentEditor.BindPdf", "PdfContentEditor.AddDocumentAttachment", - "Document", - "Document.EmbeddedFiles", - "PdfFileInfo", - "PdfFileInfo.SetMetaInfo" + "PdfContentEditor.Save", + "PdfContentEditor.Close" ], "difficulty": "intermediate" }, { - "filename": "add-attachment-with-custom-mime-type-to-pdf.cs", - "title": "Add Attachment with Custom MIME Type to PDF", - "description": "Demonstrates how to embed a file into a PDF and specify a custom MIME type using Aspose.Pdf.", + "filename": "add-attachment-verify-extraction.cs", + "title": "Add Attachment to PDF and Verify Extraction", + "description": "Demonstrates how to attach a file to a PDF using PdfContentEditor, then extract the attachment with PdfExtractor and compare its bytes to the original file.", "tags": [ - "attachment", - "mime-type", "pdf", - "aspose-pdf", - "embedded-files" + "attachment", + "add", + "extract", + "verification" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Document.EmbeddedFiles", - "Aspose.Pdf.FileSpecification.MIMEType", - "Aspose.Pdf.Document.Save" + "PdfContentEditor", + "PdfContentEditor.AddDocumentAttachment", + "PdfContentEditor.Save", + "PdfExtractor", + "PdfExtractor.ExtractAttachment", + "PdfExtractor.GetAttachNames", + "PdfExtractor.GetAttachment" ], - "difficulty": "beginner" + "difficulty": "intermediate" + }, + { + "filename": "add-attachment-with-custom-mime-type-to-pdf.cs", + "title": "Add Attachment With Custom Mime Type To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "add-author-and-title-metadata-to-pdf.cs", - "title": "Add Author and Title Metadata to PDF", - "description": "Demonstrates how to set the author and title metadata of a PDF using Aspose.Pdf by updating the document's Info dictionary and saving the file.", + "title": "Add Author And Title Metadata To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-base64-image-stamp-to-pdf-page.cs", + "title": "Add Base64 Image Stamp To Pdf Page", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-batch-text-annotations-to-pdf.cs", + "title": "Add Batch Text Annotations to PDF", + "description": "Shows how to add multiple text annotations to a PDF in a single batch by looping over annotation definitions and using the PdfAnnotationEditor facade.", "tags": [ - "metadata", - "author", - "title", + "annotations", + "batch", + "text", "pdf", - "aspose-pdf" + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.DocumentInfo", - "Aspose.Pdf.SaveFormat", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Color", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", + "Aspose.Pdf.Page.Annotations.Add" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "add-base64-image-stamp-to-pdf-page.cs", - "title": "Add Base64 Image Stamp to Specific PDF Page", - "description": "Shows how to decode a Base64‑encoded image, create a Stamp, position it at 50 mm, and apply it to page 3 of a PDF using Aspose.Pdf.Facades.", + "filename": "add-bold-red-centered-text-stamp-page-5.cs", + "title": "Add Bold Red Centered Text Stamp to Page 5", + "description": "Demonstrates how to place a bold, red, centered text stamp on the fifth page of a PDF using Aspose.Pdf Facades.", "tags": [ - "image-stamp", - "base64", + "text-stamp", "pdf", - "Aspose.Pdf", - "page3" + "aspose-pdf", + "center-alignment", + "bold" ], "apis_used": [ - "Aspose.Pdf.Facades.Stamp", - "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.Stamp.BindImage", - "Aspose.Pdf.Facades.Stamp.SetOrigin", - "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", - "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", - "Aspose.Pdf.Facades.PdfFileStamp.Save" + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.TextStamp", + "Aspose.Pdf.Text.FontRepository", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.HorizontalAlignment", + "Aspose.Pdf.VerticalAlignment" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "add-bookmark-to-pdf-page.cs", "title": "Add Bookmark to PDF Page", - "description": "Shows how to create a bookmark titled \"Project Overview\" that navigates to page 5 of a PDF using Aspose.Pdf.Facades.", + "description": "Shows how to create a bookmark titled \"Project Overview\" that links to page five of a PDF using Aspose.Pdf.Facades.", "tags": [ "bookmark", "pdf", "Aspose.Pdf", - "facade", - "page" + "page navigation", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfBookmarkEditor", "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", "Aspose.Pdf.Facades.PdfBookmarkEditor.CreateBookmarkOfPage", - "Aspose.Pdf.Facades.PdfBookmarkEditor.Save", - "Aspose.Pdf.Facades.PdfBookmarkEditor.Close" + "Aspose.Pdf.Facades.PdfBookmarkEditor.Save" ], "difficulty": "beginner" }, { "filename": "add-confidential-text-stamp.cs", - "title": "Add Confidential Red Text Stamp with Transparency", - "description": "Demonstrates how to place a red \"Confidential\" text stamp with 50 % opacity on every page of a PDF using Aspose.PDF.", + "title": "Add Confidential Text Stamp to PDF", + "description": "Demonstrates creating a red \"Confidential\" text stamp with semi‑transparent background and applying it as a background watermark to all pages of a PDF using Aspose.Pdf facades.", "tags": [ - "pdf", - "watermark", "text-stamp", + "confidential", "opacity", + "background", "Aspose.Pdf" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextStamp", - "Aspose.Pdf.Text.FontRepository.FindFont", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Color" + "Aspose.Pdf.Facades.FormattedText", + "Aspose.Pdf.Facades.Stamp.BindLogo", + "Aspose.Pdf.Facades.Stamp.IsBackground", + "Aspose.Pdf.Facades.Stamp.Opacity", + "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", + "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", + "Aspose.Pdf.Facades.PdfFileStamp.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "add-confirmation-dialog-to-pdf-submit-button.cs", - "title": "Add Confirmation Dialog to PDF Submit Button", - "description": "Demonstrates how to add a submit button to a PDF form and attach JavaScript that shows a confirmation dialog before submitting the form using Aspose.Pdf Facade API.", + "title": "Add Confirmation Dialog To Pdf Submit Button", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-corporate-branding-xmp-metadata.cs", + "title": "Add Corporate Branding XMP Metadata to PDF", + "description": "Demonstrates how to bind a PDF, add custom XMP metadata such as a logo URL and brand color, and save the branded document using Aspose.Pdf.", "tags": [ - "pdf", - "form", - "javascript", - "confirmation", - "submit-button" + "XMP", + "metadata", + "branding", + "PDF", + "Aspose" ], "apis_used": [ - "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.BindPdf", - "Aspose.Pdf.Facades.FormEditor.AddSubmitBtn", - "Aspose.Pdf.Facades.FormEditor.AddFieldScript", - "Aspose.Pdf.Facades.FormEditor.Save" + "Aspose.Pdf.Facades.PdfXmpMetadata", + "Aspose.Pdf.Facades.PdfXmpMetadata.BindPdf", + "Aspose.Pdf.Facades.PdfXmpMetadata.Add", + "Aspose.Pdf.Facades.PdfXmpMetadata.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "add-custom-project-schema-to-pdf-xmp-metadata.cs", - "title": "Add Custom Project Schema to PDF XMP Metadata", - "description": "Demonstrates how to register a custom namespace and add project identifier and version fields to the XMP metadata of an existing PDF using Aspose.Pdf.Facades.", + "title": "Add Custom Project Schema To Pdf Xmp Metadata", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-custom-xmp-metadata-projectid.cs", + "title": "Add Custom XMP Metadata and Document Property to PDF", + "description": "Demonstrates how to add a custom XMP metadata field (ProjectID) to a PDF and synchronize it with the document's Info dictionary using Aspose.Pdf.Facades.", "tags": [ "xmp", "metadata", - "custom-namespace", "pdf", + "custom-property", "aspose" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfXmpMetadata", + "PdfXmpMetadata", "PdfXmpMetadata.BindPdf", - "PdfXmpMetadata.RegisterNamespaceURI", "PdfXmpMetadata.Add", - "PdfXmpMetadata.Save" + "PdfXmpMetadata.Save", + "PdfFileInfo", + "PdfFileInfo.BindPdf", + "PdfFileInfo.SetMetaInfo", + "PdfFileInfo.SaveNewInfoWithXmp" ], "difficulty": "intermediate" }, { - "filename": "add-custom-xmp-metadata-projectid.cs", - "title": "Add Custom XMP Metadata (ProjectID) to PDF", - "description": "Demonstrates how to add a custom XMP metadata field named ProjectID with the value 12345 to a PDF and verify its presence using Aspose.Pdf.Facades.", + "filename": "add-dashed-line-annotation-to-pdf.cs", + "title": "Add Dashed Line Annotation to PDF Diagram", + "description": "Demonstrates how to add a custom dashed line annotation to a PDF page using Aspose.Pdf.Facades.PdfContentEditor, specifying line coordinates, dash pattern, and appearance.", "tags": [ - "xmp", - "metadata", "pdf", - "aspose", - "csharp" + "annotation", + "line", + "dash", + "Aspose.Pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfXmpMetadata", - "Aspose.Pdf.Facades.PdfXmpMetadata.BindPdf", - "Aspose.Pdf.Facades.PdfXmpMetadata.Add", - "Aspose.Pdf.Facades.PdfXmpMetadata.Save", - "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.GetMetaInfo" + "Aspose.Pdf.Facades.PdfContentEditor", + "PdfContentEditor.BindPdf", + "PdfContentEditor.CreateLine", + "PdfContentEditor.Save" ], "difficulty": "beginner" }, { "filename": "add-dashed-line-annotation.cs", - "title": "Add Dashed Line Annotation with Custom Pattern to PDF", - "description": "Demonstrates using Aspose.Pdf.Facades.PdfContentEditor to create a line annotation with a custom dash pattern on a PDF page.", - "tags": [ - "line-annotation", - "dash-pattern", - "pdf-editing", - "Aspose.Pdf", - "facades" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.CreateLine", - "Aspose.Pdf.Facades.PdfContentEditor.Save" - ], - "difficulty": "beginner" + "title": "Add Dashed Line Annotation", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "add-dashed-rectangle-annotation-with-opacity.cs", "title": "Add Dashed Rectangle Annotation with Opacity to PDF Page", - "description": "Demonstrates how to add a square (rectangle) annotation with a dashed border and 50% opacity to page six of a PDF using Aspose.Pdf.", + "description": "Demonstrates how to add a rectangle (square) annotation on page 6 of a PDF, apply a dashed border style, and set 50% opacity using the Aspose.Pdf facade API.", "tags": [ "annotation", "rectangle", - "opacity", "border", - "Aspose.Pdf" + "opacity", + "pdf" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.SquareAnnotation", + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.CreateSquareCircle", + "Aspose.Pdf.Facades.PdfContentEditor.Save", + "Aspose.Pdf.Annotations.Annotation", "Aspose.Pdf.Annotations.Border", - "Aspose.Pdf.Annotations.Dash" + "Aspose.Pdf.Annotations.Dash", + "Aspose.Pdf.Color" ], "difficulty": "intermediate" }, { "filename": "add-document-attachment-preserve-existing.cs", - "title": "Add Document Attachment Without Deleting Existing Attachments", - "description": "Demonstrates how to add a new file attachment to an existing PDF using Aspose.Pdf.Facades.PdfContentEditor while keeping any previously attached files intact.", - "tags": [ - "pdf", - "attachment", - "aspose", - "facade", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment", - "Aspose.Pdf.Facades.PdfContentEditor.Save" - ], - "difficulty": "beginner" + "title": "Add Document Attachment Preserve Existing", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "add-document-attachment-with-description.cs", "title": "Add Document Attachment with Description to PDF", - "description": "Demonstrates how to attach an external PDF file to an existing PDF and set a descriptive label using Aspose.Pdf.Facades PdfContentEditor.", + "description": "Shows how to attach an external PDF file to an existing PDF and assign a descriptive label using Aspose.Pdf.Facades.", "tags": [ "attachment", "metadata", "pdf", - "facades", - "Aspose.Pdf" + "Aspose.Pdf", + "PdfContentEditor" ], "apis_used": [ "Aspose.Pdf.Facades.PdfContentEditor", @@ -14879,7 +17954,7 @@ { "filename": "add-document-attachment-with-error-handling.cs", "title": "Add Document Attachment to PDF with Error Handling", - "description": "Demonstrates how to attach an external file to a PDF using Aspose.Pdf.Facades.PdfContentEditor while checking for missing source or attachment files and handling exceptions.", + "description": "Demonstrates how to attach an external file to a PDF using Aspose.Pdf.Facades.PdfContentEditor while checking for missing source or attachment files and handling unexpected errors.", "tags": [ "pdf", "attachment", @@ -14898,13 +17973,13 @@ { "filename": "add-embedded-file-attachment-to-pdf.cs", "title": "Add Embedded File Attachment to PDF", - "description": "Shows how to embed a file into an existing PDF using Aspose.Pdf.Facades.PdfContentEditor without creating a visible annotation.", + "description": "Shows how to embed an external file as a hidden attachment in an existing PDF using Aspose.Pdf's PdfContentEditor facade.", "tags": [ "pdf", "attachment", - "embedded", - "facades", - "aspose" + "embed", + "Aspose.Pdf", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfContentEditor", @@ -14915,35 +17990,43 @@ "difficulty": "beginner" }, { - "filename": "add-encrypted-attachment-with-custom-description.cs", - "title": "Add Encrypted Attachment with Custom Description to PDF", - "description": "Demonstrates adding a file attachment with a custom description to a PDF and then encrypting the PDF using AES‑256.", + "filename": "add-encrypted-attachment-aes256.cs", + "title": "Add Encrypted Attachment to PDF with AES‑256", + "description": "Demonstrates adding a file attachment with a custom description to a PDF and then encrypting the PDF using AES‑256 via Aspose.Pdf.", "tags": [ "attachment", "encryption", - "AES-256", + "AES", "PdfContentEditor", "PdfFileSecurity" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment", "Aspose.Pdf.Facades.PdfFileSecurity", - "Aspose.Pdf.Facades.PdfFileSecurity.EncryptFile", - "Aspose.Pdf.Facades.PdfFileSecurity.Save" + "PdfContentEditor.AddDocumentAttachment", + "PdfFileSecurity.EncryptFile" ], "difficulty": "intermediate" }, + { + "filename": "add-encrypted-attachment-with-custom-description.cs", + "title": "Add Encrypted Attachment With Custom Description", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "add-external-url-bookmark-to-pdf.cs", "title": "Add External URL Bookmark to PDF", - "description": "Shows how to create a bookmark in a PDF that opens an external website (URI action) using Aspose.Pdf.Facades.", + "description": "Shows how to use Aspose.Pdf.Facades.PdfContentEditor to create a bookmark that opens an external URL when selected in the PDF navigation pane.", "tags": [ "bookmark", - "uri", + "url", "pdf", - "navigation", - "Aspose.Pdf" + "aspose", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfContentEditor", @@ -14956,79 +18039,67 @@ }, { "filename": "add-file-attachment-annotation-opacity.cs", - "title": "Add File Attachment Annotation with Opacity to PDF Page", - "description": "Demonstrates how to use PdfContentEditor to attach a file as an annotation on page 3 of a PDF and set its opacity to 0.6.", - "tags": [ - "pdf", - "annotation", - "file-attachment", - "opacity", - "facade" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.CreateFileAttachment", - "Aspose.Pdf.Facades.PdfContentEditor.Save", - "Aspose.Pdf.Facades" - ], - "difficulty": "beginner" + "title": "Add File Attachment Annotation Opacity", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "add-file-attachment-annotation.cs", "title": "Add File Attachment Annotation to PDF", - "description": "Shows how to create a file‑attachment annotation on a PDF page that opens the attached file when clicked, using Aspose.Pdf.Facades.PdfContentEditor.", + "description": "Demonstrates how to attach a file to a PDF page as a clickable annotation using Aspose.Pdf.Facades. The annotation appears as an icon that opens the attached document when clicked.", "tags": [ - "file-attachment", - "annotation", "pdf", - "Aspose.Pdf", - "PdfContentEditor" + "attachment", + "annotation", + "aspose", + "facades" ], "apis_used": [ "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.CreateFileAttachment", - "Aspose.Pdf.Facades.PdfContentEditor.Save", - "Aspose.Pdf.Facades.PdfContentEditor.Close" + "PdfContentEditor.BindPdf", + "PdfContentEditor.CreateFileAttachment", + "PdfContentEditor.Save" ], "difficulty": "beginner" }, { "filename": "add-file-attachment-data-relationship.cs", "title": "Add File Attachment with Data Relationship to PDF", - "description": "Demonstrates attaching a file to a PDF page using PdfContentEditor and setting the AFRelationship to Data for improved document organization.", + "description": "Shows how to attach a file to an existing PDF using PdfContentEditor and set the attachment's AFRelationship to Data for improved document organization.", "tags": [ "attachment", "AFRelationship", "PdfContentEditor", - "annotation", - "file-specification" + "Aspose.Pdf", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Document", - "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Annotations.FileAttachmentAnnotation", - "Aspose.Pdf.AFRelationship", - "Aspose.Pdf.Page" + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment", + "Aspose.Pdf.Facades.PdfContentEditor.Save", + "Aspose.Pdf.Document.EmbeddedFiles", + "Aspose.Pdf.FileSpecification.AFRelationship" ], "difficulty": "intermediate" }, { "filename": "add-file-attachment-to-encrypted-pdf.cs", "title": "Add File Attachment to Encrypted PDF", - "description": "Demonstrates opening a password‑protected PDF, adding a file attachment without a visual annotation, and saving the updated document.", + "description": "Shows how to open a password‑protected PDF, attach a file to it, and save the modified document.", "tags": [ "pdf", "attachment", "encryption", "Aspose.Pdf", - "content-editor" + "facade" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Document(string, string)", "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment", "Aspose.Pdf.Facades.PdfContentEditor.Save" ], @@ -15036,14 +18107,14 @@ }, { "filename": "add-file-attachment-to-pdf.cs", - "title": "Add File Attachment to PDF Document", - "description": "Demonstrates how to attach an external file (Terms.pdf) to an existing PDF using Aspose.Pdf's PdfContentEditor without creating an annotation.", + "title": "Add File Attachment to PDF", + "description": "Demonstrates how to attach an external file (Terms.pdf) to an existing PDF document using Aspose.Pdf.Facades.PdfContentEditor and save the result.", "tags": [ "attachment", "pdf", - "Aspose.Pdf", - "PdfContentEditor", - "document" + "aspose", + "facade", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfContentEditor", @@ -15056,177 +18127,207 @@ { "filename": "add-file-attachment-to-pdf__v2.cs", "title": "Add File Attachment to PDF using PdfContentEditor", - "description": "Demonstrates how to attach an external file to an existing PDF document using the Aspose.Pdf.Facades.PdfContentEditor facade and save the result as a new PDF.", + "description": "Shows how to attach a local file to an existing PDF document and save the updated PDF using Aspose.Pdf.Facades.", "tags": [ "pdf", "attachment", + "aspose", "facade", - "csharp", - "aspose" + "csharp" ], "apis_used": [ - "PdfContentEditor", - "PdfContentEditor.BindPdf", - "PdfContentEditor.AddDocumentAttachment", - "PdfContentEditor.Save" + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment", + "Aspose.Pdf.Facades.PdfContentEditor.Save" ], "difficulty": "beginner" }, { "filename": "add-file-attachment-with-creation-date.cs", "title": "Add File Attachment with Creation Date to PDF", - "description": "Demonstrates attaching a PDF file to another PDF using PdfContentEditor and setting the attachment annotation's creation date to the current system time.", + "description": "Shows how to attach a file to a PDF page, give it a description, and set the attachment's creation date to the current system time using Aspose.Pdf.", "tags": [ "file-attachment", "annotation", "creation-date", - "pdf", - "facades" + "pdf-editing", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", "Aspose.Pdf.Facades.PdfContentEditor.CreateFileAttachment", "Aspose.Pdf.Document", - "Aspose.Pdf.Annotations.FileAttachmentAnnotation", - "Aspose.Pdf.Annotations.FileAttachmentAnnotation.CreationDate" + "Aspose.Pdf.Annotations.FileAttachmentAnnotation" ], "difficulty": "intermediate" }, { - "filename": "add-file-attachment-with-retry.cs", - "title": "Add File Attachment to PDF with Retry on Network Timeout", - "description": "Shows how to download a file from a URL and attach it to a PDF using Aspose.Pdf's PdfContentEditor, with retry logic to handle HttpClient timeout errors.", + "filename": "add-file-attachment-with-custom-mime.cs", + "title": "Add File Attachment to PDF with Custom MIME Type Note", + "description": "Demonstrates how to attach a file to a PDF using Aspose.Pdf by creating a FileSpecification and a FileAttachmentAnnotation. The example also explains that a custom MIME type cannot be set directly via the API.", "tags": [ - "pdf", "attachment", - "retry", - "httpclient", - "aspose" + "pdf", + "mime-type", + "annotation", + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "PdfContentEditor.BindPdf", - "PdfContentEditor.CreateFileAttachment", - "PdfContentEditor.Save" + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.Annotations.FileAttachmentAnnotation", + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate" }, + { + "filename": "add-file-attachment-with-retry.cs", + "title": "Add File Attachment With Retry", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "add-free-text-annotation-helvetica.cs", - "title": "Add Free‑Text Annotation with Helvetica Font", - "description": "Demonstrates how to add a free‑text annotation to a PDF page using Helvetica, size 12, and blue color, and save the result via the PdfContentEditor facade.", + "title": "Add Free‑Text Annotation with Helvetica Font to PDF", + "description": "Demonstrates how to add a free‑text annotation with Helvetica, size 12, blue color to a PDF using the Aspose.Pdf Facade API.", "tags": [ "free-text", "annotation", "pdf", - "Aspose.Pdf", - "facade" + "facade", + "appearance" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.Save", + "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Annotations.FreeTextAnnotation", - "Aspose.Pdf.Annotations.DefaultAppearance", - "Aspose.Pdf.Page.Annotations.Add" + "Aspose.Pdf.DefaultAppearance", + "Aspose.Pdf.Rectangle" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "add-freetext-annotation-html.cs", - "title": "Add Free‑Text Annotation with HTML to PDF", - "description": "Demonstrates how to insert a free‑text annotation containing rich HTML content into a PDF using Aspose.Pdf's PdfContentEditor.", + "filename": "add-free-text-html-annotation.cs", + "title": "Add Free‑Text Annotation with HTML Rich Text to PDF", + "description": "Shows how to create a free‑text annotation on a PDF page and embed HTML‑formatted rich text using Aspose.Pdf.", "tags": [ "free-text", "annotation", + "rich-text", "html", - "pdf", - "Aspose.Pdf" + "pdf-editing" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", "Aspose.Pdf.Facades.PdfContentEditor.CreateFreeText", - "Aspose.Pdf.Facades.PdfContentEditor.Save" + "Aspose.Pdf.Annotations.FreeTextAnnotation", + "Aspose.Pdf.Annotations.FreeTextAnnotation.RichText" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "add-green-circle-annotation.cs", + "filename": "add-freetext-annotation-html.cs", + "title": "Add Freetext Annotation Html", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-green-circle-annotation-to-pdf-page.cs", "title": "Add Green Circle Annotation to PDF Page", - "description": "Demonstrates how to add a circle annotation with a green fill color and a 3 pt border to the second page of a PDF using Aspose.Pdf.", + "description": "Shows how to place a circle annotation with a green fill color and a 3 pt border on the second page of a PDF using Aspose.Pdf's PdfContentEditor.", "tags": [ - "circle-annotation", - "pdf-editing", - "green-fill", - "border-width", - "Aspose.Pdf" + "annotation", + "circle", + "pdf", + "Aspose.Pdf", + "PdfContentEditor" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.CircleAnnotation", - "Aspose.Pdf.Annotations.Border", - "Aspose.Pdf.Color", - "Aspose.Pdf.Annotations.AnnotationCollection.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfContentEditor", + "PdfContentEditor.BindPdf", + "PdfContentEditor.CreateSquareCircle", + "PdfContentEditor.Save" ], "difficulty": "beginner" }, { - "filename": "add-help-bookmark-open-url.cs", - "title": "Add Help Bookmark with URL Action", - "description": "Demonstrates how to create a PDF bookmark (outline) that opens an online documentation page when clicked, using Aspose.Pdf.", + "filename": "add-green-circle-annotation-to-pdf-page__v2.cs", + "title": "Add Green Circle Annotation to PDF Page", + "description": "Shows how to bind an existing PDF, create a thick green circle annotation around a diagram on page six, and save the modified document using Aspose.Pdf.Facades.", "tags": [ - "bookmark", - "outline", - "uri-action", + "annotation", + "circle", "pdf", - "aspose" + "Aspose.Pdf", + "PdfContentEditor" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.OutlineItemCollection", - "Aspose.Pdf.Annotations.GoToURIAction", - "Aspose.Pdf.Document.Outlines", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.CreateSquareCircle", + "Aspose.Pdf.Facades.PdfContentEditor.Save" ], "difficulty": "beginner" }, + { + "filename": "add-green-circle-annotation.cs", + "title": "Add Green Circle Annotation", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-help-bookmark-open-url.cs", + "title": "Add Help Bookmark Open Url", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "add-highlight-annotation-to-pdf-page.cs", "title": "Add Highlight Annotation to PDF Page", - "description": "Shows how to insert a yellow highlight annotation on page three of a PDF using Aspose.Pdf's PdfContentEditor facade.", + "description": "Shows how to insert a yellow highlight annotation over a specific text range on page three of a PDF using Aspose.Pdf.", "tags": [ "highlight", "annotation", "pdf", "Aspose.Pdf", - "facade" + "page" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfContentEditor", - "PdfContentEditor.BindPdf", - "PdfContentEditor.CreateMarkup", - "PdfContentEditor.Save" + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.HighlightAnnotation", + "Aspose.Pdf.Color", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "add-highlight-annotation-to-pdf-page__v2.cs", "title": "Add Highlight Annotation to PDF Page", - "description": "Shows how to use Aspose.Pdf.Facades.PdfContentEditor to create a yellow highlight markup annotation on a specific page of a PDF document.", + "description": "Shows how to apply a yellow highlight annotation to a selected text rectangle on page three of a PDF using Aspose.Pdf.Facades.", "tags": [ "highlight", "annotation", "pdf", - "facade", - "Aspose.Pdf" + "Aspose.Pdf", + "PdfContentEditor" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", "Aspose.Pdf.Facades.PdfContentEditor.CreateMarkup", @@ -15238,7 +18339,7 @@ { "filename": "add-hyperlink-annotation-to-pdf-page.cs", "title": "Add Hyperlink Annotation to PDF Page", - "description": "Shows how to insert a clickable web link annotation on a specific rectangle of page 2 in an existing PDF using Aspose.Pdf.Facades.", + "description": "Shows how to insert a clickable web link annotation on a specific page of an existing PDF using Aspose.Pdf.Facades.", "tags": [ "hyperlink", "annotation", @@ -15256,17 +18357,16 @@ }, { "filename": "add-hyperlink-annotation-to-pdf.cs", - "title": "Add Hyperlink Annotation to PDF Page", - "description": "Shows how to create a local hyperlink annotation that jumps to a specific page within the same PDF using Aspose.Pdf.Facades.", + "title": "Add Hyperlink Annotation to Jump Between PDF Pages", + "description": "Shows how to create a local hyperlink annotation that links from one page to another within the same PDF document using Aspose.Pdf.Facades.", "tags": [ "hyperlink", "annotation", "pdf", - "Aspose.Pdf", - "PdfContentEditor" + "aspose", + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", "Aspose.Pdf.Facades.PdfContentEditor.CreateLocalLink", @@ -15276,29 +18376,37 @@ }, { "filename": "add-image-attachment-and-stamp.cs", - "title": "Add Image Attachment and Stamp to PDF", - "description": "Shows how to embed an image file as a document attachment and then place the same image as a stamp annotation on each page of a PDF using Aspose.Pdf facades.", + "title": "Add Image Attachment And Stamp", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-image-stamp-from-stream.cs", + "title": "Add Image Stamp from Stream to PDF", + "description": "Demonstrates how to create an image stamp directly from a stream and apply it to a PDF using Aspose.Pdf facades without writing the image to disk.", "tags": [ - "attachment", - "stamp", - "image", + "image-stamp", "pdf", + "stream", + "Aspose.Pdf", "facade" ], "apis_used": [ - "PdfContentEditor", - "PdfContentEditor.AddDocumentAttachment", - "PdfFileStamp", - "PdfFileStamp.AddStamp", "Aspose.Pdf.Facades.Stamp", - "Stamp.BindImage", - "Stamp.SetOrigin", - "Stamp.SetImageSize" + "Aspose.Pdf.Facades.Stamp.BindImage", + "Aspose.Pdf.Facades.Stamp.SetOrigin", + "Aspose.Pdf.Facades.Stamp.SetImageSize", + "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", + "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", + "Aspose.Pdf.Facades.PdfFileStamp.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "add-image-stamp-to-page-three.cs", + "filename": "add-image-stamp-to-bottom-right-page-3.cs", "title": "Add Image Stamp to Bottom‑Right of Page 3", "description": "Demonstrates how to place an image stamp (logo.png) at the bottom‑right corner of the third page of a PDF using Aspose.Pdf.Facades.", "tags": [ @@ -15310,30 +18418,59 @@ ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", - "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", - "Aspose.Pdf.Facades.PdfFileStamp.Save", + "Aspose.Pdf.Page", + "Aspose.Pdf.Facades.Stamp", "Aspose.Pdf.Facades.Stamp.BindImage", "Aspose.Pdf.Facades.Stamp.SetImageSize", - "Aspose.Pdf.Facades.Stamp.SetOrigin" + "Aspose.Pdf.Facades.Stamp.SetOrigin", + "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.Facades.PdfFileStamp.AddStamp" + ], + "difficulty": "intermediate" + }, + { + "filename": "add-image-stamp-to-page-three-50mm.cs", + "title": "Add Image Stamp to Page 3 at 50 mm", + "description": "The example decodes a Base64‑encoded image, creates an ImageStamp, positions it 50 mm from the left and bottom edges on the third page of a PDF, and saves the modified document.", + "tags": [ + "image-stamp", + "pdf", + "aspose-pdf", + "base64", + "positioning" + ], + "apis_used": [ + "Aspose.Pdf.ImageStamp", + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, + { + "filename": "add-image-stamp-to-page-three.cs", + "title": "Add Image Stamp To Page Three", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "add-image-stamp-to-pdf-page.cs", - "title": "Add Image Stamp from URL to Specific PDF Page", - "description": "Shows how to download an image from an external URL and apply it as a stamp on page two of a PDF using Aspose.Pdf.Facades.", + "title": "Add Image Stamp to Specific PDF Page", + "description": "Downloads an image from a URL and stamps it onto page 2 of a PDF using Aspose.Pdf.Facades.", "tags": [ "image-stamp", "pdf", - "aspose", - "page2", - "http-download" + "Aspose.Pdf", + "page-2", + "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.Stamp", + "PdfFileStamp", "PdfFileStamp.BindPdf", + "Stamp", "Stamp.BindImage", "Stamp.SetOrigin", "Stamp.SetImageSize", @@ -15344,152 +18481,231 @@ }, { "filename": "add-image-stamp-to-pdf-page__v2.cs", + "title": "Add Image Stamp To Pdf Page__V2", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-image-stamp-to-specific-page.cs", "title": "Add Image Stamp to Specific PDF Page", - "description": "Shows how to create an image‑based stamp using Aspose.Pdf.Facades and apply it only to the second page of a PDF document.", + "description": "Shows how to create an image stamp with PdfFileStamp and Stamp, configure its position, size, opacity, and place it on the second page of a PDF.", "tags": [ - "stamp", - "image", + "image-stamp", "pdf", - "Aspose.Pdf", - "facade" + "aspose", + "facade", + "page-number" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileStamp", "Aspose.Pdf.Facades.Stamp", + "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", + "Aspose.Pdf.Facades.PdfFileStamp.Close", "Aspose.Pdf.Facades.Stamp.BindImage", "Aspose.Pdf.Facades.Stamp.SetOrigin", - "Aspose.Pdf.Facades.Stamp.SetImageSize", - "Aspose.Pdf.Facades.PdfFileStamp.AddStamp" + "Aspose.Pdf.Facades.Stamp.SetImageSize" ], "difficulty": "intermediate" }, { - "filename": "add-image-watermark-to-pdfs.cs", - "title": "Add Image Watermark to PDFs in a Folder", - "description": "Shows how to apply an image watermark to every PDF file in a directory using Aspose.Pdf.Facades and save the watermarked files to an output folder.", + "filename": "add-image-to-pdf-using-pdffilemend.cs", + "title": "Insert Image into PDF with PdfFileMend", + "description": "The example loads an existing PDF, inserts a PNG image onto the first page at specified coordinates using the PdfFileMend facade, and saves the edited document.", "tags": [ - "watermark", "pdf", "image", - "batch", - "Aspose.Pdf" + "aspose", + "edit", + "facade" ], "apis_used": [ - "PdfFileStamp", - "Stamp", - "PdfFileStamp.BindPdf", - "Stamp.BindImage", - "Stamp.SetOrigin", - "PdfFileStamp.AddStamp", - "PdfFileStamp.Save" + "Aspose.Pdf.Facades.PdfFileMend", + "Aspose.Pdf.Facades.PdfFileMend.BindPdf", + "Aspose.Pdf.Facades.PdfFileMend.AddImage", + "Aspose.Pdf.Facades.PdfFileMend.Save", + "Aspose.Pdf.Facades.PdfFileMend.Close" ], "difficulty": "intermediate" }, + { + "filename": "add-image-watermark-to-pdfs.cs", + "title": "Add Image Watermark To Pdfs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "add-javascript-alert-annotation-to-pdf.cs", "title": "Add JavaScript Alert Annotation to PDF", - "description": "Shows how to bind a PDF, define a clickable rectangle, and attach a JavaScript action that displays an alert when the annotation is activated using Aspose.Pdf's PdfContentEditor.", + "description": "Shows how to bind an existing PDF, create a JavaScript link annotation that triggers an alert, and save the updated document using Aspose.Pdf.", "tags": [ "javascript", "annotation", "pdf", "aspose", - "clickable" + "link" ], "apis_used": [ "Aspose.Pdf.Facades.PdfContentEditor", "PdfContentEditor.BindPdf", "PdfContentEditor.CreateJavaScriptLink", - "PdfContentEditor.Save", - "PdfContentEditor.Close" + "PdfContentEditor.Save" ], "difficulty": "beginner" }, { - "filename": "add-javascript-calculation-to-pdf-form.cs", - "title": "Add JavaScript Calculation to PDF Form Field", - "description": "Shows how to attach a JavaScript OnCalculate action to a PDF form field with Aspose.Pdf, enabling automatic total computation from Quantity and UnitPrice fields.", + "filename": "add-javascript-calculate-action-to-pdf-form.cs", + "title": "Add JavaScript Calculate Action to PDF Form Field", + "description": "Shows how to embed a JavaScript calculate action in a PDF form so the Total field is computed when the Quantity field changes, using Aspose.Pdf.Facades.", "tags": [ "javascript", "pdf", "form", - "calculation", + "calculate", "aspose" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.JavascriptAction", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Document.Save" + "PdfContentEditor", + "PdfContentEditor.BindPdf", + "PdfContentEditor.AddDocumentAdditionalAction", + "PdfContentEditor.Save", + "PdfContentEditor.DocumentOpen" + ], + "difficulty": "beginner" + }, + { + "filename": "add-javascript-calculation-button-to-pdf-form.cs", + "title": "Add JavaScript Calculation Button to PDF Form", + "description": "Demonstrates using Aspose.Pdf.Facades.FormEditor to add a push button to an existing PDF form and attach JavaScript that multiplies Price and Quantity fields and writes the result to the Total field.", + "tags": [ + "pdf", + "form", + "javascript", + "button", + "calculation" + ], + "apis_used": [ + "Aspose.Pdf.Facades.FormEditor", + "Aspose.Pdf.Facades.FormEditor.BindPdf", + "Aspose.Pdf.Facades.FormEditor.AddField", + "Aspose.Pdf.Facades.FormEditor.AddFieldScript", + "Aspose.Pdf.Facades.FormEditor.Save" ], "difficulty": "intermediate" }, { - "filename": "add-javascript-click-action-to-rectangle.cs", - "title": "Add JavaScript Click Action to Rectangle Annotation", - "description": "Demonstrates how to attach a JavaScript action to a rectangular link annotation in a PDF using Aspose.Pdf's PdfContentEditor.", + "filename": "add-javascript-calculation-to-pdf-form.cs", + "title": "Add Javascript Calculation To Pdf Form", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-javascript-click-action-to-pdf-rectangle.cs", + "title": "Add JavaScript Click Action to PDF Rectangle", + "description": "Demonstrates how to attach a JavaScript action to a rectangular annotation in a PDF using Aspose.Pdf.Facades, causing an alert to appear when the area is clicked.", "tags": [ "javascript", "annotation", "pdf", "click-action", - "Aspose.Pdf" + "aspose.pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", "Aspose.Pdf.Facades.PdfContentEditor.CreateJavaScriptLink", - "Aspose.Pdf.Facades.PdfContentEditor.Save" + "Aspose.Pdf.Facades.PdfContentEditor.Save", + "Aspose.Pdf.Facades.PdfContentEditor.Close" ], "difficulty": "beginner" }, + { + "filename": "add-javascript-click-action-to-rectangle.cs", + "title": "Add Javascript Click Action To Rectangle", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "add-javascript-to-pdf-form-button.cs", - "title": "Add JavaScript to PDF Form Button for Total Calculation", - "description": "Shows how to use Aspose.Pdf.Facades.FormEditor to attach a JavaScript action to a push‑button in a PDF form that reads price and quantity fields, computes the total, and writes it back to a field.", + "title": "Add Javascript To Pdf Form Button", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-javascript-validation-button-to-pdf-form.cs", + "title": "Add JavaScript Validation Button to PDF Form", + "description": "Shows how to insert a push‑button into a PDF form using Aspose.Pdf and attach JavaScript that checks required fields, displaying alerts when fields are missing.", "tags": [ "pdf", - "javascript", "form", - "button", - "calculation" + "javascript", + "validation", + "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.BindPdf", + "Aspose.Pdf.Facades.FormEditor.AddField", "Aspose.Pdf.Facades.FormEditor.SetFieldScript", - "Aspose.Pdf.Facades.FormEditor.Save" + "Aspose.Pdf.Facades.FormEditor.Save", + "Aspose.Pdf.Facades.FieldType" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "add-javascript-validation-to-pdf-form.cs", - "title": "Add JavaScript Validation to PDF Form Submit Button", - "description": "Demonstrates how to attach a JavaScript action to a PDF form button using Aspose.Pdf to validate required fields and display an alert when any are missing.", + "title": "Add Javascript Validation To Pdf Form", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-large-attachment-to-pdf-buffered.cs", + "title": "Add Large Attachment To Pdf Buffered", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-large-attachment-to-pdf.cs", + "title": "Add Large Attachment to PDF and Monitor Memory Usage", + "description": "Demonstrates adding a >10 MB attachment to a PDF using PdfContentEditor with a stream to avoid loading the whole file into memory, then checks memory consumption after the operation.", "tags": [ + "attachment", + "large-file", + "memory-usage", "pdf", - "javascript", - "form-validation", - "aspose.pdf", - "c#" + "stream" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.SetFieldScript", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.FileSizeLimitToMemoryLoading", + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment", + "Aspose.Pdf.Facades.PdfContentEditor.Save", + "Aspose.Pdf.Document.FreeMemory" ], "difficulty": "intermediate" }, { - "filename": "add-large-attachment-to-pdf-buffered.cs", - "title": "Add Large Attachment to PDF with Buffered Stream", - "description": "Demonstrates how to attach a large file to a PDF using Aspose.Pdf.Facades.PdfContentEditor while buffering the file stream to minimize memory consumption.", + "filename": "add-large-stream-attachment-to-pdf.cs", + "title": "Add Large Stream Attachment to PDF with Buffered Memory Usage", + "description": "Demonstrates how to attach a large file to an existing PDF using Aspose.Pdf.Facades while buffering the data in chunks to keep memory consumption low.", "tags": [ "pdf", "attachment", - "buffered-stream", + "bufferedstream", "memory-optimization", "aspose-pdf" ], @@ -15501,161 +18717,129 @@ ], "difficulty": "intermediate" }, - { - "filename": "add-large-attachment-to-pdf.cs", - "title": "Add Large Attachment to PDF and Verify Memory Usage", - "description": "Demonstrates adding a >10 MB attachment to an existing PDF using PdfContentEditor and checking that memory consumption stays within Aspose.Pdf limits.", - "tags": [ - "pdf", - "attachment", - "memory", - "facade", - "large-file" - ], - "apis_used": [ - "PdfContentEditor", - "PdfContentEditor.BindPdf", - "PdfContentEditor.AddDocumentAttachment", - "PdfContentEditor.Save", - "Document", - "Document.FileSizeLimitToMemoryLoading", - "Document.FreeMemory" - ], - "difficulty": "intermediate" - }, { "filename": "add-light-gray-background-to-text-annotation.cs", - "title": "Add Light Gray Background to Text Annotation", - "description": "Demonstrates using PdfAnnotationEditor to place a TextAnnotation with a light gray background on a PDF page.", - "tags": [ - "text-annotation", - "background-color", - "pdf-editing", - "Aspose.Pdf", - "facade" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Color.LightGray", - "Aspose.Pdf.Rectangle" - ], - "difficulty": "beginner" + "title": "Add Light Gray Background To Text Annotation", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "add-line-annotation-with-arrowheads.cs", "title": "Add Line Annotation with Arrowheads to PDF", - "description": "Shows how to bind a PDF, create a line annotation with arrowheads at both ends, and save the updated document using Aspose.Pdf.Facades.", + "description": "Demonstrates using Aspose.Pdf.Facades.PdfContentEditor to create a line annotation with arrowheads at both ends on a PDF page.", "tags": [ "pdf", "annotation", "line", "arrowhead", - "Aspose.Pdf" + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfContentEditor", - "PdfContentEditor.BindPdf", - "PdfContentEditor.CreateLine", - "PdfContentEditor.Save" + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.CreateLine", + "Aspose.Pdf.Facades.PdfContentEditor.Save", + "Aspose.Pdf.Document" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "add-memory-stream-attachment-to-pdf.cs", - "title": "Add Memory Stream Attachment to PDF using PdfContentEditor", - "description": "Demonstrates creating a PDF (if missing) and embedding an in‑memory stream as a file attachment with Aspose.Pdf.Facades.PdfContentEditor.", + "title": "Add Memory Stream Attachment To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-multiline-right-aligned-text-stamp-page-4.cs", + "title": "Add Multiline Right-Aligned Text Stamp to Page 4", + "description": "Demonstrates how to create a multiline text stamp, align it to the right and bottom, and apply it only to the fourth page of a PDF using Aspose.Pdf.", "tags": [ - "pdf", - "attachment", - "memory-stream", - "facade", - "csharp" + "text-stamp", + "multiline", + "right-align", + "page-4", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment", - "Aspose.Pdf.Facades.PdfContentEditor.Save" + "Aspose.Pdf.Text.TextStamp", + "Aspose.Pdf.Text.HorizontalAlignment", + "Aspose.Pdf.Text.VerticalAlignment", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "add-multiline-text-stamp.cs", - "title": "Add Multiline Text Stamp with Custom Font to PDF", - "description": "Demonstrates creating a multiline text stamp, setting Arial 14 pt blue color, positioning it, and applying it to a PDF using Aspose.Pdf.Facades.", + "title": "Add Multiline Text Stamp", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-network-attachment-to-pdf-with-retry.cs", + "title": "Add Network Attachment to PDF with Retry Logic", + "description": "Demonstrates downloading a file from a network URL with retry-on-timeout logic and attaching it to a PDF using Aspose.Pdf's PdfContentEditor.", "tags": [ - "text-stamp", - "multiline", - "custom-font", - "color", - "pdf-editing" + "pdf", + "attachment", + "retry", + "httpclient", + "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", - "Aspose.Pdf.Facades.Stamp", - "Aspose.Pdf.Facades.Stamp.BindLogo", - "Aspose.Pdf.Facades.Stamp.SetOrigin", - "Aspose.Pdf.Facades.FormattedText", - "Aspose.Pdf.Facades.EncodingType" + "PdfContentEditor", + "PdfContentEditor.BindPdf", + "PdfContentEditor.CreateFileAttachment", + "PdfContentEditor.Save", + "PdfContentEditor.Dispose" ], "difficulty": "intermediate" }, { "filename": "add-page-open-javascript-log-page-number.cs", "title": "Add Page‑Open JavaScript to Log Page Number", - "description": "Shows how to attach a JavaScript action to each PDF page that logs the current page number when the page is opened, using Aspose.Pdf core API and the Facades library.", + "description": "Demonstrates how to attach a JavaScript action to each PDF page that logs the current page number to the console when the page is opened, using Aspose.Pdf.", "tags": [ "javascript", - "page-open", "pdf", + "page-open", "aspose-pdf", - "facades" + "logging" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.JavascriptAction", - "Aspose.Pdf.Facades.PdfContentEditor", - "Document.Save", - "PdfContentEditor.BindPdf", - "PdfContentEditor.Save" + "Aspose.Pdf.Page.Actions", + "Aspose.Pdf.Page.Actions.OnOpen" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "add-pdf-attachment-with-description.cs", - "title": "Add PDF Attachment with Description", - "description": "Shows how to embed a PDF file as an attachment in another PDF using Aspose.Pdf and set a custom description for the attachment.", - "tags": [ - "attachment", - "embed", - "pdf", - "description", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.EmbeddedFilesCollection.Add", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner" + "title": "Add Pdf Attachment With Description", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "add-popup-annotation-to-pdf.cs", - "title": "Add Popup Annotation to PDF on Hover", - "description": "Demonstrates how to insert a popup annotation that appears when the user hovers over it using Aspose.Pdf's PdfContentEditor.", + "title": "Add Popup Annotation to PDF", + "description": "Shows how to create a popup annotation that displays a note when the user hovers over it using Aspose.Pdf's PdfContentEditor.", "tags": [ "popup", "annotation", "hover", "pdf", - "Aspose.Pdf" + "Aspose" ], "apis_used": [ "Aspose.Pdf.Facades.PdfContentEditor", @@ -15666,9 +18850,9 @@ "difficulty": "beginner" }, { - "filename": "add-popup-annotation-with-bullet-points.cs", - "title": "Add Popup Annotation with Bullet Points to PDF", - "description": "Demonstrates how to insert a multi‑line popup annotation containing bullet‑point comments into a PDF using Aspose.Pdf's PdfContentEditor.", + "filename": "add-popup-annotation-with-bullet-list.cs", + "title": "Add Popup Annotation with Bullet List to PDF", + "description": "Demonstrates how to add a collapsed popup annotation containing multi‑line bullet‑point text to a PDF page using Aspose.Pdf's PdfContentEditor.", "tags": [ "popup", "annotation", @@ -15684,78 +18868,111 @@ ], "difficulty": "beginner" }, + { + "filename": "add-popup-annotation-with-bullet-points.cs", + "title": "Add Popup Annotation With Bullet Points", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "add-rectangle-annotation-dash-opacity.cs", - "title": "Add Rectangle Annotation with Dash Pattern and Opacity", - "description": "Shows how to place a rectangle (square) annotation on the first page of a PDF, apply a custom dash pattern to its border, and set 75% opacity using Aspose.Pdf.Facades.", + "title": "Add Rectangle Annotation Dash Opacity", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-rectangle-annotation-light-gray.cs", + "title": "Add Rectangle Annotation with Light Gray Fill", + "description": "Shows how to insert a rectangle (square) annotation with a light gray interior color and a 1 pt border onto a PDF page using Aspose.Pdf.", "tags": [ "annotation", "rectangle", - "dash-pattern", - "opacity", - "pdf-editing" + "fill-color", + "border", + "Aspose.Pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.CreateSquareCircle", - "Aspose.Pdf.Facades.PdfContentEditor.Save", + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfAnnotationEditor", "Aspose.Pdf.Annotations.SquareAnnotation", - "Aspose.Pdf.Annotations.Dash" + "Aspose.Pdf.Annotations.Border", + "Aspose.Pdf.Color", + "Aspose.Pdf.Rectangle" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "add-rectangle-annotation-light-gray.cs", - "title": "Add Rectangle Annotation with Light Gray Fill", - "description": "Demonstrates how to add a rectangle (square‑circle) annotation to a PDF page using PdfContentEditor, setting a light gray fill color and a 1 pt border.", + "filename": "add-rectangle-annotation-with-dash-opacity.cs", + "title": "Add Rectangle Annotation with Custom Dash and Opacity", + "description": "Demonstrates how to add a rectangle (square) annotation to the first page of a PDF, apply a custom dash pattern to its border and set 75% opacity using the PdfContentEditor facade.", "tags": [ "annotation", "rectangle", - "fill-color", - "border", - "pdf" + "dash-pattern", + "opacity", + "pdf-editing" ], "apis_used": [ "PdfContentEditor", "PdfContentEditor.BindPdf", "PdfContentEditor.CreateSquareCircle", "PdfContentEditor.Save", - "Document" + "SquareAnnotation", + "Border", + "Dash" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "add-red-bold-text-stamp-to-page-five.cs", - "title": "Add Red Bold Text Stamp to Specific PDF Page", - "description": "Demonstrates how to create a bold red text stamp, center it, and apply it only to page five of a PDF using Aspose.Pdf.", + "title": "Add Red Bold Text Stamp To Page Five", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-red-highlight-annotation-to-pdf.cs", + "title": "Add Red Highlight Annotation to PDF", + "description": "Shows how to use Aspose.Pdf.Facades.PdfContentEditor to create a highlight markup annotation with a bright red border on a specific page of a PDF document.", "tags": [ - "text-stamp", + "highlight", + "annotation", + "color", "pdf", - "aspose-pdf", - "center", - "page-5" + "Aspose" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextStamp", - "Aspose.Pdf.Text.FontRepository.FindFont", - "Aspose.Pdf.Color", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfContentEditor", + "PdfContentEditor.BindPdf", + "PdfContentEditor.CreateMarkup", + "PdfContentEditor.Save", + "PdfContentEditor.Close" ], "difficulty": "beginner" }, { "filename": "add-red-rectangle-annotation-to-pdf-page.cs", + "title": "Add Red Rectangle Annotation To Pdf Page", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-red-rectangle-annotation.cs", "title": "Add Red Rectangle Annotation to PDF Page", - "description": "Shows how to place a red rectangle annotation with a 2 mm border thickness on a specific page of a PDF using Aspose.Pdf.Facades.", + "description": "Shows how to place a red rectangle annotation with a 2 mm (≈6 points) border on a specific PDF page using Aspose.Pdf's PdfContentEditor.", "tags": [ "annotation", "rectangle", + "border", "pdf", - "Aspose.Pdf", - "facade" + "Aspose" ], "apis_used": [ "Aspose.Pdf.Document", @@ -15764,64 +18981,57 @@ "Aspose.Pdf.Facades.PdfContentEditor.CreateSquareCircle", "Aspose.Pdf.Facades.PdfContentEditor.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "add-right-aligned-multiline-text-stamp-page-4.cs", - "title": "Add Right-Aligned Multiline Text Stamp to Page 4", - "description": "Demonstrates how to create a right-aligned multiline text stamp and place it at the bottom of the fourth page of a PDF using Aspose.Pdf.Facades.", - "tags": [ - "text-stamp", - "right-align", - "multiline", - "page-4", - "Aspose.Pdf" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.TextStamp", - "Aspose.Pdf.Annotations.HorizontalAlignment", - "Aspose.Pdf.Annotations.VerticalAlignment", - "Aspose.Pdf.Document", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Facades.PdfFileStamp.Save" - ], - "difficulty": "intermediate" + "title": "Add Right Aligned Multiline Text Stamp Page 4", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "add-rotated-image-stamp-with-opacity.cs", - "title": "Add Rotated Image Stamp with Opacity to PDF", - "description": "Demonstrates how to place an image stamp on a PDF at specific coordinates, rotate it 45 degrees, and set its opacity to 80 % using Aspose.Pdf.Facades.", + "filename": "add-rotated-image-stamp-to-pdf.cs", + "title": "Add Rotated Image Stamp to PDF", + "description": "Demonstrates how to place an image stamp on a PDF page with 45‑degree rotation, 80% opacity, and a specific position using Aspose.Pdf.Facades.", "tags": [ - "pdf", - "stamp", - "image", + "image-stamp", "rotation", - "opacity" + "opacity", + "pdf", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileStamp", "Aspose.Pdf.Facades.Stamp", - "PdfFileStamp.BindPdf", - "Stamp.BindImage", - "Stamp.SetOrigin", - "Stamp.Rotation", - "Stamp.Opacity", - "PdfFileStamp.AddStamp", - "PdfFileStamp.Save" + "Aspose.Pdf.Facades.Stamp.BindImage", + "Aspose.Pdf.Facades.Stamp.Rotation", + "Aspose.Pdf.Facades.Stamp.Opacity", + "Aspose.Pdf.Facades.Stamp.SetOrigin", + "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", + "Aspose.Pdf.Facades.PdfFileStamp.Close" ], - "difficulty": "intermediate" + "difficulty": "beginner" + }, + { + "filename": "add-rotated-image-stamp-with-opacity.cs", + "title": "Add Rotated Image Stamp With Opacity", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "add-rtl-text-annotation-to-pdf.cs", "title": "Add Right-to-Left Text Annotation to PDF", - "description": "Shows how to insert a right‑to‑left (Arabic) text annotation into an existing PDF using Aspose.Pdf.Facades.PdfContentEditor to verify Unicode rendering.", + "description": "Shows how to use Aspose.Pdf.Facades.PdfContentEditor to create a text annotation with Arabic (RTL) content, place it on a page, and save the modified PDF.", "tags": [ "annotation", "rtl", "unicode", "pdf", - "aspose" + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfContentEditor", @@ -15834,76 +19044,86 @@ { "filename": "add-scaled-image-stamp-from-memory-stream.cs", "title": "Add Scaled Image Stamp from Memory Stream to PDF", - "description": "Loads an image into a MemoryStream, creates an ImageStamp, scales it to 50% using the Zoom property, positions it, and adds the stamp to every page of a PDF document.", + "description": "Demonstrates loading an image into a MemoryStream, creating an ImageStamp, scaling it to 50%, positioning it, and adding it to a PDF page using Aspose.Pdf.", "tags": [ "image-stamp", "memory-stream", "scaling", - "Aspose.Pdf", - "pdf-modification" + "pdf", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.ImageStamp", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Page" + "Aspose.Pdf.ImageStamp.Zoom", + "Aspose.Pdf.ImageStamp.XIndent", + "Aspose.Pdf.ImageStamp.YIndent", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "add-semi-transparent-stamp-annotation.cs", - "title": "Add Semi-Transparent Stamp Annotation to PDF", - "description": "Demonstrates how to use Aspose.Pdf.Facades to bind a PDF page as a stamp, set its opacity to 0.5, and apply it as an annotation to another PDF document.", + "filename": "add-semi-transparent-file-attachment-annotation.cs", + "title": "Add Semi-Transparent File Attachment Annotation to PDF Page", + "description": "Demonstrates how to load a PDF, create a file attachment annotation with 60% opacity, and add it to page three using Aspose.Pdf.", "tags": [ - "stamp", - "opacity", - "annotation", "pdf", - "facade" + "annotation", + "opacity", + "file-attachment", + "aspose" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", - "Aspose.Pdf.Facades.Stamp", - "Aspose.Pdf.Facades.Stamp.Opacity", - "Aspose.Pdf.Facades.Stamp.BindPdf", - "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", - "Aspose.Pdf.Facades.PdfFileStamp.Save" + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.Annotations.FileAttachmentAnnotation", + "Aspose.Pdf.Annotations.AnnotationCollection.Add", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "add-square-annotation-red-border.cs", - "title": "Add Square Annotation with Red Border to PDF Page", - "description": "Demonstrates how to place a square annotation with a red border and semi‑transparent fill on the fifth page of a PDF using Aspose.Pdf.", + "filename": "add-semi-transparent-stamp-annotation.cs", + "title": "Add Semi Transparent Stamp Annotation", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-semi-transparent-text-stamp.cs", + "title": "Add Semi-Transparent Text Stamp to PDF", + "description": "Demonstrates how to create a text stamp with 50% opacity and apply it as a watermark to a PDF using Aspose.Pdf.Facades.", "tags": [ - "square-annotation", - "red-border", - "transparent-fill", + "stamp", + "opacity", + "watermark", "pdf", - "Aspose.Pdf" + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.SquareAnnotation", - "Aspose.Pdf.Color", - "Aspose.Pdf.Page.Annotations.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.Facades.Stamp", + "Aspose.Pdf.Facades.FormattedText", + "PdfFileStamp.BindPdf", + "PdfFileStamp.AddStamp", + "Stamp.BindLogo", + "Stamp.Opacity" ], "difficulty": "beginner" }, { - "filename": "add-square-annotation-with-custom-border.cs", - "title": "Add Square Annotation with Custom Border to PDF", - "description": "Demonstrates how to add a square annotation to a PDF page and set a custom border thickness of three points for better visibility using Aspose.Pdf.", + "filename": "add-square-annotation-red-border.cs", + "title": "Add Square Annotation with Red Border to PDF", + "description": "Demonstrates how to place a square annotation with a red border and semi‑transparent fill on page 5 of a PDF using Aspose.Pdf.", "tags": [ "annotation", - "border", - "pdf", "square", + "border", + "opacity", "Aspose.Pdf" ], "apis_used": [ @@ -15911,24 +19131,31 @@ "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Annotations.SquareAnnotation", - "Aspose.Pdf.Annotations.Border", - "Aspose.Pdf.Annotations.BorderStyle", - "Aspose.Pdf.Color" + "Aspose.Pdf.Annotations.Border" ], "difficulty": "beginner" }, + { + "filename": "add-square-annotation-with-custom-border.cs", + "title": "Add Square Annotation With Custom Border", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "add-sticky-note-annotation-to-pdf.cs", "title": "Add Sticky Note Annotation to PDF", - "description": "Shows how to bind a PDF, create a text (sticky note) annotation on the first page, and save the updated document using Aspose.Pdf.Facades.", + "description": "Shows how to place a sticky note (text annotation) on the first page of a PDF using Aspose.Pdf's PdfContentEditor, including creating a placeholder PDF if the source file is missing.", "tags": [ "sticky-note", "annotation", "pdf", "Aspose.Pdf", - "PdfContentEditor" + "facade" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", "Aspose.Pdf.Facades.PdfContentEditor.CreateText", @@ -15937,61 +19164,97 @@ "difficulty": "beginner" }, { - "filename": "add-text-annotation-and-merge-pdfs.cs", - "title": "Add Text Annotation and Merge PDFs", - "description": "Loads a PDF, adds a text annotation to its first page, saves the edited file, and then concatenates it with a second PDF using Aspose.Pdf's PdfFileEditor.", + "filename": "add-subject-to-text-annotation.cs", + "title": "Add Subject to Text Annotation in PDF", + "description": "Demonstrates how to create a TextAnnotation, set its Subject property for searchable categorization, and apply it to a PDF using Aspose.Pdf's annotation editor facade.", "tags": [ "annotation", - "merge", + "subject", "pdf", - "concatenate", - "Aspose.Pdf" + "text-annotation", + "facade" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Concatenate", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor.ModifyAnnotations", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" + ], + "difficulty": "intermediate" + }, + { + "filename": "add-submit-button-confirmation-dialog.cs", + "title": "Add Submit Button with Confirmation Dialog to PDF", + "description": "Shows how to insert a submit button into a PDF and attach JavaScript that displays a confirmation dialog before the form is submitted using Aspose.Pdf.Facades.", + "tags": [ + "pdf", + "form", + "javascript", + "submit-button", + "confirmation" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.FormEditor", + "FormEditor.AddSubmitBtn", + "FormEditor.AddFieldScript", + "FormEditor.Save" ], "difficulty": "intermediate" }, + { + "filename": "add-text-annotation-and-merge-pdfs.cs", + "title": "Add Text Annotation And Merge Pdfs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "add-text-annotation-set-subject.cs", - "title": "Add Text Annotation and Set Subject in PDF", - "description": "Demonstrates creating a sticky‑note (text) annotation on a PDF page using PdfContentEditor and then assigning a Subject to that annotation via the TextAnnotation class.", + "title": "Add Text Annotation Set Subject", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-text-annotation-thick-border.cs", + "title": "Add Text Annotation with Thick Border to PDF", + "description": "Shows how to create a text annotation on a PDF page and set a custom three‑point border using Aspose.Pdf facades.", "tags": [ "annotation", - "subject", + "border", "pdf", - "Aspose.Pdf", - "PdfContentEditor" + "facade", + "text-annotation" ], "apis_used": [ - "PdfContentEditor", - "PdfContentEditor.BindPdf", - "PdfContentEditor.CreateText", - "PdfContentEditor.Save", - "Document", - "Page", - "TextAnnotation" + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Annotations.Border", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate" }, { "filename": "add-text-annotation-to-pdf-page.cs", "title": "Add Text Annotation to PDF Page", - "description": "Shows how to create a PDF and add a sticky‑note text annotation at specific coordinates on the first page using Aspose.Pdf.Facades.", + "description": "Demonstrates how to add a custom text (sticky‑note) annotation at a specific location on the first page of an existing PDF using Aspose.Pdf.Facades.", "tags": [ "annotation", "pdf", - "text-annotation", + "text", "Aspose.Pdf", - "PdfContentEditor" + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", "Aspose.Pdf.Facades.PdfContentEditor.CreateText", @@ -16001,64 +19264,71 @@ }, { "filename": "add-text-annotation-with-author-metadata.cs", - "title": "Add Text Annotation with Author Metadata to PDF", - "description": "Shows how to place a text (note) annotation on a PDF page using PdfContentEditor and store the author information in the annotation's title.", + "title": "Add Text Annotation With Author Metadata", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-text-annotation-with-custom-author.cs", + "title": "Add Text Annotation with Custom Author to PDF", + "description": "Demonstrates how to add a sticky‑note text annotation to a PDF page and then set a custom author metadata for the annotation using Aspose.Pdf facades.", "tags": [ "annotation", - "author-metadata", + "author", "pdf", - "aspose-pdf", - "text-note" + "aspose", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfContentEditor.CreateText", - "Aspose.Pdf.Facades.PdfContentEditor.Save" + "Aspose.Pdf.Facades.PdfAnnotationEditor.ModifyAnnotationsAuthor" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "add-text-annotation-with-opacity.cs", - "title": "Add Text Annotation with Opacity to PDF", - "description": "Demonstrates loading a PDF, creating a TextAnnotation with 75% opacity, adding it to the first page, and saving the modified document.", + "title": "Add Text Annotation With Opacity", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-text-annotation-with-utc-creation-date.cs", + "title": "Add Text Annotation With Utc Creation Date", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-text-annotation-with-utc-timestamp.cs", + "title": "Add Text Annotation with UTC Timestamp to PDF", + "description": "Demonstrates how to add a TextAnnotation (sticky note) to a PDF page and set its creation and modification dates to the current UTC time for accurate document history tracking.", "tags": [ "annotation", "pdf", - "opacity", - "text", - "Aspose.Pdf" + "utc", + "timestamp", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Annotations.TextIcon", + "Aspose.Pdf.Color", + "Aspose.Pdf.Page.Annotations.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, - { - "filename": "add-text-annotation-with-utc-creation-date.cs", - "title": "Add Text Annotation with UTC Creation Date", - "description": "Demonstrates binding a PDF with PdfAnnotationEditor, creating a TextAnnotation, setting its CreationDate to the current UTC time, and saving the updated document.", - "tags": [ - "annotation", - "utc", - "pdf", - "facade", - "text-annotation" - ], - "apis_used": [ - "PdfAnnotationEditor", - "PdfAnnotationEditor.BindPdf", - "PdfAnnotationEditor.Save", - "TextAnnotation", - "Page.Annotations.Add", - "Aspose.Pdf.Rectangle" - ], - "difficulty": "beginner" - }, { "filename": "add-text-stamp-with-shadow.cs", "title": "Add Text Stamp with Shadow to First PDF Page", @@ -16074,134 +19344,153 @@ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextStamp", - "Aspose.Pdf.Text.FontRepository", + "Aspose.Pdf.Text.FontRepository.FindFont", "Aspose.Pdf.Color", - "Aspose.Pdf.Text.HorizontalAlignment", - "Aspose.Pdf.Text.VerticalAlignment" + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "add-thick-green-circle-annotation-page-six.cs", - "title": "Add Thick Green Circle Annotation to PDF Page Six", - "description": "Demonstrates using Aspose.Pdf's PdfAnnotationEditor facade to place a circle annotation with a thick green outline around a diagram on page six of a PDF and save the modified file.", - "tags": [ - "circle-annotation", - "pdf-editing", - "Aspose.Pdf", - "border", - "page-six" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", - "Aspose.Pdf.Facades.PdfAnnotationEditor.Save", - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.CircleAnnotation", - "Aspose.Pdf.Annotations.Border" - ], - "difficulty": "intermediate" + "title": "Add Thick Green Circle Annotation Page Six", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "add-tooltip-annotation-to-pdf.cs", - "title": "Add Tooltip Annotation to PDF", - "description": "Shows how to create a sticky‑note annotation with a tooltip that appears when the mouse hovers over the area using Aspose.Pdf.Facades.", + "title": "Add Tooltip (Sticky Note) Annotation to PDF", + "description": "Shows how to insert a sticky‑note tooltip annotation into a PDF using Aspose.Pdf.Facades.PdfContentEditor, setting its rectangle, title, contents, icon and saving the result.", "tags": [ "tooltip", "annotation", "pdf", "Aspose.Pdf", - "PdfContentEditor" + "sticky-note" ], "apis_used": [ "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", "Aspose.Pdf.Facades.PdfContentEditor.CreateText", - "Aspose.Pdf.Facades.PdfContentEditor.Save", - "Aspose.Pdf.Facades.PdfContentEditor.Close" + "Aspose.Pdf.Facades.PdfContentEditor.Save" ], "difficulty": "beginner" }, { - "filename": "add-underlined-yellow-text-stamp-to-pdf-page.cs", - "title": "Add Underlined Yellow Text Stamp to PDF Page", - "description": "Shows how to load a PDF with Aspose.Pdf, create a TextStamp with underline and a yellow background, center it, and place it on page 10.", + "filename": "add-underlined-text-stamp-to-page-ten.cs", + "title": "Add Underlined Text Stamp to Specific PDF Page", + "description": "Demonstrates how to add a centered, underlined text stamp with a yellow background to page 10 of a PDF using Aspose.Pdf Facades.", "tags": [ + "text-stamp", "pdf", - "textstamp", - "watermark", + "facades", "underline", - "aspnet" + "page-ten" ], "apis_used": [ + "Aspose.Pdf.Facades.PdfFileStamp", "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.TextStamp", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Color", - "Aspose.Pdf.HorizontalAlignment", - "Aspose.Pdf.VerticalAlignment" + "Aspose.Pdf.TextState", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", + "Aspose.Pdf.Facades.PdfFileStamp.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" + }, + { + "filename": "add-underlined-yellow-text-stamp-to-pdf-page.cs", + "title": "Add Underlined Yellow Text Stamp To Pdf Page", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "add-unicode-attachment-description-to-pdf.cs", - "title": "Add Unicode Attachment Description to PDF and Verify", - "description": "Demonstrates adding a file attachment with a Unicode description to an existing PDF and then extracting the attachment information to confirm proper encoding.", + "title": "Add Unicode Attachment Description to PDF and Verify Metadata", + "description": "Demonstrates how to attach a file to a PDF with a Unicode description using the Facades API and then extracts the attachment info to confirm the description is stored correctly.", "tags": [ "attachment", "unicode", "metadata", "pdf", - "aspose" + "facades" ], "apis_used": [ - "PdfContentEditor", - "PdfContentEditor.BindPdf", - "PdfContentEditor.AddDocumentAttachment", - "PdfContentEditor.Save", - "PdfExtractor", - "PdfExtractor.BindPdf", - "PdfExtractor.ExtractAttachment", - "PdfExtractor.GetAttachmentInfo" + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment", + "Aspose.Pdf.Facades.PdfContentEditor.Save", + "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor.ExtractAttachment", + "Aspose.Pdf.Facades.PdfExtractor.GetAttachmentInfo" ], "difficulty": "intermediate" }, { - "filename": "add-watermark-to-pdfs-in-parallel.cs", - "title": "Add Watermark to PDFs in Parallel", - "description": "Shows how to apply a text watermark to multiple PDF files concurrently using Aspose.Pdf Facade classes.", + "filename": "add-url-bookmark-to-pdf.cs", + "title": "Add URL Bookmark to PDF", + "description": "Loads an existing PDF, creates a bookmark named \"Help\" that opens a specified online documentation URL, and saves the updated document.", + "tags": [ + "bookmark", + "url", + "pdf", + "aspose", + "facade" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.CreateBookmarksAction", + "Aspose.Pdf.Facades.PdfContentEditor.Save" + ], + "difficulty": "beginner" + }, + { + "filename": "add-watermark-to-pdfs-in-folder.cs", + "title": "Add Watermark to All PDFs in a Folder", + "description": "Shows how to apply a semi‑transparent text watermark to every PDF file in a directory using Aspose.Pdf facades and simple configuration settings.", "tags": [ "watermark", - "parallel", "pdf", + "batch", "facade", - "batch-processing" + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileStamp", "Aspose.Pdf.Facades.Stamp", "Aspose.Pdf.Text.FormattedText", - "PdfFileStamp.BindPdf", - "PdfFileStamp.AddStamp", - "PdfFileStamp.Save", - "Stamp.BindLogo", - "Stamp.SetOrigin" + "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", + "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", + "Aspose.Pdf.Facades.PdfFileStamp.Save", + "Aspose.Pdf.Facades.PdfFileStamp.Close", + "Aspose.Pdf.Facades.Stamp.BindLogo" ], "difficulty": "intermediate" }, + { + "filename": "add-watermark-to-pdfs-in-parallel.cs", + "title": "Add Watermark To Pdfs In Parallel", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "add-web-link-annotation-to-pdf.cs", "title": "Add Web Link Annotation to PDF", - "description": "Shows how to insert a clickable link annotation that opens an external website using Aspose.Pdf.Facades.PdfContentEditor.", + "description": "Shows how to bind an existing PDF, create a clickable web link annotation on a specific page using PdfContentEditor, and save the updated document.", "tags": [ "web-link", "annotation", "pdf", - "aspose", - "csharp" + "Aspose.Pdf", + "PdfContentEditor" ], "apis_used": [ "Aspose.Pdf.Facades.PdfContentEditor", @@ -16212,34 +19501,34 @@ "difficulty": "beginner" }, { - "filename": "add-xmp-metadata-corporate-branding.cs", - "title": "Add XMP Metadata for Corporate Branding to PDF", - "description": "Demonstrates how to embed custom XMP metadata such as a logo URL and brand color into an existing PDF using Aspose.Pdf's PdfXmpMetadata facade.", + "filename": "add-xmp-department-metadata-to-pdf.cs", + "title": "Add XMP Department Metadata to PDF", + "description": "Shows how to bind an existing PDF, add a custom XMP metadata field \"Department\" with the value \"Finance\", and save the updated document using Aspose.Pdf.Facades.", "tags": [ "XMP", "metadata", - "branding", "Aspose.Pdf", - "PDF" + "PDF", + "facades" ], "apis_used": [ "Aspose.Pdf.Facades.PdfXmpMetadata", - "Aspose.Pdf.Facades.PdfXmpMetadata.BindPdf", - "Aspose.Pdf.Facades.PdfXmpMetadata.Add", - "Aspose.Pdf.Facades.PdfXmpMetadata.Save" + "PdfXmpMetadata.BindPdf", + "PdfXmpMetadata.Add", + "PdfXmpMetadata.Save" ], "difficulty": "beginner" }, { - "filename": "add-xmp-metadata-field-to-pdf.cs", - "title": "Add XMP Metadata Field to PDF", - "description": "Shows how to bind a PDF, add a custom XMP metadata entry (Department: Finance), and save the updated document using Aspose.Pdf.Facades.", + "filename": "add-xmp-metadata-author-title.cs", + "title": "Add XMP Metadata (Author and Title) to PDF", + "description": "Shows how to bind a PDF, add XMP metadata fields for author and title, and save the updated document using Aspose.Pdf.Facades.", "tags": [ - "XMP", + "xmp", "metadata", - "Aspose.Pdf", - "PDF", - "custom-field" + "author", + "title", + "pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfXmpMetadata", @@ -16249,54 +19538,75 @@ ], "difficulty": "beginner" }, + { + "filename": "add-xmp-metadata-corporate-branding.cs", + "title": "Add Xmp Metadata Corporate Branding", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-xmp-metadata-field-to-pdf.cs", + "title": "Add Xmp Metadata Field To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "align-stamp-with-paragraph-baseline.cs", - "title": "Align Stamp with Paragraph Baseline on Page 5", - "description": "The example extracts the baseline coordinates of the first paragraph on page 5 using a TextFragmentAbsorber, adds a text stamp, and then repositions the stamp so its baseline matches the paragraph baseline.", + "title": "Align Stamp With Paragraph Baseline", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "apply-45-degree-rotation-to-stamp.cs", + "title": "Apply 45° Rotation to a PDF Stamp Annotation", + "description": "Demonstrates how to create a text stamp, set its rotation to 45 degrees for diagonal placement, and apply it to a PDF using the Aspose.Pdf.Facades API.", "tags": [ "stamp", - "baseline", - "text-extraction", - "pdf-editing", - "Aspose.Pdf" + "rotation", + "pdf", + "watermark", + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextFragmentAbsorber", - "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Facades.PdfFileStamp", "Aspose.Pdf.Facades.Stamp", "Aspose.Pdf.Facades.FormattedText", - "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.MoveStamp" + "Aspose.Pdf.Facades.EncodingType", + "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", + "Aspose.Pdf.Facades.PdfFileStamp.Save" ], "difficulty": "intermediate" }, { "filename": "apply-viewer-preferences-from-json.cs", "title": "Apply Viewer Preferences to PDFs from JSON Configuration", - "description": "Shows how to read a JSON file that lists PDF files and desired ViewerPreference flags, then apply those flags to each PDF using Aspose.Pdf.Facades.", + "description": "Demonstrates reading viewer preference settings from a JSON file, building the combined ViewerPreference flags, and applying them to each PDF using Aspose.Pdf's PdfContentEditor.", "tags": [ - "viewer-preference", - "json-config", - "pdf-editing", + "viewer-preferences", + "json", + "pdf", "aspose-pdf", - "facade" + "csharp" ], "apis_used": [ - "PdfContentEditor", - "PdfContentEditor.BindPdf", - "PdfContentEditor.ChangeViewerPreference", - "PdfContentEditor.Save", - "PdfContentEditor.Close", - "ViewerPreference" + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.ChangeViewerPreference", + "Aspose.Pdf.Facades.PdfContentEditor.Save", + "Aspose.Pdf.Facades.ViewerPreference" ], "difficulty": "intermediate" }, { - "filename": "apply-viewer-preferences-to-encrypted-pdf.cs", - "title": "Apply Viewer Preferences to an Encrypted PDF", - "description": "Decrypts an encrypted PDF using the owner password, sets viewer preferences such as hiding the menu bar and toolbar, and saves the modified document.", + "filename": "apply-viewer-preferences-to-decrypted-pdf.cs", + "title": "Apply Viewer Preferences to Decrypted PDF", + "description": "The example shows how to decrypt an encrypted PDF using a password and then set viewer preferences such as hiding the menu bar and toolbar before saving the final document.", "tags": [ "pdf", "decryption", @@ -16314,16 +19624,24 @@ ], "difficulty": "intermediate" }, + { + "filename": "apply-viewer-preferences-to-encrypted-pdf.cs", + "title": "Apply Viewer Preferences To Encrypted Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "apply-viewer-preferences-to-multiple-pdfs.cs", "title": "Apply Viewer Preferences to Multiple PDFs", - "description": "Shows how to iterate over a collection of PDF files and set common viewer preferences using Aspose.Pdf.Facades.PdfContentEditor.", + "description": "Shows how to iterate over a collection of PDF files and set common viewer preferences (hide UI elements, fit/center window) using Aspose.Pdf.Facades.PdfContentEditor.", "tags": [ "viewer-preferences", - "batch", + "batch-processing", "pdf", - "Aspose.Pdf", - "PdfContentEditor" + "aspose-pdf", + "csharp" ], "apis_used": [ "PdfContentEditor", @@ -16336,8 +19654,8 @@ }, { "filename": "async-add-attachment-to-pdf.cs", - "title": "Asynchronously Add Attachment to PDF and Save", - "description": "Shows how to attach a file to an existing PDF and save the updated document using Aspose.Pdf's PdfContentEditor on a background thread to keep the UI responsive.", + "title": "Asynchronously Add Attachment to PDF Using PdfContentEditor", + "description": "Demonstrates adding a file attachment to an existing PDF and saving it asynchronously with Aspose.Pdf's PdfContentEditor facade, keeping the UI thread responsive.", "tags": [ "pdf", "attachment", @@ -16355,28 +19673,37 @@ }, { "filename": "attach-downloaded-file-to-pdf.cs", - "title": "Attach a Downloaded File to a PDF", - "description": "Shows how to download a file into a byte array and embed it as an attachment in an existing PDF using Aspose.Pdf's PdfContentEditor.", + "title": "Attach Downloaded File To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "attach-image-add-stamp-annotation.cs", + "title": "Attach Image and Add Stamp Annotation to PDF", + "description": "Shows how to embed an image file as a document attachment and then use the same image as a stamp annotation on a PDF page using Aspose.Pdf.Facades.", "tags": [ - "pdf-attachment", - "download", - "byte-array", - "aspose-pdf", - "csharp" + "attachment", + "stamp", + "image", + "pdf", + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment", - "Aspose.Pdf.Facades.PdfContentEditor.Save" + "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", + "Aspose.Pdf.Facades.Stamp", + "Aspose.Pdf.Facades.Stamp.BindImage" ], "difficulty": "intermediate" }, { "filename": "attach-multiple-files-to-pdf.cs", "title": "Attach Multiple Files to a PDF", - "description": "Shows how to attach several external files to an existing PDF using Aspose.Pdf.Facades.PdfContentEditor without creating visual annotations.", + "description": "Shows how to attach several external files to an existing PDF using Aspose.Pdf's PdfContentEditor facade and save the updated document.", "tags": [ "pdf", "attachment", @@ -16393,77 +19720,73 @@ "difficulty": "beginner" }, { - "filename": "batch-add-annotations-from-json.cs", - "title": "Batch Add Annotations to PDF from JSON", - "description": "Demonstrates how to read a JSON definition file and programmatically add various annotation types (text, highlight, link, etc.) to specific pages of a PDF using Aspose.Pdf.", - "tags": [ - "pdf", - "annotations", - "json", - "batch", - "aspose" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Color", - "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Annotations.HighlightAnnotation", - "Aspose.Pdf.Annotations.LinkAnnotation" - ], - "difficulty": "intermediate" - }, - { - "filename": "batch-add-attachment-to-pdfs.cs", - "title": "Batch Add Attachment to Multiple PDFs", - "description": "Shows how to iterate over a collection of PDF files and add the same file attachment to each document using Aspose.Pdf.Facades.PdfContentEditor.", + "filename": "attach-network-downloaded-file-to-pdf.cs", + "title": "Attach Network-Downloaded File to PDF", + "description": "Demonstrates downloading a file via HttpClient, converting it to a memory stream, and attaching it to an existing PDF using Aspose.Pdf's PdfContentEditor.", "tags": [ "pdf", "attachment", - "batch", - "aspose", - "facade" + "download", + "memory-stream", + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment", - "Aspose.Pdf.Facades.PdfContentEditor.Save" + "PdfContentEditor", + "PdfContentEditor.BindPdf", + "PdfContentEditor.AddDocumentAttachment", + "PdfContentEditor.Save" ], "difficulty": "intermediate" }, { - "filename": "batch-add-javascript-alert-to-rectangle-annotations.cs", - "title": "Batch Add JavaScript Alert to Rectangle Annotations in PDFs", - "description": "Iterates over PDF files in a directory, locates rectangle (square) annotations on each page, and attaches a JavaScript alert action to them using PdfContentEditor.", + "filename": "batch-add-annotations-from-json.cs", + "title": "Batch Add Annotations to PDF from JSON", + "description": "Demonstrates how to read a JSON definition file and programmatically add various annotation types (text, link, square, circle, highlight) to specific pages of a PDF using Aspose.Pdf.", "tags": [ - "javascript", - "annotation", - "batch", "pdf", + "annotations", + "json", + "batch", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Annotations.LinkAnnotation", "Aspose.Pdf.Annotations.SquareAnnotation", - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.CreateJavaScriptLink", - "Aspose.Pdf.Facades.PdfContentEditor.Save" + "Aspose.Pdf.Annotations.HighlightAnnotation", + "Aspose.Pdf.Annotations.GoToURIAction" ], "difficulty": "intermediate" }, + { + "filename": "batch-add-attachment-to-pdfs.cs", + "title": "Batch Add Attachment To Pdfs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "batch-add-javascript-alert-to-rectangle-annotations.cs", + "title": "Batch Add Javascript Alert To Rectangle Annotations", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "batch-add-password-protection-to-pdfs.cs", "title": "Batch Add Password Protection to PDFs", - "description": "Shows how to encrypt all PDF files in a folder with the same user password using Aspose.Pdf's PdfFileSecurity facade.", + "description": "Demonstrates how to encrypt all PDF files in a folder with the same user password using Aspose.Pdf, creating protected copies with 256‑bit AES encryption.", "tags": [ - "pdf encryption", - "batch processing", - "password protection", - "Aspose.Pdf", - "facade" + "pdf", + "encryption", + "batch", + "password-protection", + "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSecurity", @@ -16471,23 +19794,24 @@ "Aspose.Pdf.DocumentPrivilege", "Aspose.Pdf.KeySize" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "batch-add-red-rectangle-annotation.cs", "title": "Batch Add Red Rectangle Annotation to PDFs", - "description": "Demonstrates how to loop through all PDF files in a folder, add a semi‑transparent red rectangle annotation to the first page of each document, and save the results to an output folder.", + "description": "Shows how to iterate over all PDF files in a folder, add a red square (rectangle) annotation to the first page of each document, and save the results to an output directory.", "tags": [ + "pdf", "annotation", "batch", "rectangle", - "Aspose.Pdf", - "C#" + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Annotations.SquareAnnotation", + "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.SquareAnnotation", "Aspose.Pdf.Color", "Aspose.Pdf.Page.Annotations.Add", "Aspose.Pdf.Document.Save" @@ -16496,73 +19820,86 @@ }, { "filename": "batch-add-text-annotations-to-pdf.cs", - "title": "Batch Add Text Annotations to PDF", - "description": "Demonstrates defining a collection of annotation specifications and adding them to a PDF document in a loop using Aspose.Pdf.", + "title": "Batch Add Text Annotations To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "batch-apply-js-alert-to-rectangle-annotations.cs", + "title": "Batch Apply JavaScript Alert to Rectangle Annotations", + "description": "Shows how to process multiple PDF files, locate square (rectangle) annotations on each page, and attach a JavaScript alert action to them using Aspose.Pdf.", "tags": [ - "annotations", - "pdf", + "javascript", + "annotation", "batch", - "textannotation", - "aspose-pdf" + "pdf", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.CreateJavaScriptLink", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Color", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Page.Annotations.Add" + "Aspose.Pdf.Annotations.SquareAnnotation" ], "difficulty": "intermediate" }, { "filename": "batch-extract-images-from-pdfs.cs", "title": "Batch Extract Images from PDFs to Subfolders", - "description": "Shows how to loop through a directory of PDF files, extract all images from each PDF using Aspose.Pdf.Facades.PdfExtractor, and save them as JPEGs in individual subfolders.", + "description": "Shows how to process a directory of PDF files, extract all images using Aspose.Pdf.Facades.PdfExtractor, and save each set of images into its own subfolder.", "tags": [ "pdf", "image-extraction", "batch-processing", "aspose-pdf", - "csharp" + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", - "PdfExtractor.BindPdf", - "PdfExtractor.ExtractImage", - "PdfExtractor.HasNextImage", - "PdfExtractor.GetNextImage" + "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", + "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", + "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" ], "difficulty": "intermediate" }, { "filename": "batch-remove-attachments-add-disclaimer-annotation.cs", - "title": "Batch Remove Attachments and Add Disclaimer Annotation", - "description": "Demonstrates how to iterate over PDF files, delete all embedded attachments using PdfContentEditor, and add a standardized disclaimer as a text annotation on the first page.", + "title": "Batch Remove Attachments Add Disclaimer Annotation", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "batch-remove-attachments-add-disclaimer.cs", + "title": "Batch Remove Attachments and Add Disclaimer Annotation to PDFs", + "description": "Demonstrates how to iterate through a folder of PDF files, delete all embedded attachments, and add a standardized disclaimer text annotation to each page using Aspose.Pdf facades.", "tags": [ "pdf", "attachments", "annotation", "batch-processing", - "aspose-pdf" + "disclaimer" ], "apis_used": [ "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", "Aspose.Pdf.Facades.PdfContentEditor.DeleteAttachments", + "Aspose.Pdf.Facades.PdfContentEditor.CreateText", "Aspose.Pdf.Facades.PdfContentEditor.Save", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Color" + "Aspose.Pdf.Page" ], "difficulty": "intermediate" }, { "filename": "batch-replace-confidential-with-public.cs", - "title": "Batch Replace Text in PDF Files", - "description": "Shows how to iterate through PDF files in a directory and use Aspose.Pdf's PdfContentEditor to replace every occurrence of \"Confidential\" with \"Public\", saving the modified documents back to the original files.", + "title": "Batch Replace 'Confidential' with 'Public' in PDF Files", + "description": "Shows how to iterate over a directory of PDF documents and use Aspose.Pdf's PdfContentEditor to replace every occurrence of the word \"Confidential\" with \"Public\" on all pages, then save the updated files.", "tags": [ "pdf", "text-replacement", @@ -16581,32 +19918,41 @@ }, { "filename": "batch-reposition-stamps-top-center.cs", - "title": "Batch Reposition Stamps to Top Center of PDF Pages", - "description": "Loads multiple PDF files, iterates through each page, retrieves existing stamps with PdfContentEditor, calculates coordinates to center them horizontally and align them to the top, moves the stamps, and saves the updated documents.", + "title": "Batch Reposition Stamps to Top‑Center in PDFs", + "description": "Shows how to process multiple PDF files, retrieve existing stamps on each page, and move them to a top‑center position using Aspose.Pdf.Facades.PdfContentEditor.", "tags": [ "stamps", + "batch", "pdf", - "batch-processing", - "positioning", - "Aspose.Pdf" + "reposition", + "top-center" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", "Aspose.Pdf.Facades.PdfContentEditor.GetStamps", - "Aspose.Pdf.Facades.PdfContentEditor.MoveStamp" + "Aspose.Pdf.Facades.PdfContentEditor.MoveStamp", + "Aspose.Pdf.Facades.PdfContentEditor.Save" ], "difficulty": "intermediate" }, { "filename": "batch-set-pdf-viewer-preference-full-screen.cs", + "title": "Batch Set Pdf Viewer Preference Full Screen", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "batch-set-pdf-viewer-preference-fullscreen.cs", "title": "Batch Set PDF Viewer Preference to Full‑Screen Mode", - "description": "Shows how to loop through all PDF files in a directory and set each document to open in full‑screen mode using Aspose.Pdf.Facades.", + "description": "Shows how to loop through all PDF files in a directory and use Aspose.Pdf.Facades to set each document's viewer preference to full‑screen mode, saving the modified files to an output folder.", "tags": [ "pdf", "viewer-preference", - "full-screen", + "fullscreen", "batch-processing", "aspose-pdf" ], @@ -16615,149 +19961,180 @@ "PdfContentEditor.BindPdf", "PdfContentEditor.ChangeViewerPreference", "PdfContentEditor.Save", - "ViewerPreference" + "ViewerPreference.PageModeFullScreen" ], "difficulty": "beginner" }, { - "filename": "center-image-stamp-on-page.cs", - "title": "Center Image Stamp on Specific PDF Page", - "description": "Shows how to add an image stamp and position it at the horizontal and vertical center of page 8 in a PDF using Aspose.Pdf.Facades.", + "filename": "center-image-stamp-on-page-8.cs", + "title": "Center Image Stamp on Page 8 of a PDF", + "description": "Demonstrates how to place an image stamp centered horizontally and vertically on the eighth page of a PDF using Aspose.Pdf.Facades.", "tags": [ "stamp", "center", "page8", - "Aspose.Pdf", + "pdf", "facade" ], "apis_used": [ - "PdfFileStamp", - "PdfFileStamp.BindPdf", - "Stamp", - "Stamp.BindImage", - "Stamp.SetImageSize", - "Stamp.SetOrigin", - "Stamp.Pages", - "PdfFileStamp.AddStamp", - "PdfFileStamp.Save" + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.Facades.Stamp", + "Aspose.Pdf.Facades.Stamp.SetImageSize", + "Aspose.Pdf.Facades.Stamp.SetOrigin", + "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", + "Aspose.Pdf.Facades.PdfFileStamp.Save" ], "difficulty": "intermediate" }, { - "filename": "change-pdf-viewer-preferences.cs", + "filename": "center-image-stamp-on-page.cs", + "title": "Center Image Stamp On Page", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "change-pdf-viewer-preferences-save.cs", "title": "Change PDF Viewer Preferences and Save to New File", - "description": "Demonstrates how to use Aspose.Pdf's PdfContentEditor facade to modify viewer preferences of an existing PDF and save the result to a new file.", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfContentEditor to bind an existing PDF, modify its viewer preferences, and save the edited document to a new file.", "tags": [ "pdf", "viewer-preferences", - "edit", + "aspose", "facade", - "aspose" + "edit" ], "apis_used": [ "Aspose.Pdf.Facades.PdfContentEditor", - "PdfContentEditor.BindPdf", - "PdfContentEditor.ChangeViewerPreference", - "PdfContentEditor.Save", - "Aspose.Pdf.ViewerPreference" + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.ChangeViewerPreference", + "Aspose.Pdf.Facades.PdfContentEditor.Save", + "Aspose.Pdf.Facades.PdfContentEditor.Close", + "Aspose.Pdf.Facades.ViewerPreference" ], "difficulty": "beginner" }, + { + "filename": "change-pdf-viewer-preferences.cs", + "title": "Change Pdf Viewer Preferences", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "check-pdf-checkbox-field.cs", - "title": "Check a PDF Checkbox Field Programmatically", - "description": "Shows how to load a PDF form, set the 'TermsAccepted' checkbox to true, and save the updated PDF using Aspose.Pdf Facade API.", - "tags": [ - "pdf", - "form", - "checkbox", - "aspose", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.FillField", - "Aspose.Pdf.Facades.Form.Save" - ], - "difficulty": "beginner" + "title": "Check Pdf Checkbox Field", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "combine-jpeg-images-into-pdf.cs", - "title": "Combine JPEG Images into a PDF", - "description": "Shows how to create a PDF document, add a separate page for each JPEG file, and place the image to fill the page using Aspose.Pdf.", + "title": "Combine Jpeg Images Into Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "combine-jpeg-images-to-pdf.cs", + "title": "Combine Multiple JPEG Images into a Single PDF", + "description": "Shows how to merge several JPEG files into one PDF document, adding each image to a separate page using Aspose.Pdf.", "tags": [ "jpeg", "pdf", "image", - "aspose", - "document" + "merge", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfFileMend", + "Aspose.Pdf.Facades.PdfFileMend.AddImage", "Aspose.Pdf.Page", - "Aspose.Pdf.Image", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Pages.Add", - "Aspose.Pdf.Page.Paragraphs.Add" + "Aspose.Pdf.PageInfo", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "compare-pdf-file-sizes-after-editing.cs", - "title": "Compare PDF File Sizes After Editing", - "description": "Shows how to add a blank page to a PDF, save the edited file, and compare the original and edited file sizes to confirm that changes were applied.", + "filename": "compare-pdf-file-sizes-after-annotation.cs", + "title": "Compare PDF File Sizes After Adding Annotation", + "description": "The example loads an existing PDF, adds a text annotation using Aspose.Pdf, saves the edited file, and then compares the file sizes of the original and edited PDFs to verify that changes were applied.", "tags": [ "pdf", - "file-size", - "edit", + "annotation", + "filesize", "aspose", - "c#" + "facade" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.NumberOfPages" + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.TextAnnotation", + "Aspose.Pdf.Color", + "Aspose.Pdf.Facades.PdfFileInfo" ], "difficulty": "beginner" }, { - "filename": "configure-continuous-view-mode.cs", - "title": "Configure Continuous View Mode for PDF", - "description": "Demonstrates how to set the viewer preference to continuous (single column) layout using Aspose.Pdf's PdfContentEditor and save the updated PDF.", + "filename": "compare-pdf-file-sizes-after-editing.cs", + "title": "Compare Pdf File Sizes After Editing", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "config-driven-pdf-pipeline-attachments-viewer-annotations.cs", + "title": "Configuration‑Driven PDF Pipeline for Attachments, Viewer Preferences, and Annotations", + "description": "Demonstrates a configuration‑driven pipeline that sequentially adds file attachments, changes viewer preferences, and inserts text or file‑attachment annotations into a PDF using Aspose.Pdf's PdfContentEditor facade.", "tags": [ - "viewer-preference", - "continuous-view", "pdf", - "Aspose.Pdf", - "PdfContentEditor" + "configuration", + "pipeline", + "attachments", + "annotations" ], "apis_used": [ "PdfContentEditor", "PdfContentEditor.BindPdf", + "PdfContentEditor.AddDocumentAttachment", "PdfContentEditor.ChangeViewerPreference", - "PdfContentEditor.Save", - "PdfContentEditor.Close" + "PdfContentEditor.AddAnnotation", + "Aspose.Pdf.Rectangle" ], - "difficulty": "beginner" + "difficulty": "intermediate" + }, + { + "filename": "configure-continuous-view-mode.cs", + "title": "Configure Continuous View Mode", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "convert-jpeg-to-pdf.cs", - "title": "Convert JPEG Image to PDF", - "description": "Demonstrates loading a JPEG file and embedding it into a single‑page PDF document with default margins using Aspose.Pdf.", + "title": "Convert JPEG Image to Single‑Page PDF", + "description": "Demonstrates how to load a JPEG file and embed it in a new PDF document as a single page, using the default page margins.", "tags": [ "jpeg", "pdf", - "image", - "conversion", - "aspose-pdf" + "image-to-pdf", + "aspose.pdf", + "single-page" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Image", - "Aspose.Pdf.Document.Pages.Add", "Aspose.Pdf.Page.Paragraphs.Add", "Aspose.Pdf.Document.Save" ], @@ -16765,8 +20142,8 @@ }, { "filename": "convert-pdf-page-to-high-res-png.cs", - "title": "Convert PDF Page to High‑Resolution PNG", - "description": "Shows how to extract page 7 from a PDF and save it as a 300 DPI PNG image using Aspose.Pdf Facades.", + "title": "Convert PDF Page to High-Resolution PNG (300 DPI)", + "description": "Shows how to extract page 7 from a PDF and save it as a 300 DPI PNG image using Aspose.Pdf's PdfConverter facade.", "tags": [ "pdf", "png", @@ -16775,66 +20152,66 @@ "facade" ], "apis_used": [ - "PdfConverter", - "PdfConverter.BindPdf", - "PdfConverter.StartPage", - "PdfConverter.EndPage", - "Resolution", - "PdfConverter.DoConvert", - "PdfConverter.HasNextImage", - "PdfConverter.GetNextImage" + "Aspose.Pdf.Facades.PdfConverter", + "Aspose.Pdf.Facades.PdfConverter.BindPdf", + "Aspose.Pdf.Facades.PdfConverter.DoConvert", + "Aspose.Pdf.Facades.PdfConverter.GetNextImage", + "Aspose.Pdf.Devices.Resolution" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "convert-pdf-pages-to-bmp.cs", - "title": "Convert PDF Pages to BMP Images", - "description": "Shows how to use Aspose.Pdf's PdfConverter facade to render each page of a PDF document as a 24‑bit BMP image suitable for legacy systems.", + "title": "Convert PDF Pages to 24‑bit BMP Images", + "description": "Loads a PDF with Aspose.Pdf, iterates through each page, and saves every page as a 24‑bit BMP image using the BmpDevice class.", "tags": [ "pdf", "bmp", "conversion", - "facade", + "aspose.pdf", "image" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfConverter", - "Aspose.Pdf.Facades.PdfConverter.BindPdf", - "Aspose.Pdf.Facades.PdfConverter.Resolution", - "Aspose.Pdf.Facades.PdfConverter.DoConvert", - "Aspose.Pdf.Facades.PdfConverter.HasNextImage", - "Aspose.Pdf.Facades.PdfConverter.GetNextImage", - "Aspose.Pdf.Devices.Resolution" + "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.Devices.BmpDevice", + "Aspose.Pdf.Devices.BmpDevice.Process", + "Aspose.Pdf.PageCollection" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "convert-pdf-pages-to-png-150-dpi.cs", - "title": "Convert PDF Pages to PNG Images at 150 DPI", - "description": "Demonstrates batch conversion of each PDF page to a PNG image with 150 DPI resolution using Aspose.Pdf's PdfConverter.", + "title": "Convert Pdf Pages To Png 150 Dpi", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "convert-pdf-pages-to-png-transparent.cs", + "title": "Convert PDF Pages 2‑4 to PNG with 200 DPI and Transparent Background", + "description": "Demonstrates loading a PDF, rendering pages 2 to 4 as PNG images at 200 DPI with a transparent background, and saving them to a folder.", "tags": [ "pdf", "png", "conversion", - "dpi", - "batch" + "transparent", + "resolution" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfConverter", - "Aspose.Pdf.Facades.PdfConverter.BindPdf", - "Aspose.Pdf.Facades.PdfConverter.Resolution", + "Aspose.Pdf.Document", "Aspose.Pdf.Devices.Resolution", - "Aspose.Pdf.Facades.PdfConverter.DoConvert", - "Aspose.Pdf.Facades.PdfConverter.HasNextImage", - "Aspose.Pdf.Facades.PdfConverter.GetNextImage" + "Aspose.Pdf.Devices.PngDevice", + "Aspose.Pdf.Devices.PngDevice.Process", + "Aspose.Pdf.PageCollection" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "convert-pdf-pages-to-transparent-png.cs", - "title": "Convert PDF Pages to Transparent PNG Images at 200 DPI", - "description": "Demonstrates extracting pages 2‑4 from a PDF and saving each as a 200 DPI PNG with a transparent background using Aspose.Pdf.", + "title": "Convert PDF Pages to Transparent PNG Images at 150 DPI", + "description": "Demonstrates loading a PDF, configuring a 150 DPI resolution with transparent background, and batch converting each page to a PNG file using Aspose.Pdf.", "tags": [ "pdf", "png", @@ -16844,17 +20221,37 @@ ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Devices.Resolution", "Aspose.Pdf.Devices.PngDevice", + "Aspose.Pdf.Page", + "Aspose.Pdf.Devices.PngDevice.Process" + ], + "difficulty": "intermediate" + }, + { + "filename": "convert-pdf-to-jpeg-150-dpi.cs", + "title": "Convert PDF to JPEG Images (150 DPI)", + "description": "Loads a PDF document and converts each page to a JPEG image using a 150 DPI resolution and 90% quality, saving the images to a specified folder.", + "tags": [ + "pdf", + "jpeg", + "conversion", + "resolution", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Devices.JpegDevice", "Aspose.Pdf.Devices.Resolution", - "Aspose.Pdf.Devices.PngDevice.Process", + "Aspose.Pdf.Devices.JpegDevice.Process", "Aspose.Pdf.PageCollection" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "convert-pdf-to-multi-page-tiff-lzw.cs", "title": "Convert PDF to Multi‑Page TIFF with LZW Compression", - "description": "Demonstrates how to use Aspose.Pdf's PdfConverter facade to transform a PDF document into a single multi‑page TIFF file while applying LZW compression.", + "description": "Demonstrates how to use Aspose.Pdf.Facades to convert a PDF document into a multi‑page TIFF file while applying LZW compression.", "tags": [ "pdf", "tiff", @@ -16874,12 +20271,12 @@ { "filename": "convert-pdf-to-png-thumbnails-300-dpi.cs", "title": "Convert PDF Pages to PNG Thumbnails with 300 DPI and Transparent Background", - "description": "Shows how to load a PDF, set a 300 DPI resolution, enable transparent background, and render each page as a PNG image using Aspose.Pdf.", + "description": "Shows how to load a PDF using Aspose.Pdf, render each page to a PNG image at 300 DPI, and enable a transparent background for UI thumbnail generation.", "tags": [ "pdf", "png", "thumbnail", - "resolution", + "dpi", "transparent" ], "apis_used": [ @@ -16889,100 +20286,100 @@ "Aspose.Pdf.Devices.PngDevice.Process", "Aspose.Pdf.PageCollection" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "convert-pdf-to-progressive-jpeg-150-dpi.cs", - "title": "Convert PDF Pages to Progressive JPEG Images (150 DPI)", - "description": "The example loads a PDF document, sets a 150 DPI resolution, and uses Aspose.Pdf.Facades.PdfConverter to export each page as a progressive JPEG image suitable for web use.", - "tags": [ - "pdf", - "jpeg", - "conversion", - "resolution", - "aspose" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfConverter", - "Aspose.Pdf.Devices.Resolution", - "Aspose.Pdf.Text.TextFragment", - "PdfConverter.BindPdf", - "PdfConverter.DoConvert", - "PdfConverter.GetNextImage", - "PdfConverter.HasNextImage" - ], - "difficulty": "intermediate" + "title": "Convert Pdf To Progressive Jpeg 150 Dpi", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "convert-png-to-multi-page-pdf.cs", "title": "Convert PNG Images to Multi‑Page PDF", - "description": "Shows how to create a one‑page PDF for each PNG image and then merge those pages into a single multi‑page PDF using Aspose.Pdf facades.", + "description": "Shows how to read PNG files from a folder and combine them into a single PDF, adding each image to its own page with default margins.", "tags": [ "png", "pdf", - "merge", - "facades", - "image" + "image-to-pdf", + "multipage", + "aspose.pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Image", - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.Concatenate" + "Aspose.Pdf.Document.Pages.Add", + "Aspose.Pdf.Page.Paragraphs.Add", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "create-dashed-border-rectangle-annotation.cs", "title": "Create Dashed Border Rectangle Annotation", - "description": "Demonstrates how to add a square (rectangle) annotation with a dashed border to a PDF document using Aspose.Pdf.", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-dashed-rectangle-annotation.cs", + "title": "Create Dashed Rectangle Annotation in PDF", + "description": "Shows how to add a square (rectangle) annotation with a custom dashed border to a PDF document using Aspose.PDF.", "tags": [ "annotation", - "border", - "dashed", + "dashed-border", "rectangle", - "pdf" + "Aspose.Pdf", + "PDF-modification" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Annotations.SquareAnnotation", "Aspose.Pdf.Annotations.Border", - "Aspose.Pdf.Annotations.BorderStyle", "Aspose.Pdf.Annotations.Dash", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Color" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "create-image-stamp-from-memory-stream.cs", - "title": "Create Image Stamp from Memory Stream", - "description": "Shows how to generate an image in memory and apply it as a stamp to a PDF using Aspose.Pdf without saving the image to disk.", + "title": "Create Image Stamp From Memory Stream", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-multiline-text-stamp.cs", + "title": "Create Multiline Text Stamp on PDF", + "description": "Shows how to add a multiline text stamp with Arial 14 pt blue font to a PDF using Aspose.Pdf Facade classes.", "tags": [ - "image-stamp", - "memory-stream", - "pdf", - "Aspose.Pdf", + "text-stamp", + "multiline", + "font", + "color", "facade" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", - "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", - "Aspose.Pdf.Facades.PdfFileStamp.Save", - "Aspose.Pdf.Facades.Stamp.SetOrigin", - "Aspose.Pdf.Facades.Stamp.SetImageSize", - "Aspose.Pdf.Facades.Stamp.BindImage" + "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.Facades.Stamp", + "Aspose.Pdf.Text.FormattedText", + "Stamp.BindLogo", + "PdfFileStamp.BindPdf", + "PdfFileStamp.AddStamp", + "PdfFileStamp.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "create-nested-bookmarks-pdfcontenteditor.cs", - "title": "Create Nested Bookmarks with PdfContentEditor", - "description": "Shows how to generate a simple PDF and add a top‑level bookmark with nested section bookmarks using Aspose.Pdf.Facades.PdfContentEditor.", + "filename": "create-nested-bookmarks-pdf.cs", + "title": "Create Nested Bookmarks in PDF using PdfContentEditor", + "description": "Shows how to add a parent bookmark (Chapter One) and its child section bookmarks to an existing PDF file using Aspose.Pdf's PdfContentEditor class.", "tags": [ "bookmarks", "pdf", @@ -16991,101 +20388,112 @@ "nested" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfContentEditor", - "PdfContentEditor.BindPdf", - "PdfContentEditor.CreateBookmarksAction", - "PdfContentEditor.Save", - "PdfContentEditor.Close" + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.CreateBookmarksAction", + "Aspose.Pdf.Facades.PdfContentEditor.Save" ], "difficulty": "beginner" }, + { + "filename": "create-nested-bookmarks-pdfcontenteditor.cs", + "title": "Create Nested Bookmarks Pdfcontenteditor", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "create-nested-pdf-bookmarks-three-levels.cs", + "title": "Create Nested Pdf Bookmarks Three Levels", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-nested-pdf-bookmarks.cs", "title": "Create Nested PDF Bookmarks (Three Levels)", - "description": "Demonstrates how to add a three‑level bookmark hierarchy (section, subsections, sub‑subsections) to an existing PDF using Aspose.Pdf.Facades.", + "description": "Demonstrates building a three‑level bookmark hierarchy (section, subsection, sub‑subsection) in a PDF using Aspose.Pdf.Facades.", "tags": [ - "pdf", "bookmarks", "nested", - "aspose", - "csharp" + "pdf", + "aspose-pdf", + "facades" ], "apis_used": [ "Aspose.Pdf.Facades.PdfBookmarkEditor", "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", "Aspose.Pdf.Facades.PdfBookmarkEditor.CreateBookmarks", "Aspose.Pdf.Facades.PdfBookmarkEditor.Save", - "Aspose.Pdf.Facades.Bookmark", - "Aspose.Pdf.Facades.Bookmarks" + "Aspose.Pdf.Bookmark", + "Aspose.Pdf.Bookmarks" ], "difficulty": "intermediate" }, { "filename": "create-pdf-image-catalog.cs", - "title": "Create PDF Image Catalog with Thumbnails", - "description": "Extracts all images from a source PDF and builds a new PDF that displays each image as a thumbnail with a caption, then cleans up temporary files.", + "title": "Create Pdf Image Catalog", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-rubber-stamp-with-custom-appearance.cs", + "title": "Create Rubber Stamp Annotation with Custom Appearance Stream", + "description": "Demonstrates how to add a rubber‑stamp annotation to a PDF page using a custom appearance PDF stream.", "tags": [ - "pdf", - "image-extraction", - "thumbnail", - "catalog", + "rubber-stamp", + "custom-appearance", + "annotation", + "pdf-editing", "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfExtractor", - "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", - "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", - "Aspose.Pdf.Facades.PdfExtractor.GetNextImage", "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Image", - "Aspose.Pdf.Text.TextFragment" + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.CreateRubberStamp", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "custom-annotation-appearance-stream.cs", - "title": "Create Custom Annotation Appearance Stream with Rubber Stamp", - "description": "Demonstrates how to add a rubber‑stamp annotation with a custom appearance stream that draws a red rectangle using PDF drawing operators.", + "title": "Custom Annotation Appearance Stream", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "custom-appearance-rubber-stamp.cs", + "title": "Create Custom Appearance Stream for Rubber Stamp Annotation", + "description": "Demonstrates building an in‑memory PDF with a vector graphic and applying it as a custom appearance stream to a rubber‑stamp annotation using Aspose.Pdf.", "tags": [ - "annotation", - "appearance", "rubber-stamp", - "pdf", - "vector-graphic" + "custom-appearance", + "vector-graphic", + "pdf-editing", + "Aspose.Pdf" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Drawing.GraphInfo", + "Aspose.Pdf.Drawing.Rectangle", "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.CreateRubberStamp", - "Aspose.Pdf.Facades.PdfContentEditor.Save" + "Aspose.Pdf.Facades.PdfContentEditor.CreateRubberStamp" ], "difficulty": "intermediate" }, { - "filename": "custom-appearance-rubber-stamp.cs", - "title": "Create Custom Appearance Rubber Stamp Annotation", - "description": "Shows how to add a rubber‑stamp annotation to a PDF page using a custom appearance stream taken from another PDF file via PdfContentEditor.", - "tags": [ - "rubber stamp", - "custom appearance", - "annotation", - "pdf editing", - "Aspose.Pdf" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.CreateRubberStamp", - "Aspose.Pdf.Facades.PdfContentEditor.Save" - ], - "difficulty": "intermediate" - }, - { - "filename": "decrypt-edit-reencrypt-pdf.cs", - "title": "Decrypt, Edit, and Re‑encrypt a Password‑Protected PDF", - "description": "The example shows how to open a PDF protected with a user password, decrypt it, modify its content by adding a text fragment, and then re‑encrypt the document with AES‑256 and specific permissions.", + "filename": "decrypt-edit-reencrypt-pdf.cs", + "title": "Decrypt, Edit, and Re‑encrypt a Password‑Protected PDF", + "description": "Demonstrates loading a password‑protected PDF with a user password, decrypting it for modifications, adding a text fragment, and then re‑encrypting with specific permissions before saving.", "tags": [ "pdf", "encryption", @@ -17100,25 +20508,36 @@ "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Text.Position", - "Aspose.Pdf.FontRepository.FindFont" + "Aspose.Pdf.Permissions", + "Aspose.Pdf.CryptoAlgorithm" ], "difficulty": "intermediate" }, { "filename": "delete-all-attachments-verify-count.cs", - "title": "Delete All Attachments from PDF and Verify Count", - "description": "Shows how to remove every attachment from a PDF using PdfContentEditor and then confirm that the attachment count is zero with PdfExtractor.", + "title": "Delete All Attachments Verify Count", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "delete-all-pdf-attachments-verify.cs", + "title": "Delete All PDF Attachments and Verify Count", + "description": "Demonstrates how to remove every attachment from a PDF using PdfContentEditor and then confirm that the attachment list is empty with PdfExtractor.", "tags": [ "attachments", "delete", "verification", "pdf", - "facade" + "aspose" ], "apis_used": [ + "PdfContentEditor", "PdfContentEditor.BindPdf", "PdfContentEditor.DeleteAttachments", "PdfContentEditor.Save", + "PdfExtractor", "PdfExtractor.BindPdf", "PdfExtractor.ExtractAttachment", "PdfExtractor.GetAttachmentInfo" @@ -17128,13 +20547,13 @@ { "filename": "delete-page-from-pdf.cs", "title": "Delete a Specific Page from PDF", - "description": "Shows how to remove page 5 from a PDF document using Aspose.Pdf.Facades.PdfFileEditor and save the updated file.", + "description": "Demonstrates how to remove page 5 from an existing PDF using Aspose.Pdf's PdfFileEditor and save the result to a new file.", "tags": [ "pdf", "delete-page", "aspose", - "facade", - "csharp" + "csharp", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", @@ -17143,38 +20562,124 @@ "difficulty": "beginner" }, { - "filename": "disable-zoom-controls-set-fixed-zoom.cs", - "title": "Disable Zoom Controls and Set Fixed Zoom Level in PDF", - "description": "Demonstrates how to hide the PDF toolbar (which contains zoom controls) using viewer preferences and then enforce a fixed zoom level (100%) for consistent display.", + "filename": "delete-pdf-attachments-matching-old-pdf.cs", + "title": "Delete PDF Attachments Matching '_old.pdf' Pattern", + "description": "Demonstrates loading a PDF with Aspose.Pdf, enumerating embedded files, selecting those whose names end with \"_old.pdf\", and removing them before saving the document.", "tags": [ - "viewer-preferences", - "zoom", + "attachments", + "delete", + "embedded-files", + "pdf", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.EmbeddedFileCollection", + "Aspose.Pdf.EmbeddedFileCollection.Delete", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "intermediate" + }, + { + "filename": "disable-zoom-controls-in-pdf.cs", + "title": "Disable Zoom Controls in PDF Viewer", + "description": "Shows how to hide toolbar and window UI using viewer preferences so the PDF cannot be zoomed, ensuring a fixed zoom level for consistent display.", + "tags": [ + "viewer-preference", + "disable-zoom", "pdf", "Aspose.Pdf", - "document-editing" + "PdfContentEditor" ], "apis_used": [ "PdfContentEditor", "PdfContentEditor.BindPdf", "PdfContentEditor.ChangeViewerPreference", "PdfContentEditor.Save", - "PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.Zoom", "ViewerPreference" ], + "difficulty": "beginner" + }, + { + "filename": "disable-zoom-controls-set-fixed-zoom.cs", + "title": "Disable Zoom Controls Set Fixed Zoom", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "edit-pdf-text-with-pdfcontenteditor-disposal.cs", + "title": "Edit PDF Text with PdfContentEditor and Ensure Proper Disposal", + "description": "Demonstrates how to replace text in a PDF using Aspose.Pdf.Facades.PdfContentEditor while guaranteeing that the editor and bound document are properly disposed in a finally block.", + "tags": [ + "pdf", + "text-replacement", + "resource-management", + "facade", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.ReplaceText", + "Aspose.Pdf.Facades.PdfContentEditor.Save", + "Aspose.Pdf.Facades.PdfContentEditor.Close" + ], + "difficulty": "intermediate" + }, + { + "filename": "edit-pdf-with-logging-using-pdfcontenteditor.cs", + "title": "Edit PDF with Logging using PdfContentEditor", + "description": "Demonstrates how to edit a PDF (replace text, add a web link, delete images) using Aspose.Pdf.Facades.PdfContentEditor while recording each operation to a log file with timestamps.", + "tags": [ + "pdf-editing", + "logging", + "aspose-pdf", + "pdfcontenteditor", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfContentEditor", + "PdfContentEditor.BindPdf", + "PdfContentEditor.ReplaceText", + "PdfContentEditor.CreateWebLink", + "PdfContentEditor.DeleteImage", + "PdfContentEditor.Save" + ], "difficulty": "intermediate" }, + { + "filename": "embed-memory-stream-as-pdf-attachment.cs", + "title": "Embed Memory Stream as PDF Attachment", + "description": "Demonstrates how to add a file attachment to a PDF directly from a MemoryStream using Aspose.Pdf's PdfContentEditor.", + "tags": [ + "pdf", + "attachment", + "memory-stream", + "Aspose.Pdf", + "PdfContentEditor" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfContentEditor", + "PdfContentEditor.BindPdf", + "PdfContentEditor.AddDocumentAttachment", + "PdfContentEditor.Save" + ], + "difficulty": "beginner" + }, { "filename": "enable-centerwindow-viewer-preference.cs", "title": "Enable CenterWindow Viewer Preference for PDF", - "description": "Demonstrates how to set the CenterWindow viewer preference so that a PDF opens centered on the screen using Aspose.Pdf.Facades.", + "description": "Shows how to load a PDF with Aspose.Pdf, set the CenterWindow viewer preference to true, and save the modified document.", "tags": [ "viewer-preference", "center-window", "pdf", "aspose-pdf", - "pdf-editing" + "csharp" ], "apis_used": [ "PdfContentEditor", @@ -17186,118 +20691,179 @@ "difficulty": "beginner" }, { - "filename": "encrypt-attachment-and-add-to-pdf.cs", - "title": "Encrypt Attachment and Add to PDF", - "description": "Shows how to encrypt a PDF file with a password using PdfFileSecurity and then attach the encrypted file to another PDF with PdfContentEditor for added security.", + "filename": "enable-displaydoctitle-viewer-preference.cs", + "title": "Enable DisplayDocTitle Viewer Preference in PDF", + "description": "Loads a PDF, sets its document title, and configures the DisplayDocTitle viewer preference so the title appears in the window caption, then saves the updated file.", "tags": [ - "encryption", - "attachment", "pdf", - "security", - "facade" + "title", + "viewer-preference", + "aspose-pdf", + "facades" ], "apis_used": [ - "PdfFileSecurity", - "PdfFileSecurity.BindPdf", - "PdfFileSecurity.EncryptFile", - "PdfFileSecurity.Save", - "PdfContentEditor", - "PdfContentEditor.BindPdf", - "PdfContentEditor.AddDocumentAttachment", - "Document" + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.SetTitle", + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.ChangeViewerPreference", + "Aspose.Pdf.Facades.PdfContentEditor.Save", + "Aspose.Pdf.Facades.ViewerPreference" ], "difficulty": "intermediate" }, + { + "filename": "encrypt-attachment-and-add-to-pdf.cs", + "title": "Encrypt Attachment And Add To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "encrypt-pdf-128-aes-restrict-permissions.cs", "title": "Encrypt PDF with 128‑bit AES and Restrict Permissions", - "description": "Shows how to encrypt a PDF using 128‑bit AES encryption and apply a privilege that forbids printing and editing using Aspose.Pdf.Facades.", + "description": "Demonstrates how to encrypt a PDF using 128‑bit AES encryption and apply a privilege set that disables printing, editing, and other actions.", "tags": [ "pdf", "encryption", "aes", "permissions", - "c#" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSecurity", - "Aspose.Pdf.Facades.PdfFileSecurity.EncryptFile", "Aspose.Pdf.Facades.DocumentPrivilege", - "Aspose.Pdf.Facades.DocumentPrivilege.ForbidAll", - "Aspose.Pdf.Facades.KeySize" + "Aspose.Pdf.Facades.KeySize", + "Aspose.Pdf.Facades.Algorithm", + "Aspose.Pdf.Facades.PdfFileSecurity.EncryptFile" ], "difficulty": "beginner" }, { - "filename": "encrypt-pdf-with-attachment-and-viewer-preference.cs", - "title": "Encrypt PDF with Attachment and Viewer Preference", - "description": "Shows how to add a document attachment, set a viewer preference, and then encrypt the PDF with user and owner passwords using Aspose.Pdf.Facades.", + "filename": "encrypt-pdf-attachment-and-add-to-pdf.cs", + "title": "Encrypt PDF Attachment and Add to PDF", + "description": "Shows how to encrypt a PDF file with a password using PdfFileSecurity and then attach the encrypted PDF to another document with PdfContentEditor.", "tags": [ - "pdf", "encryption", "attachment", - "viewer-preference", - "aspose" + "pdf", + "aspose", + "security" ], "apis_used": [ - "PdfContentEditor", - "PdfContentEditor.BindPdf", - "PdfContentEditor.AddDocumentAttachment", - "PdfContentEditor.ChangeViewerPreference", - "PdfFileSecurity", - "PdfFileSecurity.BindPdf", - "PdfFileSecurity.EncryptFile", - "PdfFileSecurity.Save" + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfFileSecurity", + "Aspose.Pdf.Facades.PdfFileSecurity.EncryptFile", + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment" ], "difficulty": "intermediate" }, { - "filename": "export-pdf-annotations-to-json.cs", - "title": "Export PDF Annotations to JSON via XFDF", - "description": "Shows how to load a PDF, extract all annotations with PdfAnnotationEditor, convert them to XFDF, and embed the XFDF XML in a JSON file for external analysis.", + "filename": "encrypt-pdf-with-attachment-and-viewer-preference.cs", + "title": "Encrypt Pdf With Attachment And Viewer Preference", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "encrypt-pdf-with-certificate-signature.cs", + "title": "Encrypt PDF with Certificate and Apply Digital Signature", + "description": "Demonstrates how to encrypt a PDF using AES‑256, then sign the encrypted document with a certificate‑based digital signature using Aspose.Pdf facades.", + "tags": [ + "encryption", + "digital-signature", + "certificate", + "Aspose.Pdf", + "facade" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Facades.PdfFileSignature", + "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", + "Aspose.Pdf.Facades.PdfFileSignature.SetCertificate", + "Aspose.Pdf.Facades.PdfFileSignature.Sign", + "Aspose.Pdf.Forms.PKCS1" + ], + "difficulty": "intermediate" + }, + { + "filename": "export-modified-pdf-to-memory-stream.cs", + "title": "Export Modified PDF to Memory Stream", + "description": "Shows how to bind a PDF with Aspose.Pdf.Facades.PdfViewer, optionally apply modifications, and save the resulting PDF into a MemoryStream for downstream processing.", "tags": [ "pdf", + "memory-stream", + "export", + "aspose-pdf", + "facade" + ], + "apis_used": [ + "PdfViewer", + "PdfViewer.BindPdf", + "PdfViewer.Save", + "PdfViewer.Close" + ], + "difficulty": "beginner" + }, + { + "filename": "export-pdf-annotations-to-json.cs", + "title": "Export PDF Annotations to JSON", + "description": "Demonstrates extracting all annotations from a PDF with Aspose.Pdf, converting them to XFDF, and wrapping the XFDF XML in a JSON file for external analysis.", + "tags": [ "annotations", "export", "json", - "xfdf" + "xfdf", + "pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", "Aspose.Pdf.Facades.PdfAnnotationEditor.ExportAnnotationsToXfdf" ], "difficulty": "intermediate" }, { "filename": "export-pdf-to-memorystream.cs", - "title": "Export PDF to MemoryStream using PdfViewer", - "description": "Demonstrates loading a PDF with Aspose.Pdf.Facades.PdfViewer, optionally applying modifications, and saving the result directly to a MemoryStream for further processing.", + "title": "Export Pdf To Memorystream", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "export-pdf-viewer-preferences-to-xml.cs", + "title": "Export PDF Viewer Preferences to XML", + "description": "Demonstrates how to read viewer preference flags from a PDF using Aspose.Pdf.Facades and serialize them into an XML file for legacy system integration.", "tags": [ "pdf", - "memorystream", + "viewer-preferences", + "xml", "export", - "aspose.pdf", - "facade" + "aspose" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfViewer", - "PdfViewer.BindPdf", - "PdfViewer.Save" + "PdfContentEditor", + "PdfContentEditor.BindPdf", + "PdfContentEditor.GetViewerPreference", + "ViewerPreference" ], "difficulty": "beginner" }, { - "filename": "extract-first-image-from-pdf-page.cs", - "title": "Extract First Image from PDF Page as PNG", - "description": "Shows how to extract the first image on page 2 of a PDF document and save it as a PNG file using Aspose.Pdf Facades.", + "filename": "extract-first-image-from-pdf-page2-png.cs", + "title": "Extract First Image from PDF Page 2 as PNG", + "description": "Shows how to extract the first image on a specific PDF page and save it as a PNG file using Aspose.Pdf.", "tags": [ "pdf", "image-extraction", - "facades", "png", - "csharp" + "aspose-pdf", + "page2" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", @@ -17310,19 +20876,36 @@ }, { "filename": "extract-grayscale-images-from-pdf-page.cs", - "title": "Extract and Grayscale Images from PDF Page", - "description": "Demonstrates using Aspose.Pdf's PdfExtractor to extract images from a specific PDF page, convert each image to grayscale with System.Drawing, and save the results as JPEG files.", + "title": "Extract Grayscale Images From Pdf Page", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-images-from-pdf-pages.cs", + "title": "Extract Images From Pdf Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-images-from-pdf-rename-by-page-index.cs", + "title": "Extract Images from PDF and Rename by Page and Index", + "description": "The example creates a PDF containing images, then uses Aspose.Pdf's PdfExtractor to extract each image per page and saves them with filenames that include the page number and image index.", "tags": [ "pdf", "image-extraction", - "grayscale", "aspose-pdf", + "page-index", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Drawing.Image", "Aspose.Pdf.Facades.PdfExtractor", - "Aspose.Pdf.Facades.PdfExtractor.BindPdf", "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" @@ -17330,112 +20913,99 @@ "difficulty": "intermediate" }, { - "filename": "extract-images-from-pdf-pages.cs", - "title": "Extract Images from PDF Pages to PNG Files", - "description": "Shows how to iterate through each page of a PDF, extract all embedded images, and save them as PNG files using Aspose.Pdf.Facades.", + "filename": "extract-images-from-pdf.cs", + "title": "Extract Images from PDF", + "description": "Shows how to use Aspose.Pdf's PdfExtractor to pull all images from a PDF and save them as PNG files in a specified folder.", "tags": [ "pdf", "image-extraction", - "aspose", + "aspose.pdf", "csharp", - "png" + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", - "PdfExtractor.BindPdf", - "PdfExtractor.StartPage", - "PdfExtractor.EndPage", - "PdfExtractor.ExtractImage", - "PdfExtractor.HasNextImage", - "PdfExtractor.GetNextImage", - "PdfExtractor.Document" + "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", + "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", + "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "extract-images-from-pdf.cs", - "title": "Extract Images from PDF using PdfExtractor", - "description": "Demonstrates how to extract all images from a PDF file and save them to a designated folder using Aspose.Pdf's PdfExtractor facade.", + "filename": "extract-page5-images-grayscale.cs", + "title": "Extract Images from Page 5 and Convert to Grayscale JPEG", + "description": "Demonstrates how to extract all images from the fifth page of a PDF using Aspose.Pdf.Facades, save them as JPEG files, and convert each to grayscale.", "tags": [ "pdf", "image-extraction", - "aspose", - "facade", + "grayscale", + "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", - "PdfExtractor.BindPdf", - "PdfExtractor.ExtractImage", - "PdfExtractor.HasNextImage", - "PdfExtractor.GetNextImage" + "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", + "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", + "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "extract-pdf-viewer-preferences-to-json.cs", - "title": "Extract PDF Viewer Preferences and Save to JSON", - "description": "Demonstrates how to read viewer preference flags (page layout and zoom mode) from a PDF using PdfContentEditor and store them in a JSON configuration file.", - "tags": [ - "pdf", - "viewer-preferences", - "json", - "aspose.pdf", - "facade" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.GetViewerPreference", - "Aspose.Pdf.ViewerPreference" - ], - "difficulty": "intermediate" + "title": "Extract Pdf Viewer Preferences To Json", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "extract-pdf-viewer-preferences-to-xml.cs", - "title": "Extract PDF Viewer Preferences and Save as XML", - "description": "Loads a PDF with PdfContentEditor, retrieves the viewer preference flags, and writes them to an XML configuration file.", - "tags": [ - "pdf", - "viewer-preferences", - "xml", - "facade", - "export" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.GetViewerPreference" - ], - "difficulty": "beginner" + "title": "Extract Pdf Viewer Preferences To Xml", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "extract-pdf-viewer-preferences-to-xml__v2.cs", - "title": "Extract PDF Viewer Preferences and Export to XML", - "description": "Demonstrates how to read viewer preference flags from a PDF using PdfContentEditor and serialize the set flags into an XML document for legacy system integration.", + "title": "Extract Pdf Viewer Preferences To Xml__V2", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-viewer-preferences-to-json.cs", + "title": "Extract PDF Viewer Preferences and Save Layout/Zoom to JSON", + "description": "Demonstrates how to read a PDF's viewer preference flags and current zoom factor using Aspose.Pdf facades, then store the layout and zoom values in a formatted JSON configuration file.", "tags": [ "pdf", "viewer-preferences", - "xml", - "export", + "json", + "configuration", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", "Aspose.Pdf.Facades.PdfContentEditor.GetViewerPreference", - "Aspose.Pdf.ViewerPreference" + "Aspose.Pdf.Facades.PdfViewer", + "Aspose.Pdf.Facades.PdfViewer.BindPdf", + "Aspose.Pdf.Facades.PdfViewer.ScaleFactor", + "Aspose.Pdf.Facades.ViewerPreference" ], "difficulty": "intermediate" }, { "filename": "fill-acroform-text-field.cs", - "title": "Fill AcroForm Text Field with Aspose.Pdf.Facades", - "description": "Shows how to load a PDF form, fill the \"CustomerName\" text field with a value, and save the updated PDF using Aspose.Pdf.Facades.", + "title": "Fill AcroForm Text Field with Aspose PDF Form", + "description": "Shows how to load a PDF containing an AcroForm, fill the \"CustomerName\" text field with a value, and save the updated document using Aspose.Pdf.Facades.", "tags": [ - "pdf", "acroform", "fill-field", + "pdf", "aspose-pdf", "csharp" ], @@ -17449,17 +21019,20 @@ { "filename": "fill-pdf-acroform-from-xml.cs", "title": "Fill PDF AcroForm Fields from XML using XPath", - "description": "Shows how to load an XML file, locate values with XPath, and populate AcroForm fields in a PDF using Aspose.Pdf.Facades.Form.", + "description": "Demonstrates creating a PDF with AcroForm fields, extracting values from an XML document via XPath, and populating the fields using Aspose.Pdf's Form facade.", "tags": [ "pdf", "acroform", "xml", "xpath", - "fill-fields" + "aspose.pdf" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.FieldNames", "Aspose.Pdf.Facades.Form.FillField", "Aspose.Pdf.Facades.Form.Save" ], @@ -17467,118 +21040,236 @@ }, { "filename": "fill-pdf-form-fields-from-json.cs", - "title": "Fill PDF Form Fields from JSON using Aspose.Pdf Facades", - "description": "Demonstrates how to import field values from a JSON file into a PDF form and save the filled document using Aspose.Pdf's Form facade.", + "title": "Fill PDF Form Fields from JSON", + "description": "Shows how to populate AcroForm fields in a PDF document using a JSON file with Aspose.Pdf.Facades.Form.", "tags": [ "pdf", "form", "json", - "facades", - "csharp" + "fill", + "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.Form", "Aspose.Pdf.Facades.Form.ImportJson", + "Aspose.Pdf.Facades.Form.Save", + "Aspose.Pdf.Facades.Form.Dispose" + ], + "difficulty": "beginner" + }, + { + "filename": "fill-pdf-form-fields-from-json__v2.cs", + "title": "Fill PDF Form Fields from JSON Configuration", + "description": "Demonstrates loading default field values from a JSON file and populating a PDF form using Aspose.Pdf.Facades.Form.", + "tags": [ + "pdf", + "form", + "json", + "fill", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.Form.FillField", "Aspose.Pdf.Facades.Form.Save" ], "difficulty": "beginner" }, { "filename": "folder-pdf-monitor-add-text.cs", - "title": "Folder PDF Monitor Adding Text Annotation", + "title": "Folder Pdf Monitor Add Text", "description": "", "tags": [], "apis_used": [], "difficulty": "" }, { - "filename": "hide-annotations-in-fullscreen-mode.cs", - "title": "Hide Annotations When PDF Opens in FullScreen Mode", - "description": "Demonstrates how to detect the FullScreen viewer preference using PdfContentEditor and set all annotation flags to Hidden for a cleaner display.", + "filename": "generate-pdf-catalog-of-extracted-images.cs", + "title": "Generate PDF Catalog of Extracted Images", + "description": "Extracts all images from a source PDF and builds a new PDF containing thumbnail previews of each extracted image.", "tags": [ - "fullscreen", - "annotations", - "viewer-preference", + "image extraction", + "pdf catalog", + "thumbnails", "Aspose.Pdf", - "PdfContentEditor" + "PdfExtractor" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfExtractor", + "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", + "Aspose.Pdf.Facades.PdfExtractor.GetNextImage", + "Aspose.Pdf.Document", + "Aspose.Pdf.Image", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "intermediate" + }, + { + "filename": "get-pdf-viewer-preferences-zoom.cs", + "title": "Get PDF Viewer Preferences and Zoom Settings", + "description": "Demonstrates how to read a PDF's viewer preference flags (page layout) and the current zoom coefficient using Aspose.Pdf facades.", + "tags": [ + "viewer-preferences", + "page-layout", + "zoom", + "Aspose.Pdf", + "facades" + ], + "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", "Aspose.Pdf.Facades.PdfContentEditor.GetViewerPreference", + "Aspose.Pdf.Facades.ViewerPreference", + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.Facades.PdfPageEditor.Zoom" + ], + "difficulty": "intermediate" + }, + { + "filename": "hide-annotations-in-fullscreen-mode.cs", + "title": "Hide Annotations In Fullscreen Mode", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "hide-annotations-when-fullscreen.cs", + "title": "Hide Annotations When PDF Is FullScreen", + "description": "Demonstrates how to detect a FullScreen viewer preference in a PDF and set all annotations to hidden for a cleaner display using Aspose.Pdf.", + "tags": [ + "annotations", + "fullscreen", + "viewer-preferences", + "Aspose.Pdf", + "document-editing" + ], + "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.TextAnnotation", "Aspose.Pdf.Annotations.Annotation", "Aspose.Pdf.Annotations.AnnotationFlags", - "Aspose.Pdf.ViewerPreference" + "Aspose.Pdf.PageMode" ], "difficulty": "intermediate" }, { "filename": "hide-menubar-viewer-preference.cs", - "title": "Hide Menu Bar Using PDF Viewer Preference", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfContentEditor to set the HideMenubar viewer preference so the PDF opens without a menu bar.", + "title": "Hide Menu Bar Viewer Preference for PDF", + "description": "Demonstrates how to use Aspose.Pdf's PdfContentEditor to set the HideMenubar viewer preference so the PDF opens without a menu bar.", "tags": [ + "pdf", "viewer-preference", "hide-menubar", - "pdf", "aspose-pdf", - "facades" + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", "Aspose.Pdf.Facades.PdfContentEditor.ChangeViewerPreference", "Aspose.Pdf.Facades.PdfContentEditor.Save", - "Aspose.Pdf.Facades.ViewerPreference" + "Aspose.Pdf.Document" ], "difficulty": "beginner" }, { - "filename": "hide-scrollbars-disable-page-transitions.cs", - "title": "Hide Scrollbars and Disable Page Transitions in PDF", - "description": "Shows how to set viewer preferences to hide UI elements such as scrollbars, toolbar and menubar, and how to remove page transition effects using Aspose.Pdf.", + "filename": "hide-pdf-navigation-panels-use-none.cs", + "title": "Hide PDF Navigation Panels by Setting PageMode to UseNone", + "description": "Demonstrates how to set the PageMode viewer preference to UseNone using PdfContentEditor, which hides all navigation panels when the PDF is opened.", "tags": [ "viewer-preference", - "scrollbars", - "page-transition", + "page-mode", + "hide-navigation", + "pdf-edit", + "Aspose.Pdf" + ], + "apis_used": [ + "PdfContentEditor", + "PdfContentEditor.BindPdf", + "PdfContentEditor.ChangeViewerPreference", + "PdfContentEditor.Save", + "PdfContentEditor.Close" + ], + "difficulty": "beginner" + }, + { + "filename": "hide-pdf-toolbar-viewer-preference.cs", + "title": "Hide PDF Toolbar Using Viewer Preference", + "description": "Shows how to hide the PDF viewer toolbar by setting the HideToolbar viewer preference with Aspose.Pdf.Facades.PdfContentEditor.", + "tags": [ + "viewer-preference", + "hide-toolbar", "pdf-editing", - "aspose-pdf" + "Aspose.Pdf", + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", "Aspose.Pdf.Facades.PdfContentEditor.ChangeViewerPreference", "Aspose.Pdf.Facades.PdfContentEditor.Save", - "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges" + "Aspose.Pdf.ViewerPreference" + ], + "difficulty": "beginner" + }, + { + "filename": "hide-scrollbars-disable-page-transitions.cs", + "title": "Hide Scrollbars and Disable Page Transitions in PDF", + "description": "Shows how to set viewer preferences to hide UI elements such as scrollbars and how to remove page transition effects using Aspose.Pdf facades.", + "tags": [ + "viewer-preference", + "hide-scrollbars", + "disable-transitions", + "pdf-facade", + "aspose-pdf" + ], + "apis_used": [ + "PdfContentEditor", + "PdfPageEditor", + "Document", + "PdfContentEditor.ChangeViewerPreference", + "PdfPageEditor.TransitionType", + "PdfPageEditor.TransitionDuration", + "PdfPageEditor.ApplyChanges", + "PdfContentEditor.Save" ], "difficulty": "intermediate" }, { - "filename": "hide-scrollbars-viewer-preference.cs", - "title": "Hide Scrollbars and UI Elements Using Viewer Preference", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfContentEditor to bind a PDF, set the HideWindowUI viewer preference, and save the result, providing a cleaner display on small‑screen devices.", + "filename": "hide-scrollbars-pdf-viewer.cs", + "title": "Hide Scrollbars in PDF Viewer", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfContentEditor to set the HideWindowUI viewer preference, removing scrollbars and other UI elements for a cleaner display on small‑screen devices.", "tags": [ "viewer-preference", "hide-scrollbars", "pdf", - "aspose-pdf", + "Aspose.Pdf", "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfContentEditor", - "PdfContentEditor.BindPdf", - "PdfContentEditor.ChangeViewerPreference", - "PdfContentEditor.Save", + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.ChangeViewerPreference", + "Aspose.Pdf.Facades.PdfContentEditor.Save", "Aspose.Pdf.Facades.ViewerPreference" ], "difficulty": "beginner" }, { - "filename": "hide-toolbar-and-menu-bar.cs", - "title": "Hide Toolbar and Menu Bar Using Viewer Preferences", - "description": "Demonstrates how to set PDF viewer preferences to hide the toolbar and menu bar when the document is opened in a viewer.", + "filename": "hide-scrollbars-viewer-preference.cs", + "title": "Hide Scrollbars Viewer Preference", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "hide-toolbar-and-menubar-viewer-preference.cs", + "title": "Hide Toolbar and Menu Bar in PDF Viewer Preferences", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfContentEditor to set viewer preferences that hide the toolbar and menu bar when a PDF is opened.", "tags": [ "viewer-preference", "toolbar", @@ -17596,108 +21287,139 @@ "difficulty": "beginner" }, { - "filename": "hide-toolbar-and-menubar.cs", - "title": "Hide Toolbar and Menubar in PDF Viewer", - "description": "Shows how to set viewer preferences to hide the toolbar and menu bar of a PDF using Aspose.Pdf's PdfContentEditor facade.", + "filename": "hide-toolbar-and-menubar-viewer-preferences.cs", + "title": "Hide Toolbar and Menubar Viewer Preferences", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfContentEditor to set the HideToolbar and HideMenubar viewer preferences, creating a minimalistic PDF UI.", "tags": [ "viewer-preferences", "hide-toolbar", "hide-menubar", "pdf-editing", - "Aspose.Pdf" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.ViewerPreference", - "PdfContentEditor.BindPdf", - "PdfContentEditor.ChangeViewerPreference", - "PdfContentEditor.Save", - "PdfContentEditor.Close" + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.ChangeViewerPreference", + "Aspose.Pdf.ViewerPreference" ], "difficulty": "beginner" }, + { + "filename": "hide-toolbar-and-menubar.cs", + "title": "Hide Toolbar And Menubar", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "hide-toolbar-using-pdfcontenteditor.cs", - "title": "Hide Toolbar Using PdfContentEditor", - "description": "Demonstrates how to set the HideToolbar viewer preference on a PDF using Aspose.Pdf's PdfContentEditor facade.", + "title": "Hide Toolbar Using Pdfcontenteditor", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "import-annotations-from-json.cs", + "title": "Import Annotations from JSON and Apply to PDF", + "description": "Shows how to read annotation definitions from a JSON file and use Aspose.Pdf.Facades.PdfContentEditor to add text, web‑link, line, and square/circle annotations to a PDF document.", "tags": [ - "viewer-preference", - "toolbar", "pdf", - "Aspose.Pdf", - "PdfContentEditor" + "annotations", + "json", + "aspose.pdf", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.ChangeViewerPreference", - "Aspose.Pdf.Facades.PdfContentEditor.Save", - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfContentEditor.CreateText", + "Aspose.Pdf.Facades.PdfContentEditor.CreateWebLink", + "Aspose.Pdf.Facades.PdfContentEditor.CreateLine", + "Aspose.Pdf.Facades.PdfContentEditor.CreateSquareCircle", + "Aspose.Pdf.Facades.PdfContentEditor.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "insert-blank-page-add-header.cs", "title": "Insert Blank Page and Add Header to PDF", - "description": "Shows how to insert a new blank page at a specific position in a PDF and add a header annotation to all pages using Aspose.Pdf Facades.", + "description": "Demonstrates how to insert a new blank page at a specific position in a PDF and apply a header annotation to all pages using Aspose.Pdf facades.", "tags": [ + "pdf", "insert-page", "header", - "pdf", - "facades", - "Aspose.Pdf" + "aspose", + "facade" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Document.Pages.Insert", - "Aspose.Pdf.Facades.FormattedText", + "Aspose.Pdf.Text.FormattedText", "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", "Aspose.Pdf.Facades.PdfFileStamp.AddHeader", - "Aspose.Pdf.Facades.PdfFileStamp.Save" + "Aspose.Pdf.Facades.PdfFileStamp.Save", + "Aspose.Pdf.Facades.PdfFileStamp.Close" ], "difficulty": "intermediate" }, { - "filename": "insert-image-with-caption-annotation.cs", - "title": "Insert Image with Caption Annotation into PDF", - "description": "Shows how to add an image at specific coordinates in a PDF and place a text annotation as a caption underneath using Aspose.Pdf Facades.", + "filename": "insert-image-annotation-with-caption.cs", + "title": "Insert Image Annotation with Caption in PDF", + "description": "Demonstrates adding an image as a stamp annotation at specific coordinates and placing a text caption underneath using Aspose.Pdf Facade and core APIs.", "tags": [ - "image-stamp", - "caption", + "image", "annotation", - "pdf-editing", - "facades" + "caption", + "stamp", + "pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", + "Aspose.Pdf.Facades.Stamp", "Aspose.Pdf.Facades.Stamp.BindImage", "Aspose.Pdf.Facades.Stamp.SetOrigin", - "Aspose.Pdf.Facades.Stamp.SetImageSize", - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.TextAnnotation" + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.Position", + "Aspose.Pdf.FontRepository.FindFont" ], "difficulty": "intermediate" }, + { + "filename": "insert-image-with-caption-annotation.cs", + "title": "Insert Image With Caption Annotation", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "lock-text-annotation-in-pdf.cs", + "title": "Lock Text Annotation In Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "lock-text-annotation.cs", "title": "Lock a Text Annotation in a PDF", - "description": "Demonstrates how to create a text annotation, set its Locked flag, and save the PDF using both the Document API and the PdfAnnotationEditor facade to prevent end‑user edits.", + "description": "Shows how to create a text annotation, apply the Locked flag to prevent user edits, and save the PDF using the PdfAnnotationEditor facade.", "tags": [ "annotation", "lock", "pdf", "Aspose.Pdf", - "facades" + "facade" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.TextAnnotation", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.TextAnnotation", "Aspose.Pdf.Annotations.AnnotationFlags", "Aspose.Pdf.Facades.PdfAnnotationEditor.BindPdf", "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" @@ -17706,123 +21428,102 @@ }, { "filename": "log-pdf-edit-operations.cs", - "title": "Log PDF Edit Operations with PdfContentEditor", - "description": "Shows how to edit a PDF (replace text and add a web link) using Aspose.Pdf.Facades.PdfContentEditor while logging each operation with timestamps to a text file.", + "title": "Log Pdf Edit Operations", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "map-pdf-viewer-preferences-to-toggles.cs", + "title": "Map PDF Viewer Preferences to Interactive Toggles", + "description": "Loads a PDF, displays its current viewer preference flags, lets the user toggle each flag via console prompts, and saves the updated preferences to a new PDF.", "tags": [ - "pdf-editing", - "logging", - "aspose-pdf", - "text-replacement", - "web-link" + "viewer-preference", + "pdf", + "toggle", + "console", + "Aspose.Pdf" ], "apis_used": [ - "PdfContentEditor", - "PdfContentEditor.BindPdf", - "PdfContentEditor.ReplaceText", - "PdfContentEditor.CreateWebLink", - "PdfContentEditor.Save" + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Facades.PdfContentEditor.GetViewerPreference", + "Aspose.Pdf.Facades.PdfContentEditor.ChangeViewerPreference", + "Aspose.Pdf.Facades.PdfContentEditor.Save", + "Aspose.Pdf.Facades.ViewerPreference" ], "difficulty": "intermediate" }, { "filename": "move-last-page-to-beginning.cs", "title": "Move Last Page to Beginning of PDF", - "description": "Shows how to reorder PDF pages by extracting the last page and inserting it at the start using Aspose.Pdf.Facades.", + "description": "Shows how to reorder a PDF by extracting the last page, inserting it at the start, and deleting the original last page using Aspose.Pdf.Facades.", "tags": [ "pdf", - "page-reorder", + "reorder", + "pages", "aspose", - "facade", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileEditor", - "PdfFileEditor.Extract", - "PdfFileEditor.Insert", - "PdfFileEditor.Delete" + "Aspose.Pdf.Facades.PdfFileEditor.Extract", + "Aspose.Pdf.Facades.PdfFileEditor.Insert", + "Aspose.Pdf.Facades.PdfFileEditor.Delete" ], "difficulty": "intermediate" }, { "filename": "password-protect-pdf-disable-printing.cs", "title": "Password Protect PDF and Disable Printing", - "description": "Demonstrates how to encrypt a PDF with user and owner passwords, set permissions to disable printing, and save the protected document using Aspose.Pdf.", + "description": "Shows how to encrypt a PDF with a user and owner password using 256‑bit AES and remove all permissions, which disables printing.", "tags": [ - "pdf", - "encryption", + "pdf encryption", + "password protection", + "disable printing", "permissions", - "password-protection", - "aspose-pdf" + "aes256" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Permissions", - "Aspose.Pdf.Document.Encrypt", "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.Encrypt", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "pdf-pipeline-attachments-viewer-preferences-annotations.cs", - "title": "Configuration‑Driven PDF Pipeline: Attachments, Viewer Preferences, and Annotations", - "description": "Demonstrates a configurable pipeline that adds file attachments, modifies viewer preferences, and inserts various annotations into a PDF using the Aspose.Pdf.Facades API.", - "tags": [ - "pdf", - "attachments", - "viewer-preferences", - "annotations", - "pipeline" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment", - "Aspose.Pdf.Facades.PdfContentEditor.SetViewerPreferences", - "Aspose.Pdf.Facades.PdfContentEditor.AddAnnotation", - "Aspose.Pdf.Rectangle" - ], - "difficulty": "intermediate" + "title": "Pdf Pipeline Attachments Viewer Preferences Annotations", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "pdfcontenteditor-wrapper-text-replace-attachment.cs", - "title": "PdfContentEditor Wrapper for Text Replacement and Attachments", - "description": "Shows a lightweight wrapper around Aspose.Pdf.Facades.PdfContentEditor that loads a PDF, replaces text globally or per page, adds a file attachment, and saves the result.", - "tags": [ - "pdf", - "aspose", - "text-replacement", - "attachment", - "wrapper" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.ReplaceText", - "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment", - "Aspose.Pdf.Facades.PdfContentEditor.Save", - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment" - ], - "difficulty": "intermediate" + "title": "Pdfcontenteditor Wrapper Text Replace Attachment", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "persist-viewer-preferences-in-pdf.cs", - "title": "Persist Viewer Preferences in PDF", - "description": "Shows how to set viewer preferences on a PDF, save it, reopen it, and verify that the preferences are persisted using Aspose.Pdf.", + "filename": "persist-viewer-preferences-after-editing-pdf.cs", + "title": "Persist Viewer Preferences After Editing PDF", + "description": "Shows how to set viewer preferences on a PDF using PdfContentEditor, save the document, and verify that the preferences persist after reopening the file.", "tags": [ - "viewer-preference", + "viewer-preferences", "pdf-editing", "unit-test", "aspose-pdf", - "csharp" + "facade" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", "Aspose.Pdf.Facades.PdfContentEditor.ChangeViewerPreference", "Aspose.Pdf.Facades.PdfContentEditor.Save", @@ -17830,83 +21531,64 @@ ], "difficulty": "intermediate" }, + { + "filename": "persist-viewer-preferences-in-pdf.cs", + "title": "Persist Viewer Preferences In Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "populate-pdf-form-fields-from-json.cs", - "title": "Populate PDF Form Fields from JSON Configuration", - "description": "Shows how to read default field values from a JSON file and use Aspose.Pdf to fill those values into a PDF form and save the result.", - "tags": [ - "pdf", - "form", - "json", - "default-values", - "aspose" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.FillField", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner" + "title": "Populate Pdf Form Fields From Json", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "print-pdf-custom-page-ranges.cs", - "title": "Print PDF with Custom Page Ranges", - "description": "Shows how to print specific page ranges (1‑5 and 8‑10) of a PDF using Aspose.Pdf's PdfViewer and PrintDocumentWithSettings with custom printer and page settings.", - "tags": [ - "pdf", - "printing", - "page-range", - "aspose.pdf", - "c#" - ], - "apis_used": [ - "PdfViewer", - "PrinterSettings", - "PageSettings", - "PaperSizes", - "Margins", - "PrintDocumentWithSettings" - ], - "difficulty": "intermediate" + "title": "Print Pdf Custom Page Ranges", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "print-pdf-duplex-collated-copies.cs", "title": "Print PDF with Duplex and Collated Copies", - "description": "Demonstrates printing a PDF using Aspose.Pdf with duplex (double‑sided) mode enabled and collated multiple copies.", + "description": "Shows how to print a PDF using Aspose.Pdf.Facades with duplex mode enabled and collated multiple copies.", "tags": [ "printing", "duplex", - "collate", + "collated", "pdf", - "aspose" + "facade" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Printing.PrintDuplex", "Aspose.Pdf.Facades.PdfViewer", "Aspose.Pdf.Facades.PdfViewer.BindPdf", - "Aspose.Pdf.Printing.PrinterSettings", - "Aspose.Pdf.Printing.PrinterSettings.Duplex", - "Aspose.Pdf.Printing.PageSettings", - "Aspose.Pdf.Printing.PaperSizes", - "Aspose.Pdf.Devices.Margins", "Aspose.Pdf.Facades.PdfViewer.PrintDocumentWithSettings" ], "difficulty": "intermediate" }, { "filename": "print-pdf-multiple-copies-landscape.cs", - "title": "Print PDF with Multiple Copies and Landscape Orientation", - "description": "Shows how to bind a PDF with Aspose.Pdf.Facades.PdfViewer and print it to the default printer using two copies and landscape page orientation.", + "title": "Print PDF to Default Printer with Multiple Copies and Landscape Orientation", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, configure printer and page settings, and print the document to the default printer with two copies in landscape mode.", "tags": [ "pdf", "printing", - "copies", "landscape", + "copies", "aspose" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfViewer", - "Aspose.Pdf.Facades.PdfViewer.BindPdf", "Aspose.Pdf.Facades.PdfViewer.PrintDocumentWithSettings", "Aspose.Pdf.Printing.PrinterSettings", "Aspose.Pdf.Printing.PageSettings" @@ -17914,36 +21596,43 @@ "difficulty": "beginner" }, { - "filename": "read-pdf-viewer-preferences-zoom.cs", - "title": "Read PDF Viewer Preferences and Zoom Settings", - "description": "Demonstrates how to retrieve a PDF's viewer preferences such as page layout and the default zoom factor using Aspose.Pdf facades.", + "filename": "print-selected-pdf-pages.cs", + "title": "Print Selected PDF Pages (1‑5, 8‑10) Using PdfViewer", + "description": "Shows how to extract specific pages from a PDF and print them with a custom page range using Aspose.Pdf's PdfFileEditor and PdfViewer.", "tags": [ - "viewer-preferences", - "page-layout", - "zoom", "pdf", - "aspose-pdf" + "printing", + "page-range", + "extraction", + "aspose" ], "apis_used": [ - "PdfContentEditor", - "PdfContentEditor.BindPdf", - "PdfContentEditor.GetViewerPreference", - "PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.Zoom" + "PdfFileEditor.Extract", + "PdfViewer.BindPdf", + "PdfViewer.PrintDocumentWithSettings", + "Aspose.Pdf.Printing.PrinterSettings", + "PdfViewer.PrintPageDialog" ], - "difficulty": "beginner" + "difficulty": "intermediate" + }, + { + "filename": "read-pdf-viewer-preferences-zoom.cs", + "title": "Read Pdf Viewer Preferences Zoom", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "refresh-pdf-attachments.cs", - "title": "Refresh PDF Attachments by Removing and Adding Files", - "description": "Demonstrates how to delete all existing attachments from a PDF and then add a new set of files using the Aspose.Pdf.Facades.PdfContentEditor.", + "title": "Refresh PDF Attachments", + "description": "Shows how to remove all existing attachments from a PDF and add a new set of files using Aspose.Pdf.Facades.PdfContentEditor.", "tags": [ "attachments", "pdf", - "aspose", - "edit", - "facade" + "Aspose.Pdf", + "PdfContentEditor", + "delete-add" ], "apis_used": [ "Aspose.Pdf.Facades.PdfContentEditor", @@ -17958,20 +21647,19 @@ { "filename": "remove-all-attachments-from-pdf.cs", "title": "Remove All Attachments from PDF", - "description": "Demonstrates how to delete every embedded attachment in a PDF document using Aspose.Pdf's PdfContentEditor and save the cleaned file.", + "description": "Shows how to delete every embedded attachment in a PDF file using Aspose.Pdf.Facades.PdfContentEditor.", "tags": [ "pdf", "attachments", "delete", "aspose", - "csharp" + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", "Aspose.Pdf.Facades.PdfContentEditor.DeleteAttachments", - "Aspose.Pdf.Facades.PdfContentEditor.Save", - "Aspose.Pdf.Facades.PdfContentEditor.Dispose" + "Aspose.Pdf.Facades.PdfContentEditor.Save" ], "difficulty": "beginner" }, @@ -17997,79 +21685,69 @@ }, { "filename": "remove-attachments-old-pdf.cs", - "title": "Remove Attachments Ending with _old.pdf from PDF", - "description": "Demonstrates how to delete embedded file attachments whose names match a specific pattern (ending with \"_old.pdf\") using Aspose.Pdf Facade APIs.", - "tags": [ - "attachments", - "delete", - "pdf", - "Aspose.Pdf", - "facade" - ], - "apis_used": [ - "PdfContentEditor", - "PdfContentEditor.BindPdf", - "PdfContentEditor.Save", - "PdfExtractor", - "PdfExtractor.BindPdf", - "PdfExtractor.ExtractAttachment", - "PdfExtractor.GetAttachNames", - "Document.EmbeddedFiles.Delete" - ], - "difficulty": "intermediate" + "title": "Remove Attachments Old Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "remove-pdf-attachment.cs", - "title": "Remove PDF Attachment Using PdfContentEditor", - "description": "Shows how to delete a specific embedded file (attachment) from a PDF document using Aspose.Pdf's PdfContentEditor facade.", + "filename": "remove-embedded-file-from-pdf.cs", + "title": "Remove Embedded File from PDF", + "description": "Shows how to load a PDF with Aspose.Pdf, delete a specific embedded attachment, and save the updated document.", "tags": [ "pdf", "attachment", "remove", "aspose-pdf", - "facade" + "embedded-files" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "PdfContentEditor.BindPdf", - "PdfContentEditor.Save", - "PdfContentEditor.Close", - "PdfContentEditor.Document", - "Document.EmbeddedFiles", - "EmbeddedFiles.Delete" + "Aspose.Pdf.Document", + "Aspose.Pdf.EmbeddedFilesCollection", + "Aspose.Pdf.EmbeddedFilesCollection.Delete", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, + { + "filename": "remove-pdf-attachment.cs", + "title": "Remove Pdf Attachment", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "remove-specific-bookmark-from-pdf.cs", "title": "Remove Specific Bookmark from PDF", - "description": "Shows how to delete a bookmark with a given title from a PDF document using Aspose.Pdf.Facades.PdfBookmarkEditor.", + "description": "Demonstrates how to delete a bookmark with a given title from a PDF document using Aspose.Pdf's PdfBookmarkEditor facade.", "tags": [ "bookmark", - "delete", "pdf", + "delete", "Aspose.Pdf", "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfBookmarkEditor", - "PdfBookmarkEditor.BindPdf", - "PdfBookmarkEditor.DeleteBookmarks", - "PdfBookmarkEditor.Save", - "PdfBookmarkEditor.Close" + "Aspose.Pdf.Facades.PdfBookmarkEditor.BindPdf", + "Aspose.Pdf.Facades.PdfBookmarkEditor.DeleteBookmarks", + "Aspose.Pdf.Facades.PdfBookmarkEditor.Save", + "Aspose.Pdf.Facades.PdfBookmarkEditor.Close" ], "difficulty": "beginner" }, { - "filename": "replace-dates-mmddyyyy-to-yyyymmdd.cs", - "title": "Replace MM/DD/YYYY Dates with YYYY-MM-DD in PDF", - "description": "Demonstrates how to use Aspose.Pdf to locate dates in MM/DD/YYYY format within a PDF and replace them with the ISO format YYYY-MM-DD using a regular expression.", + "filename": "replace-dates-in-pdf-using-regex.cs", + "title": "Replace Dates in PDF Using Regex", + "description": "Shows how to use Aspose.Pdf's PdfContentEditor with a regular expression to locate dates in MM/DD/YYYY format and replace them with YYYY-MM-DD across all pages of a PDF document.", "tags": [ - "pdf", "regex", "date-format", - "text-replacement", - "aspose" + "pdf-edit", + "replace-text", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", @@ -18081,15 +21759,15 @@ "difficulty": "intermediate" }, { - "filename": "replace-draft-with-final-in-pdf.cs", - "title": "Replace \"Draft\" with \"Final\" in a PDF", - "description": "Demonstrates how to use Aspose.Pdf's PdfContentEditor facade to replace all occurrences of a specific word in a PDF document and save the result.", + "filename": "replace-invoicenumber-with-uuid-page-6.cs", + "title": "Replace InvoiceNumber with UUID on PDF Page 6", + "description": "Shows how to generate a UUID and replace the case‑sensitive placeholder text \"InvoiceNumber\" on a specific PDF page using Aspose.Pdf's PdfContentEditor.", "tags": [ + "pdf", "text-replacement", - "pdf-editing", - "aspose-pdf", - "facade", - "csharp" + "uuid", + "aspose", + "facade" ], "apis_used": [ "Aspose.Pdf.Document", @@ -18101,42 +21779,50 @@ "difficulty": "beginner" }, { - "filename": "replace-phrase-with-bold-text.cs", - "title": "Replace Phrase with Bold Text in PDF", - "description": "Shows how to replace a specific phrase in a PDF with a new phrase while applying bold formatting and preserving the original font size using Aspose.Pdf's PdfContentEditor.", + "filename": "replace-phrase-bold-preserve-font-size.cs", + "title": "Replace Phrase with Bold Text While Preserving Font Size", + "description": "Shows how to replace a specific phrase in a PDF with a new phrase, applying a bold style while keeping the original font size using Aspose.Pdf.", "tags": [ "pdf", "text-replacement", "bold", - "Aspose.Pdf", - "facade" + "font-size", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.ReplaceText", + "Aspose.Pdf.Text.TextFragmentAbsorber", "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Text.FontStyles" + "Aspose.Pdf.Facades.PdfContentEditor.ReplaceText" ], - "difficulty": "beginner" + "difficulty": "intermediate" + }, + { + "filename": "replace-phrase-with-bold-text.cs", + "title": "Replace Phrase With Bold Text", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "replace-text-in-pdf-annotations.cs", - "title": "Replace Text in PDF Annotations on Selected Pages", - "description": "Shows how to locate text annotations in a PDF and replace their contents within a specified page range using Aspose.Pdf.", + "title": "Replace Text in PDF Annotations on Specified Pages", + "description": "Demonstrates how to locate annotations within a page range of a PDF and replace a specific substring in their contents using Aspose.Pdf's annotation editor.", "tags": [ - "pdf", "annotations", - "text-replacement", + "text-replace", + "pdf", "page-range", - "aspose" + "Aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfAnnotationEditor", + "Aspose.Pdf.Facades.PdfAnnotationEditor.ExtractAnnotations", + "Aspose.Pdf.Facades.PdfAnnotationEditor.ModifyAnnotations", + "Aspose.Pdf.Annotation" ], "difficulty": "intermediate" }, @@ -18145,8 +21831,8 @@ "title": "Replace Text in PDF Using PdfContentEditor", "description": "Shows how to replace every occurrence of a specific word in a PDF document using Aspose.Pdf's PdfContentEditor facade.", "tags": [ - "text-replacement", - "pdf", + "text-replace", + "pdf-editing", "aspose-pdf", "csharp", "facade" @@ -18161,29 +21847,37 @@ "difficulty": "beginner" }, { - "filename": "replace-text-on-page-preserve-font-style.cs", - "title": "Replace Text on Specific PDF Page While Preserving Font Style", - "description": "Demonstrates how to replace a given string on page two of a PDF using Aspose.Pdf.Facades, while keeping the original font, size, and color of the text.", + "filename": "replace-text-in-pdf__v2.cs", + "title": "Replace Text in PDF with PdfContentEditor", + "description": "Demonstrates loading a PDF, using Aspose.Pdf.Facades.PdfContentEditor to replace all occurrences of a word, and saving the modified document.", "tags": [ - "pdf", "text-replacement", - "font-style", + "pdf-editing", + "aspose-pdf", "facade", - "aspnet" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfContentEditor", - "PdfContentEditor.BindPdf", - "PdfContentEditor.ReplaceText", - "Document.Save" + "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", + "Aspose.Pdf.Facades.PdfContentEditor.ReplaceText", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, + { + "filename": "replace-text-on-page-preserve-font-style.cs", + "title": "Replace Text On Page Preserve Font Style", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "replace-text-on-specific-pdf-page.cs", "title": "Replace Text on Specific PDF Page", - "description": "Demonstrates how to replace a given string only on page 3 of a PDF document using Aspose.Pdf's PdfContentEditor.", + "description": "Demonstrates how to replace a given string only on page 3 of a PDF document using Aspose.Pdf's PdfContentEditor facade.", "tags": [ "pdf", "text-replacement", @@ -18194,64 +21888,78 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.ReplaceText", - "Aspose.Pdf.Document.Save" + "PdfContentEditor.BindPdf", + "PdfContentEditor.ReplaceText", + "Document.Save" ], "difficulty": "beginner" }, { "filename": "replace-text-pdf-content-editor-disposal.cs", - "title": "Replace Text in PDF with PdfContentEditor and Ensure Proper Disposal", - "description": "Demonstrates how to replace text in a PDF using Aspose.Pdf.Facades.PdfContentEditor and guarantees the editor is closed in a finally block to prevent memory leaks.", + "title": "Replace Text Pdf Content Editor Disposal", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "replace-text-pdf-using-pdfcontenteditor.cs", + "title": "Replace Text in PDF Using PdfContentEditor with Automatic Disposal", + "description": "Demonstrates how to load a PDF, replace specific text, and save the result using Aspose.Pdf's PdfContentEditor within a using block to ensure proper disposal.", "tags": [ "pdf", "text-replacement", - "resource-management", "aspose", - "facade" + "using-statement", + "disposable" ], "apis_used": [ "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", "Aspose.Pdf.Facades.PdfContentEditor.ReplaceText", "Aspose.Pdf.Facades.PdfContentEditor.Save", - "Aspose.Pdf.Facades.PdfContentEditor.Close", - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfContentEditor.Dispose" ], "difficulty": "beginner" }, { - "filename": "replace-text-pdf-using-pdfcontenteditor.cs", - "title": "Replace Text in PDF Using PdfContentEditor with Automatic Disposal", - "description": "Demonstrates loading a PDF, replacing all occurrences of a string, and saving the edited file using Aspose.Pdf.Facades.PdfContentEditor inside a using block for proper disposal.", + "filename": "replace-text-preserve-font-style.cs", + "title": "Replace Text on Page Two While Preserving Font Style", + "description": "Shows how to locate a specific string on page 2 of a PDF, capture its original text formatting, and replace it with new text while keeping the same font, size, style, and color using Aspose.Pdf.", "tags": [ - "pdf", "text-replacement", - "aspose", - "using-statement", - "disposable" + "pdf-editing", + "font-style", + "page-specific", + "Aspose.Pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.ReplaceText", - "Aspose.Pdf.Facades.PdfContentEditor.Save" + "Aspose.Pdf.Document", + "Aspose.Pdf.Text.TextFragmentAbsorber", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Facades.PdfContentEditor.ReplaceText" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "replace-text-preserve-font.cs", - "title": "Replace Text While Preserving Font in PDF", - "description": "Demonstrates how to replace a specific string in a PDF using Aspose.Pdf.Facades.PdfContentEditor while keeping the original font style, size, and color, then saves the modified document.", + "title": "Replace Text Preserve Font", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "replace-text-preserve-style.cs", + "title": "Replace Text While Preserving Font Style in PDF", + "description": "Demonstrates how to replace a specific string in a PDF document using Aspose.Pdf while keeping the original font, size, and color on the affected pages.", "tags": [ "text-replacement", - "pdf-editing", - "font-preservation", - "aspose-pdf", - "csharp" + "pdf", + "font-style", + "Aspose.Pdf", + "facade" ], "apis_used": [ "Aspose.Pdf.Document", @@ -18263,200 +21971,260 @@ "difficulty": "beginner" }, { - "filename": "replace-text-using-regex-across-pdf-pages.cs", - "title": "Replace Text Using Regular Expressions Across PDF Pages", - "description": "Demonstrates how to replace text that matches a regular expression on all pages of a PDF while preserving the original formatting using Aspose.Pdf.", + "filename": "replace-text-using-regular-expressions.cs", + "title": "Replace Text Using Regular Expressions in PDF", + "description": "Shows how to replace text that matches a regular expression on all pages of a PDF while preserving the original formatting using Aspose.Pdf.", "tags": [ - "regex", "text-replacement", + "regex", "pdf", - "aspose", - "pdf-editing" + "aspose-pdf", + "facade" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Facades.ReplaceTextStrategy", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", "Aspose.Pdf.Facades.PdfContentEditor.ReplaceText", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "replace-text-with-uuid-on-pdf-page.cs", - "title": "Replace Text with UUID on Specific PDF Page", - "description": "Shows how to load a PDF, generate a UUID, and replace the case‑sensitive string \"InvoiceNumber\" on page 6 using Aspose.Pdf's PdfContentEditor.", + "filename": "reposition-stamp-left-margin.cs", + "title": "Reposition Stamp on PDF Page to Left Margin", + "description": "Shows how to move an existing stamp on page 4 of a PDF so that it aligns with the left margin offset by 10 mm using Aspose.Pdf.Facades.", "tags": [ + "stamp", + "move", + "margin", "pdf", - "text-replacement", - "uuid", - "aspose", - "csharp" + "Aspose.Pdf" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.ReplaceText", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfContentEditor.MoveStamp", + "Aspose.Pdf.Facades.PdfContentEditor.Save" ], "difficulty": "beginner" }, { "filename": "reposition-stamp-on-page-four.cs", - "title": "Reposition Existing Stamp on Page Four", - "description": "Demonstrates how to move an existing stamp on page 4 of a PDF to align with the left margin by 10 mm using Aspose.Pdf's content editor facade.", + "title": "Reposition Stamp On Page Four", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "reposition-stamp-to-baseline-page-5.cs", + "title": "Reposition Stamp to Text Baseline on Page 5", + "description": "Shows how to extract the baseline Y coordinate of the first text fragment on page 5 and move an image stamp so it aligns with that baseline.", "tags": [ "stamp", - "position", - "pdf", - "Aspose.Pdf", - "content-editor" + "baseline", + "pdf-edit", + "text-extraction", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Text.TextFragmentAbsorber", + "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.Facades.Stamp", + "Aspose.Pdf.Facades.PdfContentEditor.MoveStamp" + ], + "difficulty": "intermediate" + }, + { + "filename": "retrieve-pdf-viewer-preferences-to-xml.cs", + "title": "Retrieve PDF Viewer Preferences and Save to XML", + "description": "Loads a PDF, extracts its viewer preference flags with PdfContentEditor, writes the value to an XML file, and saves the unchanged PDF.", + "tags": [ + "viewer-preferences", + "xml-serialization", + "pdf", + "aspose-pdf", + "facades" + ], + "apis_used": [ "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.MoveStamp", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfContentEditor.GetViewerPreference", + "Aspose.Pdf.Facades.PdfContentEditor.Save" ], "difficulty": "beginner" }, { "filename": "retrieve-pdf-viewer-preferences.cs", "title": "Retrieve PDF Viewer Preferences", - "description": "Demonstrates how to read the viewer preference flags from a PDF file using Aspose.Pdf and output them to the console.", + "description": "Demonstrates how to bind a PDF with PdfContentEditor, obtain the viewer preference flags, and list each enabled flag on the console.", "tags": [ - "viewer-preferences", "pdf", - "aspose", - "console", - "csharp" + "viewer-preferences", + "aspose-pdf", + "csharp", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", "Aspose.Pdf.Facades.PdfContentEditor.GetViewerPreference", - "Aspose.Pdf.Facades.PdfContentEditor.Close", + "Aspose.Pdf.Facades.PdfContentEditor.Dispose", "Aspose.Pdf.Facades.ViewerPreference" ], "difficulty": "beginner" }, { "filename": "retrieve-pdf-viewer-preferences__v2.cs", - "title": "Retrieve PDF Viewer Preferences After Incremental Edits", - "description": "Demonstrates how to change PDF viewer preferences using PdfContentEditor and retrieve the current preference value after each modification to verify incremental updates.", + "title": "Retrieve Pdf Viewer Preferences__V2", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "retrieve-verify-incremental-viewer-preferences.cs", + "title": "Retrieve and Verify Incremental Viewer Preferences in PDF", + "description": "Demonstrates how to change PDF viewer preferences step‑by‑step with PdfContentEditor, read the current preference after each change, and confirm the combined settings in the saved document.", "tags": [ "viewer-preference", - "pdf-edit", + "pdf-editing", "incremental", "aspose-pdf", "csharp" ], "apis_used": [ "PdfContentEditor", - "ViewerPreference", + "PdfContentEditor.BindPdf", "PdfContentEditor.ChangeViewerPreference", "PdfContentEditor.GetViewerPreference", - "PdfContentEditor.BindPdf", - "PdfContentEditor.Save" + "PdfContentEditor.Save", + "ViewerPreference" ], "difficulty": "intermediate" }, { - "filename": "rotate-stamp-annotation-90-degrees.cs", - "title": "Rotate Stamp Annotation 90° Clockwise", - "description": "Demonstrates how to apply an image stamp to a PDF and rotate it 90 degrees clockwise using Aspose.Pdf.Facades.", + "filename": "rotate-pdf-pages-in-parallel.cs", + "title": "Rotate PDF Pages in Parallel", + "description": "Demonstrates batch processing of PDF files by rotating all pages 90 degrees using Aspose.Pdf.Facades PdfPageEditor with Parallel.ForEach for improved performance.", "tags": [ - "stamp", - "rotation", - "image", "pdf", - "Aspose.Pdf" + "rotation", + "parallel", + "batch-processing", + "aspose" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.Stamp", - "Aspose.Pdf.Facades.Stamp.BindImage", - "Aspose.Pdf.Facades.Stamp.Rotation", - "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", - "Aspose.Pdf.Facades.PdfFileStamp.Save" + "PdfPageEditor", + "PdfPageEditor.BindPdf", + "PdfPageEditor.Rotation", + "PdfPageEditor.ApplyChanges", + "PdfPageEditor.Save" ], "difficulty": "intermediate" }, { - "filename": "rotate-stamp-diagonal.cs", - "title": "Rotate Stamp Annotation Diagonally", - "description": "Demonstrates loading a PDF, creating a text stamp, setting a 45‑degree rotation, and applying the stamp using the PdfFileStamp facade.", + "filename": "rotate-stamp-annotation-90-degrees.cs", + "title": "Rotate Stamp Annotation 90 Degrees Clockwise", + "description": "Demonstrates how to add an image stamp to a PDF and rotate it 90 degrees clockwise using Aspose.Pdf.Facades.", "tags": [ "stamp", "rotation", "pdf", - "watermark", - "Aspose.Pdf" + "image", + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.Stamp", - "Aspose.Pdf.Facades.FormattedText", - "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", - "Aspose.Pdf.Facades.PdfFileStamp.Save" + "PdfFileStamp", + "Stamp", + "PdfFileStamp.BindPdf", + "Stamp.BindImage", + "Stamp.Rotation", + "Stamp.SetOrigin", + "PdfFileStamp.AddStamp", + "PdfFileStamp.Save" ], "difficulty": "beginner" }, + { + "filename": "rotate-stamp-diagonal.cs", + "title": "Rotate Stamp Diagonal", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "rotate-text-annotation-90-degrees.cs", "title": "Rotate Text Annotation by 90 Degrees in PDF", - "description": "Shows how to create a text annotation (stamp) in a PDF, set its rotation to 90 degrees, and place it on a page using Aspose.Pdf.Facades.", + "description": "Shows how to add a text stamp to a PDF document and rotate it 90 degrees using Aspose.Pdf facades.", "tags": [ "rotation", - "text-annotation", - "stamp", + "text-stamp", "pdf", - "facade" + "annotation", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", - "Aspose.Pdf.Facades.PdfFileStamp.Close", "Aspose.Pdf.Facades.Stamp", - "Aspose.Pdf.Text.FormattedText" + "Aspose.Pdf.Text.FormattedText", + "Aspose.Pdf.Facades.PdfFileStamp.AddStamp" ], "difficulty": "beginner" }, { "filename": "secure-pdf-with-certificate-encryption-and-signature.cs", - "title": "Secure PDF with Certificate Encryption and Signature", - "description": "Demonstrates loading a public certificate to encrypt a PDF and applying a visible certification digital signature using a private certificate.", + "title": "Secure Pdf With Certificate Encryption And Signature", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "select-radio-button-in-pdf-form.cs", + "title": "Select Radio Button In Pdf Form", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "set-annotation-opacity-image-stamp.cs", + "title": "Set Annotation Opacity and Apply Image Stamp to PDF", + "description": "Shows how to add an image stamp to all pages of a PDF and set its opacity to 0.75 using Aspose.Pdf Facades.", "tags": [ - "pdf encryption", - "digital signature", - "certificate", - "Aspose.Pdf", - "security" + "opacity", + "stamp", + "pdf", + "facades", + "image" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfFileSignature", - "Aspose.Pdf.Facades.PKCS1", - "Aspose.Pdf.X509CertificateLoader", - "Aspose.Pdf.Document.Encrypt" + "Aspose.Pdf.Facades.Stamp", + "Aspose.Pdf.Facades.PdfFileStamp", + "Stamp.BindImage", + "Stamp.Opacity", + "PdfFileStamp.BindPdf", + "PdfFileStamp.AddStamp", + "PdfFileStamp.Save" ], "difficulty": "intermediate" }, { - "filename": "select-radio-button-in-pdf-form.cs", - "title": "Select Radio Button Value in PDF Form", - "description": "Shows how to set a specific option of a radio button group in a PDF AcroForm using Aspose.Pdf.Facades.", + "filename": "set-checkbox-field-in-pdf-form.cs", + "title": "Set Checkbox Field in PDF Form", + "description": "Shows how to programmatically check a checkbox field in a PDF form using Aspose.Pdf.Facades.", "tags": [ + "checkbox", "pdf", - "acroform", - "radio-button", - "fill-field", - "aspose-pdf" + "form", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.Form", @@ -18465,10 +22233,30 @@ ], "difficulty": "beginner" }, + { + "filename": "set-continuous-view-mode.cs", + "title": "Set Continuous View Mode for PDF", + "description": "Demonstrates how to configure a PDF to use continuous (one‑column) view mode using Aspose.Pdf.Facades.", + "tags": [ + "viewer-preference", + "continuous-scroll", + "pdf", + "Aspose.Pdf", + "PdfContentEditor" + ], + "apis_used": [ + "PdfContentEditor", + "PdfContentEditor.BindPdf", + "PdfContentEditor.ChangeViewerPreference", + "ViewerPreference.PageLayoutOneColumn", + "PdfContentEditor.Save" + ], + "difficulty": "beginner" + }, { "filename": "set-hide-menubar-viewer-preference.cs", - "title": "Set HideMenubar Viewer Preference in PDF", - "description": "Shows how to read a PDF's current viewer preferences, enable the HideMenubar flag, and save the updated document using Aspose.Pdf.Facades.", + "title": "Set Hide Menubar Viewer Preference in PDF", + "description": "Shows how to read a PDF's current viewer preferences, enable the HideMenubar flag, and save the updated document using Aspose.Pdf.", "tags": [ "viewer-preference", "hide-menubar", @@ -18477,109 +22265,127 @@ "csharp" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.GetViewerPreference", - "Aspose.Pdf.Facades.PdfContentEditor.ChangeViewerPreference", - "Aspose.Pdf.Facades.PdfContentEditor.Save" + "PdfContentEditor", + "PdfContentEditor.BindPdf", + "PdfContentEditor.GetViewerPreference", + "PdfContentEditor.ChangeViewerPreference", + "PdfContentEditor.Save", + "ViewerPreference" ], "difficulty": "beginner" }, { "filename": "set-highlight-annotation-border-color-red.cs", - "title": "Set Highlight Annotation Border Color to Red", - "description": "Shows how to add a highlight annotation to a PDF page and set its border color to bright red using Aspose.Pdf and the PdfAnnotationEditor facade.", + "title": "Set Highlight Annotation Border Color Red", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "set-light-gray-background-for-text-annotations.cs", + "title": "Set Light Gray Background for Text Annotations", + "description": "Shows how to change the background color of all TextAnnotation objects in a PDF to light gray using PdfAnnotationEditor.", "tags": [ - "highlight", - "annotation", - "border-color", + "text-annotation", + "background-color", + "pdf-editing", "Aspose.Pdf", - "facade" + "annotation" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Annotations.HighlightAnnotation", - "Aspose.Pdf.Rectangle", "Aspose.Pdf.Facades.PdfAnnotationEditor", - "Aspose.Pdf.Color" + "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Facades.PdfAnnotationEditor.ModifyAnnotations", + "Aspose.Pdf.Facades.PdfAnnotationEditor.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "set-multiple-viewer-preferences-pdf.cs", "title": "Set Multiple Viewer Preferences for a PDF", - "description": "Demonstrates how to combine several viewer preferences (e.g., CenterWindow and HideToolbar) using bitwise OR and apply them to a PDF with the PdfContentEditor facade before saving.", + "description": "Demonstrates how to combine viewer preferences such as CenterWindow and HideToolbar using bitwise OR and apply them to a PDF with Aspose.Pdf.Facades before saving.", "tags": [ "viewer-preference", "pdf", "aspose-pdf", "pdf-editing", - "facade" + "csharp" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.ChangeViewerPreference", - "Aspose.Pdf.Facades.PdfContentEditor.Save", - "Aspose.Pdf.Facades.PdfContentEditor.Close", - "Aspose.Pdf.Facades.ViewerPreference" + "PdfContentEditor", + "PdfContentEditor.BindPdf", + "PdfContentEditor.ChangeViewerPreference", + "PdfContentEditor.Save", + "PdfContentEditor.Close", + "ViewerPreference" ], "difficulty": "beginner" }, { "filename": "set-pdf-permissions-allow-copy-block-form-editing.cs", - "title": "Set PDF Permissions to Allow Copying but Block Form Editing and Annotations", - "description": "Shows how to create a PDF with a form field and apply security privileges that enable text copying while disabling form filling and annotation modifications using Aspose.Pdf Facades.", + "title": "Set Pdf Permissions Allow Copy Block Form Editing", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "set-pdf-permissions-allow-copy-restrict-form-edit.cs", + "title": "Set PDF Permissions to Allow Copying but Restrict Form Editing", + "description": "Demonstrates how to use Aspose.Pdf.Facades to set PDF security privileges, allowing text copying while disabling form filling and annotation modifications.", "tags": [ - "pdf-permissions", - "form-fields", - "security", - "aspose-pdf", - "facades" + "pdf", + "permissions", + "aspose", + "csharp", + "security" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.DocumentPrivilege", "Aspose.Pdf.Facades.PdfFileSecurity", - "Aspose.Pdf.Facades.PdfFileSecurity.BindPdf", "Aspose.Pdf.Facades.PdfFileSecurity.SetPrivilege", - "Aspose.Pdf.Facades.PdfFileSecurity.Save" + "Aspose.Pdf.Facades.DocumentPrivilege", + "Aspose.Pdf.Facades.DocumentPrivilege.AllowAll", + "Aspose.Pdf.Facades.DocumentPrivilege.AllowCopy", + "Aspose.Pdf.Facades.DocumentPrivilege.AllowFillIn", + "Aspose.Pdf.Facades.DocumentPrivilege.AllowModifyAnnotations" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "set-pdf-viewer-preference-fullscreen.cs", - "title": "Set PDF Viewer Preference to Full‑Screen Mode", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfContentEditor to enable the full‑screen viewer preference for a PDF and save the updated document.", + "filename": "set-pdf-viewer-preference-and-default-zoom.cs", + "title": "Set PDF Viewer Preference and Default Zoom", + "description": "Demonstrates how to change a PDF's viewer preference to a single‑page continuous layout and set the default zoom to 100% using Aspose.Pdf facades.", "tags": [ - "full-screen", "viewer-preference", + "zoom", "pdf", "Aspose.Pdf", - "PdfContentEditor" + "facades" ], "apis_used": [ "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", "Aspose.Pdf.Facades.PdfContentEditor.ChangeViewerPreference", "Aspose.Pdf.Facades.PdfContentEditor.Save", - "Aspose.Pdf.Facades.ViewerPreference" + "Aspose.Pdf.Facades.PdfPageEditor", + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.Facades.PdfPageEditor.Zoom", + "Aspose.Pdf.Facades.PdfPageEditor.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "set-pdf-viewer-preference-show-outlines.cs", - "title": "Set PDF Viewer Preference to Show Outlines Panel", - "description": "Demonstrates how to configure the PDF viewer's PageMode to display the document outline panel by default using Aspose.Pdf.Facades.", + "filename": "set-pdf-viewer-preference-fullscreen.cs", + "title": "Set PDF Viewer Preference to Full‑Screen Mode", + "description": "Demonstrates using Aspose.Pdf.Facades.PdfContentEditor to enable the full‑screen viewer preference for a PDF document and save the modified file.", "tags": [ + "full-screen", "viewer-preference", - "outlines", "pdf", - "facades", - "Aspose.Pdf" + "Aspose.Pdf", + "PdfContentEditor" ], "apis_used": [ "Aspose.Pdf.Facades.PdfContentEditor", @@ -18591,15 +22397,15 @@ "difficulty": "beginner" }, { - "filename": "set-pdf-viewer-preference-single-page.cs", - "title": "Set PDF Viewer Preference to Single‑Page Layout", - "description": "Shows how to use Aspose.Pdf.Facades.PdfContentEditor to change a PDF's viewer preference to single‑page layout and save the modified document.", + "filename": "set-pdf-viewer-preference-show-outline.cs", + "title": "Set PDF Viewer Preference to Show Outline Panel", + "description": "Demonstrates how to configure the PDF viewer preference to display the document outline (bookmarks) panel by default using the Aspose.Pdf Facade API.", "tags": [ "viewer-preference", - "single-page", - "pdf-editing", - "aspose-pdf", - "facade" + "outline", + "pdf", + "facade", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfContentEditor", @@ -18611,117 +22417,137 @@ "difficulty": "beginner" }, { - "filename": "set-pdf-viewer-preference-use-none.cs", - "title": "Set PDF Viewer Preference to Hide Navigation Panels", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfContentEditor to set the viewer preference PageModeUseNone, which hides all navigation panels when the PDF is opened.", + "filename": "set-pdf-viewer-preference-single-page.cs", + "title": "Set PDF Viewer Preference to Single-Page Layout", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfContentEditor to change a PDF's viewer preference to a single‑page layout and save the modified document.", "tags": [ "viewer-preference", - "page-mode", - "hide-navigation", + "single-page", "pdf", - "aspose-pdf" + "Aspose.Pdf", + "PdfContentEditor" ], "apis_used": [ "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", "Aspose.Pdf.Facades.PdfContentEditor.ChangeViewerPreference", "Aspose.Pdf.Facades.PdfContentEditor.Save", - "Aspose.Pdf.Facades.PdfContentEditor.Close", - "Aspose.Pdf.Facades.ViewerPreference" + "Aspose.Pdf.Facades.PdfContentEditor.Close" ], "difficulty": "beginner" }, { - "filename": "set-pdf-viewer-preferences-thumbnails-fit-width.cs", - "title": "Set PDF Viewer Preferences: Thumbnails Pane and Fit Width", - "description": "Demonstrates how to use PdfContentEditor to configure viewer preferences so the PDF opens with the thumbnails pane visible and the window sized to fit the page width.", + "filename": "set-pdf-viewer-preferences-fit-width.cs", + "title": "Set PDF Viewer Preferences and Default Zoom (Thumbnails + Fit Width)", + "description": "Demonstrates how to configure a PDF to open with the thumbnails pane visible, resize the window to fit the page, and set the default zoom to fit the page width using Aspose.Pdf Facades.", "tags": [ "viewer-preferences", "thumbnails", "fit-width", - "pdf-editing", - "Aspose.Pdf" + "pdf", + "aspose-pdf" ], "apis_used": [ "PdfContentEditor", "PdfContentEditor.BindPdf", "PdfContentEditor.ChangeViewerPreference", "PdfContentEditor.Save", - "ViewerPreference" + "PdfPageEditor", + "PdfPageEditor.BindPdf", + "PdfPageEditor.Zoom", + "PdfPageEditor.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" + }, + { + "filename": "set-pdf-viewer-preferences-thumbnails-fit-width.cs", + "title": "Set Pdf Viewer Preferences Thumbnails Fit Width", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "set-pdf-window-title-displaydoctitle.cs", - "title": "Set PDF Window Title via DisplayDocTitle Viewer Preference", - "description": "Demonstrates how to assign a title to a PDF and enable the DisplayDocTitle viewer preference so the title appears in the viewer's window caption.", + "title": "Set Pdf Window Title Displaydoctitle", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "set-radio-button-value-in-pdf-acroform.cs", + "title": "Set Radio Button Value in PDF AcroForm", + "description": "Demonstrates loading a PDF with an AcroForm, selecting the \"Express\" option of the \"ShippingMethod\" radio button group, and saving the updated document using Aspose.Pdf.Facades.", "tags": [ "pdf", - "viewer-preference", - "title", - "Aspose.Pdf", - "facade" + "acroform", + "radio-button", + "fill-form", + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.SetTitle", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.ChangeViewerPreference", - "Aspose.Pdf.Facades.ViewerPreference.DisplayDocTitle", - "Aspose.Pdf.Facades.PdfContentEditor.Save" + "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.Form.FillField", + "Aspose.Pdf.Facades.Form.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "set-viewer-preference-default-zoom.cs", - "title": "Set Viewer Preference and Default Zoom for PDF", - "description": "Demonstrates how to configure a PDF to use a single‑page continuous layout and apply a default 100 % zoom using Aspose.Pdf facades.", + "title": "Set Viewer Preference Default Zoom", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "silently-print-pdf-to-network-printer.cs", + "title": "Silently Print PDF to Network Printer", + "description": "Shows how to load a PDF with Aspose.Pdf.Facades.PdfViewer and send it to a network printer identified by IP address without displaying any print dialogs.", "tags": [ - "viewer-preference", - "zoom", "pdf", - "Aspose.Pdf", - "facades" + "silent-print", + "network-printer", + "aspose-pdf", + "csharp" ], "apis_used": [ - "PdfContentEditor", - "PdfPageEditor", - "PdfContentEditor.BindPdf", - "PdfContentEditor.ChangeViewerPreference", - "PdfPageEditor.BindPdf", - "PdfPageEditor.Zoom", - "PdfPageEditor.Save" + "PdfViewer", + "PdfViewer.BindPdf", + "PdfViewer.AutoResize", + "PdfViewer.AutoRotate", + "PdfViewer.PrintPageDialog", + "PdfViewer.PrintDocumentWithSettings", + "PrinterSettings" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "silently-print-pdf-to-network-printer.cs", - "title": "Silently Print PDF to Network Printer", - "description": "Shows how to load a PDF with Aspose.Pdf and dispatch it to a network printer using a UNC path, suppressing all UI dialogs for silent printing.", + "filename": "simple-pdf-editing-wrapper.cs", + "title": "Simple PDF Editing Wrapper Using Aspose PdfContentEditor", + "description": "Demonstrates a lightweight wrapper around Aspose.Pdf.Facades.PdfContentEditor that simplifies common PDF editing tasks such as text replacement, image removal, and adding attachments.", "tags": [ "pdf", - "printing", - "network-printer", - "silent", - "aspose" + "editing", + "wrapper", + "aspose", + "csharp" ], "apis_used": [ + "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfViewer", - "Aspose.Pdf.Printing.PrinterSettings", - "PdfViewer.PrintDocumentWithSettings", - "PdfViewer.AutoResize", - "PdfViewer.AutoRotate", - "PdfViewer.PrintPageDialog" + "Aspose.Pdf.Facades.PdfContentEditor.ReplaceText", + "Aspose.Pdf.Facades.PdfContentEditor.DeleteImage", + "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment", + "Aspose.Pdf.Facades.PdfContentEditor.Save" ], "difficulty": "intermediate" }, { "filename": "split-pdf-into-single-page-files.cs", "title": "Split PDF into Single-Page Files with Annotations", - "description": "Shows how to split an edited PDF into separate one‑page PDF files while preserving all annotations using Aspose.Pdf.Facades.", + "description": "Shows how to split an edited PDF that contains annotations into separate one‑page PDF documents using Aspose.Pdf.Facades.", "tags": [ "pdf", "split", @@ -18738,63 +22564,57 @@ { "filename": "toggle-fullscreen-viewer-preference.cs", "title": "Toggle FullScreen Viewer Preference in PDF", - "description": "Shows how to enable or disable the FullScreen viewer preference of a PDF using Aspose.Pdf's PdfContentEditor and related APIs.", + "description": "Shows how to read a PDF's current viewer preferences, toggle the FullScreen mode flag, and save the modified document using Aspose.Pdf.Facades.", "tags": [ - "fullscreen", + "full-screen", "viewer-preference", "pdf", - "Aspose.Pdf", - "PdfContentEditor" + "toggle", + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.GetViewerPreference", - "Aspose.Pdf.Facades.PdfContentEditor.ChangeViewerPreference", - "Aspose.Pdf.Facades.PdfContentEditor.Save", - "Aspose.Pdf.Facades.ViewerPreference", - "Aspose.Pdf.Document" + "PdfContentEditor", + "PdfContentEditor.BindPdf", + "PdfContentEditor.GetViewerPreference", + "PdfContentEditor.ChangeViewerPreference", + "PdfContentEditor.Save", + "ViewerPreference" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "toggle-pdf-viewer-preferences.cs", - "title": "Toggle PDF Viewer Preferences with Aspose.Pdf", - "description": "The example reads a PDF's current viewer preferences, presents them as toggleable options, modifies selected flags, and saves the updated document using Aspose.Pdf.", - "tags": [ - "pdf", - "viewer-preferences", - "toggle", - "aspose-pdf", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.GetViewerPreference", - "Aspose.Pdf.Facades.PdfContentEditor.ChangeViewerPreference", - "Aspose.Pdf.Facades.PdfContentEditor.Save", - "Aspose.Pdf.Facades.ViewerPreference" - ], - "difficulty": "intermediate" + "title": "Toggle Pdf Viewer Preferences", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "underline-specific-phrase-on-pdf-page.cs", - "title": "Underline Specific Phrase on PDF Page", - "description": "Shows how to locate a given phrase on the fourth page of a PDF and add an underline annotation using Aspose.Pdf's Facades API.", + "title": "Underline Specific Phrase On Pdf Page", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "underline-specific-phrase-page-4.cs", + "title": "Underline Specific Phrase on PDF Page 4", + "description": "Shows how to locate a target phrase on the fourth page of a PDF using TextFragmentAbsorber and add an underline annotation with PdfContentEditor.", "tags": [ "underline", "annotation", "text-search", - "pdf", - "facade" + "pdf-edit", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Text.TextFragmentAbsorber", - "Aspose.Pdf.Text.TextExtractionOptions", + "Aspose.Pdf.Text.TextSearchOptions", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Facades.PdfContentEditor", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Facades.PdfContentEditor.CreateMarkup" ], "difficulty": "intermediate" @@ -18802,57 +22622,86 @@ { "filename": "update-pdf-xmp-creator-metadata.cs", "title": "Update PDF XMP Creator Metadata", - "description": "Demonstrates how to load existing XMP metadata from a PDF, modify the dc:creator field, and save the PDF with the updated metadata using Aspose.Pdf.Facades.", + "description": "Shows how to read XMP metadata from an existing PDF, change the dc:creator field, and write the updated metadata back to a new PDF using Aspose.Pdf.Facades.", "tags": [ - "XMP", + "xmp", "metadata", + "pdf", "creator", - "Aspose.Pdf", - "PDF" + "aspose" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfXmpMetadata", + "PdfXmpMetadata", + "PdfXmpMetadata.BindPdf", + "PdfXmpMetadata.Save", + "PdfXmpMetadata.this[string]", + "XmpValue" + ], + "difficulty": "intermediate" + }, + { + "filename": "update-pdf-xmp-metadata-custom-project-schema.cs", + "title": "Update PDF XMP Metadata with Custom Project Schema", + "description": "Demonstrates how to load a PDF, register a custom XMP namespace, add project-specific fields, and save the updated metadata using Aspose.Pdf.Facades.", + "tags": [ + "xmp", + "metadata", + "custom-namespace", + "pdf", + "aspose-pdf" + ], + "apis_used": [ + "PdfXmpMetadata", "PdfXmpMetadata.BindPdf", + "PdfXmpMetadata.RegisterNamespaceURI", "PdfXmpMetadata.Add", "PdfXmpMetadata.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "validate-pdf-integrity-after-adding-margins.cs", - "title": "Validate PDF Integrity After Adding Margins", - "description": "The example computes SHA‑256 hashes of a PDF before and after applying margins with PdfFileEditor, then compares the hashes to verify that the document was modified.", + "title": "Validate Pdf Integrity After Adding Margins", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "validate-pdf-integrity-sha256.cs", + "title": "Validate PDF Integrity After Modification Using SHA‑256", + "description": "The example loads a PDF, makes a simple edit, saves it, validates both original and edited files with Aspose.Pdf.Facades, and compares their SHA‑256 checksums to verify integrity.", "tags": [ "pdf", - "checksum", "integrity", + "checksum", "aspose", - "pdffileeditor" + "sha256" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.AddMargins" + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Facades.PdfFileSignature", + "Aspose.Pdf.Facades.PdfFileSignature.BindPdf" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "verify-pdf-attachment-after-save.cs", "title": "Verify PDF Attachment After Save", - "description": "Demonstrates adding a file attachment to a PDF with PdfContentEditor, saving the document, and confirming the attachment exists using PdfExtractor in a unit test.", + "description": "Creates a PDF, adds a file as a document attachment using PdfContentEditor, saves the document, and confirms the attachment exists with PdfExtractor in a unit test.", "tags": [ - "pdf", "attachment", + "pdf", "unit-test", - "aspose", + "aspose-pdf", "facade" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", "Aspose.Pdf.Facades.PdfContentEditor.AddDocumentAttachment", - "Aspose.Pdf.Facades.PdfContentEditor.Save", "Aspose.Pdf.Facades.PdfExtractor", - "Aspose.Pdf.Facades.PdfExtractor.BindPdf", "Aspose.Pdf.Facades.PdfExtractor.ExtractAttachment", "Aspose.Pdf.Facades.PdfExtractor.GetAttachNames" ], @@ -18861,12 +22710,12 @@ { "filename": "verify-text-annotation-position.cs", "title": "Verify Text Annotation Position on PDF Page", - "description": "Shows how to add a text (sticky‑note) annotation to a PDF with PdfContentEditor and assert its rectangle coordinates in a unit test.", + "description": "Creates an in‑memory PDF, adds a text (sticky‑note) annotation using PdfContentEditor, then loads the result to assert that the annotation rectangle matches the expected coordinates.", "tags": [ + "text-annotation", "pdf", - "annotation", "unit-test", - "aspose-pdf", + "Aspose.Pdf", "coordinates" ], "apis_used": [ @@ -18874,8 +22723,7 @@ "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Facades.PdfContentEditor.CreateText", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Annotations.TextAnnotation" ], "difficulty": "intermediate" } @@ -18883,48 +22731,68 @@ }, { "name": "facades-extract-images-and-text", - "file_count": 83, + "file_count": 125, "files": [ + "add-watermark-extract-images-from-pdf.cs", "async-extract-text-and-images-from-pdf.cs", "async-pdf-text-extraction-with-cancellation.cs", + "async-pdf-text-image-extraction.cs", "batch-extract-text-from-pdfs.cs", "batch-extract-text-from-pdfs__v2.cs", "batch-pdf-text-extraction-azure-blob.cs", + "cancel-pdf-image-extraction.cs", "check-pdf-contains-text.cs", "check-pdf-for-text-and-images.cs", + "check-pdf-text-only-by-detecting-images.cs", "check-pdf-text-only-by-extracting-images.cs", "configurable-pdf-extraction.cs", "convert-pdf-to-multi-page-tiff.cs", - "create-a-rest-api-endpoint-that-receives-a-pdf-byte-array-and-returns-extracted-text-as-json.cs", + "create-a-batch-job-that-processes-pdfs-from-an-azure-blob-container-extracting-text-and-uploading-results-back.cs", + "create-contact-sheet-pdf-from-extracted-images.cs", "create-contact-sheet-pdf.cs", "create-pdf-summary-from-first-three-pages.cs", "export-pdf-images-to-jpeg-quality-85.cs", "extract-all-images-from-pdf.cs", + "extract-attachments-compute-sha256.cs", "extract-embedded-attachments-from-pdf.cs", + "extract-images-and-compress-png-zip.cs", "extract-images-and-create-thumbnails.cs", "extract-images-by-keyword.cs", "extract-images-create-pdf-portfolio.cs", "extract-images-create-sprite-sheet.cs", - "extract-images-defined-in-resources.cs", + "extract-images-first-page-to-byte-arrays.cs", "extract-images-from-a-pdf-and-embed-them-into-an-html-report-using-base64-data-uris.cs", "extract-images-from-encrypted-pdf.cs", "extract-images-from-first-pdf-page.cs", + "extract-images-from-pages-png.cs", "extract-images-from-pdf-pages-png.cs", "extract-images-from-pdf-png.cs", "extract-images-from-pdf-to-base64-json.cs", + "extract-images-from-pdf-to-temp-folder.cs", + "extract-images-from-pdf-to-unc.cs", + "extract-images-from-pdf-to-zip.cs", "extract-images-from-pdf-using-pdfextractor.cs", "extract-images-from-pdf-with-guid-filenames.cs", "extract-images-from-pdf.cs", "extract-images-from-specific-pdf-page.cs", + "extract-images-html-gallery.cs", "extract-images-markdown-gallery.cs", "extract-images-ocr-from-pdf.cs", + "extract-images-ocr-openai-copilot.cs", + "extract-images-original-format-pdfextractor.cs", "extract-images-original-format.cs", + "extract-images-pdf-create-video-slideshow.cs", + "extract-images-pdf-csv-index.cs", "extract-images-pdf-csv-manifest.cs", "extract-images-pdf-csv-report.cs", "extract-images-pdf-html-gallery.cs", + "extract-images-pdf-to-base64-json.cs", "extract-images-pdf-upload-s3.cs", "extract-images-to-base64.cs", + "extract-images-to-bmp.cs", + "extract-images-to-html-report.cs", "extract-images-to-pdfa2b.cs", + "extract-images-to-tiff.cs", "extract-images-to-unc-share.cs", "extract-images-to-unc-share__v2.cs", "extract-images-to-zip.cs", @@ -18933,115 +22801,155 @@ "extract-pdf-attachments-by-extension.cs", "extract-pdf-attachments-rename-timestamp.cs", "extract-pdf-attachments-sha256.cs", + "extract-pdf-attachments-with-timestamp.cs", "extract-pdf-images-as-bmp.cs", "extract-pdf-images-create-video-slideshow.cs", "extract-pdf-images-to-azure-blob.cs", "extract-pdf-images-to-gcs.cs", + "extract-pdf-images-to-jpeg-quality-85.cs", "extract-pdf-images-to-s3-with-encryption.cs", + "extract-pdf-images-to-s3.cs", "extract-pdf-text-and-encrypt-aes.cs", "extract-pdf-text-azure-table.cs", + "extract-pdf-text-in-memory.cs", "extract-pdf-text-page-by-page.cs", "extract-pdf-text-per-page-progress.cs", + "extract-pdf-text-per-page.cs", + "extract-pdf-text-to-azure-table.cs", "extract-pdf-text-to-gzip.cs", "extract-pdf-text-to-memory-stream.cs", "extract-pdf-text-to-memorystream.cs", "extract-pdf-text-to-postgres.cs", + "extract-pdf-text-to-postgresql.cs", "extract-pdf-text-to-stringbuilder.cs", "extract-pdf-text-to-stringwriter.cs", "extract-pdf-text-to-utf8-file.cs", + "extract-pdf-text-utf8.cs", "extract-pdf-text-verify-temp-file.cs", + "extract-pdf-text-with-progress.cs", + "extract-pdf-text-with-progress__v2.cs", + "extract-resource-images-pdf-extractor.cs", "extract-text-and-images-from-pdf.cs", + "extract-text-and-images-from-pdfs.cs", "extract-text-from-password-protected-pdf.cs", + "extract-text-from-pdf-byte-array.cs", + "extract-text-from-pdf-byte-array__v2.cs", "extract-text-from-pdf-bytes.cs", "extract-text-from-pdf-cli.cs", "extract-text-from-pdf-pages-with-progress-bar.cs", + "extract-text-from-pdf-queue-trigger.cs", "extract-text-from-pdf-to-utf8-txt.cs", "extract-text-from-pdf.cs", + "extract-text-from-pdf__v2.cs", + "extract-text-from-protected-pdf.cs", "extract-text-ignoring-images.cs", "extract-text-images-from-pdfs.cs", + "extract-text-only-ignore-images.cs", + "extract-text-to-temp-file-and-verify.cs", "handle-corrupted-pdf-binding.cs", "list-embedded-attachment-names.cs", "parallel-image-extraction-from-pdfs.cs", "pdf-diagnostic-tool-counts.cs", "pdf-extractor-text-extraction-test.cs", + "pdf-extractor-unit-test.cs", "pdf-text-extraction-azure-function.cs", "pdf-text-extraction-service.cs", + "report-pdf-page-image-attachment-counts.cs", "retry-pdf-text-extraction.cs", + "test-image-extraction-mode-pdf-extractor.cs", "test-image-extraction-mode.cs" ], "required_namespaces": [ "Aspose.Pdf.Facades", "Aspose.Pdf", "Aspose.Pdf.Text", - "Aspose.Pdf.Drawing", "Aspose.Pdf.AI", - "Aspose.Pdf.Devices" + "Aspose.Pdf.Drawing", + "Aspose.Pdf.Multithreading" ], "key_apis": [ "PdfExtractor", "StringBuilder", - "PdfConverter", "TextFragment", + "ImagePlacementAbsorber", "NpgsqlParameterCollection", - "PdfFileStamp", - "PdfPageEditor", - "TextFragmentAbsorber" + "PdfConverter", + "PdfFileInfo" ], "examples": [ { - "filename": "async-extract-text-and-images-from-pdf.cs", - "title": "Asynchronously Extract Text and Images from PDF", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor with async/await to extract all text, per‑page text files, and images from a PDF without blocking the UI thread.", + "filename": "add-watermark-extract-images-from-pdf.cs", + "title": "Add Watermark to PDF Pages and Extract Images", + "description": "Demonstrates how to overlay a PNG watermark on each page of a PDF using PdfFileMend, then extract all images from the watermarked PDF with PdfExtractor and save them as PNG files.", "tags": [ - "async", + "watermark", + "image-extraction", "pdf", - "extraction", - "images", - "text" + "Aspose.Pdf", + "PdfFileMend" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfFileMend", + "Aspose.Pdf.Facades.PdfFileMend.BindPdf", + "Aspose.Pdf.Facades.PdfFileMend.AddImage", + "Aspose.Pdf.Facades.PdfFileMend.Save", "Aspose.Pdf.Facades.PdfExtractor", - "PdfExtractor.BindPdf", - "PdfExtractor.ExtractText", - "PdfExtractor.GetText", - "PdfExtractor.ExtractImage", - "PdfExtractor.HasNextImage", - "PdfExtractor.GetNextImage", - "PdfExtractor.HasNextPageText", - "PdfExtractor.GetNextPageText" + "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", + "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", + "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" ], "difficulty": "intermediate" }, + { + "filename": "async-extract-text-and-images-from-pdf.cs", + "title": "Async Extract Text And Images From Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "async-pdf-text-extraction-with-cancellation.cs", - "title": "Asynchronous PDF Text Extraction with Cancellation Support", - "description": "Demonstrates extracting text from a PDF using Aspose.Pdf's PdfExtractor while honoring a CancellationToken, allowing the operation to be aborted on user request.", + "title": "Async Pdf Text Extraction With Cancellation", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "async-pdf-text-image-extraction.cs", + "title": "Asynchronous PDF Text and Image Extraction", + "description": "Demonstrates how to extract text and images from a PDF file asynchronously using Aspose.Pdf's PdfExtractor with Task.Run and cancellation support, keeping UI threads responsive.", "tags": [ "pdf", + "asynchronous", "text-extraction", - "cancellation", - "async", - "aspose-pdf" + "image-extraction", + "cancellation" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", "Aspose.Pdf.Facades.PdfExtractor.ExtractText", "Aspose.Pdf.Facades.PdfExtractor.GetText", - "Aspose.Pdf.Facades.PdfExtractor.Document" + "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", + "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", + "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" ], "difficulty": "intermediate" }, { "filename": "batch-extract-text-from-pdfs.cs", - "title": "Batch Extract Text from PDFs to Text Files", - "description": "Shows how to iterate over a directory of PDF files, extract their text using Aspose.Pdf.Facades.PdfExtractor, and write each output to a .txt file with the same name.", + "title": "Batch Extract Text from PDFs", + "description": "Shows how to iterate over a folder of PDF files, extract their text with Aspose.Pdf.Facades.PdfExtractor, and save each output as a .txt file using the same base name.", "tags": [ "pdf", "text-extraction", "batch-processing", "aspose-pdf", - "csharp" + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", @@ -19053,14 +22961,14 @@ }, { "filename": "batch-extract-text-from-pdfs__v2.cs", - "title": "Batch Extract Text from PDFs using PdfExtractor", - "description": "Shows how to use Aspose.Pdf.Facades.PdfExtractor to extract text from every PDF in a folder and write each result to a separate .txt file.", + "title": "Batch Extract Text from PDFs with PdfExtractor", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to extract text from every PDF file in a folder and save each as a .txt file.", "tags": [ "pdf", "text-extraction", "batch", "aspose", - "csharp" + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", @@ -19072,88 +22980,105 @@ }, { "filename": "batch-pdf-text-extraction-azure-blob.cs", - "title": "Batch PDF Text Extraction from Azure Blob Storage", - "description": "Demonstrates how to enumerate PDF files in an Azure Blob container, extract their text using Aspose.Pdf.Facades.PdfExtractor, and upload the resulting .txt files back to the container.", + "title": "Batch Pdf Text Extraction Azure Blob", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "cancel-pdf-image-extraction.cs", + "title": "Cancel PDF Image Extraction with InterruptMonitor", + "description": "Demonstrates how to use Aspose.Pdf's InterruptMonitor and a CancellationToken to abort a PdfExtractor image extraction operation when the user requests cancellation.", "tags": [ "pdf", - "text-extraction", - "azure-blob", - "batch-processing", + "image-extraction", + "cancellation", + "interruptmonitor", "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfExtractor", - "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractText", - "Aspose.Pdf.Facades.PdfExtractor.GetText" + "PdfExtractor", + "InterruptMonitor", + "PdfExtractor.BindPdf", + "PdfExtractor.ExtractImage", + "PdfExtractor.HasNextImage", + "PdfExtractor.GetNextImage", + "InterruptMonitor.Interrupt" ], "difficulty": "intermediate" }, { "filename": "check-pdf-contains-text.cs", - "title": "Check if PDF Contains Text Using PdfExtractor", - "description": "Shows how to bind a PDF to Aspose.Pdf.Facades.PdfExtractor, extract its text into a MemoryStream, and determine if any text was found.", + "title": "Check if PDF Contains Text via MemoryStream", + "description": "Shows how to bind a PDF to Aspose.Pdf.Facades.PdfExtractor, extract its text into a MemoryStream, and determine whether the document contains any text.", "tags": [ "pdf", "text-extraction", - "aspose-pdf", - "facade", - "memorystream" + "aspose", + "memorystream", + "validation" ], "apis_used": [ - "PdfExtractor", - "PdfExtractor.BindPdf", - "PdfExtractor.ExtractText", - "PdfExtractor.GetText", - "PdfExtractor.Close" + "Aspose.Pdf.Facades.PdfExtractor", + "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor.ExtractText", + "Aspose.Pdf.Facades.PdfExtractor.GetText" ], "difficulty": "beginner" }, { "filename": "check-pdf-for-text-and-images.cs", - "title": "Check PDF for Text and Images using PdfExtractor", - "description": "Shows how to use Aspose.Pdf.Facades.PdfExtractor to determine whether a PDF file contains both textual content and images.", + "title": "Check PDF for Both Text and Images", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to determine whether a PDF file contains at least one text fragment and one image.", "tags": [ "pdf", - "text", - "image", - "extractor", - "validation" + "text-extraction", + "image-extraction", + "content-detection", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", "Aspose.Pdf.Facades.PdfExtractor.ExtractText", - "Aspose.Pdf.Facades.PdfExtractor.HasNextPageText", + "Aspose.Pdf.Facades.PdfExtractor.GetText", "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", "Aspose.Pdf.Facades.PdfExtractor.HasNextImage" ], "difficulty": "intermediate" }, { - "filename": "check-pdf-text-only-by-extracting-images.cs", - "title": "Check if PDF is Text‑Only by Extracting Images", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to detect images in a PDF and determine whether the document contains only text.", + "filename": "check-pdf-text-only-by-detecting-images.cs", + "title": "Check if PDF is Text‑Only by Detecting Images", + "description": "Demonstrates using Aspose.Pdf.Facades.PdfExtractor to determine whether a PDF contains any images, indicating if it is text‑only.", "tags": [ "pdf", "image-extraction", "text-only", "aspose", - "csharp" + "pdf-extractor" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", - "PdfExtractor.BindPdf", - "PdfExtractor.ExtractImage", - "PdfExtractor.HasNextImage", - "PdfExtractor.GetNextImage" + "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", + "Aspose.Pdf.Facades.PdfExtractor.HasNextImage" ], "difficulty": "beginner" }, + { + "filename": "check-pdf-text-only-by-extracting-images.cs", + "title": "Check Pdf Text Only By Extracting Images", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "configurable-pdf-extraction.cs", "title": "Configurable PDF Text, Image, and Attachment Extraction", - "description": "Shows how to read a JSON configuration file to enable or disable extraction of text, images, and attachments from a PDF using Aspose.Pdf's PdfExtractor facade.", + "description": "Demonstrates reading a JSON configuration to enable or disable text, image, and attachment extraction from a PDF using Aspose.Pdf's PdfExtractor facade.", "tags": [ "pdf", "extraction", @@ -19162,119 +23087,100 @@ "facade" ], "apis_used": [ - "PdfExtractor", + "Aspose.Pdf.Facades.PdfExtractor", "PdfExtractor.BindPdf", "PdfExtractor.ExtractText", + "PdfExtractor.GetText", "PdfExtractor.ExtractImage", - "PdfExtractor.ExtractAttachment", + "PdfExtractor.HasNextImage", "PdfExtractor.GetNextImage", + "PdfExtractor.ExtractAttachment", "PdfExtractor.GetAttachment" ], "difficulty": "intermediate" }, { "filename": "convert-pdf-to-multi-page-tiff.cs", - "title": "Convert PDF to Multi‑Page TIFF for Archival", - "description": "Demonstrates how to bind a PDF, configure lossless TIFF settings, and save all pages as a single multi‑page TIFF file using Aspose.Pdf.", - "tags": [ - "pdf", - "tiff", - "conversion", - "archival", - "images" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfConverter", - "Aspose.Pdf.Facades.PdfConverter.BindPdf", - "Aspose.Pdf.Facades.PdfConverter.DoConvert", - "Aspose.Pdf.Facades.PdfConverter.SaveAsTIFF", - "Aspose.Pdf.Devices.TiffSettings", - "Aspose.Pdf.Devices.CompressionType" - ], - "difficulty": "intermediate" + "title": "Convert Pdf To Multi Page Tiff", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "create-a-rest-api-endpoint-that-receives-a-pdf-byte-array-and-returns-extracted-text-as-json.cs", - "title": "Create A Rest Api Endpoint That Receives A Pdf Byte Array And Returns Extracted Text As Json", + "filename": "create-a-batch-job-that-processes-pdfs-from-an-azure-blob-container-extracting-text-and-uploading-results-back.cs", + "title": "Create A Batch Job That Processes Pdfs From An Azure Blob Container Extracting Text And Uploading Results Back", "description": "", "tags": [], "apis_used": [], "difficulty": "" }, { - "filename": "create-contact-sheet-pdf.cs", + "filename": "create-contact-sheet-pdf-from-extracted-images.cs", "title": "Create Contact Sheet PDF from Extracted Images", - "description": "Extracts all images from a source PDF and assembles them into a contact sheet PDF with thumbnails arranged in a configurable grid.", + "description": "The example extracts all images from a source PDF using PdfExtractor, then arranges them as thumbnails on a grid to generate a new contact‑sheet PDF.", "tags": [ "image-extraction", "contact-sheet", - "pdf", "thumbnail", - "grid" + "pdf-generation", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", - "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", - "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", - "Aspose.Pdf.Facades.PdfExtractor.GetNextImage", "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Page.AddImage", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, + { + "filename": "create-contact-sheet-pdf.cs", + "title": "Create Contact Sheet Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "create-pdf-summary-from-first-three-pages.cs", - "title": "Create PDF Summary from First Three Pages", - "description": "Demonstrates extracting text from the first three pages of a PDF using PdfExtractor and generating a new PDF that contains the extracted text as a summary document.", + "title": "Create PDF Summary from First Three Pages Text", + "description": "Demonstrates extracting text from the first three pages of a PDF using PdfExtractor and generating a new PDF that contains the extracted text as a summary.", "tags": [ "pdf", "text-extraction", "summary", - "facades", - "aspnet" + "aspose-pdf", + "facades" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", - "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractText", - "Aspose.Pdf.Facades.PdfExtractor.GetText", "Aspose.Pdf.Document", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.FontRepository.FindFont", + "Aspose.Pdf.Color" ], "difficulty": "intermediate" }, { "filename": "export-pdf-images-to-jpeg-quality-85.cs", - "title": "Export PDF Images to JPEG with Quality 85", - "description": "Shows how to extract all images from a PDF and save them as JPEG files with a quality setting of 85 using Aspose.Pdf.Facades.", - "tags": [ - "pdf", - "image-extraction", - "jpeg", - "quality", - "aspose" - ], - "apis_used": [ - "PdfConverter", - "PdfConverter.BindPdf", - "PdfConverter.DoConvert", - "PdfConverter.HasNextImage", - "PdfConverter.GetNextImage" - ], - "difficulty": "beginner" + "title": "Export Pdf Images To Jpeg Quality 85", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "extract-all-images-from-pdf.cs", - "title": "Extract All Images from PDF Using PdfExtractor", - "description": "Demonstrates how to extract images from every page of a PDF using Aspose.Pdf's PdfExtractor, setting StartPage to 1 and EndPage to 0 to process all pages.", + "title": "Extract All Images from PDF using PdfExtractor", + "description": "Demonstrates how to use Aspose.Pdf's PdfExtractor facade to extract every image from a PDF document and save them as PNG files.", "tags": [ "pdf", "image-extraction", "aspose-pdf", - "pdfextractor", + "facade", "csharp" ], "apis_used": [ @@ -19283,21 +23189,43 @@ "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", "Aspose.Pdf.Facades.PdfExtractor.GetNextImage", + "Aspose.Pdf.Facades.PdfExtractor.StartPage", + "Aspose.Pdf.Facades.PdfExtractor.EndPage" + ], + "difficulty": "beginner" + }, + { + "filename": "extract-attachments-compute-sha256.cs", + "title": "Extract PDF Attachments and Compute SHA-256 Hashes", + "description": "Demonstrates creating a PDF with an embedded file, extracting all attachments using Aspose.Pdf.Facades.PdfExtractor, and calculating a SHA‑256 hash for each extracted file to verify integrity.", + "tags": [ + "pdf", + "attachments", + "extraction", + "hash", + "security" + ], + "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Image" + "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.EmbeddedFiles.Add", + "Aspose.Pdf.Facades.PdfExtractor", + "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor.ExtractAttachment", + "Aspose.Pdf.Facades.PdfExtractor.GetAttachment", + "Aspose.Pdf.Facades.PdfExtractor.GetAttachNames" ], "difficulty": "intermediate" }, { "filename": "extract-embedded-attachments-from-pdf.cs", "title": "Extract Embedded Attachments from PDF", - "description": "Demonstrates how to use Aspose.Pdf.Facades to extract all file attachments embedded in a PDF and save each one to a specified output directory.", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to retrieve embedded file attachments from a PDF and save each one to a specified output folder.", "tags": [ "pdf", "attachments", "extraction", - "facade", + "aspose", "csharp" ], "apis_used": [ @@ -19307,12 +23235,35 @@ "Aspose.Pdf.Facades.PdfExtractor.GetAttachNames", "Aspose.Pdf.Facades.PdfExtractor.GetAttachment" ], + "difficulty": "beginner" + }, + { + "filename": "extract-images-and-compress-png-zip.cs", + "title": "Extract Images from PDF and Compress as PNG ZIP", + "description": "Demonstrates extracting embedded images from a PDF using Aspose.Pdf.Facades.PdfExtractor, saving them as PNG files, and then losslessly compressing the images into a ZIP archive.", + "tags": [ + "pdf", + "image-extraction", + "png", + "zip", + "aspose-pdf" + ], + "apis_used": [ + "PdfExtractor", + "PdfExtractor.BindPdf", + "PdfExtractor.ExtractImage", + "PdfExtractor.HasNextImage", + "PdfExtractor.GetNextImage", + "Document", + "Page", + "Aspose.Pdf.Image" + ], "difficulty": "intermediate" }, { "filename": "extract-images-and-create-thumbnails.cs", "title": "Extract Images from PDF and Create Thumbnails", - "description": "Demonstrates extracting all images from a PDF using Aspose.Pdf.Facades.PdfExtractor and generating PNG thumbnails with a maximum dimension of 200 × 200 pixels.", + "description": "Shows how to extract images from a PDF using Aspose.Pdf.Facades.PdfExtractor and generate PNG thumbnails with a maximum dimension of 200 pixels.", "tags": [ "pdf", "image-extraction", @@ -19332,30 +23283,28 @@ { "filename": "extract-images-by-keyword.cs", "title": "Extract Images from PDF Pages Containing a Keyword", - "description": "Shows how to search each PDF page for a specific keyword using TextFragmentAbsorber and then extract only the images from pages where the keyword is found.", + "description": "Shows how to use PdfExtractor to scan each PDF page for a specific keyword and extract only the images from pages where the keyword is present.", "tags": [ "pdf", - "image-extraction", - "keyword-search", - "text-absorption", - "aspnet" + "image extraction", + "keyword search", + "Aspose.Pdf", + "PdfExtractor" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfExtractor", - "Aspose.Pdf.Text.TextFragmentAbsorber", - "PdfExtractor.BindPdf", - "PdfExtractor.ExtractImage", - "PdfExtractor.HasNextImage", - "PdfExtractor.GetNextImage", - "TextFragmentAbsorber.Visit" + "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor.ExtractText", + "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", + "Aspose.Pdf.Facades.PdfExtractor.GetNextImage", + "Aspose.Pdf.Facades.PdfExtractor.HasNextImage" ], "difficulty": "intermediate" }, { "filename": "extract-images-create-pdf-portfolio.cs", - "title": "Create PDF Portfolio from Extracted Images", - "description": "Demonstrates how to extract all images from an existing PDF using the PdfExtractor facade and assemble them into a new PDF where each image occupies a full page, forming a portfolio document.", + "title": "Extract Images from PDF and Build an Image Portfolio", + "description": "Demonstrates how to extract all images from an existing PDF using Aspose.Pdf.Facades.PdfExtractor and then create a new PDF where each extracted image occupies its own page, forming a simple portfolio.", "tags": [ "pdf", "image-extraction", @@ -19365,55 +23314,58 @@ ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", + "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", + "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", + "Aspose.Pdf.Facades.PdfExtractor.GetNextImage", "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Page.AddImage", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page.AddImage" ], "difficulty": "intermediate" }, { "filename": "extract-images-create-sprite-sheet.cs", - "title": "Extract Images from PDF and Create Sprite Sheet", - "description": "Shows how to extract all images from a PDF into memory streams and merge them horizontally into a single PNG sprite sheet using Aspose.Pdf.", + "title": "Extract Images from PDF and Create a Sprite Sheet", + "description": "Demonstrates how to extract all images from a PDF using Aspose.Pdf.Facades.PdfExtractor and combine them into a single horizontal sprite sheet PNG.", "tags": [ "pdf", "image-extraction", "sprite-sheet", - "merge", - "aspose" + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", - "Aspose.Pdf.Facades.PdfExtractor.GetNextImage", - "Aspose.Pdf.Facades.PdfConverter.MergeImages", - "Aspose.Pdf.Facades.ImageMergeMode" + "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", + "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" ], "difficulty": "intermediate" }, { - "filename": "extract-images-defined-in-resources.cs", - "title": "Extract Images Defined in Resources from PDF", - "description": "Demonstrates setting the ImageExtractionMode to DefinedInResources and extracting all resource‑based images from a PDF using the PdfExtractor facade.", + "filename": "extract-images-first-page-to-byte-arrays.cs", + "title": "Extract Images from First PDF Page into Byte Arrays", + "description": "The example creates a minimal PDF containing an in‑memory BMP image, then uses Aspose.Pdf.Facades.PdfExtractor to extract all images from the first page directly into byte arrays for further processing.", "tags": [ "pdf", "image-extraction", - "facade", - "resource", - "Aspose.Pdf" + "byte-array", + "aspose-pdf", + "facades" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Image", "Aspose.Pdf.Facades.PdfExtractor", - "PdfExtractor.BindPdf", - "PdfExtractor.ExtractImageMode", - "PdfExtractor.ExtractImage", - "PdfExtractor.HasNextImage", - "PdfExtractor.GetNextImage" + "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", + "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", + "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "extract-images-from-a-pdf-and-embed-them-into-an-html-report-using-base64-data-uris.cs", @@ -19425,8 +23377,8 @@ }, { "filename": "extract-images-from-encrypted-pdf.cs", - "title": "Extract Images from Encrypted PDF", - "description": "Shows how to open a password‑protected PDF with Aspose.Pdf.Facades.PdfExtractor, extract all embedded images, and save them as PNG files.", + "title": "Extract Images from Encrypted PDF with Password", + "description": "Shows how to open an encrypted PDF by supplying the user password and extract all images using Aspose.Pdf's PdfExtractor.", "tags": [ "pdf", "image-extraction", @@ -19436,64 +23388,98 @@ ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", - "PdfExtractor.Password", - "PdfExtractor.BindPdf", - "PdfExtractor.ExtractImage", - "PdfExtractor.HasNextImage", - "PdfExtractor.GetNextImage" - ], - "difficulty": "intermediate" - }, - { - "filename": "extract-images-from-first-pdf-page.cs", - "title": "Extract Images from First PDF Page to Byte Arrays", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to pull all images from the first page of a PDF and store each image directly in a byte array for further processing.", - "tags": [ - "pdf", - "image-extraction", - "byte-array", - "aspose", - "facade" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfExtractor", + "Aspose.Pdf.Facades.PdfExtractor.Password", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "extract-images-from-pdf-pages-png.cs", + "filename": "extract-images-from-first-pdf-page.cs", + "title": "Extract Images From First Pdf Page", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-images-from-pages-png.cs", "title": "Extract Images from Specific PDF Pages as PNG", - "description": "Demonstrates how to use Aspose.Pdf's PdfExtractor to extract only images from pages 5‑10 of a PDF and save each image as a PNG file.", + "description": "Demonstrates using Aspose.Pdf.Facades.PdfExtractor to extract images from pages 5 through 10 of a PDF and save each image as a PNG file.", "tags": [ "pdf", "image-extraction", - "png", "pages", - "aspnet" + "png", + "aspose" ], "apis_used": [ "PdfExtractor", "PdfExtractor.BindPdf", + "PdfExtractor.StartPage", + "PdfExtractor.EndPage", "PdfExtractor.ExtractImage", "PdfExtractor.HasNextImage", "PdfExtractor.GetNextImage", - "ExtractImageMode" + "PdfExtractor.Close" ], "difficulty": "beginner" }, + { + "filename": "extract-images-from-pdf-pages-png.cs", + "title": "Extract Images From Pdf Pages Png", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "extract-images-from-pdf-png.cs", - "title": "Extract Images from PDF and Save as PNG", - "description": "Demonstrates using Aspose.Pdf.Facades.PdfExtractor to extract all images from a PDF and save each as a losslessly compressed PNG file.", + "title": "Extract Images From Pdf Png", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-images-from-pdf-to-base64-json.cs", + "title": "Extract Images From Pdf To Base64 Json", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-images-from-pdf-to-temp-folder.cs", + "title": "Extract Images from PDF to Temporary Folder", + "description": "Demonstrates extracting all images from a PDF using Aspose.Pdf's PdfExtractor with the default extraction mode and saving them as JPEG files in a uniquely created temporary directory.", "tags": [ "pdf", "image-extraction", - "png", - "lossless", + "temporary-folder", + "aspose-pdf", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfExtractor", + "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", + "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", + "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" + ], + "difficulty": "intermediate" + }, + { + "filename": "extract-images-from-pdf-to-unc.cs", + "title": "Extract Images from PDF to UNC Network Share", + "description": "Demonstrates using Aspose.Pdf.Facades.PdfExtractor to pull all images from a PDF and save them as PNG files to a network‑mapped UNC folder.", + "tags": [ + "pdf", + "image-extraction", + "unc", + "aspose-pdf", "facade" ], "apis_used": [ @@ -19506,15 +23492,15 @@ "difficulty": "beginner" }, { - "filename": "extract-images-from-pdf-to-base64-json.cs", - "title": "Extract Images from PDF to Base64 JSON", - "description": "The example uses Aspose.Pdf.Facades.PdfExtractor to pull all images from a PDF, converts each image to a Base64 string, and writes a formatted JSON file containing the image data and metadata.", + "filename": "extract-images-from-pdf-to-zip.cs", + "title": "Extract Images from PDF and Create ZIP Archive", + "description": "Demonstrates how to use Aspose.Pdf to extract all images from a PDF document and package them into a ZIP file using .NET's ZipArchive.", "tags": [ "pdf", "image-extraction", - "base64", - "json", - "aspose-pdf" + "zip", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", @@ -19523,18 +23509,18 @@ "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "extract-images-from-pdf-using-pdfextractor.cs", "title": "Extract Images from PDF Using PdfExtractor with Automatic Disposal", - "description": "Shows how to extract all images from a PDF file using Aspose.Pdf.Facades.PdfExtractor inside a using block to ensure the extractor is disposed automatically.", + "description": "Demonstrates binding a PDF to Aspose.Pdf.Facades.PdfExtractor, extracting all images, and saving them to a folder while using a using block to automatically dispose the extractor.", "tags": [ "pdf", "image-extraction", "aspose", - "using", - "disposable" + "pdfextractor", + "using-block" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", @@ -19548,12 +23534,12 @@ { "filename": "extract-images-from-pdf-with-guid-filenames.cs", "title": "Extract Images from PDF with GUID Filenames", - "description": "Demonstrates how to use Aspose.Pdf's PdfExtractor to extract all images from a PDF and save each image with a unique GUID filename to avoid naming collisions. Includes creation of a sample PDF containing an embedded PNG for a self‑contained example.", + "description": "Shows how to use Aspose.Pdf.Facades.PdfExtractor to extract all images from a PDF and save each as a PNG file with a unique GUID‑based filename to prevent naming collisions.", "tags": [ "pdf", "image-extraction", "guid", - "aspose-pdf", + "aspose", "csharp" ], "apis_used": [ @@ -19561,43 +23547,28 @@ "Aspose.Pdf.Facades.PdfExtractor.BindPdf", "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", - "Aspose.Pdf.Facades.PdfExtractor.GetNextImage", - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Image" + "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "extract-images-from-pdf.cs", - "title": "Extract Images from PDF to Temporary Folder", - "description": "Demonstrates how to use Aspose.Pdf's PdfExtractor to extract all images from a PDF using the default extraction mode and save them as PNG files in a temporary directory.", - "tags": [ - "pdf", - "image-extraction", - "aspose-pdf", - "csharp", - "temporary-folder" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfExtractor", - "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", - "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", - "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" - ], - "difficulty": "beginner" + "title": "Extract Images From Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "extract-images-from-specific-pdf-page.cs", "title": "Extract Images from a Specific PDF Page", - "description": "Shows how to extract all images from a single PDF page using Aspose.Pdf.Facades.PdfExtractor by setting StartPage and EndPage to the same value.", + "description": "Shows how to extract all images from a single PDF page by setting the StartPage and EndPage properties of PdfExtractor.", "tags": [ "pdf", "image-extraction", "single-page", - "aspose", - "csharp" + "Aspose.Pdf", + "C#" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", @@ -19611,124 +23582,115 @@ "difficulty": "beginner" }, { - "filename": "extract-images-markdown-gallery.cs", - "title": "Extract Images from PDF and Create Markdown Gallery", - "description": "Demonstrates using Aspose.Pdf.Facades.PdfExtractor to extract all images from a PDF, save them as JPEG files, and generate a markdown file that displays the images as a gallery.", + "filename": "extract-images-html-gallery.cs", + "title": "Extract Images from PDF and Create HTML Gallery", + "description": "Demonstrates extracting all images from a PDF using Aspose.Pdf.Facades.PdfExtractor and generating a simple HTML page that displays the extracted PNG files.", "tags": [ "pdf", "image-extraction", - "markdown", - "gallery", - "aspose-pdf" + "html-gallery", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", - "Aspose.Pdf.Facades.PdfExtractor.GetNextImage", - "Aspose.Pdf.Facades.PdfExtractor.Resolution" + "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" ], "difficulty": "intermediate" }, { - "filename": "extract-images-ocr-from-pdf.cs", - "title": "Extract Images from PDF and Perform OCR with OpenAI", - "description": "Demonstrates extracting each image from a PDF using PdfExtractor and applying OpenAI OCR via Aspose.Pdf.AI to retrieve hidden textual information.", + "filename": "extract-images-markdown-gallery.cs", + "title": "Extract Images from PDF and Generate a Markdown Gallery", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to pull images from a PDF and create a markdown file that displays those images as a gallery.", "tags": [ "pdf", "image-extraction", - "ocr", - "openai", + "markdown", + "gallery", "aspose-pdf" ], "apis_used": [ + "Aspose.Pdf.Facades.PdfExtractor", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", - "Aspose.Pdf.Facades.PdfExtractor.GetNextImage", - "Aspose.Pdf.Facades.PdfExtractor.Close", - "Aspose.Pdf.AI.OpenAIClient.CreateWithApiKey", - "Aspose.Pdf.AI.OpenAIOcrCopilotOptions.WithDocument", - "Aspose.Pdf.AI.AICopilotFactory.CreateOcrCopilot", - "Aspose.Pdf.AI.IOcrCopilot.GetTextRecognitionResultAsync" + "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", + "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "extract-images-original-format.cs", - "title": "Extract Images from PDF in Original Format", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to pull images from a PDF while preserving their original format by setting the ExtractImageMode to DefinedInResources.", + "filename": "extract-images-ocr-from-pdf.cs", + "title": "Extract Images Ocr From Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-images-ocr-openai-copilot.cs", + "title": "Extract Images from PDF and Perform OCR with OpenAI Copilot", + "description": "The example extracts all images from a PDF using Aspose.Pdf.Facades.PdfExtractor, saves each image, and then runs OCR on the saved images with Aspose.Pdf.AI OpenAIOcrCopilot (OpenAI) to retrieve hidden textual content.", "tags": [ "pdf", "image-extraction", - "original-format", + "ocr", "aspose-pdf", - "facade" + "openai" ], "apis_used": [ - "PdfExtractor", + "Aspose.Pdf.Facades.PdfExtractor", "PdfExtractor.BindPdf", - "PdfExtractor.ExtractImageMode", "PdfExtractor.ExtractImage", "PdfExtractor.HasNextImage", "PdfExtractor.GetNextImage", - "ExtractImageMode" - ], - "difficulty": "beginner" - }, - { - "filename": "extract-images-pdf-csv-manifest.cs", - "title": "Extract Images from PDF and Create CSV Manifest", - "description": "Demonstrates how to use Aspose.Pdf.Facades to convert each PDF page to an image, save the images, and generate a CSV file that lists each image's file name, page number, and dimensions.", - "tags": [ - "pdf", - "image-extraction", - "csv", - "facade", - "aspnet" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfConverter", - "Aspose.Pdf.Facades.PdfConverter.BindPdf", - "Aspose.Pdf.Facades.PdfConverter.DoConvert", - "Aspose.Pdf.Facades.PdfConverter.HasNextImage", - "Aspose.Pdf.Facades.PdfConverter.GetNextImage" + "Aspose.Pdf.AI.OpenAIOcrCopilotOptions", + "Aspose.Pdf.AI.AICopilotFactory.CreateOcrCopilot", + "Aspose.Pdf.AI.IOcrCopilot.GetTextRecognitionResultAsync" ], "difficulty": "intermediate" }, { - "filename": "extract-images-pdf-csv-report.cs", - "title": "Extract Images from PDF and Generate CSV Report", - "description": "Demonstrates extracting all images from each PDF page using Aspose.Pdf.Facades.PdfExtractor, saving them as PNG files, and creating a CSV file that lists the image filename, page number, width, and height.", + "filename": "extract-images-original-format-pdfextractor.cs", + "title": "Extract Images in Original Format Using PdfExtractor", + "description": "Demonstrates how to extract images from a PDF while preserving their original format by setting ExtractImageMode to DefinedInResources and using GetNextImage without specifying an image format.", "tags": [ "image-extraction", + "original-format", "pdf", - "csv", "aspose-pdf", - "csharp" + "pdfextractor" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", - "PdfExtractor.BindPdf", - "PdfExtractor.StartPage", - "PdfExtractor.EndPage", - "PdfExtractor.ExtractImage", - "PdfExtractor.HasNextImage", - "PdfExtractor.GetNextImage", - "Aspose.Pdf.Document.Pages.Count" + "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor.ExtractImageMode", + "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", + "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", + "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "extract-images-pdf-html-gallery.cs", - "title": "Extract Images from PDF and Create HTML Gallery", - "description": "Shows how to extract all images from a PDF using Aspose.Pdf.Facades.PdfExtractor and generate a simple HTML page that displays the extracted images.", + "filename": "extract-images-original-format.cs", + "title": "Extract Images Original Format", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-images-pdf-create-video-slideshow.cs", + "title": "Extract Images from PDF and Create a Video Slideshow", + "description": "Demonstrates how to extract all images from a PDF using Aspose.Pdf.Facades and then generate a video slideshow from the extracted pictures with FFmpeg.", "tags": [ "pdf", "image-extraction", - "html-gallery", - "aspose-pdf", - "csharp" + "ffmpeg", + "slideshow", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", @@ -19740,38 +23702,72 @@ "difficulty": "intermediate" }, { - "filename": "extract-images-pdf-upload-s3.cs", - "title": "Extract Images from PDF and Upload to Amazon S3", - "description": "The example creates a sample PDF containing an image, extracts each image using Aspose.Pdf's PdfExtractor, and uploads the extracted PNG files to an Amazon S3 bucket via the AWS SDK.", + "filename": "extract-images-pdf-csv-index.cs", + "title": "Extract Images from PDF and Create CSV Index", + "description": "The example opens a PDF, extracts all embedded images, saves each as a PNG file, and generates a CSV file that lists the image filename, page number, and dimensions.", "tags": [ "pdf", "image-extraction", - "aws-s3", + "csv", "aspose-pdf", "csharp" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.ImagePlacementAbsorber", + "Aspose.Pdf.ImagePlacement", + "Aspose.Pdf.ImagePlacement.Image.Save", + "Aspose.Pdf.Document.Pages.Accept" + ], + "difficulty": "intermediate" + }, + { + "filename": "extract-images-pdf-csv-manifest.cs", + "title": "Extract Images from PDF and Generate CSV Manifest", + "description": "Demonstrates how to extract all images from each page of a PDF using Aspose.Pdf.Facades, save them as PNG files, and create a CSV file that lists each image's file name, page number, and dimensions.", + "tags": [ + "pdf", + "image-extraction", + "csv", + "aspose", + "facades" + ], + "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfExtractor", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", - "Aspose.Pdf.Facades.PdfExtractor.GetNextImage", - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Image" + "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" ], "difficulty": "intermediate" }, { - "filename": "extract-images-to-base64.cs", - "title": "Extract Images from PDF and Convert to Base64", - "description": "Shows how to use Aspose.Pdf.Facades.PdfExtractor to pull all images from a PDF, turn each image stream into a Base64 string, and serialize the collection as JSON.", + "filename": "extract-images-pdf-csv-report.cs", + "title": "Extract Images Pdf Csv Report", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-images-pdf-html-gallery.cs", + "title": "Extract Images Pdf Html Gallery", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-images-pdf-to-base64-json.cs", + "title": "Extract Images from PDF to Base64 JSON", + "description": "Demonstrates extracting all images from a PDF using Aspose.Pdf.Facades.PdfExtractor, converting them to PNG, encoding them as Base64, and writing a JSON array with image metadata.", "tags": [ "pdf", "image-extraction", "base64", "json", - "aspose" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", @@ -19783,36 +23779,44 @@ "difficulty": "intermediate" }, { - "filename": "extract-images-to-pdfa2b.cs", - "title": "Extract Images and Generate PDF/A‑2b Document", - "description": "Demonstrates how to extract all images from an existing PDF using PdfExtractor, embed each image as an XObject on new pages, and convert the result to a PDF/A‑2b compliant document.", + "filename": "extract-images-pdf-upload-s3.cs", + "title": "Extract Images Pdf Upload S3", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-images-to-base64.cs", + "title": "Extract Images from PDF and Convert to Base64", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to pull each image from a PDF, convert the image stream to a Base64 string, and serialize the collection to JSON.", "tags": [ "pdf", "image-extraction", - "pdfa", - "xobject", - "aspose" + "base64", + "json", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.PdfFormat", - "Aspose.Pdf.ConvertErrorAction" + "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", + "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", + "Aspose.Pdf.Facades.PdfExtractor.GetNextImage", + "Aspose.Pdf.Facades.PdfExtractor.Close" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "extract-images-to-unc-share.cs", - "title": "Extract Images from PDF to UNC Share with Fallback", - "description": "Demonstrates extracting all images from a PDF using Aspose.Pdf.Facades and saving them to a network UNC path, with validation and a local fallback if the share is inaccessible.", + "filename": "extract-images-to-bmp.cs", + "title": "Extract Images from PDF and Save as BMP", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to extract all images from a PDF and save them as BMP files while preserving the original resolution and color depth.", "tags": [ "pdf", "image-extraction", - "unc", - "fallback", - "aspose" + "bmp", + "aspose-pdf", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", @@ -19821,17 +23825,17 @@ "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "extract-images-to-unc-share__v2.cs", - "title": "Extract Images from PDF to UNC Network Share", - "description": "Demonstrates extracting all images from a PDF using Aspose.Pdf.Facades.PdfExtractor and saving them as PNG files to a network‑mapped UNC folder.", + "filename": "extract-images-to-html-report.cs", + "title": "Extract Images from PDF and Embed in HTML Report", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to extract images from a PDF, convert them to Base64 data URIs, and generate an HTML report containing the images.", "tags": [ "pdf", "image-extraction", - "unc", - "network-share", + "html", + "base64", "aspose-pdf" ], "apis_used": [ @@ -19844,35 +23848,38 @@ "difficulty": "intermediate" }, { - "filename": "extract-images-to-zip.cs", - "title": "Extract Images from PDF and Save to ZIP", - "description": "Shows how to use Aspose.Pdf.Facades.PdfExtractor to extract all images from a PDF and package them into a ZIP archive.", + "filename": "extract-images-to-pdfa2b.cs", + "title": "Extract Images and Generate PDF/A‑2b Document", + "description": "The example extracts all images from an existing PDF, embeds them as XObjects in a new PDF, and converts the result to PDF/A‑2b compliance using Aspose.Pdf.", "tags": [ "pdf", "image-extraction", - "zip", + "pdfa", "aspose-pdf", - "facade" + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", - "PdfExtractor.BindPdf", - "PdfExtractor.ExtractImage", - "PdfExtractor.HasNextImage", - "PdfExtractor.GetNextImage" + "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", + "Aspose.Pdf.Facades.PdfFileMend", + "Aspose.Pdf.Facades.PdfFileMend.AddImage", + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Convert", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "extract-images-validate-signature.cs", - "title": "Extract Images from PDF and Verify File Signatures", - "description": "Demonstrates how to extract images from a PDF using Aspose.Pdf.Facades.PdfExtractor, save them to disk, and validate each image's integrity by checking its file signature (magic number).", + "filename": "extract-images-to-tiff.cs", + "title": "Extract Images from PDF and Save as TIFF", + "description": "Demonstrates extracting all images from a PDF using Aspose.Pdf.Facades.PdfExtractor and saving each image as a lossless TIFF file for archival storage.", "tags": [ "pdf", "image-extraction", - "validation", - "aspose-pdf", - "file-signature" + "tiff", + "archival", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", @@ -19881,63 +23888,84 @@ "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "extract-images-with-watermark.cs", - "title": "Extract Images from PDF After Adding Watermark", - "description": "Demonstrates how to overlay a watermark image on each PDF page using PdfFileStamp, then extract all images from the watermarked PDF with PdfExtractor.", + "filename": "extract-images-to-unc-share.cs", + "title": "Extract Images from PDF to UNC Network Share", + "description": "Demonstrates how to extract all images from a PDF using Aspose.Pdf.Facades and save them to a UNC network share, creating the destination folder if needed.", "tags": [ "pdf", - "watermark", "image-extraction", - "facades", - "aspnet" - ], - "apis_used": [ - "PdfFileStamp", - "PdfFileStamp.AddHeader", - "PdfFileStamp.Save", - "PdfExtractor", + "unc", + "network-share", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfExtractor", + "PdfExtractor.BindPdf", "PdfExtractor.ExtractImage", + "PdfExtractor.HasNextImage", "PdfExtractor.GetNextImage" ], "difficulty": "intermediate" }, { - "filename": "extract-pdf-attachments-by-extension.cs", - "title": "Extract PDF Attachments and Organize by File Extension", - "description": "Demonstrates how to extract all embedded attachments from a PDF using Aspose.Pdf.Facades and save them into subfolders grouped by their original file extensions.", + "filename": "extract-images-to-unc-share__v2.cs", + "title": "Extract Images To Unc Share__V2", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-images-to-zip.cs", + "title": "Extract Images To Zip", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-images-validate-signature.cs", + "title": "Extract Images from PDF and Validate Their Signatures", + "description": "Demonstrates how to extract images from a PDF using Aspose.Pdf.Facades.PdfExtractor, then verify each image's file signature (magic number) and rename it with the correct extension.", "tags": [ "pdf", - "attachments", - "extraction", - "aspose", - "organization" + "image-extraction", + "file-validation", + "aspose-pdf", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractAttachment", - "Aspose.Pdf.Facades.PdfExtractor.GetAttachNames", - "Aspose.Pdf.Facades.PdfExtractor.GetAttachment" + "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", + "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", + "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" ], "difficulty": "intermediate" }, { - "filename": "extract-pdf-attachments-rename-timestamp.cs", - "title": "Extract PDF Attachments and Rename with Timestamp", - "description": "Demonstrates how to extract embedded files from a PDF using Aspose.Pdf, prepend a timestamp to each original filename, and save the renamed files to disk.", + "filename": "extract-images-with-watermark.cs", + "title": "Extract Images With Watermark", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-pdf-attachments-by-extension.cs", + "title": "Extract PDF Attachments and Organize by File Extension", + "description": "Shows how to use Aspose.Pdf.Facades.PdfExtractor to pull embedded attachments from a PDF and save them into subfolders grouped by their original file extensions.", "tags": [ "pdf", "attachments", "extraction", - "timestamp", - "rename" + "organization", + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.FileSpecification", "Aspose.Pdf.Facades.PdfExtractor", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", "Aspose.Pdf.Facades.PdfExtractor.ExtractAttachment", @@ -19946,18 +23974,36 @@ ], "difficulty": "intermediate" }, + { + "filename": "extract-pdf-attachments-rename-timestamp.cs", + "title": "Extract Pdf Attachments Rename Timestamp", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "extract-pdf-attachments-sha256.cs", - "title": "Extract PDF Attachments and Compute SHA-256 Hashes", - "description": "Demonstrates how to extract embedded attachments from a PDF using Aspose.Pdf.Facades.PdfExtractor and verify their integrity by calculating SHA-256 hashes.", + "title": "Extract Pdf Attachments Sha256", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-pdf-attachments-with-timestamp.cs", + "title": "Extract PDF Attachments and Save with Timestamped Filenames", + "description": "The example extracts all embedded file attachments from a PDF using Aspose.Pdf.Facades.PdfExtractor, prefixes each filename with a timestamp, and saves them to a specified folder.", "tags": [ "pdf", "attachments", "extraction", - "hash", - "integrity" + "timestamp", + "aspose" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.FileSpecification", "Aspose.Pdf.Facades.PdfExtractor", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", "Aspose.Pdf.Facades.PdfExtractor.ExtractAttachment", @@ -19968,49 +24014,24 @@ }, { "filename": "extract-pdf-images-as-bmp.cs", - "title": "Extract PDF Images as BMP Preserving Resolution", - "description": "Shows how to use Aspose.Pdf.Facades.PdfExtractor to pull embedded images from a PDF and save them as BMP files while retaining the original resolution and color depth.", - "tags": [ - "pdf", - "image-extraction", - "bmp", - "resolution", - "aspose-pdf" - ], - "apis_used": [ - "PdfExtractor", - "PdfExtractor.BindPdf", - "PdfExtractor.Resolution", - "PdfExtractor.ExtractImage", - "PdfExtractor.HasNextImage", - "PdfExtractor.GetNextImage" - ], - "difficulty": "beginner" + "title": "Extract Pdf Images As Bmp", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "extract-pdf-images-create-video-slideshow.cs", - "title": "Extract PDF Images and Build Video Slideshow", - "description": "Shows how to extract all images from a PDF using Aspose.Pdf.Facades.PdfExtractor and then generate a video slideshow from the saved PNG files with FFmpeg.", - "tags": [ - "pdf", - "image-extraction", - "ffmpeg", - "slideshow", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfExtractor", - "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", - "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", - "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" - ], - "difficulty": "intermediate" + "title": "Extract Pdf Images Create Video Slideshow", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "extract-pdf-images-to-azure-blob.cs", - "title": "Extract Images from PDF and Upload to Azure Blob", - "description": "Demonstrates how to create a PDF with an embedded image, extract all images using Aspose.Pdf.Facades.PdfExtractor, and upload the extracted images to an Azure Blob container.", + "title": "Extract Images from PDF and Upload to Azure Blob Storage", + "description": "Demonstrates extracting all images from a PDF using Aspose.Pdf.Facades.PdfExtractor and uploading each image to an Azure Blob container.", "tags": [ "pdf", "image-extraction", @@ -20023,16 +24044,14 @@ "Aspose.Pdf.Facades.PdfExtractor.BindPdf", "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", - "Aspose.Pdf.Facades.PdfExtractor.GetNextImage", - "Aspose.Pdf.Document", - "Aspose.Pdf.Image" + "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" ], "difficulty": "intermediate" }, { "filename": "extract-pdf-images-to-gcs.cs", "title": "Extract Images from PDF and Upload to Google Cloud Storage", - "description": "Demonstrates how to use Aspose.Pdf to extract images from a PDF file and upload each image to a Google Cloud Storage bucket with public read access.", + "description": "Demonstrates using Aspose.Pdf.Facades.PdfExtractor to pull images from a PDF and upload each image to a Google Cloud Storage bucket with public read access.", "tags": [ "pdf", "image-extraction", @@ -20049,18 +24068,47 @@ ], "difficulty": "intermediate" }, + { + "filename": "extract-pdf-images-to-jpeg-quality-85.cs", + "title": "Extract PDF Images to JPEG with Quality 85", + "description": "Demonstrates extracting all images from a PDF and saving them as JPEG files with a quality setting of 85 using Aspose.Pdf.Facades.PdfConverter.", + "tags": [ + "pdf", + "image-extraction", + "jpeg", + "quality", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfConverter", + "Aspose.Pdf.Facades.PdfConverter.BindPdf", + "Aspose.Pdf.Facades.PdfConverter.DoConvert", + "Aspose.Pdf.Facades.PdfConverter.HasNextImage", + "Aspose.Pdf.Facades.PdfConverter.GetNextImage" + ], + "difficulty": "beginner" + }, { "filename": "extract-pdf-images-to-s3-with-encryption.cs", - "title": "Extract PDF Images and Upload to S3 with Server‑Side Encryption", - "description": "The sample extracts all images from a PDF using Aspose.Pdf.Facades.PdfExtractor, converts them to PNG streams, and uploads each to an Amazon S3 bucket with AES‑256 server‑side encryption.", + "title": "Extract Pdf Images To S3 With Encryption", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-pdf-images-to-s3.cs", + "title": "Extract Images from PDF and Upload to Amazon S3", + "description": "Demonstrates how to extract each image from a PDF using Aspose.Pdf and upload the resulting files to an Amazon S3 bucket with the AWS SDK.", "tags": [ "pdf", "image-extraction", "aws-s3", - "encryption", - "aspose" + "aspose-pdf", + "csharp" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfExtractor", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", @@ -20071,95 +24119,120 @@ }, { "filename": "extract-pdf-text-and-encrypt-aes.cs", - "title": "Extract PDF Text and Encrypt with AES", - "description": "Demonstrates extracting text from a PDF using Aspose.Pdf.Facades.PdfExtractor and encrypting the resulting plain‑text with AES‑256 before saving it to a file.", + "title": "Extract Text from PDF and Encrypt with AES", + "description": "Demonstrates extracting all text from a PDF using Aspose.Pdf's PdfExtractor facade, saving it to a temporary file, and then encrypting that file with AES‑256 before storing the result.", "tags": [ - "pdf", - "text-extraction", - "encryption", - "aes", - "aspose" + "pdf-extraction", + "text", + "aes-encryption", + "facade-api", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", "Aspose.Pdf.Facades.PdfExtractor.ExtractText", - "Aspose.Pdf.Facades.PdfExtractor.GetText", - "Aspose.Pdf.Facades.PdfExtractor.Dispose" + "Aspose.Pdf.Facades.PdfExtractor.GetText" ], "difficulty": "intermediate" }, { "filename": "extract-pdf-text-azure-table.cs", - "title": "Extract PDF Text and Save to Azure Table", - "description": "Demonstrates how to extract all text from a PDF using Aspose.Pdf.Facades.PdfExtractor and store the extracted content in Azure Table Storage with the document ID as the partition key.", + "title": "Extract Pdf Text Azure Table", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-pdf-text-in-memory.cs", + "title": "Extract PDF Text In-Memory Using PdfExtractor", + "description": "Demonstrates loading a PDF from a MemoryStream, extracting its text with Aspose.Pdf.Facades.PdfExtractor, and returning the result in another MemoryStream for further in‑memory processing.", "tags": [ "pdf", "text-extraction", - "azure-table", - "facades", - "aspose" + "memorystream", + "aspose-pdf", + "in-memory" ], "apis_used": [ - "PdfExtractor", - "PdfExtractor.BindPdf", - "PdfExtractor.ExtractText", - "PdfExtractor.GetText", - "PdfExtractor.Dispose" + "Aspose.Pdf.Facades.PdfExtractor", + "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor.ExtractText", + "Aspose.Pdf.Facades.PdfExtractor.GetText", + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment" ], "difficulty": "intermediate" }, { "filename": "extract-pdf-text-page-by-page.cs", - "title": "Extract PDF Text Page by Page", - "description": "Shows how to use Aspose.Pdf.Facades.PdfExtractor to extract text from each page of a PDF and save each page's content into separate .txt files.", + "title": "Extract Pdf Text Page By Page", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-pdf-text-per-page-progress.cs", + "title": "Extract Pdf Text Per Page Progress", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-pdf-text-per-page.cs", + "title": "Extract PDF Text and Save Each Page to a File", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to extract the full text of a PDF and then split it into separate per‑page text files.", "tags": [ "pdf", "text-extraction", - "page-splitting", "aspose", - "csharp" + "facade", + "pages" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", - "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractText", - "Aspose.Pdf.Facades.PdfExtractor.HasNextPageText", - "Aspose.Pdf.Facades.PdfExtractor.GetNextPageText" + "PdfExtractor.BindPdf", + "PdfExtractor.ExtractText", + "PdfExtractor.GetText", + "PdfExtractor.HasNextPageText", + "PdfExtractor.GetNextPageText" ], "difficulty": "beginner" }, { - "filename": "extract-pdf-text-per-page-progress.cs", - "title": "Extract PDF Text Per Page with Progress Reporting", - "description": "Demonstrates how to extract text from each page of a PDF using Aspose.Pdf's PdfExtractor while reporting progress to the console.", + "filename": "extract-pdf-text-to-azure-table.cs", + "title": "Extract PDF Text and Store in Azure Table", + "description": "Demonstrates how to extract text from a PDF using Aspose.Pdf.Facades and save the extracted content as an entity in Azure Table storage.", "tags": [ "pdf", "text-extraction", - "progress", + "azure-table", "aspose", "csharp" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfExtractor", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", "Aspose.Pdf.Facades.PdfExtractor.ExtractText", - "Aspose.Pdf.Facades.PdfExtractor.HasNextPageText", - "Aspose.Pdf.Facades.PdfExtractor.GetNextPageText" + "Aspose.Pdf.Facades.PdfExtractor.GetText", + "Aspose.Pdf.Facades.PdfExtractor.Dispose" ], "difficulty": "intermediate" }, { "filename": "extract-pdf-text-to-gzip.cs", - "title": "Extract PDF Text and Save as GZip File", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to extract all text from a PDF and write it directly into a GZip compressed stream, reducing storage size.", + "title": "Extract PDF Text and Compress to GZip", + "description": "Demonstrates extracting all text from a PDF using Aspose.Pdf.Facades.PdfExtractor and writing it directly to a GZip compressed stream to reduce storage size.", "tags": [ "pdf", "text-extraction", "gzip", "compression", - "aspose" + "aspose-pdf" ], "apis_used": [ "PdfExtractor", @@ -20171,28 +24244,16 @@ }, { "filename": "extract-pdf-text-to-memory-stream.cs", - "title": "Extract PDF Text In-Memory", - "description": "Demonstrates loading a PDF from a MemoryStream, extracting its text with PdfExtractor, and writing the result to another MemoryStream for in‑memory processing.", - "tags": [ - "pdf", - "text-extraction", - "memorystream", - "aspose-pdf", - "facade" - ], - "apis_used": [ - "PdfExtractor", - "PdfExtractor.BindPdf", - "PdfExtractor.ExtractText", - "PdfExtractor.GetText", - "Aspose.Pdf.Facades" - ], - "difficulty": "beginner" + "title": "Extract Pdf Text To Memory Stream", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "extract-pdf-text-to-memorystream.cs", - "title": "Extract PDF Text to MemoryStream for Further PDF Generation", - "description": "Demonstrates extracting text from a PDF using Aspose.Pdf.Facades.PdfExtractor, storing it in a MemoryStream, and passing the stream to another component for PDF creation.", + "title": "Extract PDF Text to MemoryStream for Further Processing", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to extract text from a PDF, store it in a MemoryStream, and prepare the stream for consumption by another component.", "tags": [ "pdf-extraction", "memorystream", @@ -20204,15 +24265,22 @@ "Aspose.Pdf.Facades.PdfExtractor", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", "Aspose.Pdf.Facades.PdfExtractor.ExtractText", - "Aspose.Pdf.Facades.PdfExtractor.GetText", - "Aspose.Pdf.Facades.PdfExtractor.Close" + "Aspose.Pdf.Facades.PdfExtractor.GetText" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "extract-pdf-text-to-postgres.cs", + "title": "Extract Pdf Text To Postgres", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-pdf-text-to-postgresql.cs", "title": "Extract PDF Text and Store in PostgreSQL", - "description": "Demonstrates how to extract all textual content from a PDF using Aspose.Pdf and insert the result into a PostgreSQL table for searchable indexing.", + "description": "Demonstrates how to extract Unicode text from a PDF using Aspose.Pdf and insert the extracted content into a PostgreSQL table for searchable indexing.", "tags": [ "pdf", "text-extraction", @@ -20222,7 +24290,6 @@ ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Facades.PdfExtractor", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", @@ -20233,8 +24300,8 @@ }, { "filename": "extract-pdf-text-to-stringbuilder.cs", - "title": "Extract PDF Text to StringBuilder with Aspose.Pdf", - "description": "Shows how to use Aspose.Pdf.Facades.PdfExtractor to extract text from each PDF page, accumulate it in a StringBuilder, and optionally write the result to a file.", + "title": "Extract PDF Text to StringBuilder", + "description": "Shows how to use Aspose.Pdf.Facades.PdfExtractor to extract text from a PDF, store it in a StringBuilder for further manipulation, and then write it to a file.", "tags": [ "pdf", "text-extraction", @@ -20246,128 +24313,192 @@ "Aspose.Pdf.Facades.PdfExtractor", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", "Aspose.Pdf.Facades.PdfExtractor.ExtractText", - "Aspose.Pdf.Facades.PdfExtractor.HasNextPageText", - "Aspose.Pdf.Facades.PdfExtractor.GetNextPageText" + "Aspose.Pdf.Facades.PdfExtractor.GetText" ], "difficulty": "intermediate" }, { "filename": "extract-pdf-text-to-stringwriter.cs", "title": "Extract PDF Text to StringWriter for Logging", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to extract text from a PDF, capture it in a MemoryStream, and write the result into a StringWriter for integration with logging frameworks.", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to extract all text from a PDF, capture it in a MemoryStream, convert it to a string, and write it to a StringWriter for integration with logging frameworks.", "tags": [ "pdf", "text-extraction", - "logging", "stringwriter", + "logging", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", - "PdfExtractor.BindPdf", - "PdfExtractor.ExtractText", - "PdfExtractor.GetText" + "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor.ExtractText", + "Aspose.Pdf.Facades.PdfExtractor.GetText" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "extract-pdf-text-to-utf8-file.cs", + "title": "Extract Pdf Text To Utf8 File", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-pdf-text-utf8.cs", "title": "Extract PDF Text and Save as UTF-8 File", - "description": "Demonstrates how to extract text from a PDF using Aspose.Pdf.Facades.PdfExtractor and write it to a UTF-8 encoded text file.", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to extract text from a PDF document and write it to a UTF‑8 encoded text file.", "tags": [ "pdf", "text-extraction", "utf-8", "file-output", - "aspose" + "aspose-pdf" + ], + "apis_used": [ + "PdfExtractor", + "PdfExtractor.BindPdf", + "PdfExtractor.ExtractText", + "PdfExtractor.GetText" + ], + "difficulty": "beginner" + }, + { + "filename": "extract-pdf-text-verify-temp-file.cs", + "title": "Extract Pdf Text Verify Temp File", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-pdf-text-with-progress.cs", + "title": "Extract PDF Text with Page-by-Page Progress Reporting", + "description": "Demonstrates how to extract text from each page of a PDF using Aspose.Pdf's PdfExtractor while reporting progress in the console.", + "tags": [ + "pdf", + "text-extraction", + "progress", + "aspose-pdf", + "csharp" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfExtractor", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", "Aspose.Pdf.Facades.PdfExtractor.ExtractText", - "Aspose.Pdf.Facades.PdfExtractor.GetText" + "Aspose.Pdf.Facades.PdfExtractor.HasNextPageText", + "Aspose.Pdf.Facades.PdfExtractor.GetNextPageText" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "extract-pdf-text-verify-temp-file.cs", - "title": "Extract PDF Text and Verify with Temporary File", - "description": "Extracts text from a PDF using Aspose.Pdf.Facades.PdfExtractor, writes the extracted content to a temporary file, reads it back, and confirms that the in‑memory and file contents match.", + "filename": "extract-pdf-text-with-progress__v2.cs", + "title": "Extract PDF Text per Page with Progress Indicator", + "description": "Demonstrates how to use Aspose.Pdf's PdfExtractor to extract text from each page of a PDF and display a percentage‑based progress update.", "tags": [ "pdf", "text-extraction", - "temporary-file", - "verification", - "aspose-pdf" + "progress", + "aspose", + "csharp" ], "apis_used": [ "PdfExtractor", "PdfExtractor.BindPdf", "PdfExtractor.ExtractText", - "PdfExtractor.GetText(MemoryStream)", - "PdfExtractor.GetText(string)" + "PdfExtractor.HasNextPageText", + "PdfExtractor.GetNextPageText", + "PdfExtractor.Document.Pages.Count" ], "difficulty": "intermediate" }, + { + "filename": "extract-resource-images-pdf-extractor.cs", + "title": "Extract Resource-Based Images from PDF using PdfExtractor", + "description": "Demonstrates how to set PdfExtractor's ExtractImageMode to DefinedInResources and extract images defined in PDF resources, saving each image to a file.", + "tags": [ + "image extraction", + "pdf", + "aspose-pdf", + "resources", + "pdfextractor" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfExtractor", + "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor.ExtractImageMode", + "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", + "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", + "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" + ], + "difficulty": "beginner" + }, { "filename": "extract-text-and-images-from-pdf.cs", "title": "Extract Text and Images from PDF using PdfExtractor", - "description": "Shows how to create a PdfExtractor, bind a PDF file, enable text extraction, extract both text and images, and save the results to separate files.", + "description": "Demonstrates how to create a PdfExtractor, bind it to a PDF file, and simultaneously extract both the document text and embedded images, saving them to separate outputs.", "tags": [ "pdf", "text-extraction", "image-extraction", - "aspose-pdf", - "facade" + "aspose", + "csharp" ], "apis_used": [ "PdfExtractor", "PdfExtractor.BindPdf", - "PdfExtractor.ExtractTextMode", "PdfExtractor.ExtractText", - "PdfExtractor.ExtractImage", "PdfExtractor.GetText", + "PdfExtractor.ExtractImage", "PdfExtractor.HasNextImage", "PdfExtractor.GetNextImage" ], "difficulty": "intermediate" }, { - "filename": "extract-text-from-password-protected-pdf.cs", - "title": "Extract Text from Password-Protected PDF", - "description": "Demonstrates how to supply the owner password to PdfExtractor and extract text from an encrypted PDF document.", + "filename": "extract-text-and-images-from-pdfs.cs", + "title": "Extract Text and Images from PDFs using PdfExtractor", + "description": "Shows how to use Aspose.Pdf.Facades.PdfExtractor to extract all text to a .txt file and save each embedded image as PNG from PDF files in a mounted directory.", "tags": [ "pdf", "text-extraction", - "password", - "owner-password", - "facade" + "image-extraction", + "aspose-pdf", + "docker" ], "apis_used": [ - "PdfExtractor", - "PdfExtractor.Password", - "PdfExtractor.BindPdf", - "PdfExtractor.ExtractText", - "PdfExtractor.GetText" + "Aspose.Pdf.Facades.PdfExtractor", + "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor.ExtractText", + "Aspose.Pdf.Facades.PdfExtractor.GetText", + "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", + "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", + "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "extract-text-from-pdf-bytes.cs", - "title": "Extract Text from PDF Bytes Using PdfExtractor", - "description": "Shows how to extract text directly from a PDF stored in a byte array using Aspose.Pdf.Facades.PdfExtractor without writing the file to disk.", + "filename": "extract-text-from-password-protected-pdf.cs", + "title": "Extract Text From Password Protected Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-text-from-pdf-byte-array.cs", + "title": "Extract Text from PDF Byte Array Using PdfExtractor", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to extract all text from a PDF supplied as a byte array entirely in memory, without writing any files to disk.", "tags": [ "pdf", "text-extraction", - "byte-array", "memory-stream", - "Aspose.Pdf" + "facade", + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Facades.PdfExtractor", - "Aspose.Pdf.Document.Save", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", "Aspose.Pdf.Facades.PdfExtractor.ExtractText", "Aspose.Pdf.Facades.PdfExtractor.GetText" @@ -20375,55 +24506,76 @@ "difficulty": "beginner" }, { - "filename": "extract-text-from-pdf-cli.cs", - "title": "Extract Text from PDF using Aspose PdfExtractor", - "description": "Shows how to use Aspose.Pdf.Facades.PdfExtractor in a console app to read a PDF file, extract its text, and write the result to standard output.", + "filename": "extract-text-from-pdf-byte-array__v2.cs", + "title": "Extract Text from PDF Byte Array using Aspose.Pdf", + "description": "Demonstrates how to load a PDF from a byte array, extract its textual content with Aspose.Pdf.Facades.PdfExtractor, and return the result as JSON.", "tags": [ "pdf", "text-extraction", - "command-line", - "aspose-pdf", + "byte-array", + "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", "PdfExtractor.BindPdf", "PdfExtractor.ExtractText", - "PdfExtractor.GetText", - "PdfExtractor.Close" + "PdfExtractor.GetText" ], - "difficulty": "beginner" + "difficulty": "intermediate" + }, + { + "filename": "extract-text-from-pdf-bytes.cs", + "title": "Extract Text From Pdf Bytes", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-text-from-pdf-cli.cs", + "title": "Extract Text From Pdf Cli", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "extract-text-from-pdf-pages-with-progress-bar.cs", - "title": "Extract Text from PDF Pages with Progress Bar", - "description": "Shows how to extract text from each page of a PDF using Aspose.Pdf.Facades.PdfExtractor while updating a console progress bar.", + "title": "Extract Text From Pdf Pages With Progress Bar", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-text-from-pdf-queue-trigger.cs", + "title": "Extract Text from PDFs via Azure Queue Trigger", + "description": "Shows an Azure Function that reads a PDF blob name from a storage queue, downloads the PDF, extracts its text with Aspose.Pdf, and uploads the extracted text to another blob container.", "tags": [ - "pdf", - "text-extraction", - "progress-bar", + "azure-functions", + "pdf-extraction", "aspose", - "c#" + "storage-queue", + "blob-storage" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfExtractor", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", "Aspose.Pdf.Facades.PdfExtractor.ExtractText", - "Aspose.Pdf.Facades.PdfExtractor.HasNextPageText", - "Aspose.Pdf.Facades.PdfExtractor.GetNextPageText" + "Aspose.Pdf.Facades.PdfExtractor.GetText" ], "difficulty": "intermediate" }, { "filename": "extract-text-from-pdf-to-utf8-txt.cs", "title": "Extract Text from PDF to UTF-8 Text File", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to read a PDF, extract its text with UTF-8 encoding, and save it to a .txt file.", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to extract plain text from a PDF document and save it as a UTF-8 encoded .txt file.", "tags": [ "pdf", "text-extraction", "utf-8", - "aspose", + "aspose-pdf", "csharp" ], "apis_used": [ @@ -20436,13 +24588,13 @@ }, { "filename": "extract-text-from-pdf.cs", - "title": "Extract Text from PDF Using Aspose PdfExtractor", - "description": "Demonstrates a console application that loads a PDF file, extracts its text with Aspose.Pdf.Facades.PdfExtractor, and writes the extracted Unicode text to the console.", + "title": "Extract Text from PDF using Aspose PdfExtractor", + "description": "Demonstrates loading a PDF with PdfExtractor, extracting its text content, and outputting the Unicode text to the console.", "tags": [ "pdf", "text-extraction", + "aspose", "console", - "aspose-pdf", "csharp" ], "apis_used": [ @@ -20454,57 +24606,110 @@ "difficulty": "beginner" }, { - "filename": "extract-text-ignoring-images.cs", - "title": "Extract Text from PDF While Ignoring Images", - "description": "Demonstrates using Aspose.Pdf.Facades.PdfExtractor to extract only the textual content of a PDF by omitting any image extraction calls.", + "filename": "extract-text-from-pdf__v2.cs", + "title": "Extract Text from PDF using PdfExtractor", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfExtractor to extract all text from a PDF file and output it to the console.", "tags": [ "pdf", "text-extraction", - "ignore-images", + "command-line", "aspose-pdf", "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", + "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor.ExtractText", + "Aspose.Pdf.Facades.PdfExtractor.GetText" + ], + "difficulty": "beginner" + }, + { + "filename": "extract-text-from-protected-pdf.cs", + "title": "Extract Text from Password-Protected PDF", + "description": "Demonstrates how to provide the owner password to a PdfExtractor, bind an encrypted PDF, and extract its text to a file using Aspose.Pdf.", + "tags": [ + "pdf", + "text-extraction", + "password-protected", + "aspose", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfExtractor", + "PdfExtractor.Password", "PdfExtractor.BindPdf", "PdfExtractor.ExtractText", - "PdfExtractor.GetText", - "PdfExtractor.Close" + "PdfExtractor.GetText" ], "difficulty": "beginner" }, + { + "filename": "extract-text-ignoring-images.cs", + "title": "Extract Text Ignoring Images", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "extract-text-images-from-pdfs.cs", - "title": "Extract Text and Images from PDFs in a Docker Volume", - "description": "Demonstrates a console service that uses Aspose.Pdf.Facades.PdfExtractor to extract full text and all images from PDF files located in a mounted volume, saving results to an output directory.", + "title": "Extract Text Images From Pdfs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-text-only-ignore-images.cs", + "title": "Extract Text Only from PDF Using PdfExtractor (Ignore Images)", + "description": "Demonstrates how to configure Aspose.Pdf's PdfExtractor to ignore images by omitting the ExtractImage call and extract only the textual content of a PDF.", "tags": [ "pdf", - "extraction", - "images", - "text", - "docker" + "text-extraction", + "aspose-pdf", + "pdf-extractor", + "ignore-images" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", - "PdfExtractor.BindPdf", - "PdfExtractor.ExtractText", - "PdfExtractor.GetText", - "PdfExtractor.ExtractImage", - "PdfExtractor.HasNextImage", - "PdfExtractor.GetNextImage" + "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor.ExtractText", + "Aspose.Pdf.Facades.PdfExtractor.GetText", + "Aspose.Pdf.Facades.PdfExtractor.Close" + ], + "difficulty": "beginner" + }, + { + "filename": "extract-text-to-temp-file-and-verify.cs", + "title": "Extract PDF Text to Temporary File and Verify", + "description": "Demonstrates extracting text from a PDF using PdfExtractor, saving it to a temporary file, reading it back, and confirming the extracted content matches the original string.", + "tags": [ + "text-extraction", + "pdf", + "temporary-file", + "verification", + "facade" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfExtractor", + "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor.ExtractText", + "Aspose.Pdf.Facades.PdfExtractor.GetText(MemoryStream)", + "Aspose.Pdf.Facades.PdfExtractor.GetText(string)" ], "difficulty": "intermediate" }, { "filename": "handle-corrupted-pdf-binding.cs", "title": "Handle Corrupted PDF Binding with PdfExtractor", - "description": "Shows how to catch and handle exceptions thrown by PdfExtractor when attempting to bind a corrupted PDF file.", + "description": "Demonstrates checking for a PDF file's existence and catching exceptions thrown by PdfExtractor when binding a corrupted PDF, using specific Aspose.Pdf exception types.", "tags": [ "pdf", - "error-handling", - "extraction", + "exception-handling", "aspose", - "c#" + "pdf-extractor", + "invalid-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", @@ -20516,129 +24721,123 @@ }, { "filename": "list-embedded-attachment-names.cs", - "title": "List Embedded Attachment Names from PDF", + "title": "List Embedded Attachment Names in PDF", "description": "Shows how to use Aspose.Pdf.Facades.PdfExtractor to retrieve the names of all embedded attachments in a PDF without extracting the files.", "tags": [ "pdf", "attachments", "list", "extractor", - "aspose" + "aspnet" ], "apis_used": [ "Aspose.Pdf.Facades.PdfExtractor", - "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractAttachment", - "Aspose.Pdf.Facades.PdfExtractor.GetAttachNames" + "PdfExtractor.BindPdf", + "PdfExtractor.ExtractAttachment", + "PdfExtractor.GetAttachNames" ], "difficulty": "beginner" }, { "filename": "parallel-image-extraction-from-pdfs.cs", - "title": "Parallel Extraction of Images from Multiple PDFs", - "description": "Demonstrates how to extract images from several PDF files concurrently using Aspose.Pdf.Facades.PdfExtractor and Task.WhenAll for improved throughput.", - "tags": [ - "parallel", - "image-extraction", - "pdf", - "aspose-pdf", - "facade" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfExtractor", - "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", - "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", - "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" - ], - "difficulty": "intermediate" - }, - { - "filename": "pdf-diagnostic-tool-counts.cs", - "title": "Report PDF Page, Image, and Attachment Counts", - "description": "Shows how to use Aspose.Pdf.Facades to count the total pages, images, and attachments in a PDF document.", + "title": "Parallel Image Extraction from Multiple PDFs", + "description": "Demonstrates how to extract all images from several PDF files concurrently using Aspose.Pdf.Facades.PdfExtractor and Task.WhenAll for improved throughput.", "tags": [ "pdf", - "page-count", "image-extraction", - "attachments", - "diagnostic" + "parallel", + "aspose", + "facade" ], "apis_used": [ - "PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.GetPages", "PdfExtractor", "PdfExtractor.BindPdf", "PdfExtractor.ExtractImage", "PdfExtractor.HasNextImage", - "PdfExtractor.GetAttachmentInfo" + "PdfExtractor.GetNextImage" ], "difficulty": "intermediate" }, { - "filename": "pdf-extractor-text-extraction-test.cs", - "title": "Unit Test for PdfExtractor Text Extraction", - "description": "Shows how to write an NUnit test that uses Aspose.Pdf.Facades.PdfExtractor to extract text from a PDF file and verify the extracted content.", - "tags": [ + "filename": "pdf-diagnostic-tool-counts.cs", + "title": "Pdf Diagnostic Tool Counts", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "pdf-extractor-text-extraction-test.cs", + "title": "Pdf Extractor Text Extraction Test", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "pdf-extractor-unit-test.cs", + "title": "Unit Test for Extracting Text with PdfExtractor", + "description": "Demonstrates creating a simple PDF, extracting its text using Aspose.Pdf's PdfExtractor, and verifying the extracted content with an NUnit unit test.", + "tags": [ "pdf", "text-extraction", "unit-test", - "aspose-pdf", + "aspose", "nunit" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Facades.PdfExtractor", "Aspose.Pdf.Facades.PdfExtractor.BindPdf", "Aspose.Pdf.Facades.PdfExtractor.ExtractText", - "Aspose.Pdf.Facades.PdfExtractor.GetText", - "Aspose.Pdf.Facades.PdfExtractor.Dispose" + "Aspose.Pdf.Facades.PdfExtractor.GetText" ], "difficulty": "intermediate" }, { "filename": "pdf-text-extraction-azure-function.cs", - "title": "Azure Function to Extract PDF Text and Save as Blob", - "description": "Demonstrates a scheduled Azure Function that reads a PDF from Azure Blob Storage, extracts its text using Aspose.Pdf, and writes the result back to a blob as a .txt file.", - "tags": [ - "azure-functions", - "pdf", - "text-extraction", - "blob-storage", - "aspose" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfExtractor", - "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractText", - "Aspose.Pdf.Facades.PdfExtractor.GetText" - ], - "difficulty": "intermediate" + "title": "Pdf Text Extraction Azure Function", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "pdf-text-extraction-service.cs", - "title": "Folder Monitoring PDF Text Extraction Service", - "description": "Demonstrates a Windows‑service‑like class that watches a directory for new PDF files and uses Aspose.Pdf to extract all text into corresponding .txt files.", + "title": "Pdf Text Extraction Service", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "report-pdf-page-image-attachment-counts.cs", + "title": "Report PDF Page, Image, and Attachment Counts", + "description": "Shows how to use Aspose.Pdf.Facades to determine the total number of pages, embedded images, and file attachments in a PDF document.", "tags": [ "pdf", - "text-extraction", - "filesystemwatcher", - "windows-service", - "aspose-pdf" + "page-count", + "image-extraction", + "attachments", + "diagnostics" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfExtractor", - "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractText", - "Aspose.Pdf.Facades.PdfExtractor.GetText", - "Aspose.Pdf.Facades.PdfExtractor.Dispose" + "PdfFileInfo.NumberOfPages", + "PdfExtractor.BindPdf", + "PdfExtractor.ExtractImage", + "PdfExtractor.HasNextImage", + "PdfExtractor.GetNextImage", + "PdfExtractor.ExtractAttachment", + "PdfExtractor.GetAttachmentInfo" ], "difficulty": "intermediate" }, { "filename": "retry-pdf-text-extraction.cs", - "title": "Retry Text Extraction from PDF Using PdfExtractor", - "description": "Demonstrates how to extract text from a PDF with Aspose.Pdf's PdfExtractor and implement a retry loop that attempts the extraction up to three times when an IOException occurs.", + "title": "Retry PDF Text Extraction on IOException", + "description": "Demonstrates how to extract text from a PDF using Aspose.Pdf's PdfExtractor with a retry loop that handles IOException and attempts the operation up to three times.", "tags": [ "pdf", "text-extraction", @@ -20647,72 +24846,105 @@ "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfExtractor", - "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractText", - "Aspose.Pdf.Facades.PdfExtractor.GetText" + "PdfExtractor", + "PdfExtractor.BindPdf", + "PdfExtractor.ExtractText", + "PdfExtractor.GetText" ], "difficulty": "intermediate" }, { - "filename": "test-image-extraction-mode.cs", - "title": "Test ImageExtractionMode Affects Extracted Image Count", - "description": "Demonstrates a unit test that verifies the PdfExtractor.ExtractImageMode property influences the number of images extracted from a PDF document.", + "filename": "test-image-extraction-mode-pdf-extractor.cs", + "title": "Test Image Extraction Mode with PdfExtractor", + "description": "Demonstrates setting PdfExtractor.ExtractImageMode to DefinedInResources or ActuallyUsed and verifying the extracted image count with NUnit.", "tags": [ "pdf", "image-extraction", + "extractor", "unit-test", - "aspose", - "extractor" + "nunit" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Image", "Aspose.Pdf.Facades.PdfExtractor", - "Aspose.Pdf.Facades.ExtractImageMode", - "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", - "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", - "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" + "Aspose.Pdf.Facades.ExtractImageMode" ], "difficulty": "intermediate" + }, + { + "filename": "test-image-extraction-mode.cs", + "title": "Test Image Extraction Mode", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" } ] }, { "name": "facades-fill-forms", - "file_count": 35, + "file_count": 61, "files": [ "add-date-header-to-pdf-pages.cs", "add-text-watermark-to-pdf-pages.cs", "adjust-datatable-columns-to-pdf-fields.cs", + "apply-password-protection-to-filled-pdf.cs", + "async-fill-pdf-form-from-data-table.cs", "async-fill-pdf-from-xlsx.cs", "batch-fill-pdf-form-data-tables.cs", + "batch-fill-pdf-forms-from-large-csv.cs", + "batch-fill-pdf-template-with-multiple-datatables.cs", "bind-pdf-form-to-autofiller.cs", "cancel-pdf-form-filling-with-timeout.cs", "configure-datacolumn-properties-auto-fill-pdf-form.cs", + "convert-in-memory-pdf-to-byte-array.cs", "convert-large-pdf-to-excel-with-temp-disk-buffer.cs", + "convert-large-pdf-to-excel-with-temp-folder.cs", "convert-pdf-to-byte-array.cs", "create-pdf-per-datarow.cs", + "extract-pdf-pages-with-custom-names.cs", "fill-pdf-acroform-using-datatable.cs", + "fill-pdf-form-field-preserve-layout.cs", "fill-pdf-form-from-csv-mapping.cs", + "fill-pdf-form-from-csv-with-mapping.cs", + "fill-pdf-form-from-csv-xlsx.cs", "fill-pdf-form-from-csv.cs", "fill-pdf-form-from-excel-auto-filler.cs", "fill-pdf-form-from-memory-stream.cs", + "fill-pdf-form-from-multiple-csv-worksheets.cs", + "fill-pdf-form-using-autofiller-datatable.cs", "fill-pdf-form-using-datatable-autofiller.cs", + "fill-pdf-form-verify-size.cs", + "fill-pdf-form-with-autofiller-exception-handling.cs", "fill-pdf-form-with-autofiller.cs", + "fill-pdf-form-with-autofiller__v2.cs", "fill-pdf-form-with-datatable-exception-handling.cs", + "fill-pdf-form-with-timeout.cs", "fill-pdf-from-multiple-csv-worksheets.cs", "filter-csv-and-fill-pdf-form.cs", + "format-numeric-datatable-values-fill-pdf-form.cs", "generate-datatable-and-use-formdataconverter.cs", "generate-pdf-pages-from-datatable-with-autofiller.cs", + "import-datatable-into-pdf-form-with-readonly-unique.cs", + "load-csv-to-datatable-formdata-converter.cs", + "log-datatable-row-processing-pdf-page-creation.cs", + "map-datatable-columns-to-pdf-form-fields.cs", "merge-filled-pdf-forms-from-datatables.cs", + "merge-filled-pdfs-from-datatables.cs", + "pdf-one-page-per-datarow.cs", + "pdf-page-identifier-summary-report.cs", "pdf-page-table-summary-report.cs", "populate-pdf-form-fields-from-datatable.cs", "protect-pdf-with-password.cs", + "retry-autofiller-import-transient-errors.cs", "retry-autofiller-import-transient-io.cs", "save-filled-pdf-preserve-layout.cs", "split-filled-pdf-into-single-page-pdfs.cs", "split-pdf-custom-names.cs", "stream-large-csv-data-into-pdf-forms.cs", + "validate-filled-pdf-fields-against-datatable-values.cs", "validate-filled-pdf-fields-against-datatable.cs", "validate-pdf-size-after-filling-form.cs", "validate-required-pdf-form-fields.cs" @@ -20721,135 +24953,168 @@ "Aspose.Pdf.Facades", "Aspose.Pdf", "Aspose.Pdf.Forms", - "Aspose.Pdf.Text" + "Aspose.Pdf.Annotations", + "Aspose.Pdf.Text", + "Aspose.Pdf.Drawing" ], "key_apis": [ "Form", "PdfFileEditor", - "PdfFileStamp", + "TextFragment", + "ExcelSaveOptions", "FileInfo", "PdfFileSecurity", - "TableAbsorber", - "TextFragment" + "PdfFileStamp", + "TableAbsorber" ], "examples": [ { "filename": "add-date-header-to-pdf-pages.cs", - "title": "Add Current Date Header to PDF Pages", - "description": "Demonstrates how to fill a PDF template with AutoFiller and then add a header containing the current date to each page using PdfFileStamp.", + "title": "Add Date Header to PDF Pages Using AutoFiller", + "description": "Shows how to create a PDF template, fill it with data via AutoFiller, and then prepend a header containing the current date on every generated page using PdfFileStamp.", "tags": [ - "pdf", + "auto-filler", "header", "date", - "autofiller", - "aspose" + "pdf", + "aspose-pdf" ], "apis_used": [ - "AutoFiller", - "AutoFiller.BindPdf", - "AutoFiller.Save", - "FormattedText", - "PdfFileStamp", - "PdfFileStamp.BindPdf", - "PdfFileStamp.AddHeader", - "PdfFileStamp.Save" + "Aspose.Pdf.Facades.AutoFiller", + "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.Facades.FormattedText", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Annotations.Border" ], "difficulty": "intermediate" }, { "filename": "add-text-watermark-to-pdf-pages.cs", - "title": "Add Text Watermark to PDF Pages", - "description": "Shows how to apply a semi‑transparent text watermark to every page of a PDF after the form has been filled using Aspose.Pdf.", + "title": "Add Text Watermark To Pdf Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "adjust-datatable-columns-to-pdf-fields.cs", + "title": "Adjust Datatable Columns To Pdf Fields", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "apply-password-protection-to-filled-pdf.cs", + "title": "Apply Password Protection to a Filled PDF", + "description": "Shows how to load a filled PDF, save a temporary copy, and encrypt it with user and owner passwords using Aspose.Pdf's PdfFileSecurity facade.", "tags": [ - "watermark", "pdf", - "aspose", - "stamp", - "form-filling" + "encryption", + "password-protection", + "aspose.pdf", + "facade" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.Stamp", - "Aspose.Pdf.Text.FormattedText", - "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", - "Aspose.Pdf.Facades.PdfFileStamp.Close", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfFileSecurity", + "Aspose.Pdf.Facades.PdfFileSecurity.EncryptFile", + "Aspose.Pdf.DocumentPrivilege", + "Aspose.Pdf.KeySize" ], "difficulty": "intermediate" }, { - "filename": "adjust-datatable-columns-to-pdf-fields.cs", - "title": "Adjust DataTable Columns to Match PDF Form Fields", - "description": "Demonstrates retrieving PDF form field names, renaming DataTable columns to match them (including case‑insensitive matching), and using Aspose.Pdf.Facades.AutoFiller to populate the PDF.", + "filename": "async-fill-pdf-form-from-data-table.cs", + "title": "Asynchronously Fill PDF Form from DataTable using Aspose AutoFiller", + "description": "Demonstrates creating a simple PDF template, building a DataTable, and using Aspose.Pdf.Facades.AutoFiller to populate form fields while performing all file reads and writes with asynchronous streams.", "tags": [ + "async", "pdf", "form-filling", - "datatable", - "autofill", - "field-mapping" + "aspose", + "autofiller" ], "apis_used": [ - "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.AutoFiller", "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Facades.AutoFiller.BindPdf", + "Aspose.Pdf.Facades.AutoFiller.ImportDataTable", + "Aspose.Pdf.Facades.AutoFiller.Save" ], "difficulty": "intermediate" }, { "filename": "async-fill-pdf-from-xlsx.cs", - "title": "Asynchronously Fill PDF Form from XLSX Data", - "description": "Demonstrates how to read data from an XLSX file asynchronously, bind it to a PDF form using Aspose.Pdf.Facades.AutoFiller, and write the filled PDF to disk with async file I/O.", + "title": "Async Fill Pdf From Xlsx", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "batch-fill-pdf-form-data-tables.cs", + "title": "Batch Fill Pdf Form Data Tables", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "batch-fill-pdf-forms-from-large-csv.cs", + "title": "Batch Fill PDF Forms from Large CSV using AutoFiller", + "description": "The example streams rows from a large CSV (simulating an XLSX) in batches, builds a DataTable for each batch, and uses Aspose.Pdf.Facades.AutoFiller to populate a PDF template's form fields, generating individual PDFs without loading the entire dataset into memory.", "tags": [ - "async", - "pdf", - "form-fill", - "xlsx", - "aspose" + "auto-filler", + "pdf-forms", + "batch-processing", + "csv", + "streaming" ], "apis_used": [ "Aspose.Pdf.Facades.AutoFiller", "Aspose.Pdf.Facades.AutoFiller.BindPdf", "Aspose.Pdf.Facades.AutoFiller.ImportDataTable", "Aspose.Pdf.Facades.AutoFiller.Save", - "Aspose.Pdf.Facades.AutoFiller.Dispose" + "Aspose.Pdf.Document", + "Aspose.Pdf.TextBoxField", + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate" }, { - "filename": "batch-fill-pdf-form-data-tables.cs", - "title": "Batch Fill PDF Form Using DataTables", - "description": "Demonstrates loading a PDF template, populating its form fields from multiple DataTable objects, and saving a separate filled PDF for each data set.", + "filename": "batch-fill-pdf-template-with-multiple-datatables.cs", + "title": "Batch Fill PDF Template with Multiple DataTables", + "description": "Shows how to use Aspose.Pdf's AutoFiller to fill a PDF form repeatedly for each DataTable in a list, generating separate output PDFs for each data set.", "tags": [ "pdf", "form-filling", - "batch", - "aspose-pdf", + "batch-processing", + "autofiller", "datatable" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Form" + "AutoFiller", + "AutoFiller.BindPdf", + "AutoFiller.GeneratingPath", + "AutoFiller.BasicFileName", + "AutoFiller.ImportDataTable", + "AutoFiller.Save" ], "difficulty": "intermediate" }, { "filename": "bind-pdf-form-to-autofiller.cs", "title": "Bind PDF Form to AutoFiller", - "description": "Shows how to load a PDF form from a file path and bind it to an Aspose.Pdf.Facades.AutoFiller instance for subsequent form‑filling operations.", + "description": "Demonstrates how to create an AutoFiller instance, bind it to a PDF form file, and prepare it for further operations such as importing data or saving the filled document.", "tags": [ - "pdf", - "form", "autofiller", + "pdf-form", "binding", - "aspose" + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.AutoFiller", @@ -20859,217 +25124,259 @@ }, { "filename": "cancel-pdf-form-filling-with-timeout.cs", - "title": "Cancel PDF Form Filling with Timeout", - "description": "Shows how to fill a PDF form using Aspose.Pdf and abort the operation if it exceeds a specified timeout by employing a CancellationToken.", - "tags": [ - "pdf", - "form-filling", - "cancellation", - "timeout", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.BindPdf", - "Aspose.Pdf.Facades.Form.FillField", - "Aspose.Pdf.Facades.Form.Save" - ], - "difficulty": "intermediate" + "title": "Cancel Pdf Form Filling With Timeout", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "configure-datacolumn-properties-auto-fill-pdf-form.cs", - "title": "Configure DataColumn Properties and AutoFill PDF Form", - "description": "Demonstrates setting ReadOnly and Unique flags on DataTable columns before importing the table into a PDF form with Aspose.Pdf's AutoFiller, and creating a simple PDF template with text fields.", + "title": "Configure Datacolumn Properties Auto Fill Pdf Form", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "convert-in-memory-pdf-to-byte-array.cs", + "title": "Convert In-Memory PDF to Byte Array", + "description": "Creates a PDF document entirely in memory with Aspose.Pdf, saves it to a MemoryStream, and returns the raw byte array for sending over a web API without touching the file system.", "tags": [ "pdf", - "autofill", - "datacolumn", - "form-fields", - "aspnet" + "memory", + "byte-array", + "aspose-pdf", + "web-api" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Facades.AutoFiller", - "Aspose.Pdf.Facades.AutoFiller.BindPdf", - "Aspose.Pdf.Facades.AutoFiller.ImportDataTable" + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "convert-large-pdf-to-excel-with-temp-disk-buffer.cs", - "title": "Convert Large PDF to Excel Using Temporary Disk Buffer", - "description": "Demonstrates extracting a large PDF to an intermediate file in a temporary folder with disk buffering, then converting it to Excel to avoid memory issues.", + "title": "Convert Large Pdf To Excel With Temp Disk Buffer", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "convert-large-pdf-to-excel-with-temp-folder.cs", + "title": "Convert Large PDF to Excel Using a Temporary Folder", + "description": "Demonstrates how to convert a large PDF to Excel while using a temporary directory and disk buffering to avoid memory and disk‑space issues.", "tags": [ "pdf", "excel", - "temporary-folder", - "disk-buffer", - "large-files" + "temp-folder", + "large-files", + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.UseDiskBuffer", - "Aspose.Pdf.Facades.PdfFileEditor.Extract", + "Aspose.Pdf.Document", + "Aspose.Pdf.PdfSaveOptions", "Aspose.Pdf.ExcelSaveOptions", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.PdfSaveOptions.TempPath" ], "difficulty": "intermediate" }, { "filename": "convert-pdf-to-byte-array.cs", - "title": "Convert PDF to Byte Array In-Memory", - "description": "Shows how to load a filled PDF with Aspose.Pdf and convert it to a byte array using a MemoryStream, eliminating any need to write to disk.", - "tags": [ - "pdf", - "byte-array", - "memory-stream", - "aspose-pdf", - "in-memory" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Document.Pages.Add" - ], - "difficulty": "beginner" + "title": "Convert Pdf To Byte Array", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "create-pdf-per-datarow.cs", - "title": "Create PDF with One Page per DataTable Row", - "description": "Generates a PDF where each row of a DataTable is placed on its own page and then verifies that the page count matches the number of rows.", + "title": "Create Pdf Per Datarow", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-pdf-pages-with-custom-names.cs", + "title": "Extract PDF Pages with Custom File Names from DataTable", + "description": "Demonstrates using Aspose.Pdf.Facades.PdfFileEditor to extract specific pages from a PDF and save each page with a custom file name defined in a DataTable.", "tags": [ "pdf", + "page-extraction", + "custom-naming", "datatable", - "pages", - "aspose-pdf", - "verification" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Facades.PdfFileEditor", + "Aspose.Pdf.Facades.PdfFileEditor.Extract", + "Aspose.Pdf.Document.Pages.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "fill-pdf-acroform-using-datatable.cs", - "title": "Fill PDF AcroForm Using DataTable with AutoFiller", - "description": "Demonstrates how to bind a PDF template, import a DataTable whose column names match AcroForm fields, and generate a filled PDF using Aspose.Pdf.Facades.AutoFiller.", + "title": "Fill Pdf Acroform Using Datatable", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "fill-pdf-form-field-preserve-layout.cs", + "title": "Fill PDF Form Field and Preserve Layout", + "description": "Demonstrates how to load a PDF with form fields, fill a specific field using the Aspose.Pdf.Facades.Form class, and save the document while keeping the original layout intact.", "tags": [ - "autofiller", - "datatable", "pdf", - "form-filling", - "aspose" + "form", + "fill", + "aspose", + "csharp" ], "apis_used": [ - "Aspose.Pdf.Facades.AutoFiller", - "AutoFiller.BindPdf", - "AutoFiller.ImportDataTable", - "AutoFiller.Save", - "AutoFiller.Close" + "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.Form.FillField", + "Aspose.Pdf.Facades.Form.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "fill-pdf-form-from-csv-mapping.cs", - "title": "Fill PDF Form Fields from CSV Using Mapping Config", - "description": "Shows how to read a CSV (Excel) data file, load a JSON column‑to‑PDF‑field mapping, and dynamically fill an Aspose.Pdf form using that mapping.", + "title": "Fill Pdf Form From Csv Mapping", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "fill-pdf-form-from-csv-with-mapping.cs", + "title": "Fill PDF Form Fields from CSV Using Mapping Configuration", + "description": "Demonstrates how to read a CSV file, map its column names to PDF form field names via a JSON configuration, and fill an Aspose.Pdf form for each data row.", "tags": [ "pdf", "form-filling", "csv", - "json-mapping", + "mapping", "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.Form.BindPdf", "Aspose.Pdf.Facades.Form.FillField", - "Aspose.Pdf.Facades.Form.Save" + "Aspose.Pdf.Facades.Form.Save", + "Aspose.Pdf.Facades.Form.Dispose" + ], + "difficulty": "intermediate" + }, + { + "filename": "fill-pdf-form-from-csv-xlsx.cs", + "title": "Fill PDF Form from CSV/XLSX Using AutoFiller", + "description": "Shows how to read CSV (or CSV‑exported XLSX) data into a DataTable and use Aspose.Pdf.Facades.AutoFiller to bind a PDF template, import the data, and generate a filled PDF document.", + "tags": [ + "autofiller", + "pdf-form", + "csv", + "datatable", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Facades.AutoFiller", + "AutoFiller.BindPdf", + "AutoFiller.ImportDataTable", + "AutoFiller.Save" ], "difficulty": "intermediate" }, { "filename": "fill-pdf-form-from-csv.cs", - "title": "Fill PDF Form Fields from CSV Data", - "description": "Shows how to read a CSV file into a DataTable and use Aspose.Pdf.Facades.Form to populate matching PDF form fields and save the filled document.", + "title": "Fill PDF Form from CSV Data using Aspose.Pdf", + "description": "Demonstrates loading data from a CSV file into a DataTable and using Aspose.Pdf.Facades.Form to fill matching fields in a PDF template and save the filled PDF.", "tags": [ "pdf", "form-filling", "csv", - "aspose", - "facade" + "aspose.pdf", + "facades" ], "apis_used": [ "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.Form..ctor", "Aspose.Pdf.Facades.Form.FillField", - "Aspose.Pdf.Facades.Form.Save" + "Aspose.Pdf.Facades.Form.Save", + "Aspose.Pdf.Facades.Form.Dispose" ], "difficulty": "intermediate" }, { "filename": "fill-pdf-form-from-excel-auto-filler.cs", - "title": "Fill PDF Form from Excel Data using Aspose AutoFiller", - "description": "Demonstrates how to bind a PDF template, import data from an Excel‑derived DataTable, and generate a filled PDF using Aspose.Pdf.Facades.AutoFiller in a console (or ASP.NET Core) workflow.", + "title": "Fill Pdf Form From Excel Auto Filler", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "fill-pdf-form-from-memory-stream.cs", + "title": "Fill PDF Form from Memory Stream using AutoFiller", + "description": "Creates a PDF form template in memory and fills it with data from a DataTable using Aspose.Pdf.Facades.AutoFiller, returning the filled PDF as a byte array without any intermediate files.", "tags": [ "pdf", - "autofiller", - "excel", "form-filling", - "aspnet-core" + "memory-stream", + "autofiller", + "aspose-pdf" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.AutoFiller", - "AutoFiller.BindPdf", - "AutoFiller.ImportDataTable", - "AutoFiller.Save" + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Annotations.Border", + "Aspose.Pdf.Annotations.BorderStyle" ], "difficulty": "intermediate" }, { - "filename": "fill-pdf-form-from-memory-stream.cs", - "title": "Fill PDF Form from Memory Stream Using AutoFiller", - "description": "Shows how to create a PDF form entirely in memory, then populate its fields with data using Aspose.Pdf.AutoFiller without writing any intermediate files.", + "filename": "fill-pdf-form-from-multiple-csv-worksheets.cs", + "title": "Fill PDF Form from Multiple CSV Worksheets using AutoFiller", + "description": "The example reads each CSV file as a worksheet, creates a DataTable, and uses Aspose.Pdf.Facades.AutoFiller to merge the data into a PDF form, generating a separate PDF for each worksheet.", "tags": [ "pdf", - "form-filling", - "memory-stream", "autofiller", - "aspose-pdf" + "csv", + "datatables", + "form-fill" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Forms.TextBoxField", "Aspose.Pdf.Facades.AutoFiller", "Aspose.Pdf.Facades.AutoFiller.BindPdf", "Aspose.Pdf.Facades.AutoFiller.ImportDataTable", - "Aspose.Pdf.Facades.AutoFiller.Save" + "Aspose.Pdf.Facades.AutoFiller.Save", + "Aspose.Pdf.Facades.AutoFiller.Dispose" ], "difficulty": "intermediate" }, { - "filename": "fill-pdf-form-using-datatable-autofiller.cs", - "title": "Fill PDF Form Using DataTable and AutoFiller", - "description": "Demonstrates creating a PDF form template, defining matching columns in a DataTable, and using the AutoFiller facade to import the data and generate a filled PDF.", + "filename": "fill-pdf-form-using-autofiller-datatable.cs", + "title": "Fill PDF Form Using AutoFiller and DataTable", + "description": "Demonstrates how to create a PDF template with AcroForm fields, populate a DataTable, and use Aspose.Pdf.Facades.AutoFiller to import the table and fill the form automatically.", "tags": [ - "pdf-form", "autofiller", + "pdf-form", "datatable", - "aspose-pdf", - "csharp" + "aspnet", + "fill-form" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.CheckboxField", "Aspose.Pdf.Facades.AutoFiller", "Aspose.Pdf.Facades.AutoFiller.BindPdf", "Aspose.Pdf.Facades.AutoFiller.ImportDataTable", @@ -21078,35 +25385,45 @@ "difficulty": "intermediate" }, { - "filename": "fill-pdf-form-with-autofiller.cs", - "title": "Fill PDF Form with AutoFiller and Proper Disposal", - "description": "Creates a PDF template with form fields, populates them from a DataTable using Aspose.Pdf.Facades.AutoFiller, saves the filled PDF, and disposes the AutoFiller to release unmanaged resources.", + "filename": "fill-pdf-form-using-datatable-autofiller.cs", + "title": "Fill Pdf Form Using Datatable Autofiller", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "fill-pdf-form-verify-size.cs", + "title": "Fill PDF Form and Verify Output Size", + "description": "Demonstrates using Aspose.Pdf.AutoFiller to populate a PDF form from a DataTable, creates a template if needed, and checks that the resulting PDF does not exceed a predefined size limit.", "tags": [ "pdf", "form-filling", - "autofiller", - "aspose", - "resource-management" + "size-validation", + "aspose-pdf", + "autofiller" ], "apis_used": [ + "Aspose.Pdf.Facades.AutoFiller", + "Aspose.Pdf.Facades.AutoFiller.BindPdf", + "Aspose.Pdf.Facades.AutoFiller.ImportDataTable", + "Aspose.Pdf.Facades.AutoFiller.Save", "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Facades.AutoFiller.BindPdf", - "Aspose.Pdf.Facades.AutoFiller.ImportDataTable", - "Aspose.Pdf.Facades.AutoFiller.Save" + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate" }, { - "filename": "fill-pdf-form-with-datatable-exception-handling.cs", - "title": "Fill PDF Form with DataTable and Exception Handling", - "description": "The example shows how to use Aspose.Pdf's AutoFiller to bind a PDF template, import data from a DataTable into form fields, save the filled document, and handle missing file or processing errors with proper exception handling.", + "filename": "fill-pdf-form-with-autofiller-exception-handling.cs", + "title": "Fill PDF Form Using AutoFiller with Exception Handling", + "description": "Demonstrates binding a PDF template, importing data from a DataTable, and generating a filled PDF using Aspose.Pdf's AutoFiller while handling missing file and form field errors.", "tags": [ "autofiller", "pdf-form", "exception-handling", - "datatable", + "data-table", "aspose-pdf" ], "apis_used": [ @@ -21119,92 +25436,99 @@ "difficulty": "intermediate" }, { - "filename": "fill-pdf-from-multiple-csv-worksheets.cs", - "title": "Fill PDF Template from Multiple CSV Worksheets", - "description": "The example reads each CSV file in a folder, converts it to a DataTable, and uses Aspose.Pdf.Facades.AutoFiller to merge the data into a PDF template, creating a separate PDF for each worksheet.", + "filename": "fill-pdf-form-with-autofiller.cs", + "title": "Fill PDF Form Using AutoFiller with Custom DataTable Columns", + "description": "Demonstrates how to create a DataTable, add required and custom columns, and use Aspose.Pdf.Facades.AutoFiller to bind a PDF template, import the data, and save the filled form.", "tags": [ - "auto-filler", - "csv", + "pdf", + "form-filling", + "autofiller", "datatable", - "pdf-generation", - "aspose-pdf" + "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.AutoFiller", "Aspose.Pdf.Facades.AutoFiller.BindPdf", "Aspose.Pdf.Facades.AutoFiller.ImportDataTable", "Aspose.Pdf.Facades.AutoFiller.Save", - "Aspose.Pdf.Facades.AutoFiller.Dispose" + "Aspose.Pdf.Facades.AutoFiller.Close" ], "difficulty": "intermediate" }, { - "filename": "filter-csv-and-fill-pdf-form.cs", - "title": "Filter CSV Data and Fill PDF Form with AutoFiller", - "description": "The example loads a CSV file into a DataTable, filters rows based on a condition, and uses Aspose.Pdf's AutoFiller to populate a PDF form with the filtered data, producing a subset PDF.", + "filename": "fill-pdf-form-with-autofiller__v2.cs", + "title": "Fill PDF Form Using AutoFiller and Dispose Resources", + "description": "Demonstrates creating a PDF form template, populating it from a DataTable with AutoFiller, and properly disposing the AutoFiller to release unmanaged resources.", "tags": [ - "csv", - "datatable", - "pdf-form", + "pdf", + "form-filling", "autofiller", - "filter" + "resource-management", + "aspnet" ], "apis_used": [ "Aspose.Pdf.Facades.AutoFiller", - "Aspose.Pdf.Facades.AutoFiller.BindPdf", - "Aspose.Pdf.Facades.AutoFiller.ImportDataTable", - "Aspose.Pdf.Facades.AutoFiller.Save", "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.TextBoxField" + "Aspose.Pdf.Page", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Annotations.Border", + "Aspose.Pdf.Annotations.BorderStyle" ], "difficulty": "intermediate" }, { - "filename": "generate-datatable-and-use-formdataconverter.cs", - "title": "Create DataTable and Populate FormDataConverter", - "description": "Shows how to build a DataTable using the first row as column headers (simulating an XLSX sheet) and assign it to Aspose.Pdf's FormDataConverter for further operations such as XML conversion.", + "filename": "fill-pdf-form-with-datatable-exception-handling.cs", + "title": "Fill Pdf Form With Datatable Exception Handling", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "fill-pdf-form-with-timeout.cs", + "title": "Fill PDF Form with Timeout Cancellation", + "description": "Shows how to fill a PDF form field using Aspose.Pdf's Form facade and abort the operation if it exceeds a specified timeout by employing a CancellationToken.", "tags": [ - "datatable", - "formdataconverter", - "excel", "pdf", - "facade" + "form-filling", + "cancellation", + "timeout", + "aspose" ], "apis_used": [ - "Aspose.Pdf.Facades.FormDataConverter", - "Aspose.Pdf.Facades.DataType" + "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.Form.BindPdf", + "Aspose.Pdf.Facades.Form.FillField", + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.SaveAsync" ], "difficulty": "intermediate" }, { - "filename": "generate-pdf-pages-from-datatable-with-autofiller.cs", - "title": "Generate PDF Pages from DataTable with AutoFiller and Log Page Numbers", - "description": "Demonstrates using Aspose.Pdf.Facades.AutoFiller to bind a PDF template, import a DataTable, create a separate page for each row, combine them into a single PDF, and log each processed row with its page number.", - "tags": [ - "autofiller", - "datatable", - "pdf-generation", - "logging", - "combined-pdf" - ], - "apis_used": [ - "AutoFiller", - "AutoFiller.BindPdf", - "AutoFiller.ImportDataTable", - "AutoFiller.Save", - "AutoFiller.Dispose" - ], - "difficulty": "beginner" + "filename": "fill-pdf-from-multiple-csv-worksheets.cs", + "title": "Fill Pdf From Multiple Csv Worksheets", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "merge-filled-pdf-forms-from-datatables.cs", - "title": "Merge Multiple Filled PDF Forms from DataTables", - "description": "Creates a PDF form template, fills it with data from several DataTables using AutoFiller, and concatenates the filled PDFs into a single merged document.", + "filename": "filter-csv-and-fill-pdf-form.cs", + "title": "Filter Csv And Fill Pdf Form", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "format-numeric-datatable-values-fill-pdf-form.cs", + "title": "Format Numeric DataTable Values and Fill PDF Form Fields", + "description": "Shows how to format numeric values from a DataTable (e.g., currency) as strings and populate them into PDF form fields using Aspose.Pdf's AutoFiller.", "tags": [ "pdf", "form-filling", - "merge", "datatable", + "formatting", "aspose-pdf" ], "apis_used": [ @@ -21212,84 +25536,104 @@ "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Facades.AutoFiller", - "Aspose.Pdf.Facades.PdfFileEditor.Concatenate" + "Aspose.Pdf.Facades.AutoFiller" ], "difficulty": "intermediate" }, { - "filename": "pdf-page-table-summary-report.cs", - "title": "Create PDF Page‑to‑Row Identifier Summary Using TableAbsorber", - "description": "Demonstrates how to extract tables from each PDF page with Aspose.Pdf.Facades.TableAbsorber, read the first cell of each row as an identifier, and generate a CSV mapping page numbers to those identifiers.", + "filename": "generate-datatable-and-use-formdataconverter.cs", + "title": "Generate Datatable And Use Formdataconverter", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "generate-pdf-pages-from-datatable-with-autofiller.cs", + "title": "Generate Pdf Pages From Datatable With Autofiller", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "import-datatable-into-pdf-form-with-readonly-unique.cs", + "title": "Import DataTable with ReadOnly and Unique Columns into PDF Form", + "description": "Demonstrates how to configure DataColumn properties such as ReadOnly and Unique, create matching PDF form fields, and import the DataTable into the PDF using AutoFiller.", "tags": [ - "table-absorption", - "pdf", - "csv", - "summary", - "facades" + "DataTable", + "PDF form", + "ReadOnly", + "Unique", + "AutoFiller" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.TableAbsorber", - "Aspose.Pdf.Facades.TableAbsorber.Visit", - "Aspose.Pdf.Facades.AbsorbedTable", - "Aspose.Pdf.Facades.AbsorbedRow", - "Aspose.Pdf.Text.TextFragment" - ], - "difficulty": "intermediate" - }, + "Aspose.Pdf.Page", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.Border", + "Aspose.Pdf.Facades.AutoFiller", + "Aspose.Pdf.Facades.AutoFiller.BindPdf", + "Aspose.Pdf.Facades.AutoFiller.ImportDataTable", + "Aspose.Pdf.Facades.AutoFiller.Save" + ], + "difficulty": "intermediate" + }, { - "filename": "populate-pdf-form-fields-from-datatable.cs", - "title": "Populate PDF Form Fields from DataTable with Numeric Formatting", - "description": "Demonstrates loading a PDF template, iterating over a DataTable, formatting numeric and date values, and filling matching PDF form fields using Aspose.Pdf.", + "filename": "load-csv-to-datatable-formdata-converter.cs", + "title": "Load CSV into DataTable and Use FormDataConverter for PDF Form Mapping", + "description": "Shows how to read a CSV (as a replacement for an XLSX) into a DataTable and assign it to Aspose.Pdf.Facades.FormDataConverter for automatic PDF form filling.", "tags": [ - "pdf", - "form-filling", + "csv", "datatable", - "numeric-formatting", - "aspose-pdf" + "formdata", + "pdf", + "aspose" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.FillField", - "Aspose.Pdf.Facades.Form.Dispose", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.FormDataConverter" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "protect-pdf-with-password.cs", - "title": "Protect PDF with Password Using PdfFileSecurity", - "description": "Demonstrates how to encrypt an existing PDF with user and owner passwords, allowing printing, using 256‑bit AES via the Aspose.Pdf.Facades.PdfFileSecurity facade.", + "filename": "log-datatable-row-processing-pdf-page-creation.cs", + "title": "Log DataTable Row Processing and PDF Page Creation", + "description": "Demonstrates creating a PDF template with form fields, filling it using AutoFiller from a DataTable, and logging each DataTable row processed together with the page numbers generated in the output PDF.", "tags": [ - "pdf encryption", - "password protection", - "Aspose.Pdf", - "PdfFileSecurity", - "256-bit AES" + "pdf", + "autofiller", + "logging", + "datatable", + "form-fields" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileSecurity", - "Aspose.Pdf.Facades.PdfFileSecurity.EncryptFile", - "Aspose.Pdf.Facades.DocumentPrivilege", - "Aspose.Pdf.Facades.KeySize" + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Facades.AutoFiller", + "Aspose.Pdf.Facades.AutoFiller.BindPdf", + "Aspose.Pdf.Facades.AutoFiller.ImportDataTable", + "Aspose.Pdf.Facades.AutoFiller.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "retry-autofiller-import-transient-io.cs", - "title": "Retry AutoFiller Import on Transient I/O Errors", - "description": "Shows how to fill a PDF form with Aspose.Pdf.AutoFiller and implement a retry loop that handles transient file access exceptions.", + "filename": "map-datatable-columns-to-pdf-form-fields.cs", + "title": "Map DataTable Columns to PDF Form Fields with AutoFiller", + "description": "Demonstrates renaming DataTable columns to match PDF form field identifiers and filling the PDF using Aspose.Pdf's AutoFiller.", "tags": [ + "datatables", + "pdf-forms", "autofiller", - "pdf", - "retry", - "transient-io", - "form-filling" + "field-mapping", + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.AutoFiller", + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Annotations.Border", + "Aspose.Pdf.Annotations.BorderStyle", "Aspose.Pdf.Facades.AutoFiller.BindPdf", "Aspose.Pdf.Facades.AutoFiller.ImportDataTable", "Aspose.Pdf.Facades.AutoFiller.Save" @@ -21297,138 +25641,224 @@ "difficulty": "intermediate" }, { - "filename": "save-filled-pdf-preserve-layout.cs", - "title": "Save Filled PDF While Preserving Layout", - "description": "Shows how to use Aspose.Pdf.Facades.Form to fill a form field and save the PDF to a new file, keeping the original page layout unchanged.", + "filename": "merge-filled-pdf-forms-from-datatables.cs", + "title": "Merge Filled Pdf Forms From Datatables", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "merge-filled-pdfs-from-datatables.cs", + "title": "Merge Multiple Filled PDFs from DataTables into a Single PDF", + "description": "The example creates a PDF form template from a DataTable, fills separate PDFs for each DataTable using AutoFiller, and then concatenates the filled documents into one consolidated PDF.", "tags": [ "pdf", - "form", - "save", - "layout", - "aspose" + "merge", + "autofill", + "datatable", + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.FillField", - "Aspose.Pdf.Facades.Form.Save", - "Aspose.Pdf.Facades.Form.Close" + "AutoFiller", + "AutoFiller.BindPdf", + "AutoFiller.ImportDataTable", + "AutoFiller.Save", + "PdfFileEditor", + "PdfFileEditor.Concatenate", + "Document", + "TextBoxField" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "split-filled-pdf-into-single-page-pdfs.cs", - "title": "Split Filled PDF into Single‑Page PDFs", - "description": "Shows how to split a filled PDF document into separate one‑page PDF files using Aspose.Pdf.Facades.", + "filename": "pdf-one-page-per-datarow.cs", + "title": "Create PDF with One Page per DataTable Row", + "description": "Shows how to generate a PDF where each row of a DataTable is placed on a separate page using Aspose.Pdf tables and pages.", "tags": [ - "pdf-split", - "single-page", - "aspose-pdf", - "csharp", - "facades" + "pdf", + "datatable", + "table", + "pages", + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.SplitToPages" + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Table", + "Aspose.Pdf.Row", + "Aspose.Pdf.Cell", + "Aspose.Pdf.Text.TextFragment" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "split-pdf-custom-names.cs", - "title": "Split PDF into Pages with Custom File Names from DataTable", - "description": "Demonstrates splitting a PDF into individual page streams and saving each page using a custom file name taken from a DataTable column.", + "filename": "pdf-page-identifier-summary-report.cs", + "title": "Generate PDF Page‑to‑Identifier Summary Report", + "description": "The example opens a PDF, extracts a table identifier from each page using TableAbsorber, falls back to a DataTable mapping, and writes a CSV that lists page numbers with their corresponding row identifiers.", "tags": [ - "pdf-splitting", - "custom-filename", + "pdf", + "summary", "datatable", - "aspose-pdf", - "csharp" + "csv", + "tableabsorber" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.SplitToPages" + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TableAbsorber", + "Aspose.Pdf.Text.TableAbsorber.Visit", + "Aspose.Pdf.Text.TextFragment" ], "difficulty": "intermediate" }, { - "filename": "stream-large-csv-data-into-pdf-forms.cs", - "title": "Stream Large CSV Data into PDF Forms with AutoFiller", - "description": "Shows how to read a CSV file in batches, import each batch into Aspose.Pdf's AutoFiller to fill PDF form fields, and save the merged PDF while keeping memory usage low.", + "filename": "pdf-page-table-summary-report.cs", + "title": "Pdf Page Table Summary Report", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "populate-pdf-form-fields-from-datatable.cs", + "title": "Populate Pdf Form Fields From Datatable", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "protect-pdf-with-password.cs", + "title": "Protect Pdf With Password", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "retry-autofiller-import-transient-errors.cs", + "title": "Retry AutoFiller Import with Transient File Access Handling", + "description": "Demonstrates using Aspose.Pdf's AutoFiller within a retry loop to handle transient I/O and access exceptions when binding a PDF template and importing a DataTable.", "tags": [ "autofiller", - "pdf-forms", - "batch-processing", - "csv", - "streaming" + "retry", + "pdf", + "data-import", + "exception-handling" ], "apis_used": [ "Aspose.Pdf.Facades.AutoFiller", "Aspose.Pdf.Facades.AutoFiller.BindPdf", "Aspose.Pdf.Facades.AutoFiller.ImportDataTable", - "Aspose.Pdf.Facades.AutoFiller.Save", - "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Facades.AutoFiller.Save" ], "difficulty": "intermediate" }, { - "filename": "validate-filled-pdf-fields-against-datatable.cs", - "title": "Validate Filled PDF Fields Against DataTable Values", - "description": "Demonstrates filling a PDF form from a DataTable using AutoFiller and verifying each form field value matches the original data in a unit test.", + "filename": "retry-autofiller-import-transient-io.cs", + "title": "Retry Autofiller Import Transient Io", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "save-filled-pdf-preserve-layout.cs", + "title": "Save Filled Pdf Preserve Layout", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "split-filled-pdf-into-single-page-pdfs.cs", + "title": "Split Filled PDF into Single‑Page PDFs", + "description": "Demonstrates how to split a filled PDF into separate one‑page PDF files using Aspose.Pdf.Facades.PdfFileEditor.", "tags": [ - "pdf", - "form", - "autofiller", - "unittest", - "datatable" + "pdf split", + "single page", + "aspose pdf", + "facade", + "c#" ], "apis_used": [ - "AutoFiller", - "AutoFiller.BindPdf", - "AutoFiller.ImportDataTable", - "AutoFiller.Save", - "Form", - "Form.GetField" + "Aspose.Pdf.Facades.PdfFileEditor", + "Aspose.Pdf.Facades.PdfFileEditor.SplitToPages" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "validate-pdf-size-after-filling-form.cs", - "title": "Validate PDF Size After Filling Form with DataTable", - "description": "Demonstrates how to bind a PDF template, fill it with rows from a DataTable using AutoFiller, save the result, and verify that the generated PDF does not exceed a predefined size limit.", + "filename": "split-pdf-custom-names.cs", + "title": "Split Pdf Custom Names", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "stream-large-csv-data-into-pdf-forms.cs", + "title": "Stream Large Csv Data Into Pdf Forms", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "validate-filled-pdf-fields-against-datatable-values.cs", + "title": "Validate Filled PDF Fields Against DataTable Values", + "description": "Demonstrates filling a PDF form with AutoFiller using a DataTable, then reading the fields via the Form facade and asserting that each field matches the original DataTable values.", "tags": [ "pdf", - "form-filling", - "datatable", - "validation", - "size-limit" + "form", + "autofiller", + "unittest", + "datatable" ], "apis_used": [ "Aspose.Pdf.Facades.AutoFiller", "Aspose.Pdf.Facades.AutoFiller.BindPdf", "Aspose.Pdf.Facades.AutoFiller.ImportDataTable", "Aspose.Pdf.Facades.AutoFiller.Save", - "Aspose.Pdf.Facades.AutoFiller.Dispose" + "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.Form.GetField" ], "difficulty": "intermediate" }, + { + "filename": "validate-filled-pdf-fields-against-datatable.cs", + "title": "Validate Filled Pdf Fields Against Datatable", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "validate-pdf-size-after-filling-form.cs", + "title": "Validate Pdf Size After Filling Form", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "validate-required-pdf-form-fields.cs", - "title": "Validate Required PDF Form Fields Against DataTable Columns", - "description": "Shows how to ensure every required AcroForm field in a PDF has a matching column in a DataTable before importing data with AutoFiller.", + "title": "Validate Required PDF Form Fields with DataTable", + "description": "Demonstrates checking that every required field in a PDF form has a matching column in a DataTable before importing data, and then fills the form using Aspose.Pdf.", "tags": [ "pdf", "form", "validation", "datatable", - "autofiller" + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.AutoFiller", "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.Form.IsRequiredField", + "Aspose.Pdf.Facades.Form.FillField", + "Aspose.Pdf.Facades.Form.Save", + "Aspose.Pdf.Facades.Form.FieldNames" ], "difficulty": "intermediate" } @@ -21436,158 +25866,235 @@ }, { "name": "facades-forms", - "file_count": 85, + "file_count": 132, "files": [ + "add-confirmation-dialog-to-pdf-submit-button.cs", "add-digital-signature-field-and-sign-pdf.cs", "add-email-validation-javascript-to-pdf-form-field.cs", "add-email-validation-script-to-pdf-form-field.cs", + "add-email-validation-to-pdf-form-field.cs", + "add-form-load-javascript-to-pdf.cs", "add-gender-radio-button-group-to-pdf.cs", + "add-gender-radio-button-group.cs", "add-hidden-authtoken-field-to-pdf.cs", "add-hidden-numeric-version-field.cs", "add-hidden-sessionid-field-to-pdfs.cs", + "add-hidden-version-field-to-pdf.cs", "add-input-mask-to-pdf-form-field.cs", - "add-javascript-populate-date-field.cs", + "add-javascript-alert-to-push-button.cs", "add-javascript-to-quantity-field-total-price.cs", "add-list-box-field-to-pdf-form.cs", "add-list-item-to-dropdown-field.cs", + "add-list-item-to-pdf-dropdown.cs", + "add-print-button-to-pdf.cs", "add-print-dialog-button-to-pdf.cs", "add-radio-button-group-to-pdf-form.cs", "add-reset-form-button-to-pdf.cs", "add-state-combo-box-to-pdf-form.cs", + "add-state-combobox-to-pdf.cs", "add-submit-button-to-pdf-form.cs", "add-text-field-to-pdf-page.cs", "add-unchecked-checkbox-field-to-pdf-page.cs", + "add-unchecked-checkbox-field-to-pdf.cs", "apply-consistent-decoration-to-checkbox-fields.cs", "apply-custom-font-to-pdf-form-text-fields.cs", "apply-default-decoration-to-text-fields.cs", + "apply-phone-number-input-mask.cs", "attach-confirmation-js-to-pdf-submit-button.cs", "attach-javascript-alert-to-pdf-push-button.cs", + "attach-javascript-clear-discountcode-field.cs", + "attach-javascript-to-pdf-form-field.cs", "attach-javascript-to-resetform-that-also-clears-hidden-fields-during-reset.cs", "attach-javascript-validation-to-pdf-form-field.cs", + "attach-js-resetform-clear-hidden-fields.cs", "attach-js-validation-to-pdf-submit-button.cs", "batch-add-hidden-processeddate-field.cs", "batch-add-selectall-checkbox-to-pdf.cs", "batch-rename-pdf-form-fields.cs", "batch-update-submit-button-urls.cs", "clear-and-populate-dropdown-list.cs", + "clear-and-populate-list-box-field.cs", "clear-pdf-form-field-on-focus.cs", + "clone-form-field-to-page-5.cs", "convert-single-line-to-multi-line-address-field.cs", + "convert-single-line-to-multiline-word-wrap.cs", + "copy-field-content-between-pdf-form-fields.cs", "copy-form-field-definitions-to-pdf.cs", "copy-form-field-to-another-page.cs", "copy-form-field-to-new-field-on-page.cs", + "copy-form-fields-from-template-to-pdf.cs", + "copy-image-field-to-another-field.cs", "copy-image-form-field-to-another.cs", "copy-notes-to-summary.cs", "copy-pdf-form-field-content.cs", + "copy-rename-pdf-form-field.cs", "create-pdf-form-fields-from-json.cs", + "decorate-checkbox-fields-in-pdfs.cs", "decorate-list-box-fields.cs", + "decorate-list-fields-uniform-border.cs", "decorate-pdf-form-field-appearance.cs", "decorate-pdf-form-field-background-image.cs", + "decorate-pdf-form-field-with-header-image.cs", "duplicate-pdf-form-field.cs", "enable-rich-text-formatting-for-pdf-form-field.cs", + "export-checkbox-fields-to-fdf.cs", "export-checkboxes-to-fdf.cs", "export-import-pdf-form-fields-xml.cs", + "export-import-pdf-form-xml.cs", "export-pdf-form-field-layout-to-json.cs", "export-pdf-form-fields-to-fdf.cs", "export-pdf-form-fields-to-json.cs", "hide-form-field-exportable.cs", "import-checkboxes-from-fdf.cs", "import-form-field-layout-from-json.cs", + "import-pdf-form-fields-from-xml-preserve-order.cs", "import-pdf-form-fields-from-xml.cs", + "import-pdf-form-layout-from-json.cs", "import-xfdf-data-into-pdf-form-fields.cs", + "import-xfdf-data-into-pdf-form.cs", + "make-taxrate-readonly-add-js.cs", + "mark-pdf-form-field-required.cs", + "merge-pdf-forms-unique-field-names.cs", "merge-pdfs-unique-form-fields.cs", + "move-footernote-to-bottom-margin.cs", "move-form-field-to-bottom-margin.cs", "move-pdf-form-field-to-top-left.cs", "move-pdf-form-field.cs", "move-pdf-form-fields-by-offset.cs", "move-pdf-form-fields-page-2.cs", "move-signature-field-to-lower-right-corner-page-5.cs", + "move-signature-field-to-lower-right-corner.cs", + "populate-country-list-box-pdf.cs", "populate-pdf-listbox-with-country-names.cs", "remove-button-fields-from-pdf-form.cs", "remove-empty-pdf-form-field.cs", "remove-form-field-from-pdf.cs", "remove-list-item-from-pdf-form-field.cs", + "remove-list-item-from-pdf-form.cs", + "remove-non-whitelisted-items-from-pdf-combo-box.cs", + "remove-pdf-form-field.cs", "remove-temporary-form-fields-from-pdf.cs", "rename-pdf-form-field.cs", + "rename-pdf-form-fields-csv-mapping.cs", "rename-pdf-form-fields-from-csv.cs", "rename-pdf-form-fields-to-camelcase.cs", + "restrict-pdf-form-field-to-integer-0-100.cs", "restrict-pdf-form-field-to-integer-range.cs", + "set-custom-attribute-on-pdf-form-field.cs", "set-custom-image-background-for-signature-field.cs", "set-date-field-format-in-pdf.cs", + "set-date-field-format.cs", + "set-field-appearance-format-price.cs", "set-form-field-alignment-to-center.cs", "set-form-field-background-color.cs", + "set-form-field-readonly-currency-appearance.cs", "set-numeric-limit-for-pdf-form-field.cs", "set-numeric-two-decimal-validation.cs", + "set-numeric-validation-two-decimal-discount.cs", "set-pdf-form-field-attribute.cs", + "set-pdf-form-field-hidden-exportable.cs", "set-pdf-form-field-required.cs", "set-phone-number-field-limit.cs", + "set-rich-text-appearance-for-pdf-form-field.cs", "set-signature-field-border-width.cs", "set-taxrate-readonly-calc-js.cs", - "set-text-field-multiline.cs" + "set-text-field-multiline.cs", + "set-text-field-to-multiline.cs" ], "required_namespaces": [ "Aspose.Pdf.Facades", "Aspose.Pdf", "Aspose.Pdf.Forms", "Aspose.Pdf.Annotations", - "Aspose.Pdf.Drawing", "Aspose.Pdf.Text" ], "key_apis": [ "FormEditor", "Form", "JavascriptAction", - "PdfFileStamp", "PdfContentEditor", "PdfFileEditor", - "PdfPageEditor" + "PdfFileStamp", + "PdfPageEditor", + "StringBuilder" ], "examples": [ + { + "filename": "add-confirmation-dialog-to-pdf-submit-button.cs", + "title": "Add Confirmation Dialog to PDF Submit Button", + "description": "Shows how to use Aspose.Pdf.Facades.FormEditor to attach JavaScript that displays a confirmation dialog before submitting a PDF form.", + "tags": [ + "pdf", + "javascript", + "form", + "confirmation", + "facade" + ], + "apis_used": [ + "FormEditor", + "FormEditor.BindPdf", + "FormEditor.AddFieldScript", + "FormEditor.Save", + "FormEditor.Dispose" + ], + "difficulty": "beginner" + }, { "filename": "add-digital-signature-field-and-sign-pdf.cs", - "title": "Add Digital Signature Field and Sign PDF with Appearance", - "description": "Demonstrates how to add a signature form field named \"DigitalSignature\" to a PDF using FormEditor, set a graphic appearance, and digitally sign the field with a certificate via PdfFileSignature and PKCS1.", + "title": "Add Digital Signature Field and Sign PDF", + "description": "Shows how to add a visible signature field to a PDF page and apply a digital signature using Aspose.Pdf facades.", "tags": [ "digital-signature", - "pdf-form", - "signature-appearance", - "aspose-pdf", - "facades" + "pdf", + "form-editor", + "pdffilesignature", + "csharp" ], "apis_used": [ - "FormEditor", + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.FormEditor", + "Aspose.Pdf.Facades.PdfFileSignature", + "Aspose.Pdf.Forms.PKCS1", "FormEditor.AddField", - "PdfFileSignature", - "PdfFileSignature.SignatureAppearance", - "PdfFileSignature.SetCertificate", - "PdfFileSignature.Sign", - "PKCS1" + "PdfFileSignature.BindPdf", + "PdfFileSignature.Sign" ], "difficulty": "intermediate" }, { "filename": "add-email-validation-javascript-to-pdf-form-field.cs", "title": "Add Email Validation JavaScript to PDF Form Field", - "description": "Demonstrates how to load a PDF, locate a text box field named \"Email\", and attach JavaScript that validates the email format on the blur (lost focus) event.", + "description": "Demonstrates how to attach a JavaScript action to the \"Email\" form field that validates the email format on the blur (lost focus) event using Aspose.Pdf.", "tags": [ "pdf", "javascript", - "form", + "form-field", "validation", - "email" + "aspose-pdf" ], "apis_used": [ + "Aspose.Pdf.Facades.FormEditor", + "Aspose.Pdf.Facades.FormEditor.BindPdf", + "Aspose.Pdf.Facades.FormEditor.Save", "Aspose.Pdf.Document", "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.JavascriptAction" ], "difficulty": "intermediate" }, { "filename": "add-email-validation-script-to-pdf-form-field.cs", - "title": "Add Email Validation Script to PDF Form Field", - "description": "Demonstrates how to attach a JavaScript regular‑expression validation script to an \"Email\" form field in a PDF using Aspose.Pdf.Facades.FormEditor.", + "title": "Add Email Validation Script To Pdf Form Field", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-email-validation-to-pdf-form-field.cs", + "title": "Add Email Validation to PDF Form Field", + "description": "Demonstrates how to attach JavaScript to a PDF form field using Aspose.Pdf to validate email addresses with a regular expression.", "tags": [ "pdf", "form", @@ -21596,303 +26103,335 @@ "email" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.FormEditor", - "FormEditor.BindPdf", - "FormEditor.SetFieldScript", - "FormEditor.Save" + "Aspose.Pdf.Facades.FormEditor.SetFieldScript", + "Aspose.Pdf.Facades.FormEditor.Save", + "Aspose.Pdf.Facades.FormEditor.SetFieldAttribute" + ], + "difficulty": "intermediate" + }, + { + "filename": "add-form-load-javascript-to-pdf.cs", + "title": "Add Form Load JavaScript to PDF", + "description": "Demonstrates how to attach a document‑level JavaScript action that populates a form field named \"Date\" with the current date when the PDF is opened, using Aspose.Pdf.Facades.", + "tags": [ + "javascript", + "pdf", + "form", + "document-open", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfContentEditor", + "PdfContentEditor.BindPdf", + "PdfContentEditor.AddDocumentAdditionalAction", + "PdfContentEditor.Save", + "PdfContentEditor.DocumentOpen" ], "difficulty": "beginner" }, { "filename": "add-gender-radio-button-group-to-pdf.cs", - "title": "Add Gender Radio Button Group to PDF", - "description": "Shows how to insert a radio button group named \"Gender\" with options Male, Female, and Other into an existing PDF using Aspose.Pdf.Facades.FormEditor.", + "title": "Add Gender Radio Button Group To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-gender-radio-button-group.cs", + "title": "Add Gender Radio Button Group to PDF Form", + "description": "Shows how to insert a radio button group named \"Gender\" with options Male, Female, and Other, and set a default selection in an existing PDF using Aspose.Pdf.", "tags": [ "pdf", "form", - "radio", + "radio-button", "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.AddField", - "Aspose.Pdf.Facades.FormEditor.Save", - "Aspose.Pdf.Facades.FormEditor.Items", - "Aspose.Pdf.Facades.FormEditor.RadioHoriz" + "FormEditor.BindPdf", + "FormEditor.AddField", + "FormEditor.Save", + "Aspose.Pdf.Facades.FieldType" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "add-hidden-authtoken-field-to-pdf.cs", "title": "Add Hidden AuthToken Field to PDF", - "description": "Shows how to generate a cryptographically secure token and embed it as a hidden text box form field in a PDF using Aspose.Pdf.", + "description": "Generates a secure random token, creates a zero‑size hidden TextBoxField named AuthToken, adds it to the PDF form, and saves the modified document.", "tags": [ "pdf", - "form-field", - "hidden", - "authtoken", + "hidden-field", + "auth-token", + "aspose-pdf", "security" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.TextBoxField", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Forms.Form.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "add-hidden-numeric-version-field.cs", - "title": "Add Hidden Numeric Version Field to PDF", - "description": "Shows how to create a hidden numeric text field named \"Version\" in a PDF using Aspose.Pdf and save the modified document.", - "tags": [ - "pdf", - "form", - "hidden-field", - "version", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.AnnotationFlags", - "Aspose.Pdf.Document.Form.Add", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner" + "title": "Add Hidden Numeric Version Field", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "add-hidden-sessionid-field-to-pdfs.cs", - "title": "Add Hidden SessionId Field to PDFs in Batch", - "description": "Shows how to loop through PDF files in a folder, bind each with Aspose.Pdf.Facades.Form, create a zero‑size hidden TextBoxField named SessionId containing a generated GUID, add it to the document's AcroForm, and save the modified PDF.", - "tags": [ - "pdf", - "hidden-field", - "batch-processing", - "guid", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.BindPdf", - "Aspose.Pdf.Facades.Form.Save", - "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Document.Form.Add" - ], - "difficulty": "intermediate" + "title": "Add Hidden Sessionid Field To Pdfs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "add-input-mask-to-pdf-form-field.cs", - "title": "Add Input Mask to PDF Form Field", - "description": "Shows how to bind a PDF to the FormEditor facade and attach JavaScript that enforces a phone number mask (###) ###‑#### on a form field.", + "filename": "add-hidden-version-field-to-pdf.cs", + "title": "Add Hidden Version Field to PDF", + "description": "Shows how to insert a hidden numeric field named \"Version\" with a value of 2 into a PDF using Aspose.Pdf's FormEditor facade.", "tags": [ "pdf", "form", - "input-mask", - "javascript", + "hidden-field", + "version", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.FormEditor", "Aspose.Pdf.Facades.FormEditor.BindPdf", - "Aspose.Pdf.Facades.FormEditor.AddFieldScript", + "Aspose.Pdf.Facades.FormEditor.AddField", + "Aspose.Pdf.Facades.FormEditor.SetFieldAttribute", "Aspose.Pdf.Facades.FormEditor.Save" ], "difficulty": "intermediate" }, { - "filename": "add-javascript-populate-date-field.cs", - "title": "Add JavaScript to Populate Date Field on PDF Open", - "description": "Demonstrates how to attach a JavaScript action to a PDF that sets the \"Date\" form field to the current date when the document is opened, using Aspose.Pdf.Facades.", - "tags": [ - "javascript", - "pdf", - "form-field", - "aspose-pdf", - "facades" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "PdfContentEditor.BindPdf", - "PdfContentEditor.AddDocumentAdditionalAction", - "PdfContentEditor.Save", - "PdfContentEditor.DocumentOpen" - ], - "difficulty": "beginner" + "filename": "add-input-mask-to-pdf-form-field.cs", + "title": "Add Input Mask To Pdf Form Field", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "add-javascript-to-quantity-field-total-price.cs", - "title": "Add JavaScript to Quantity Field for Total Price Calculation", - "description": "Shows how to attach a JavaScript action to a PDF form field using Aspose.Pdf so that when the Quantity field changes, the TotalPrice field is automatically recalculated from a hidden UnitPrice field.", + "filename": "add-javascript-alert-to-push-button.cs", + "title": "Add JavaScript Alert to Push Button in PDF", + "description": "Shows how to create a PDF with a push‑button field and attach a JavaScript alert that displays when the button is clicked using Aspose.Pdf.", "tags": [ + "pdf", "javascript", - "pdf-form", - "aspose-pdf", - "field-script", - "calculation" + "form", + "button", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.FormEditor", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.ButtonField", + "Aspose.Pdf.Forms.Form.Add", + "Aspose.Pdf.Facades.FormEditor.BindPdf", "Aspose.Pdf.Facades.FormEditor.AddFieldScript", "Aspose.Pdf.Facades.FormEditor.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" + }, + { + "filename": "add-javascript-to-quantity-field-total-price.cs", + "title": "Add Javascript To Quantity Field Total Price", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "add-list-box-field-to-pdf-form.cs", "title": "Add List Box Field to PDF Form", - "description": "Shows how to insert a ListBox form field named \"Priority\" with items Low, Medium, High and a default value Medium into an existing PDF using Aspose.Pdf.Facades.", + "description": "Demonstrates how to create a ListBox form field in a PDF, populate it with items, set a default value, and save the updated document using Aspose.Pdf.", "tags": [ + "pdf", + "form", "listbox", - "pdf-form", "aspose", - "csharp", - "formeditor" + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.FormEditor", "Aspose.Pdf.Facades.FormEditor.BindPdf", - "Aspose.Pdf.Facades.FormEditor.Items", "Aspose.Pdf.Facades.FormEditor.AddField", - "Aspose.Pdf.Facades.FormEditor.Save", - "Aspose.Pdf.Facades.FieldType" + "Aspose.Pdf.Facades.FormEditor.Items", + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "add-list-item-to-dropdown-field.cs", - "title": "Add List Item to Dropdown Field in PDF", - "description": "Demonstrates how to use Aspose.Pdf.Facades.FormEditor to add a new option to an existing dropdown (combo box) form field on a specific page of a PDF and save the result.", + "title": "Add List Item To Dropdown Field", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-list-item-to-pdf-dropdown.cs", + "title": "Add List Item to PDF Dropdown Field", + "description": "Shows how to add a new option to a combo box (dropdown) form field in a PDF using Aspose.Pdf.Facades.FormEditor.", "tags": [ "pdf", "form", "dropdown", - "aspose", - "facades" + "list-item", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.FormEditor", "FormEditor.AddListItem", - "FormEditor.Save" + "FormEditor.Save", + "FormEditor.Dispose", + "FormEditor(string sourcePdfPath, string destinationPdfPath)" ], "difficulty": "beginner" }, { - "filename": "add-print-dialog-button-to-pdf.cs", - "title": "Add Print Dialog Button to PDF", - "description": "Shows how to insert a push button into a PDF that triggers the browser's print dialog via JavaScript using Aspose.Pdf.", + "filename": "add-print-button-to-pdf.cs", + "title": "Add Print Button to PDF Using Aspose.Pdf", + "description": "Shows how to insert a push‑button form field that triggers the PDF print dialog via JavaScript in an existing PDF document.", "tags": [ "pdf", "form", - "push-button", + "print", "javascript", - "print" + "button" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.FormEditor", + "Aspose.Pdf.Facades.FormEditor.BindPdf", "Aspose.Pdf.Facades.FormEditor.AddField", "Aspose.Pdf.Facades.FormEditor.AddFieldScript", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.FormEditor.Save", + "Aspose.Pdf.Facades.FieldType" ], "difficulty": "beginner" }, + { + "filename": "add-print-dialog-button-to-pdf.cs", + "title": "Add Print Dialog Button To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "add-radio-button-group-to-pdf-form.cs", "title": "Add Radio Button Group to PDF Form", - "description": "Shows how to create a radio button group named \"PaymentMethod\" with options \"Credit\" and \"PayPal\" on page 3 of a PDF using Aspose.Pdf.Facades.FormEditor.", + "description": "Shows how to create a radio button group named \"PaymentMethod\" with options \"Credit\" and \"PayPal\" on page 3 of an existing PDF using Aspose.Pdf Facades.", "tags": [ "radio-button", "pdf-form", "aspose-pdf", - "facade", + "facades", "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.BindPdf", "Aspose.Pdf.Facades.FormEditor.AddField", "Aspose.Pdf.Facades.FormEditor.Save", - "Aspose.Pdf.Facades.FieldType" + "Aspose.Pdf.Facades.FormEditor.Items", + "Aspose.Pdf.Facades.FormEditor.RadioGap", + "Aspose.Pdf.Facades.FormEditor.RadioHoriz", + "Aspose.Pdf.FieldType" ], "difficulty": "beginner" }, { "filename": "add-reset-form-button-to-pdf.cs", "title": "Add Reset Form Button to PDF", - "description": "Shows how to insert a push‑button field that resets all form fields in a PDF using Aspose.Pdf Facades.", + "description": "Demonstrates how to insert a push button into a PDF that clears all form fields when clicked, using Aspose.Pdf.Facades.", "tags": [ "pdf", "form", - "reset", - "push-button", - "javascript" + "reset-button", + "javascript", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.BindPdf", "Aspose.Pdf.Facades.FormEditor.AddField", "Aspose.Pdf.Facades.FormEditor.AddFieldScript", - "Aspose.Pdf.Facades.FormEditor.Save" + "Aspose.Pdf.Facades.FieldType" ], "difficulty": "beginner" }, { "filename": "add-state-combo-box-to-pdf-form.cs", + "title": "Add State Combo Box To Pdf Form", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-state-combobox-to-pdf.cs", "title": "Add State Combo Box to PDF Form", - "description": "Shows how to insert a combo box field named \"State\" into an existing PDF form and fill it with US state abbreviations using Aspose.Pdf.Facades.", + "description": "Shows how to insert a combo box field named \"State\" into an existing PDF and fill it with US state abbreviations using Aspose.Pdf.Facades.", "tags": [ "pdf", "form", "combobox", "aspose", - "csharp" + "us-states" ], "apis_used": [ "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.AddField", - "Aspose.Pdf.Facades.FormEditor.AddListItem", - "Aspose.Pdf.Facades.FormEditor.Save", - "Aspose.Pdf.Facades.FieldType" + "Aspose.Pdf.Facades.FieldType", + "FormEditor.AddField", + "FormEditor.AddListItem", + "FormEditor.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "add-submit-button-to-pdf-form.cs", "title": "Add Submit Button to PDF Form", - "description": "Shows how to insert a submit button into a PDF form on page 1 using Aspose.Pdf.Facades.FormEditor and save the updated PDF.", + "description": "Shows how to insert a submit button on page 1 of a PDF form that posts the form data to a specified URL using Aspose.Pdf.Facades.", "tags": [ "pdf", "form", "submit-button", - "aspose", - "csharp" + "facades", + "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.FormEditor", "Aspose.Pdf.Facades.FormEditor.AddSubmitBtn", - "Aspose.Pdf.Facades.FormEditor.Save" + "Aspose.Pdf.Facades.FormEditor.Save", + "Aspose.Pdf.Facades.FormEditor.Close" ], "difficulty": "beginner" }, { "filename": "add-text-field-to-pdf-page.cs", "title": "Add Text Field to PDF Page", - "description": "Shows how to insert a text form field named 'CustomerName' on page 1 of a PDF using the Aspose.Pdf Facades API.", + "description": "Shows how to insert a text form field named \"CustomerName\" on page 1 of an existing PDF using Aspose.Pdf.Facades.FormEditor.", "tags": [ "pdf", "form", "textfield", - "facades", - "aspnet" + "aspose", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.FormEditor", @@ -21905,123 +26444,156 @@ }, { "filename": "add-unchecked-checkbox-field-to-pdf-page.cs", + "title": "Add Unchecked Checkbox Field To Pdf Page", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-unchecked-checkbox-field-to-pdf.cs", "title": "Add Unchecked Checkbox Field to PDF Page", - "description": "Shows how to insert a checkbox form field on a specific PDF page and set its default state to unchecked using Aspose.Pdf.", + "description": "Demonstrates how to insert a checkbox form field on a specific PDF page and set its default state to unchecked using Aspose.Pdf.", "tags": [ "checkbox", "form", "pdf", - "Aspose.Pdf", - "page" + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.FormEditor", "Aspose.Pdf.Facades.FormEditor.AddField", - "Aspose.Pdf.Forms.FieldType", - "Aspose.Pdf.Forms.CheckboxField" + "Aspose.Pdf.Forms.CheckboxField", + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "apply-consistent-decoration-to-checkbox-fields.cs", - "title": "Apply Consistent Decoration to All Checkbox Fields in PDFs", - "description": "Shows how to batch‑process PDFs in a directory, configure visual attributes with FormFieldFacade, and apply those attributes to every checkbox field using FormEditor.", - "tags": [ - "pdf", - "form", - "checkbox", - "decoration", - "batch" - ], - "apis_used": [ - "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.DecorateField", - "Aspose.Pdf.Facades.FormFieldFacade", - "Aspose.Pdf.Facades.FieldType" - ], - "difficulty": "intermediate" + "title": "Apply Consistent Decoration To Checkbox Fields", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "apply-custom-font-to-pdf-form-text-fields.cs", "title": "Apply Custom Font to All PDF Form Text Fields", - "description": "Demonstrates how to set a custom font (Arial Bold) for every text form field in a PDF using Aspose.Pdf Facades.", + "description": "Demonstrates how to set a custom font (e.g., Arial Bold) for every text field in a PDF form using Aspose.Pdf's FormEditor and FormFieldFacade.", "tags": [ "pdf", - "form-fields", + "form", "custom-font", "facade", "aspnet" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.FormEditor", "Aspose.Pdf.Facades.FormFieldFacade", + "Aspose.Pdf.Facades.FieldType", "Aspose.Pdf.Facades.FormEditor.DecorateField", - "Aspose.Pdf.Facades.FieldType" + "Aspose.Pdf.Facades.FormEditor.Facade" ], "difficulty": "beginner" }, { "filename": "apply-default-decoration-to-text-fields.cs", "title": "Apply Default Decoration to All Text Form Fields", - "description": "Shows how to configure a FormFieldFacade with visual attributes and use FormEditor to decorate every text form field in a PDF document.", + "description": "Shows how to set default visual attributes via FormFieldFacade and apply them to every text field in a PDF using FormEditor.", "tags": [ "form-fields", "decoration", - "facade", - "pdf", - "Aspose.Pdf" + "Aspose.Pdf", + "FormEditor", + "Facade" ], "apis_used": [ "Aspose.Pdf.Facades.FormEditor", "Aspose.Pdf.Facades.FormFieldFacade", + "Aspose.Pdf.Facades.FieldType", "Aspose.Pdf.Facades.FormEditor.DecorateField", - "Aspose.Pdf.Facades.FormEditor.Save", - "Aspose.Pdf.Facades.FieldType" + "Aspose.Pdf.Facades.FormEditor.Save" ], "difficulty": "beginner" }, { - "filename": "attach-confirmation-js-to-pdf-submit-button.cs", - "title": "Attach Confirmation JavaScript to PDF Submit Button", - "description": "Demonstrates using Aspose.Pdf.Facades.FormEditor to set a submit URL, configure the submit flag, and attach JavaScript that shows a confirmation dialog before submitting the PDF form.", + "filename": "apply-phone-number-input-mask.cs", + "title": "Apply Phone Number Input Mask to PDF Form Field", + "description": "Demonstrates how to attach JavaScript to a PDF form field using Aspose.Pdf to enforce a phone number input mask \"(###) ###‑####\".", "tags": [ "pdf", - "javascript", "form", - "submit", - "confirmation" + "javascript", + "input-mask", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.BindPdf", - "Aspose.Pdf.Facades.FormEditor.SetSubmitUrl", - "Aspose.Pdf.Facades.FormEditor.SetSubmitFlag", - "Aspose.Pdf.Facades.FormEditor.AddFieldScript", - "Aspose.Pdf.Facades.FormEditor.Save" + "Aspose.Pdf.Facades.FormEditor.SetFieldScript", + "Aspose.Pdf.Facades.FormEditor.Save", + "Aspose.Pdf.Facades.FormEditor.Close" ], - "difficulty": "intermediate" + "difficulty": "beginner" + }, + { + "filename": "attach-confirmation-js-to-pdf-submit-button.cs", + "title": "Attach Confirmation Js To Pdf Submit Button", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "attach-javascript-alert-to-pdf-push-button.cs", - "title": "Attach JavaScript Alert to PDF Push Button", - "description": "Shows how to use Aspose.Pdf.Facades.FormEditor to set a JavaScript action on a push‑button field so that an alert is displayed when the button is clicked.", + "title": "Attach Javascript Alert To Pdf Push Button", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "attach-javascript-clear-discountcode-field.cs", + "title": "Clear PDF Form Field on Focus with JavaScript", + "description": "Demonstrates how to attach a JavaScript action to a PDF form field using Aspose.Pdf so that the field is cleared when it receives focus.", "tags": [ + "pdf", "javascript", - "pdf-form", - "push-button", - "aspose.pdf", - "form-editor" + "form-field", + "focus", + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.BindPdf", - "Aspose.Pdf.Facades.FormEditor.SetFieldScript", - "Aspose.Pdf.Facades.FormEditor.Save" + "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Forms.Field.Actions", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, + { + "filename": "attach-javascript-to-pdf-form-field.cs", + "title": "Attach JavaScript to PDF Form Field for Auto-Calculating Total Price", + "description": "Shows how to load a PDF, retrieve the Quantity and TotalPrice form fields, attach a JavaScript OnCalculate action that computes TotalPrice from Quantity and UnitPrice, and save the modified document.", + "tags": [ + "pdf", + "javascript", + "form", + "calculation", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.FormField", + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "intermediate" + }, { "filename": "attach-javascript-to-resetform-that-also-clears-hidden-fields-during-reset.cs", "title": "Attach Javascript To Resetform That Also Clears Hidden Fields During Reset", @@ -22033,65 +26605,72 @@ { "filename": "attach-javascript-validation-to-pdf-form-field.cs", "title": "Attach JavaScript Validation to PDF Form Field", - "description": "Shows how to load a PDF, use the FormEditor facade to attach a JavaScript script to the \"Age\" form field that alerts the user when the entered value is less than 18, and then save the modified document.", + "description": "Shows how to bind a PDF, add a JavaScript script to the \"Age\" form field that displays a warning when the entered value is less than 18, and save the modified PDF.", "tags": [ - "pdf", "javascript", - "form", + "pdf-form", "validation", - "aspose" + "aspose-pdf", + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.FormEditor", + "Aspose.Pdf.Facades.FormEditor.BindPdf", "Aspose.Pdf.Facades.FormEditor.SetFieldScript", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.FormEditor.Save" ], "difficulty": "beginner" }, { - "filename": "attach-js-validation-to-pdf-submit-button.cs", - "title": "Attach JavaScript Validation to PDF Submit Button", - "description": "Shows how to use Aspose.Pdf's FormEditor facade to bind an existing PDF, add a JavaScript script to a submit button that validates required fields, and save the modified document.", + "filename": "attach-js-resetform-clear-hidden-fields.cs", + "title": "Attach JavaScript to ResetForm Button to Clear Hidden Fields", + "description": "Shows how to bind a PDF with Aspose.Pdf.Facades.FormEditor, add JavaScript to a ResetForm button that resets the form and clears specified hidden fields, and then save the modified PDF.", "tags": [ "pdf", "javascript", - "form-validation", - "submit-button", - "aspose-pdf" + "form", + "reset", + "aspose" ], "apis_used": [ - "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.BindPdf", - "Aspose.Pdf.Facades.FormEditor.AddFieldScript", - "Aspose.Pdf.Facades.FormEditor.Save" + "FormEditor", + "FormEditor.BindPdf", + "FormEditor.AddFieldScript", + "FormEditor.Save" ], "difficulty": "intermediate" }, { - "filename": "batch-add-hidden-processeddate-field.cs", - "title": "Batch Add Hidden ProcessedDate Field to PDFs", - "description": "Shows how to loop through all PDF files in a folder and add a hidden text field named \"ProcessedDate\" with a generated GUID using Aspose.Pdf.Facades.FormEditor.", + "filename": "attach-js-validation-to-pdf-submit-button.cs", + "title": "Attach JavaScript Validation to PDF Submit Button", + "description": "Shows how to use Aspose.Pdf.Facades.FormEditor to add a JavaScript script to a PDF submit button that checks required fields before submitting the form.", "tags": [ - "pdf", - "form", - "hidden-field", - "batch-processing", - "guid" + "javascript", + "pdf-form", + "validation", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.FormEditor", "Aspose.Pdf.Facades.FormEditor.BindPdf", - "Aspose.Pdf.Facades.FormEditor.AddField", - "Aspose.Pdf.Facades.FormEditor.Save", - "Aspose.Pdf.Facades.FieldType" + "Aspose.Pdf.Facades.FormEditor.AddFieldScript", + "Aspose.Pdf.Facades.FormEditor.Save" ], "difficulty": "intermediate" }, + { + "filename": "batch-add-hidden-processeddate-field.cs", + "title": "Batch Add Hidden Processeddate Field", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "batch-add-selectall-checkbox-to-pdf.cs", "title": "Batch Add SelectAll Checkbox to First Page of PDFs", - "description": "Shows how to iterate over PDF files in a folder and add a checkbox form field named \"SelectAll\" to the first page of each document using Aspose.Pdf.", + "description": "Shows how to process multiple PDF files in a directory and use Aspose.Pdf.Facades.FormEditor to add a 'SelectAll' checkbox field on the first page of each PDF, saving the modified files to an output folder.", "tags": [ "pdf", "checkbox", @@ -22100,7 +26679,6 @@ "aspose" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.FormEditor", "Aspose.Pdf.Facades.FormEditor.BindPdf", "Aspose.Pdf.Facades.FormEditor.AddField", @@ -22111,169 +26689,200 @@ }, { "filename": "batch-rename-pdf-form-fields.cs", - "title": "Batch Rename PDF Form Fields with Aspose.Pdf", - "description": "Shows how to iterate over PDF form fields and rename any field whose name starts with a given prefix using the Aspose.Pdf.Facades.Form class.", + "title": "Batch Rename PDF Form Fields", + "description": "Demonstrates how to rename all form fields in a PDF that start with a specific prefix using Aspose.Pdf's Form and FormEditor classes.", "tags": [ "pdf", "form", - "rename-field", - "batch", - "facade" + "rename", + "fields", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.FieldNames", - "Aspose.Pdf.Facades.Form.RenameField", - "Aspose.Pdf.Facades.Form.Save", - "Aspose.Pdf.Facades.Form..ctor" + "Aspose.Pdf.Facades.FormEditor", + "Aspose.Pdf.Facades.FormEditor.RenameField", + "Aspose.Pdf.Facades.FormEditor.Save", + "Aspose.Pdf.Facades.Form.FieldNames" ], "difficulty": "beginner" }, { "filename": "batch-update-submit-button-urls.cs", "title": "Batch Update Submit Button URLs in PDFs", - "description": "Shows how to process a folder of PDF files, locate submit buttons, and change their submission URL to a new address using Aspose.Pdf.Facades.", + "description": "Demonstrates how to iterate through a folder of PDF files, detect submit buttons in each form, and replace their URLs with a new address using Aspose.Pdf.Facades.", "tags": [ "pdf", + "form", "submit-button", "batch", - "url-update", "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.Form", "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.Form.FormSubmitButtonNames", - "Aspose.Pdf.Facades.FormEditor.BindPdf", - "Aspose.Pdf.Facades.FormEditor.SetSubmitUrl", - "Aspose.Pdf.Facades.FormEditor.Save" + "Form.FormSubmitButtonNames", + "FormEditor.BindPdf", + "FormEditor.SetSubmitUrl", + "FormEditor.Save" ], "difficulty": "intermediate" }, { "filename": "clear-and-populate-dropdown-list.cs", - "title": "Clear and Populate Dropdown List in PDF Form", - "description": "Shows how to remove all existing items from a combo box (dropdown) field and add new items using Aspose.Pdf Facades FormEditor.", + "title": "Clear And Populate Dropdown List", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "clear-and-populate-list-box-field.cs", + "title": "Clear and Populate List Box Field in PDF", + "description": "Demonstrates how to remove all existing options from a PDF list box (combo) field and then add new items using Aspose.Pdf.", "tags": [ - "dropdown", - "form", + "listbox", + "form-fields", "pdf", - "facades", - "combo-box" + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Forms.ComboBoxField", - "FormEditor.BindPdf", - "FormEditor.DelListItem", - "FormEditor.AddListItem", - "FormEditor.Save" + "Aspose.Pdf.Forms.ListBoxField", + "Aspose.Pdf.Forms.ListBoxField.Options", + "Aspose.Pdf.Forms.ListBoxField.DeleteOption", + "Aspose.Pdf.Forms.ListBoxField.AddOption", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "clear-pdf-form-field-on-focus.cs", - "title": "Clear PDF Form Field on Focus with JavaScript", - "description": "Shows how to load a PDF, locate a text box form field named 'DiscountCode', attach a JavaScript action that clears the field when it receives focus, and save the updated document.", + "title": "Clear Pdf Form Field On Focus", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "clone-form-field-to-page-5.cs", + "title": "Clone PDF Form Field to Page 5 and Rename", + "description": "Demonstrates how to copy the outer definition of an existing form field to a specific page using FormEditor, then rename the cloned field with the Form class.", "tags": [ - "pdf", - "javascript", - "form-field", - "focus", - "aspose-pdf" + "form", + "field-cloning", + "aspose-pdf", + "copy-outer-field", + "rename-field" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Forms.FieldActions", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.FormEditor", + "Aspose.Pdf.Facades.FormEditor.CopyOuterField", + "Aspose.Pdf.Facades.FormEditor.Save", + "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.Form.RenameField", + "Aspose.Pdf.Facades.Form.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "convert-single-line-to-multi-line-address-field.cs", - "title": "Convert Single-Line PDF Form Field to Multi-Line with Auto-Wrap", - "description": "Demonstrates how to use Aspose.Pdf.Facades.FormEditor to change a PDF AcroForm text field from single-line to multi-line, enabling word-wrap and dynamic height.", + "title": "Convert Single Line To Multi Line Address Field", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "convert-single-line-to-multiline-word-wrap.cs", + "title": "Convert Single‑Line Form Field to Multiline with Word Wrap", + "description": "Demonstrates how to change an existing single‑line PDF form field to a multiline field, enable automatic word wrapping, and save the updated document using Aspose.Pdf.", "tags": [ - "pdf", "form", "multiline", - "aspose", - "facades" + "wordwrap", + "pdf", + "aspose" ], "apis_used": [ - "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.BindPdf", + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.FormEditor.Single2Multiple", "Aspose.Pdf.Facades.FormEditor.Save", - "Aspose.Pdf.Facades.FormEditor.SetFieldLimit" + "Aspose.Pdf.Facades.PdfFileMend", + "Aspose.Pdf.Facades.PdfFileMend.IsWordWrap", + "Aspose.Pdf.Facades.PdfFileMend.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "copy-form-field-definitions-to-pdf.cs", - "title": "Copy Form Field Definitions from Template to PDF", - "description": "Shows how to enumerate form fields in a template PDF and copy their definitions to another PDF using Aspose.Pdf.Facades.", + "filename": "copy-field-content-between-pdf-form-fields.cs", + "title": "Copy Field Content Between PDF Form Fields", + "description": "Demonstrates how to read the value of one form field and write it to another field in the same PDF using Aspose.Pdf.Facades.", "tags": [ "pdf", "form-fields", "copy", - "aspose-pdf", - "facade" + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.Form.FieldNames", - "Aspose.Pdf.Facades.FormEditor.CopyOuterField", - "Aspose.Pdf.Facades.FormEditor.Save" + "Aspose.Pdf.Facades.Form.GetField", + "Aspose.Pdf.Facades.Form.FillField", + "Aspose.Pdf.Facades.Form.Save" ], "difficulty": "beginner" }, + { + "filename": "copy-form-field-definitions-to-pdf.cs", + "title": "Copy Form Field Definitions To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "copy-form-field-to-another-page.cs", - "title": "Copy and Rename PDF Form Field on a Specific Page", - "description": "Shows how to copy the outer definition of an existing PDF form field to a given page and rename it using Aspose.Pdf.Facades.FormEditor.", - "tags": [ - "form", - "copy", - "rename", - "Aspose.Pdf", - "facade" - ], - "apis_used": [ - "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.CopyOuterField", - "Aspose.Pdf.Facades.FormEditor.RenameField", - "Aspose.Pdf.Facades.FormEditor.Save" - ], - "difficulty": "intermediate" + "title": "Copy Form Field To Another Page", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "copy-form-field-to-new-field-on-page.cs", - "title": "Copy Form Field Definition to New Field on Specific Page", - "description": "Shows how to copy the outer definition of an existing PDF form field to a new field on a given page using Aspose.Pdf Facades.", + "title": "Copy Form Field To New Field On Page", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "copy-form-fields-from-template-to-pdf.cs", + "title": "Copy Form Fields from Template PDF to Target PDF", + "description": "Shows how to create a template PDF with a form field, create a target PDF, and copy the field definitions from the template to the target using Aspose.Pdf's FormEditor.", "tags": [ - "form", - "copy-field", - "pdf", - "facades", + "form-fields", + "pdf-copy", + "aspose-pdf", + "form-editor", "csharp" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.TextBoxField", "Aspose.Pdf.Facades.FormEditor", + "Aspose.Pdf.Facades.FormEditor.CopyOuterField", "Aspose.Pdf.Facades.FormEditor.BindPdf", - "Aspose.Pdf.Facades.FormEditor.CopyInnerField", "Aspose.Pdf.Facades.FormEditor.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "copy-image-form-field-to-another.cs", - "title": "Copy Image Form Field to Another PDF Field", - "description": "Demonstrates how to copy the content of an image form field (e.g., a logo) to a new image field within the same PDF using Aspose.Pdf.Facades.FormEditor.", + "filename": "copy-image-field-to-another-field.cs", + "title": "Copy Image Field Content to Another Field in PDF", + "description": "Demonstrates how to copy the inner content of an existing image form field to a new image field in the same PDF using Aspose.Pdf.Facades.FormEditor.", "tags": [ "pdf", "form", @@ -22284,53 +26893,71 @@ "apis_used": [ "Aspose.Pdf.Facades.FormEditor", "Aspose.Pdf.Facades.FormEditor.CopyInnerField", - "Aspose.Pdf.Facades.FormEditor.Save" + "Aspose.Pdf.Facades.FormEditor.Save", + "Aspose.Pdf.Facades.FormEditor.Close" ], "difficulty": "beginner" }, + { + "filename": "copy-image-form-field-to-another.cs", + "title": "Copy Image Form Field To Another", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "copy-notes-to-summary.cs", - "title": "Copy Notes Field to Summary Field in PDF Form", - "description": "Shows how to read the value of a PDF form field and write it to another field using Aspose.Pdf.", + "title": "Copy Notes Field to Summary in PDF Form", + "description": "Shows how to read the value of a PDF form field and write it to another field using Aspose.Pdf.Facades.Form.", "tags": [ "pdf", "form", "field", - "aspose", + "aspose-pdf", "csharp" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.GetField", - "Aspose.Pdf.Facades.Form.FillField", - "Aspose.Pdf.Facades.Form.Save" + "Form(string)", + "Form.GetField", + "Form.FillField", + "Form.Save" ], "difficulty": "beginner" }, { "filename": "copy-pdf-form-field-content.cs", - "title": "Copy PDF Form Field Content to Another Field", - "description": "Shows how to read the value of a form field and write it to a different field in the same PDF using Aspose.Pdf.Facades.", + "title": "Copy Pdf Form Field Content", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "copy-rename-pdf-form-field.cs", + "title": "Copy and Rename PDF Form Field on a Specific Page", + "description": "Demonstrates how to copy the outer definition of an existing PDF form field to a different page and then rename it using Aspose.Pdf.Facades.FormEditor.", "tags": [ "pdf", - "form-fields", - "copy", - "aspose", - "csharp" + "form", + "copy-field", + "rename-field", + "aspose" ], "apis_used": [ - "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.GetField", - "Aspose.Pdf.Facades.Form.FillField", - "Aspose.Pdf.Facades.Form.Save" + "Aspose.Pdf.Facades.FormEditor", + "Aspose.Pdf.Facades.FormEditor.CopyOuterField", + "Aspose.Pdf.Facades.FormEditor.RenameField", + "Aspose.Pdf.Facades.FormEditor.Save", + "Aspose.Pdf.Facades.FormEditor.Dispose" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "create-pdf-form-fields-from-json.cs", - "title": "Create PDF Form Fields from JSON Definition", - "description": "Shows how to read field specifications from a JSON file and add matching form fields to a newly created PDF using Aspose.Pdf's FormEditor.", + "title": "Create PDF Form Fields from JSON Definitions", + "description": "Demonstrates reading a JSON file with field specifications and adding matching form fields to a newly created PDF using Aspose.Pdf.", "tags": [ "pdf", "form", @@ -22342,134 +26969,177 @@ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.FormEditor", "Aspose.Pdf.Facades.FormEditor.AddField", - "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Document.Save", "Aspose.Pdf.Facades.FieldType" ], "difficulty": "intermediate" }, + { + "filename": "decorate-checkbox-fields-in-pdfs.cs", + "title": "Decorate All Checkbox Fields in PDFs", + "description": "Demonstrates how to apply a visual decoration to every checkbox form field in multiple PDF documents within a folder using Aspose.Pdf.Facades.", + "tags": [ + "checkbox", + "form", + "pdf", + "decoration", + "batch" + ], + "apis_used": [ + "Aspose.Pdf.Facades.FormEditor", + "Aspose.Pdf.Facades.FormFieldFacade", + "Aspose.Pdf.Facades.FormEditor.BindPdf", + "Aspose.Pdf.Facades.FormEditor.Save", + "Aspose.Pdf.Facades.FormEditor.DecorateField", + "Aspose.Pdf.Facades.FormEditor.Facade", + "Aspose.Pdf.Facades.FieldType.CheckBox" + ], + "difficulty": "intermediate" + }, { "filename": "decorate-list-box-fields.cs", - "title": "Decorate List Box Fields with Uniform Border and Background", - "description": "Shows how to apply a consistent border style, width, color, and background color to all list box form fields in a PDF using Aspose.Pdf.Facades.", + "title": "Decorate List Box Fields", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "decorate-list-fields-uniform-border.cs", + "title": "Decorate List Fields with Uniform Border and Background", + "description": "Demonstrates applying a consistent background color and border style to all list-type form fields in a PDF using Aspose.Pdf Facades.", "tags": [ "pdf", "form-fields", "border", "background", - "aspose-pdf" + "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.FormEditor", "Aspose.Pdf.Facades.FormFieldFacade", - "Aspose.Pdf.Facades.FieldType", - "FormEditor.DecorateField", - "FormEditor.Save" + "Aspose.Pdf.Facades.FormEditor.DecorateField", + "Aspose.Pdf.Facades.FormEditor.Save", + "Aspose.Pdf.Facades.FieldType" ], "difficulty": "beginner" }, { "filename": "decorate-pdf-form-field-appearance.cs", "title": "Decorate PDF Form Field with Custom Appearance", - "description": "Demonstrates how to set a custom border color, background shade, and font style for a specific PDF form field using Aspose.Pdf Facades.", + "description": "Demonstrates how to set a custom border color, background shade, and font style for a specific PDF form field using Aspose.Pdf.Facades.", "tags": [ "pdf", - "form", - "field", + "form-field", "appearance", - "facade" + "border-color", + "font-style" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.FormEditor", "Aspose.Pdf.Facades.FormFieldFacade", - "Aspose.Pdf.Facades.FormEditor.BindPdf", + "Aspose.Pdf.Facades.FontStyle", "Aspose.Pdf.Facades.FormEditor.DecorateField", "Aspose.Pdf.Facades.FormEditor.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "decorate-pdf-form-field-background-image.cs", - "title": "Decorate PDF Form Field with Background Image and Centered Text", - "description": "Shows how to set alignment and background color for a PDF form field and then add a background image that appears behind the field content using Aspose.Pdf facades.", + "title": "Decorate Pdf Form Field Background Image", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "decorate-pdf-form-field-with-header-image.cs", + "title": "Decorate PDF Form Field with Centered Text and Header Image", + "description": "Shows how to set centered text alignment for a PDF form field using FormFieldFacade and then add a background image as a page header with PdfFileStamp.", "tags": [ - "pdf", "form-field", "background-image", - "aspose-pdf", - "facade" + "text-alignment", + "Aspose.Pdf", + "PdfFileStamp" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.FormEditor", "Aspose.Pdf.Facades.FormFieldFacade", - "Aspose.Pdf.Facades.Stamp", - "Aspose.Pdf.Facades.PdfFileStamp" + "Aspose.Pdf.Facades.FormEditor.DecorateField", + "Aspose.Pdf.Facades.FormEditor.Save", + "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.Facades.PdfFileStamp.AddHeader", + "Aspose.Pdf.Facades.PdfFileStamp.Close" ], "difficulty": "intermediate" }, { "filename": "duplicate-pdf-form-field.cs", "title": "Duplicate PDF Form Field Using FormEditor", - "description": "Demonstrates copying an existing form field named 'Signature' to a new field 'SignatureCopy' on the same page with Aspose.Pdf.Facades.FormEditor.", + "description": "Demonstrates how to copy an existing form field named \"Signature\" to a new field \"SignatureCopy\" on the same page using Aspose.Pdf.Facades.FormEditor.", "tags": [ "pdf", "form", "duplicate", - "aspose-pdf", + "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.FormEditor", "Aspose.Pdf.Facades.FormEditor.CopyInnerField", - "Aspose.Pdf.Facades.FormEditor.Save" + "Aspose.Pdf.Facades.FormEditor.Save", + "Aspose.Pdf.Facades.FormEditor.Dispose", + "Aspose.Pdf.Facades.FormEditor.FormEditor(string, string)" ], "difficulty": "beginner" }, { "filename": "enable-rich-text-formatting-for-pdf-form-field.cs", - "title": "Enable Rich Text Formatting for PDF Form Field", - "description": "Shows how to retrieve a 'Comments' field, cast it to RichTextBoxField, enable multiline input, set a default appearance, and assign an RTF value using Aspose.Pdf.", - "tags": [ - "rich-text", - "pdf-form", - "aspose.pdf", - "csharp", - "field-appearance" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.RichTextBoxField", - "Aspose.Pdf.Text.DefaultAppearance", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Forms.Form" - ], - "difficulty": "intermediate" + "title": "Enable Rich Text Formatting For Pdf Form Field", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "export-checkboxes-to-fdf.cs", - "title": "Export Checkbox Fields to FDF", - "description": "Demonstrates how to export only checkbox form field definitions from a PDF to an FDF file by marking non‑checkbox fields as non‑exportable and using the Form facade's ExportFdf method.", + "filename": "export-checkbox-fields-to-fdf.cs", + "title": "Export Checkbox Form Fields to FDF", + "description": "Shows how to load a PDF document and use the Form facade to export its form fields to an FDF file, which can then be filtered to keep only checkbox definitions.", "tags": [ - "checkbox", + "pdf", + "form", "fdf", - "form-export", - "aspose-pdf", - "facades" + "checkbox", + "export" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.CheckboxField", "Aspose.Pdf.Facades.Form.ExportFdf" ], - "difficulty": "intermediate" + "difficulty": "beginner" + }, + { + "filename": "export-checkboxes-to-fdf.cs", + "title": "Export Checkboxes To Fdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "export-import-pdf-form-fields-xml.cs", - "title": "Export and Import PDF Form Fields using XML", - "description": "Shows how to export form field data from a PDF to an XML file and later re‑import that XML back into a PDF using Aspose.Pdf.", + "title": "Export Import Pdf Form Fields Xml", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "export-import-pdf-form-xml.cs", + "title": "Export and Import PDF Form Data as XML", + "description": "Shows how to export form field values from a PDF to an XML file and later re‑import the XML back into a PDF using Aspose.Pdf.", "tags": [ "pdf", "form", @@ -22478,19 +27148,19 @@ "import" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.Form", "Aspose.Pdf.Facades.Form.ExportXml", "Aspose.Pdf.Facades.Form.ImportXml", - "Aspose.Pdf.Document", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.Form" + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate" }, { "filename": "export-pdf-form-field-layout-to-json.cs", "title": "Export PDF Form Field Layout to JSON", - "description": "Extracts the position and page information of each form field in a PDF and writes it to an indented JSON file for UI reconstruction.", + "description": "Demonstrates how to read the coordinates of each form field in a PDF using Aspose.Pdf.Facades and serialize the layout information to a JSON file for UI reconstruction.", "tags": [ "pdf", "form", @@ -22500,18 +27170,17 @@ ], "apis_used": [ "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Field.GetRectangle", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.Field.FullName", - "Aspose.Pdf.Forms.Field.PageIndex" + "Aspose.Pdf.Facades.FormFieldFacade", + "Aspose.Pdf.Facades.Form.FieldNames", + "Aspose.Pdf.Facades.Form.GetFieldFacade", + "Aspose.Pdf.Facades.FormFieldFacade.Position" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "export-pdf-form-fields-to-fdf.cs", "title": "Export PDF Form Fields to FDF", - "description": "Demonstrates how to use Aspose.Pdf.Facades.Form to export all form fields from a PDF document into an FDF file for external processing.", + "description": "Demonstrates loading a PDF form with the Form facade and exporting all its form fields to an FDF file for external processing.", "tags": [ "pdf", "form", @@ -22528,7 +27197,7 @@ { "filename": "export-pdf-form-fields-to-json.cs", "title": "Export PDF Form Fields to JSON", - "description": "Shows how to load a PDF containing AcroForm fields with the Form facade and export the field definitions to a pretty‑printed JSON file.", + "description": "Shows how to use Aspose.Pdf.Facades.Form to export all form field definitions from a PDF document into a pretty‑printed JSON file.", "tags": [ "pdf", "form", @@ -22544,111 +27213,162 @@ }, { "filename": "hide-form-field-exportable.cs", - "title": "Hide Form Field While Keeping It Exportable", - "description": "Shows how to set a PDF form field to hidden using the NoView flag with Aspose.Pdf.Facades.FormEditor, so the field is not visible but still exported in form submissions.", - "tags": [ - "form", - "hidden", - "exportable", - "Aspose.Pdf", - "FormEditor" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.SetFieldAppearance", - "Aspose.Pdf.Annotations.AnnotationFlags", - "Aspose.Pdf.Facades.FormEditor.Save" - ], - "difficulty": "beginner" + "title": "Hide Form Field Exportable", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "import-checkboxes-from-fdf.cs", - "title": "Import Checkbox Definitions from FDF into PDF", - "description": "Demonstrates how to load a PDF, import checkbox definitions from an FDF file using the Form facade, merge them with existing fields, and save the resulting document.", + "title": "Import Checkboxes from FDF and Merge into PDF", + "description": "Shows how to import checkbox definitions and values from an FDF file into an existing PDF form and merge them without creating duplicate fields using Aspose.Pdf.Facades.", "tags": [ - "FDF", + "fdf", "checkbox", - "form-fields", + "form", "merge", - "Aspose.Pdf" + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.BindPdf", "Aspose.Pdf.Facades.Form.ImportFdf", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.Form.Save", + "Aspose.Pdf.Facades.Form.Close" ], "difficulty": "beginner" }, { "filename": "import-form-field-layout-from-json.cs", - "title": "Import Form Field Layout from JSON into PDF", - "description": "Shows how to read field definitions from a JSON file and add them to a newly created PDF using Aspose.Pdf's FormEditor.", + "title": "Import Form Field Layout From Json", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "import-pdf-form-fields-from-xml-preserve-order.cs", + "title": "Import PDF Form Fields from XML Preserving Order", + "description": "Demonstrates how to import form field values from an XML file into a PDF while keeping the original field order and layout unchanged using Aspose.Pdf.Facades.", "tags": [ - "json", - "form-fields", "pdf", - "aspose", - "csharp" + "form", + "xml", + "import", + "aspose" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.BindPdf", - "Aspose.Pdf.Facades.FormEditor.AddField", - "Aspose.Pdf.Facades.FormEditor.Save" + "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.Form.ImportXml", + "Aspose.Pdf.Facades.Form.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "import-pdf-form-fields-from-xml.cs", - "title": "Import PDF Form Fields from XML While Preserving Order", - "description": "Demonstrates how to bind a PDF, import form field values from an XML file using Aspose.Pdf.Facades, and save the updated document while keeping the original field order.", + "title": "Import Pdf Form Fields From Xml", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "import-pdf-form-layout-from-json.cs", + "title": "Import PDF Form Layout from JSON", + "description": "Creates a JSON layout file, deserializes it, and adds the defined form fields to a new PDF document using Aspose.Pdf.", "tags": [ "pdf", "form", - "xml", - "import", + "json", + "layout", "aspose" ], "apis_used": [ - "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.BindPdf", - "Aspose.Pdf.Facades.Form.ImportXml", - "Aspose.Pdf.Facades.Form.Save" + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.FormEditor", + "Aspose.Pdf.Facades.FormEditor.AddField", + "Aspose.Pdf.Facades.FieldType" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "import-xfdf-data-into-pdf-form-fields.cs", - "title": "Import XFDF Data into PDF Form Fields", - "description": "Demonstrates how to import field values from an XFDF file into an existing PDF form and save the updated document using Aspose.Pdf.Facades.", + "title": "Import Xfdf Data Into Pdf Form Fields", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "import-xfdf-data-into-pdf-form.cs", + "title": "Import XFDF Data into PDF Form", + "description": "Shows how to import form field values from an XFDF file into an existing PDF using Aspose.Pdf.Facades.Form and save the updated document.", "tags": [ "xfdf", - "pdf-forms", - "import", + "form", + "pdf", "aspose-pdf", - "csharp" + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.Form", "Aspose.Pdf.Facades.Form.ImportXfdf", - "Aspose.Pdf.Facades.Form.Save" + "Aspose.Pdf.Facades.Form.Save", + "Aspose.Pdf.Facades.Form(string, string)", + "Aspose.Pdf.Facades.Form.Dispose" ], "difficulty": "beginner" }, { - "filename": "merge-pdfs-unique-form-fields.cs", - "title": "Merge PDFs and Ensure Unique Form Field Names", - "description": "Demonstrates concatenating multiple PDF form files while automatically renaming duplicate field names by enabling KeepFieldsUnique and setting a UniqueSuffix on PdfFileEditor.", + "filename": "make-taxrate-readonly-add-js.cs", + "title": "Make TaxRate Read‑Only and Add JavaScript Calculation", + "description": "Shows how to set a PDF form field to read‑only and attach JavaScript that computes its value from the Subtotal field using Aspose.Pdf.", "tags": [ "pdf", - "form-fields", + "form", + "readonly", + "javascript", + "calculation" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.FormEditor", + "Aspose.Pdf.Forms.PropertyFlag", + "FormEditor.SetFieldAttribute", + "FormEditor.SetFieldScript", + "Document.Save" + ], + "difficulty": "intermediate" + }, + { + "filename": "mark-pdf-form-field-required.cs", + "title": "Mark PDF Form Field as Required with Asterisk", + "description": "Demonstrates how to set a form field to required using Aspose.Pdf.Facades.FormEditor, which automatically shows the asterisk indicator in PDF viewers.", + "tags": [ + "pdf", + "form", + "required", + "aspose", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Facades.FormEditor", + "Aspose.Pdf.Facades.FormEditor.SetFieldAttribute", + "Aspose.Pdf.Facades.FormEditor.Save", + "Aspose.Pdf.Facades.PropertyFlag" + ], + "difficulty": "beginner" + }, + { + "filename": "merge-pdf-forms-unique-field-names.cs", + "title": "Merge PDF Forms with Unique Field Names", + "description": "Demonstrates how to concatenate multiple PDF form files while automatically renaming duplicate field names using Aspose.Pdf.Facades.PdfFileEditor.", + "tags": [ + "pdf", + "form", "merge", - "unique-names", - "batch-processing" + "unique-fields", + "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", @@ -22659,91 +27379,104 @@ "difficulty": "beginner" }, { - "filename": "move-form-field-to-bottom-margin.cs", - "title": "Move Form Field to Bottom Margin on All PDF Pages", - "description": "Demonstrates how to reposition a specific form field (FooterNote) to the bottom margin of each page in a PDF using Aspose.Pdf, calculating coordinates per page and updating the field appearance.", + "filename": "merge-pdfs-unique-form-fields.cs", + "title": "Merge Pdfs Unique Form Fields", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "move-footernote-to-bottom-margin.cs", + "title": "Move FooterNote Field to Bottom Margin on Each PDF Page", + "description": "Shows how to copy an existing form field to every page of a PDF and place it at the bottom margin using calculated coordinates.", "tags": [ - "form-field", - "positioning", - "footer", + "form-fields", "pdf", - "Aspose.Pdf" + "footer", + "margin", + "copy-field" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Document.Form.AddFieldAppearance" + "Aspose.Pdf.Facades.FormEditor", + "Aspose.Pdf.Facades.FormEditor.CopyInnerField", + "Aspose.Pdf.Facades.FormEditor.Save" ], "difficulty": "intermediate" }, + { + "filename": "move-form-field-to-bottom-margin.cs", + "title": "Move Form Field To Bottom Margin", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "move-pdf-form-field-to-top-left.cs", "title": "Move PDF Form Field to Top‑Left Corner", - "description": "Demonstrates how to reposition an existing form field named \"Logo\" to the top‑left corner of the first page using Aspose.Pdf Facades, with a specific width and height.", + "description": "Demonstrates how to reposition a form field named \"Logo\" to the top‑left corner of the first page with a specific width and height, then save the updated PDF.", "tags": [ - "pdf", "form-field", - "move", - "facades", - "Aspose.Pdf" + "position", + "pdf", + "aspose", + "facades" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.Facades.FormEditor", - "FormEditor.MoveField", - "FormEditor.Save" + "Aspose.Pdf.Facades.FormEditor.MoveField", + "Aspose.Pdf.Facades.FormEditor.Save", + "Aspose.Pdf.PageInfo.Height" ], "difficulty": "intermediate" }, { "filename": "move-pdf-form-field.cs", "title": "Move PDF Form Field to New Position", - "description": "Shows how to relocate a form field to specific coordinates on a target page of a PDF using Aspose.Pdf's FormEditor.", + "description": "Shows how to relocate an existing form field to specific coordinates on a chosen page of a PDF using Aspose.Pdf.Facades.FormEditor.", "tags": [ "pdf", "form", "move-field", - "coordinates", - "Aspose.Pdf" + "aspose", + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.FormEditor", + "FormEditor.BindPdf", "FormEditor.MoveField", - "FormEditor.Save", - "Document(string)" + "FormEditor.Save" ], "difficulty": "beginner" }, { "filename": "move-pdf-form-fields-by-offset.cs", "title": "Move PDF Form Fields by Offset", - "description": "Shows how to shift all form fields in a PDF by a fixed (10,15) offset using Aspose.Pdf core API together with the FormEditor facade.", + "description": "Shows how to shift every form field in a PDF document by a specified X/Y offset using Aspose.Pdf's FormEditor.", "tags": [ - "form-fields", + "pdf", + "form", + "field", "offset", - "layout", - "Aspose.Pdf", - "facades" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Forms.Field", - "FormEditor.BindPdf", - "FormEditor.MoveField", - "FormEditor.Save" + "Aspose.Pdf.Facades.FormEditor.BindPdf", + "Aspose.Pdf.Facades.FormEditor.MoveField", + "Aspose.Pdf.Facades.FormEditor.Save", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "move-pdf-form-fields-page-2.cs", - "title": "Move PDF Form Fields on a Specific Page", - "description": "Shows how to shift the position of form fields on page 2 of a PDF by 5 points using Aspose.Pdf.Facades.PdfPageEditor.", + "title": "Move PDF Form Fields on Page 2 by 5 Points", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfPageEditor to shift the content and form fields on a specific PDF page by a given offset, adjusting the margin.", "tags": [ "pdf", "form-fields", @@ -22753,57 +27486,72 @@ ], "apis_used": [ "Aspose.Pdf.Facades.PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.ProcessPages", - "PdfPageEditor.MovePosition", - "PdfPageEditor.Save" + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages", + "Aspose.Pdf.Facades.PdfPageEditor.MovePosition", + "Aspose.Pdf.Facades.PdfPageEditor.Save" ], "difficulty": "beginner" }, { "filename": "move-signature-field-to-lower-right-corner-page-5.cs", - "title": "Move Signature Field to Lower Right Corner on Page 5", - "description": "Shows how to reposition an existing signature form field to a specific lower‑right location on page 5 using Aspose.Pdf's FormEditor.", + "title": "Move Signature Field To Lower Right Corner Page 5", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "move-signature-field-to-lower-right-corner.cs", + "title": "Move Signature Form Field to Lower Right Corner on Page 5", + "description": "Demonstrates how to reposition an existing PDF form field named \"Signature\" to the lower‑right corner of page 5 using Aspose.Pdf.Facades.FormEditor.", "tags": [ "form-field", - "signature", "move", "pdf", + "aspose-pdf", "facades" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.Facades.FormEditor", "Aspose.Pdf.Facades.FormEditor.MoveField", "Aspose.Pdf.Facades.FormEditor.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "populate-pdf-listbox-with-country-names.cs", - "title": "Populate PDF ListBox with Country Names", - "description": "Demonstrates how to use Aspose.Pdf.Facades.FormEditor to add 195 country items to a ListBox field in a PDF form.", + "filename": "populate-country-list-box-pdf.cs", + "title": "Populate PDF List Box with Country Names", + "description": "Demonstrates creating a PDF with a ListBox form field and programmatically adding 195 country items to it using Aspose.Pdf's FormEditor.", "tags": [ "pdf", - "form", "listbox", + "form-fields", "aspose-pdf", "csharp" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.ListBoxField", "Aspose.Pdf.Facades.FormEditor", - "FormEditor.AddListItem", - "FormEditor.Save", - "FormEditor..ctor", - "FormEditor.Dispose" + "Aspose.Pdf.Facades.FormEditor.BindPdf", + "Aspose.Pdf.Facades.FormEditor.AddListItem", + "Aspose.Pdf.Facades.FormEditor.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" + }, + { + "filename": "populate-pdf-listbox-with-country-names.cs", + "title": "Populate Pdf Listbox With Country Names", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "remove-button-fields-from-pdf-form.cs", "title": "Remove Button Fields from PDF Form", - "description": "Demonstrates how to load a PDF, identify all button form fields, delete them, and save the cleaned document using Aspose.Pdf.", + "description": "Demonstrates how to load a PDF, identify all button form fields, and delete them using Aspose.Pdf to simplify the form.", "tags": [ "pdf", "form", @@ -22813,103 +27561,146 @@ ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Field", "Aspose.Pdf.Forms.ButtonField", - "Aspose.Pdf.Form", - "Aspose.Pdf.Form.Delete", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.Form.Delete" ], "difficulty": "beginner" }, { "filename": "remove-empty-pdf-form-field.cs", "title": "Remove Empty PDF Form Field", - "description": "Shows how to read a PDF form field value and delete the field when it contains no user input, using Aspose.Pdf Facades.", + "description": "Shows how to read a PDF form field value and delete the field with Aspose.Pdf when it is empty or missing.", "tags": [ "pdf", - "form-field", - "remove", + "form", + "field-removal", "aspose-pdf", - "facades" + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.Form.GetField", "Aspose.Pdf.Facades.FormEditor", - "Form.GetField", - "FormEditor.RemoveField", - "FormEditor.Save" + "Aspose.Pdf.Facades.FormEditor.BindPdf", + "Aspose.Pdf.Facades.FormEditor.RemoveField", + "Aspose.Pdf.Facades.FormEditor.Save" ], "difficulty": "beginner" }, { "filename": "remove-form-field-from-pdf.cs", - "title": "Remove Form Field from PDF", - "description": "Shows how to delete a specific form field from a PDF document using Aspose.Pdf.Facades.FormEditor.", + "title": "Remove Form Field From Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "remove-list-item-from-pdf-form-field.cs", + "title": "Remove List Item From Pdf Form Field", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "remove-list-item-from-pdf-form.cs", + "title": "Remove List Item from PDF Form Field", + "description": "Shows how to delete a specific list item (Option B) from a list field (Choices) in an AcroForm PDF using Aspose.Pdf.Facades.FormEditor.", "tags": [ "pdf", "form", - "remove-field", - "aspose", - "csharp" + "list-item", + "delete", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Facades.FormEditor", + "Aspose.Pdf.Facades.FormEditor.BindPdf", + "Aspose.Pdf.Facades.FormEditor.DelListItem", + "Aspose.Pdf.Facades.FormEditor.Save" + ], + "difficulty": "beginner" + }, + { + "filename": "remove-non-whitelisted-items-from-pdf-combo-box.cs", + "title": "Remove Non-Whitelisted Items from a PDF Combo Box", + "description": "Demonstrates how to create a PDF with a combo box field, populate it with items, and then delete any items that are not present in a predefined whitelist using Aspose.Pdf.", + "tags": [ + "pdf", + "form", + "combobox", + "whitelist", + "aspose-pdf" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.ComboBoxField", "Aspose.Pdf.Facades.FormEditor", "FormEditor.BindPdf", - "FormEditor.RemoveField", + "FormEditor.DelListItem", "FormEditor.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "remove-list-item-from-pdf-form-field.cs", - "title": "Remove List Item from PDF Form Field", - "description": "Demonstrates how to delete a specific list item (\"Option B\") from a list box field named \"Choices\" on a PDF form using Aspose.Pdf.Facades.FormEditor.", + "filename": "remove-pdf-form-field.cs", + "title": "Remove PDF Form Field", + "description": "Shows how to delete an existing form field from a PDF document using Aspose.Pdf.Facades.FormEditor.", "tags": [ "pdf", "form", - "list-item", + "remove-field", "aspose", "csharp" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.DelListItem", - "Aspose.Pdf.Facades.FormEditor.Save" + "FormEditor.BindPdf", + "FormEditor.RemoveField", + "FormEditor.Save" ], "difficulty": "beginner" }, { "filename": "remove-temporary-form-fields-from-pdf.cs", "title": "Remove Temporary Form Fields from PDF", - "description": "Demonstrates how to locate and delete form fields whose names start with \"Temp_\" in a PDF using Aspose.Pdf, then save the cleaned document.", + "description": "Shows how to locate and delete PDF form fields whose names start with \"Temp_\" using Aspose.Pdf's Form and FormEditor classes.", "tags": [ "pdf", - "form-fields", - "cleanup", + "form", + "remove-fields", "aspose", "csharp" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.Form.Delete", - "Aspose.Pdf.Forms.Form.Fields", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.Form.FieldNames", + "Aspose.Pdf.Facades.FormEditor", + "Aspose.Pdf.Facades.FormEditor.RemoveField", + "Aspose.Pdf.Document" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "rename-pdf-form-field.cs", "title": "Rename PDF Form Field Using FormEditor", - "description": "Demonstrates how to rename a form field throughout a PDF document using Aspose.Pdf's FormEditor facade.", + "description": "Shows how to create a PDF with a form field and rename that field from \"OldName\" to \"NewName\" using Aspose.Pdf.Facades.FormEditor.", "tags": [ "pdf", "form", "rename", "aspose", - "csharp" + "facade" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Forms.TextBoxField", "Aspose.Pdf.Facades.FormEditor", "Aspose.Pdf.Facades.FormEditor.BindPdf", "Aspose.Pdf.Facades.FormEditor.RenameField", @@ -22918,90 +27709,136 @@ "difficulty": "beginner" }, { - "filename": "rename-pdf-form-fields-from-csv.cs", - "title": "Rename PDF Form Fields Using a CSV Mapping", - "description": "Shows how to read old‑new field name pairs from a CSV file and rename PDF form fields using Aspose.Pdf's FormEditor.", + "filename": "rename-pdf-form-fields-csv-mapping.cs", + "title": "Rename PDF Form Fields Using CSV Mapping", + "description": "Demonstrates creating a PDF with a form field, loading a CSV file of old‑new field name pairs, and renaming the fields in the PDF using Aspose.Pdf's FormEditor facade.", "tags": [ "pdf", "form", "rename", "csv", - "aspose" + "facade" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Facades.FormEditor", "Aspose.Pdf.Facades.FormEditor.RenameField", "Aspose.Pdf.Facades.FormEditor.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" + }, + { + "filename": "rename-pdf-form-fields-from-csv.cs", + "title": "Rename Pdf Form Fields From Csv", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "rename-pdf-form-fields-to-camelcase.cs", "title": "Rename PDF Form Fields to camelCase", - "description": "Loads a PDF, enumerates its form fields, converts each field name to camelCase, and batch renames the fields using FormEditor.", + "description": "Demonstrates creating a PDF with form fields, iterating over them, and renaming each field to camelCase using Aspose.Pdf's FormEditor.RenameField method.", "tags": [ "pdf", "form", "rename", "camelcase", - "batch" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.Facades.FormEditor", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.Field.PartialName", - "Aspose.Pdf.Facades.FormEditor.RenameField", - "Aspose.Pdf.Facades.FormEditor.Save" + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Facades.FormEditor.RenameField" ], "difficulty": "intermediate" }, { - "filename": "restrict-pdf-form-field-to-integer-range.cs", - "title": "Restrict PDF Form Field to Integer Range 0-100", - "description": "Shows how to limit a PDF form field's character length and attach JavaScript to enforce that the 'Score' field accepts only integer values between 0 and 100 using Aspose.Pdf.Facades.", + "filename": "restrict-pdf-form-field-to-integer-0-100.cs", + "title": "Restrict PDF Form Field to Integer 0‑100", + "description": "Shows how to limit a PDF form text field named \"Score\" to accept only integer values between 0 and 100 using Aspose.Pdf.Facades FormEditor with field limits and JavaScript validation.", "tags": [ "pdf", "form", "validation", - "javascript", - "aspose-pdf" + "aspose-pdf", + "csharp" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.FormEditor", "FormEditor.SetFieldLimit", - "FormEditor.AddFieldScript", - "Document.Save" + "FormEditor.SetFieldScript", + "FormEditor.Save", + "FormEditor constructor" ], "difficulty": "intermediate" }, + { + "filename": "restrict-pdf-form-field-to-integer-range.cs", + "title": "Restrict Pdf Form Field To Integer Range", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "set-custom-attribute-on-pdf-form-field.cs", + "title": "Attempt to Set Custom Attribute on PDF Form Field", + "description": "Demonstrates using FormEditor.SetFieldAttribute to set a predefined flag on a PDF form field and explains that arbitrary custom attributes like \"data-id\" cannot be set with the current API.", + "tags": [ + "pdf", + "form", + "setfieldattribute", + "custom-attribute", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Facades.FormEditor", + "Aspose.Pdf.Facades.FormEditor.BindPdf", + "Aspose.Pdf.Facades.FormEditor.SetFieldAttribute", + "Aspose.Pdf.Facades.FormEditor.Save", + "Aspose.Pdf.Forms.PropertyFlag" + ], + "difficulty": "beginner" + }, { "filename": "set-custom-image-background-for-signature-field.cs", "title": "Set Custom Image Background for Signature Field", - "description": "Shows how to apply a custom appearance with an image background to a PDF signature field named \"Signature\" using Aspose.Pdf.", + "description": "Shows how to modify an existing signature field's appearance by assigning a custom background image and visual properties using Aspose.Pdf's PdfFileSignature facade.", "tags": [ "signature", "custom-appearance", "image-background", "pdf", - "forms" + "facade" ], "apis_used": [ - "PdfFileSignature", "PdfFileSignature.BindPdf", - "PdfFileSignature.Save", - "SignatureField", + "PdfFileSignature.SignatureAppearance", + "PKCS1", "SignatureCustomAppearance", - "Color" + "PdfFileSignature.Sign", + "PdfFileSignature.Save" ], "difficulty": "intermediate" }, { "filename": "set-date-field-format-in-pdf.cs", + "title": "Set Date Field Format In Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "set-date-field-format.cs", "title": "Set Date Field Format in PDF Form", - "description": "Demonstrates how to locate a DateField named \"Date\" in a PDF form and change its display format to MM/dd/yyyy using Aspose.Pdf.", + "description": "Demonstrates how to locate a DateField in a PDF form and change its display format to \"MM/dd/yyyy\" using Aspose.Pdf.", "tags": [ "pdf", "form", @@ -23011,9 +27848,29 @@ ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", "Aspose.Pdf.Forms.DateField", + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner" + }, + { + "filename": "set-field-appearance-format-price.cs", + "title": "Set Form Field Appearance and Format Price to Two Decimals", + "description": "Demonstrates how to set the appearance flags of a PDF form field and fill the \"Price\" field with a value formatted to two decimal places using Aspose.Pdf.", + "tags": [ + "form", + "field-appearance", + "price-format", + "pdf", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.FormEditor", + "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Annotations.AnnotationFlags", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" @@ -23021,66 +27878,96 @@ { "filename": "set-form-field-alignment-to-center.cs", "title": "Set Form Field Alignment to Center", - "description": "Demonstrates how to open an existing PDF form, set the horizontal alignment of the \"Address\" field to center using FormEditor and FormFieldFacade, and save the updated PDF.", + "description": "Shows how to center‑align a PDF form field named \"Address\" using Aspose.Pdf.Facades FormEditor.", "tags": [ - "pdf-form", - "field-alignment", - "center", - "Aspose.Pdf", - "C#" + "pdf", + "form", + "alignment", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.FormEditor", "Aspose.Pdf.Facades.FormEditor.SetFieldAlignment", + "Aspose.Pdf.Facades.FormEditor.Save", "Aspose.Pdf.Facades.FormFieldFacade", - "Aspose.Pdf.Facades.FormFieldFacade.AlignCenter", - "Aspose.Pdf.Facades.FormEditor.Save" + "Aspose.Pdf.Facades.FormFieldFacade.AlignCenter" ], "difficulty": "beginner" }, { "filename": "set-form-field-background-color.cs", "title": "Set Form Field Background Color to Light Green", - "description": "Demonstrates how to change the background color of a PDF form field named \"Status\" to light green using FormFieldFacade.", + "description": "Demonstrates using FormEditor and FormFieldFacade to change the background color of the \"Status\" form field to light green and save the updated PDF.", "tags": [ - "pdf", "form", - "background", + "field", + "background-color", "facade", - "aspose" + "pdf" ], "apis_used": [ "Aspose.Pdf.Facades.FormEditor", "Aspose.Pdf.Facades.FormFieldFacade", "Aspose.Pdf.Facades.FormEditor.DecorateField", + "Aspose.Pdf.Facades.FormEditor.Save" + ], + "difficulty": "beginner" + }, + { + "filename": "set-form-field-readonly-currency-appearance.cs", + "title": "Set Form Field to Read‑Only and Apply Currency Appearance", + "description": "Shows how to make a PDF form field read‑only and set its printable appearance (including currency formatting) using Aspose.Pdf Facades.", + "tags": [ + "pdf", + "form", + "readonly", + "appearance", + "currency" + ], + "apis_used": [ + "Aspose.Pdf.Facades.FormEditor", + "Aspose.Pdf.Facades.FormEditor.BindPdf", + "Aspose.Pdf.Facades.FormEditor.SetFieldAttribute", + "Aspose.Pdf.Facades.FormEditor.SetFieldAppearance", "Aspose.Pdf.Facades.FormEditor.Save", - "Aspose.Pdf.Facades.FormEditor.Facade" + "Aspose.Pdf.PropertyFlag.ReadOnly", + "Aspose.Pdf.Annotations.AnnotationFlags.Print" ], "difficulty": "beginner" }, { "filename": "set-numeric-limit-for-pdf-form-field.cs", "title": "Set Numeric Limit for PDF Form Field", - "description": "Shows how to restrict the \"Quantity\" AcroForm field to values between 1 and 100 by applying a character limit using Aspose.Pdf.Facades.FormEditor.", + "description": "Demonstrates how to open a PDF form, restrict the \"Quantity\" field to a maximum of three characters, add JavaScript validation for a numeric range of 1‑100, and save the updated document.", "tags": [ "pdf", "form", "field-limit", - "aspose", - "csharp" + "validation", + "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.FormEditor", "Aspose.Pdf.Facades.FormEditor.BindPdf", "Aspose.Pdf.Facades.FormEditor.SetFieldLimit", + "Aspose.Pdf.Facades.FormEditor.SetFieldScript", "Aspose.Pdf.Facades.FormEditor.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "set-numeric-two-decimal-validation.cs", - "title": "Set Numeric Two-Decimal Validation for PDF Form Field", - "description": "Shows how to locate a TextBoxField named 'Discount' in a PDF, limit its length, configure combs, and attach JavaScript to enforce numeric input with two‑decimal precision using Aspose.Pdf.", + "title": "Set Numeric Two Decimal Validation", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "set-numeric-validation-two-decimal-discount.cs", + "title": "Set Numeric Validation with Two Decimal Precision for PDF Form Field", + "description": "Demonstrates how to add a text box field to a PDF and apply a JavaScript validation script that restricts input to numeric values with up to two decimal places, using Aspose.Pdf.", "tags": [ "pdf", "form", @@ -23089,87 +27976,106 @@ "aspose" ], "apis_used": [ - "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.BindPdf", - "Aspose.Pdf.Facades.FormEditor.SetFieldCombNumber", "Aspose.Pdf.Document", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.JavascriptAction" + "Aspose.Pdf.Facades.FormEditor", + "Aspose.Pdf.Facades.FormEditor.SetFieldScript", + "Aspose.Pdf.Facades.FormEditor.SetFieldLimit", + "Aspose.Pdf.Facades.FormEditor.Save" ], "difficulty": "intermediate" }, { "filename": "set-pdf-form-field-attribute.cs", - "title": "Set PDF Form Field Attribute Using FormEditor", - "description": "Demonstrates how to use Aspose.Pdf.Facades.FormEditor to set a predefined attribute (Required flag) on a PDF form field and highlights that custom attributes are not supported by this API.", + "title": "Set Pdf Form Field Attribute", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "set-pdf-form-field-hidden-exportable.cs", + "title": "Set PDF Form Field to Hidden but Exportable", + "description": "Shows how to hide a PDF form field while keeping it exportable using Aspose.Pdf's FormEditor and AnnotationFlags.", "tags": [ "pdf", "form", - "field-attribute", - "aspose", - "csharp" + "hidden-field", + "exportable", + "aspose" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.SetFieldAttribute", - "Aspose.Pdf.Facades.FormEditor.Save", - "Aspose.Pdf.Facades.PropertyFlag" + "Aspose.Pdf.Facades.FormEditor.SetFieldAppearance", + "Aspose.Pdf.Annotations.AnnotationFlags", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "set-pdf-form-field-required.cs", - "title": "Set PDF Form Field as Required", - "description": "Demonstrates how to mark a PDF form field as required using Aspose.Pdf.Facades.FormEditor and persist the change to a new file.", + "title": "Set Pdf Form Field Required", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "set-phone-number-field-limit.cs", + "title": "Set Maximum Character Length for PDF Form Field", + "description": "Shows how to load a PDF with Aspose.Pdf.Facades.FormEditor, set a maximum character count for the \"PhoneNumber\" form field, and save the updated document.", "tags": [ "pdf", "form", - "required", - "aspose", - "facades" + "field-limit", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.SetFieldAttribute", - "Aspose.Pdf.Facades.FormEditor.Save", - "Aspose.Pdf.Facades.PropertyFlag.Required", - "Aspose.Pdf.Facades.FormEditor.Dispose" + "Aspose.Pdf.Facades.FormEditor.BindPdf", + "Aspose.Pdf.Facades.FormEditor.SetFieldLimit", + "Aspose.Pdf.Facades.FormEditor.Save" ], "difficulty": "beginner" }, { - "filename": "set-phone-number-field-limit.cs", - "title": "Set Maximum Length for PDF Form Field", - "description": "Shows how to limit the number of characters a user can enter in a PDF form field using Aspose.Pdf.Facades.FormEditor.", + "filename": "set-rich-text-appearance-for-pdf-form-field.cs", + "title": "Set Rich Text Appearance for PDF Form Field", + "description": "Shows how to locate a RichTextBoxField in a PDF, configure its default appearance, enable multiline, spell‑check and scrolling, and then save the updated document.", "tags": [ - "pdf", - "form", - "field-limit", - "aspose", + "rich-text", + "pdf-form", + "default-appearance", + "aspose-pdf", "csharp" ], "apis_used": [ - "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.SetFieldLimit", - "Aspose.Pdf.Facades.FormEditor.Save" + "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.RichTextBoxField", + "Aspose.Pdf.Text.DefaultAppearance", + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "set-signature-field-border-width.cs", "title": "Set Signature Field Border Width in PDF", - "description": "Demonstrates loading a PDF with the Form facade, locating the \"Signature\" form field, setting its border thickness to 2 points, and saving the updated document.", + "description": "Demonstrates how to load a PDF, retrieve a form field named \"Signature\", and set its border thickness to 2 points using Aspose.Pdf.Facades.", "tags": [ "pdf", "form", "border", "signature", - "aspose" + "aspose-pdf" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.Form", "Aspose.Pdf.Facades.Form.GetFieldFacade", - "Aspose.Pdf.Facades.FormFieldFacade", "Aspose.Pdf.Facades.FormFieldFacade.BorderWidth", "Aspose.Pdf.Facades.Form.Save" ], @@ -23177,35 +28083,30 @@ }, { "filename": "set-taxrate-readonly-calc-js.cs", - "title": "Make PDF Form Field Read‑Only and Add JavaScript Calculation", - "description": "Shows how to set a PDF form field to read‑only and attach a JavaScript calculate action that computes TaxRate as 10% of the Subtotal field using Aspose.Pdf facades.", - "tags": [ - "pdf", - "form", - "javascript", - "readonly", - "calculation" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.SetFieldAttribute", - "Aspose.Pdf.Forms.NumberField", - "Aspose.Pdf.Forms.JavascriptAction", - "Aspose.Pdf.Facades.FormEditor.Save" - ], - "difficulty": "intermediate" + "title": "Set Taxrate Readonly Calc Js", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "set-text-field-multiline.cs", - "title": "Set Text Field to Multiline in PDF", - "description": "Shows how to convert a single‑line text field named \"Comments\" into a multiline field in a PDF using Aspose.Pdf.Facades.FormEditor.", + "title": "Set Text Field Multiline", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "set-text-field-to-multiline.cs", + "title": "Set Text Field to Multiline in PDF Form", + "description": "Demonstrates how to convert the single‑line text field \"Comments\" into a multiline field using Aspose.Pdf.Facades.FormEditor.", "tags": [ "pdf", "form", "multiline", "aspose", - "csharp" + "facades" ], "apis_used": [ "Aspose.Pdf.Facades.FormEditor", @@ -23218,88 +28119,120 @@ }, { "name": "facades-metadata", - "file_count": 40, + "file_count": 58, "files": [ + "add-custom-metadata-field-to-pdf.cs", "add-custom-metadata-reviewedby-to-pdf.cs", "add-custom-metadata-to-pdf.cs", - "add-custom-timestamp-metadata-to-pdf.cs", "add-department-metadata-to-pdfs.cs", + "add-lastupdated-metadata-to-pdf.cs", + "apply-metadata-changes-to-multiple-pdfs-in-parallel.cs", + "audit-pdf-metadata-to-csv.cs", + "backup-and-update-pdf-metadata.cs", "backup-pdfs-update-metadata.cs", "check-custom-metadata-key.cs", - "conditionally-update-pdf-author-metadata.cs", + "convert-pdf-to-pdfa-1b-using-pdffileinfo.cs", "convert-pdf-to-pdfa-1b-with-pdffileinfo.cs", "export-pdf-metadata-to-json.cs", "handle-readonly-file-errors-saving-pdf-metadata.cs", + "handle-readonly-file-errors-when-saving-pdf-metadata.cs", + "import-json-metadata-to-pdf.cs", "import-pdf-metadata-from-json.cs", + "list-custom-pdf-metadata-keys.cs", + "load-pdf-retrieve-file-info-and-save.cs", "merge-xmp-metadata-with-pdf-fileinfo.cs", "preserve-pdf-metadata-add-version.cs", + "read-custom-pdf-metadata-existence-check.cs", "read-pdf-author-metadata.cs", "read-pdf-creator-metadata.cs", "read-pdf-metadata-add-blank-page.cs", "read-pdf-metadata-safely.cs", + "read-pdf-metadata-with-null-handling.cs", "read-pdf-modification-date.cs", "read-pdf-title-metadata-log.cs", "read-pdf-version-using-aspose-pdf-facade.cs", + "read-pdf-version.cs", "read-update-pdf-metadata.cs", "remove-custom-pdf-metadata-entry.cs", "retrieve-custom-pdf-metadata-alphabetically.cs", "retrieve-custom-pdf-metadata-projectcode.cs", + "retrieve-custom-pdf-metadata-reviewedby.cs", + "retrieve-custom-pdf-metadata.cs", "retrieve-pdf-keywords-metadata.cs", "retrieve-reviewedby-metadata.cs", "set-pdf-creator-metadata.cs", + "set-pdf-document-id-using-guid.cs", "set-pdf-document-id-using-pdffileinfo.cs", "set-pdf-keywords-metadata.cs", "set-pdf-language-property.cs", + "thread-safe-parallel-pdf-metadata-update.cs", "thread-safe-pdf-metadata-update.cs", + "update-pdf-author-metadata-conditional.cs", "update-pdf-author-metadata.cs", "update-pdf-keywords-metadata.cs", "update-pdf-metadata-audit.cs", "update-pdf-metadata-in-parallel.cs", - "update-pdf-metadata-save-new-info.cs", + "update-pdf-metadata-memorystream.cs", + "update-pdf-metadata-save-new-file.cs", "update-pdf-metadata-using-memorystream.cs", "update-pdf-subject-metadata.cs", "update-pdf-title-metadata.cs", - "validate-pdf-metadata-with-regex.cs" + "validate-pdf-metadata-with-regex.cs", + "validate-set-pdf-metadata-with-regex.cs" ], "required_namespaces": [ "Aspose.Pdf.Facades", - "Aspose.Pdf", - "Aspose.Pdf.Tagged", - "Aspose.Pdf.Text" + "Aspose.Pdf" ], "key_apis": [ - "PdfFileInfo", - "TextFragment" + "PdfFileInfo" ], "examples": [ { - "filename": "add-custom-metadata-reviewedby-to-pdf.cs", - "title": "Add Custom Metadata 'ReviewedBy' to PDF", - "description": "Demonstrates loading a PDF with PdfFileInfo, setting a custom metadata field using SetMetaInfo, and safely saving the updated document to a new file.", + "filename": "add-custom-metadata-field-to-pdf.cs", + "title": "Add Custom Metadata Field to PDF Using PdfFileInfo", + "description": "Demonstrates how to preserve existing custom metadata in a PDF and add a new \"Version\" field using the PdfFileInfo facade, then save the updated document.", "tags": [ "metadata", - "custom", "pdf", "aspose", + "custom-metadata", "facade" ], "apis_used": [ - "PdfFileInfo", - "PdfFileInfo.BindPdf", - "PdfFileInfo.SetMetaInfo", - "PdfFileInfo.SaveNewInfo" + "Aspose.Pdf.Facades.PdfFileInfo", + "Aspose.Pdf.Facades.PdfFileInfo.SetMetaInfo", + "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" + ], + "difficulty": "beginner" + }, + { + "filename": "add-custom-metadata-reviewedby-to-pdf.cs", + "title": "Add Custom Metadata 'ReviewedBy' to PDF", + "description": "Demonstrates how to set a custom metadata field in a PDF using Aspose.Pdf.Facades.PdfFileInfo and persist the changes to a new file.", + "tags": [ + "metadata", + "custom", + "pdf", + "aspose", + "facade" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfFileInfo", + "Aspose.Pdf.Facades.PdfFileInfo.SetMetaInfo", + "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" ], "difficulty": "beginner" }, { "filename": "add-custom-metadata-to-pdf.cs", "title": "Add Custom Metadata to PDF using PdfFileInfo", - "description": "Demonstrates how to add a custom metadata entry to a PDF file with the PdfFileInfo facade and save the updated document.", + "description": "Demonstrates how to add a custom metadata entry (ProjectCode) to an existing PDF and save the updated document using Aspose.Pdf.Facades.", "tags": [ "metadata", "pdf", - "Aspose.Pdf", "custom", + "aspose-pdf", "facade" ], "apis_used": [ @@ -23310,125 +28243,155 @@ "difficulty": "beginner" }, { - "filename": "add-custom-timestamp-metadata-to-pdf.cs", - "title": "Add Custom Timestamp Metadata to PDF", - "description": "Demonstrates how to add a custom metadata field containing the current UTC timestamp to a PDF using the PdfFileInfo facade and save the updated document.", + "filename": "add-department-metadata-to-pdfs.cs", + "title": "Add Custom Department Metadata to PDFs", + "description": "Demonstrates how to loop through PDF files, set a custom \"Department\" metadata field using PdfFileInfo, and save the updated PDFs to a new folder.", "tags": [ "metadata", - "custom-field", - "timestamp", "pdf", + "custom-field", + "batch", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.BindPdf", - "Aspose.Pdf.Facades.PdfFileInfo.SetMetaInfo", - "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" + "PdfFileInfo.SetMetaInfo", + "PdfFileInfo.SaveNewInfo" ], "difficulty": "beginner" }, { - "filename": "add-department-metadata-to-pdfs.cs", - "title": "Add Custom 'Department' Metadata to PDFs", - "description": "Shows how to iterate over PDF files, set a custom metadata field named \"Department\" using Aspose.Pdf.Facades.PdfFileInfo, and save the updated PDFs to a separate folder.", + "filename": "add-lastupdated-metadata-to-pdf.cs", + "title": "Add LastUpdated Metadata to PDF", + "description": "Demonstrates how to add a custom metadata field named \"LastUpdated\" with the current UTC timestamp to an existing PDF using Aspose.Pdf.Facades.PdfFileInfo and save the updated document.", "tags": [ "metadata", - "custom", + "custom-field", "pdf", "aspose", - "batch" + "utc" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", + "Aspose.Pdf.Facades.PdfFileInfo.BindPdf", "Aspose.Pdf.Facades.PdfFileInfo.SetMetaInfo", "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" ], "difficulty": "beginner" }, { - "filename": "backup-pdfs-update-metadata.cs", - "title": "Backup PDFs and Update Metadata with PdfFileInfo", - "description": "Creates a backup copy of each PDF in a source folder, then modifies its metadata (title, author, subject, keywords) using Aspose.Pdf.Facades.PdfFileInfo and saves the changes.", + "filename": "apply-metadata-changes-to-multiple-pdfs-in-parallel.cs", + "title": "Apply Metadata Changes to Multiple PDFs in Parallel", + "description": "Demonstrates how to update the Title, Author, and Subject metadata of several PDF files concurrently using Aspose.Pdf.Facades and the Task Parallel Library.", "tags": [ - "pdf", "metadata", - "backup", + "parallel", + "pdf", "aspose", - "facade" + "tpl" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", "Aspose.Pdf.Facades.PdfFileInfo.Title", "Aspose.Pdf.Facades.PdfFileInfo.Author", "Aspose.Pdf.Facades.PdfFileInfo.Subject", - "Aspose.Pdf.Facades.PdfFileInfo.Keywords", - "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" + "Aspose.Pdf.Facades.PdfFileInfo.Save" ], "difficulty": "intermediate" }, { - "filename": "check-custom-metadata-key.cs", - "title": "Check for Custom Metadata Key in PDF", - "description": "Demonstrates how to verify the existence of a custom metadata entry (e.g., \"Confidential\") in a PDF using Aspose.Pdf.Facades before reading its value.", + "filename": "audit-pdf-metadata-to-csv.cs", + "title": "Audit PDF Metadata Changes and Log to CSV", + "description": "Demonstrates how to read existing PDF metadata with Aspose.Pdf.Facades, modify selected fields, save the updated PDF, and record original and new values to a CSV file for auditing.", "tags": [ - "metadata", - "custom-metadata", "pdf", - "aspose", - "csharp" + "metadata", + "audit", + "csv", + "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.GetMetaInfo" + "Aspose.Pdf.Facades.PdfFileInfo.Title", + "Aspose.Pdf.Facades.PdfFileInfo.Author", + "Aspose.Pdf.Facades.PdfFileInfo.Subject", + "Aspose.Pdf.Facades.PdfFileInfo.Keywords", + "Aspose.Pdf.Facades.PdfFileInfo.CreationDate", + "Aspose.Pdf.Facades.PdfFileInfo.ModDate", + "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "conditionally-update-pdf-author-metadata.cs", - "title": "Conditionally Update PDF Author Metadata", - "description": "Shows how to read a PDF's Author metadata with Aspose.Pdf.Facades, update it only when the field is empty, and save the changes to a new file.", + "filename": "backup-and-update-pdf-metadata.cs", + "title": "Backup PDFs and Update Metadata with PdfFileInfo", + "description": "The example creates a backup of each PDF in a folder, then uses Aspose.Pdf.Facades.PdfFileInfo to modify common metadata fields and saves the changes to the original file.", "tags": [ "pdf", "metadata", - "author", - "conditional", - "aspose" + "backup", + "aspose", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", + "Aspose.Pdf.Facades.PdfFileInfo.Title", "Aspose.Pdf.Facades.PdfFileInfo.Author", + "Aspose.Pdf.Facades.PdfFileInfo.Subject", + "Aspose.Pdf.Facades.PdfFileInfo.Keywords", "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "convert-pdf-to-pdfa-1b-with-pdffileinfo.cs", - "title": "Convert PDF to PDF/A‑1b and Save with PdfFileInfo", - "description": "Creates a PDF in memory, converts it to PDF/A‑1b using Document.Convert, then uses the PdfFileInfo facade to enforce strict validation and save the PDF/A‑compliant file.", + "filename": "backup-pdfs-update-metadata.cs", + "title": "Backup Pdfs Update Metadata", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "check-custom-metadata-key.cs", + "title": "Check Custom Metadata Key", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "convert-pdf-to-pdfa-1b-using-pdffileinfo.cs", + "title": "Convert PDF to PDF/A-1B Using PdfFileInfo", + "description": "Demonstrates how to load a PDF with PdfFileInfo, convert it to PDF/A‑1B compliance, and save the archival‑ready file.", "tags": [ - "pdfa", + "PDF/A", + "Aspose.Pdf", + "PdfFileInfo", "conversion", - "pdf", - "facade", - "validation" + "archival" ], "apis_used": [ + "Aspose.Pdf.Facades.PdfFileInfo", "Aspose.Pdf.Document", "Aspose.Pdf.Document.Convert", - "Aspose.Pdf.Document.IsPdfaCompliant", - "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.UseStrictValidation", - "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Page" + "Aspose.Pdf.PdfFormat", + "Aspose.Pdf.ConvertErrorAction", + "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" ], - "difficulty": "intermediate" + "difficulty": "beginner" + }, + { + "filename": "convert-pdf-to-pdfa-1b-with-pdffileinfo.cs", + "title": "Convert Pdf To Pdfa 1B With Pdffileinfo", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "export-pdf-metadata-to-json.cs", "title": "Export PDF Metadata to JSON", - "description": "Reads metadata from each PDF in a folder using Aspose.Pdf.Facades.PdfFileInfo and writes the collected information to a JSON file for external processing.", + "description": "The program scans a folder for PDF files, extracts their metadata using Aspose.Pdf.Facades.PdfFileInfo, and writes the collected information to a JSON file for external processing.", "tags": [ "pdf", "metadata", @@ -23441,15 +28404,23 @@ "Aspose.Pdf.Facades.PdfFileInfo.BindPdf", "Aspose.Pdf.Facades.PdfFileInfo.Title", "Aspose.Pdf.Facades.PdfFileInfo.Author", - "Aspose.Pdf.Facades.PdfFileInfo.NumberOfPages", - "Aspose.Pdf.Facades.PdfFileInfo.IsEncrypted" + "Aspose.Pdf.Facades.PdfFileInfo.CreationDate", + "Aspose.Pdf.Facades.PdfFileInfo.Header" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "handle-readonly-file-errors-saving-pdf-metadata.cs", + "title": "Handle Readonly File Errors Saving Pdf Metadata", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "handle-readonly-file-errors-when-saving-pdf-metadata.cs", "title": "Handle Read‑Only File Errors When Saving PDF Metadata", - "description": "Demonstrates how to modify PDF metadata with Aspose.Pdf.Facades.PdfFileInfo and gracefully handle IOException caused by a read‑only output file, including clearing the attribute and retrying the save.", + "description": "Demonstrates how to modify PDF metadata with Aspose.Pdf.Facades and reliably save it even when the target file is marked as read‑only by clearing the attribute and retrying.", "tags": [ "pdf", "metadata", @@ -23459,16 +28430,15 @@ ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo", "Aspose.Pdf.Facades.PdfFileInfo.Title", - "Aspose.Pdf.Facades.PdfFileInfo.Author" + "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" ], "difficulty": "intermediate" }, { - "filename": "import-pdf-metadata-from-json.cs", - "title": "Import PDF Metadata from JSON", - "description": "Shows how to read metadata values from a JSON file and apply them to a PDF using the PdfFileInfo facade, including standard and custom properties.", + "filename": "import-json-metadata-to-pdf.cs", + "title": "Import JSON Metadata and Apply to PDF Files", + "description": "The example reads a JSON file containing metadata definitions and applies the standard and custom properties to corresponding PDF documents using Aspose.Pdf.Facades.PdfFileInfo.", "tags": [ "metadata", "json", @@ -23478,57 +28448,112 @@ ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.SetMetaInfo", - "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo", - "Aspose.Pdf.Facades.PdfFileInfo.Author", - "Aspose.Pdf.Facades.PdfFileInfo.Title", - "Aspose.Pdf.Facades.PdfFileInfo.CreationDate" + "PdfFileInfo.Title", + "PdfFileInfo.Author", + "PdfFileInfo.SetMetaInfo", + "PdfFileInfo.SaveNewInfo", + "PdfFileInfo.CreationDate", + "PdfFileInfo.ModDate" + ], + "difficulty": "intermediate" + }, + { + "filename": "import-pdf-metadata-from-json.cs", + "title": "Import Pdf Metadata From Json", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "list-custom-pdf-metadata-keys.cs", + "title": "List Custom PDF Metadata Keys Alphabetically", + "description": "Shows how to extract all custom metadata keys from a PDF, sort them alphabetically, and output each key with its value using Aspose.Pdf.", + "tags": [ + "metadata", + "custom", + "pdf", + "aspose", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfFileInfo", + "Aspose.Pdf.Facades.PdfFileInfo.GetMetaInfo", + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Metadata", + "Aspose.Pdf.DocumentInfo.IsPredefinedKey" ], "difficulty": "intermediate" }, + { + "filename": "load-pdf-retrieve-file-info-and-save.cs", + "title": "Load PDF, Retrieve File Info, and Save with Proper Disposal", + "description": "Demonstrates loading a PDF using Aspose.Pdf.Document inside a using block, accessing file‑level information with PdfFileInfo, and saving the document while ensuring both objects are correctly disposed.", + "tags": [ + "pdf", + "aspose.pdf", + "disposal", + "fileinfo", + "document" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfFileInfo", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Facades.PdfFileInfo.IsEncrypted", + "Aspose.Pdf.Facades.PdfFileInfo.Close" + ], + "difficulty": "beginner" + }, { "filename": "merge-xmp-metadata-with-pdf-fileinfo.cs", "title": "Merge XMP Metadata with PDF FileInfo", - "description": "Shows how to combine standard PDF file information with XMP metadata, add a custom XMP property, and save the merged metadata to a new PDF file.", + "description": "Demonstrates how to combine standard PDF FileInfo metadata with custom XMP metadata in a PDF using Aspose.Pdf.", "tags": [ "metadata", "xmp", "pdf", - "merge", - "aspose" + "aspose", + "fileinfo" ], "apis_used": [ - "PdfFileInfo", - "PdfXmpMetadata", - "XmpValue", - "PdfFileInfo.SaveNewInfoWithXmp", - "PdfXmpMetadata.BindPdf", - "PdfXmpMetadata.Add" + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Info", + "Aspose.Pdf.Document.Metadata", + "Aspose.Pdf.Document.Metadata.RegisterNamespaceUri", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "preserve-pdf-metadata-add-version.cs", - "title": "Preserve PDF Metadata and Add Version Field", - "description": "Demonstrates how to keep all existing PDF metadata while adding or updating a custom \"Version\" field using Aspose.Pdf.Facades.PdfFileInfo.", + "title": "Preserve Pdf Metadata Add Version", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "read-custom-pdf-metadata-existence-check.cs", + "title": "Read Custom PDF Metadata with Existence Check", + "description": "Shows how to verify a PDF file exists and safely read a custom metadata key \"Confidential\" using Aspose.Pdf.Facades.", "tags": [ - "metadata", - "custom-field", "pdf", + "metadata", + "custom", "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.SetMetaInfo", - "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" + "Aspose.Pdf.Facades.PdfFileInfo.GetMetaInfo" ], "difficulty": "beginner" }, { "filename": "read-pdf-author-metadata.cs", - "title": "Read PDF Author Metadata", - "description": "Shows how to use Aspose.Pdf.Facades.PdfFileInfo to open a PDF, retrieve the Author metadata property, and print it to the console.", + "title": "Read PDF Author Metadata Using PdfFileInfo", + "description": "Demonstrates how to open a PDF with Aspose.Pdf.Facades.PdfFileInfo and retrieve the Author metadata property, outputting it to the console.", "tags": [ "pdf", "metadata", @@ -23538,14 +28563,14 @@ ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.Author" + "PdfFileInfo.Author" ], "difficulty": "beginner" }, { "filename": "read-pdf-creator-metadata.cs", - "title": "Read PDF Creator Metadata with PdfFileInfo", - "description": "Demonstrates how to open a PDF with Aspose.Pdf.Facades.PdfFileInfo, retrieve the Creator metadata property, and store it in a variable.", + "title": "Read PDF Creator Metadata", + "description": "Shows how to use Aspose.Pdf.Facades.PdfFileInfo to retrieve the Creator metadata property from an existing PDF file.", "tags": [ "pdf", "metadata", @@ -23555,72 +28580,70 @@ ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", - "PdfFileInfo.Creator" + "Aspose.Pdf.Facades.PdfFileInfo.Creator" ], "difficulty": "beginner" }, { "filename": "read-pdf-metadata-add-blank-page.cs", - "title": "Read PDF Metadata and Add a Blank Page with Aspose.Pdf", - "description": "Demonstrates how to read basic PDF metadata using PdfFileInfo, obtain the page count, add a new blank page, and save the modified document while properly disposing resources.", - "tags": [ - "pdf", - "metadata", - "page-count", - "add-page", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner" + "title": "Read Pdf Metadata Add Blank Page", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "read-pdf-metadata-safely.cs", - "title": "Read PDF Metadata Safely with PdfFileInfo", - "description": "Demonstrates opening a PDF using Aspose.Pdf.Facades.PdfFileInfo, retrieving standard and custom metadata via GetMetaInfo, and gracefully handling null or empty values.", + "title": "Read Pdf Metadata Safely", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "read-pdf-metadata-with-null-handling.cs", + "title": "Read PDF Metadata with Null Handling", + "description": "Shows how to read custom and standard PDF metadata using PdfFileInfo and gracefully handle null or empty values.", "tags": [ "metadata", "pdf", - "aspose-pdf", + "aspose", "null-handling", - "facade" + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", "Aspose.Pdf.Facades.PdfFileInfo.GetMetaInfo", - "Aspose.Pdf.Facades.PdfFileInfo.Close" + "Aspose.Pdf.Facades.PdfFileInfo.Title", + "Aspose.Pdf.Facades.PdfFileInfo.Author" ], "difficulty": "beginner" }, { "filename": "read-pdf-modification-date.cs", - "title": "Read and Format PDF Modification Date", - "description": "Demonstrates how to use PdfFileInfo to retrieve a PDF's ModDate, parse the PDF date string, and display it in a human‑readable format.", + "title": "Read PDF Modification Date with PdfFileInfo", + "description": "Shows how to use Aspose.Pdf.Facades.PdfFileInfo to obtain the ModDate metadata from a PDF and output it in a friendly format.", "tags": [ "pdf", "metadata", "moddate", "aspose.pdf", - "date-parsing" + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.ModDate" + "Aspose.Pdf.Facades.PdfFileInfo.ModDate", + "Aspose.Pdf.Facades.PdfFileInfo.Dispose" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "read-pdf-title-metadata-log.cs", "title": "Read PDF Title Metadata and Write to Log", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfFileInfo to read the Title metadata from a PDF file and write the value to a simple log file.", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfFileInfo to read the Title metadata from a PDF file and write the result to a log file.", "tags": [ - "pdf", "metadata", + "pdf", "title", "logging", "aspose" @@ -23633,8 +28656,16 @@ }, { "filename": "read-pdf-version-using-aspose-pdf-facade.cs", + "title": "Read Pdf Version Using Aspose Pdf Facade", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "read-pdf-version.cs", "title": "Read PDF Version Using Aspose.Pdf Facade", - "description": "Demonstrates how to initialize the PdfFileInfo facade, retrieve the PDF version string with GetPdfVersion, and store it for later use.", + "description": "Shows how to bind a PDF file with PdfFileInfo and retrieve its version string for later use.", "tags": [ "pdf", "version", @@ -23644,77 +28675,94 @@ ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.GetPdfVersion" + "Aspose.Pdf.Facades.PdfFileInfo.BindPdf", + "Aspose.Pdf.Facades.PdfFileInfo.GetPdfVersion", + "Aspose.Pdf.Facades.SaveableFacade" ], "difficulty": "beginner" }, { "filename": "read-update-pdf-metadata.cs", - "title": "Read and Update PDF Metadata with PdfFileInfo", - "description": "Demonstrates how to open a PDF, read its metadata using PdfFileInfo, modify fields such as title and author, and save the updated information to a new file.", + "title": "Read and Update PDF Metadata", + "description": "Demonstrates how to open a PDF, read its existing metadata, modify fields such as title and author, and save the updated information to a new file using Aspose.Pdf.", "tags": [ - "pdf", "metadata", - "aspose.pdf", - "csharp", - "pdfinfo" + "pdf", + "aspose", + "read", + "update" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.Title", - "Aspose.Pdf.Facades.PdfFileInfo.Author", - "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo", - "Aspose.Pdf.Facades.PdfFileInfo.GetPdfVersion" + "PdfFileInfo.BindPdf", + "PdfFileInfo.Title", + "PdfFileInfo.Author", + "PdfFileInfo.SaveNewInfo" ], "difficulty": "beginner" }, { "filename": "remove-custom-pdf-metadata-entry.cs", - "title": "Remove Custom PDF Metadata Entry Using PdfFileInfo", - "description": "Demonstrates how to clear a specific custom metadata field in a PDF by setting its value to empty with PdfFileInfo.SetMetaInfo and saving the updated document.", + "title": "Remove Custom PDF Metadata Entry", + "description": "Demonstrates how to delete a specific custom metadata field from a PDF by setting its value to an empty string using the PdfFileInfo facade.", "tags": [ "metadata", "pdf", + "remove", "custom", - "aspose", - "remove" + "Aspose" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", + "Aspose.Pdf.Facades.PdfFileInfo.BindPdf", "Aspose.Pdf.Facades.PdfFileInfo.SetMetaInfo", - "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" + "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo", + "Aspose.Pdf.Facades.PdfFileInfo.Close" ], "difficulty": "beginner" }, { "filename": "retrieve-custom-pdf-metadata-alphabetically.cs", - "title": "Retrieve and Display Custom PDF Metadata Alphabetically", - "description": "The example shows how to obtain all custom XMP metadata keys from a PDF, sort them alphabetically, and print each key with its corresponding value using Aspose.Pdf.Facades.", + "title": "Retrieve Custom Pdf Metadata Alphabetically", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "retrieve-custom-pdf-metadata-projectcode.cs", + "title": "Retrieve Custom Pdf Metadata Projectcode", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "retrieve-custom-pdf-metadata-reviewedby.cs", + "title": "Retrieve Custom PDF Metadata (ReviewedBy)", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfFileInfo to read a custom metadata property from a PDF document and log its value.", "tags": [ "metadata", "pdf", - "aspose-pdf", - "csharp", - "xmp" + "aspose", + "custom-property", + "csharp" ], "apis_used": [ - "PdfFileInfo", - "PdfXmpMetadata", - "PdfXmpMetadata.BindPdf", - "PdfXmpMetadata.Keys", - "PdfFileInfo.GetMetaInfo" + "Aspose.Pdf.Facades.PdfFileInfo", + "Aspose.Pdf.Facades.PdfFileInfo.GetMetaInfo" ], "difficulty": "beginner" }, { - "filename": "retrieve-custom-pdf-metadata-projectcode.cs", + "filename": "retrieve-custom-pdf-metadata.cs", "title": "Retrieve Custom PDF Metadata (ProjectCode)", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfFileInfo to read a custom metadata entry named \"ProjectCode\" from a PDF file and display its value.", + "description": "Shows how to read a custom metadata entry named \"ProjectCode\" from a PDF file using Aspose.Pdf.Facades.PdfFileInfo.", "tags": [ "metadata", "pdf", "aspose", - "custom-metadata", + "custom", "csharp" ], "apis_used": [ @@ -23725,60 +28773,51 @@ }, { "filename": "retrieve-pdf-keywords-metadata.cs", - "title": "Retrieve PDF Keywords Metadata", - "description": "Shows how to load a PDF with Aspose.Pdf.Facades.PdfFileInfo and read the Keywords metadata property, then display it on the console.", + "title": "Retrieve PDF Keywords Metadata using PdfFileInfo", + "description": "Demonstrates how to open a PDF with Aspose.Pdf.Facades.PdfFileInfo and read the Keywords metadata property, then display it on the console.", "tags": [ "pdf", "metadata", "keywords", "aspose.pdf", - "c#" + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", - "PdfFileInfo.Keywords" + "Aspose.Pdf.Facades.PdfFileInfo.Keywords" ], "difficulty": "beginner" }, { "filename": "retrieve-reviewedby-metadata.cs", - "title": "Retrieve Custom PDF Metadata 'ReviewedBy'", - "description": "Shows how to use Aspose.Pdf.Facades.PdfFileInfo to read a custom metadata property named 'ReviewedBy' from a PDF and log the value for audit purposes.", - "tags": [ - "metadata", - "custom", - "pdf", - "audit", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.GetMetaInfo" - ], - "difficulty": "beginner" + "title": "Retrieve Reviewedby Metadata", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "set-pdf-creator-metadata.cs", - "title": "Set PDF Creator Metadata with PdfFileInfo", - "description": "Demonstrates how to assign a custom Creator value to a PDF using the PdfFileInfo facade and persist the change to a new file with SaveNewInfo.", + "title": "Set PDF Creator Metadata Using PdfFileInfo", + "description": "Demonstrates how to assign a custom Creator value to a PDF file by using Aspose.Pdf.Facades.PdfFileInfo and persisting the change with SaveNewInfo.", "tags": [ "pdf", "metadata", "creator", "aspose.pdf", - "facade" + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", - "PdfFileInfo.Creator", - "PdfFileInfo.SaveNewInfo" + "Aspose.Pdf.Facades.PdfFileInfo.Creator", + "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" ], "difficulty": "beginner" }, { - "filename": "set-pdf-document-id-using-pdffileinfo.cs", - "title": "Set PDF Document ID Using PdfFileInfo", - "description": "Demonstrates how to generate a GUID and store it as a custom metadata entry (DocumentId) in a PDF using Aspose.Pdf's PdfFileInfo facade, then save the updated file.", + "filename": "set-pdf-document-id-using-guid.cs", + "title": "Set PDF Document ID Using GUID Metadata", + "description": "Generates a new GUID and stores it as a custom metadata entry (DocumentID) in a PDF using the PdfFileInfo facade. The updated PDF is saved with the new identifier.", "tags": [ "pdf", "metadata", @@ -23789,79 +28828,99 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileInfo", + "Aspose.Pdf.Facades.PdfFileInfo.BindPdf", "Aspose.Pdf.Facades.PdfFileInfo.SetMetaInfo", "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" ], - "difficulty": "beginner" + "difficulty": "intermediate" + }, + { + "filename": "set-pdf-document-id-using-pdffileinfo.cs", + "title": "Set Pdf Document Id Using Pdffileinfo", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "set-pdf-keywords-metadata.cs", - "title": "Set PDF Keywords Metadata with PdfFileInfo", - "description": "Demonstrates how to set the Keywords metadata field of a PDF using Aspose.Pdf.Facades.PdfFileInfo, save the changes to a new file, and verify the value.", + "title": "Set PDF Keywords Metadata Using PdfFileInfo", + "description": "Demonstrates how to assign a Keywords metadata value to a PDF file with Aspose.Pdf.Facades.PdfFileInfo, save the updated document, and verify the change.", "tags": [ + "pdf", "metadata", "keywords", - "pdf", - "aspose", - "pdfinfo" + "aspose.pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", "PdfFileInfo.Keywords", - "PdfFileInfo.SaveNewInfo" + "PdfFileInfo.SaveNewInfo", + "PdfFileInfo.Dispose", + "PdfFileInfo (constructor)" ], "difficulty": "beginner" }, { "filename": "set-pdf-language-property.cs", "title": "Set PDF Language Property Using PdfFileInfo", - "description": "Demonstrates how to set the natural language of a PDF document to \"en-US\" using the PdfFileInfo facade and the tagged content API, then save the updated file.", + "description": "Demonstrates how to set the PDF language metadata to \"en-US\" using the PdfFileInfo facade and save the updated document.", "tags": [ - "pdf", - "language", "metadata", - "aspose-pdf", - "facades" + "language", + "pdf", + "aspose", + "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Document", - "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.TaggedContent.SetLanguage", - "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" + "PdfFileInfo", + "PdfFileInfo(string)", + "PdfFileInfo.SetMetaInfo", + "PdfFileInfo.SaveNewInfo", + "PdfFileInfo.Dispose" ], "difficulty": "beginner" }, { - "filename": "thread-safe-pdf-metadata-update.cs", - "title": "Thread‑Safe PDF Metadata Update with PdfFileInfo", - "description": "Demonstrates processing multiple PDFs in parallel by creating a separate PdfFileInfo instance per thread, updating metadata properties safely, and saving the updated files.", + "filename": "thread-safe-parallel-pdf-metadata-update.cs", + "title": "Thread‑Safe Parallel PDF Metadata Update with PdfFileInfo", + "description": "Demonstrates processing multiple PDF files concurrently and safely updating their metadata using Aspose.Pdf.Facades.PdfFileInfo with per‑file locking.", "tags": [ "pdf", "metadata", - "thread-safe", "parallel", - "aspose-pdf" + "thread-safe", + "aspose" ], "apis_used": [ "PdfFileInfo", "PdfFileInfo.BindPdf", "PdfFileInfo.Title", "PdfFileInfo.Author", + "PdfFileInfo.Subject", "PdfFileInfo.SaveNewInfo" ], "difficulty": "intermediate" }, { - "filename": "update-pdf-author-metadata.cs", - "title": "Update PDF Author Metadata Using PdfFileInfo", - "description": "Demonstrates how to set the Author property of a PDF file using Aspose.Pdf.Facades.PdfFileInfo and persist the changes to a new PDF.", + "filename": "thread-safe-pdf-metadata-update.cs", + "title": "Thread Safe Pdf Metadata Update", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "update-pdf-author-metadata-conditional.cs", + "title": "Update PDF Author Metadata Conditionally", + "description": "Shows how to read a PDF's Author metadata with PdfFileInfo, set it only when the field is empty, and save the updated document.", "tags": [ - "author", - "metadata", "pdf", - "aspose-pdf", - "csharp" + "metadata", + "author", + "conditional", + "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", @@ -23871,119 +28930,120 @@ "difficulty": "beginner" }, { - "filename": "update-pdf-keywords-metadata.cs", - "title": "Update PDF Keywords Metadata Using PdfFileInfo", - "description": "Shows how to open a PDF from a stream with PdfFileInfo, change the Keywords metadata, and save the modified document to a new file.", + "filename": "update-pdf-author-metadata.cs", + "title": "Update PDF Author Metadata with PdfFileInfo", + "description": "Demonstrates how to modify the Author property of a PDF file using the Aspose.Pdf.Facades.PdfFileInfo class and persist the changes to a new file with SaveNewInfo.", "tags": [ "pdf", "metadata", - "keywords", + "author", "aspose.pdf", "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.Keywords", - "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" + "PdfFileInfo.Author", + "PdfFileInfo.SaveNewInfo", + "PdfFileInfo.Dispose", + "PdfFileInfo(string)" ], "difficulty": "beginner" }, { - "filename": "update-pdf-metadata-audit.cs", - "title": "Update PDF Metadata and Log Changes to CSV", - "description": "Shows how to read existing PDF metadata with Aspose.Pdf.Facades, modify the values, save the updated PDF, and write an audit CSV containing original and new metadata.", + "filename": "update-pdf-keywords-metadata.cs", + "title": "Update PDF Keywords Metadata Using PdfFileInfo", + "description": "Demonstrates how to open a PDF from a stream with Aspose.Pdf.Facades.PdfFileInfo, modify the Keywords metadata, and save the updated document to a new file.", "tags": [ "pdf", "metadata", - "audit", - "csv", - "aspose" + "keywords", + "aspose.pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.Author", - "Aspose.Pdf.Facades.PdfFileInfo.Title", - "Aspose.Pdf.Facades.PdfFileInfo.Subject", "Aspose.Pdf.Facades.PdfFileInfo.Keywords", "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" ], - "difficulty": "intermediate" + "difficulty": "beginner" + }, + { + "filename": "update-pdf-metadata-audit.cs", + "title": "Update Pdf Metadata Audit", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "update-pdf-metadata-in-parallel.cs", - "title": "Update PDF Metadata in Parallel Using Aspose.Pdf", - "description": "Demonstrates how to modify PDF metadata such as title, author, subject, and keywords for multiple PDF files concurrently using the Aspose.Pdf.Facades PdfFileInfo class and TPL's Parallel.ForEach.", + "title": "Update Pdf Metadata In Parallel", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "update-pdf-metadata-memorystream.cs", + "title": "Update PDF Metadata Using MemoryStream and PdfFileInfo", + "description": "Demonstrates loading a PDF into a MemoryStream, modifying its metadata with PdfFileInfo, and saving the updated document to a new file.", "tags": [ - "pdf", "metadata", - "parallel", - "aspose", - "facade" + "pdf", + "memorystream", + "aspose-pdf", + "facades" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.Title", - "Aspose.Pdf.Facades.PdfFileInfo.Author", - "Aspose.Pdf.Facades.PdfFileInfo.Subject", - "Aspose.Pdf.Facades.PdfFileInfo.Keywords", - "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" + "PdfFileInfo", + "PdfFileInfo.Title", + "PdfFileInfo.Author", + "PdfFileInfo.SetMetaInfo", + "PdfFileInfo.SaveNewInfo" ], "difficulty": "intermediate" }, { - "filename": "update-pdf-metadata-save-new-info.cs", - "title": "Update PDF Metadata and Save New Info", - "description": "Shows how to load a PDF with PdfFileInfo, modify its metadata properties, and write the changes to a new file using SaveNewInfo.", + "filename": "update-pdf-metadata-save-new-file.cs", + "title": "Update PDF Metadata and Save to New File", + "description": "Demonstrates how to modify PDF metadata such as title, author, subject, keywords, creator, and modification date using Aspose.Pdf.Facades.PdfFileInfo and save the updated information to a new PDF file.", "tags": [ - "pdf", "metadata", + "pdf", "aspose", "csharp", - "facade" + "save" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.Title", - "Aspose.Pdf.Facades.PdfFileInfo.Author", - "Aspose.Pdf.Facades.PdfFileInfo.Subject", - "Aspose.Pdf.Facades.PdfFileInfo.Keywords", - "Aspose.Pdf.Facades.PdfFileInfo.Creator", - "Aspose.Pdf.Facades.PdfFileInfo.ModDate", - "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" + "PdfFileInfo.Title", + "PdfFileInfo.Author", + "PdfFileInfo.Subject", + "PdfFileInfo.Keywords", + "PdfFileInfo.Creator", + "PdfFileInfo.ModDate", + "PdfFileInfo.SaveNewInfo" ], "difficulty": "beginner" }, { "filename": "update-pdf-metadata-using-memorystream.cs", - "title": "Update PDF Metadata Using MemoryStream and PdfFileInfo", - "description": "The example loads a PDF into a memory stream, updates its metadata (title, author, subject, keywords) via the PdfFileInfo facade, and saves the modified document to a new file.", - "tags": [ - "pdf", - "metadata", - "memory-stream", - "aspose-pdf", - "facade" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.Title", - "Aspose.Pdf.Facades.PdfFileInfo.Author", - "Aspose.Pdf.Facades.PdfFileInfo.Subject", - "Aspose.Pdf.Facades.PdfFileInfo.Keywords", - "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" - ], - "difficulty": "beginner" + "title": "Update Pdf Metadata Using Memorystream", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "update-pdf-subject-metadata.cs", - "title": "Update PDF Subject Metadata Using PdfFileInfo", - "description": "Shows how to load a PDF, change its Subject metadata field with PdfFileInfo, and save the updated information to a new file using SaveNewInfo.", + "title": "Update PDF Subject Metadata with PdfFileInfo", + "description": "Demonstrates how to modify the Subject field of a PDF's metadata using the Aspose.Pdf.Facades.PdfFileInfo class and save the changes to a new file.", "tags": [ "pdf", "metadata", "subject", "aspose.pdf", - "csharp" + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", @@ -23994,181 +29054,256 @@ }, { "filename": "update-pdf-title-metadata.cs", - "title": "Update PDF Title Metadata with PdfFileInfo", - "description": "Demonstrates how to modify the Title property of a PDF using Aspose.Pdf.Facades.PdfFileInfo and save the changes to a new file with SaveNewInfo.", + "title": "Update PDF Title Metadata using PdfFileInfo", + "description": "Demonstrates how to modify the Title property of a PDF file using Aspose.Pdf.Facades.PdfFileInfo and save the changes to a new document.", "tags": [ - "pdf", "metadata", "title", - "aspose.pdf", + "pdf", + "aspose", "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", "Aspose.Pdf.Facades.PdfFileInfo.Title", - "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo", - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" ], "difficulty": "beginner" }, { "filename": "validate-pdf-metadata-with-regex.cs", + "title": "Validate Pdf Metadata With Regex", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "validate-set-pdf-metadata-with-regex.cs", "title": "Validate and Set PDF Metadata with Regex using PdfFileInfo", - "description": "The example shows how to validate PDF metadata fields with regular expressions before assigning them via the Aspose.Pdf.Facades.PdfFileInfo facade and then saving the updated information to a new PDF file.", + "description": "The example loads a PDF with Aspose.Pdf.Facades.PdfFileInfo, validates each metadata value against a regular expression, sets standard and custom properties, and saves the updated file.", "tags": [ "pdf", "metadata", + "validation", "regex", - "aspose-pdf", - "facade" + "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.Title", - "Aspose.Pdf.Facades.PdfFileInfo.Author", - "Aspose.Pdf.Facades.PdfFileInfo.Subject", - "Aspose.Pdf.Facades.PdfFileInfo.Keywords", - "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" + "PdfFileInfo.Title", + "PdfFileInfo.Author", + "PdfFileInfo.SetMetaInfo", + "PdfFileInfo.SaveNewInfo", + "PdfFileInfo.CreationDate" ], - "difficulty": "beginner" + "difficulty": "intermediate" } ] }, { "name": "facades-pages", - "file_count": 117, + "file_count": 185, "files": [ "add-10-percent-margins-to-pdf-pages.cs", + "add-15-percent-margins-to-pdf-pages.cs", "add-20-percent-margins-to-pdf-pages.cs", "add-5-percent-margins-and-print-pdf.cs", + "add-fade-transition-to-pdf-page.cs", "add-percentage-margins-to-pdf-pages.cs", "add-transition-to-odd-pdf-pages.cs", + "adjust-page-zoom-based-on-word-count.cs", "adjust-pdf-page-zoom-by-word-count.cs", - "adjust-zoom-of-specific-pdf-page.cs", + "align-page-three-vertically-top.cs", + "align-page-two-left.cs", "align-vertical-content-page-three.cs", - "apply-boxout-transition-to-pdf-page.cs", "apply-cover-transition-to-pdf-page.cs", "apply-custom-page-transitions.cs", "apply-different-zoom-levels-to-pdf-pages.cs", "apply-dissolve-transition-to-pdf-page.cs", "apply-fade-transition-all-pdf-pages.cs", + "apply-fade-transition-to-all-pdf-pages.cs", "apply-horizontal-alignment-to-pdf-pages.cs", "apply-page-settings-from-json.cs", + "apply-page-transitions-by-index.cs", "apply-page-transitions-per-index.cs", + "apply-rotation-size-zoom-to-pdf-pages.cs", "apply-rotation-zoom-transition-to-pdf-pages.cs", "apply-sequential-page-transitions.cs", "apply-split-transition-to-pdf-page.cs", + "apply-transition-to-odd-pages.cs", "apply-vertical-alignment-to-selected-pdf-pages.cs", "apply-zoom-to-even-pdf-pages.cs", "apply-zoom-to-even-pdf-pages__v2.cs", + "apply-zoom-to-non-consecutive-pdf-pages.cs", "assign-page-transitions-by-content.cs", "audit-pdf-page-dimensions-rotation.cs", + "batch-adjust-pdf-page-size.cs", "batch-convert-pdfs-to-a4.cs", "batch-resize-pdf-pages-by-filename.cs", + "batch-rotate-first-page-pdfs.cs", "batch-set-fade-transition-for-pdf-slideshow.cs", + "batch-set-fade-transition-pdf-slideshow.cs", "center-align-page-set-display-duration.cs", "center-content-on-page-two.cs", - "chain-page-transformations-pdf.cs", + "center-page-content-horizontally.cs", + "center-page-content-set-display-duration.cs", + "chain-page-rotation-size-zoom-modifications.cs", + "change-pdf-page-size-and-undo.cs", + "change-pdf-page-size-to-a3.cs", + "combine-page-rotation-zoom-presentation.cs", + "convert-pdf-pages-to-landscape.cs", "convert-pdf-portrait-to-landscape.cs", "convert-pdf-to-landscape-a4.cs", + "convert-portrait-to-landscape.cs", + "create-a-contentsresizeparameters-object-using-percentage-margins-of-fifteen-percent-for-uniform-content-scaling.cs", "create-contentsresizeparameters-uniform-margins.cs", + "create-contentsresizeparameters-with-uniform-margins.cs", "create-pdf-slideshow-with-page-transitions.cs", + "create-pdf-with-a4-pages.cs", "create-uniform-15-percent-margin-resize-parameters.cs", "disable-page-transition-animation.cs", + "dispose-pdfpageeditor-properly.cs", "edit-pdf-in-memory-using-pdfpageeditor.cs", + "edit-pdf-in-memory-using-pdfpageeditor__v2.cs", + "edit-pdf-page-zoom-save.cs", + "edit-pdf-pages-save-new-file.cs", "edit-pdf-pages-with-pdfpageeditor-disposal.cs", "edit-pdf-pages-zoom-rotation.cs", "edit-pdf-with-backup-using-pdfpageeditor.cs", "extract-rotate-selected-pdf-pages.cs", "handle-invalid-page-rotation.cs", + "handle-invalid-rotation-value.cs", "hybrid-content-resize-mixed-margins.cs", "incremental-update-pdf-text-annotation.cs", - "left-align-page-two-pdf.cs", "load-pdf-with-pdfpageeditor.cs", "log-pdf-page-modifications.cs", + "log-pdf-page-property-changes.cs", "merge-pdfs-with-uniform-margins.cs", "modify-pages-in-signed-pdf.cs", + "modify-pages-preserve-signature.cs", "report-page-properties-before-after-edit.cs", + "report-pdf-page-properties-before-after.cs", + "reset-page-rotation-to-zero.cs", "reset-page-rotation.cs", + "resize-and-rotate-pdf-page.cs", + "resize-and-split-pdf-into-chapters.cs", + "resize-contents-of-pages-two-and-four-with-custom-left-and-right-margins-using-contentsresizeparameters.cs", + "resize-contents-on-text-pages.cs", "resize-contents-only-on-text-pages.cs", - "resize-last-page-to-a5.cs", + "resize-page-six-to-letter-size.cs", "resize-pdf-and-split-into-chapters.cs", "resize-pdf-contents-asymmetric-margins.cs", "resize-pdf-contents-rotate-pages.cs", "resize-pdf-contents-top-bottom-margins.cs", + "resize-pdf-contents-uniform-margin.cs", "resize-pdf-contents-uniform-margins.cs", "resize-pdf-page-and-revert.cs", "resize-pdf-page-contents-10-percent-margins.cs", "resize-pdf-page-contents-5-percent.cs", "resize-pdf-page-contents-custom-margins.cs", + "resize-pdf-page-contents-negative-margins.cs", + "resize-pdf-pages-content-10-percent-margin.cs", "resize-pdf-pages-preserve-annotations.cs", "resize-pdf-pages-to-a4.cs", + "resize-pdf-pages-using-pdfpageeditor.cs", "resize-specific-pdf-page-to-letter.cs", "resize-specific-pdf-pages-to-us-letter.cs", + "retrieve-page-rotation.cs", "retrieve-page-size-after-rotation.cs", - "retrieve-pdf-page-rotation.cs", "retrieve-pdf-page-size.cs", "retrieve-verify-page-rotation-after-resize.cs", + "retrieve-verify-page-rotation-after-resizing.cs", "revert-page-size-to-original.cs", + "revert-pdf-page-size-to-original.cs", + "rotate-and-reset-pdf-page-orientation.cs", + "rotate-and-resize-pdf-page-to-letter.cs", "rotate-every-third-page-270-degrees.cs", + "rotate-every-third-pdf-page.cs", + "rotate-first-page-from-memory-stream.cs", "rotate-first-page-of-pdfs.cs", + "rotate-first-page-pdf.cs", "rotate-landscape-pdf-pages.cs", + "rotate-page-2-pdf-90-degrees.cs", "rotate-pages-encrypted-pdf.cs", "rotate-pdf-page-180-preserve-transition.cs", + "rotate-pdf-page-180-preserve-transitions.cs", "rotate-pdf-page-restore-orientation.cs", + "rotate-pdf-pages-and-save.cs", "rotate-pdf-pages-for-brochure.cs", "rotate-pdf-pages-from-network-stream.cs", "rotate-pdf-pages-memory-stream.cs", + "rotate-pdf-pages-preserve-form-fields.cs", "rotate-pdf-pages-preserve-form.cs", + "rotate-pdf-pages-to-landscape-brochure.cs", "rotate-pdf-pages-using-pdfpageeditor.cs", + "rotate-pdf-pages-using-pdfpageeditor__v2.cs", "rotate-pdf-pages-with-validation.cs", "rotate-resize-pdf-page-to-letter.cs", "rotate-resize-zoom-pdf-pages.cs", "rotate-specific-pdf-page.cs", - "rotate-specific-pdf-page__v2.cs", - "rotate-specific-pdf-pages-180-degrees.cs", + "rotate-specific-pdf-pages.cs", "safe-get-pdf-page-size.cs", "save-modified-pdf-to-memorystream-using-pdfpageeditor.cs", "set-boxout-transition-and-zoom.cs", - "set-custom-page-size-pdfpageeditor.cs", - "set-display-duration-for-pdf-page.cs", + "set-boxout-transition-on-pdf-page.cs", + "set-cover-transition-on-pdf-page.cs", + "set-custom-a4-landscape-page-size.cs", + "set-custom-page-size-with-pdfpageeditor.cs", + "set-display-duration-even-pages.cs", "set-display-duration-for-pdf-pages.cs", "set-display-duration-on-even-pdf-pages.cs", + "set-display-duration-page-five.cs", + "set-horizontal-alignment-and-zoom-on-page.cs", "set-horizontal-alignment-pdf.cs", "set-horizontal-alignment-zoom-page.cs", + "set-last-page-size-a5.cs", + "set-page-display-duration-by-word-count.cs", + "set-page-display-duration-for-pdf-slideshow.cs", "set-page-transition-duration-based-on-title-length.cs", + "set-page-transition-duration-for-selected-pdf-pages.cs", "set-page-transition-fade-2sec.cs", "set-page-transitions-fade-boxout-cover.cs", + "set-page-zoom-to-100-percent.cs", + "set-page-zoom-to-150-percent.cs", "set-pdf-page-size-a4-landscape.cs", "set-pdf-page-size-to-a3.cs", "set-pdf-page-size-to-letter-portrait.cs", - "set-pdf-page-zoom-to-100-percent.cs", - "set-pdf-page-zoom.cs", + "set-pdf-page-zoom-preview-final.cs", + "set-pdf-page-zoom-using-double-precision.cs", "set-pdf-zoom-preview-final-output.cs", "set-per-page-display-duration-based-on-word-count.cs", "set-per-page-display-duration.cs", + "set-sequential-page-transitions.cs", + "set-slide-display-duration-pdf-presentation.cs", "set-slide-display-duration-pdf.cs", - "set-transition-duration-for-pdf-pages.cs", + "set-split-page-transition.cs", + "set-zoom-of-page-to-75-percent.cs", + "set-zoom-on-even-pdf-pages.cs", + "set-zoom-on-odd-pages.cs", "set-zoom-on-specific-pdf-page.cs", "set-zoom-page-5-75-percent.cs", + "use-try-catch-blocks-around-getpagesize-calls-to-handle-requests-for-non-existent-page-numbers-safely.cs", "vertically-align-page-3-top.cs", - "zoom-odd-numbered-pdf-pages.cs", + "vertically-center-page-content.cs", + "zoom-even-pages-pdf.cs", "zoom-pages-with-images.cs", + "zoom-pdf-pages-with-images.cs", "zoom-selected-non-consecutive-pdf-pages.cs" ], "required_namespaces": [ "Aspose.Pdf.Facades", "Aspose.Pdf", "Aspose.Pdf.Text", - "Aspose.Pdf.Annotations" + "Aspose.Pdf.Annotations", + "Aspose.Pdf.Forms" ], "key_apis": [ "PdfPageEditor", "PdfFileEditor", "TextAbsorber", "TextFragment", + "PdfExtractor", "PdfFileInfo", "TextAnnotation" ], @@ -24176,13 +29311,13 @@ { "filename": "add-10-percent-margins-to-pdf-pages.cs", "title": "Add 10% Margins to All PDF Pages", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfFileEditor to add a 10 % margin on all sides of every page in a PDF and save the result as a new file.", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfFileEditor to add a uniform 10 % margin on all sides of every page in a PDF, producing a resized document ready for printing.", "tags": [ "pdf", "margin", "resize", "facade", - "add-margins" + "printing" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", @@ -24191,14 +29326,14 @@ "difficulty": "beginner" }, { - "filename": "add-20-percent-margins-to-pdf-pages.cs", - "title": "Add 20% Margins to PDF Pages", - "description": "Demonstrates how to add a 20 % margin around all pages of a PDF using Aspose.Pdf's PdfFileEditor facade for printing purposes.", + "filename": "add-15-percent-margins-to-pdf-pages.cs", + "title": "Add 15% Margins to PDF Pages for Booklet Layout", + "description": "Shows how to apply a 15 % margin to selected or all pages of a PDF using Aspose.Pdf.Facades, improving readability and binding margins for booklet layouts.", "tags": [ "pdf", - "margin", - "printing", - "aspose.pdf", + "margins", + "booklet", + "aspose", "facade" ], "apis_used": [ @@ -24208,221 +29343,217 @@ "difficulty": "beginner" }, { - "filename": "add-5-percent-margins-and-print-pdf.cs", - "title": "Add 5% Margins to PDF Pages and Print", - "description": "Demonstrates how to add a 5 % margin to all pages of a PDF using PdfFileEditor, then print the resized document with PdfViewer's AutoResize feature.", + "filename": "add-20-percent-margins-to-pdf-pages.cs", + "title": "Add 20% Margins to PDF Pages", + "description": "Demonstrates how to add uniform 20 % margins around each page of a PDF using Aspose.Pdf.Facades.PdfFileEditor for better printing layout.", "tags": [ "pdf", "margin", - "print", + "printing", "aspose", "facade" ], "apis_used": [ - "PdfFileEditor", - "PdfFileEditor.AddMarginsPct", - "PdfViewer", - "PdfViewer.BindPdf", - "PdfViewer.PrintDocument", - "PdfViewer.AutoResize" + "Aspose.Pdf.Facades.PdfFileEditor", + "Aspose.Pdf.Facades.PdfFileEditor.AddMarginsPct" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "add-percentage-margins-to-pdf-pages.cs", - "title": "Add 15% Margins to Selected PDF Pages", - "description": "Demonstrates how to apply a 15 % margin on all sides of specific pages in a PDF using Aspose.Pdf.Facades, suitable for creating a booklet layout.", + "filename": "add-5-percent-margins-and-print-pdf.cs", + "title": "Add 5% Margins and Print PDF", + "description": "Shows how to add a 5 % margin to every page of a PDF using PdfFileEditor and then print the modified document with PdfViewer.", "tags": [ "pdf", "margin", - "booklet", + "printing", "aspose", - "csharp" + "facades" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.AddMarginsPct" + "Aspose.Pdf.Facades.PdfViewer", + "Aspose.Pdf.Facades.PdfFileEditor.AddMarginsPct", + "Aspose.Pdf.Facades.PdfViewer.BindPdf", + "Aspose.Pdf.Facades.PdfViewer.PrintDocument" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "add-transition-to-odd-pdf-pages.cs", - "title": "Add Transition Effect to Odd PDF Pages", - "description": "Demonstrates how to apply a page transition only to odd‑numbered pages of a PDF using Aspose.Pdf.Facades.PdfPageEditor.", + "filename": "add-fade-transition-to-pdf-page.cs", + "title": "Add Fade Transition to PDF Page", + "description": "Demonstrates how to set a fade page transition with a two‑second duration on the first page of a PDF using Aspose.Pdf.", "tags": [ "pdf", + "fade", "transition", - "odd-pages", - "facades", - "csharp" + "aspose.pdf", + "pdfpageeditor" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save", "PdfPageEditor.TransitionType", "PdfPageEditor.TransitionDuration", - "PdfPageEditor.ProcessPages" + "PdfPageEditor.ApplyChanges", + "Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "adjust-pdf-page-zoom-by-word-count.cs", - "title": "Adjust PDF Page Zoom Based on Word Count", - "description": "Shows how to count words on each PDF page and apply a dynamic zoom factor with PdfPageEditor to improve readability.", + "filename": "add-percentage-margins-to-pdf-pages.cs", + "title": "Add Percentage Margins To Pdf Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-transition-to-odd-pdf-pages.cs", + "title": "Add Transition To Odd Pdf Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "adjust-page-zoom-based-on-word-count.cs", + "title": "Adjust Page Zoom Based on Word Count", + "description": "Demonstrates how to analyze each PDF page's word count and apply a dynamic zoom factor—higher zoom for pages with few words and lower zoom for dense pages—using Aspose.Pdf.", "tags": [ "pdf", "zoom", - "text-extraction", + "word-count", "page-editing", - "aspose-pdf" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextAbsorber", - "Aspose.Pdf.Text.TextExtractionOptions", "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges" + "Aspose.Pdf.Text.TextAbsorber", + "PdfPageEditor.BindPdf", + "PdfPageEditor.ApplyChanges", + "PdfPageEditor.Zoom", + "Document.Save" ], "difficulty": "intermediate" }, { - "filename": "adjust-zoom-of-specific-pdf-page.cs", - "title": "Adjust Zoom of Specific PDF Page", - "description": "Demonstrates how to set a 150% zoom factor for page three of a PDF using the Aspose.Pdf.Facades PdfPageEditor.", - "tags": [ - "pdf", - "zoom", - "page-editing", - "aspose", - "facade" - ], - "apis_used": [ - "PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.ProcessPages", - "PdfPageEditor.Zoom", - "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save" - ], - "difficulty": "beginner" + "filename": "adjust-pdf-page-zoom-by-word-count.cs", + "title": "Adjust Pdf Page Zoom By Word Count", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "align-vertical-content-page-three.cs", - "title": "Vertically Align PDF Page Content to Center", - "description": "Demonstrates how to center the original content vertically on a specific page (page 3) of a PDF using Aspose.Pdf's PdfPageEditor.", + "filename": "align-page-three-vertically-top.cs", + "title": "Align Page Three Vertically to Top Using PdfPageEditor", + "description": "Shows how to vertically align the content of page 3 of a PDF to the top using Aspose.Pdf's PdfPageEditor facade.", "tags": [ "pdf", "alignment", "vertical", - "Aspose.Pdf", - "page-editing" + "page-editor", + "aspose" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages", - "Aspose.Pdf.Facades.PdfPageEditor.VerticalAlignmentType", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Save" + "PdfPageEditor.BindPdf", + "PdfPageEditor.ProcessPages", + "PdfPageEditor.VerticalAlignmentType", + "PdfPageEditor.ApplyChanges", + "PdfPageEditor.Save" ], "difficulty": "beginner" }, { - "filename": "apply-boxout-transition-to-pdf-page.cs", - "title": "Apply BoxOut Transition to PDF Page", - "description": "Shows how to use Aspose.Pdf.Facades.PdfPageEditor to set a BoxOut (OUTBOX) page transition with a 3‑second duration on a specific page of a PDF document.", + "filename": "align-page-two-left.cs", + "title": "Align Page Two Left in PDF", + "description": "Demonstrates how to left‑justify the content of the second page of a PDF using Aspose.Pdf's PdfPageEditor and the HorizontalAlignment property.", "tags": [ "pdf", - "transition", - "boxout", - "aspose", - "facade" + "alignment", + "page-editing", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "PdfPageEditor.BindPdf", "PdfPageEditor.ProcessPages", - "PdfPageEditor.TransitionType", - "PdfPageEditor.TransitionDuration", + "PdfPageEditor.HorizontalAlignment", "PdfPageEditor.ApplyChanges", "Document.Save" ], "difficulty": "beginner" }, + { + "filename": "align-vertical-content-page-three.cs", + "title": "Align Vertical Content Page Three", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "apply-cover-transition-to-pdf-page.cs", - "title": "Apply Cover Transition to a PDF Page", - "description": "Creates a four‑page PDF and uses PdfPageEditor to set a Cover page transition with a one‑second duration on page 4, then saves the result.", - "tags": [ - "pdf", - "page-transition", - "cover", - "aspose-pdf", - "pdf-editor" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Save" - ], - "difficulty": "intermediate" + "title": "Apply Cover Transition To Pdf Page", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "apply-custom-page-transitions.cs", - "title": "Apply Custom Page Transitions in PDF", - "description": "Demonstrates how to use Aspose.Pdf's PdfPageEditor facade to assign different transition effects to each page of a PDF based on its index, then save the modified document.", + "title": "Apply Custom Page Transitions Based on Index", + "description": "Shows how to assign different transition effects to each PDF page using Aspose.Pdf's PdfPageEditor, selecting the transition type according to the page index.", "tags": [ "pdf", "page-transitions", "aspose-pdf", - "facade", - "csharp" + "csharp", + "facade" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages", - "Aspose.Pdf.Facades.PdfPageEditor.TransitionType", - "Aspose.Pdf.Facades.PdfPageEditor.TransitionDuration", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Document.Save" + "PdfPageEditor.BindPdf", + "PdfPageEditor.ProcessPages", + "PdfPageEditor.TransitionDuration", + "PdfPageEditor.TransitionType", + "PdfPageEditor.ApplyChanges", + "PdfPageEditor.Save" ], "difficulty": "intermediate" }, { "filename": "apply-different-zoom-levels-to-pdf-pages.cs", "title": "Apply Different Zoom Levels to PDF Pages", - "description": "Shows how to iterate through each page of a PDF and set a distinct zoom factor using Aspose.Pdf.Facades.PdfPageEditor.", + "description": "Shows how to assign a distinct zoom factor to each page of a PDF using the Aspose.Pdf.Facades.PdfPageEditor facade.", "tags": [ "pdf", "zoom", - "page-editor", + "page-editing", "Aspose.Pdf", - "C#" + "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.GetPages", - "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages", - "Aspose.Pdf.Facades.PdfPageEditor.Zoom", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Save" + "PdfPageEditor", + "PdfPageEditor.BindPdf", + "PdfPageEditor.GetPages", + "PdfPageEditor.ProcessPages", + "PdfPageEditor.Zoom", + "PdfPageEditor.ApplyChanges", + "PdfPageEditor.Save" ], "difficulty": "intermediate" }, { "filename": "apply-dissolve-transition-to-pdf-page.cs", - "title": "Apply Dissolve Transition to a PDF Page", - "description": "Shows how to use Aspose.Pdf.Facades.PdfPageEditor to set a dissolve page transition with a 3‑second duration on page 5 of a PDF document.", + "title": "Apply Dissolve Transition to a Specific PDF Page", + "description": "Demonstrates how to set a three‑second Dissolve page transition on page 5 of a PDF using Aspose.Pdf's PdfPageEditor facade.", "tags": [ "pdf", "transition", @@ -24431,46 +29562,55 @@ "aspose" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.ProcessPages", - "PdfPageEditor.TransitionType", - "PdfPageEditor.TransitionDuration", - "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save" + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Facades.PdfPageEditor.TransitionType", + "Aspose.Pdf.Facades.PdfPageEditor.TransitionDuration", + "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages" ], "difficulty": "beginner" }, { "filename": "apply-fade-transition-all-pdf-pages.cs", - "title": "Apply Fade (Dissolve) Transition to All PDF Pages", - "description": "Shows how to set a fade-like (Dissolve) page transition for every page in a PDF using Aspose.Pdf's PdfPageEditor facade.", + "title": "Apply Fade Transition All Pdf Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "apply-fade-transition-to-all-pdf-pages.cs", + "title": "Apply Fade Transition to All PDF Pages", + "description": "Shows how to set a uniform Fade (Dissolve) transition and duration for every page in a PDF using Aspose.Pdf's PdfPageEditor facade.", "tags": [ - "pdf", - "transition", "fade", - "aspose", - "facade" + "transition", + "pdf", + "aspose-pdf", + "pdfpageeditor" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.TransitionType", - "Aspose.Pdf.Facades.PdfPageEditor.TransitionDuration", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges" + "PdfPageEditor.BindPdf", + "PdfPageEditor.TransitionType", + "PdfPageEditor.TransitionDuration", + "PdfPageEditor.ApplyChanges", + "Document.Save" ], "difficulty": "beginner" }, { "filename": "apply-horizontal-alignment-to-pdf-pages.cs", "title": "Apply Horizontal Alignment to PDF Pages", - "description": "Shows how to set left horizontal alignment for all pages of a PDF using Aspose.Pdf.Facades.PdfPageEditor.", + "description": "Shows how to set left‑justified horizontal alignment for all pages of a PDF using the PdfPageEditor facade.", "tags": [ "horizontal-alignment", "pdf", "pages", - "aspose-pdf", + "Aspose.Pdf", "facade" ], "apis_used": [ @@ -24478,109 +29618,102 @@ "PdfPageEditor.BindPdf", "PdfPageEditor.HorizontalAlignment", "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save", - "PdfPageEditor.Close" + "PdfPageEditor.Save" ], "difficulty": "beginner" }, { "filename": "apply-page-settings-from-json.cs", - "title": "Apply Page Settings from JSON to PDF", - "description": "Shows how to read a JSON configuration file and apply per‑page properties such as rotation, zoom, alignment, display duration, and transition effects to a PDF using Aspose.Pdf's PdfPageEditor.", + "title": "Apply Page Settings From Json", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "apply-page-transitions-by-index.cs", + "title": "Apply Different Page Transitions Based on Index", + "description": "Demonstrates how to assign a different transition effect to each PDF page using Aspose.Pdf.Facades.PdfPageEditor, cycling through three transition types based on the page number.", "tags": [ "pdf", - "page-settings", - "json", + "page-transition", "aspose", - "automation" + "facade", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.Rotation", - "Aspose.Pdf.Facades.PdfPageEditor.Zoom", - "Aspose.Pdf.Facades.PdfPageEditor.HorizontalAlignment", - "Aspose.Pdf.Facades.PdfPageEditor.VerticalAlignmentType", - "Aspose.Pdf.Facades.PdfPageEditor.DisplayDuration", - "Aspose.Pdf.Facades.PdfPageEditor.TransitionType" + "PdfPageEditor.BindPdf", + "PdfPageEditor.TransitionType", + "PdfPageEditor.ProcessPages", + "PdfPageEditor.ApplyChanges", + "Document.Save" ], "difficulty": "intermediate" }, { "filename": "apply-page-transitions-per-index.cs", - "title": "Apply Different Page Transitions per PDF Page", - "description": "Shows how to iterate through PDF pages and assign different transition effects (vertical blinds, horizontal blinds, dissolve) using PdfPageEditor based on the page index modulo three.", - "tags": [ - "pdf", - "page-transition", - "aspose-pdf", - "csharp", - "loop" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages", - "Aspose.Pdf.Facades.PdfPageEditor.TransitionType", - "Aspose.Pdf.Facades.PdfPageEditor.TransitionDuration", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "intermediate" + "title": "Apply Page Transitions Per Index", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "apply-rotation-zoom-transition-to-pdf-pages.cs", - "title": "Apply Rotation, Zoom, and Transition Effects to PDF Pages", - "description": "Demonstrates how to rotate and zoom PDF pages and add presentation transition effects using Aspose.Pdf's PdfPageEditor facade.", + "filename": "apply-rotation-size-zoom-to-pdf-pages.cs", + "title": "Apply Rotation, Size, and Zoom to PDF Pages", + "description": "Demonstrates using Aspose.Pdf's PdfPageEditor facade to rotate pages, change the page size, apply a zoom factor, and save the edited PDF.", "tags": [ + "pdf", "rotation", + "pagesize", "zoom", - "transition", - "pdf", - "facade" + "aspose" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.Rotation", - "Aspose.Pdf.Facades.PdfPageEditor.Zoom", + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfPageEditor.Save", + "Aspose.Pdf.PageSize" ], "difficulty": "intermediate" }, + { + "filename": "apply-rotation-zoom-transition-to-pdf-pages.cs", + "title": "Apply Rotation Zoom Transition To Pdf Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "apply-sequential-page-transitions.cs", - "title": "Apply Sequential Page Transitions in a PDF", - "description": "Shows how to assign different transition effects to consecutive pages of a PDF using Aspose.Pdf's PdfPageEditor facade.", - "tags": [ - "page-transition", - "pdf-editing", - "aspose-pdf", - "facade", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfPageEditor", - "PdfPageEditor.ProcessPages", - "PdfPageEditor.TransitionType", - "PdfPageEditor.TransitionDuration", - "PdfPageEditor.ApplyChanges", - "Document.Save" - ], - "difficulty": "intermediate" + "title": "Apply Sequential Page Transitions", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "apply-split-transition-to-pdf-page.cs", - "title": "Apply Split Transition to PDF Page", - "description": "Demonstrates how to set a split page transition and a 2‑second duration for a specific page using Aspose.Pdf's PdfPageEditor.", + "title": "Apply Split Transition To Pdf Page", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "apply-transition-to-odd-pages.cs", + "title": "Apply Transition to Odd Pages in PDF", + "description": "Shows how to add a page transition effect only to odd‑numbered pages of a PDF using Aspose.Pdf's PdfPageEditor facade.", "tags": [ "pdf", - "transition", - "split", - "Aspose.Pdf", - "page-editing" + "page-transition", + "odd-pages", + "aspose-pdf", + "facade" ], "apis_used": [ "Aspose.Pdf.Document", @@ -24590,67 +29723,59 @@ "Aspose.Pdf.Facades.PdfPageEditor.TransitionType", "Aspose.Pdf.Facades.PdfPageEditor.TransitionDuration", "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfPageEditor.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "apply-vertical-alignment-to-selected-pdf-pages.cs", "title": "Apply Vertical Alignment to Selected PDF Pages", - "description": "Shows how to use Aspose.Pdf.Facades.PdfPageEditor to set the vertical alignment of specific pages to the top and save the modified PDF.", + "description": "Demonstrates how to vertically align the content of specific pages in a PDF to the top using Aspose.Pdf's PdfPageEditor.", "tags": [ "vertical-alignment", - "pdf-page-editor", + "pdf-pages", "aspose-pdf", - "csharp", - "facade" + "page-editor", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.ProcessPages", - "PdfPageEditor.VerticalAlignment", - "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save" + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages", + "Aspose.Pdf.Facades.PdfPageEditor.VerticalAlignmentType", + "Aspose.Pdf.Facades.PdfPageEditor.Save", + "Aspose.Pdf.VerticalAlignment" ], "difficulty": "beginner" }, { "filename": "apply-zoom-to-even-pdf-pages.cs", - "title": "Apply Zoom to Even Pages in PDF", - "description": "Shows how to set a 1.2 (120%) zoom factor on all even‑numbered pages of a PDF using Aspose.Pdf.Facades.PdfPageEditor.", - "tags": [ - "pdf", - "zoom", - "even-pages", - "aspose-pdf", - "facade" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.GetPages", - "PdfPageEditor.Zoom", - "PdfPageEditor.ProcessPages", - "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save", - "PdfPageEditor.Close" - ], - "difficulty": "beginner" + "title": "Apply Zoom To Even Pdf Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "apply-zoom-to-even-pdf-pages__v2.cs", - "title": "Apply Zoom to Even PDF Pages", - "description": "Demonstrates how to use Aspose.Pdf's PdfPageEditor to set a zoom factor of 0.8 on all even‑numbered pages of a PDF document and save the result.", + "title": "Apply Zoom To Even Pdf Pages__V2", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "apply-zoom-to-non-consecutive-pdf-pages.cs", + "title": "Apply Zoom to Non-Consecutive PDF Pages", + "description": "Shows how to select specific non‑consecutive pages using the ProcessPages array and apply a common zoom factor with Aspose.Pdf.Facades.PdfPageEditor.", "tags": [ "pdf", "zoom", - "even-pages", + "pages", "Aspose.Pdf", - "page-editor" + "PdfPageEditor" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages", @@ -24658,109 +29783,146 @@ "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", "Aspose.Pdf.Facades.PdfPageEditor.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "assign-page-transitions-by-content.cs", "title": "Assign Page Transitions Based on Content Type", - "description": "Shows how to iterate through PDF pages, detect if a page contains images, and apply different page transition effects using Aspose.Pdf's PdfPageEditor facade.", + "description": "Shows how to use Aspose.Pdf.Facades.PdfPageEditor to set different transition effects for image and text pages in a PDF document.", "tags": [ "pdf", "page-transitions", + "facade", "content-detection", - "aspose-pdf", - "facade" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfPageEditor", "Aspose.Pdf.Page", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.TransitionType", - "Aspose.Pdf.Facades.PdfPageEditor.TransitionDuration", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfPageEditor", + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges()", + "Aspose.Pdf.Facades.PdfPageEditor.Save()", + "Aspose.Pdf.Facades.PdfPageEditor.Close()", + "Aspose.Pdf.Facades.PdfPageEditor.TransitionType" ], "difficulty": "intermediate" }, { "filename": "audit-pdf-page-dimensions-rotation.cs", - "title": "Audit PDF Page Dimensions and Rotation Before and After Edits", - "description": "Shows how to log each page's width, height, and rotation before and after applying changes with PdfPageEditor, then rotate all pages and save an audit log.", + "title": "Audit PDF Page Dimensions and Rotation Before and After Editing", + "description": "Shows how to log each PDF page's width, height, and rotation, apply a rotation to a page, and save the edited document using Aspose.Pdf.Facades.", "tags": [ "pdf", "audit", "page-rotation", - "aspose", - "csharp" + "dimensions", + "facade" ], "apis_used": [ - "PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.GetPages", - "PdfPageEditor.GetPageSize", - "PdfPageEditor.GetPageRotation", - "PdfPageEditor.Rotation", - "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save" + "Aspose.Pdf.Facades.PdfPageEditor", + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.Facades.PdfPageEditor.GetPages", + "Aspose.Pdf.Facades.PdfPageEditor.GetPageSize", + "Aspose.Pdf.Facades.PdfPageEditor.GetPageRotation", + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Facades.PdfPageEditor.Save" + ], + "difficulty": "intermediate" + }, + { + "filename": "batch-adjust-pdf-page-size.cs", + "title": "Batch Adjust PDF Page Size to A4", + "description": "Shows how to process all PDFs in a folder and set each page to a specific size (e.g., A4) using Aspose.Pdf and the PdfPageEditor facade.", + "tags": [ + "pdf", + "page-size", + "batch-processing", + "aspose-pdf", + "facade" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfPageEditor", + "Aspose.Pdf.PageSize", + "Aspose.Pdf.Page.SetPageSize", + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "batch-convert-pdfs-to-a4.cs", "title": "Batch Convert PDFs to A4 Page Size", - "description": "Shows how to loop through multiple PDF files and use PdfPageEditor to resize every page to A4, saving the converted documents to a designated folder.", + "description": "Shows how to iterate over PDF files in a directory and resize each document to A4 using Aspose.Pdf's PdfPageEditor.", "tags": [ "pdf", "batch", - "page-size", "a4", - "aspose" + "page-size", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfPageEditor", "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.PageSize", "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", "Aspose.Pdf.Facades.PdfPageEditor.Save", "Aspose.Pdf.PageSize" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "batch-resize-pdf-pages-by-filename.cs", - "title": "Batch Resize PDF Pages Based on Filename Keywords", - "description": "Shows how to iterate through PDFs in a folder, pick a target page size from a keyword map derived from the file name, and apply that size to all pages using Aspose.Pdf's PdfPageEditor.", + "title": "Batch Resize Pdf Pages By Filename", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "batch-rotate-first-page-pdfs.cs", + "title": "Batch Rotate First Page of PDFs", + "description": "Shows how to process all PDF files in a folder and rotate the first page of each document by 90° using Aspose.Pdf.Facades.PdfPageEditor.", "tags": [ "pdf", - "batch-processing", - "page-size", - "aspose", - "facades" + "rotation", + "batch", + "facade", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfPageEditor", "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.Facades.PdfPageEditor.PageRotations", "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Save", - "Aspose.Pdf.PageSize" + "Aspose.Pdf.Facades.PdfPageEditor.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "batch-set-fade-transition-for-pdf-slideshow.cs", + "title": "Batch Set Fade Transition For Pdf Slideshow", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "batch-set-fade-transition-pdf-slideshow.cs", "title": "Batch Set Fade Transition for PDF Slideshow", - "description": "Demonstrates how to apply a Fade (Dissolve) page transition with a 2‑second duration to all pages of a 200‑page PDF using Aspose.Pdf.", + "description": "Demonstrates how to apply a fade (dissolve) transition with a 2‑second duration to all pages of a PDF using Aspose.Pdf's PdfPageEditor facade.", "tags": [ "pdf", "transition", "fade", - "slideshow", - "aspose-pdf" + "aspose.pdf", + "facade" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.Facades.PdfPageEditor.TransitionType", + "Aspose.Pdf.Facades.PdfPageEditor.TransitionDuration", "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", "Aspose.Pdf.Document.Save" ], @@ -24768,52 +29930,68 @@ }, { "filename": "center-align-page-set-display-duration.cs", - "title": "Center Align PDF Page and Set Display Duration", - "description": "Demonstrates how to center‑align the content of a specific PDF page and set its display duration to four seconds using Aspose.Pdf's PdfPageEditor facade.", + "title": "Center Align Page Set Display Duration", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "center-content-on-page-two.cs", + "title": "Center Content On Page Two", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "center-page-content-horizontally.cs", + "title": "Center Page Content Horizontally Using PdfPageEditor", + "description": "Shows how to use Aspose.Pdf.Facades.PdfPageEditor to center the existing content of a specific page (page 2) horizontally in a PDF document.", "tags": [ "pdf", - "page-alignment", - "display-duration", - "Aspose.Pdf", - "PdfPageEditor" + "alignment", + "page-editor", + "horizontal-center", + "aspose" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages", "Aspose.Pdf.Facades.PdfPageEditor.HorizontalAlignment", - "Aspose.Pdf.Facades.PdfPageEditor.DisplayDuration", "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Save" + "Aspose.Pdf.Facades.PdfPageEditor.Save", + "Aspose.Pdf.HorizontalAlignment" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "center-content-on-page-two.cs", - "title": "Center Content on Specific PDF Page", - "description": "Shows how to use Aspose.Pdf.Facades.PdfPageEditor to horizontally center the existing content of page 2 in a PDF document.", + "filename": "center-page-content-set-display-duration.cs", + "title": "Center Page Content and Set Display Duration on a Specific PDF Page", + "description": "Demonstrates how to center the content of a specific PDF page and set its display duration using Aspose.Pdf's PdfPageEditor facade.", "tags": [ "pdf", - "horizontal-alignment", - "page-editor", - "aspose-pdf", - "csharp" + "page-alignment", + "display-duration", + "aspose", + "facade" ], "apis_used": [ - "PdfPageEditor", + "Aspose.Pdf.Facades.PdfPageEditor", + "Aspose.Pdf.Document", "PdfPageEditor.BindPdf", - "PdfPageEditor.ProcessPages", - "PdfPageEditor.HorizontalAlignment", "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save" + "PdfPageEditor.Save", + "PdfPageEditor.HorizontalAlignment", + "PdfPageEditor.DisplayDuration" ], "difficulty": "beginner" }, { - "filename": "chain-page-transformations-pdf.cs", - "title": "Chain Page Transformations (Rotation, Zoom, Size) with PdfPageEditor", - "description": "Demonstrates how to apply multiple page modifications—rotation, zoom, size, and position shift—using Aspose.Pdf's PdfPageEditor before saving the updated PDF.", + "filename": "chain-page-rotation-size-zoom-modifications.cs", + "title": "Chain Page Rotation, Size, and Zoom Modifications", + "description": "Demonstrates how to use PdfPageEditor to rotate, resize, zoom, and reposition PDF pages in a single chained operation before saving the result.", "tags": [ "pdf", "page-editing", @@ -24834,116 +30012,215 @@ "difficulty": "intermediate" }, { - "filename": "convert-pdf-portrait-to-landscape.cs", - "title": "Convert PDF Page from Portrait to Landscape", - "description": "Shows how to change a PDF page's size to landscape by swapping width and height with PdfPageEditor, rotating the content, and confirming the new dimensions.", + "filename": "change-pdf-page-size-and-undo.cs", + "title": "Change PDF Page Size and Undo to Original", + "description": "Shows how to capture a PDF's original page size, apply a custom size to all pages, save the modified document, then revert to the original size to test undo functionality.", "tags": [ - "pdf", - "portrait-to-landscape", - "pagesize", - "rotation", - "aspose-pdf" + "page-size", + "pdf-editing", + "undo", + "facade", + "Aspose.Pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.GetPageSize", - "Aspose.Pdf.Facades.PdfPageEditor.PageSize", - "Aspose.Pdf.Facades.PdfPageEditor.Rotation", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Save" + "PdfPageEditor", + "PdfPageEditor.BindPdf", + "PdfPageEditor.GetPageSize", + "PdfPageEditor.PageSize", + "PdfPageEditor.ApplyChanges", + "PdfPageEditor.Save", + "PdfPageEditor.Close", + "PageSize" ], "difficulty": "intermediate" }, { - "filename": "convert-pdf-to-landscape-a4.cs", - "title": "Convert PDF Page Orientation to Landscape (A4)", - "description": "Shows how to change a PDF's page orientation from portrait to landscape by setting the A4 page size and enabling the landscape flag using Aspose.Pdf.Facades.", + "filename": "change-pdf-page-size-to-a3.cs", + "title": "Change PDF Page Size to A3 Using PdfPageEditor", + "description": "Shows how to resize all pages of a PDF to A3 dimensions and optionally increase resolution using the Aspose.Pdf.Facades.PdfPageEditor class.", "tags": [ "pdf", - "orientation", - "landscape", - "aspose", - "page-editing" + "page-size", + "a3", + "facade", + "resolution" ], "apis_used": [ - "PdfPageEditor", + "Aspose.Pdf.Facades.PdfPageEditor", "PdfPageEditor.BindPdf", "PdfPageEditor.PageSize", - "PageSize.A4", - "PageSize.IsLandscape", - "PdfPageEditor.ApplyChanges", "PdfPageEditor.Save", "PdfPageEditor.Close" ], "difficulty": "beginner" }, + { + "filename": "combine-page-rotation-zoom-presentation.cs", + "title": "Combine Page Rotation, Zoom, and Transitions for PDF Presentation", + "description": "Shows how to rotate, zoom, and apply slide transition effects to every page of a PDF using Aspose.Pdf's PdfPageEditor facade, then save the result as a presentation PDF.", + "tags": [ + "pdf", + "rotation", + "zoom", + "transition", + "presentation" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfPageEditor", + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Facades.PdfPageEditor.TransitionType" + ], + "difficulty": "intermediate" + }, + { + "filename": "convert-pdf-pages-to-landscape.cs", + "title": "Convert PDF Pages to Landscape Orientation", + "description": "Shows how to change all pages of a PDF to landscape orientation by setting the PageSize to A4 landscape dimensions using Aspose.Pdf.Facades.PdfPageEditor.", + "tags": [ + "pdf", + "orientation", + "landscape", + "page-size", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfPageEditor", + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.Facades.PdfPageEditor.PageSize", + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Facades.PdfPageEditor.Save", + "Aspose.Pdf.PageSize" + ], + "difficulty": "beginner" + }, + { + "filename": "convert-pdf-portrait-to-landscape.cs", + "title": "Convert Pdf Portrait To Landscape", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "convert-pdf-to-landscape-a4.cs", + "title": "Convert Pdf To Landscape A4", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "convert-portrait-to-landscape.cs", + "title": "Convert PDF Page from Portrait to Landscape", + "description": "Shows how to change a PDF page's orientation to landscape by swapping width and height with PdfPageEditor, rotating the content, and then verifying the new dimensions.", + "tags": [ + "pdf", + "portrait", + "landscape", + "page-size", + "rotation" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfPageEditor", + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.Facades.PdfPageEditor.GetPageSize", + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Facades.PdfPageEditor.Save", + "Aspose.Pdf.Document", + "Aspose.Pdf.Page" + ], + "difficulty": "intermediate" + }, + { + "filename": "create-a-contentsresizeparameters-object-using-percentage-margins-of-fifteen-percent-for-uniform-content-scaling.cs", + "title": "Create A Contentsresizeparameters Object Using Percentage Margins Of Fifteen Percent For Uniform Content Scaling", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "create-contentsresizeparameters-uniform-margins.cs", + "title": "Create Contentsresizeparameters Uniform Margins", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-contentsresizeparameters-with-uniform-margins.cs", "title": "Create ContentsResizeParameters with Uniform Margins", - "description": "Shows how to instantiate a ContentsResizeParameters object with absolute margin values of five points for left, right, top, and bottom sides using Aspose.Pdf.Facades.", + "description": "Demonstrates how to create a ContentsResizeParameters object with absolute margins of five points on all sides, ready to be used with PdfFileEditor methods such as ResizeContents.", "tags": [ + "pdf", "contents-resize", "margins", - "pdf", - "aspose-pdf", + "Aspose.Pdf", "facades" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeParameters", "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeParameters.Margins", - "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeParameters.LeftMargin", - "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeParameters.RightMargin" + "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents" ], "difficulty": "beginner" }, { "filename": "create-pdf-slideshow-with-page-transitions.cs", "title": "Create PDF Slideshow with Page Transitions", - "description": "Shows how to convert a PDF into a slideshow by configuring page transition type, transition duration, and display duration using Aspose.Pdf's PdfPageEditor.", + "description": "Shows how to apply transition effects and display durations to each page of a PDF to generate a slideshow using Aspose.Pdf.", "tags": [ "pdf", "slideshow", - "transition", - "Aspose.Pdf", - "PdfPageEditor" + "transitions", + "page-editor", + "aspose.pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "PdfPageEditor.TransitionType", - "PdfPageEditor.TransitionDuration", - "PdfPageEditor.DisplayDuration", - "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Close" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "create-uniform-15-percent-margin-resize-parameters.cs", - "title": "Create Uniform 15% Margin Resize Parameters", - "description": "Demonstrates how to create a ContentsResizeParameters object with 15% margins on all sides using the MarginsPercent method, which can then be passed to PdfFileEditor methods for content scaling.", + "filename": "create-pdf-with-a4-pages.cs", + "title": "Create PDF with A4 Pages using Aspose.Pdf", + "description": "Shows how to create a PDF document, add multiple pages to the Pages collection, set each page's size to A4, and save the resulting file.", "tags": [ "pdf", - "resize", - "margins", - "contents", - "aspose" + "aspose.pdf", + "pages", + "a4", + "document-creation" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeParameters", - "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeParameters.MarginsPercent", - "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents", - "Aspose.Pdf.Facades.PdfFileEditor.AddMarginsPct" + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.PageSize", + "Aspose.Pdf.Document.Pages.Add", + "Aspose.Pdf.Page.SetPageSize", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, + { + "filename": "create-uniform-15-percent-margin-resize-parameters.cs", + "title": "Create Uniform 15 Percent Margin Resize Parameters", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "disable-page-transition-animation.cs", - "title": "Disable Page Transition Animation in PDF", - "description": "Shows how to set the transition duration to zero for a specific page using Aspose.Pdf.Facades.PdfPageEditor, thereby disabling the page transition animation.", + "title": "Disable Page Transition Animation for a Specific PDF Page", + "description": "Demonstrates how to set the TransitionDuration to zero for page six of a PDF using Aspose.Pdf's PdfPageEditor, removing any page transition animation.", "tags": [ "pdf", "transition", @@ -24952,25 +30229,45 @@ "csharp" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.ProcessPages", - "PdfPageEditor.TransitionDuration", - "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save" + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Facades.PdfPageEditor.TransitionDuration", + "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages" + ], + "difficulty": "beginner" + }, + { + "filename": "dispose-pdfpageeditor-properly.cs", + "title": "Dispose PdfPageEditor Properly While Editing PDF", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfPageEditor within using blocks, apply page rotation and zoom, save the document, and ensure all resources are released by disposing the editor and document objects.", + "tags": [ + "pdf", + "aspose.pdf", + "facade", + "resource-management", + "page-editing" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfPageEditor", + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Facades.PdfPageEditor.Save", + "Aspose.Pdf.Facades.PdfPageEditor.Close" ], "difficulty": "beginner" }, { "filename": "edit-pdf-in-memory-using-pdfpageeditor.cs", "title": "Edit PDF In-Memory Using PdfPageEditor", - "description": "Shows how to create a PDF in memory, bind it to PdfPageEditor, apply zoom and rotation to all pages, and save the edited document to another memory stream.", + "description": "Shows how to bind a PDF from a MemoryStream, apply a modification (zoom factor) with PdfPageEditor, and save the edited PDF back to a MemoryStream, avoiding any disk I/O.", "tags": [ - "pdf", - "memory", - "page-editor", - "aspose", - "csharp" + "memory-stream", + "pdf-editing", + "pdfpageeditor", + "aspose-pdf", + "in-memory" ], "apis_used": [ "Aspose.Pdf.Document", @@ -24978,72 +30275,95 @@ "Aspose.Pdf.Document.Save", "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", "Aspose.Pdf.Facades.PdfPageEditor.Save", - "Aspose.Pdf.Facades.PdfPageEditor.Zoom", - "Aspose.Pdf.Facades.PdfPageEditor.Rotation" + "Aspose.Pdf.Document.Pages.Add", + "Aspose.Pdf.Facades.PdfPageEditor.Zoom" ], "difficulty": "intermediate" }, { - "filename": "edit-pdf-pages-with-pdfpageeditor-disposal.cs", - "title": "Edit PDF Pages with PdfPageEditor and Proper Disposal", - "description": "Shows how to rotate and zoom PDF pages using Aspose.Pdf.Facades.PdfPageEditor while correctly disposing the editor and document to release file handles.", + "filename": "edit-pdf-in-memory-using-pdfpageeditor__v2.cs", + "title": "Edit PDF In-Memory Using PdfPageEditor", + "description": "Shows how to create a PDF in memory, modify page zoom and rotation with PdfPageEditor, and save the edited document back to a memory stream.", "tags": [ "pdf", - "page-editing", - "disposal", - "aspose", - "csharp" + "memory", + "page-editor", + "zoom", + "rotation" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Save" + "Aspose.Pdf.Facades.PdfPageEditor.Save", + "Aspose.Pdf.Text.TextFragment" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "edit-pdf-pages-zoom-rotation.cs", - "title": "Edit PDF Pages with Zoom and Rotation using PdfPageEditor", - "description": "Demonstrates how to load a PDF, apply zoom and rotation to its pages with PdfPageEditor, and save the edited document to a new file.", + "filename": "edit-pdf-page-zoom-save.cs", + "title": "Edit PDF Page Zoom and Save with PdfPageEditor", + "description": "Demonstrates loading a PDF using PdfPageEditor, setting the page zoom level, applying the changes, and saving the edited document to a new file.", "tags": [ "pdf", "page-editing", "zoom", - "rotation", - "aspose-pdf" + "aspose-pdf", + "save" ], "apis_used": [ "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.Zoom", - "Aspose.Pdf.Facades.PdfPageEditor.Rotation", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Save" + "PdfPageEditor.BindPdf", + "PdfPageEditor.Zoom", + "PdfPageEditor.ApplyChanges", + "PdfPageEditor.Save" ], "difficulty": "beginner" }, { - "filename": "edit-pdf-with-backup-using-pdfpageeditor.cs", - "title": "Edit PDF and Preserve Original with Backup", - "description": "Creates a backup of the source PDF, modifies the document using Aspose.Pdf.Facades.PdfPageEditor (e.g., changes zoom), and saves the edited version as a new file while keeping the original unchanged.", + "filename": "edit-pdf-pages-save-new-file.cs", + "title": "Edit PDF Pages and Save as New File", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfPageEditor to modify a PDF (e.g., change zoom) and save the edited version to a separate file, leaving the original unchanged.", "tags": [ "pdf", - "backup", "edit", + "save-as", "aspose", - "pdfpageeditor" + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.Zoom", - "Aspose.Pdf.Facades.PdfPageEditor.Save", - "Aspose.Pdf.Facades.PdfPageEditor.Close" + "PdfPageEditor.BindPdf", + "PdfPageEditor.Zoom", + "PdfPageEditor.Save" ], "difficulty": "beginner" }, + { + "filename": "edit-pdf-pages-with-pdfpageeditor-disposal.cs", + "title": "Edit Pdf Pages With Pdfpageeditor Disposal", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "edit-pdf-pages-zoom-rotation.cs", + "title": "Edit Pdf Pages Zoom Rotation", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "edit-pdf-with-backup-using-pdfpageeditor.cs", + "title": "Edit Pdf With Backup Using Pdfpageeditor", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "extract-rotate-selected-pdf-pages.cs", "title": "Extract and Rotate Selected PDF Pages", @@ -25056,10 +30376,9 @@ "facade" ], "apis_used": [ - "PdfFileEditor", "PdfFileEditor.Extract", - "PdfPageEditor", "PdfPageEditor.BindPdf", + "PdfPageEditor.ProcessPages", "PdfPageEditor.Rotation", "PdfPageEditor.ApplyChanges", "PdfPageEditor.Save" @@ -25068,8 +30387,16 @@ }, { "filename": "handle-invalid-page-rotation.cs", - "title": "Handle Invalid Page Rotation with PdfPageEditor", - "description": "Demonstrates how to safely set a page rotation using PdfPageEditor and catch invalid rotation values to avoid runtime errors.", + "title": "Handle Invalid Page Rotation", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "handle-invalid-rotation-value.cs", + "title": "Handle Invalid Rotation Value When Rotating PDF Pages", + "description": "Demonstrates how to safely set page rotation using the PdfPageEditor facade and catch invalid rotation values to avoid runtime errors.", "tags": [ "pdf", "rotation", @@ -25078,31 +30405,33 @@ "aspose" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", "Aspose.Pdf.Facades.PdfPageEditor.Rotation", + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Save", "Aspose.Pdf.Facades.PdfPageEditor.Close", "Aspose.Pdf.InvalidValueFormatException" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "hybrid-content-resize-mixed-margins.cs", - "title": "Hybrid Content Resize with Mixed Percent and Unit Margins", - "description": "Demonstrates how to create a ContentsResizeParameters object with both percentage‑based and absolute margins and apply it to all pages using PdfFileEditor.ResizeContents.", + "title": "Hybrid Content Resize with Mixed Percentage and Absolute Margins", + "description": "Shows how to use Aspose.Pdf.Facades.PdfFileEditor to resize PDF page contents by specifying a mix of percentage‑based and absolute margins.", "tags": [ "pdf", "resize", - "margin", + "contents", "percentage", - "Aspose" + "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeParameters", "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeValue", + "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeValue.Percents", + "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeValue.Units", "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents" ], "difficulty": "intermediate" @@ -25110,13 +30439,13 @@ { "filename": "incremental-update-pdf-text-annotation.cs", "title": "Incrementally Update PDF with Text Annotation", - "description": "Demonstrates adding a text annotation to a PDF and saving the changes using incremental update mode to preserve the original file structure.", + "description": "Shows how to open a PDF with read/write access, add a text annotation to the first page, and save the changes using Aspose.Pdf's incremental update mode, preserving the original file structure.", "tags": [ - "incremental-save", - "text-annotation", - "pdf-modification", - "facade", - "aspose-pdf" + "incremental", + "annotation", + "pdf", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", @@ -25124,227 +30453,266 @@ "Aspose.Pdf.Annotations.TextAnnotation", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Color", - "Aspose.Pdf.Facades.PdfFileInfo", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, - { - "filename": "left-align-page-two-pdf.cs", - "title": "Left Align Page Two in PDF using PdfPageEditor", - "description": "Demonstrates how to left‑justify the content of the second page of a PDF document by using the PdfPageEditor facade and its HorizontalAlignment property.", - "tags": [ - "pdf", - "alignment", - "page-editing", - "facade", - "aspose" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages", - "Aspose.Pdf.Facades.PdfPageEditor.HorizontalAlignment", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Save" - ], - "difficulty": "beginner" - }, { "filename": "load-pdf-with-pdfpageeditor.cs", - "title": "Load PDF and Apply Edits with PdfPageEditor", - "description": "Demonstrates loading a PDF file, binding it to PdfPageEditor, optionally configuring rotation, zoom, or page size, applying the changes, and saving the edited document.", - "tags": [ - "pdf", - "aspose-pdf", - "page-editor", - "load", - "save" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save", - "PdfPageEditor.Rotation", - "PdfPageEditor.Zoom", - "PdfPageEditor.PageSize" - ], - "difficulty": "beginner" + "title": "Load Pdf With Pdfpageeditor", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "log-pdf-page-modifications.cs", - "title": "Log PDF Page Property Modifications", - "description": "Demonstrates how to rotate PDF pages, change their background color, and record each change to a log file for audit and debugging using Aspose.Pdf.", + "title": "Log Pdf Page Modifications", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "log-pdf-page-property-changes.cs", + "title": "Log PDF Page Property Changes with Aspose.Pdf", + "description": "Demonstrates how to modify PDF page properties using PdfPageEditor and direct page access, while logging each change and any notifications to a text file for audit and debugging.", "tags": [ "pdf", - "audit", - "logging", "page-modification", - "aspose-pdf" + "logging", + "aspose-pdf", + "facade" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", "Aspose.Pdf.Page", - "Aspose.Pdf.Color", - "Aspose.Pdf.Document.EnableNotificationLogging", - "Aspose.Pdf.Facades.PdfPageEditor.Rotation", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Document.Save" + "Document.EnableNotificationLogging", + "PdfPageEditor.ApplyChanges", + "Page.GetNotifications", + "Document.Save" ], "difficulty": "intermediate" }, { "filename": "merge-pdfs-with-uniform-margins.cs", "title": "Merge PDFs with Uniform Margins", - "description": "Shows how to add consistent margins to multiple PDF files and then concatenate them into a single document using Aspose.Pdf.", + "description": "Shows how to align the margins of two PDF files using PdfFileEditor.AddMargins and then concatenate them into a single PDF with PdfFileEditor.Concatenate.", "tags": [ "pdf", - "margin", "merge", - "concatenate", - "Aspose.Pdf" + "margin", + "aspose", + "facade" ], "apis_used": [ + "Aspose.Pdf.Facades.PdfFileEditor", "Aspose.Pdf.Facades.PdfFileEditor.AddMargins", - "Aspose.Pdf.Facades.PdfFileEditor.Concatenate", - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.Position" + "Aspose.Pdf.Facades.PdfFileEditor.Concatenate" ], "difficulty": "intermediate" }, { "filename": "modify-pages-in-signed-pdf.cs", - "title": "Modify Pages in Signed PDF While Preserving Signatures", - "description": "Demonstrates how to rotate, zoom, and resize pages of a digitally signed PDF using PdfPageEditor, saving the changes as an incremental update to keep existing signatures valid.", + "title": "Modify Pages In Signed Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "modify-pages-preserve-signature.cs", + "title": "Modify Pages in a Digitally Signed PDF While Preserving Signature", + "description": "Demonstrates how to rotate and resize specific pages of a PDF that already contains a signature field using PdfPageEditor, saving the changes as an incremental update so existing signatures remain valid.", "tags": [ "pdf", - "pages", - "signature", + "page-editing", + "digital-signature", "incremental-update", "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.PageSize", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Save" + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.PageSize" ], "difficulty": "intermediate" }, { "filename": "report-page-properties-before-after-edit.cs", - "title": "Report Page Properties Before and After Editing PDF", - "description": "Shows how to read page size, rotation, and zoom values, apply rotation, zoom, and size changes with PdfPageEditor, and generate a before/after report.", + "title": "Report Page Properties Before After Edit", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "report-pdf-page-properties-before-after.cs", + "title": "Report PDF Page Properties Before and After Editing", + "description": "Shows how to read page size, rotation, and offsets with PdfFileInfo, apply rotation, zoom, and origin shift using PdfPageEditor, and compare the properties before and after the edits.", "tags": [ "pdf", - "page-editing", - "report", + "page-properties", "rotation", - "zoom" + "zoom", + "aspose-pdf" ], "apis_used": [ + "Aspose.Pdf.Facades.PdfFileInfo", + "Aspose.Pdf.Facades.PdfFileInfo.GetPageWidth", + "Aspose.Pdf.Facades.PdfFileInfo.GetPageHeight", + "Aspose.Pdf.Facades.PdfFileInfo.GetPageRotation", + "Aspose.Pdf.Facades.PdfFileInfo.GetPageXOffset", + "Aspose.Pdf.Facades.PdfFileInfo.GetPageYOffset", "Aspose.Pdf.Facades.PdfPageEditor", "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.GetPageSize", - "Aspose.Pdf.Facades.PdfPageEditor.GetPageRotation", + "Aspose.Pdf.Facades.PdfPageEditor.PageRotations", + "Aspose.Pdf.Facades.PdfPageEditor.Zoom", + "Aspose.Pdf.Facades.PdfPageEditor.MovePosition", "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Save", - "Aspose.Pdf.PageSize" + "Aspose.Pdf.Facades.PdfPageEditor.Save" ], "difficulty": "intermediate" }, { - "filename": "reset-page-rotation.cs", - "title": "Reset Rotation of a Specific PDF Page", - "description": "Shows how to reset the rotation of page 6 in a PDF document to 0 degrees using Aspose.Pdf's PdfPageEditor facade.", + "filename": "reset-page-rotation-to-zero.cs", + "title": "Reset Page Rotation to Zero Using PdfPageEditor", + "description": "Shows how to reset the rotation of a specific PDF page (page 6) to 0 degrees with Aspose.Pdf.Facades.PdfPageEditor.", "tags": [ "pdf", "rotation", "page-editing", "aspose", - "csharp" + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Rotation", - "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages", - "Aspose.Pdf.Document.Save" + "PdfPageEditor.BindPdf", + "PdfPageEditor.PageRotations", + "PdfPageEditor.ApplyChanges", + "PdfPageEditor.Save" ], "difficulty": "beginner" }, { - "filename": "resize-contents-only-on-text-pages.cs", - "title": "Resize PDF Contents Only on Pages Containing Text", - "description": "Scans a PDF to find pages that contain text and then resizes the contents of only those pages using PdfFileEditor with margin parameters.", + "filename": "reset-page-rotation.cs", + "title": "Reset Page Rotation", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "resize-and-rotate-pdf-page.cs", + "title": "Resize and Rotate PDF Page by 90 Degrees", + "description": "Shows how to resize the contents of a PDF page and then rotate that page 90° using Aspose.Pdf facades.", "tags": [ "pdf", "resize", - "text-detection", - "pages", - "aspose-pdf" + "rotate", + "page", + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextAbsorber", - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeParameters", - "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeValue", - "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents" + "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents", + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.Facades.PdfPageEditor.PageRotations", + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Facades.PdfPageEditor.Save" ], "difficulty": "intermediate" }, { - "filename": "resize-last-page-to-a5.cs", - "title": "Resize Last PDF Page to A5 for Booklet", - "description": "Shows how to use Aspose.Pdf.Facades.PdfPageEditor to change the size of the final page of a PDF to A5, creating a compact booklet format.", + "filename": "resize-and-split-pdf-into-chapters.cs", + "title": "Resize PDF Pages and Split into Chapter PDFs", + "description": "Shows how to uniformly resize all pages of a PDF and then split the resized document into separate chapter PDFs using Aspose.Pdf.Facades.", "tags": [ "pdf", - "page-size", - "booklet", - "Aspose.Pdf", - "PdfPageEditor" + "resize", + "split", + "chapters", + "facade" ], "apis_used": [ - "PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.GetPages", - "PdfPageEditor.ProcessPages", - "PdfPageEditor.PageSize", - "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save" + "Aspose.Pdf.Facades.PdfFileEditor", + "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents", + "Aspose.Pdf.Facades.PdfFileEditor.SplitToBulks" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "resize-pdf-and-split-into-chapters.cs", - "title": "Resize PDF Pages and Split into Chapter Files", - "description": "Demonstrates how to uniformly resize all pages of a PDF and then split the resized document into separate chapter PDFs using Aspose.Pdf.Facades.", + "filename": "resize-contents-of-pages-two-and-four-with-custom-left-and-right-margins-using-contentsresizeparameters.cs", + "title": "Resize Contents Of Pages Two And Four With Custom Left And Right Margins Using Contentsresizeparameters", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "resize-contents-on-text-pages.cs", + "title": "Resize PDF Contents Only on Pages Containing Text", + "description": "Shows how to use TextAbsorber to find pages that contain any text and then apply PdfFileEditor.ResizeContents only to those pages.", "tags": [ "pdf", "resize", - "split", - "chapters", + "text-detection", + "pages", "aspose" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents", - "Aspose.Pdf.Facades.PdfFileEditor.SplitToPages" + "Aspose.Pdf.Text.TextAbsorber", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents" + ], + "difficulty": "intermediate" + }, + { + "filename": "resize-contents-only-on-text-pages.cs", + "title": "Resize Contents Only On Text Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "resize-page-six-to-letter-size.cs", + "title": "Resize Specific PDF Page to Letter Size with PdfPageEditor", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfPageEditor to change only page 6 of a PDF to Letter dimensions (8.5\" x 11\"). The example loads a PDF, sets the target page, applies a custom PageSize, and saves the result.", + "tags": [ + "pdf", + "pagesize", + "pdfpageeditor", + "letter", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfPageEditor", + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages", + "Aspose.Pdf.Facades.PdfPageEditor.PageSize", + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Facades.PdfPageEditor.Save", + "Aspose.Pdf.PageSize" ], "difficulty": "intermediate" }, + { + "filename": "resize-pdf-and-split-into-chapters.cs", + "title": "Resize Pdf And Split Into Chapters", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "resize-pdf-contents-asymmetric-margins.cs", "title": "Resize PDF Contents with Asymmetric Margins", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfFileEditor to resize page contents with different left and right margins (asymmetric design) while keeping top and bottom margins proportional.", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfFileEditor to resize page contents with different left and right margins (and top/bottom) by specifying percentage‑based margins.", "tags": [ "pdf", "resize", @@ -25353,39 +30721,26 @@ "Aspose.Pdf" ], "apis_used": [ - "PdfFileEditor", - "PdfFileEditor.ContentsResizeParameters", - "PdfFileEditor.ContentsResizeValue", - "PdfFileEditor.ResizeContents" + "Aspose.Pdf.Facades.PdfFileEditor", + "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents", + "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeParameters", + "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeValue", + "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeValue.Percents" ], "difficulty": "beginner" }, { "filename": "resize-pdf-contents-rotate-pages.cs", - "title": "Resize PDF Contents and Rotate Pages by 90 Degrees", - "description": "Shows how to shrink PDF page contents to a specified percentage and then rotate all pages 90° using Aspose.Pdf facades.", - "tags": [ - "pdf", - "resize", - "rotate", - "facades", - "aspnet" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.ResizeContentsPct", - "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.Rotation", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Save" - ], - "difficulty": "intermediate" + "title": "Resize Pdf Contents Rotate Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "resize-pdf-contents-top-bottom-margins.cs", - "title": "Resize PDF Contents with Top and Bottom Margins", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfFileEditor to resize page contents by specifying separate top and bottom margins, including creating a sample PDF when none exists.", + "title": "Resize PDF Page Contents with Different Top and Bottom Margins", + "description": "Shows how to use PdfFileEditor.ContentsResizeParameters to set distinct top and bottom margins (in percents) for all pages, leaving other margins and sizes automatic.", "tags": [ "pdf", "resize", @@ -25395,19 +30750,16 @@ ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents", "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeParameters", - "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeValue.Percents", - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment" + "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeValue", + "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "resize-pdf-contents-uniform-margins.cs", - "title": "Resize PDF Page Contents with Uniform Margins", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfFileEditor to resize the contents of all pages in a PDF, applying equal 10% margins on each side.", + "filename": "resize-pdf-contents-uniform-margin.cs", + "title": "Resize PDF Contents with Uniform Margin", + "description": "Shows how to uniformly shrink the page contents of a PDF by applying a 10% margin on all sides using Aspose.Pdf's PdfFileEditor and ContentsResizeParameters.", "tags": [ "pdf", "resize", @@ -25416,226 +30768,217 @@ "facade" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileEditor", "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeParameters", - "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeValue", - "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeValue.Percents", + "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeParameters.MarginsPercent", "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents" ], "difficulty": "beginner" }, + { + "filename": "resize-pdf-contents-uniform-margins.cs", + "title": "Resize Pdf Contents Uniform Margins", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "resize-pdf-page-and-revert.cs", - "title": "Resize PDF Page and Revert to Original Size", - "description": "Shows how to change a PDF page's dimensions with PdfPageEditor, save the resized file, then restore the original size to verify undo functionality.", - "tags": [ - "page-size", - "pdf-editing", - "undo", - "Aspose.Pdf", - "PdfPageEditor" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.GetPageSize", - "Aspose.Pdf.Facades.PdfPageEditor.PageSize", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Save", - "Aspose.Pdf.PageSize" - ], - "difficulty": "intermediate" + "title": "Resize Pdf Page And Revert", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "resize-pdf-page-contents-10-percent-margins.cs", - "title": "Resize PDF Page Contents with 10% Margins", - "description": "Demonstrates using Aspose.Pdf.Facades.PdfFileEditor to resize the contents of all pages in a PDF by applying a 10% margin on each side.", - "tags": [ - "pdf", - "resize", - "margins", - "facade", - "aspose" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents", - "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeParameters", - "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeParameters.MarginsPercent" - ], - "difficulty": "beginner" + "title": "Resize Pdf Page Contents 10 Percent Margins", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "resize-pdf-page-contents-5-percent.cs", - "title": "Resize PDF Page Contents by 5% Using PdfFileEditor", - "description": "Demonstrates how to uniformly shrink all page elements by 5% using the PdfFileEditor facade's ResizeContentsPct method.", + "title": "Resize Pdf Page Contents 5 Percent", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "resize-pdf-page-contents-custom-margins.cs", + "title": "Resize Pdf Page Contents Custom Margins", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "resize-pdf-page-contents-negative-margins.cs", + "title": "Resize PDF Page Contents with Negative Margins", + "description": "Demonstrates how to uniformly shrink all pages of a PDF by applying a -5% margin using Aspose.Pdf.Facades.PdfFileEditor.", "tags": [ "pdf", + "margin", "resize", - "contents", "aspose", "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.ResizeContentsPct" + "Aspose.Pdf.Facades.PdfFileEditor.AddMarginsPct" ], "difficulty": "beginner" }, { - "filename": "resize-pdf-page-contents-custom-margins.cs", - "title": "Resize PDF Page Contents with Custom Margins", - "description": "Demonstrates how to resize the contents of specific PDF pages (pages 2 and 4) using custom left and right margins with Aspose.Pdf's PdfFileEditor.", + "filename": "resize-pdf-pages-content-10-percent-margin.cs", + "title": "Resize PDF Pages Content with 10% Margin", + "description": "Demonstrates how to shrink the contents of all pages in a PDF to 90% of their original size, creating a 10% margin around each page using PdfFileEditor.ResizeContents.", "tags": [ "pdf", "resize", - "margins", + "margin", "pages", - "Aspose.Pdf" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileEditor", - "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents", - "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeParameters", - "Aspose.Pdf.Facades.PdfFileEditor.ContentsResizeParameters.Margins" + "Aspose.Pdf.Facades.PdfFileEditor.ResizeContents" ], "difficulty": "beginner" }, { "filename": "resize-pdf-pages-preserve-annotations.cs", "title": "Resize PDF Pages While Preserving Annotations", - "description": "Demonstrates how to change the page size of a PDF (e.g., to A4) using Aspose.Pdf's PdfPageEditor facade while keeping existing content and annotations intact.", + "description": "Demonstrates how to change the page size of a PDF using Aspose.Pdf.Facades.PdfPageEditor while keeping existing annotations intact.", "tags": [ "pdf", "resize", "annotations", - "facade", - "Aspose.Pdf" + "aspose", + "facade" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.PageSize", "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.PageSize" + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "resize-pdf-pages-to-a4.cs", - "title": "Resize PDF Pages to A4", - "description": "Loads a PDF from a byte array, sets every page to A4 portrait dimensions, and saves the modified document to a new file.", + "title": "Resize Pdf Pages To A4", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "resize-pdf-pages-using-pdfpageeditor.cs", + "title": "Resize PDF Pages Using PdfPageEditor", + "description": "Shows how to load a PDF from a byte array, change its page size to A4 with PdfPageEditor, and save the modified document.", "tags": [ "pdf", "page-size", - "a4", "aspose.pdf", - "c#" + "memory-stream", + "pdfpageeditor" ], "apis_used": [ + "Aspose.Pdf.Facades.PdfPageEditor", + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Facades.PdfPageEditor.Save", "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.PageInfo", - "Aspose.Pdf.PageSize", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.PageSize" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "resize-specific-pdf-page-to-letter.cs", - "title": "Resize Specific PDF Page to Letter Size", - "description": "Shows how to use PdfPageEditor to change the size of a single page (page 6) in a PDF to Letter dimensions and save the modified document.", - "tags": [ - "PdfPageEditor", - "PageSize", - "Letter", - "Resize", - "Aspose.Pdf" - ], - "apis_used": [ - "PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.ProcessPages", - "PdfPageEditor.PageSize", - "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save", - "PageSize" - ], - "difficulty": "beginner" + "title": "Resize Specific Pdf Page To Letter", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "resize-specific-pdf-pages-to-us-letter.cs", "title": "Resize Specific PDF Pages to US Letter Size", - "description": "Shows how to use Aspose.Pdf.Facades.PdfPageEditor to change the page size of pages 3‑6 to US Letter dimensions (8.5\" x 11\").", + "description": "Demonstrates how to change the page size of selected pages (3‑6) in a PDF to US Letter dimensions using the Aspose.Pdf.Facades.PdfPageEditor.", "tags": [ "pdf", "page-size", + "letter", "aspose", - "facade", - "letter" + "facade" ], "apis_used": [ - "PdfPageEditor", + "Aspose.Pdf.Facades.PdfPageEditor", "PdfPageEditor.BindPdf", "PdfPageEditor.ProcessPages", "PdfPageEditor.PageSize", "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save", - "PageSize" + "PdfPageEditor.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "retrieve-page-size-after-rotation.cs", - "title": "Retrieve Page Size After Rotation", - "description": "Loads a PDF, reads the original size of the first page, rotates the page by 90° using PdfPageEditor, then obtains the new page size to confirm the orientation change and saves the modified document.", + "filename": "retrieve-page-rotation.cs", + "title": "Retrieve Rotation Angle of a PDF Page", + "description": "Shows how to bind a PDF with PdfPageEditor and obtain the rotation angle of a specific page using GetPageRotation.", "tags": [ "pdf", "rotation", - "pagesize", - "aspose-pdf", - "pdfpageeditor" + "page", + "aspose", + "c#" ], "apis_used": [ "Aspose.Pdf.Facades.PdfPageEditor", "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.GetPageSize", - "Aspose.Pdf.Facades.PdfPageEditor.Rotation", - "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Save" + "Aspose.Pdf.Facades.PdfPageEditor.GetPageRotation" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "retrieve-pdf-page-rotation.cs", - "title": "Retrieve PDF Page Rotation", - "description": "Demonstrates how to bind a PDF file with PdfPageEditor and obtain the rotation angle of a specific page (page 4) using GetPageRotation.", + "filename": "retrieve-page-size-after-rotation.cs", + "title": "Retrieve Page Size After Rotation with PdfPageEditor", + "description": "Shows how to rotate a PDF page using Aspose.Pdf.Facades.PdfPageEditor and then obtain the updated page dimensions to confirm the new orientation.", "tags": [ "pdf", "rotation", - "page", - "aspose", - "csharp" + "pagesize", + "aspose.pdf", + "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.GetPageRotation", - "Aspose.Pdf.Facades.PdfPageEditor.Dispose" + "PdfPageEditor", + "PdfPageEditor.BindPdf", + "PdfPageEditor.Rotation", + "PdfPageEditor.ApplyChanges", + "PdfPageEditor.GetPageRotation", + "PdfPageEditor.GetPageSize", + "PdfPageEditor.Save", + "PageSize" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "retrieve-pdf-page-size.cs", - "title": "Retrieve Size of a Specific PDF Page", - "description": "Shows how to bind a PDF with PdfPageEditor and call GetPageSize to obtain the width and height of page 2 for logging.", + "title": "Retrieve PDF Page Dimensions with PdfPageEditor", + "description": "Demonstrates how to load a PDF, get the size of a specific page using PdfPageEditor, and log the width and height.", "tags": [ "pdf", "page-size", - "aspose.pdf", - "facade", - "c#" + "aspose", + "csharp", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfPageEditor", @@ -25647,284 +30990,384 @@ }, { "filename": "retrieve-verify-page-rotation-after-resize.cs", + "title": "Retrieve Verify Page Rotation After Resize", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "retrieve-verify-page-rotation-after-resizing.cs", "title": "Retrieve and Verify Page Rotation After Resizing PDF Page", - "description": "Loads a PDF, captures the original rotation of a page, changes the page size with PdfPageEditor, and confirms that the rotation value remains unchanged after the resize.", + "description": "Shows how to obtain a PDF page's rotation, change the page size with PdfPageEditor, and confirm that the rotation value stays the same after resizing.", "tags": [ "pdf", "rotation", "pagesize", - "aspose", + "aspose.pdf", "facade" ], "apis_used": [ - "PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.GetPageRotation", - "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save", - "PageSize" + "Aspose.Pdf.Facades.PdfPageEditor", + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.Facades.PdfPageEditor.GetPageRotation", + "Aspose.Pdf.Facades.PdfPageEditor.PageSize", + "Aspose.Pdf.Facades.PdfPageEditor.Save", + "Aspose.Pdf.PageSize" ], "difficulty": "intermediate" }, { "filename": "revert-page-size-to-original.cs", + "title": "Revert Page Size To Original", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "revert-pdf-page-size-to-original.cs", "title": "Revert PDF Page Size to Original Dimensions", - "description": "Shows how to capture a page's original size, modify it, and then restore the original dimensions using Aspose.Pdf's PdfPageEditor facade.", + "description": "Demonstrates how to capture the original size of a PDF page, change the size, and then restore the page to its initial dimensions using Aspose.Pdf facades.", "tags": [ "pdf", "page-size", "revert", - "aspose", + "Aspose.Pdf", "facade" ], "apis_used": [ - "PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.GetPageSize", - "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save", - "PdfPageEditor.ProcessPages", - "PdfPageEditor.PageSize" + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfPageEditor", + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.Facades.PdfPageEditor.GetPageSize", + "Aspose.Pdf.PageSize", + "Aspose.Pdf.Page.SetPageSize" ], "difficulty": "intermediate" }, { - "filename": "rotate-every-third-page-270-degrees.cs", - "title": "Rotate Every Third PDF Page by 270°", - "description": "Shows how to use Aspose.Pdf.Facades.PdfPageEditor to select every third page of a PDF and rotate it 270 degrees, creating alternating landscape orientation.", + "filename": "rotate-and-reset-pdf-page-orientation.cs", + "title": "Rotate and Reset PDF Page Orientation", + "description": "Demonstrates how to rotate a specific PDF page using PdfPageEditor and then restore it to its original orientation, saving both the rotated and restored documents.", "tags": [ "pdf", "rotation", "page-editor", - "landscape", - "csharp" + "aspose-pdf", + "reversible" ], "apis_used": [ - "PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.GetPages", - "PdfPageEditor.ProcessPages", - "PdfPageEditor.Rotation", - "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save" + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfPageEditor", + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Facades.PdfPageEditor.PageRotations", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "rotate-first-page-of-pdfs.cs", - "title": "Rotate First Page of PDFs in a Folder", - "description": "Shows how to batch‑process PDF files in a directory and rotate the first page of each document by 90 degrees using Aspose.Pdf.Facades.PdfPageEditor.", + "filename": "rotate-and-resize-pdf-page-to-letter.cs", + "title": "Rotate and Resize PDF Page to Letter", + "description": "Shows how to rotate a specific page (page 3) by 90 degrees and change its dimensions to Letter size using Aspose.Pdf.Facades.PdfPageEditor.", "tags": [ "pdf", "rotation", - "batch", - "facade", - "Aspose.Pdf" + "page-size", + "Aspose.Pdf", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfPageEditor", "PdfPageEditor.BindPdf", - "PdfPageEditor.PageRotations", + "PdfPageEditor.ProcessPages", + "PdfPageEditor.Rotation", + "PdfPageEditor.PageSize", "PdfPageEditor.ApplyChanges", "PdfPageEditor.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "rotate-landscape-pdf-pages.cs", - "title": "Rotate Landscape PDF Pages to Portrait", - "description": "Shows how to detect landscape pages in a PDF and rotate them 90 degrees to portrait orientation using the Aspose.Pdf.Facades.PdfPageEditor.", + "filename": "rotate-every-third-page-270-degrees.cs", + "title": "Rotate Every Third Page 270 Degrees", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "rotate-every-third-pdf-page.cs", + "title": "Rotate Every Third PDF Page to Landscape", + "description": "Shows how to rotate every third page of a PDF by 270° using Aspose.Pdf.Facades.PdfPageEditor, resulting in an alternating landscape orientation.", "tags": [ - "pdf", - "rotation", + "pdf rotation", + "page editing", + "Aspose.Pdf", "landscape", - "page-editor", - "facade" + "PdfPageEditor" ], "apis_used": [ - "PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.GetPages", - "PdfPageEditor.GetPageSize", - "PdfPageEditor.PageRotations", - "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save" + "Aspose.Pdf.Facades.PdfPageEditor", + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.Facades.PdfPageEditor.GetPages", + "Aspose.Pdf.Facades.PdfPageEditor.PageRotations", + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Facades.PdfPageEditor.Save" ], "difficulty": "intermediate" }, { - "filename": "rotate-pages-encrypted-pdf.cs", - "title": "Rotate Pages of Encrypted PDF", - "description": "Demonstrates opening an encrypted PDF by providing a password, binding it to PdfPageEditor, rotating all pages 90 degrees, and saving the edited document.", + "filename": "rotate-first-page-from-memory-stream.cs", + "title": "Rotate First Page of PDF from Memory Stream", + "description": "Shows how to load a PDF from a MemoryStream into PdfPageEditor, rotate a specific page, and save the edited document.", "tags": [ - "encrypted-pdf", + "pdf", + "memory-stream", "page-rotation", - "pdf-editing", - "Aspose.Pdf", - "PdfPageEditor" + "aspose-pdf", + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.Rotation", + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Save" + "Aspose.Pdf.Facades.PdfPageEditor.Save", + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "rotate-pdf-page-180-preserve-transition.cs", - "title": "Rotate PDF Page 180° While Preserving Transition", - "description": "Demonstrates how to rotate a specific PDF page by 180 degrees using the PdfPageEditor facade without affecting any existing transition effects on the page.", + "filename": "rotate-first-page-of-pdfs.cs", + "title": "Rotate First Page Of Pdfs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "rotate-first-page-pdf.cs", + "title": "Rotate First Page of PDF Using PdfPageEditor", + "description": "Demonstrates loading a PDF with PdfPageEditor, rotating the first page, and saving the edited document.", "tags": [ "pdf", "rotation", "page-editing", - "transition", - "aspose-pdf" + "aspose", + "csharp" ], "apis_used": [ - "PdfPageEditor", + "Aspose.Pdf.Facades.PdfPageEditor", "PdfPageEditor.BindPdf", - "PdfPageEditor.PageRotations", + "PdfPageEditor.Rotation", + "PdfPageEditor.ProcessPages", "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save", - "PdfPageEditor.Close" + "PdfPageEditor.Save" ], "difficulty": "beginner" }, { - "filename": "rotate-pdf-page-restore-orientation.cs", - "title": "Rotate PDF Page and Restore Original Orientation", - "description": "Shows how to rotate a PDF page using PdfPageEditor, save the rotated file, then reset the rotation to its original value and save the restored document.", + "filename": "rotate-landscape-pdf-pages.cs", + "title": "Rotate Landscape PDF Pages to Portrait", + "description": "Shows how to detect landscape-oriented pages in a PDF and rotate each 90° to portrait using Aspose.Pdf's PdfPageEditor.", "tags": [ "pdf", "rotation", - "page-editing", + "landscape", "aspose", - "csharp" + "page-editing" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.GetPageRotation", - "PdfPageEditor.Rotation", + "Aspose.Pdf.Facades.PdfPageEditor.Rotation", + "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages", + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Facades.PdfPageEditor.Save" + ], + "difficulty": "intermediate" + }, + { + "filename": "rotate-page-2-pdf-90-degrees.cs", + "title": "Rotate Page 2 of a PDF by 90 Degrees", + "description": "Demonstrates how to rotate a specific page in a PDF using Aspose.Pdf.Facades.PdfPageEditor by setting a PageRotations entry and applying the changes.", + "tags": [ + "pdf", + "rotation", + "page-editing", + "aspose-pdf", + "csharp" + ], + "apis_used": [ + "PdfPageEditor", + "PdfPageEditor.BindPdf", + "PdfPageEditor.PageRotations", "PdfPageEditor.ApplyChanges", "PdfPageEditor.Save" ], "difficulty": "beginner" }, { - "filename": "rotate-pdf-pages-for-brochure.cs", - "title": "Rotate PDF Pages to Landscape for Brochure Printing", - "description": "Shows how to rotate all pages of a PDF to landscape orientation and set the page size to A4 using the PdfPageEditor facade, preparing the document for brochure printing.", + "filename": "rotate-pages-encrypted-pdf.cs", + "title": "Rotate Pages of Encrypted PDF", + "description": "Demonstrates opening an encrypted PDF with a password, using PdfPageEditor to rotate all pages, and saving the modified document.", "tags": [ - "rotation", - "landscape", - "brochure", - "pdf", - "page-editor" + "encrypted-pdf", + "page-rotation", + "pdf-editor", + "Aspose.Pdf", + "password" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", "Aspose.Pdf.Facades.PdfPageEditor.Rotation", - "Aspose.Pdf.Facades.PdfPageEditor.PageSize", "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfPageEditor.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "rotate-pdf-pages-from-network-stream.cs", - "title": "Rotate PDF Pages from a Network Stream using Aspose.Pdf", - "description": "Demonstrates downloading a PDF via HttpClient, loading it into a MemoryStream, rotating all pages with PdfPageEditor, and saving the modified document back to the same stream.", + "filename": "rotate-pdf-page-180-preserve-transition.cs", + "title": "Rotate Pdf Page 180 Preserve Transition", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "rotate-pdf-page-180-preserve-transitions.cs", + "title": "Rotate PDF Page 180° While Preserving Transitions", + "description": "Shows how to rotate a specific page of a PDF by 180 degrees using PdfPageEditor, keeping any existing transition effects unchanged.", "tags": [ "pdf", "rotation", - "network", - "memorystream", - "aspose" + "page-editor", + "transitions", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfPageEditor", "PdfPageEditor.BindPdf", - "PdfPageEditor.Rotation", - "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save" + "PdfPageEditor.PageRotations", + "PdfPageEditor.Save", + "PdfPageEditor.Close" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "rotate-pdf-pages-memory-stream.cs", - "title": "Rotate PDF Pages Using PdfPageEditor from a Memory Stream", - "description": "Demonstrates loading a PDF into a MemoryStream, binding it to Aspose.Pdf.Facades.PdfPageEditor, rotating all pages, and saving the result without writing the original file back to disk.", + "filename": "rotate-pdf-page-restore-orientation.cs", + "title": "Rotate Pdf Page Restore Orientation", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "rotate-pdf-pages-and-save.cs", + "title": "Rotate All Pages of a PDF and Save Back to Stream", + "description": "Shows how to load a PDF from a stream, rotate every page by a given angle using PdfPageEditor, and write the modified PDF back to a new stream (or overwrite the original file).", "tags": [ - "pdf", - "rotation", - "memory-stream", - "page-editor", - "Aspose.Pdf" + "pdf rotation", + "pdf editing", + "stream", + "aspose.pdf", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.Rotation", - "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save" + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.Facades.PdfPageEditor.Rotation", + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Facades.PdfPageEditor.Save" ], "difficulty": "intermediate" }, { - "filename": "rotate-pdf-pages-preserve-form.cs", - "title": "Rotate PDF Pages While Preserving Form Data", - "description": "Demonstrates how to export form fields to FDF, rotate all pages, and re‑import the fields so that form data remains correctly positioned after the rotation.", + "filename": "rotate-pdf-pages-for-brochure.cs", + "title": "Rotate Pdf Pages For Brochure", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "rotate-pdf-pages-from-network-stream.cs", + "title": "Rotate Pdf Pages From Network Stream", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "rotate-pdf-pages-memory-stream.cs", + "title": "Rotate Pdf Pages Memory Stream", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "rotate-pdf-pages-preserve-form-fields.cs", + "title": "Rotate PDF Pages While Preserving Form Fields", + "description": "Shows how to rotate all pages of a PDF by 90° using PdfPageEditor and keep form field positions by exporting to FDF before rotation and re‑importing after.", "tags": [ - "pdf", - "rotation", - "form", - "preserve", - "Aspose" + "pdf-rotation", + "form-fields", + "aspose-pdf", + "csharp", + "facade" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.Form.ExportFdf", "Aspose.Pdf.Facades.Form.ImportFdf", "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfPageEditor.Rotation", + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges" ], "difficulty": "intermediate" }, { - "filename": "rotate-pdf-pages-using-pdfpageeditor.cs", - "title": "Rotate PDF Pages Using PdfPageEditor", - "description": "Shows how to rotate all pages of a PDF by setting the Rotation property of PdfPageEditor, applying changes, and saving the modified document.", + "filename": "rotate-pdf-pages-preserve-form.cs", + "title": "Rotate Pdf Pages Preserve Form", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "rotate-pdf-pages-to-landscape-brochure.cs", + "title": "Rotate PDF Pages to Landscape for Brochure Printing", + "description": "Shows how to rotate every page of a PDF to landscape orientation and set the page size to A4 using Aspose.Pdf.Facades.PdfPageEditor, preparing the document for brochure printing.", "tags": [ - "pdf", "rotation", - "aspose-pdf", - "facade", - "csharp" + "landscape", + "brochure", + "pdf", + "Aspose.Pdf" ], "apis_used": [ "PdfPageEditor", "PdfPageEditor.BindPdf", "PdfPageEditor.Rotation", + "PdfPageEditor.PageSize", "PdfPageEditor.ApplyChanges", "PdfPageEditor.Save" ], "difficulty": "beginner" }, { - "filename": "rotate-pdf-pages-with-validation.cs", - "title": "Rotate PDF Pages with Validation using Aspose.Pdf", - "description": "Demonstrates how to validate a rotation angle (0, 90, 180, 270) and apply it to all pages of a PDF using Aspose.Pdf.Facades.PdfPageEditor.", + "filename": "rotate-pdf-pages-using-pdfpageeditor.cs", + "title": "Rotate PDF Pages Using PdfPageEditor", + "description": "Demonstrates how to validate a rotation angle and apply it to all pages of a PDF using Aspose.Pdf.Facades.PdfPageEditor.", "tags": [ - "pdf", "rotation", + "pdf", + "facades", "validation", - "aspose", "csharp" ], "apis_used": [ @@ -25936,181 +31379,203 @@ "difficulty": "beginner" }, { - "filename": "rotate-resize-pdf-page-to-letter.cs", - "title": "Rotate and Resize PDF Page to Letter", - "description": "Shows how to rotate page 3 of a PDF by 90 degrees and change its dimensions to Letter size using the Aspose.Pdf.Facades.PdfPageEditor class.", + "filename": "rotate-pdf-pages-using-pdfpageeditor__v2.cs", + "title": "Rotate PDF Pages Using PdfPageEditor", + "description": "Demonstrates how to rotate all pages of a PDF by setting the Rotation property of PdfPageEditor and saving the result.", "tags": [ - "rotation", - "page-size", "pdf", - "Aspose.Pdf", - "PdfPageEditor" + "rotation", + "aspose", + "pdfpageeditor", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfPageEditor", "PdfPageEditor.BindPdf", - "PdfPageEditor.ProcessPages", "PdfPageEditor.Rotation", - "PdfPageEditor.PageSize", "PdfPageEditor.ApplyChanges", "PdfPageEditor.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" + }, + { + "filename": "rotate-pdf-pages-with-validation.cs", + "title": "Rotate Pdf Pages With Validation", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "rotate-resize-pdf-page-to-letter.cs", + "title": "Rotate Resize Pdf Page To Letter", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "rotate-resize-zoom-pdf-pages.cs", - "title": "Rotate, Resize and Zoom PDF Pages", - "description": "Demonstrates using Aspose.Pdf.Facades.PdfPageEditor to rotate pages, change page size, apply a zoom factor, and save the transformed PDF.", - "tags": [ - "pdf", - "rotation", - "pagesize", - "zoom", - "Aspose.Pdf" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.Rotation", - "Aspose.Pdf.Facades.PdfPageEditor.PageSize", - "Aspose.Pdf.Facades.PdfPageEditor.Zoom", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Save" - ], - "difficulty": "intermediate" + "title": "Rotate Resize Zoom Pdf Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "rotate-specific-pdf-page.cs", "title": "Rotate Specific PDF Page Using PdfPageEditor", - "description": "Shows how to rotate page 2 of a PDF by 90 degrees using the Aspose.Pdf.Facades.PdfPageEditor and its PageRotations dictionary.", + "description": "Demonstrates how to rotate page 4 of a PDF document by 180 degrees using the PdfPageEditor facade and save the result.", "tags": [ + "rotation", "pdf", - "rotate", "page", - "facade", + "editor", "aspose" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Save", - "Aspose.Pdf.Facades.PdfPageEditor.PageRotations" + "PdfPageEditor", + "PdfPageEditor.BindPdf", + "PdfPageEditor.ProcessPages", + "PdfPageEditor.Rotation", + "PdfPageEditor.ApplyChanges", + "PdfPageEditor.Save" ], "difficulty": "beginner" }, { - "filename": "rotate-specific-pdf-page__v2.cs", - "title": "Rotate Specific PDF Page Using PdfPageEditor", - "description": "Demonstrates how to rotate page 4 of a PDF document by 180 degrees using the PdfPageEditor facade and save the result.", + "filename": "rotate-specific-pdf-pages.cs", + "title": "Rotate Specific PDF Pages Using PdfPageEditor", + "description": "Demonstrates how to rotate selected pages (3, 5, and 7) of a PDF by 180 degrees using the Aspose.Pdf.Facades.PdfPageEditor facade.", "tags": [ - "rotation", "pdf", - "page", - "editor", - "aspose" + "page-rotation", + "facade", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages", - "Aspose.Pdf.Facades.PdfPageEditor.Rotation", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Save" + "PdfPageEditor.BindPdf", + "PdfPageEditor.PageRotations", + "PdfPageEditor.ApplyChanges", + "PdfPageEditor.Save" ], "difficulty": "beginner" }, { - "filename": "rotate-specific-pdf-pages-180-degrees.cs", - "title": "Rotate Specific PDF Pages by 180 Degrees", - "description": "Shows how to rotate selected pages (3, 5, and 7) of a PDF by 180° using the PdfPageEditor facade.", + "filename": "safe-get-pdf-page-size.cs", + "title": "Safe Get Pdf Page Size", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "save-modified-pdf-to-memorystream-using-pdfpageeditor.cs", + "title": "Save Modified Pdf To Memorystream Using Pdfpageeditor", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "set-boxout-transition-and-zoom.cs", + "title": "Set BoxOut Transition and Zoom on PDF Page", + "description": "Shows how to apply a BoxOut page transition and a 1.3 zoom factor to page 2 of a PDF using Aspose.Pdf.Facades.PdfPageEditor.", "tags": [ "pdf", - "rotation", - "pages", - "aspose", - "facade" + "transition", + "zoom", + "page-editing", + "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.PdfPageEditor", "PdfPageEditor.BindPdf", - "PdfPageEditor.PageRotations", + "PdfPageEditor.ProcessPages", + "PdfPageEditor.TransitionType", + "PdfPageEditor.Zoom", "PdfPageEditor.ApplyChanges", "PdfPageEditor.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "safe-get-pdf-page-size.cs", - "title": "Safely Retrieve PDF Page Size with Try‑Catch", - "description": "Demonstrates how to use Aspose.Pdf's PdfPageEditor to obtain page dimensions while handling requests for non‑existent pages using try‑catch blocks. Includes creation of a sample PDF for testing.", + "filename": "set-boxout-transition-on-pdf-page.cs", + "title": "Set BoxOut Transition on PDF Page", + "description": "Demonstrates how to apply a BoxOut page transition with a three‑second duration to a specific page of a PDF using Aspose.Pdf.", "tags": [ "pdf", - "page-size", - "error-handling", - "aspose", - "csharp" + "transition", + "boxout", + "page-edit", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.GetPageSize", - "Aspose.Pdf.Facades.PageSize" + "PdfPageEditor.ProcessPages", + "PdfPageEditor.TransitionType", + "PdfPageEditor.TransitionDuration", + "PdfPageEditor.ApplyChanges", + "Document.Save" ], "difficulty": "beginner" }, { - "filename": "save-modified-pdf-to-memorystream-using-pdfpageeditor.cs", - "title": "Save Modified PDF to MemoryStream Using PdfPageEditor", - "description": "Demonstrates how to edit a PDF page's zoom factor with Aspose.Pdf.Facades.PdfPageEditor and save the resulting document directly into a MemoryStream for further in‑memory processing.", + "filename": "set-cover-transition-on-pdf-page.cs", + "title": "Set Cover Transition on PDF Page", + "description": "Demonstrates how to apply a Cover page transition with a 1‑second duration to page 4 of a PDF using Aspose.Pdf.", "tags": [ "pdf", - "memorystream", + "transition", + "cover", "page-editing", - "aspose.pdf", - "csharp" + "aspose-pdf" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.Zoom", - "PdfPageEditor.Save" + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Facades.PdfPageEditor.Save", + "Aspose.Pdf.Facades.PdfPageEditor.TransitionType", + "Aspose.Pdf.Facades.PdfPageEditor.TransitionDuration" ], "difficulty": "beginner" }, { - "filename": "set-boxout-transition-and-zoom.cs", - "title": "Set BoxOut Transition and Zoom on a PDF Page", - "description": "Shows how to apply a BoxOut page transition with a 1.3 zoom factor to a specific page of a PDF using Aspose.Pdf.Facades.PdfPageEditor.", + "filename": "set-custom-a4-landscape-page-size.cs", + "title": "Set Custom A4 Landscape Page Size Using PdfPageEditor", + "description": "Shows how to change all pages of a PDF to a custom A4 landscape size by setting Width and Height properties via Aspose.Pdf.Facades.PdfPageEditor.", "tags": [ - "pdf", - "transition", - "zoom", - "page-editor", - "aspose" + "page-size", + "landscape", + "A4", + "PdfPageEditor", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.ProcessPages", - "PdfPageEditor.TransitionType", - "PdfPageEditor.Zoom", - "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save" + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Facades.PdfPageEditor.Save", + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.PageSize" ], "difficulty": "intermediate" }, { - "filename": "set-custom-page-size-pdfpageeditor.cs", + "filename": "set-custom-page-size-with-pdfpageeditor.cs", "title": "Set Custom Page Size with PdfPageEditor", - "description": "Demonstrates how to change a PDF's page dimensions to non‑standard values using Aspose.Pdf.Facades.PdfPageEditor and the PageSize property.", + "description": "Shows how to change a PDF's page dimensions to non‑standard width and height using Aspose.Pdf.Facades.PdfPageEditor and the PageSize property.", "tags": [ "pdf", "page-size", "custom-dimensions", - "facade", - "Aspose.Pdf" + "Aspose.Pdf", + "PdfPageEditor" ], "apis_used": [ "Aspose.Pdf.Facades.PdfPageEditor", @@ -26123,40 +31588,58 @@ "difficulty": "beginner" }, { - "filename": "set-display-duration-for-pdf-page.cs", - "title": "Set Display Duration for a PDF Page", - "description": "Demonstrates how to set the display duration of a specific PDF page (page 5) to five seconds using Aspose.Pdf.Facades.PdfPageEditor.", + "filename": "set-display-duration-even-pages.cs", + "title": "Set Display Duration for Even Pages in PDF", + "description": "Shows how to apply a custom display duration to only the even‑numbered pages of a PDF using Aspose.Pdf.Facades.PdfPageEditor.", "tags": [ + "pdf", "display-duration", - "pdf-page", - "slideshow", - "Aspose.Pdf", - "PdfPageEditor" + "even-pages", + "aspose-pdf", + "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfPageEditor", + "PdfPageEditor", "PdfPageEditor.BindPdf", + "PdfPageEditor.GetPages", "PdfPageEditor.ProcessPages", "PdfPageEditor.DisplayDuration", "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save" + "PdfPageEditor.Save", + "PdfPageEditor.Close" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "set-display-duration-for-pdf-pages.cs", - "title": "Set Display Duration for PDF Pages (Slideshow)", - "description": "Shows how to assign a display duration to each page of a PDF using PdfPageEditor, enabling a timed slideshow presentation.", + "title": "Set Display Duration For Pdf Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "set-display-duration-on-even-pdf-pages.cs", + "title": "Set Display Duration On Even Pdf Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "set-display-duration-page-five.cs", + "title": "Set Display Duration for a Specific PDF Page", + "description": "Shows how to use Aspose.Pdf.Facades.PdfPageEditor to set the display duration of page 5 to five seconds in a PDF document.", "tags": [ + "pdf", "display-duration", - "pdf-slideshow", - "pdfpageeditor", - "aspose-pdf", - "csharp" + "page-editing", + "slideshow", + "aspose-pdf" ], "apis_used": [ + "PdfPageEditor", "PdfPageEditor.BindPdf", - "PdfPageEditor.GetPages", "PdfPageEditor.ProcessPages", "PdfPageEditor.DisplayDuration", "PdfPageEditor.ApplyChanges", @@ -26165,181 +31648,254 @@ "difficulty": "beginner" }, { - "filename": "set-display-duration-on-even-pdf-pages.cs", - "title": "Set Display Duration on Even PDF Pages", - "description": "Demonstrates how to set a custom display duration for only the even-numbered pages of a PDF using Aspose.Pdf's PdfPageEditor.", + "filename": "set-horizontal-alignment-and-zoom-on-page.cs", + "title": "Set Horizontal Alignment and Zoom on Specific PDF Page", + "description": "Shows how to center the content of page 4 and increase its zoom level using Aspose.Pdf.Facades.PdfPageEditor.", "tags": [ - "display-duration", - "even-pages", "pdf", - "Aspose.Pdf", - "PdfPageEditor" + "alignment", + "zoom", + "page-editing", + "aspose" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages", - "Aspose.Pdf.Facades.PdfPageEditor.DisplayDuration", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Document.Save" + "PdfPageEditor", + "PdfPageEditor.BindPdf", + "PdfPageEditor.ApplyChanges", + "PdfPageEditor.Save", + "PdfPageEditor.Close", + "HorizontalAlignment" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "set-horizontal-alignment-pdf.cs", "title": "Set Horizontal Alignment of PDF Page Content", - "description": "Demonstrates how to use the PdfPageEditor facade to change the horizontal alignment (left, center, right) of all content on a PDF page and save the modified document.", + "description": "Demonstrates how to use PdfPageEditor to change the horizontal alignment (left, center, right) of existing page content in a PDF document.", "tags": [ "pdf", "alignment", - "aspose", - "facade", - "horizontal" + "aspose.pdf", + "page-editor", + "horizontal-alignment" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.HorizontalAlignment", "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", "Aspose.Pdf.Facades.PdfPageEditor.Save", - "Aspose.Pdf.HorizontalAlignment" + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Facades.HorizontalAlignment" ], "difficulty": "beginner" }, { "filename": "set-horizontal-alignment-zoom-page.cs", - "title": "Set Horizontal Alignment and Zoom for a Specific PDF Page", - "description": "Demonstrates using Aspose.Pdf.Facades.PdfPageEditor to center‑align content and apply a zoom factor to page 4 of a PDF document.", + "title": "Set Horizontal Alignment Zoom Page", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "set-last-page-size-a5.cs", + "title": "Set Last Page Size to A5 in PDF", + "description": "Shows how to change only the last page of a PDF to A5 size using Aspose.Pdf's PdfPageEditor facade, useful for creating compact booklet formats.", "tags": [ "pdf", - "alignment", - "zoom", - "page-editor", - "aspose-pdf" + "page-size", + "last-page", + "Aspose.Pdf", + "booklet" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages", + "Aspose.Pdf.Facades.PdfPageEditor.PageSize", + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Facades.PdfPageEditor.Save" + ], + "difficulty": "intermediate" + }, + { + "filename": "set-page-display-duration-by-word-count.cs", + "title": "Set Page Display Duration Based on Word Count", + "description": "Shows how to compute reading time from the word count of each PDF page and assign a proportional display duration using Aspose.Pdf.", + "tags": [ + "pdf", + "display-duration", + "word-count", + "reading-time", + "Aspose.Pdf" + ], + "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfPageEditor", + "Aspose.Pdf.Text.TextAbsorber", + "Aspose.Pdf.Facades.PdfPageEditor.DisplayDuration", + "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages", + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Facades.PdfPageEditor.Save" + ], + "difficulty": "intermediate" + }, + { + "filename": "set-page-display-duration-for-pdf-slideshow.cs", + "title": "Set Page Display Duration for PDF Slideshow", + "description": "Shows how to assign a custom display duration to each page of a PDF, creating a timed slideshow using Aspose.Pdf's PdfPageEditor.", + "tags": [ + "pdf", + "slideshow", + "display-duration", + "page-editing", + "aspose-pdf" + ], + "apis_used": [ + "PdfPageEditor", "PdfPageEditor.BindPdf", + "PdfPageEditor.GetPages", "PdfPageEditor.ProcessPages", - "PdfPageEditor.HorizontalAlignment", - "PdfPageEditor.Zoom", - "PdfPageEditor.ApplyChanges" + "PdfPageEditor.DisplayDuration", + "PdfPageEditor.ApplyChanges", + "PdfPageEditor.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "set-page-transition-duration-based-on-title-length.cs", "title": "Set Page Transition Duration Based on Title Length", - "description": "The example loads a PDF, iterates through its pages, creates a placeholder title, calculates a transition duration from the title length, and applies a page transition using the PdfPageEditor facade.", + "description": "The example loads a PDF, extracts each page's visible text, calculates a transition duration from the title length, and applies a dissolve transition to each page using Aspose.Pdf.", "tags": [ "pdf", "page-transition", "aspose-pdf", - "facade", - "csharp" + "text-absorber", + "pdf-editor" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.TransitionDuration", - "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save" + "Aspose.Pdf.Text.TextAbsorber", + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "set-page-transition-fade-2sec.cs", - "title": "Set Page Transition to Fade with 2‑Second Duration", - "description": "Shows how to apply a Fade transition lasting two seconds to the first page of a PDF using Aspose.Pdf.Facades.PdfPageEditor.", + "filename": "set-page-transition-duration-for-selected-pdf-pages.cs", + "title": "Set Page Transition Duration for Selected PDF Pages", + "description": "Demonstrates how to use the PdfPageEditor facade to specify a range of pages and set each page's transition duration to one second, then save the modified PDF.", "tags": [ "pdf", "transition", - "fade", + "pages", "aspose", "facade" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfPageEditor", + "PdfPageEditor", "PdfPageEditor.BindPdf", "PdfPageEditor.ProcessPages", - "PdfPageEditor.TransitionType", "PdfPageEditor.TransitionDuration", "PdfPageEditor.ApplyChanges", "PdfPageEditor.Save" ], "difficulty": "beginner" }, + { + "filename": "set-page-transition-fade-2sec.cs", + "title": "Set Page Transition Fade 2Sec", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "set-page-transitions-fade-boxout-cover.cs", "title": "Set Page Transition Effects (Fade, BoxOut, Cover) in PDF", - "description": "Demonstrates applying different page transition types (Fade/Dissolve, BoxOut, Cover) to specific pages of a PDF using Aspose.Pdf.Facades.PdfPageEditor.", + "description": "Demonstrates applying different page transition effects (fade, box out, cover) to individual PDF pages using Aspose.Pdf's PdfPageEditor.", "tags": [ "pdf", - "transition", - "facade", - "csharp", - "aspose" + "page-transition", + "aspose.pdf", + "fade", + "boxout" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages", - "Aspose.Pdf.Facades.PdfPageEditor.TransitionType", - "Aspose.Pdf.Facades.PdfPageEditor.TransitionDuration", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Document.Save" + "PdfPageEditor.ProcessPages", + "PdfPageEditor.TransitionType", + "PdfPageEditor.TransitionDuration", + "PdfPageEditor.ApplyChanges", + "PdfPageEditor.Save" ], "difficulty": "intermediate" }, { - "filename": "set-pdf-page-size-a4-landscape.cs", - "title": "Set PDF Page Size to A4 Landscape", - "description": "Shows how to change all pages of a PDF to custom A4 landscape dimensions using Aspose.Pdf.Facades.PdfPageEditor and the PageSize class.", + "filename": "set-page-zoom-to-100-percent.cs", + "title": "Set Page Zoom to 100% for All PDF Pages", + "description": "Demonstrates using Aspose.Pdf.Facades.PdfPageEditor to set the zoom factor to 1.0 (100 %) for every page in a PDF and save the updated document.", "tags": [ - "page-size", - "a4", - "landscape", "pdf", + "zoom", + "pages", + "aspose", "facade" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Save", - "Aspose.Pdf.PageSize" + "PdfPageEditor", + "PdfPageEditor.BindPdf", + "PdfPageEditor.Zoom", + "PdfPageEditor.ApplyChanges", + "PdfPageEditor.Save" ], "difficulty": "beginner" }, { - "filename": "set-pdf-page-size-to-a3.cs", - "title": "Set PDF Page Size to A3 Using PdfPageEditor", - "description": "Shows how to load a PDF, change its page size to A3 with the PdfPageEditor facade, and save the modified document.", + "filename": "set-page-zoom-to-150-percent.cs", + "title": "Set Page Zoom to 150% Using PdfPageEditor", + "description": "Shows how to adjust the zoom level of a specific PDF page (page 3) to 150% with Aspose.Pdf.Facades PdfPageEditor.", "tags": [ + "zoom", "pdf", - "page-size", - "a3", - "aspose-pdf", + "page-editing", + "Aspose.Pdf", "facade" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.PageSize", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Document.Save" + "PdfPageEditor.BindPdf", + "PdfPageEditor.ProcessPages", + "PdfPageEditor.Zoom", + "PdfPageEditor.ApplyChanges", + "PdfPageEditor.Save" ], "difficulty": "beginner" }, + { + "filename": "set-pdf-page-size-a4-landscape.cs", + "title": "Set Pdf Page Size A4 Landscape", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "set-pdf-page-size-to-a3.cs", + "title": "Set Pdf Page Size To A3", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "set-pdf-page-size-to-letter-portrait.cs", "title": "Set PDF Page Size to Letter Portrait", - "description": "Shows how to change all pages of a PDF to the standard Letter portrait dimensions (8.5\" x 11\") using the Aspose.Pdf PdfPageEditor facade.", + "description": "Demonstrates how to change all pages of a PDF to the standard Letter portrait dimensions using Aspose.Pdf's PdfPageEditor.", "tags": [ "page-size", "letter", @@ -26350,7 +31906,6 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", "Aspose.Pdf.PageSize", "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", "Aspose.Pdf.Document.Save" @@ -26358,14 +31913,14 @@ "difficulty": "beginner" }, { - "filename": "set-pdf-page-zoom-to-100-percent.cs", - "title": "Set PDF Page Zoom to 100% Using PdfPageEditor", - "description": "Shows how to load a PDF with PdfPageEditor, set the Zoom property to 1.0 (100 % scaling) for all pages, apply the changes, and save the updated file.", + "filename": "set-pdf-page-zoom-preview-final.cs", + "title": "Set PDF Page Zoom for Preview and Final Output", + "description": "Shows how to generate a preview PDF at 50 % zoom and a final PDF at 100 % zoom using Aspose.Pdf.Facades.PdfPageEditor.", "tags": [ "pdf", "zoom", - "pages", - "aspose", + "preview", + "Aspose.Pdf", "facade" ], "apis_used": [ @@ -26378,143 +31933,169 @@ "difficulty": "beginner" }, { - "filename": "set-pdf-page-zoom.cs", - "title": "Set PDF Page Zoom Using PdfPageEditor", - "description": "Demonstrates how to apply a precise zoom factor to a PDF document using Aspose.Pdf.Facades.PdfPageEditor for high‑resolution scaling.", + "filename": "set-pdf-page-zoom-using-double-precision.cs", + "title": "Set PDF Page Zoom Using Double Precision", + "description": "Demonstrates applying a precise zoom factor to a PDF document with Aspose.Pdf by casting a double to the PdfPageEditor.Zoom property and saving the result.", "tags": [ "zoom", - "pdf", - "facade", "scaling", - "Aspose.Pdf" + "pdf", + "Aspose.Pdf", + "precision" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.Zoom", - "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save" + "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", + "Aspose.Pdf.Facades.PdfPageEditor.Zoom", + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "set-pdf-zoom-preview-final-output.cs", - "title": "Set PDF Zoom for Preview and Scale for Final Output", - "description": "Demonstrates creating a preview PDF with 50 % zoom using PdfPageEditor and configuring a PdfViewer with 100 % scale for final output.", + "title": "Set Pdf Zoom Preview Final Output", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "set-per-page-display-duration-based-on-word-count.cs", + "title": "Set Per Page Display Duration Based On Word Count", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "set-per-page-display-duration.cs", + "title": "Set Per-Page Display Duration in PDF", + "description": "Shows how to assign a different display duration to each page of a PDF, increasing by one second per page, using Aspose.Pdf's PdfPageEditor.", "tags": [ + "display-duration", + "per-page", "pdf", - "zoom", - "preview", - "scale", - "Aspose.Pdf" + "Aspose.Pdf", + "PdfPageEditor" ], "apis_used": [ - "PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.Zoom", - "PdfPageEditor.Save", - "PdfViewer", - "PdfViewer.BindPdf", - "PdfViewer.ScaleFactor" + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfPageEditor", + "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages", + "Aspose.Pdf.Facades.PdfPageEditor.DisplayDuration", + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "set-per-page-display-duration-based-on-word-count.cs", - "title": "Set Per‑Page Display Duration Based on Word Count", - "description": "Demonstrates how to calculate a display duration for each PDF page proportional to its word count and apply it using Aspose.Pdf facades, enabling controlled reading time per page.", + "filename": "set-sequential-page-transitions.cs", + "title": "Set Sequential Page Transitions in PDF", + "description": "Demonstrates how to apply different page transition effects to individual pages of a PDF using Aspose.Pdf's PdfPageEditor facade.", "tags": [ "pdf", - "display-duration", - "word-count", + "page-transitions", "aspose-pdf", - "page-editing" + "csharp", + "facades" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Text.TextAbsorber", - "Aspose.Pdf.Text.TextExtractionOptions", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges" + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Facades.PdfPageEditor.TransitionType", + "Aspose.Pdf.Facades.PdfPageEditor.TransitionDuration", + "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "set-per-page-display-duration.cs", - "title": "Set Per-Page Display Duration in PDF", - "description": "Shows how to assign a different display duration to each page of a PDF using Aspose.Pdf.Facades.PdfPageEditor, increasing the duration by one second for each subsequent page.", + "filename": "set-slide-display-duration-pdf-presentation.cs", + "title": "Set Slide Display Duration for PDF Presentation", + "description": "Demonstrates how to set a uniform display duration (in seconds) for each page of a PDF, turning it into a timed presentation using Aspose.Pdf's PdfPageEditor facade.", "tags": [ "pdf", + "presentation", "display-duration", - "page-editing", "aspose", "facade" ], "apis_used": [ - "PdfPageEditor", - "PdfPageEditor.BindPdf", - "PdfPageEditor.ProcessPages", - "PdfPageEditor.DisplayDuration", - "PdfPageEditor.ApplyChanges", - "PdfPageEditor.Save" + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfPageEditor", + "Aspose.Pdf.Facades.PdfPageEditor.DisplayDuration", + "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", + "Aspose.Pdf.Facades.PdfPageEditor.Save" ], "difficulty": "beginner" }, { "filename": "set-slide-display-duration-pdf.cs", - "title": "Set Slide Display Duration for PDF Pages", - "description": "Shows how to assign a per‑page display duration (and optional transition) to a PDF presentation using Aspose.Pdf's PdfPageEditor.", + "title": "Set Slide Display Duration Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "set-split-page-transition.cs", + "title": "Set Split Page Transition for Specific PDF Page", + "description": "Demonstrates how to apply a horizontal split transition lasting two seconds to page 3 of a PDF using Aspose.Pdf.Facades.", "tags": [ "pdf", - "slide-duration", - "presentation", - "Aspose.Pdf", - "PdfPageEditor" + "page-transition", + "split", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.DisplayDuration", + "Aspose.Pdf.Facades.PdfPageEditor.SPLITHIN", "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "set-transition-duration-for-pdf-pages.cs", - "title": "Set Transition Duration for a Range of PDF Pages", - "description": "Shows how to select specific pages via the Pages collection and set each page's transition duration to one second using Aspose.Pdf's PdfPageEditor facade.", + "filename": "set-zoom-of-page-to-75-percent.cs", + "title": "Set Zoom of Specific PDF Page to 75%", + "description": "Demonstrates how to set the zoom level of a single PDF page (page 5) to 75% using Aspose.Pdf.Facades.PdfPageEditor.", "tags": [ "pdf", - "transition", - "pages", - "aspose", - "facade" + "zoom", + "page-editing", + "Aspose.Pdf", + "C#" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages", - "Aspose.Pdf.Facades.PdfPageEditor.TransitionDuration", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Close" + "PdfPageEditor.BindPdf", + "PdfPageEditor.ProcessPages", + "PdfPageEditor.Zoom", + "PdfPageEditor.ApplyChanges", + "PdfPageEditor.Save" ], "difficulty": "beginner" }, { - "filename": "set-zoom-on-specific-pdf-page.cs", - "title": "Set Zoom on Specific PDF Page Using PdfPageEditor", - "description": "Shows how to apply a 2.0 zoom factor (200% magnification) to page 7 of a PDF document using Aspose.Pdf.Facades.PdfPageEditor.", + "filename": "set-zoom-on-even-pdf-pages.cs", + "title": "Set Zoom on Even PDF Pages", + "description": "Shows how to apply a zoom factor of 0.8 to all even‑numbered pages of a PDF using Aspose.Pdf.Facades.PdfPageEditor.", "tags": [ "pdf", "zoom", - "page-editor", - "aspose", - "csharp" + "even-pages", + "Aspose.Pdf", + "page-editing" ], "apis_used": [ "Aspose.Pdf.Facades.PdfPageEditor", "PdfPageEditor.BindPdf", + "PdfPageEditor.GetPages", "PdfPageEditor.ProcessPages", "PdfPageEditor.Zoom", "PdfPageEditor.ApplyChanges", @@ -26523,14 +32104,36 @@ "difficulty": "beginner" }, { - "filename": "set-zoom-page-5-75-percent.cs", - "title": "Set Zoom of Page 5 to 75% with PdfPageEditor", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfPageEditor to set the zoom level of a specific page (page 5) to 75% and save the modified PDF.", + "filename": "set-zoom-on-odd-pages.cs", + "title": "Set Zoom on Odd Pages in PDF", + "description": "Shows how to apply a 1.2 zoom factor to all odd‑numbered pages of a PDF using Aspose.Pdf.Facades.PdfPageEditor.", + "tags": [ + "pdf", + "zoom", + "odd-pages", + "Aspose.Pdf", + "facade" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfPageEditor", + "PdfPageEditor.BindPdf", + "PdfPageEditor.GetPages", + "PdfPageEditor.ProcessPages", + "PdfPageEditor.Zoom", + "PdfPageEditor.ApplyChanges", + "PdfPageEditor.Save" + ], + "difficulty": "intermediate" + }, + { + "filename": "set-zoom-on-specific-pdf-page.cs", + "title": "Set Zoom on Specific PDF Page", + "description": "Shows how to apply a 2.0 zoom factor (200% magnification) to page 7 of a PDF using Aspose.Pdf.Facades.PdfPageEditor.", "tags": [ "pdf", "zoom", "page-editing", - "aspose-pdf", + "Aspose.Pdf", "facade" ], "apis_used": [ @@ -26544,100 +32147,121 @@ ], "difficulty": "beginner" }, + { + "filename": "set-zoom-page-5-75-percent.cs", + "title": "Set Zoom Page 5 75 Percent", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "use-try-catch-blocks-around-getpagesize-calls-to-handle-requests-for-non-existent-page-numbers-safely.cs", + "title": "Use Try Catch Blocks Around Getpagesize Calls To Handle Requests For Non Existent Page Numbers Safely", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "vertically-align-page-3-top.cs", - "title": "Vertically Align Page 3 to Top", - "description": "Shows how to use Aspose.Pdf's PdfPageEditor to set the vertical alignment of page 3 to the top and save the modified PDF.", + "title": "Vertically Align Page 3 Top", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "vertically-center-page-content.cs", + "title": "Vertically Center Page Content Using PdfPageEditor", + "description": "Shows how to align the content of a specific PDF page (page 3) to the vertical middle using Aspose.Pdf.Facades PdfPageEditor.", "tags": [ "pdf", - "vertical-alignment", - "page-editor", - "Aspose.Pdf", - "C#" + "alignment", + "vertical-center", + "page-editing", + "aspose" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", "Aspose.Pdf.Facades.PdfPageEditor.BindPdf", - "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages", + "Aspose.Pdf.Facades.PdfPageEditor.Save", "Aspose.Pdf.Facades.PdfPageEditor.VerticalAlignmentType", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Save" + "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages", + "Aspose.Pdf.VerticalAlignment" ], "difficulty": "beginner" }, { - "filename": "zoom-odd-numbered-pdf-pages.cs", - "title": "Zoom Odd-Numbered PDF Pages", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfPageEditor to apply a 1.2x zoom factor to odd‑numbered pages of a PDF document.", + "filename": "zoom-even-pages-pdf.cs", + "title": "Zoom Even Pages of PDF by 1.2x", + "description": "Shows how to use Aspose.Pdf.Facades.PdfPageEditor to apply a 1.2 zoom factor to all even‑numbered pages of a PDF and save the modified document.", "tags": [ "pdf", "zoom", - "odd-pages", + "even-pages", "Aspose.Pdf", - "PdfPageEditor" + "facades" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.Zoom", - "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Document.Save" + "PdfPageEditor.BindPdf", + "PdfPageEditor.GetPages", + "PdfPageEditor.ProcessPages", + "PdfPageEditor.Zoom", + "PdfPageEditor.ApplyChanges", + "PdfPageEditor.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "zoom-pages-with-images.cs", - "title": "Zoom Pages Containing Images in PDF", - "description": "Demonstrates how to detect pages that contain image objects in a PDF and apply a zoom factor only to those pages using the Aspose.Pdf.Facades API.", + "title": "Zoom Pages With Images", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "zoom-pdf-pages-with-images.cs", + "title": "Zoom PDF Pages Containing Images", + "description": "Shows how to detect pages that contain image objects in a PDF and apply a zoom factor only to those pages using Aspose.Pdf.Facades.", "tags": [ "pdf", "zoom", - "images", - "facade", - "page-editing" + "image-detection", + "page-editing", + "aspose" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Zoom", - "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages" + "PdfExtractor", + "PdfPageEditor", + "PdfExtractor.ExtractImage", + "PdfExtractor.HasNextImage", + "PdfPageEditor.Zoom", + "PdfPageEditor.ApplyChanges" ], "difficulty": "intermediate" }, { "filename": "zoom-selected-non-consecutive-pdf-pages.cs", - "title": "Zoom Selected Non-Consecutive PDF Pages", - "description": "Shows how to select specific non‑consecutive pages of a PDF using PdfPageEditor.ProcessPages and apply a common zoom factor to those pages.", - "tags": [ - "pdf", - "zoom", - "non-consecutive", - "pages", - "Aspose.Pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfPageEditor", - "Aspose.Pdf.Facades.PdfPageEditor.ProcessPages", - "Aspose.Pdf.Facades.PdfPageEditor.Zoom", - "Aspose.Pdf.Facades.PdfPageEditor.ApplyChanges", - "Aspose.Pdf.Facades.PdfPageEditor.Save" - ], - "difficulty": "beginner" + "title": "Zoom Selected Non Consecutive Pdf Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" } ] }, { "name": "facades-secure-documents", - "file_count": 38, + "file_count": 59, "files": [ "add-text-annotation-to-encrypted-pdf.cs", "apply-password-protection-to-pdf.cs", "batch-decrypt-pdfs-from-config.cs", + "batch-decrypt-pdfs-owner-passwords.cs", + "batch-encrypt-pdf-files.cs", "batch-encrypt-pdfs.cs", "batch-update-pdf-user-passwords.cs", "change-pdf-owner-password-preserve-user.cs", @@ -26645,79 +32269,83 @@ "change-user-and-owner-passwords.cs", "change-user-password-of-encrypted-pdf.cs", "check-pdf-encryption-and-encrypt-decrypt.cs", + "check-pdf-encryption-and-toggle-protection.cs", "check-pdf-extended-usage-rights.cs", + "conditional-decrypt-modify-pdf.cs", + "conditional-pdf-encryption-based-on-filename.cs", + "decrypt-pdf-owner-password.cs", + "decrypt-pdf-using-owner-password-azure-key-vault.cs", "decrypt-pdf-with-owner-password.cs", "disable-copying-enable-printing-pdf.cs", + "encrypt-decrypt-pdf-roundtrip.cs", "encrypt-decrypt-pdf-verify-integrity.cs", "encrypt-pdf-256-aes.cs", "encrypt-pdf-aes256-custom-privileges.cs", "encrypt-pdf-aes256-to-cloud.cs", + "encrypt-pdf-aes256-upload.cs", "encrypt-pdf-byte-array.cs", + "encrypt-pdf-from-byte-array.cs", "encrypt-pdf-rc4-128-allow-print-edit.cs", + "encrypt-pdf-rc4-128-print-edit-privileges.cs", "encrypt-pdf-rc4-40.cs", "encrypt-pdf-stream-rc4-40.cs", "encrypt-pdf-to-memory-stream.cs", "encrypt-pdf-with-exception-handling.cs", + "encrypt-pdf-with-password-and-capture-exceptions.cs", "encrypt-pdf-with-user-password-only.cs", + "encrypt-pdf-with-user-password.cs", "encrypt-pdfs-by-filename-algorithm.cs", "encrypt-pdfs-with-performance-timing.cs", "generate-encryption-usage-report.cs", "generate-pdf-encryption-summary.cs", + "load-pdf-verify-page-count-facade.cs", "load-pdf-verify-page-count.cs", "modify-pdf-privileges.cs", + "pdf-decryption-failure-wrong-owner-password-test.cs", + "pdf-encryption-summary.cs", + "remove-extended-usage-rights-from-signed-pdf.cs", "remove-usage-rights-from-signed-pdf.cs", "remove-usage-rights-verify.cs", + "report-pdf-encryption-algorithms.cs", "retrieve-pdf-encryption-algorithm.cs", + "set-pdf-privilege-allow-exceptions-false.cs", "set-pdf-privileges-allow-form-filling-disable-assembly.cs", "set-pdf-privileges-allow-printing-only.cs", "update-owner-password-pdf.cs", + "update-pdf-owner-password.cs", + "validate-pdf-encryption-and-decrypt.cs", "validate-pdf-encryption-before-decryption.cs", "verify-decryption-fails-incorrect-owner-password.cs" ], "required_namespaces": [ "Aspose.Pdf.Facades", "Aspose.Pdf", - "Aspose.Pdf.Annotations" + "Aspose.Pdf.Text" ], "key_apis": [ "PdfFileSecurity", "PdfFileInfo", - "FileInfo", - "TextAnnotation" + "TextFragment" ], "examples": [ { "filename": "add-text-annotation-to-encrypted-pdf.cs", - "title": "Add Text Annotation to Encrypted PDF", - "description": "Demonstrates opening a PDF with optional owner password handling, adding a text annotation to the first page, and saving the modified document.", - "tags": [ - "pdf", - "encryption", - "annotation", - "aspose", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.InvalidPasswordException", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Color", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "intermediate" + "title": "Add Text Annotation To Encrypted Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "apply-password-protection-to-pdf.cs", - "title": "Apply Password Protection to PDF Using PdfFileSecurity", - "description": "Shows how to encrypt an existing PDF with user and owner passwords using the PdfFileSecurity facade, avoiding the creation of a Document object.", + "title": "Apply Password Protection to PDF without Loading Document", + "description": "Shows how to encrypt an existing PDF file with user and owner passwords using the PdfFileSecurity facade, avoiding the creation of a Document object.", "tags": [ "pdf", "encryption", "password-protection", - "facade", - "Aspose.Pdf" + "Aspose.Pdf", + "C#" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSecurity", @@ -26729,46 +32357,61 @@ }, { "filename": "batch-decrypt-pdfs-from-config.cs", - "title": "Batch Decrypt PDFs Using Owner Passwords from Config", - "description": "Demonstrates how to read a JSON configuration file and batch‑decrypt multiple PDF files using their owner passwords with Aspose.Pdf.Facades.", + "title": "Batch Decrypt Pdfs From Config", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "batch-decrypt-pdfs-owner-passwords.cs", + "title": "Batch Decrypt PDFs Using Owner Passwords", + "description": "Shows how to read a simple configuration file containing PDF paths and owner passwords, then decrypt each PDF in a batch using Aspose.Pdf.Facades.PdfFileSecurity.", "tags": [ "pdf", "decryption", "batch", - "configuration", - "aspose" + "owner-password", + "configuration" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileSecurity", - "Aspose.Pdf.Facades.PdfFileSecurity.DecryptFile", - "Aspose.Pdf.Facades.PdfFileSecurity.Dispose" + "PdfFileSecurity", + "PdfFileSecurity.DecryptFile", + "PdfFileSecurity (constructor)" ], "difficulty": "intermediate" }, { - "filename": "batch-encrypt-pdfs.cs", - "title": "Batch Encrypt PDFs with User and Owner Passwords", - "description": "Demonstrates how to encrypt all PDF files in a folder using Aspose.Pdf by applying the same user and owner passwords with AES‑256 protection. The code iterates through each PDF, saves the encrypted copy to an output directory, and enables printing.", + "filename": "batch-encrypt-pdf-files.cs", + "title": "Batch Encrypt PDF Files with User and Owner Passwords", + "description": "Shows how to encrypt every PDF in a directory using Aspose.Pdf.Facades.PdfFileSecurity with a common user and owner password, creating encrypted copies.", "tags": [ "pdf encryption", "batch processing", - "aspose.pdf", - "security", - "c#" + "user password", + "owner password", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSecurity", "Aspose.Pdf.Facades.PdfFileSecurity.EncryptFile", "Aspose.Pdf.DocumentPrivilege", - "Aspose.Pdf.KeySize", - "Aspose.Pdf.Facades.PdfFileSecurity.Dispose" + "Aspose.Pdf.KeySize" ], "difficulty": "beginner" }, + { + "filename": "batch-encrypt-pdfs.cs", + "title": "Batch Encrypt Pdfs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "batch-update-pdf-user-passwords.cs", "title": "Batch Update PDF User Passwords", - "description": "Iterates through all PDF files in a folder and applies a standardized user password to each document using Aspose.Pdf.Facades.", + "description": "Shows how to iterate through a folder of PDF files and change each file's user password to a standardized value using Aspose.Pdf.Facades.", "tags": [ "pdf", "password", @@ -26777,57 +32420,48 @@ "aspose" ], "apis_used": [ - "PdfFileSecurity", - "PdfFileSecurity.ChangePassword", - "PdfFileSecurity.Close" + "Aspose.Pdf.Facades.PdfFileSecurity", + "Aspose.Pdf.Facades.PdfFileSecurity.TryChangePassword" ], "difficulty": "beginner" }, { "filename": "change-pdf-owner-password-preserve-user.cs", - "title": "Change PDF Owner Password While Preserving User Password", - "description": "Shows how to iterate over multiple PDF files and update their owner passwords using Aspose.Pdf.Facades, keeping the existing user passwords unchanged.", - "tags": [ - "pdf", - "owner-password", - "security", - "aspose-pdf", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfFileSecurity", - "Aspose.Pdf.Facades.PdfFileSecurity.ChangePassword", - "Aspose.Pdf.Facades.PdfFileSecurity..ctor" - ], - "difficulty": "beginner" + "title": "Change Pdf Owner Password Preserve User", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "change-pdf-passwords-from-csv.cs", - "title": "Change PDF User and Owner Passwords from CSV", - "description": "Demonstrates how to read a CSV list of PDFs and use Aspose.Pdf.Facades to change both the user and owner passwords, saving the secured files to new locations.", + "title": "Change User and Owner Passwords for PDFs from CSV", + "description": "Shows how to read PDF file paths and passwords from a CSV file and use Aspose.Pdf.Facades.PdfFileSecurity to change both user and owner passwords, saving the protected PDFs.", "tags": [ "pdf", "password", "csv", - "aspose", - "security" + "security", + "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSecurity", - "Aspose.Pdf.Facades.PdfFileSecurity.ChangePassword" + "Aspose.Pdf.Facades.PdfFileSecurity.BindPdf", + "Aspose.Pdf.Facades.PdfFileSecurity.ChangePassword", + "Aspose.Pdf.Facades.PdfFileSecurity.Save" ], "difficulty": "intermediate" }, { "filename": "change-user-and-owner-passwords.cs", "title": "Change User and Owner Passwords in PDF", - "description": "Demonstrates how to change both the user and owner passwords of an existing PDF in a single call using the PdfFileSecurity.ChangePassword overload.", + "description": "Demonstrates how to change both the user and owner passwords of an encrypted PDF in a single call using Aspose.Pdf.Facades.PdfFileSecurity.", "tags": [ "pdf", "password", - "security", + "encryption", "aspose", - "change-password" + "security" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSecurity", @@ -26838,7 +32472,7 @@ { "filename": "change-user-password-of-encrypted-pdf.cs", "title": "Change User Password of Encrypted PDF", - "description": "Demonstrates how to change the user password of an already encrypted PDF while keeping the original owner password and encryption settings using Aspose.Pdf.Facades.", + "description": "Demonstrates how to update the user password of an already encrypted PDF while keeping the existing encryption settings using Aspose.Pdf.Facades.", "tags": [ "pdf", "encryption", @@ -26848,44 +32482,51 @@ ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSecurity", - "Aspose.Pdf.Facades.PdfFileSecurity.BindPdf", "Aspose.Pdf.Facades.PdfFileSecurity.ChangePassword", - "Aspose.Pdf.Facades.PdfFileSecurity.Save", - "Aspose.Pdf.Facades.PdfFileSecurity.Close" + "Aspose.Pdf.Facades.PdfFileSecurity..ctor", + "Aspose.Pdf.Facades.PdfFileSecurity.Dispose" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "check-pdf-encryption-and-encrypt-decrypt.cs", - "title": "Check PDF Encryption and Perform Encrypt/Decrypt", - "description": "Demonstrates how to inspect a PDF's IsEncrypted flag with PdfFileInfo and then encrypt or decrypt the document using the Document API based on that status.", + "title": "Check Pdf Encryption And Encrypt Decrypt", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "check-pdf-encryption-and-toggle-protection.cs", + "title": "Check PDF Encryption and Apply or Remove Protection", + "description": "The example shows how to inspect a PDF's IsEncrypted flag using PdfFileInfo, then either encrypt the document with specific permissions or decrypt it by opening with the owner password and saving without encryption.", "tags": [ - "pdf", "encryption", "decryption", - "aspose", - "security" + "pdf", + "permissions", + "aspose-pdf" ], "apis_used": [ - "PdfFileInfo", - "Document", - "Permissions", - "CryptoAlgorithm", - "Document.Encrypt", - "Document.Decrypt" + "Aspose.Pdf.PdfFileInfo", + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Permissions", + "Aspose.Pdf.CryptoAlgorithm" ], "difficulty": "intermediate" }, { "filename": "check-pdf-extended-usage-rights.cs", "title": "Check PDF for Extended Usage Rights", - "description": "Demonstrates how to load a PDF, bind it to the PdfFileSignature facade, and determine whether the document contains extended usage rights using ContainsUsageRights.", + "description": "Shows how to use Aspose.Pdf's PdfFileSignature facade to determine if a PDF contains extended usage rights.", "tags": [ "pdf", "usage-rights", "signature", "facade", - "aspose" + "validation" ], "apis_used": [ "Aspose.Pdf.Document", @@ -26896,15 +32537,59 @@ "difficulty": "beginner" }, { - "filename": "decrypt-pdf-with-owner-password.cs", - "title": "Decrypt PDF with Owner Password using Aspose.Pdf", - "description": "Shows how to unlock and decrypt an encrypted PDF file by providing the owner password with Aspose.Pdf.Facades.PdfFileSecurity.", + "filename": "conditional-decrypt-modify-pdf.cs", + "title": "Conditional Decrypt and Modify PDF with Aspose.Pdf", + "description": "The example loads a PDF, detects if it is encrypted, decrypts it using the owner password when needed, adds a text fragment to the first page, and saves the modified document.", + "tags": [ + "pdf", + "decryption", + "modification", + "aspose-pdf", + "facade" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfFileSecurity", + "Aspose.Pdf.Facades.PdfFileSecurity.DecryptFile", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.Position", + "Aspose.Pdf.Color", + "Aspose.Pdf.Page" + ], + "difficulty": "intermediate" + }, + { + "filename": "conditional-pdf-encryption-based-on-filename.cs", + "title": "Conditional PDF Encryption Based on File Name", + "description": "Demonstrates how to encrypt multiple PDF files using Aspose.Pdf, selecting the key size and encryption algorithm (AES or RC4) according to naming conventions, and saving the encrypted files.", + "tags": [ + "pdf-encryption", + "aspose-pdf", + "conditional-algorithm", + "batch-processing", + "document-privilege" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfFileSecurity", + "Aspose.Pdf.Facades.PdfFileSecurity.BindPdf", + "Aspose.Pdf.Facades.PdfFileSecurity.EncryptFile", + "Aspose.Pdf.Facades.PdfFileSecurity.Save", + "Aspose.Pdf.DocumentPrivilege", + "Aspose.Pdf.KeySize", + "Aspose.Pdf.Algorithm" + ], + "difficulty": "intermediate" + }, + { + "filename": "decrypt-pdf-owner-password.cs", + "title": "Decrypt PDF Using Owner Password", + "description": "Demonstrates how to remove encryption from a PDF file by providing the owner password using Aspose.Pdf's PdfFileSecurity facade.", "tags": [ "pdf", "decryption", "owner-password", "aspose", - "facades" + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSecurity", @@ -26912,75 +32597,106 @@ ], "difficulty": "beginner" }, + { + "filename": "decrypt-pdf-using-owner-password-azure-key-vault.cs", + "title": "Decrypt PDF Using Owner Password from Azure Key Vault", + "description": "Shows how to retrieve an owner password stored in Azure Key Vault and use Aspose.Pdf.Facades to decrypt an encrypted PDF file.", + "tags": [ + "pdf", + "decryption", + "azure-key-vault", + "owner-password", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfFileSecurity", + "Aspose.Pdf.Facades.PdfFileSecurity.DecryptFile" + ], + "difficulty": "intermediate" + }, + { + "filename": "decrypt-pdf-with-owner-password.cs", + "title": "Decrypt Pdf With Owner Password", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "disable-copying-enable-printing-pdf.cs", "title": "Disable Copying While Enabling Printing for PDF", - "description": "Shows how to use Aspose.Pdf.Facades.PdfFileSecurity to allow printing but prevent content copying in a PDF document.", + "description": "Demonstrates using Aspose.Pdf.Facades.PdfFileSecurity to set document privileges so that copying is disabled and printing remains allowed.", "tags": [ - "pdf-security", - "document-privileges", + "pdf", + "security", + "privileges", "printing", - "copy-protection", - "aspose-pdf" + "copy-protection" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSecurity", "Aspose.Pdf.Facades.PdfFileSecurity.SetPrivilege", - "Aspose.Pdf.Facades.PdfFileSecurity.Save", "Aspose.Pdf.Facades.DocumentPrivilege" ], "difficulty": "beginner" }, { - "filename": "encrypt-decrypt-pdf-verify-integrity.cs", - "title": "Encrypt and Decrypt PDF to Verify Integrity", - "description": "Demonstrates encrypting a PDF with user and owner passwords using Aspose.Pdf.Facades.PdfFileSecurity, then decrypting it and performing a simple round‑trip integrity check.", + "filename": "encrypt-decrypt-pdf-roundtrip.cs", + "title": "Encrypt and Decrypt PDF with Round‑Trip Verification", + "description": "Demonstrates how to encrypt a PDF using a user and owner password, decrypt it back, and verify integrity by comparing page counts.", "tags": [ - "pdf", "encryption", "decryption", - "integrity", - "aspose-pdf" + "pdf", + "security", + "verification" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSecurity", + "Aspose.Pdf.Facades.PdfFileSecurity.BindPdf", "Aspose.Pdf.Facades.PdfFileSecurity.EncryptFile", "Aspose.Pdf.Facades.PdfFileSecurity.DecryptFile", - "Aspose.Pdf.DocumentPrivilege", - "Aspose.Pdf.KeySize" + "Aspose.Pdf.Document" ], "difficulty": "intermediate" }, + { + "filename": "encrypt-decrypt-pdf-verify-integrity.cs", + "title": "Encrypt Decrypt Pdf Verify Integrity", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "encrypt-pdf-256-aes.cs", - "title": "Encrypt PDF with 256‑bit AES and passwords", - "description": "Shows how to encrypt an existing PDF using 256‑bit AES, set user and owner passwords, allow printing, and save the protected document.", + "title": "Encrypt PDF with 256‑bit AES using Aspose.Pdf", + "description": "Shows how to encrypt a PDF with 256‑bit AES, set user and owner passwords, and apply a print privilege using Aspose.Pdf.Facades.", "tags": [ - "pdf", - "encryption", + "pdf encryption", "aes-256", - "aspose", - "csharp" + "aspose.pdf", + "pdf security", + "c#" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSecurity", "Aspose.Pdf.Facades.PdfFileSecurity.EncryptFile", - "Aspose.Pdf.Facades.DocumentPrivilege", - "Aspose.Pdf.Facades.KeySize", - "Aspose.Pdf.Facades.Algorithm" + "Aspose.Pdf.DocumentPrivilege", + "Aspose.Pdf.Facades.KeySize" ], "difficulty": "beginner" }, { "filename": "encrypt-pdf-aes256-custom-privileges.cs", "title": "Encrypt PDF with AES‑256 and Custom Privileges", - "description": "Demonstrates how to encrypt a PDF using AES‑256 while applying a custom set of document privileges (allow printing, forbid copying and modifications) in a single operation.", + "description": "Demonstrates encrypting a PDF using AES‑256 while applying custom document privileges such as allowing printing and copying but forbidding modifications.", "tags": [ - "pdf encryption", + "pdf-encryption", "aes-256", - "custom privileges", - "security", - "Aspose.Pdf" + "custom-privileges", + "aspose-pdf", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSecurity", @@ -26993,20 +32709,28 @@ }, { "filename": "encrypt-pdf-aes256-to-cloud.cs", - "title": "Encrypt PDF with AES‑256 and Write to Cloud Stream", - "description": "Shows how to use Aspose.Pdf to encrypt a PDF with AES‑256 and directly save the encrypted file to a cloud storage stream.", + "title": "Encrypt Pdf Aes256 To Cloud", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "encrypt-pdf-aes256-upload.cs", + "title": "Encrypt PDF with AES‑256 and Upload to Cloud Storage", + "description": "Shows how to encrypt a PDF using Aspose.Pdf.Facades with AES‑256 and then upload the encrypted stream to a cloud storage bucket.", "tags": [ - "pdf-encryption", + "pdf encryption", "aes-256", - "cloud-storage", - "aspose-pdf", - "csharp" + "cloud upload", + "aspose", + "c#" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSecurity", - "Aspose.Pdf.Facades.PdfFileSecurity.BindPdf", - "Aspose.Pdf.Facades.PdfFileSecurity.EncryptFile", - "Aspose.Pdf.Facades.PdfFileSecurity.Save", + "PdfFileSecurity.BindPdf", + "PdfFileSecurity.EncryptFile", + "PdfFileSecurity.Save", "Aspose.Pdf.DocumentPrivilege", "Aspose.Pdf.KeySize", "Aspose.Pdf.Algorithm" @@ -27015,135 +32739,171 @@ }, { "filename": "encrypt-pdf-byte-array.cs", - "title": "Encrypt PDF Byte Array with Aspose.Pdf", - "description": "Demonstrates loading a PDF from a byte array, encrypting it with user and owner passwords using Aspose.Pdf.Facades.PdfFileSecurity, and returning the encrypted PDF as a byte array.", + "title": "Encrypt Pdf Byte Array", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "encrypt-pdf-from-byte-array.cs", + "title": "Encrypt PDF from Byte Array using Aspose.Pdf", + "description": "Shows how to load a PDF from a byte array, apply 256‑bit AES encryption with user and owner passwords, and return the encrypted PDF as a byte array.", "tags": [ "pdf", "encryption", - "aspose", "byte-array", + "aspose", "security" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileSecurity", - "Aspose.Pdf.Facades.PdfFileSecurity.BindPdf", - "Aspose.Pdf.Facades.PdfFileSecurity.EncryptFile", - "Aspose.Pdf.Facades.PdfFileSecurity.Save", "Aspose.Pdf.DocumentPrivilege", - "Aspose.Pdf.KeySize" + "Aspose.Pdf.KeySize", + "Aspose.Pdf.Facades.PdfFileSecurity.EncryptFile", + "Aspose.Pdf.Facades.PdfFileSecurity.Save" ], "difficulty": "intermediate" }, { "filename": "encrypt-pdf-rc4-128-allow-print-edit.cs", - "title": "Encrypt PDF with RC4‑128 and Allow Print/Edit Permissions", - "description": "Demonstrates how to create a PDF, combine privilege settings to allow printing and content modification, and then encrypt the document using RC4‑128 with Aspose.Pdf.", + "title": "Encrypt Pdf Rc4 128 Allow Print Edit", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "encrypt-pdf-rc4-128-print-edit-privileges.cs", + "title": "Encrypt PDF with RC4‑128 and Enable Print/Edit Privileges", + "description": "Demonstrates how to combine print and edit privileges, then encrypt a PDF using RC4‑128 with Aspose.Pdf.Facades. The example also creates a placeholder PDF if the source file is missing.", "tags": [ - "encryption", + "pdf-encryption", "rc4", - "permissions", - "pdf", - "aspose" + "privileges", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.DocumentPrivilege", + "Aspose.Pdf.Facades.DocumentPrivilege", "Aspose.Pdf.Facades.PdfFileSecurity", "Aspose.Pdf.Facades.PdfFileSecurity.BindPdf", - "Aspose.Pdf.Facades.PdfFileSecurity.EncryptFile" + "Aspose.Pdf.Facades.PdfFileSecurity.EncryptFile", + "Aspose.Pdf.Facades.PdfFileSecurity.Save" ], "difficulty": "intermediate" }, { "filename": "encrypt-pdf-rc4-40.cs", - "title": "Encrypt PDF with RC4‑40 using Aspose.Pdf", - "description": "Shows how to encrypt a PDF file with the RC4‑40 algorithm and a user password using Aspose.Pdf's PdfFileSecurity facade.", + "title": "Encrypt PDF with RC4‑40 and Password", + "description": "Shows how to encrypt an existing PDF using the RC4‑40 algorithm with user and owner passwords and set printing privileges via Aspose.Pdf.Facades.", "tags": [ - "pdf encryption", + "pdf", + "encryption", "rc4", - "aspose.pdf", - "c#", - "security" + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSecurity", "Aspose.Pdf.Facades.PdfFileSecurity.EncryptFile", - "Aspose.Pdf.Facades.DocumentPrivilege", - "Aspose.Pdf.Facades.KeySize" + "Aspose.Pdf.DocumentPrivilege", + "Aspose.Pdf.Facades.KeySize", + "Aspose.Pdf.Facades.Algorithm" ], "difficulty": "beginner" }, { "filename": "encrypt-pdf-stream-rc4-40.cs", "title": "Encrypt PDF Stream with RC4‑40 using Aspose.Pdf", - "description": "Demonstrates how to load a PDF from a stream, apply RC4‑40 encryption with user/owner passwords, and return the encrypted PDF as a new stream using Aspose.Pdf.", + "description": "Shows how to encrypt a PDF supplied as a stream with 40‑bit RC4 encryption using Aspose.Pdf's PdfFileSecurity facade and return the encrypted PDF in a MemoryStream.", "tags": [ - "pdf", - "encryption", + "pdf encryption", "rc4", "stream", - "aspnet" + "aspose", + "c#" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfFileSecurity", + "Aspose.Pdf.Facades.PdfFileSecurity.BindPdf", + "Aspose.Pdf.Facades.PdfFileSecurity.EncryptFile", + "Aspose.Pdf.Facades.PdfFileSecurity.Save", + "Aspose.Pdf.DocumentPrivilege", + "Aspose.Pdf.KeySize", + "Aspose.Pdf.Algorithm" ], "difficulty": "beginner" }, { "filename": "encrypt-pdf-to-memory-stream.cs", "title": "Encrypt PDF and Save to MemoryStream", - "description": "Demonstrates loading a PDF with Aspose.Pdf, applying AES‑128 encryption with user/owner passwords and specific permissions, and writing the encrypted document to a MemoryStream for network transmission.", + "description": "Demonstrates loading a PDF with Aspose.Pdf, applying AES‑256 encryption with user/owner passwords and specific permissions, and writing the encrypted document to a MemoryStream for network transmission.", "tags": [ "pdf", "encryption", - "memory-stream", + "memorystream", "permissions", - "Aspose.Pdf" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Encrypt", "Aspose.Pdf.Permissions", "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Document.Encrypt", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "encrypt-pdf-with-exception-handling.cs", - "title": "Encrypt PDF with Detailed Exception Handling", - "description": "Demonstrates how to enable AllowExceptions on PdfFileSecurity, attempt PDF encryption with TryEncryptFile, and retrieve detailed error information via LastException.", + "title": "Encrypt Pdf With Exception Handling", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "encrypt-pdf-with-password-and-capture-exceptions.cs", + "title": "Encrypt PDF with Password and Capture Exceptions", + "description": "Demonstrates encrypting a PDF using PdfFileSecurity, enabling AllowExceptions to suppress throws, and logging detailed exception information via LastException.", "tags": [ - "pdf-encryption", - "exception-handling", - "aspose-pdf", - "facade", - "security" + "pdf encryption", + "exception handling", + "Aspose.Pdf", + "password protection", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSecurity", - "Aspose.Pdf.Facades.PdfFileSecurity.AllowExceptions", - "Aspose.Pdf.Facades.PdfFileSecurity.TryEncryptFile", - "Aspose.Pdf.Facades.PdfFileSecurity.LastException", - "Aspose.Pdf.DocumentPrivilege", - "Aspose.Pdf.KeySize" + "PdfFileSecurity.AllowExceptions", + "PdfFileSecurity.BindPdf", + "PdfFileSecurity.EncryptFile", + "PdfFileSecurity.Save", + "PdfFileSecurity.LastException" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "encrypt-pdf-with-user-password-only.cs", + "title": "Encrypt Pdf With User Password Only", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "encrypt-pdf-with-user-password.cs", "title": "Encrypt PDF with User Password Only", - "description": "Shows how to encrypt a PDF using Aspose.Pdf.Facades by providing only a user password (owner password left undefined) and applying 256‑bit encryption with selected privileges.", + "description": "Shows how to encrypt a PDF using Aspose.Pdf.Facades by providing only a user password (owner password left undefined) and applying 256‑bit AES encryption with print permission.", "tags": [ "pdf encryption", "user password", "Aspose.Pdf", - "facade", - "256-bit" + "AES-256", + "document privilege" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSecurity", @@ -27155,34 +32915,22 @@ }, { "filename": "encrypt-pdfs-by-filename-algorithm.cs", - "title": "Encrypt PDFs Using Naming Convention to Select Algorithm", - "description": "The example scans a folder of PDF files, determines the encryption algorithm and key size from each file's name, and encrypts the documents with the chosen settings using Aspose.Pdf.Facades.", - "tags": [ - "encryption", - "pdf", - "algorithm", - "Aspose.Pdf", - "facade" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfFileSecurity", - "Aspose.Pdf.Facades.PdfFileSecurity.EncryptFile", - "Aspose.Pdf.Facades.DocumentPrivilege", - "Aspose.Pdf.Facades.Algorithm", - "Aspose.Pdf.Facades.KeySize" - ], - "difficulty": "intermediate" + "title": "Encrypt Pdfs By Filename Algorithm", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "encrypt-pdfs-with-performance-timing.cs", "title": "Encrypt PDFs with Performance Timing", - "description": "Demonstrates how to encrypt multiple PDF files using Aspose.Pdf's PdfFileSecurity facade while measuring and logging the time taken for each encryption operation.", + "description": "Shows how to encrypt PDF files using Aspose.Pdf's PdfFileSecurity facade while measuring the time taken for each encryption operation.", "tags": [ - "pdf", - "encryption", + "pdf-encryption", "performance", - "aspose", - "facade" + "aspose-pdf", + "facade", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSecurity", @@ -27196,92 +32944,108 @@ }, { "filename": "generate-encryption-usage-report.cs", - "title": "Generate Encryption Usage Report for PDFs", - "description": "Iterates over a collection of PDF files, uses Aspose.Pdf.Facades.PdfFileInfo to determine if each document is encrypted, and writes a text report showing the encryption status and algorithm information availability.", - "tags": [ - "pdf", - "encryption", - "report", - "facade", - "aspose" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.IsEncrypted" - ], - "difficulty": "beginner" + "title": "Generate Encryption Usage Report", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "generate-pdf-encryption-summary.cs", - "title": "Generate PDF Encryption Summary CSV", - "description": "Scans a folder of PDF files, detects each file’s encryption status, algorithm (if known), and document privileges, and writes the results to a CSV summary file.", + "title": "Generate Pdf Encryption Summary", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "load-pdf-verify-page-count-facade.cs", + "title": "Load PDF and Verify Page Count Using PdfFileInfo Facade", + "description": "Demonstrates loading a PDF file via the PdfFileInfo facade class and confirming successful loading by checking the document's page count.", "tags": [ "pdf", - "encryption", - "summary", - "facades", - "csv" + "load", + "facade", + "verification", + "pages" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.IsEncrypted", - "Aspose.Pdf.Facades.PdfFileInfo.GetDocumentPrivilege", - "Aspose.Pdf.DocumentPrivilege", - "Aspose.Pdf.Facades.PdfFileInfo.Dispose" + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.PageCollection.Count" ], "difficulty": "beginner" }, { "filename": "load-pdf-verify-page-count.cs", - "title": "Load PDF and Verify Page Count using PdfFileInfo", - "description": "Demonstrates loading a PDF file with the PdfFileInfo facade, retrieving the underlying Document object, and confirming successful loading by checking that the document contains at least one page.", + "title": "Load Pdf Verify Page Count", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "modify-pdf-privileges.cs", + "title": "Modify Pdf Privileges", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "pdf-decryption-failure-wrong-owner-password-test.cs", + "title": "Unit Test for PDF Decryption Failure with Incorrect Owner Password", + "description": "Demonstrates encrypting a PDF with Aspose.Pdf and writing an NUnit test that asserts DecryptFile throws InvalidPasswordException when an incorrect owner password is supplied.", "tags": [ "pdf", - "load", - "verification", - "facade", + "encryption", + "unit-test", + "nunit", "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.BindPdf", - "Aspose.Pdf.Facades.PdfFileInfo.Document", "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages" + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Facades.PdfFileSecurity", + "Aspose.Pdf.Facades.PdfFileSecurity.EncryptFile", + "Aspose.Pdf.Facades.PdfFileSecurity.DecryptFile", + "Aspose.Pdf.Facades.DocumentPrivilege", + "Aspose.Pdf.Facades.KeySize" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "modify-pdf-privileges.cs", - "title": "Modify PDF Privileges Using PdfFileSecurity", - "description": "Demonstrates how to change PDF security privileges (e.g., allow printing) with Aspose.Pdf's PdfFileSecurity facade. The example creates a PDF, binds it, sets a privilege, and saves the result.", + "filename": "pdf-encryption-summary.cs", + "title": "Generate PDF Encryption Summary with Privileges", + "description": "Demonstrates how to inspect PDF files for encryption status, algorithm (when detectable), and document privileges using Aspose.Pdf.Facades and Aspose.Pdf, then writes a summary report.", "tags": [ "pdf", - "security", + "encryption", "privileges", - "aspose", - "csharp" + "summary", + "aspose" ], "apis_used": [ + "Aspose.Pdf.Facades.PdfFileInfo", + "Aspose.Pdf.Facades.PdfFileInfo.IsEncrypted", + "Aspose.Pdf.Facades.PdfFileInfo.GetDocumentPrivilege", "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfFileSecurity", - "Aspose.Pdf.Facades.PdfFileSecurity.BindPdf", - "Aspose.Pdf.Facades.PdfFileSecurity.SetPrivilege", - "Aspose.Pdf.Facades.PdfFileSecurity.Save", - "Aspose.Pdf.DocumentPrivilege" + "Aspose.Pdf.InvalidPasswordException" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "remove-usage-rights-from-signed-pdf.cs", - "title": "Remove Usage Rights from Signed PDF", - "description": "Demonstrates how to bind a signed PDF, check for embedded usage rights, remove them, and save the resulting document using Aspose.Pdf.", + "filename": "remove-extended-usage-rights-from-signed-pdf.cs", + "title": "Remove Extended Usage Rights from Signed PDF", + "description": "Shows how to load a signed PDF, detect extended usage rights, remove them with PdfFileSignature, and save the updated document.", "tags": [ "pdf", "usage-rights", "signature", "remove", - "Aspose.Pdf" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSignature", @@ -27292,62 +33056,111 @@ ], "difficulty": "beginner" }, + { + "filename": "remove-usage-rights-from-signed-pdf.cs", + "title": "Remove Usage Rights From Signed Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "remove-usage-rights-verify.cs", "title": "Remove Usage Rights and Verify Removal from PDF", - "description": "Demonstrates how to load a PDF, remove its usage rights using the PdfFileSignature facade, verify the removal with ContainsUsageRights, and save the updated document.", + "description": "Demonstrates how to remove usage rights from a PDF using Aspose.Pdf and then confirm the removal by calling ContainsUsageRights. The resulting PDF is saved without any usage rights.", "tags": [ - "usage-rights", - "pdf", - "facade", + "usage rights", + "pdf security", + "remove", "verification", - "Aspose" + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileSignature", - "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", - "Aspose.Pdf.Facades.PdfFileSignature.RemoveUsageRights", - "Aspose.Pdf.Facades.PdfFileSignature.ContainsUsageRights", - "Aspose.Pdf.Facades.PdfFileSignature.Save", - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Document.Save" + "PdfFileSignature", + "PdfFileSignature.BindPdf", + "PdfFileSignature.RemoveUsageRights", + "PdfFileSignature.ContainsUsageRights", + "PdfFileSignature.Save" ], "difficulty": "beginner" }, { - "filename": "retrieve-pdf-encryption-algorithm.cs", - "title": "Retrieve PDF Encryption Algorithm", - "description": "Loads a PDF with Aspose.Pdf, reads the CryptoAlgorithm property, and displays the encryption algorithm or indicates the document is not encrypted.", + "filename": "report-pdf-encryption-algorithms.cs", + "title": "Report PDF Encryption Algorithms Using Aspose.Pdf Facade", + "description": "Scans a directory of PDF files, determines whether each file is encrypted, and outputs the encryption algorithm used by leveraging Aspose.Pdf.Facades.", "tags": [ "pdf", "encryption", - "cryptoalgorithm", - "aspose-pdf", - "csharp" + "report", + "aspose", + "facade" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfFileInfo", + "Aspose.Pdf.Facades.PdfFileInfo.IsEncrypted", + "Aspose.Pdf.Facades.PdfFileInfo.GetDocumentPrivilege", + "Aspose.Pdf.Facades.DocumentPrivilege", + "Aspose.Pdf.Facades.DocumentPrivilege.CryptoAlgorithm" + ], + "difficulty": "intermediate" + }, + { + "filename": "retrieve-pdf-encryption-algorithm.cs", + "title": "Retrieve PDF Encryption Algorithm with Aspose.Pdf Facades", + "description": "Shows how to check if a PDF is encrypted and obtain the encryption algorithm using Aspose.Pdf's Facades API, creating a sample PDF if none exists.", + "tags": [ + "encryption", + "pdf", + "facades", + "metadata", + "aspose-pdf" ], "apis_used": [ + "Aspose.Pdf.Facades.PdfFileInfo", + "Aspose.Pdf.Facades.PdfFileInfo.IsEncrypted", + "Aspose.Pdf.Facades.PdfFileInfo.Document", "Aspose.Pdf.Document", "Aspose.Pdf.Document.CryptoAlgorithm", - "Aspose.Pdf.CryptoAlgorithm" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Text.TextFragment" + ], + "difficulty": "beginner" + }, + { + "filename": "set-pdf-privilege-allow-exceptions-false.cs", + "title": "Modify PDF Privilege with Exception Propagation", + "description": "Shows how to change a PDF document's privilege using Aspose.Pdf.Facades.PdfFileSecurity while disabling internal exception handling so that runtime exceptions are thrown.", + "tags": [ + "pdf", + "privilege", + "exception", + "Aspose.Pdf", + "facade" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfFileSecurity", + "Aspose.Pdf.Facades.PdfFileSecurity.AllowExceptions", + "Aspose.Pdf.Facades.PdfFileSecurity.SetPrivilege", + "Aspose.Pdf.Facades.DocumentPrivilege", + "Aspose.Pdf.PdfException" ], "difficulty": "beginner" }, { "filename": "set-pdf-privileges-allow-form-filling-disable-assembly.cs", - "title": "Allow Form Filling and Disable Assembly in PDF", - "description": "The example demonstrates how to apply document privileges to a PDF using Aspose.Pdf.Facades, enabling form filling while disabling document assembly.", + "title": "Set PDF Privileges: Allow Form Filling, Disable Assembly", + "description": "Shows how to configure PDF security privileges to permit form filling while disabling document assembly using Aspose.Pdf.Facades.", "tags": [ "pdf", + "security", "privileges", "form-filling", - "assembly", - "security" + "assembly" ], "apis_used": [ + "Aspose.Pdf.Facades.DocumentPrivilege", "Aspose.Pdf.Facades.PdfFileSecurity", "Aspose.Pdf.Facades.PdfFileSecurity.SetPrivilege", - "Aspose.Pdf.Facades.DocumentPrivilege", "Aspose.Pdf.Facades.DocumentPrivilege.AllowAll", "Aspose.Pdf.Facades.DocumentPrivilege.AllowAssembly", "Aspose.Pdf.Facades.DocumentPrivilege.AllowFillIn" @@ -27357,7 +33170,7 @@ { "filename": "set-pdf-privileges-allow-printing-only.cs", "title": "Set PDF Privileges to Allow Printing Only", - "description": "Shows how to use Aspose.Pdf.Facades.PdfFileSecurity to enable printing while disabling copying, then save the secured PDF.", + "description": "Shows how to use Aspose.Pdf.Facades to enable printing while disabling copying for a PDF and then save the secured document.", "tags": [ "pdf", "security", @@ -27375,102 +33188,143 @@ }, { "filename": "update-owner-password-pdf.cs", - "title": "Update Owner Password of Encrypted PDF", - "description": "Shows how to change the owner password of a protected PDF while keeping the existing user password and permissions unchanged using Aspose.Pdf.Facades.", + "title": "Update Owner Password of a Protected PDF", + "description": "Shows how to change the owner password of an encrypted PDF without altering the user password or existing privileges using Aspose.Pdf.Facades.", "tags": [ "pdf", "owner-password", "encryption", - "security", - "aspose" + "aspose", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSecurity", - "Aspose.Pdf.Facades.PdfFileSecurity.ChangePassword" + "Aspose.Pdf.Facades.PdfFileSecurity.BindPdf", + "Aspose.Pdf.Facades.PdfFileSecurity.ChangePassword", + "Aspose.Pdf.Facades.PdfFileSecurity.Save" ], "difficulty": "beginner" }, { - "filename": "validate-pdf-encryption-before-decryption.cs", - "title": "Validate PDF Encryption Before Decryption", - "description": "Demonstrates how to check if a PDF is encrypted using Aspose.Pdf.Facades and, if so, decrypt it with a password while avoiding unnecessary exceptions.", + "filename": "update-pdf-owner-password.cs", + "title": "Update PDF Owner Password While Preserving User Password", + "description": "Demonstrates how to change the owner password of multiple PDF files using Aspose.Pdf.Facades without affecting the existing user passwords, and saves the secured PDFs to new locations.", "tags": [ "pdf", - "encryption", - "decryption", - "validation", - "facade" + "owner-password", + "security", + "aspose", + "csharp" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.IsEncrypted", "Aspose.Pdf.Facades.PdfFileSecurity", "Aspose.Pdf.Facades.PdfFileSecurity.BindPdf", - "Aspose.Pdf.Facades.PdfFileSecurity.TryDecryptFile", + "Aspose.Pdf.Facades.PdfFileSecurity.ChangePassword", "Aspose.Pdf.Facades.PdfFileSecurity.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "verify-decryption-fails-incorrect-owner-password.cs", - "title": "Verify Decryption Fails with Incorrect Owner Password", - "description": "Creates a PDF, encrypts it with a known owner password, then attempts decryption using a wrong owner password and checks that the operation fails.", + "filename": "validate-pdf-encryption-and-decrypt.cs", + "title": "Validate PDF Encryption and Decrypt with Aspose.Pdf", + "description": "Shows how to check whether a PDF is encrypted using PdfFileInfo and, if it is, decrypt it with PdfFileSecurity while handling missing files and copying unencrypted PDFs.", "tags": [ + "pdf", "encryption", "decryption", - "owner-password", - "pdf-security", - "unit-test" + "validation", + "aspose" ], "apis_used": [ - "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfFileInfo", "Aspose.Pdf.Facades.PdfFileSecurity", - "Aspose.Pdf.Facades.PdfFileSecurity.EncryptFile", "Aspose.Pdf.Facades.PdfFileSecurity.TryDecryptFile", - "Aspose.Pdf.DocumentPrivilege", - "Aspose.Pdf.KeySize" + "Aspose.Pdf.Facades.PdfFileSecurity.Save", + "Aspose.Pdf.Facades.PdfFileSecurity.Close" ], "difficulty": "intermediate" + }, + { + "filename": "validate-pdf-encryption-before-decryption.cs", + "title": "Validate Pdf Encryption Before Decryption", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "verify-decryption-fails-incorrect-owner-password.cs", + "title": "Verify Decryption Fails Incorrect Owner Password", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" } ] }, { "name": "facades-sign-documents", - "file_count": 35, + "file_count": 61, "files": [ + "add-digital-signature-to-pdf-page.cs", "add-locale-specific-visible-signatures.cs", "add-multiple-digital-signatures-to-pdf.cs", + "add-second-digital-signature-to-pdf-page-3.cs", + "add-signature-field-and-sign-pdf.cs", "apply-semi-transparent-signature-appearance.cs", "audit-pdf-signatures-reason-location.cs", + "configure-custom-signature-appearance.cs", "create-and-sign-pdf-signature-field.cs", "create-invisible-pdf-digital-signature.cs", + "custom-pdf-signature-appearance.cs", "custom-signature-appearance-hide-caption.cs", "digitally-sign-first-page-pdf.cs", "extract-certificate-details-from-pdf-signature.cs", + "extract-certificate-details-from-pdf-signatures.cs", + "extract-certificate-serial-number-from-pdf-signatures.cs", "extract-certificate-serial-number-from-pdf.cs", "extract-signature-image-png.cs", "extract-signature-images-html-report.cs", "extract-signing-certificate-from-pdf.cs", "extract-the-signing-certificate-s-subject-distinguished-name-and-store-it-in-a-database.cs", + "extract-witness-signature-image.cs", "generate-pdf-signature-report.cs", + "hide-pdf-signature-appearance.cs", "list-pdf-signature-names.cs", + "list-signature-names-in-pdf.cs", + "list-signature-reasons-and-locations.cs", + "locale-specific-pdf-digital-signature.cs", + "log-pdf-signature-verification-to-json.cs", "remove-all-pdf-signatures.cs", + "remove-all-signatures-from-pdf.cs", "remove-all-signatures-from-pdfs-recursively.cs", + "remove-all-signatures-from-pdfs.cs", + "remove-and-replace-pdf-signature.cs", + "remove-pdf-signature-missing-handling.cs", "remove-pdf-signature-with-missing-field-handling.cs", "remove-signature-from-pdf.cs", "remove-signature-re-sign-pdf.cs", "retry-sign-pdf-when-file-locked.cs", "sign-and-verify-pdf-using-pdffilesignature.cs", "sign-pdf-french-appearance.cs", + "sign-pdf-french-caption.cs", "sign-pdf-suppress-reason-location.cs", "sign-pdf-visible-signature-last-page.cs", "sign-pdf-with-custom-appearance.cs", "sign-pdf-with-pfx-certificate.cs", "sign-pdf-with-reason-and-location.cs", + "sign-pdf-with-retry-on-file-lock.cs", + "sign-pdf-with-semi-transparent-appearance.cs", + "sign-pdf-with-visible-image-signature.cs", "sign-pdf-with-visible-image.cs", + "suppress-reason-location-when-signing-pdf.cs", + "validate-manager-signature.cs", "validate-pdf-signature-field.cs", + "verify-absence-of-pdf-signature.cs", + "verify-multiple-pdf-signatures.cs", "verify-multiple-signatures-pdf.cs", "verify-pdf-no-signatures-false.cs", + "verify-pdf-signature-by-name.cs", "verify-pdf-signatures-to-json.cs", "verify-specific-pdf-signature.cs" ], @@ -27478,209 +33332,212 @@ "Aspose.Pdf.Facades", "Aspose.Pdf", "Aspose.Pdf.Forms", - "Aspose.Pdf.Drawing", "Aspose.Pdf.Text" ], "key_apis": [ "CultureInfo", + "FormEditor", + "StringBuilder", "TextFragment" ], "examples": [ { - "filename": "add-locale-specific-visible-signatures.cs", - "title": "Add Locale‑Specific Visible Signatures to PDF", - "description": "Signs a PDF on multiple pages with visible signatures, each using a different culture (German, Spanish, Japanese) by configuring SignatureCustomAppearance.Culture.", + "filename": "add-digital-signature-to-pdf-page.cs", + "title": "Add Digital Signature to First PDF Page", + "description": "Demonstrates how to bind a PDF, set a certificate, and apply a visible digital signature to page one using Aspose.Pdf's PdfFileSignature facade.", "tags": [ - "pdf-signature", - "locale", - "visible-signature", - "culture", - "aspose-pdf" + "digital-signature", + "pdf", + "Aspose.Pdf", + "certificate", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSignature", "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", + "Aspose.Pdf.Facades.PdfFileSignature.SetCertificate", "Aspose.Pdf.Facades.PdfFileSignature.Sign", - "Aspose.Pdf.Facades.PKCS7", - "Aspose.Pdf.Forms.SignatureCustomAppearance" + "Aspose.Pdf.Facades.PdfFileSignature.Save" ], "difficulty": "intermediate" }, + { + "filename": "add-locale-specific-visible-signatures.cs", + "title": "Add Locale Specific Visible Signatures", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "add-multiple-digital-signatures-to-pdf.cs", - "title": "Add Multiple Digital Signatures to PDF", - "description": "Demonstrates how to apply two digital signatures on different pages and rectangle areas of a PDF using Aspose.Pdf.Facades.", + "title": "Add Multiple Digital Signatures To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-second-digital-signature-to-pdf-page-3.cs", + "title": "Add Second Digital Signature to PDF Page 3", + "description": "Demonstrates adding a second visible digital signature on page three of an existing PDF using Aspose.Pdf.Facades.PdfFileSignature with a custom rectangle and certificate.", "tags": [ "digital-signature", "pdf", - "aspose", - "multiple-signatures", - "csharp" + "aspose-pdf", + "signature-appearance", + "page-3" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSignature", "PdfFileSignature.BindPdf", "PdfFileSignature.SetCertificate", - "PdfFileSignature.SignatureAppearance", "PdfFileSignature.Sign", - "PdfFileSignature.Save", - "PdfFileSignature.Close" + "PdfFileSignature.Save" ], "difficulty": "intermediate" }, { - "filename": "apply-semi-transparent-signature-appearance.cs", - "title": "Apply Semi-Transparent Signature Appearance to PDF", - "description": "Demonstrates how to sign a PDF using Aspose.Pdf.Facades with a semi‑transparent PNG image as the visual signature appearance, improving document readability.", + "filename": "add-signature-field-and-sign-pdf.cs", + "title": "Create Signature Field and Sign PDF Document", + "description": "Demonstrates how to add an empty digital signature field to a specific page of a PDF using Aspose.Pdf, then sign the document with a self‑signed certificate.", "tags": [ - "pdf-signature", - "signature-appearance", - "transparent", - "aspose-pdf", - "facades" + "signature", + "pdf", + "digital-signature", + "form-field", + "aspose-pdf" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.FormEditor.AddField", "Aspose.Pdf.Facades.PdfFileSignature", "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", "Aspose.Pdf.Facades.PdfFileSignature.SetCertificate", - "Aspose.Pdf.Facades.PdfFileSignature.SignatureAppearance", - "Aspose.Pdf.Facades.PdfFileSignature.Sign", - "Aspose.Pdf.Facades.PdfFileSignature.Save", - "Aspose.Pdf.Facades.PdfFileSignature.Close" + "Aspose.Pdf.Facades.PdfFileSignature.Sign" ], "difficulty": "intermediate" }, + { + "filename": "apply-semi-transparent-signature-appearance.cs", + "title": "Apply Semi Transparent Signature Appearance", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "audit-pdf-signatures-reason-location.cs", - "title": "Audit PDF Signatures: List Reason and Location", - "description": "Shows how to use Aspose.Pdf.Facades to read digital signatures from a PDF and retrieve each signature's reason and location for auditing purposes.", - "tags": [ - "pdf", - "signature", - "audit", - "aspose", - "facade" - ], - "apis_used": [ - "PdfFileSignature", - "SignatureName", - "PdfFileSignature.BindPdf", - "PdfFileSignature.GetSignatureNames", - "PdfFileSignature.GetReason", - "PdfFileSignature.GetLocation", - "PdfFileSignature.Close" - ], - "difficulty": "beginner" + "title": "Audit Pdf Signatures Reason Location", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "create-and-sign-pdf-signature-field.cs", - "title": "Create and Sign a PDF Signature Field on a Specific Page", - "description": "Shows how to add a digital signature field to a chosen page of a PDF and then sign it using a certificate with Aspose.Pdf.", + "filename": "configure-custom-signature-appearance.cs", + "title": "Configure Custom Signature Appearance with Background Color and Foreground Image", + "description": "Demonstrates how to set a custom signature appearance by adding a foreground image and a background color before signing a PDF document using Aspose.Pdf.", "tags": [ - "signature", - "pdf", - "digital-signature", - "facade", - "Aspose.Pdf" + "pdf-signature", + "custom-appearance", + "aspose-pdf", + "csharp", + "foreground-image" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.SignatureField", "Aspose.Pdf.Facades.PdfFileSignature", - "Aspose.Pdf.Facades.PdfFileSignature.SetCertificate", + "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", "Aspose.Pdf.Facades.PdfFileSignature.Sign", - "Aspose.Pdf.Facades.PdfFileSignature.Save", - "Aspose.Pdf.Facades.PKCS1" + "Aspose.Pdf.Facades.PKCS1", + "Aspose.Pdf.Facades.SignatureCustomAppearance" ], "difficulty": "intermediate" }, + { + "filename": "create-and-sign-pdf-signature-field.cs", + "title": "Create And Sign Pdf Signature Field", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "create-invisible-pdf-digital-signature.cs", - "title": "Create an Invisible Digital Signature for a PDF", - "description": "Demonstrates signing a PDF with a cryptographically valid digital signature while completely hiding the visual appearance using Aspose.Pdf facades.", - "tags": [ - "pdf", - "digital-signature", - "invisible", - "aspose", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfFileSignature", - "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", - "Aspose.Pdf.Facades.PdfFileSignature.Sign", - "Aspose.Pdf.Facades.PdfFileSignature.Save", - "Aspose.Pdf.Forms.PKCS1" - ], - "difficulty": "beginner" + "title": "Create Invisible Pdf Digital Signature", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "custom-signature-appearance-hide-caption.cs", - "title": "Create Custom Signature Appearance Without 'Digitally signed by' Caption", - "description": "Demonstrates how to sign a PDF with Aspose.Pdf and hide the default \"Digitally signed by\" label by disabling signature properties or providing a custom appearance.", + "filename": "custom-pdf-signature-appearance.cs", + "title": "Create Custom PDF Signature Appearance Without Caption", + "description": "Demonstrates signing a PDF with Aspose.Pdf using a PKCS#1 signature and a custom appearance that hides the default 'Digitally signed by' label and other fields.", "tags": [ "pdf-signature", "custom-appearance", "aspose-pdf", - "digital-signature", - "csharp" + "csharp", + "digital-signature" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSignature", - "Aspose.Pdf.Facades.PKCS1", "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", "Aspose.Pdf.Facades.PdfFileSignature.Sign", - "Aspose.Pdf.Facades.PdfFileSignature.Save" + "Aspose.Pdf.Facades.PdfFileSignature.Save", + "Aspose.Pdf.Forms.PKCS1", + "Aspose.Pdf.Forms.SignatureCustomAppearance" ], "difficulty": "intermediate" }, + { + "filename": "custom-signature-appearance-hide-caption.cs", + "title": "Custom Signature Appearance Hide Caption", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "digitally-sign-first-page-pdf.cs", - "title": "Digitally Sign First Page of PDF", - "description": "Shows how to bind a PDF using PdfFileSignature, configure a certificate, add a visible digital signature to page 1, and save the signed document.", - "tags": [ - "digital-signature", - "pdf", - "Aspose.Pdf", - "signing", - "facade" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfFileSignature", - "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", - "Aspose.Pdf.Facades.PdfFileSignature.SetCertificate", - "Aspose.Pdf.Facades.PdfFileSignature.Sign", - "Aspose.Pdf.Facades.PdfFileSignature.Save" - ], - "difficulty": "intermediate" + "title": "Digitally Sign First Page Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "extract-certificate-details-from-pdf-signature.cs", - "title": "Extract Certificate Details from PDF Signature Field", - "description": "Demonstrates how to load a signed PDF, enumerate its signature fields, and extract the X.509 certificate to read issuer and expiration information.", + "title": "Extract Certificate Details From Pdf Signature", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-certificate-details-from-pdf-signatures.cs", + "title": "Extract Certificate Details from PDF Signatures", + "description": "Demonstrates how to load a signed PDF, enumerate its digital signatures, and retrieve the X.509 certificate information such as issuer and expiration date for each signature.", "tags": [ "pdf", "signature", "certificate", - "extraction", - "aspose" + "aspose", + "extraction" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSignature", "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", "Aspose.Pdf.Facades.PdfFileSignature.GetSignatureNames", - "Aspose.Pdf.Facades.PdfFileSignature.TryExtractCertificate", - "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Facades.PdfFileSignature.TryExtractCertificate" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "extract-certificate-serial-number-from-pdf.cs", - "title": "Extract and Log Certificate Serial Number from PDF Signature", - "description": "The example opens a signed PDF, verifies the presence of digital signatures, extracts each signature's X.509 certificate, and logs the certificate's serial number for audit purposes.", + "filename": "extract-certificate-serial-number-from-pdf-signatures.cs", + "title": "Extract Certificate Serial Number from PDF Signatures", + "description": "Demonstrates how to open a signed PDF, enumerate its digital signatures, extract the associated X.509 certificate, and log the certificate's serial number for audit purposes.", "tags": [ "pdf", "signature", @@ -27689,42 +33546,41 @@ "audit" ], "apis_used": [ - "PdfFileSignature", + "Aspose.Pdf.Facades.PdfFileSignature", "PdfFileSignature.BindPdf", "PdfFileSignature.ContainsSignature", "PdfFileSignature.GetSignatureNames", - "PdfFileSignature.TryExtractCertificate" + "PdfFileSignature.TryExtractCertificate", + "Aspose.Pdf.Facades.SignatureName" ], "difficulty": "intermediate" }, + { + "filename": "extract-certificate-serial-number-from-pdf.cs", + "title": "Extract Certificate Serial Number From Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "extract-signature-image-png.cs", - "title": "Extract Signature Image and Save as PNG", - "description": "Shows how to extract the image of a PDF signature field named \"WitnessSignature\" using Aspose.Pdf.Facades and convert it to a PNG file.", - "tags": [ - "signature", - "image-extraction", - "pdf", - "png", - "aspose" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfFileSignature", - "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", - "Aspose.Pdf.Facades.PdfFileSignature.ExtractImage" - ], - "difficulty": "beginner" + "title": "Extract Signature Image Png", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "extract-signature-images-html-report.cs", - "title": "Extract Signature Images and Generate HTML Report", - "description": "Demonstrates extracting digital signature images from a PDF with Aspose.Pdf.Facades and embedding them as Base64 data URIs in an HTML report for visual inspection.", + "title": "Extract Signature Images to HTML Report", + "description": "Demonstrates how to retrieve signature images from a signed PDF using Aspose.Pdf.Facades and embed them as Base64‑encoded images in an HTML report.", "tags": [ "signature", - "image-extraction", - "html-report", "pdf", - "aspose-pdf" + "image", + "html", + "extraction" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSignature", @@ -27738,7 +33594,7 @@ { "filename": "extract-signing-certificate-from-pdf.cs", "title": "Extract Signing Certificate from PDF Signature Field", - "description": "Shows how to retrieve the X.509 signing certificate from a specific signature field in a PDF and save it as a .cer file using Aspose.Pdf.", + "description": "Shows how to bind a PDF, extract the X.509 signing certificate from a specific signature field, and save it as a .cer file using Aspose.Pdf.", "tags": [ "pdf", "signature", @@ -27761,33 +33617,81 @@ "apis_used": [], "difficulty": "" }, + { + "filename": "extract-witness-signature-image.cs", + "title": "Extract Witness Signature Image from PDF", + "description": "Demonstrates how to locate a signature field named 'WitnessSignature' in a PDF, extract its image stream, and save it as a PNG file using Aspose.Pdf.", + "tags": [ + "pdf", + "signature", + "image-extraction", + "aspose", + "png" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfFileSignature", + "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", + "Aspose.Pdf.Facades.PdfFileSignature.ExtractImage", + "Aspose.Pdf.Facades.PdfFileSignature.Dispose", + "Aspose.Pdf.Facades.PdfFileSignature.Close" + ], + "difficulty": "beginner" + }, { "filename": "generate-pdf-signature-report.cs", "title": "Generate PDF Signature Verification Report", - "description": "Creates a PDF report that lists each digital signature in a signed document, showing signer, validity, reason, location, date, revision and coverage information.", + "description": "Creates a PDF document that enumerates all digital signatures in a source PDF, displaying signer, date, reason, location and whether each signature is valid.", "tags": [ "pdf", "signature", - "verification", "report", + "verification", "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSignature", + "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", "Aspose.Pdf.Facades.PdfFileSignature.GetSignatureNames", "Aspose.Pdf.Facades.PdfFileSignature.VerifySignature", "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Text.Position", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.FontRepository.FindFont" + ], + "difficulty": "intermediate" + }, + { + "filename": "hide-pdf-signature-appearance.cs", + "title": "Hide PDF Signature Appearance While Keeping It Valid", + "description": "Demonstrates signing a PDF with Aspose.Pdf and making the signature invisible by setting the visible flag to false, while preserving a cryptographically valid signature.", + "tags": [ + "pdf", + "digital-signature", + "invisible", + "aspose.pdf", + "facade" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfFileSignature", + "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", + "Aspose.Pdf.Facades.PdfFileSignature.SetCertificate", + "Aspose.Pdf.Facades.PdfFileSignature.Sign", + "Aspose.Pdf.Facades.PdfFileSignature.Save" ], "difficulty": "intermediate" }, { "filename": "list-pdf-signature-names.cs", + "title": "List Pdf Signature Names", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "list-signature-names-in-pdf.cs", "title": "List Signature Names in a PDF Document", - "description": "Shows how to use Aspose.Pdf.Facades to retrieve and display all non‑empty signature names contained in a PDF file.", + "description": "Demonstrates how to use Aspose.Pdf.Facades to open a PDF file and retrieve all non‑empty signature names, printing each to the console.", "tags": [ "pdf", "signature", @@ -27799,72 +33703,87 @@ "Aspose.Pdf.Facades.PdfFileSignature", "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", "Aspose.Pdf.Facades.PdfFileSignature.GetSignatureNames", + "Aspose.Pdf.Facades.PdfFileSignature.Close", "Aspose.Pdf.Facades.SignatureName" ], "difficulty": "beginner" }, { - "filename": "remove-all-pdf-signatures.cs", - "title": "Remove All Signatures from a PDF", - "description": "Shows how to use Aspose.Pdf.Facades to strip all digital signatures from a PDF document and save a clean copy.", + "filename": "list-signature-reasons-and-locations.cs", + "title": "List Signature Reasons and Locations in a PDF", + "description": "Shows how to bind a PDF with Aspose.Pdf.Facades, enumerate its digital signatures, and retrieve each signature's reason and location for auditing purposes.", "tags": [ "pdf", "signature", - "remove", + "audit", "aspose", "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileSignature", - "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", - "Aspose.Pdf.Facades.PdfFileSignature.RemoveSignatures", - "Aspose.Pdf.Facades.PdfFileSignature.Save" + "PdfFileSignature", + "PdfFileSignature.BindPdf", + "PdfFileSignature.GetSignatureNames", + "PdfFileSignature.GetReason", + "PdfFileSignature.GetLocation", + "SignatureName" ], "difficulty": "beginner" }, { - "filename": "remove-all-signatures-from-pdfs-recursively.cs", - "title": "Remove All Signatures from PDFs Recursively", - "description": "Demonstrates how to traverse a directory tree, load each PDF with Aspose.Pdf.Facades, remove all embedded signatures, and overwrite the original file.", + "filename": "locale-specific-pdf-digital-signature.cs", + "title": "Locale‑Specific PDF Digital Signature with Custom Appearance", + "description": "Demonstrates how to digitally sign a PDF using Aspose.Pdf with appearance text localized for German, Spanish, and Japanese languages.", "tags": [ "pdf", - "signature", - "remove", - "recursion", - "aspose" + "digital-signature", + "localization", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSignature", - "PdfFileSignature.BindPdf", - "PdfFileSignature.RemoveSignatures", - "PdfFileSignature.Save" + "Aspose.Pdf.Facades.PKCS7", + "Aspose.Pdf.Forms.SignatureCustomAppearance", + "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", + "Aspose.Pdf.Facades.PdfFileSignature.SetCertificate", + "Aspose.Pdf.Facades.PdfFileSignature.Sign", + "Aspose.Pdf.Facades.PdfFileSignature.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "remove-pdf-signature-with-missing-field-handling.cs", - "title": "Remove PDF Signature with Missing-Field Handling", - "description": "Demonstrates how to remove a named digital signature from a PDF using Aspose.Pdf.Facades, with graceful handling when the signature does not exist.", + "filename": "log-pdf-signature-verification-to-json.cs", + "title": "Log PDF Signature Verification Results to JSON", + "description": "Demonstrates how to verify each digital signature in a PDF using Aspose.Pdf.Facades and write the verification status to a formatted JSON file.", "tags": [ "pdf", "signature", - "remove", - "error-handling", + "verification", + "json", "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSignature", "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", "Aspose.Pdf.Facades.PdfFileSignature.GetSignatureNames", - "Aspose.Pdf.Facades.PdfFileSignature.RemoveSignature", - "Aspose.Pdf.Facades.PdfFileSignature.Save" + "Aspose.Pdf.Facades.PdfFileSignature.VerifySignature", + "Aspose.Pdf.Facades.PdfFileSignature.Close", + "Aspose.Pdf.Facades.SignatureName" ], "difficulty": "intermediate" }, { - "filename": "remove-signature-from-pdf.cs", - "title": "Remove Signature from PDF", - "description": "Demonstrates how to delete an existing digital signature named 'ApprovalSignature' from a PDF file using Aspose.Pdf's PdfFileSignature facade and save the result.", + "filename": "remove-all-pdf-signatures.cs", + "title": "Remove All Pdf Signatures", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "remove-all-signatures-from-pdf.cs", + "title": "Remove All Signatures from PDF", + "description": "Shows how to load a PDF, remove every digital signature using Aspose.Pdf.Facades, and save a clean copy.", "tags": [ "pdf", "signature", @@ -27874,47 +33793,54 @@ ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSignature", - "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", - "Aspose.Pdf.Facades.PdfFileSignature.RemoveSignature", - "Aspose.Pdf.Facades.PdfFileSignature.Save" + "PdfFileSignature.BindPdf", + "PdfFileSignature.RemoveSignatures", + "PdfFileSignature.Save" ], "difficulty": "beginner" }, { - "filename": "remove-signature-re-sign-pdf.cs", - "title": "Remove Existing Signature and Re‑sign PDF with New Certificate", - "description": "Demonstrates how to remove any existing digital signatures from a PDF and then apply a new signature using a different certificate with Aspose.Pdf.Facades.", + "filename": "remove-all-signatures-from-pdfs-recursively.cs", + "title": "Remove All Signatures From Pdfs Recursively", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "remove-all-signatures-from-pdfs.cs", + "title": "Remove All Signatures from PDFs Recursively", + "description": "Demonstrates how to traverse a directory tree, load each PDF with Aspose.Pdf.Facades, remove all digital signatures, and save a new copy without signatures.", "tags": [ "pdf", "signature", "remove", - "sign", - "certificate" + "recursion", + "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSignature", - "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", - "Aspose.Pdf.Facades.PdfFileSignature.RemoveSignatures", - "Aspose.Pdf.Facades.PdfFileSignature.SetCertificate", - "Aspose.Pdf.Facades.PdfFileSignature.Sign", - "Aspose.Pdf.Facades.PdfFileSignature.Save" + "PdfFileSignature.BindPdf", + "PdfFileSignature.RemoveSignatures", + "PdfFileSignature.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "retry-sign-pdf-when-file-locked.cs", - "title": "Retry Signing PDF When File Is Locked", - "description": "Demonstrates how to sign a PDF with Aspose.Pdf while handling file‑lock conflicts by implementing a retry loop with configurable attempts and delay.", + "filename": "remove-and-replace-pdf-signature.cs", + "title": "Remove Existing Signature and Apply New PDF Signature", + "description": "Shows how to delete all existing signatures from a PDF and then sign the document with a new certificate, optionally adding a visible signature appearance.", "tags": [ "pdf", - "signing", - "retry", - "file-lock", - "aspose" + "signature", + "remove", + "sign", + "aspose-pdf" ], "apis_used": [ "PdfFileSignature", "PdfFileSignature.BindPdf", + "PdfFileSignature.RemoveSignatures", "PdfFileSignature.SetCertificate", "PdfFileSignature.Sign", "PdfFileSignature.Save" @@ -27922,120 +33848,169 @@ "difficulty": "intermediate" }, { - "filename": "sign-and-verify-pdf-using-pdffilesignature.cs", - "title": "Sign and Verify PDF Using PdfFileSignature", - "description": "Demonstrates how to digitally sign a PDF with a PFX certificate using PdfFileSignature and then verify the signature's authenticity.", + "filename": "remove-pdf-signature-missing-handling.cs", + "title": "Remove PDF Signature with Missing Signature Handling", + "description": "Demonstrates how to delete a specific digital signature from a PDF using Aspose.Pdf.Facades and gracefully handle the case where the signature does not exist.", "tags": [ - "digital-signature", "pdf", - "verification", - "Aspose.Pdf", + "signature", + "remove", + "error-handling", "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSignature", - "PdfFileSignature.BindPdf", - "PdfFileSignature.SetCertificate", - "PdfFileSignature.Sign", - "PdfFileSignature.Save", - "PdfFileSignature.GetSignatureNames", - "PdfFileSignature.VerifySignature", - "PdfFileSignature.ContainsSignature" + "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", + "Aspose.Pdf.Facades.PdfFileSignature.GetSignatureNames", + "Aspose.Pdf.Facades.PdfFileSignature.RemoveSignature", + "Aspose.Pdf.Facades.PdfFileSignature.Save", + "Aspose.Pdf.Facades.PdfFileSignature.Close", + "Aspose.Pdf.Document" ], "difficulty": "intermediate" }, { - "filename": "sign-pdf-french-appearance.cs", - "title": "Sign PDF with French Signature Appearance", - "description": "Demonstrates digitally signing a PDF with a visible signature image and setting the signature's custom appearance locale to French using Aspose.Pdf.", + "filename": "remove-pdf-signature-with-missing-field-handling.cs", + "title": "Remove Pdf Signature With Missing Field Handling", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "remove-signature-from-pdf.cs", + "title": "Remove Existing Signature from PDF", + "description": "Shows how to delete a digital signature named \"ApprovalSignature\" from a PDF file using Aspose.Pdf's PdfFileSignature facade.", "tags": [ - "digital-signature", "pdf", - "custom-appearance", - "locale", - "Aspose.Pdf" + "signature", + "remove", + "aspose", + "csharp" ], "apis_used": [ - "PdfFileSignature", - "PdfFileSignature.BindPdf", - "PdfFileSignature.Sign", - "PKCS1", - "SignatureCustomAppearance", - "SignatureCustomAppearance.Culture" + "Aspose.Pdf.Facades.PdfFileSignature", + "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", + "Aspose.Pdf.Facades.PdfFileSignature.RemoveSignature", + "Aspose.Pdf.Facades.PdfFileSignature.Save", + "Aspose.Pdf.Facades.PdfFileSignature.Close" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "sign-pdf-suppress-reason-location.cs", - "title": "Sign PDF and Suppress Signature Reason and Location", - "description": "Demonstrates digitally signing a PDF with Aspose.Pdf.Facades while hiding the reason and location fields by assigning empty strings before signing.", + "filename": "remove-signature-re-sign-pdf.cs", + "title": "Remove Signature Re Sign Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "retry-sign-pdf-when-file-locked.cs", + "title": "Retry Sign Pdf When File Locked", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "sign-and-verify-pdf-using-pdffilesignature.cs", + "title": "Sign and Verify PDF Using PdfFileSignature", + "description": "Demonstrates how to sign a PDF with a self‑signed certificate using Aspose.Pdf.Facades.PdfFileSignature and then immediately verify the signature's validity.", "tags": [ "pdf", - "signature", + "digital-signature", + "verification", "aspose", - "csharp", - "suppress" + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSignature", - "Aspose.Pdf.Facades.PKCS1", - "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", - "Aspose.Pdf.Facades.PdfFileSignature.Sign", - "Aspose.Pdf.Facades.PdfFileSignature.Save" + "PdfFileSignature.BindPdf", + "PdfFileSignature.SetCertificate", + "PdfFileSignature.Sign", + "PdfFileSignature.Save", + "PdfFileSignature.GetSignatureNames", + "PdfFileSignature.VerifySignature" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "sign-pdf-visible-signature-last-page.cs", - "title": "Sign PDF with Visible Signature on Last Page", - "description": "Demonstrates how to digitally sign a PDF using a certificate and add a visible signature image positioned at the bottom‑right corner of the last page.", + "filename": "sign-pdf-french-appearance.cs", + "title": "Sign Pdf French Appearance", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "sign-pdf-french-caption.cs", + "title": "Sign PDF with French Caption Using SignatureCustomAppearance", + "description": "Demonstrates how to digitally sign a PDF with Aspose.Pdf and set the signature caption language to French by configuring the SignatureCustomAppearance locale.", "tags": [ - "pdf signing", - "visible signature", - "digital certificate", - "Aspose.Pdf", - "last page" + "digital-signature", + "pdf", + "french", + "signature-appearance", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSignature", + "Aspose.Pdf.Facades.PKCS1", + "Aspose.Pdf.Facades.SignatureCustomAppearance", "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", "Aspose.Pdf.Facades.PdfFileSignature.SetCertificate", "Aspose.Pdf.Facades.PdfFileSignature.Sign", - "Aspose.Pdf.Facades.PdfFileSignature.Save", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Page.PageInfo" + "Aspose.Pdf.Facades.PdfFileSignature.Save" ], "difficulty": "intermediate" }, { - "filename": "sign-pdf-with-custom-appearance.cs", - "title": "Sign PDF with Custom Appearance (Foreground Image & Background Color)", - "description": "Demonstrates how to digitally sign a PDF using Aspose.Pdf.Facades, configuring a custom signature appearance that includes a foreground image and a background color.", + "filename": "sign-pdf-suppress-reason-location.cs", + "title": "Sign Pdf Suppress Reason Location", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "sign-pdf-visible-signature-last-page.cs", + "title": "Sign PDF with Visible Signature on Last Page", + "description": "Shows how to apply a digital signature that is visible in the bottom‑right corner of the last page of a PDF using Aspose.Pdf and the PdfFileSignature facade.", "tags": [ "digital-signature", - "custom-appearance", + "visible-signature", "pdf", - "foreground-image", - "background-color" + "Aspose.Pdf", + "last-page" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.Facades.PdfFileSignature", - "Aspose.Pdf.Facades.PKCS1", - "Aspose.Pdf.Facades.SignatureCustomAppearance", - "Aspose.Pdf.Color", + "PdfFileSignature.BindPdf", + "PdfFileSignature.SetCertificate", "PdfFileSignature.Sign", "PdfFileSignature.Save" ], "difficulty": "intermediate" }, + { + "filename": "sign-pdf-with-custom-appearance.cs", + "title": "Sign Pdf With Custom Appearance", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "sign-pdf-with-pfx-certificate.cs", "title": "Sign PDF with PFX Certificate using Aspose.Pdf", - "description": "Demonstrates digitally signing a PDF with a password‑protected PFX certificate and optionally adding a visible signature appearance using Aspose.Pdf.", + "description": "Demonstrates how to digitally sign a PDF file using a password‑protected PFX certificate with Aspose.Pdf.Facades, including optional visual signature placement on a specific page.", "tags": [ - "pdf", - "digital-signature", - "pfx", + "pdf signing", + "pfx certificate", + "digital signature", "aspose.pdf", "c#" ], @@ -28050,41 +34025,38 @@ }, { "filename": "sign-pdf-with-reason-and-location.cs", - "title": "Sign PDF with Reason and Location", - "description": "Demonstrates digitally signing a PDF using a PFX certificate and setting the signature reason and location via Aspose.Pdf.", + "title": "Sign PDF with Reason and Location using Aspose.Pdf Facade", + "description": "Demonstrates how to digitally sign a PDF, setting the signature reason to \"Approved for release\" and location to \"New York\" with a visible signature using Aspose.Pdf.Facades.", "tags": [ - "digital-signature", "pdf", - "Aspose.Pdf", - "PKCS1", - "signature-reason" + "digital-signature", + "aspose-pdf", + "signature-reason", + "visible-signature" ], "apis_used": [ - "PdfFileSignature", - "PdfFileSignature.BindPdf", - "PKCS1", - "PKCS1.Reason", - "PKCS1.Location", - "PdfFileSignature.Sign", - "PdfFileSignature.Save" + "Aspose.Pdf.Facades.PdfFileSignature", + "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", + "Aspose.Pdf.Facades.PdfFileSignature.SetCertificate", + "Aspose.Pdf.Facades.PdfFileSignature.Sign", + "Aspose.Pdf.Facades.PdfFileSignature.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "sign-pdf-with-visible-image.cs", - "title": "Sign PDF with Visible Image Using Aspose.Pdf Facade", - "description": "Demonstrates how to apply a visible signature image to a PDF document using Aspose.Pdf.Facades.PdfFileSignature, optionally attaching a certificate and saving the signed file.", + "filename": "sign-pdf-with-retry-on-file-lock.cs", + "title": "Sign PDF with Retry on File Lock", + "description": "Demonstrates how to sign a PDF using Aspose.Pdf.Facades with a retry mechanism that handles file‑lock IOExceptions.", "tags": [ "pdf-signature", - "visible-signature", + "retry", + "file-lock", "aspose-pdf", - "command-line", "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSignature", "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", - "Aspose.Pdf.Facades.PdfFileSignature.SignatureAppearance", "Aspose.Pdf.Facades.PdfFileSignature.SetCertificate", "Aspose.Pdf.Facades.PdfFileSignature.Sign", "Aspose.Pdf.Facades.PdfFileSignature.Save" @@ -28092,163 +34064,286 @@ "difficulty": "intermediate" }, { - "filename": "validate-pdf-signature-field.cs", - "title": "Validate PDF Signature Field Using Aspose.Pdf", - "description": "Shows how to load a PDF, bind it to the PdfFileSignature facade, and verify the cryptographic integrity of a specific signature field (ManagerSignature).", + "filename": "sign-pdf-with-semi-transparent-appearance.cs", + "title": "Sign PDF with Semi‑Transparent Background Appearance", + "description": "Demonstrates how to digitally sign a PDF using a PKCS7 certificate and apply a custom signature appearance with a light, semi‑transparent background color for better readability.", + "tags": [ + "pdf-signature", + "custom-appearance", + "pkcs7", + "aspose-pdf", + "background-color" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfFileSignature", + "Aspose.Pdf.Facades.PdfFileSignature.Sign", + "Aspose.Pdf.Facades.PdfFileSignature.Save", + "Aspose.Pdf.Forms.PKCS7", + "Aspose.Pdf.Forms.SignatureCustomAppearance", + "Aspose.Pdf.Color" + ], + "difficulty": "intermediate" + }, + { + "filename": "sign-pdf-with-visible-image-signature.cs", + "title": "Sign PDF with Visible Image Signature", + "description": "Shows how to add a visible image signature to a PDF file using Aspose.Pdf.Facades.PdfFileSignature in a console application.", "tags": [ "pdf", "signature", - "verification", + "image", "aspose", - "facade" + "console" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileSignature", "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", - "Aspose.Pdf.Facades.PdfFileSignature.VerifySignature" + "Aspose.Pdf.Facades.PdfFileSignature.Sign", + "Aspose.Pdf.Facades.PdfFileSignature.Save", + "Aspose.Pdf.Facades.PdfFileSignature.SignatureAppearance" ], "difficulty": "beginner" }, { - "filename": "verify-multiple-signatures-pdf.cs", - "title": "Verify Multiple Signatures in a PDF", - "description": "Demonstrates loading a signed PDF, retrieving all signature names, and verifying each signature using Aspose.Pdf.Facades.", + "filename": "sign-pdf-with-visible-image.cs", + "title": "Sign Pdf With Visible Image", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "suppress-reason-location-when-signing-pdf.cs", + "title": "Suppress Reason and Location When Signing a PDF", + "description": "Demonstrates how to digitally sign a PDF with Aspose.Pdf while clearing the Reason, Location, and ContactInfo fields to hide those details in the visible signature annotation.", "tags": [ "pdf", - "signature", - "verification", + "digital-signature", "aspose", + "suppress-text", "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSignature", "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", - "Aspose.Pdf.Facades.PdfFileSignature.GetSignatureNames", - "Aspose.Pdf.Facades.PdfFileSignature.VerifySigned", - "Aspose.Pdf.Facades.SignatureName" + "Aspose.Pdf.Facades.PdfFileSignature.SetCertificate", + "Aspose.Pdf.Forms.PKCS1", + "Aspose.Pdf.Forms.PKCS1.Reason", + "Aspose.Pdf.Forms.PKCS1.Location", + "Aspose.Pdf.Facades.PdfFileSignature.Sign", + "Aspose.Pdf.Facades.PdfFileSignature.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "verify-pdf-no-signatures-false.cs", - "title": "Verify PDF Without Signatures Returns False", - "description": "Shows how to detect that a PDF contains no signatures and confirms that the VerifySigned method returns false for an unsigned document.", + "filename": "validate-manager-signature.cs", + "title": "Validate ManagerSignature Field in PDF", + "description": "Demonstrates how to load a PDF with Aspose.Pdf.Facades and verify the cryptographic integrity of a signature field named 'ManagerSignature' using the VerifySignature method.", "tags": [ "pdf", "signature", "verification", - "aspose.pdf", - "facade" + "facade", + "aspnet" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSignature", "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", - "Aspose.Pdf.Facades.PdfFileSignature.ContainsSignature", - "Aspose.Pdf.Facades.PdfFileSignature.VerifySigned" + "Aspose.Pdf.Facades.PdfFileSignature.VerifySignature" ], "difficulty": "beginner" }, { - "filename": "verify-pdf-signatures-to-json.cs", - "title": "Verify PDF Signatures and Export Results to JSON", - "description": "Loads a signed PDF, verifies each digital signature using Aspose.Pdf.Facades, and writes the signature name and validation status to a formatted JSON file.", + "filename": "validate-pdf-signature-field.cs", + "title": "Validate Pdf Signature Field", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "verify-absence-of-pdf-signature.cs", + "title": "Verify Absence of PDF Signature", + "description": "Demonstrates using Aspose.Pdf.Facades.PdfFileSignature to attempt verification of a non‑existent signature, confirming that VerifySigned returns false.", "tags": [ "pdf", "signature", "verification", - "json", + "aspose", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfFileSignature", + "PdfFileSignature.BindPdf", + "PdfFileSignature.VerifySigned" + ], + "difficulty": "beginner" + }, + { + "filename": "verify-multiple-pdf-signatures.cs", + "title": "Verify Multiple Signatures in a PDF", + "description": "Loads a signed PDF, extracts all signature names, and verifies each signature using the VerifySigned method.", + "tags": [ + "pdf", + "signature", + "verification", + "aspose", "facade" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileSignature", + "Aspose.Pdf.Facades.SignatureName", "Aspose.Pdf.Facades.PdfFileSignature.GetSignatureNames", - "Aspose.Pdf.Facades.PdfFileSignature.VerifySignature", - "Aspose.Pdf.Facades.SignatureName" + "Aspose.Pdf.Facades.PdfFileSignature.VerifySigned" ], "difficulty": "intermediate" }, { - "filename": "verify-specific-pdf-signature.cs", - "title": "Verify Specific PDF Signature Using PdfFileSignature", - "description": "Shows how to locate a signature named 'ContractSigner' in a PDF and verify it with Aspose.Pdf's PdfFileSignature facade.", + "filename": "verify-multiple-signatures-pdf.cs", + "title": "Verify Multiple Signatures Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "verify-pdf-no-signatures-false.cs", + "title": "Verify Pdf No Signatures False", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "verify-pdf-signature-by-name.cs", + "title": "Verify PDF Signature by Name using Aspose.Pdf", + "description": "Demonstrates how to check whether a PDF contains a specific digital signature (e.g., 'ContractSigner') using the Aspose.Pdf.Facades PdfFileSignature class.", "tags": [ "pdf", "signature", "verification", "aspose", - "facade" + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileSignature", "Aspose.Pdf.Facades.PdfFileSignature.BindPdf", - "Aspose.Pdf.Facades.PdfFileSignature.GetSignatureNames", "Aspose.Pdf.Facades.PdfFileSignature.VerifySigned" ], "difficulty": "beginner" + }, + { + "filename": "verify-pdf-signatures-to-json.cs", + "title": "Verify Pdf Signatures To Json", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "verify-specific-pdf-signature.cs", + "title": "Verify Specific Pdf Signature", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" } ] }, { "name": "facades-stamps", - "file_count": 48, + "file_count": 82, "files": [ "add-background-image-watermark-to-specific-pdf-pages.cs", + "add-background-watermark-to-specific-pdf-pages.cs", "add-barcode-header-to-pdf-pages.cs", + "add-confidential-text-and-logo-stamp.cs", "add-creation-date-stamp-to-pdf.cs", + "add-creation-date-stamp.cs", + "add-custom-border-stamp-to-pdf.cs", "add-dynamic-text-stamp-to-pdf.cs", "add-file-name-header-stamp-to-pdf.cs", - "add-footer-date-stamp-to-last-page.cs", + "add-footer-date-stamp-to-last-pdf-page.cs", "add-footer-page-count-stamp.cs", "add-footer-stamp-10-points-above-bottom.cs", + "add-footer-with-page-count.cs", "add-header-stamp-to-all-pdf-pages.cs", + "add-header-stamp-to-pdf-pages.cs", "add-image-and-text-stamp-to-pdf.cs", + "add-image-stamp-to-pdfs-preserve-filenames.cs", + "add-lower-roman-page-numbers-odd-pages.cs", "add-lowercase-roman-page-numbers-to-odd-pages.cs", "add-multi-line-colored-header-stamp.cs", + "add-multi-line-text-watermark-facade.cs", "add-multi-line-text-watermark-pdf.cs", + "add-multi-line-text-watermark.cs", + "add-multi-line-watermark-custom-font.cs", "add-multi-line-watermark-pdf.cs", "add-multi-line-watermark-to-pdf.cs", "add-multi-line-watermark-varying-font-sizes.cs", + "add-page-number-stamp-leading-zeros.cs", + "add-page-number-stamp-to-pdf.cs", "add-page-number-stamp-with-leading-zeros.cs", "add-page-numbers-to-pdf.cs", + "add-qr-code-stamp-from-pdf-metadata.cs", "add-qr-code-verification-stamp.cs", "add-repeating-background-image-stamp.cs", + "add-repeating-background-watermark-image.cs", "add-right-aligned-image-stamp-to-pdf.cs", + "add-right-aligned-logo-stamp-to-pdf.cs", "add-semi-transparent-background-stamp.cs", "add-semi-transparent-png-background-stamp.cs", "add-text-stamp-overlay-to-pdf-pages.cs", + "add-transparent-confidential-text-stamp.cs", "add-transparent-text-stamp-to-selected-pdf-pages.cs", "apply-custom-colored-stamp-with-border.cs", + "apply-custom-line-height-stamp.cs", + "apply-external-pdf-template-stamp.cs", + "apply-image-stamp-to-all-pdf-pages.cs", "apply-multi-line-text-stamp-1-5-line-spacing.cs", "apply-pdf-page-stamp-as-background.cs", "apply-pdf-stamp-preserve-filenames.cs", "apply-pdf-template-stamp-to-page.cs", "apply-rotated-image-stamp-bottom-right.cs", + "apply-rotated-image-stamp-to-pdf-pages.cs", + "apply-rotated-text-stamp-odd-pages.cs", "apply-rotated-text-stamp-to-odd-pages.cs", + "apply-rotating-stamps-to-pdf-pages.cs", "apply-rotating-text-stamps.cs", + "apply-semi-transparent-png-background-stamp.cs", + "apply-stamp-to-even-pdf-pages.cs", "apply-text-stamp-to-even-pages.cs", "apply-text-stamp-to-specific-pdf-pages.cs", "apply-text-watermark-all-pdf-pages.cs", + "apply-translucent-text-watermark.cs", "apply-translucent-watermark-to-pdf.cs", "batch-add-multi-line-watermark-to-pdfs.cs", + "batch-add-rotated-image-stamp-to-first-page.cs", "batch-add-rotated-image-stamp.cs", "batch-apply-rotated-pdf-stamp.cs", "combine-image-text-pdf-stamp.cs", + "combine-multiple-pdfs-into-multi-page-stamp.cs", "create-multi-page-pdf-stamp.cs", "custom-font-stamp-branding.cs", "merge-cover-page-background-pdf.cs", + "merge-cover-page-background.cs", + "multi-line-watermark-addnewlinetext.cs", "overlay-disclaimer-pdf-first-page.cs", + "overlay-image-stamp-on-pdf-pages.cs", + "overlay-legal-disclaimer-with-pdffilestamp.cs", + "qr-code-and-text-stamp-for-pdf.cs", "rotate-text-stamp-45-degrees.cs", "rotate-text-stamp-90-degrees.cs", + "rotate-text-stamp-on-pdf-pages.cs", "stamp-pdf-with-dynamic-barcode.cs" ], "required_namespaces": [ "Aspose.Pdf.Facades", "Aspose.Pdf", "Aspose.Pdf.Text", - "Aspose.Pdf.Drawing", "Aspose.Pdf.Annotations", + "Aspose.Pdf.Drawing", "Aspose.Pdf.Forms" ], "key_apis": [ @@ -28256,135 +34351,182 @@ "TextStamp", "ImageStamp", "PageNumberStamp", + "PdfFileEditor", "PdfFileMend", "StampAnnotation", - "TextAbsorber", "TextFragment" ], "examples": [ { "filename": "add-background-image-watermark-to-specific-pdf-pages.cs", - "title": "Add Background Image Watermark to Specific PDF Pages", - "description": "Demonstrates how to apply an image watermark as a background stamp to pages 2‑5 of a PDF using Aspose.Pdf.Facades.", + "title": "Add Background Image Watermark To Specific Pdf Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-background-watermark-to-specific-pdf-pages.cs", + "title": "Add Background Watermark to Specific PDF Pages", + "description": "Demonstrates how to apply a light‑gray background watermark to pages 2‑5 of a PDF using Aspose.Pdf.Facades.", "tags": [ "watermark", "background", "pdf", - "stamp", - "Aspose.Pdf" + "Aspose.Pdf", + "pages" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileStamp", "Aspose.Pdf.Facades.Stamp", - "PdfFileStamp.BindPdf", - "Stamp.BindImage", - "Stamp.IsBackground", - "Stamp.Pages", - "PdfFileStamp.AddStamp", - "PdfFileStamp.Save" + "Aspose.Pdf.Facades.FormattedText", + "Aspose.Pdf.Facades.EncodingType", + "Aspose.Pdf.Facades.Stamp.BindLogo", + "Aspose.Pdf.Facades.PdfFileStamp.AddStamp" ], "difficulty": "intermediate" }, { "filename": "add-barcode-header-to-pdf-pages.cs", - "title": "Add Barcode Header to PDF Pages", - "description": "Shows how to use Aspose.Pdf.Facades.PdfFileStamp to place a pre‑generated barcode image as a header on every page of a PDF document.", + "title": "Add Barcode Header To Pdf Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-confidential-text-and-logo-stamp.cs", + "title": "Add Confidential Text and Logo Stamp to PDF", + "description": "Demonstrates using Aspose.Pdf.Facades to place a combined formatted text stamp and a logo image onto a PDF document.", "tags": [ - "barcode", - "header", + "stamp", + "logo", + "confidential", "pdf", - "aspose", "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.PdfFileStamp.AddHeader", - "Aspose.Pdf.Facades.PdfFileStamp.Close", - "Aspose.Pdf.Facades.PdfFileStamp.InputFile", - "Aspose.Pdf.Facades.PdfFileStamp.OutputFile" + "PdfFileStamp", + "Stamp", + "FormattedText", + "EncodingType", + "PdfFileStamp.BindPdf", + "Stamp.BindLogo", + "Stamp.BindImage", + "PdfFileStamp.AddStamp" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "add-creation-date-stamp-to-pdf.cs", - "title": "Add Creation Date Stamp to PDF Pages", - "description": "Demonstrates how to add a text stamp that displays the document's creation date (formatted as yyyy-MM-dd) to the top‑left corner of each page in a PDF using Aspose.Pdf.", + "title": "Add Creation Date Stamp To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-creation-date-stamp.cs", + "title": "Add Creation Date Stamp to PDF", + "description": "Shows how to read a PDF's creation date and place it as a text stamp in the top‑left corner of every page using Aspose.Pdf.", "tags": [ - "stamp", "creation-date", + "stamp", "textstamp", "pdf", - "aspose" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.DocumentInfo", "Aspose.Pdf.Text.TextStamp", - "Aspose.Pdf.FontRepository.FindFont", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Text.TextState" + "Aspose.Pdf.Text.FontRepository", + "Aspose.Pdf.Page", + "Aspose.Pdf.Color", + "Aspose.Pdf.HorizontalAlignment", + "Aspose.Pdf.VerticalAlignment" + ], + "difficulty": "beginner" + }, + { + "filename": "add-custom-border-stamp-to-pdf.cs", + "title": "Add Custom Border Stamp Annotation to PDF", + "description": "Demonstrates how to load a PDF, create a rubber‑stamp annotation with a custom red border and thickness, place it on a page, and save the modified document.", + "tags": [ + "stamp", + "annotation", + "border", + "pdf", + "Aspose.Pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Annotations.StampAnnotation", + "Aspose.Pdf.Annotations.Border", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Color", + "Aspose.Pdf.Page.Annotations.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "add-dynamic-text-stamp-to-pdf.cs", "title": "Add Dynamic Text Stamp to PDF", - "description": "Demonstrates creating a formatted text stamp with dynamic author and date values using string interpolation and applying it to every page of a PDF via Aspose.Pdf.Facades.", + "description": "Demonstrates creating a TextStamp with interpolated author and date values, applying it to each page of a PDF, and saving the stamped document.", "tags": [ - "stamp", "pdf", - "text", - "interpolation", - "facade" + "textstamp", + "watermark", + "aspose-pdf", + "string-interpolation" ], "apis_used": [ - "Aspose.Pdf.Facades.FormattedText", - "Aspose.Pdf.Facades.Stamp", - "Aspose.Pdf.Facades.Stamp.BindLogo", - "Aspose.Pdf.Facades.Stamp.SetOrigin", - "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", - "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", - "Aspose.Pdf.Facades.PdfFileStamp.Save" + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextStamp", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "add-file-name-header-stamp-to-pdf.cs", "title": "Add File Name Header Stamp to PDF", - "description": "Demonstrates how to use Aspose.Pdf's PdfFileStamp facade to add a header containing the source PDF's file name to each page of a PDF document.", + "description": "Demonstrates creating a TextStamp that shows the PDF's file name in the header of each page and applying it to all pages of the document.", "tags": [ - "pdf", "stamp", "header", - "facade", - "aspose" + "filename", + "textstamp", + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.PdfFileStamp.AddHeader", - "Aspose.Pdf.Facades.PdfFileStamp.Close", - "Aspose.Pdf.Text.FormattedText", - "Aspose.Pdf.Text.EncodingType" + "Aspose.Pdf.Document", + "Aspose.Pdf.Text.TextStamp", + "Aspose.Pdf.FontRepository.FindFont", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Color" ], "difficulty": "beginner" }, { - "filename": "add-footer-date-stamp-to-last-page.cs", + "filename": "add-footer-date-stamp-to-last-pdf-page.cs", "title": "Add Footer Date Stamp to Last PDF Page", - "description": "Shows how to add a footer stamp with the current date (MM-dd-yyyy) to only the last page of a PDF using Aspose.Pdf.", + "description": "Demonstrates how to insert a footer stamp containing the current date (MM-dd-yyyy) on the last page of a PDF using Aspose.Pdf.", "tags": [ + "pdf", "footer", "stamp", "date", - "last-page", - "pdf" + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextStamp", "Aspose.Pdf.FontRepository.FindFont", + "Aspose.Pdf.Color", "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], @@ -28392,98 +34534,114 @@ }, { "filename": "add-footer-page-count-stamp.cs", - "title": "Add Footer Page Count Stamp to PDF", - "description": "Shows how to use Aspose.Pdf.Facades.PdfFileStamp to add a footer that automatically displays the total page count on each page of a PDF document.", + "title": "Add Footer Page Count Stamp", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-footer-stamp-10-points-above-bottom.cs", + "title": "Add Footer Stamp 10 Points Above Bottom Edge", + "description": "Demonstrates how to use PdfFileStamp to add a footer stamp positioned exactly 10 points above the bottom edge of each PDF page.", "tags": [ - "pdf", "footer", - "page-count", "stamp", - "aspose-pdf" + "margin", + "pdf", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileStamp", "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", - "Aspose.Pdf.Facades.PdfFileStamp.AddPageNumber", + "Aspose.Pdf.Facades.PdfFileStamp.AddFooter", "Aspose.Pdf.Facades.PdfFileStamp.Save", - "Aspose.Pdf.Facades.PpdfFileStamp.Close" + "Aspose.Pdf.FormattedText" ], "difficulty": "beginner" }, { - "filename": "add-footer-stamp-10-points-above-bottom.cs", - "title": "Add Footer Stamp 10 Points Above Bottom Edge", - "description": "Demonstrates how to place a footer stamp exactly 10 points above the page bottom using Aspose.Pdf.Facades. The example creates formatted text, binds a PDF, adds the footer, and saves the result.", + "filename": "add-footer-with-page-count.cs", + "title": "Add Footer with Page Count to PDF", + "description": "Shows how to use Aspose.Pdf.Facades.PdfFileStamp to add a footer that displays the current page number and total page count on each page of a PDF document.", "tags": [ + "pdf", "footer", + "page-number", "stamp", - "margin", - "Aspose.Pdf", - "C#" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.FormattedText", - "Aspose.Pdf.Facades.EncodingType", - "PdfFileStamp.BindPdf", - "PdfFileStamp.AddFooter", - "PdfFileStamp.Save", - "PdfFileStamp.Close" + "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", + "Aspose.Pdf.Facades.PdfFileStamp.AddPageNumber", + "Aspose.Pdf.Facades.PdfFileStamp.Save", + "Aspose.Pdf.Facades.PdfFileStamp.Close" ], "difficulty": "beginner" }, { "filename": "add-header-stamp-to-all-pdf-pages.cs", + "title": "Add Header Stamp To All Pdf Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-header-stamp-to-pdf-pages.cs", "title": "Add Header Stamp to All PDF Pages", - "description": "Demonstrates iterating through a PDF document and adding a header stamp with a company name to each page using Aspose.Pdf.Facades.", + "description": "Shows how to load a PDF with Aspose.Pdf, iterate through its Pages collection, and add a centered header TextStamp containing a company name to each page.", "tags": [ "header", "stamp", "pdf", - "facade", - "iteration" + "aspose", + "csharp" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileStamp", "Aspose.Pdf.Document", - "Aspose.Pdf.Text.FormattedText", - "Aspose.Pdf.Facades.Stamp", - "PdfFileStamp.BindPdf", - "Stamp.BindLogo", - "PdfFileStamp.AddStamp", - "PdfFileStamp.Save" + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextStamp", + "Aspose.Pdf.Text.FontRepository.FindFont", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "add-image-and-text-stamp-to-pdf.cs", - "title": "Add Image and Text Stamp to PDF", - "description": "Demonstrates how to use Aspose.Pdf.Facades to place a company logo image and a bold \"Confidential\" text stamp on a PDF document.", + "title": "Add Image And Text Stamp To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-image-stamp-to-pdfs-preserve-filenames.cs", + "title": "Add Image Stamp to PDFs and Preserve Filenames", + "description": "Iterates over PDF files in a source folder, applies an image stamp to each page using the PdfFileStamp facade, and saves the stamped PDFs to a target folder while keeping the original file names.", "tags": [ + "pdf", "stamp", "image", - "text", - "pdf", - "confidential" + "aspose", + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileStamp", "Aspose.Pdf.Facades.Stamp", - "Aspose.Pdf.Facades.FormattedText", "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", - "Aspose.Pdf.Facades.Stamp.SetOrigin", - "Aspose.Pdf.Facades.Stamp.SetImageSize", "Aspose.Pdf.Facades.Stamp.BindImage", - "Aspose.Pdf.Facades.Stamp.BindLogo", "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", "Aspose.Pdf.Facades.PdfFileStamp.Save" ], "difficulty": "intermediate" }, { - "filename": "add-lowercase-roman-page-numbers-to-odd-pages.cs", - "title": "Add Lowercase Roman Page Numbers to Odd Pages", - "description": "Demonstrates how to add page numbers in lowercase Roman numerals to only the odd pages of a PDF using Aspose.Pdf's PageNumberStamp.", + "filename": "add-lower-roman-page-numbers-odd-pages.cs", + "title": "Add Lower‑Roman Page Numbers to Odd Pages", + "description": "Demonstrates how to add page numbers in lower‑case Roman numerals to only the odd pages of a PDF using Aspose.Pdf's PageNumberStamp.", "tags": [ "page-number", "roman", @@ -28495,189 +34653,243 @@ "Aspose.Pdf.Document", "Aspose.Pdf.Text.PageNumberStamp", "Aspose.Pdf.Text.NumberingStyle", + "Aspose.Pdf.Text.FontRepository", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Drawing.HorizontalAlignment" ], "difficulty": "intermediate" }, + { + "filename": "add-lowercase-roman-page-numbers-to-odd-pages.cs", + "title": "Add Lowercase Roman Page Numbers To Odd Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "add-multi-line-colored-header-stamp.cs", - "title": "Add Multi‑Line Colored Header Stamp to PDF Pages", - "description": "Demonstrates how to add a multi‑line header to each page of a PDF using Aspose.Pdf, with each line rendered in a different font color.", + "title": "Add Multi-Line Colored Header Stamp to PDF", + "description": "Demonstrates how to apply a multi‑line header stamp with different font colors to each line using Aspose.Pdf Facades.", "tags": [ - "header", + "pdf", "stamp", - "color", - "textstamp", - "aspose-pdf" + "header", + "colored-text", + "facades" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextStamp", - "Aspose.Pdf.Text.FontRepository.FindFont", - "Aspose.Pdf.Color", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", + "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", + "Aspose.Pdf.Facades.PdfFileStamp.Save", + "Aspose.Pdf.Facades.Stamp.BindLogo", + "Aspose.Pdf.Facades.Stamp.SetOrigin", + "Aspose.Pdf.Text.FormattedText" ], "difficulty": "intermediate" }, { - "filename": "add-multi-line-text-watermark-pdf.cs", - "title": "Add Multi-Line Text Watermark to PDF", - "description": "Shows how to create a multi-line text watermark and add it as a header on every page of a PDF using Aspose.Pdf's PdfFileStamp facade.", + "filename": "add-multi-line-text-watermark-facade.cs", + "title": "Add Multi-Line Text Watermark to PDF using Facades", + "description": "Shows how to create a multi-line text watermark with Aspose.Pdf.Facades by using FormattedText, adding extra lines via AddNewLineText, and applying it as a background stamp to all pages of a PDF.", "tags": [ "watermark", - "multiline", + "formattedtext", + "stamp", "pdf", - "header", - "Aspose.Pdf" + "facades" ], "apis_used": [ - "PdfFileStamp.BindPdf", - "PdfFileStamp.AddHeader", - "PdfFileStamp.Save", - "PdfFileStamp.Close", + "PdfFileStamp", "FormattedText", - "FormattedText.AddNewLineText" + "FormattedText.AddNewLineText", + "Stamp", + "Stamp.BindLogo", + "Stamp.IsBackground", + "PdfFileStamp.AddStamp", + "PdfFileStamp.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "add-multi-line-watermark-pdf.cs", - "title": "Add Multi-Line Watermark with Line Spacing to PDF", - "description": "Demonstrates using Aspose.Pdf.Facades to apply a multi‑line text watermark with opacity and background settings, positioning it via PdfFileStamp and FormattedText. Highlights that precise line height control requires separate stamps per line.", + "filename": "add-multi-line-text-watermark-pdf.cs", + "title": "Add Multi Line Text Watermark Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-multi-line-text-watermark.cs", + "title": "Add Multi‑Line Text Watermark with Varying Font Sizes", + "description": "Demonstrates how to apply a multi‑line watermark to each page of a PDF, using different font sizes for visual hierarchy and semi‑transparent rendering.", "tags": [ "watermark", "pdf", - "aspose", - "multiline", - "stamp" + "textstamp", + "fontsize", + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", - "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", - "Aspose.Pdf.Facades.PdfFileStamp.Save", - "Aspose.Pdf.Facades.Stamp", - "Aspose.Pdf.Facades.Stamp.BindLogo", - "Aspose.Pdf.Facades.Stamp.SetOrigin", - "Aspose.Pdf.Facades.FormattedText" + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.FontRepository.FindFont", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Text.TextStamp", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "add-multi-line-watermark-to-pdf.cs", - "title": "Add Multi‑Line Watermark to PDF from Memory Stream", - "description": "Shows how to create a PDF in memory and apply a multi‑line, colored, custom‑size watermark using PdfFileStamp and related facade classes.", + "filename": "add-multi-line-watermark-custom-font.cs", + "title": "Add Multi‑Line Watermark with Custom Font to PDF", + "description": "Demonstrates loading a PDF from a memory stream and applying a multi‑line, custom‑styled watermark using Aspose.Pdf.Facades stamp classes.", "tags": [ "watermark", "pdf", - "memory-stream", - "Aspose.Pdf", - "facade" + "stamp", + "formatted-text", + "custom-font" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.FormattedText", - "Aspose.Pdf.Facades.Stamp", - "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", - "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", "Aspose.Pdf.Facades.Stamp.BindLogo", - "Aspose.Pdf.Facades.Stamp.SetOrigin" + "Aspose.Pdf.Facades.Stamp.SetOrigin", + "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", + "Aspose.Pdf.Facades.PdfFileStamp.Save" ], "difficulty": "intermediate" }, + { + "filename": "add-multi-line-watermark-pdf.cs", + "title": "Add Multi Line Watermark Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-multi-line-watermark-to-pdf.cs", + "title": "Add Multi Line Watermark To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "add-multi-line-watermark-varying-font-sizes.cs", - "title": "Add Multi-Line Watermark with Varying Font Sizes", - "description": "Creates a PDF and uses PdfFileMend to add three watermark lines at the top of each page, each with a different font size to provide visual hierarchy.", - "tags": [ - "watermark", - "font-size", - "pdf", - "Aspose.Pdf", - "PdfFileMend" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfFileMend", - "Aspose.Pdf.Facades.PdfFileMend.BindPdf", - "Aspose.Pdf.Facades.PdfFileMend.AddText", - "Aspose.Pdf.Facades.PdfFileMend.Save", - "Aspose.Pdf.Facades.FormattedText" - ], - "difficulty": "intermediate" + "title": "Add Multi Line Watermark Varying Font Sizes", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "add-page-number-stamp-with-leading-zeros.cs", + "filename": "add-page-number-stamp-leading-zeros.cs", "title": "Add Page Number Stamp with Leading Zeros to PDF", - "description": "Shows how to add a page‑number stamp formatted with leading zeros to every page of a PDF using Aspose.Pdf.", + "description": "Shows how to use Aspose.Pdf to stamp Arabic numeral page numbers with leading zeros on every page of a PDF document.", "tags": [ "page-number", "stamp", - "pdf", "leading-zeros", - "csharp" + "Aspose.Pdf", + "facades" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextStamp", - "Aspose.Pdf.FontRepository.FindFont", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.Facades.PdfFileStamp.NumberingStyle", + "Aspose.Pdf.Facades.PdfFileStamp.AddPageNumber", + "Aspose.Pdf.Facades.PdfFileStamp.Save", + "Aspose.Pdf.Facades.PdfFileStamp.Close" ], "difficulty": "beginner" }, { - "filename": "add-page-numbers-to-pdf.cs", - "title": "Add Page Numbers to PDF using PdfFileStamp", - "description": "Demonstrates stamping a PDF with dynamic page numbers using the PdfFileStamp facade and the '#' placeholder.", + "filename": "add-page-number-stamp-to-pdf.cs", + "title": "Add Page Number Stamp to PDF", + "description": "Shows how to use Aspose.Pdf.Facades.PdfFileStamp to add a dynamic page‑number stamp (using the \"#\" placeholder) to every page of a PDF document.", "tags": [ "pdf", - "page-number", "stamp", + "page-number", "facade", - "aspdf" + "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.PdfFileStamp.AddPageNumber", - "Aspose.Pdf.Facades.PdfFileStamp.Close" + "PdfFileStamp.AddPageNumber", + "PdfFileStamp.StartingNumber", + "PdfFileStamp.Close" ], "difficulty": "beginner" }, { - "filename": "add-qr-code-verification-stamp.cs", - "title": "Add QR Code and Description Stamp to PDF", - "description": "Demonstrates how to load a PDF, create an image stamp for a QR code and a text stamp with verification instructions, place them on each page, and save the stamped document.", + "filename": "add-page-number-stamp-with-leading-zeros.cs", + "title": "Add Page Number Stamp With Leading Zeros", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-page-numbers-to-pdf.cs", + "title": "Add Page Numbers To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-qr-code-stamp-from-pdf-metadata.cs", + "title": "Add QR Code Stamp from PDF Metadata", + "description": "Demonstrates how to generate a QR code from a PDF's metadata and apply it as a stamp on the document using Aspose.Pdf.", "tags": [ "qr-code", "stamp", + "metadata", "pdf", - "image-stamp", - "text-stamp" + "facades" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.ImageStamp", - "Aspose.Pdf.TextStamp", - "Aspose.Pdf.Text.FontRepository.FindFont", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.Stamp", + "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.Facades.Stamp.BindImage", + "Aspose.Pdf.Facades.Stamp.SetOrigin", + "Aspose.Pdf.Facades.Stamp.SetImageSize", + "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", + "Aspose.Pdf.Facades.PdfFileStamp.Save" ], "difficulty": "intermediate" }, + { + "filename": "add-qr-code-verification-stamp.cs", + "title": "Add Qr Code Verification Stamp", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "add-repeating-background-image-stamp.cs", - "title": "Add Repeating Background Image Stamp to PDF", - "description": "Demonstrates how to use Aspose.Pdf.Facades to apply a single image stamp as a background watermark on every page of a PDF document.", + "title": "Add Repeating Background Image Stamp", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-repeating-background-watermark-image.cs", + "title": "Add Repeating Background Watermark Image to PDF Pages", + "description": "Shows how to use PdfFileStamp with a single Stamp instance to place a semi‑transparent background image watermark on every page of a PDF.", "tags": [ "watermark", - "stamp", "background", + "stamp", "pdf", "Aspose.Pdf" ], @@ -28686,7 +34898,7 @@ "Aspose.Pdf.Facades.Stamp", "Aspose.Pdf.Facades.Stamp.BindImage", "Aspose.Pdf.Facades.Stamp.IsBackground", - "Aspose.Pdf.Facades.Stamp.Opacity", + "Aspose.Pdf.Facades.Stamp.SetImageSize", "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", "Aspose.Pdf.Facades.PdfFileStamp.Close" ], @@ -28694,8 +34906,16 @@ }, { "filename": "add-right-aligned-image-stamp-to-pdf.cs", - "title": "Add Right-Aligned Image Stamp to PDF", - "description": "Shows how to load a PDF, create an ImageStamp, set its HorizontalAlignment to Right, and apply the stamp to each page.", + "title": "Add Right Aligned Image Stamp To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-right-aligned-logo-stamp-to-pdf.cs", + "title": "Add Right-Aligned Logo Stamp to PDF", + "description": "Shows how to place an image stamp (logo) at the right margin of each page in a PDF using Aspose.Pdf.", "tags": [ "image-stamp", "horizontal-alignment", @@ -28706,8 +34926,9 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.ImageStamp", - "Aspose.Pdf.HorizontalAlignment", "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.HorizontalAlignment", + "Aspose.Pdf.VerticalAlignment", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" @@ -28715,429 +34936,471 @@ { "filename": "add-semi-transparent-background-stamp.cs", "title": "Add Semi-Transparent Background Stamp to PDF", - "description": "Demonstrates creating a formatted text stamp, setting it as a background with 30% opacity, and applying it to all pages of a PDF using the PdfFileStamp facade.", + "description": "Demonstrates how to apply an image as a background stamp on all pages of a PDF with 30% opacity using Aspose.Pdf.Facades, preserving document readability.", "tags": [ "stamp", "background", "opacity", - "watermark", - "Aspose.Pdf" + "pdf", + "Aspose" ], "apis_used": [ - "Aspose.Pdf.Facades.Stamp", - "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Text.FormattedText", - "Stamp.BindLogo", - "Stamp.IsBackground", + "PdfFileStamp", + "Stamp", + "PdfFileStamp.BindPdf", + "Stamp.BindImage", "Stamp.Opacity", + "Stamp.IsBackground", "PdfFileStamp.AddStamp", "PdfFileStamp.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "add-semi-transparent-png-background-stamp.cs", - "title": "Add Semi-Transparent PNG Background Stamp to PDF", - "description": "Demonstrates how to apply a semi‑transparent PNG image as a background stamp that covers the entire page of a PDF using Aspose.Pdf.Facades.", + "title": "Add Semi Transparent Png Background Stamp", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-text-stamp-overlay-to-pdf-pages.cs", + "title": "Add Text Stamp Overlay To Pdf Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-transparent-confidential-text-stamp.cs", + "title": "Add Transparent Confidential Text Stamp to Selected PDF Pages", + "description": "Demonstrates applying a 70% opaque red \"CONFIDENTIAL\" text stamp to specific pages of a PDF using Aspose.Pdf Facades.", "tags": [ - "background", "stamp", - "png", + "watermark", + "pdf", "opacity", - "pdf" + "selected-pages" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.Facades.FormattedText", "Aspose.Pdf.Facades.Stamp", - "Aspose.Pdf.Facades.Stamp.BindImage", - "Aspose.Pdf.Facades.Stamp.SetImageSize", - "Aspose.Pdf.Facades.Stamp.Opacity", - "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", - "Aspose.Pdf.Facades.PdfFileStamp.Save" + "Aspose.Pdf.Facades.PdfFileStamp.AddStamp" ], "difficulty": "intermediate" }, { - "filename": "add-text-stamp-overlay-to-pdf-pages.cs", - "title": "Add Text Stamp Overlay to PDF Pages", - "description": "Demonstrates how to use the PdfFileStamp facade to place a formatted text stamp on top of existing PDF content by setting IsBackground to false.", + "filename": "add-transparent-text-stamp-to-selected-pdf-pages.cs", + "title": "Add Transparent Text Stamp To Selected Pdf Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "apply-custom-colored-stamp-with-border.cs", + "title": "Apply Custom Colored Stamp With Border", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "apply-custom-line-height-stamp.cs", + "title": "Apply Custom Line-Height Stamp to PDF", + "description": "Demonstrates how to create a multi‑line watermark with custom line spacing using a formatted text stamp and apply it to all pages of a PDF.", "tags": [ - "pdf", "stamp", - "text", - "overlay", - "Aspose.Pdf" + "watermark", + "line-spacing", + "pdf", + "Aspose" ], "apis_used": [ - "PdfFileStamp", - "PdfFileStamp.BindPdf", - "PdfFileStamp.AddStamp", - "PdfFileStamp.Save", - "FormattedText", - "Stamp", + "Aspose.Pdf.Facades.Stamp", + "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.FormattedText", + "FormattedText.AddNewLineText", "Stamp.BindLogo", - "Stamp.IsBackground" + "Stamp.SetOrigin", + "PdfFileStamp.AddStamp" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "add-transparent-text-stamp-to-selected-pdf-pages.cs", - "title": "Add Transparent Text Stamp to Selected PDF Pages", - "description": "Demonstrates how to apply a semi‑transparent red text stamp labeled 'CONFIDENTIAL' to specific pages of a PDF using Aspose.Pdf.Facades.", + "filename": "apply-external-pdf-template-stamp.cs", + "title": "Apply External PDF Template as Stamp on a Specific Page", + "description": "Shows how to create a PdfFileStamp from an external template PDF and apply it only to the third page of another PDF document.", "tags": [ - "text-stamp", - "opacity", - "selected-pages", + "pdf", + "stamp", + "template", "Aspose.Pdf", - "PDF watermark" + "c#" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileStamp", "Aspose.Pdf.Facades.Stamp", - "Aspose.Pdf.Facades.FormattedText", "PdfFileStamp.BindPdf", - "Stamp.BindLogo", - "Stamp.Opacity", + "Stamp.BindPdf", + "Stamp.Pages", "PdfFileStamp.AddStamp", - "PdfFileStamp.Save" + "PdfFileStamp.Save", + "PdfFileStamp.Close" ], "difficulty": "intermediate" }, { - "filename": "apply-custom-colored-stamp-with-border.cs", - "title": "Apply Custom Colored Stamp with Border to PDF Pages", - "description": "Demonstrates how to add a rubber‑stamp annotation with custom text, color, and border thickness to every page of a PDF using Aspose.Pdf.", + "filename": "apply-image-stamp-to-all-pdf-pages.cs", + "title": "Apply Image Stamp to All PDF Pages", + "description": "Demonstrates using PdfFileStamp and Stamp to add a semi‑transparent image stamp to every page of a PDF in a single operation.", "tags": [ "stamp", - "annotation", - "border", - "color", - "pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.StampAnnotation", - "Aspose.Pdf.Annotations.Border", - "Aspose.Pdf.Color", - "Aspose.Pdf.Rectangle" - ], - "difficulty": "intermediate" - }, - { - "filename": "apply-multi-line-text-stamp-1-5-line-spacing.cs", - "title": "Apply Multi-Line Text Stamp with 1.5 Line Spacing", - "description": "Demonstrates creating a multi-line text watermark with 1.5 line spacing using FormattedText, binding it to a Stamp, and applying the stamp to all pages of a PDF with Aspose.Pdf.", - "tags": [ "watermark", - "text-stamp", - "line-spacing", + "pdf", "Aspose.Pdf", - "C#" + "facade" ], "apis_used": [ - "Aspose.Pdf.Text.FormattedText", - "Aspose.Pdf.Text.FormattedText.AddNewLineText", - "Aspose.Pdf.Facades.Stamp", - "Aspose.Pdf.Facades.Stamp.BindLogo", - "Aspose.Pdf.Facades.Stamp.SetOrigin", "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.Facades.Stamp", "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", - "Aspose.Pdf.Facades.PdfFileStamp.AddStamp" + "Aspose.Pdf.Facades.Stamp.BindImage", + "Aspose.Pdf.Facades.Stamp.SetOrigin", + "Aspose.Pdf.Facades.Stamp.SetImageSize", + "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", + "Aspose.Pdf.Facades.PdfFileStamp.Save" ], "difficulty": "intermediate" }, + { + "filename": "apply-multi-line-text-stamp-1-5-line-spacing.cs", + "title": "Apply Multi Line Text Stamp 1 5 Line Spacing", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "apply-pdf-page-stamp-as-background.cs", "title": "Apply PDF Page Stamp as Background to All Pages", - "description": "Shows how to use Aspose.Pdf.Facades to bind a source PDF, create a background stamp from another PDF's first page, and apply it to every page of the document.", + "description": "Demonstrates how to use Aspose.Pdf.Facades to stamp every page of a PDF with the first page of another PDF, placing the stamp behind the existing content.", "tags": [ "pdf", "stamp", "background", "facade", - "Aspose.Pdf" + "Aspose" ], "apis_used": [ - "PdfFileStamp", + "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.Facades.Stamp", "PdfFileStamp.BindPdf", - "Stamp", "Stamp.BindPdf", "Stamp.IsBackground", "PdfFileStamp.AddStamp", "PdfFileStamp.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "apply-pdf-stamp-preserve-filenames.cs", - "title": "Apply PDF Stamp and Preserve Original Filenames", - "description": "Demonstrates how to batch‑apply a PDF stamp to each document in a folder using Aspose.Pdf.Facades and save the stamped PDFs to a separate directory while keeping the original file names.", - "tags": [ - "pdf", - "stamp", - "facade", - "batch", - "aspose" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.Stamp", - "PdfFileStamp.InputFile", - "PdfFileStamp.OutputFile", - "PdfFileStamp.AddStamp", - "PdfFileStamp.Close", - "Stamp.BindPdf" - ], - "difficulty": "intermediate" + "title": "Apply Pdf Stamp Preserve Filenames", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "apply-pdf-template-stamp-to-page.cs", - "title": "Apply PDF Template Stamp to Specific Page", - "description": "Shows how to use Aspose.Pdf.Facades.PdfFileStamp and Stamp to bind a page from an external template PDF and place it as a stamp on the third page of another PDF.", - "tags": [ - "pdf", - "stamp", - "template", - "aspose", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.Stamp", - "Aspose.Pdf.Facades.Stamp.BindPdf", - "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", - "Aspose.Pdf.Facades.PdfFileStamp.Close" - ], - "difficulty": "intermediate" + "title": "Apply Pdf Template Stamp To Page", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "apply-rotated-image-stamp-bottom-right.cs", - "title": "Apply Rotated Image Stamp to Bottom Right of PDF Pages", - "description": "Demonstrates how to add an image stamp rotated 30° to the bottom‑right corner of every page using Aspose.Pdf.Facades.", + "title": "Apply Rotated Image Stamp Bottom Right", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "apply-rotated-image-stamp-to-pdf-pages.cs", + "title": "Apply Rotated Image Stamp to PDF Pages", + "description": "Demonstrates how to add an image stamp rotated by 30° to the bottom‑right corner of every page in a PDF using the Aspose.Pdf Facades API.", "tags": [ - "image-stamp", + "stamp", + "image", "rotation", "pdf", - "facade", - "bottom-right" + "facade" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileStamp", "Aspose.Pdf.Facades.Stamp", - "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", - "Aspose.Pdf.Facades.Stamp.BindImage", + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.Facades.Stamp.SetImageSize", "Aspose.Pdf.Facades.Stamp.Rotation", "Aspose.Pdf.Facades.Stamp.SetOrigin", - "Aspose.Pdf.Facades.PdfFileStamp.Close" + "Aspose.Pdf.Facades.PdfFileStamp.AddStamp" ], "difficulty": "intermediate" }, { - "filename": "apply-rotated-text-stamp-to-odd-pages.cs", + "filename": "apply-rotated-text-stamp-odd-pages.cs", "title": "Apply Rotated Text Stamp to Odd Pages", - "description": "Demonstrates adding a 30‑degree rotated red text stamp to the left margin of every odd‑numbered page in a PDF using Aspose.Pdf.", + "description": "Demonstrates adding a 30‑degree rotated text stamp to the left margin of every odd‑numbered page in a PDF using Aspose.Pdf.", "tags": [ "text-stamp", "rotation", "odd-pages", "pdf", - "aspose-pdf" + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextStamp", + "Aspose.Pdf.TextStamp", "Aspose.Pdf.Text.FontRepository.FindFont", - "Aspose.Pdf.Text.TextStamp.RotateAngle", "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "apply-rotating-text-stamps.cs", - "title": "Apply Rotating Text Stamps to PDF Pages", - "description": "Shows how to add a text stamp to each page of a PDF and rotate it differently per page using Aspose.Pdf.Facades.PdfFileStamp.", + "filename": "apply-rotated-text-stamp-to-odd-pages.cs", + "title": "Apply Rotated Text Stamp To Odd Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "apply-rotating-stamps-to-pdf-pages.cs", + "title": "Apply Rotating Stamps to Each PDF Page", + "description": "Demonstrates how to add a text stamp to every page of a PDF and rotate each stamp based on the page index using Aspose.Pdf.Facades.", "tags": [ + "pdf", "stamp", "rotation", - "pdf", "facade", - "text" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileStamp", "Aspose.Pdf.Facades.Stamp", "Aspose.Pdf.Facades.Stamp.BindLogo", + "Aspose.Pdf.Facades.Stamp.Rotation", "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", - "Aspose.Pdf.Facades.PdfFileStamp.Save", - "Aspose.Pdf.Text.FormattedText" + "Aspose.Pdf.Facades.PdfFileStamp.Close" ], "difficulty": "intermediate" }, { - "filename": "apply-text-stamp-to-even-pages.cs", - "title": "Apply Text Stamp to Even Pages of a PDF", - "description": "Shows how to add a formatted text stamp only to even‑numbered pages of a PDF using Aspose.Pdf.Facades.", + "filename": "apply-rotating-text-stamps.cs", + "title": "Apply Rotating Text Stamps", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "apply-semi-transparent-png-background-stamp.cs", + "title": "Apply Semi-Transparent PNG Background Stamp to PDF", + "description": "Demonstrates how to add a semi‑transparent PNG image as a background stamp that covers the entire page of a PDF using Aspose.Pdf.Facades.", "tags": [ + "background", "stamp", - "even-pages", - "text", - "Aspose.Pdf", - "facades" + "png", + "opacity", + "pdf" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Text.FormattedText", - "Aspose.Pdf.Facades.Stamp", "Aspose.Pdf.Facades.PdfFileStamp", - "Stamp.BindLogo", + "Aspose.Pdf.Facades.Stamp", "PdfFileStamp.BindPdf", + "Stamp.BindImage", + "Stamp.SetImageSize", "PdfFileStamp.AddStamp", "PdfFileStamp.Save" ], "difficulty": "intermediate" }, { - "filename": "apply-text-stamp-to-specific-pdf-pages.cs", - "title": "Apply Text Stamp to Specific PDF Pages", - "description": "Shows how to add a semi‑transparent text stamp only on pages 1, 5, and 10 of an existing PDF using Aspose.Pdf.Facades.", + "filename": "apply-stamp-to-even-pdf-pages.cs", + "title": "Apply Stamp to Even PDF Pages", + "description": "Shows how to add a text stamp only to even-numbered pages of a PDF using Aspose.Pdf facades.", "tags": [ - "stamp", "pdf", - "specific-pages", - "text-watermark", - "Aspose" + "stamp", + "even-pages", + "Aspose.Pdf", + "facade" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.Stamp", - "Aspose.Pdf.Text.FormattedText", - "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", - "Aspose.Pdf.Facades.Stamp.BindLogo", "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", - "Aspose.Pdf.Facades.PdfFileStamp.Save" + "Aspose.Pdf.Facades.Stamp", + "Aspose.Pdf.Facades.FormattedText" ], "difficulty": "intermediate" }, { - "filename": "apply-text-watermark-all-pdf-pages.cs", - "title": "Apply Text Watermark to All PDF Pages Using Facades", - "description": "Demonstrates how to create a semi‑transparent text stamp and apply it to every page of a PDF document in a single operation using the Aspose.Pdf.Facades API.", + "filename": "apply-text-stamp-to-even-pages.cs", + "title": "Apply Text Stamp To Even Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "apply-text-stamp-to-specific-pdf-pages.cs", + "title": "Apply Text Stamp to Specific PDF Pages", + "description": "Shows how to add a text watermark (stamp) to only pages 1, 5, and 10 of a PDF using Aspose.Pdf.Facades.", "tags": [ - "watermark", - "stamp", "pdf", - "facades", - "Aspose.Pdf" + "stamp", + "watermark", + "Aspose.Pdf", + "specific-pages" ], "apis_used": [ - "Aspose.Pdf.Facades.Stamp", + "Aspose.Pdf.Facades.PdfFileMend", "Aspose.Pdf.Facades.FormattedText", - "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.Stamp.BindLogo", - "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", - "Aspose.Pdf.Facades.PdfFileStamp.Save" + "Aspose.Pdf.Facades.EncodingType", + "Aspose.Pdf.Facades.PdfFileMend.BindPdf", + "Aspose.Pdf.Facades.PdfFileMend.AddText", + "Aspose.Pdf.Facades.PdfFileMend.Save", + "Aspose.Pdf.Facades.PdfFileMend.Close" ], "difficulty": "beginner" }, { - "filename": "apply-translucent-watermark-to-pdf.cs", - "title": "Apply Translucent Watermark to All PDF Pages", - "description": "Shows how to use PdfFileStamp and Stamp with 50% opacity to add a translucent text watermark to every page of a PDF document.", + "filename": "apply-text-watermark-all-pdf-pages.cs", + "title": "Apply Text Watermark All Pdf Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "apply-translucent-text-watermark.cs", + "title": "Apply Translucent Text Watermark to All PDF Pages", + "description": "Demonstrates how to use Aspose.Pdf.Facades to add a semi‑transparent text watermark to every page of a PDF document.", "tags": [ "watermark", "opacity", "pdf", - "stamps", - "Aspose.Pdf" + "facade", + "text-stamp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", + "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", + "Aspose.Pdf.Facades.PdfFileStamp.Save", "Aspose.Pdf.Facades.Stamp", - "Aspose.Pdf.Facades.FormattedText", - "PdfFileStamp.AddStamp", - "Stamp.BindLogo", - "Stamp.Opacity", - "Stamp.IsBackground", - "PdfFileStamp.Close" + "Aspose.Pdf.Facades.Stamp.BindLogo", + "Aspose.Pdf.Facades.Stamp.Opacity" ], - "difficulty": "intermediate" + "difficulty": "beginner" + }, + { + "filename": "apply-translucent-watermark-to-pdf.cs", + "title": "Apply Translucent Watermark To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "batch-add-multi-line-watermark-to-pdfs.cs", - "title": "Batch Add Multi-Line Watermark to PDFs", - "description": "Shows how to iterate through a folder of PDF files and apply the same multi-line text watermark to every page of each document using Aspose.Pdf.Facades.", + "title": "Batch Add Multi‑Line Watermark to PDFs", + "description": "Demonstrates how to process all PDF files in a folder and apply the same multi‑line text watermark to each document using Aspose.Pdf facades.", "tags": [ "watermark", - "batch", "pdf", - "Aspose.Pdf", - "facade" + "batch", + "stamp", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileStamp", "Aspose.Pdf.Facades.Stamp", "Aspose.Pdf.Facades.FormattedText", - "Aspose.Pdf.Facades.EncodingType", - "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", - "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", - "Aspose.Pdf.Facades.PdfFileStamp.Save" + "PdfFileStamp.BindPdf", + "PdfFileStamp.AddStamp", + "PdfFileStamp.Save", + "Stamp.BindLogo", + "Stamp.SetOrigin" ], "difficulty": "intermediate" }, { - "filename": "batch-add-rotated-image-stamp.cs", + "filename": "batch-add-rotated-image-stamp-to-first-page.cs", "title": "Batch Add Rotated Image Stamp to First Page of PDFs", - "description": "Shows how to process all PDF files in a directory and apply a 45‑degree rotated image stamp to the first page of each document using Aspose.Pdf.Facades.", + "description": "Shows how to loop through a directory of PDF files and apply a rotated image stamp to the first page of each document using Aspose.Pdf.Facades.", "tags": [ "pdf", "stamp", "image", - "batch", - "rotation" + "rotation", + "batch" ], "apis_used": [ "PdfFileStamp", "Stamp", - "PdfFileStamp.AddStamp", - "PdfFileStamp.Close", + "PdfFileStamp.BindPdf", "Stamp.BindImage", - "Stamp.SetOrigin", - "Stamp.SetImageSize", - "Stamp.Rotation" + "Stamp.Rotation", + "Stamp.Pages", + "PdfFileStamp.AddStamp", + "PdfFileStamp.Save" ], "difficulty": "intermediate" }, + { + "filename": "batch-add-rotated-image-stamp.cs", + "title": "Batch Add Rotated Image Stamp", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "batch-apply-rotated-pdf-stamp.cs", - "title": "Batch Apply Rotated PDF Stamp to Multiple PDFs", - "description": "Shows how to enumerate PDF files on a network share and apply a rotated background stamp from another PDF to each page, saving the stamped files to an output folder.", + "title": "Batch Apply Rotated PDF Stamp to PDFs", + "description": "Demonstrates how to iterate over PDFs in a network share and apply a rotated stamp taken from another PDF to every page, saving the results to an output folder.", "tags": [ "pdf", "stamp", - "batch", "rotation", + "batch", "network-share" ], "apis_used": [ - "PdfFileStamp", - "Stamp", + "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.Facades.Stamp", + "PdfFileStamp.BindPdf", "Stamp.BindPdf", "Stamp.Rotation", "PdfFileStamp.AddStamp", - "PdfFileStamp.Close" + "PdfFileStamp.Save" ], "difficulty": "intermediate" }, { "filename": "combine-image-text-pdf-stamp.cs", - "title": "Combine Image and Text in a PDF Stamp", - "description": "Demonstrates creating a stamp that contains both a logo image and formatted text, then applying the combined stamp to all pages of a PDF using Aspose.Pdf.Facades.", + "title": "Combine Image and Text into a PDF Stamp", + "description": "Demonstrates creating a single stamp that contains a logo image and formatted text, then applying it to a PDF document using Aspose.Pdf.Facades.", "tags": [ "stamp", "image", @@ -29149,102 +35412,188 @@ "Aspose.Pdf.Facades.PdfFileStamp", "Aspose.Pdf.Facades.Stamp", "Aspose.Pdf.Facades.Stamp.BindImage", - "Aspose.Pdf.Facades.Stamp.SetImageSize", - "Aspose.Pdf.Facades.Stamp.SetOrigin", "Aspose.Pdf.Facades.Stamp.BindLogo", - "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", - "Aspose.Pdf.Facades.PdfFileStamp.Save" + "Aspose.Pdf.Text.FormattedText" ], "difficulty": "intermediate" }, { - "filename": "create-multi-page-pdf-stamp.cs", - "title": "Create Multi‑Page PDF Stamp from Multiple PDFs", - "description": "Demonstrates how to combine several PDF files as stamps and apply them to each page of a target PDF using Aspose.Pdf.Facades.", + "filename": "combine-multiple-pdfs-into-multi-page-stamp.cs", + "title": "Combine Multiple PDFs into a Multi‑Page Stamp", + "description": "Shows how to concatenate several PDF files into a single multi‑page PDF and apply it as a stamp to all pages of another PDF using Aspose.Pdf.Facades.", "tags": [ - "pdf", - "stamp", - "multipage", + "pdf-stamp", + "concatenate", + "aspose-pdf", "facade", - "aspnet" + "multi-page" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Facades.PdfFileEditor.Concatenate", "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.Stamp", - "PdfFileStamp.BindPdf", - "Stamp.BindPdf", - "PdfFileStamp.AddStamp", - "PdfFileStamp.Save" + "Aspose.Pdf.Facades.Stamp" ], "difficulty": "intermediate" }, + { + "filename": "create-multi-page-pdf-stamp.cs", + "title": "Create Multi Page Pdf Stamp", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "custom-font-stamp-branding.cs", - "title": "Create a Custom Font Stamp for PDF Branding", - "description": "Demonstrates how to load a TrueType font and use it to create a branded stamp that is applied to a PDF page with custom positioning, opacity, and background settings.", + "title": "Add Custom Font Stamp to PDF for Branding", + "description": "Shows how to load a TrueType font from a file, create a formatted text stamp using that font, and apply the stamp to a PDF with Aspose.Pdf facades.", "tags": [ "stamp", "custom-font", "branding", - "Aspose.Pdf", - "watermark" + "pdf", + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Text.FontRepository.FindFont", - "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.FontRepository.OpenFont", "Aspose.Pdf.Facades.FormattedText", - "Aspose.Pdf.Facades.Stamp" + "Aspose.Pdf.Facades.Stamp", + "Aspose.Pdf.Facades.Stamp.BindLogo", + "Aspose.Pdf.Facades.Stamp.SetOrigin", + "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", + "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", + "Aspose.Pdf.Facades.PdfFileStamp.Save" ], "difficulty": "intermediate" }, { "filename": "merge-cover-page-background-pdf.cs", + "title": "Merge Cover Page Background Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "merge-cover-page-background.cs", "title": "Merge Cover Page as Background Using PdfFileStamp", - "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfFileStamp and Stamp to apply the first page of a cover PDF as a background on every page of another PDF, producing a merged document.", + "description": "Shows how to use Aspose.Pdf.Facades.PdfFileStamp and Stamp to apply the first page of a cover PDF as a background on all pages of another PDF, creating a merged document.", "tags": [ "pdf", "cover-page", - "stamp", "background", - "merge" + "stamp", + "Aspose.Pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Facades.Stamp", - "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", - "Aspose.Pdf.Facades.PdfFileStamp.Close", - "Aspose.Pdf.Facades.Stamp.BindPdf", - "Aspose.Pdf.Facades.Stamp.IsBackground" + "PdfFileStamp", + "Stamp", + "Stamp.BindPdf", + "Stamp.IsBackground", + "PdfFileStamp.AddStamp", + "PdfFileStamp.Close" ], "difficulty": "beginner" }, + { + "filename": "multi-line-watermark-addnewlinetext.cs", + "title": "Create Multi‑Line Watermark Using AddNewLineText", + "description": "Demonstrates how to build a three‑line watermark with Aspose.Pdf.Facades.FormattedText using AddNewLineText, bind it to a Stamp, and apply it to a PDF document.", + "tags": [ + "watermark", + "formattedtext", + "stamp", + "pdf", + "addnewlinetext" + ], + "apis_used": [ + "Aspose.Pdf.Facades.FormattedText", + "Aspose.Pdf.Facades.Stamp.BindLogo", + "Aspose.Pdf.Facades.Stamp.SetOrigin", + "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.Document", + "Aspose.Pdf.Page" + ], + "difficulty": "intermediate" + }, { "filename": "overlay-disclaimer-pdf-first-page.cs", - "title": "Overlay Disclaimer PDF on First Page Using PdfFileStamp", - "description": "Shows how to use Aspose.Pdf.Facades.PdfFileStamp and Stamp to overlay a legal disclaimer PDF onto the first page of a target PDF document.", + "title": "Overlay Disclaimer Pdf First Page", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "overlay-image-stamp-on-pdf-pages.cs", + "title": "Overlay Image Stamp on PDF Pages", + "description": "Demonstrates how to add an image stamp that overlays existing PDF content by setting the stamp's IsBackground property to false using Aspose.Pdf.Facades.", "tags": [ "pdf", "stamp", - "disclaimer", + "image", "overlay", "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileStamp", "Aspose.Pdf.Facades.Stamp", - "PdfFileStamp.AddStamp", - "Stamp.BindPdf", + "Stamp.BindImage", "Stamp.IsBackground", - "Stamp.Pages", + "PdfFileStamp.AddStamp", "PdfFileStamp.Close" ], + "difficulty": "beginner" + }, + { + "filename": "overlay-legal-disclaimer-with-pdffilestamp.cs", + "title": "Overlay Legal Disclaimer on First Page Using PdfFileStamp", + "description": "Shows how to apply a disclaimer PDF as a background stamp on the first page of multiple target PDFs using Aspose.Pdf's PdfFileStamp facade.", + "tags": [ + "pdf", + "stamp", + "disclaimer", + "aspose", + "facade" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.Facades.Stamp", + "Aspose.Pdf.Facades.Stamp.BindPdf", + "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", + "Aspose.Pdf.Facades.PdfFileStamp.Close" + ], + "difficulty": "intermediate" + }, + { + "filename": "qr-code-and-text-stamp-for-pdf.cs", + "title": "Create QR Code and Text Stamp for PDF Verification", + "description": "Demonstrates how to add a QR‑code image stamp together with a descriptive text stamp to a PDF using Aspose.Pdf Facades.", + "tags": [ + "pdf", + "stamp", + "qrcode", + "facade", + "verification" + ], + "apis_used": [ + "Aspose.Pdf.Facades.Stamp", + "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.Facades.FormattedText", + "Aspose.Pdf.Facades.Stamp.BindImage", + "Aspose.Pdf.Facades.Stamp.BindLogo", + "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", + "Aspose.Pdf.Facades.PdfFileStamp.Save" + ], "difficulty": "intermediate" }, { "filename": "rotate-text-stamp-45-degrees.cs", "title": "Rotate Text Stamp 45 Degrees in PDF", - "description": "Demonstrates creating a TextStamp, setting its rotation to 45 degrees around its center, and applying it to all pages of a PDF using Aspose.Pdf.", + "description": "Shows how to add a TextStamp to a PDF page and rotate it 45° around its centre using the RotateAngle property.", "tags": [ "text-stamp", "rotation", @@ -29254,51 +35603,62 @@ ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextStamp", - "Aspose.Pdf.Text.FontRepository.FindFont", - "Aspose.Pdf.Color" + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "rotate-text-stamp-90-degrees.cs", - "title": "Rotate Text Stamp 90 Degrees and Verify Readability", - "description": "Demonstrates how to rotate a text stamp by 90 degrees using Aspose.Pdf.Facades and then verifies that the stamped text remains readable by extracting it from the resulting PDF.", + "title": "Rotate Text Stamp 90 Degrees", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "rotate-text-stamp-on-pdf-pages.cs", + "title": "Rotate Text Stamp on PDF Pages", + "description": "Demonstrates creating a formatted text stamp, setting its rotation to 90 degrees, and applying it to all pages of a PDF using Aspose.Pdf.Facades.", "tags": [ "stamp", "rotation", - "text", - "verification", - "pdf" + "pdf", + "watermark", + "Aspose.Pdf" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileStamp", - "Aspose.Pdf.Text.FormattedText", + "Aspose.Pdf.Facades.FormattedText", "Aspose.Pdf.Facades.Stamp", - "Aspose.Pdf.Text.TextAbsorber" + "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", + "Aspose.Pdf.Facades.PdfFileStamp.AddStamp", + "Aspose.Pdf.Facades.PdfFileStamp.Save", + "Aspose.Pdf.Facades.Stamp.Rotation", + "Aspose.Pdf.Facades.Stamp.SetOrigin" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "stamp-pdf-with-dynamic-barcode.cs", "title": "Stamp PDF with Dynamic Barcode Using Document ID", - "description": "Demonstrates how to generate a barcode from a PDF's unique identifier and stamp it onto each page using Aspose.Pdf facades.", + "description": "Demonstrates how to generate a barcode from a PDF's unique identifier and stamp it onto the original document using Aspose.Pdf facades.", "tags": [ "barcode", "stamp", "pdf", - "Aspose.Pdf", - "facade" + "facades", + "document-id" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", - "Aspose.Pdf.Facades.Stamp.BindPdf", + "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.Facades.Stamp", "Aspose.Pdf.Forms.BarcodeField", - "Aspose.Pdf.Facades.Stamp.SetOrigin", - "Aspose.Pdf.Facades.Stamp.SetImageSize" + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate" } @@ -29306,33 +35666,50 @@ }, { "name": "facades-texts-and-images", - "file_count": 28, + "file_count": 45, "files": [ "add-background-png-to-all-pdf-pages.cs", + "add-header-image-to-pdf-documents.cs", "add-header-image-to-pdfs.cs", "add-image-and-text-audit-pdf.cs", + "add-image-and-text-to-pdf-with-audit-logging.cs", "add-image-and-text-watermark-to-pdf.cs", "add-image-to-all-pdf-pages-dynamic-position.cs", + "add-image-to-each-pdf-page-dynamic-position.cs", "add-image-to-pdf-get-memorystream.cs", "add-image-to-pdf-page.cs", + "add-image-to-pdf-using-pdffilemend.cs", + "add-image-to-pdf-with-format-validation.cs", "add-image-to-pdf-with-pdffilemend.cs", + "add-image-verify-pdf-byte-size.cs", "add-images-to-pdf-with-error-handling.cs", + "add-multi-line-text-block-page-3.cs", "add-multi-line-text-left-margin-page-3.cs", "add-png-image-to-pdf-page.cs", "add-promotional-text-multiple-pdf-pages.cs", + "add-promotional-text-to-specific-pdf-pages.cs", + "add-text-at-coordinates-verify-position.cs", + "add-tiff-image-to-last-page-pdf.cs", "add-tiff-image-to-last-pdf-page.cs", "add-word-wrapped-footer-to-pdf.cs", + "add-wrapped-footer-to-pdf-pages.cs", "async-add-image-to-pdf.cs", + "batch-add-company-logo-to-pdfs.cs", "batch-add-logo-to-pdf-pages.cs", "batch-extract-images-from-pdfs.cs", + "configure-word-wrapping-bywords-add-long-text.cs", "configure-word-wrapping-bywords.cs", "extract-images-from-pdf-pages-2-5.cs", + "extract-images-from-pdf-pages.cs", "extract-images-from-pdf-to-png.cs", "insert-png-signature-image-every-pdf-page.cs", + "insert-png-signature-image-on-every-pdf-page.cs", "overlay-semi-transparent-gif-on-pdf.cs", "remove-all-images-from-pdf.cs", "remove-image-from-pdf-page.cs", + "replace-jpeg-with-bmp-first-page.cs", "replace-jpeg-with-bmp-using-replaceimage.cs", + "replace-low-res-images-with-high-res-pngs.cs", "replace-lowres-images-with-highres-png.cs", "validate-image-format-before-calling-addimage-to-ensure-only-jpg-png-gif-bmp-or-tiff-files-are-used.cs", "verify-free-text-annotation-coordinates.cs" @@ -29340,53 +35717,49 @@ "required_namespaces": [ "Aspose.Pdf.Facades", "Aspose.Pdf", - "Aspose.Pdf.Text", - "Aspose.Pdf.Annotations", - "Aspose.Pdf.Drawing" + "Aspose.Pdf.Text" ], "key_apis": [ "PdfFileMend", "PdfContentEditor", "PdfExtractor", "PdfFileStamp", - "ImageStamp", - "PdfFileEditor", "TextBuilder", - "TextFragment" + "TextFragment", + "TextFragmentAbsorber" ], "examples": [ { "filename": "add-background-png-to-all-pdf-pages.cs", "title": "Add Background PNG to All PDF Pages", - "description": "Demonstrates how to overlay a PNG image as a full‑page background on every page of a PDF using the PdfFileMend facade.", + "description": "Shows how to load a PDF, retrieve each page's dimensions, and overlay a PNG image as a background on every page using Aspose.Pdf.Facades.", "tags": [ "pdf", "background-image", - "addimage", - "aspose.pdf", + "add-image", + "Aspose.Pdf", "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileMend", + "Aspose.Pdf.Document", + "Aspose.Pdf.Page.Rect", "Aspose.Pdf.Facades.PdfFileMend.BindPdf", "Aspose.Pdf.Facades.PdfFileMend.AddImage", "Aspose.Pdf.Facades.PdfFileMend.Save", - "Aspose.Pdf.Facades.PdfFileMend.Close", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Page.Rect" + "Aspose.Pdf.Facades.PdfFileMend.Close" ], "difficulty": "intermediate" }, { - "filename": "add-header-image-to-pdfs.cs", - "title": "Add Header Image to PDFs", - "description": "Shows how to attach a header image to each page of multiple PDF documents and save the modified files using Aspose.Pdf.Facades.", + "filename": "add-header-image-to-pdf-documents.cs", + "title": "Add Header Image to PDF Documents", + "description": "Shows how to insert a header image into one or more PDF files using Aspose.Pdf.Facades.PdfFileStamp in a console application.", "tags": [ "pdf", "header", "image", - "aspose", - "facade" + "Aspose.Pdf", + "command-line" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileStamp", @@ -29397,64 +35770,88 @@ ], "difficulty": "beginner" }, + { + "filename": "add-header-image-to-pdfs.cs", + "title": "Add Header Image To Pdfs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "add-image-and-text-audit-pdf.cs", + "title": "Add Image And Text Audit Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-image-and-text-to-pdf-with-audit-logging.cs", "title": "Add Image and Text to PDF with Audit Logging", - "description": "Demonstrates how to insert an image and a text annotation into a PDF using Aspose.Pdf facades while logging each operation with timestamps for audit purposes.", + "description": "Loads a PDF, adds an image and a formatted text watermark to page 1, logs each AddImage and AddText operation with timestamp, page number and file name, then saves the modified document.", "tags": [ "pdf", "image", "text", "audit", - "aspose" + "facade" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileMend", "Aspose.Pdf.Facades.PdfFileMend.AddImage", - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.CreateText" + "Aspose.Pdf.Facades.PdfFileMend.AddText", + "Aspose.Pdf.Facades.FormattedText", + "Aspose.Pdf.Facades.EncodingType" ], "difficulty": "intermediate" }, { "filename": "add-image-and-text-watermark-to-pdf.cs", - "title": "Add Image and Text Watermark to PDF Pages", - "description": "Demonstrates how to overlay a semi‑transparent image and centered text as a watermark on each page of a PDF using Aspose.Pdf.", + "title": "Add Image and Semi‑Transparent Text Watermark to PDF", + "description": "Demonstrates how to combine an image and semi‑transparent text into a single stamp and apply it as a watermark on all pages of a PDF using Aspose.Pdf.", "tags": [ "watermark", "image", "text", "pdf", - "aspose" + "Aspose.Pdf" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.ImageStamp", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.FontRepository", - "Aspose.Pdf.Drawing.Color", - "Aspose.Pdf.PageInfo", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.Facades.Stamp", + "Aspose.Pdf.Text.FormattedText", + "Stamp.BindImage", + "Stamp.BindLogo", + "Stamp.SetOrigin", + "PdfFileStamp.AddStamp" ], "difficulty": "intermediate" }, { "filename": "add-image-to-all-pdf-pages-dynamic-position.cs", - "title": "Add Image to All PDF Pages with Dynamic Positioning", - "description": "Demonstrates loading a PDF, calculating each page's dimensions, and placing an image at the bottom‑right corner of every page using the PdfFileMend facade.", + "title": "Add Image To All Pdf Pages Dynamic Position", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-image-to-each-pdf-page-dynamic-position.cs", + "title": "Add Image to Each PDF Page with Dynamic Positioning", + "description": "Loads a PDF, calculates each page's dimensions, and places a PNG image in the bottom‑right corner of every page using the PdfFileMend facade.", "tags": [ "pdf", "image", - "coordinates", + "positioning", "Aspose.Pdf", "facade" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfFileMend", "Aspose.Pdf.Page", + "Aspose.Pdf.Facades.PdfFileMend", "Aspose.Pdf.Facades.PdfFileMend.AddImage", "Aspose.Pdf.Facades.PdfFileMend.Save" ], @@ -29462,52 +35859,62 @@ }, { "filename": "add-image-to-pdf-get-memorystream.cs", - "title": "Add Image to PDF and Return MemoryStream", - "description": "Shows how to bind an existing PDF with Aspose.Pdf.Facades.PdfFileMend, add an image to the first page, and return the modified document as a MemoryStream ready for an HTTP response.", + "title": "Add Image To Pdf Get Memorystream", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-image-to-pdf-page.cs", + "title": "Add Image to Specific PDF Page", + "description": "Shows how to use Aspose.Pdf.Facades to insert an image onto a chosen page of a PDF at given rectangle coordinates via a reusable helper method.", "tags": [ "pdf", "image", - "memorystream", - "aspose", - "facade" + "add-image", + "aspose-pdf", + "facades" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileMend", "Aspose.Pdf.Facades.PdfFileMend.BindPdf", "Aspose.Pdf.Facades.PdfFileMend.AddImage", - "Aspose.Pdf.Facades.PdfFileMend.Save" + "Aspose.Pdf.Facades.PdfFileMend.Save", + "Aspose.Pdf.Facades.PdfFileMend.Close" ], "difficulty": "intermediate" }, { - "filename": "add-image-to-pdf-page.cs", - "title": "Add Image to Specific PDF Page", - "description": "Shows how to insert an image onto a chosen PDF page at given rectangle coordinates using Aspose.Pdf's PdfFileMend facade.", + "filename": "add-image-to-pdf-using-pdffilemend.cs", + "title": "Add Image to PDF Using PdfFileMend with Try‑Finally", + "description": "Demonstrates how to bind a PDF, insert an image on a page, save the result, and guarantee that PdfFileMend is closed using a try‑finally block.", "tags": [ - "image", "pdf", - "Aspose", - "add-image", - "coordinates" + "image", + "Aspose.Pdf", + "PdfFileMend", + "resource‑cleanup" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileMend", + "Aspose.Pdf.Facades.PdfFileMend.BindPdf", "Aspose.Pdf.Facades.PdfFileMend.AddImage", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfFileMend.Save", + "Aspose.Pdf.Facades.PdfFileMend.Close" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "add-image-to-pdf-with-pdffilemend.cs", - "title": "Add Image to PDF Using PdfFileMend with Try‑Finally", - "description": "Demonstrates how to bind a PDF, add an image stamp to a page, save the modified document, and guarantee resource cleanup with a try‑finally block that calls Close().", + "filename": "add-image-to-pdf-with-format-validation.cs", + "title": "Add Image to PDF with Format Validation", + "description": "Demonstrates how to validate an image's file format and then add the image to a PDF page using Aspose.Pdf.Facades.", "tags": [ "pdf", "image", - "aspose-pdf", - "pdf-modification", - "resource-management" + "validation", + "Aspose", + "add-image" ], "apis_used": [ "PdfFileMend", @@ -29518,162 +35925,240 @@ ], "difficulty": "beginner" }, + { + "filename": "add-image-to-pdf-with-pdffilemend.cs", + "title": "Add Image To Pdf With Pdffilemend", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-image-verify-pdf-byte-size.cs", + "title": "Add Image to PDF and Verify Byte Size Increase", + "description": "Creates a minimal PDF, binds it with PdfFileMend, adds a PNG image, saves the modified document, and asserts that the resulting PDF byte size is larger than the original.", + "tags": [ + "pdf", + "image", + "size", + "unit-test", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfFileMend", + "Aspose.Pdf.Facades.PdfFileMend.BindPdf", + "Aspose.Pdf.Facades.PdfFileMend.AddImage", + "Aspose.Pdf.Facades.PdfFileMend.Save" + ], + "difficulty": "intermediate" + }, { "filename": "add-images-to-pdf-with-error-handling.cs", "title": "Add Images to PDF with Error Handling", - "description": "Demonstrates how to insert multiple images into a PDF using Aspose.Pdf's PdfFileMend class while catching and logging any exceptions that occur for individual image files.", + "description": "Demonstrates how to insert multiple images into a PDF using Aspose.Pdf's PdfFileMend facade while handling missing files and AddImage failures gracefully.", "tags": [ "pdf", "image", "error-handling", "Aspose.Pdf", - "PdfFileMend" + "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileMend", - "Aspose.Pdf.Facades.PdfFileMend.AddImage", - "Aspose.Pdf.Facades.PdfFileMend.Close" + "PdfFileMend", + "PdfFileMend.AddImage", + "PdfFileMend.Close" ], "difficulty": "intermediate" }, { - "filename": "add-multi-line-text-left-margin-page-3.cs", - "title": "Add Multi‑Line Text with Custom Line Spacing to Left Margin of Page 3", - "description": "Demonstrates how to insert a multi‑line text block with custom line spacing into the left margin of the third page of a PDF using the Aspose.Pdf Facades API.", + "filename": "add-multi-line-text-block-page-3.cs", + "title": "Add Multi‑Line Text Block with Custom Line Spacing to Page 3", + "description": "Demonstrates how to use the PdfFileMend facade to bind an existing PDF, create a multi‑line TextParagraph with custom line spacing, and place it at the left margin of the third page.", "tags": [ "text", - "margin", - "line-spacing", "pdf", - "facades" + "facade", + "line-spacing", + "aspnet" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileMend", - "Aspose.Pdf.Facades.PdfFileMend.BindPdf", - "Aspose.Pdf.Facades.PdfFileMend.Save", "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextParagraph", - "Aspose.Pdf.Text.TextBuilder", - "Aspose.Pdf.Text.TextFormattingOptions" + "Aspose.Pdf.Text.TextFormattingOptions", + "Aspose.Pdf.Facades.TextBuilder" ], "difficulty": "intermediate" }, + { + "filename": "add-multi-line-text-left-margin-page-3.cs", + "title": "Add Multi Line Text Left Margin Page 3", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "add-png-image-to-pdf-page.cs", - "title": "Add PNG Image to PDF Page Using PdfFileMend", - "description": "Demonstrates how to bind an existing PDF with PdfFileMend, insert a PNG image onto page two at specific coordinates, and save the modified document.", + "title": "Add PNG Image to Specific PDF Page using PdfFileMend", + "description": "Demonstrates how to bind an existing PDF with PdfFileMend, insert a PNG image onto page two at defined coordinates, and save the modified document.", "tags": [ "pdf", "image", "Aspose.Pdf", "PdfFileMend", - "add-image" + "C#" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileMend", "Aspose.Pdf.Facades.PdfFileMend.BindPdf", "Aspose.Pdf.Facades.PdfFileMend.AddImage", "Aspose.Pdf.Facades.PdfFileMend.Save", - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfFileMend.Close" ], "difficulty": "beginner" }, { "filename": "add-promotional-text-multiple-pdf-pages.cs", - "title": "Add Promotional Text to Multiple PDF Pages", - "description": "Demonstrates inserting the same promotional text on pages 3, 5, and 7 of a PDF using PdfFileMend.AddText with an array of page numbers.", + "title": "Add Promotional Text Multiple Pdf Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-promotional-text-to-specific-pdf-pages.cs", + "title": "Add Promotional Text to Specific PDF Pages", + "description": "Shows how to insert the same promotional message on pages 3, 5, and 7 of a PDF using Aspose.Pdf's Facade API with AddStamp.", "tags": [ "pdf", + "watermark", "text", - "add-text", - "multiple-pages", - "Aspose.Pdf" + "facade", + "stamp" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileMend", - "Aspose.Pdf.Facades.PdfFileMend.BindPdf", - "Aspose.Pdf.Facades.PdfFileMend.AddText", - "Aspose.Pdf.Facades.PdfFileMend.Save", - "Aspose.Pdf.Text.FormattedText" + "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.Facades.Stamp", + "Aspose.Pdf.Text.FormattedText", + "Aspose.Pdf.Text.EncodingType", + "Aspose.Pdf.Facades.Stamp.BindLogo", + "Aspose.Pdf.Facades.PdfFileStamp.AddStamp" + ], + "difficulty": "intermediate" + }, + { + "filename": "add-text-at-coordinates-verify-position.cs", + "title": "Add Text at Specific Coordinates and Verify Position", + "description": "Creates a blank PDF, adds a text fragment at defined X/Y coordinates using TextBuilder, saves and reloads the file, then uses TextFragmentAbsorber to confirm the text appears at the expected position.", + "tags": [ + "text", + "coordinates", + "pdf", + "unit-test", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.Position", + "Aspose.Pdf.Facades.TextBuilder", + "Aspose.Pdf.Text.TextFragmentAbsorber" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "add-tiff-image-to-last-pdf-page.cs", - "title": "Add TIFF Image to Last Page of PDF with PdfFileMend", - "description": "Demonstrates using PdfFileMend to bind an existing PDF, determine its last page, and embed a TIFF image onto that page without altering the existing content.", + "filename": "add-tiff-image-to-last-page-pdf.cs", + "title": "Add TIFF Image to Last Page of PDF using PdfFileMend", + "description": "Demonstrates how to use Aspose.Pdf.Facades.PdfFileMend to embed a TIFF image onto the final page of an existing PDF without altering the original content.", "tags": [ - "PdfFileMend", - "AddImage", - "TIFF", - "last-page", - "Aspose.Pdf" + "pdf", + "tiff", + "image", + "pdffilemend", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileMend", "Aspose.Pdf.Facades.PdfFileMend.BindPdf", "Aspose.Pdf.Facades.PdfFileMend.AddImage", "Aspose.Pdf.Facades.PdfFileMend.Save", - "Aspose.Pdf.Facades.PdfFileMend.Close", "Aspose.Pdf.Document.Pages.Count" ], "difficulty": "beginner" }, + { + "filename": "add-tiff-image-to-last-pdf-page.cs", + "title": "Add Tiff Image To Last Pdf Page", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "add-word-wrapped-footer-to-pdf.cs", + "title": "Add Word Wrapped Footer To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-wrapped-footer-to-pdf-pages.cs", "title": "Add Word‑by‑Word Wrapped Footer to PDF Pages", - "description": "Shows how to add a formatted text footer that automatically wraps word‑by‑word across the page width using Aspose.Pdf.Facades.", + "description": "Shows how to use Aspose.Pdf Facade API to add a formatted footer that wraps word‑by‑word across the page width on every PDF page.", "tags": [ "footer", "formatted-text", - "word-wrapping", + "pdf", "Aspose.Pdf", - "PdfFileStamp" + "word-wrap" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileStamp", + "Aspose.Pdf.Document", + "Aspose.Pdf.PageInfo", "Aspose.Pdf.Facades.FormattedText", - "Aspose.Pdf.Facades.PdfFileStamp.BindPdf", - "Aspose.Pdf.Facades.PdfFileStamp.AddFooter", - "Aspose.Pdf.Facades.PdfFileStamp.Save" + "Aspose.Pdf.Facades.PdfFileMend", + "PdfFileMend.AddText", + "PdfFileMend.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "async-add-image-to-pdf.cs", - "title": "Asynchronously Add Image to PDF with PdfFileMend", - "description": "Shows how to add an image to a specific page of a PDF file asynchronously by wrapping the synchronous PdfFileMend operations in Task.Run, including argument validation and cancellation support.", + "title": "Asynchronously Add Image to PDF Using PdfFileMend", + "description": "Demonstrates how to modify a PDF on a background thread by adding an image to the first page with Aspose.Pdf's PdfFileMend, wrapped in Task.Run for non‑blocking execution.", "tags": [ - "pdf", "async", + "pdf", "image", - "Aspose.Pdf", - "PdfFileMend" + "Aspose", + "csharp" ], "apis_used": [ - "PdfFileMend", - "PdfFileMend.BindPdf", - "PdfFileMend.AddImage", - "PdfFileMend.Save" + "Aspose.Pdf.Facades.PdfFileMend", + "Aspose.Pdf.Facades.PdfFileMend.BindPdf", + "Aspose.Pdf.Facades.PdfFileMend.AddImage", + "Aspose.Pdf.Facades.PdfFileMend.Save", + "Aspose.Pdf.Facades.PdfFileMend.Close" ], "difficulty": "intermediate" }, { - "filename": "batch-add-logo-to-pdf-pages.cs", - "title": "Batch Add Logo to PDF Pages", - "description": "Shows how to iterate through a folder of PDF files and overlay a PNG company logo at the top‑right corner of each page using Aspose.Pdf.", + "filename": "batch-add-company-logo-to-pdfs.cs", + "title": "Batch Add Company Logo to PDFs", + "description": "Shows how to process all PDF files in a folder and overlay a PNG company logo at the top‑right corner of each page using Aspose.Pdf.Facades.", "tags": [ "pdf", "logo", - "batch", + "batch-processing", "image", "Aspose.Pdf" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileMend", "Aspose.Pdf.Facades.PdfFileMend.BindPdf", "Aspose.Pdf.Facades.PdfFileMend.AddImage", @@ -29682,10 +36167,18 @@ ], "difficulty": "intermediate" }, + { + "filename": "batch-add-logo-to-pdf-pages.cs", + "title": "Batch Add Logo To Pdf Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "batch-extract-images-from-pdfs.cs", - "title": "Batch Extract Images from PDFs with Page‑Based Naming", - "description": "The example splits each PDF into single‑page files, extracts all images from each page, and saves them as PNG files named with the original PDF name, page number, and image index.", + "title": "Batch Extract Images from PDFs with Page and Index Naming", + "description": "Shows how to process multiple PDF files, extract images from each page using Aspose.Pdf.Facades.PdfExtractor, and save them with filenames that contain the original PDF name, page number, and image index.", "tags": [ "pdf", "image-extraction", @@ -29694,48 +36187,69 @@ "csharp" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileEditor.SplitToPages", - "Aspose.Pdf.Facades.PdfExtractor.BindPdf", - "Aspose.Pdf.Facades.PdfExtractor.ExtractImage", - "Aspose.Pdf.Facades.PdfExtractor.HasNextImage", - "Aspose.Pdf.Facades.PdfExtractor.GetNextImage" + "Aspose.Pdf.Facades.PdfExtractor", + "PdfExtractor.BindPdf", + "PdfExtractor.StartPage", + "PdfExtractor.EndPage", + "PdfExtractor.ExtractImage", + "PdfExtractor.HasNextImage", + "PdfExtractor.GetNextImage", + "PdfExtractor.Document" ], "difficulty": "intermediate" }, { - "filename": "configure-word-wrapping-bywords.cs", - "title": "Configure Word Wrapping ByWords and Add Wrapped Text", - "description": "Demonstrates enabling word‑wrap, setting the wrap mode to ByWords, and adding a long paragraph that automatically wraps within a defined rectangle using the PdfFileMend facade.", + "filename": "configure-word-wrapping-bywords-add-long-text.cs", + "title": "Configure Word Wrapping ByWords and Add Long Text to PDF", + "description": "The example shows how to enable word wrapping on a PDF using PdfFileMend, set the wrap mode to ByWords, and add a long paragraph that automatically wraps within the defined width.", "tags": [ - "word-wrap", - "text-wrapping", - "pdf", + "word-wrapping", + "pdf-text", "Aspose.Pdf", - "PdfFileMend" + "PdfFileMend", + "FormattedText" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileMend", - "Aspose.Pdf.Facades.FormattedText", - "PdfFileMend.BindPdf", - "PdfFileMend.AddText", - "PdfFileMend.Save" + "Aspose.Pdf.Facades.PdfFileMend.IsWordWrap", + "Aspose.Pdf.Facades.PdfFileMend.WrapMode", + "Aspose.Pdf.Facades.WordWrapMode", + "Aspose.Pdf.Text.FormattedText", + "Aspose.Pdf.Facades.PdfFileMend.AddText", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" + }, + { + "filename": "configure-word-wrapping-bywords.cs", + "title": "Configure Word Wrapping Bywords", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "extract-images-from-pdf-pages-2-5.cs", - "title": "Extract Images from PDF Pages 2‑5", - "description": "Shows how to extract all images from a specific page range in a PDF using Aspose.Pdf.Facades.PdfExtractor and save them to a temporary directory.", + "title": "Extract Images From Pdf Pages 2 5", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-images-from-pdf-pages.cs", + "title": "Extract Images from Specific PDF Pages", + "description": "Shows how to use Aspose.Pdf.Facades.PdfExtractor to extract all images from pages 2‑5 of a PDF and save them as PNG files in a temporary directory.", "tags": [ "pdf", "image-extraction", - "aspose-pdf", - "page-range", - "temporary-directory" + "aspose", + "csharp", + "facade" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfExtractor", + "PdfExtractor", "PdfExtractor.BindPdf", "PdfExtractor.StartPage", "PdfExtractor.EndPage", @@ -29743,12 +36257,12 @@ "PdfExtractor.HasNextImage", "PdfExtractor.GetNextImage" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "extract-images-from-pdf-to-png.cs", - "title": "Extract Images from PDF to PNG", - "description": "Shows how to use Aspose.Pdf.Facades.PdfExtractor to extract every image from a PDF document and save each one as an individual PNG file.", + "title": "Extract Images from PDF to PNG using PdfExtractor", + "description": "Demonstrates how to use Aspose.Pdf's PdfExtractor to extract all images from a PDF document and save each as an individual PNG file.", "tags": [ "pdf", "image-extraction", @@ -29757,7 +36271,7 @@ "csharp" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfExtractor", + "PdfExtractor", "PdfExtractor.BindPdf", "PdfExtractor.ExtractImage", "PdfExtractor.HasNextImage", @@ -29767,124 +36281,150 @@ }, { "filename": "insert-png-signature-image-every-pdf-page.cs", + "title": "Insert Png Signature Image Every Pdf Page", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "insert-png-signature-image-on-every-pdf-page.cs", "title": "Insert PNG Signature Image on Every PDF Page", - "description": "Shows how to use PdfFileMend to add a PNG signature image to the bottom‑left corner of each page in a PDF document.", + "description": "Demonstrates how to use PdfFileMend to add a PNG signature image to the bottom‑left corner of each page in a PDF and save the modified document.", "tags": [ "pdf", - "signature", "image", + "signature", "add-image", - "Aspose.Pdf" + "facade" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileMend", "Aspose.Pdf.Facades.PdfFileMend.BindPdf", "Aspose.Pdf.Facades.PdfFileMend.AddImage", - "Aspose.Pdf.Facades.PdfFileMend.Save" + "Aspose.Pdf.Facades.PdfFileMend.Save", + "Aspose.Pdf.Facades.PdfFileMend.Document" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "overlay-semi-transparent-gif-on-pdf.cs", - "title": "Overlay Semi-Transparent GIF onto PDF Image", - "description": "Demonstrates how to overlay a semi‑transparent GIF onto an existing PDF page that already contains a PNG, using CompositingParameters with BlendMode.Normal.", + "title": "Overlay Semi-Transparent GIF on PDF", + "description": "Demonstrates how to place a semi‑transparent GIF over an existing PNG in a PDF using CompositingParameters with the PdfFileMend facade.", "tags": [ - "gif", "overlay", + "gif", "pdf", "compositing", - "facade" + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfFileMend", - "Aspose.Pdf.Facades.CompositingParameters", - "Aspose.Pdf.Facades.BlendMode", - "Aspose.Pdf.Facades.PdfFileMend.AddImage", - "Aspose.Pdf.Facades.PdfFileMend.BindPdf", - "Aspose.Pdf.Facades.PdfFileMend.Save" + "PdfFileMend", + "PdfFileMend.BindPdf", + "PdfFileMend.AddImage", + "CompositingParameters", + "BlendMode" ], "difficulty": "intermediate" }, { "filename": "remove-all-images-from-pdf.cs", - "title": "Remove All Images from a PDF", - "description": "Shows how to load a PDF, delete every image on all pages using Aspose.Pdf.Facades, and save the modified document to a new file.", + "title": "Remove All Images from PDF", + "description": "Shows how to delete every image in a PDF using Aspose.Pdf's PdfContentEditor facade and save the modified document to a new file.", "tags": [ "pdf", "image-removal", - "aspose.pdf", + "Aspose.Pdf", "facade", "csharp" ], "apis_used": [ "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.DeleteImage", - "Aspose.Pdf.Facades.PdfContentEditor.Save" + "PdfContentEditor.BindPdf", + "PdfContentEditor.DeleteImage", + "PdfContentEditor.Save" ], "difficulty": "beginner" }, { "filename": "remove-image-from-pdf-page.cs", - "title": "Remove Image from PDF Page using Aspose.Pdf", - "description": "Demonstrates how to delete a specific image identified by its object ID from a given page of a PDF document using Aspose.Pdf's PdfContentEditor.", + "title": "Remove Image from Specific PDF Page", + "description": "Demonstrates how to delete a particular image identified by its object ID from page four of a PDF using Aspose.Pdf's PdfContentEditor.", "tags": [ "pdf", - "image-removal", + "image", + "remove", "aspose", - "csharp", - "facade" + "csharp" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.DeleteImage", - "Aspose.Pdf.Facades.PdfContentEditor.Save" + "PdfContentEditor", + "PdfContentEditor.BindPdf", + "PdfContentEditor.DeleteImage", + "PdfContentEditor.Save" ], "difficulty": "beginner" }, { - "filename": "replace-jpeg-with-bmp-using-replaceimage.cs", - "title": "Replace JPEG with Higher‑Resolution BMP Using ReplaceImage", - "description": "Demonstrates how to create a PDF with an embedded JPEG, generate a higher‑resolution BMP in memory, and replace the original image on the first page using Aspose.Pdf.Facades.PdfContentEditor.ReplaceImage.", + "filename": "replace-jpeg-with-bmp-first-page.cs", + "title": "Replace JPEG with High‑Resolution BMP on First PDF Page", + "description": "Demonstrates how to replace the first image on page one of a PDF with a higher‑resolution BMP using Aspose.Pdf's PdfContentEditor.", "tags": [ + "replace-image", "pdf", - "image-replacement", "bmp", - "jpeg", - "aspose-pdf" + "aspose-pdf", + "content-editor" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Image", "Aspose.Pdf.Facades.PdfContentEditor", "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.ReplaceImage" + "Aspose.Pdf.Facades.PdfContentEditor.ReplaceImage", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "replace-lowres-images-with-highres-png.cs", + "filename": "replace-jpeg-with-bmp-using-replaceimage.cs", + "title": "Replace Jpeg With Bmp Using Replaceimage", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "replace-low-res-images-with-high-res-pngs.cs", "title": "Replace Low-Resolution Images with High-Resolution PNGs in PDF", - "description": "Shows how to iterate through PDF pages and replace each embedded image with a high‑resolution PNG using Aspose.Pdf's PdfContentEditor.", + "description": "Demonstrates how to iterate through each page of a PDF, detect embedded images, and replace low‑resolution images with corresponding high‑resolution PNG files using Aspose.Pdf facades.", "tags": [ "pdf", "image-replacement", "high-resolution", - "aspose.pdf", - "c#" + "Aspose.Pdf", + "facade" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.ReplaceImage", - "Aspose.Pdf.Facades.PdfContentEditor.Save" + "Aspose.Pdf.Facades.PdfExtractor", + "PdfContentEditor.BindPdf", + "PdfContentEditor.ReplaceImage", + "PdfContentEditor.Save", + "PdfExtractor.ExtractImage", + "PdfExtractor.HasNextImage", + "PdfExtractor.GetNextImage" ], "difficulty": "intermediate" }, + { + "filename": "replace-lowres-images-with-highres-png.cs", + "title": "Replace Lowres Images With Highres Png", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "validate-image-format-before-calling-addimage-to-ensure-only-jpg-png-gif-bmp-or-tiff-files-are-used.cs", "title": "Validate Image Format Before Calling Addimage To Ensure Only Jpg Png Gif Bmp Or Tiff Files Are Used", @@ -29895,76 +36435,89 @@ }, { "filename": "verify-free-text-annotation-coordinates.cs", - "title": "Verify Free Text Annotation Coordinates with PdfContentEditor", - "description": "Shows how to add a free‑text annotation to a PDF using PdfContentEditor and unit‑test that its rectangle matches the expected X and Y coordinates.", - "tags": [ - "pdf", - "annotation", - "unittest", - "coordinates", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfContentEditor", - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfContentEditor.BindPdf", - "Aspose.Pdf.Facades.PdfContentEditor.CreateFreeText", - "Aspose.Pdf.Facades.PdfContentEditor.Save", - "Aspose.Pdf.Annotations.FreeTextAnnotation", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Rectangle" - ], - "difficulty": "intermediate" + "title": "Verify Free Text Annotation Coordinates", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" } ] }, { "name": "facades-xmp-metadata", - "file_count": 44, + "file_count": 72, "files": [ "add-creator-metadata-to-pdf-document.cs", "add-minimal-xmp-metadata-fallback.cs", "add-timestamp-to-pdf-xmp-metadata.cs", + "add-xmp-timestamp-to-pdf.cs", "benchmark-xmp-metadata-extraction.cs", + "bind-pdf-byte-array-to-pdfxmpmetadata.cs", "clear-all-xmp-metadata.cs", + "clear-xmp-metadata-pdf.cs", "compress-pdf-read-xmp-metadata.cs", "copy-xmp-metadata-and-merge-pdfs.cs", + "create-pdf-with-xmp-metadata.cs", "create-xmp-metadata-pdf.cs", "decrypt-encrypted-pdf-with-pdffilesecurity.cs", "decrypt-update-creator-reencrypt-pdf.cs", + "decrypt-update-creatortool-reencrypt-pdf.cs", + "detect-and-modify-xmp-metadata.cs", "detect-xmp-metadata-in-pdf.cs", "disable-baseurl-injection-for-pdf-generation.cs", + "disable-baseurl-injection-html-to-pdf.cs", + "export-pdf-xmp-metadata-to-json.cs", + "export-xmp-metadata-from-pdf.cs", "export-xmp-metadata-to-json.cs", "export-xmp-metadata-to-sidecar.cs", "extract-audit-original-xmp-metadata.cs", "extract-xmp-metadata-from-pdf-byte-array.cs", + "extract-xmp-metadata-from-pdf.cs", "extract-xmp-metadata-to-dictionary.cs", + "insert-pages-update-xmp-metadata.cs", "insert-pdf-pages-update-xmp-metadata.cs", "list-xmp-namespaces-in-pdf.cs", + "load-encrypted-pdf-decrypt-save.cs", "load-pdf-retrieve-xmp-metadata.cs", + "log-original-xmp-metadata.cs", "log-xmp-metadata-size-before-after-modification.cs", "modify-xmp-creator-property.cs", "nightly-creator-metadata-refresh.cs", + "persist-custom-xmp-metadata-pdf.cs", "preserve-xmp-metadata-when-splitting-pdf.cs", + "read-xmp-metadata-from-large-pdf.cs", "read-xmp-metadata-from-pdf-unc.cs", "read-xmp-metadata-from-pdf.cs", + "read-xmp-metadata-from-pdf__v2.cs", + "refresh-creatortool-metadata-for-pdfs.cs", "remove-nickname-from-pdf-xmp-metadata.cs", + "remove-nickname-from-xmp-metadata.cs", "remove-xmp-metadata-from-pdf.cs", "replace-pdf-xmp-metadata.cs", "retrieve-xmp-metadata-from-pdf.cs", "set-baseurl-in-pdf-xmp-metadata.cs", + "set-creator-tool-xmp-metadata.cs", + "set-default-creator-metadata.cs", "set-pdf-creator-metadata-default.cs", + "set-pdf-creator-metadata.cs", "set-xmp-creatortool-to-app-version.cs", + "set-xmp-metadata-conditionally-with-warnings.cs", "set-xmp-nickname-property.cs", "set-xmp-property-if-empty.cs", + "split-pdf-preserve-xmp-metadata.cs", + "store-extract-unicode-nickname.cs", "update-multiple-xmp-properties-atomically.cs", - "update-pdf-creator-metadata.cs", + "update-multiple-xmp-properties.cs", + "update-pdf-creator-tool-metadata.cs", "update-pdf-info-and-xmp-metadata.cs", "update-xmp-baseurl.cs", + "update-xmp-metadata-and-save-pdf.cs", "update-xmp-property-in-pdf.cs", "validate-mandatory-xmp-metadata.cs", + "validate-xmp-metadata-against-the-official-xmp-schema-using-an-xml-schema-validator.cs", "validate-xmp-metadata-in-pdf.cs", "verify-basepath-uri-escaping.cs", + "verify-baseurl-escaping.cs", "write-verify-xmp-metadata-pdf.cs" ], "required_namespaces": [ @@ -29979,40 +36532,31 @@ "PdfFileEditor", "TextFragment", "HtmlLoadOptions", + "PdfExtractor", "PdfFileSecurity" ], "examples": [ { "filename": "add-creator-metadata-to-pdf-document.cs", - "title": "Add Creator Metadata to PDF Document", - "description": "Shows how to add or update the Creator XMP metadata of an Aspose.Pdf.Document by using the PdfFileInfo facade within a reusable extension method.", - "tags": [ - "creator", - "metadata", - "extension-method", - "aspose-pdf", - "facade" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfFileInfo.BindPdf", - "Aspose.Pdf.Facades.PdfFileInfo.Creator" - ], - "difficulty": "beginner" + "title": "Add Creator Metadata To Pdf Document", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "add-minimal-xmp-metadata-fallback.cs", "title": "Add Minimal XMP Metadata Fallback to PDF", - "description": "Demonstrates binding a PDF to the PdfXmpMetadata facade, checking for existing XMP metadata, and inserting basic title, creator, and creation date when none is present before saving the file.", + "description": "Shows how to detect missing XMP metadata in a PDF and inject a minimal set of metadata entries using Aspose.Pdf.", "tags": [ "xmp", "metadata", "pdf", "fallback", - "aspose-pdf" + "aspose" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfXmpMetadata", "Aspose.Pdf.Facades.PdfXmpMetadata.BindPdf", "Aspose.Pdf.Facades.PdfXmpMetadata.GetXmpMetadata", @@ -30023,8 +36567,16 @@ }, { "filename": "add-timestamp-to-pdf-xmp-metadata.cs", - "title": "Add Timestamp to PDF XMP Metadata", - "description": "Shows how to embed a custom ISO‑8601 timestamp into the XMP metadata of a PDF using Aspose.Pdf.", + "title": "Add Timestamp To Pdf Xmp Metadata", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-xmp-timestamp-to-pdf.cs", + "title": "Add XMP Timestamp to PDF during Generation", + "description": "Shows how to create a PDF with Aspose.Pdf, add a page with sample text, and automatically embed an XMP ModifyDate timestamp into the document metadata.", "tags": [ "xmp", "metadata", @@ -30034,84 +36586,102 @@ ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Facades.PdfXmpMetadata", - "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Facades.PdfXmpMetadata.BindPdf", - "Aspose.Pdf.Facades.PdfXmpMetadata.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Facades.PdfXmpMetadata.Add" ], "difficulty": "beginner" }, { "filename": "benchmark-xmp-metadata-extraction.cs", - "title": "Benchmark XMP Metadata Extraction from Large PDF", - "description": "Shows how to measure the time required to read XMP metadata from a large PDF using Aspose.Pdf.Facades. Includes a warm‑up run and a Stopwatch‑based benchmark.", + "title": "Benchmark Xmp Metadata Extraction", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "bind-pdf-byte-array-to-pdfxmpmetadata.cs", + "title": "Bind PDF Byte Array to PdfXmpMetadata and Extract XMP", + "description": "Demonstrates how to create a PDF in memory, bind it from a byte array to the PdfXmpMetadata facade, and retrieve the XMP metadata as a byte array.", "tags": [ + "pdf", "xmp", "metadata", - "pdf", - "benchmark", - "aspose-pdf" + "byte-array", + "aspose" ], "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Pages.Add", + "Aspose.Pdf.Document.Save", "Aspose.Pdf.Facades.PdfXmpMetadata", - "PdfXmpMetadata.BindPdf", - "PdfXmpMetadata.GetXmpMetadata" + "Aspose.Pdf.Facades.PdfXmpMetadata.BindPdf", + "Aspose.Pdf.Facades.PdfXmpMetadata.GetXmpMetadata" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "clear-all-xmp-metadata.cs", - "title": "Clear All XMP Metadata from PDF", - "description": "Shows how to remove every XMP metadata entry from a PDF while keeping the mandatory PDF schema header using Aspose.Pdf.", + "title": "Clear All Xmp Metadata", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "clear-xmp-metadata-pdf.cs", + "title": "Clear All XMP Metadata from PDF while Preserving Header", + "description": "Demonstrates how to remove all XMP metadata from a PDF using Aspose.Pdf.Facades, keeping only the mandatory PDF schema header.", "tags": [ "xmp", "metadata", "pdf", - "clear", - "aspose" + "aspose", + "clearing" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfXmpMetadata", - "PdfXmpMetadata.BindPdf", - "PdfXmpMetadata.Clear", - "PdfXmpMetadata.Save" + "Aspose.Pdf.Facades.PdfXmpMetadata.BindPdf", + "Aspose.Pdf.Facades.PdfXmpMetadata.Clear", + "Aspose.Pdf.Facades.PdfXmpMetadata.Save", + "Aspose.Pdf.Facades.PdfXmpMetadata.Dispose" ], "difficulty": "beginner" }, { "filename": "compress-pdf-read-xmp-metadata.cs", - "title": "Compress PDF with High Compression and Read XMP Metadata", - "description": "The example compresses a PDF using high‑compression settings via OptimizationOptions and then extracts the XMP metadata from the compressed file using the PdfXmpMetadata facade.", + "title": "Compress PDF with High Settings and Read XMP Metadata", + "description": "Demonstrates compressing a PDF using high‑compression optimization options and then extracting its XMP metadata as an XML string.", "tags": [ - "pdf compression", - "xmp metadata", + "pdf-compression", + "xmp-metadata", "optimization", - "aspose.pdf", - "facades" + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Optimization.OptimizationOptions.All", - "Aspose.Pdf.Optimization.OptimizationOptions.ImageCompressionOptions", - "Aspose.Pdf.Document.OptimizeResources", - "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Optimization.OptimizationOptions", + "Document.OptimizeResources", + "Document.Save", "Aspose.Pdf.Facades.PdfXmpMetadata", - "Aspose.Pdf.Facades.PdfXmpMetadata.BindPdf", - "Aspose.Pdf.Facades.PdfXmpMetadata.GetXmpMetadata" + "PdfXmpMetadata.BindPdf", + "PdfXmpMetadata.GetXmpMetadata" ], "difficulty": "intermediate" }, { "filename": "copy-xmp-metadata-and-merge-pdfs.cs", "title": "Copy XMP Metadata and Merge PDFs", - "description": "Shows how to extract XMP metadata from a source PDF with PdfXmpMetadata, apply it to a target PDF, and then merge the source pages into the target document.", + "description": "Shows how to extract XMP metadata from a source PDF with the PdfXmpMetadata facade, apply it to another PDF, and then merge the pages into a new document.", "tags": [ "xmp", "metadata", - "pdf-merge", - "aspose-pdf", + "pdf", + "merge", "facade" ], "apis_used": [ @@ -30126,72 +36696,74 @@ "difficulty": "intermediate" }, { - "filename": "create-xmp-metadata-pdf.cs", - "title": "Create XMP Metadata and Embed in PDF", - "description": "Shows how to generate a PDF, register XMP namespaces, add custom XMP metadata entries, and save the document with the metadata automatically embedded.", + "filename": "create-pdf-with-xmp-metadata.cs", + "title": "Create PDF with XMP Metadata", + "description": "Shows how to generate a new PDF, register XMP namespaces, add custom XMP metadata entries, and save the document using Aspose.Pdf.", "tags": [ + "pdf", "xmp", "metadata", - "pdf", - "aspose.pdf", + "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Document.Pages.Add", "Aspose.Pdf.Document.Metadata.RegisterNamespaceUri", "Aspose.Pdf.Document.Metadata (indexer)", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, + { + "filename": "create-xmp-metadata-pdf.cs", + "title": "Create Xmp Metadata Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "decrypt-encrypted-pdf-with-pdffilesecurity.cs", - "title": "Decrypt Encrypted PDF with PdfFileSecurity Facade", - "description": "Shows how to bind an encrypted PDF using PdfFileSecurity, handle InvalidPasswordException by loading the document with a password, and decrypt the file to an unprotected copy.", - "tags": [ - "pdf", - "decryption", - "encryption", - "facade", - "error-handling" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfFileSecurity", - "Aspose.Pdf.Facades.PdfFileSecurity.BindPdf", - "Aspose.Pdf.Facades.PdfFileSecurity.DecryptFile", - "Aspose.Pdf.Facades.PdfFileSecurity.Close", - "Aspose.Pdf.Document", - "Aspose.Pdf.InvalidPasswordException" - ], - "difficulty": "intermediate" + "title": "Decrypt Encrypted Pdf With Pdffilesecurity", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "decrypt-update-creator-reencrypt-pdf.cs", - "title": "Decrypt PDF, Update Creator Metadata, and Re‑Encrypt", - "description": "Demonstrates opening a password‑protected PDF using the owner password, changing the Creator metadata, and then re‑encrypting the document with new passwords and permissions.", + "title": "Decrypt Update Creator Reencrypt Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "decrypt-update-creatortool-reencrypt-pdf.cs", + "title": "Decrypt PDF, Update CreatorTool, and Re‑encrypt", + "description": "Demonstrates how to open a password‑protected PDF, decrypt it, modify the Creator metadata (CreatorTool), and then re‑apply encryption with new passwords and privileges using Aspose.Pdf.", "tags": [ "pdf", - "metadata", "encryption", - "aspose", - "csharp" + "metadata", + "creatortool", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.DocumentInfo", - "Aspose.Pdf.Document.Decrypt", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm" + "Aspose.Pdf.Facades.PdfFileSecurity", + "Aspose.Pdf.Facades.PdfFileInfo", + "Aspose.Pdf.DocumentPrivilege", + "Aspose.Pdf.KeySize", + "Aspose.Pdf.Algorithm" ], "difficulty": "intermediate" }, { - "filename": "detect-xmp-metadata-in-pdf.cs", - "title": "Detect XMP Metadata in a PDF", - "description": "Shows how to check whether a PDF file contains XMP metadata using the Aspose.Pdf.Facades.PdfXmpMetadata class before performing any modifications.", + "filename": "detect-and-modify-xmp-metadata.cs", + "title": "Detect and Modify XMP Metadata in PDF", + "description": "Demonstrates how to bind a PDF with Aspose.Pdf.Facades.PdfXmpMetadata, check for existing XMP metadata, add a custom XMP property, and save the modified document.", "tags": [ "xmp", "metadata", @@ -30201,176 +36773,239 @@ ], "apis_used": [ "Aspose.Pdf.Facades.PdfXmpMetadata", - "Aspose.Pdf.Facades.PdfXmpMetadata.BindPdf", - "Aspose.Pdf.Facades.PdfXmpMetadata.GetXmpMetadata" + "PdfXmpMetadata.BindPdf", + "PdfXmpMetadata.GetXmpMetadata", + "PdfXmpMetadata.Add", + "PdfXmpMetadata.Save" ], "difficulty": "beginner" }, + { + "filename": "detect-xmp-metadata-in-pdf.cs", + "title": "Detect Xmp Metadata In Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "disable-baseurl-injection-for-pdf-generation.cs", - "title": "Disable BaseUrl Injection for PDF Generation in Test Environments", - "description": "Demonstrates using a configuration switch to control HtmlLoadOptions, disabling BaseUrl injection when converting HTML to PDF in test environments.", + "title": "Disable Baseurl Injection For Pdf Generation", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "disable-baseurl-injection-html-to-pdf.cs", + "title": "Disable BaseUrl Injection When Converting HTML to PDF", + "description": "Shows how to use a configuration switch to optionally omit the BaseUrl in HtmlLoadOptions while converting HTML to PDF and uses the PdfViewer facade to bind and save the document.", "tags": [ - "pdf", "html-to-pdf", - "configuration", "baseurl", - "test-environment" + "configuration", + "facade", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.HtmlLoadOptions", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Facades" + "Aspose.Pdf.Facades.PdfViewer", + "Aspose.Pdf.Facades.PdfViewer.BindPdf", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "export-xmp-metadata-to-json.cs", - "title": "Export XMP Metadata from PDF to JSON", - "description": "Demonstrates how to extract XMP metadata from a PDF using Aspose.Pdf, convert the XML into a dictionary structure, and serialize it as JSON for integration with non‑XML systems.", + "filename": "export-pdf-xmp-metadata-to-json.cs", + "title": "Export PDF XMP Metadata to JSON", + "description": "Shows how to extract XMP metadata from a PDF using Aspose.Pdf.Facades and convert it into JSON format for integration with non‑XML systems.", "tags": [ - "xmp", + "XMP", "metadata", - "json", - "pdf", - "export" + "JSON", + "Aspose.Pdf", + "PDF" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfXmpMetadata", - "Aspose.Pdf.Facades.PdfXmpMetadata.BindPdf", - "Aspose.Pdf.Facades.PdfXmpMetadata.GetXmpMetadata" + "PdfXmpMetadata", + "PdfXmpMetadata.BindPdf", + "PdfXmpMetadata.GetXmpMetadata" ], "difficulty": "intermediate" }, { - "filename": "export-xmp-metadata-to-sidecar.cs", - "title": "Export XMP Metadata from PDF to Side‑car File", - "description": "Demonstrates how to extract XMP metadata from a PDF using Aspose.Pdf.Facades and save it as a separate .xmp side‑car file.", + "filename": "export-xmp-metadata-from-pdf.cs", + "title": "Export XMP Metadata from PDF to a Side‑car File", + "description": "Demonstrates how to bind a PDF document, retrieve its XMP metadata using Aspose.Pdf.Facades, and save the metadata to a separate .xmp side‑car file.", "tags": [ "xmp", "metadata", "pdf", "export", - "facade" + "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.PdfXmpMetadata", - "PdfXmpMetadata.BindPdf", - "PdfXmpMetadata.GetXmpMetadata" + "Aspose.Pdf.Facades.PdfXmpMetadata.BindPdf", + "Aspose.Pdf.Facades.PdfXmpMetadata.GetXmpMetadata" ], "difficulty": "beginner" }, + { + "filename": "export-xmp-metadata-to-json.cs", + "title": "Export Xmp Metadata To Json", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "export-xmp-metadata-to-sidecar.cs", + "title": "Export Xmp Metadata To Sidecar", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "extract-audit-original-xmp-metadata.cs", - "title": "Extract and Audit Original XMP Metadata from PDF", - "description": "Demonstrates how to load a PDF, retrieve its XMP metadata using the PdfXmpMetadata facade, and save the original XML for audit purposes.", - "tags": [ - "XMP", - "metadata", - "audit", - "PdfXmpMetadata", - "Aspose.Pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfXmpMetadata", - "Aspose.Pdf.Facades.PdfXmpMetadata.BindPdf", - "Aspose.Pdf.Facades.PdfXmpMetadata.GetXmpMetadata", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner" + "title": "Extract Audit Original Xmp Metadata", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "extract-xmp-metadata-from-pdf-byte-array.cs", - "title": "Extract XMP Metadata from PDF Byte Array", - "description": "Demonstrates how to create a PDF in memory, bind its byte array to the PdfXmpMetadata facade, and retrieve the XMP metadata as an XML byte array.", + "title": "Extract Xmp Metadata From Pdf Byte Array", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-xmp-metadata-from-pdf.cs", + "title": "Extract XMP Metadata from PDF", + "description": "Demonstrates how to bind a PDF with the PdfXmpMetadata facade, retrieve the raw XMP XML bytes, convert them to a UTF‑8 string, and optionally save the metadata to a file.", "tags": [ - "pdf", "xmp", "metadata", - "byte-array", - "aspose" + "pdf", + "extraction", + "aspose.pdf" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Facades.PdfXmpMetadata", - "Aspose.Pdf.Facades.PdfXmpMetadata.BindPdf", - "Aspose.Pdf.Facades.PdfXmpMetadata.GetXmpMetadata" + "PdfXmpMetadata.BindPdf", + "PdfXmpMetadata.GetXmpMetadata" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "extract-xmp-metadata-to-dictionary.cs", "title": "Extract XMP Metadata from PDF to Dictionary", - "description": "Shows how to read XMP metadata from a PDF using Aspose.Pdf.Facades.PdfXmpMetadata and convert it into a case‑insensitive dictionary of string key/value pairs.", + "description": "Shows how to read the XMP packet from a PDF using Aspose.Pdf.Facades and convert the XML into a case‑insensitive dictionary of key/value pairs.", "tags": [ "xmp", "metadata", "pdf", "dictionary", - "aspose-pdf" + "aspose" ], "apis_used": [ - "Aspose.Pdf.Facades.PdfXmpMetadata", - "Aspose.Pdf.Facades.PdfXmpMetadata.BindPdf", - "Aspose.Pdf.Facades.PdfXmpMetadata.Keys", - "Aspose.Pdf.Facades.PdfXmpMetadata.this[string]", - "Aspose.Pdf.XmpValue" + "PdfXmpMetadata", + "PdfXmpMetadata.BindPdf", + "PdfXmpMetadata.GetXmpMetadata" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "insert-pdf-pages-update-xmp-metadata.cs", - "title": "Insert PDF Pages and Update XMP Metadata", - "description": "Demonstrates inserting pages from one PDF into another using PdfFileEditor and then updating the document's XMP metadata with PdfXmpMetadata before saving.", + "filename": "insert-pages-update-xmp-metadata.cs", + "title": "Insert Pages and Update XMP Metadata in PDF", + "description": "Demonstrates how to insert selected pages from one PDF into another and then add or overwrite XMP metadata before saving the final document.", "tags": [ "pdf", "xmp", "page-insertion", "metadata", - "facades" + "aspose" ], "apis_used": [ "PdfFileEditor", "PdfFileEditor.TryInsert", "PdfXmpMetadata", "PdfXmpMetadata.BindPdf", + "PdfXmpMetadata.Add", "PdfXmpMetadata.Save" ], "difficulty": "intermediate" }, { - "filename": "list-xmp-namespaces-in-pdf.cs", - "title": "List XMP Namespaces in a PDF", - "description": "Shows how to extract the XMP metadata from a PDF with Aspose.Pdf and enumerate the namespace declarations defined in that metadata.", + "filename": "insert-pdf-pages-update-xmp-metadata.cs", + "title": "Insert Pdf Pages Update Xmp Metadata", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "list-xmp-namespaces-in-pdf.cs", + "title": "List XMP Namespaces in a PDF", + "description": "Shows how to extract the XMP metadata packet from a PDF using Aspose.Pdf and enumerate the namespace declarations defined in the XMP XML.", + "tags": [ + "xmp", + "pdf", + "metadata", + "namespaces", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfXmpMetadata", + "Aspose.Pdf.Facades.PdfXmpMetadata.BindPdf", + "Aspose.Pdf.Facades.PdfXmpMetadata.GetXmpMetadata" + ], + "difficulty": "intermediate" + }, + { + "filename": "load-encrypted-pdf-decrypt-save.cs", + "title": "Load Encrypted PDF, Decrypt with Password, and Save Unprotected Copy", + "description": "Demonstrates how to detect an encrypted PDF, handle the InvalidPasswordException, load the document using a password, and save a decrypted version while ensuring proper disposal.", "tags": [ - "xmp", - "metadata", + "encryption", "pdf", - "namespaces", - "aspose.pdf" + "decryption", + "error-handling", + "Aspose.Pdf" ], "apis_used": [ - "PdfXmpMetadata", - "PdfXmpMetadata.BindPdf", - "PdfXmpMetadata.GetXmpMetadata" + "Aspose.Pdf.Document", + "Aspose.Pdf.Document..ctor(string)", + "Aspose.Pdf.Document..ctor(string, string)", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Dispose", + "Aspose.Pdf.InvalidPasswordException" ], "difficulty": "intermediate" }, { "filename": "load-pdf-retrieve-xmp-metadata.cs", - "title": "Load PDF and Retrieve XMP Metadata", - "description": "Shows how to bind an existing PDF file to a PdfXmpMetadata facade and extract its XMP metadata as a byte array or UTF‑8 string.", + "title": "Load Pdf Retrieve Xmp Metadata", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "log-original-xmp-metadata.cs", + "title": "Log Original XMP Metadata from PDF", + "description": "Shows how to bind a PDF using the PdfXmpMetadata facade, extract the XMP metadata as XML, and save it to a file for audit tracking.", "tags": [ - "pdf", - "xmp", + "XMP", "metadata", - "aspose.pdf", - "csharp" + "audit", + "PDF", + "Aspose" ], "apis_used": [ "Aspose.Pdf.Facades.PdfXmpMetadata", @@ -30382,169 +37017,233 @@ { "filename": "log-xmp-metadata-size-before-after-modification.cs", "title": "Log XMP Metadata Size Before and After Modification", - "description": "Loads a PDF, reads its XMP metadata using PdfXmpMetadata, logs the original size, adds a custom field, logs the new size, and saves the updated document.", + "description": "Demonstrates how to retrieve, log, and modify the XMP metadata block of a PDF using Aspose.Pdf, showing the size before and after the change.", "tags": [ - "xmp", + "XMP", "metadata", - "pdf", - "aspose", - "logging" + "Aspose.Pdf", + "PDF", + "size" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfXmpMetadata", "Aspose.Pdf.Facades.PdfXmpMetadata.GetXmpMetadata", "Aspose.Pdf.Facades.PdfXmpMetadata.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.PdfXmpMetadata.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "modify-xmp-creator-property.cs", - "title": "Modify XMP Creator Property in a PDF", - "description": "Shows how to read the XMP metadata from a PDF, edit the dc:creator node, and write the updated metadata back using Aspose.Pdf.", + "title": "Modify XMP Creator Property in PDF", + "description": "Demonstrates reading XMP metadata from a PDF, updating the dc:creator element, and writing the modified metadata back using Aspose.Pdf.", "tags": [ "xmp", "metadata", "pdf", - "xml", - "aspnet" + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.PdfXmpMetadata", "Aspose.Pdf.Facades.PdfXmpMetadata.BindPdf", "Aspose.Pdf.Facades.PdfXmpMetadata.GetXmpMetadata", - "Aspose.Pdf.Document.SetXmpMetadata", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.SetXmpMetadata" ], "difficulty": "intermediate" }, { "filename": "nightly-creator-metadata-refresh.cs", - "title": "Nightly Creator Metadata Refresh for PDFs", - "description": "Shows how to schedule a daily job that scans a folder of PDFs and updates the Creator XMP metadata field using Aspose.Pdf.Facades.PdfFileInfo.", + "title": "Nightly Creator Metadata Refresh", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "persist-custom-xmp-metadata-pdf.cs", + "title": "Persist Custom XMP Metadata in PDF", + "description": "The example creates a PDF, sets the Creator property and custom XMP metadata entries (BaseUrl and Nickname) using PdfFileInfo, saves the changes to a new file, and verifies the values with unit tests.", "tags": [ - "creator", - "metadata", - "scheduled-job", "pdf", - "aspose" + "metadata", + "xmp", + "aspose.pdf", + "unit-test" ], "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfFileInfo", "Aspose.Pdf.Facades.PdfFileInfo.Creator", + "Aspose.Pdf.Facades.PdfFileInfo.SetMetaInfo", + "Aspose.Pdf.Facades.PdfFileInfo.GetMetaInfo", "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo" ], "difficulty": "intermediate" }, { "filename": "preserve-xmp-metadata-when-splitting-pdf.cs", - "title": "Preserve XMP Metadata When Splitting PDF Pages", - "description": "Shows how to extract XMP metadata from a multi‑page PDF and attach it to each single‑page PDF generated by splitting the document.", + "title": "Preserve Xmp Metadata When Splitting Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "read-xmp-metadata-from-large-pdf.cs", + "title": "Read XMP Metadata from Large PDF and Measure Performance", + "description": "Demonstrates how to bind a large PDF file, extract its XMP metadata using Aspose.Pdf.Facades, and benchmark the operation time.", "tags": [ "xmp", - "pdf-split", "metadata", - "aspose-pdf", - "facades" + "pdf", + "performance", + "aspose" ], "apis_used": [ "PdfXmpMetadata", "PdfXmpMetadata.BindPdf", "PdfXmpMetadata.GetXmpMetadata", - "PdfFileEditor.SplitToPages", - "Document.SetXmpMetadata", - "Document.Save" + "PdfXmpMetadata.Dispose", + "SaveableFacade" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "read-xmp-metadata-from-pdf-unc.cs", "title": "Read XMP Metadata from PDF via UNC Path", - "description": "Demonstrates loading a PDF located on a network share using a UNC path and extracting its XMP metadata with Aspose.Pdf.Facades.", + "description": "Shows how to bind a PDF located on a network share using a UNC path and extract its XMP metadata using Aspose.Pdf.Facades.", "tags": [ "xmp", "pdf", "unc", - "network-share", - "metadata" + "metadata", + "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.PdfXmpMetadata", - "PdfXmpMetadata.BindPdf", - "PdfXmpMetadata.GetXmpMetadata", - "PdfXmpMetadata.Dispose", - "Aspose.Pdf.Facades.SaveableFacade" + "Aspose.Pdf.Facades.PdfXmpMetadata.BindPdf", + "Aspose.Pdf.Facades.PdfXmpMetadata.GetXmpMetadata" ], "difficulty": "beginner" }, { "filename": "read-xmp-metadata-from-pdf.cs", - "title": "Read XMP Metadata from a PDF", - "description": "Demonstrates how to bind a PDF file, extract its XMP packet as XML, and query common metadata fields such as creator, title, and creation date.", + "title": "Read XMP Metadata from PDF", + "description": "Demonstrates how to bind a PDF file to a PdfXmpMetadata facade and retrieve its XMP metadata as a byte array.", "tags": [ - "XMP", + "pdf", + "xmp", "metadata", - "PDF", - "Aspose.Pdf", - "XML" + "aspose.pdf", + "facade" ], "apis_used": [ - "PdfXmpMetadata", - "PdfXmpMetadata.BindPdf", - "PdfXmpMetadata.GetXmpMetadata" + "Aspose.Pdf.Facades.PdfXmpMetadata", + "Aspose.Pdf.Facades.PdfXmpMetadata.BindPdf", + "Aspose.Pdf.Facades.PdfXmpMetadata.GetXmpMetadata" ], "difficulty": "beginner" }, { - "filename": "remove-nickname-from-pdf-xmp-metadata.cs", - "title": "Remove Nickname Element from PDF XMP Metadata", - "description": "Demonstrates how to delete the Nickname element from a PDF's XMP metadata using the Aspose.Pdf.Facades API and save the updated document.", + "filename": "read-xmp-metadata-from-pdf__v2.cs", + "title": "Read and Parse XMP Metadata from a PDF", + "description": "Demonstrates how to bind a PDF, extract its XMP metadata as XML, and read specific schema properties such as creator and creation date using Aspose.Pdf.Facades.", "tags": [ "xmp", "metadata", "pdf", - "aspose", - "remove" + "xml", + "aspose" ], "apis_used": [ "Aspose.Pdf.Facades.PdfXmpMetadata", "Aspose.Pdf.Facades.PdfXmpMetadata.BindPdf", - "Aspose.Pdf.Facades.PdfXmpMetadata.Remove", - "Aspose.Pdf.Facades.PdfXmpMetadata.Save", - "Aspose.Pdf.Facades.DefaultMetadataProperties.Nickname" + "Aspose.Pdf.Facades.PdfXmpMetadata.GetXmpMetadata", + "Aspose.Pdf.Facades.PdfXmpMetadata.GetXmpMetadata(string)" + ], + "difficulty": "intermediate" + }, + { + "filename": "refresh-creatortool-metadata-for-pdfs.cs", + "title": "Refresh CreatorTool Metadata for PDFs", + "description": "Shows how to scan a repository of PDF files and update the CreatorTool‑related XMP metadata (Creator, Author, Title) using Aspose.Pdf.Facades.PdfFileInfo.", + "tags": [ + "metadata", + "creator-tool", + "pdf", + "aspose", + "batch" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfFileInfo", + "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfo", + "Aspose.Pdf.Facades.PdfFileInfo.Creator", + "Aspose.Pdf.Facades.PdfFileInfo.Author", + "Aspose.Pdf.Facades.PdfFileInfo.Title" + ], + "difficulty": "beginner" + }, + { + "filename": "remove-nickname-from-pdf-xmp-metadata.cs", + "title": "Remove Nickname From Pdf Xmp Metadata", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "remove-nickname-from-xmp-metadata.cs", + "title": "Remove Nickname Element from PDF XMP Metadata", + "description": "Shows how to bind a PDF, remove the Nickname property from its XMP metadata using the PdfXmpMetadata facade, and save the updated file.", + "tags": [ + "XMP", + "metadata", + "remove", + "PdfXmpMetadata", + "Aspose.Pdf" + ], + "apis_used": [ + "PdfXmpMetadata", + "PdfXmpMetadata.BindPdf", + "PdfXmpMetadata.Remove", + "PdfXmpMetadata.Save", + "DefaultMetadataProperties" ], "difficulty": "beginner" }, { "filename": "remove-xmp-metadata-from-pdf.cs", "title": "Remove XMP Metadata from PDF", - "description": "Shows how to delete the entire XMP metadata block from a PDF file using Aspose.Pdf's PdfXmpMetadata facade.", + "description": "Shows how to delete the entire XMP metadata block from a PDF using Aspose.Pdf.Facades and save a metadata‑free document.", "tags": [ "xmp", "metadata", "pdf", - "aspose", - "cleanup" + "remove", + "aspose" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfXmpMetadata", - "Aspose.Pdf.Facades.PdfXmpMetadata.Clear", - "Aspose.Pdf.Document.Save" + "PdfXmpMetadata", + "PdfXmpMetadata.BindPdf", + "PdfXmpMetadata.Clear", + "PdfXmpMetadata.Save", + "PdfXmpMetadata.Close" ], "difficulty": "beginner" }, { "filename": "replace-pdf-xmp-metadata.cs", "title": "Replace PDF XMP Metadata from External File", - "description": "Shows how to load a PDF, read an external .xmp file, and replace the PDF's existing XMP metadata using Aspose.Pdf.", + "description": "Demonstrates loading a PDF, reading an external XMP file and replacing the document's XMP metadata block, then saving the updated PDF.", "tags": [ - "xmp", + "XMP", "metadata", - "pdf", - "replace", - "aspose" + "PDF", + "Aspose.Pdf", + "replace" ], "apis_used": [ "Aspose.Pdf.Document", @@ -30555,91 +37254,138 @@ }, { "filename": "retrieve-xmp-metadata-from-pdf.cs", - "title": "Retrieve XMP Metadata from PDF", - "description": "Shows how to bind a PDF using PdfXmpMetadata and extract its raw XMP XML as a UTF‑8 string.", + "title": "Retrieve Xmp Metadata From Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "set-baseurl-in-pdf-xmp-metadata.cs", + "title": "Set BaseURL in PDF XMP Metadata", + "description": "Demonstrates how to add or replace the BaseURL property in a PDF's XMP metadata using the PdfXmpMetadata facade from Aspose.Pdf.", "tags": [ "XMP", + "BaseURL", "metadata", - "PDF", "Aspose.Pdf", - "extract" + "PDF" ], "apis_used": [ - "PdfXmpMetadata", + "Aspose.Pdf.Facades.PdfXmpMetadata", "PdfXmpMetadata.BindPdf", - "PdfXmpMetadata.GetXmpMetadata" + "PdfXmpMetadata.Add", + "PdfXmpMetadata.Save" ], "difficulty": "beginner" }, { - "filename": "set-baseurl-in-pdf-xmp-metadata.cs", - "title": "Set BaseURL in PDF XMP Metadata", - "description": "Shows how to bind a PDF to the XMP metadata facade, set the BaseURL property, and save the updated document.", + "filename": "set-creator-tool-xmp-metadata.cs", + "title": "Set CreatorTool in PDF XMP Metadata", + "description": "Shows how to assign the xmp:CreatorTool property in a PDF's XMP metadata using Aspose.Pdf.Facades and save the updated file.", "tags": [ "XMP", "metadata", - "BaseURL", + "CreatorTool", "Aspose.Pdf", "PDF" ], "apis_used": [ "Aspose.Pdf.Facades.PdfXmpMetadata", + "Aspose.Pdf.Facades.DefaultMetadataProperties", + "Aspose.Pdf.Facades.XmpValue", "PdfXmpMetadata.BindPdf", "PdfXmpMetadata.Add", - "PdfXmpMetadata.Save", - "Aspose.Pdf.Facades.DefaultMetadataProperties.BaseURL", - "Aspose.Pdf.Facades.XmpValue" + "PdfXmpMetadata.Save" ], "difficulty": "beginner" }, { - "filename": "set-pdf-creator-metadata-default.cs", - "title": "Set PDF Creator Metadata with a Default Value", - "description": "Demonstrates how to set the Creator metadata field of a PDF using Aspose.Pdf, applying a configurable default when no value is supplied.", + "filename": "set-default-creator-metadata.cs", + "title": "Set Default Creator Metadata for PDF", + "description": "Demonstrates how to copy a PDF and ensure the Creator XMP metadata field is populated, using a supplied value or a configurable default when the source PDF lacks it.", "tags": [ "pdf", "metadata", "creator", - "aspose", - "default" + "default", + "Aspose" + ], + "apis_used": [ + "Aspose.Pdf.Facades.PdfFileInfo", + "Aspose.Pdf.Facades.PdfFileInfo.BindPdf", + "Aspose.Pdf.Facades.PdfFileInfo.Save", + "Aspose.Pdf.Facades.PdfFileInfo.Creator" + ], + "difficulty": "intermediate" + }, + { + "filename": "set-pdf-creator-metadata-default.cs", + "title": "Set Pdf Creator Metadata Default", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "set-pdf-creator-metadata.cs", + "title": "Set PDF Creator Metadata via Extension Method", + "description": "Shows how to create a reusable extension method that assigns the Creator XMP metadata to an Aspose.Pdf Document using the PdfFileInfo facade.", + "tags": [ + "creator", + "metadata", + "extension-method", + "aspose-pdf", + "facade" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.DocumentInfo", + "Aspose.Pdf.Facades.PdfFileInfo", + "Aspose.Pdf.Facades.PdfFileInfo.BindPdf", + "Aspose.Pdf.Facades.PdfFileInfo.Creator", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "set-xmp-creatortool-to-app-version.cs", - "title": "Set XMP CreatorTool Property to Application Version", - "description": "Shows how to assign the XMP metadata CreatorTool field in a PDF to the executing assembly's version using Aspose.Pdf.", + "title": "Set Xmp Creatortool To App Version", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "set-xmp-metadata-conditionally-with-warnings.cs", + "title": "Set XMP Metadata Conditionally with Warning Logging", + "description": "Demonstrates how to add XMP metadata to a PDF only when the target property is empty, logging a warning if the property already contains a non‑empty value.", "tags": [ - "XMP", + "xmp", "metadata", - "CreatorTool", - "Aspose.Pdf", - "PDF" + "pdf", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfXmpMetadata", - "Aspose.Pdf.Facades.PdfXmpMetadata.BindPdf", - "Aspose.Pdf.Facades.PdfXmpMetadata.Add", - "Aspose.Pdf.Facades.PdfXmpMetadata.Save" + "Aspose.Pdf.Facades.DefaultMetadataProperties", + "Aspose.Pdf.XmpValue", + "Aspose.Pdf.Facades.PdfXmpMetadata.Save", + "Aspose.Pdf.Facades.PdfXmpMetadata.Add" ], "difficulty": "intermediate" }, { "filename": "set-xmp-nickname-property.cs", "title": "Set XMP Nickname Property in PDF", - "description": "Shows how to bind an existing PDF, add or replace the XMP Nickname metadata property, and save the document using Aspose.Pdf.Facades.", + "description": "Shows how to bind a PDF, add or update the XMP Nickname metadata property, and save the updated document using Aspose.Pdf.Facades.", "tags": [ "XMP", "metadata", "nickname", "Aspose.Pdf", - "facade" + "PDF" ], "apis_used": [ "PdfXmpMetadata", @@ -30652,56 +37398,94 @@ }, { "filename": "set-xmp-property-if-empty.cs", - "title": "Set XMP Property Only If Empty with Warning", - "description": "Demonstrates how to update an XMP metadata property in a PDF only when the property is missing or empty, logging a warning if it already contains a non‑empty value.", + "title": "Set Xmp Property If Empty", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "split-pdf-preserve-xmp-metadata.cs", + "title": "Split PDF into Single Pages While Preserving XMP Metadata", + "description": "Demonstrates how to split a multi‑page PDF into individual page files and retain the original XMP metadata on each resulting document using Aspose.Pdf.", "tags": [ - "xmp", - "metadata", - "pdf", - "aspose", - "csharp" + "pdf-splitting", + "xmp-metadata", + "aspose-pdf", + "csharp", + "document-processing" ], "apis_used": [ "Aspose.Pdf.Facades.PdfXmpMetadata", - "Aspose.Pdf.Facades.DefaultMetadataProperties", - "Aspose.Pdf.Facades.XmpValue", + "Aspose.Pdf.Facades.PdfFileEditor.SplitToPages", + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.SetXmpMetadata", + "Aspose.Pdf.Document.Save", "Aspose.Pdf.Facades.PdfXmpMetadata.BindPdf", - "Aspose.Pdf.Facades.PdfXmpMetadata.Contains", - "Aspose.Pdf.Facades.PdfXmpMetadata.Add", - "Aspose.Pdf.Facades.PdfXmpMetadata.Save" + "Aspose.Pdf.Facades.PdfXmpMetadata.GetXmpMetadata" + ], + "difficulty": "intermediate" + }, + { + "filename": "store-extract-unicode-nickname.cs", + "title": "Store and Extract Unicode Nickname in PDF", + "description": "Demonstrates creating a PDF with Unicode characters (Chinese text and emoji) using Aspose.Pdf and verifying the stored value by extracting the text with the PdfExtractor facade.", + "tags": [ + "unicode", + "pdf", + "aspose", + "text-extraction", + "nunit" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.FontRepository.FindFont", + "Aspose.Pdf.Facades.PdfExtractor.BindPdf", + "Aspose.Pdf.Facades.PdfExtractor.ExtractText", + "Aspose.Pdf.Facades.PdfExtractor.GetText" ], "difficulty": "intermediate" }, { "filename": "update-multiple-xmp-properties-atomically.cs", - "title": "Update Multiple XMP Properties Atomically in PDF", - "description": "Shows how to bind XMP metadata to a PDF, add several XMP properties, and save the changes in a single transaction using Aspose.Pdf.Facades.", + "title": "Update Multiple Xmp Properties Atomically", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "update-multiple-xmp-properties.cs", + "title": "Update Multiple XMP Properties in a Single Transaction", + "description": "Shows how to bind a PDF's XMP metadata, modify several properties atomically, and save the changes using a temporary file to ensure an atomic update.", "tags": [ "xmp", "metadata", "pdf", - "aspose", - "transaction" + "transaction", + "aspose" ], "apis_used": [ - "PdfFileInfo", - "PdfXmpMetadata", + "Aspose.Pdf.Facades.PdfXmpMetadata", + "Aspose.Pdf.Facades.DefaultMetadataProperties", "PdfXmpMetadata.BindPdf", "PdfXmpMetadata.Add", - "PdfFileInfo.SaveNewInfoWithXmp" + "PdfXmpMetadata.Save" ], "difficulty": "intermediate" }, { - "filename": "update-pdf-creator-metadata.cs", - "title": "Update PDF Creator Metadata in a Folder", - "description": "Shows how to scan a directory for PDF files and set the Creator (CreatorTool) XMP metadata using Aspose.Pdf.Facades.", + "filename": "update-pdf-creator-tool-metadata.cs", + "title": "Update PDF CreatorTool Metadata in a Folder", + "description": "Shows how to scan a directory for PDF files and modify the Creator (CreatorTool) XMP metadata of each file using Aspose.Pdf.Facades.", "tags": [ "pdf", "metadata", "creator", - "batch", - "aspose" + "aspose", + "batch" ], "apis_used": [ "Aspose.Pdf.Facades.PdfFileInfo", @@ -30712,230 +37496,257 @@ }, { "filename": "update-pdf-info-and-xmp-metadata.cs", - "title": "Update PDF Document Properties and XMP Metadata", - "description": "Demonstrates how to modify standard PDF document properties and XMP metadata using Aspose.Pdf facades, then save the PDF with the updated information.", - "tags": [ - "pdf", - "xmp", - "metadata", - "facade", - "document-properties" - ], - "apis_used": [ - "Aspose.Pdf.Facades.PdfFileInfo", - "Aspose.Pdf.Facades.PdfXmpMetadata", - "Aspose.Pdf.Facades.XmpValue", - "Aspose.Pdf.Facades.PdfFileInfo.SaveNewInfoWithXmp", - "Aspose.Pdf.Facades.PdfXmpMetadata.BindPdf", - "Aspose.Pdf.Facades.PdfXmpMetadata.Add" - ], - "difficulty": "intermediate" + "title": "Update Pdf Info And Xmp Metadata", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "update-xmp-baseurl.cs", - "title": "Update XMP BaseURL in PDF", - "description": "Shows how to load a PDF, modify the XMP \"xmp:BaseURL\" property, and save the updated file using Aspose.Pdf.", + "title": "Update Xmp Baseurl", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "update-xmp-metadata-and-save-pdf.cs", + "title": "Update XMP Metadata and Save PDF", + "description": "Demonstrates how to bind a PDF to the XMP metadata facade, modify Dublin Core properties, and save the document with the updated XMP metadata using Aspose.Pdf.", "tags": [ - "XMP", - "BaseURL", - "PDF", + "xmp", "metadata", - "Aspose.Pdf" + "pdf", + "aspose", + "facade" ], "apis_used": [ - "PdfXmpMetadata", - "PdfXmpMetadata.BindPdf", - "PdfXmpMetadata.Contains", - "PdfXmpMetadata.Remove", - "PdfXmpMetadata.Add", - "PdfXmpMetadata.Save" + "Aspose.Pdf.Facades.PdfXmpMetadata", + "Aspose.Pdf.XmpValue", + "Aspose.Pdf.Facades.PdfXmpMetadata.BindPdf", + "Aspose.Pdf.Facades.PdfXmpMetadata.Save", + "Aspose.Pdf.Facades.SaveableFacade.Save" ], "difficulty": "beginner" }, { "filename": "update-xmp-property-in-pdf.cs", - "title": "Update XMP Property in PDF via Command Line", - "description": "Demonstrates how to use the Aspose.Pdf.Facades.PdfXmpMetadata class to add or update a specific XMP metadata property in a PDF file from a command‑line tool.", + "title": "Update XMP Metadata Property in PDF", + "description": "Shows how to load a PDF with Aspose.Pdf, modify or add an XMP metadata property, and save the updated document.", "tags": [ "xmp", "metadata", "pdf", - "command-line", - "aspose" + "aspose", + "command-line" ], "apis_used": [ - "PdfXmpMetadata", - "PdfXmpMetadata.BindPdf", - "PdfXmpMetadata.Add", - "PdfXmpMetadata.Save" + "Aspose.Pdf.Document", + "Aspose.Pdf.Document..ctor", + "Aspose.Pdf.Document.Metadata", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "validate-mandatory-xmp-metadata.cs", "title": "Validate Mandatory XMP Metadata Before Publishing PDF", - "description": "Demonstrates how to check for required XMP metadata fields in a PDF, perform PDF/A validation, and save the document only when all checks pass.", + "description": "Demonstrates how to load a PDF, extract its XMP metadata using Aspose.Pdf, verify that required XMP fields are present and non‑empty, and then save the PDF if validation succeeds.", "tags": [ "xmp", "metadata", "validation", "pdf", - "publication" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Facades.PdfXmpMetadata", "Aspose.Pdf.Facades.PdfXmpMetadata.BindPdf", - "Aspose.Pdf.Facades.PdfXmpMetadata.ContainsKey", - "Aspose.Pdf.Document.Validate", + "Aspose.Pdf.Facades.PdfXmpMetadata.GetXmpMetadata", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, + { + "filename": "validate-xmp-metadata-against-the-official-xmp-schema-using-an-xml-schema-validator.cs", + "title": "Validate Xmp Metadata Against The Official Xmp Schema Using An Xml Schema Validator", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "validate-xmp-metadata-in-pdf.cs", - "title": "Validate XMP Metadata in PDF using Aspose.Pdf", - "description": "Shows how to extract XMP metadata from a PDF with Aspose.Pdf, load it into an XmlDocument, and validate it against an XSD schema while logging validation results.", - "tags": [ - "xmp", - "validation", - "pdf", - "aspose", - "xml-schema" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfXmpMetadata", - "Aspose.Pdf.Facades.PdfXmpMetadata.BindPdf", - "Aspose.Pdf.Facades.PdfXmpMetadata.GetXmpMetadata", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "intermediate" + "title": "Validate Xmp Metadata In Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "verify-basepath-uri-escaping.cs", - "title": "Verify BasePath URI Escaping in XfaParserOptions", - "description": "Unit test that ensures the BasePath property of XfaParserOptions correctly escapes spaces and non‑ASCII characters in a URL.", + "title": "Verify Basepath Uri Escaping", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "verify-baseurl-escaping.cs", + "title": "Verify BaseUrl Escaping with Special Characters", + "description": "Shows a unit test that checks the BasePath URI in XfaParserOptions is correctly percent‑escaped for spaces and Unicode characters.", "tags": [ - "XfaParserOptions", - "BasePath", - "URI escaping", - "unit test", - "Aspose.Pdf" + "unit-test", + "uri-escaping", + "xfa", + "aspose-pdf", + "nunit" ], "apis_used": [ - "Aspose.Pdf.XfaConverter.XfaParserOptions", - "Aspose.Pdf.XfaConverter.XfaParserOptions.BasePath" + "Aspose.Pdf.Facades.PdfViewer", + "Aspose.Pdf.XfaConverter.XfaParserOptions" ], "difficulty": "beginner" }, { "filename": "write-verify-xmp-metadata-pdf.cs", - "title": "Write and Verify XMP Metadata in PDF", - "description": "Creates a PDF, writes custom XMP metadata fields (BaseUrl, CreatorTool, Nickname) using PdfFileInfo, and reads them back to confirm the values.", - "tags": [ - "pdf", - "metadata", - "xmp", - "aspose", - "testing" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PdfFileInfo", - "PdfFileInfo.SetMetaInfo", - "PdfFileInfo.GetMetaInfo", - "PdfFileInfo.SaveNewInfo" - ], - "difficulty": "intermediate" + "title": "Write Verify Xmp Metadata Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" } ] }, { "name": "graphs-zugferd-operators", - "file_count": 82, + "file_count": 124, "files": [ "add-auto-close-javascript-to-pdf.cs", + "add-auto-print-javascript-action-to-pdf.cs", "add-auto-save-javascript-to-pdf.cs", "add-custom-metadata-to-zugferd-pdf.cs", + "add-encrypted-file-attachment-to-pdf.cs", "add-expiry-javascript-action-to-pdf.cs", "add-file-attachment-annotation-to-pdf.cs", + "add-file-attachment-to-pdf.cs", "add-javascript-calculate-total-pdf.cs", + "add-javascript-calculation-to-pdf-total.cs", "add-javascript-open-action-jump-to-page-5.cs", "add-javascript-password-prompt-to-pdf.cs", + "add-javascript-toggle-optional-sections.cs", "add-javascript-toggle-pdf-form-sections.cs", "add-js-open-action-navigate-page-10.cs", + "add-page-level-javascript-alert-to-pdf.cs", "add-page-level-javascript-alert.cs", + "add-password-prompt-javascript-to-pdf.cs", "add-semi-transparent-background-watermark.cs", + "add-semi-transparent-text-watermark.cs", + "add-signature-field-with-js-validation.cs", "add-xmp-metadata-pdfa-compliance.cs", "apply-form-filling-only-security.cs", "attach-multiple-files-to-pdf.cs", "attach-zugferd-xml-to-pdf.cs", "auto-print-pdf-on-open.cs", + "batch-apply-pdf-password-protection.cs", "batch-convert-pdfs-to-jpeg.cs", "batch-encrypt-pdfs-with-password.cs", "batch-generate-zugferd-pdfs-from-csv.cs", "calculate-total-order-amount-pdf-form.cs", + "calculate-total-order-amount.cs", + "change-pdf-line-width.cs", "combine-multiple-graphs-2x2-grid.cs", - "compress-pdf-and-optimize-images.cs", + "combine-multiple-graphs-on-single-pdf-page.cs", + "compress-pdf-images-optimization.cs", "convert-pdf-pages-to-high-resolution-png.cs", "convert-pdf-to-docx-preserve-layout.cs", "convert-pdf-to-html-embedded-images.cs", + "convert-pdf-to-html-with-embedded-images.cs", "convert-pdf-to-multi-page-tiff.cs", "convert-pdf-to-pdfa-2b.cs", "convert-pdf-zugferd-to-pdfa3u.cs", + "create-bar-chart-pdf.cs", "create-layered-graphics-with-transparency.cs", "create-line-graph-multiple-stroke-styles.cs", + "create-pdf-page-transitions-javascript.cs", "create-pdf-signature-field-js-validation.cs", + "create-pdf-table-of-contents-with-outlines.cs", "create-zugferd-compliant-invoice-pdf.cs", + "create-zugferd-invoice-pdf.cs", "digitally-sign-pdf-with-pfx-timestamp.cs", + "digitally-sign-zugferd-pdf-with-timestamp.cs", + "draw-pie-chart-using-low-level-operators.cs", "draw-pie-chart-using-low-level-pdf-operators.cs", + "draw-star-shape-low-level-operators.cs", "draw-star-shape-pdf-operators.cs", + "dynamic-header-footer-pdf.cs", + "embed-audio-pdf-sound-annotation.cs", "embed-audio-with-js-playback.cs", "embed-custom-font-and-draw-graph.cs", + "embed-custom-ttf-font-in-pdf-graph.cs", + "embed-qr-code-image-at-specific-coordinates.cs", "embed-qr-code-using-low-level-operators.cs", "embed-subset-custom-font-pdf.cs", - "embed-vector-graphic-in-pdf.cs", + "embed-vector-graphic-graph-into-pdf.cs", "embed-zugferd-xml-into-pdf-invoice.cs", "encrypt-pdf-aes256-with-passwords.cs", "encrypt-pdf-with-embedded-attachment.cs", "encrypt-zugferd-pdf-with-passwords.cs", "export-pdf-annotations-to-xfdf.cs", + "export-pdf-form-fields-to-json.cs", "export-selected-pdf-pages.cs", "extract-images-from-pdf.cs", "extract-pdf-form-fields-to-json.cs", + "extract-pdf-text-to-searchable-index.cs", "extract-text-from-pdf-preserving-line-breaks.cs", + "extract-text-from-pdf-with-line-breaks.cs", "extract-text-pdf-search-index.cs", "extract-validate-zugferd-xml-from-pdf.cs", + "extract-validate-zugferd-xml.cs", "extract-zugferd-xml-from-pdf.cs", "generate-png-thumbnails-for-pdf-pages.cs", + "hide-form-field-with-checkbox.cs", "hide-show-pdf-form-field-with-checkbox.cs", + "hide-toolbar-menu-bar-pdf-javascript.cs", "hide-toolbar-menu-bar-pdf.cs", "import-fdf-data-into-pdf-and-flatten-form.cs", "list-javascript-actions-in-pdf.cs", + "list-pdf-attachments-names-sizes.cs", "list-pdf-attachments-sizes.cs", "merge-multiple-pdfs-preserving-bookmarks.cs", - "modify-pdf-line-width-operators.cs", + "merge-pdfs-with-bookmarks.cs", "populate-pdf-form-from-json-and-flatten.cs", + "print-pdf-range-to-network-printer.cs", "print-pdf-silently-to-default-printer.cs", "read-custom-pdf-metadata-audit.cs", + "read-custom-pdf-metadata-log.cs", "remove-background-operators-from-pdf.cs", "remove-javascript-from-pdf.cs", "remove-specific-attachment-from-pdf.cs", "remove-zugferd-attachment-from-pdf.cs", + "render-pdf-page-to-png-high-quality-antialiasing.cs", "render-pdf-pages-to-png-high-quality-antialiasing.cs", "replace-text-using-showtext-operators.cs", + "secure-pdf-form-filling-only.cs", + "set-pdf-author-dynamically.cs", "set-pdf-author-to-current-user.cs", "set-pdf-creation-modification-dates.cs", "set-pdf-document-language.cs", + "set-pdf-metadata-and-custom-property.cs", + "set-pdf-open-action-navigate-page-10.cs", "set-pdf-permissions-allow-printing-only.cs", - "set-pdf-title-author-invoice-number.cs", + "set-pdf-permissions-allow-printing.cs", "sign-zugferd-pdf-with-timestamp.cs", + "split-pdf-into-individual-pages.cs", "split-pdf-into-single-page-pdfs.cs", + "subset-custom-font-in-pdf.cs", "update-pdf-attachment-description.cs", "update-zugferd-xml-attachment.cs", "validate-pdf-zugferd-compliance.cs", "validate-pdfa-after-zugferd-attachment.cs", + "validate-pdfa3b-after-adding-zugferd-attachment.cs", "verify-pdf-digital-signature.cs" ], "required_namespaces": [ @@ -30943,26 +37754,24 @@ "Aspose.Pdf.Annotations", "Aspose.Pdf.Text", "Aspose.Pdf.Forms", + "Aspose.Pdf.Drawing", "Aspose.Pdf.Devices", "Aspose.Pdf.Operators", - "Aspose.Pdf.Drawing", - "Aspose.Pdf.Optimization", - "Aspose.Pdf.Signatures", + "Aspose.Pdf.Facades", "Aspose.Pdf.Tagged", - "Aspose.Pdf.Vector" + "Aspose.Pdf.Optimization", + "Aspose.Pdf.Signatures" ], "key_apis": [ "JavascriptAction", - "FileAttachmentAnnotation", "TextFragment", - "JpegDevice", + "FileAttachmentAnnotation", "PngDevice", "TextAbsorber", - "FileInfo", - "HtmlSaveOptions", - "ImagePlacementAbsorber", + "ImageStamp", + "JpegDevice", + "MarginInfo", "SoundAnnotation", - "TextFragmentAbsorber", "ThumbnailDevice", "TiffDevice" ], @@ -30970,69 +37779,109 @@ { "filename": "add-auto-close-javascript-to-pdf.cs", "title": "Add Auto‑Close JavaScript to PDF", - "description": "Demonstrates how to embed a JavaScript action in a PDF that automatically closes the document after a specified timeout using Aspose.Pdf.", + "description": "Shows how to embed a document‑level JavaScript action that automatically closes a PDF after a specified timeout using Aspose.Pdf.", "tags": [ "javascript", - "autoclose", + "auto-close", "pdf", "aspose-pdf", - "open-action" + "document-action" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Load", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Document.OpenAction" + "Aspose.Pdf.JavascriptAction", + "Aspose.Pdf.Document.OpenAction", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner" + }, + { + "filename": "add-auto-print-javascript-action-to-pdf.cs", + "title": "Add Auto‑Print JavaScript Action to PDF", + "description": "Demonstrates how to attach a JavaScript action that automatically opens the print dialog when the PDF is opened, using Aspose.Pdf.", + "tags": [ + "javascript", + "print", + "pdf", + "autoprint", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.JavascriptAction", + "Aspose.Pdf.Document.OpenAction", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "add-auto-save-javascript-to-pdf.cs", - "title": "Add Auto‑Save JavaScript to PDF Document", - "description": "Shows how to embed a document‑level JavaScript action that automatically saves the PDF at defined intervals when the file is opened.", + "title": "Add Document-Level Auto‑Save JavaScript to PDF", + "description": "Demonstrates how to embed a document‑level JavaScript action that automatically saves the PDF at regular intervals using Aspose.Pdf.", "tags": [ "javascript", "autosave", - "openaction", + "document-level", "pdf", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Document..ctor(string)", "Aspose.Pdf.Document.OpenAction", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "add-custom-metadata-to-zugferd-pdf.cs", "title": "Add Custom Metadata to ZUGFeRD PDF", - "description": "Shows how to load a ZUGFeRD PDF with Aspose.Pdf, add custom metadata entries such as ProjectCode and Department, and save the updated document.", + "description": "Demonstrates loading an existing PDF with Aspose.Pdf, adding custom metadata entries such as project code and department, and saving the file as a ZUGFeRD‑compatible PDF.", "tags": [ "ZUGFeRD", "metadata", "Aspose.Pdf", "PDF", - "custom" + "custom-fields" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Metadata", - "Aspose.Pdf.Metadata.Add", + "Aspose.Pdf.DocumentInfo", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, + { + "filename": "add-encrypted-file-attachment-to-pdf.cs", + "title": "Add Encrypted File Attachment to PDF", + "description": "Shows how to embed a file attachment using a stream and then encrypt the PDF so only authorized users can open it.", + "tags": [ + "attachment", + "encryption", + "annotation", + "file-specification", + "pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.Annotations.FileAttachmentAnnotation", + "Aspose.Pdf.Permissions", + "Aspose.Pdf.CryptoAlgorithm" + ], + "difficulty": "intermediate" + }, { "filename": "add-expiry-javascript-action-to-pdf.cs", "title": "Add Expiry JavaScript Action to PDF", - "description": "Demonstrates how to embed a document‑level JavaScript open action that checks an expiry date and automatically closes the PDF when the date has passed.", + "description": "Shows how to embed a document‑level JavaScript action that checks a predefined expiry date and closes the PDF if the date has passed.", "tags": [ "javascript", "expiry", - "open-action", + "document-action", "pdf", "aspose-pdf" ], @@ -31040,35 +37889,52 @@ "Aspose.Pdf.Document", "Aspose.Pdf.Annotations.JavascriptAction", "Aspose.Pdf.Document.OpenAction", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document..ctor" + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "add-file-attachment-annotation-to-pdf.cs", - "title": "Add File Attachment Annotation to PDF", - "description": "Shows how to embed an external PDF as a file attachment annotation, set its description and icon, and save the updated document using Aspose.PDF.", + "filename": "add-file-attachment-annotation-to-pdf.cs", + "title": "Add File Attachment Annotation To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-file-attachment-to-pdf.cs", + "title": "Add File Attachment to PDF with Description", + "description": "Shows how to attach an external PDF file to a PDF document using Aspose.Pdf, including a description and proper MIME type.", "tags": [ "file-attachment", - "annotation", "pdf", - "aspose", + "annotation", + "aspose-pdf", "metadata" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.FileSpecification", "Aspose.Pdf.Annotations.FileAttachmentAnnotation", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Page.Annotations.Add" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "add-javascript-calculate-total-pdf.cs", - "title": "Add JavaScript to Calculate Total from Line Items in PDF", - "description": "Shows how to attach JavaScript to a PDF form field with Aspose.Pdf to sum line‑item fields and display the total in a summary field.", + "title": "Add Javascript Calculate Total Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-javascript-calculation-to-pdf-total.cs", + "title": "Add JavaScript Calculation to PDF Form Total Field", + "description": "Shows how to embed JavaScript in a PDF using Aspose.Pdf to sum line‑item fields and display the result in a summary (total) field.", "tags": [ "javascript", "pdf-form", @@ -31078,128 +37944,150 @@ ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.Form", "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.JavascriptAction", - "Aspose.Pdf.Forms.Field.Actions", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Forms.Field.Actions" ], "difficulty": "intermediate" }, { "filename": "add-javascript-open-action-jump-to-page-5.cs", "title": "Add JavaScript Open Action to Jump to Page 5", - "description": "Demonstrates how to assign a JavaScript open action to a PDF using Aspose.Pdf so that the document automatically navigates to page five when opened.", + "description": "Demonstrates how to attach a JavaScript open action to a PDF using Aspose.Pdf so that the document automatically navigates to page five when opened.", "tags": [ "javascript", "open-action", "pdf", - "navigation", - "aspose-pdf" + "aspose", + "navigation" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Annotations.JavascriptAction", "Aspose.Pdf.Document.OpenAction", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document..ctor" + "Aspose.Pdf.Document(string filePath)" ], "difficulty": "beginner" }, { "filename": "add-javascript-password-prompt-to-pdf.cs", - "title": "Add JavaScript Password Prompt to PDF", - "description": "Shows how to embed JavaScript in a PDF with Aspose.Pdf so that a password is requested when the document opens, closing the file if the password is incorrect.", - "tags": [ - "javascript", - "pdf-security", - "aspose-pdf", - "open-action", - "password-prompt" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Document.OpenAction", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "intermediate" + "title": "Add Javascript Password Prompt To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "add-javascript-toggle-pdf-form-sections.cs", - "title": "Add JavaScript to Toggle PDF Form Sections", - "description": "Shows how to embed JavaScript in a PDF with Aspose.Pdf to show or hide optional sections based on a user's selection in a form field.", + "filename": "add-javascript-toggle-optional-sections.cs", + "title": "Add JavaScript to Toggle Optional Sections in PDF Form", + "description": "Shows how to attach a JavaScript action to a checkbox field in an Aspose.Pdf form so that optional sections become visible or hidden based on the user's selection.", "tags": [ "javascript", - "pdf-form", + "form", "visibility", - "aspose-pdf", - "field-actions" + "checkbox", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.CheckboxField", + "Aspose.Pdf.Annotations.JavascriptAction", "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.JavascriptAction", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Forms.Field.Actions" + "Aspose.Pdf.Forms.FieldActions" ], "difficulty": "intermediate" }, + { + "filename": "add-javascript-toggle-pdf-form-sections.cs", + "title": "Add Javascript Toggle Pdf Form Sections", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "add-js-open-action-navigate-page-10.cs", - "title": "Add JavaScript Open Action to Navigate to Page 10", - "description": "Demonstrates loading a PDF with Aspose.Pdf, setting a JavaScript open action that jumps to page 10 when the document opens, and saving the modified file.", + "title": "Add Js Open Action Navigate Page 10", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-page-level-javascript-alert-to-pdf.cs", + "title": "Add Page-Level JavaScript Alert to PDF", + "description": "Demonstrates how to embed a JavaScript action that shows an alert when a specific PDF page is opened, using Aspose.Pdf.", "tags": [ "javascript", - "open-action", - "navigation", "pdf", + "page-action", + "alert", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document(string)", + "Aspose.Pdf.Page", "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Document.OpenAction", + "Aspose.Pdf.Page.Actions", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "add-page-level-javascript-alert.cs", - "title": "Add Page-Level JavaScript Alert to PDF", - "description": "Demonstrates how to embed a JavaScript action that shows an alert when a specific PDF page is opened, using Aspose.Pdf.", + "title": "Add Page Level Javascript Alert", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-password-prompt-javascript-to-pdf.cs", + "title": "Add Password Prompt JavaScript to PDF", + "description": "Demonstrates embedding JavaScript in a PDF with Aspose.Pdf to prompt for a password on document open and close the file if the password is incorrect.", "tags": [ "javascript", - "pdf", - "page-action", - "aspose-pdf", - "alert" + "pdf-security", + "open-action", + "aspose.pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Page.Actions", + "Aspose.Pdf.Document.OpenAction", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "add-semi-transparent-background-watermark.cs", - "title": "Add Semi-Transparent Background Watermark to PDF Pages", - "description": "Demonstrates how to place a semi‑transparent text watermark behind existing content on every page of a PDF using Aspose.Pdf.", + "title": "Add Semi Transparent Background Watermark", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-semi-transparent-text-watermark.cs", + "title": "Add Semi-Transparent Text Watermark Behind PDF Content", + "description": "Demonstrates how to place a semi‑transparent text watermark behind the existing content on every page of a PDF using Aspose.Pdf.", "tags": [ "watermark", "pdf", "text", "opacity", - "background" + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextState", "Aspose.Pdf.WatermarkArtifact", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.FontRepository.FindFont", + "Aspose.Pdf.Color.Gray", "Aspose.Pdf.WatermarkArtifact.SetTextAndState", "Aspose.Pdf.Page.Artifacts.Add", "Aspose.Pdf.Document.Save" @@ -31207,201 +38095,241 @@ "difficulty": "beginner" }, { - "filename": "add-xmp-metadata-pdfa-compliance.cs", - "title": "Add XMP Metadata for PDF/A Compliance", - "description": "Demonstrates how to embed required XMP metadata entries, including document ID and creator tool, to make a PDF conform to PDF/A‑1a using Aspose.Pdf.", + "filename": "add-signature-field-with-js-validation.cs", + "title": "Add Digital Signature Field with JavaScript Validation to PDF", + "description": "Shows how to create a PDF, insert a digital signature field, and attach a JavaScript action that validates the signature when the field is activated, using Aspose.Pdf.", "tags": [ - "pdfa", - "xmp", - "metadata", - "aspose-pdf", - "csharp" + "signature", + "javascript", + "pdf", + "forms", + "validation" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Info", - "Aspose.Pdf.Document.Metadata", - "Aspose.Pdf.Document.Metadata.Add", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Forms.SignatureField.ExecuteFieldJavaScript", + "Aspose.Pdf.Document.Form.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "apply-form-filling-only-security.cs", - "title": "Apply Form-Filling Only Security to PDF", - "description": "Demonstrates encrypting a PDF with Aspose.Pdf so that only form filling is permitted while editing, printing, and content extraction are blocked.", + "filename": "add-xmp-metadata-pdfa-compliance.cs", + "title": "Add XMP Metadata for PDF/A Compliance", + "description": "Shows how to load a PDF, add required XMP metadata entries (creator tool, creation date, document ID) and save the file as PDF/A compliant using Aspose.Pdf.", "tags": [ - "pdf-security", - "form-filling", - "encryption", - "permissions", - "aspose-pdf" + "pdfa", + "xmp", + "metadata", + "aspose.pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.DocumentInfo", + "Aspose.Pdf.Metadata", + "Aspose.Pdf.Metadata.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, + { + "filename": "apply-form-filling-only-security.cs", + "title": "Apply Form Filling Only Security", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "attach-multiple-files-to-pdf.cs", - "title": "Attach Multiple Files to a PDF with Custom Descriptions", - "description": "Demonstrates how to add several file attachment annotations to a PDF, each with its own MIME type, description, and icon, using Aspose.Pdf.", + "title": "Attach Multiple Files with Descriptions to a PDF", + "description": "Demonstrates how to embed several external files into a PDF, each with its own MIME type, description, and visual annotation using Aspose.Pdf.", "tags": [ "attachments", "pdf", + "aspose", "annotation", - "aspose-pdf", - "fileattachment" + "file-specification" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.FileSpecification", "Aspose.Pdf.Annotations.FileAttachmentAnnotation", - "Aspose.Pdf.Annotations.FileIcon", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Color", + "Aspose.Pdf.Annotations.FileIcon" ], "difficulty": "intermediate" }, { "filename": "attach-zugferd-xml-to-pdf.cs", - "title": "Attach ZUGFeRD XML to PDF and Convert to PDF/A-3B", - "description": "Shows how to embed a ZUGFeRD XML invoice into a PDF, set the AFRelationship to Data, and convert the document to PDF/A‑3B for ZUGFeRD compliance using Aspose.Pdf.", + "title": "Attach ZUGFeRD XML to PDF and Convert to PDF/A‑3B", + "description": "Shows how to load a PDF, embed a ZUGFeRD XML file as an attached file (AFRelationship.Data), convert the document to PDF/A‑3B for compliance, and save the updated PDF.", "tags": [ "ZUGFeRD", "PDF/A-3B", - "embedded files", + "attachment", "Aspose.Pdf", - "invoice" + "C#" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.EmbeddedFiles", - "Aspose.Pdf.PdfFormat", - "Aspose.Pdf.ConvertErrorAction", - "Aspose.Pdf.AFRelationship" + "Aspose.Pdf.Document.EmbeddedFiles", + "Aspose.Pdf.Document.Convert", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "auto-print-pdf-on-open.cs", - "title": "Auto‑Print PDF on Open with JavaScript Action", - "description": "Demonstrates how to embed a JavaScript action in a PDF using Aspose.Pdf so that the print dialog appears automatically when the document is opened.", + "title": "Auto Print Pdf On Open", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "batch-apply-pdf-password-protection.cs", + "title": "Batch Apply Password Protection to PDFs", + "description": "Demonstrates how to iterate through a folder of PDF files and apply identical user and owner passwords using Aspose.Pdf encryption features.", "tags": [ "pdf", - "javascript", - "autoprint", - "aspose-pdf", - "open-action" + "encryption", + "batch", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Document.OpenAction", + "Aspose.Pdf.Document.Encrypt", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.PageCollection.Add" + "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Permissions" ], "difficulty": "beginner" }, { "filename": "batch-convert-pdfs-to-jpeg.cs", "title": "Batch Convert PDFs to JPEG Images", - "description": "Demonstrates how to iterate through all PDF files in a folder and convert each page to a high‑resolution JPEG image using Aspose.Pdf, naming the output files after the source PDF.", + "description": "Demonstrates how to iterate through all PDF files in a folder, convert each page to a JPEG image using Aspose.Pdf, and save the images with names derived from the source files.", "tags": [ "pdf", "jpeg", "batch-conversion", - "aspose-pdf", + "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Devices.JpegDevice", "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.Devices.JpegDevice", "Aspose.Pdf.Devices.JpegDevice.Process", - "Aspose.Pdf.Document.Pages" + "Aspose.Pdf.PageCollection" ], "difficulty": "intermediate" }, { "filename": "batch-encrypt-pdfs-with-password.cs", - "title": "Batch Encrypt PDFs with Password Protection", - "description": "Demonstrates how to encrypt all PDF files in a folder using Aspose.Pdf by applying the same user and owner passwords and setting specific permissions.", - "tags": [ - "pdf", - "encryption", - "batch", - "password", - "aspose" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "intermediate" + "title": "Batch Encrypt Pdfs With Password", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "batch-generate-zugferd-pdfs-from-csv.cs", "title": "Batch Generate ZUGFeRD‑Compliant PDFs from CSV", - "description": "Demonstrates how to read invoice data from a CSV file, create a PDF for each invoice with Aspose.Pdf, attach the corresponding ZUGFeRD XML, and save the PDFs in a batch process.", + "description": "Reads invoice data from a CSV file, creates a PDF for each record, adds basic invoice text, and attaches the corresponding ZUGFeRD XML file to the PDF.", "tags": [ "ZUGFeRD", "PDF", "CSV", - "Aspose.Pdf", + "Invoice", "Batch" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.BindXml", + "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Text.Position", - "Aspose.Pdf.Text.FontRepository.FindFont", + "Aspose.Pdf.Document.BindXml", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "calculate-total-order-amount-pdf-form.cs", - "title": "Calculate Total Order Amount with JavaScript in PDF Form", - "description": "Demonstrates embedding and executing JavaScript in an Aspose.Pdf form to sum line‑item quantities and prices and write the result to a Total field.", + "title": "Calculate Total Order Amount Pdf Form", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "calculate-total-order-amount.cs", + "title": "Calculate Total Order Amount from PDF Form Fields", + "description": "Shows how to read quantity and price fields from an Aspose.Pdf form, compute line totals, and write the summed amount back into a Total field.", "tags": [ - "javascript", - "pdf-form", + "pdf", + "form", "calculation", "aspose-pdf", - "field-recalculate" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Annotations.JavascriptAction", "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.Field.ExecuteFieldJavaScript", - "Aspose.Pdf.Forms.Field.Recalculate", + "Aspose.Pdf.Forms.Form.AutoRecalculate", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, + { + "filename": "change-pdf-line-width.cs", + "title": "Change PDF Line Width from 1 to 3 Points", + "description": "Shows how to iterate through each page's content operators and modify SetLineWidth operators to change the line width from 1 point to 3 points using Aspose.Pdf.", + "tags": [ + "line-width", + "pdf-operators", + "aspose-pdf", + "content-modification", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Operators.Operator", + "Aspose.Pdf.Operators.SetLineWidth", + "Aspose.Pdf.Page.Contents" + ], + "difficulty": "beginner" + }, { "filename": "combine-multiple-graphs-2x2-grid.cs", - "title": "Combine Multiple Graphs on a Single PDF Page in a 2x2 Grid", - "description": "Shows how to create several Aspose.Pdf Graph objects and arrange them on one PDF page using a two‑by‑two grid layout.", + "title": "Combine Multiple Graphs 2X2 Grid", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "combine-multiple-graphs-on-single-pdf-page.cs", + "title": "Combine Multiple Graphs on a Single PDF Page", + "description": "Demonstrates how to place four separate graphs in a 2×2 grid on one PDF page using Aspose.Pdf, including background shapes and a diagonal line for each graph.", "tags": [ - "pdf", "graph", + "pdf", "grid", - "layout", - "aspose" + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", @@ -31409,20 +38337,21 @@ "Aspose.Pdf.Drawing.Graph", "Aspose.Pdf.Drawing.Rectangle", "Aspose.Pdf.Drawing.Line", + "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Drawing.GraphInfo" ], "difficulty": "intermediate" }, { - "filename": "compress-pdf-and-optimize-images.cs", - "title": "Compress PDF and Optimize Images", - "description": "Demonstrates how to reduce a PDF file size by applying optimization options, including object compression and image down‑sampling, using Aspose.Pdf.", + "filename": "compress-pdf-images-optimization.cs", + "title": "Compress PDF Images and Optimize Resources", + "description": "Demonstrates how to reduce a PDF file size by enabling image compression, resizing high‑resolution images, and applying additional optimizations such as object compression and font subsetting using Aspose.Pdf.", "tags": [ "pdf", "compression", "optimization", "images", - "aspnet" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", @@ -31436,28 +38365,27 @@ { "filename": "convert-pdf-pages-to-high-resolution-png.cs", "title": "Convert PDF Pages to High-Resolution PNG Images", - "description": "Shows how to load a PDF with Aspose.Pdf, set a 300 DPI resolution, and convert each page to a PNG image file.", + "description": "Demonstrates loading a PDF with Aspose.Pdf, setting a 300 DPI resolution, and converting each page to a PNG file.", "tags": [ "pdf", "png", "conversion", "300dpi", - "aspose-pdf" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.Resolution", "Aspose.Pdf.Devices.PngDevice", - "Aspose.Pdf.Devices.PngDevice.Process" + "Aspose.Pdf.Devices.PngDevice.Process", + "Aspose.Pdf.Page" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "convert-pdf-to-docx-preserve-layout.cs", "title": "Convert PDF to DOCX with Layout Preservation", - "description": "Shows how to load a PDF and save it as a DOCX file using Aspose.Pdf while preserving the original layout, fonts, and tables.", + "description": "Shows how to convert a PDF file to DOCX using Aspose.Pdf while keeping the original layout, fonts, and tables by using EnhancedFlow recognition mode.", "tags": [ "pdf", "docx", @@ -31467,17 +38395,26 @@ ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", "Aspose.Pdf.DocSaveOptions", - "Aspose.Pdf.DocSaveOptions.RecognitionMode", - "Aspose.Pdf.DocSaveOptions.DocFormat" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.DocSaveOptions.Format", + "Aspose.Pdf.DocSaveOptions.Mode", + "Aspose.Pdf.DocSaveOptions.RecognitionMode" ], "difficulty": "beginner" }, { "filename": "convert-pdf-to-html-embedded-images.cs", + "title": "Convert Pdf To Html Embedded Images", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "convert-pdf-to-html-with-embedded-images.cs", "title": "Convert PDF to HTML with Embedded Images", - "description": "Demonstrates converting a PDF file to a single HTML document while embedding all resources, including raster images as Base64‑encoded data URIs.", + "description": "Demonstrates converting a PDF to HTML using Aspose.Pdf while embedding all resources and raster images as Base64‑encoded PNGs inside the markup.", "tags": [ "pdf", "html", @@ -31496,18 +38433,18 @@ }, { "filename": "convert-pdf-to-multi-page-tiff.cs", - "title": "Convert PDF to Multi-Page TIFF", - "description": "Demonstrates how to use Aspose.Pdf to convert a PDF document into a multi‑page TIFF file, preserving each PDF page as a separate TIFF layer with custom resolution and TIFF settings.", + "title": "Convert PDF to Multi‑Page TIFF", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, configure TIFF settings, and convert the entire document into a multi‑page TIFF file.", "tags": [ "pdf", "tiff", "conversion", - "aspose-pdf", - "multpage" + "multipage", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.Resolution", "Aspose.Pdf.Devices.TiffSettings", "Aspose.Pdf.Devices.TiffDevice", "Aspose.Pdf.Devices.TiffDevice.Process" @@ -31517,10 +38454,10 @@ { "filename": "convert-pdf-to-pdfa-2b.cs", "title": "Convert PDF to PDF/A‑2b Compliance", - "description": "Demonstrates loading a PDF with Aspose.Pdf, converting it to PDF/A‑2b archival format, and saving the compliant file.", + "description": "Loads a PDF, converts it to PDF/A‑2b archival format using Aspose.Pdf, logs any conversion errors, and saves the compliant document.", "tags": [ "pdf", - "pdfa", + "pdfa-2b", "conversion", "archival", "aspose" @@ -31537,56 +38474,64 @@ { "filename": "convert-pdf-zugferd-to-pdfa3u.cs", "title": "Convert PDF with ZUGFeRD to PDF/A‑3U preserving XML", - "description": "Shows how to load a PDF that contains a ZUGFeRD XML attachment and convert it to PDF/A‑3U while keeping the embedded data intact.", + "description": "Shows how to load a PDF containing a ZUGFeRD XML attachment and convert it to PDF/A‑3U while keeping the embedded XML data.", "tags": [ "ZUGFeRD", "PDF/A-3U", "Aspose.Pdf", - "Conversion", - "Embedded XML" + "XML attachment", + "conversion" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Document.Convert", + "Aspose.Pdf.Document.Save", "Aspose.Pdf.PdfFormat", - "Aspose.Pdf.ConvertErrorAction", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.ConvertErrorAction" ], "difficulty": "beginner" }, { - "filename": "create-layered-graphics-with-transparency.cs", - "title": "Create Layered Graphics with Transparency in PDF", - "description": "Demonstrates how to add optional‑content groups (layers) and draw semi‑transparent shapes such as a rectangle, ellipse, and line using Aspose.Pdf graphics objects.", + "filename": "create-bar-chart-pdf.cs", + "title": "Create Bar Chart PDF with Custom Colors and Axis Labels", + "description": "Demonstrates how to generate a PDF bar chart using Aspose.Pdf's Graph API, applying custom colors to each bar and adding X‑ and Y‑axis labels.", "tags": [ - "layers", - "transparency", - "graphics", - "aspdf", - "pdf" + "bar-chart", + "pdf", + "graph-api", + "custom-colors", + "axis-labels" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Layer", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.Ellipse", "Aspose.Pdf.Drawing.Line", - "Aspose.Pdf.Color.FromArgb" + "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Drawing.GraphInfo", + "Aspose.Pdf.Drawing.MarginInfo" ], "difficulty": "intermediate" }, + { + "filename": "create-layered-graphics-with-transparency.cs", + "title": "Create Layered Graphics With Transparency", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "create-line-graph-multiple-stroke-styles.cs", "title": "Create Line Graph with Multiple Stroke Styles", - "description": "Demonstrates how to generate a PDF line graph with three series, each using a different stroke style (solid, dashed, dotted) via Aspose.Pdf.", + "description": "Demonstrates how to generate a PDF line graph with three data series, each using a distinct stroke style (solid, dashed, dotted) by configuring GraphInfo properties.", "tags": [ - "pdf", - "graph", - "line-chart", + "line-graph", "stroke-style", - "aspose-pdf" + "Aspose.Pdf", + "graph", + "pdf" ], "apis_used": [ "Aspose.Pdf.Document", @@ -31599,31 +38544,67 @@ "difficulty": "intermediate" }, { - "filename": "create-pdf-signature-field-js-validation.cs", - "title": "Create PDF with Signature Field and JavaScript Validation", - "description": "Shows how to add a digital signature field to a PDF using Aspose.Pdf and attach JavaScript that executes when the user signs the field.", + "filename": "create-pdf-page-transitions-javascript.cs", + "title": "Create PDF with Page Transition Effects via JavaScript", + "description": "Demonstrates how to add page transition effects to a PDF by attaching JavaScript actions to each page's OnOpen event using Aspose.Pdf.", "tags": [ - "signature", - "javascript", "pdf", - "aspose", - "form" + "page-transition", + "javascript", + "aspose-pdf", + "document" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Forms.SignatureField.ExecuteFieldJavaScript", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.FontRepository", + "Aspose.Pdf.Annotations.JavascriptAction" + ], + "difficulty": "beginner" + }, + { + "filename": "create-pdf-signature-field-js-validation.cs", + "title": "Create Pdf Signature Field Js Validation", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-pdf-table-of-contents-with-outlines.cs", + "title": "Create PDF Table of Contents with Clickable Outlines", + "description": "Loads an existing PDF, enables auto‑tagging, creates a TOC element, inserts a dedicated page, and configures TocInfo to generate clickable outline (bookmark) entries for each heading.", + "tags": [ + "toc", + "outline", + "auto-tagging", + "pdf", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.AutoTaggingSettings", + "Aspose.Pdf.Tagged.ITaggedContent", + "Aspose.Pdf.Tagged.TaggedContent.CreateTOCElement", + "Aspose.Pdf.StructureElement.AppendChild", + "Aspose.Pdf.Page.TocInfo", + "Aspose.Pdf.Text.TextFragment" ], "difficulty": "intermediate" }, { "filename": "create-zugferd-compliant-invoice-pdf.cs", - "title": "Create ZUGFeRD‑compliant Invoice PDF", - "description": "Shows how to load a human‑readable invoice PDF, embed ZUGFeRD XML data, convert the document to PDF/A‑3 (ZUGFeRD) format, and save the resulting compliant invoice.", + "title": "Create Zugferd Compliant Invoice Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-zugferd-invoice-pdf.cs", + "title": "Create ZUGFeRD‑Compliant Invoice PDF", + "description": "Demonstrates embedding a ZUGFeRD XML file into a readable PDF, converting the document to PDF/A‑3 (ZUGFeRD) format, and saving the resulting compliant invoice PDF.", "tags": [ "ZUGFeRD", "PDF/A-3", @@ -31637,21 +38618,41 @@ "Aspose.Pdf.Document.Convert", "Aspose.Pdf.Document.Save", "Aspose.Pdf.PdfFormat", - "Aspose.Pdf.ConvertErrorAction" + "Aspose.Pdf.Facades.ConvertErrorAction" ], "difficulty": "intermediate" }, { "filename": "digitally-sign-pdf-with-pfx-timestamp.cs", "title": "Digitally Sign PDF with PFX Certificate and Timestamp", - "description": "Shows how to add a signature field to a PDF, sign it using a PFX certificate via PKCS#7, apply a timestamp, and save the signed document.", + "description": "Demonstrates loading a PDF, adding a signature field, applying a PKCS#7 signature from a PFX file, attaching an RFC‑3161 timestamp, and saving the signed document.", "tags": [ "pdf-signature", - "pfx-certificate", + "pfx", "timestamp", "aspose-pdf", "digital-signature" ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Forms.PKCS7", + "Aspose.Pdf.Forms.TimestampSettings", + "Aspose.Pdf.DigestHashAlgorithm" + ], + "difficulty": "intermediate" + }, + { + "filename": "digitally-sign-zugferd-pdf-with-timestamp.cs", + "title": "Digitally Sign ZUGFeRD PDF with Timestamp", + "description": "Demonstrates loading a ZUGFeRD PDF, adding a signature field, applying a PKCS#7 digital signature from a PFX file, and attaching a timestamp from a TSA server, then saving the signed document.", + "tags": [ + "ZUGFeRD", + "digital-signature", + "timestamp", + "PKCS7", + "Aspose.Pdf" + ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.SignatureField", @@ -31663,15 +38664,15 @@ "difficulty": "intermediate" }, { - "filename": "draw-pie-chart-using-low-level-pdf-operators.cs", + "filename": "draw-pie-chart-using-low-level-operators.cs", "title": "Draw Pie Chart Using Low-Level PDF Operators", - "description": "The example creates a PDF document and draws a pie chart by manually constructing each slice with low-level PDF drawing operators, assigning distinct fill colors to each slice.", + "description": "Demonstrates how to create a pie chart in a PDF by manually constructing paths with low-level drawing operators and filling each slice with a distinct RGB color.", "tags": [ "pie-chart", - "pdf", - "drawing", - "operators", - "aspose-pdf" + "pdf-graphics", + "low-level-operators", + "aspose-pdf", + "drawing" ], "apis_used": [ "Aspose.Pdf.Document", @@ -31679,133 +38680,175 @@ "Aspose.Pdf.Operators.SetRGBColor", "Aspose.Pdf.Operators.MoveTo", "Aspose.Pdf.Operators.LineTo", + "Aspose.Pdf.Operators.ClosePath", "Aspose.Pdf.Operators.Fill", - "Aspose.Pdf.Operators.Stroke", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "draw-star-shape-pdf-operators.cs", - "title": "Draw a Star Shape Using Low‑Level PDF Operators", - "description": "Demonstrates how to use Aspose.Pdf low‑level graphics operators to draw a custom 5‑pointed star at specified coordinates, including setting stroke/fill colors and line width.", + "filename": "draw-pie-chart-using-low-level-pdf-operators.cs", + "title": "Draw Pie Chart Using Low Level Pdf Operators", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "draw-star-shape-low-level-operators.cs", + "title": "Draw a Star Shape Using Low-Level PDF Operators", + "description": "Shows how to load a PDF, calculate the vertices of a 5‑point star, and use Aspose.Pdf low‑level graphics operators (q, rg, w, m, l, b, Q) to draw, fill, and stroke the star on a page.", "tags": [ "pdf", "drawing", "operators", "star", - "aspnet" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Operators.SetRGBColorStroke", + "Aspose.Pdf.OperatorCollection", + "Aspose.Pdf.Operators.GSave", "Aspose.Pdf.Operators.SetRGBColor", "Aspose.Pdf.Operators.SetLineWidth", - "Aspose.Pdf.Operators.MoveTo", - "Aspose.Pdf.Operators.LineTo", - "Aspose.Pdf.Operators.ClosePathFillStroke" + "Aspose.Pdf.Operators.ClosePathFillStroke", + "Aspose.Pdf.Operators.GRestore" ], "difficulty": "intermediate" }, { - "filename": "embed-audio-with-js-playback.cs", - "title": "Embed Audio with JavaScript Playback in PDF", - "description": "Shows how to create a PDF, embed a WAV audio file as a SoundAnnotation, and add a button that plays the audio using JavaScript actions.", + "filename": "draw-star-shape-pdf-operators.cs", + "title": "Draw Star Shape Pdf Operators", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "dynamic-header-footer-pdf.cs", + "title": "Create PDF with Dynamic Header and Footer", + "description": "Shows how to add per‑page header and footer text and attach a JavaScript action that runs when each page is opened, using Aspose.Pdf for .NET.", "tags": [ - "audio", + "header", + "footer", "javascript", - "annotation", - "button", - "aspose-pdf" + "pdf", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.SoundAnnotation", - "Aspose.Pdf.Forms.ButtonField", + "Aspose.Pdf.HeaderFooter", + "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Annotations.JavascriptAction" ], "difficulty": "intermediate" }, { - "filename": "embed-custom-font-and-draw-graph.cs", - "title": "Embed Custom TrueType Font and Draw Graph in PDF", - "description": "Demonstrates loading and embedding a TrueType font, applying it to a text fragment, and creating a graph with rectangle, line, and ellipse shapes in a PDF using Aspose.Pdf.", + "filename": "embed-audio-pdf-sound-annotation.cs", + "title": "Embed Audio in PDF with Sound Annotation", + "description": "Shows how to create a PDF, add a sound annotation that embeds a WAV file, and save the document using Aspose.Pdf.", "tags": [ - "font-embedding", - "graph", + "audio", "pdf", - "custom-font", - "Aspose.Pdf" + "sound-annotation", + "embed", + "aspnet" ], "apis_used": [ - "Aspose.Pdf.FontRepository", - "Aspose.Pdf.Font", "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.Line", - "Aspose.Pdf.Drawing.Ellipse" + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.SoundAnnotation", + "Aspose.Pdf.Annotations.SoundIcon" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "embed-qr-code-using-low-level-operators.cs", - "title": "Embed QR Code Image Using Low-Level PDF Operators", - "description": "Demonstrates how to add a QR code image to a specific location on a PDF page by inserting low‑level PDF operators (q, cm, Do, Q) with Aspose.Pdf.", + "filename": "embed-audio-with-js-playback.cs", + "title": "Embed Audio With Js Playback", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "embed-custom-font-and-draw-graph.cs", + "title": "Embed Custom Font And Draw Graph", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "embed-custom-ttf-font-in-pdf-graph.cs", + "title": "Embed Custom TrueType Font in PDF with Graph", + "description": "Demonstrates how to embed an installed TrueType font into a PDF using Aspose.Pdf, draw a simple graph shape, and add text that uses the embedded font.", "tags": [ + "font-embedding", "pdf", - "qr-code", - "image", - "low-level-operators", - "aspose-pdf" + "graph", + "aspose-pdf", + "text" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Page.Resources.Images.Add", - "Aspose.Pdf.Operators.GSave", - "Aspose.Pdf.Operators.ConcatenateMatrix", - "Aspose.Pdf.Operators.Do", - "Aspose.Pdf.Operators.GRestore", - "Aspose.Pdf.Page.Contents.Insert" + "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Drawing.GraphInfo", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.FontRepository.FindFont" ], "difficulty": "intermediate" }, { - "filename": "embed-subset-custom-font-pdf.cs", - "title": "Embed and Subset Custom Font in PDF", - "description": "Demonstrates loading a TrueType font, applying it to existing text fragments, and using FontUtilities.SubsetFonts to embed only the required glyphs, reducing the PDF file size.", + "filename": "embed-qr-code-image-at-specific-coordinates.cs", + "title": "Embed QR Code Image at Specific Coordinates in PDF", + "description": "Demonstrates how to place a QR code image onto a PDF page at exact lower‑left and upper‑right coordinates using Aspose.Pdf's ImageStamp.", "tags": [ - "font-embedding", - "font-subsetting", "pdf", - "aspose-pdf", - "text-absorption" + "qr-code", + "image-stamp", + "coordinates", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.FontRepository", - "Aspose.Pdf.Font", - "Aspose.Pdf.Text.TextFragmentAbsorber", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Document.FontUtilities", - "Aspose.Pdf.FontSubsetStrategy" + "Aspose.Pdf.Page", + "Aspose.Pdf.Drawing.ImageStamp", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" + }, + { + "filename": "embed-qr-code-using-low-level-operators.cs", + "title": "Embed Qr Code Using Low Level Operators", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "embed-subset-custom-font-pdf.cs", + "title": "Embed Subset Custom Font Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "embed-vector-graphic-in-pdf.cs", - "title": "Embed Vector Graphic in PDF Using Aspose.Pdf Graph", - "description": "Shows how to create a Graph container, draw vector shapes such as a rectangle and a line, and embed the resulting vector graphic directly into a PDF page with Aspose.Pdf.", + "filename": "embed-vector-graphic-graph-into-pdf.cs", + "title": "Embed Vector Graphic (Graph) into PDF", + "description": "Shows how to create a Graph object, add rectangle and line vector shapes, and embed the resulting vector graphic directly into a PDF page using Aspose.Pdf.", "tags": [ "graph", "vector-graphic", "pdf", - "aspose-pdf", - "drawing" + "aspose", + "shapes" ], "apis_used": [ "Aspose.Pdf.Document", @@ -31815,87 +38858,60 @@ "Aspose.Pdf.Drawing.Line", "Aspose.Pdf.Drawing.GraphInfo" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "embed-zugferd-xml-into-pdf-invoice.cs", - "title": "Embed ZUGFeRD XML into PDF Invoice using Aspose.Pdf", - "description": "Shows how to generate a simple ZUGFeRD XML document from an order and embed it as an attachment in a PDF invoice with Aspose.Pdf.", - "tags": [ - "ZUGFeRD", - "PDF", - "Aspose.Pdf", - "XML attachment", - "Invoice" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.FontRepository", - "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Annotations.FileAttachmentAnnotation", - "Aspose.Pdf.Rectangle" - ], - "difficulty": "intermediate" + "title": "Embed Zugferd Xml Into Pdf Invoice", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "encrypt-pdf-aes256-with-passwords.cs", "title": "Encrypt PDF with AES‑256 and Passwords", - "description": "Shows how to apply AES‑256 encryption to a PDF, set separate user and owner passwords, and define permissions using Aspose.Pdf.", + "description": "Demonstrates loading a PDF, applying AES‑256 encryption with separate user and owner passwords, setting basic permissions, and saving the protected document.", "tags": [ - "pdf", "encryption", - "aes-256", - "passwords", - "permissions" + "pdf", + "aes256", + "permissions", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Document.Save", "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm" + "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "encrypt-pdf-with-embedded-attachment.cs", - "title": "Encrypt PDF with Embedded Attachment", - "description": "Demonstrates adding a file attachment to a PDF and encrypting the entire document (including the attachment) with user and owner passwords using AES‑256.", - "tags": [ - "pdf", - "encryption", - "attachment", - "aspose.pdf", - "security" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Document.EmbeddedFiles", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm" - ], - "difficulty": "intermediate" + "title": "Encrypt Pdf With Embedded Attachment", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "encrypt-zugferd-pdf-with-passwords.cs", "title": "Encrypt ZUGFeRD PDF with User and Owner Passwords", - "description": "Shows how to load a ZUGFeRD PDF, apply AES‑256 encryption with both user and owner passwords, set specific permissions, and save the encrypted document.", + "description": "Demonstrates loading a ZUGFeRD PDF, setting specific permissions, encrypting it with both user and owner passwords using AES‑256, and saving the protected file.", "tags": [ - "pdf", - "encryption", + "pdf-encryption", "zugferd", "permissions", - "aes256" + "aes256", + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Encrypt", "Aspose.Pdf.Permissions", "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.Encrypt", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" @@ -31903,29 +38919,49 @@ { "filename": "export-pdf-annotations-to-xfdf.cs", "title": "Export PDF Annotations to XFDF", - "description": "Loads a PDF document, extracts all its annotations, and writes them to an XFDF file for external processing or archiving.", + "description": "Shows how to load a PDF with Aspose.Pdf and export all its annotations to an XFDF file for external processing or archiving.", "tags": [ + "pdf", "annotations", "xfdf", "export", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.ExportAnnotationsToXfdf" + ], + "difficulty": "beginner" + }, + { + "filename": "export-pdf-form-fields-to-json.cs", + "title": "Export PDF Form Fields to JSON", + "description": "Loads a PDF document, exports all its form fields to a JSON file using Aspose.Pdf, and optionally reads and displays the generated JSON.", + "tags": [ "pdf", + "form-fields", + "json", + "export", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.ExportAnnotationsToXfdf" + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Form.ExportToJson", + "Aspose.Pdf.ExportFieldsToJsonOptions", + "Aspose.Pdf.Document.Dispose" ], "difficulty": "beginner" }, { "filename": "export-selected-pdf-pages.cs", "title": "Export Selected PDF Pages to Separate Files", - "description": "Loads a PDF, extracts specified pages, and saves each page as an individual PDF while preserving its original size and orientation.", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, extract specific pages, and save each page as an individual PDF while preserving its original size and orientation.", "tags": [ "pdf", "export", "pages", - "aspose", + "aspose.pdf", "csharp" ], "apis_used": [ @@ -31933,92 +38969,106 @@ "Aspose.Pdf.Document.Pages", "Aspose.Pdf.Document.Save", "Aspose.Pdf.PageCollection.Add", - "Aspose.Pdf.PageCollection.Item" + "Aspose.Pdf.PageCollection.Count" ], "difficulty": "beginner" }, { "filename": "extract-images-from-pdf.cs", "title": "Extract Images from PDF with Original Format", - "description": "Shows how to iterate through PDF pages, absorb image placements, and save each embedded image while preserving its original format and resolution.", + "description": "The example opens a PDF, iterates through each page's image resources, and saves each image to disk preserving its original format and resolution.", "tags": [ "pdf", "image-extraction", - "aspose-pdf", + "aspose.pdf", "csharp", - "original-format" + "file-io" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Page.Accept", - "Aspose.Pdf.Vector.ImagePlacementAbsorber", - "Aspose.Pdf.Vector.ImagePlacement", - "Aspose.Pdf.XImage.Save" + "Aspose.Pdf.XImage", + "Aspose.Pdf.XImage.Save", + "Aspose.Pdf.Page.Resources.Images" ], "difficulty": "intermediate" }, { "filename": "extract-pdf-form-fields-to-json.cs", - "title": "Extract PDF Form Fields to JSON", - "description": "Shows how to load a PDF with Aspose.Pdf, export its form fields to a JSON file, and optionally read the generated JSON content.", + "title": "Extract Pdf Form Fields To Json", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-pdf-text-to-searchable-index.cs", + "title": "Extract Text from PDFs and Build a Searchable JSON Index", + "description": "Demonstrates how to use Aspose.Pdf to extract all text from PDF files in a folder and store the results in a JSON file that can be queried as a searchable index.", "tags": [ "pdf", - "form-fields", + "text-extraction", + "search-index", "json", - "aspose-pdf", - "csharp" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Form.ExportToJson" + "Aspose.Pdf.Text.TextAbsorber", + "Aspose.Pdf.Text.TextAbsorber.Visit", + "Aspose.Pdf.Text.TextAbsorber.Text", + "Aspose.Pdf.Document.Dispose" ], "difficulty": "beginner" }, { "filename": "extract-text-from-pdf-preserving-line-breaks.cs", - "title": "Extract Text from PDF Preserving Line Breaks", - "description": "Demonstrates how to load a PDF with Aspose.Pdf, configure text extraction options to keep formatting, and retrieve the full text including line breaks and spacing.", + "title": "Extract Text From Pdf Preserving Line Breaks", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-text-from-pdf-with-line-breaks.cs", + "title": "Extract Text from PDF with Line Breaks", + "description": "Demonstrates how to extract all textual content from a PDF while preserving line breaks and spacing using Aspose.Pdf's TextAbsorber with Pure formatting mode.", "tags": [ - "text-extraction", "pdf", - "aspose", - "csharp", - "line-breaks" + "text-extraction", + "aspose-pdf", + "line-breaks", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Text.TextExtractionOptions", "Aspose.Pdf.Text.TextAbsorber", "Aspose.Pdf.PageCollection.Accept", - "Aspose.Pdf.Text.TextAbsorber.Text" + "Aspose.Pdf.Text.TextExtractionOptions.TextFormattingMode" ], "difficulty": "beginner" }, { "filename": "extract-text-pdf-search-index.cs", - "title": "Extract Text from PDFs and Build a Searchable JSON Index", - "description": "Demonstrates how to iterate over PDF files, extract their full text using Aspose.Pdf, and store the results in a JSON‑based searchable index.", - "tags": [ - "pdf", - "text-extraction", - "search-index", - "json", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextAbsorber", - "Aspose.Pdf.PageCollection.Accept", - "Aspose.Pdf.Text.TextAbsorber.Text" - ], - "difficulty": "intermediate" + "title": "Extract Text Pdf Search Index", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "extract-validate-zugferd-xml-from-pdf.cs", + "title": "Extract Validate Zugferd Xml From Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-validate-zugferd-xml.cs", "title": "Extract and Validate ZUGFeRD XML from PDF", - "description": "Shows how to pull an embedded ZUGFeRD XML file out of a PDF with Aspose.Pdf and then validate it against the official ZUGFeRD XSD schema.", + "description": "Demonstrates locating the ZUGFeRD XML attachment inside a PDF with Aspose.Pdf, extracting it to a file, and validating the extracted XML against the official ZUGFeRD XSD schema.", "tags": [ "ZUGFeRD", "PDF", @@ -32031,14 +39081,14 @@ "Aspose.Pdf.Document.EmbeddedFiles", "Aspose.Pdf.EmbeddedFile", "Aspose.Pdf.EmbeddedFile.Save", - "Aspose.Pdf.EmbeddedFile.Name" + "Aspose.Pdf.EmbeddedFileInfo" ], "difficulty": "intermediate" }, { "filename": "extract-zugferd-xml-from-pdf.cs", - "title": "Extract ZUGFeRD XML from PDF", - "description": "Shows how to load a PDF with Aspose.Pdf, locate the embedded ZUGFeRD XML attachment, and save it to a local file.", + "title": "Extract Embedded ZUGFeRD XML from PDF", + "description": "Shows how to load a PDF with Aspose.Pdf, locate an embedded ZUGFeRD XML file, and save it to the local file system.", "tags": [ "ZUGFeRD", "PDF", @@ -32049,35 +39099,36 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.FileSpecification.Contents", - "Aspose.Pdf.EmbeddedFiles" + "Aspose.Pdf.Document.EmbeddedFiles", + "Aspose.Pdf.FileSpecification.Name", + "Aspose.Pdf.FileSpecification.Contents" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "generate-png-thumbnails-for-pdf-pages.cs", "title": "Generate PNG Thumbnails for PDF Pages", - "description": "Creates a 150x150 PNG thumbnail for each page of a PDF using Aspose.Pdf's ThumbnailDevice and saves the images to the specified directory.", + "description": "Creates 150x150 PNG preview images for each page of a PDF document using Aspose.Pdf's ThumbnailDevice.", "tags": [ "pdf", "thumbnail", "png", "aspose", - "csharp" + "image" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Devices.ThumbnailDevice", "Aspose.Pdf.Page", - "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.PageCollection", "Aspose.Pdf.Devices.ThumbnailDevice.Process" ], "difficulty": "beginner" }, { - "filename": "hide-show-pdf-form-field-with-checkbox.cs", - "title": "Hide/Show PDF Form Field with Checkbox JavaScript", - "description": "Shows how to add a checkbox and a text box to a PDF using Aspose.Pdf, attach JavaScript to the checkbox to hide or show the text box based on its checked state, and save the resulting document.", + "filename": "hide-form-field-with-checkbox.cs", + "title": "Hide Form Field with Checkbox Using JavaScript in PDF", + "description": "Demonstrates how to add a checkbox and a text field to a PDF and use JavaScript to hide or show the text field based on the checkbox state.", "tags": [ "pdf", "form", @@ -32090,102 +39141,134 @@ "Aspose.Pdf.Page", "Aspose.Pdf.Forms.CheckboxField", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Annotations.JavascriptAction" ], "difficulty": "intermediate" }, { - "filename": "hide-toolbar-menu-bar-pdf.cs", + "filename": "hide-show-pdf-form-field-with-checkbox.cs", + "title": "Hide Show Pdf Form Field With Checkbox", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "hide-toolbar-menu-bar-pdf-javascript.cs", "title": "Hide Toolbar and Menu Bar in PDF via JavaScript", - "description": "Shows how to set PDF viewer preferences and add an open‑action JavaScript that hides the toolbar and menu bar when the document is opened.", + "description": "Demonstrates how to set PDF viewer preferences to hide the toolbar and menu bar when the document opens by adding a JavaScript open action and using Aspose.Pdf viewer‑preference properties.", "tags": [ - "viewer-preferences", + "pdf", "javascript", + "viewer-preferences", "toolbar", - "menu-bar", - "Aspose.Pdf" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.JavascriptAction", + "Aspose.Pdf.Document.OpenAction", "Aspose.Pdf.Document.HideToolBar", "Aspose.Pdf.Document.HideMenubar", - "Aspose.Pdf.Document.OpenAction", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, + { + "filename": "hide-toolbar-menu-bar-pdf.cs", + "title": "Hide Toolbar Menu Bar Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "import-fdf-data-into-pdf-and-flatten-form.cs", "title": "Import FDF Data into PDF and Flatten Form", - "description": "Demonstrates loading a PDF, importing form field values from an FDF file using Aspose.Pdf, flattening the form to make fields non‑editable, and saving the updated document.", + "description": "Shows how to load a PDF, import field values from an FDF/XFDF file using XfdfReader, flatten the form to make fields read‑only, and save the updated document.", "tags": [ "FDF", - "form", + "XFDF", + "form-fill", "flatten", - "Aspose.Pdf", - "PDF" + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Annotations.FdfReader", - "Aspose.Pdf.Annotations.FdfReader.ReadAnnotations", - "Aspose.Pdf.Document.Flatten", + "Aspose.Pdf.Annotations.XfdfReader.ReadFields", + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Form.Flatten", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "list-javascript-actions-in-pdf.cs", - "title": "List JavaScript Actions in a PDF Document", - "description": "Shows how to extract both document‑level and page‑level JavaScript scripts from a PDF using Aspose.Pdf for auditing purposes.", + "title": "List JavaScript Actions in PDF (Document and Page Level)", + "description": "Demonstrates how to enumerate both document‑level and page‑level JavaScript actions in a PDF using Aspose.Pdf, including Open/Close actions and page Open/Close scripts.", "tags": [ "javascript", "pdf", - "audit", + "aspose-pdf", "document-actions", - "aspose-pdf" + "page-actions" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.JavaScript", - "Aspose.Pdf.Document.Actions", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.PdfAction", "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Annotations.PageActionCollection" + "Aspose.Pdf.Annotations.IAppointment", + "Aspose.Pdf.PdfAction", + "Aspose.Pdf.PageActionCollection" ], "difficulty": "intermediate" }, { - "filename": "list-pdf-attachments-sizes.cs", - "title": "List PDF Attachments and Their Sizes", - "description": "Loads a PDF file, iterates over its embedded files collection, and prints each attachment's name and size in bytes.", + "filename": "list-pdf-attachments-names-sizes.cs", + "title": "List PDF Attachments with Names and Sizes", + "description": "Shows how to load a PDF using Aspose.Pdf, iterate through its pages and annotations, and extract the names and byte sizes of file attachment annotations.", "tags": [ "pdf", "attachments", - "embedded-files", - "aspose", - "csharp" + "aspnet", + "file-attachment", + "metadata" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.EmbeddedFiles", - "Aspose.Pdf.EmbeddedFile" + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.FileAttachmentAnnotation", + "Aspose.Pdf.FileSpecification" ], - "difficulty": "beginner" + "difficulty": "intermediate" + }, + { + "filename": "list-pdf-attachments-sizes.cs", + "title": "List Pdf Attachments Sizes", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "merge-multiple-pdfs-preserving-bookmarks.cs", - "title": "Merge Multiple PDFs Preserving Bookmarks", - "description": "Demonstrates how to combine several PDF files into a single document while keeping the original bookmarks and outline hierarchy using Aspose.Pdf.", + "title": "Merge Multiple Pdfs Preserving Bookmarks", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "merge-pdfs-with-bookmarks.cs", + "title": "Merge PDFs with Bookmarks Preservation", + "description": "Shows how to combine multiple PDF files into a single document while keeping the original outlines/bookmarks using Aspose.Pdf.", "tags": [ "pdf", "merge", "bookmarks", - "aspose", - "csharp" + "aspnet", + "document" ], "apis_used": [ "Aspose.Pdf.Document", @@ -32194,36 +39277,16 @@ ], "difficulty": "beginner" }, - { - "filename": "modify-pdf-line-width-operators.cs", - "title": "Modify PDF Line Width Operators from 1 to 3 Points", - "description": "Demonstrates how to load a PDF with Aspose.Pdf, iterate through each page's content operators, detect SetLineWidth operators, and change a line width of 1 point to 3 points before saving the document.", - "tags": [ - "pdf", - "line-width", - "operators", - "aspose-pdf", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Operators.Operator", - "Aspose.Pdf.Operators.SetLineWidth", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "intermediate" - }, { "filename": "populate-pdf-form-from-json-and-flatten.cs", "title": "Populate PDF Form from JSON and Flatten", - "description": "Demonstrates loading a PDF, filling its form fields using data from a JSON file, flattening the form to make the values permanent, and saving the result.", + "description": "Shows how to load a PDF, fill its form fields using a JSON data source, flatten the form to make fields read‑only, and save the updated document.", "tags": [ "pdf", "form", "json", "flatten", - "aspose" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", @@ -32234,30 +39297,57 @@ ], "difficulty": "beginner" }, + { + "filename": "print-pdf-range-to-network-printer.cs", + "title": "Print PDF Page Range to Network Printer with Duplex and Paper Size", + "description": "Demonstrates loading a PDF with Aspose.Pdf, rendering selected pages to images and sending them to a network printer while specifying duplex mode and A4 paper size.", + "tags": [ + "pdf", + "printing", + "duplex", + "page-range", + "network-printer" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Devices.PngDevice", + "Aspose.Pdf.Devices.PngDevice.Process", + "Aspose.Pdf.Page", + "Aspose.Pdf.Document.Duplex" + ], + "difficulty": "intermediate" + }, { "filename": "print-pdf-silently-to-default-printer.cs", "title": "Print PDF Silently to Default Printer", - "description": "Demonstrates loading a PDF with Aspose.Pdf, rendering each page to an image, and sending the images to the default printer without showing any print dialog.", + "description": "Demonstrates how to load a PDF file and send it directly to the default printer without showing any print dialog using Aspose.Pdf.Facades.", "tags": [ "pdf", "printing", "silent", - "aspose-pdf", + "aspose", "csharp" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Devices.JpegDevice", - "Aspose.Pdf.Devices.Resolution", - "Aspose.Pdf.Page", - "Aspose.Pdf.Devices.JpegDevice.Process" + "Aspose.Pdf.Facades.PdfViewer", + "Aspose.Pdf.Facades.PdfViewer.BindPdf", + "Aspose.Pdf.Facades.PdfViewer.PrintDocument", + "Aspose.Pdf.Facades.PdfViewer.Close" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "read-custom-pdf-metadata-audit.cs", - "title": "Read Custom PDF Metadata and Log for Auditing", - "description": "Demonstrates how to open a PDF with Aspose.Pdf, extract only custom metadata entries, and write them to a log file for audit purposes.", + "title": "Read Custom Pdf Metadata Audit", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "read-custom-pdf-metadata-log.cs", + "title": "Read Custom PDF Metadata and Write to Log", + "description": "Shows how to load a PDF with Aspose.Pdf, extract only custom metadata entries, and write them to a text file for auditing purposes.", "tags": [ "pdf", "metadata", @@ -32270,49 +39360,46 @@ "Aspose.Pdf.DocumentInfo", "Aspose.Pdf.DocumentInfo.IsPredefinedKey", "Aspose.Pdf.DocumentInfo.GetEnumerator", - "Aspose.Pdf.DocumentInfo.Item" + "Aspose.Pdf.DocumentInfo.Count" ], "difficulty": "beginner" }, { "filename": "remove-background-operators-from-pdf.cs", - "title": "Remove Background Graphics Operators from PDF", - "description": "Demonstrates loading a PDF with Aspose.Pdf, iterating each page's content stream, identifying fill/stroke operators that create background graphics, deleting them in batch, and saving the cleaned document.", + "title": "Remove Background Operators from PDF Content Stream", + "description": "Demonstrates iterating over PDF pages and deleting specific drawing operators (such as FillStroke) from each page's content stream using Aspose.Pdf.", "tags": [ "pdf", "operators", "background", - "aspose-pdf", - "csharp" + "content-stream", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.OperatorCollection", - "Aspose.Pdf.OperatorCollection.Delete", "Aspose.Pdf.Operators.FillStroke", - "Aspose.Pdf.Operators.ClosePathFillStroke", - "Aspose.Pdf.Operators.EOFillStroke", - "Aspose.Pdf.Operators.ClosePathEOFillStroke" + "Aspose.Pdf.OperatorCollection.Delete" ], "difficulty": "intermediate" }, { "filename": "remove-javascript-from-pdf.cs", - "title": "Remove JavaScript and Embedded Files from PDF", - "description": "Shows how to delete document‑level and page‑level JavaScript actions, clear the OpenAction, and remove file attachment annotations to harden a PDF using Aspose.Pdf.", + "title": "Remove JavaScript from PDF Document", + "description": "Demonstrates how to strip all embedded JavaScript actions—including document‑level, page‑level, and annotation‑level scripts—from a PDF using Aspose.Pdf.", "tags": [ - "javascript", "pdf", + "javascript", "security", - "aspose", + "aspose-pdf", "annotations" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", "Aspose.Pdf.Annotations.LinkAnnotation", - "Aspose.Pdf.Annotations.FileAttachmentAnnotation", + "Aspose.Pdf.Annotations.JavascriptAction", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" @@ -32320,72 +39407,79 @@ { "filename": "remove-specific-attachment-from-pdf.cs", "title": "Remove Specific Attachment from PDF", - "description": "Shows how to delete a particular embedded file from a PDF using Aspose.Pdf while keeping all other attachments intact.", + "description": "Demonstrates how to delete a single embedded file from a PDF by its filename while preserving all other attachments using Aspose.Pdf.", "tags": [ "pdf", "attachment", "remove", "aspose", - "embedded-files" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.EmbeddedFiles", - "Aspose.Pdf.EmbeddedFileCollection.Delete" + "Aspose.Pdf.EmbeddedFileCollection", + "Aspose.Pdf.EmbeddedFileCollection.Delete", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "remove-zugferd-attachment-from-pdf.cs", "title": "Remove ZUGFeRD Attachment from PDF", - "description": "Shows how to load a PDF with Aspose.Pdf, delete the ZUGFeRD XML attachment, and save the document while keeping all other content intact.", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, delete the ZUGFeRD XML attachment, and save the document while preserving all other content.", "tags": [ "ZUGFeRD", "PDF", + "attachment", "Aspose.Pdf", - "Attachment", - "Delete" + "remove" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Document.EmbeddedFiles", - "Aspose.Pdf.EmbeddedFilesCollection", "Aspose.Pdf.EmbeddedFilesCollection.Delete", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.EmbeddedFilesCollection" ], "difficulty": "beginner" }, { - "filename": "render-pdf-pages-to-png-high-quality-antialiasing.cs", - "title": "Render PDF Pages to PNG with High‑Quality Anti‑Aliasing", - "description": "The example loads a PDF document and saves each page as a PNG image using Aspose.Pdf rendering options with high‑quality interpolation enabled, resulting in smoother lines and curves.", + "filename": "render-pdf-page-to-png-high-quality-antialiasing.cs", + "title": "Render PDF Page to PNG with High‑Quality Anti‑Aliasing", + "description": "Demonstrates how to render a PDF page to a PNG image using Aspose.Pdf with enhanced anti‑aliasing settings for smoother lines and curves.", "tags": [ "pdf", "rendering", "antialiasing", "png", - "aspose" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.RenderingOptions", "Aspose.Pdf.Devices.PngDevice", - "Aspose.Pdf.Devices.PngDevice.Process", - "Aspose.Pdf.PageCollection" + "Aspose.Pdf.RenderingOptions", + "Aspose.Pdf.Devices.PngDevice.Process" ], - "difficulty": "intermediate" + "difficulty": "beginner" + }, + { + "filename": "render-pdf-pages-to-png-high-quality-antialiasing.cs", + "title": "Render Pdf Pages To Png High Quality Antialiasing", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "replace-text-using-showtext-operators.cs", "title": "Replace Text in PDF Using ShowText Operators", - "description": "Demonstrates how to load a PDF, iterate low‑level content operators, locate ShowText (Tj) operators, replace a target string, and save the modified document.", + "description": "Demonstrates how to locate ShowText operators in a PDF content stream and replace a specific string with a new one using Aspose.Pdf.", "tags": [ "pdf", "text-replacement", - "aspose-pdf", "showtext", - "low-level-operators" + "operators", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", @@ -32397,28 +39491,57 @@ "difficulty": "intermediate" }, { - "filename": "set-pdf-author-to-current-user.cs", - "title": "Set PDF Author to Current System User", - "description": "Shows how to load a PDF with Aspose.Pdf, assign the Author metadata to the current Windows user, and save the modified document.", + "filename": "secure-pdf-form-filling-only.cs", + "title": "Secure PDF for Form Filling Only", + "description": "Demonstrates how to encrypt a PDF with Aspose.Pdf so that only form filling is permitted while printing, editing, and content extraction are disabled.", + "tags": [ + "pdf-security", + "form-filling", + "encryption", + "permissions", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Permissions", + "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner" + }, + { + "filename": "set-pdf-author-dynamically.cs", + "title": "Set PDF Author Dynamically Using Aspose.Pdf", + "description": "Shows how to create a PDF with Aspose.Pdf and set the Author metadata to the current system user at runtime.", "tags": [ "pdf", "metadata", "author", - "aspose.pdf", + "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.DocumentInfo", "Aspose.Pdf.DocumentInfo.Author", + "Aspose.Pdf.DocumentInfo.Title", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, + { + "filename": "set-pdf-author-to-current-user.cs", + "title": "Set Pdf Author To Current User", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "set-pdf-creation-modification-dates.cs", "title": "Set PDF Creation and Modification Dates", - "description": "Demonstrates how to programmatically set the creation and modification timestamps of a PDF using Aspose.Pdf.", + "description": "Demonstrates loading an existing PDF with Aspose.Pdf, setting its creation and modification timestamps to the current time, and saving the updated document.", "tags": [ "pdf", "metadata", @@ -32429,6 +39552,7 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.DocumentInfo", + "Aspose.Pdf.Document.Info", "Aspose.Pdf.DocumentInfo.CreationDate", "Aspose.Pdf.DocumentInfo.ModDate", "Aspose.Pdf.Document.Save" @@ -32438,132 +39562,179 @@ { "filename": "set-pdf-document-language.cs", "title": "Set PDF Document Language for Accessibility", - "description": "Demonstrates how to set the primary language of a PDF using Aspose.Pdf's tagged content API, improving screen‑reader accessibility, and then saves the updated document.", + "description": "Shows how to load an existing PDF with Aspose.Pdf, assign its primary language via tagged content to improve screen‑reader accessibility, and save the updated document.", "tags": [ "pdf", "accessibility", "language", - "aspose-pdf", - "tagged-content" + "tagged-content", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Document.TaggedContent", "Aspose.Pdf.Tagged.ITaggedContent.SetLanguage", + "Aspose.Pdf.Tagged.ITaggedContent.SetTitle", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "set-pdf-permissions-allow-printing-only.cs", - "title": "Set PDF Permissions to Allow Printing Only", - "description": "Shows how to encrypt a PDF with Aspose.Pdf, granting only printing permission while disabling content extraction and annotation modifications.", + "filename": "set-pdf-metadata-and-custom-property.cs", + "title": "Set PDF Metadata and Custom Property", + "description": "Demonstrates how to load an existing PDF, set standard metadata fields such as Title and Author, add a custom property for the invoice number, and save the updated document.", "tags": [ + "metadata", "pdf", - "encryption", - "permissions", - "printing", - "Aspose.Pdf" + "aspose", + "custom-property", + "invoice" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.CryptoAlgorithm" + "Aspose.Pdf.DocumentInfo", + "Aspose.Pdf.DocumentInfo.Title", + "Aspose.Pdf.DocumentInfo.Author", + "Aspose.Pdf.DocumentInfo.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "set-pdf-title-author-invoice-number.cs", - "title": "Set PDF Title, Author, and Custom Invoice Number Property", - "description": "Shows how to assign the PDF document title, author, and add a custom property for the invoice number using Aspose.Pdf.", + "filename": "set-pdf-open-action-navigate-page-10.cs", + "title": "Set PDF Open Action to Navigate to Page 10", + "description": "Demonstrates how to add a JavaScript open action to a PDF that automatically navigates the viewer to page 10 when the document is opened, using Aspose.Pdf.", "tags": [ - "metadata", - "custom-property", + "javascript", + "open-action", + "navigation", "pdf", - "aspose", - "invoice" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.DocumentInfo", - "Aspose.Pdf.DocumentInfo.Add", + "Aspose.Pdf.Document(string)", + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Document.OpenAction", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "sign-zugferd-pdf-with-timestamp.cs", - "title": "Digitally Sign a ZUGFeRD PDF with Timestamp", - "description": "Demonstrates loading a ZUGFeRD PDF, adding a signature field, applying a PKCS#7 digital signature from a PFX file, and attaching a timestamp from a TSA service, then saving the signed document.", + "filename": "set-pdf-permissions-allow-printing-only.cs", + "title": "Set Pdf Permissions Allow Printing Only", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "set-pdf-permissions-allow-printing.cs", + "title": "Set PDF Permissions to Allow Printing Only", + "description": "Shows how to encrypt a PDF with Aspose.Pdf and restrict permissions so that only printing is allowed while copying and annotation modifications are disabled.", "tags": [ - "ZUGFeRD", - "PDF signing", - "PKCS7", - "timestamp", - "Aspose.Pdf" + "pdf", + "permissions", + "encryption", + "printing", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.PKCS7", - "Aspose.Pdf.Forms.TimestampSettings" + "Aspose.Pdf.Permissions", + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "split-pdf-into-single-page-pdfs.cs", - "title": "Split PDF into Single-Page PDFs", - "description": "Shows how to load a PDF with Aspose.Pdf, iterate over its pages, and save each page as an individual PDF file.", + "filename": "sign-zugferd-pdf-with-timestamp.cs", + "title": "Sign Zugferd Pdf With Timestamp", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "split-pdf-into-individual-pages.cs", + "title": "Split PDF into Individual Page PDFs", + "description": "Shows how to load a PDF with Aspose.Pdf, iterate over its pages, and save each page as a separate PDF document.", "tags": [ "pdf", "split", "pages", - "aspose", + "aspose.pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PageCollection", - "Aspose.Pdf.PageCollection.Add", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Document.Pages.Add", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Pages" + "Aspose.Pdf.Document.Pages.Count" ], "difficulty": "beginner" }, + { + "filename": "split-pdf-into-single-page-pdfs.cs", + "title": "Split Pdf Into Single Page Pdfs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "subset-custom-font-in-pdf.cs", + "title": "Subset Custom Font in PDF Using Low‑Level Operators", + "description": "Shows how to embed a custom font, add a text fragment to force its inclusion, and subset all fonts in a PDF so only used glyphs are kept, reducing file size.", + "tags": [ + "font-subsetting", + "pdf", + "aspose-pdf", + "embedding", + "low-level-operators" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.FontRepository.FindFont", + "Aspose.Pdf.Font", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.FontUtilities.SubsetFonts" + ], + "difficulty": "intermediate" + }, { "filename": "update-pdf-attachment-description.cs", "title": "Update PDF Attachment Description", - "description": "Shows how to load a PDF, locate file attachment annotations, and modify the description of the attached file using Aspose.Pdf.", + "description": "Demonstrates how to load a PDF, locate file‑attachment annotations, and modify the description of the attached file. The example also shows creating a minimal PDF with an attachment if none exists.", "tags": [ "pdf", "attachment", "description", - "annotations", - "aspose-pdf" + "annotation", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.FileAttachmentAnnotation", "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Annotations.FileAttachmentAnnotation", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.Annotation" ], "difficulty": "intermediate" }, { "filename": "update-zugferd-xml-attachment.cs", "title": "Update ZUGFeRD XML Attachment in PDF", - "description": "Shows how to replace the embedded ZUGFeRD XML file in an existing PDF using Aspose.Pdf's BindXml method and then save the updated document.", + "description": "Demonstrates replacing the ZUGFeRD XML attachment in an existing PDF with a new invoice XML using Aspose.Pdf.", "tags": [ "ZUGFeRD", "PDF", "XML", "Aspose.Pdf", - "Update" + "Invoice" ], "apis_used": [ "Aspose.Pdf.Document", @@ -32575,60 +39746,65 @@ { "filename": "validate-pdf-zugferd-compliance.cs", "title": "Validate PDF for ZUGFeRD Compliance", - "description": "Shows how to create a minimal PDF and validate it against the ZUGFeRD specification using Aspose.Pdf, writing validation details to a log file.", + "description": "Loads a PDF file, checks its existence, and validates it against the ZUGFeRD specification, outputting a validation log.", "tags": [ "ZUGFeRD", "validation", "PDF", "Aspose.Pdf", - "log" + "document" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Document.Validate", - "Aspose.Pdf.PdfFormat", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.PageCollection.Add" + "Aspose.Pdf.PdfFormat" ], "difficulty": "beginner" }, { "filename": "validate-pdfa-after-zugferd-attachment.cs", - "title": "Validate PDF/A compliance after adding ZUGFeRD attachment", - "description": "Loads a PDF/A document, embeds a ZUGFeRD XML invoice as an attachment, saves the result, and checks that the PDF remains PDF/A‑1b compliant.", + "title": "Validate Pdfa After Zugferd Attachment", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "validate-pdfa3b-after-adding-zugferd-attachment.cs", + "title": "Validate PDF/A‑3B Compliance After Adding ZUGFeRD Attachment", + "description": "The example loads a PDF, embeds a ZUGFeRD XML invoice as an attached file, and then checks that the resulting document remains PDF/A‑3B compliant, writing a validation log.", "tags": [ "PDF/A", "ZUGFeRD", - "attachment", "validation", + "embedding", "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.EmbeddedFilesCollection.Add", - "Aspose.Pdf.Document.Save", + "Aspose.Pdf.PdfFormat", "Aspose.Pdf.Document.Validate", - "Aspose.Pdf.PdfFormat" + "Aspose.Pdf.EmbeddedFilesCollection" ], "difficulty": "intermediate" }, { "filename": "verify-pdf-digital-signature.cs", "title": "Verify PDF Digital Signature and Retrieve Signer Details", - "description": "Demonstrates how to detect compromised signatures, iterate through signature fields, verify each digital signature, and extract signer information from a PDF using Aspose.Pdf.", + "description": "Loads a signed PDF, checks for compromised signatures, iterates through signature fields, verifies each signature, and extracts signer information such as authority, date, reason, location, and contact info.", "tags": [ "pdf", - "signature", + "digital-signature", "verification", - "aspnet", - "digital-signature" + "signer-info", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Signatures.Signature", "Aspose.Pdf.Signatures.SignaturesCompromiseDetector", + "Aspose.Pdf.Signatures.PKCS7", + "Aspose.Pdf.Forms.SignatureField", "Aspose.Pdf.Signatures.Signature.Verify" ], "difficulty": "intermediate" @@ -32637,26 +39813,35 @@ }, { "name": "pages", - "file_count": 100, + "file_count": 133, "files": [ "add-alphanumeric-bates-numbering-to-pdf.cs", "add-bates-numbering-increment-5.cs", "add-bates-numbering-to-pdf-pages.cs", + "add-bates-numbering-to-pdf-pages__v2.cs", "add-bates-numbering-to-pdf.cs", "add-bates-numbering-with-custom-prefix-suffix.cs", + "add-bates-numbering-with-prefix.cs", + "add-blank-front-matter-page-roman-label.cs", "add-blank-front-matter-page-with-label-i.cs", "add-bold-uppercase-header-to-pdf-pages.cs", + "add-chapter-page-numbers-to-pdf.cs", "add-curved-text-watermark-to-pdf-page.cs", + "add-curved-text-watermark-to-pdf-pages.cs", "add-custom-page-numbers-to-pdf.cs", "add-diagonal-text-watermark-to-pdf-pages.cs", - "add-dynamic-year-watermark-to-pdf-pages.cs", "add-generation-date-footer-to-pdf-pages.cs", + "add-header-logo-image-to-pdf-pages.cs", + "add-header-to-first-pdf-page.cs", "add-header-with-logo-to-pdf-pages.cs", "add-html-header-to-first-three-pdf-pages.cs", "add-image-footer-30-opacity.cs", + "add-image-footer-to-pdf-pages.cs", + "add-image-footer-with-scaling-to-pdf-pages.cs", "add-image-watermark-with-opacity-to-pdf-pages.cs", "add-lightgray-background-to-pdf-pages.cs", "add-multiple-empty-pages-sequentially.cs", + "add-multiple-empty-pages-to-pdf.cs", "add-page-numbers-leading-zeros.cs", "add-page-numbers-to-even-pdf-pages.cs", "add-page-numbers-to-odd-pdf-pages.cs", @@ -32664,40 +39849,53 @@ "add-page-numbers-with-custom-embedded-font.cs", "add-page-numbers-with-custom-font.cs", "add-repeating-image-watermark-to-pdf-pages.cs", + "add-roman-numeral-page-numbers.cs", "add-rotated-image-watermark-to-pdf-pages.cs", "add-scaled-image-footer-to-pdf-pages.cs", "add-semi-transparent-text-watermark.cs", "add-superscript-page-numbers-to-pdf.cs", - "add-text-header-to-first-pdf-page.cs", + "add-year-text-watermark-to-pdf.cs", "adjust-media-box-to-crop-pdf-page.cs", + "adjust-pdf-bleedbox-for-printer-specs.cs", "adjust-pdf-bleedbox-margins.cs", "append-empty-a4-page-to-pdf.cs", "append-page-to-pdf.cs", + "batch-add-bates-numbering-to-pdf-pages.cs", + "batch-resize-pdf-pages-fixed-width.cs", "convert-odd-pages-landscape-to-portrait.cs", "convert-pdf-pages-portrait-to-landscape.cs", "convert-pdf-pages-to-portrait.cs", "copy-mediabox-page-8-to-12.cs", + "crop-pdf-page-media-box.cs", "crop-pdf-pages-remove-margins.cs", + "crop-pdf-pages-to-4-3-aspect-ratio.cs", "crop-pdf-pages-to-4by3-aspect-ratio.cs", "delete-first-page-from-pdf.cs", "delete-last-page-from-pdfs.cs", "delete-last-three-pages-from-pdf.cs", + "delete-page-range-from-pdf.cs", + "delete-pdf-pages-from-config.cs", "delete-range-of-pdf-pages.cs", "delete-specific-pages-from-pdf.cs", "delete-specific-pages-from-pdf__v2.cs", + "delete-specified-pdf-pages.cs", "duplicate-pdf-page-insert-after.cs", + "duplicate-third-page-in-pdf.cs", "export-pdf-page-dimensions-to-csv.cs", "extend-bleedbox-beyond-cropbox.cs", "extract-resize-reinsert-pdf-pages.cs", - "insert-blank-page-at-index.cs", - "insert-blank-pages-double-pdf-page-count.cs", - "insert-chapter-page-numbers-into-pdf.cs", + "insert-blank-page-at-index-three.cs", + "insert-blank-pages-after-each-page.cs", "insert-custom-page-numbers-pdf.cs", "insert-custom-sized-page-at-beginning.cs", "insert-empty-page-custom-size.cs", + "insert-empty-page-with-custom-size.cs", "insert-external-pdf-page-at-index.cs", - "insert-page-matching-size-from-page-2.cs", + "insert-page-from-another-pdf.cs", + "insert-page-matching-page2-size.cs", "insert-page-numbers-after-toc.cs", + "insert-page-numbers-arial-font.cs", + "insert-page-numbers-leading-zeros.cs", "insert-roman-page-numbers.cs", "insert-ten-empty-pages-at-pdf-midpoint.cs", "insert-transparent-separator-page.cs", @@ -32705,39 +39903,50 @@ "move-page-9-to-first-position.cs", "move-page-between-pdfs-preserving-rotation-size.cs", "move-pages-3-6-to-end.cs", - "read-page-dimensions-from-pdf.cs", + "move-pdf-page-to-another-document.cs", + "move-pdf-pages-to-end.cs", "read-pdf-page-count.cs", "read-pdf-page-dimensions.cs", + "read-pdf-page-dimensions__v2.cs", + "remove-bates-numbering-add-new-sequence.cs", + "remove-bates-numbering-from-selected-pdf-pages.cs", "remove-specific-bates-numbering-stamp.cs", "reorder-pdf-pages-by-orientation.cs", "reorder-pdf-pages-custom-sequence.cs", "reorder-pdf-pages-descending.cs", "replace-bates-numbering-in-pdf.cs", "replace-pdf-headers-and-footers.cs", - "reset-pdf-page-rotation.cs", - "resize-all-pdf-pages-to-a5.cs", - "resize-first-pdf-page-custom-dimensions.cs", - "resize-pdf-pages-to-fixed-width.cs", + "replace-pdf-headers-footers.cs", + "reset-page-rotation.cs", + "resize-pdf-page-to-letter-size.cs", + "resize-pdf-pages-to-a5.cs", "resize-pdf-pages-to-match-template-size.cs", "resize-pdf-pages-to-printable-area.cs", "resize-pdf-pages-to-template-size.cs", + "resize-pdf-pages-to-template-size__v2.cs", "resize-pdf-pages-uniform-size.cs", - "resize-seventh-pdf-page-to-letter-size.cs", "resize-wide-pdf-pages-to-a4.cs", + "retrieve-trimbox-after-cropping-pdf-page.cs", "retrieve-trimbox-values-from-pdf-pages.cs", "rotate-all-pdf-pages-180-degrees.cs", - "rotate-even-pages-pdf.cs", "rotate-every-third-pdf-page-90-degrees.cs", + "rotate-fourth-page-90-degrees-clockwise.cs", "rotate-fourth-page-90-degrees.cs", - "rotate-pdf-pages-by-configurable-angles.cs", + "rotate-pdf-pages-by-parity.cs", "rotate-pdf-pages-reverse-order.cs", + "rotate-pdf-pages-using-config.cs", "set-alternating-page-background-colors.cs", + "set-custom-size-first-pdf-page.cs", + "set-page-background-color-hsl.cs", "set-pdf-page-background-cmyk.cs", + "set-pdf-page-background-color-from-theme.cs", "set-pdf-page-background-color.cs", "set-pdf-page-background-from-theme.cs", "set-pdf-page-background-hsl.cs", "set-pdf-page-background-transparent.cs", - "trim-white-space-around-pdf-pages.cs", + "set-transparent-background-for-pdf-pages.cs", + "trim-white-margins-pixel-tolerance.cs", + "trim-white-space-from-pdf-pages.cs", "trim-white-space-pixel-tolerance.cs" ], "required_namespaces": [ @@ -32749,66 +39958,61 @@ ], "key_apis": [ "PageNumberStamp", - "TextFragment", - "TextStamp", "ImageStamp", - "HtmlFragment", - "TextBuilder" + "TextStamp", + "TextFragment", + "HtmlFragment" ], "examples": [ { "filename": "add-alphanumeric-bates-numbering-to-pdf.cs", - "title": "Add Alphanumeric Bates Numbering to PDF Pages", - "description": "Shows how to apply Bates numbering with a custom alphanumeric prefix to every page of a PDF document using Aspose.Pdf.", - "tags": [ - "bates-numbering", - "pdf", - "prefix", - "aspnet", - "document-processing" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.PageCollectionExtensions.AddBatesNumbering", - "Aspose.Pdf.BatesNArtifact", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner" + "title": "Add Alphanumeric Bates Numbering To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "add-bates-numbering-increment-5.cs", - "title": "Add Bates Numbering with Increment of 5 to PDF Pages", - "description": "Shows how to batch‑process PDF files, adding a Bates numbering artifact to each page with a step of 5 and saving the modified documents.", + "title": "Add Bates Numbering Increment 5", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-bates-numbering-to-pdf-pages.cs", + "title": "Add Bates Numbering to PDF Pages", + "description": "Shows how to insert Bates numbering stamps starting at 1000 with a dash separator on every page of a PDF using Aspose.Pdf.", "tags": [ "bates-numbering", "pdf", - "batch", "pages", - "aspose-pdf" + "aspose-pdf", + "stamp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.BatesNArtifact", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Page.Artifacts.Add" + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Document.Pages.AddBatesNumbering", + "Aspose.Pdf.Artifact" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "add-bates-numbering-to-pdf-pages.cs", + "filename": "add-bates-numbering-to-pdf-pages__v2.cs", "title": "Add Bates Numbering to PDF Pages", - "description": "Demonstrates how to insert Bates numbering stamps starting at 1000 with a dash suffix on all pages of a PDF using Aspose.Pdf.", + "description": "Loads a PDF document, applies year‑based Bates numbering (format \"2026-####\") to each page, and saves the updated file.", "tags": [ "bates-numbering", "pdf", + "pages", "aspose-pdf", - "csharp", - "pages" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Pages", + "Aspose.Pdf.Document.Pages", "Aspose.Pdf.Pages.AddBatesNumbering", "Aspose.Pdf.BatesNumberingArtifact", "Aspose.Pdf.Document.Save" @@ -32817,96 +40021,140 @@ }, { "filename": "add-bates-numbering-to-pdf.cs", - "title": "Add Bates Numbering to PDF Pages", - "description": "Demonstrates loading a PDF with Aspose.Pdf, applying year‑based Bates numbering in the format \"2026-####\" to every page, and saving the modified document.", + "title": "Add Bates Numbering To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-bates-numbering-with-custom-prefix-suffix.cs", + "title": "Add Bates Numbering with Custom Prefix and Suffix to PDF", + "description": "Demonstrates loading a PDF with Aspose.Pdf, applying Bates numbering that includes a custom prefix and suffix, and saving the modified document.", "tags": [ "bates-numbering", "pdf", "aspose-pdf", - "page-numbering", - "csharp" + "custom-prefix", + "custom-suffix" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Pages", - "Aspose.Pdf.Pages.AddBatesNumbering", + "Aspose.Pdf.PageCollection", + "Aspose.Pdf.PageCollection.AddBatesNumbering", "Aspose.Pdf.BatesNumberingArtifact", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "add-bates-numbering-with-custom-prefix-suffix.cs", - "title": "Add Bates Numbering with Custom Prefix and Suffix to PDF", - "description": "Demonstrates how to apply Bates numbering to each page of a PDF using Aspose.Pdf, with a custom prefix \"DOC\" and suffix \"-2026\".", + "filename": "add-bates-numbering-with-prefix.cs", + "title": "Add Bates Numbering with Alphanumeric Prefix to PDF", + "description": "Shows how to load a PDF using Aspose.Pdf, apply Bates numbering with a custom alphanumeric prefix to every page, and save the updated document.", "tags": [ "bates-numbering", "pdf", - "aspose-pdf", "prefix", - "suffix" + "aspose", + "pages" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Pages", + "Aspose.Pdf.Document.Pages", "Aspose.Pdf.Pages.AddBatesNumbering", - "Aspose.Pdf.Artifact", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.BatesNumberingArtifact", + "Aspose.Pdf.HorizontalAlignment", + "Aspose.Pdf.VerticalAlignment" ], "difficulty": "beginner" }, { - "filename": "add-blank-front-matter-page-with-label-i.cs", - "title": "Add Blank Front-Matter Page with Custom Label \"i\"", - "description": "The example loads an existing PDF, inserts a blank page at the beginning, assigns a custom page label with the prefix “i” for front‑matter numbering, and saves the modified document.", + "filename": "add-blank-front-matter-page-roman-label.cs", + "title": "Add Blank Front‑Matter Page with Roman Numeral Label", + "description": "Demonstrates how to insert a blank page at the beginning of an existing PDF and assign a custom page label using lowercase Roman numerals for front‑matter numbering.", "tags": [ "pdf", "page-label", - "blank-page", "front-matter", - "aspose-pdf" + "blank-page", + "roman-numerals" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.PageLabel", - "Aspose.Pdf.PageLabelCollection.UpdateLabel", + "Aspose.Pdf.PageLabels.UpdateLabel", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" + }, + { + "filename": "add-blank-front-matter-page-with-label-i.cs", + "title": "Add Blank Front Matter Page With Label I", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "add-bold-uppercase-header-to-pdf-pages.cs", "title": "Add Bold Uppercase Header to PDF Pages", - "description": "Demonstrates how to load a PDF, iterate through its pages, and add a centered bold uppercase header to each page using Aspose.Pdf.", + "description": "Shows how to insert a bold, uppercase header on every page of a PDF document using Aspose.Pdf.", "tags": [ "header", "pdf", - "textfragment", - "aspose-pdf", + "aspose", + "text", "bold" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.HeaderFooter", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.FontRepository", - "Aspose.Pdf.Text.Position", - "Aspose.Pdf.Text.HorizontalAlignment", - "Aspose.Pdf.Text.FontStyles" + "Aspose.Pdf.FontRepository.FindFont", + "Aspose.Pdf.Color" + ], + "difficulty": "beginner" + }, + { + "filename": "add-chapter-page-numbers-to-pdf.cs", + "title": "Add Chapter Prefix Page Numbers to PDF", + "description": "Demonstrates how to insert page numbers with a custom \"Chapter\" prefix on every page of a PDF using Aspose.Pdf. The example sets alignment, margin, and text styling for the page number stamp.", + "tags": [ + "page-number", + "stamp", + "pdf", + "aspose-pdf", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.PageNumberStamp", + "Aspose.Pdf.FontRepository.FindFont", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "add-curved-text-watermark-to-pdf-page.cs", - "title": "Add Curved Text Watermark to PDF Page", - "description": "Demonstrates opening a PDF, creating a WatermarkArtifact with styled text, positioning it at the page centre, applying a rotation to simulate a curved path, and saving the modified document.", + "title": "Add Curved Text Watermark To Pdf Page", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-curved-text-watermark-to-pdf-pages.cs", + "title": "Add Curved Text Watermark to PDF Pages", + "description": "Shows how to place a repeated watermark that follows a curved arc across each page of a PDF using Aspose.Pdf's WatermarkArtifact and TextState.", "tags": [ "watermark", - "pdf", - "text", "curved", - "aspose" + "pdf", + "artifact", + "text" ], "apis_used": [ "Aspose.Pdf.Document", @@ -32914,8 +40162,7 @@ "Aspose.Pdf.WatermarkArtifact", "Aspose.Pdf.Text.TextState", "Aspose.Pdf.FontRepository.FindFont", - "Aspose.Pdf.Color.FromRgb", - "Aspose.Pdf.Point", + "Aspose.Pdf.Color.FromArgb", "Aspose.Pdf.Page.Artifacts.Add", "Aspose.Pdf.Document.Save" ], @@ -32924,146 +40171,185 @@ { "filename": "add-custom-page-numbers-to-pdf.cs", "title": "Add Custom Page Numbers to PDF", - "description": "Demonstrates how to load a PDF, create a PageNumberStamp with a custom \"Page X of Y\" format, apply it to every page, and save the updated document using Aspose.Pdf.", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, create a PageNumberStamp using the format \"Page X of Y\", apply it to every page, and save the updated document.", "tags": [ "pdf", "page-number", "stamp", - "aspose", + "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PageNumberStamp", + "Aspose.Pdf.PageNumberStamp", "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Page" + "Aspose.Pdf.HorizontalAlignment", + "Aspose.Pdf.VerticalAlignment" ], "difficulty": "beginner" }, { "filename": "add-diagonal-text-watermark-to-pdf-pages.cs", "title": "Add Diagonal Text Watermark to PDF Pages", - "description": "Shows how to place a semi‑transparent diagonal text watermark on every page of a PDF using Aspose.Pdf.", + "description": "Shows how to load a PDF, iterate through its pages, and apply a semi‑transparent diagonal text watermark using Aspose.Pdf's TextStamp.", "tags": [ "watermark", "pdf", "textstamp", - "diagonal", - "aspose-pdf" + "aspose-pdf", + "diagonal" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextStamp", "Aspose.Pdf.Text.FontRepository", - "Aspose.Pdf.Color" + "Aspose.Pdf.Text.Color", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "add-dynamic-year-watermark-to-pdf-pages.cs", - "title": "Add Dynamic Year Watermark to PDF Pages", - "description": "Demonstrates loading a PDF with Aspose.Pdf, creating a TextStamp that includes the current year, applying it to every page, and saving the watermarked document.", + "filename": "add-generation-date-footer-to-pdf-pages.cs", + "title": "Add Generation Date Footer to Each PDF Page", + "description": "Demonstrates how to add a text footer with the current generation date to every page of a PDF using Aspose.Pdf.", "tags": [ + "footer", + "date", "pdf", - "watermark", - "textstamp", - "aspnet", - "datetime" + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Text.TextStamp", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.FontRepository.FindFont", - "Aspose.Pdf.Color", + "Aspose.Pdf.Page", + "Aspose.Pdf.FooterArtifact", + "Aspose.Pdf.Facades.HorizontalAlignment", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "add-generation-date-footer-to-pdf-pages.cs", - "title": "Add Generation Date Footer to PDF Pages", - "description": "Shows how to insert a text footer with the current generation date on every page of a PDF using Aspose.Pdf.", + "filename": "add-header-logo-image-to-pdf-pages.cs", + "title": "Add Header Logo Image to PDF Pages", + "description": "Shows how to load a PDF, create an ImageStamp for a company logo, align it to the top‑left of each page as a header, and save the modified document.", "tags": [ - "footer", "pdf", - "text", - "date", - "Aspose" + "header", + "image", + "stamp", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextBuilder.AppendText", - "Aspose.Pdf.Text.FontRepository.FindFont", - "Aspose.Pdf.Text.Position", - "Aspose.Pdf.Text.TextState" + "Aspose.Pdf.ImageStamp", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.HorizontalAlignment", + "Aspose.Pdf.VerticalAlignment", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "add-header-with-logo-to-pdf-pages.cs", - "title": "Add Header with Logo Image to PDF Pages", - "description": "Demonstrates how to insert a left‑aligned header containing a logo image on every page of an existing PDF using Aspose.Pdf.", + "filename": "add-header-to-first-pdf-page.cs", + "title": "Add Header Text to First PDF Page Using MarginInfo", + "description": "Demonstrates how to add a text header to the first page of a PDF by configuring a HeaderFooter with MarginInfo and a TextFragment, then saving the document.", "tags": [ "header", - "logo", - "image", + "margininfo", + "textfragment", "pdf", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.HeaderFooter", - "Aspose.Pdf.Image", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.MarginInfo", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.FontRepository.FindFont", + "Aspose.Pdf.Color" ], "difficulty": "beginner" }, + { + "filename": "add-header-with-logo-to-pdf-pages.cs", + "title": "Add Header With Logo To Pdf Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "add-html-header-to-first-three-pdf-pages.cs", "title": "Add HTML Header with CSS to First Three PDF Pages", - "description": "Shows how to insert an HTML fragment styled with CSS as a header on the first three pages of a PDF using Aspose.Pdf.", + "description": "Demonstrates how to embed a styled HTML header into the first three pages of a PDF using Aspose.Pdf and then convert the document to HTML while preserving the header.", "tags": [ - "html-header", + "header", + "html", + "css", "pdf", - "aspose", - "pages", - "css" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Text.HtmlFragment", - "Aspose.Pdf.Page.Paragraphs", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.HtmlFragment", + "Aspose.Pdf.HeaderFooter", + "Aspose.Pdf.HtmlSaveOptions" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "add-image-footer-30-opacity.cs", - "title": "Add Image Footer with 30% Opacity to PDF Pages", - "description": "Shows how to add an image footer with 30% opacity to every page of a PDF document using Aspose.Pdf.", + "title": "Add Image Footer 30 Opacity", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-image-footer-to-pdf-pages.cs", + "title": "Add Image Footer with Opacity to PDF Pages", + "description": "Demonstrates how to add an image footer with 30% opacity to every page of a PDF using Aspose.Pdf.", "tags": [ "footer", "image", "opacity", - "Aspose.Pdf", - "pages" + "pdf", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.FooterArtifact", - "Aspose.Pdf.FooterArtifact.SetImage", - "Aspose.Pdf.FooterArtifact.Opacity", - "Aspose.Pdf.Page.Artifacts.Add", + "Aspose.Pdf.HorizontalAlignment", + "Aspose.Pdf.VerticalAlignment", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner" + }, + { + "filename": "add-image-footer-with-scaling-to-pdf-pages.cs", + "title": "Add Image Footer with Scaling to PDF Pages", + "description": "Shows how to insert a scaled footer image on every page of a PDF document using Aspose.Pdf.", + "tags": [ + "pdf", + "footer", + "image", + "scaling", + "Aspose.Pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Drawing.Image", + "Aspose.Pdf.Drawing.Image.ImageScale", + "Aspose.Pdf.Drawing.Image.HorizontalAlignment", + "Aspose.Pdf.Drawing.Image.VerticalAlignment", + "Aspose.Pdf.Page.Paragraphs", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" @@ -33071,136 +40357,133 @@ { "filename": "add-image-watermark-with-opacity-to-pdf-pages.cs", "title": "Add Image Watermark with Opacity to PDF Pages", - "description": "Shows how to load a PDF, iterate through its pages, and apply an ImageStamp with 20% opacity as a watermark before saving the document.", + "description": "Demonstrates how to overlay a semi‑transparent image (logo) on every page of a PDF using Aspose.Pdf, creating a subtle branding watermark.", "tags": [ "watermark", "image", "pdf", - "Aspose.Pdf", - "opacity" + "opacity", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.ImageStamp", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.HorizontalAlignment", + "Aspose.Pdf.VerticalAlignment" ], "difficulty": "beginner" }, { "filename": "add-lightgray-background-to-pdf-pages.cs", - "title": "Add LightGray Background to All PDF Pages", - "description": "Shows how to load a PDF with Aspose.Pdf, iterate through each page, set a LightGray background color for branding, and save the modified document.", + "title": "Add LightGray Background to PDF Pages", + "description": "Shows how to load a PDF with Aspose.Pdf, iterate over each page, set a LightGray background color for consistent branding, and save the modified document.", "tags": [ "background", - "pdf", - "color", "branding", - "Aspose.Pdf" + "pages", + "Aspose.Pdf", + "C#" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Color", - "Aspose.Pdf.Page.Background", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Page.Background" ], "difficulty": "beginner" }, { "filename": "add-multiple-empty-pages-sequentially.cs", "title": "Add Multiple Empty Pages Sequentially", - "description": "Demonstrates how to add a series of empty pages to a PDF document by iterating over a list of page counts, while respecting Aspose.Pdf evaluation mode limits.", - "tags": [ - "pdf", - "pages", - "add", - "aspose", - "evaluation-mode" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.PageCollection" - ], - "difficulty": "intermediate" + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "add-page-numbers-leading-zeros.cs", - "title": "Add Page Numbers with Leading Zeros to PDF", - "description": "Shows how to insert sequential page numbers padded with a leading zero on each page of a PDF using Aspose.Pdf.", + "filename": "add-multiple-empty-pages-to-pdf.cs", + "title": "Add Multiple Empty Pages Sequentially to PDF", + "description": "Demonstrates how to add a series of empty pages to a PDF by iterating over a list of page counts, with handling for Aspose.PDF evaluation limits.", "tags": [ "pdf", - "page-number", - "textstamp", + "pages", "aspose-pdf", - "leading-zero" + "evaluation", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextStamp", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.FontRepository.FindFont", - "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.PageCollection", + "Aspose.Pdf.PageCollection.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, + { + "filename": "add-page-numbers-leading-zeros.cs", + "title": "Add Page Numbers Leading Zeros", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "add-page-numbers-to-even-pdf-pages.cs", "title": "Add Page Numbers to Even PDF Pages", - "description": "Shows how to insert page numbers only on even pages of a PDF using Aspose.Pdf's PageNumberStamp.", + "description": "Demonstrates loading a PDF with Aspose.Pdf, iterating through its pages, and adding a page number stamp only to even-numbered pages before saving the result.", "tags": [ "pdf", - "page-number", + "page-numbering", "even-pages", - "stamp", - "aspose-pdf" + "aspose.pdf", + "stamp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.PageNumberStamp", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Text.TextState", "Aspose.Pdf.HorizontalAlignment", - "Aspose.Pdf.VerticalAlignment" + "Aspose.Pdf.VerticalAlignment", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "add-page-numbers-to-odd-pdf-pages.cs", "title": "Add Page Numbers to Odd PDF Pages", - "description": "Shows how to load a PDF with Aspose.Pdf, loop through its pages, and apply a page number stamp only on odd-numbered pages before saving the document.", + "description": "Demonstrates loading a PDF with Aspose.Pdf, iterating through its pages, and applying a page number stamp only to odd-numbered pages before saving the document.", "tags": [ "pdf", "page-number", "odd-pages", - "stamp", - "aspose-pdf" + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.PageNumberStamp", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.PageNumberStamp.Put", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.HorizontalAlignment", + "Aspose.Pdf.VerticalAlignment" ], "difficulty": "beginner" }, { "filename": "add-page-numbers-to-pdf.cs", - "title": "Add Centered Page Numbers to PDF", - "description": "Shows how to insert a page number stamp that starts at 1 and is centered on every page of a PDF using Aspose.Pdf.", + "title": "Add Page Numbers to PDF Pages", + "description": "Shows how to insert a centered page number stamp starting at 1 on every page of a PDF using Aspose.Pdf.", "tags": [ "page-number", "stamp", "pdf", "aspose", - "center-alignment" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", @@ -33214,8 +40497,8 @@ }, { "filename": "add-page-numbers-with-custom-embedded-font.cs", - "title": "Add Page Numbers with Custom Embedded Font", - "description": "Demonstrates how to insert page numbers on each PDF page using a TrueType font loaded from an external file and ensure the font is embedded in the output PDF.", + "title": "Add Page Numbers with Custom Embedded Font to PDF", + "description": "Demonstrates how to insert page numbers on every PDF page using a TrueType font loaded from an external file and embed that font in the resulting document.", "tags": [ "page-number", "custom-font", @@ -33226,8 +40509,8 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.FontRepository.FindFont", - "Aspose.Pdf.Text.Font", - "Aspose.Pdf.Text.PageNumberStamp", + "Aspose.Pdf.Font", + "Aspose.Pdf.PageNumberStamp", "Aspose.Pdf.Text.TextState", "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" @@ -33236,28 +40519,16 @@ }, { "filename": "add-page-numbers-with-custom-font.cs", - "title": "Add Page Numbers with Custom Font to PDF", - "description": "Demonstrates how to insert page numbers on every PDF page using a custom Arial 14‑point font with Aspose.Pdf.", - "tags": [ - "page-number", - "font", - "pdf", - "aspose", - "stamp" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.PageNumberStamp", - "Aspose.Pdf.Text.FontRepository", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.PageNumberStamp.Put" - ], - "difficulty": "beginner" + "title": "Add Page Numbers With Custom Font", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "add-repeating-image-watermark-to-pdf-pages.cs", "title": "Add Repeating Image Watermark to PDF Pages", - "description": "Demonstrates how to overlay a semi‑transparent image watermark repeatedly in a grid across each page of a PDF using Aspose.Pdf.", + "description": "Demonstrates how to overlay a semi‑transparent image repeatedly in a grid pattern on every page of a PDF using Aspose.Pdf.", "tags": [ "watermark", "image", @@ -33269,144 +40540,139 @@ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.ImageStamp", + "Aspose.Pdf.PageInfo", "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "add-rotated-image-watermark-to-pdf-pages.cs", - "title": "Add Rotated Image Watermark to PDF Pages", - "description": "Shows how to apply a PNG image as a watermark on each page of a PDF, scaling it to half the page size, centering it, rotating it 45°, and adjusting opacity using Aspose.Pdf.", + "filename": "add-roman-numeral-page-numbers.cs", + "title": "Add Roman Numeral Page Numbers to Introductory PDF Pages", + "description": "Demonstrates how to insert page numbers in uppercase Roman numeral format on the first few pages of a PDF using Aspose.Pdf.", "tags": [ "pdf", - "watermark", - "image", - "rotation", - "aspose-pdf" + "page-numbering", + "roman-numerals", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.ImageStamp", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.PageNumberStamp", + "Aspose.Pdf.Text.NumberingStyle", + "Aspose.Pdf.HorizontalAlignment", + "Aspose.Pdf.VerticalAlignment" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "add-scaled-image-footer-to-pdf-pages.cs", - "title": "Add Scaled Image Footer to Each PDF Page", - "description": "Shows how to place a footer image, scaled to a fixed height, at the bottom of every page in a PDF document using Aspose.Pdf.", + "filename": "add-rotated-image-watermark-to-pdf-pages.cs", + "title": "Add Rotated Image Watermark to PDF Pages", + "description": "Demonstrates how to overlay a 45‑degree rotated, half‑size image as a watermark on every page of a PDF using Aspose.Pdf.", "tags": [ - "footer", + "watermark", "image", + "rotation", "pdf", - "scaling", - "pages" + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Page.AddImage", + "Aspose.Pdf.Facades.ImageStamp", + "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" + }, + { + "filename": "add-scaled-image-footer-to-pdf-pages.cs", + "title": "Add Scaled Image Footer To Pdf Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "add-semi-transparent-text-watermark.cs", "title": "Add Semi-Transparent Text Watermark with Outline to PDF Pages", - "description": "Shows how to place a semi‑transparent text watermark with an outline on each page of a PDF using Aspose.Pdf.", + "description": "Demonstrates how to load a PDF, iterate through its pages, and apply a semi‑transparent text watermark with an outline using Aspose.Pdf's TextStamp.", "tags": [ "watermark", - "textstamp", "pdf", + "textstamp", "opacity", "outline" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextStamp", - "Aspose.Pdf.Text.FontRepository.FindFont", - "Aspose.Pdf.Text.TextState", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Text.TextStamp", + "Aspose.Pdf.FontRepository.FindFont", + "Aspose.Pdf.Color" ], "difficulty": "intermediate" }, { "filename": "add-superscript-page-numbers-to-pdf.cs", "title": "Add Superscript Page Numbers to PDF Pages", - "description": "Creates a PDF and adds a page‑number stamp to each page, formatted as superscript (smaller font size and raised baseline) positioned at the bottom‑right corner.", + "description": "Shows how to insert page numbers with a superscript‑style appearance on every page of a PDF using Aspose.Pdf's PageNumberStamp.", "tags": [ "page-number", "superscript", "stamp", "pdf", - "aspose-pdf" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.PageNumberStamp", - "Aspose.Pdf.Text.FontRepository", - "Aspose.Pdf.Page.AddStamp" + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.FontRepository.FindFont", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "add-text-header-to-first-pdf-page.cs", - "title": "Add Text Header to First PDF Page", - "description": "Demonstrates how to add a header with custom top margin to the first page of a PDF using Aspose.Pdf's HeaderFooter and MarginInfo classes.", + "filename": "add-year-text-watermark-to-pdf.cs", + "title": "Add Year-Based Text Watermark to PDF", + "description": "Shows how to load a PDF, create a TextStamp that includes the current year, apply it to every page, and save the watermarked document.", "tags": [ - "header", - "margin", "pdf", - "text", - "aspose-pdf" + "watermark", + "textstamp", + "aspose-pdf", + "date" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.HeaderFooter", - "Aspose.Pdf.MarginInfo", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.FontRepository", - "Aspose.Pdf.Color" + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Text.TextStamp", + "Aspose.Pdf.Text.FontRepository.FindFont", + "Aspose.Pdf.Text.TextState" ], "difficulty": "beginner" }, { "filename": "adjust-media-box-to-crop-pdf-page.cs", - "title": "Adjust MediaBox to Crop PDF Page", - "description": "Demonstrates how to modify a page's MediaBox to define a custom cropping region without altering the page content, using Aspose.Pdf.", - "tags": [ - "mediaBox", - "crop", - "pdf", - "page", - "Aspose.Pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Page.MediaBox" - ], - "difficulty": "beginner" + "title": "Adjust Media Box To Crop Pdf Page", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "adjust-pdf-bleedbox-margins.cs", - "title": "Adjust PDF BleedBox Margins for Printer Specifications", - "description": "Loads a PDF, expands each page's BleedBox (or MediaBox as fallback) by a fixed margin and saves the modified document.", + "filename": "adjust-pdf-bleedbox-for-printer-specs.cs", + "title": "Adjust PDF BleedBox for Printer Specifications", + "description": "Shows how to read each page's BleedBox, expand it by a margin, and save the modified PDF using Aspose.Pdf.", "tags": [ "bleedbox", "pdf", - "margin", "pages", + "margin", "aspose-pdf" ], "apis_used": [ @@ -33416,38 +40682,47 @@ "Aspose.Pdf.Document.Save", "Aspose.Pdf.Page.BleedBox" ], - "difficulty": "intermediate" + "difficulty": "beginner" + }, + { + "filename": "adjust-pdf-bleedbox-margins.cs", + "title": "Adjust Pdf Bleedbox Margins", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "append-empty-a4-page-to-pdf.cs", "title": "Append Empty A4 Page to PDF", - "description": "Shows how to load an existing PDF, add a blank page, set its size to A4, and save the updated document.", + "description": "Demonstrates loading an existing PDF, adding a blank A4‑sized page at the end of the document, and saving the modified file.", "tags": [ "pdf", "add-page", "a4", "aspose-pdf", - "csharp" + "document" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Page", + "Aspose.Pdf.PageSize", "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Page.Resize", - "Aspose.Pdf.PageSize" + "Aspose.Pdf.Page.SetPageSize", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "append-page-to-pdf.cs", "title": "Append a Page from One PDF to Another", - "description": "Demonstrates how to load two PDF documents, copy the first page from a source PDF, and append it to the end of a target PDF using Aspose.Pdf.", + "description": "Demonstrates copying a specific page from a source PDF and appending it to the end of a target PDF using Aspose.Pdf.", "tags": [ "pdf", - "append", - "pages", + "append-page", "aspose", - "csharp" + "document", + "pages" ], "apis_used": [ "Aspose.Pdf.Document", @@ -33458,43 +40733,82 @@ ], "difficulty": "beginner" }, + { + "filename": "batch-add-bates-numbering-to-pdf-pages.cs", + "title": "Batch Add Bates Numbering to PDF Pages", + "description": "Iterates through all PDF files in a folder, adds sequential Bates numbers starting at 5 with six‑digit zero padding, and saves the modified PDFs to an output directory.", + "tags": [ + "bates-numbering", + "pdf", + "batch-processing", + "aspose-pdf", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.PageCollection.AddBatesNumbering", + "Aspose.Pdf.BatesNumberingArtifact", + "Aspose.Pdf.Document.Pages" + ], + "difficulty": "intermediate" + }, + { + "filename": "batch-resize-pdf-pages-fixed-width.cs", + "title": "Batch Resize PDF Pages to Fixed Width", + "description": "Shows how to resize every page in a PDF to a target width of 800 points while preserving the original aspect ratio using Aspose.Pdf.", + "tags": [ + "pdf", + "resize", + "pages", + "aspect-ratio", + "batch" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.PageInfo", + "Aspose.Pdf.Page.SetPageSize", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner" + }, { "filename": "convert-odd-pages-landscape-to-portrait.cs", "title": "Convert Odd Pages from Landscape to Portrait", - "description": "Loads a PDF, iterates over odd‑numbered pages and swaps the MediaBox dimensions when a page is in landscape orientation, effectively converting those pages to portrait before saving the document.", + "description": "Shows how to change the orientation of odd‑numbered PDF pages from landscape to portrait by swapping the MediaBox dimensions and updating the PageInfo flag using Aspose.Pdf.", "tags": [ "pdf", "orientation", "mediabox", - "aspose.pdf", - "csharp" + "pages", + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.PageInfo", "Aspose.Pdf.Rectangle", - "Document.Save", - "Document.Pages", - "Page.MediaBox" + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "convert-pdf-pages-portrait-to-landscape.cs", "title": "Convert PDF Pages from Portrait to Landscape", - "description": "Loads a PDF, iterates through each page, swaps the MediaBox width and height to change the orientation to landscape, and saves the modified document.", + "description": "Loads a PDF, iterates through each page, swaps the MediaBox width and height using SetPageSize to change the orientation to landscape, and saves the modified document.", "tags": [ "pdf", "orientation", "landscape", "pages", - "aspose-pdf" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Page.SetPageSize", "Aspose.Pdf.Page.MediaBox", + "Aspose.Pdf.Page.SetPageSize", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" @@ -33502,18 +40816,18 @@ { "filename": "convert-pdf-pages-to-portrait.cs", "title": "Convert PDF Pages to Portrait Orientation", - "description": "Loads a PDF, examines each page's MediaBox, and changes landscape pages to portrait by swapping width and height, then saves the modified document.", + "description": "Loads a PDF, iterates through each page, and changes any landscape page to portrait by swapping the MediaBox dimensions, then saves the modified document.", "tags": [ "pdf", + "orientation", "portrait", "pages", - "orientation", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Page.MediaBox", "Aspose.Pdf.Page.SetPageSize", "Aspose.Pdf.Document.Save" ], @@ -33522,19 +40836,39 @@ { "filename": "copy-mediabox-page-8-to-12.cs", "title": "Copy MediaBox from Page 8 to Page 12", - "description": "Demonstrates how to retrieve the MediaBox rectangle from one PDF page and apply it to another page using Aspose.Pdf, ensuring both pages share the same dimensions.", + "description": "Demonstrates how to read the MediaBox rectangle from one PDF page and apply it to another page using Aspose.Pdf, ensuring both pages share the same dimensions.", "tags": [ "MediaBox", - "page size", "Aspose.Pdf", - "PDF manipulation", + "page-dimensions", + "PDF-manipulation", "C#" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Page.MediaBox", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Page.MediaBox" + ], + "difficulty": "beginner" + }, + { + "filename": "crop-pdf-page-media-box.cs", + "title": "Crop PDF Page by Setting MediaBox", + "description": "Shows how to define a custom cropping region for a PDF page by setting its MediaBox, leaving the page content unchanged.", + "tags": [ + "mediaBox", + "crop", + "pdf", + "page", + "Aspose.Pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Page", + "Aspose.Pdf.PageCollection", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" @@ -33542,11 +40876,11 @@ { "filename": "crop-pdf-pages-remove-margins.cs", "title": "Crop PDF Pages to Remove Margins", - "description": "Shows how to set each page's CropBox using rectangle coordinates to trim uniform margins from a PDF with Aspose.Pdf.", + "description": "Demonstrates how to adjust the CropBox of each page in a PDF using Aspose.Pdf to trim specified left, right, top, and bottom margins.", "tags": [ "cropbox", - "margins", "pdf", + "margins", "pages", "aspose-pdf" ], @@ -33554,42 +40888,51 @@ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", - "Document.Save", - "Page.MediaBox", - "Page.CropBox" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Page.MediaBox", + "Aspose.Pdf.Page.CropBox" ], "difficulty": "beginner" }, { - "filename": "crop-pdf-pages-to-4by3-aspect-ratio.cs", - "title": "Crop PDF Pages to 4:3 Aspect Ratio", - "description": "Shows how to iterate through a PDF, calculate a 4:3 crop region for each page, and apply it using the CropBox property with Aspose.Pdf.", + "filename": "crop-pdf-pages-to-4-3-aspect-ratio.cs", + "title": "Crop PDF Pages to 4:3 Aspect Ratio for Slides", + "description": "Demonstrates how to load a PDF, iterate through its pages, and set a centered CropBox so each page conforms to a 4:3 aspect ratio suitable for presentation slides.", "tags": [ - "pdf", "crop", "aspect-ratio", + "pdf", "pages", - "aspose-pdf" + "presentation" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Page.CropBox", - "Aspose.Pdf.Document.Save" + "Document.Save", + "Page.CropBox", + "Page.MediaBox" ], "difficulty": "intermediate" }, + { + "filename": "crop-pdf-pages-to-4by3-aspect-ratio.cs", + "title": "Crop Pdf Pages To 4By3 Aspect Ratio", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "delete-first-page-from-pdf.cs", - "title": "Delete First Page from PDF", - "description": "Shows how to remove the first page of a PDF document using Aspose.Pdf and save the modified file.", + "title": "Delete First Page from PDF and Shift Remaining Pages", + "description": "Shows how to load a PDF with Aspose.Pdf, remove the first page, and save the document so that the remaining pages automatically shift forward.", "tags": [ "pdf", "delete-page", - "aspose", + "aspose-pdf", "csharp", - "document-manipulation" + "page-manipulation" ], "apis_used": [ "Aspose.Pdf.Document", @@ -33602,7 +40945,7 @@ { "filename": "delete-last-page-from-pdfs.cs", "title": "Delete Last Page from PDFs in a Folder", - "description": "Shows how to loop through PDF files in a directory, remove the last page of each document, and save the modified files using Aspose.Pdf.", + "description": "Demonstrates iterating over PDF files in a directory, removing the last page of each document with Aspose.Pdf, and overwriting the original files.", "tags": [ "pdf", "pages", @@ -33622,11 +40965,11 @@ { "filename": "delete-last-three-pages-from-pdf.cs", "title": "Delete Last Three Pages from PDF", - "description": "Shows how to load a PDF with Aspose.Pdf, remove the last three pages using PageCollection.Delete, and save the modified document.", + "description": "Shows how to load a PDF with Aspose.Pdf, verify it has at least three pages, delete the last three pages using PageCollection.Delete, and save the modified document.", "tags": [ "pdf", "delete-pages", - "aspose", + "aspose-pdf", "csharp", "document-manipulation" ], @@ -33634,39 +40977,39 @@ "Aspose.Pdf.Document", "Aspose.Pdf.PageCollection", "Aspose.Pdf.PageCollection.Delete", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Pages" + "Aspose.Pdf.PageCollection.Count", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "delete-range-of-pdf-pages.cs", - "title": "Delete a Range of PDF Pages", - "description": "Demonstrates how to remove pages 5 through 10 from a PDF document using Aspose.Pdf's Delete method with a page number array.", + "filename": "delete-page-range-from-pdf.cs", + "title": "Delete Page Range from PDF", + "description": "Demonstrates how to remove pages 5 through 10 from a PDF document in a single operation using Aspose.Pdf.", "tags": [ + "delete", + "pages", "pdf", - "delete-pages", "range", - "aspose", - "csharp" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Document.Pages.Delete", + "Aspose.Pdf.PageCollection", + "Aspose.Pdf.PageCollection.Delete", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "delete-specific-pages-from-pdf.cs", - "title": "Delete Specific Pages from PDF Using Aspose.Pdf", - "description": "Shows how to read a list of page numbers from a text configuration file and remove those pages from a PDF document with Aspose.Pdf.", + "filename": "delete-pdf-pages-from-config.cs", + "title": "Delete PDF Pages Using a Config File", + "description": "Shows how to read page numbers from a text configuration file and delete those pages from a PDF document with Aspose.Pdf.", "tags": [ "pdf", "delete-pages", + "config", "aspose", - "configuration", "csharp" ], "apis_used": [ @@ -33678,10 +41021,34 @@ ], "difficulty": "beginner" }, + { + "filename": "delete-range-of-pdf-pages.cs", + "title": "Delete Range Of Pdf Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "delete-specific-pages-from-pdf.cs", + "title": "Delete Specific Pages From Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "delete-specific-pages-from-pdf__v2.cs", - "title": "Delete Specific Pages from PDF Using Aspose.Pdf", - "description": "Demonstrates how to read a list of page numbers from a text file, validate them, and delete those pages from a PDF document using Aspose.Pdf.", + "title": "Delete Specific Pages From Pdf__V2", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "delete-specified-pdf-pages.cs", + "title": "Delete Specified PDF Pages Using Aspose.Pdf", + "description": "Shows how to read a list of page numbers from a text file and delete those pages from a PDF document using Aspose.Pdf.", "tags": [ "pdf", "delete-pages", @@ -33691,22 +41058,29 @@ ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Pages.Delete", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.PageCollection", + "Aspose.Pdf.PageCollection.Delete" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "duplicate-pdf-page-insert-after.cs", - "title": "Duplicate PDF Page and Insert After Original", - "description": "Shows how to duplicate the third page of a PDF document and insert the copy immediately after the original using Aspose.Pdf.", + "title": "Duplicate Pdf Page Insert After", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "duplicate-third-page-in-pdf.cs", + "title": "Duplicate Third Page in PDF", + "description": "Demonstrates how to duplicate the third page of a PDF document and insert the copy immediately after the original using Aspose.Pdf.", "tags": [ "pdf", - "duplicate-page", - "insert-page", + "page-duplicate", "aspose-pdf", - "csharp" + "csharp", + "document" ], "apis_used": [ "Aspose.Pdf.Document", @@ -33720,7 +41094,7 @@ { "filename": "export-pdf-page-dimensions-to-csv.cs", "title": "Export PDF Page Dimensions to CSV", - "description": "Shows how to read each page's width and height from a PDF using Aspose.Pdf and write the results to a CSV file for external analysis.", + "description": "Loads a PDF document, reads the width and height of each page, and writes the page number with its dimensions to a CSV file for external analysis.", "tags": [ "pdf", "pages", @@ -33733,138 +41107,120 @@ "Aspose.Pdf.Page", "Aspose.Pdf.PageInfo", "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Page.PageInfo" + "Aspose.Pdf.Page.PageInfo.Width", + "Aspose.Pdf.Page.PageInfo.Height" ], "difficulty": "beginner" }, { "filename": "extend-bleedbox-beyond-cropbox.cs", "title": "Extend BleedBox Beyond CropBox in PDF", - "description": "Demonstrates how to load a PDF with Aspose.Pdf, read each page's CropBox, expand it by 5 points on all sides, and assign the resulting rectangle to the page's BleedBox before saving.", + "description": "Demonstrates how to increase each page's BleedBox by 5 points on all sides relative to the existing CropBox using Aspose.Pdf.", "tags": [ - "pdf", "bleedbox", "cropbox", - "aspose-pdf", - "page-manipulation" + "pdf", + "pages", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", - "Document.Save", "Page.CropBox", - "Page.BleedBox" + "Page.BleedBox", + "Document.Save" ], "difficulty": "beginner" }, { "filename": "extract-resize-reinsert-pdf-pages.cs", - "title": "Extract, Resize to A4, and Reinsert PDF Pages", - "description": "Demonstrates how to extract a range of pages from a PDF, change their size to A4, and insert them back at a specified position using Aspose.Pdf.", + "title": "Extract, Resize, and Reinsert PDF Pages", + "description": "Shows how to extract a range of pages from a PDF, change their size to A4, and insert them at a new position using Aspose.Pdf.", "tags": [ "pdf", "pages", "extract", "resize", - "reinsert" + "reorder" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.PageInfo", + "Aspose.Pdf.PageSize", + "Aspose.Pdf.Document.Pages.Add", "Aspose.Pdf.Document.Pages.Delete", "Aspose.Pdf.Document.Pages.Insert", + "Aspose.Pdf.Page.SetPageSize", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "insert-blank-page-at-index.cs", - "title": "Insert Blank Page at Specific Index in PDF", - "description": "Shows how to load a PDF with Aspose.Pdf, insert a blank page at position 3, and save the modified document.", + "filename": "insert-blank-page-at-index-three.cs", + "title": "Insert Blank Page at Specific Position in PDF", + "description": "Shows how to load a PDF with Aspose.Pdf, insert a blank page at position 3 using the Pages.Insert method, and save the updated document.", "tags": [ "pdf", - "blank-page", - "insert", - "pages", - "aspose-pdf" + "insert-page", + "aspose.pdf", + "csharp", + "blank-page" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.PageCollection", + "Aspose.Pdf.Page", "Aspose.Pdf.PageCollection.Insert", + "Aspose.Pdf.PageInfo", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "insert-blank-pages-double-pdf-page-count.cs", - "title": "Insert Blank Pages to Double PDF Page Count", - "description": "Demonstrates how to insert a blank page after each existing page in a PDF using Aspose.Pdf, effectively doubling the total number of pages.", + "filename": "insert-blank-pages-after-each-page.cs", + "title": "Insert Blank Pages After Each Page in PDF", + "description": "Shows how to load a PDF with Aspose.Pdf, iterate its pages in reverse, and insert a blank page after each existing page, effectively doubling the page count.", "tags": [ "pdf", "blank-page", - "page-insertion", - "aspose.pdf", + "insertion", + "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Pages", "Aspose.Pdf.PageCollection", - "Aspose.Pdf.PageCollection.Count", "Aspose.Pdf.PageCollection.Insert", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, - { - "filename": "insert-chapter-page-numbers-into-pdf.cs", - "title": "Insert Chapter‑Prefixed Page Numbers into PDF", - "description": "Demonstrates how to load a PDF with Aspose.Pdf, iterate through its pages, and add a PageNumberStamp with a custom \"Chapter #\" format at the bottom‑center of each page.", - "tags": [ - "pdf", - "page-number", - "stamp", - "aspose-pdf", - "chapter" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.PageNumberStamp", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner" - }, { "filename": "insert-custom-page-numbers-pdf.cs", - "title": "Insert Custom Page Numbers with Separator in PDF", - "description": "Shows how to add page numbers in the \"current/total\" format to every page of a PDF using Aspose.Pdf's PageNumber and TextStamp classes.", + "title": "Insert Custom Page Numbers (current/total) into PDF", + "description": "Shows how to add page numbers in the \"current/total\" format to every page of a PDF using Aspose.Pdf, with the numbers placed at the bottom‑right corner.", "tags": [ "page-number", "pdf", - "custom-separator", + "aspose.pdf", "text-stamp", - "aspose" + "custom-separator" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.PageNumber", + "Aspose.Pdf.PageNumber", "Aspose.Pdf.Text.TextStamp", - "Aspose.Pdf.Text.TextState", "Aspose.Pdf.Text.FontRepository", - "Aspose.Pdf.Page.AddStamp" + "Aspose.Pdf.Color", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "insert-custom-sized-page-at-beginning.cs", "title": "Insert Custom-Sized Page at Beginning of PDF", - "description": "Demonstrates how to insert an empty page with specific dimensions (200 × 300 points) at the start of an existing PDF using Aspose.Pdf.", + "description": "Demonstrates how to insert an empty page with a custom size of 200 × 300 points at the start of an existing PDF using Aspose.Pdf.", "tags": [ "pages", "insert", @@ -33883,19 +41239,27 @@ }, { "filename": "insert-empty-page-custom-size.cs", + "title": "Insert Empty Page Custom Size", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "insert-empty-page-with-custom-size.cs", "title": "Insert Empty Page with Custom Size into PDF", - "description": "Shows how to add a blank page of user‑defined dimensions at a specific position in an existing PDF using Aspose.Pdf.", + "description": "Shows how to load an existing PDF, add an empty page, set its width and height from user input, and save the modified document using Aspose.Pdf.", "tags": [ "pdf", "page", "custom-size", - "insertion", - "aspose-pdf" + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.PageCollection.Insert", + "Aspose.Pdf.Document.Pages.Add", "Aspose.Pdf.Page.SetPageSize", "Aspose.Pdf.Document.Save" ], @@ -33903,31 +41267,36 @@ }, { "filename": "insert-external-pdf-page-at-index.cs", - "title": "Insert External PDF Page at Specific Index", - "description": "Demonstrates how to insert a page from another PDF into a target document at position 2 while preserving the original page size and rotation.", + "title": "Insert External Pdf Page At Index", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "insert-page-from-another-pdf.cs", + "title": "Insert Page from Another PDF at Specific Position", + "description": "Demonstrates how to load two PDF documents, take a page from the source PDF, and insert it into the target PDF at index two while keeping the original size and rotation.", "tags": [ - "pages", - "insert", "pdf", - "rotation", - "size" + "page-insertion", + "aspose-pdf", + "csharp", + "document-manipulation" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Document.Pages.Insert", - "Aspose.Pdf.Page.MediaBox", - "Aspose.Pdf.Page.CropBox", - "Aspose.Pdf.Page.Rotate", + "Aspose.Pdf.PageCollection", + "Aspose.Pdf.PageCollection.Insert", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "insert-page-matching-size-from-page-2.cs", - "title": "Insert New Page Matching Size of Page 2", - "description": "Loads a PDF, reads the width and height of the second page, inserts an empty page at position five, and sets the new page's size to match the second page.", + "filename": "insert-page-matching-page2-size.cs", + "title": "Insert New Page Matching Page 2 Size", + "description": "Demonstrates how to copy the width and height of page 2 in a PDF and insert a new empty page at position 5 with the same dimensions using Aspose.Pdf.", "tags": [ "pdf", "page-insertion", @@ -33939,59 +41308,88 @@ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.PageInfo", - "Aspose.Pdf.PageCollection.Insert", "Aspose.Pdf.Page.SetPageSize", + "Aspose.Pdf.Document.Pages.Insert", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "insert-page-numbers-after-toc.cs", - "title": "Insert Page Numbers After Table of Contents Using Bookmarks", - "description": "Shows how to locate the Table of Contents page via bookmark detection and add page numbers to all following pages in a PDF with Aspose.Pdf.", + "title": "Insert Page Numbers After Table of Contents Using Bookmark Detection", + "description": "Demonstrates how to locate the Table of Contents bookmark in a PDF, determine its page, and add sequential page numbers to all subsequent pages using Aspose.Pdf.", "tags": [ "pdf", + "bookmark", + "page-number", "toc", - "page-numbering", - "bookmarks", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.OutlineItemCollection", "Aspose.Pdf.Annotations.GoToAction", - "Aspose.Pdf.Text.PageNumberStamp", + "Aspose.Pdf.Annotations.PageNumberStamp", "Aspose.Pdf.Page", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.HorizontalAlignment", + "Aspose.Pdf.VerticalAlignment" ], "difficulty": "intermediate" }, { - "filename": "insert-roman-page-numbers.cs", - "title": "Insert Roman Numeral Page Numbers into PDF", - "description": "Shows how to add Roman numeral page numbers to the introductory pages of a PDF using Aspose.Pdf.", + "filename": "insert-page-numbers-arial-font.cs", + "title": "Insert Page Numbers with Arial Font in PDF", + "description": "Demonstrates how to add sequential page numbers to every page of a PDF using Aspose.Pdf, customizing the font to Arial and size to 14 points.", "tags": [ - "roman-numerals", - "page-numbering", "pdf", - "aspose-pdf", - "stamp" + "page-number", + "stamp", + "font", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.PageNumberStamp", - "Aspose.Pdf.NumberingStyle", + "Aspose.Pdf.Text.FontRepository.FindFont", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner" + }, + { + "filename": "insert-page-numbers-leading-zeros.cs", + "title": "Insert Page Numbers with Leading Zeros in PDF", + "description": "Demonstrates how to add page numbers to every page of a PDF using Aspose.Pdf, formatting single‑digit numbers with a leading zero (e.g., 01, 02). The example positions the stamp at the bottom‑center and customizes its appearance.", + "tags": [ + "pdf", + "page-number", + "leading-zero", + "stamp", + "aspnet" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.PageNumberStamp", "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Text.FontRepository.FindFont", + "Aspose.Pdf.Text.TextState", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, + { + "filename": "insert-roman-page-numbers.cs", + "title": "Insert Roman Page Numbers", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "insert-ten-empty-pages-at-pdf-midpoint.cs", "title": "Insert Ten Empty Pages at PDF Midpoint", - "description": "Demonstrates how to calculate the middle of a PDF document and batch‑insert ten blank pages using Aspose.Pdf.", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, calculate its middle page, and batch‑insert ten blank pages at that position.", "tags": [ "pdf", "pages", @@ -34001,9 +41399,9 @@ ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.PageCollection.Insert", + "Aspose.Pdf.PageCollection", "Aspose.Pdf.PageCollection.Count", + "Aspose.Pdf.PageCollection.Insert", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" @@ -34011,13 +41409,13 @@ { "filename": "insert-transparent-separator-page.cs", "title": "Insert Transparent Separator Page into PDF", - "description": "Demonstrates how to add an empty PDF page with a transparent background as a separator between existing pages using Aspose.Pdf.", + "description": "Shows how to add an empty page with a transparent background as a separator between sections of an existing PDF using Aspose.Pdf.", "tags": [ "pdf", "separator", "transparent", "page-insertion", - "aspose-pdf" + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", @@ -34031,19 +41429,20 @@ { "filename": "move-even-pages-to-end.cs", "title": "Move Even Pages to End of PDF", - "description": "Demonstrates how to reorder a PDF by extracting all even‑numbered pages, removing them from their original positions, and appending them to the end while preserving their order.", + "description": "Demonstrates how to reorder a PDF by extracting all even‑numbered pages and appending them to the end while preserving their original order using Aspose.Pdf.", "tags": [ "pdf", "pages", "reorder", - "aspose-pdf", + "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.PagesCollection.Delete", - "Aspose.Pdf.PagesCollection.Add", + "Aspose.Pdf.Pages", + "Aspose.Pdf.Pages.Delete", + "Aspose.Pdf.Pages.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" @@ -34051,11 +41450,11 @@ { "filename": "move-page-9-to-first-position.cs", "title": "Move Page 9 to First Position in PDF", - "description": "Shows how to reposition page 9 to the beginning of a PDF by inserting it at a new index and deleting the original occurrence using Aspose.Pdf.", + "description": "Shows how to reposition page 9 to the beginning of a PDF by inserting it at index 1 and removing the original occurrence using Aspose.Pdf.", "tags": [ "pdf", "page-reorder", - "aspose.pdf", + "aspose-pdf", "csharp", "document-manipulation" ], @@ -34070,68 +41469,65 @@ }, { "filename": "move-page-between-pdfs-preserving-rotation-size.cs", - "title": "Move a Page Between PDFs Preserving Rotation and Size", - "description": "Demonstrates how to transfer a single page from one PDF to another using Aspose.Pdf while keeping the original page size and rotation.", - "tags": [ - "pdf", - "page-move", - "aspose-pdf", - "rotation", - "size" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Document.Pages.Delete", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner" + "title": "Move Page Between Pdfs Preserving Rotation Size", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "move-pages-3-6-to-end.cs", - "title": "Move Pages 3‑6 to End of PDF", - "description": "Shows how to reorder a PDF by moving pages 3 through 6 to the end of the document using Aspose.Pdf for .NET.", + "title": "Move Pages 3 6 To End", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "move-pdf-page-to-another-document.cs", + "title": "Move a PDF Page to Another Document", + "description": "Demonstrates how to transfer a single page from a source PDF to a destination PDF while preserving its original rotation and size, then saves both modified documents.", "tags": [ "pdf", - "page-reorder", + "page-manipulation", "aspose-pdf", "csharp", - "document-manipulation" + "move-page" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PageCollection", - "Aspose.Pdf.PageCollection.Insert", "Aspose.Pdf.Page", + "Aspose.Pdf.Pages.Insert", + "Aspose.Pdf.Pages.Delete", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "read-page-dimensions-from-pdf.cs", - "title": "Read Page Dimensions from PDF", - "description": "Shows how to load a PDF with Aspose.Pdf, iterate through its pages, and obtain the width and height of each page.", + "filename": "move-pdf-pages-to-end.cs", + "title": "Move Specific PDF Pages to End", + "description": "Shows how to extract pages 3‑6 from a PDF and relocate them to the end of the document using Aspose.Pdf.", "tags": [ "pdf", "pages", - "dimensions", - "aspose", + "reorder", + "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Page.Rect" + "Aspose.Pdf.Pages.Insert", + "Aspose.Pdf.Pages.Delete", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "read-pdf-page-count.cs", "title": "Read PDF Page Count with Aspose.Pdf", - "description": "Demonstrates how to load a PDF using Aspose.Pdf and retrieve the total number of pages without saving the document.", + "description": "Demonstrates how to load a PDF using Aspose.Pdf and retrieve the total number of pages without modifying the file.", "tags": [ "pdf", "page-count", @@ -34141,15 +41537,14 @@ ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PageCollection", - "Aspose.Pdf.PageCollection.Count" + "Aspose.Pdf.PageCollection" ], "difficulty": "beginner" }, { "filename": "read-pdf-page-dimensions.cs", "title": "Read PDF Page Dimensions", - "description": "Loads a PDF document using Aspose.Pdf, iterates through each page, and logs the width and height of every page to the console.", + "description": "Loads a PDF document, iterates over each page, and logs the width and height of the page rectangle to the console.", "tags": [ "pdf", "pages", @@ -34157,6 +41552,26 @@ "aspose", "csharp" ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Page.Rect" + ], + "difficulty": "beginner" + }, + { + "filename": "read-pdf-page-dimensions__v2.cs", + "title": "Read PDF Page Width and Height", + "description": "Demonstrates how to open a PDF with Aspose.Pdf, iterate through its pages, and retrieve each page's width and height using the page rectangle.", + "tags": [ + "pdf", + "pages", + "dimensions", + "aspose-pdf", + "csharp" + ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Document.Pages", @@ -34167,52 +41582,81 @@ "difficulty": "beginner" }, { - "filename": "remove-specific-bates-numbering-stamp.cs", - "title": "Remove Specific Bates Numbering Stamp from PDF Pages", - "description": "Demonstrates how to locate and delete Bates numbering artifacts with a given prefix on selected pages of a PDF using Aspose.Pdf.", + "filename": "remove-bates-numbering-add-new-sequence.cs", + "title": "Remove Existing Bates Numbering and Add New Sequence to PDF", + "description": "Shows how to delete all Bates numbering artifacts from a PDF and then apply a new Bates numbering sequence using Aspose.Pdf.", "tags": [ - "bates", - "stamp", + "bates-numbering", "pdf", - "artifact", - "removal" + "aspose-pdf", + "pages", + "document" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Artifact", + "Aspose.Pdf.Pages", + "Aspose.Pdf.Pages.DeleteBatesNumbering", + "Aspose.Pdf.Pages.AddBatesNumbering", + "Aspose.Pdf.BatesNArtifact" + ], + "difficulty": "beginner" + }, + { + "filename": "remove-bates-numbering-from-selected-pdf-pages.cs", + "title": "Remove Bates Numbering from Selected PDF Pages", + "description": "Shows how to delete all Bates numbering artifacts from a PDF and then re‑add them only to pages that should keep the stamp, effectively removing the numbering from specific pages.", + "tags": [ + "bates-numbering", + "pdf", + "pages", + "remove-stamp", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.PageCollection.DeleteBatesNumbering", "Aspose.Pdf.BatesNArtifact", - "Aspose.Pdf.ArtifactCollection.Delete" + "Aspose.Pdf.Page.Artifacts.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, + { + "filename": "remove-specific-bates-numbering-stamp.cs", + "title": "Remove Specific Bates Numbering Stamp", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "reorder-pdf-pages-by-orientation.cs", - "title": "Reorder PDF Pages by Orientation (Landscape then Portrait)", - "description": "Loads a PDF, separates its pages into landscape and portrait groups, then creates a new PDF with all landscape pages followed by all portrait pages.", + "title": "Reorder PDF Pages by Orientation", + "description": "Demonstrates how to load a PDF, separate landscape and portrait pages, and rebuild the document so that all landscape pages appear before portrait pages.", "tags": [ "pdf", + "page-orientation", "reorder", - "orientation", - "landscape", - "portrait" + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.PageInfo", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.PageCollection.Add" + "Aspose.Pdf.PageInfo.IsLandscape", + "Aspose.Pdf.PageCollection.Add", + "Aspose.Pdf.PageCollection.Delete", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "reorder-pdf-pages-custom-sequence.cs", "title": "Reorder PDF Pages Using Custom Sequence", - "description": "Shows how to reorder the pages of a PDF by providing a custom integer array and saving the reordered document.", + "description": "Shows how to reorder the pages of a PDF by providing a custom integer array that defines the new page order and saving the result with Aspose.Pdf.", "tags": [ "pdf", - "page-reorder", + "page-reordering", "aspose-pdf", "csharp", "document-manipulation" @@ -34221,6 +41665,7 @@ "Aspose.Pdf.Document", "Aspose.Pdf.PageCollection", "Aspose.Pdf.PageCollection.Add", + "Aspose.Pdf.PageCollection.Count", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" @@ -34228,7 +41673,7 @@ { "filename": "reorder-pdf-pages-descending.cs", "title": "Reorder PDF Pages in Descending Order", - "description": "Shows how to load a PDF with Aspose.Pdf, reorder its pages in descending numeric order, and save the reordered document.", + "description": "Shows how to load a PDF with Aspose.Pdf, copy its pages in reverse (descending) order into a new document, optionally balance the page tree, and save the reordered file.", "tags": [ "pdf", "page-reordering", @@ -34239,156 +41684,121 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.PageNodesToBalancedTree" + "Aspose.Pdf.PageCollection.Add", + "Aspose.Pdf.Document.PageNodesToBalancedTree", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "replace-bates-numbering-in-pdf.cs", - "title": "Replace Bates Numbering in PDF", - "description": "Demonstrates how to delete any existing Bates numbering artifacts from all pages of a PDF and then add a new Bates numbering sequence using Aspose.Pdf.", - "tags": [ - "bates-numbering", - "pdf", - "pages", - "artifact", - "aspnet" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Pages", - "Aspose.Pdf.Pages.DeleteBatesNumbering", - "Aspose.Pdf.Pages.AddBatesNumbering", - "Aspose.Pdf.Point" - ], - "difficulty": "beginner" + "title": "Replace Bates Numbering In Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "replace-pdf-headers-and-footers.cs", + "title": "Replace Pdf Headers And Footers", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "replace-pdf-headers-footers.cs", "title": "Replace PDF Headers and Footers", - "description": "Shows how to remove any existing header and footer from each page of a PDF and then add a new header and footer using Aspose.Pdf.", + "description": "Demonstrates how to remove existing headers and footers from all pages of a PDF and add new styled header and footer content, including page numbers, using Aspose.Pdf.", "tags": [ "pdf", "header", "footer", "aspose-pdf", - "pages" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.HeaderFooter", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.MarginInfo" + "Aspose.Pdf.FontRepository.FindFont", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "reset-pdf-page-rotation.cs", - "title": "Reset PDF Page Rotation to Original Orientation", - "description": "Shows how to load a PDF, read a page's current rotation, reset it to the default (no rotation), and save the updated document.", + "filename": "reset-page-rotation.cs", + "title": "Reset Page Rotation in PDF", + "description": "Shows how to load a PDF with Aspose.Pdf, read a page's current rotation, reset it to no rotation, and save the updated document.", "tags": [ "pdf", "rotation", "page", - "aspose.pdf", + "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rotation", - "Document.Save", - "Document.Pages" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Pages" ], "difficulty": "beginner" }, { - "filename": "resize-all-pdf-pages-to-a5.cs", - "title": "Resize All PDF Pages to A5", - "description": "Shows how to load a PDF with Aspose.Pdf, loop through its pages, resize each page to A5 dimensions, and save the modified document.", + "filename": "resize-pdf-page-to-letter-size.cs", + "title": "Resize PDF Page to Letter Size", + "description": "Shows how to load a PDF, verify it has at least seven pages, and change page 7 to the Letter format using SetPageSize, then save the document.", "tags": [ "pdf", - "resize", "pages", - "a5", - "aspose" + "resize", + "letter", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.PageSize", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Page.Resize" - ], - "difficulty": "beginner" - }, - { - "filename": "resize-first-pdf-page-custom-dimensions.cs", - "title": "Resize First PDF Page to Custom Dimensions", - "description": "Demonstrates how to load a PDF with Aspose.Pdf, change the size of the first page to 500 × 700 points, and save the modified document.", - "tags": [ - "page-size", - "pdf", - "aspose-pdf", - "csharp", - "document-manipulation" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.PageCollection", - "Aspose.Pdf.Page", "Aspose.Pdf.Page.SetPageSize", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "resize-pdf-pages-to-fixed-width.cs", - "title": "Resize PDF Pages to Fixed Width", - "description": "Shows how to batch resize all pages in a PDF to a fixed width of 800 points while preserving the original aspect ratio using Aspose.Pdf.", + "filename": "resize-pdf-pages-to-a5.cs", + "title": "Resize PDF Pages to A5 Size", + "description": "Loads a PDF, iterates through all pages, resizes each page to A5 dimensions, and saves the modified document.", "tags": [ "pdf", "resize", "pages", - "aspect-ratio", + "a5", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.PageInfo", - "Aspose.Pdf.Page.SetPageSize", + "Aspose.Pdf.Page.Resize", + "Aspose.Pdf.PageSize", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "resize-pdf-pages-to-match-template-size.cs", - "title": "Resize PDF Pages to Match Template Size", - "description": "Shows how to load a template PDF, read its first page dimensions, and apply those dimensions to all pages of another PDF using Aspose.Pdf.", - "tags": [ - "pdf", - "page-size", - "resize", - "template", - "aspose" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.PageInfo", - "Aspose.Pdf.Page.SetPageSize", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner" + "title": "Resize Pdf Pages To Match Template Size", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "resize-pdf-pages-to-printable-area.cs", "title": "Resize PDF Pages to Printable Area", - "description": "Demonstrates how to scale each page of a PDF so that its content fits within a printable area of 595 × 842 points using Aspose.Pdf.", + "description": "Shows how to resize every page of a PDF to a fixed printable size of 595 × 842 points, scaling the existing content proportionally using Aspose.Pdf.", "tags": [ "pdf", "page-resize", @@ -34407,68 +41817,69 @@ }, { "filename": "resize-pdf-pages-to-template-size.cs", - "title": "Resize PDF Pages to Match a Template Size", - "description": "Demonstrates how to load a reference PDF, extract its page dimensions, and resize every page of another PDF to those dimensions using Aspose.Pdf.", + "title": "Resize PDF Pages to Match Template Size", + "description": "Shows how to read the dimensions of a template PDF's first page and apply those dimensions to every page of another PDF using Aspose.Pdf.", "tags": [ "pdf", - "page-resize", - "template", - "aspose-pdf", + "page-size", + "resize", + "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.PageSize", - "Aspose.Pdf.Page.Resize", + "Aspose.Pdf.PageInfo", + "Aspose.Pdf.Page.SetPageSize", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "resize-pdf-pages-uniform-size.cs", - "title": "Resize PDF Pages to Uniform Size", - "description": "Shows how to determine the largest page dimensions in a PDF and resize all pages to that size using Aspose.Pdf.", + "filename": "resize-pdf-pages-to-template-size__v2.cs", + "title": "Resize PDF Pages to Match Template Size", + "description": "Demonstrates how to load a reference PDF, extract its page dimensions, and resize all pages of another PDF to those dimensions using Aspose.Pdf.", "tags": [ "pdf", - "page-size", "resize", - "uniform", + "pages", + "template", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Page.SetPageSize", - "Aspose.Pdf.Page.Rect", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.PageSize", + "Aspose.Pdf.Page.Resize", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "resize-seventh-pdf-page-to-letter-size.cs", - "title": "Resize Seventh PDF Page to Letter Size", - "description": "Shows how to open a PDF, ensure it has at least seven pages, and change the size of the seventh page to Letter format using Aspose.Pdf's SetPageSize method.", + "filename": "resize-pdf-pages-uniform-size.cs", + "title": "Resize PDF Pages to Uniform Size", + "description": "Shows how to determine the largest page dimensions in a PDF and resize every page to those dimensions, creating a uniform page size throughout the document.", "tags": [ "pdf", "page-size", - "letter", - "aspose-pdf", - "csharp" + "resize", + "uniform", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.PageSize", - "Aspose.Pdf.Page.SetPageSize", + "Aspose.Pdf.Page.Resize", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "resize-wide-pdf-pages-to-a4.cs", "title": "Resize Wide PDF Pages to A4", - "description": "Loads a PDF, iterates through its pages, and resizes any page wider than 600 points to standard A4 dimensions while leaving narrower pages unchanged.", + "description": "Loads a PDF, checks each page's width, and sets the page size to A4 for pages wider than 600 points while leaving narrower pages unchanged.", "tags": [ "pdf", "page-size", @@ -34481,14 +41892,15 @@ "Aspose.Pdf.Page", "Aspose.Pdf.PageInfo.Width", "Aspose.Pdf.Page.SetPageSize", - "Aspose.Pdf.PageSize.A4" + "Aspose.Pdf.PageSize.A4", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "retrieve-trimbox-values-from-pdf-pages.cs", - "title": "Retrieve TrimBox Values from PDF Pages", - "description": "Demonstrates loading a PDF with Aspose.Pdf, optionally setting a CropBox, and reading the TrimBox coordinates of each page to verify the content area.", + "filename": "retrieve-trimbox-after-cropping-pdf-page.cs", + "title": "Retrieve TrimBox After Cropping a PDF Page", + "description": "Demonstrates how to set a CropBox on a PDF page and then read the resulting TrimBox to verify the content area using Aspose.Pdf.", "tags": [ "trimbox", "cropbox", @@ -34500,60 +41912,67 @@ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", - "Document.Pages", - "Page.TrimBox", - "Page.CropBox" + "Aspose.Pdf.Page.CropBox", + "Aspose.Pdf.Page.TrimBox" ], "difficulty": "beginner" }, + { + "filename": "retrieve-trimbox-values-from-pdf-pages.cs", + "title": "Retrieve Trimbox Values From Pdf Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "rotate-all-pdf-pages-180-degrees.cs", "title": "Rotate All PDF Pages 180 Degrees", - "description": "Shows how to load a PDF with Aspose.Pdf, rotate each page by 180°, and save the modified document.", + "description": "Shows how to load a PDF with Aspose.Pdf, rotate each page 180° using the Rotate property, and save the modified document.", "tags": [ + "pdf", "rotation", "pages", - "pdf", - "aspose-pdf", + "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rotation", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Pages" + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Page", + "Aspose.Pdf.Page.Rotate", + "Aspose.Pdf.Rotation" ], "difficulty": "beginner" }, { - "filename": "rotate-even-pages-pdf.cs", - "title": "Rotate Even Pages of a PDF", - "description": "Demonstrates how to load a PDF with Aspose.Pdf, iterate through its pages, and set a 90‑degree rotation on even‑numbered pages while leaving odd pages unchanged, then save the result.", + "filename": "rotate-every-third-pdf-page-90-degrees.cs", + "title": "Rotate Every Third PDF Page by 90 Degrees", + "description": "Shows how to load a PDF with Aspose.Pdf, iterate through its pages, rotate pages whose number is divisible by three by 90°, and save the modified document.", "tags": [ "pdf", "rotation", "pages", - "aspose-pdf", + "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rotation", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Pages" + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "rotate-every-third-pdf-page-90-degrees.cs", - "title": "Rotate Every Third PDF Page by 90 Degrees", - "description": "Shows how to open a PDF with Aspose.Pdf, iterate through its pages, rotate pages whose number is divisible by three by 90 degrees, and save the modified document.", + "filename": "rotate-fourth-page-90-degrees-clockwise.cs", + "title": "Rotate Fourth Page 90 Degrees Clockwise", + "description": "Shows how to load a PDF with Aspose.Pdf, verify it has at least four pages, rotate page 4 by 90° clockwise using the Rotate property, and save the modified document.", "tags": [ + "rotate", "pdf", - "rotation", - "pages", + "page", "aspose", "csharp" ], @@ -34568,12 +41987,20 @@ }, { "filename": "rotate-fourth-page-90-degrees.cs", - "title": "Rotate Fourth Page of PDF by 90 Degrees", - "description": "Loads a PDF, verifies it has at least four pages, rotates the fourth page 90° clockwise using the Rotate property, and saves the modified document.", + "title": "Rotate Fourth Page 90 Degrees", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "rotate-pdf-pages-by-parity.cs", + "title": "Rotate PDF Pages Based on Page Number Parity", + "description": "Shows how to load a PDF, iterate through its pages, apply a 90° clockwise rotation to odd‑numbered pages while leaving even pages unchanged, and save the modified document.", "tags": [ - "rotate", "pdf", - "page", + "rotation", + "pages", "aspose-pdf", "csharp" ], @@ -34581,47 +42008,48 @@ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rotation", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.PageCollection" ], "difficulty": "beginner" }, { - "filename": "rotate-pdf-pages-by-configurable-angles.cs", - "title": "Rotate PDF Pages by Configurable Angles", - "description": "Demonstrates loading a PDF with Aspose.Pdf, applying page‑specific rotations defined in a dictionary, and saving the modified document.", + "filename": "rotate-pdf-pages-reverse-order.cs", + "title": "Rotate PDF Pages in Reverse Order", + "description": "Loads a PDF, iterates through its pages in reverse order, applies a 90° clockwise rotation to each page, and saves the modified document.", "tags": [ - "pdf", "rotation", "pages", - "aspose", - "csharp" + "pdf", + "aspose-pdf", + "reverse-order" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Page.Rotate", - "Aspose.Pdf.Rotation" + "Aspose.Pdf.Page", + "Aspose.Pdf.Rotation", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "rotate-pdf-pages-reverse-order.cs", - "title": "Rotate PDF Pages in Reverse Order", - "description": "Demonstrates how to rotate each page of a PDF 90 degrees clockwise, processing pages from the last to the first using Aspose.Pdf.", + "filename": "rotate-pdf-pages-using-config.cs", + "title": "Rotate PDF Pages Using Configuration Dictionary", + "description": "Shows how to load a PDF with Aspose.Pdf, rotate selected pages based on a dictionary of page numbers to angles, and save the modified document.", "tags": [ "pdf", "rotation", "pages", - "aspose-pdf", + "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", "Aspose.Pdf.Page", - "Aspose.Pdf.Page.Rotate", - "Aspose.Pdf.Rotation" + "Aspose.Pdf.Page.IntToRotation", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Pages" ], "difficulty": "beginner" }, @@ -34639,60 +42067,80 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Color", + "Aspose.Pdf.PageCollection", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Page.Background" + "Aspose.Pdf.Color" ], "difficulty": "beginner" }, { - "filename": "set-pdf-page-background-cmyk.cs", - "title": "Set PDF Page Background Color Using CMYK Values", - "description": "Shows how to load a PDF with Aspose.Pdf, create a CMYK color, apply it as the background for each page, and save the modified document.", + "filename": "set-custom-size-first-pdf-page.cs", + "title": "Set Custom Size for First PDF Page", + "description": "Shows how to load a PDF with Aspose.Pdf, change the first page size to 500 × 700 points, and save the modified document.", "tags": [ - "cmyk", - "background", + "page-size", "pdf", - "pages", - "color" + "aspose", + "csharp", + "first-page" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Color.FromCmyk", - "Aspose.Pdf.Page.Background", + "Aspose.Pdf.Page", + "Aspose.Pdf.Page.SetPageSize", "Aspose.Pdf.Document.Save", "Aspose.Pdf.Document.Pages" ], "difficulty": "beginner" }, { - "filename": "set-pdf-page-background-color.cs", - "title": "Set PDF Page Background Color with RGB", - "description": "Demonstrates how to load a PDF using Aspose.Pdf, define an RGB brand color, apply it as the background for each page (and optionally the whole document), and save the modified file.", + "filename": "set-page-background-color-hsl.cs", + "title": "Set PDF Page Background Color Using HSL Values", + "description": "Demonstrates converting HSL color values to an Aspose.Pdf.Color and applying the resulting color as the background of a PDF page.", "tags": [ - "pdf", "background", - "aspose-pdf", - "csharp", - "rgb" + "color", + "HSL", + "Aspose.Pdf", + "C#" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Color.FromArgb", + "Aspose.Pdf.Color.FromRgb", "Aspose.Pdf.Page.Background", - "Aspose.Pdf.Document.Background", "Aspose.Pdf.Document.Save" ], + "difficulty": "intermediate" + }, + { + "filename": "set-pdf-page-background-cmyk.cs", + "title": "Set PDF Page Background Color Using CMYK Values", + "description": "Shows how to apply a CMYK background color to every page of a PDF with Aspose.Pdf, creating a simple source PDF if it does not exist.", + "tags": [ + "cmyk", + "background-color", + "pdf", + "pages", + "aspose.pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Color.FromCmyk", + "Aspose.Pdf.Page.Background", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Pages" + ], "difficulty": "beginner" }, { - "filename": "set-pdf-page-background-from-theme.cs", + "filename": "set-pdf-page-background-color-from-theme.cs", "title": "Set PDF Page Background Color from Theme Configuration", - "description": "Shows how to read a theme value from a JSON file and apply the corresponding background color to every page of a PDF using Aspose.Pdf.", + "description": "Shows how to read a theme value from a JSON configuration file and apply the corresponding background color to every page of a PDF using Aspose.Pdf.", "tags": [ "pdf", - "background", + "background-color", "theme", "json", "aspose" @@ -34707,156 +42155,221 @@ "difficulty": "intermediate" }, { - "filename": "set-pdf-page-background-hsl.cs", - "title": "Set PDF Page Background Color Using HSL Values", - "description": "Demonstrates converting HSL color values to an Aspose.Pdf.Color and applying it as the background of a PDF page.", + "filename": "set-pdf-page-background-color.cs", + "title": "Set PDF Page Background Color Using RGB", + "description": "Demonstrates how to apply a corporate brand RGB background color to every page of a PDF document using Aspose.Pdf.", "tags": [ - "background", - "color", - "hsl", "pdf", - "aspose" + "background-color", + "aspose-pdf", + "rgb", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Color", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.PageCollection.Add" + "Aspose.Pdf.Color.FromArgb", + "Aspose.Pdf.Page.Background", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" + }, + { + "filename": "set-pdf-page-background-from-theme.cs", + "title": "Set Pdf Page Background From Theme", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "set-pdf-page-background-hsl.cs", + "title": "Set Pdf Page Background Hsl", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "set-pdf-page-background-transparent.cs", - "title": "Set PDF Page Background to Transparent", - "description": "Demonstrates how to make each page of a PDF have a fully transparent background using Aspose.Pdf, useful for overlay documents.", + "title": "Set Pdf Page Background Transparent", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "set-transparent-background-for-pdf-pages.cs", + "title": "Set Transparent Background for PDF Pages", + "description": "Shows how to make each page and the entire PDF document background transparent using Aspose.Pdf.", "tags": [ - "pdf", "background", "transparent", + "pdf", "pages", - "overlay" + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Color", - "Aspose.Pdf.Page.Background", + "Aspose.Pdf.Color.Transparent", + "Aspose.Pdf.Document.Background", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "trim-white-space-around-pdf-pages.cs", - "title": "Trim White Space Around PDF Pages Using Content Bounding Box", - "description": "Demonstrates how to automatically trim the white margins of each page in a PDF by calculating the content bounding box and setting the page's TrimBox accordingly.", + "filename": "trim-white-margins-pixel-tolerance.cs", + "title": "Trim White Margins with Pixel Tolerance per PDF Page", + "description": "Demonstrates how to remove blank pages and trim white margins of a PDF using Aspose.Pdf, applying a custom pixel‑tolerance for each page.", "tags": [ "pdf", "trim", - "bounding-box", - "pages", - "aspose-pdf" + "margin", + "blank-page", + "tolerance" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Page.CalculateContentBBox", + "Aspose.Pdf.Page.IsBlank", "Aspose.Pdf.Page.TrimBox", - "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Page.CropBox", + "Aspose.Pdf.Document.Pages", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "trim-white-space-pixel-tolerance.cs", - "title": "Trim White Space and Remove Blank Pages with Pixel Tolerance", - "description": "Demonstrates how to detect and delete blank PDF pages using a custom pixel‑based tolerance, and optionally adjust the TrimBox to remove surrounding white space.", + "filename": "trim-white-space-from-pdf-pages.cs", + "title": "Trim White Space from PDF Pages", + "description": "The example loads a PDF, skips blank pages, calculates the content bounding box for each page, sets the TrimBox to that rectangle to remove surrounding whitespace, and saves the trimmed document.", "tags": [ "pdf", "trim", - "blank-page", - "tolerance", - "aspose" + "whitespace", + "bounding-box", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.Page.IsBlank", + "Aspose.Pdf.Page.CalculateContentBBox", "Aspose.Pdf.Page.TrimBox", - "Aspose.Pdf.Page.CropBox", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Pages.Delete" + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" + }, + { + "filename": "trim-white-space-pixel-tolerance.cs", + "title": "Trim White Space Pixel Tolerance", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" } ] }, { "name": "parse-pdf", - "file_count": 63, + "file_count": 97, "files": [ "batch-extract-vector-graphics-to-svg.cs", + "combine-pdf-form-data-into-json-array.cs", "combine-pdf-form-data-to-json.cs", + "combine-pdf-page-vector-graphics-into-svg.cs", "combine-pdf-vector-graphics-to-svg.cs", "combine-pdf-vector-graphics-to-svg__v2.cs", + "combine-pdf-vectors-to-svg.cs", "count-acroform-fields-in-pdf.cs", + "count-form-fields-on-each-pdf-page.cs", "enumerate-pdf-form-fields-on-page.cs", - "export-acroform-fields-to-xfdf.cs", + "enumerate-pdf-form-fields.cs", + "export-acroform-fields-to-json.cs", + "export-acroform-to-xfdf.cs", "export-filtered-pdf-form-fields-to-json.cs", "export-pdf-acroform-fields-to-json.cs", "export-pdf-annotations-to-xfdf.cs", "export-pdf-annotations-to-xfdf__v2.cs", + "export-pdf-form-data-to-fdf.cs", "export-pdf-form-data-to-json-bytes.cs", "export-pdf-form-data-to-json.cs", "export-pdf-form-data-to-json__v2.cs", "export-pdf-form-data-to-json__v3.cs", "export-pdf-form-data-to-json__v4.cs", + "export-pdf-form-data-to-json__v5.cs", "export-pdf-form-data-to-xfdf.cs", "export-pdf-form-data-to-xml-xfdf.cs", + "export-pdf-form-data-to-xml.cs", "export-pdf-form-fields-to-json.cs", "export-pdf-form-fields-to-xml.cs", + "export-pdf-form-fields-with-prefix-to-json.cs", + "export-pdf-form-to-fdf.cs", "export-pdf-page-as-png.cs", + "export-pdf-pages-to-svg-preserving-coordinate-system.cs", "export-pdf-pages-vector-graphics-to-svg.cs", "export-pdf-subpaths-to-separate-svgs.cs", "export-pdf-tables-to-csv-with-border-markers.cs", + "export-pdf-tables-to-csv-with-borders.cs", + "export-pdf-to-html-png-xfdf.cs", "export-pdf-to-pdf-html-xml-with-stream-disposal.cs", "export-pdf-to-svg-with-custom-options.cs", + "extract-checkbox-states-from-pdf.cs", "extract-checkbox-states-to-json.cs", "extract-filter-graphics-by-area.cs", "extract-first-page-text-to-utf8-file.cs", "extract-fonts-from-pdf-ttf.cs", + "extract-graphic-element-as-svg.cs", "extract-graphics-from-specific-pdf-pages.cs", "extract-images-from-pdf.cs", + "extract-images-using-graphicsabsorber.cs", "extract-paragraphs-from-pdf.cs", + "extract-paragraphs-with-line-breaks.cs", + "extract-pdf-font-table-form-field-statistics.cs", + "extract-pdf-form-field-values.cs", "extract-pdf-form-fields.cs", "extract-pdf-form-xobject-text-with-logging.cs", "extract-pdf-metadata-and-save-aps.cs", + "extract-pdf-metadata-and-save-svg.cs", "extract-pdf-paragraphs-to-markdown.cs", + "extract-pdf-stamp-texts-to-json.cs", "extract-pdf-tables-to-csv.cs", "extract-selected-radio-button-labels.cs", "extract-single-graphic-element-as-svg.cs", "extract-stamp-annotation-text.cs", "extract-subpaths-as-png-images.cs", + "extract-subpaths-as-separate-svg.cs", + "extract-subpaths-pdf-png.cs", "extract-superscript-subscript-from-pdf.cs", + "extract-superscript-subscript-from-pdf__v2.cs", "extract-superscripts-subscripts-from-pdf.cs", "extract-svg-apply-brand-colors.cs", "extract-text-from-pdf-to-txt.cs", "extract-vector-graphics-from-encrypted-pdf.cs", - "extract-vector-graphics-from-pdf-page.cs", "extract-vector-graphics-to-svg.cs", + "extract-vector-graphics-to-svg__v2.cs", + "filter-export-large-graphics-pdf.cs", + "iterate-modify-pdf-form-fields.cs", "iterate-pdf-form-fields-set-values.cs", "iterate-pdf-pages-list-form-fields.cs", + "list-form-fields-per-pdf-page.cs", "load-pdf-extract-acroform-fields.cs", "log-form-field-count-per-pdf-page.cs", + "log-pdf-form-extraction-timestamps.cs", "modify-checkbox-appearance-extract-value.cs", "parallel-pdf-text-extraction.cs", + "parse-number-fields-to-decimal.cs", "parse-numeric-form-fields-sum.cs", + "pdf-summary-report-text-image-count.cs", "pdf-summary-report-text-images-graphics.cs", "read-acroform-fields-from-pdf-stream.cs", "read-checkbox-value-to-boolean.cs", "retrieve-acroform-fields-from-pdf.cs", "retrieve-form-field-types.cs", "retrieve-pdf-form-field-by-name.cs", + "retrieve-pdf-form-field-types.cs", + "retrieve-pdf-form-field-value.cs", + "serialize-pdf-form-data-to-json-bytes.cs", "validate-pdf-fonts-against-system.cs" ], "required_namespaces": [ @@ -34864,9 +42377,9 @@ "Aspose.Pdf.Forms", "Aspose.Pdf.Text", "Aspose.Pdf.Vector", + "Aspose.Pdf.Drawing", "Aspose.Pdf.Annotations", - "Aspose.Pdf.Devices", - "Aspose.Pdf.Drawing" + "Aspose.Pdf.Devices" ], "key_apis": [ "SvgExtractor", @@ -34874,17 +42387,16 @@ "TextAbsorber", "GraphicsAbsorber", "PngDevice", - "TableAbsorber", - "ApsSaveOptions", + "TextFragmentAbsorber", "ParagraphAbsorber", "SvgSaveOptions", - "TextFragmentAbsorber" + "TableAbsorber" ], "examples": [ { "filename": "batch-extract-vector-graphics-to-svg.cs", "title": "Batch Extract Vector Graphics from PDFs to SVG", - "description": "Shows how to iterate through PDF files in a folder, detect pages containing vector graphics, and save each page's graphics as separate SVG files using Aspose.Pdf.", + "description": "Shows how to iterate over PDF files in a folder, detect pages containing vector graphics, and save those graphics as SVG files using Aspose.Pdf.", "tags": [ "pdf", "vector-graphics", @@ -34899,12 +42411,12 @@ "Aspose.Pdf.Page.TrySaveVectorGraphics", "Aspose.Pdf.Document.Pages" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "combine-pdf-form-data-to-json.cs", - "title": "Combine Form Data from Multiple PDFs into a JSON Array", - "description": "Demonstrates loading several PDF files, exporting each form's fields to JSON, and merging them into a single JSON array for batch processing.", + "filename": "combine-pdf-form-data-into-json-array.cs", + "title": "Combine PDF Form Data into a Single JSON Array", + "description": "Demonstrates loading multiple PDF files, exporting each form's fields to JSON using Aspose.Pdf, and merging the results into a single JSON array for batch processing.", "tags": [ "pdf", "form", @@ -34915,132 +42427,143 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Form.ExportToJson", - "Aspose.Pdf.Document..ctor", - "Aspose.Pdf.Document.Dispose" + "Aspose.Pdf.Forms.Form.ExportToJson" ], "difficulty": "intermediate" }, { - "filename": "combine-pdf-vector-graphics-to-svg.cs", - "title": "Combine PDF Vector Graphics into a Single SVG", - "description": "Loads a PDF, extracts vector graphics from each page using Aspose.Pdf, and merges the graphics into a multi‑page SVG document.", + "filename": "combine-pdf-form-data-to-json.cs", + "title": "Combine Pdf Form Data To Json", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "combine-pdf-page-vector-graphics-into-svg.cs", + "title": "Combine PDF Page Vector Graphics into a Single SVG", + "description": "Loads a PDF, extracts vector graphics from each page using Aspose.Pdf's SvgExtractor, and merges them into a single multi‑page SVG document.", "tags": [ "pdf", "svg", - "vector-graphics", + "vector", "extraction", - "aspose-pdf" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Page.HasVectorGraphics", - "Aspose.Pdf.Page.TrySaveVectorGraphics", + "Aspose.Pdf.Vector.SvgExtractor", + "Aspose.Pdf.Vector.SvgExtractor.Extract", "Aspose.Pdf.Document.Pages" ], "difficulty": "intermediate" }, + { + "filename": "combine-pdf-vector-graphics-to-svg.cs", + "title": "Combine Pdf Vector Graphics To Svg", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "combine-pdf-vector-graphics-to-svg__v2.cs", + "title": "Combine Pdf Vector Graphics To Svg__V2", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "combine-pdf-vectors-to-svg.cs", "title": "Combine Vector Graphics from Multiple PDFs into a Single SVG", - "description": "Shows how to extract vector graphics from each page of several PDF documents using Aspose.Pdf's SvgExtractor and merge the fragments into one combined multi‑page SVG file.", + "description": "The example loads several PDF files, extracts vector graphics from each page using Aspose.Pdf's SvgExtractor, and merges the resulting SVG fragments into one multi‑page SVG document.", "tags": [ "pdf", "svg", "vector-graphics", - "aspose", - "merge" + "extraction", + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Page.HasVectorGraphics", - "Aspose.Pdf.Vector.SvgExtractor", - "Aspose.Pdf.Vector.SvgExtractor.Extract" + "Aspose.Pdf.SvgExtractor", + "Aspose.Pdf.SvgExtractor.Extract" ], "difficulty": "intermediate" }, { "filename": "count-acroform-fields-in-pdf.cs", "title": "Count AcroForm Fields in PDF", - "description": "Shows how to load a PDF with Aspose.Pdf and retrieve the total number of AcroForm fields using the Document.Form.Count property.", + "description": "Loads a PDF with Aspose.Pdf and retrieves the total number of AcroForm fields using Document.Form.Count.", "tags": [ - "pdf", "acroform", "field-count", - "aspose.pdf", - "csharp" + "pdf", + "aspose-pdf", + "document" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Form", - "Aspose.Pdf.Document..ctor(string)", - "Aspose.Pdf.Form.Count" + "Aspose.Pdf.Form" ], "difficulty": "beginner" }, { - "filename": "enumerate-pdf-form-fields-on-page.cs", - "title": "Enumerate PDF Form Fields on a Page", - "description": "Demonstrates opening a PDF with Aspose.Pdf, selecting a specific page, retrieving its form fields in tab order, and logging each field's name, type, and value.", + "filename": "count-form-fields-on-each-pdf-page.cs", + "title": "Count Form Fields on Each PDF Page", + "description": "Demonstrates opening a PDF with Aspose.Pdf, verifying the presence of an AcroForm, iterating through pages, and logging the number of form fields (WidgetAnnotations) found on each page.", "tags": [ "pdf", "form-fields", "aspose", - "csharp", - "enumeration" + "page-iteration", + "logging" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Form", "Aspose.Pdf.Page", - "Aspose.Pdf.Page.FieldsInTabOrder", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Document.Pages.Count" + "Aspose.Pdf.Annotations.WidgetAnnotation", + "Aspose.Pdf.Page.Annotations" ], "difficulty": "beginner" }, { - "filename": "export-acroform-fields-to-xfdf.cs", - "title": "Export PDF AcroForm Fields to XFDF", - "description": "Loads a PDF document, creates a FileStream, and exports the AcroForm fields (as annotations) to an XFDF file using Aspose.Pdf.", - "tags": [ - "xfdf", - "acroform", - "export", - "pdf", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.ExportAnnotationsToXfdf" - ], - "difficulty": "beginner" + "filename": "enumerate-pdf-form-fields-on-page.cs", + "title": "Enumerate Pdf Form Fields On Page", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "export-filtered-pdf-form-fields-to-json.cs", - "title": "Export Filtered PDF Form Fields to JSON", - "description": "Loads a PDF, selects form fields whose names start with a given prefix, and writes their values to a JSON array file.", + "filename": "enumerate-pdf-form-fields.cs", + "title": "Enumerate PDF Form Fields on a Page", + "description": "Loads a PDF, accesses a specific page, and lists each form field on that page with its name, type, and current value.", "tags": [ "pdf", "form-fields", - "json", - "filter", - "export" + "aspose-pdf", + "csharp", + "enumeration" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Form", + "Aspose.Pdf.Page", "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.Field.ExportValueToJson" + "Aspose.Pdf.Page.FieldsInTabOrder", + "Aspose.Pdf.Document.Pages" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "export-pdf-acroform-fields-to-json.cs", - "title": "Export PDF AcroForm Fields to JSON", - "description": "Loads a PDF document, extracts all AcroForm field names and values, and writes them to a JSON file using Aspose.Pdf.", + "filename": "export-acroform-fields-to-json.cs", + "title": "Export AcroForm Fields to JSON", + "description": "Shows how to load a PDF containing AcroForm fields and export the field names and values directly to a JSON file using Aspose.Pdf.", "tags": [ "pdf", "acroform", @@ -35050,21 +42573,21 @@ ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Form", - "Aspose.Pdf.Form.ExportToJson" + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Form.ExportToJson" ], "difficulty": "beginner" }, { - "filename": "export-pdf-annotations-to-xfdf.cs", - "title": "Export PDF Annotations to XFDF File", - "description": "Loads a PDF document and uses Aspose.Pdf's Document.ExportAnnotationsToXfdf method to write annotations and form fields to an XFDF file via a FileStream, which is then closed automatically.", + "filename": "export-acroform-to-xfdf.cs", + "title": "Export AcroForm Fields to XFDF", + "description": "Shows how to load a PDF with Aspose.Pdf, create a FileStream, and export the document's AcroForm fields (annotations) to an XFDF file.", "tags": [ "pdf", "xfdf", + "acroform", "export", - "annotations", - "aspose-pdf" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", @@ -35073,14 +42596,30 @@ "difficulty": "beginner" }, { - "filename": "export-pdf-annotations-to-xfdf__v2.cs", - "title": "Export PDF Annotations to XFDF", - "description": "Demonstrates loading a PDF with Aspose.Pdf, exporting its annotations and form field data to an XFDF file via a FileStream, and handling resources with using blocks.", + "filename": "export-filtered-pdf-form-fields-to-json.cs", + "title": "Export Filtered Pdf Form Fields To Json", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "export-pdf-acroform-fields-to-json.cs", + "title": "Export Pdf Acroform Fields To Json", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "export-pdf-annotations-to-xfdf.cs", + "title": "Export PDF Annotations to XFDF using FileStream", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, export all its annotations to an XFDF file via a FileStream, and properly close the stream.", "tags": [ "xfdf", "annotations", "export", - "aspdf", + "aspose-pdf", "filestream" ], "apis_used": [ @@ -35090,27 +42629,44 @@ "difficulty": "beginner" }, { - "filename": "export-pdf-form-data-to-json-bytes.cs", - "title": "Export PDF Form Data to JSON Bytes", - "description": "Loads a PDF document, extracts all form fields, serializes them to JSON, and returns the JSON as a byte array via a MemoryStream for API consumption.", + "filename": "export-pdf-annotations-to-xfdf__v2.cs", + "title": "Export Pdf Annotations To Xfdf__V2", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "export-pdf-form-data-to-fdf.cs", + "title": "Export PDF Form Data to FDF Using Aspose.Pdf", + "description": "Loads a PDF document, binds it to the Aspose.Pdf.Facades.Form facade, and exports the form fields to an FDF file via a FileStream.", "tags": [ "pdf", + "fdf", "form", - "json", "export", - "memorystream" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Form.ExportToJson" + "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.Form.BindPdf", + "Aspose.Pdf.Facades.Form.ExportFdf" ], - "difficulty": "beginner" + "difficulty": "intermediate" + }, + { + "filename": "export-pdf-form-data-to-json-bytes.cs", + "title": "Export Pdf Form Data To Json Bytes", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "export-pdf-form-data-to-json.cs", "title": "Export PDF Form Data to JSON", - "description": "Loads a PDF document, extracts all form fields, and writes them as a UTF‑8 encoded JSON file on disk.", + "description": "Shows how to load a PDF document with Aspose.Pdf, export all form fields to a JSON string using the Form.ExportToJson method, and output the result.", "tags": [ "pdf", "form", @@ -35121,38 +42677,41 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Form.ExportToJson" + "Aspose.Pdf.Forms.Form.ExportToJson", + "Aspose.Pdf.Forms", + "Aspose.Pdf" ], "difficulty": "beginner" }, { "filename": "export-pdf-form-data-to-json__v2.cs", - "title": "Export PDF Form Data to JSON Files", - "description": "Iterates through PDF files in a folder, loads each with Aspose.Pdf, and exports its form fields to a separate JSON file.", + "title": "Export PDF Form Data to JSON File", + "description": "Demonstrates loading a PDF with Aspose.Pdf, extracting all form fields, and saving them as a UTF‑8 encoded JSON file on disk.", "tags": [ "pdf", "form", "json", "export", - "batch" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Form.ExportToJson" + "Aspose.Pdf.Form", + "Aspose.Pdf.Form.ExportToJson", + "Aspose.Pdf.Document.Form" ], "difficulty": "beginner" }, { "filename": "export-pdf-form-data-to-json__v3.cs", - "title": "Export PDF Form Data to JSON", - "description": "Shows how to build a simple command‑line tool that loads a PDF with Aspose.Pdf and exports its interactive form fields to a JSON file.", + "title": "Export PDF Form Data to JSON Files", + "description": "Iterates through PDF files in a folder, loads each with Aspose.Pdf, and exports the document's form fields to a separate JSON file.", "tags": [ "pdf", "form", "export", "json", - "command-line" + "batch" ], "apis_used": [ "Aspose.Pdf.Document", @@ -35163,259 +42722,311 @@ }, { "filename": "export-pdf-form-data-to-json__v4.cs", - "title": "Export PDF Form Data to JSON Stream", - "description": "Demonstrates loading a PDF, accessing its form, and exporting all form field values directly to a JSON file using a FileStream.", + "title": "Export PDF Form Data to JSON", + "description": "Shows how to load a PDF with Aspose.Pdf and export its interactive form fields to a JSON file using a simple command‑line utility.", "tags": [ "pdf", "form", - "json", "export", - "aspose-pdf" + "json", + "command-line" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Form.ExportToJson", "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Form", + "Aspose.Pdf.Form.ExportToJson", "Aspose.Pdf.Document.Dispose" ], "difficulty": "beginner" }, { - "filename": "export-pdf-form-data-to-xfdf.cs", - "title": "Export PDF Form Data to XFDF using Aspose.Pdf", - "description": "The example loads a PDF document with Aspose.Pdf and exports its form field data (as annotations) to an XFDF file by writing directly to a FileStream.", + "filename": "export-pdf-form-data-to-json__v5.cs", + "title": "Export PDF Form Data to JSON via Stream", + "description": "Shows how to load a PDF document and export its form fields directly to a JSON file using a FileStream with Aspose.Pdf's ExportToJson method.", "tags": [ "pdf", "form", - "xfdf", + "json", "export", - "aspose-pdf" + "stream" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.ExportAnnotationsToXfdf" + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Form.ExportToJson" ], "difficulty": "beginner" }, + { + "filename": "export-pdf-form-data-to-xfdf.cs", + "title": "Export Pdf Form Data To Xfdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "export-pdf-form-data-to-xml-xfdf.cs", - "title": "Export PDF Form Data to XML (XFDF) Using MemoryStream", - "description": "Demonstrates how to export form field data from a PDF document to an XML (XFDF) representation directly into a MemoryStream using Aspose.Pdf.", + "title": "Export Pdf Form Data To Xml Xfdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "export-pdf-form-data-to-xml.cs", + "title": "Export PDF Form Data to XML Using MemoryStream", + "description": "Loads a PDF, verifies the presence of form fields, and writes the form data as XML directly into a MemoryStream, then reads the XML for demonstration.", "tags": [ "pdf", "form", - "xfdf", + "xml", + "memorystream", + "export" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Form.Fields", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.CheckboxField" + ], + "difficulty": "intermediate" + }, + { + "filename": "export-pdf-form-fields-to-json.cs", + "title": "Export Pdf Form Fields To Json", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "export-pdf-form-fields-to-xml.cs", + "title": "Export PDF Form Fields to XML", + "description": "Loads a PDF document and saves its complete model, including form field definitions and values, to an XML file using Aspose.Pdf.", + "tags": [ + "pdf", + "form-fields", + "xml", "export", - "memorystream" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.ExportAnnotationsToXfdf" + "Aspose.Pdf.Document.SaveXml" ], "difficulty": "beginner" }, { - "filename": "export-pdf-form-fields-to-json.cs", - "title": "Export PDF Form Fields to JSON", - "description": "Shows how to load a PDF document, export all its form fields to a JSON string using Aspose.Pdf's ExportToJson method, and output the JSON.", + "filename": "export-pdf-form-fields-with-prefix-to-json.cs", + "title": "Export PDF Form Fields with Specific Prefix to JSON", + "description": "Loads a PDF, filters its form fields to only those whose names start with a given prefix, and writes the selected field names and values to a formatted JSON file.", "tags": [ "pdf", - "form", + "form-fields", + "filter", "json", - "export", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form.ExportToJson", - "Aspose.Pdf.Forms.ExportFieldsToJsonOptions" + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Document.Form.Fields", + "Aspose.Pdf.Forms.Field.Name", + "Aspose.Pdf.Forms.Field.Value" ], "difficulty": "beginner" }, { - "filename": "export-pdf-form-fields-to-xml.cs", - "title": "Export PDF Form Fields to XML", - "description": "Shows how to load a PDF with Aspose.Pdf, iterate its form fields, extract each field's value, and write the data to an XML file.", + "filename": "export-pdf-form-to-fdf.cs", + "title": "Export PDF Form Data to FDF", + "description": "Shows how to extract form field values from a PDF document and write them to an FDF file using Aspose.Pdf's Form facade.", "tags": [ "pdf", "form", - "xml", + "fdf", "export", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.CheckboxField", - "Aspose.Pdf.Forms.RadioButtonOptionField", - "Aspose.Pdf.Forms.ListBoxField", - "Aspose.Pdf.Forms.ComboBoxField", - "Aspose.Pdf.Forms.SignatureField" + "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.Form.BindPdf", + "Aspose.Pdf.Facades.Form.ExportFdf" ], "difficulty": "intermediate" }, { "filename": "export-pdf-page-as-png.cs", "title": "Export PDF Page as PNG Image", - "description": "Shows how to rasterize a PDF page, including all vector elements, into a PNG file at a specified DPI using Aspose.Pdf.", + "description": "Loads a PDF document, creates a resolution and PNG device, and rasterizes the first page to a PNG file at a specified DPI.", "tags": [ "pdf", - "png", "rasterization", + "png", "resolution", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.Resolution", "Aspose.Pdf.Devices.PngDevice", + "Aspose.Pdf.Page", "Aspose.Pdf.Devices.PngDevice.Process" ], "difficulty": "beginner" }, { - "filename": "export-pdf-pages-vector-graphics-to-svg.cs", - "title": "Export PDF Pages Vector Graphics to SVG Preserving Coordinate System", - "description": "Shows how to load a PDF with Aspose.Pdf, iterate through its pages, and save each page's vector graphics as an SVG file while keeping the original PDF coordinate system.", + "filename": "export-pdf-pages-to-svg-preserving-coordinate-system.cs", + "title": "Export PDF Pages to SVG Preserving Coordinate System", + "description": "Loads a PDF, iterates through each page, and saves any vector graphics as SVG files while keeping the original PDF coordinate system.", "tags": [ "pdf", "svg", "vector-graphics", - "aspose-pdf", + "export", "coordinate-system" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Page.TrySaveVectorGraphics", + "Aspose.Pdf.Document.Pages", "Aspose.Pdf.PageCollection" ], "difficulty": "beginner" }, + { + "filename": "export-pdf-pages-vector-graphics-to-svg.cs", + "title": "Export Pdf Pages Vector Graphics To Svg", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "export-pdf-subpaths-to-separate-svgs.cs", - "title": "Export PDF Subpaths as Separate SVG Images", - "description": "Shows how to extract each subpath of graphic elements from a PDF page and save them as individual SVG files with transparent backgrounds using Aspose.Pdf.", - "tags": [ - "pdf", - "svg", - "subpath", - "extraction", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Vector.SvgExtractionOptions", - "Aspose.Pdf.Vector.SvgExtractor", - "Aspose.Pdf.Vector.SvgExtractor.Extract" - ], - "difficulty": "intermediate" + "title": "Export Pdf Subpaths To Separate Svgs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "export-pdf-tables-to-csv-with-border-markers.cs", + "title": "Export Pdf Tables To Csv With Border Markers", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "export-pdf-tables-to-csv-with-borders.cs", "title": "Export PDF Tables to CSV with Visual Border Markers", - "description": "Loads a PDF, extracts tables using TableAbsorber, and writes them to a CSV file where each cell is wrapped with '|' delimiters and a horizontal separator line is added to preserve visual table borders.", + "description": "Demonstrates how to extract tables from a PDF using Aspose.Pdf's TableAbsorber and write them to a CSV file while preserving cell borders with delimiter markers.", "tags": [ "pdf", - "table", "csv", - "border", - "aspose-pdf" + "table", + "aspose", + "border" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.TableAbsorber", - "Aspose.Pdf.TableAbsorber.Visit", - "Aspose.Pdf.TableAbsorber.TableList", - "Aspose.Pdf.Table.RowList", - "Aspose.Pdf.TableCell.TextFragments" + "Aspose.Pdf.TableAbsorber.Table", + "Aspose.Pdf.TableAbsorber.Row", + "Aspose.Pdf.TableAbsorber.Cell" ], "difficulty": "intermediate" }, { - "filename": "export-pdf-to-pdf-html-xml-with-stream-disposal.cs", - "title": "Export PDF to PDF, HTML, and XML with Proper Stream Disposal", - "description": "Demonstrates how to export a PDF document to a copy PDF, HTML, and XML using Aspose.Pdf while correctly closing each FileStream to free system resources.", + "filename": "export-pdf-to-html-png-xfdf.cs", + "title": "Export PDF to HTML, PNG, and XFDF with Proper Stream Disposal", + "description": "Demonstrates how to export a PDF document to HTML, a PNG image of the first page, and XFDF annotations while correctly closing each FileStream using using blocks.", "tags": [ "pdf", "export", - "aspose.pdf", - "filestream", - "html" + "html", + "png", + "xfdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", "Aspose.Pdf.HtmlSaveOptions", - "Aspose.Pdf.SaveFormat", - "Aspose.Pdf.HtmlSaveOptions.PartsEmbeddingMode", - "Aspose.Pdf.HtmlSaveOptions.RasterImagesSavingMode" + "Aspose.Pdf.Devices.PngDevice", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.ExportAnnotationsToXfdf" ], "difficulty": "intermediate" }, + { + "filename": "export-pdf-to-pdf-html-xml-with-stream-disposal.cs", + "title": "Export Pdf To Pdf Html Xml With Stream Disposal", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "export-pdf-to-svg-with-custom-options.cs", "title": "Export PDF to SVG with Custom Rendering Options", - "description": "Shows how to convert a PDF document to SVG using Aspose.Pdf with custom DPI scaling, multithreading, and caching, and how to extract individual vector graphics from a page with extraction settings.", + "description": "Shows how to save a PDF as a single SVG file and extract per‑page vector graphics while applying custom DPI‑like scaling, glyph caching, stroke width, and grouping options.", "tags": [ "svg", - "pdf", - "conversion", + "export", "custom-options", - "vector-extraction" + "vector-graphics", + "aspdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.SvgSaveOptions", - "Aspose.Pdf.Vector.SvgExtractionOptions", - "Aspose.Pdf.Vector.SvgExtractor", + "Aspose.Pdf.SvgExtractionOptions", + "Aspose.Pdf.SvgExtractor", "Aspose.Pdf.Page" ], "difficulty": "intermediate" }, { - "filename": "extract-checkbox-states-to-json.cs", - "title": "Extract Checkbox States from PDF AcroForm to JSON", - "description": "Loads a PDF, iterates through its AcroForm fields, collects the checked state of each checkbox, and writes the boolean list to a JSON file.", + "filename": "extract-checkbox-states-from-pdf.cs", + "title": "Extract Checkbox States from PDF AcroForm", + "description": "Shows how to read checkbox fields from a PDF's AcroForm using Aspose.Pdf and write their checked states to a JSON file as a list of booleans.", "tags": [ "pdf", "checkbox", "acroform", "json", - "aspose-pdf" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.CheckboxField" + "Aspose.Pdf.Forms.CheckboxField", + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Document.Form.Fields" ], "difficulty": "beginner" }, + { + "filename": "extract-checkbox-states-to-json.cs", + "title": "Extract Checkbox States To Json", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "extract-filter-graphics-by-area.cs", - "title": "Extract and Filter PDF Graphics by Area to SVG", - "description": "Demonstrates how to use Aspose.Pdf to collect graphic elements from each PDF page, filter them by bounding‑box area, and export the qualifying graphics as an SVG file.", - "tags": [ - "pdf", - "graphics", - "svg", - "filter", - "extraction" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Vector.GraphicsAbsorber", - "Aspose.Pdf.Vector.SvgExtractor", - "Aspose.Pdf.Vector.GraphicElement", - "Aspose.Pdf.Vector.SvgExtractor.Extract" - ], - "difficulty": "intermediate" + "title": "Extract Filter Graphics By Area", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "extract-first-page-text-to-utf8-file.cs", @@ -35424,8 +43035,8 @@ "tags": [ "pdf", "text-extraction", + "aspose", "utf-8", - "aspose-pdf", "csharp" ], "apis_used": [ @@ -35440,171 +43051,258 @@ { "filename": "extract-fonts-from-pdf-ttf.cs", "title": "Extract Fonts from PDF and Save as TTF Files", - "description": "Shows how to load a PDF with Aspose.Pdf, retrieve all embedded fonts, and export each font to a .ttf file in a designated folder.", + "description": "Loads a PDF document, retrieves all embedded fonts, and exports each font to a .ttf file in a designated output folder.", "tags": [ "pdf", - "font", - "extraction", + "font-extraction", "ttf", - "aspose-pdf" + "aspose.pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.IDocumentFontUtilities", - "Aspose.Pdf.Document.FontUtilities.GetAllFonts", - "Aspose.Pdf.Text.Font", - "Aspose.Pdf.Text.Font.Save" + "Aspose.Pdf.Document.FontUtilities", + "Aspose.Pdf.FontUtilities.GetAllFonts", + "Aspose.Pdf.Font", + "Aspose.Pdf.Font.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" + }, + { + "filename": "extract-graphic-element-as-svg.cs", + "title": "Extract Graphic Element as SVG from PDF", + "description": "Loads a PDF, extracts vector graphic elements on a page as SVG strings, selects one by index, and saves it to an SVG file.", + "tags": [ + "pdf", + "svg", + "vector", + "extraction", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Vector.SvgExtractor", + "Aspose.Pdf.Vector.SvgExtractor.Extract" + ], + "difficulty": "beginner" }, { "filename": "extract-graphics-from-specific-pdf-pages.cs", - "title": "Extract Graphics from Specific PDF Pages", - "description": "Demonstrates how to use Aspose.Pdf's GraphicsAbsorber to collect graphic elements from selected pages and export each element as an individual SVG file.", + "title": "Extract Graphics from Specific PDF Pages to SVG", + "description": "Shows how to use GraphicsAbsorber together with SvgExtractor to collect vector graphics from selected PDF pages and save them as SVG files.", "tags": [ "pdf", "graphics", + "svg", "extraction", - "aspose", - "svg" + "pages" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Vector.GraphicsAbsorber", - "Aspose.Pdf.Vector.GraphicElement", - "Aspose.Pdf.Vector.SvgExtractor", - "GraphicsAbsorber.Visit", - "SvgExtractor.Extract" + "Aspose.Pdf.Drawing.SvgExtractor", + "Aspose.Pdf.Vector.GraphicElement" ], "difficulty": "intermediate" }, { "filename": "extract-images-from-pdf.cs", "title": "Extract Images from PDF and Save as PNG", - "description": "Loads a PDF with Aspose.Pdf, iterates through each page's image resources, and saves each image as a PNG file in a specified output folder.", + "description": "Loads a PDF, iterates through each page's image resources, and saves every embedded image as a PNG file in a specified output folder.", "tags": [ "pdf", "image-extraction", - "aspose", - "csharp", - "png" + "aspose-pdf", + "png", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.Drawing.Image", "Aspose.Pdf.XImage", - "Aspose.Pdf.Page.Resources", - "Aspose.Pdf.XImage.Save" + "Aspose.Pdf.Page.Resources.Images" + ], + "difficulty": "intermediate" + }, + { + "filename": "extract-images-using-graphicsabsorber.cs", + "title": "Extract Images from PDF Using GraphicsAbsorber", + "description": "Shows how to employ GraphicsAbsorber to locate only image objects on each PDF page and export them as JPEG files, while ignoring other graphic elements.", + "tags": [ + "pdf", + "image-extraction", + "graphicsabsorber", + "jpeg", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Vector.GraphicsAbsorber", + "Aspose.Pdf.Vector.SvgExtractor", + "Aspose.Pdf.XImage" ], "difficulty": "intermediate" }, { "filename": "extract-paragraphs-from-pdf.cs", - "title": "Extract Paragraphs from PDF Preserving Line Breaks", - "description": "Shows how to use Aspose.Pdf to absorb paragraph structures from each page of a PDF and save the extracted text, with original line breaks, to a .txt file.", + "title": "Extract Paragraphs From Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-paragraphs-with-line-breaks.cs", + "title": "Extract Paragraphs with Line Breaks from PDF", + "description": "Demonstrates how to use Aspose.Pdf to absorb paragraph structures from a PDF, preserve line breaks, and save the extracted text to a UTF‑8 .txt file.", "tags": [ "pdf", "paragraph", "text-extraction", - "aspose", - "csharp" + "line-breaks", + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Text.ParagraphAbsorber", "Aspose.Pdf.Text.PageMarkup", "Aspose.Pdf.Text.MarkupSection", - "Aspose.Pdf.Text.MarkupParagraph" + "Aspose.Pdf.Text.MarkupParagraph", + "Aspose.Pdf.Text.TextFragment" ], "difficulty": "intermediate" }, { - "filename": "extract-pdf-form-fields.cs", - "title": "Extract PDF Form Field Names and Values", - "description": "Shows how to load a PDF with Aspose.Pdf and read all form field names and their current values into a dictionary.", + "filename": "extract-pdf-font-table-form-field-statistics.cs", + "title": "Extract PDF Font, Table, and Form Field Statistics", + "description": "Demonstrates how to open PDF files with Aspose.Pdf and count distinct fonts, tables, and AcroForm fields in each document.", "tags": [ "pdf", - "form", - "fields", - "aspose", - "dictionary" + "fonts", + "tables", + "form-fields", + "statistics" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.Field.FullName", - "Aspose.Pdf.Forms.Field.Value" + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.FontInfo", + "Aspose.Pdf.Table", + "Aspose.Pdf.Form" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "extract-pdf-form-xobject-text-with-logging.cs", - "title": "Extract Text from PDF Form XObjects with Timestamp Logging", - "description": "Loads a PDF, iterates through each page's form XObjects, extracts their text using Aspose.Pdf's TextAbsorber, and logs start/end timestamps and duration of the extraction run.", + "filename": "extract-pdf-form-field-values.cs", + "title": "Extract PDF Form Field Values to a Dictionary", + "description": "Shows how to load a PDF using Aspose.Pdf, iterate over its form fields, and return a case‑insensitive dictionary of each field's full name and string value.", "tags": [ "pdf", "form", - "text-extraction", - "logging", - "aspose" + "aspose", + "dictionary", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.XForm", - "Aspose.Pdf.Text.TextAbsorber", - "Aspose.Pdf.Text.TextAbsorber.Visit", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Document.Form.Fields" ], - "difficulty": "intermediate" + "difficulty": "beginner" + }, + { + "filename": "extract-pdf-form-fields.cs", + "title": "Extract Pdf Form Fields", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-pdf-form-xobject-text-with-logging.cs", + "title": "Extract Pdf Form Xobject Text With Logging", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "extract-pdf-metadata-and-save-aps.cs", - "title": "Extract PDF Metadata and Export Vector Data (APS)", - "description": "The example loads a PDF with Aspose.Pdf, reads standard metadata such as Author and Title, and then saves the document's vector graphics to an APS file for documentation purposes.", + "title": "Extract Pdf Metadata And Save Aps", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-pdf-metadata-and-save-svg.cs", + "title": "Extract PDF Metadata and Save as SVG", + "description": "Demonstrates how to read basic PDF metadata (author, title, etc.) using Aspose.Pdf and export the document's vector content to an SVG file for documentation purposes.", "tags": [ - "pdf-metadata", - "aps-export", - "vector-data", + "metadata", + "svg", "aspose-pdf", - "csharp" + "extraction", + "document" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.DocumentInfo", - "Aspose.Pdf.ApsSaveOptions", + "Aspose.Pdf.SvgSaveOptions", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.ApsSaveOptions.ExtractOcrSublayerOnly" + "Aspose.Pdf.DocumentInfo.CreationDate" ], "difficulty": "beginner" }, { "filename": "extract-pdf-paragraphs-to-markdown.cs", "title": "Extract PDF Paragraphs to Markdown Preserving Indentation", - "description": "Demonstrates loading a PDF with Aspose.Pdf, using ParagraphAbsorber to extract paragraphs while keeping leading spaces, and writing the extracted text to a markdown file.", + "description": "Shows how to load a PDF with Aspose.Pdf, use ParagraphAbsorber to capture paragraph structures, and write each paragraph to a markdown file while keeping the original leading spaces.", "tags": [ "pdf", - "paragraph-extraction", "markdown", - "indentation", - "aspose-pdf" + "paragraph", + "extraction", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Text.ParagraphAbsorber", - "Aspose.Pdf.Text.ParagraphAbsorber.Visit", - "Aspose.Pdf.Text.PageMarkup", - "Aspose.Pdf.Text.MarkupParagraph", - "Aspose.Pdf.Text.MarkupParagraph.Text" + "Aspose.Pdf.ParagraphAbsorber", + "Aspose.Pdf.ParagraphAbsorber.Visit", + "Aspose.Pdf.PageMarkup", + "Aspose.Pdf.MarkupParagraph" ], "difficulty": "intermediate" }, + { + "filename": "extract-pdf-stamp-texts-to-json.cs", + "title": "Extract Stamp Texts from PDF to JSON", + "description": "Loads a PDF, iterates through its pages to find stamp annotations, extracts the visible text from each stamp, and writes the collected strings to a JSON file.", + "tags": [ + "pdf", + "stamp", + "annotation", + "json", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.StampAnnotation", + "Aspose.Pdf.Annotations.AnnotationCollection" + ], + "difficulty": "beginner" + }, { "filename": "extract-pdf-tables-to-csv.cs", - "title": "Extract PDF Tables to Separate CSV Files", - "description": "Demonstrates how to locate tables in a PDF using Aspose.Pdf, extract their contents, and write each table to an individual CSV file with proper escaping.", + "title": "Extract PDF Tables and Export to CSV", + "description": "Demonstrates how to locate tables in a PDF using Aspose.Pdf, read each cell's text, and write each table to a separate CSV file with proper escaping.", "tags": [ "pdf", "table", @@ -35624,7 +43322,7 @@ { "filename": "extract-selected-radio-button-labels.cs", "title": "Extract Selected Radio Button Labels from PDF Form", - "description": "Loads a PDF, iterates over its form fields, and retrieves the display label of the selected option for each radio button field.", + "description": "Loads a PDF document, iterates over its form fields, and prints the visible label of the selected option for each radio button field.", "tags": [ "pdf", "form", @@ -35636,77 +43334,80 @@ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.Field", "Aspose.Pdf.Forms.RadioButtonField", - "Aspose.Pdf.Forms.RadioButtonField.Selected", "Aspose.Pdf.Forms.RadioButtonField.Options", - "Aspose.Pdf.Forms.Option.Value" + "Aspose.Pdf.Forms.RadioButtonField.Selected", + "Aspose.Pdf.Forms.Option" ], "difficulty": "beginner" }, { "filename": "extract-single-graphic-element-as-svg.cs", - "title": "Extract Single Graphic Element as SVG", - "description": "Loads a PDF, extracts vector graphics from a specified page using Aspose.Pdf.Vector.SvgExtractor, selects an element by its index, and saves the SVG content to a file.", - "tags": [ - "pdf", - "svg", - "vector-graphics", - "extraction", - "aspose" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Vector.SvgExtractor", - "Aspose.Pdf.Vector.SvgExtractor.Extract", - "Aspose.Pdf.Document.Pages" - ], - "difficulty": "intermediate" + "title": "Extract Single Graphic Element As Svg", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "extract-stamp-annotation-text.cs", - "title": "Extract Stamp Annotation Text from PDF", - "description": "Loads a PDF, iterates through all pages and their annotations, collects the visible text of stamp annotations, and writes the results to a JSON array.", + "title": "Extract Stamp Annotation Text", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-subpaths-as-png-images.cs", + "title": "Extract Subpaths As Png Images", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-subpaths-as-separate-svg.cs", + "title": "Extract Subpaths as Separate SVG Images", + "description": "Demonstrates loading a PDF, configuring SvgExtractionOptions to export each graphic subpath as an individual SVG file with a transparent background, and saving the results per page.", "tags": [ - "pdf", - "stamp", - "annotation", + "svg", + "subpath", "extraction", - "json" + "pdf", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.StampAnnotation", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Page.Annotations" + "Aspose.Pdf.SvgExtractionOptions", + "Aspose.Pdf.SvgExtractor", + "Aspose.Pdf.SvgExtractor.Extract" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "extract-subpaths-as-png-images.cs", - "title": "Extract Subpaths as PNG Images Using GraphicsAbsorber", - "description": "Shows how to capture each graphic SubPath on PDF pages with GraphicsAbsorber, place it on a temporary page, and render it to an individual PNG file.", + "filename": "extract-subpaths-pdf-png.cs", + "title": "Extract Subpaths from PDF Pages as PNG Images", + "description": "Shows how to use GraphicsAbsorber to capture each SubPath graphic element on PDF pages and export each one as an individual PNG file.", "tags": [ "graphicsabsorber", "subpath", "png", - "pdf-extraction", - "aspose-pdf" + "pdf", + "extraction" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Vector.GraphicsAbsorber", - "Aspose.Pdf.Vector.SubPath", - "Aspose.Pdf.Devices.PngDevice" + "Aspose.Pdf.Vector.SubPath.AddOnPage", + "Aspose.Pdf.Page.ConvertToPNGMemoryStream" ], "difficulty": "intermediate" }, { "filename": "extract-superscript-subscript-from-pdf.cs", - "title": "Extract Superscript and Subscript Text from PDF", - "description": "Demonstrates how to load a PDF with Aspose.Pdf, detect superscript and subscript formatting using TextFragmentAbsorber, and output the extracted text with simple Unicode markers.", + "title": "Extract Superscript and Subscript from PDF with Annotations", + "description": "Demonstrates how to extract text from a PDF, detect superscript and subscript characters using font size and baseline position, and annotate them in a plain‑text output file.", "tags": [ "pdf", "text-extraction", @@ -35717,16 +43418,16 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Text.TextFragmentAbsorber", + "Aspose.Pdf.Text.TextExtractionOptions", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextState", "Aspose.Pdf.PageCollection.Accept" ], "difficulty": "intermediate" }, { - "filename": "extract-superscripts-subscripts-from-pdf.cs", - "title": "Extract Superscripts and Subscripts from PDF", - "description": "Demonstrates how to extract text from a PDF, detect superscript and subscript characters using font size and baseline heuristics, and annotate them in a plain‑text output file.", + "filename": "extract-superscript-subscript-from-pdf__v2.cs", + "title": "Extract Superscript and Subscript Text from PDF", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, extract text while preserving formatting, and prepend Unicode markers for superscript and subscript characters.", "tags": [ "pdf", "text-extraction", @@ -35739,14 +43440,22 @@ "Aspose.Pdf.Text.TextFragmentAbsorber", "Aspose.Pdf.Text.TextExtractionOptions", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextSegment" + "Aspose.Pdf.Text.TextState" ], "difficulty": "intermediate" }, + { + "filename": "extract-superscripts-subscripts-from-pdf.cs", + "title": "Extract Superscripts Subscripts From Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "extract-svg-apply-brand-colors.cs", "title": "Extract SVG Vector Graphics and Apply Brand Color Transformation", - "description": "The example extracts vector graphics from each PDF page as SVG, replaces black fill/stroke colors with a brand red using a regex, and saves the transformed SVG files.", + "description": "The example loads a PDF, extracts each page's vector graphics as SVG, replaces black colors with a brand palette, and saves the transformed SVG files.", "tags": [ "svg", "color-transformation", @@ -35759,14 +43468,14 @@ "Aspose.Pdf.Page", "Aspose.Pdf.Vector.SvgExtractor", "Aspose.Pdf.Vector.SvgExtractor.Extract", - "Aspose.Pdf.Document.Pages" + "Aspose.Pdf.PageCollection" ], "difficulty": "intermediate" }, { "filename": "extract-text-from-pdf-to-txt.cs", "title": "Extract Text from PDF and Save to TXT", - "description": "Shows how to load a PDF with Aspose.Pdf, use TextAbsorber to extract text from all pages, and write the concatenated result to a .txt file.", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, extract all page text using a TextAbsorber, and write the concatenated result to a UTF‑8 .txt file.", "tags": [ "pdf", "text-extraction", @@ -35777,107 +43486,133 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Text.TextAbsorber", - "Aspose.Pdf.PageCollection.Accept" + "Aspose.Pdf.PageCollection.Accept", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Text.TextAbsorber.Text" ], "difficulty": "beginner" }, { "filename": "extract-vector-graphics-from-encrypted-pdf.cs", - "title": "Extract Vector Graphics from Encrypted PDF", - "description": "Shows how to open an encrypted PDF by supplying a password, optionally decrypt it, and export each page's vector graphics as separate SVG files using Aspose.Pdf.", + "title": "Extract Vector Graphics From Encrypted Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-vector-graphics-to-svg.cs", + "title": "Extract Vector Graphics from PDF to Individual SVG Files", + "description": "Shows how to load a PDF with Aspose.Pdf, iterate through its pages, and extract each vector graphic as a separate SVG file using SvgExtractor.", "tags": [ "pdf", - "encryption", - "svg", "vector-graphics", - "extraction" + "svg", + "extraction", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Decrypt()", - "Aspose.Pdf.Document.Save()", - "Aspose.Pdf.SvgSaveOptions", - "Aspose.Pdf.InvalidPasswordException" + "Aspose.Pdf.Page", + "Aspose.Pdf.Vector.SvgExtractionOptions", + "Aspose.Pdf.Vector.SvgExtractor", + "Aspose.Pdf.Vector.SvgExtractor.Extract" ], "difficulty": "intermediate" }, { - "filename": "extract-vector-graphics-from-pdf-page.cs", + "filename": "extract-vector-graphics-to-svg__v2.cs", "title": "Extract Vector Graphics from PDF Page to SVG", - "description": "Demonstrates how to load a PDF, select a specific page, and extract each vector graphic on that page as separate SVG files using Aspose.Pdf.", + "description": "Shows how to load a PDF, verify a page contains vector graphics, and extract each graphic as a separate SVG file using Aspose.Pdf.", "tags": [ "pdf", "vector-graphics", "svg", "extraction", - "aspose-pdf" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Vector.SvgExtractor", - "Aspose.Pdf.PdfException", - "Aspose.Pdf.Document.Pages" + "Aspose.Pdf.Page.HasVectorGraphics", + "Aspose.Pdf.Vector.SvgExtractor.Extract", + "Aspose.Pdf.PdfException" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "extract-vector-graphics-to-svg.cs", - "title": "Extract Vector Graphics from PDF to Individual SVG Files", - "description": "Shows how to load a PDF with Aspose.Pdf, detect pages that contain vector graphics, and export each graphic as a separate SVG file into page‑specific folders.", + "filename": "filter-export-large-graphics-pdf.cs", + "title": "Filter and Export Large Graphics from PDF", + "description": "Demonstrates how to absorb graphic elements from each PDF page, filter them by bounding‑box area, and export the qualifying elements as separate SVG files.", "tags": [ - "pdf", - "vector", + "graphics", + "filter", "svg", - "extraction", - "aspose" + "pdf", + "extraction" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Vector.SvgExtractor", - "Aspose.Pdf.Page.HasVectorGraphics", - "Aspose.Pdf.Vector.SvgExtractor.Extract" + "Aspose.Pdf.Vector.GraphicsAbsorber", + "Aspose.Pdf.Vector.GraphicElement", + "Aspose.Pdf.Drawing.SvgExtractor" ], "difficulty": "intermediate" }, { - "filename": "iterate-pdf-form-fields-set-values.cs", - "title": "Iterate Over PDF Form Fields and Set Values", - "description": "Loads a PDF, loops through each form field using the Document.Form collection, sets sample values based on field type, logs the field information, and saves the updated document.", + "filename": "iterate-modify-pdf-form-fields.cs", + "title": "Iterate and Modify PDF Form Fields", + "description": "Shows how to open a PDF with Aspose.Pdf, loop through each form field, read and update text box values, and save the modified document.", "tags": [ "pdf", - "form", - "fields", + "form-fields", "iteration", - "aspose" + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.Field", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.CheckboxField", - "Aspose.Pdf.Forms.RadioButtonField", + "Aspose.Pdf.Document.Form", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, + { + "filename": "iterate-pdf-form-fields-set-values.cs", + "title": "Iterate Pdf Form Fields Set Values", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "iterate-pdf-pages-list-form-fields.cs", - "title": "Iterate PDF Pages to List Form Fields", - "description": "Shows how to load a PDF with Aspose.Pdf, loop through each page, retrieve the form fields on that page, and print their hierarchical names.", + "title": "Iterate Pdf Pages List Form Fields", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "list-form-fields-per-pdf-page.cs", + "title": "List Form Fields on Each PDF Page", + "description": "Loads a PDF document, iterates through all pages, and prints the names of any form fields present on each page.", "tags": [ "pdf", "form-fields", - "pages", - "aspose", - "csharp" + "aspose-pdf", + "csharp", + "page-iteration" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Forms.Field", "Aspose.Pdf.Page.FieldsInTabOrder", + "Aspose.Pdf.Forms.Field", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" @@ -35885,59 +43620,66 @@ { "filename": "load-pdf-extract-acroform-fields.cs", "title": "Load PDF and Extract AcroForm Fields", - "description": "Shows how to load a PDF using Aspose.Pdf, access its AcroForm, and iterate through all form fields to display their names and values.", + "description": "Shows how to load a PDF file with Aspose.Pdf, access its AcroForm, and enumerate each form field to display its name and current value.", "tags": [ "pdf", "acroform", - "fields", - "extraction", - "aspose" + "form-fields", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Form", "Aspose.Pdf.Forms.Form", "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Forms.Form.Fields" + "Aspose.Pdf.Forms.FieldCollection" ], "difficulty": "beginner" }, { "filename": "log-form-field-count-per-pdf-page.cs", - "title": "Log Form Field Count per PDF Page", - "description": "Demonstrates how to load a PDF with Aspose.Pdf, iterate through its pages, count the form fields (WidgetAnnotations) on each page, and log the counts for monitoring purposes.", + "title": "Log Form Field Count Per Pdf Page", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "log-pdf-form-extraction-timestamps.cs", + "title": "Log PDF Form Extraction Timestamps", + "description": "Shows how to iterate through PDF pages, extract text from form XObjects, and capture start/end timestamps for each extraction using Aspose.Pdf.", "tags": [ "pdf", - "form-fields", - "aspose-pdf", - "annotation", - "page-iteration" + "form-extraction", + "logging", + "text-absorber", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.WidgetAnnotation", - "Aspose.Pdf.PageCollection", - "Aspose.Pdf.AnnotationCollection" + "Aspose.Pdf.XForm", + "Aspose.Pdf.Text.TextAbsorber", + "Aspose.Pdf.Text.TextAbsorber.Visit" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "modify-checkbox-appearance-extract-value.cs", - "title": "Modify Checkbox Appearance and Extract Value using Aspose.PDF Drawing", - "description": "The example loads a PDF, finds the first checkbox form field, changes its style, color, and border, draws a red rectangle around it using the Drawing API, saves the document, and then reads the checkbox value.", + "title": "Modify Checkbox Appearance and Extract Its Value", + "description": "Shows how to locate a checkbox form field, draw a custom rectangle over it using Aspose.Pdf.Drawing.Graph, and then read the checkbox value before saving the modified PDF.", "tags": [ "checkbox", - "appearance", - "drawing", "form-field", - "aspose-pdf" + "appearance", + "graph", + "pdf-modification" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.CheckboxField", - "Aspose.Pdf.Annotations.Border", + "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", "Aspose.Pdf.Drawing.Rectangle", "Aspose.Pdf.Drawing.GraphInfo", @@ -35948,7 +43690,7 @@ { "filename": "parallel-pdf-text-extraction.cs", "title": "Parallel PDF Text Extraction with Aspose.Pdf", - "description": "Demonstrates extracting text from multiple PDF files concurrently using the Task Parallel Library and Aspose.Pdf's Document and TextAbsorber classes.", + "description": "Demonstrates how to extract text from multiple PDF files concurrently using Aspose.Pdf and the Task Parallel Library, with cancellation support and thread‑safe result aggregation.", "tags": [ "pdf", "text-extraction", @@ -35960,83 +43702,96 @@ "Aspose.Pdf.Document", "Aspose.Pdf.Text.TextAbsorber", "Aspose.Pdf.PageCollection.Accept", - "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Text.TextAbsorber.Text", "Aspose.Pdf.Document.Dispose" ], "difficulty": "intermediate" }, { - "filename": "parse-numeric-form-fields-sum.cs", - "title": "Parse Numeric Form Fields and Calculate Sum", - "description": "Shows how to iterate through PDF form fields, extract numeric values from NumberField objects, parse them as decimals, and compute a total.", + "filename": "parse-number-fields-to-decimal.cs", + "title": "Parse Number Fields from PDF Form to Decimal", + "description": "Shows how to load a PDF form with Aspose.Pdf, iterate over NumberField entries, convert their string values to decimal using invariant culture, and perform a simple calculation.", "tags": [ "pdf", - "form", + "form-fields", "numberfield", "parsing", - "sum" + "decimal" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Field", "Aspose.Pdf.Forms.NumberField", - "Aspose.Pdf.Forms.Form.Fields" + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Forms.NumberField.Value", + "Aspose.Pdf.Forms.NumberField.PartialName" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "pdf-summary-report-text-images-graphics.cs", - "title": "PDF Summary Report with Text Length, Image and Graphics Count", - "description": "Loads a PDF, extracts the total character count using TextAbsorber, counts images and vector graphics (via Form XObjects) on each page, and prints a concise summary report.", + "filename": "parse-numeric-form-fields-sum.cs", + "title": "Parse Numeric Form Fields Sum", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "pdf-summary-report-text-image-count.cs", + "title": "PDF Summary Report: Text Length and Image Count", + "description": "Demonstrates loading a PDF with Aspose.Pdf, extracting all text to calculate character length, counting embedded images, and printing a concise summary per file.", "tags": [ "pdf", - "summary", "text-extraction", "image-count", - "graphics" + "summary", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Text.TextAbsorber", "Aspose.Pdf.Page", - "Aspose.Pdf.Page.Resources", - "Aspose.Pdf.Page.Resources.Images", - "Aspose.Pdf.Page.Resources.Forms" + "Aspose.Pdf.XImage", + "Aspose.Pdf.Document.Pages.Accept", + "Aspose.Pdf.Page.Resources.Images" ], - "difficulty": "intermediate" + "difficulty": "beginner" + }, + { + "filename": "pdf-summary-report-text-images-graphics.cs", + "title": "Pdf Summary Report Text Images Graphics", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "read-acroform-fields-from-pdf-stream.cs", "title": "Read AcroForm Fields from PDF Stream", - "description": "Shows how to open a PDF file as a stream, create an Aspose.Pdf Document, and enumerate its AcroForm fields without saving the file to disk.", + "description": "Shows how to open a PDF as a read‑only stream and use Aspose.Pdf to enumerate AcroForm fields without saving the file to disk.", "tags": [ "pdf", "acroform", "fields", "stream", - "aspose-pdf" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Forms.Field.FullName", - "Aspose.Pdf.Forms.Field.Value" + "Aspose.Pdf.Form", + "Aspose.Pdf.Forms.Field" ], "difficulty": "beginner" }, { "filename": "read-checkbox-value-to-boolean.cs", "title": "Read Checkbox Value and Convert to Boolean", - "description": "Shows how to load a PDF, access a checkbox form field, read its Value property, and convert the string value to a Boolean indicating whether the box is checked.", + "description": "Shows how to open a PDF with Aspose.Pdf, access a checkbox form field, read its Value property, and convert the string value to a Boolean.", "tags": [ - "pdf", "checkbox", "form", - "aspose-pdf", - "boolean" + "pdf", + "boolean", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", @@ -36049,28 +43804,45 @@ }, { "filename": "retrieve-acroform-fields-from-pdf.cs", - "title": "Retrieve All AcroForm Fields from a PDF", - "description": "Shows how to load a PDF with Aspose.Pdf, access its AcroForm collection, and enumerate all form fields, printing each field's name and current value.", + "title": "Retrieve AcroForm Fields from PDF", + "description": "Shows how to load a PDF with Aspose.Pdf, access its AcroForm, and enumerate all form fields, displaying each field's name, type, and value.", "tags": [ + "pdf", "acroform", - "pdf-forms", - "field-enumeration", - "aspose-pdf", + "fields", + "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Form.Fields", "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.Form.Count", - "Aspose.Pdf.Forms.Form.Fields" + "Aspose.Pdf.Forms.Field.FullName", + "Aspose.Pdf.Forms.Field.Value" ], "difficulty": "beginner" }, { "filename": "retrieve-form-field-types.cs", - "title": "Retrieve PDF Form Field Types", - "description": "Shows how to load a PDF with Aspose.Pdf, access its form, iterate over each form field, and obtain the runtime type of each field using GetType() for classification.", + "title": "Retrieve Form Field Types", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "retrieve-pdf-form-field-by-name.cs", + "title": "Retrieve Pdf Form Field By Name", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "retrieve-pdf-form-field-types.cs", + "title": "Retrieve PDF Form Field Types with Aspose.Pdf", + "description": "The example loads a PDF document, accesses its AcroForm, and enumerates each form field to display its name and runtime type using Aspose.Pdf.", "tags": [ "pdf", "form", @@ -36082,15 +43854,14 @@ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.Form", "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Document..ctor(string)", - "Aspose.Pdf.Forms.Form.Count" + "Aspose.Pdf.Forms.Form.Fields" ], "difficulty": "beginner" }, { - "filename": "retrieve-pdf-form-field-by-name.cs", - "title": "Retrieve PDF Form Field by Name", - "description": "Demonstrates loading a PDF with Aspose.Pdf, accessing a specific form field using the Document.Form indexer, and reading its current value.", + "filename": "retrieve-pdf-form-field-value.cs", + "title": "Retrieve PDF Form Field Value by Name", + "description": "Shows how to load a PDF with Aspose.Pdf, access its AcroForm collection, retrieve a specific form field using the Document.Form indexer, and read the field's value.", "tags": [ "pdf", "form", @@ -36101,79 +43872,118 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.WidgetAnnotation" + "Aspose.Pdf.Forms.WidgetAnnotation", + "Aspose.Pdf.Forms.Field" + ], + "difficulty": "beginner" + }, + { + "filename": "serialize-pdf-form-data-to-json-bytes.cs", + "title": "Serialize PDF Form Data to JSON Byte Array", + "description": "Loads a PDF, extracts all form fields as JSON, writes the JSON into a MemoryStream, and returns the resulting JSON as a byte array for API consumption.", + "tags": [ + "pdf", + "form", + "json", + "serialization", + "memorystream" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Form.ExportToJson", + "Aspose.Pdf.Document(string)" ], "difficulty": "beginner" }, { "filename": "validate-pdf-fonts-against-system.cs", "title": "Validate PDF Fonts Against System Installation", - "description": "The example opens a PDF, enumerates all fonts used on each page, checks if they are installed on the host system, and reports any missing font dependencies.", + "description": "Loads a PDF, iterates through each page to collect fonts, and reports any fonts that are not installed on the host system using Aspose.Pdf's font accessibility check.", "tags": [ - "fonts", "pdf", + "fonts", "validation", - "aspose", - "missing-fonts" + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Text.FontCollection", + "Aspose.Pdf.Page.Resources", + "Aspose.Pdf.Page.Resources.GetFonts", "Aspose.Pdf.Text.Font", - "Aspose.Pdf.Page.Resources" + "Aspose.Pdf.Text.Font.IsAccessible", + "Aspose.Pdf.Text.FontCollection" ], - "difficulty": "beginner" + "difficulty": "intermediate" } ] }, { "name": "securing-and-signing-pdf", - "file_count": 78, + "file_count": 116, "files": [ "add-digital-signature-to-pdf.cs", - "add-empty-signature-field-to-pdf.cs", + "add-invisible-digital-signature-to-pdf.cs", + "add-new-empty-signature-field.cs", "add-visible-digital-signature-second-page.cs", "add-warning-overlay-disable-copy-paste.cs", "apply-invisible-digital-signature.cs", + "apply-pkcs7-detached-digital-signature.cs", "apply-pkcs7-detached-signature-to-pdf.cs", "batch-decrypt-pdf-lookup.cs", + "batch-decrypt-pdfs-lookup-table.cs", "batch-encrypt-and-sign-pdfs.cs", "batch-encrypt-pdfs-archive-zip.cs", "batch-encrypt-pdfs-by-filename.cs", + "batch-encrypt-pdfs-date-password.cs", "batch-encrypt-pdfs-deterministic-passwords.cs", "batch-sign-and-compress-pdfs.cs", "batch-sign-pdfs-metadata-certificate.cs", + "batch-sign-pdfs-title-based-certificate-selection.cs", + "batch-sign-pdfs-with-certificate-per-document-type.cs", "batch-sign-pdfs-with-certificate.cs", "batch-sign-pdfs-with-document-type-certificates.cs", + "certified-pdf-signature-allow-add-pages.cs", "certify-pdf-allow-annotations.cs", + "custom-security-handler-logging-pdf-access.cs", "custom-security-handler-logging.cs", "custom-security-handler-restrict-copy-paste.cs", + "custom-security-handler-warning-overlay.cs", + "decrypt-pdf-extract-embedded-images.cs", "decrypt-pdf-extract-images-reencrypt.cs", "decrypt-pdf-resign-multiple-certificates.cs", + "decrypt-pdf-sign-fields-multiple-certs.cs", "decrypt-pdf-update-metadata.cs", "decrypt-pdf-using-certificate-token.cs", + "decrypt-pdf-with-certificate-token.cs", "decrypt-pdf-with-owner-password.cs", - "encrypt-pdf-aes256.cs", + "download-sign-pdf-azure-blob.cs", + "encrypt-pdf-aes256-user-owner-passwords.cs", "encrypt-pdf-allow-copy-block-print.cs", "encrypt-pdf-certificate-sign.cs", "encrypt-pdf-disable-content-extraction.cs", "encrypt-pdf-disable-printing.cs", - "encrypt-pdf-owner-password-edit-only.cs", "encrypt-pdf-owner-password-high-res-printing.cs", "encrypt-pdf-print-only-permission.cs", + "encrypt-pdf-rc4-128-bit-restrict-editing.cs", "encrypt-pdf-rc4-128-restrict-editing.cs", "encrypt-pdf-remove-user-password.cs", + "encrypt-pdf-view-only-edit-password.cs", + "encrypt-pdf-with-password-aes256.cs", "encrypt-pdf-with-password.cs", - "encrypt-pdf-with-printing-and-copying-permissions.cs", + "encrypt-pdf-with-print-copy-permissions.cs", "encrypt-pdf-with-smart-card-certificate.cs", + "encrypt-pdf-with-user-owner-passwords-remove-user.cs", "encrypt-pdf-with-user-password.cs", "encrypted-pdf-with-attachment-and-signature.cs", + "extract-certificate-chain-from-pdf-signature.cs", "extract-certificate-chain-from-pdf-signatures.cs", "extract-digest-algorithm-from-pdf-signatures.cs", "extract-images-from-signed-pdf.cs", "extract-images-from-signed-pdf__v2.cs", + "extract-pdf-signature-signing-time-utc.cs", "extract-signature-certificate-chain.cs", "extract-signature-field-metadata.cs", "extract-signature-field-names-and-page-numbers.cs", @@ -36183,23 +43993,39 @@ "lock-form-fields-after-signing.cs", "pdf-certification-signature-no-modifications.cs", "remove-digital-signature-from-pdf.cs", + "restrict-copy-paste-in-pdf.cs", + "retrieve-reason-location-from-pdf-signatures.cs", "retrieve-signature-reason-location.cs", "set-pdf-privileges-disable-extraction-form-filling.cs", "sign-pdf-add-custom-xmp-metadata.cs", - "sign-pdf-and-flatten-signature.cs", + "sign-pdf-and-flatten-form-fields.cs", + "sign-pdf-and-lock-readonly.cs", + "sign-pdf-and-lock-signature-field.cs", "sign-pdf-append-only.cs", "sign-pdf-embed-xfa-data.cs", + "sign-pdf-embed-xfa-form-data.cs", "sign-pdf-enforce-finality.cs", "sign-pdf-flatten-form-fields.cs", + "sign-pdf-flatten-signature.cs", + "sign-pdf-hardware-token-pkcs11.cs", "sign-pdf-lock-signature-field.cs", + "sign-pdf-lock-specific-form-fields.cs", + "sign-pdf-prevent-additional-signatures.cs", "sign-pdf-remove-annotations-preserve-signature.cs", + "sign-pdf-remove-annotations.cs", + "sign-pdf-with-4096-rsa-certificate.cs", + "sign-pdf-with-certificate.cs", "sign-pdf-with-custom-image-appearance.cs", "sign-pdf-with-ecc-p256.cs", "sign-pdf-with-hardware-token.cs", - "sign-pdf-with-metadata.cs", + "sign-pdf-with-incremental-updates.cs", + "sign-pdf-with-pkcs7-and-custom-xml.cs", "sign-pdf-with-pkcs7-signature.cs", + "sign-pdf-with-reason-contact-location.cs", "sign-pdf-with-rsa-4096-certificate.cs", + "sign-pdf-with-sha384-digest.cs", "sign-pdf-with-sha512-digest.cs", + "sign-pdf-with-sha512.cs", "sign-pdf-with-smart-card-no-pin.cs", "sign-pdf-with-smart-card.cs", "sign-pdf-with-timestamp.cs", @@ -36208,49 +44034,62 @@ "validate-pdf-digital-signature-ocsp.cs", "validate-pdf-digital-signature.cs", "validate-pdf-signature-crl-revocation.cs", + "validate-pdf-signature-crl.cs", "validate-pdf-signature-extract-san.cs", + "validate-pdf-signature-ocsp.cs", + "validate-pdf-signature-timestamp.cs", + "validate-pdf-signature.cs", "validate-pkcs7-detached-signature.cs" ], "required_namespaces": [ "Aspose.Pdf", "Aspose.Pdf.Forms", "Aspose.Pdf.Security", - "Aspose.Pdf.Text", "Aspose.Pdf.Annotations", "Aspose.Pdf.Drawing", - "Aspose.Pdf.Signatures" + "Aspose.Pdf.Signatures", + "Aspose.Pdf.Text" ], "key_apis": [ "StringBuilder", - "TextFragment", - "TextStamp" + "TextAnnotation" ], "examples": [ { "filename": "add-digital-signature-to-pdf.cs", - "title": "Add Digital Signature to PDF", - "description": "Shows how to load a PDF, create a signature field, apply a PKCS#1 digital signature from a PFX certificate, and save the signed document using Aspose.Pdf.", + "title": "Add Digital Signature To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-invisible-digital-signature-to-pdf.cs", + "title": "Add Invisible Digital Signature to PDF", + "description": "Shows how to create an invisible digital signature field, sign it with a PKCS#7 certificate, record the signing time, and save the PDF without altering its layout using Aspose.Pdf.", "tags": [ - "pdf", "digital-signature", - "aspose-pdf", - "certificate", - "c#" + "pdf", + "invisible", + "Aspose.Pdf", + "PKCS7" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.PKCS1", + "Aspose.Pdf.Forms.PKCS7", + "Aspose.Pdf.Document.Save", "Aspose.Pdf.Forms.SignatureField.Sign", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Form.Add" ], "difficulty": "intermediate" }, { - "filename": "add-empty-signature-field-to-pdf.cs", - "title": "Add Empty Signature Field to PDF and List Existing Signatures", - "description": "The example loads a PDF, enumerates any existing signature fields, creates a new empty signature field on a specified rectangle, adds it to the form, and saves the updated document.", + "filename": "add-new-empty-signature-field.cs", + "title": "Add a New Empty Signature Field to a PDF", + "description": "The example loads a PDF, lists any existing signature fields, creates a new empty signature field on the first page, and saves the updated document.", "tags": [ "pdf", "signature", @@ -36262,136 +44101,122 @@ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.SignatureField", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Document.EnableSignatureSanitization", "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Forms.Form.Add" ], "difficulty": "intermediate" }, { "filename": "add-visible-digital-signature-second-page.cs", - "title": "Add Visible Digital Signature to PDF Second Page", - "description": "Loads a PDF, creates a visible signature field at the bottom‑right corner of the second page, and signs it with a PFX certificate.", + "title": "Add Visible Digital Signature to Second Page of PDF", + "description": "Demonstrates how to place a visible digital signature in the bottom‑right corner of the second page of a PDF using Aspose.Pdf.", "tags": [ "digital-signature", - "pdf", "visible-signature", - "aspose-pdf", - "csharp" + "pdf", + "Aspose.Pdf", + "second-page" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.PKCS7", - "Aspose.Pdf.Annotations.Border" + "Aspose.Pdf.Forms.PKCS1" ], "difficulty": "intermediate" }, { "filename": "add-warning-overlay-disable-copy-paste.cs", - "title": "Add Warning Overlay and Disable Copy‑Paste in PDF", - "description": "The example loads a PDF, adds a semi‑transparent \"CONFIDENTIAL – DO NOT COPY\" text stamp to every page, then encrypts the document with AES‑256 while allowing only printing and modification, effectively disabling copy‑paste.", - "tags": [ - "pdf", - "watermark", - "encryption", - "permissions", - "copy-protection" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextStamp", - "Aspose.Pdf.FontRepository.FindFont", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm" - ], - "difficulty": "intermediate" + "title": "Add Warning Overlay Disable Copy Paste", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "apply-invisible-digital-signature.cs", - "title": "Apply Invisible Digital Signature to PDF with Timestamp", - "description": "Demonstrates how to add an invisible PKCS#7 digital signature to a PDF, recording the signing time without altering the document layout.", - "tags": [ - "digital-signature", - "invisible", - "timestamp", - "pdf", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.PKCS7", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "intermediate" + "title": "Apply Invisible Digital Signature", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "apply-pkcs7-detached-signature-to-pdf.cs", - "title": "Apply PKCS#7 Detached Signature to a PDF", - "description": "Demonstrates loading a PDF from a file stream, creating a signature field, configuring a PKCS#7 detached signature, and saving the signed document using Aspose.Pdf.", + "filename": "apply-pkcs7-detached-digital-signature.cs", + "title": "Apply PKCS#7 Detached Digital Signature to PDF", + "description": "Demonstrates loading a PDF from a file stream, adding a signature field, and applying a PKCS#7 detached digital signature using a PFX certificate.", "tags": [ - "pdf", - "digital-signature", + "pdf-signature", "pkcs7", - "csharp", - "aspose" + "digital-signature", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.SignatureField", "Aspose.Pdf.Forms.PKCS7Detached", - "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.SignatureField.Sign", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate" }, + { + "filename": "apply-pkcs7-detached-signature-to-pdf.cs", + "title": "Apply Pkcs7 Detached Signature To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "batch-decrypt-pdf-lookup.cs", + "title": "Batch Decrypt Pdf Lookup", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "batch-decrypt-pdfs-lookup-table.cs", "title": "Batch Decrypt Password-Protected PDFs Using a Lookup Table", - "description": "Demonstrates how to decrypt multiple password‑protected PDF files in a folder by reading file‑specific passwords from a simple lookup text file and saving the decrypted versions.", + "description": "Demonstrates iterating over a folder of encrypted PDFs, trying multiple possible passwords from a dictionary, decrypting each document with Aspose.Pdf, and saving the unprotected version.", "tags": [ "pdf", "decryption", - "password", "batch", + "password", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.InvalidPasswordException", - "Document(string, string)", - "Document.Decrypt()", - "Document.Save(string)" + "Aspose.Pdf.Document(string, string)", + "Aspose.Pdf.Document.Decrypt", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.InvalidPasswordException" ], "difficulty": "intermediate" }, { "filename": "batch-encrypt-and-sign-pdfs.cs", - "title": "Batch Encrypt and Sign PDFs", - "description": "Demonstrates how to encrypt multiple PDF files with AES‑256 and then apply a PKCS#7 digital signature to each encrypted document using Aspose.PDF for .NET.", + "title": "Batch Encrypt and Digitally Sign PDFs", + "description": "Demonstrates how to encrypt multiple PDF files with AES‑256 and then apply a PKCS#7 digital signature to each encrypted document using Aspose.Pdf.", "tags": [ - "pdf-encryption", - "digital-signature", - "batch-processing", - "Aspose.Pdf", - "C#" + "pdf encryption", + "digital signature", + "batch processing", + "aes-256", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Encrypt", "Aspose.Pdf.Permissions", "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.PKCS7", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Forms.PKCS7" ], "difficulty": "intermediate" }, @@ -36400,65 +44225,73 @@ "title": "Batch Encrypt PDFs and Archive to ZIP", "description": "Demonstrates how to encrypt multiple PDF files with unique passwords using Aspose.Pdf and then package the encrypted PDFs into a ZIP archive.", "tags": [ - "pdf encryption", - "batch processing", - "zip", - "aspose.pdf", - "permissions" + "pdf-encryption", + "batch-processing", + "zip-archive", + "aspose-pdf", + "password-protection" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Security.Permissions", + "Aspose.Pdf.Security.CryptoAlgorithm" ], "difficulty": "intermediate" }, { "filename": "batch-encrypt-pdfs-by-filename.cs", "title": "Batch Encrypt PDFs Using File Name Passwords", - "description": "Shows how to encrypt every PDF in a folder with Aspose.Pdf, using the file name as both user and owner passwords and saving the protected files to an output directory.", + "description": "Iterates through all PDF files in a folder, derives a password from each file name, encrypts each document with AES‑256 using Aspose.Pdf, and saves the encrypted copies to an output directory.", "tags": [ "pdf-encryption", - "batch-processing", + "batch", "aspose-pdf", - "aes256", - "file-names" + "csharp", + "password-protection" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Document.Save", "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm" + "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "batch-encrypt-pdfs-deterministic-passwords.cs", - "title": "Batch Encrypt PDFs with Deterministic Passwords", - "description": "Demonstrates how to encrypt all PDF files in a folder using Aspose.Pdf, generating a password from the file name combined with the current date and applying specific permissions.", + "filename": "batch-encrypt-pdfs-date-password.cs", + "title": "Batch Encrypt PDFs with Date-Based Passwords", + "description": "Demonstrates how to encrypt multiple PDF files in a folder using Aspose.Pdf, generating a unique password for each file from its name combined with the current UTC date.", "tags": [ - "pdf encryption", - "batch processing", - "Aspose.Pdf", - "hash password", - "permissions" + "pdf-encryption", + "batch-processing", + "aspose-pdf", + "aes-256", + "hashing" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Encrypt", "Aspose.Pdf.Permissions", "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.Encrypt", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, + { + "filename": "batch-encrypt-pdfs-deterministic-passwords.cs", + "title": "Batch Encrypt Pdfs Deterministic Passwords", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "batch-sign-and-compress-pdfs.cs", "title": "Batch Sign and Compress PDFs", - "description": "Shows how to iterate through a folder of PDF files, add a PKCS#7 digital signature field, optimize resources to compress the document, and save the signed PDFs using Aspose.Pdf.", + "description": "Demonstrates how to iterate over a folder of PDF files, add a digital signature field, sign each document with a PKCS#7 certificate, compress the signed PDF, and save the result.", "tags": [ "pdf", "digital-signature", @@ -36470,98 +44303,124 @@ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.SignatureField", "Aspose.Pdf.Forms.PKCS7", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Document.OptimizeResources" + "Aspose.Pdf.Document.OptimizeResources", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Form.Add", + "Aspose.Pdf.Forms.SignatureField.Sign" ], "difficulty": "intermediate" }, { "filename": "batch-sign-pdfs-metadata-certificate.cs", - "title": "Batch Sign PDFs Using Metadata-Driven Certificate Selection", - "description": "The example loads each PDF, reads its Title metadata, selects a matching certificate, adds a signature field, signs the document, and saves it to an output folder.", + "title": "Batch Sign Pdfs Metadata Certificate", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "batch-sign-pdfs-title-based-certificate-selection.cs", + "title": "Batch Sign PDFs with Title-Based Certificate Selection", + "description": "Loads PDFs from a folder, selects a certificate based on the document title, creates a PKCS7 signature, adds or uses a signature field, signs each document, and saves the signed files to an output folder.", "tags": [ - "pdf signing", - "metadata", - "batch processing", + "pdf-signing", + "batch", "certificate", - "Aspose.Pdf" + "aspose-pdf", + "pkcs7" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", + "Aspose.Pdf.DocumentInfo", + "Aspose.Pdf.Forms.PKCS7", "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.PKCS7" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Form" ], "difficulty": "intermediate" }, { - "filename": "batch-sign-pdfs-with-certificate.cs", - "title": "Batch Sign PDFs with Certificate and Timestamp", - "description": "Demonstrates how to sign all PDF files in a folder using a PFX certificate and a timestamp authority, saving the signed documents to an output directory.", + "filename": "batch-sign-pdfs-with-certificate-per-document-type.cs", + "title": "Batch Sign PDFs with Certificate per Document Type", + "description": "Loads PDF files from an input folder, determines a document type from the PDF title, retrieves the corresponding certificate, signs all signature fields, and saves the signed PDFs to an output folder.", "tags": [ - "pdf signing", - "batch processing", - "timestamp", + "pdf-signing", + "batch", "certificate", - "aspose.pdf" + "aspose-pdf", + "signature-field" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", + "Aspose.Pdf.Document.Info", "Aspose.Pdf.Forms.SignatureField", "Aspose.Pdf.Forms.PKCS7", - "Aspose.Pdf.Forms.TimestampSettings", - "Aspose.Pdf.Forms.SignatureField.Sign", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "batch-sign-pdfs-with-document-type-certificates.cs", - "title": "Batch Sign PDFs with Document-Type Certificates", - "description": "Demonstrates signing a batch of PDF files using Aspose.Pdf, selecting a PKCS#7 certificate based on document type and applying it to all signature fields in each PDF.", + "filename": "batch-sign-pdfs-with-certificate.cs", + "title": "Batch Sign PDFs with Certificate and Timestamp", + "description": "Demonstrates how to iterate over PDF files in a folder and apply a PKCS#7 digital signature using a PFX certificate, adding a timestamp from a TSA. The signed PDFs are saved back to the original location.", "tags": [ "pdf-signing", "batch", - "aspose-pdf", - "pkcs7", - "certificate" + "certificate", + "timestamp", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.PKCS7", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.SignatureField.Sign", - "Aspose.Pdf.Document.Form.Fields", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.PKCS7", + "Aspose.Pdf.Forms.TimestampSettings" ], "difficulty": "intermediate" }, { - "filename": "certify-pdf-allow-annotations.cs", - "title": "Create a Certified PDF Signature Allowing Annotations", - "description": "Shows how to add a signature field to a PDF and sign it with a PKCS#1 certificate using Aspose.Pdf, highlighting that true certification signatures require the Facades API.", + "filename": "batch-sign-pdfs-with-document-type-certificates.cs", + "title": "Batch Sign Pdfs With Document Type Certificates", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "certified-pdf-signature-allow-add-pages.cs", + "title": "Create a Certified PDF Signature Allowing Page Additions", + "description": "Demonstrates how to add a certification (MDP) signature to a PDF using Aspose.Pdf so that new pages can be appended after signing.", "tags": [ "pdf", - "digital-signature", + "signature", "certification", "aspose", - "csharp" + "add-pages" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.SignatureField", "Aspose.Pdf.Forms.PKCS1", - "Aspose.Pdf.Forms.SignatureField.Sign" + "Aspose.Pdf.Forms.SignatureField.Sign", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "custom-security-handler-logging.cs", - "title": "Custom Security Handler with Logging for Encrypted PDF", - "description": "Demonstrates how to implement a custom ICustomSecurityHandler that logs password checks and encryption actions, then encrypts and opens a PDF using Aspose.Pdf.", + "filename": "certify-pdf-allow-annotations.cs", + "title": "Certify Pdf Allow Annotations", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "custom-security-handler-logging-pdf-access.cs", + "title": "Custom Security Handler for Logging PDF Access Attempts", + "description": "Demonstrates how to implement a custom ICustomSecurityHandler that logs password checks and encryption steps, then encrypts and opens a PDF using this handler.", "tags": [ "pdf", "encryption", @@ -36572,49 +44431,87 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Security.ICustomSecurityHandler", - "Aspose.Pdf.Security.EncryptionParameters", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.Document.Encrypt" + "Aspose.Pdf.Security.Permissions", + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, + { + "filename": "custom-security-handler-logging.cs", + "title": "Custom Security Handler Logging", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "custom-security-handler-restrict-copy-paste.cs", - "title": "Apply Custom Security Handler to Restrict Copy‑Paste in PDF", - "description": "Demonstrates how to implement a simple custom security handler and use it with Aspose.Pdf to encrypt a PDF while disabling content extraction (copy‑paste).", + "title": "Custom Security Handler Restrict Copy Paste", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "custom-security-handler-warning-overlay.cs", + "title": "Custom Security Handler with Warning Overlay", + "description": "Shows how to attach a custom ICustomSecurityHandler to a PDF to disable copy‑paste permissions and add a visible warning annotation on each page using Aspose.Pdf.", "tags": [ - "pdf security", - "custom handler", + "custom-security", + "encryption", + "annotation", "permissions", - "copy-paste", - "encryption" + "pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Document.Save", "Aspose.Pdf.Permissions", - "Aspose.Pdf.Security.ICustomSecurityHandler" + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Page.Annotations.Add", + "Aspose.Pdf.Rectangle" + ], + "difficulty": "intermediate" + }, + { + "filename": "decrypt-pdf-extract-embedded-images.cs", + "title": "Decrypt PDF and Extract Embedded Images", + "description": "Shows how to open an encrypted PDF with a user password, remove its encryption, and extract all embedded images to PNG files.", + "tags": [ + "pdf", + "decryption", + "image-extraction", + "aspose-pdf", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Decrypt()", + "Aspose.Pdf.Document.Save()", + "Aspose.Pdf.Page", + "Aspose.Pdf.XImage.Save()", + "Aspose.Pdf.Page.Resources.Images" ], "difficulty": "intermediate" }, { "filename": "decrypt-pdf-extract-images-reencrypt.cs", "title": "Decrypt PDF, Extract Images, and Re‑encrypt with New Owner Password", - "description": "The example opens an encrypted PDF using the existing owner password, removes the encryption, extracts all embedded images to separate files, and then re‑encrypts the PDF with a new owner password and specific permissions.", + "description": "The example opens an encrypted PDF using a known password, decrypts it, extracts all embedded images to a folder, then re‑encrypts the PDF with a new owner password and saves the result.", "tags": [ "pdf-decryption", "image-extraction", "pdf-encryption", - "permissions", - "aspose-pdf" + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Document.Decrypt", - "Aspose.Pdf.Document.Encrypt", "Aspose.Pdf.Page", - "Aspose.Pdf.XImage", + "Aspose.Pdf.XImage.Save", + "Aspose.Pdf.Document.Encrypt", "Aspose.Pdf.Permissions", "Aspose.Pdf.CryptoAlgorithm" ], @@ -36622,20 +44519,28 @@ }, { "filename": "decrypt-pdf-resign-multiple-certificates.cs", - "title": "Decrypt PDF and Re‑sign All Signature Fields with Multiple Certificates", - "description": "The example opens an encrypted PDF, extracts every signature field, and re‑signs each field using a different PFX certificate before saving the updated document.", + "title": "Decrypt Pdf Resign Multiple Certificates", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "decrypt-pdf-sign-fields-multiple-certs.cs", + "title": "Decrypt PDF and Sign Each Signature Field with Different Certificates", + "description": "The example opens an encrypted PDF, removes its protection, locates all signature fields, and signs each field using a different PFX certificate, cycling through a list of certificates.", "tags": [ - "pdf", - "decryption", + "pdf-decryption", "digital-signature", - "aspose-pdf", - "certificate" + "certificate", + "form-fields", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Document.Decrypt", "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Signatures.PKCS7", + "Aspose.Pdf.Forms.PKCS7", "Aspose.Pdf.Forms.SignatureField.Sign", "Aspose.Pdf.Document.Save" ], @@ -36643,34 +44548,42 @@ }, { "filename": "decrypt-pdf-update-metadata.cs", - "title": "Decrypt PDF with Owner Password and Update Metadata", - "description": "Shows how to open an encrypted PDF using the owner password, remove its encryption, modify document metadata, and save the updated file.", + "title": "Decrypt PDF and Update Metadata with Aspose.Pdf", + "description": "Demonstrates how to open an encrypted PDF using the owner password, remove its encryption, modify document metadata, and save the result.", "tags": [ "pdf", "decryption", "metadata", - "aspose.pdf", + "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Decrypt()", + "Aspose.Pdf.Document.Decrypt", "Aspose.Pdf.Document.Info", "Aspose.Pdf.DocumentInfo", - "Aspose.Pdf.Document.Save()" + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "decrypt-pdf-using-certificate-token.cs", - "title": "Decrypt PDF Using Certificate from Hardware Token", - "description": "Shows how to open a PDF encrypted with a certificate, retrieve the private key from a hardware token via store settings, decrypt the document, and save the unencrypted version using Aspose.Pdf.", + "title": "Decrypt Pdf Using Certificate Token", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "decrypt-pdf-with-certificate-token.cs", + "title": "Decrypt PDF Encrypted with Certificate Using Hardware Token", + "description": "Shows how to open a PDF encrypted with a public certificate, retrieve the private key from a hardware token, decrypt the document, and save the unencrypted version using Aspose.Pdf.", "tags": [ "pdf", "decryption", "certificate", "hardware-token", - "Aspose.Pdf" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", @@ -36683,7 +44596,7 @@ { "filename": "decrypt-pdf-with-owner-password.cs", "title": "Decrypt PDF with Owner Password using Aspose.Pdf", - "description": "Shows how to open an encrypted PDF with the owner password, remove its encryption, and save the decrypted document using Aspose.Pdf.", + "description": "Demonstrates opening an encrypted PDF with the owner password, removing its protection, and saving the decrypted document.", "tags": [ "pdf", "decryption", @@ -36693,43 +44606,42 @@ ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document..ctor(string, string)", - "Aspose.Pdf.Document.Decrypt()", - "Aspose.Pdf.Document.Save(string)", + "Aspose.Pdf.Document.Decrypt", + "Aspose.Pdf.Document.Save", "Aspose.Pdf.InvalidPasswordException" ], "difficulty": "beginner" }, { - "filename": "encrypt-pdf-aes256.cs", - "title": "Encrypt PDF with AES‑256 and Passwords", - "description": "Demonstrates loading a PDF, applying AES‑256 encryption with user and owner passwords, setting basic permissions, and saving the protected document.", + "filename": "download-sign-pdf-azure-blob.cs", + "title": "Download PDF, Apply PKCS7 Signature, and Upload to Azure Blob", + "description": "The example downloads a PDF from a URL, creates a signature field, signs it with a PKCS7 certificate using Aspose.Pdf, and uploads the signed document to Azure Blob Storage.", "tags": [ - "encryption", "pdf", - "aes256", - "password", - "permissions" + "digital-signature", + "azure-blob", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Forms.PKCS7" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "encrypt-pdf-allow-copy-block-print.cs", - "title": "Encrypt PDF and Allow Copy While Blocking Printing", - "description": "The example loads a PDF, encrypts it with AES‑256, sets permissions to allow content extraction (copy) but disables printing, and saves the protected document.", + "filename": "encrypt-pdf-aes256-user-owner-passwords.cs", + "title": "Encrypt PDF with AES‑256 and Set User/Owner Passwords", + "description": "Demonstrates how to encrypt a PDF using AES‑256, assign separate user and owner passwords, and configure basic permissions before saving the document.", "tags": [ + "pdf", "encryption", + "aes256", "permissions", - "pdf", - "aspose.pdf", - "csharp" + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", @@ -36741,97 +44653,82 @@ "difficulty": "beginner" }, { - "filename": "encrypt-pdf-certificate-sign.cs", - "title": "Encrypt PDF with Certificate and Digitally Sign It", - "description": "Demonstrates how to encrypt a PDF using a certificate's public key and then apply a PKCS#7 digital signature with the same certificate using Aspose.Pdf.", - "tags": [ - "encryption", - "digital-signature", - "certificate", - "Aspose.Pdf", - "PDF-security" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Security.X509CertificateLoader.LoadPkcs12", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Security.PKCS7", - "Aspose.Pdf.Forms.SignatureField.Sign" - ], - "difficulty": "intermediate" - }, - { - "filename": "encrypt-pdf-disable-content-extraction.cs", - "title": "Encrypt PDF and Disable Content Extraction", - "description": "Demonstrates how to encrypt a PDF with AES‑256 using Aspose.Pdf, set an empty permissions set to disable all content extraction, and save the protected file.", + "filename": "encrypt-pdf-allow-copy-block-print.cs", + "title": "Encrypt PDF and Allow Copying While Blocking Printing", + "description": "Shows how to encrypt a PDF with Aspose.Pdf, set user and owner passwords, permit content extraction (copy) and disable printing, then save the protected file.", "tags": [ - "pdf", "encryption", "permissions", - "aes256", - "content-extraction" + "copy", + "printing", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Permissions", - "Aspose.Pdf.Document.Encrypt", "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.Encrypt", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "encrypt-pdf-disable-printing.cs", - "title": "Encrypt PDF with User Password and Disable Printing", - "description": "Demonstrates how to encrypt a PDF with a user password, set an owner password, restrict permissions to disable printing, and save the protected document using Aspose.Pdf.", + "filename": "encrypt-pdf-certificate-sign.cs", + "title": "Encrypt Pdf Certificate Sign", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "encrypt-pdf-disable-content-extraction.cs", + "title": "Encrypt PDF and Disable Content Extraction", + "description": "Loads a PDF, encrypts it with AES‑256 using user and owner passwords, sets permissions to none to block all content extraction, and saves the encrypted file.", "tags": [ - "pdf encryption", + "encryption", "permissions", - "disable printing", + "pdf", "aes-256", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Encrypt", "Aspose.Pdf.Permissions", "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.Encrypt", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "encrypt-pdf-owner-password-edit-only.cs", - "title": "Encrypt PDF with Owner Password for Editing Only", - "description": "Shows how to encrypt a PDF using Aspose.Pdf so it can be viewed without a password while requiring an owner password to restrict editing and define permissions.", + "filename": "encrypt-pdf-disable-printing.cs", + "title": "Encrypt PDF with Password and Disable Printing", + "description": "Demonstrates how to encrypt a PDF using AES‑256 with user and owner passwords while restricting permissions to prevent printing.", "tags": [ "pdf", "encryption", - "owner-password", "permissions", + "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm", "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Permissions", + "Aspose.Pdf.CryptoAlgorithm" ], "difficulty": "beginner" }, { "filename": "encrypt-pdf-owner-password-high-res-printing.cs", - "title": "Encrypt PDF with Owner Password and Allow High-Resolution Printing", - "description": "The example loads a PDF, encrypts it using an owner password, permits high‑resolution printing while disabling copying, and saves the protected document.", + "title": "Encrypt PDF with Owner Password and Allow High‑Resolution Printing", + "description": "The example loads a PDF, applies AES‑256 encryption with an owner password, enables high‑resolution printing while disabling copying, and saves the protected document.", "tags": [ "encryption", "owner-password", "printing", - "permissions", + "copy-protection", "Aspose.Pdf" ], "apis_used": [ @@ -36845,33 +44742,33 @@ }, { "filename": "encrypt-pdf-print-only-permission.cs", - "title": "Encrypt PDF with Print-Only Permission", - "description": "Demonstrates how to encrypt a PDF using Aspose.Pdf, set user and owner passwords, and restrict permissions so that only printing is allowed.", + "title": "Encrypt PDF with Print‑Only Permission", + "description": "Shows how to encrypt a PDF using Aspose.Pdf and restrict its permissions so that only printing is allowed.", "tags": [ "pdf encryption", - "permissions", - "printing", - "aes-256", - "aspose.pdf" + "print permission", + "Aspose.Pdf", + "C#", + "security" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Permissions", - "Aspose.Pdf.Document.Encrypt", "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.Encrypt", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "encrypt-pdf-rc4-128-restrict-editing.cs", - "title": "Encrypt PDF with RC4 128‑bit and Restrict Editing", - "description": "Shows how to load a PDF, apply RC4 128‑bit encryption with user and owner passwords, set permissions to allow only printing, and save the encrypted document.", + "filename": "encrypt-pdf-rc4-128-bit-restrict-editing.cs", + "title": "Encrypt PDF with RC4 128-bit and Restrict Editing", + "description": "The example loads a PDF, applies 128‑bit RC4 encryption with user and owner passwords, restricts permissions to printing only, and saves the encrypted document.", "tags": [ + "pdf", "encryption", "rc4", "permissions", - "pdf", "aspose-pdf" ], "apis_used": [ @@ -36883,36 +44780,72 @@ ], "difficulty": "beginner" }, + { + "filename": "encrypt-pdf-rc4-128-restrict-editing.cs", + "title": "Encrypt Pdf Rc4 128 Restrict Editing", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "encrypt-pdf-remove-user-password.cs", - "title": "Encrypt PDF with User and Owner Passwords and Remove User Password", - "description": "Demonstrates how to encrypt a PDF using both user and owner passwords with AES‑256, then remove the user password while keeping the document encrypted by using the owner password.", + "title": "Encrypt Pdf Remove User Password", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "encrypt-pdf-view-only-edit-password.cs", + "title": "Encrypt PDF for View-Only with Edit Password", + "description": "Shows how to encrypt a PDF so it can be opened and viewed without a password while requiring an owner password for any editing operations, using specific permissions.", "tags": [ "pdf-encryption", - "user-password", + "view-only", "owner-password", - "aspose-pdf", - "csharp" + "Aspose.Pdf", + "permissions" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Permissions", "Aspose.Pdf.CryptoAlgorithm", "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Document.ChangePasswords" + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" + }, + { + "filename": "encrypt-pdf-with-password-aes256.cs", + "title": "Encrypt PDF with Password (AES‑256)", + "description": "Loads a PDF from a byte array, applies AES‑256 encryption with a user password and optional owner password, and returns the encrypted PDF bytes.", + "tags": [ + "pdf", + "encryption", + "password", + "permissions", + "aes256" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Permissions", + "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner" }, { "filename": "encrypt-pdf-with-password.cs", "title": "Encrypt PDF with Password and Permissions", - "description": "Shows how to load a PDF, set user and owner passwords, define allowed permissions, encrypt it with AES‑256, and save the protected document using Aspose.Pdf.", + "description": "Shows how to load a PDF, apply AES‑256 encryption with user and owner passwords, set specific permissions, and save the protected document.", "tags": [ - "pdf-encryption", - "password-protection", + "pdf encryption", + "password protection", "permissions", - "aspose-pdf", - "csharp" + "aes-256", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", @@ -36924,20 +44857,20 @@ "difficulty": "beginner" }, { - "filename": "encrypt-pdf-with-printing-and-copying-permissions.cs", + "filename": "encrypt-pdf-with-print-copy-permissions.cs", "title": "Encrypt PDF with Printing and Copying Permissions", "description": "Shows how to encrypt a PDF using Aspose.Pdf, set user and owner passwords, and enable printing and content extraction permissions.", "tags": [ - "pdf", - "encryption", + "pdf-encryption", "permissions", "printing", - "copying" + "copying", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Permissions", "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Permissions", "Aspose.Pdf.CryptoAlgorithm", "Aspose.Pdf.Document.Save" ], @@ -36945,152 +44878,173 @@ }, { "filename": "encrypt-pdf-with-smart-card-certificate.cs", - "title": "Encrypt PDF with Smart Card Certificate using Aspose.Pdf", - "description": "Shows how to obtain a certificate from a smart card or HSM and encrypt a PDF with AES‑256, requiring the certificate for opening the document.", + "title": "Encrypt PDF with Smart Card Certificate", + "description": "Shows how to retrieve a certificate from a smart card or HSM and encrypt a PDF so that only the certificate holder can open it, using Aspose.Pdf.", "tags": [ - "pdf encryption", - "smart card", + "pdf-encryption", + "smart-card", "certificate", - "aspose.pdf", - "aes-256" + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Permissions", "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Permissions" + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "encrypt-pdf-with-user-password.cs", - "title": "Encrypt PDF with User Password using Aspose.Pdf", - "description": "Loads a PDF from a byte array, encrypts it with a user password (owner password set to the same value) and returns the encrypted PDF as a byte array.", + "filename": "encrypt-pdf-with-user-owner-passwords-remove-user.cs", + "title": "Encrypt PDF with User and Owner Passwords and Remove User Password", + "description": "Demonstrates how to encrypt a PDF using both user and owner passwords, then open it with the owner password to remove the user password while keeping the document encrypted.", "tags": [ - "pdf", - "encryption", + "pdf-encryption", + "user-password", + "owner-password", "aspose-pdf", - "csharp", - "permissions" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Document.Save", "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm" + "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Document.ChangePasswords" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "encrypted-pdf-with-attachment-and-signature.cs", - "title": "Create Encrypted PDF with Embedded Attachment and Digital Signature", - "description": "The example creates a PDF, embeds a file as an attachment, adds a signature field, applies a PKCS#7 detached digital signature, and encrypts the document with user and owner passwords.", - "tags": [ - "pdf encryption", - "digital signature", - "file attachment", - "Aspose.Pdf", - "PKCS7" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Security.PKCS7Detached", - "Aspose.Pdf.Security.Permissions", - "Aspose.Pdf.Security.CryptoAlgorithm" - ], - "difficulty": "intermediate" + "filename": "encrypt-pdf-with-user-password.cs", + "title": "Encrypt Pdf With User Password", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "extract-certificate-chain-from-pdf-signatures.cs", - "title": "Extract Certificate Chain from PDF Signatures", - "description": "Shows how to load a signed PDF with Aspose.Pdf, extract each signature's signing certificate, build its X509 chain, and save every certificate in the chain as a DER file.", + "filename": "encrypted-pdf-with-attachment-and-signature.cs", + "title": "Encrypted Pdf With Attachment And Signature", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-certificate-chain-from-pdf-signature.cs", + "title": "Extract Certificate Chain from PDF Signature and Save as DER Files", + "description": "Loads a signed PDF, extracts the X509 certificate from each signature field, builds its certificate chain, and writes each certificate in DER format to disk.", "tags": [ "pdf", "signature", "certificate", - "extraction", - "der" + "der", + "extraction" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Field", "Aspose.Pdf.Forms.SignatureField", "Aspose.Pdf.Forms.SignatureField.ExtractCertificateObject", - "Aspose.Pdf.Document.Form" + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Forms.FormField" ], "difficulty": "intermediate" }, + { + "filename": "extract-certificate-chain-from-pdf-signatures.cs", + "title": "Extract Certificate Chain From Pdf Signatures", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "extract-digest-algorithm-from-pdf-signatures.cs", "title": "Extract Digest Algorithm from PDF Signatures", - "description": "Loads a PDF, iterates over its signature fields and logs the digest hash algorithm used by each digital signature for compliance reporting.", + "description": "Loads a PDF, iterates over its form fields to find signature fields, and logs the digest hash algorithm used in each digital signature for compliance reporting.", "tags": [ "pdf", "signature", "digest", - "aspnet", + "aspose", "compliance" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.Field", "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Security.Signature", - "Aspose.Pdf.Security.Signature.GetSignatureAlgorithmInfo", - "Aspose.Pdf.Security.SignatureAlgorithmInfo" + "Aspose.Pdf.Forms.Signature.GetSignatureAlgorithmInfo", + "Aspose.Pdf.Forms.SignatureAlgorithmInfo.DigestHashAlgorithm" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "extract-images-from-signed-pdf.cs", - "title": "Extract Images from Signed PDF Pages", - "description": "Shows how to load a signed PDF with Aspose.Pdf, iterate through each page, extract embedded images, and save them as PNG files.", + "title": "Extract Images from a Signed PDF and Save as PNG", + "description": "The example loads a signed PDF, extracts any signature field images, then iterates through each page to save all embedded images as PNG files.", "tags": [ "pdf", "image-extraction", - "signed-pdf", - "aspose", - "csharp" + "signature", + "aspose.pdf", + "png" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Forms.SignatureField.ExtractImage", "Aspose.Pdf.Page", - "Aspose.Pdf.Page.Resources", - "Aspose.Pdf.Page.Resources.Images", "Aspose.Pdf.XImage", "Aspose.Pdf.XImage.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "extract-images-from-signed-pdf__v2.cs", - "title": "Extract Images from Each Page of a Signed PDF", - "description": "Demonstrates how to load a signed PDF with Aspose.Pdf, iterate through its pages, and save each embedded image into page‑specific folders.", + "title": "Extract Images from Signed PDF into Page‑Specific Folders", + "description": "Demonstrates how to load a signed PDF with Aspose.Pdf, iterate through each page, extract all embedded images, and save them as PNG files in separate folders per page.", "tags": [ "pdf", "image-extraction", "aspose", "pages", - "signed" + "signed-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages", "Aspose.Pdf.Page", - "Aspose.Pdf.Page.Resources.Images", "Aspose.Pdf.XImage", + "Aspose.Pdf.Page.Resources.Images", "Aspose.Pdf.XImage.Save" ], "difficulty": "intermediate" }, + { + "filename": "extract-pdf-signature-signing-time-utc.cs", + "title": "Extract PDF Signature Signing Time and Convert to UTC", + "description": "Loads a signed PDF, locates signature fields, reads the stored signing date, and converts it to UTC format.", + "tags": [ + "pdf", + "signature", + "signing-time", + "utc", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Forms.Signature" + ], + "difficulty": "intermediate" + }, { "filename": "extract-signature-certificate-chain.cs", "title": "Extract Signature Certificate Chain and Verify Expiration", - "description": "Loads a signed PDF, extracts the X.509 certificate from each signature field, builds its certificate chain, and reports whether any chain element is expired.", + "description": "Loads a signed PDF, extracts the X509 certificate from each signature field, builds its certificate chain, and checks the expiration dates of the certificates.", "tags": [ "pdf", "signature", @@ -37110,46 +45064,49 @@ { "filename": "extract-signature-field-metadata.cs", "title": "Extract Signature Field Metadata from PDF", - "description": "Shows how to load a PDF with Aspose.Pdf, iterate through its form fields, identify signature fields, and read both field properties and embedded signature details.", + "description": "Loads a PDF, checks for form fields, and iterates over all signature fields to output their properties, signature details, and extracts any embedded certificate or image.", "tags": [ "pdf", "signature", + "form", "metadata", - "forms", - "aspose" + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Field", "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.Signature" + "Aspose.Pdf.Forms.Signature", + "Aspose.Pdf.Forms.SignatureField.ExtractCertificate", + "Aspose.Pdf.Forms.SignatureField.ExtractImage" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "extract-signature-field-names-and-page-numbers.cs", "title": "Extract Signature Field Names and Page Numbers from PDF", - "description": "Shows how to load a PDF with Aspose.Pdf, access its form collection, filter for signature fields, and output each field's name and page number.", + "description": "Shows how to load a PDF with Aspose.Pdf, iterate over its form fields, identify signature fields, and retrieve each field's name and the page number it appears on.", "tags": [ "pdf", "signature", "form", "fields", - "aspose" + "extraction" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.Form", "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.SignatureField" + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Forms.SignatureField.FullName", + "Aspose.Pdf.Forms.SignatureField.PageIndex" ], "difficulty": "beginner" }, { "filename": "extract-signature-image-to-png.cs", "title": "Extract Signature Image from PDF and Save as PNG", - "description": "Shows how to locate a signature field in a PDF, extract its appearance image, and write it out as a PNG file using Aspose.Pdf.", + "description": "Demonstrates how to locate a signature field in a PDF, extract its appearance image, and write the image to a PNG file using Aspose.Pdf.", "tags": [ "pdf", "signature", @@ -37160,6 +45117,7 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.FormField", "Aspose.Pdf.Forms.SignatureField", "Aspose.Pdf.Forms.SignatureField.ExtractImage" ], @@ -37167,179 +45125,280 @@ }, { "filename": "extract-signature-images.cs", - "title": "Extract Signature Field Images from a PDF", - "description": "Demonstrates how to locate signature fields in a PDF and extract their appearance images as JPEG files using Aspose.Pdf.", + "title": "Extract Signature Field Images from PDF", + "description": "Shows how to loop through signature fields in a PDF document and save each field's appearance as a JPEG image.", "tags": [ - "signature", - "image-extraction", "pdf", - "aspose", - "forms" + "signature", + "image", + "extraction", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.Field", "Aspose.Pdf.Forms.SignatureField", "Aspose.Pdf.Forms.SignatureField.ExtractImage", - "Aspose.Pdf.Document.Form" + "Aspose.Pdf.Forms.SignatureField.FullName", + "Aspose.Pdf.Forms.SignatureField.PageIndex" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "extract-signature-signing-time-utc.cs", - "title": "Extract Signature Signing Time and Convert to UTC", - "description": "Shows how to open a signed PDF, retrieve a signature field, read its signing date, and convert that timestamp to UTC in ISO‑8601 format.", + "title": "Extract Signature Signing Time Utc", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "lock-form-fields-after-signing.cs", + "title": "Lock Form Fields After Signing", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "pdf-certification-signature-no-modifications.cs", + "title": "Pdf Certification Signature No Modifications", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "remove-digital-signature-from-pdf.cs", + "title": "Remove Digital Signature from PDF", + "description": "Shows how to programmatically strip a digital signature from a PDF when privileges allow, using signature sanitization and explicit removal of signature field annotations.", "tags": [ "pdf", "signature", - "signing-time", - "utc", - "aspose" + "remove", + "aspose-pdf", + "sanitization" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Decrypt", + "Aspose.Pdf.Document.EnableSignatureSanitization", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.Annotation", "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.Signature" + "Aspose.Pdf.Annotations.AnnotationCollection.Delete", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "intermediate" + }, + { + "filename": "restrict-copy-paste-in-pdf.cs", + "title": "Restrict Copy-Paste in PDF with Encryption", + "description": "Demonstrates how to encrypt a PDF using Aspose.Pdf, set permissions to allow printing and modification while disabling content extraction (copy‑paste).", + "tags": [ + "pdf encryption", + "permissions", + "copy-paste", + "Aspose.Pdf", + "C#" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Permissions", + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "lock-form-fields-after-signing.cs", - "title": "Lock Specific Form Fields After Signing a PDF", - "description": "Demonstrates how to add a signature field, apply a PKCS#7 signature, and set selected form fields to read‑only to prevent edits after signing using Aspose.Pdf.", + "filename": "retrieve-reason-location-from-pdf-signatures.cs", + "title": "Retrieve Reason and Location from PDF Signatures", + "description": "Demonstrates loading a signed PDF with Aspose.Pdf, iterating over signature fields, and extracting the Reason and Location metadata from each digital signature.", "tags": [ "pdf", "signature", - "form-fields", - "readonly", - "aspose-pdf" + "metadata", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.PKCS7", + "Aspose.Pdf.Signatures.PKCS7", "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Document.HandleSignatureChange", - "Aspose.Pdf.Forms.SignatureField.Sign" + "Aspose.Pdf.Document.Form" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "pdf-certification-signature-no-modifications.cs", - "title": "Create a PDF Certification Signature that Disallows Modifications", - "description": "Demonstrates how to add a certification (DocMDP) signature to a PDF using Aspose.Pdf, configuring the document to be append‑only so that no further changes are allowed after signing.", + "filename": "retrieve-signature-reason-location.cs", + "title": "Retrieve Signature Reason Location", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "set-pdf-privileges-disable-extraction-form-filling.cs", + "title": "Set Pdf Privileges Disable Extraction Form Filling", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "sign-pdf-add-custom-xmp-metadata.cs", + "title": "Sign PDF and Embed Custom XMP Metadata", + "description": "Demonstrates how to create a visible signature field, apply a PKCS#1 digital signature, and add custom XMP metadata describing the signing process using Aspose.Pdf.", "tags": [ - "pdf", - "certification", - "signature", - "security", - "aspose" + "pdf signing", + "xmp metadata", + "digital signature", + "aspnet", + "custom metadata" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.PKCS7", - "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Forms.Form.SignaturesAppendOnly", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.PKCS1", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Document.Metadata", + "Aspose.Pdf.XmpMetadata.RegisterNamespaceUri" ], "difficulty": "intermediate" }, { - "filename": "remove-digital-signature-from-pdf.cs", - "title": "Remove Digital Signature from PDF", - "description": "Shows how to strip a digital signature from a PDF (when allowed) by enabling signature sanitization and saving the document with Aspose.Pdf.", + "filename": "sign-pdf-and-flatten-form-fields.cs", + "title": "Sign PDF and Flatten Form Fields", + "description": "Demonstrates loading a PDF, adding a digital signature field, applying a PKCS#7 signature, flattening all form fields to make them non‑editable, and saving the signed document.", "tags": [ - "pdf", - "signature", - "remove", - "sanitization", - "aspose" + "pdf-signature", + "flatten", + "digital-signature", + "form-fields", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.EnableSignatureSanitization", + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Forms.PKCS7", + "Aspose.Pdf.Forms.Signature", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Document.Flatten", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "retrieve-signature-reason-location.cs", - "title": "Retrieve Reason and Location from PDF Digital Signatures", - "description": "Loads a PDF, iterates through its form fields, identifies signature fields and extracts the Reason and Location metadata stored in each signature's PKCS#7 object.", + "filename": "sign-pdf-and-lock-readonly.cs", + "title": "Sign PDF and Enforce Read‑Only Mode", + "description": "Demonstrates how to add a digital signature to a PDF using Aspose.Pdf, then set the document to append‑only mode so the file becomes read‑only after signing.", "tags": [ - "pdf", - "digital-signature", - "metadata", - "aspose", - "csharp" + "pdf-signature", + "read-only", + "append-only", + "Aspose.Pdf", + "C#" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Page", "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.PKCS7", - "Aspose.Pdf.Forms.SignatureField.Signature" + "Aspose.Pdf.Signatures.PKCS1", + "Aspose.Pdf.Document.Form.SignaturesAppendOnly" ], "difficulty": "intermediate" }, { - "filename": "set-pdf-privileges-disable-extraction-form-filling.cs", - "title": "Set PDF Privileges to Disable Extraction and Form Filling", - "description": "Loads a signed PDF, applies AES‑256 encryption with an owner password and permissions that allow only printing, thereby disabling content extraction and form filling, and saves the updated file.", + "filename": "sign-pdf-and-lock-signature-field.cs", + "title": "Sign PDF and Lock Signature Field", + "description": "Demonstrates how to add a digital signature to a PDF, make the signature field read‑only, and enable append‑only mode to prevent further modifications.", "tags": [ - "pdf", - "encryption", - "permissions", - "aspose.pdf", - "csharp" + "pdf-signature", + "signature-field", + "read-only", + "append-only", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Forms.PKCS1", + "Aspose.Pdf.Rectangle", + "SignatureField.Sign", + "SignatureField.ReadOnly", + "Document.Form.SignaturesAppendOnly", + "Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "sign-pdf-add-custom-xmp-metadata.cs", - "title": "Sign PDF with PKCS#1 and Embed Custom XMP Metadata", - "description": "The example loads a PDF, adds a visible signature field, signs the document using a PKCS#1 certificate, and embeds a custom XMP metadata property describing the signing process.", + "filename": "sign-pdf-append-only.cs", + "title": "Sign Pdf Append Only", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "sign-pdf-embed-xfa-data.cs", + "title": "Sign Pdf Embed Xfa Data", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "sign-pdf-embed-xfa-form-data.cs", + "title": "Sign PDF and Embed Custom XFA Form Data", + "description": "Demonstrates loading a PDF, assigning custom XFA XML to its form, creating a signature field, and applying a PKCS#7 digital signature using a certificate.", "tags": [ "pdf-signature", - "xmp", - "custom-metadata", - "aspose-pdf", - "digital-signature" + "xfa", + "digital-signature", + "csharp", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", + "Aspose.Pdf.Forms.Form.AssignXfa", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.PKCS1", - "Aspose.Pdf.Forms.SignatureField.Sign", - "Aspose.Pdf.Document.Metadata.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.PKCS7" ], "difficulty": "intermediate" }, { - "filename": "sign-pdf-and-flatten-signature.cs", + "filename": "sign-pdf-enforce-finality.cs", + "title": "Sign Pdf Enforce Finality", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "sign-pdf-flatten-form-fields.cs", + "title": "Sign Pdf Flatten Form Fields", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "sign-pdf-flatten-signature.cs", "title": "Sign PDF and Flatten Signature Appearance", - "description": "Demonstrates how to add a digital signature to a PDF using a PKCS#7 certificate, then flatten the document to make the signature appearance permanent and prevent further visual changes.", + "description": "Demonstrates how to add a digital signature to a PDF using a PKCS#7 certificate, then flatten the document so the signature appearance becomes a static part of the page.", "tags": [ "pdf-signing", - "signature-flatten", - "digital-signature", - "aspose-pdf", - "pkcs7" + "flatten", + "signature", + "pkcs7", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.SignatureField", "Aspose.Pdf.Forms.PKCS7", "Aspose.Pdf.Forms.SignatureField.Sign", @@ -37349,321 +45408,370 @@ "difficulty": "intermediate" }, { - "filename": "sign-pdf-append-only.cs", - "title": "Sign PDF with Append‑Only for Future Signatures", - "description": "Shows how to create a signature field, apply a PKCS#7 digital signature, enable append‑only mode, and save the PDF so additional signatures can be added later.", + "filename": "sign-pdf-hardware-token-pkcs11.cs", + "title": "Sign PDF using a hardware token (PKCS#11)", + "description": "Demonstrates how to add a signature field to a PDF and sign it with a certificate stored on a hardware token via the PKCS#11 interface using Aspose.Pdf.", "tags": [ "pdf-signature", - "digital-signature", - "append-only", - "Aspose.Pdf", - "C#" + "hardware-token", + "pkcs11", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.PKCS7", + "Aspose.Pdf.Forms.ExternalSignature", "SignatureField.Sign", - "Document.Form.Add", - "Document.Form.SignaturesAppendOnly", "Document.Save" ], "difficulty": "intermediate" }, { - "filename": "sign-pdf-embed-xfa-data.cs", - "title": "Sign PDF and Embed Custom XFA Data", - "description": "Loads a PDF, assigns custom XFA XML to the form, creates a signature field, signs the document with a PKCS#7 certificate, and saves the signed PDF.", + "filename": "sign-pdf-lock-signature-field.cs", + "title": "Sign Pdf Lock Signature Field", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "sign-pdf-lock-specific-form-fields.cs", + "title": "Sign PDF and Lock Specific Form Fields", + "description": "Demonstrates loading a PDF, adding or using a signature field, applying a PKCS#7 digital signature, and setting selected form fields to read‑only after signing.", "tags": [ "pdf-signature", - "xfa", - "digital-signature", - "csharp", - "aspose-pdf" + "form-fields", + "read-only", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.Form", "Aspose.Pdf.Forms.SignatureField", "Aspose.Pdf.Forms.PKCS7", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Document.Form.AssignXfa", "Aspose.Pdf.Forms.SignatureField.Sign", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.Form.SignaturesAppendOnly" ], "difficulty": "intermediate" }, { - "filename": "sign-pdf-enforce-finality.cs", - "title": "Sign PDF and Enforce Finality", - "description": "Shows how to add a digital signature to a PDF with Aspose.Pdf and then lock the document to prevent any further signatures.", + "filename": "sign-pdf-prevent-additional-signatures.cs", + "title": "Sign PDF and Prevent Additional Signatures", + "description": "Demonstrates how to digitally sign a PDF with Aspose.Pdf, enable append‑only mode to block further signatures, and save the final document.", "tags": [ "pdf-signature", "digital-signature", - "document-lock", - "Aspose.Pdf", - "C#" + "append-only", + "security", + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.SignatureField", "Aspose.Pdf.Forms.PKCS1", - "Aspose.Pdf.Forms.Form.Add", - "Aspose.Pdf.Forms.SignatureField.Sign", - "Aspose.Pdf.Forms.Form.SignaturesAppendOnly", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Rectangle", + "Document.Form.SignaturesAppendOnly", + "SignatureField.Sign", + "Document.Save" ], "difficulty": "intermediate" }, { - "filename": "sign-pdf-flatten-form-fields.cs", - "title": "Sign PDF and Flatten Form Fields", - "description": "Demonstrates how to add a digital signature to a PDF using a PKCS#7 certificate, then flatten all form fields to prevent further editing.", + "filename": "sign-pdf-remove-annotations-preserve-signature.cs", + "title": "Sign Pdf Remove Annotations Preserve Signature", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "sign-pdf-remove-annotations.cs", + "title": "Sign PDF and Remove Annotations While Preserving Signature", + "description": "Demonstrates how to digitally sign a PDF using a PFX certificate, then delete all regular annotations while keeping the signature field intact, and finally save the cleaned document.", "tags": [ "pdf-signature", - "flatten", + "remove-annotations", "digital-signature", - "form-fields", - "aspnet" + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Annotations.Border", "Aspose.Pdf.Forms.PKCS7", - "Aspose.Pdf.Document.Flatten()", - "Aspose.Pdf.Forms.SignatureField.Sign()", - "Aspose.Pdf.PageAnnotations.Add()" + "Aspose.Pdf.Document.RemovePdfaCompliance", + "Aspose.Pdf.Document.RemovePdfUaCompliance", + "Aspose.Pdf.Annotations.AnnotationCollection.Delete", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "sign-pdf-lock-signature-field.cs", - "title": "Sign PDF and Lock Signature Field", - "description": "Demonstrates how to add a digital signature field to a PDF, apply a PKCS#7 signature using a certificate, and lock the field to prevent further modifications.", + "filename": "sign-pdf-with-4096-rsa-certificate.cs", + "title": "Sign PDF with 4096‑bit RSA Certificate", + "description": "Demonstrates how to digitally sign a PDF using a 4096‑bit RSA private key stored in a PFX file with Aspose.Pdf, adding a visible signature field to the first page.", "tags": [ "pdf-signature", - "digital-signature", - "aspose-pdf", - "signature-field", - "read-only" + "rsa", + "aspose.pdf", + "pfx", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.PKCS7", - "Aspose.Pdf.Forms.SignatureField.Sign" + "Aspose.Pdf.Forms.PKCS1", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Page.Annotations.Add", + "Aspose.Pdf.Forms.SignatureField.Sign", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "sign-pdf-remove-annotations-preserve-signature.cs", - "title": "Sign PDF and Remove All Annotations While Preserving Signature", - "description": "Demonstrates how to add a digital signature to a PDF, disable signature sanitization, and then delete every annotation except the signature field before saving the document.", + "filename": "sign-pdf-with-certificate.cs", + "title": "Sign PDF with a Certificate using Aspose.Pdf", + "description": "Demonstrates loading a PFX certificate, creating a signature field on a PDF, and applying a digital signature with Aspose.Pdf.", "tags": [ - "pdf-signature", - "annotations", - "aspose-pdf", - "csharp", - "document-cleanup" + "pdf", + "digital-signature", + "certificate", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.PKCS7", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Document.EnableSignatureSanitization", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.PKCS1", + "Aspose.Pdf.Forms.SignatureField.Sign", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Form.Add" ], "difficulty": "intermediate" }, { "filename": "sign-pdf-with-custom-image-appearance.cs", "title": "Sign PDF with Custom Image Appearance", - "description": "Demonstrates how to add a visible digital signature to a PDF using a custom graphic image as the signature appearance with Aspose.Pdf.", + "description": "Demonstrates how to add a visible digital signature to a PDF using a custom PNG image as the signature appearance and a PFX certificate.", "tags": [ "pdf-signature", - "custom-appearance", - "image", - "aspnet", - "digital-signature" + "visible-appearance", + "custom-image", + "aspose-pdf", + "pfx" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.SignatureField", "Aspose.Pdf.Forms.PKCS1", - "Aspose.Pdf.Forms.SignatureCustomAppearance" + "Aspose.Pdf.Forms.SignatureField.Sign", + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate" }, { "filename": "sign-pdf-with-ecc-p256.cs", - "title": "Sign PDF with ECC P‑256 Private Key using Aspose.Pdf", - "description": "Demonstrates how to sign a PDF document with an ECC P‑256 private key stored in a PFX file using Aspose.Pdf, creating a signature field and applying a PKCS#7 signature.", + "title": "Sign PDF with ECC P‑256 Private Key", + "description": "Shows how to load an ECC certificate, add a signature field, and apply a PKCS#7 signature using a custom ECDSA signer to create a compact signature on a PDF document.", "tags": [ - "pdf-signature", + "pdf", "ecc", - "p256", - "aspose-pdf", + "signature", + "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.SignatureField", "Aspose.Pdf.Forms.PKCS7", - "SignatureField.Sign", - "Document.Save" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.SignatureField.Sign", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "sign-pdf-with-hardware-token.cs", - "title": "Sign PDF with Hardware Token Certificate", - "description": "Shows how to load a PDF, add a signature field, retrieve a signing certificate from a hardware token, and sign the document using Aspose.Pdf's ExternalSignature.", + "title": "Sign Pdf With Hardware Token", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "sign-pdf-with-incremental-updates.cs", + "title": "Sign PDF with Incremental Updates for Future Signatures", + "description": "Demonstrates how to add a digital signature to a PDF using Aspose.Pdf while enabling incremental updates so additional signatures can be appended later.", "tags": [ - "pdf", - "signing", - "hardware-token", - "certificate", - "Aspose.Pdf" + "pdf-signature", + "incremental-update", + "digital-signature", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.ExternalSignature", - "Aspose.Pdf.Forms.SignatureField.Sign", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.PKCS7", + "Aspose.Pdf.Rectangle", + "Document.Form.SignaturesAppendOnly", + "Document.Form.Add", + "SignatureField.Sign", + "Document.Save" ], "difficulty": "intermediate" }, { - "filename": "sign-pdf-with-metadata.cs", - "title": "Sign PDF with Reason, Contact Info, and Location", - "description": "Demonstrates how to add a digital signature field to a PDF and sign it using a PKCS#7 certificate while populating the Reason, ContactInfo, and Location metadata fields with Aspose.Pdf.", + "filename": "sign-pdf-with-pkcs7-and-custom-xml.cs", + "title": "Sign PDF with PKCS#7 and embed custom XML signature", + "description": "The example loads a PDF, creates a signature field, applies a PKCS#7 digital signature using a PFX certificate, demonstrates where to embed custom XML signature data, and saves the signed document.", "tags": [ - "pdf signing", - "digital signature", - "metadata", - "Aspose.Pdf", - "PKCS7" + "pdf-signature", + "pkcs7", + "custom-xml", + "aspose-pdf", + "digital-signature" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.SignatureField", "Aspose.Pdf.Forms.PKCS7", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.SignatureField.Sign", + "Aspose.Pdf.Document.Form.Add", + "Aspose.Pdf.Forms.SignatureField.Sign", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "sign-pdf-with-pkcs7-signature.cs", - "title": "Sign PDF with PKCS#7 Signature Field", - "description": "Shows how to add a signature field to a PDF, configure a PKCS#7 signature using a PFX certificate, and sign the document using Aspose.Pdf.", + "title": "Sign Pdf With Pkcs7 Signature", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "sign-pdf-with-reason-contact-location.cs", + "title": "Sign PDF with Reason, Contact Info, and Location", + "description": "Demonstrates how to add a digital signature field to a PDF and sign it using a PKCS#7 certificate while populating the Reason, ContactInfo, and Location properties.", "tags": [ "pdf-signature", - "pkcs7", - "aspose.pdf", "digital-signature", - "csharp" + "pkcs7", + "certificate", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.SignatureField", "Aspose.Pdf.Forms.PKCS7", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Forms.SignatureField.Sign" + "Aspose.Pdf.Page.Annotations.Add", + "Aspose.Pdf.Forms.SignatureField.Sign", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "sign-pdf-with-rsa-4096-certificate.cs", - "title": "Sign PDF with RSA 4096‑bit Certificate", - "description": "Shows how to load a PDF, add a signature field, and digitally sign it using a PKCS#1 RSA 4096‑bit certificate stored in a PFX file.", + "title": "Sign Pdf With Rsa 4096 Certificate", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "sign-pdf-with-sha384-digest.cs", + "title": "Sign PDF with SHA‑384 Digest using Aspose.Pdf", + "description": "Demonstrates how to digitally sign a PDF document using an external X509 certificate with the SHA‑384 digest algorithm via Aspose.Pdf.", "tags": [ - "pdf", - "signing", - "rsa", - "pfx", - "aspose" + "pdf-signature", + "sha384", + "aspose-pdf", + "csharp", + "digital-signature" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.PKCS1", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Document.Form.Add", - "Aspose.Pdf.Forms.SignatureField.Sign", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.ExternalSignature", + "Aspose.Pdf.Forms.DigestHashAlgorithm", + "Aspose.Pdf.Forms.SignatureField.Sign" ], "difficulty": "intermediate" }, { "filename": "sign-pdf-with-sha512-digest.cs", - "title": "Sign PDF with SHA‑512 Digest using Aspose.Pdf", - "description": "Demonstrates loading a certificate, adding a signature field to a PDF, and signing it with the SHA‑512 digest algorithm using Aspose.Pdf.", + "title": "Sign Pdf With Sha512 Digest", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "sign-pdf-with-sha512.cs", + "title": "Sign PDF with SHA‑512 Digest Using Aspose.Pdf", + "description": "Loads a PDF, adds a signature field, and signs the document with a PFX certificate using the SHA‑512 digest algorithm, then saves the signed file.", "tags": [ "pdf-signature", "sha512", "certificate", "aspose-pdf", - "digital-signature" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.SignatureField", "Aspose.Pdf.Forms.ExternalSignature", - "Aspose.Pdf.DigestHashAlgorithm", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.DigestHashAlgorithm" ], "difficulty": "intermediate" }, { - "filename": "sign-pdf-with-smart-card-no-pin.cs", - "title": "Sign PDF with Smart Card without PIN Prompt", - "description": "Shows how to create a signature field in a PDF and sign it using a certificate from a smart card via Aspose.Pdf, performing the signing operation silently without a PIN dialog.", - "tags": [ - "pdf-signature", - "smart-card", - "aspose-pdf", - "csharp", - "digital-signature" + "filename": "sign-pdf-with-smart-card-no-pin.cs", + "title": "Sign PDF with Smart Card Certificate (No PIN Prompt)", + "description": "Shows how to add a visible signature field to a PDF and sign it using a smart‑card X509Certificate2 without displaying a PIN prompt, leveraging Aspose.Pdf.", + "tags": [ + "pdf signing", + "smart card", + "digital signature", + "c#", + "aspose.pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.SignatureField", "Aspose.Pdf.Forms.ExternalSignature", - "Aspose.Pdf.Forms.SignatureField.Sign" + "Aspose.Pdf.Forms.SignatureField.Sign", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "sign-pdf-with-smart-card.cs", "title": "Sign PDF with Smart Card Certificate", - "description": "Demonstrates loading a PDF, creating a signature field, and signing the document using a smart‑card certificate accessed from the current user store.", + "description": "Shows how to load a PDF, add a signature field, and sign it using a smart‑card certificate (private key) via Aspose.Pdf.", "tags": [ - "pdf", - "signature", - "smartcard", + "pdf-signing", + "smart-card", "certificate", - "aspose" + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.SignatureField", "Aspose.Pdf.Forms.ExternalSignature", - "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.SignatureField.Sign", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" @@ -37671,195 +45779,231 @@ { "filename": "sign-pdf-with-timestamp.cs", "title": "Sign PDF with Timestamp from TSA", - "description": "Demonstrates how to add a visible digital signature to a PDF and apply a trusted timestamp from a Time‑Stamp Authority using Aspose.Pdf.", + "description": "Shows how to add a digital PKCS#7 signature to a PDF and request a trusted timestamp from a Time‑Stamp Authority using Aspose.Pdf.", "tags": [ - "pdf", - "digital-signature", + "pdf-signature", "timestamp", - "aspnet", - "tsp" + "tsp", + "digital-signature", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.SignatureField", "Aspose.Pdf.Forms.PKCS7", "Aspose.Pdf.Forms.TimestampSettings", - "Aspose.Pdf.Forms.SignatureField.Sign", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate" }, { "filename": "sign-pdf-with-visible-signature-pfx.cs", - "title": "Sign PDF with Visible Signature Using PFX Certificate", - "description": "Demonstrates how to load a PDF, add a visible signature field, and digitally sign the document using a PFX certificate with Aspose.Pdf.", - "tags": [ - "pdf-signature", - "pfx", - "aspose-pdf", - "digital-signature", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.PKCS1", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.Form.Add", - "Aspose.Pdf.Forms.SignatureField.Sign", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "intermediate" + "title": "Sign Pdf With Visible Signature Pfx", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "sign-pdf-with-windows-certificate.cs", - "title": "Sign PDF with Certificate from Windows Store", - "description": "Shows how to retrieve a certificate by thumbprint from the CurrentUser store and apply it to a PDF using Aspose.Pdf's signature field and external signature classes.", + "title": "Sign PDF with Windows Store Certificate using Aspose.Pdf", + "description": "Shows how to retrieve a certificate from the Windows personal store by thumbprint and apply it to a PDF signature field using Aspose.Pdf.", "tags": [ "pdf signing", "certificate", + "windows store", "aspose.pdf", - "csharp", - "windows-store" + "c#" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.SignatureField", "Aspose.Pdf.Forms.ExternalSignature", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Forms.SignatureField.Sign" + "Aspose.Pdf.Forms.Form.Add" ], "difficulty": "intermediate" }, { "filename": "validate-pdf-digital-signature-ocsp.cs", - "title": "Validate PDF Digital Signature Using OCSP", - "description": "Loads a signed PDF, locates the first signature field, and verifies the signature using OCSP revocation checking with Aspose.Pdf validation options.", + "title": "Validate Pdf Digital Signature Ocsp", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "validate-pdf-digital-signature.cs", + "title": "Validate PDF Digital Signature with Certificate Chain Check", + "description": "Loads a PDF, locates the first signature field, configures validation options to check the certificate chain, and verifies the detached PKCS#7 signature.", "tags": [ "pdf", "digital-signature", - "ocsp", "validation", + "certificate-chain", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.SignatureField", "Aspose.Pdf.Security.ValidationOptions", - "Aspose.Pdf.Security.ValidationMethod", "Aspose.Pdf.Security.ValidationMode", - "Aspose.Pdf.Security.Signature.Verify", - "Aspose.Pdf.Security.ValidationResult" + "Aspose.Pdf.Forms.Signature.Verify" ], "difficulty": "intermediate" }, { - "filename": "validate-pdf-digital-signature.cs", - "title": "Validate PDF Digital Signature Against Trusted CA", - "description": "Loads a PDF, locates signature fields, verifies each signature using strict validation options, and writes a PDF/A‑1B structural validation log.", + "filename": "validate-pdf-signature-crl-revocation.cs", + "title": "Validate Pdf Signature Crl Revocation", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "validate-pdf-signature-crl.cs", + "title": "Validate PDF Signature Using CRL Revocation Checking", + "description": "Shows how to load a signed PDF with Aspose.Pdf, set ValidationOptions to use CRL distribution points, and verify each signature field's revocation status.", "tags": [ "pdf", "signature", + "crl", "validation", - "aspose", - "csharp" + "revocation" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Security.Signature", "Aspose.Pdf.Security.ValidationOptions", "Aspose.Pdf.Security.ValidationResult", - "Aspose.Pdf.Document.Validate", - "Aspose.Pdf.Security.ValidationMode", - "Aspose.Pdf.PdfFormat" + "Aspose.Pdf.Forms.Field" ], "difficulty": "intermediate" }, { - "filename": "validate-pdf-signature-crl-revocation.cs", - "title": "Validate PDF Signature Using CRL Revocation Checking", - "description": "Demonstrates how to load a signed PDF, configure validation options to use CRL distribution points, and verify each signature field's revocation status.", + "filename": "validate-pdf-signature-extract-san.cs", + "title": "Validate PDF Signature and Extract SAN from Signing Certificate", + "description": "Demonstrates how to load a signed PDF, verify each signature using strict validation, and retrieve the signing certificate's Subject Alternative Name (SAN) entries.", "tags": [ + "pdf", "signature", "validation", - "crl", - "pdf", - "aspose" + "certificate", + "san" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Security.Signature", "Aspose.Pdf.Security.ValidationOptions", - "Aspose.Pdf.Security.ValidationMethod", "Aspose.Pdf.Security.ValidationMode", - "Aspose.Pdf.Security.Signature.Verify" + "Aspose.Pdf.Security.ValidationResult" ], "difficulty": "intermediate" }, { - "filename": "validate-pdf-signature-extract-san.cs", - "title": "Validate PDF Signature and Extract Certificate SAN", - "description": "Demonstrates how to verify a PDF digital signature using SignedCms and retrieve the signing certificate's Subject Alternative Name entries with Aspose.Pdf.", + "filename": "validate-pdf-signature-ocsp.cs", + "title": "Validate PDF Signature Using OCSP", + "description": "Demonstrates how to load a signed PDF, configure OCSP validation options, and verify each digital signature's revocation status using Aspose.Pdf.", "tags": [ - "pdf", "signature", - "certificate", - "san", - "validation" + "ocsp", + "validation", + "pdf", + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.ValidationOptions", + "Aspose.Pdf.ValidationMethod", + "Aspose.Pdf.ValidationMode", "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.SignatureField.ExtractCertificateObject", - "Aspose.Pdf.Forms.Signature" + "Aspose.Pdf.Security.Signature", + "Aspose.Pdf.Security.ValidationResult" ], "difficulty": "intermediate" }, { - "filename": "validate-pkcs7-detached-signature.cs", - "title": "Validate PKCS#7 Detached Signature and Certificate Chain in PDF", - "description": "Shows how to load a PDF, find a signature field, and verify a PKCS#7 detached digital signature while performing certificate‑chain validation using Aspose.Pdf.", + "filename": "validate-pdf-signature-timestamp.cs", + "title": "Validate PDF Signature and Check Timestamp Against Certificate Validity", + "description": "Shows how to load a signed PDF, locate the first signature field, verify the signature using strict validation options, extract the signing timestamp, and (if the certificate is accessible) compare the timestamp to the certificate's validity period.", "tags": [ "pdf", "signature", "validation", - "certificate-chain", - "aspnet" + "timestamp", + "certificate" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.SignatureField", "Aspose.Pdf.Security.Signature", "Aspose.Pdf.Security.ValidationOptions", - "Aspose.Pdf.Security.ValidationResult", - "Aspose.Pdf.Security.Signature.Verify" + "Aspose.Pdf.Security.ValidationMode", + "Aspose.Pdf.Security.ValidationResult" + ], + "difficulty": "intermediate" + }, + { + "filename": "validate-pdf-signature.cs", + "title": "Validate PDF Digital Signature with Aspose.Pdf", + "description": "Loads a PDF, locates signature fields, and validates each digital signature using Aspose.Pdf's validation options and strict mode, reporting the validation status.", + "tags": [ + "pdf", + "digital-signature", + "validation", + "aspose-pdf", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Security.ValidationOptions", + "Aspose.Pdf.Security.ValidationMode", + "Aspose.Pdf.Security.Signature.Verify", + "Aspose.Pdf.Security.ValidationResult" ], "difficulty": "intermediate" + }, + { + "filename": "validate-pkcs7-detached-signature.cs", + "title": "Validate Pkcs7 Detached Signature", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" } ] }, { "name": "stamping", - "file_count": 50, + "file_count": 72, "files": [ + "add-background-image-stamp-to-pdf.cs", "add-bold-outlined-text-stamp.cs", + "add-bottom-left-text-stamp.cs", "add-confidential-text-stamp-to-pdf.cs", "add-custom-sized-page-stamp.cs", - "add-custom-text-stamp-to-pdf.cs", + "add-custom-text-stamp-to-pdf-first-page.cs", "add-diagonal-image-watermark-to-pdf.cs", "add-diagonal-text-stamp-watermark.cs", + "add-faint-overlay-stamp-to-pdf-pages.cs", "add-faint-text-overlay-stamp-to-pdf-pages.cs", "add-fixed-size-image-stamp-to-pdf-pages.cs", + "add-full-page-image-watermark-to-pdf.cs", "add-full-page-image-watermark.cs", "add-fully-opaque-image-watermark.cs", + "add-global-text-stamp-to-all-pdf-pages.cs", "add-image-background-floatingbox-page-4.cs", + "add-image-stamp-alt-text-pdfa.cs", "add-image-stamp-alt-text-pdfa1b.cs", - "add-image-stamp-as-background-to-pdf-pages.cs", + "add-image-stamp-annotation-to-pdf.cs", "add-image-stamp-flatten-annotations.cs", + "add-image-stamp-floatingbox-page-4.cs", + "add-image-stamp-from-memory-stream-to-pdf.cs", "add-image-stamp-from-memory-stream.cs", + "add-image-stamp-percentage-position.cs", "add-image-stamp-preserve-acroform-fields.cs", "add-image-stamp-preserve-annotations.cs", "add-image-stamp-preserve-bookmarks.cs", @@ -37869,100 +46013,152 @@ "add-image-stamp-preserve-xmp-metadata.cs", "add-image-stamp-to-encrypted-pdf.cs", "add-image-stamp-to-page-two.cs", + "add-image-stamp-to-pdf-form.cs", + "add-image-stamp-to-pdf-page.cs", "add-image-stamp-to-pdf-with-form-fields.cs", "add-image-stamp-to-signed-pdf.cs", "add-image-stamp-top-right-corner.cs", + "add-image-stamp-unicode-alt-text.cs", "add-image-stamp-with-alt-text-to-pdf-page.cs", "add-image-stamp-with-unicode-alt-text.cs", "add-low-quality-image-stamp-to-pdf.cs", "add-multi-line-text-stamp-custom-line-spacing.cs", + "add-multi-line-text-stamp.cs", + "add-opaque-image-watermark-to-pdf.cs", "add-outlined-text-stamp.cs", "add-page-stamp-to-specific-pdf-pages.cs", "add-rotated-image-stamp-to-pdf.cs", + "add-rotated-text-stamp-to-pdf-pages.cs", + "add-rotated-text-watermark.cs", "add-rtl-text-stamp-to-pdf.cs", "add-semi-transparent-logo-stamp-to-first-pdf-page.cs", - "add-slanted-text-watermark-to-pdf.cs", + "add-semi-transparent-logo-stamp-to-pdf.cs", "add-text-stamp-auto-adjust-font-size.cs", - "add-text-stamp-to-all-pdf-pages.cs", + "add-text-stamp-auto-adjust-font.cs", "add-text-stamp-with-background-box.cs", "add-upside-down-image-stamp.cs", + "align-image-stamp-top-right-margin.cs", "align-text-stamp-bottom-left-margin.cs", + "apply-fixed-size-image-stamp-to-pdf-pages.cs", "apply-image-stamp-percentage-offsets.cs", "apply-image-stamp-to-all-pdf-pages.cs", "apply-pdf-page-background-stamp.cs", + "create-page-stamp-from-existing-pdf-page.cs", "create-page-stamp-from-pdf.cs", "fit-image-stamp-rectangle.cs", + "fit-image-stamp-within-rectangle.cs", "place-image-stamp-at-custom-coordinates.cs", + "place-image-stamp-custom-coordinates.cs", "rotate-image-stamp-45-degrees.cs", + "scale-image-stamp-full-page-width.cs", "scale-image-stamp-to-full-page-width.cs" ], "required_namespaces": [ "Aspose.Pdf", "Aspose.Pdf.Text", "Aspose.Pdf.Annotations", + "Aspose.Pdf.Drawing", "Aspose.Pdf.Facades" ], "key_apis": [ "ImageStamp", "TextStamp", "PdfPageStamp", - "PdfSaveOptions" + "StampAnnotation" ], "examples": [ + { + "filename": "add-background-image-stamp-to-pdf.cs", + "title": "Add Background Image Stamp to PDF Pages", + "description": "Shows how to place an image stamp behind the existing content of each PDF page by setting the Background property to true using Aspose.Pdf.", + "tags": [ + "image-stamp", + "background", + "pdf", + "watermark", + "Aspose.Pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.ImageStamp", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Page", + "Aspose.Pdf.ImageStamp.Background" + ], + "difficulty": "beginner" + }, { "filename": "add-bold-outlined-text-stamp.cs", "title": "Add Bold Outlined Text Stamp to PDF", - "description": "Demonstrates how to place a text stamp with fill‑stroke rendering on each page of a PDF, creating bold outlined text using Aspose.Pdf.", + "description": "Shows how to create a text stamp with fill‑stroke rendering to produce bold outlined text on a PDF page using Aspose.Pdf.", "tags": [ "text-stamp", "outline", "fill-stroke", "pdf", - "aspose-pdf" + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Text.TextStamp", - "Aspose.Pdf.Text.FontRepository.FindFont", "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Text.TextRenderingMode", + "Aspose.Pdf.Text.FontRepository.FindFont", + "Aspose.Pdf.Text.TextRenderingMode" + ], + "difficulty": "intermediate" + }, + { + "filename": "add-bottom-left-text-stamp.cs", + "title": "Add Bottom‑Left Text Stamp to PDF", + "description": "Shows how to place a text stamp at the bottom‑left corner of each PDF page with a 10‑point margin using Aspose.Pdf.", + "tags": [ + "text-stamp", + "pdf", + "alignment", + "margin", + "Aspose.Pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.TextStamp", + "Aspose.Pdf.Annotations.HorizontalAlignment", + "Aspose.Pdf.Annotations.VerticalAlignment", "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "add-confidential-text-stamp-to-pdf.cs", - "title": "Add Confidential Text Stamp to PDF Pages", - "description": "Demonstrates how to add a semi‑transparent 'CONFIDENTIAL' text stamp to each page of a PDF using Aspose.Pdf.", + "title": "Add Confidential Text Stamp to PDF", + "description": "Demonstrates loading a PDF with Aspose.Pdf, creating a semi‑transparent TextStamp, centering it on each page, and saving the stamped document.", "tags": [ "pdf", - "stamp", - "textstamp", + "watermark", + "text-stamp", "opacity", - "confidential" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextStamp", - "Aspose.Pdf.HorizontalAlignment", - "Aspose.Pdf.VerticalAlignment", + "Aspose.Pdf.TextStamp", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.HorizontalAlignment", + "Aspose.Pdf.VerticalAlignment" ], "difficulty": "beginner" }, { "filename": "add-custom-sized-page-stamp.cs", - "title": "Add Custom-Sized Page Stamp to Specific PDF Page", - "description": "Shows how to create a page stamp from an existing PDF page, set custom width, height and position, and apply it to a chosen page in the document.", + "title": "Add Custom-Sized Page Stamp to PDF", + "description": "Demonstrates creating a PdfPageStamp from an existing page, setting custom width, height, and position, and applying it to another page in a PDF document using Aspose.Pdf.", "tags": [ - "pdf", "stamp", + "pdf", "custom-size", - "page", - "aspose-pdf" + "Aspose.Pdf", + "page-manipulation" ], "apis_used": [ "Aspose.Pdf.Document", @@ -37974,118 +46170,115 @@ "difficulty": "intermediate" }, { - "filename": "add-custom-text-stamp-to-pdf.cs", - "title": "Add Custom Text Stamp to PDF", + "filename": "add-custom-text-stamp-to-pdf-first-page.cs", + "title": "Add Custom Text Stamp to PDF First Page", "description": "Demonstrates how to place a text stamp with a custom font, size, and blue color on the first page of a PDF using Aspose.Pdf.", "tags": [ "text-stamp", "pdf", "custom-font", "color", - "aspose" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Text.FontRepository", + "Aspose.Pdf.Text.FontRepository.FindFont", "Aspose.Pdf.Text.TextStamp", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Color" + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "add-diagonal-image-watermark-to-pdf.cs", "title": "Add Diagonal Image Watermark to PDF", - "description": "Demonstrates how to apply an image stamp rotated 90 degrees as a diagonal watermark on every page of a PDF using Aspose.Pdf.", + "description": "Demonstrates how to apply an image stamp rotated 90° as a diagonal watermark on every page of a PDF using Aspose.Pdf.", "tags": [ "image-stamp", "watermark", "rotation", - "pdf", - "Aspose" + "Aspose.Pdf", + "PDF" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.ImageStamp", - "Aspose.Pdf.Rotation", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.ImageStamp.RotateAngle", + "Aspose.Pdf.ImageStamp.HorizontalAlignment", + "Aspose.Pdf.ImageStamp.VerticalAlignment", + "Aspose.Pdf.ImageStamp.Opacity" ], "difficulty": "beginner" }, { "filename": "add-diagonal-text-stamp-watermark.cs", - "title": "Add Diagonal Text Stamp Watermark to PDF Pages", - "description": "Demonstrates how to add a semi‑transparent diagonal \"CONFIDENTIAL\" text stamp to each page of a PDF using Aspose.Pdf.", + "title": "Add Diagonal Text Stamp Watermark to PDF", + "description": "Demonstrates how to add a semi‑transparent, 45‑degree rotated text stamp as a diagonal watermark on every page of a PDF using Aspose.Pdf.", "tags": [ "watermark", "text-stamp", "rotation", "pdf", - "aspose-pdf" + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextStamp", - "Aspose.Pdf.Text.FontRepository.FindFont", - "Aspose.Pdf.Color", + "Aspose.Pdf.Text.FontRepository", "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "add-faint-text-overlay-stamp-to-pdf-pages.cs", - "title": "Add Faint Text Overlay Stamp to PDF Pages", + "filename": "add-faint-overlay-stamp-to-pdf-pages.cs", + "title": "Add Faint Overlay Stamp to PDF Pages", "description": "Shows how to apply a semi‑transparent text stamp as a faint overlay on every page of a PDF using Aspose.Pdf.", "tags": [ - "text-stamp", - "opacity", "pdf", - "overlay", - "Aspose" + "stamp", + "watermark", + "opacity", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextStamp", - "Aspose.Pdf.Text.FontRepository.FindFont", + "Aspose.Pdf.TextStamp", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.TextState" ], "difficulty": "beginner" }, + { + "filename": "add-faint-text-overlay-stamp-to-pdf-pages.cs", + "title": "Add Faint Text Overlay Stamp To Pdf Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "add-fixed-size-image-stamp-to-pdf-pages.cs", - "title": "Add Fixed-Size Image Stamp to PDF Pages", - "description": "Shows how to place an image stamp with a fixed width and height on every page of a PDF, independent of page dimensions, using Aspose.Pdf.", - "tags": [ - "image-stamp", - "fixed-size", - "pdf", - "Aspose.Pdf", - "C#" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.ImageStamp", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Page" - ], - "difficulty": "beginner" + "title": "Add Fixed Size Image Stamp To Pdf Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "add-full-page-image-watermark.cs", + "filename": "add-full-page-image-watermark-to-pdf.cs", "title": "Add Full-Page Image Watermark to PDF", - "description": "Demonstrates how to overlay an image stamp as a semi‑transparent background watermark that covers the entire size of each page in a PDF document using Aspose.Pdf.", + "description": "Demonstrates how to apply an image stamp as a full‑page background watermark to every page of a PDF using Aspose.Pdf.", "tags": [ "watermark", "image-stamp", "pdf", - "background", - "Aspose.Pdf" + "aspose-pdf", + "full-page" ], "apis_used": [ "Aspose.Pdf.Document", @@ -38096,91 +46289,103 @@ ], "difficulty": "beginner" }, + { + "filename": "add-full-page-image-watermark.cs", + "title": "Add Full Page Image Watermark", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "add-fully-opaque-image-watermark.cs", - "title": "Add Fully Opaque Image Watermark to PDF", - "description": "Shows how to load a PDF, create an ImageStamp with full opacity, center it, and apply it to every page as a visual watermark.", + "title": "Add Fully Opaque Image Watermark", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-global-text-stamp-to-all-pdf-pages.cs", + "title": "Add Global Text Stamp to All PDF Pages", + "description": "Shows how to create a TextStamp and apply it to every page of a PDF document using Aspose.Pdf's AddStamp method.", "tags": [ - "image-stamp", - "watermark", - "opacity", + "text-stamp", "pdf", - "aspose-pdf" + "watermark", + "aspose-pdf", + "global-stamp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.ImageStamp", + "Aspose.Pdf.Text.TextStamp", + "Aspose.Pdf.Page", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Page" + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "add-image-background-floatingbox-page-4.cs", - "title": "Add Image Background to FloatingBox on Page 4", - "description": "Loads a PDF, creates an Image from a PNG file, sets it as the background of a FloatingBox, and inserts that FloatingBox onto the fourth page of the document.", - "tags": [ - "image-stamp", - "floatingbox", - "background", - "pdf-page", - "Aspose.Pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.FloatingBox", - "Aspose.Pdf.Image", - "Aspose.Pdf.ParagraphCollection.Add" - ], - "difficulty": "beginner" + "title": "Add Image Background Floatingbox Page 4", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "add-image-stamp-alt-text-pdfa1b.cs", - "title": "Add Image Stamp with Alternative Text for PDF/A‑1b Output", - "description": "Shows how to place an image stamp with alternative (accessibility) text on each page of a PDF and then convert the document to PDF/A‑1b compliance using Aspose.Pdf.", + "filename": "add-image-stamp-alt-text-pdfa.cs", + "title": "Add Image Stamp with Alt Text for PDF/A‑1b", + "description": "Demonstrates how to place an image stamp with alternative text on every page of a PDF and then convert the document to PDF/A‑1b compliance using Aspose.Pdf.", "tags": [ "image-stamp", - "pdfa-1b", - "alternative-text", + "pdfa", + "accessibility", "aspose-pdf", - "document-conversion" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.ImageStamp", "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Convert", - "Aspose.Pdf.PdfFormat", - "Aspose.Pdf.Facades.ConvertErrorAction" + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "add-image-stamp-as-background-to-pdf-pages.cs", - "title": "Add Image Stamp as Background to PDF Pages", - "description": "Shows how to load a PDF, create an ImageStamp, set its Background property to true, and apply it to each page as a background watermark.", + "filename": "add-image-stamp-alt-text-pdfa1b.cs", + "title": "Add Image Stamp Alt Text Pdfa1B", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-image-stamp-annotation-to-pdf.cs", + "title": "Add Image Stamp Annotation to PDF", + "description": "Shows how to place an image as a StampAnnotation on a PDF page while preserving existing annotations.", "tags": [ - "image-stamp", - "background", + "stamp", + "annotation", + "image", "pdf", - "watermark", - "aspose-pdf" + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.ImageStamp", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.HorizontalAlignment", - "Aspose.Pdf.VerticalAlignment" + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.StampAnnotation", + "Aspose.Pdf.Color", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "add-image-stamp-flatten-annotations.cs", "title": "Add Image Stamp and Flatten Annotations to Create Read‑Only PDF", - "description": "Shows how to place an image stamp on a PDF page and then flatten all annotations, resulting in a read‑only PDF document.", + "description": "Demonstrates how to add an image stamp to every page of a PDF and then flatten all annotations so the resulting file becomes read‑only.", "tags": [ "image-stamp", "flatten-annotations", @@ -38190,85 +46395,121 @@ ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.ImageStamp", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.ImageStamp", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Annotation.Flatten", - "Aspose.Pdf.Page.Annotations", + "Aspose.Pdf.Annotations.Annotation.Flatten", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "add-image-stamp-from-memory-stream.cs", + "filename": "add-image-stamp-floatingbox-page-4.cs", + "title": "Add Image Stamp as Background Using FloatingBox on Page 4", + "description": "Demonstrates how to place an image stamp as the background of a FloatingBox on the fourth page of a PDF using Aspose.Pdf.", + "tags": [ + "floatingbox", + "image-stamp", + "background", + "pdf", + "page4" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Drawing.FloatingBox", + "Aspose.Pdf.Drawing.Image", + "Aspose.Pdf.Page.Paragraphs.Add", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "intermediate" + }, + { + "filename": "add-image-stamp-from-memory-stream-to-pdf.cs", "title": "Add Image Stamp from Memory Stream to PDF", - "description": "Demonstrates how to load an image into a MemoryStream and use Aspose.Pdf to stamp that image onto every page of a PDF document.", + "description": "Demonstrates how to load an image into a MemoryStream and apply it as an ImageStamp to every page of a PDF using Aspose.Pdf.", "tags": [ "image-stamp", "memory-stream", "pdf", - "aspose-pdf", + "Aspose.Pdf", "watermark" ], "apis_used": [ - "Aspose.Pdf.Document", "Aspose.Pdf.ImageStamp", - "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.ImageStamp.HorizontalAlignment", - "Aspose.Pdf.ImageStamp.VerticalAlignment" + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "add-image-stamp-preserve-acroform-fields.cs", - "title": "Add Image Stamp to PDF While Preserving AcroForm Fields", - "description": "Demonstrates loading a PDF, iterating its pages, applying an image stamp with alignment and opacity, and saving the document while keeping existing AcroForm fields intact.", + "filename": "add-image-stamp-from-memory-stream.cs", + "title": "Add Image Stamp From Memory Stream", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-image-stamp-percentage-position.cs", + "title": "Add Image Stamp with Percentage‑Based Positioning", + "description": "Demonstrates how to place an image stamp on each page of a PDF using offsets expressed as percentages of the page width and height.", "tags": [ "image-stamp", + "percentage-position", "pdf", - "acroform", "aspose-pdf", - "stamp" + "page-layout" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.ImageStamp", + "Aspose.Pdf.Page", + "Aspose.Pdf.PageInfo", "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "add-image-stamp-preserve-annotations.cs", - "title": "Add Image Stamp to PDF While Preserving Annotations", - "description": "Demonstrates loading a PDF, creating an ImageStamp, positioning it on the first page, and saving the document while keeping any existing annotations intact.", + "filename": "add-image-stamp-preserve-acroform-fields.cs", + "title": "Add Image Stamp While Preserving AcroForm Fields", + "description": "Demonstrates how to apply an ImageStamp to every page of a PDF using Aspose.Pdf while keeping existing AcroForm fields intact.", "tags": [ "image-stamp", - "annotations", + "acroform", "pdf", - "Aspose.Pdf", - "stamp" + "preserve-fields", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.ImageStamp", - "Aspose.Pdf.Page", - "Aspose.Pdf.HorizontalAlignment", - "Aspose.Pdf.VerticalAlignment", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.HorizontalAlignment", + "Aspose.Pdf.VerticalAlignment" ], "difficulty": "beginner" }, + { + "filename": "add-image-stamp-preserve-annotations.cs", + "title": "Add Image Stamp Preserve Annotations", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "add-image-stamp-preserve-bookmarks.cs", "title": "Add Image Stamp While Preserving Bookmarks and Outline", - "description": "Demonstrates how to add an image stamp to every page of a PDF using Aspose.Pdf while keeping existing bookmarks and the document outline intact.", + "description": "Demonstrates how to load an existing PDF, apply a semi‑transparent image stamp to every page, and save the document while keeping its bookmarks and outline intact.", "tags": [ "image-stamp", - "bookmarks", "pdf", + "bookmarks", "outline", "Aspose.Pdf" ], @@ -38284,33 +46525,32 @@ }, { "filename": "add-image-stamp-preserve-embedded-files.cs", - "title": "Add Image Stamp While Preserving Embedded Files", - "description": "Demonstrates how to load a PDF, add a semi‑transparent image stamp to each page, and save the document while keeping any embedded files intact.", + "title": "Add Image Stamp to PDF While Preserving Embedded Files", + "description": "Demonstrates how to load a PDF, iterate through its pages, add an image stamp to each page, and save the document while keeping any embedded files intact.", "tags": [ "image-stamp", - "embedded-files", "pdf", + "embedded-files", "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.ImageStamp", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.HorizontalAlignment", - "Aspose.Pdf.VerticalAlignment" + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "add-image-stamp-preserve-javascript.cs", "title": "Add Image Stamp to PDF While Preserving JavaScript Actions", - "description": "Demonstrates adding an image stamp to every page of a PDF using Aspose.Pdf while keeping any existing JavaScript actions intact.", + "description": "Demonstrates loading a PDF, creating an ImageStamp, applying it to every page, and saving the document while keeping any existing JavaScript actions intact.", "tags": [ "image-stamp", - "pdf", "javascript", + "pdf", "aspose-pdf", "preserve" ], @@ -38318,7 +46558,6 @@ "Aspose.Pdf.Document", "Aspose.Pdf.ImageStamp", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save", "Aspose.Pdf.HorizontalAlignment", "Aspose.Pdf.VerticalAlignment" ], @@ -38327,7 +46566,7 @@ { "filename": "add-image-stamp-preserve-page-labels.cs", "title": "Add Image Stamp to PDF While Preserving Page Labels", - "description": "Demonstrates how to load a PDF, apply the same image stamp to every page, and save the document while keeping existing page labels unchanged.", + "description": "Demonstrates how to load a PDF, create an ImageStamp, apply it to every page, and save the document while keeping existing page labels unchanged.", "tags": [ "image-stamp", "pdf", @@ -38337,23 +46576,25 @@ ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.ImageStamp", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Page", + "Aspose.Pdf.HorizontalAlignment", + "Aspose.Pdf.VerticalAlignment" ], "difficulty": "beginner" }, { "filename": "add-image-stamp-preserve-xmp-metadata.cs", "title": "Add Image Stamp While Preserving XMP Metadata", - "description": "Shows how to place an image stamp on each page of a PDF and keep the original XMP metadata intact using Aspose.Pdf.", + "description": "Demonstrates how to load a PDF, retrieve its XMP metadata, apply an image stamp to every page, restore the original metadata, and save the result.", "tags": [ "image-stamp", - "xmp-metadata", + "xmp", "pdf", "aspose-pdf", - "page-stamping" + "metadata" ], "apis_used": [ "Aspose.Pdf.Document", @@ -38369,203 +46610,248 @@ { "filename": "add-image-stamp-to-encrypted-pdf.cs", "title": "Add Image Stamp to Encrypted PDF", - "description": "Demonstrates opening a password‑protected PDF, applying an image stamp with custom appearance, and saving the document while preserving its encryption.", + "description": "Shows how to open an encrypted PDF with a password, decrypt it, place an image stamp on a page, and save the modified document.", "tags": [ + "pdf", "image-stamp", - "encrypted-pdf", - "pdf-stamping", - "Aspose.Pdf", - "password" + "encryption", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.ImageStamp", - "Aspose.Pdf.HorizontalAlignment", - "Aspose.Pdf.VerticalAlignment", + "Aspose.Pdf.Document.Decrypt", + "Aspose.Pdf.ImageStamp", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.HorizontalAlignment", + "Aspose.Pdf.VerticalAlignment" ], "difficulty": "intermediate" }, { "filename": "add-image-stamp-to-page-two.cs", - "title": "Add Image Stamp to Page Two", - "description": "Shows how to load a PDF, create an ImageStamp with 100 % quality and 0.8 opacity, and apply it to the second page using Aspose.Pdf.", + "title": "Add Image Stamp To Page Two", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-image-stamp-to-pdf-form.cs", + "title": "Add Image Stamp to PDF Form While Preserving Fields", + "description": "Demonstrates loading a PDF that contains form fields, adding an image stamp to each page, and saving the document without flattening or disabling the form fields.", "tags": [ "image-stamp", "pdf", - "aspose-pdf", - "opacity", - "page" + "form-fields", + "Aspose.Pdf", + "stamp" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.ImageStamp", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Page" + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "add-image-stamp-to-pdf-with-form-fields.cs", - "title": "Add Image Stamp to PDF with Form Fields", - "description": "Demonstrates adding an image stamp to each page of a PDF that contains interactive form fields while keeping the fields functional.", + "filename": "add-image-stamp-to-pdf-page.cs", + "title": "Add Image Stamp to PDF Page with Quality and Opacity", + "description": "Shows how to place an image stamp on the second page of a PDF, configuring 100% quality and 0.8 opacity using Aspose.Pdf.", "tags": [ "image-stamp", "pdf", - "form-fields", - "Aspose.Pdf", - "stamp" + "opacity", + "quality", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.ImageStamp", + "Aspose.Pdf.Facades.ImageStamp", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Pages" + "Aspose.Pdf.ImageStamp.Quality", + "Aspose.Pdf.ImageStamp.Opacity" ], "difficulty": "beginner" }, + { + "filename": "add-image-stamp-to-pdf-with-form-fields.cs", + "title": "Add Image Stamp To Pdf With Form Fields", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "add-image-stamp-to-signed-pdf.cs", "title": "Add Image Stamp to Signed PDF without Invalidating Signature", - "description": "Shows how to place an image stamp on an already digitally signed PDF while preserving the existing signature using Aspose.Pdf incremental save.", + "description": "Shows how to place a semi‑transparent image stamp on a digitally signed PDF using Aspose.Pdf while preserving the existing signature via incremental save.", "tags": [ "image-stamp", - "signed-pdf", + "digital-signature", "incremental-save", "Aspose.Pdf", - "C#" + "PDF" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.ImageStamp", - "Aspose.Pdf.PdfSaveOptions", + "Aspose.Pdf.Annotations.ImageStamp", + "Aspose.Pdf.Page", "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" - }, - { - "filename": "add-image-stamp-top-right-corner.cs", - "title": "Add Image Stamp to Top‑Right Corner of PDF", - "description": "Demonstrates how to place an image stamp (e.g., a logo) at the top‑right corner of each page in a PDF using Aspose.Pdf, with configurable margins and optional opacity.", - "tags": [ - "image-stamp", - "pdf", - "alignment", - "margin", - "opacity" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.ImageStamp", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.HorizontalAlignment", - "Aspose.Pdf.VerticalAlignment" - ], "difficulty": "beginner" }, { - "filename": "add-image-stamp-with-alt-text-to-pdf-page.cs", - "title": "Add Image Stamp with Alt Text to PDF Page", - "description": "Demonstrates how to place an image stamp on the third page of a PDF and set alternative text for accessibility using Aspose.Pdf.", + "filename": "add-image-stamp-top-right-corner.cs", + "title": "Add Image Stamp Top Right Corner", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-image-stamp-unicode-alt-text.cs", + "title": "Add Image Stamp with Unicode Alternative Text to PDF", + "description": "Demonstrates how to place an image stamp on a PDF page and set multilingual Unicode alternative text for accessibility using Aspose.Pdf.", "tags": [ "image-stamp", + "alternative-text", "accessibility", "pdf", - "Aspose.Pdf", - "page-three" + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.ImageStamp", - "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.ImageStamp.AlternativeText", "Aspose.Pdf.ImageStamp.HorizontalAlignment", "Aspose.Pdf.ImageStamp.VerticalAlignment", + "Aspose.Pdf.ImageStamp.Opacity", + "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "add-image-stamp-with-unicode-alt-text.cs", - "title": "Add Image Stamp with Unicode Alternative Text to PDF", - "description": "Demonstrates how to add an image stamp to a PDF using Aspose.Pdf, set a Unicode alternative text for multilingual accessibility, and apply the stamp to all pages.", + "filename": "add-image-stamp-with-alt-text-to-pdf-page.cs", + "title": "Add Image Stamp with Alt Text to PDF Page", + "description": "Demonstrates how to add an image stamp with alternative text for accessibility to the third page of a PDF using Aspose.Pdf.", "tags": [ "image-stamp", - "alternative-text", "accessibility", "pdf", - "Aspose.Pdf" + "Aspose.Pdf", + "page" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.ImageStamp", - "Aspose.Pdf.ImageStamp.AlternativeText", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.ImageStamp.AlternativeText" ], "difficulty": "beginner" }, + { + "filename": "add-image-stamp-with-unicode-alt-text.cs", + "title": "Add Image Stamp With Unicode Alt Text", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "add-low-quality-image-stamp-to-pdf.cs", "title": "Add Low-Quality Image Stamp to PDF", - "description": "Shows how to load a PDF, create an ImageStamp with reduced quality (10 %) and optional visual settings, apply it to every page, and save the modified document.", + "description": "Shows how to load a PDF, create an ImageStamp with reduced quality (10 %) and apply it to every page, then save the stamped document.", "tags": [ - "image-stamp", "pdf", - "low-quality", - "Aspose.Pdf", - "performance" + "image-stamp", + "quality", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.ImageStamp", "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.ImageStamp.Quality", + "Aspose.Pdf.ImageStamp.HorizontalAlignment", + "Aspose.Pdf.ImageStamp.VerticalAlignment", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "add-multi-line-text-stamp-custom-line-spacing.cs", + "title": "Add Multi Line Text Stamp Custom Line Spacing", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-multi-line-text-stamp.cs", "title": "Add Multi-Line Text Stamp with Custom Line Spacing", - "description": "Demonstrates how to add a multi-line text stamp to each page of a PDF and adjust the line spacing using the TextState of a TextStamp.", + "description": "Shows how to place a multi-line disclaimer text stamp on every page of a PDF and customize its appearance, including alignment, opacity, font, and optional line spacing.", "tags": [ "text-stamp", - "line-spacing", - "disclaimer", + "multi-line", + "pdf", "aspose-pdf", - "csharp" + "line-spacing" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Text.TextStamp", "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Text.TextState.LineSpacing" + "Aspose.Pdf.FontRepository.FindFont" + ], + "difficulty": "intermediate" + }, + { + "filename": "add-opaque-image-watermark-to-pdf.cs", + "title": "Add Fully Opaque Image Watermark to PDF", + "description": "Demonstrates how to apply a fully opaque image stamp as a visual watermark on every page of a PDF using Aspose.Pdf.", + "tags": [ + "image-watermark", + "pdf", + "aspose-pdf", + "stamp", + "opacity" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.ImageStamp", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Page.PageInfo", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "add-outlined-text-stamp.cs", - "title": "Add Outlined Text Stamp to PDF", - "description": "Demonstrates loading a PDF, creating a TextStamp, configuring its font, size, color and drawing mode, positioning it on a page, and saving the document. The example notes that true stroke rendering is not available and uses a bold font as an approximation.", + "title": "Add Outlined Text Stamp Using Stroke Rendering Mode", + "description": "Demonstrates how to place a text stamp on a PDF page with the stroke rendering mode to create an outlined text effect using Aspose.Pdf.", "tags": [ "text-stamp", - "outlined-text", + "outline", + "stroke", "pdf", - "aspose-pdf", - "csharp" + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Text.TextStamp", - "Aspose.Pdf.Text.FontRepository.FindFont", "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Text.TextRenderingMode", + "Aspose.Pdf.Text.FontRepository", + "Aspose.Pdf.Color", "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], @@ -38574,13 +46860,13 @@ { "filename": "add-page-stamp-to-specific-pdf-pages.cs", "title": "Add Page Stamp to Specific PDF Pages", - "description": "Demonstrates how to apply a page stamp from a source page to a range of pages (pages 5 through 10) in a PDF using Aspose.Pdf.", + "description": "Shows how to create a page stamp from a source page and apply it to a range of pages (5‑10) in a PDF document using Aspose.Pdf.", "tags": [ "pdf", "stamp", "page-range", - "Aspose.Pdf", - "csharp" + "csharp", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", @@ -38589,165 +46875,178 @@ "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "add-rotated-image-stamp-to-pdf.cs", - "title": "Add 90° Rotated Image Stamp to PDF Pages", - "description": "Demonstrates loading a PDF, creating an ImageStamp, rotating it 90 degrees, setting alignment and opacity, applying it to every page, and saving the result.", + "title": "Add Rotated Image Stamp to PDF", + "description": "Demonstrates loading a PDF, creating an ImageStamp from an image, rotating it 45 degrees, positioning it, adding it to a page, and saving the result.", "tags": [ "image-stamp", "rotation", "pdf", - "Aspose.Pdf", - "watermark" + "csharp", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.ImageStamp", + "Aspose.Pdf.ImageStamp.RotateAngle", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Rotation" + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "add-rtl-text-stamp-to-pdf.cs", - "title": "Add RTL Text Stamp to PDF Document", - "description": "Shows how to place a right‑to‑left Arabic text stamp on every page of a PDF and set the document language for proper RTL rendering using Aspose.Pdf.", + "filename": "add-rotated-text-stamp-to-pdf-pages.cs", + "title": "Add Rotated Text Stamp to PDF Pages", + "description": "Shows how to load a PDF, create a TextStamp, rotate it 90°, apply it to every page, and save the modified document.", "tags": [ - "rtl", - "stamp", + "text-stamp", + "rotation", "pdf", - "arabic", - "text" + "watermark", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.TaggedContent.SetLanguage", + "Aspose.Pdf.Page", "Aspose.Pdf.Annotations.TextStamp", - "Aspose.Pdf.Text.FontRepository", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Page.AddStamp" + "Aspose.Pdf.Annotations.Rotation", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "add-semi-transparent-logo-stamp-to-first-pdf-page.cs", - "title": "Add Semi-Transparent Logo Stamp to First PDF Page", - "description": "Shows how to place a semi‑transparent image stamp (logo) on the first page of a PDF using Aspose.Pdf.", + "filename": "add-rotated-text-watermark.cs", + "title": "Add Rotated Text Watermark to PDF", + "description": "Demonstrates creating a TextStamp, rotating it 30 degrees, customizing its appearance, and applying it to every page of a PDF using Aspose.Pdf.", "tags": [ "pdf", - "image-stamp", - "opacity", - "aspose.pdf", - "c#" + "watermark", + "rotation", + "text-stamp", + "Aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.ImageStamp", - "Aspose.Pdf.HorizontalAlignment", - "Aspose.Pdf.VerticalAlignment", + "Aspose.Pdf.Text.TextStamp", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.FontRepository.FindFont", + "Aspose.Pdf.Color" ], "difficulty": "beginner" }, { - "filename": "add-slanted-text-watermark-to-pdf.cs", - "title": "Add Slanted Text Watermark to PDF", - "description": "Demonstrates how to create a text stamp, rotate it 30 degrees, and apply it as a semi‑transparent watermark on every page of a PDF using Aspose.Pdf.", + "filename": "add-rtl-text-stamp-to-pdf.cs", + "title": "Add RTL Text Stamp to PDF", + "description": "Demonstrates how to place a right‑to‑left Arabic or Hebrew text stamp on every page of a PDF using Aspose.PDF.", "tags": [ - "watermark", - "text-stamp", - "rotation", + "rtl", + "stamp", "pdf", - "Aspose.Pdf" + "text", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.TextStamp", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.TextStamp.RotateAngle", - "Aspose.Pdf.TextStamp.Opacity", - "Aspose.Pdf.TextStamp.Background" + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextStamp", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Text.FontRepository.FindFont" ], "difficulty": "beginner" }, { - "filename": "add-text-stamp-auto-adjust-font-size.cs", - "title": "Add Text Stamp with Auto‑Adjusting Font Size", - "description": "Demonstrates how to place a text stamp on a PDF page and enable automatic font size adjustment so the text fits within a defined rectangle using Aspose.Pdf.", + "filename": "add-semi-transparent-logo-stamp-to-first-pdf-page.cs", + "title": "Add Semi Transparent Logo Stamp To First Pdf Page", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-semi-transparent-logo-stamp-to-pdf.cs", + "title": "Add Semi-Transparent Logo Stamp to PDF", + "description": "Shows how to place a semi‑transparent image (logo) stamp on the first page of a PDF document using Aspose.Pdf.", "tags": [ - "text-stamp", - "auto-font-size", "pdf", + "image-stamp", + "opacity", "aspose-pdf", - "stamp" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextStamp", - "Aspose.Pdf.Text.FontRepository", - "Aspose.Pdf.Page", + "Aspose.Pdf.ImageStamp", + "Aspose.Pdf.HorizontalAlignment", + "Aspose.Pdf.VerticalAlignment", "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "add-text-stamp-to-all-pdf-pages.cs", - "title": "Add Text Stamp to All PDF Pages", - "description": "Shows how to create a TextStamp and apply it to every page of a PDF document using Aspose.Pdf.", + "filename": "add-text-stamp-auto-adjust-font-size.cs", + "title": "Add Text Stamp Auto Adjust Font Size", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-text-stamp-auto-adjust-font.cs", + "title": "Add Text Stamp with Auto‑Adjusting Font Size to PDF", + "description": "Demonstrates how to place a text stamp on each page of a PDF and automatically adjust the font size so the text fits within a defined rectangle.", "tags": [ - "stamp", + "text-stamp", + "auto-font-size", "pdf", - "textstamp", - "watermark", - "aspose" + "aspose-pdf", + "stamp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Text.TextStamp", - "Aspose.Pdf.Text.FontRepository.FindFont", - "Aspose.Pdf.Color", - "Aspose.Pdf.Text.TextState" + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.HorizontalAlignment", + "Aspose.Pdf.VerticalAlignment" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "add-text-stamp-with-background-box.cs", "title": "Add Text Stamp with Background Box to PDF Pages", - "description": "Demonstrates how to add a centered text stamp with a colored background box and optional opacity to every page of an existing PDF using Aspose.Pdf.", + "description": "Demonstrates how to add a semi‑transparent text stamp with a black background box and white foreground text to every page of a PDF using Aspose.Pdf.", "tags": [ - "text-stamp", - "pdf", + "stamp", "watermark", - "background-box", - "Aspose.Pdf" + "pdf", + "textstamp", + "background" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Text.TextStamp", "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.FontRepository.FindFont", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Color" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "add-upside-down-image-stamp.cs", "title": "Add Upside-Down Image Stamp to PDF", - "description": "Shows how to place an image stamp rotated 180 degrees on a PDF page using Aspose.Pdf.", + "description": "Demonstrates how to place an image stamp rotated 180 degrees on a PDF page using Aspose.Pdf.", "tags": [ "image-stamp", "rotation", "pdf", - "Aspose.Pdf", - "C#" + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", @@ -38759,44 +47058,61 @@ "difficulty": "beginner" }, { - "filename": "align-text-stamp-bottom-left-margin.cs", - "title": "Align Text Stamp to Bottom-Left Corner with Margin", - "description": "Loads a PDF, creates a TextStamp, aligns it to the bottom‑left corner with a 10‑point margin, and applies the stamp to every page before saving.", + "filename": "align-image-stamp-top-right-margin.cs", + "title": "Align Image Stamp to Top‑Right Corner with Margins", + "description": "Shows how to place an image stamp in the top‑right corner of each PDF page using Aspose.Pdf, applying configurable right and top margin offsets.", "tags": [ - "text-stamp", + "image-stamp", + "pdf", "alignment", "margin", - "pdf", - "aspose" + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextStamp", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextStamp.Put", + "Aspose.Pdf.Facades.ImageStamp", + "Aspose.Pdf.ImageStamp.HorizontalAlignment", + "Aspose.Pdf.ImageStamp.VerticalAlignment", + "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "apply-image-stamp-percentage-offsets.cs", - "title": "Apply Image Stamp with Percentage Offsets to PDF Pages", - "description": "Demonstrates how to place an image stamp on each PDF page using offsets expressed as percentages of the page width and height.", + "filename": "align-text-stamp-bottom-left-margin.cs", + "title": "Align Text Stamp Bottom Left Margin", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "apply-fixed-size-image-stamp-to-pdf-pages.cs", + "title": "Apply Fixed-Size Image Stamp to PDF Pages", + "description": "Demonstrates how to add an image stamp with constant width and height to every page of a PDF using Aspose.Pdf, independent of page dimensions.", "tags": [ "image-stamp", - "percentage-offset", "pdf", + "fixed-size", "Aspose.Pdf", - "page" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.ImageStamp", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Pages" ], - "difficulty": "intermediate" + "difficulty": "beginner" + }, + { + "filename": "apply-image-stamp-percentage-offsets.cs", + "title": "Apply Image Stamp Percentage Offsets", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "apply-image-stamp-to-all-pdf-pages.cs", @@ -38807,48 +47123,47 @@ "pdf", "aspose-pdf", "foreach", - "opacity" + "stamp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.ImageStamp", + "Aspose.Pdf.Page", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.HorizontalAlignment", - "Aspose.Pdf.VerticalAlignment" + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "apply-pdf-page-background-stamp.cs", - "title": "Apply PDF Page as Background Stamp to All Pages", - "description": "Demonstrates how to use a page from another PDF as a background stamp and apply it to every page of a target PDF using Aspose.Pdf.", + "title": "Apply PDF Page as Background Stamp", + "description": "Demonstrates how to use a page from one PDF as a background stamp for every page of another PDF using Aspose.Pdf.", "tags": [ "pdf", - "stamp", "background", - "Aspose.Pdf", - "page" + "stamp", + "page", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.PdfPageStamp", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.PdfPageStamp.Background" + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "create-page-stamp-from-pdf.cs", - "title": "Create Page Stamp from PDF Page", - "description": "Demonstrates how to extract a page from a template PDF, create a PdfPageStamp, and apply it as a background stamp to every page of another PDF document.", + "filename": "create-page-stamp-from-existing-pdf-page.cs", + "title": "Create Page Stamp from Existing PDF Page", + "description": "Demonstrates how to use a page from one PDF as a stamp template and apply it to a page of another PDF using Aspose.Pdf.", "tags": [ "pdf", "stamp", - "page", - "aspnet", - "Aspose.Pdf" + "aspose.pdf", + "csharp", + "page" ], "apis_used": [ "Aspose.Pdf.Document", @@ -38859,78 +47174,88 @@ ], "difficulty": "intermediate" }, + { + "filename": "create-page-stamp-from-pdf.cs", + "title": "Create Page Stamp From Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "fit-image-stamp-rectangle.cs", + "title": "Fit Image Stamp Rectangle", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "fit-image-stamp-within-rectangle.cs", "title": "Fit Image Stamp Within a Defined Rectangle", - "description": "Demonstrates loading a PDF, creating an ImageStamp, and automatically scaling and positioning it to fit inside a specified rectangle on a page.", + "description": "Demonstrates how to create an in‑memory image and place it as an ImageStamp that exactly fits inside a specified rectangle on a PDF page using Aspose.Pdf.", "tags": [ "image-stamp", "pdf", "rectangle", - "scaling", - "aspose-pdf" + "positioning", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.ImageStamp", "Aspose.Pdf.Rectangle", + "Aspose.Pdf.PageCollection", "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "place-image-stamp-at-custom-coordinates.cs", - "title": "Place Image Stamp at Custom Coordinates in PDF", - "description": "Shows how to add an image stamp to a PDF page at specific X and Y coordinates using Aspose.Pdf.", - "tags": [ - "image-stamp", - "custom-coordinates", - "pdf", - "Aspose.Pdf", - "C#" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.ImageStamp", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.ImageStamp.XIndent", - "Aspose.Pdf.ImageStamp.YIndent" - ], - "difficulty": "beginner" + "title": "Place Image Stamp At Custom Coordinates", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "rotate-image-stamp-45-degrees.cs", - "title": "Rotate Image Stamp 45° and Add to PDF", - "description": "Demonstrates how to load a PDF, create an image stamp, rotate it by 45 degrees, position it, and add it to a page using Aspose.Pdf.", + "filename": "place-image-stamp-custom-coordinates.cs", + "title": "Place Image Stamp at Custom Coordinates", + "description": "Demonstrates how to add an image stamp to a PDF page at specific X and Y positions using Aspose.Pdf.", "tags": [ "image-stamp", - "rotation", "pdf", - "Aspose.Pdf", - "stamp" + "positioning", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.ImageStamp", - "Aspose.Pdf.ImageStamp.RotateAngle", - "Aspose.Pdf.ImageStamp.HorizontalAlignment", - "Aspose.Pdf.ImageStamp.VerticalAlignment", "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "scale-image-stamp-to-full-page-width.cs", + "filename": "rotate-image-stamp-45-degrees.cs", + "title": "Rotate Image Stamp 45 Degrees", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "scale-image-stamp-full-page-width.cs", "title": "Scale Image Stamp to Full Page Width", - "description": "Shows how to add an image stamp to every page of a PDF and scale it to the page width while preserving the original aspect ratio.", + "description": "Shows how to add an image stamp to every page of a PDF, scaling it to the page width while preserving its original aspect ratio.", "tags": [ "image-stamp", - "pdf", "scaling", "aspect-ratio", + "pdf", "Aspose.Pdf" ], "apis_used": [ @@ -38940,7 +47265,15 @@ "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" + }, + { + "filename": "scale-image-stamp-to-full-page-width.cs", + "title": "Scale Image Stamp To Full Page Width", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" } ] }, @@ -38977,113 +47310,161 @@ }, { "name": "working-with-annotations", - "file_count": 156, + "file_count": 216, "files": [ "add-3d-annotation-custom-camera-view.cs", "add-3d-annotation-front-view.cs", + "add-3d-annotation-with-custom-camera.cs", "add-3d-u3d-annotation-initial-view-page-2.cs", + "add-3d-u3d-annotation-initial-view-page-two.cs", "add-animated-gif-screen-annotation.cs", "add-auto-play-rich-media-annotation.cs", + "add-automatic-background-music-to-pdf.cs", + "add-background-image-artifact-to-pdf-page.cs", "add-background-image-to-pdf-page.cs", "add-background-music-to-pdf.cs", "add-bates-numbering-with-prefix.cs", + "add-button-annotation-go-to-page-10.cs", "add-button-annotation-highlight-text-fields.cs", "add-callout-leader-line-to-freetext-annotation.cs", + "add-diagonal-watermark-annotation.cs", "add-dynamic-date-watermark-to-pdf-pages.cs", "add-dynamic-page-number-watermark.cs", "add-export-annotations-button.cs", "add-external-link-annotation-to-pdf.cs", + "add-external-url-link-annotation.cs", "add-figure-annotation-around-table.cs", "add-figure-annotation-external-image.cs", "add-figure-annotations-custom-line-width-color.cs", "add-flash-rich-media-annotation.cs", "add-footer-watermark-annotation.cs", + "add-footer-watermark-to-pdf-pages.cs", "add-free-text-annotation-arial.cs", "add-free-text-annotation-with-callout.cs", "add-goto-page-button-annotation.cs", "add-highlight-annotation-70-opacity.cs", "add-highlight-annotation-with-opacity.cs", - "add-highlight-with-linked-popup-annotation.cs", + "add-highres-pdf-page-as-tiled-background.cs", "add-internal-link-annotation-to-pdf.cs", - "add-javascript-button-annotation.cs", + "add-javascript-button-annotation-to-pdf-page.cs", "add-javascript-link-annotation-modal-dialog.cs", - "add-javascript-link-annotation-open-url.cs", + "add-javascript-link-annotation.cs", "add-js-link-word-count.cs", "add-magenta-underline-annotation.cs", "add-polyline-annotation-to-pdf.cs", "add-polyline-annotation-to-pdf__v2.cs", + "add-polyline-figure-annotation.cs", + "add-polyline-figure-annotation__v2.cs", "add-popup-annotation-to-pdf.cs", + "add-popup-annotation-to-pdf__v2.cs", "add-popup-annotation-with-custom-dimensions.cs", "add-qr-code-watermark-to-pdf.cs", + "add-read-only-rich-media-pdf-annotation.cs", "add-repeating-text-watermark-artifact.cs", "add-rich-media-annotation-hidden-toolbar.cs", + "add-rich-media-annotation-pdf-portfolio.cs", "add-rich-media-pdf-annotation-read-only.cs", "add-rich-media-video-annotation.cs", "add-rich-media-video-annotation__v2.cs", - "add-screen-annotation-external-swf.cs", "add-screen-annotation-external-video.cs", - "add-screen-annotation-with-video.cs", + "add-screen-annotation-looping-video.cs", + "add-screen-annotation-swf-readonly.cs", + "add-screen-annotation-with-video-to-pdf.cs", + "add-sound-annotation-chime.cs", "add-sound-annotation-to-each-pdf-page.cs", "add-sound-annotation-to-pdf-page.cs", "add-sound-annotation-to-pdf-page__v2.cs", "add-sound-annotation-to-pdf.cs", + "add-sound-annotation-visible-tone.cs", + "add-sound-annotation-voiceover-page-five.cs", "add-sound-annotation-with-notification-tone.cs", - "add-strikethrough-annotation-with-author.cs", - "add-text-annotation-to-page-three.cs", + "add-square-figure-annotations-custom-border.cs", + "add-strikeout-annotation-with-author.cs", + "add-strikethrough-annotation-to-pdf.cs", + "add-text-annotation-to-pdf-page-3.cs", "add-text-watermark-annotation.cs", "add-tiled-pdf-background-artifact.cs", "add-transparent-freetext-annotation.cs", "add-watermark-annotation-with-gradient.cs", + "add-word-count-link-annotation.cs", "add-yellow-highlight-annotation.cs", "align-watermark-annotations-to-page-margins.cs", "apply-tiled-pdf-pattern-watermark.cs", + "auto-play-rich-media-video-annotation.cs", "batch-add-image-watermark-artifact.cs", + "batch-add-linked-popup-annotations.cs", "batch-add-popup-annotations.cs", "batch-add-screen-annotations-with-videos.cs", "batch-add-sound-annotations-to-pdf-pages.cs", "batch-add-text-annotation-to-first-page.cs", "batch-add-text-annotations-to-pdf-pages.cs", "batch-add-video-screen-annotations.cs", + "batch-add-video-screen-annotations__v2.cs", + "batch-add-watermark-artifact-to-pdfs.cs", "batch-export-pdf-annotations-to-xfdf.cs", + "batch-import-xfdf-annotations-into-pdfs.cs", "batch-import-xfdf-annotations-merge-pdfs.cs", "batch-replace-watermark-annotations.cs", "batch-watermark-dynamic-opacity.cs", "change-button-annotation-color-to-blue.cs", "change-figure-annotation-color.cs", + "clone-richmedia-annotations-summary-page.cs", "clone-richmedia-annotations-to-summary-page.cs", "clone-watermark-annotation-across-pdf-pages.cs", + "clone-watermark-annotation-to-multiple-pdf-pages.cs", + "copy-pdf-annotations-via-xfdf.cs", "count-watermark-artifacts-on-pdf-page.cs", + "create-3d-annotation-custom-lighting.cs", "create-3d-annotation-metal-surface.cs", + "create-3d-annotation-metallic-lighting.cs", "create-3d-annotation-with-custom-lighting.cs", "create-3d-annotation-with-embedded-textures.cs", "create-button-toggle-annotations-visibility.cs", "create-link-annotation-external-pdf-page.cs", "create-link-annotation-named-destination.cs", "create-link-annotation-open-embedded-pdf.cs", + "create-link-annotation-remote-pdf-page.cs", + "create-pdf-button-export-annotations-json.cs", + "create-pdf-gradient-background-artifact.cs", + "create-pdf-submit-button.cs", "create-pdf-with-gradient-background.cs", + "create-popup-annotation-linked-to-highlight.cs", + "create-richmedia-annotation-flash-video.cs", "create-submit-button-with-javascript.cs", + "delete-all-annotations-restore-from-xfdf.cs", "delete-all-highlight-annotations.cs", - "delete-annotation-by-id-from-pdf-page.cs", + "delete-annotation-by-id-page-two.cs", "delete-annotations-from-pdf-using-csv.cs", "delete-annotations-restore-from-xfdf.cs", + "delete-pdf-annotations-from-csv.cs", "duplicate-watermark-annotations-across-pdf-pages.cs", + "duplicate-watermark-annotations.cs", "embed-mp4-video-with-poster.cs", + "embed-pdf-portfolio-rich-media-disable-printing.cs", "embed-pdf-portfolio-richmedia-annotation.cs", "embed-pdf-portfolio-richmedia-disable-printing.cs", + "export-annotation-ids-to-csv.cs", "export-annotations-modify-colors-xfdf.cs", + "export-annotations-modify-colors.cs", + "export-import-annotations-xfdf.cs", "export-import-pdf-annotations-xfdf.cs", - "export-import-pdf-annotations-xfdf__v2.cs", "export-import-pdf-annotations-xfdf__v3.cs", "export-page-annotations-to-xfdf.cs", "export-pdf-annotation-ids-to-csv.cs", "export-pdf-annotations-to-csv.cs", "export-pdf-annotations-to-xfdf-and-upload.cs", "export-pdf-annotations-to-xfdf-azure-blob.cs", + "export-pdf-annotations-to-xfdf-stream.cs", "export-pdf-annotations-to-xfdf.cs", "export-popup-annotations-to-xfdf.cs", "extract-3d-annotation-preview-images-to-report.cs", "extract-embedded-media-from-richmedia-annotations.cs", + "extract-embedded-rich-media.cs", + "extract-highlight-annotation-to-report.cs", + "extract-media-from-screenannotation.cs", + "extract-pdf-watermark-artifacts-report.cs", "extract-popup-annotation-to-pdf.cs", + "extract-popup-annotations-to-pdf.cs", "extract-watermark-artifacts-report.cs", "fade-background-artifacts.cs", "filter-pdf-annotations-by-author.cs", @@ -39096,44 +47477,56 @@ "import-annotations-from-fdf__v2.cs", "import-annotations-from-fdf__v3.cs", "import-annotations-from-xfdf.cs", - "import-consolidate-annotations-from-fdf.cs", "import-fdf-annotations-into-pdf.cs", + "import-multiple-fdf-annotations.cs", "import-xfdf-annotations-into-multiple-pdfs-in-parallel.cs", + "import-xfdf-annotations-into-multiple-pdfs.cs", "import-xfdf-annotations-into-pdf.cs", + "import-xfdf-annotations-into-pdf__v2.cs", "import-xfdf-annotations-reassign-pages.cs", + "import-xfdf-annotations-set-visibility-by-role.cs", "import-xfdf-annotations-visibility-by-role.cs", "increase-sound-annotation-clickable-area.cs", "insert-watermark-annotation-page-6.cs", "iterate-pdf-annotations-log-media.cs", + "list-annotation-types-on-pdf-page.cs", + "list-annotations-with-media-info.cs", "list-pdf-annotation-ids-to-csv.cs", + "metadata-watermark-annotation.cs", "modify-annotation-rectangle-by-id.cs", + "modify-figure-annotation-color.cs", "recolor-highlight-annotations-light-green.cs", - "remove-annotations-from-page-3.cs", + "remove-annotations-from-third-pdf-page.cs", "remove-background-artifacts-from-pdf-pages.cs", + "remove-background-artifacts-from-pdf.cs", + "remove-highlight-annotations-from-pdf.cs", "remove-popup-annotations-from-pdf.cs", "remove-screen-annotations-from-pdf.cs", "remove-sound-annotations-from-pdf.cs", "replace-background-artifact-image.cs", - "replace-background-artifacts-with-new-image.cs", "replace-highlight-annotation-color.cs", - "replace-watermark-with-logo.cs", + "replace-pdf-page-background-images.cs", + "replace-watermark-annotations-with-logo.cs", + "retrieve-annotation-bounding-rectangle.cs", "retrieve-annotation-ids-page-numbers.cs", - "retrieve-annotations-from-pdf-page.cs", - "retrieve-first-richmediaannotation-from-page-five.cs", + "retrieve-first-richmediaannotation-page-five.cs", "reuse-ximage-across-multiple-pdf-pages.cs", + "reuse-ximage-across-pdf-pages.cs", "set-arrow-line-ending-on-pdf-annotation.cs", + "set-arrow-line-endings-on-pdf-annotation.cs", "set-author-strikethrough-annotation.cs", "set-callout-leader-line-length.cs", "set-dashed-border-for-button-annotations.cs", "set-figure-annotation-border-color-dark-gray.cs", + "set-figure-annotation-border-width.cs", "set-highlight-annotation-opacity.cs", - "set-line-ending-styles-for-pdf-line-annotation.cs", - "set-red-border-for-link-annotations.cs", - "set-square-annotation-border-width.cs", - "set-underline-annotation-opacity-50.cs", - "set-watermark-artifact-opacity.cs", + "set-line-ending-styles-pdf.cs", + "set-link-annotation-border-red-width-3.cs", + "set-underline-annotation-opacity.cs", + "toggle-rich-media-annotation-visibility.cs", "toggle-rich-media-visibility-button.cs", "toggle-watermark-visibility-button.cs", + "update-watermark-artifact-opacity.cs", "validate-xfdf-annotation-count-per-page.cs" ], "required_namespaces": [ @@ -39142,7 +47535,8 @@ "Aspose.Pdf.Text", "Aspose.Pdf.Forms", "Aspose.Pdf.Drawing", - "Aspose.Pdf.Facades" + "Aspose.Pdf.Facades", + "Aspose.Pdf.Devices" ], "key_apis": [ "RichMediaAnnotation", @@ -39150,106 +47544,121 @@ "LinkAnnotation", "TextAnnotation", "WatermarkAnnotation", + "ScreenAnnotation", "FreeTextAnnotation", + "SoundAnnotation", "HighlightAnnotation", "PDF3DAnnotation", - "ScreenAnnotation", - "SoundAnnotation", "PopupAnnotation", - "GoToAction", "SquareAnnotation", + "FitExplicitDestination", + "GoToAction", + "GoToRemoteAction", "GoToURIAction", "LineAnnotation", "PolylineAnnotation", - "TextFragment", - "BorderInfo", + "StrikeOutAnnotation", "FileAttachmentAnnotation", - "FitExplicitDestination", - "GoToRemoteAction", - "HideAction", + "PngDevice", "StampAnnotation", - "StrikeOutAnnotation", + "TableAbsorber", + "TextFragment", "TextFragmentAbsorber", "UnderlineAnnotation" ], "examples": [ { "filename": "add-3d-annotation-custom-camera-view.cs", - "title": "Add 3D Annotation with Custom Camera View", - "description": "Shows how to embed a U3D model in a PDF and define a custom camera angle using a 3‑D annotation with Aspose.Pdf.", + "title": "Add 3D Annotation Custom Camera View", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-3d-annotation-front-view.cs", + "title": "Add 3D Annotation with Front View to PDF", + "description": "Shows how to embed a U3D/PRC 3‑D model into a PDF, create a 3‑D annotation, define a front‑facing view, and save the updated document.", "tags": [ "3d", "annotation", - "camera", "pdf", - "aspose" + "aspose", + "view" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.PDF3DAnnotation", - "Aspose.Pdf.Annotations.PDF3DArtwork", "Aspose.Pdf.Annotations.PDF3DContent", + "Aspose.Pdf.Annotations.PDF3DArtwork", + "Aspose.Pdf.Annotations.PDF3DAnnotation", "Aspose.Pdf.Annotations.PDF3DView", - "Aspose.Pdf.Drawing.Matrix3D" + "Aspose.Pdf.Annotations.Matrix3D", + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate" }, { - "filename": "add-3d-annotation-front-view.cs", - "title": "Add 3D Annotation with Front View to PDF", - "description": "Shows how to embed a 3‑D model (U3D/PRC) into a PDF, create a front‑view camera, and add a 3‑D annotation that activates when the page opens.", + "filename": "add-3d-annotation-with-custom-camera.cs", + "title": "Add 3D Annotation with Custom Camera to PDF", + "description": "Shows how to embed a 3D model into a PDF and define a custom camera view using Aspose.Pdf 3D annotation classes.", "tags": [ - "3d", - "annotation", - "front-view", + "3d-annotation", + "custom-camera", "pdf", - "aspose-pdf" + "aspose-pdf", + "view" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.Annotations.PDF3DContent", "Aspose.Pdf.Annotations.PDF3DArtwork", + "Aspose.Pdf.Annotations.Matrix3D", "Aspose.Pdf.Annotations.PDF3DView", - "Aspose.Pdf.Annotations.PDF3DAnnotation", - "Aspose.Pdf.Annotations.PDF3DActivation" + "Aspose.Pdf.Annotations.PDF3DAnnotation" ], "difficulty": "intermediate" }, { "filename": "add-3d-u3d-annotation-initial-view-page-2.cs", - "title": "Add 3D U3D Annotation with Initial View on Page 2", - "description": "Demonstrates how to embed a U3D model as a 3D annotation on the second page of a PDF and set a custom initial view using Aspose.Pdf.", + "title": "Add 3D U3D Annotation Initial View Page 2", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-3d-u3d-annotation-initial-view-page-two.cs", + "title": "Add 3D U3D Annotation with Initial View on Page Two", + "description": "Shows how to embed a U3D model as a 3D annotation in a PDF, define an initial camera view, and place the annotation on the second page using Aspose.Pdf.", "tags": [ - "3d", - "u3d", - "annotation", - "pdf", - "aspose" + "3D annotation", + "U3D", + "Aspose.Pdf", + "initial view", + "page two" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.PDF3DContent", + "Aspose.Pdf.Annotations.PDF3DContent.LoadAsU3D", "Aspose.Pdf.Annotations.PDF3DArtwork", - "Aspose.Pdf.Annotations.PDF3DView", "Aspose.Pdf.Annotations.PDF3DAnnotation", - "Aspose.Pdf.Annotations.PDF3DActivation" + "Aspose.Pdf.Annotations.Matrix3D", + "Aspose.Pdf.Annotations.PDF3DView", + "Aspose.Pdf.Page.Annotations.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "add-animated-gif-screen-annotation.cs", - "title": "Add Animated GIF as Screen Annotation on PDF Page", - "description": "Demonstrates how to embed an animated GIF as a ScreenAnnotation on the third page of a PDF using Aspose.Pdf, with the animation looping continuously.", + "title": "Add Animated GIF Screen Annotation to PDF Page", + "description": "Demonstrates how to place a ScreenAnnotation that shows an animated GIF, looping continuously, on the third page of a PDF using Aspose.Pdf.", "tags": [ "screen-annotation", "animated-gif", "pdf", "aspose-pdf", - "annotations" + "page-3" ], "apis_used": [ "Aspose.Pdf.Document", @@ -39263,36 +47672,44 @@ }, { "filename": "add-auto-play-rich-media-annotation.cs", - "title": "Add Auto‑Play Rich Media Annotation to PDF", - "description": "Demonstrates how to embed a video or audio file into a PDF as a RichMediaAnnotation and configure it to start playing automatically when the page becomes visible.", + "title": "Add Auto Play Rich Media Annotation", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-automatic-background-music-to-pdf.cs", + "title": "Add Automatic Background Music to PDF", + "description": "Demonstrates how to embed an MP3 audio file as a RichMediaAnnotation that automatically plays when the page becomes visible.", "tags": [ "richmedia", + "audio", "annotation", - "autoplay", - "pdf", - "aspose" + "background-music", + "aspose.pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Annotations.RichMediaAnnotation", "Aspose.Pdf.Annotations.RichMediaAnnotation.ActivationEvent", + "Aspose.Pdf.Annotations.RichMediaAnnotation.ContentType", "Aspose.Pdf.Annotations.RichMediaAnnotation.SetContent", - "Aspose.Pdf.Page.Annotations.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "add-background-image-to-pdf-page.cs", - "title": "Add Background Image to PDF Page", - "description": "Demonstrates how to create a BackgroundArtifact from an image file and attach it to a specific PDF page so the image appears behind the page content.", + "filename": "add-background-image-artifact-to-pdf-page.cs", + "title": "Add Background Image Artifact to PDF Page", + "description": "Demonstrates how to create a BackgroundArtifact from an image file and attach it to a page's Artifacts collection, placing it behind the page content.", "tags": [ "background", "artifact", "image", "pdf", - "Aspose.Pdf" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", @@ -39304,43 +47721,58 @@ ], "difficulty": "beginner" }, + { + "filename": "add-background-image-to-pdf-page.cs", + "title": "Add Background Image To Pdf Page", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "add-background-music-to-pdf.cs", - "title": "Add Background Music to PDF Using RichMediaAnnotation", - "description": "Demonstrates embedding an MP3 file as a RichMediaAnnotation that automatically plays when the page becomes visible, and saving the modified PDF.", + "title": "Add Background Music To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-bates-numbering-with-prefix.cs", + "title": "Add Bates Numbering Artifact with Prefix to PDF", + "description": "Demonstrates how to add a Bates numbering artifact with a custom \"ABC\" prefix and a six‑digit format to each page of a PDF using Aspose.Pdf.", "tags": [ - "richmedia", - "audio", + "bates-numbering", + "pdf", "annotation", - "background-music", - "pdf" + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.RichMediaAnnotation", - "Aspose.Pdf.Annotations.RichMediaAnnotation.ActivationEvent", - "Aspose.Pdf.Annotations.RichMediaAnnotation.ContentType", - "Aspose.Pdf.Annotations.RichMediaAnnotation.SetContent", - "Aspose.Pdf.Annotations.Border" + "Aspose.Pdf.PageCollectionExtensions.AddBatesNumbering", + "Aspose.Pdf.BatesNArtifact", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "add-bates-numbering-with-prefix.cs", - "title": "Add Bates Numbering with Prefix to PDF", - "description": "Demonstrates how to apply Bates numbering to every page of a PDF using Aspose.Pdf, with a custom \"ABC\" prefix and a six‑digit format.", + "filename": "add-button-annotation-go-to-page-10.cs", + "title": "Add Button Annotation to Navigate to Page 10", + "description": "Shows how to create a button form field that jumps to page 10 of the same PDF when activated, using Aspose.Pdf.", "tags": [ - "bates-numbering", + "button", + "annotation", + "goto-action", "pdf", - "prefix", - "aspose-pdf", - "document" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PageCollectionExtensions.AddBatesNumbering", - "Aspose.Pdf.BatesNArtifact", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.ButtonField", + "Aspose.Pdf.Annotations.GoToAction", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" @@ -39348,7 +47780,7 @@ { "filename": "add-button-annotation-highlight-text-fields.cs", "title": "Create Button Annotation to Highlight Text Fields", - "description": "Shows how to add a push‑button annotation to a PDF page with Aspose.Pdf and attach a JavaScript action that highlights all text fields on the current page.", + "description": "Shows how to add a push‑button annotation to a PDF page with Aspose.Pdf, attach a JavaScript action that highlights all text fields on the current page, and save the updated document.", "tags": [ "button", "javascript", @@ -39361,14 +47793,16 @@ "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.ButtonField", - "Aspose.Pdf.Annotations.JavascriptAction" + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Annotations.AnnotationCollection.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "add-callout-leader-line-to-freetext-annotation.cs", "title": "Add Callout Leader Line to Free-Text Annotation", - "description": "Shows how to create a free‑text annotation with a callout leader line by setting the FreeTextCallout intent and specifying the Callout points.", + "description": "Demonstrates creating a FreeTextAnnotation with a callout leader line by configuring the Callout property, appearance, and intent, then saving the PDF.", "tags": [ "free-text", "callout", @@ -39378,130 +47812,146 @@ ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Annotations.FreeTextAnnotation", - "Aspose.Pdf.Annotations.DefaultAppearance", - "Aspose.Pdf.Annotations.FreeTextIntent", + "Aspose.Pdf.Page", + "Aspose.Pdf.FreeTextAnnotation", + "Aspose.Pdf.FreeTextIntent", + "Aspose.Pdf.DefaultAppearance", "Aspose.Pdf.Point", "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate" }, { - "filename": "add-dynamic-date-watermark-to-pdf-pages.cs", - "title": "Add Dynamic Date Watermark to PDF Pages", - "description": "Demonstrates how to add a WatermarkAnnotation with a runtime‑generated date string to each page of a PDF using Aspose.Pdf.", + "filename": "add-diagonal-watermark-annotation.cs", + "title": "Add Diagonal Watermark Annotation to PDF", + "description": "Demonstrates how to place a WatermarkAnnotation diagonally across a PDF page using a rectangle geometry and simulate a gradient effect with semi‑transparent color.", "tags": [ "watermark", "annotation", + "gradient", "pdf", - "date", "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Annotations.WatermarkAnnotation", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Text.FontRepository.FindFont", - "Aspose.Pdf.Annotations.WatermarkAnnotation.SetTextAndState", + "Aspose.Pdf.Color.FromRgb", "Aspose.Pdf.Page.Annotations.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "add-dynamic-page-number-watermark.cs", - "title": "Add Dynamic Page Number Watermark with WatermarkAnnotation", - "description": "Demonstrates how to place a WatermarkAnnotation on each PDF page that automatically shows the current page number using the \"#\" placeholder.", + "filename": "add-dynamic-date-watermark-to-pdf-pages.cs", + "title": "Add Dynamic Date Watermark to PDF Pages", + "description": "Demonstrates how to add a WatermarkAnnotation with a runtime‑generated date string to each page of a PDF using Aspose.Pdf.", "tags": [ "watermark", "annotation", - "page-number", - "Aspose.Pdf", - "C#" + "date", + "pdf", + "Aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Annotations.WatermarkAnnotation", - "Aspose.Pdf.Facades.FormattedText", - "WatermarkAnnotation.SetText", - "Page.Annotations.Add", - "Document.Save" + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Text.FontRepository.FindFont", + "Aspose.Pdf.Annotations.WatermarkAnnotation.SetTextAndState", + "Aspose.Pdf.Page.Annotations.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "add-export-annotations-button.cs", - "title": "Add Button to Export Annotations as JSON", - "description": "Demonstrates how to create a push‑button field in a PDF that runs JavaScript to collect all annotations on the page and display them as a JSON string. The example uses Aspose.Pdf to add the button and assign a JavascriptAction.", + "filename": "add-dynamic-page-number-watermark.cs", + "title": "Add Dynamic Page Number Watermark to PDF", + "description": "Shows how to create a WatermarkAnnotation that displays the current page number on each page of a PDF and saves the result using Aspose.Pdf.", "tags": [ - "button", - "javascript", - "annotations", + "watermark", + "annotation", + "page-number", "pdf", - "export" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.ButtonField", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Form" + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.WatermarkAnnotation", + "Aspose.Pdf.Annotations.WatermarkAnnotation.SetTextAndState", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Text.FontRepository.FindFont", + "Aspose.Pdf.Rectangle" ], - "difficulty": "intermediate" + "difficulty": "beginner" + }, + { + "filename": "add-export-annotations-button.cs", + "title": "Add Export Annotations Button", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "add-external-link-annotation-to-pdf.cs", - "title": "Add External Link Annotation to PDF", - "description": "Demonstrates how to create a link annotation that opens an external URL when clicked, using Aspose.Pdf.", + "title": "Add External Link Annotation To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-external-url-link-annotation.cs", + "title": "Add External URL Link Annotation to PDF", + "description": "Shows how to create a link annotation that opens an external website when the user clicks the annotation area using Aspose.Pdf.", "tags": [ "link-annotation", "external-url", "pdf", "aspose-pdf", - "annotation" + "annotations" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Annotations.LinkAnnotation", - "Aspose.Pdf.Annotations.GoToURIAction", - "Aspose.Pdf.Color" + "Aspose.Pdf.Annotations.GoToURIAction" ], "difficulty": "beginner" }, { "filename": "add-figure-annotation-around-table.cs", - "title": "Add Figure Annotation Around a Table in PDF", - "description": "Shows how to create a table in a PDF document and surround it with a figure (square) annotation using Aspose.Pdf.", + "title": "Add Figure Annotation Around a Detected Table", + "description": "Demonstrates how to use TableAbsorber to locate a table on a PDF page and draw a square (figure) annotation around it with custom border and fill colors.", "tags": [ "table", "annotation", "square", - "pdf", - "aspose-pdf" + "aspose-pdf", + "pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Table", + "Aspose.Pdf.TableAbsorber", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Annotations.SquareAnnotation", "Aspose.Pdf.Annotations.Border", - "Aspose.Pdf.Rectangle", "Aspose.Pdf.Color" ], "difficulty": "intermediate" }, { "filename": "add-figure-annotation-external-image.cs", - "title": "Add Figure Annotation Referencing an External Image", - "description": "Demonstrates how to attach an external image file to a PDF page as a figure (file attachment) annotation using Aspose.Pdf.", + "title": "Add Figure Annotation Referencing External Image", + "description": "Demonstrates how to create a FileAttachment (figure) annotation in a PDF that uses an external image file as its appearance and saves the updated document.", "tags": [ "annotation", - "file-attachment", + "fileattachment", "image", "pdf", "aspose" @@ -39511,87 +47961,66 @@ "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Annotations.FileAttachmentAnnotation" + "Aspose.Pdf.Annotations.FileAttachmentAnnotation", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "add-figure-annotations-custom-line-width-color.cs", - "title": "Add Figure Annotations with Custom Line Width and Color", - "description": "Shows how to add square figure annotations with a custom stroke color and line width to selected pages of a PDF using Aspose.Pdf.", - "tags": [ - "annotations", - "square", - "border", - "pdf", - "aspose" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.SquareAnnotation", - "Aspose.Pdf.Annotations.Border", - "Aspose.Pdf.Color", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "intermediate" + "title": "Add Figure Annotations Custom Line Width Color", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "add-flash-rich-media-annotation.cs", - "title": "Add Flash Rich Media Annotation to PDF", - "description": "Demonstrates how to embed a Flash (SWF) video in a PDF using a RichMediaAnnotation, configure a custom player, poster image, and activation settings.", - "tags": [ - "richmedia", - "flash", - "annotation", - "pdf", - "aspose" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.RichMediaAnnotation", - "Aspose.Pdf.Annotations.RichMediaAnnotation.SetPoster", - "Aspose.Pdf.Annotations.RichMediaAnnotation.SetContent", - "Aspose.Pdf.Annotations.RichMediaAnnotation.ActivationEvent", - "Aspose.Pdf.Annotations.RichMediaAnnotation.CustomPlayer" - ], - "difficulty": "intermediate" + "title": "Add Flash Rich Media Annotation", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "add-footer-watermark-annotation.cs", - "title": "Add Footer Watermark Annotation to PDF Pages", - "description": "Loads a PDF, iterates through each page, and adds a WatermarkAnnotation in the footer area with a unique page identifier, then saves the result.", + "title": "Add Footer Watermark Annotation", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-footer-watermark-to-pdf-pages.cs", + "title": "Add Footer Watermark to PDF Pages", + "description": "Demonstrates loading a PDF with Aspose.Pdf, iterating through each page, and adding a WatermarkAnnotation at the bottom as a unique page identifier, then saving the result.", "tags": [ "pdf", "watermark", "annotation", - "footer", - "Aspose.Pdf" + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Annotations.WatermarkAnnotation", - "Aspose.Pdf.Color", - "Aspose.Pdf.Page.Annotations.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Page.Annotations.Add" ], "difficulty": "intermediate" }, { "filename": "add-free-text-annotation-arial.cs", "title": "Add Free‑Text Annotation with Arial Font to PDF", - "description": "Shows how to load a PDF, create a free‑text annotation using Arial 12‑point font, and save the modified document with Aspose.Pdf.", + "description": "Demonstrates how to create a free‑text annotation on a PDF page using Arial, 12‑point font, and save the modified document.", "tags": [ "free-text", "annotation", "pdf", - "font", - "Aspose" + "Aspose.Pdf", + "Arial" ], "apis_used": [ "Aspose.Pdf.Document", @@ -39607,71 +48036,58 @@ { "filename": "add-free-text-annotation-with-callout.cs", "title": "Add Free‑Text Annotation with Callout to PDF", - "description": "Demonstrates how to add a free‑text annotation that includes a callout line to a PDF page using Aspose.Pdf.", + "description": "Demonstrates how to load a PDF, create a free‑text annotation with a callout line, set its appearance and border, and save the modified document.", "tags": [ "free-text", "annotation", "callout", "pdf", - "Aspose.Pdf" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.DefaultAppearance", + "Aspose.Pdf.Annotations.DefaultAppearance", "Aspose.Pdf.Annotations.FreeTextAnnotation", + "Aspose.Pdf.Annotations.Border", "Aspose.Pdf.Point" ], "difficulty": "intermediate" }, { "filename": "add-goto-page-button-annotation.cs", - "title": "Add Go-To Page Button Annotation", - "description": "Demonstrates how to create a push‑button annotation that, when clicked, navigates to page 10 of the same PDF document.", - "tags": [ - "button", - "annotation", - "goto", - "pdf", - "aspose" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.ButtonField", - "Aspose.Pdf.Annotations.GoToAction", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.PageCollection.Add", - "Aspose.Pdf.Page" - ], - "difficulty": "intermediate" + "title": "Add Goto Page Button Annotation", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "add-highlight-annotation-70-opacity.cs", "title": "Add Highlight Annotation with 70% Opacity to PDF", - "description": "Shows how to place a highlight annotation on a PDF page and set its opacity to 70% using Aspose.Pdf.", + "description": "Shows how to load a PDF, create a highlight annotation with 70% opacity, set its color, add it to a page, and save the updated document.", "tags": [ "highlight", "annotation", "opacity", "pdf", - "aspose" + "Aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", "Aspose.Pdf.Annotations.HighlightAnnotation", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Color", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Page.Annotations.Add" + "Aspose.Pdf.Page.Annotations.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "add-highlight-annotation-with-opacity.cs", "title": "Add Highlight Annotation with Custom Opacity to PDF", - "description": "Shows how to create a highlight annotation with a custom opacity and add it to a PDF page using Aspose.Pdf.", + "description": "Shows how to load a PDF, create a highlight annotation with a specific color and opacity, add it to a page, and save the modified document using Aspose.Pdf.", "tags": [ "highlight", "annotation", @@ -39684,56 +48100,61 @@ "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Annotations.HighlightAnnotation", - "Aspose.Pdf.Color" + "Aspose.Pdf.Color", + "Aspose.Pdf.Page.Annotations", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "add-highlight-with-linked-popup-annotation.cs", - "title": "Add Highlight with Linked Popup Annotation", - "description": "Loads a PDF, adds a yellow highlight annotation on the first page, creates a popup annotation linked to the highlight, and saves the updated document.", + "filename": "add-highres-pdf-page-as-tiled-background.cs", + "title": "Add High-Resolution PDF Page as Tiled Background", + "description": "Shows how to use Aspose.Pdf's BackgroundArtifact to set a high‑resolution PDF page as a tiled background for a new document.", "tags": [ - "highlight", - "popup", - "annotation", + "backgroundartifact", "pdf", - "aspose" + "tiled", + "high-resolution", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.HighlightAnnotation", - "Aspose.Pdf.Annotations.PopupAnnotation", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Color" + "Aspose.Pdf.BackgroundArtifact", + "Aspose.Pdf.BackgroundArtifact.SetPdfPage", + "Aspose.Pdf.BackgroundArtifact.IsBackground", + "Aspose.Pdf.Page.SetPageSize", + "Aspose.Pdf.Page.Artifacts.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "add-internal-link-annotation-to-pdf.cs", "title": "Add Internal Link Annotation to PDF", - "description": "Shows how to create a link annotation on a PDF page that jumps to a specific page within the same document using Aspose.Pdf.", + "description": "Shows how to create a link annotation that navigates to a specific page within the same PDF document using Aspose.Pdf.", "tags": [ - "link", - "annotation", - "goto", + "link-annotation", + "internal-link", "pdf", - "aspose" + "Aspose.Pdf", + "page-destination" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Annotations.LinkAnnotation", - "Aspose.Pdf.Annotations.GoToAction", - "Aspose.Pdf.Annotations.Border" + "Aspose.Pdf.FitExplicitDestination", + "Aspose.Pdf.Border", + "Aspose.Pdf.Color" ], "difficulty": "intermediate" }, { - "filename": "add-javascript-button-annotation.cs", + "filename": "add-javascript-button-annotation-to-pdf-page.cs", "title": "Add JavaScript Button Annotation to PDF Page", - "description": "Demonstrates how to add a button field to the fourth page of a PDF and attach a JavaScript action that shows an alert when the button is clicked.", + "description": "Demonstrates how to create a push button on page 4 of a PDF and attach a JavaScript action that shows an alert when the button is clicked.", "tags": [ "button", "javascript", @@ -39753,7 +48174,7 @@ { "filename": "add-javascript-link-annotation-modal-dialog.cs", "title": "Add JavaScript Link Annotation to Show Modal Dialog", - "description": "Demonstrates how to add a link annotation with a JavaScript action that displays a custom modal dialog in a PDF using Aspose.Pdf.", + "description": "Shows how to create a link annotation with a JavaScript action that displays a custom modal dialog box in a PDF using Aspose.Pdf.", "tags": [ "link-annotation", "javascript", @@ -39767,20 +48188,20 @@ "Aspose.Pdf.Rectangle", "Aspose.Pdf.Annotations.LinkAnnotation", "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Color", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Annotations.Border", + "Aspose.Pdf.Color" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "add-javascript-link-annotation-open-url.cs", + "filename": "add-javascript-link-annotation.cs", "title": "Add JavaScript Link Annotation to Open URL", - "description": "Loads an existing PDF, creates a link annotation with a JavaScript action that opens a specified URL in a new browser window, adds it to the first page, and saves the modified document.", + "description": "Demonstrates how to add a link annotation with a JavaScript action that opens a URL in a new browser window using Aspose.Pdf.", "tags": [ - "link", + "link-annotation", "javascript", - "annotation", "pdf", + "aspose-pdf", "url" ], "apis_used": [ @@ -39794,30 +48215,16 @@ }, { "filename": "add-js-link-word-count.cs", - "title": "Add JavaScript Link Annotation to Show Word Count", - "description": "Shows how to create a link annotation with a JavaScript action that displays the PDF's total word count in an alert dialog.", - "tags": [ - "link-annotation", - "javascript", - "word-count", - "pdf", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.LinkAnnotation", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Page.Annotations.Add" - ], - "difficulty": "intermediate" + "title": "Add Js Link Word Count", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "add-magenta-underline-annotation.cs", - "title": "Add Magenta Underline Annotation with Custom Thickness", - "description": "Demonstrates how to place an underline annotation on a PDF page, set its color to magenta, and configure a 2‑point border thickness using Aspose.Pdf.", + "title": "Add Magenta Underline Annotation to PDF", + "description": "Demonstrates how to add an underline annotation with magenta color and a 2‑point border to a PDF page using Aspose.Pdf.", "tags": [ "underline", "annotation", @@ -39827,23 +48234,40 @@ ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Annotations.UnderlineAnnotation", "Aspose.Pdf.Annotations.Border", - "Aspose.Pdf.Color", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Color" ], "difficulty": "beginner" }, { "filename": "add-polyline-annotation-to-pdf.cs", - "title": "Add Custom Polyline Annotation to PDF", - "description": "Demonstrates how to load an existing PDF, create a polyline annotation with custom vertices and appearance, add it to a page, and save the modified document using Aspose.Pdf.", + "title": "Add Polyline Annotation To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-polyline-annotation-to-pdf__v2.cs", + "title": "Add Polyline Annotation To Pdf__V2", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-polyline-figure-annotation.cs", + "title": "Add Polyline Figure Annotation to PDF", + "description": "Shows how to insert a custom polyline figure annotation onto a PDF page with Aspose.Pdf, defining its rectangle, vertices, appearance, and intent.", "tags": [ "polyline", "annotation", "pdf", "Aspose.Pdf", - "diagram" + "figure" ], "apis_used": [ "Aspose.Pdf.Document", @@ -39851,28 +48275,29 @@ "Aspose.Pdf.Rectangle", "Aspose.Pdf.Point", "Aspose.Pdf.Annotations.PolylineAnnotation", - "Aspose.Pdf.Page.Annotations.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Color", + "Aspose.Pdf.Annotations.PolyIntent" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "add-polyline-annotation-to-pdf__v2.cs", - "title": "Add Polyline Annotation to PDF", - "description": "Shows how to create a polyline annotation from a list of points, calculate its bounding rectangle, and add it to a PDF page using Aspose.Pdf.", + "filename": "add-polyline-figure-annotation__v2.cs", + "title": "Add Polyline Figure Annotation to PDF", + "description": "Shows how to create a polyline figure annotation from a list of points and add it to a PDF page using Aspose.Pdf.", "tags": [ "polyline", "annotation", "pdf", "Aspose.Pdf", - "C#" + "figure" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.PolylineAnnotation", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Point", + "Aspose.Pdf.Annotations.PolylineAnnotation", + "Aspose.Pdf.Page.Annotations.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" @@ -39880,13 +48305,13 @@ { "filename": "add-popup-annotation-to-pdf.cs", "title": "Add Popup Annotation Linked to a Sticky Note", - "description": "Demonstrates how to create a TextAnnotation (sticky note) and associate a PopupAnnotation with it so that detailed notes appear when the parent annotation is selected.", + "description": "Demonstrates how to create a TextAnnotation (sticky note) and a linked PopupAnnotation in a PDF using Aspose.Pdf, then save the document.", "tags": [ "popup", "annotation", "sticky-note", - "Aspose.Pdf", - "pdf" + "pdf", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", @@ -39894,43 +48319,49 @@ "Aspose.Pdf.Annotations.TextAnnotation", "Aspose.Pdf.Annotations.PopupAnnotation", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Color", - "Aspose.Pdf.Annotations.TextIcon" + "Aspose.Pdf.Color" ], "difficulty": "intermediate" }, { - "filename": "add-popup-annotation-with-custom-dimensions.cs", - "title": "Add Popup Annotation with Custom Dimensions Linked to Parent", - "description": "Demonstrates creating a parent TextAnnotation and attaching a PopupAnnotation with custom size and position, linking them together, and saving the updated PDF.", + "filename": "add-popup-annotation-to-pdf__v2.cs", + "title": "Add Popup Annotation Linked to a Text Annotation with Custom Size and Position", + "description": "Demonstrates how to create a TextAnnotation as a parent markup, add a PopupAnnotation with custom dimensions, position it relative to the parent, and link the two annotations in a PDF document using Aspose.Pdf.", "tags": [ - "annotation", "popup", - "textannotation", - "pdf", - "aspose" + "annotation", + "positioning", + "Aspose.Pdf", + "text-annotation" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Annotations.TextAnnotation", "Aspose.Pdf.Annotations.PopupAnnotation", - "Aspose.Pdf.Annotations.Border", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Color" ], "difficulty": "intermediate" }, + { + "filename": "add-popup-annotation-with-custom-dimensions.cs", + "title": "Add Popup Annotation With Custom Dimensions", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "add-qr-code-watermark-to-pdf.cs", "title": "Add QR Code Watermark to PDF", - "description": "Demonstrates how to create a PDF and place a QR code image as a watermark artifact in the top‑right corner using Aspose.Pdf.", + "description": "Creates a PDF document and adds a QR code image as a watermark artifact positioned at the top‑right corner of the page.", "tags": [ + "pdf", "watermark", "qr-code", - "pdf", "artifact", - "Aspose.Pdf" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", @@ -39938,45 +48369,63 @@ "Aspose.Pdf.WatermarkArtifact", "Aspose.Pdf.WatermarkArtifact.SetImage", "Aspose.Pdf.WatermarkArtifact.ArtifactHorizontalAlignment", - "Aspose.Pdf.WatermarkArtifact.ArtifactVerticalAlignment", "Aspose.Pdf.Page.Artifacts.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, + { + "filename": "add-read-only-rich-media-pdf-annotation.cs", + "title": "Add Read‑Only Rich Media PDF Annotation", + "description": "Demonstrates how to embed a PDF as a rich‑media annotation in another PDF and set it to read‑only using Aspose.Pdf.", + "tags": [ + "richmedia", + "annotation", + "pdf", + "readonly", + "embed" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.RichMediaAnnotation", + "Aspose.Pdf.Annotations.AnnotationFlags", + "Aspose.Pdf.Annotations.RichMediaAnnotation.SetContent", + "Aspose.Pdf.Page.Annotations.Add" + ], + "difficulty": "intermediate" + }, { "filename": "add-repeating-text-watermark-artifact.cs", "title": "Add Repeating Text Watermark Artifact to PDF Pages", - "description": "Demonstrates how to create a semi‑transparent repeating text watermark across all pages of a PDF using Aspose.Pdf's WatermarkArtifact.", + "description": "Demonstrates how to create a semi‑transparent WatermarkArtifact with repeating text and apply it as a background to every page of a PDF using Aspose.Pdf.", "tags": [ "watermark", - "artifact", "pdf", - "aspose", - "csharp" + "artifact", + "text", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.WatermarkArtifact", "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Text.FontRepository.FindFont", - "Aspose.Pdf.Color", - "Aspose.Pdf.HorizontalAlignment", - "Aspose.Pdf.VerticalAlignment" + "Aspose.Pdf.Text.FontRepository", + "Aspose.Pdf.Text.Color", + "Aspose.Pdf.WatermarkArtifact", + "Aspose.Pdf.Page" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "add-rich-media-annotation-hidden-toolbar.cs", - "title": "Add Rich Media Annotation with Hidden Toolbar to PDF", - "description": "Shows how to embed a video as a RichMediaAnnotation in a PDF using Aspose.Pdf and hide the default playback toolbar for a clean viewer experience.", + "title": "Add Rich Media Annotation with Hidden Playback Toolbar", + "description": "Demonstrates embedding a video as a RichMediaAnnotation in a PDF using Aspose.Pdf and hiding the default playback toolbar via custom flash variables.", "tags": [ "richmedia", "annotation", "video", - "pdf", - "aspose" + "toolbar", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", @@ -39985,214 +48434,239 @@ "Aspose.Pdf.Annotations.RichMediaAnnotation", "Aspose.Pdf.Annotations.RichMediaAnnotation.ActivationEvent", "Aspose.Pdf.Annotations.RichMediaAnnotation.SetContent", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Annotations.RichMediaAnnotation.CustomFlashVariables", + "Aspose.Pdf.Page.Annotations.Add" ], "difficulty": "intermediate" }, { - "filename": "add-rich-media-pdf-annotation-read-only.cs", - "title": "Add Rich Media PDF Annotation (Read‑Only)", - "description": "Shows how to embed a PDF as a rich‑media annotation in another PDF and disable all interactive features for a read‑only view using Aspose.Pdf.", + "filename": "add-rich-media-annotation-pdf-portfolio.cs", + "title": "Add Rich Media Annotation with PDF Portfolio", + "description": "Demonstrates how to embed a PDF portfolio into a RichMedia annotation and set the initial view to the first embedded file using Aspose.Pdf.", "tags": [ "richmedia", "annotation", - "pdf", - "readonly", - "embed" + "pdf-portfolio", + "embed", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Annotations.RichMediaAnnotation", - "Aspose.Pdf.Annotations.RichMediaAnnotation.SetContent", - "Aspose.Pdf.Annotations.AnnotationFlags", - "Aspose.Pdf.Rectangle" + "RichMediaAnnotation.SetContent", + "RichMediaAnnotation.ActiveState", + "Page.Annotations.Add", + "Document.Save" ], "difficulty": "intermediate" }, + { + "filename": "add-rich-media-pdf-annotation-read-only.cs", + "title": "Add Rich Media Pdf Annotation Read Only", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "add-rich-media-video-annotation.cs", - "title": "Add Rich Media Video Annotation to PDF (Streamed, Read‑Only)", - "description": "Demonstrates embedding an online video stream into a PDF as a RichMediaAnnotation and setting it read‑only to disable downloading.", + "title": "Add Rich Media Video Annotation with Poster to PDF", + "description": "Demonstrates how to embed an MP4 video and a poster image into a PDF using a RichMediaAnnotation.", "tags": [ "richmedia", "video", "annotation", - "aspose.pdf", - "stream" + "pdf", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", "Aspose.Pdf.Annotations.RichMediaAnnotation", - "Aspose.Pdf.Annotations.AnnotationFlags", + "Aspose.Pdf.Annotations.RichMediaAnnotation.SetContent", + "Aspose.Pdf.Annotations.RichMediaAnnotation.SetPoster", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Color" ], "difficulty": "intermediate" }, { "filename": "add-rich-media-video-annotation__v2.cs", - "title": "Add Rich Media Video Annotation with Double‑Click Activation", - "description": "Demonstrates how to embed a video into a PDF as a RichMediaAnnotation, configure it to start playback on a double‑click (using the Click activation event), and optionally set a poster image.", + "title": "Add Rich Media Video Annotation (Click Activation)", + "description": "Demonstrates how to embed a video file into a PDF using Aspose.Pdf's RichMediaAnnotation, set the activation event, and save the modified document.", "tags": [ "richmedia", "video", "annotation", - "aspose-pdf", - "double-click" + "pdf", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Annotations.RichMediaAnnotation", + "Aspose.Pdf.Annotations.RichMediaAnnotation.ActivationEvent", "Aspose.Pdf.Annotations.RichMediaAnnotation.SetContent", - "Aspose.Pdf.Annotations.RichMediaAnnotation.SetPoster", "Aspose.Pdf.Page.Annotations.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "add-screen-annotation-external-swf.cs", - "title": "Add Screen Annotation with External SWF (Read‑Only)", - "description": "Demonstrates how to add a ScreenAnnotation that references an external SWF file and set it to read‑only to prevent user editing.", + "filename": "add-screen-annotation-external-video.cs", + "title": "Add Screen Annotation with External Video URL", + "description": "Demonstrates how to add a ScreenAnnotation to a PDF page that references an external video URL and starts playback automatically.", "tags": [ "screen-annotation", - "swf", - "read-only", + "video", + "external-url", "pdf", - "aspnet" + "annotation" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Annotations.ScreenAnnotation", - "Aspose.Pdf.Annotations.AnnotationFlags", - "Aspose.Pdf.Page.Annotations.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Annotations.GoToURIAction" ], "difficulty": "beginner" }, { - "filename": "add-screen-annotation-external-video.cs", - "title": "Add Screen Annotation with External Video URL", - "description": "Demonstrates how to place a ScreenAnnotation on a PDF page that opens an external video URL when activated.", + "filename": "add-screen-annotation-looping-video.cs", + "title": "Add Looping Video Screen Annotation to PDF", + "description": "This example demonstrates how to embed a video file as a ScreenAnnotation in a PDF, set the annotation to read‑only, and configure it for loop playback.", "tags": [ "screen-annotation", "video", - "external-url", - "pdf", - "annotation" + "loop", + "read-only", + "pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Annotations.ScreenAnnotation", - "Aspose.Pdf.Annotations.GoToURIAction", - "Aspose.Pdf.Page.Annotations.Add", + "Aspose.Pdf.Annotations.AnnotationFlags", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.AnnotationCollection.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "add-screen-annotation-with-video.cs", - "title": "Add Screen Annotation with Video to PDF Page", - "description": "Demonstrates loading a PDF, creating a ScreenAnnotation that references a video file, and placing it on the third page of the document.", + "filename": "add-screen-annotation-swf-readonly.cs", + "title": "Add Screen Annotation with External SWF and Disable Editing", + "description": "Demonstrates how to add a ScreenAnnotation that references an external SWF file to a PDF page and make it read‑only to prevent user interaction.", "tags": [ "screen-annotation", - "video", - "pdf", - "annotations", - "aspnet" + "swf", + "readonly", + "annotation", + "pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Annotations.ScreenAnnotation", + "Aspose.Pdf.Annotations.AnnotationFlags", + "Aspose.Pdf.Page.Annotations.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "add-sound-annotation-to-each-pdf-page.cs", - "title": "Add Sound Annotation to Each PDF Page", - "description": "Shows how to loop through all pages of a PDF and attach a SoundAnnotation that plays a notification tone when the page loads.", + "filename": "add-screen-annotation-with-video-to-pdf.cs", + "title": "Add Video Screen Annotation to PDF Page", + "description": "Loads an existing PDF, accesses the third page, adds a ScreenAnnotation that embeds a video file, and saves the modified document.", "tags": [ - "sound-annotation", + "screen-annotation", + "video", "pdf", "aspose-pdf", - "page-iteration", - "notification" + "page-3" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.SoundAnnotation", "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.ScreenAnnotation", "Aspose.Pdf.Page.Annotations.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "add-sound-annotation-to-pdf-page.cs", - "title": "Add Sound Annotation to PDF Page", - "description": "Demonstrates how to embed a SoundAnnotation that plays a WAV narration when the user clicks a defined region on page five of a PDF using Aspose.Pdf.", + "filename": "add-sound-annotation-chime.cs", + "title": "Add Sound Annotation (Chime) to PDF Page", + "description": "Shows how to insert a SoundAnnotation that plays a chime when a specific page becomes visible in a PDF document.", "tags": [ "sound", "annotation", "pdf", "aspose", - "audio" + "chime" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Annotations.SoundAnnotation", - "Aspose.Pdf.Annotations.SoundAnnotation.Icon", - "Aspose.Pdf.Annotations.SoundAnnotation.Contents", - "Aspose.Pdf.Annotations.AnnotationCollection.Add", + "Aspose.Pdf.Annotations.SoundIcon", + "Aspose.Pdf.Page.Annotations.Add", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "add-sound-annotation-to-pdf-page__v2.cs", - "title": "Add Sound Annotation (Chime) to a PDF Page", - "description": "Demonstrates how to attach a SoundAnnotation that plays a chime when a specific page becomes visible in a PDF using Aspose.Pdf.", + "filename": "add-sound-annotation-to-each-pdf-page.cs", + "title": "Add Sound Annotation to Each PDF Page", + "description": "Demonstrates how to iterate through all pages of a PDF and attach a SoundAnnotation that plays a notification tone when the page loads.", "tags": [ - "sound-annotation", + "sound", + "annotation", "pdf", - "aspose-pdf", - "page", - "chime" + "aspose", + "pages" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", "Aspose.Pdf.Annotations.SoundAnnotation", - "Aspose.Pdf.Annotations.SoundIcon", - "Aspose.Pdf.Page.Annotations.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.SoundIcon" ], "difficulty": "intermediate" }, + { + "filename": "add-sound-annotation-to-pdf-page.cs", + "title": "Add Sound Annotation To Pdf Page", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-sound-annotation-to-pdf-page__v2.cs", + "title": "Add Sound Annotation To Pdf Page__V2", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "add-sound-annotation-to-pdf.cs", - "title": "Add Sound Annotation (MP3) to PDF", - "description": "Demonstrates how to insert a SoundAnnotation that plays an MP3 file when the annotation area is clicked, using Aspose.Pdf.", + "title": "Add Clickable Sound Annotation to PDF", + "description": "Demonstrates how to embed an MP3 file as a SoundAnnotation in a PDF, set its icon, title, and contents, and save the modified document using Aspose.Pdf.", "tags": [ "sound", "annotation", "pdf", - "aspose.pdf", - "mp3" + "audio", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", @@ -40206,15 +48680,15 @@ "difficulty": "beginner" }, { - "filename": "add-sound-annotation-with-notification-tone.cs", - "title": "Add Sound Annotation with Notification Tone to PDF", - "description": "Demonstrates how to embed a SoundAnnotation that plays a WAV notification tone and is visible only when the annotation appears on screen.", + "filename": "add-sound-annotation-visible-tone.cs", + "title": "Add Sound Annotation that Plays When Visible", + "description": "Demonstrates how to create a SoundAnnotation in a PDF using Aspose.Pdf, link it to a WAV file, set an icon and tooltip, and have the sound play when the annotation becomes visible on screen.", "tags": [ "sound", "annotation", "pdf", "aspose", - "csharp" + "visibility" ], "apis_used": [ "Aspose.Pdf.Document", @@ -40228,36 +48702,104 @@ "difficulty": "beginner" }, { - "filename": "add-strikethrough-annotation-with-author.cs", + "filename": "add-sound-annotation-voiceover-page-five.cs", + "title": "Add Sound Annotation for Voice‑over on PDF Page", + "description": "Demonstrates how to add a SoundAnnotation that plays a voice‑over WAV file when the user clicks a defined region on page five of a PDF document.", + "tags": [ + "sound", + "annotation", + "audio", + "clickable", + "Aspose.Pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.SoundAnnotation", + "Aspose.Pdf.Page.Annotations.Add", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner" + }, + { + "filename": "add-sound-annotation-with-notification-tone.cs", + "title": "Add Sound Annotation With Notification Tone", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-square-figure-annotations-custom-border.cs", + "title": "Add Square Figure Annotations with Custom Border to Selected PDF Pages", + "description": "Demonstrates how to programmatically add square figure annotations with a custom line width and color to specific pages of a PDF using Aspose.Pdf.", + "tags": [ + "annotation", + "square", + "border", + "pdf", + "Aspose" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.SquareAnnotation", + "Aspose.Pdf.Annotations.Border", + "Aspose.Pdf.Color" + ], + "difficulty": "intermediate" + }, + { + "filename": "add-strikeout-annotation-with-author.cs", + "title": "Add Strikeout Annotation with Author to PDF", + "description": "Demonstrates how to create a strike‑out annotation on a PDF page, set its author (title) to Jane Smith, and save the modified document.", + "tags": [ + "annotation", + "strikeout", + "author", + "pdf", + "Aspose.Pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.StrikeOutAnnotation", + "Aspose.Pdf.Color" + ], + "difficulty": "beginner" + }, + { + "filename": "add-strikethrough-annotation-to-pdf.cs", "title": "Add Strikethrough Annotation with Author to PDF", - "description": "Shows how to create a StrikeOutAnnotation on a PDF page, define its rectangle, set the author (Title) and color, and save the updated document.", + "description": "Demonstrates how to load a PDF, define a rectangle over a paragraph, create a StrikeOutAnnotation, set its author, and save the updated document using Aspose.Pdf.", "tags": [ "strikeout", "annotation", - "author", "pdf", - "aspose" + "author", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Annotations.StrikeOutAnnotation", - "Aspose.Pdf.Color", - "Aspose.Pdf.Page.Annotations.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Color" ], "difficulty": "beginner" }, { - "filename": "add-text-annotation-to-page-three.cs", - "title": "Add Text Annotation to PDF Page Three", - "description": "Shows how to load a PDF with Aspose.Pdf, create a TextAnnotation on the third page, and save the updated document.", + "filename": "add-text-annotation-to-pdf-page-3.cs", + "title": "Add Text Annotation to PDF Page 3", + "description": "Demonstrates loading a PDF, verifying it has at least three pages, and adding a yellow sticky‑note text annotation to page three before saving the document.", "tags": [ "pdf", "annotation", "text-annotation", - "aspose", + "aspose-pdf", "csharp" ], "apis_used": [ @@ -40266,11 +48808,9 @@ "Aspose.Pdf.Rectangle", "Aspose.Pdf.Annotations.TextAnnotation", "Aspose.Pdf.Annotations.TextIcon", - "Aspose.Pdf.Color", - "Aspose.Pdf.Page.Annotations.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Color" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "add-text-watermark-annotation.cs", @@ -40280,15 +48820,14 @@ "watermark", "annotation", "pdf", - "Aspose.Pdf", - "text" + "text", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Annotations.WatermarkAnnotation", "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Text.FontRepository.FindFont", "Aspose.Pdf.Annotations.WatermarkAnnotation.SetTextAndState", "Aspose.Pdf.Page.Annotations.Add", "Aspose.Pdf.Document.Save" @@ -40296,30 +48835,17 @@ "difficulty": "beginner" }, { - "filename": "add-tiled-pdf-background-artifact.cs", - "title": "Add Tiled PDF Background Using BackgroundArtifact", - "description": "Demonstrates how to use a high‑resolution PDF page as a tiled background for a new document by creating a BackgroundArtifact and adding it to a page's artifacts collection.", - "tags": [ - "background", - "artifact", - "tiled", - "pdf", - "Aspose.Pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.BackgroundArtifact", - "Aspose.Pdf.BackgroundArtifact.SetPdfPage", - "Aspose.Pdf.Page.Artifacts.Add", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "intermediate" + "filename": "add-tiled-pdf-background-artifact.cs", + "title": "Add Tiled Pdf Background Artifact", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "add-transparent-freetext-annotation.cs", "title": "Add Transparent Free‑Text Annotation to PDF", - "description": "Demonstrates how to add a free‑text annotation with a transparent background and semi‑transparent opacity to a PDF using Aspose.Pdf.", + "description": "Demonstrates how to create a free‑text annotation with a transparent background and partial opacity, then add it to a PDF page using Aspose.Pdf.", "tags": [ "free-text", "annotation", @@ -40331,40 +48857,48 @@ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.DefaultAppearance", + "Aspose.Pdf.Text.DefaultAppearance", "Aspose.Pdf.Annotations.FreeTextAnnotation", "Aspose.Pdf.Color", "Aspose.Pdf.Page.Annotations.Add", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "add-watermark-annotation-with-gradient.cs", - "title": "Add Watermark Annotation with Gradient Fill to PDF", - "description": "Demonstrates loading a PDF, creating a WatermarkAnnotation covering most of a page, setting its color and opacity, and adding it to the page before saving. The example highlights where a custom appearance stream could be used for gradient fill and diagonal rotation.", + "title": "Add Watermark Annotation With Gradient", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-word-count-link-annotation.cs", + "title": "Create PDF Link Annotation that Shows Word Count", + "description": "Demonstrates how to add a clickable link annotation to a PDF that runs JavaScript to calculate the total word count of the document and displays it in an alert.", "tags": [ - "watermark", - "annotation", - "gradient", + "link-annotation", + "javascript", + "word-count", "pdf", - "Aspose" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.WatermarkAnnotation", - "Aspose.Pdf.Color.FromRgb", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Page.Annotations.Add" + "Aspose.Pdf.Annotations.LinkAnnotation", + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Annotations.Border", + "Aspose.Pdf.Color" ], "difficulty": "intermediate" }, { "filename": "add-yellow-highlight-annotation.cs", "title": "Add Yellow Highlight Annotation with Opacity", - "description": "Shows how to add a highlight annotation to a PDF page, set its color to yellow and opacity to 80% using Aspose.Pdf.", + "description": "Shows how to create a highlight annotation on a PDF page, set its color to yellow and opacity to 80%, and save the updated document.", "tags": [ "highlight", "annotation", @@ -40374,10 +48908,9 @@ ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", "Aspose.Pdf.Annotations.HighlightAnnotation", "Aspose.Pdf.Color", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Page.Annotations.Add", "Aspose.Pdf.Document.Save" ], @@ -40386,33 +48919,32 @@ { "filename": "align-watermark-annotations-to-page-margins.cs", "title": "Align Watermark Annotations to Page Margins", - "description": "Shows how to iterate through PDF pages, find WatermarkAnnotation objects, and reposition them uniformly within a specified margin from each page edge.", + "description": "Shows how to adjust the rectangle of every WatermarkAnnotation in a PDF so that the watermarks line up uniformly with specified page margins.", "tags": [ "watermark", "annotation", - "margin", "pdf", - "Aspose.Pdf" + "margin", + "alignment" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", "Aspose.Pdf.Annotations.WatermarkAnnotation", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.PageInfo" ], "difficulty": "intermediate" }, { "filename": "apply-tiled-pdf-pattern-watermark.cs", "title": "Apply Tiled PDF Pattern as Watermark Across All Pages", - "description": "Demonstrates how to use a WatermarkArtifact with a PDF page as a reusable XForm to tile a pattern across every page of a document, placing it behind the page content.", + "description": "Demonstrates using WatermarkArtifact with SetPdfPage to tile a PDF page as a background watermark on every page of a target PDF document.", "tags": [ "watermark", - "artifact", - "tiled", "pdf", + "tiled", + "artifact", "Aspose.Pdf" ], "apis_used": [ @@ -40420,35 +48952,45 @@ "Aspose.Pdf.Page", "Aspose.Pdf.WatermarkArtifact", "Aspose.Pdf.WatermarkArtifact.SetPdfPage", + "Aspose.Pdf.WatermarkArtifact.IsBackground", + "Aspose.Pdf.WatermarkArtifact.Opacity", "Aspose.Pdf.Page.Artifacts.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "batch-add-image-watermark-artifact.cs", - "title": "Batch Add Image Watermark Artifact to PDFs", - "description": "Demonstrates how to process a collection of PDF files and add the same image‑based WatermarkArtifact to every page, using a shared image reference to keep the output file size low.", + "filename": "auto-play-rich-media-video-annotation.cs", + "title": "Add Auto‑Playing Rich Media Video Annotation", + "description": "Demonstrates how to embed a video as a RichMediaAnnotation in a PDF and configure it to start playing automatically when the page becomes visible.", "tags": [ - "watermark", - "pdf", - "batch", - "artifact", - "image" + "richmedia", + "annotation", + "autoplay", + "video", + "pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.WatermarkArtifact", - "Aspose.Pdf.WatermarkArtifact.SetImage", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.RichMediaAnnotation", + "Aspose.Pdf.Annotations.RichMediaAnnotation.SetContent" ], "difficulty": "intermediate" }, { - "filename": "batch-add-popup-annotations.cs", - "title": "Batch Add Popup Annotations Linked to Text Annotations", - "description": "Shows how to iterate through each page of a PDF, create a text (sticky note) annotation and a linked popup annotation, and save the updated document using Aspose.Pdf.", + "filename": "batch-add-image-watermark-artifact.cs", + "title": "Batch Add Image Watermark Artifact", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "batch-add-linked-popup-annotations.cs", + "title": "Batch Add Linked Popup Annotations to PDF Pages", + "description": "Shows how to iterate through all pages of a PDF, locate TextAnnotation (sticky‑note) objects, create matching PopupAnnotation objects, link them, and save the updated document.", "tags": [ "annotations", "popup", @@ -40459,41 +49001,38 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.Annotation", "Aspose.Pdf.Annotations.TextAnnotation", "Aspose.Pdf.Annotations.PopupAnnotation", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, + { + "filename": "batch-add-popup-annotations.cs", + "title": "Batch Add Popup Annotations", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "batch-add-screen-annotations-with-videos.cs", - "title": "Batch Add Screen Annotations with Videos to PDF Pages", - "description": "Demonstrates how to attach a different video file to each page of a multi‑page PDF by creating ScreenAnnotation objects and saving the updated document.", - "tags": [ - "screen-annotation", - "video", - "pdf", - "aspose-pdf", - "batch" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.ScreenAnnotation", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "intermediate" + "title": "Batch Add Screen Annotations With Videos", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "batch-add-sound-annotations-to-pdf-pages.cs", "title": "Batch Add Sound Annotations to PDF Pages", - "description": "Shows how to load a PDF, iterate through its pages, and add a SoundAnnotation with a different audio file to each page before saving the document.", + "description": "Demonstrates how to add a SoundAnnotation to each page of a PDF using Aspose.Pdf, assigning a different audio file to each page.", "tags": [ "sound-annotation", "pdf", "audio", - "batch", + "annotations", "aspose-pdf" ], "apis_used": [ @@ -40501,27 +49040,26 @@ "Aspose.Pdf.Page", "Aspose.Pdf.Annotations.SoundAnnotation", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Page.Annotations" + "Aspose.Pdf.Annotations.SoundIcon" ], "difficulty": "intermediate" }, { "filename": "batch-add-text-annotation-to-first-page.cs", "title": "Batch Add Text Annotation to First Page of PDFs", - "description": "Demonstrates how to iterate through a folder of PDF files, add a standard text annotation to the first page of each document, and save the annotated copies to an output directory.", + "description": "The example iterates through all PDF files in a folder, adds a standard text annotation to the first page of each document, and saves the annotated files to an output directory.", "tags": [ "pdf", "annotation", "batch", "textannotation", - "aspose" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.TextAnnotation", "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.TextAnnotation", "Aspose.Pdf.Color" ], "difficulty": "beginner" @@ -40529,7 +49067,7 @@ { "filename": "batch-add-text-annotations-to-pdf-pages.cs", "title": "Batch Add Text Annotations to PDF Pages", - "description": "Shows how to load a PDF, iterate through each page, and add a text annotation with custom properties to every page using Aspose.Pdf.", + "description": "Shows how to load a PDF, iterate over every page, create a TextAnnotation, and add it to each page using Aspose.Pdf.", "tags": [ "annotations", "pdf", @@ -40543,42 +49081,84 @@ "Aspose.Pdf.Annotations.TextAnnotation", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Color", - "Aspose.Pdf.Annotations.TextIcon" + "Aspose.Pdf.Annotations.TextIcon", + "Aspose.Pdf.Page.Annotations.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "batch-add-video-screen-annotations.cs", "title": "Batch Add Video Screen Annotations to PDF Pages", - "description": "Demonstrates how to add a ScreenAnnotation containing a video file to every page of a PDF, automatically calculating the rectangle to keep a 16:9 aspect ratio.", + "description": "Shows how to add a ScreenAnnotation with a video file to each page of a multi‑page PDF using Aspose.Pdf, including validation of input files.", + "tags": [ + "screen-annotation", + "video", + "pdf", + "annotations", + "batch" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.ScreenAnnotation", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Page.Annotations", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "intermediate" + }, + { + "filename": "batch-add-video-screen-annotations__v2.cs", + "title": "Batch Add Video Screen Annotations to PDF Pages", + "description": "Demonstrates how to iterate through all pages of a PDF and add a ScreenAnnotation that plays a video, adjusting the annotation rectangle to keep the video’s aspect ratio.", "tags": [ "screen-annotation", "video", "pdf", "batch", - "aspose" + "aspect-ratio" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Annotations.ScreenAnnotation", - "Aspose.Pdf.Annotations.Border", - "Aspose.Pdf.Color", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "intermediate" + }, + { + "filename": "batch-add-watermark-artifact-to-pdfs.cs", + "title": "Batch Add Watermark Artifact to PDFs", + "description": "Demonstrates how to iterate through a folder of PDF files and add the same image‑based WatermarkArtifact to every page, reusing the image reference to keep the resulting file size low.", + "tags": [ + "watermark", + "artifact", + "batch", + "pdf", + "Aspose.Pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.WatermarkArtifact", + "Aspose.Pdf.WatermarkArtifact.SetImage", + "Aspose.Pdf.Page.Artifacts.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "batch-export-pdf-annotations-to-xfdf.cs", - "title": "Batch Export PDF Annotations to XFDF Files", - "description": "Demonstrates how to iterate through a folder of PDF documents and export each file's annotations to a separate XFDF file using Aspose.Pdf.", + "title": "Batch Export PDF Annotations to XFDF", + "description": "Demonstrates how to load multiple PDF files from a folder and export each document's annotations to separate XFDF files using Aspose.Pdf.", "tags": [ "annotations", "xfdf", "batch", - "export", - "pdf" + "pdf", + "export" ], "apis_used": [ "Aspose.Pdf.Document", @@ -40587,29 +49167,35 @@ "difficulty": "beginner" }, { - "filename": "batch-import-xfdf-annotations-merge-pdfs.cs", - "title": "Batch Import XFDF Annotations and Merge PDFs", - "description": "Demonstrates how to import XFDF annotation files into their matching PDFs and then merge all PDFs into a single document while preserving the imported annotations.", + "filename": "batch-import-xfdf-annotations-into-pdfs.cs", + "title": "Batch Import XFDF Annotations into PDFs", + "description": "Demonstrates how to iterate over a folder of PDF files, import matching XFDF annotation files into each PDF, and save the annotated documents. The example shows batch processing and error handling using Aspose.Pdf.", "tags": [ "xfdf", "annotations", - "merge", + "batch", "pdf", - "batch" + "import" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Document.ImportAnnotationsFromXfdf", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.PageCollection", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, + { + "filename": "batch-import-xfdf-annotations-merge-pdfs.cs", + "title": "Batch Import Xfdf Annotations Merge Pdfs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "batch-replace-watermark-annotations.cs", "title": "Batch Replace Watermark Annotations with Current Date", - "description": "Shows how to open a PDF, iterate through all pages and annotations, locate WatermarkAnnotation objects, and replace their text with a new string that includes the current date while applying a custom text style.", + "description": "Shows how to load a PDF, iterate through all pages and annotations, identify WatermarkAnnotation objects, and replace their text with a string that includes the current date.", "tags": [ "watermark", "annotation", @@ -40620,39 +49206,38 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.Annotation", "Aspose.Pdf.Annotations.WatermarkAnnotation", "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Text.FontRepository.FindFont", - "Aspose.Pdf.Annotations.WatermarkAnnotation.SetTextAndState", - "Aspose.Pdf.Color" + "Aspose.Pdf.Color", + "Aspose.Pdf.Annotations.WatermarkAnnotation.SetTextAndState" ], "difficulty": "intermediate" }, { "filename": "batch-watermark-dynamic-opacity.cs", - "title": "Batch Add Watermark Artifact with Dynamic Opacity to PDFs", - "description": "Processes all PDF files in a folder, computes an opacity value based on each document's page count, and adds a centered \"CONFIDENTIAL\" watermark artifact to every page.", + "title": "Batch Add WatermarkArtifact with Dynamic Opacity to PDFs", + "description": "Processes all PDF files in a folder, adds a centered watermark artifact whose opacity is calculated from the document's page count, and saves the watermarked PDFs to an output folder.", "tags": [ "watermark", "pdf", "batch", "opacity", - "Aspose.Pdf" + "annotations" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.WatermarkArtifact", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.FontRepository.FindFont", - "Aspose.Pdf.Color" + "Aspose.Pdf.Page.Artifacts.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "change-button-annotation-color-to-blue.cs", "title": "Change Button Annotation Color to Blue", - "description": "Demonstrates loading a PDF, iterating over its annotations, identifying button fields, setting their color to blue, and saving the modified document using Aspose.Pdf.", + "description": "Loads a PDF, iterates through all annotations, sets the color of button field annotations to blue, and saves the modified document.", "tags": [ "annotations", "button", @@ -40665,78 +49250,100 @@ "Aspose.Pdf.Page", "Aspose.Pdf.Annotations.Annotation", "Aspose.Pdf.Forms.ButtonField", - "Aspose.Pdf.Color", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Color" ], "difficulty": "beginner" }, { "filename": "change-figure-annotation-color.cs", - "title": "Change Figure Annotation Color in PDF", - "description": "Loads a PDF, locates figure annotations (square, circle, etc.), accesses their appearance dictionary, changes the annotation color to red, and saves the modified document.", + "title": "Change Figure Annotation Color", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "clone-richmedia-annotations-summary-page.cs", + "title": "Clone RichMediaAnnotations to a Summary Page", + "description": "Loads a PDF, gathers all RichMediaAnnotation objects, adds a new summary page, and clones each annotation onto that page while preserving key properties.", "tags": [ + "richmedia", "annotation", - "figure", - "color", - "appearance", + "summary-page", + "clone", "pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.RichMediaAnnotation", "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.CommonFigureAnnotation", - "Aspose.Pdf.Annotations.AppearanceDictionary", - "Aspose.Pdf.Color", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "clone-richmedia-annotations-to-summary-page.cs", - "title": "Clone RichMedia Annotations to Summary Page", - "description": "Loads a PDF, creates a new summary page, and clones every RichMediaAnnotation from the existing pages onto that page while preserving key properties.", + "title": "Clone Richmedia Annotations To Summary Page", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "clone-watermark-annotation-across-pdf-pages.cs", + "title": "Clone Watermark Annotation Across Pdf Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "clone-watermark-annotation-to-multiple-pdf-pages.cs", + "title": "Clone Watermark Annotation to Multiple PDF Pages", + "description": "Loads a PDF, finds the first WatermarkAnnotation, and clones it onto every other page with position offsets, then saves the updated document.", "tags": [ - "richmedia", + "watermark", "annotation", - "pdf", "clone", - "summary-page" + "pdf", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Annotations.WatermarkAnnotation", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.RichMediaAnnotation", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Page.Annotations.Add" ], "difficulty": "intermediate" }, { - "filename": "clone-watermark-annotation-across-pdf-pages.cs", - "title": "Clone Watermark Annotation Across PDF Pages", - "description": "Shows how to clone a WatermarkAnnotation, adjust its position, and apply it to each page of a PDF using Aspose.Pdf.", + "filename": "copy-pdf-annotations-via-xfdf.cs", + "title": "Copy PDF Annotations via XFDF", + "description": "Demonstrates exporting annotations from a source PDF to an XFDF file and importing them into another PDF using Aspose.Pdf.", "tags": [ - "watermark", - "annotation", - "clone", + "annotations", + "xfdf", "pdf", - "Aspose" + "export", + "import" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Annotations.WatermarkAnnotation", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.TextAnnotation", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Color", - "Aspose.Pdf.Annotations.WatermarkAnnotation.Clone", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.ExportAnnotationsToXfdf", + "Aspose.Pdf.Document.ImportAnnotationsFromXfdf" ], "difficulty": "intermediate" }, { "filename": "count-watermark-artifacts-on-pdf-page.cs", "title": "Count Watermark Artifacts on a PDF Page", - "description": "Shows how to load a PDF with Aspose.Pdf, iterate over a page's Artifacts collection, filter for WatermarkArtifact objects, and count them.", + "description": "Shows how to load a PDF with Aspose.Pdf, access a specific page, and count the WatermarkArtifact objects present on that page.", "tags": [ "watermark", "artifact", @@ -40747,49 +49354,27 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Artifact", "Aspose.Pdf.WatermarkArtifact", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Page.Artifacts" ], "difficulty": "beginner" }, { - "filename": "create-3d-annotation-metal-surface.cs", - "title": "Create 3D Annotation with Metal Surface Lighting", - "description": "Shows how to embed a U3D model in a PDF as a 3‑D annotation and configure lighting, render mode, and background color to simulate realistic metal surfaces.", - "tags": [ - "3d", - "annotation", - "lighting", - "metal", - "pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.PDF3DContent", - "Aspose.Pdf.Annotations.PDF3DArtwork", - "Aspose.Pdf.Annotations.PDF3DAnnotation", - "Aspose.Pdf.Annotations.PDF3DLightingScheme", - "Aspose.Pdf.Annotations.PDF3DRenderMode", - "Aspose.Pdf.Color.FromRgb" - ], - "difficulty": "intermediate" - }, - { - "filename": "create-3d-annotation-with-custom-lighting.cs", + "filename": "create-3d-annotation-custom-lighting.cs", "title": "Create 3D Annotation with Custom Lighting in PDF", - "description": "Shows how to embed a U3D/PRC 3‑D model into a PDF and apply a custom lighting scheme and render mode using Aspose.Pdf.", + "description": "Demonstrates embedding a U3D model into a PDF as a 3‑D annotation and applying a custom lighting scheme and render mode to enhance visual depth.", "tags": [ "3d", "annotation", "lighting", "pdf", - "aspose" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Annotations.PDF3DContent", "Aspose.Pdf.Annotations.PDF3DLightingScheme", "Aspose.Pdf.Annotations.PDF3DRenderMode", @@ -40799,35 +49384,58 @@ "difficulty": "intermediate" }, { - "filename": "create-3d-annotation-with-embedded-textures.cs", - "title": "Create 3D Annotation with Embedded Textures and Realistic Rendering", - "description": "Demonstrates how to embed a U3D/PRC model with its textures into a PDF as a 3‑D annotation and adjust material rendering for realistic shading.", + "filename": "create-3d-annotation-metal-surface.cs", + "title": "Create 3D Annotation Metal Surface", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-3d-annotation-metallic-lighting.cs", + "title": "Create 3D Annotation with Metallic Lighting", + "description": "Demonstrates embedding a 3‑D model into a PDF and configuring lighting, render mode, and material properties to simulate realistic metal surfaces.", "tags": [ "3d", "annotation", - "texture", - "rendering", - "pdf" + "lighting", + "material", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Annotations.PDF3DContent", "Aspose.Pdf.Annotations.PDF3DArtwork", - "Aspose.Pdf.Annotations.PDF3DRenderMode", "Aspose.Pdf.Annotations.PDF3DAnnotation", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Annotations.PDF3DLightingScheme", + "Aspose.Pdf.Annotations.PDF3DRenderMode" ], "difficulty": "intermediate" }, + { + "filename": "create-3d-annotation-with-custom-lighting.cs", + "title": "Create 3D Annotation With Custom Lighting", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-3d-annotation-with-embedded-textures.cs", + "title": "Create 3D Annotation With Embedded Textures", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "create-button-toggle-annotations-visibility.cs", "title": "Create Button to Toggle Annotations Visibility", - "description": "Shows how to add a push‑button to a PDF page that executes JavaScript to hide or show all annotations on the current page.", + "description": "Shows how to add a push‑button form field to a PDF page and assign JavaScript that toggles the hidden state of all annotations on that page.", "tags": [ + "annotations", "button", "javascript", - "annotations", "toggle", "pdf" ], @@ -40842,96 +49450,124 @@ }, { "filename": "create-link-annotation-external-pdf-page.cs", - "title": "Create Link Annotation to Open External PDF Page", - "description": "Shows how to add a link annotation to a PDF that opens a specific page of another PDF document when clicked.", + "title": "Create Link Annotation External Pdf Page", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-link-annotation-named-destination.cs", + "title": "Create Link Annotation to a Named Destination", + "description": "Demonstrates how to add a link annotation that jumps to a named destination within the same PDF using Aspose.Pdf. The example creates a named destination, associates it with a GoToAction, and attaches the annotation to a page.", "tags": [ - "link", - "annotation", - "external-pdf", - "goto-remote", - "aspdf" + "link-annotation", + "named-destination", + "goto-action", + "pdf", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", "Aspose.Pdf.Annotations.LinkAnnotation", - "Aspose.Pdf.Annotations.GoToRemoteAction", - "Aspose.Pdf.Color", - "Page.Annotations.Add", - "Document.Save" + "Aspose.Pdf.Annotations.GoToAction", + "Aspose.Pdf.NamedDestinations.Add", + "Aspose.Pdf.Destinations.FitExplicitDestination", + "Aspose.Pdf.Annotations.Border", + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate" }, { - "filename": "create-link-annotation-named-destination.cs", - "title": "Create Link Annotation to a Named Destination", - "description": "Demonstrates how to define a named destination on a PDF page and add a link annotation on another page that jumps to that destination using Aspose.Pdf.", + "filename": "create-link-annotation-open-embedded-pdf.cs", + "title": "Create Link Annotation to Open Embedded PDF Attachment", + "description": "Demonstrates how to embed a PDF file into a document and add a link annotation that opens the embedded PDF when clicked.", "tags": [ "link-annotation", - "named-destination", - "go-to-action", - "pdf", + "embedded-file", + "goto-remote-action", + "pdf-attachment", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.NamedDestinations.Add", - "Aspose.Pdf.FitExplicitDestination", + "Aspose.Pdf.FileSpecification", "Aspose.Pdf.Annotations.LinkAnnotation", - "Aspose.Pdf.Annotations.GoToAction", + "Aspose.Pdf.Annotations.GoToRemoteAction", "Aspose.Pdf.Annotations.Border" ], "difficulty": "intermediate" }, { - "filename": "create-link-annotation-open-embedded-pdf.cs", - "title": "Create Link Annotation to Open Embedded PDF", - "description": "Shows how to embed a PDF file into a document and add a link annotation that opens the embedded attachment when clicked.", + "filename": "create-link-annotation-remote-pdf-page.cs", + "title": "Create Link Annotation to Open Remote PDF Page", + "description": "Shows how to add a link annotation that opens a specific page of an external PDF document using Aspose.Pdf.", "tags": [ "link-annotation", - "embedded-file", - "pdf-attachment", + "remote-pdf", + "goto-action", "aspose-pdf", - "annotations" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.EmbeddedFiles", "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Annotations.LinkAnnotation", - "Aspose.Pdf.Annotations.FileHyperlink", - "Aspose.Pdf.Annotations.Border" + "Aspose.Pdf.Annotations.GoToRemoteAction" + ], + "difficulty": "beginner" + }, + { + "filename": "create-pdf-button-export-annotations-json.cs", + "title": "Create PDF Button to Export Annotations as JSON", + "description": "The example loads an existing PDF, adds a push‑button form field, and assigns a JavaScript action that gathers all annotations, converts them to a JSON string, and displays the result. The modified PDF is then saved with the new export button.", + "tags": [ + "button", + "javascript", + "annotations", + "json", + "pdf-form" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.ButtonField", + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Form", + "Aspose.Pdf.Forms.FieldActions" ], "difficulty": "intermediate" }, { - "filename": "create-pdf-with-gradient-background.cs", - "title": "Create PDF with Gradient Background Using BackgroundArtifact", - "description": "Shows how to generate a blue‑to‑white gradient bitmap in memory and apply it as a page background using Aspose.Pdf's BackgroundArtifact.", + "filename": "create-pdf-gradient-background-artifact.cs", + "title": "Create PDF with Gradient Background Artifact", + "description": "Shows how to add a BackgroundArtifact to a PDF page and outlines the approach for using a form (XForm) to apply a gradient fill instead of a solid color.", "tags": [ - "gradient", "background", "artifact", + "gradient", "pdf", - "Aspose.Pdf" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.BackgroundArtifact", - "Aspose.Pdf.Page.Artifacts.Add", - "Aspose.Pdf.BackgroundArtifact.SetImage", + "Aspose.Pdf.Drawing.BackgroundArtifact", + "Aspose.Pdf.Drawing.Color", + "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Drawing.GraphInfo", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "create-submit-button-with-javascript.cs", - "title": "Create Submit Button with JavaScript Action in PDF", - "description": "Demonstrates how to add a push button to a PDF that uses JavaScript to submit the form data to a specified HTTP endpoint.", + "filename": "create-pdf-submit-button.cs", + "title": "Create PDF Submit Button with JavaScript Action", + "description": "Shows how to add a push button to a PDF that submits form data to a specified HTTP endpoint using Acrobat JavaScript.", "tags": [ "pdf", "button", @@ -40944,97 +49580,166 @@ "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.ButtonField", - "Aspose.Pdf.Annotations.JavascriptAction" + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Forms.Form.Add", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "delete-all-highlight-annotations.cs", - "title": "Delete All Highlight Annotations from PDF", - "description": "Demonstrates loading a PDF, enumerating highlight annotations on each page, and removing them using Aspose.Pdf.", + "filename": "create-pdf-with-gradient-background.cs", + "title": "Create Pdf With Gradient Background", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-popup-annotation-linked-to-highlight.cs", + "title": "Create Popup Annotation Linked to Highlight", + "description": "Loads a PDF, adds a highlight annotation on the first page, creates a popup annotation, links the popup to the highlight, and saves the modified document.", "tags": [ "highlight", + "popup", "annotation", - "delete", - "pdf", - "Aspose.Pdf" + "link", + "pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Annotations.HighlightAnnotation", - "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.PopupAnnotation", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Text.TextFragment" + "Aspose.Pdf.Color" ], "difficulty": "intermediate" }, { - "filename": "delete-annotation-by-id-from-pdf-page.cs", - "title": "Delete Annotation by Id from PDF Page", - "description": "Demonstrates how to locate an annotation on the second page of a PDF using its Name (unique Id) and remove it with Aspose.Pdf, then save the modified document.", + "filename": "create-richmedia-annotation-flash-video.cs", + "title": "Create RichMedia Annotation with Flash Video on First Page", + "description": "Demonstrates how to embed a Flash video as a RichMediaAnnotation on the first page of a PDF and configure its playback controls using Aspose.Pdf.", "tags": [ + "richmedia", + "flash", "annotation", - "delete", "pdf", - "Aspose.Pdf", - "page2" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.AnnotationCollection", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.AnnotationCollection.Delete", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.RichMediaAnnotation", + "Aspose.Pdf.Annotations.RichMediaAnnotation.SetContent" ], "difficulty": "intermediate" }, { - "filename": "delete-annotations-from-pdf-using-csv.cs", - "title": "Delete PDF Annotations Using Names from CSV", - "description": "The example reads annotation names from a CSV file, locates matching annotations in a PDF, removes them, and saves the updated document.", + "filename": "create-submit-button-with-javascript.cs", + "title": "Create Submit Button With Javascript", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "delete-all-annotations-restore-from-xfdf.cs", + "title": "Delete All PDF Annotations and Restore from XFDF", + "description": "Loads a PDF, removes every annotation from all pages, then re‑imports the annotations from an XFDF backup file and saves the updated document.", "tags": [ "annotations", + "xfdf", "pdf", - "csv", + "aspose-pdf", + "delete" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations", + "Aspose.Pdf.Document.ImportAnnotationsFromXfdf", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner" + }, + { + "filename": "delete-all-highlight-annotations.cs", + "title": "Delete All Highlight Annotations", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "delete-annotation-by-id-page-two.cs", + "title": "Delete Annotation by Id from Page Two", + "description": "Shows how to locate an annotation using its Name (unique Id) on the second page of a PDF and delete it with Aspose.Pdf.", + "tags": [ + "annotations", "delete", - "aspose" + "pdf", + "Aspose.Pdf", + "page2" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Page.Annotations", "Aspose.Pdf.Page.Annotations.Delete", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, + { + "filename": "delete-annotations-from-pdf-using-csv.cs", + "title": "Delete Annotations From Pdf Using Csv", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "delete-annotations-restore-from-xfdf.cs", - "title": "Delete All Annotations and Restore from XFDF", - "description": "Demonstrates how to remove every annotation from a PDF document and then re‑import them from an XFDF backup file using Aspose.Pdf.", + "title": "Delete Annotations Restore From Xfdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "delete-pdf-annotations-from-csv.cs", + "title": "Delete PDF Annotations Using a CSV List", + "description": "Demonstrates how to read annotation identifiers from a CSV file and remove matching annotations from a PDF using Aspose.Pdf.", "tags": [ "annotations", - "xfdf", "pdf", - "aspose", - "csharp" + "delete", + "csv", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PageCollection", - "Aspose.Pdf.Annotations.AnnotationCollection", - "Aspose.Pdf.Document.ImportAnnotationsFromXfdf", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.AnnotationCollection.FindByName", + "Aspose.Pdf.Annotations.AnnotationCollection.Delete", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "duplicate-watermark-annotations-across-pdf-pages.cs", - "title": "Duplicate Watermark Annotations Across PDF Pages", - "description": "Loads a PDF, extracts all WatermarkAnnotation objects from the first page, and programmatically copies them to every subsequent page while preserving visual and metadata properties.", + "title": "Duplicate Watermark Annotations Across Pdf Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "duplicate-watermark-annotations.cs", + "title": "Duplicate WatermarkAnnotations Across PDF Pages", + "description": "Loads a PDF, extracts all WatermarkAnnotation objects from the first page, and clones them onto every subsequent page while preserving visual properties, then saves the result.", "tags": [ "watermark", "annotation", @@ -41045,102 +49750,109 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", "Aspose.Pdf.Annotations.WatermarkAnnotation", + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Page.Annotations", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "embed-mp4-video-with-poster.cs", - "title": "Embed MP4 Video with Poster Image using RichMediaAnnotation", - "description": "Demonstrates adding a RichMediaAnnotation to a PDF that embeds an MP4 video and defines a poster image shown before playback.", - "tags": [ - "richmedia", - "video", - "annotation", - "pdf", - "Aspose.Pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.RichMediaAnnotation", - "RichMediaAnnotation.SetContent", - "RichMediaAnnotation.SetPoster" - ], - "difficulty": "intermediate" + "title": "Embed Mp4 Video With Poster", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "embed-pdf-portfolio-richmedia-annotation.cs", - "title": "Embed PDF Portfolio with RichMediaAnnotation", - "description": "Shows how to embed a PDF portfolio into a PDF using a RichMediaAnnotation and set the initial view to the first embedded file.", + "filename": "embed-pdf-portfolio-rich-media-disable-printing.cs", + "title": "Embed PDF Portfolio as Rich Media and Disable Printing", + "description": "Shows how to embed a PDF portfolio into a PDF using a RichMediaAnnotation and then prevent printing by applying encryption with specific permissions.", "tags": [ "richmedia", - "annotation", "pdf-portfolio", - "embedding", + "permissions", + "encryption", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.Annotations.RichMediaAnnotation", - "Aspose.Pdf.Annotations.RichMediaAnnotation.ActivationEvent", - "Aspose.Pdf.Annotations.RichMediaAnnotation.SetContent", - "Aspose.Pdf.Border", - "Aspose.Pdf.Color" + "Aspose.Pdf.Annotations.RichMediaAnnotation.SetContent", + "Aspose.Pdf.Permissions", + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate" }, + { + "filename": "embed-pdf-portfolio-richmedia-annotation.cs", + "title": "Embed Pdf Portfolio Richmedia Annotation", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "embed-pdf-portfolio-richmedia-disable-printing.cs", - "title": "Embed PDF Portfolio as Rich Media and Disable Printing", - "description": "Shows how to add a RichMediaAnnotation that embeds a PDF portfolio into a PDF document and then encrypts the file to prevent printing.", + "title": "Embed Pdf Portfolio Richmedia Disable Printing", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "export-annotation-ids-to-csv.cs", + "title": "Export Annotation IDs and Authors to CSV", + "description": "Loads a PDF, iterates through all pages and their annotations, extracts each annotation's Name (as ID) and author (Title), and writes the data to a UTF‑8 CSV file for audit purposes.", "tags": [ - "richmedia", - "annotation", - "pdf-portfolio", - "security", - "encryption" + "annotations", + "csv", + "audit", + "aspose-pdf", + "metadata" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.RichMediaAnnotation", - "Aspose.Pdf.Annotations.RichMediaAnnotation.SetContent", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.Document.Encrypt" + "Aspose.Pdf.Annotations.AnnotationCollection", + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.MarkupAnnotation" ], "difficulty": "intermediate" }, { "filename": "export-annotations-modify-colors-xfdf.cs", - "title": "Export Annotations to XFDF, Modify Colors, and Re‑import into PDF", - "description": "Demonstrates exporting PDF annotations to an XFDF file, editing the XFDF XML to change annotation colors, and importing the modified XFDF back into the PDF.", + "title": "Export Annotations Modify Colors Xfdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "export-annotations-modify-colors.cs", + "title": "Export Annotations to XFDF, Change Colors, and Re‑import", + "description": "Demonstrates exporting PDF annotations to an XFDF file, editing the XFDF XML to change annotation colors, and importing the modified annotations back into the PDF.", "tags": [ "annotations", "xfdf", "color", "pdf", - "aspose-pdf" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Annotations.Rectangle", "Aspose.Pdf.Document.ExportAnnotationsToXfdf", - "Aspose.Pdf.Document.ImportAnnotationsFromXfdf" + "Aspose.Pdf.Document.ImportAnnotationsFromXfdf", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "export-import-pdf-annotations-xfdf.cs", - "title": "Export and Re-import PDF Annotations via XFDF", - "description": "Demonstrates how to export annotations from a PDF to an XFDF file, clear the original annotations, re-import them, and verify that the annotation count remains unchanged.", + "filename": "export-import-annotations-xfdf.cs", + "title": "Export and Re‑Import PDF Annotations via XFDF", + "description": "Demonstrates exporting all annotations from a PDF to an XFDF file, importing them back into the same document, and verifying round‑trip integrity by comparing annotation counts.", "tags": [ "annotations", "xfdf", @@ -41153,16 +49865,14 @@ "Aspose.Pdf.Page", "Aspose.Pdf.Document.ExportAnnotationsToXfdf", "Aspose.Pdf.Document.ImportAnnotationsFromXfdf", - "Aspose.Pdf.Page.Annotations", - "Aspose.Pdf.Page.Annotations.Clear", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "export-import-pdf-annotations-xfdf__v2.cs", + "filename": "export-import-pdf-annotations-xfdf.cs", "title": "Export and Import PDF Annotations via XFDF", - "description": "Demonstrates how to export all annotations from a source PDF to an XFDF file and then import them into another PDF, preserving comments and markup.", + "description": "Demonstrates how to export annotations from a PDF to an XFDF file and then import those annotations into another PDF using Aspose.Pdf.", "tags": [ "annotations", "xfdf", @@ -41172,8 +49882,9 @@ ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.TextAnnotation", "Aspose.Pdf.Document.ExportAnnotationsToXfdf", "Aspose.Pdf.Document.ImportAnnotationsFromXfdf" ], @@ -41181,89 +49892,56 @@ }, { "filename": "export-import-pdf-annotations-xfdf__v3.cs", - "title": "Export and Import PDF Annotations via XFDF", - "description": "Shows how to export annotations from a source PDF to an XFDF file and then import those annotations into another PDF using Aspose.Pdf.", - "tags": [ - "annotations", - "xfdf", - "export", - "import", - "pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.ExportAnnotationsToXfdf", - "Aspose.Pdf.Document.ImportAnnotationsFromXfdf", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "intermediate" + "title": "Export Import Pdf Annotations Xfdf__V3", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "export-page-annotations-to-xfdf.cs", - "title": "Export Annotations from a PDF Page to XFDF", - "description": "Shows how to extract all annotations from a specific PDF page and save them as an XFDF file placed next to the original PDF.", - "tags": [ - "annotations", - "xfdf", - "export", - "pdf", - "page" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.PageCollection", - "Aspose.Pdf.Document.ExportAnnotationsToXfdf" - ], - "difficulty": "intermediate" + "title": "Export Page Annotations To Xfdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "export-pdf-annotation-ids-to-csv.cs", - "title": "Export PDF Annotation IDs and Authors to CSV", - "description": "Loads a PDF, iterates through all pages and annotations, extracts each annotation's identifier and author, and writes the data to a CSV file for auditing purposes.", - "tags": [ - "annotations", - "csv", - "audit", - "metadata", - "Aspose.Pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.MarkupAnnotation", - "Aspose.Pdf.Annotations.AnnotationCollection" - ], - "difficulty": "intermediate" + "title": "Export Pdf Annotation Ids To Csv", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "export-pdf-annotations-to-csv.cs", "title": "Export PDF Annotations to CSV", - "description": "Loads a PDF, iterates through all pages and annotations, and writes each annotation's details to a CSV file for auditing.", + "description": "Opens a PDF document, iterates through each page and its annotations, and writes key annotation details (type, name, title, contents, rectangle) to a CSV file for auditing purposes.", "tags": [ "annotations", "csv", "audit", - "pdf", - "aspdf" + "aspdf", + "pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Annotations.Annotation", "Aspose.Pdf.Annotations.MarkupAnnotation", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate" }, { "filename": "export-pdf-annotations-to-xfdf-and-upload.cs", - "title": "Export PDF Annotations to XFDF and Upload via REST API", - "description": "The example loads a PDF document, extracts its annotations to an XFDF stream using Aspose.Pdf, and posts the XFDF file to a REST endpoint with an HTTP POST request.", + "title": "Export PDF Annotations to XFDF and Upload via REST", + "description": "The example loads a PDF, exports its annotations to an in‑memory XFDF stream, and posts the XFDF file to a REST API endpoint using multipart/form‑data.", "tags": [ "annotations", "xfdf", - "rest", + "rest-api", "upload", "aspose-pdf" ], @@ -41275,25 +49953,28 @@ }, { "filename": "export-pdf-annotations-to-xfdf-azure-blob.cs", - "title": "Export PDF Annotations to XFDF and Upload to Azure Blob Storage", - "description": "Loads a PDF, extracts its annotations as an XFDF stream, and uploads the resulting XFDF file to an Azure Blob Storage container.", + "title": "Export PDF Annotations to XFDF and Upload to Azure Blob", + "description": "Shows how to export all annotations from a PDF document to XFDF format and store the resulting XFDF file in an Azure Blob Storage container (using a stub for local testing).", "tags": [ "pdf", "annotations", "xfdf", "azure-blob", - "aspose-pdf" + "export" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Page", "Aspose.Pdf.Document.ExportAnnotationsToXfdf" ], "difficulty": "intermediate" }, { - "filename": "export-pdf-annotations-to-xfdf.cs", + "filename": "export-pdf-annotations-to-xfdf-stream.cs", "title": "Export PDF Annotations to XFDF Stream", - "description": "Demonstrates loading a PDF with Aspose.Pdf, exporting all its annotations directly to an in‑memory XFDF stream, and reading the XFDF content without writing the full document to disk.", + "description": "Demonstrates loading a PDF with Aspose.Pdf, exporting all its annotations directly to an XFDF format using a memory stream, and reading the XFDF content without writing a separate file.", "tags": [ "annotations", "xfdf", @@ -41308,56 +49989,68 @@ "difficulty": "beginner" }, { - "filename": "export-popup-annotations-to-xfdf.cs", - "title": "Export Popup Annotations to XFDF", - "description": "Shows how to extract only popup annotations from a PDF document and export them to an XFDF file using Aspose.Pdf.", + "filename": "export-pdf-annotations-to-xfdf.cs", + "title": "Export PDF Annotations to XFDF", + "description": "Loads a PDF file, verifies its existence, and exports all page annotations to an XFDF file saved in the same folder as the source PDF.", "tags": [ - "popup", "annotations", "xfdf", "export", - "pdf" + "pdf", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.PopupAnnotation", "Aspose.Pdf.Document.ExportAnnotationsToXfdf" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "extract-3d-annotation-preview-images-to-report.cs", - "title": "Extract 3D Annotation Preview Images to PDF Report", - "description": "Opens a source PDF, extracts preview images from PDF3D annotations, and embeds them into a new PDF report, arranging the images on pages.", + "filename": "export-popup-annotations-to-xfdf.cs", + "title": "Export Only Popup Annotations to XFDF", + "description": "Shows how to filter a PDF so that only popup annotations remain and then export those annotations to an XFDF file using Aspose.Pdf.", "tags": [ - "pdf", + "popup", "annotations", - "image", - "report", - "aspose-pdf" + "xfdf", + "export", + "filter" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.PDF3DAnnotation", - "Aspose.Pdf.Annotations.PDF3DAnnotation.GetImagePreview", - "Aspose.Pdf.Page.AddImage", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.PopupAnnotation", + "Aspose.Pdf.Document.ExportAnnotationsToXfdf" ], "difficulty": "intermediate" }, + { + "filename": "extract-3d-annotation-preview-images-to-report.cs", + "title": "Extract 3D Annotation Preview Images To Report", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "extract-embedded-media-from-richmedia-annotations.cs", - "title": "Extract Embedded Media from RichMedia Annotations", - "description": "Demonstrates how to iterate through PDF pages, locate RichMediaAnnotation objects, and save their embedded media streams to a structured folder hierarchy.", + "title": "Extract Embedded Media From Richmedia Annotations", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-embedded-rich-media.cs", + "title": "Extract Embedded Rich Media from PDF Annotations", + "description": "Shows how to walk through PDF pages, locate RichMediaAnnotation objects, and save their embedded video/audio or binary content into a page‑based folder structure.", "tags": [ "richmedia", "annotation", "extraction", "pdf", - "aspnet" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", @@ -41369,38 +50062,59 @@ "difficulty": "intermediate" }, { - "filename": "extract-popup-annotation-to-pdf.cs", - "title": "Extract Popup Annotation Content to a New PDF", - "description": "The example locates the first PopupAnnotation in a PDF, retrieves its text content, and saves that content (with optional visual bounds) into a separate PDF document.", + "filename": "extract-highlight-annotation-to-report.cs", + "title": "Extract Highlight Annotations as Images and Embed in a Report PDF", + "description": "The example reads a PDF, finds highlight annotations, renders the page containing each annotation to a PNG image, and inserts those images into a new report PDF.", "tags": [ - "popup", + "highlight", "annotation", - "extract", + "image", + "report", + "Aspose.Pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.HighlightAnnotation", + "Aspose.Pdf.Devices.PngDevice", + "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Page.AddImage", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "intermediate" + }, + { + "filename": "extract-media-from-screenannotation.cs", + "title": "Extract Media Files from ScreenAnnotations in a PDF", + "description": "Demonstrates how to locate ScreenAnnotation objects in a PDF, retrieve the associated media via a GoToRemoteAction, and save the embedded file to disk for further analysis.", + "tags": [ + "screenannotation", + "media-extraction", "pdf", - "text" + "annotations", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.PopupAnnotation", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Drawing.Position", - "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.GraphInfo" + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.ScreenAnnotation", + "Aspose.Pdf.Annotations.GoToRemoteAction", + "Aspose.Pdf.FileSpecification" ], "difficulty": "intermediate" }, { - "filename": "extract-watermark-artifacts-report.cs", - "title": "Extract Watermark Artifacts and Generate CSV Report", - "description": "The example opens a PDF, iterates through each page to find WatermarkArtifact objects, and writes their page number, position and opacity to a CSV file.", + "filename": "extract-pdf-watermark-artifacts-report.cs", + "title": "Extract Watermark Artifacts and Report Positions", + "description": "Loads a PDF, iterates through each page's artifacts, identifies WatermarkArtifact objects, and writes their X/Y position and opacity to a text report.", "tags": [ "watermark", "artifact", "pdf", "report", - "aspose-pdf" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", @@ -41412,15 +50126,51 @@ "difficulty": "beginner" }, { - "filename": "fade-background-artifacts.cs", - "title": "Fade Background Artifacts in PDF", - "description": "Shows how to iterate over PDF pages and set the opacity of all BackgroundArtifacts to 40% to create a faded effect.", + "filename": "extract-popup-annotation-to-pdf.cs", + "title": "Extract Popup Annotation To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-popup-annotations-to-pdf.cs", + "title": "Extract Popup Annotations to Separate PDFs", + "description": "Loads a PDF, finds all popup annotations, extracts their text content, and saves each annotation as an individual PDF file.", "tags": [ + "popup", + "annotation", + "extract", "pdf", - "background-artifact", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.PopupAnnotation", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "intermediate" + }, + { + "filename": "extract-watermark-artifacts-report.cs", + "title": "Extract Watermark Artifacts Report", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "fade-background-artifacts.cs", + "title": "Fade PDF Background Artifacts by Setting Opacity", + "description": "Demonstrates how to iterate through PDF pages, locate BackgroundArtifact objects, and set their opacity to 40% to create a faded background effect.", + "tags": [ + "background", "opacity", - "aspose", - "csharp" + "artifact", + "pdf", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", @@ -41433,19 +50183,19 @@ }, { "filename": "filter-pdf-annotations-by-author.cs", - "title": "Filter PDF Annotations by Author Name", - "description": "Loads a PDF, iterates through each page's annotations, and removes any markup annotation whose author (Title) does not match the specified current user before saving the filtered document.", + "title": "Filter PDF Annotations by Author", + "description": "Shows how to iterate through a PDF, retain only markup annotations whose author matches a given user, and delete all other annotations using Aspose.Pdf.", "tags": [ "annotations", "author", "filter", - "pdf", - "aspose-pdf" + "Aspose.Pdf", + "C#" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.AnnotationCollection", "Aspose.Pdf.Annotations.MarkupAnnotation", "Aspose.Pdf.Annotations.AnnotationCollection.Delete", "Aspose.Pdf.Document.Save" @@ -41455,7 +50205,7 @@ { "filename": "generate-annotation-summary-per-pdf-page.cs", "title": "Generate Annotation Summary per PDF Page", - "description": "Loads a PDF, counts each annotation type on every page, and writes a pretty‑printed JSON file that maps page numbers to annotation type counts.", + "description": "Loads a PDF, iterates through each page to count annotation types, and saves the results as a formatted JSON summary file.", "tags": [ "annotations", "pdf", @@ -41466,57 +50216,44 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.PageCollection", "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.AnnotationType" + "Aspose.Pdf.Annotations.Annotation.AnnotationType", + "Aspose.Pdf.Document.Pages" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "get-annotation-bounding-rectangle.cs", - "title": "Get Annotation Bounding Rectangle and Dimensions", - "description": "Loads a PDF, accesses the first annotation on the first page, retrieves its bounding rectangle (considering page rotation), and logs the rectangle coordinates along with calculated width and height.", - "tags": [ - "annotation", - "rectangle", - "pdf", - "aspose-pdf", - "dimensions" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.Annotation.GetRectangle" - ], - "difficulty": "beginner" + "title": "Get Annotation Bounding Rectangle", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "group-pdf-annotations-by-type.cs", - "title": "Group PDF Annotations by Type", - "description": "Loads a PDF document, extracts all annotations from each page, groups them by their AnnotationType enum, and prints the number of instances per type.", + "title": "Group PDF Annotations by Type and Report Summary", + "description": "Loads a PDF document, iterates through its pages to collect all annotations, groups them by AnnotationType, and prints a summary count and detailed listing per page.", "tags": [ "annotations", - "grouping", "pdf", - "aspose-pdf", - "reporting" + "grouping", + "reporting", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.AnnotationCollection", "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.Annotation.AnnotationType", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Page.Annotations" + "Aspose.Pdf.Annotations.AnnotationType" ], "difficulty": "intermediate" }, { "filename": "hide-free-text-annotation-page-five.cs", - "title": "Hide Free-Text Annotation on a Specific PDF Page", - "description": "Shows how to add a free‑text annotation to page 5 of a PDF and make it invisible by setting the Hidden flag while keeping its data intact.", + "title": "Hide Free‑Text Annotation on a Specific PDF Page", + "description": "Shows how to add a free‑text annotation to page 5 of a PDF and make it invisible by setting the Hidden flag while keeping the annotation data intact.", "tags": [ "free-text", "annotation", @@ -41530,14 +50267,15 @@ "Aspose.Pdf.Rectangle", "Aspose.Pdf.Annotations.DefaultAppearance", "Aspose.Pdf.Annotations.FreeTextAnnotation", - "Aspose.Pdf.Annotations.AnnotationFlags" + "Aspose.Pdf.Annotations.AnnotationFlags", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "highlight-keyword-across-pdf-pages.cs", - "title": "Highlight Keyword Across PDF Pages", - "description": "Demonstrates how to search for a specific word in a PDF and apply highlight annotations to every occurrence on all pages using Aspose.Pdf.", + "title": "Highlight Keyword Across All PDF Pages", + "description": "Shows how to search for a specific word in a PDF and apply highlight annotations to every occurrence on all pages using Aspose.Pdf.", "tags": [ "highlight", "keyword", @@ -41550,7 +50288,6 @@ "Aspose.Pdf.Text.TextFragmentAbsorber", "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Annotations.HighlightAnnotation", - "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Color" ], @@ -41562,135 +50299,150 @@ "description": "Shows how to load a PDF, read an FDF file containing annotations, import those annotations into the PDF, and save the updated document.", "tags": [ "annotations", - "fdf", + "FDF", + "PDF", "import", - "pdf", - "aspose-pdf" + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", "Aspose.Pdf.Annotations.FdfReader", - "Aspose.Pdf.Annotations.FdfReader.ReadAnnotations" + "Aspose.Pdf.Annotations.FdfReader.ReadAnnotations", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "import-annotations-from-fdf__v2.cs", "title": "Import Annotations from FDF into PDF", - "description": "Shows how to read annotation definitions from an FDF file and add them to the matching pages of a PDF document using Aspose.Pdf.", + "description": "Shows how to read an FDF file and import its annotations onto the matching pages of a PDF document using Aspose.Pdf.", "tags": [ "fdf", "annotations", - "pdf", "import", - "aspose.pdf" + "pdf", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.FdfReader.ReadAnnotations" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Annotations.FdfReader.ReadAnnotations" ], "difficulty": "beginner" }, { "filename": "import-annotations-from-fdf__v3.cs", - "title": "Import Annotations from FDF and Assign to PDF Pages", - "description": "Demonstrates how to import annotations from an FDF file into a PDF document using Aspose.Pdf, automatically placing them on the correct pages, and then saving the updated PDF.", + "title": "Import Annotations from FDF into PDF", + "description": "Shows how to load a PDF, read an FDF file and automatically import its annotations onto the correct pages, then save the updated document.", "tags": [ - "fdf", "annotations", + "fdf", "import", "pdf", - "aspose" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Annotations.FdfReader", - "Aspose.Pdf.Annotations.FdfReader.ReadAnnotations" + "Aspose.Pdf.FdfReader.ReadAnnotations", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "import-annotations-from-xfdf.cs", - "title": "Import Annotations from XFDF String into PDF", - "description": "Demonstrates how to load a PDF, import annotations from an XFDF string using Aspose.Pdf, and save the updated document.", + "title": "Import Annotations From Xfdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "import-fdf-annotations-into-pdf.cs", + "title": "Import FDF Annotations into PDF", + "description": "Demonstrates how to read form field data and other annotations from an FDF file and merge them into an existing PDF document using Aspose.Pdf, then save the updated PDF.", "tags": [ + "FDF", "annotations", - "xfdf", - "import", - "pdf", - "aspose-pdf" + "form-fields", + "merge", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.ImportAnnotationsFromXfdf", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Annotations.FdfReader", + "Aspose.Pdf.Annotations.FdfReader.ReadAnnotations" ], "difficulty": "beginner" }, { - "filename": "import-consolidate-annotations-from-fdf.cs", - "title": "Import and Consolidate Annotations from Multiple FDF Files", - "description": "Shows how to import annotations from several FDF files into a PDF document and gather all page annotations into a single collection for further processing.", + "filename": "import-multiple-fdf-annotations.cs", + "title": "Import Multiple FDF Files and Consolidate Annotations", + "description": "Demonstrates how to read annotations from several FDF files, add them to a PDF document, collect all annotations into a single list, and save the updated PDF.", "tags": [ - "annotations", "fdf", + "annotations", "pdf", "import", - "consolidation" + "consolidate" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.FdfReader.ReadAnnotations", "Aspose.Pdf.Page", - "Aspose.Pdf.AnnotationCollection", - "Aspose.Pdf.Annotation", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.AnnotationCollection", + "Aspose.Pdf.Annotations.FdfReader.ReadAnnotations" ], "difficulty": "intermediate" }, { - "filename": "import-fdf-annotations-into-pdf.cs", - "title": "Import FDF Annotations into PDF", - "description": "Shows how to read an FDF file containing form field annotations and merge them into an existing PDF document using Aspose.Pdf.", + "filename": "import-xfdf-annotations-into-multiple-pdfs-in-parallel.cs", + "title": "Import Xfdf Annotations Into Multiple Pdfs In Parallel", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "import-xfdf-annotations-into-multiple-pdfs.cs", + "title": "Import XFDF Annotations into Multiple PDFs in Parallel", + "description": "Shows how to load a PDF, import annotation data from an XFDF file, and save the updated document while processing several PDFs concurrently using Parallel.ForEach.", "tags": [ - "fdf", + "xfdf", "annotations", - "pdf", - "merge", - "aspose" + "parallel", + "aspose.pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Annotations.FdfReader", - "Aspose.Pdf.Annotations.FdfReader.ReadAnnotations", + "Aspose.Pdf.Document.ImportAnnotationsFromXfdf", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "import-xfdf-annotations-into-multiple-pdfs-in-parallel.cs", - "title": "Import XFDF Annotations into Multiple PDFs in Parallel", - "description": "Demonstrates how to import annotation data from an XFDF file into several PDF documents simultaneously using Aspose.Pdf and Parallel.ForEach for efficient batch processing.", + "filename": "import-xfdf-annotations-into-pdf.cs", + "title": "Import XFDF Annotations into PDF", + "description": "Shows how to load a PDF, import annotations from an XFDF string using a memory stream, and save the updated document.", "tags": [ "xfdf", "annotations", - "parallel", - "aspose.pdf", - "batch-processing" + "import", + "pdf", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Document.ImportAnnotationsFromXfdf", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "import-xfdf-annotations-into-pdf.cs", + "filename": "import-xfdf-annotations-into-pdf__v2.cs", "title": "Import XFDF Annotations into PDF", - "description": "Shows how to load an existing PDF with Aspose.Pdf, import annotations from an XFDF file while preserving the original page layout, and save the updated document.", + "description": "Shows how to load an existing PDF, import annotations from an XFDF file, and save the updated document while preserving the original page layout and content.", "tags": [ "xfdf", "annotations", @@ -41707,8 +50459,8 @@ }, { "filename": "import-xfdf-annotations-reassign-pages.cs", - "title": "Import XFDF Annotations and Reassign to Different Pages", - "description": "Demonstrates how to import annotations from an XFDF file into a PDF using Aspose.Pdf and then move those annotations to other pages based on a custom mapping dictionary.", + "title": "Import XFDF Annotations and Reassign to Different PDF Pages", + "description": "Demonstrates how to import annotations from an XFDF file into a PDF using Aspose.Pdf, then move those annotations to other pages based on a custom page‑mapping dictionary.", "tags": [ "xfdf", "annotations", @@ -41720,16 +50472,16 @@ "Aspose.Pdf.Document", "Aspose.Pdf.Document.ImportAnnotationsFromXfdf", "Aspose.Pdf.Page", - "Aspose.Pdf.Page.Annotations", - "Aspose.Pdf.AnnotationCollection.Add", - "Aspose.Pdf.AnnotationCollection.Delete" + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.AnnotationCollection.Add", + "Aspose.Pdf.Annotations.AnnotationCollection.Delete" ], "difficulty": "intermediate" }, { - "filename": "import-xfdf-annotations-visibility-by-role.cs", + "filename": "import-xfdf-annotations-set-visibility-by-role.cs", "title": "Import XFDF Annotations and Set Visibility by User Role", - "description": "Loads a PDF, imports annotations from an XFDF file, and adjusts each annotation's Hidden flag according to the supplied user role.", + "description": "Demonstrates loading a PDF, importing annotations from an XFDF file, and toggling their visibility based on the current user's role before saving the document.", "tags": [ "xfdf", "annotations", @@ -41739,45 +50491,52 @@ ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Document.ImportAnnotationsFromXfdf", "Aspose.Pdf.Page", "Aspose.Pdf.Annotations.Annotation", "Aspose.Pdf.Annotations.AnnotationFlags", - "Aspose.Pdf.Document.ImportAnnotationsFromXfdf", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, + { + "filename": "import-xfdf-annotations-visibility-by-role.cs", + "title": "Import Xfdf Annotations Visibility By Role", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "increase-sound-annotation-clickable-area.cs", "title": "Increase Clickable Area of Sound Annotations by 20%", - "description": "Loads a PDF, finds all SoundAnnotation objects, expands each annotation's rectangle by 20% area while keeping its center, and saves the updated document.", + "description": "Shows how to load a PDF, locate all SoundAnnotation objects, enlarge their rectangle by 20% while keeping the center point, and save the modified document.", "tags": [ "sound-annotation", "rectangle", "pdf", - "aspose", + "aspose-pdf", "clickable-area" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.SoundAnnotation", "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Annotations.SoundAnnotation", + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate" }, { "filename": "insert-watermark-annotation-page-6.cs", "title": "Insert Watermark Annotation on Page 6", - "description": "Demonstrates how to add a WatermarkAnnotation with 30% opacity centered on the sixth page of a PDF using Aspose.Pdf.", + "description": "Demonstrates how to add a WatermarkAnnotation with 30 % opacity to the center of the sixth page of a PDF using Aspose.Pdf and then save the modified document.", "tags": [ "watermark", "annotation", "pdf", "opacity", - "page" + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", @@ -41787,73 +50546,149 @@ "Aspose.Pdf.Page.Annotations.Add", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "iterate-pdf-annotations-log-media.cs", - "title": "Iterate PDF Annotations and Log Media Files", - "description": "Loads a PDF, walks through each page's annotations, and prints the annotation type, rectangle coordinates, and any associated embedded media file name.", + "title": "Iterate Pdf Annotations Log Media", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "list-annotation-types-on-pdf-page.cs", + "title": "List Annotation Types on a PDF Page", + "description": "Loads a PDF, ensures it has at least four pages, accesses page 4, iterates over its annotations, and writes each annotation's type to the console.", + "tags": [ + "annotations", + "pdf", + "aspose", + "page", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Page.Annotations", + "Aspose.Pdf.Annotations.Annotation.AnnotationType" + ], + "difficulty": "beginner" + }, + { + "filename": "list-annotations-with-media-info.cs", + "title": "List PDF Annotations with Types, Rectangles, and Media Files", + "description": "Loads a PDF, iterates through all pages and their annotations, and logs each annotation's type, bounding rectangle, and any associated media file name (if applicable).", "tags": [ "annotations", "pdf", "media", - "aspose-pdf", - "file-attachment" + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.AnnotationCollection", "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.FileSpecification" + "Aspose.Pdf.Annotations.ScreenAnnotation", + "Aspose.Pdf.Annotations.MovieAnnotation", + "Aspose.Pdf.Annotations.RichMediaAnnotation", + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate" }, { "filename": "list-pdf-annotation-ids-to-csv.cs", "title": "List PDF Annotation IDs and Export to CSV", - "description": "Loads a PDF, iterates through each page's annotations, extracts their identifier (Name or FullName), and writes the page number and annotation ID to a CSV file.", + "description": "Loads a PDF, iterates through each page's annotations, extracts their Name and FullName, and writes the information to a CSV file.", "tags": [ "annotations", "csv", - "aspose.pdf", + "aspose-pdf", "export", "pages" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.AnnotationCollection", "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Document.Pages" + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Page.Annotations" ], - "difficulty": "intermediate" + "difficulty": "beginner" + }, + { + "filename": "metadata-watermark-annotation.cs", + "title": "Add Metadata-Based Watermark Annotation to PDF", + "description": "The example opens a PDF, reads the document title (or a default), creates a WatermarkAnnotation with that text, configures its appearance, and saves the watermarked PDF.", + "tags": [ + "watermark", + "annotation", + "metadata", + "pdf", + "Aspose.Pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Info", + "Aspose.Pdf.Annotations.WatermarkAnnotation", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Color", + "Aspose.Pdf.Page.Annotations.Add", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner" }, { "filename": "modify-annotation-rectangle-by-id.cs", - "title": "Modify Annotation Rectangle by Id", - "description": "Loads a PDF, locates an annotation using its Name (Id), updates its rectangle coordinates, and saves the modified document.", + "title": "Modify Annotation Rectangle by Id in PDF", + "description": "Loads a PDF, locates an annotation using its Name (Id), adjusts its rectangle coordinates, and saves the updated document.", "tags": [ "annotation", "rectangle", - "modify", "pdf", - "Aspose.Pdf" + "aspose", + "modify" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.AnnotationCollection.FindByName", + "Aspose.Pdf.Page.Annotations.FindByName", + "Aspose.Pdf.Annotation.Rect", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, + { + "filename": "modify-figure-annotation-color.cs", + "title": "Change Color of Square and Circle Annotations", + "description": "Loads a PDF, iterates through its pages and annotations, retrieves the appearance dictionary of square and circle figure annotations, updates their border and interior colors, and saves the modified document.", + "tags": [ + "annotations", + "appearance", + "color", + "square", + "circle" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.SquareAnnotation", + "Aspose.Pdf.Annotations.CircleAnnotation", + "Aspose.Pdf.Annotations.AppearanceDictionary", + "Aspose.Pdf.Color" + ], + "difficulty": "intermediate" + }, { "filename": "recolor-highlight-annotations-light-green.cs", "title": "Recolor Highlight Annotations to Light Green", - "description": "Loads a PDF, iterates through all pages and annotations, changes the color of every highlight annotation to light green, and saves the updated document.", + "description": "Shows how to load a PDF, iterate through all pages and annotations, identify HighlightAnnotation objects, change their color to LightGreen, and save the modified document.", "tags": [ "highlight", "annotation", @@ -41866,101 +50701,135 @@ "Aspose.Pdf.Page", "Aspose.Pdf.Annotations.Annotation", "Aspose.Pdf.Annotations.HighlightAnnotation", - "Aspose.Pdf.Color" + "Aspose.Pdf.Color", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner" + }, + { + "filename": "remove-annotations-from-third-pdf-page.cs", + "title": "Remove All Annotations from a PDF Page", + "description": "Demonstrates how to load a PDF, access the third page, clear all its annotations, and save the modified document using Aspose.Pdf.", + "tags": [ + "annotations", + "pdf", + "page", + "remove", + "Aspose.Pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Annotations.AnnotationCollection.Clear", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "remove-annotations-from-page-3.cs", - "title": "Remove All Annotations from a Specific PDF Page", - "description": "Demonstrates how to load a PDF with Aspose.Pdf, access the third page, clear all its annotations, and save the modified document.", + "filename": "remove-background-artifacts-from-pdf-pages.cs", + "title": "Remove Background Artifacts From Pdf Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "remove-background-artifacts-from-pdf.cs", + "title": "Remove Background Artifacts from PDF Pages", + "description": "Shows how to load a PDF with Aspose.Pdf, iterate through each page's artifact collection, detect BackgroundArtifact objects, delete them, and save the resulting document.", "tags": [ - "annotations", "pdf", - "page", - "remove", - "aspose-pdf" + "artifact", + "background", + "annotations", + "removal" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Page.Annotations", - "Aspose.Pdf.AnnotationCollection.Clear", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.ArtifactCollection", + "Aspose.Pdf.Annotations.BackgroundArtifact", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.ArtifactCollection.Delete" ], "difficulty": "beginner" }, { - "filename": "remove-background-artifacts-from-pdf-pages.cs", - "title": "Remove Background Artifacts from PDF Pages", - "description": "Shows how to load a PDF with Aspose.Pdf, iterate over each page, locate BackgroundArtifact objects, delete them, and save the resulting document.", + "filename": "remove-highlight-annotations-from-pdf.cs", + "title": "Remove Highlight Annotations from PDF", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, iterate through its pages, identify all highlight annotations, delete them, and save the cleaned document.", "tags": [ + "highlight", + "annotation", + "remove", "pdf", - "background-artifact", - "annotations", - "aspose-pdf", - "csharp" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.ArtifactCollection", - "Aspose.Pdf.Artifact", - "Aspose.Pdf.BackgroundArtifact", + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.HighlightAnnotation", + "Aspose.Pdf.Page.Annotations", + "Aspose.Pdf.Page.Annotations.Delete", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "remove-popup-annotations-from-pdf.cs", "title": "Remove Popup Annotations from PDF", - "description": "Loads a PDF, iterates through each page, collects all PopupAnnotation objects, deletes them while keeping their parent markup annotations, and saves the cleaned document.", + "description": "Shows how to iterate through each page of a PDF, locate PopupAnnotation objects, and delete them while preserving their parent markup annotations using Aspose.Pdf.", "tags": [ - "pdf", - "annotations", "popup", + "annotation", "delete", - "Aspose" + "Aspose.Pdf", + "PDF" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Annotations.Annotation", "Aspose.Pdf.Annotations.PopupAnnotation", - "Aspose.Pdf.Annotations.AnnotationCollection.Delete" + "Aspose.Pdf.Annotations.AnnotationCollection.Delete", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "remove-screen-annotations-from-pdf.cs", "title": "Remove Screen Annotations from PDF", - "description": "Demonstrates how to load a PDF with Aspose.Pdf, iterate through each page's annotations, delete any ScreenAnnotation objects, and save the cleaned document.", + "description": "Shows how to load a PDF with Aspose.Pdf, locate all ScreenAnnotation objects on each page, delete them, and save the resulting document.", "tags": [ - "annotations", "screen-annotation", "pdf", - "remove", - "aspose-pdf" + "remove-annotations", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.AnnotationCollection", + "Aspose.Pdf.Annotations.Annotation", "Aspose.Pdf.Annotations.ScreenAnnotation", - "Aspose.Pdf.Annotations.AnnotationCollection.Delete" + "Aspose.Pdf.Page.Annotations", + "Aspose.Pdf.Page.Annotations.Delete", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "remove-sound-annotations-from-pdf.cs", - "title": "Remove All Sound Annotations from a PDF", - "description": "Shows how to load a PDF, iterate through each page, find SoundAnnotation objects, delete them, and save the updated document using Aspose.Pdf.", + "title": "Remove Sound Annotations from PDF", + "description": "Shows how to load a PDF, iterate through each page, locate SoundAnnotation objects, delete them, and save the cleaned document using Aspose.Pdf.", "tags": [ + "sound-annotation", "pdf", "annotations", - "sound", "delete", - "aspose" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", @@ -41976,13 +50845,13 @@ { "filename": "replace-background-artifact-image.cs", "title": "Replace Background Artifact Image with High‑Resolution Version", - "description": "Loads a PDF, finds BackgroundArtifact objects on each page, and replaces their image with a higher‑resolution file while preserving the layout.", + "description": "Loads a PDF, finds BackgroundArtifact objects on each page, and replaces their image with a higher‑resolution PNG while preserving the original layout.", "tags": [ + "background", + "artifact", + "image", "pdf", - "background-artifact", - "image-replacement", - "aspose-pdf", - "annotations" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", @@ -41992,61 +50861,59 @@ "Aspose.Pdf.BackgroundArtifact.SetImage", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "replace-background-artifacts-with-new-image.cs", - "title": "Replace Background Artifacts in PDF Pages", - "description": "Loads a PDF, iterates through each page's artifacts, identifies BackgroundArtifact objects, and replaces their image with a new PNG while preserving positions and settings.", + "filename": "replace-highlight-annotation-color.cs", + "title": "Replace Highlight Annotation Color in PDF", + "description": "The example loads a PDF, iterates through its pages and annotations, finds highlight annotations, changes their color to a custom light‑orange shade, and saves the modified document.", "tags": [ + "highlight", + "annotation", + "color", "pdf", - "background", - "artifact", - "image-replacement", "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Artifact", - "Aspose.Pdf.BackgroundArtifact", - "Aspose.Pdf.BackgroundArtifact.BeginUpdates", - "Aspose.Pdf.BackgroundArtifact.SetImage", - "Aspose.Pdf.BackgroundArtifact.SaveUpdates" + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.HighlightAnnotation", + "Aspose.Pdf.Color.FromRgb", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "replace-highlight-annotation-color.cs", - "title": "Change Highlight Annotation Color and Regenerate Appearance", - "description": "Loads a PDF, iterates through its pages to find highlight annotations, changes their color to a custom shade, forces the appearance stream to be regenerated, and saves the modified document.", + "filename": "replace-pdf-page-background-images.cs", + "title": "Replace PDF Page Background Images", + "description": "Shows how to iterate over PDF pages, locate BackgroundArtifact objects, and replace their images with a new file while keeping the original positions unchanged.", "tags": [ - "highlight", - "annotation", - "color", - "appearance", - "pdf" + "pdf", + "background", + "artifact", + "image", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.HighlightAnnotation", - "Aspose.Pdf.Color.FromRgb", - "Aspose.Pdf.Annotations.Annotation.UpdateAppearanceOnConvert", + "Aspose.Pdf.Artifact", + "Aspose.Pdf.BackgroundArtifact", + "Aspose.Pdf.BackgroundArtifact.SetImage", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "replace-watermark-with-logo.cs", - "title": "Replace PDF Watermark Annotations with Corporate Logo", - "description": "Demonstrates how to locate existing WatermarkAnnotation objects in a PDF, preserve their opacity and position, and replace them with a new image‑based StampAnnotation (corporate logo).", + "filename": "replace-watermark-annotations-with-logo.cs", + "title": "Batch Replace Watermark Annotations with a Logo Image", + "description": "Shows how to iterate through all PDF pages, locate existing WatermarkAnnotation objects, keep their opacity and rectangle, delete them, and add a new StampAnnotation that displays a corporate logo image.", "tags": [ "watermark", "annotation", - "pdf", "image", + "pdf", "replace" ], "apis_used": [ @@ -42054,55 +50921,56 @@ "Aspose.Pdf.Page", "Aspose.Pdf.Annotations.WatermarkAnnotation", "Aspose.Pdf.Annotations.StampAnnotation", - "Aspose.Pdf.Annotations.AnnotationCollection.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page.Annotations", + "Aspose.Pdf.Annotations.AnnotationCollection.Delete", + "Aspose.Pdf.Annotations.AnnotationCollection.Add" ], "difficulty": "intermediate" }, { - "filename": "retrieve-annotation-ids-page-numbers.cs", - "title": "Retrieve Annotation IDs and Page Numbers from PDF", - "description": "Demonstrates loading a PDF with Aspose.Pdf, iterating through its pages and annotations, extracting each annotation's identifier, and creating a dictionary that maps the ID to its page number.", + "filename": "retrieve-annotation-bounding-rectangle.cs", + "title": "Retrieve Annotation Bounding Rectangle from PDF", + "description": "Loads a PDF, validates a page and annotation index, obtains the annotation's bounding rectangle (considering page rotation), and logs its coordinates and size.", "tags": [ - "annotations", + "annotation", + "rectangle", "pdf", - "aspose-pdf", - "dictionary", - "page-number" + "aspose", + "bounding-box" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Page.Annotations" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.Annotation.GetRectangle" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "retrieve-annotations-from-pdf-page.cs", - "title": "Retrieve Annotations from a Specific PDF Page", - "description": "Loads a PDF, accesses page four, extracts its annotation collection, and prints each annotation's type to the console.", + "filename": "retrieve-annotation-ids-page-numbers.cs", + "title": "Retrieve Annotation IDs and Their Page Numbers", + "description": "The example loads a PDF, iterates through each page's annotations, extracts each annotation's identifier (Name or FullName) and its page number, and stores them in a dictionary for fast lookup.", "tags": [ "annotations", "pdf", - "page", - "aspose-pdf", - "csharp" + "dictionary", + "lookup", + "Aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.AnnotationCollection", "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.AnnotationType" + "Aspose.Pdf.Page.Annotations", + "Aspose.Pdf.Annotation.PageIndex" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "retrieve-first-richmediaannotation-from-page-five.cs", + "filename": "retrieve-first-richmediaannotation-page-five.cs", "title": "Retrieve First RichMediaAnnotation from Page Five", - "description": "Loads a PDF, accesses page 5, uses a LINQ query to get the first RichMediaAnnotation on that page, and prints its main properties.", + "description": "Loads a PDF, accesses page 5, uses a LINQ query to find the first RichMediaAnnotation on that page, and prints its key properties.", "tags": [ "richmedia", "annotation", @@ -42114,106 +50982,107 @@ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Annotations.RichMediaAnnotation", - "Aspose.Pdf.Page.Annotations", - "Aspose.Pdf.Annotations.Annotation" + "Aspose.Pdf.Annotations.AnnotationCollection", + "Aspose.Pdf.Rectangle" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "reuse-ximage-across-multiple-pdf-pages.cs", - "title": "Reuse XImage Across Multiple PDF Pages", - "description": "Shows how to load an image once, add it to the PDF resources, and reuse the same XImage object on every page to avoid duplicate image data.", + "title": "Reuse Ximage Across Multiple Pdf Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "reuse-ximage-across-pdf-pages.cs", + "title": "Reuse XImage Across PDF Pages", + "description": "Shows how to add an image once to a PDF's XImageCollection and reuse it on every page using Aspose.Pdf.", "tags": [ "ximage", + "image-reuse", "pdf", - "image", - "reuse", - "annotations" + "annotations", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.XImage", - "Aspose.Pdf.Resources.Images.Add", - "Aspose.Pdf.Resources.Images.Contains", - "Aspose.Pdf.Page.AddImage" + "Aspose.Pdf.XImageCollection.Add", + "Aspose.Pdf.Page.AddImage", + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate" }, { "filename": "set-arrow-line-ending-on-pdf-annotation.cs", - "title": "Set Arrow Line Ending on PDF Annotation", - "description": "Demonstrates how to add a line annotation to a PDF page and set its ending style to a closed arrow using Aspose.Pdf.", + "title": "Set Arrow Line Ending On Pdf Annotation", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "set-arrow-line-endings-on-pdf-annotation.cs", + "title": "Set Arrow Line Endings on PDF Annotation", + "description": "Demonstrates how to add a line annotation to a PDF page and configure its start and end line ending styles to open and closed arrows using Aspose.Pdf.", "tags": [ - "line-annotation", - "arrow", "pdf", - "aspose-pdf", - "annotation" + "annotation", + "line", + "arrow", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.LineAnnotation", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Point", - "Aspose.Pdf.Annotations.LineAnnotation", - "Aspose.Pdf.Annotations.LineEnding", "Aspose.Pdf.Color", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Annotations.LineEnding" ], "difficulty": "beginner" }, { "filename": "set-author-strikethrough-annotation.cs", - "title": "Set Author of Strikethrough Annotation in PDF", - "description": "Shows how to load a PDF with Aspose.Pdf, locate StrikeOutAnnotation objects, set their author via the Title property, and save the updated document.", - "tags": [ - "annotation", - "strikethrough", - "author", - "pdf", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.StrikeOutAnnotation", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner" + "title": "Set Author Strikethrough Annotation", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "set-callout-leader-line-length.cs", "title": "Set Callout Leader Line Length for Free‑Text Annotation", - "description": "Demonstrates loading a PDF, creating a free‑text annotation with a custom appearance, defining callout points so the leader line is 20 points long, and saving the updated document.", + "description": "Demonstrates how to create a free‑text annotation in a PDF and configure its callout leader line to be exactly 20 points long using Aspose.Pdf.", "tags": [ "free-text", "annotation", "callout", "leader-line", - "pdf" + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.FreeTextAnnotation", + "Aspose.Pdf.FreeTextAnnotation", "Aspose.Pdf.DefaultAppearance", "Aspose.Pdf.Point", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Page.Annotations.Add", + "Aspose.Pdf.Annotations.Collection.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "set-dashed-border-for-button-annotations.cs", - "title": "Set Dashed Border for Button Annotations in PDF", - "description": "Loads a PDF, iterates through its pages and annotations, and changes the border of every button field to a dashed style with a thickness of two points.", + "title": "Set Dashed Border for Button Annotations", + "description": "Loads a PDF, finds all button field annotations, and applies a dashed 2‑point border to each before saving the document.", "tags": [ "button", - "annotation", "border", + "annotation", "pdf", "aspose" ], @@ -42231,12 +51100,12 @@ { "filename": "set-figure-annotation-border-color-dark-gray.cs", "title": "Set Figure Annotation Border Color to Dark Gray", - "description": "Shows how to load a PDF, iterate through its pages and annotations, identify figure annotations, and change their border color to dark gray using Aspose.Pdf.", + "description": "Loads a PDF, iterates through all pages and annotations, and changes the border color of every figure annotation (e.g., square, circle, polygon) to dark gray before saving the document.", "tags": [ + "pdf", "annotations", "border-color", - "figure", - "pdf", + "figure-annotation", "Aspose.Pdf" ], "apis_used": [ @@ -42244,21 +51113,41 @@ "Aspose.Pdf.Page", "Aspose.Pdf.Annotations.Annotation", "Aspose.Pdf.Annotations.CommonFigureAnnotation", - "Aspose.Pdf.Color", + "Aspose.Pdf.Annotations.Annotation.Characteristics", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, + { + "filename": "set-figure-annotation-border-width.cs", + "title": "Set Figure Annotation Border Width", + "description": "Shows how to add a square annotation to a PDF page and set its border thickness to 2 points using Aspose.Pdf.", + "tags": [ + "annotation", + "border", + "pdf", + "Aspose.Pdf", + "square" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.SquareAnnotation", + "Aspose.Pdf.Annotations.Border" + ], + "difficulty": "beginner" + }, { "filename": "set-highlight-annotation-opacity.cs", "title": "Set Highlight Annotation Opacity to 60%", - "description": "Shows how to iterate through all pages of a PDF, locate HighlightAnnotation objects, and set their opacity to 60% using Aspose.Pdf before saving the document.", + "description": "Loads a PDF, iterates through all pages and their annotations, sets the opacity of each highlight annotation to 0.6, and saves the modified document.", "tags": [ "highlight", "annotation", "opacity", "pdf", - "aspose" + "Aspose" ], "apis_used": [ "Aspose.Pdf.Document", @@ -42270,72 +51159,52 @@ "difficulty": "beginner" }, { - "filename": "set-line-ending-styles-for-pdf-line-annotation.cs", + "filename": "set-line-ending-styles-pdf.cs", "title": "Set Line Ending Styles for a PDF Line Annotation", - "description": "Demonstrates how to create a line annotation in a PDF and set its start and end line ending styles (circle and open arrow) using Aspose.Pdf.", + "description": "Demonstrates how to create a line annotation in a PDF and configure its start and end line ending styles (circle and open arrow) using Aspose.Pdf.", "tags": [ "line-annotation", - "line-ending", "pdf", - "aspose-pdf", - "annotation" + "aspose", + "line-ending", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Point", "Aspose.Pdf.Annotations.LineAnnotation", - "Aspose.Pdf.Annotations.LineEnding" + "Aspose.Pdf.Annotations.LineEnding", + "Aspose.Pdf.Color", + "Aspose.Pdf.Drawing.Border" ], "difficulty": "beginner" }, { - "filename": "set-red-border-for-link-annotations.cs", - "title": "Set Red Border and Width for PDF Link Annotations", - "description": "Demonstrates how to change the border color to red and increase the line width to three points for all link annotations in a PDF using Aspose.Pdf.", + "filename": "set-link-annotation-border-red-width-3.cs", + "title": "Set Red Border and Width for Link Annotations", + "description": "Loads a PDF, iterates through all pages and link annotations, changes each link's border color to red and line width to three points, then saves the modified document.", "tags": [ "link-annotation", "border-color", - "pdf-modification", - "Aspose.Pdf", - "C#" + "line-width", + "pdf", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Annotations.Annotation", "Aspose.Pdf.Annotations.LinkAnnotation", - "Aspose.Pdf.Color", - "Aspose.Pdf.Annotations.Border", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner" - }, - { - "filename": "set-square-annotation-border-width.cs", - "title": "Set Square Annotation Border Width to 2 Points", - "description": "Demonstrates adding a square annotation to a PDF page and configuring its border thickness to 2 points for clearer visualization.", - "tags": [ - "annotation", - "border", - "pdf", - "Aspose.Pdf", - "square" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Annotations.SquareAnnotation", "Aspose.Pdf.Annotations.Border", - "Aspose.Pdf.Color", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Color" ], "difficulty": "beginner" }, { - "filename": "set-underline-annotation-opacity-50.cs", - "title": "Set Underline Annotation Opacity to 50% in PDF", - "description": "Loads a PDF, iterates over underline annotations on a specified page, sets their opacity to 50%, and saves the modified document.", + "filename": "set-underline-annotation-opacity.cs", + "title": "Set Underline Annotation Opacity in PDF", + "description": "Shows how to load a PDF, find underline annotations on a specific page, and change their opacity to 50% using Aspose.Pdf.", "tags": [ "underline", "annotation", @@ -42353,70 +51222,82 @@ "difficulty": "beginner" }, { - "filename": "set-watermark-artifact-opacity.cs", - "title": "Set Watermark Artifact Opacity to 50% in PDF", - "description": "Loads a PDF, iterates through each page to find WatermarkArtifact objects, changes their opacity to 50%, and saves the modified document.", + "filename": "toggle-rich-media-annotation-visibility.cs", + "title": "Toggle Rich Media Annotation Visibility with a Button", + "description": "Demonstrates how to add a RichMediaAnnotation to a PDF and use a push button with JavaScript to toggle its visibility at runtime.", "tags": [ - "watermark", - "artifact", - "opacity", - "pdf", - "aspose.pdf" + "richmedia", + "button", + "javascript", + "annotation", + "toggle" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Artifact", - "Aspose.Pdf.WatermarkArtifact", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Annotations.RichMediaAnnotation", + "Aspose.Pdf.Forms.ButtonField", + "Aspose.Pdf.Forms.JavascriptAction", + "Aspose.Pdf.Annotations.Border", + "Aspose.Pdf.Rectangle" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "toggle-rich-media-visibility-button.cs", - "title": "Toggle Rich Media Visibility with a Button", - "description": "Shows how to add a RichMediaAnnotation and a push button that toggles its visibility using a HideAction in Aspose.Pdf.", + "title": "Toggle Rich Media Visibility Button", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "toggle-watermark-visibility-button.cs", + "title": "Toggle Watermark Visibility with a Button Annotation", + "description": "Demonstrates how to add a WatermarkArtifact to a PDF page and create a push‑button that uses JavaScript to toggle the watermark's visibility at runtime.", "tags": [ - "richmedia", + "watermark", "button", + "javascript", "annotation", - "visibility", - "hideaction" + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.RichMediaAnnotation", + "Aspose.Pdf.Annotations.WatermarkArtifact", + "Aspose.Pdf.Text.TextState", "Aspose.Pdf.Forms.ButtonField", - "Aspose.Pdf.Annotations.HideAction" + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "toggle-watermark-visibility-button.cs", - "title": "Toggle Watermark Visibility with Button Annotation", - "description": "Demonstrates adding a WatermarkArtifact to a PDF page and a push‑button annotation that runs JavaScript to toggle the watermark’s opacity.", + "filename": "update-watermark-artifact-opacity.cs", + "title": "Update Watermark Artifact Opacity in PDF", + "description": "Shows how to retrieve all watermark artifacts on each PDF page and set their opacity to 50% using Aspose.Pdf.", "tags": [ "watermark", - "button", - "annotation", - "javascript", - "toggle" + "artifact", + "opacity", + "pdf", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.Artifact", "Aspose.Pdf.WatermarkArtifact", - "Aspose.Pdf.Forms.ButtonField", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Annotations.Border" + "Aspose.Pdf.WatermarkArtifact.BeginUpdates", + "Aspose.Pdf.WatermarkArtifact.SaveUpdates" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "validate-xfdf-annotation-count-per-page.cs", - "title": "Validate Imported XFDF Annotation Count per PDF Page", - "description": "Loads a PDF, imports annotations from an XFDF file, checks that each page contains the expected number of annotations, and saves the updated document.", + "title": "Validate XFDF Annotation Count per PDF Page", + "description": "Loads a PDF, imports annotations from an XFDF file, and verifies that each page contains the expected number of annotations.", "tags": [ "xfdf", "annotations", @@ -42426,10 +51307,10 @@ ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.ImportAnnotationsFromXfdf", "Aspose.Pdf.Page", - "Aspose.Pdf.Page.Annotations", - "Aspose.Pdf.Annotations.AnnotationCollection" + "Aspose.Pdf.Annotations", + "Aspose.Pdf.Document.ImportAnnotationsFromXfdf", + "Aspose.Pdf.Page.Annotations" ], "difficulty": "intermediate" } @@ -42437,7 +51318,7 @@ }, { "name": "working-with-attachments", - "file_count": 50, + "file_count": 69, "files": [ "add-attachment-to-password-protected-pdf.cs", "add-attachment-to-pdf-and-save.cs", @@ -42446,26 +51327,35 @@ "add-file-attachment-to-pdf-with-error-handling.cs", "add-file-attachment-to-pdf.cs", "add-file-attachment-with-retry.cs", + "add-image-watermark-to-pdf-attachments.cs", "add-image-watermark-to-pdf-pages.cs", "add-in-memory-attachment-to-pdf.cs", "add-multiple-attachments-to-pdf.cs", + "add-multiple-files-to-pdf-portfolio.cs", + "add-nested-pdf-to-pdf-portfolio.cs", "add-nested-pdf-to-portfolio.cs", "add-unicode-file-attachment-to-pdf.cs", "add-word-document-to-pdf-portfolio.cs", + "apply-custom-visual-template-to-pdf-portfolio.cs", "apply-visual-template-to-pdf-portfolio.cs", "attach-binary-file-to-pdf.cs", + "attach-file-from-byte-array-to-pdf.cs", "attach-remote-file-to-pdf.cs", "attachment-removal-integration-tests.cs", "batch-add-attachment-to-pdfs.cs", "batch-extract-pdf-attachments-to-zip.cs", "compress-pdf-portfolio-with-optimization.cs", "convert-pdf-to-portfolio-with-embedded-files.cs", + "create-pdf-portfolio-embed-files.cs", "create-pdf-portfolio-with-attachments.cs", "create-pdf-portfolio-with-multiple-embedded-files.cs", + "delete-outline-items-by-text.cs", "delete-pdf-attachment-by-filename.cs", "delete-pdf-outline-items-matching-text.cs", "embed-attachment-metadata-in-pdf.cs", + "embed-attachment-metadata-into-pdf.cs", "embed-hidden-xml-metadata-attachment.cs", + "embed-hidden-xml-metadata-pdf-attachment.cs", "embed-image-into-pdf-portfolio.cs", "extract-attachment-by-name-from-pdf.cs", "extract-attachments-from-encrypted-pdf.cs", @@ -42473,55 +51363,67 @@ "extract-embedded-file-from-pdf-portfolio.cs", "extract-embedded-files-from-pdf-portfolio.cs", "extract-pdf-attachment-metadata.cs", + "extract-pdf-attachments-in-parallel.cs", + "extract-pdf-attachments-sha256-hash.cs", "extract-pdf-attachments-sha256.cs", "extract-pdf-attachments-to-subfolders.cs", + "extract-specific-attachment-from-pdf.cs", "flatten-pdf-portfolio.cs", "generate-csv-report-of-pdf-attachments.cs", + "generate-csv-report-pdf-attachments.cs", "generate-pdf-page-thumbnails.cs", "insert-excel-into-pdf-portfolio.cs", "list-pdf-attachment-names-sizes.cs", + "measure-pdf-attachment-performance.cs", "merge-pdf-portfolios-preserve-metadata.cs", "read-pdf-metadata-attachment-count.cs", "remove-embedded-file-from-pdf-portfolio.cs", "remove-pdf-attachment-by-index.cs", "reorder-pdf-outline-items.cs", + "set-custom-description-for-pdf-attachments.cs", + "test-attachment-removal-updates-collection-count.cs", "update-attachment-description-pdf.cs", + "update-pdf-attachment-description.cs", + "validate-attachment-mime-type-and-add-to-pdf.cs", "validate-attachment-mime-type.cs", "validate-attachment-size-before-adding-to-pdf.cs", + "verify-pdf-size-increase-after-adding-file-attachment.cs", "verify-pdf-size-increases-with-attachment.cs" ], "required_namespaces": [ "Aspose.Pdf", "Aspose.Pdf.Annotations", "Aspose.Pdf.Drawing", - "Aspose.Pdf.Text", + "Aspose.Pdf.AI", "Aspose.Pdf.Devices", "Aspose.Pdf.Facades", - "Aspose.Pdf.Optimization" + "Aspose.Pdf.Optimization", + "Aspose.Pdf.Text" ], "key_apis": [ "FileAttachmentAnnotation", - "TextFragment", "FileInfo", + "ImageStamp", "OutlineItemCollection", + "TextFragment", "ThumbnailDevice" ], "examples": [ { "filename": "add-attachment-to-password-protected-pdf.cs", "title": "Add Attachment to Password-Protected PDF", - "description": "Shows how to open an encrypted PDF with a user password, embed a file as an attachment, and save the document while keeping it encrypted.", + "description": "Shows how to open an encrypted PDF with a user password, embed a file as an attachment, and save the PDF while keeping its protection intact.", "tags": [ "pdf", "attachment", "encryption", - "aspose.pdf", - "c#" + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.EmbeddedFilesCollection.Add", + "Aspose.Pdf.EmbeddedFiles", "Aspose.Pdf.Document.Save", "Aspose.Pdf.InvalidPasswordException" ], @@ -42529,95 +51431,61 @@ }, { "filename": "add-attachment-to-pdf-and-save.cs", - "title": "Add Attachment to PDF and Save to Output Folder", - "description": "Shows how to load a PDF, embed a file as an attachment, and save the updated document to a specified output directory.", - "tags": [ - "pdf", - "attachment", - "embed", - "output", - "aspose" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.EmbeddedFilesCollection", - "Aspose.Pdf.EmbeddedFilesCollection.Add", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner" + "title": "Add Attachment To Pdf And Save", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "add-custom-descriptions-to-pdf-attachments.cs", - "title": "Add Custom Descriptions to PDF Attachments", - "description": "Shows how to embed files into a PDF and assign a custom description (and MIME type) to each attachment before saving the document using Aspose.Pdf.", - "tags": [ - "attachments", - "pdf", - "description", - "aspose-pdf", - "filespecification" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Document.EmbeddedFiles", - "Aspose.Pdf.EmbeddedFilesCollection.Add", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner" + "title": "Add Custom Descriptions To Pdf Attachments", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "add-extract-remove-pdf-attachments.cs", - "title": "Add, Extract, and Remove PDF Attachments with Timing", - "description": "Demonstrates how to add a file attachment annotation to a PDF, extract the attached file, and remove the annotation while measuring the execution time of each operation.", - "tags": [ - "attachments", - "pdf", - "performance", - "annotation", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Annotations.FileAttachmentAnnotation", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Rectangle" - ], - "difficulty": "intermediate" + "title": "Add Extract Remove Pdf Attachments", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "add-file-attachment-to-pdf-with-error-handling.cs", "title": "Add File Attachment to PDF with Error Handling", - "description": "Demonstrates how to attach a file to a PDF using Aspose.Pdf while checking for missing source files and handling possible PDF processing errors.", + "description": "Demonstrates how to attach a file to a PDF page using Aspose.Pdf and includes robust error handling for missing source or attachment files.", "tags": [ - "pdf", "attachment", + "pdf", "error-handling", - "aspose-pdf", - "csharp" + "annotation", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Annotations.FileAttachmentAnnotation" + "Aspose.Pdf.FileAttachmentAnnotation", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Page", + "Aspose.Pdf.PdfException", + "Aspose.Pdf.Color", + "Aspose.Pdf.FileIcon" ], "difficulty": "intermediate" }, { "filename": "add-file-attachment-to-pdf.cs", - "title": "Add File Attachment Annotation to PDF", - "description": "Demonstrates loading an existing PDF, creating a FileSpecification and a FileAttachmentAnnotation, placing it on a page, and saving the document with the attached file.", + "title": "Add File Attachment to PDF", + "description": "Demonstrates how to load an existing PDF, create a FileSpecification for a file, attach it to a page using a FileAttachmentAnnotation, and save the updated document.", "tags": [ + "pdf", "attachment", "annotation", - "pdf", - "aspose-pdf", - "file-specification" + "file-specification", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", @@ -42625,166 +51493,197 @@ "Aspose.Pdf.Rectangle", "Aspose.Pdf.FileSpecification", "Aspose.Pdf.Annotations.FileAttachmentAnnotation", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Color" ], "difficulty": "beginner" }, { "filename": "add-file-attachment-with-retry.cs", "title": "Add File Attachment to PDF with Retry Logic", - "description": "Demonstrates attaching a file to a PDF using Aspose.Pdf and implementing retry handling for I/O errors when the PDF is stored on a network share.", + "description": "Shows how to attach a file to the first page of a PDF located on a network share using Aspose.Pdf, with retry handling for transient I/O errors.", "tags": [ - "attachment", "pdf", + "attachment", "retry", - "network", - "aspose-pdf" + "network-share", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Annotations.FileAttachmentAnnotation", - "Aspose.Pdf.Annotations.FileIcon", + "Aspose.Pdf.FileAttachmentAnnotation", "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate" }, { - "filename": "add-image-watermark-to-pdf-pages.cs", - "title": "Add Image Watermark to All PDF Pages", - "description": "Shows how to load a PDF with Aspose.Pdf, iterate through each page, create a WatermarkArtifact from an image, configure its opacity and background placement, add it to the page artifacts, and save the watermarked document.", + "filename": "add-image-watermark-to-pdf-attachments.cs", + "title": "Add Image Watermark to PDF Attachments", + "description": "Shows how to iterate through embedded PDF attachments, apply an image watermark to every page of each attachment, and replace the original attachment with the watermarked version before saving the main document.", "tags": [ + "attachments", "watermark", - "pdf", "image", - "pages", - "aspose-pdf" + "pdf", + "embedded-files" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Drawing.WatermarkArtifact", - "Aspose.Pdf.Drawing.WatermarkArtifact.SetImage", - "Aspose.Pdf.Drawing.WatermarkArtifact.IsBackground", - "Aspose.Pdf.Drawing.WatermarkArtifact.Opacity", - "Aspose.Pdf.Page.Artifacts.Add", + "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.ImageStamp", + "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, + { + "filename": "add-image-watermark-to-pdf-pages.cs", + "title": "Add Image Watermark To Pdf Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "add-in-memory-attachment-to-pdf.cs", - "title": "Add In-Memory Attachment to PDF Using Aspose.Pdf", - "description": "Demonstrates how to embed a file into a PDF using a MemoryStream, avoiding any intermediate disk writes, and then save the PDF to another MemoryStream.", + "title": "Add In-Memory Attachment to PDF", + "description": "Demonstrates how to embed a file stored in a MemoryStream as an attachment in a PDF using Aspose.Pdf, and save the result without creating intermediate files on disk.", "tags": [ "pdf", "attachment", "memorystream", - "aspose.pdf", - "in-memory" + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages.Add", "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Document.EmbeddedFiles.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.EmbeddedFiles" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "add-multiple-attachments-to-pdf.cs", "title": "Add Multiple Attachments to a PDF", - "description": "Demonstrates how to embed several files into a PDF by iterating a collection of file paths and saving the updated document.", + "description": "Shows how to embed several files into an existing PDF by iterating a list of file paths and saving the updated document.", "tags": [ "attachments", "pdf", - "aspose-pdf", + "aspose", "csharp", - "embedded-files" + "file-embedding" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Document.EmbeddedFiles", + "Aspose.Pdf.EmbeddedFilesCollection.Add", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Pages.Add" + "Aspose.Pdf.EmbeddedFilesCollection" + ], + "difficulty": "beginner" + }, + { + "filename": "add-multiple-files-to-pdf-portfolio.cs", + "title": "Add Multiple Files to a PDF Portfolio", + "description": "Demonstrates how to embed several files of different formats into a single PDF portfolio using Aspose.Pdf in one loop.", + "tags": [ + "pdf", + "portfolio", + "attachments", + "embedding", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.EmbeddedFileCollection", + "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.EmbeddedFileCollection.Add" ], "difficulty": "intermediate" }, { - "filename": "add-nested-pdf-to-portfolio.cs", + "filename": "add-nested-pdf-to-pdf-portfolio.cs", "title": "Add Nested PDF to Existing PDF Portfolio", - "description": "Shows how to embed a PDF file as a nested item inside an existing PDF Portfolio (collection) using Aspose.Pdf.", + "description": "Demonstrates how to embed a PDF file as a nested item inside an existing PDF portfolio using Aspose.Pdf.", "tags": [ "pdf-portfolio", - "embedded-file", + "attachment", + "embed", "aspose-pdf", - "csharp", - "document-collection" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Collection", "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Collection.Add" + "Aspose.Pdf.EmbeddedFilesCollection", + "Aspose.Pdf.EmbeddedFilesCollection.Add", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" + }, + { + "filename": "add-nested-pdf-to-portfolio.cs", + "title": "Add Nested Pdf To Portfolio", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "add-unicode-file-attachment-to-pdf.cs", "title": "Add Unicode File Attachment to PDF", - "description": "Demonstrates creating a PDF (if missing), attaching a file with a Unicode display name using a FileAttachmentAnnotation, and saving the updated document.", + "description": "Shows how to embed a file with a Unicode (e.g., Chinese) filename into a PDF as a file‑attachment annotation using Aspose.Pdf.", "tags": [ "attachment", "unicode", "pdf", "annotation", - "aspose-pdf" + "filespecification" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.FileSpecification", "Aspose.Pdf.Annotations.FileAttachmentAnnotation", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Color", - "Aspose.Pdf.Annotations.FileIcon" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Page.Annotations.Add" ], "difficulty": "intermediate" }, { "filename": "add-word-document-to-pdf-portfolio.cs", - "title": "Add a Word Document to a PDF Portfolio", - "description": "Shows how to embed a Word (.docx) file into a PDF document using Aspose.Pdf, turning the PDF into a portfolio with an attached file.", + "title": "Add Word Document to PDF Portfolio", + "description": "Demonstrates how to create a PDF portfolio and embed a Word (.docx) file using Aspose.Pdf's Collection and FileSpecification classes.", "tags": [ "pdf-portfolio", - "embed", - "word", + "attachments", "aspose-pdf", - "attachment" + "file-specification", + "docx" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Collection", "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Document.EmbeddedFiles", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Pages.Add" + "Aspose.Pdf.Collection.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "apply-visual-template-to-pdf-portfolio.cs", - "title": "Apply Visual Template to PDF Portfolio Pages", - "description": "Demonstrates how to load an existing PDF Portfolio, add a semi‑transparent header graphic and title text to each page using Aspose.PDF.Drawing classes, and save the modified document.", + "filename": "apply-custom-visual-template-to-pdf-portfolio.cs", + "title": "Apply Custom Visual Template to PDF Portfolio", + "description": "Shows how to load a PDF Portfolio and apply a visual template to each page by adding a semi‑transparent background rectangle and header text using Aspose.Pdf.Drawing and Aspose.Pdf.Text classes.", "tags": [ "pdf-portfolio", "visual-template", + "drawing", "graph", - "text", - "aspose-pdf" + "textfragment" ], "apis_used": [ "Aspose.Pdf.Document", @@ -42793,38 +51692,54 @@ "Aspose.Pdf.Drawing.Rectangle", "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.FontRepository.FindFont", - "Aspose.Pdf.Color.FromArgb" + "Aspose.Pdf.Color" ], "difficulty": "intermediate" }, + { + "filename": "apply-visual-template-to-pdf-portfolio.cs", + "title": "Apply Visual Template To Pdf Portfolio", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "attach-binary-file-to-pdf.cs", - "title": "Attach Binary File to PDF from Byte Array", - "description": "Demonstrates creating a FileSpecification from a byte array, embedding it in a PDF document, and adding a file attachment annotation to a page.", + "title": "Attach Binary File To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "attach-file-from-byte-array-to-pdf.cs", + "title": "Attach a File from a Byte Array to a PDF", + "description": "Demonstrates how to create a FileSpecification from a byte array using a MemoryStream and add it as a file attachment annotation to an existing PDF document.", "tags": [ "attachment", "file-specification", - "memorystream", "pdf", - "aspnet" + "memorystream", + "annotation" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.FileAttachmentAnnotation", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Color" + "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.Annotations.FileAttachmentAnnotation", + "Aspose.Pdf.Annotations.FileIcon", + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate" }, { "filename": "attach-remote-file-to-pdf.cs", - "title": "Attach Remote File to PDF as File Attachment Annotation", - "description": "Downloads a file from a remote URL into memory and embeds it in a PDF as a file‑attachment annotation using Aspose.Pdf.", + "title": "Attach Remote File to PDF", + "description": "Downloads a file from a remote URL into memory and adds it as a file attachment annotation to an existing PDF using Aspose.Pdf.", "tags": [ - "pdf", "attachment", + "pdf", "download", "memory", "annotation" @@ -42835,48 +51750,42 @@ "Aspose.Pdf.Rectangle", "Aspose.Pdf.FileSpecification", "Aspose.Pdf.Annotations.FileAttachmentAnnotation", - "Aspose.Pdf.Annotations.FileIcon" + "Aspose.Pdf.Color" ], "difficulty": "intermediate" }, { "filename": "attachment-removal-integration-tests.cs", "title": "Attachment Removal Integration Tests", - "description": "Shows how to write NUnit integration tests that verify removing, clearing, and removing by index updates the Attachments collection count in a response object.", - "tags": [ - "attachments", - "nunit", - "unit-test", - "collection", - "removal" - ], + "description": "", + "tags": [], "apis_used": [], - "difficulty": "beginner" + "difficulty": "" }, { "filename": "batch-add-attachment-to-pdfs.cs", "title": "Batch Add Attachment to PDFs", - "description": "Demonstrates how to iterate through a folder of PDF files and embed the same attachment into each document using Aspose.Pdf.", + "description": "Shows how to iterate through a folder of PDF files, attach the same external file to each document, and save the modified PDFs to an output directory using Aspose.Pdf.", "tags": [ "attachments", "batch", "pdf", "aspose-pdf", - "csharp" + "file-specification" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Document.EmbeddedFiles", - "Aspose.Pdf.Document.EmbeddedFiles.Add", + "Aspose.Pdf.EmbeddedFilesCollection", + "Aspose.Pdf.EmbeddedFilesCollection.Add", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "batch-extract-pdf-attachments-to-zip.cs", - "title": "Batch Extract PDF Attachments to ZIP Archive", - "description": "Demonstrates how to iterate through multiple PDF files, extract all embedded file attachments, and store them in a consolidated ZIP archive using Aspose.Pdf.", + "title": "Batch Extract PDF Attachments to a ZIP Archive", + "description": "Shows how to iterate over multiple PDF files, retrieve their embedded attachments with Aspose.Pdf, and consolidate all attachments into a single ZIP archive.", "tags": [ "pdf", "attachments", @@ -42886,17 +51795,17 @@ ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.EmbeddedFiles", + "Aspose.Pdf.EmbeddedFilesCollection", "Aspose.Pdf.EmbeddedFile", - "Aspose.Pdf.EmbeddedFile.Save", - "Aspose.Pdf.EmbeddedFile.Name" + "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.EmbeddedFile.Save" ], "difficulty": "intermediate" }, { "filename": "compress-pdf-portfolio-with-optimization.cs", - "title": "Compress PDF Portfolio Using Optimization Options", - "description": "Shows how to open an existing PDF Portfolio, enable object compression via OptimizationOptions, and save the compressed PDF.", + "title": "Compress PDF Portfolio and Save with Optimization", + "description": "Shows how to load an existing PDF Portfolio, enable object compression using OptimizationOptions, and save the compressed portfolio to a new file.", "tags": [ "pdf", "portfolio", @@ -42914,20 +51823,28 @@ }, { "filename": "convert-pdf-to-portfolio-with-embedded-files.cs", - "title": "Convert PDF to Portfolio with Embedded Files", - "description": "Demonstrates how to load a regular PDF, embed multiple files, and automatically convert it into a PDF Portfolio using Aspose.Pdf.", + "title": "Convert Pdf To Portfolio With Embedded Files", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-pdf-portfolio-embed-files.cs", + "title": "Create PDF Portfolio by Embedding Files", + "description": "Demonstrates how to convert an existing PDF into a PDF Portfolio by adding multiple embedded files using Aspose.Pdf.", "tags": [ "pdf-portfolio", - "embedded-files", "attachments", + "embed-files", "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.Document.Pages", "Aspose.Pdf.Document.EmbeddedFiles", - "Aspose.Pdf.Document.EmbeddedFiles.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" @@ -42935,50 +51852,55 @@ { "filename": "create-pdf-portfolio-with-attachments.cs", "title": "Create PDF Portfolio with Attachments", - "description": "Demonstrates how to build a PDF Portfolio by creating a document, adding a page with text, embedding multiple files as attachments, and saving the result.", + "description": "Demonstrates how to create a PDF portfolio document and embed files as attachments using Aspose.Pdf's Document, Collection, and FileSpecification classes.", "tags": [ - "pdf", - "portfolio", + "pdf-portfolio", "attachments", - "aspose.pdf", - "csharp" + "aspose-pdf", + "file-specification", + "collection" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.Position", - "Aspose.Pdf.FontRepository.FindFont", + "Aspose.Pdf.Collection", "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Document.EmbeddedFiles.Add", + "Aspose.Pdf.FileSpecification.Contents", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "create-pdf-portfolio-with-multiple-embedded-files.cs", - "title": "Create PDF Portfolio with Multiple Embedded Files", - "description": "Demonstrates how to add several files of different types to a PDF portfolio in a single loop using Aspose.Pdf.", + "title": "Create Pdf Portfolio With Multiple Embedded Files", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "delete-outline-items-by-text.cs", + "title": "Delete PDF Outline Items by Matching Text", + "description": "Demonstrates loading a PDF, searching its outline (bookmark) entries for a specific text, and removing the matching items using Aspose.Pdf.", "tags": [ "pdf", - "portfolio", - "embedded-files", - "aspose.pdf", - "c#" + "outline", + "bookmark", + "delete", + "search" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Document.EmbeddedFiles.Add", + "Aspose.Pdf.OutlineCollection", + "Aspose.Pdf.OutlineItemCollection", + "Aspose.Pdf.OutlineCollection.Delete", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "delete-pdf-attachment-by-filename.cs", - "title": "Delete PDF Attachment by Filename", - "description": "Demonstrates how to remove an embedded file from a PDF by specifying its filename using Aspose.Pdf.", + "title": "Delete PDF Attachment by Filename using Aspose.Pdf", + "description": "Demonstrates how to locate and remove an embedded file from a PDF by matching its filename with Aspose.Pdf.", "tags": [ "pdf", "attachment", @@ -42988,197 +51910,178 @@ ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.EmbeddedFileCollection", - "Aspose.Pdf.EmbeddedFileCollection.Delete", + "Aspose.Pdf.EmbeddedFiles", + "Aspose.Pdf.EmbeddedFiles.FindByName", + "Aspose.Pdf.EmbeddedFiles.Delete", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "delete-pdf-outline-items-matching-text.cs", - "title": "Delete PDF Outline Items Matching Text", - "description": "Loads a PDF, searches its outline (bookmark) entries for a specific description text, and removes the matching items before saving the cleaned document.", - "tags": [ - "pdf", - "outline", - "bookmark", - "delete", - "aspose" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.OutlineItemCollection", - "Aspose.Pdf.OutlineCollection", - "Aspose.Pdf.OutlineCollection.Delete", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "intermediate" + "title": "Delete Pdf Outline Items Matching Text", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "embed-attachment-metadata-in-pdf.cs", - "title": "Embed Attachment and Add Metadata to PDF Document Info", - "description": "Demonstrates how to embed a file into a PDF using Aspose.Pdf, store custom attachment metadata in the document information dictionary, and save the updated PDF.", + "title": "Embed Attachment Metadata In Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "embed-attachment-metadata-into-pdf.cs", + "title": "Embed Attachment Metadata into PDF Information Dictionary", + "description": "Loads a PDF, adds an embedded file, stores custom attachment metadata in the document information dictionary, and transfers that info into the PDF metadata using conversion options.", "tags": [ "attachment", "metadata", + "document-info", "pdf", - "aspose", - "csharp" + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.DocumentInfo", - "Aspose.Pdf.Document.EmbeddedFiles", + "Aspose.Pdf.PdfFormatConversionOptions", + "Aspose.Pdf.Document.Convert", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "embed-hidden-xml-metadata-attachment.cs", + "title": "Embed Hidden Xml Metadata Attachment", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "embed-hidden-xml-metadata-pdf-attachment.cs", "title": "Embed Hidden XML Metadata as PDF Attachment", - "description": "Creates or loads a PDF, builds an XML document with metadata, serializes it to a stream, and embeds it as a hidden file attachment annotation in the PDF.", + "description": "Serializes a custom metadata object to XML, embeds it in a PDF as a hidden file attachment annotation, and saves the modified document.", "tags": [ "pdf", "attachment", "metadata", "xml", - "hidden" + "hidden-annotation" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.Page", "Aspose.Pdf.Annotations.FileAttachmentAnnotation", - "Aspose.Pdf.Annotations.AnnotationFlags", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Annotations.FileSpecification", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.AnnotationFlags" ], "difficulty": "intermediate" }, { "filename": "embed-image-into-pdf-portfolio.cs", "title": "Embed Image into PDF Portfolio with Display Name", - "description": "Demonstrates how to embed an image file into a PDF portfolio and assign a custom display name using Aspose.Pdf.", + "description": "Demonstrates how to embed an image file into a PDF portfolio using Aspose.Pdf and set a custom display name for the embedded file.", "tags": [ - "pdf", - "portfolio", - "embed", + "pdf-portfolio", + "embed-file", "image", - "display-name" + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Document.EmbeddedFiles", - "Aspose.Pdf.EmbeddedFilesCollection.Add", + "Aspose.Pdf.Document.Pages.Add", + "Aspose.Pdf.Document.EmbeddedFiles.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "extract-attachment-by-name-from-pdf.cs", - "title": "Extract Attachment by Name from PDF", - "description": "The example creates a PDF with an embedded file, then loads the PDF, locates the attachment by its name, and saves it to a specified directory.", - "tags": [ - "attachment", - "extract", - "pdf", - "embedded-files", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.EmbeddedFiles", - "Aspose.Pdf.EmbeddedFiles.Add", - "Aspose.Pdf.EmbeddedFiles.FindByName", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "intermediate" + "title": "Extract Attachment By Name From Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "extract-attachments-from-encrypted-pdf.cs", "title": "Extract Attachments from Encrypted PDF", - "description": "Shows how to open an encrypted PDF with a password, decrypt it, and extract all embedded file attachments to a specified folder using Aspose.Pdf.", + "description": "Shows how to open a password‑protected PDF, decrypt it, and extract all embedded file attachments to a specified folder.", "tags": [ "pdf", "attachments", - "encryption", - "extraction", - "aspose" + "decryption", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Document.Decrypt", "Aspose.Pdf.Document.EmbeddedFiles", - "Aspose.Pdf.EmbeddedFile.Name", + "Aspose.Pdf.EmbeddedFile", "Aspose.Pdf.EmbeddedFile.Save" ], "difficulty": "intermediate" }, { "filename": "extract-embedded-attachments-parallel.cs", - "title": "Extract Embedded Attachments from PDFs in Parallel", - "description": "Demonstrates how to concurrently extract embedded files from multiple PDF documents using Aspose.Pdf and Parallel.ForEach, saving each attachment to a dedicated folder.", - "tags": [ - "pdf", - "attachments", - "parallel", - "aspose-pdf", - "extraction" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.EmbeddedFilesCollection", - "Aspose.Pdf.FileSpecification.Name", - "Aspose.Pdf.FileSpecification.Contents" - ], - "difficulty": "intermediate" + "title": "Extract Embedded Attachments Parallel", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "extract-embedded-file-from-pdf-portfolio.cs", "title": "Extract Embedded File from PDF Portfolio by Index", - "description": "Demonstrates how to load a PDF, locate an embedded file by its 1‑based index, and save it using the original file name and extension.", + "description": "Demonstrates how to load a PDF containing a portfolio, retrieve an embedded file by its 1‑based index, and save it using the original file name and extension.", "tags": [ "pdf", "embedded-files", - "extraction", "portfolio", - "aspose" + "extraction", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.EmbeddedFileCollection", "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Document.EmbeddedFiles", - "Aspose.Pdf.FileSpecification.Name", - "Aspose.Pdf.FileSpecification.Contents" + "Aspose.Pdf.FileSpecification.Contents", + "Aspose.Pdf.FileSpecification.Name" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "extract-embedded-files-from-pdf-portfolio.cs", "title": "Extract Embedded Files from PDF Portfolio", - "description": "Shows how to load a PDF portfolio with Aspose.Pdf, iterate over its embedded files, and write each file to a structured directory hierarchy on disk.", + "description": "The example opens a PDF portfolio, iterates through its embedded files, and saves each file to a local directory while preserving the virtual folder hierarchy.", "tags": [ "pdf-portfolio", "embedded-files", "extraction", "aspose-pdf", - "file-io" + "file-system" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Document.EmbeddedFiles", "Aspose.Pdf.EmbeddedFile.Save", "Aspose.Pdf.EmbeddedFile.Name", - "Aspose.Pdf.EmbeddedFile.FileSpecification" + "Aspose.Pdf.FileSpecification.Contents" ], "difficulty": "intermediate" }, { "filename": "extract-pdf-attachment-metadata.cs", "title": "Extract PDF Attachment Metadata to JSON", - "description": "Shows how to read file attachment annotations from a PDF, retrieve their creation date, file name, title and subject, and write the collected metadata to a JSON file.", + "description": "Shows how to read file‑attachment annotations from a PDF, obtain each attachment's file name and creation date, and write the collected metadata to a JSON file.", "tags": [ "pdf", "attachments", @@ -43189,55 +52092,106 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.FileAttachmentAnnotation", "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.FileSpecification" + "Aspose.Pdf.Annotations.FileAttachmentAnnotation", + "Aspose.Pdf.Annotations.FileSpecification" ], "difficulty": "intermediate" }, { - "filename": "extract-pdf-attachments-sha256.cs", - "title": "Extract PDF Attachments and Compute SHA‑256 Hashes", + "filename": "extract-pdf-attachments-in-parallel.cs", + "title": "Extract PDF Attachments in Parallel", + "description": "Shows how to process multiple PDF files concurrently and extract all embedded attachments using Aspose.Pdf, employing reflection to save each attachment.", + "tags": [ + "pdf", + "attachments", + "parallel", + "aspose", + "reflection" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.EmbeddedFiles", + "Aspose.Pdf.EmbeddedFile", + "Aspose.Pdf.EmbeddedFileCollection", + "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.EmbeddedFile.Save" + ], + "difficulty": "intermediate" + }, + { + "filename": "extract-pdf-attachments-sha256-hash.cs", + "title": "Extract PDF Attachments and Compute SHA-256 Hashes", "description": "Loads a PDF, enumerates its embedded file attachments, and calculates a SHA‑256 hash for each attachment to verify integrity.", "tags": [ + "pdf", "attachments", "hash", "sha256", - "pdf", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.EmbeddedFiles", - "Aspose.Pdf.EmbeddedFile", - "Aspose.Pdf.EmbeddedFileCollection", - "Aspose.Pdf.EmbeddedFile.Data" + "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.EmbeddedFilesCollection", + "Aspose.Pdf.FileSpecification.Name", + "Aspose.Pdf.FileSpecification.Contents" ], "difficulty": "intermediate" }, + { + "filename": "extract-pdf-attachments-sha256.cs", + "title": "Extract Pdf Attachments Sha256", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "extract-pdf-attachments-to-subfolders.cs", "title": "Extract PDF Attachments to Separate Subfolders", - "description": "Demonstrates how to read embedded files from a PDF using Aspose.Pdf and save each attachment into its own subfolder on disk.", + "description": "Shows how to load a PDF with Aspose.Pdf, iterate over its embedded files and save each attachment into its own subfolder.", "tags": [ - "attachments", "pdf", + "attachments", "extraction", - "folders", - "Aspose.Pdf" + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Document.EmbeddedFiles", + "Aspose.Pdf.EmbeddedFile", + "Aspose.Pdf.EmbeddedFile.Save", "Aspose.Pdf.EmbeddedFile.Name", - "Aspose.Pdf.EmbeddedFile.Content" + "Aspose.Pdf.FileSpecification" + ], + "difficulty": "intermediate" + }, + { + "filename": "extract-specific-attachment-from-pdf.cs", + "title": "Extract Specific Attachment from PDF", + "description": "Demonstrates how to locate an embedded file by name in a PDF document and save it to a specified directory using Aspose.Pdf.", + "tags": [ + "pdf", + "attachment", + "extract", + "aspose-pdf", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.EmbeddedFiles", + "Aspose.Pdf.EmbeddedFilesCollection.FindByName", + "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.FileSpecification.Contents" ], "difficulty": "intermediate" }, { "filename": "flatten-pdf-portfolio.cs", "title": "Flatten PDF Portfolio to Standard PDF", - "description": "Shows how to load a PDF Portfolio, flatten it to remove interactive collection features, and save it as a regular PDF using Aspose.Pdf.", + "description": "Loads a PDF Portfolio, removes its interactive collection UI by flattening the document, and saves it as a regular PDF file.", "tags": [ "pdf-portfolio", "flatten", @@ -43254,101 +52208,131 @@ }, { "filename": "generate-csv-report-of-pdf-attachments.cs", + "title": "Generate Csv Report Of Pdf Attachments", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "generate-csv-report-pdf-attachments.cs", "title": "Generate CSV Report of PDF Attachments", - "description": "Loads a PDF, enumerates its embedded file attachments, and creates a CSV file listing each attachment's name, size, and description.", + "description": "Demonstrates loading a PDF with Aspose.Pdf, enumerating its embedded file attachments, extracting name, size, and description, and writing the data to a CSV file.", "tags": [ "attachments", "csv", - "report", "aspose-pdf", - "embedded-files" + "metadata", + "reflection" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Document.EmbeddedFiles", + "Aspose.Pdf.EmbeddedFile", "Aspose.Pdf.EmbeddedFile.Name", - "Aspose.Pdf.EmbeddedFile.FileSize", + "Aspose.Pdf.EmbeddedFile.Size", "Aspose.Pdf.EmbeddedFile.Description" ], "difficulty": "intermediate" }, { "filename": "generate-pdf-page-thumbnails.cs", - "title": "Generate Thumbnails for Each PDF Page", - "description": "Demonstrates how to create a thumbnail image for every page of a PDF portfolio using Aspose.Pdf's Drawing API and compile them into a new PDF document.", + "title": "Generate Thumbnails for PDF Pages", + "description": "Demonstrates how to create PNG thumbnail images for each page of a PDF (portfolio) using Aspose.Pdf's Drawing API.", "tags": [ - "pdf", "thumbnail", - "image", + "pdf", + "aspose", "drawing-api", - "aspose-pdf" + "pages" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.Devices.ThumbnailDevice", - "Aspose.Pdf.Page.AddImage", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Page", + "Aspose.Pdf.PageCollection", + "Aspose.Pdf.Devices.ThumbnailDevice.Process" ], "difficulty": "intermediate" }, { "filename": "insert-excel-into-pdf-portfolio.cs", "title": "Insert Excel Workbook into PDF Portfolio with Description", - "description": "Shows how to embed an existing Excel workbook into a PDF portfolio and assign a custom description to the attachment using Aspose.Pdf.", + "description": "Demonstrates how to create a PDF portfolio and embed an Excel workbook with a custom description using Aspose.Pdf.", "tags": [ "pdf-portfolio", "excel-attachment", - "file-embedding", + "embedded-files", "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Document.EmbeddedFiles", + "Aspose.Pdf.EmbeddedFilesCollection", "Aspose.Pdf.EmbeddedFilesCollection.Add", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "list-pdf-attachment-names-sizes.cs", "title": "List PDF Attachment Names and Sizes", - "description": "Shows how to load a PDF with Aspose.Pdf, access its embedded file attachments, and iterate through them to output each attachment's name and size.", + "description": "Shows how to load a PDF with Aspose.Pdf, iterate the EmbeddedFiles collection, and print each attachment's original name and its size in bytes.", "tags": [ "attachments", - "embedded-files", "pdf", - "aspose-pdf", - "csharp" + "aspose", + "file-specification", + "enumeration" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.EmbeddedFileCollection", + "Aspose.Pdf.Document.EmbeddedFiles", "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.FileSpecificationParams", - "Aspose.Pdf.Stream" + "Aspose.Pdf.FileSpecification.Name", + "Aspose.Pdf.FileSpecification.Contents" ], "difficulty": "beginner" }, + { + "filename": "measure-pdf-attachment-performance.cs", + "title": "Measure Performance of Adding, Extracting, and Removing PDF Attachments", + "description": "Demonstrates how to add a file attachment annotation, list existing attachments, and remove an attachment from a PDF while logging the time taken for each operation using Aspose.Pdf.", + "tags": [ + "attachments", + "performance", + "annotations", + "pdf", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.Annotations.FileAttachmentAnnotation", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Color", + "Aspose.Pdf.Page.Annotations.Add", + "Aspose.Pdf.Page.Annotations.Delete" + ], + "difficulty": "intermediate" + }, { "filename": "merge-pdf-portfolios-preserve-metadata.cs", - "title": "Merge Two PDF Portfolios While Preserving Metadata", - "description": "Demonstrates how to combine two PDF Portfolio files into a single document using Aspose.Pdf, while retaining both standard document and XMP metadata from the first portfolio.", + "title": "Merge Two PDF Portfolios Preserving Embedded File Metadata", + "description": "Demonstrates how to combine two PDF portfolios into a single document while keeping all embedded files and their associated metadata intact.", "tags": [ "pdf", "portfolio", "merge", - "metadata", - "aspose-pdf" + "embedded-files", + "metadata" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Merge", - "Aspose.Pdf.Document.Info", - "Aspose.Pdf.Document.GetXmpMetadata", - "Aspose.Pdf.Document.SetXmpMetadata", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Document.EmbeddedFiles", + "Aspose.Pdf.FileSpecification", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" @@ -43356,27 +52340,27 @@ { "filename": "read-pdf-metadata-attachment-count.cs", "title": "Read PDF Metadata and Count Attachments", - "description": "Shows how to load a PDF with Aspose.Pdf, read its standard metadata fields, count embedded file attachments, and output a concise report.", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, extract standard document metadata, count embedded file attachments, and generate a simple text report.", "tags": [ "metadata", "attachments", "pdf", - "aspose-pdf", - "csharp" + "report", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.DocumentInfo", + "Aspose.Pdf.Document.EmbeddedFiles", "Aspose.Pdf.EmbeddedFileCollection", - "Aspose.Pdf.DocumentInfo.Title", - "Aspose.Pdf.DocumentInfo.CreationDate" + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "remove-embedded-file-from-pdf-portfolio.cs", "title": "Remove Embedded File from PDF Portfolio by Index", - "description": "Shows how to delete a specific embedded file from a PDF portfolio using its collection index with Aspose.Pdf.", + "description": "Demonstrates how to delete a specific embedded file from a PDF portfolio using its 1‑based collection index and save the updated document.", "tags": [ "pdf", "portfolio", @@ -43386,9 +52370,9 @@ ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.EmbeddedFileCollection", - "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.EmbeddedFileCollection.Delete", + "Aspose.Pdf.EmbeddedFilesCollection", + "Aspose.Pdf.EmbeddedFile", + "Aspose.Pdf.EmbeddedFilesCollection.Delete", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" @@ -43396,169 +52380,257 @@ { "filename": "remove-pdf-attachment-by-index.cs", "title": "Remove PDF Attachment by Index", - "description": "Shows how to delete an embedded file from a PDF using its zero‑based index by retrieving the attachment name and calling the EmbeddedFiles collection's Delete method.", + "description": "Shows how to delete an embedded file from a PDF using its zero‑based index with Aspose.Pdf.", "tags": [ "pdf", "attachment", "remove", - "embedded-files", - "aspose-pdf" + "embeddedfiles", + "aspose.pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", "Aspose.Pdf.Document.EmbeddedFiles", - "Aspose.Pdf.EmbeddedFileCollection", - "Aspose.Pdf.EmbeddedFileCollection.Delete" + "Aspose.Pdf.EmbeddedFile", + "Aspose.Pdf.EmbeddedFiles.Delete", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "reorder-pdf-outline-items.cs", - "title": "Reorder PDF Outline Items (Swap First Two)", - "description": "Demonstrates how to swap the first two outline (bookmark) items in a PDF by removing and re‑adding them in the desired order using Aspose.Pdf.", + "title": "Reorder PDF Outline (Bookmark) Items", + "description": "Loads a PDF, extracts its top‑level outline (bookmark) entries, changes their order, clears the existing outlines, and re‑adds them in the new sequence.", "tags": [ "pdf", - "outline", - "reorder", + "outlines", "bookmarks", + "reorder", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.OutlineCollection", "Aspose.Pdf.OutlineItemCollection", - "Aspose.Pdf.OutlineCollection.Clear", - "Aspose.Pdf.OutlineCollection.Add", + "Aspose.Pdf.Document.Outlines", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.OutlineItemCollection.Add" + ], + "difficulty": "intermediate" + }, + { + "filename": "set-custom-description-for-pdf-attachments.cs", + "title": "Set Custom Description for PDF Attachment Annotations", + "description": "Shows how to load a PDF, iterate over its pages and annotations, find file attachment annotations, and assign custom subject and file description metadata before saving the document.", + "tags": [ + "attachments", + "metadata", + "file-attachment", + "Aspose.Pdf", + "PDF" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.FileAttachmentAnnotation", + "Aspose.Pdf.Annotations.FileSpecification", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, + { + "filename": "test-attachment-removal-updates-collection-count.cs", + "title": "Test Attachment Removal Updates Collection Count", + "description": "Shows integration tests that verify removing or clearing attachments correctly updates the Attachments collection count in a ThreadMessageResponse.", + "tags": [ + "attachments", + "unit-test", + "nunit", + "collection", + "aspose-pdf-ai" + ], + "apis_used": [ + "Aspose.Pdf.AI.Attachment", + "Aspose.Pdf.AI.Tool", + "Aspose.Pdf.AI.ThreadMessageResponse" + ], + "difficulty": "beginner" + }, { "filename": "update-attachment-description-pdf.cs", - "title": "Update File Attachment Description in PDF", + "title": "Update Attachment Description Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "update-pdf-attachment-description.cs", + "title": "Update PDF Attachment Description", "description": "Demonstrates how to locate a file attachment annotation in a PDF, modify its description, and save the updated document using Aspose.Pdf.", "tags": [ "attachment", - "pdf", - "annotation", "description", - "aspose" + "pdf", + "aspose", + "annotation" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.Annotations.FileAttachmentAnnotation", + "Aspose.Pdf.Page", "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.FileSpecification" + "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "validate-attachment-mime-type.cs", - "title": "Validate Attachment MIME Type Before Adding to PDF", - "description": "Shows how to verify that an attachment's MIME type matches its file extension and then embed the file into a PDF using Aspose.Pdf.", + "filename": "validate-attachment-mime-type-and-add-to-pdf.cs", + "title": "Validate Attachment MIME Type and Add to PDF", + "description": "The example verifies that a file's MIME type matches its extension, then embeds the file as an attachment annotation in a PDF using Aspose.Pdf.", "tags": [ + "mime", "attachment", - "mime-type", - "validation", "pdf", + "validation", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Annotations.FileAttachmentAnnotation", - "Aspose.Pdf.Document.EmbeddedFiles.Add", "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.FileAttachmentAnnotation", + "Aspose.Pdf.Image.GetMimeType", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Color", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.FileIcon", + "Aspose.Pdf.Color" ], "difficulty": "intermediate" }, + { + "filename": "validate-attachment-mime-type.cs", + "title": "Validate Attachment Mime Type", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "validate-attachment-size-before-adding-to-pdf.cs", "title": "Validate Attachment Size Before Adding to PDF", - "description": "Loads an existing PDF, checks each file's size against a defined limit, and attaches only the files that meet the size requirement using Aspose.Pdf file attachment annotations.", + "description": "Shows how to check each file's size against a limit and attach only those that meet the criteria as file attachment annotations in a PDF document.", "tags": [ "attachment", - "size-validation", + "size-limit", "pdf", - "aspose", - "annotation" + "annotation", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Rectangle", "Aspose.Pdf.Annotations.FileAttachmentAnnotation", - "Aspose.Pdf.Page.Annotations.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Color" ], "difficulty": "intermediate" }, { - "filename": "verify-pdf-size-increases-with-attachment.cs", - "title": "Verify PDF Size Increases When Adding File Attachment", - "description": "Demonstrates a unit test that creates a blank PDF, adds a file attachment annotation, and asserts that the PDF size grows as expected.", + "filename": "verify-pdf-size-increase-after-adding-file-attachment.cs", + "title": "Verify PDF Size Increase After Adding File Attachment", + "description": "Creates a PDF, adds a FileAttachmentAnnotation, saves the modified document, and uses an NUnit test to assert that the file size grows as expected.", "tags": [ "pdf", "attachment", + "nunit", "unit-test", - "size", - "aspose" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.FileSpecification", "Aspose.Pdf.Annotations.FileAttachmentAnnotation", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" + }, + { + "filename": "verify-pdf-size-increases-with-attachment.cs", + "title": "Verify Pdf Size Increases With Attachment", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" } ] }, { "name": "working-with-forms", - "file_count": 230, + "file_count": 358, "files": [ + "acroform-with-margins.cs", "add-acroform-textbox-absolute-coordinates.cs", "add-auto-updating-date-time-field-to-pdf.cs", + "add-auto-updating-datetime-field-to-pdf.cs", + "add-blank-page-save-as-new-pdf.cs", "add-blank-page-to-pdf-form.cs", "add-calculated-total-field-to-pdf-form.cs", + "add-calculated-total-field-with-javascript.cs", + "add-calculated-total-price-field-to-pdf-form.cs", "add-calculation-button-to-pdf-form.cs", "add-checkbox-field-to-pdf-form.cs", + "add-current-time-datefield-to-pdf.cs", + "add-date-field-validation.cs", "add-date-picker-field-current-date.cs", "add-date-picker-field-to-pdf.cs", "add-dynamic-barcode-field-to-pdf.cs", + "add-dynamic-code128-barcode-to-pdf.cs", "add-email-validation-to-pdf-form.cs", + "add-fallback-metadata-to-pdf.cs", + "add-gender-radio-button-group-to-pdf.cs", "add-hidden-ip-field-to-pdf.cs", + "add-hidden-session-id-field-to-pdf.cs", "add-hidden-session-identifier-field-to-pdf.cs", "add-ipv4-validation-to-pdf-textbox.cs", + "add-javascript-email-validation-to-pdf-form-field.cs", "add-javascript-listener-to-pdf-form-field.cs", + "add-javascript-localization-to-pdf-form.cs", + "add-listbox-to-pdf-form.cs", "add-locale-translation-to-pdf-form-label.cs", + "add-multi-select-list-box-max-3.cs", "add-multiline-feedback-text-field.cs", "add-new-page-with-acroform-fields.cs", "add-numeric-field-range-validation.cs", + "add-numeric-field-with-validation.cs", + "add-password-textbox-field-to-pdf.cs", "add-payment-method-radio-button-group.cs", + "add-paymentmethod-radio-button-group.cs", + "add-progress-bar-field-to-pdf-form.cs", "add-progress-bar-to-pdf-form.cs", - "add-readonly-date-field-to-pdf.cs", + "add-read-only-date-field-to-pdf.cs", "add-reset-button-to-pdf-form.cs", "add-reset-button-to-pdf-form__v2.cs", "add-signature-field-to-pdf-form.cs", "add-signature-field-with-image-stamp.cs", + "add-submit-button-export-interaction-log.cs", + "add-submit-button-http-post-pdf-form.cs", "add-submit-button-http-post-pdf.cs", "add-submit-button-post-form-data-xfdf.cs", "add-submit-button-to-pdf-form.cs", "add-submit-button-to-pdf-form__v2.cs", "add-submit-button-to-pdf.cs", "add-text-annotation-save-modified-pdf.cs", + "add-text-box-field-to-pdf-acroform.cs", "add-tooltip-to-pdf-form-field.cs", + "add-tooltip-to-pdf-form-textbox.cs", "apply-background-image-to-pdf-form-field.cs", "apply-custom-font-to-pdf-form-fields.cs", + "apply-digital-signature-to-pdf.cs", + "apply-xml-visibility-to-pdf-annotations.cs", "assign-custom-appearance-image-to-pdf-button.cs", "assign-javascript-onlostfocus-to-pdf-form-field.cs", "async-import-xml-form-data-into-pdf.cs", @@ -43566,30 +52638,48 @@ "batch-convert-pdfs-to-xml.cs", "batch-export-pdf-form-data-to-xml.cs", "batch-fill-identical-form-fields.cs", + "batch-fill-pdf-form-fields.cs", "batch-fill-pdf-forms-from-csv.cs", + "batch-fill-pdf-forms-from-xml.cs", "batch-import-xml-into-pdfs.cs", "batch-set-comments-field-character-limit.cs", + "batch-set-comments-maxlen.cs", + "bind-pdf-with-formeditor-save-modified-pdf.cs", + "bulk-fill-pdf-form-fields-from-json.cs", "bulk-fill-pdf-form-with-json-skip-missing-fields.cs", "calculate-total-price-pdf-form.cs", + "center-align-text-field-in-pdf-form.cs", "center-align-text-field.cs", "clone-pdf-form-field-to-another-page.cs", + "collapse-pdf-outline-section.cs", "compare-pdf-form-data-diff-report.cs", "conditional-pdf-section-checkbox.cs", "convert-form-data-json-to-csv.cs", + "convert-pdf-form-json-to-csv.cs", "copy-form-field-to-another-page.cs", "copy-form-fields-between-pdfs.cs", + "copy-form-fields-to-another-pdf.cs", + "create-acroform-textbox-appearance.cs", "create-acroform-textbox-with-margins.cs", "create-code128-barcode-linked-to-text-field.cs", "create-collapsible-pdf-section.cs", "create-collapsible-section-in-pdf-form.cs", + "create-collapsible-section-pdf-form.cs", "create-gender-radio-button-pdf.cs", "create-hidden-audit-timestamp-field.cs", "create-hidden-calculation-field.cs", + "create-localized-pdf-form.cs", + "create-multi-page-pdf-unique-form-fields.cs", + "create-multi-page-pdf-with-acroform-fields.cs", "create-multi-page-pdf-with-different-acroform-fields.cs", "create-multi-select-list-box.cs", - "create-multi-select-list-box__v2.cs", "create-multi-select-listbox-max-three.cs", + "create-multi-select-listbox.cs", "create-password-protected-pdf-form.cs", + "create-pdf-acroform-open-js.cs", + "create-pdf-acroform-textbox-absolute-coordinates.cs", + "create-pdf-country-dropdown.cs", + "create-pdf-date-field-validation.cs", "create-pdf-dropdown-country.cs", "create-pdf-form-auto-backup.cs", "create-pdf-form-digital-signature.cs", @@ -43597,39 +52687,58 @@ "create-pdf-form-pdf-only-attachment.cs", "create-pdf-form-tax-calculation.cs", "create-pdf-form-template-fill-from-json.cs", + "create-pdf-form-with-analytics.cs", + "create-pdf-form-with-automatic-backup.cs", "create-pdf-form-with-barcode-field.cs", + "create-pdf-form-with-barcode-field__v2.cs", "create-pdf-form-with-barcode.cs", "create-pdf-form-with-concatenated-barcode.cs", + "create-pdf-form-with-dynamic-list-box.cs", "create-pdf-form-with-hidden-interaction-log.cs", + "create-pdf-form-with-password-protection.cs", + "create-pdf-form-with-qr-code.cs", + "create-pdf-form-with-required-field-validation.cs", + "create-pdf-form-with-submit-button.cs", "create-pdf-form-with-validation.cs", + "create-pdf-multi-select-list-box.cs", + "create-pdf-template-with-form-fields.cs", "create-pdf-template-with-form-placeholders.cs", "create-pdf-with-acroform-calculation-js.cs", + "create-pdf-with-acroform-calculation.cs", + "create-pdf-with-acroform-fields-custom-tab-order.cs", "create-pdf-with-acroform-open-js.cs", "create-pdf-with-acroform-text-field.cs", "create-pdf-with-acroform-textbox-margins.cs", + "create-pdf-with-acroform-tooltips.cs", "create-pdf-with-hidden-guid-tracking-field.cs", - "create-pdf-with-listbox.cs", "create-pdf-with-top-checkbox.cs", + "create-pdf-with-xfa-form.cs", "create-pdf-with-xmp-metadata-fallback-xml.cs", "create-right-aligned-numeric-text-field.cs", "create-rtl-textbox-form-field.cs", "date-field-validation-with-regex.cs", + "define-calculation-order-for-pdf-form-fields.cs", "delete-form-field-from-pdf.cs", "delete-form-field-from-pdf__v2.cs", "delete-form-fields-on-page.cs", "detect-flattened-pdf-modify-form-field.cs", "digitally-sign-filled-pdf-form.cs", + "duplicate-pdf-form-field.cs", "duplicate-rename-pdf-form-field.cs", "dynamic-listbox-add-item.cs", "enable-spell-checking-textbox-field.cs", "export-acroform-data-to-xfdf-xml.cs", "export-acroform-data-to-xfdf.cs", + "export-acroform-data-to-xml.cs", + "export-barcode-fields-to-xml.cs", "export-conditional-visibility-state-to-xml.cs", "export-form-field-appearances.cs", "export-pdf-barcode-fields-to-xml.cs", "export-pdf-conversion-progress-to-xml.cs", - "export-pdf-form-data-to-compressed-json.cs", + "export-pdf-digital-signature-to-xml.cs", + "export-pdf-form-appearance-to-json.cs", "export-pdf-form-data-to-indented-json.cs", + "export-pdf-form-data-to-json-gzip.cs", "export-pdf-form-data-to-json.cs", "export-pdf-form-data-to-pretty-json.cs", "export-pdf-form-data-to-xfdf-stream.cs", @@ -43638,6 +52747,7 @@ "export-pdf-form-data-to-xml-custom-root.cs", "export-pdf-form-data-to-xml.cs", "export-pdf-form-data-to-xml__v2.cs", + "export-pdf-form-data-to-xml__v3.cs", "export-pdf-form-field-metadata-to-csv.cs", "export-pdf-form-fields-to-csv.cs", "export-pdf-form-fields-to-csv__v2.cs", @@ -43646,113 +52756,178 @@ "export-pdf-form-fields-to-json__v3.cs", "export-pdf-form-fields-to-json__v4.cs", "export-pdf-form-interaction-log-to-xfdf.cs", + "export-pdf-model-to-xml.cs", "export-pdf-signature-to-xml-audit.cs", + "export-selected-form-fields-to-xml.cs", "export-selected-pdf-form-fields-to-xml.cs", "export-total-price-to-xml.cs", "extract-signature-field-image.cs", + "extract-text-box-form-fields.cs", + "extract-transform-import-pdf-form-data.cs", "extract-xfa-form-data-to-xml.cs", + "fill-and-flatten-pdf-form-fields.cs", "fill-pdf-form-and-encrypt.cs", "fill-pdf-form-fields-from-byte-array.cs", "fill-pdf-form-fields-from-dictionary.cs", + "fill-pdf-form-fields-from-stream.cs", "fill-pdf-text-field.cs", "filter-pdf-form-textbox-fields-using-linq.cs", - "flatten-pdf-form-fields-after-filling.cs", "flatten-pdf-form-fields.cs", "flatten-pdf-form-fields__v2.cs", + "flatten-pdf-remove-form-fields.cs", + "generate-csv-summary-of-pdf-form-fields.cs", "generate-form-fields-report.cs", "generate-invoice-pdf-with-xml-discounts.cs", + "generate-pdf-discount-from-xml.cs", + "generate-pdf-form-fields-from-json.cs", "get-address-field-character-limit.cs", "hide-pdf-form-field.cs", + "highlight-mandatory-text-field-border-red.cs", "highlight-required-form-fields.cs", "import-acroform-data-from-xfdf-xml.cs", + "import-acroform-data-from-xml.cs", "import-acroform-fields-from-json.cs", "import-acroform-fields-from-json__v2.cs", "import-annotation-visibility-from-xml.cs", "import-encrypted-xfa-form-data-into-pdf.cs", + "import-encrypted-xfdf-form-data.cs", "import-form-appearance-from-json.cs", + "import-form-appearances-from-json.cs", "import-form-data-from-compressed-json.cs", "import-form-data-from-json-api.cs", + "import-form-data-from-json-via-rest-api.cs", "import-form-data-from-json.cs", "import-form-data-from-json__v2.cs", "import-form-data-from-xml-with-error-handling.cs", "import-form-fields-from-csv.cs", + "import-json-form-data-into-pdf.cs", + "import-signature-from-xml.cs", "import-tax-rate-from-xml.cs", - "import-xfa-data-from-xml-into-pdf.cs", + "import-tax-rate-xml-pdf-hidden-field.cs", + "import-xfa-data-from-xml.cs", "import-xfa-form-data-from-xml-string.cs", + "import-xfa-form-data-with-missing-xml-handling.cs", "import-xfdf-data-into-pdf.cs", "import-xfdf-form-data-into-pdf.cs", + "import-xfdf-interaction-log-into-pdf.cs", "import-xfdf-interaction-logs-into-pdf.cs", + "import-xml-form-data-into-multiple-pdfs.cs", "import-xml-form-data-into-pdf.cs", "import-xml-signature-data-and-sign-pdf.cs", + "import-xml-update-pdf-form-fields.cs", "incremental-update-pdf-form.cs", "insert-form-field-at-specific-index.cs", + "limit-textboxfield-input-length.cs", "list-filled-form-fields-in-pdfs.cs", + "list-form-field-names-types-char-limits.cs", "list-pdf-form-field-names.cs", - "lock-pdf-form-fields.cs", + "lock-all-pdf-form-fields.cs", + "log-form-field-modifications.cs", "log-pdf-form-field-modifications.cs", "mark-pdf-form-field-as-required.cs", "mark-pdf-form-field-required.cs", + "merge-pdfs-unique-acroform-field-names.cs", "merge-pdfs-with-acroform-field-renaming.cs", "modify-and-flatten-pdf-form-fields.cs", "modify-pdf-form-field.cs", "parallel-batch-fill-pdf-form-fields.cs", + "parallel-fill-pdf-form-fields.cs", "pdf-form-language-dependent-labels.cs", + "pdf-form-pdf-only-attachment-field.cs", "populate-combobox-from-database.cs", + "populate-combobox-from-datatable.cs", + "populate-currency-value-in-pdf-form.cs", "populate-pdf-form-fields-from-csv.cs", + "populate-pdf-form-fields-from-dictionary.cs", + "populate-pdf-form-fields-using-xslt.cs", + "populate-pdf-form-from-csv.cs", "populate-pdf-form-from-xml-xslt.cs", "read-pdf-form-field-value.cs", "remove-form-field-from-pdf.cs", "remove-form-fields-first-page.cs", "remove-javascript-actions-from-pdf-form-fields.cs", "remove-signature-form-fields.cs", + "remove-typewriter-form-fields-page-3.cs", "remove-typewriter-forms-page-3.cs", "rename-pdf-form-field.cs", + "replace-placeholder-with-current-date.cs", + "replace-xfa-with-acroform-xml-template.cs", "replace-xfa-with-acroform.cs", + "repopulate-pdf-form-fields-from-xml.cs", "require-signature-field-lock-pdf.cs", + "restore-editability-of-flattened-pdf-form-fields.cs", "rotate-form-field-label.cs", + "save-pdf-incremental-updates.cs", "select-listbox-item-in-pdf-form.cs", + "select-listbox-option-in-pdf-form.cs", "select-radio-button-in-pdf-form.cs", + "select-radio-button-option-in-pdf-form.cs", + "set-beveled-border-on-pdf-form-field.cs", "set-beveled-border-style-for-pdf-form-field.cs", "set-calculation-order-for-pdf-form-fields.cs", "set-character-limit-for-pdf-form-field.cs", "set-checkbox-default-checked.cs", + "set-checkbox-field-in-pdf.cs", "set-current-date-in-pdf-form-field.cs", + "set-custom-font-for-signature-field.cs", + "set-dashed-border-for-pdf-form-field.cs", "set-dashed-border-on-pdf-form-field.cs", "set-datefield-default-time.cs", "set-default-appearance-for-pdf-form-field.cs", + "set-default-appearance-for-pdf-text-field.cs", "set-default-combobox-selection.cs", + "set-default-selected-country-in-pdf-combo-box.cs", "set-default-selected-radio-button-value.cs", "set-default-value-for-pdf-form-field.cs", + "set-default-value-for-pdf-form-textbox.cs", "set-export-value-radio-button-option.cs", "set-field-visibility-based-on-other-field.cs", + "set-file-attachment-size-limit.cs", "set-font-size-style-pdf-text-field.cs", + "set-font-size-style-pdf-textbox-field.cs", "set-form-field-appearance-custom-font.cs", + "set-form-field-border-color-width.cs", + "set-form-field-visibility-based-on-another-field.cs", "set-form-field-visible-non-printable.cs", "set-initial-zoom-level-for-pdf-form.cs", "set-max-file-size-for-pdf-form-attachment.cs", + "set-max-length-for-pdf-text-field.cs", "set-max-length-pdf-text-form-field.cs", + "set-max-length-pdf-textbox-field.cs", "set-noexport-flag-for-sensitive-pdf-form-fields.cs", "set-password-field-max-length.cs", "set-pdf-checkbox-field.cs", "set-pdf-form-field-read-only.cs", + "set-pdf-form-field-read-only__v2.cs", "set-pdf-form-fields-read-only.cs", "set-pdf-metadata-after-form-filling.cs", + "set-pdf-metadata-after-form-processing.cs", "set-rich-text-field-html.cs", - "set-tooltip-for-pdf-form-field.cs", + "set-tooltip-for-pdf-email-field.cs", "sign-pdf-and-lock-signature-field.cs", "style-pdf-form-field-border.cs", + "synchronize-pdf-form-data-using-xfdf.cs", "synchronize-pdf-form-data-xfdf.cs", "synchronize-xfdf-form-data-across-multiple-pdfs.cs", "transform-import-pdf-form-data-json.cs", "truncate-textboxfield-input-to-max-length.cs", "update-pdf-form-fields-from-xml.cs", + "update-pdf-form-fields.cs", + "validate-age-numberfield-non-numeric-input.cs", "validate-date-field-minimum-date.cs", "validate-email-field-before-saving-pdf.cs", + "validate-email-form-field.cs", + "validate-file-attachment-size-in-pdf-form.cs", "validate-incorrect-password-prevents-access.cs", + "validate-ipv4-address-in-pdf-form-field.cs", "validate-numeric-age-field-rejects-non-numeric-input.cs", "validate-pdf-file-size.cs", "validate-required-form-fields.cs", + "validate-required-pdf-form-field.cs", + "validate-required-pdf-form-fields-before-export.cs", "validate-required-pdf-form-fields-export-json.cs", + "validate-required-pdf-form-fields.cs", + "validate-xml-xsd-fill-xfa-pdf.cs", "validate-xml-xsd-import-pdf-xfa.cs", "verify-pdf-form-field-count.cs" ], @@ -43760,76 +52935,111 @@ "Aspose.Pdf", "Aspose.Pdf.Forms", "Aspose.Pdf.Annotations", - "Aspose.Pdf.Drawing", "Aspose.Pdf.Text", + "Aspose.Pdf.Drawing", "Aspose.Pdf.Facades", - "Aspose.Pdf.Comparison" + "Aspose.Pdf.Security", + "Aspose.Pdf.Tagged" ], "key_apis": [ "JavascriptAction", "XmlSaveOptions", "TextFragment", + "FileInfo", "FormEditor", - "ImageStamp", - "SubmitFormAction", "GoToAction", "HideAction", - "HtmlSaveOptions", + "ImageStamp", "MarginInfo", - "MobiXmlSaveOptions", - "OutlineItemCollection", "StringBuilder", + "SubmitFormAction", "TextAnnotation", "TextFragmentAbsorber", "XYZExplicitDestination" ], "examples": [ { - "filename": "add-acroform-textbox-absolute-coordinates.cs", - "title": "Add AcroForm TextBox at Absolute Coordinates", - "description": "Demonstrates creating a PDF with an AcroForm text box field positioned using absolute coordinates and adding a second appearance of the same field on the same page.", + "filename": "acroform-with-margins.cs", + "title": "Create AcroForm TextBox Positioned by Page Margins", + "description": "Shows how to generate a PDF with an AcroForm text box whose position is calculated relative to the page margins using Aspose.Pdf.", "tags": [ "acroform", - "textbox", - "absolute-coordinates", "pdf", - "aspose-pdf" + "margin", + "textbox", + "positioning" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.MarginInfo", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.TextBoxField", "Aspose.Pdf.Form.Add", - "Aspose.Pdf.Form.AddFieldAppearance", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, + { + "filename": "add-acroform-textbox-absolute-coordinates.cs", + "title": "Add Acroform Textbox Absolute Coordinates", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "add-auto-updating-date-time-field-to-pdf.cs", + "title": "Add Auto Updating Date Time Field To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-auto-updating-datetime-field-to-pdf.cs", "title": "Add Auto‑Updating Date/Time Field to PDF", - "description": "Shows how to insert a DateField into a PDF and attach JavaScript so the field automatically displays the current date and time each time the document is opened or viewed.", + "description": "Demonstrates inserting a DateField into a PDF and attaching a JavaScript OpenAction that refreshes the field with the viewer's current date and time each time the document is opened.", + "tags": [ + "pdf", + "datefield", + "javascript", + "form", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.DateField", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Document.OpenAction" + ], + "difficulty": "intermediate" + }, + { + "filename": "add-blank-page-save-as-new-pdf.cs", + "title": "Add Blank Page and Save PDF as New File", + "description": "The example loads an existing PDF, adds a blank page, and saves the modified document to a new file, preserving the original PDF unchanged.", "tags": [ "pdf", - "datefield", - "javascript", "aspose-pdf", - "form" + "add-page", + "save-as", + "preserve-original" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.DateField", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Form" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Document.Pages.Add", + "Aspose.Pdf.Document.Dispose" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "add-blank-page-to-pdf-form.cs", "title": "Add Blank Page to PDF Form", - "description": "Shows how to load an existing PDF form, append a new blank page, and save the document while preserving all existing form fields.", + "description": "Shows how to load an existing PDF that contains form fields, append a new blank page, and save the document while preserving all existing fields.", "tags": [ "pdf", "form", @@ -43840,48 +53050,76 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.PageCollection.Add", + "Aspose.Pdf.Document.Pages.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "add-calculated-total-field-to-pdf-form.cs", - "title": "Add Calculated Total Field to PDF Form", - "description": "Demonstrates how to add numeric fields to a PDF form and use JavaScript to calculate a running total displayed in a read‑only field.", + "title": "Add Calculated Total Field To Pdf Form", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-calculated-total-field-with-javascript.cs", + "title": "Add Calculated Total Field with JavaScript in PDF Form", + "description": "Shows how to create numeric input fields and a read‑only total field that automatically sums them using JavaScript in an Aspose.Pdf document.", "tags": [ "pdf", "form", "calculated-field", "javascript", - "aspose" + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Forms.NumberField", + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Forms.Form" + ], + "difficulty": "intermediate" + }, + { + "filename": "add-calculated-total-price-field-to-pdf-form.cs", + "title": "Add Calculated Total Price Field to PDF Form", + "description": "Demonstrates how to add quantity, unit price, and a read‑only calculated total price field to a PDF using Aspose.Pdf, with JavaScript for automatic calculation.", + "tags": [ + "pdf", + "form", + "calculated-field", + "javascript", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.Form", "Aspose.Pdf.Forms.NumberField", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.JavascriptAction" + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate" }, { "filename": "add-calculation-button-to-pdf-form.cs", "title": "Add Calculation Button to PDF Form", - "description": "Shows how to create quantity, unit price, and total fields in a PDF and attach JavaScript to a button that computes the total price when clicked.", + "description": "Shows how to create a push‑button in an existing PDF form and attach JavaScript that reads Quantity and UnitPrice fields, computes the total, and writes the result back to the Total field.", "tags": [ "pdf", "form", "javascript", - "calculation", - "button" + "button", + "calculation" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.ButtonField", "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.Form.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" @@ -43889,17 +53127,16 @@ { "filename": "add-checkbox-field-to-pdf-form.cs", "title": "Add Checkbox Field to PDF Form", - "description": "Shows how to load an existing PDF, create a CheckboxField named 'AgreeTerms', add it to the document's form, and save the updated file.", + "description": "Shows how to load an existing PDF, create a CheckboxField, add it to the document's form, and save the modified file.", "tags": [ "checkbox", - "pdf-form", - "aspose-pdf", - "csharp", - "field" + "form", + "pdf", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.CheckboxField", "Aspose.Pdf.Forms.Form.Add", @@ -43908,14 +53145,14 @@ "difficulty": "beginner" }, { - "filename": "add-date-picker-field-current-date.cs", - "title": "Add Date Picker Field with Current Date to PDF", - "description": "Shows how to insert a date picker form field into an existing PDF and set its default value to the current system date using Aspose.Pdf.", + "filename": "add-current-time-datefield-to-pdf.cs", + "title": "Add Current Time DateField to PDF on Load", + "description": "Demonstrates how to create a DateField in a PDF using Aspose.Pdf, set its display format to HH:mm:ss, and assign the current system time as the default value when the document is loaded.", "tags": [ "datefield", - "form", - "pdf", - "aspose", + "pdf-forms", + "aspose-pdf", + "current-time", "csharp" ], "apis_used": [ @@ -43923,174 +53160,334 @@ "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.DateField", - "Aspose.Pdf.Document.Form.Add", - "Aspose.Pdf.Forms.DateField.Init", + "Aspose.Pdf.Forms.DefaultAppearance", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "add-date-picker-field-to-pdf.cs", - "title": "Add Date Picker Field to PDF with JavaScript", - "description": "Shows how to insert a DateField into a PDF, configure its display format, and attach a JavaScript action that fills the field with the current date when activated, using Aspose.Pdf.", + "filename": "add-date-field-validation.cs", + "title": "Add Date Field with Validation to PDF", + "description": "Creates a PDF with a date form field and attaches JavaScript that blocks dates earlier than January 1, 2000.", "tags": [ "pdf", "datefield", + "validation", "javascript", - "form", - "aspose" + "forms" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.DateField", + "Aspose.Pdf.Forms.JavascriptAction", + "Aspose.Pdf.Forms.FieldActions" + ], + "difficulty": "intermediate" + }, + { + "filename": "add-date-picker-field-current-date.cs", + "title": "Add Date Picker Field with Current Date to PDF", + "description": "Shows how to insert a date picker form field into a PDF and set its default value to the current system date using Aspose.Pdf.", + "tags": [ + "datefield", + "pdf-form", + "aspose-pdf", + "csharp", + "default-value" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.JavascriptAction" + "Aspose.Pdf.Forms.DateField", + "Document.Save", + "Document.Form.Add", + "DateField.Init" ], "difficulty": "beginner" }, + { + "filename": "add-date-picker-field-to-pdf.cs", + "title": "Add Date Picker Field to PDF", + "description": "Shows how to create a DateField on an existing PDF, configure its appearance, initialize it, and attach JavaScript to launch the built‑in date picker when the field is activated.", + "tags": [ + "datefield", + "javascript", + "form", + "pdf", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.DateField", + "Aspose.Pdf.Forms.Border", + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Rectangle" + ], + "difficulty": "intermediate" + }, { "filename": "add-dynamic-barcode-field-to-pdf.cs", "title": "Add Dynamic Barcode Field to PDF", - "description": "Shows how to generate a unique value at runtime and insert it as a Code128 barcode field into a PDF document using Aspose.Pdf.", + "description": "Shows how to load a PDF template, generate a unique value at runtime, create a Code128 barcode field on a page, and save the document with the barcode embedded.", "tags": [ "barcode", "pdf", - "aspose.pdf", + "forms", "dynamic", - "forms" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.BarcodeField", "Aspose.Pdf.Forms.BarcodeField.AddBarcode", + "Aspose.Pdf.Color", + "Aspose.Pdf.Page.Annotations.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "add-email-validation-to-pdf-form.cs", - "title": "Add JavaScript Email Validation to a PDF Form Field", - "description": "Loads an existing PDF, creates a TextBox form field for an email address, attaches a JavaScript validation script that checks for the '@' character, and saves the updated document.", + "filename": "add-dynamic-code128-barcode-to-pdf.cs", + "title": "Add Dynamic Code128 Barcode Linked to a Text Field", + "description": "Shows how to insert a Code128 barcode field into a PDF and keep it updated automatically when a source text field changes, using JavaScript actions.", "tags": [ - "pdf", + "barcode", "form", "javascript", - "validation", - "email" + "code128", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.JavascriptAction" + "Aspose.Pdf.Forms.BarcodeField", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Forms.BarcodeField.AddBarcode" + ], + "difficulty": "intermediate" + }, + { + "filename": "add-email-validation-to-pdf-form.cs", + "title": "Add Email Validation To Pdf Form", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-fallback-metadata-to-pdf.cs", + "title": "Add Fallback Metadata to PDF from XML", + "description": "Shows how to load XML metadata, create missing required fields with default values, and write the values into a PDF's XMP metadata using Aspose.Pdf.", + "tags": [ + "pdf", + "metadata", + "xml", + "fallback", + "xmp" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Metadata", + "Aspose.Pdf.Document.Metadata.RegisterNamespaceUri", + "Aspose.Pdf.Document.Metadata.Item", + "Aspose.Pdf.XmpPdfAExtensionSchema" ], "difficulty": "intermediate" }, + { + "filename": "add-gender-radio-button-group-to-pdf.cs", + "title": "Add Gender Radio Button Group to PDF", + "description": "Demonstrates creating a new PDF document with an AcroForm and adding a gender selection radio button group (Male/Female).", + "tags": [ + "pdf", + "acroform", + "radiobutton", + "aspose.pdf", + "c#" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.RadioButtonField", + "Aspose.Pdf.Forms.RadioButtonField.AddOption", + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner" + }, { "filename": "add-hidden-ip-field-to-pdf.cs", - "title": "Add Hidden IP Field to PDF with JavaScript", - "description": "Shows how to create a hidden text box form field in a PDF and set its value to the user's IP address via JavaScript executed on document open.", + "title": "Add Hidden IP Address Field to PDF with JavaScript", + "description": "Shows how to insert a hidden text box field into a PDF and attach JavaScript that captures the user's IP address when the document is opened.", "tags": [ "pdf", "form", - "javascript", "hidden-field", - "aspose-pdf" + "javascript", + "ip-address" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.TextBoxField", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.Form.Add", "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Document.OpenAction", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.TextBoxField.ExecuteFieldJavaScript", + "Aspose.Pdf.Forms.Form.Add", + "Aspose.Pdf.Forms.Form.AddFieldAppearance" ], "difficulty": "intermediate" }, { - "filename": "add-hidden-session-identifier-field-to-pdf.cs", - "title": "Add Hidden Session Identifier Field to PDF", - "description": "Demonstrates how to insert a hidden, read‑only text box form field into a PDF to store a session identifier for backend tracking.", + "filename": "add-hidden-session-id-field-to-pdf.cs", + "title": "Add Hidden Session ID Field to PDF", + "description": "Shows how to insert a hidden text box form field into an existing PDF document to store a session identifier for backend tracking.", "tags": [ "pdf", "hidden-field", - "form", "session-id", - "Aspose.Pdf" + "forms", + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.TextBoxField", "Aspose.Pdf.Annotations.AnnotationFlags", - "Aspose.Pdf.Form" + "Aspose.Pdf.Form", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, + { + "filename": "add-hidden-session-identifier-field-to-pdf.cs", + "title": "Add Hidden Session Identifier Field To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "add-ipv4-validation-to-pdf-textbox.cs", - "title": "Add IPv4 Validation to PDF TextBox Field", - "description": "Shows how to create a PDF with a text box form field and attach JavaScript that validates the entered value against an IPv4 address pattern using a regular expression.", + "title": "Add Ipv4 Validation To Pdf Textbox", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-javascript-email-validation-to-pdf-form-field.cs", + "title": "Add JavaScript Email Validation to PDF Form Field", + "description": "Shows how to load a PDF, locate the 'Email' form field, attach a JavaScript OnValidate action that checks for an '@' character, and save the updated document.", "tags": [ "pdf", "form", - "validation", "javascript", - "ipv4" + "validation", + "email" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.Field", "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Form.Add" + "Aspose.Pdf.FieldActions", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "add-javascript-listener-to-pdf-form-field.cs", "title": "Add JavaScript Listener to PDF Form Field", - "description": "Shows how to attach a JavaScript action to a PDF form field that fires when the field's value changes, using Aspose.Pdf.", + "description": "Shows how to attach a JavaScript action to a PDF form field using Aspose.Pdf so the script runs when the field value changes.", "tags": [ + "pdf", "javascript", "form-field", - "listener", - "pdf", - "aspose" + "validation", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Forms.FieldActions.OnValidate", + "Aspose.Pdf.Forms.JavascriptAction", + "Aspose.Pdf.Forms.FieldActions", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "add-locale-translation-to-pdf-form-label.cs", - "title": "Add Locale‑Based Translation to PDF Form Labels with JavaScript", - "description": "Demonstrates how to create a PDF with form fields and use a document‑level JavaScript dictionary to change a label's text based on the selected locale.", + "filename": "add-javascript-localization-to-pdf-form.cs", + "title": "Add JavaScript Localization to PDF Form", + "description": "Demonstrates embedding a JavaScript dictionary of translations into a PDF and updating a form field based on the selected locale using Aspose.Pdf.", "tags": [ - "pdf", - "form-fields", "javascript", + "pdf", "localization", + "form", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Annotations.Border", - "Aspose.Pdf.Document.JavaScript", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.JavaScriptCollection", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "intermediate" + }, + { + "filename": "add-listbox-to-pdf-form.cs", + "title": "Add List Box Field to PDF AcroForm", + "description": "Demonstrates how to create a PDF document, add an AcroForm list box with country options, and save the file using Aspose.Pdf.", + "tags": [ + "listbox", + "acroform", + "pdf", + "forms", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.ListBoxField", + "Aspose.Pdf.Forms.ListBoxField.AddOption", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner" + }, + { + "filename": "add-locale-translation-to-pdf-form-label.cs", + "title": "Add Locale Translation To Pdf Form Label", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-multi-select-list-box-max-3.cs", + "title": "Add Multi-Select List Box with Max 3 Selections to PDF", + "description": "Demonstrates creating a ListBoxField in a PDF, enabling multi‑selection, adding options, and limiting the selected items to three using Aspose.Pdf.", + "tags": [ + "listbox", + "multiselect", + "pdf", + "forms", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.ListBoxField", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.ListBoxField.AddOption", + "Aspose.Pdf.Forms.ListBoxField.SelectedItems", + "Aspose.Pdf.Forms.ListBoxField.MultiSelect", + "Aspose.Pdf.Page.Annotations.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" @@ -44098,7 +53495,7 @@ { "filename": "add-multiline-feedback-text-field.cs", "title": "Add Multiline Feedback Text Field to PDF", - "description": "Shows how to create a PDF document with a multiline text box form field named 'Feedback' and enforce a 500‑character limit using Aspose.Pdf.", + "description": "Demonstrates how to add a multiline TextBoxField named 'Feedback' with a 500‑character limit to an existing PDF using Aspose.Pdf.", "tags": [ "pdf", "form", @@ -44108,65 +53505,100 @@ ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Color" + "Aspose.Pdf.Form.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "add-new-page-with-acroform-fields.cs", - "title": "Add New Page with AcroForm Fields to PDF", - "description": "Shows how to append a blank page to an existing PDF and place fresh AcroForm text box and checkbox fields on that page using Aspose.Pdf.", + "title": "Add a New Page with AcroForm Fields to PDF", + "description": "Demonstrates how to append a blank page to an existing PDF and place fresh AcroForm fields (text box and checkbox) on that page using Aspose.Pdf.", "tags": [ "pdf", "acroform", "add-page", - "textbox", - "checkbox" + "form-fields", + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.TextBoxField", "Aspose.Pdf.Forms.CheckboxField", - "Aspose.Pdf.Form.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.DefaultAppearance", + "Aspose.Pdf.Form" ], "difficulty": "intermediate" }, { "filename": "add-numeric-field-range-validation.cs", - "title": "Add Numeric Field with Range Validation to PDF", - "description": "Demonstrates creating a NumberField in a PDF, restricting input characters, and attaching JavaScript to enforce a minimum and maximum numeric value.", + "title": "Add Numeric Field Range Validation", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-numeric-field-with-validation.cs", + "title": "Add Numeric Field with Validation to PDF", + "description": "Shows how to insert a numeric form field into a PDF and attach JavaScript validation that restricts the value to a range of 0 to 1000.", "tags": [ "pdf", - "form", + "form-field", "validation", - "numberfield", - "javascript" + "javascript", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.NumberField", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.DefaultAppearance", - "Aspose.Pdf.Annotations.JavascriptAction" + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Forms.FieldActions" ], "difficulty": "intermediate" }, { - "filename": "add-payment-method-radio-button-group.cs", - "title": "Add Payment Method Radio Button Group to PDF", - "description": "Demonstrates how to create a PDF form with a radio button group named 'PaymentMethod' containing 'Credit' and 'Debit' options using Aspose.Pdf.", + "filename": "add-password-textbox-field-to-pdf.cs", + "title": "Add Password TextBox Field to PDF", + "description": "Shows how to create a read‑only text box form field in a PDF, set its value as a password, and save the document using Aspose.Pdf.", "tags": [ "pdf", "form", - "radiobutton", + "password", + "textbox", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Color" + ], + "difficulty": "beginner" + }, + { + "filename": "add-payment-method-radio-button-group.cs", + "title": "Add Payment Method Radio Button Group", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-paymentmethod-radio-button-group.cs", + "title": "Add PaymentMethod Radio Button Group to PDF", + "description": "Demonstrates creating a PDF document with a radio button group named 'PaymentMethod' containing 'Credit' and 'Debit' options, and saving the file.", + "tags": [ + "radio-button", + "pdf-form", "aspose-pdf", - "csharp" + "csharp", + "payment-method" ], "apis_used": [ "Aspose.Pdf.Document", @@ -44174,37 +53606,44 @@ "Aspose.Pdf.Forms.RadioButtonField", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.RadioButtonField.AddOption", - "Aspose.Pdf.Forms.RadioButtonField.Selected", - "Aspose.Pdf.Document.Form.Add", + "Aspose.Pdf.Form.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "add-progress-bar-to-pdf-form.cs", - "title": "Add Progress Bar to PDF Form", - "description": "Shows how to create a progress bar field in a PDF form and update its value with JavaScript as the user fills out other form sections.", + "filename": "add-progress-bar-field-to-pdf-form.cs", + "title": "Add Progress Bar Field to PDF Form", + "description": "Shows how to insert a TextBoxField that works as a progress bar into a PDF form and update its value as the user completes sections.", "tags": [ "pdf", "form", - "progress-bar", - "javascript", - "aspose-pdf" + "progress", + "textbox", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.ButtonField", + "Aspose.Pdf.Forms.Form", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.Border", - "Aspose.Pdf.Forms.JavascriptAction", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Forms.Form.Add", + "Aspose.Pdf.Forms.Form.AddFieldAppearance", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "add-readonly-date-field-to-pdf.cs", - "title": "Add Read‑Only Date Field to PDF Form", - "description": "Shows how to create a DateField in a PDF, set its initial value, and mark it as read‑only using Aspose.Pdf.", + "filename": "add-progress-bar-to-pdf-form.cs", + "title": "Add Progress Bar To Pdf Form", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-read-only-date-field-to-pdf.cs", + "title": "Add Read‑Only Date Field to PDF", + "description": "Demonstrates creating a date field in a PDF, populating it with the current date/time, and setting it to read‑only using Aspose.Pdf.", "tags": [ "datefield", "readonly", @@ -44217,6 +53656,7 @@ "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.DateField", + "Aspose.Pdf.Forms.Form.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" @@ -44224,27 +53664,28 @@ { "filename": "add-reset-button-to-pdf-form.cs", "title": "Add Reset Button to PDF Form", - "description": "Shows how to insert a push‑button into an existing PDF that clears all user‑entered form data by executing JavaScript.", + "description": "Shows how to place a push‑button on a PDF page that clears all user‑entered form data by executing a JavaScript reset action.", "tags": [ "pdf", "form", - "reset-button", + "reset", "javascript", - "aspose-pdf" + "button" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Form", "Aspose.Pdf.Forms.ButtonField", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Forms.Border", + "Aspose.Pdf.Forms.JavascriptAction", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Drawing.Color" ], "difficulty": "intermediate" }, { "filename": "add-reset-button-to-pdf-form__v2.cs", "title": "Add Reset Button to PDF Form", - "description": "Shows how to place a push button on an existing PDF form that clears all user‑entered data by executing JavaScript when clicked.", + "description": "Shows how to place a push button on an existing PDF that clears all form fields by attaching a JavaScript reset action.", "tags": [ "pdf", "form", @@ -44255,30 +53696,28 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.ButtonField", - "Aspose.Pdf.Forms.JavascriptAction", + "Aspose.Pdf.Annotations.JavascriptAction", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.Form.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.Form" ], "difficulty": "beginner" }, { "filename": "add-signature-field-to-pdf-form.cs", "title": "Add Signature Field to PDF Form", - "description": "Shows how to insert a signature field into an existing PDF document using Aspose.Pdf so users can apply handwritten digital signatures.", + "description": "Shows how to load an existing PDF and insert a digital signature field using Aspose.Pdf, then save the updated document.", "tags": [ - "pdf", "signature", + "pdf", "form", - "aspose-pdf", - "csharp" + "field", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.Form.Add", + "Aspose.Pdf.Form", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" @@ -44296,25 +53735,26 @@ ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.SignatureField", "Aspose.Pdf.ImageStamp", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Form", + "Aspose.Pdf.Page.Annotations.Add", "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "add-submit-button-http-post-pdf.cs", - "title": "Add Submit Button with HTTP POST to PDF", - "description": "Demonstrates how to create a push button in a PDF that submits form data using the HTTP POST method in URL‑encoded format with Aspose.Pdf.", + "filename": "add-submit-button-export-interaction-log.cs", + "title": "Add Submit Button and Export Interaction Log to XFDF", + "description": "Demonstrates how to add a PDF form submit button that posts XFDF data and then export the form's interaction log (annotations) to an XML‑based XFDF file for server‑side analysis.", "tags": [ "pdf", - "submit-button", - "http-post", "form", - "aspose" + "xfdf", + "submit-button", + "annotations" ], "apis_used": [ "Aspose.Pdf.Document", @@ -44322,19 +53762,20 @@ "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.ButtonField", "Aspose.Pdf.Forms.SubmitFormAction", - "Aspose.Pdf.FileSpecification" + "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.Document.ExportAnnotationsToXfdf" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "add-submit-button-post-form-data-xfdf.cs", - "title": "Add Submit Button to PDF to Post Form Data as XFDF", - "description": "Demonstrates how to create a submit button in a PDF form that posts the form data to a remote XML endpoint using XFDF format via Aspose.Pdf.", + "filename": "add-submit-button-http-post-pdf-form.cs", + "title": "Add Submit Button with HTTP POST to PDF Form", + "description": "Demonstrates how to create a push‑button field in a PDF, configure it to submit form data via HTTP POST in URL‑encoded format, and save the updated document using Aspose.Pdf.", "tags": [ "pdf", "form", "submit-button", - "xfdf", + "post", "aspose-pdf" ], "apis_used": [ @@ -44342,14 +53783,30 @@ "Aspose.Pdf.Forms.ButtonField", "Aspose.Pdf.Forms.SubmitFormAction", "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate" }, + { + "filename": "add-submit-button-http-post-pdf.cs", + "title": "Add Submit Button Http Post Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-submit-button-post-form-data-xfdf.cs", + "title": "Add Submit Button Post Form Data Xfdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "add-submit-button-to-pdf-form.cs", "title": "Add Submit Button to PDF Form", - "description": "Shows how to create a push button on a PDF form that posts all form field data to a specified URL using Aspose.Pdf.", + "description": "Shows how to create a push‑button field in a PDF, attach a SubmitFormAction that posts the form data to a specified URL, and save the modified document.", "tags": [ "pdf", "form", @@ -44362,90 +53819,92 @@ "Aspose.Pdf.Forms.Form", "Aspose.Pdf.Forms.ButtonField", "Aspose.Pdf.Forms.SubmitFormAction", - "Aspose.Pdf.FileSpecification" + "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate" }, { "filename": "add-submit-button-to-pdf-form__v2.cs", - "title": "Add Submit Button to PDF Form", - "description": "Shows how to create a push button in a PDF form that posts the form data to a specified URL using Aspose.Pdf.", - "tags": [ - "pdf", - "form", - "submit", - "button", - "aspose" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.ButtonField", - "Aspose.Pdf.Forms.SubmitFormAction", - "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Rectangle" - ], - "difficulty": "beginner" + "title": "Add Submit Button To Pdf Form__V2", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "add-submit-button-to-pdf.cs", - "title": "Add Submit Button with URL Action to PDF", - "description": "Demonstrates how to programmatically create a push button on a PDF page and assign a SubmitFormAction that posts the form data to a specified URL using Aspose.Pdf.", + "title": "Add Submit Button with URL to PDF Form", + "description": "Demonstrates how to programmatically create a push button on a PDF page, assign a SubmitFormAction with a target URL, and save the updated document using Aspose.Pdf.", "tags": [ "pdf", "form", "button", - "submit-action", - "aspose-pdf" + "submit", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.ButtonField", "Aspose.Pdf.Forms.SubmitFormAction", "Aspose.Pdf.FileSpecification" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "add-text-annotation-save-modified-pdf.cs", - "title": "Add Text Annotation and Save Modified PDF", - "description": "Shows how to load a PDF, add a text annotation to the first page, and save the modified document to a new file, preserving the original.", + "title": "Add Text Annotation Save Modified Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-text-box-field-to-pdf-acroform.cs", + "title": "Add Text Box Field to PDF AcroForm", + "description": "Demonstrates creating a new PDF, adding a blank page, and placing a text box (AcroForm) on the first page using Aspose.Pdf.", "tags": [ + "acroform", + "textbox", "pdf", - "annotation", - "aspose-pdf", - "save", + "aspose.pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Color", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Document.Form.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "add-tooltip-to-pdf-form-field.cs", - "title": "Add Tooltip to PDF Form Field", - "description": "Shows how to create a PDF with a text box form field and set a tooltip (using AlternateName) to guide the expected input format.", + "title": "Add Tooltip To Pdf Form Field", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-tooltip-to-pdf-form-textbox.cs", + "title": "Add Tooltip to PDF Form Text Box", + "description": "Shows how to create a text box field in a PDF form and set its tooltip (alternate name) using Aspose.Pdf.", "tags": [ "pdf", - "form", "tooltip", - "textfield", + "form", + "textbox", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Document.Form.Add", + "Aspose.Pdf.Document.Form", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" @@ -44453,67 +53912,99 @@ { "filename": "apply-background-image-to-pdf-form-field.cs", "title": "Apply Background Image to PDF Form Field", - "description": "Shows how to set an image as the background of a specific form field in a PDF using Aspose.Pdf.", + "description": "Demonstrates how to set a background image for a specific form field in a PDF, covering both XFA and standard AcroForm fields using Aspose.Pdf.", "tags": [ - "form-field", + "pdf", + "form", "background-image", - "stamp", - "Aspose.Pdf", - "pdf" + "xfa", + "acroform" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.WidgetAnnotation", - "Aspose.Pdf.ImageStamp", - "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Form.XFA.SetFieldImage", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Drawing.BackgroundArtifact", + "Aspose.Pdf.Page.Artifacts.Add", + "Aspose.Pdf.Forms.Form.AddFieldAppearance" + ], + "difficulty": "intermediate" + }, + { + "filename": "apply-custom-font-to-pdf-form-fields.cs", + "title": "Apply Custom Font to All PDF Form Fields", + "description": "Shows how to load a TrueType font and set it as the default appearance for every form field in a PDF using Aspose.Pdf.", + "tags": [ + "pdf", + "form-fields", + "custom-font", + "aspose.pdf", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.FontRepository.OpenFont", + "Aspose.Pdf.Font", + "Aspose.Pdf.Forms.Field.DefaultAppearance", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "apply-custom-font-to-pdf-form-fields.cs", - "title": "Apply Custom Font to All PDF Form Fields", - "description": "Shows how to load a PDF, iterate through its form fields, set a custom font, size, and color via the DefaultAppearance property, and save the updated document.", + "filename": "apply-digital-signature-to-pdf.cs", + "title": "Apply Digital Signature to PDF Form", + "description": "Shows how to load a PDF, add a signature field, and sign the document with a PKCS#7 digital signature using a PFX certificate.", "tags": [ "pdf", - "forms", - "font", - "defaultappearance", + "digital-signature", + "form", + "certificate", "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.DefaultAppearance", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Forms.PKCS7", + "SignatureField.Sign", + "Document.Form.Add", + "Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "assign-custom-appearance-image-to-pdf-button.cs", - "title": "Assign Custom Appearance Image to PDF Button Field", - "description": "Shows how to load an image file and set it as the appearance stream of a button field in a PDF, including support for XFA forms, using Aspose.Pdf.", + "filename": "apply-xml-visibility-to-pdf-annotations.cs", + "title": "Apply XML-Defined Visibility to PDF Annotations", + "description": "Loads visibility settings from an XML file and updates the Hidden flag of each PDF annotation accordingly, then saves the modified document.", "tags": [ - "button", - "image", - "appearance", - "xfa", - "form" + "pdf", + "annotations", + "visibility", + "xml", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.ButtonField", - "Aspose.Pdf.Forms.ButtonField.AddImage", - "Aspose.Pdf.Forms.XfaForm", - "Aspose.Pdf.Forms.XfaForm.SetFieldImage" + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.AnnotationFlags", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, + { + "filename": "assign-custom-appearance-image-to-pdf-button.cs", + "title": "Assign Custom Appearance Image To Pdf Button", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "assign-javascript-onlostfocus-to-pdf-form-field.cs", "title": "Assign JavaScript OnLostFocus Action to PDF Form Field", - "description": "Demonstrates loading a PDF, locating a form field, attaching a JavaScript action that runs when the field loses focus, and saving the modified document.", + "description": "Loads a PDF, retrieves a specific form field, attaches a JavaScript action that doubles the numeric value when the field loses focus, and saves the modified document.", "tags": [ "javascript", "form-field", @@ -44524,38 +54015,39 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Forms.Field.Actions", + "Aspose.Pdf.Forms.JavascriptAction", + "Aspose.Pdf.Forms.FieldActions", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "async-import-xml-form-data-into-pdf.cs", "title": "Asynchronously Import XML Form Data into a PDF", - "description": "Demonstrates reading XFA XML form data asynchronously, assigning it to a PDF form, and saving the updated PDF without blocking the main thread.", + "description": "Demonstrates loading XFA XML data, assigning it to a PDF form, and saving the updated PDF with the asynchronous SaveAsync method to keep the UI responsive.", "tags": [ - "asynchronous", "xml", "xfa", + "async", "pdf", "forms" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form.AssignXfa", + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Form.AssignXfa", "Aspose.Pdf.Document.SaveAsync" ], "difficulty": "intermediate" }, { "filename": "auto-update-qr-code-from-text-field.cs", - "title": "Auto‑Update QR Code Field from Text Field", - "description": "Demonstrates how to make a QR code barcode field update automatically when a linked text field changes by enabling auto‑recalculation and attaching JavaScript to the text field.", + "title": "Auto‑Update QR Code from Text Field in PDF", + "description": "Demonstrates how to attach JavaScript to a PDF text box so that a QR‑code barcode field updates automatically when the text changes, using Aspose.Pdf form features.", "tags": [ "pdf", - "form", - "qr-code", + "forms", + "barcode", "javascript", "autocalculate" ], @@ -44564,380 +54056,453 @@ "Aspose.Pdf.Forms.TextBoxField", "Aspose.Pdf.Forms.BarcodeField", "Aspose.Pdf.Forms.JavascriptAction", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.FieldActions" ], "difficulty": "intermediate" }, { "filename": "batch-convert-pdfs-to-xml.cs", - "title": "Batch Convert PDFs to XML Form Data", - "description": "Shows how to iterate over a directory of PDF files and convert each one to an XML form‑data file with Aspose.Pdf, preserving the original file names.", + "title": "Batch Convert PDFs to XML Files", + "description": "Demonstrates how to iterate through a folder of PDF documents, load each with Aspose.Pdf, and save it as an XML form data file while preserving the original file name.", "tags": [ "pdf", "xml", - "batch-conversion", - "aspose.pdf", - "c#" + "batch", + "conversion", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.XmlSaveOptions", "Aspose.Pdf.Document.Save", "Aspose.Pdf.SaveOptions", - "Aspose.Pdf.Document (constructor)" + "Aspose.Pdf.Document.Dispose" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "batch-export-pdf-form-data-to-xml.cs", "title": "Batch Export PDF Form Data to XML", - "description": "Shows how to iterate through a folder of PDF files, load each with Aspose.Pdf, and export its form data to separate XML files.", + "description": "Demonstrates how to iterate through a folder of PDF files, load each with Aspose.Pdf, and export its form data and structure to an individual XML file using XmlSaveOptions.", "tags": [ "pdf", - "form-data", + "form", "xml", "batch", "export" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.SaveXml" + "Aspose.Pdf.XmlSaveOptions", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "batch-fill-identical-form-fields.cs", - "title": "Batch Fill Identical Form Fields in PDFs", - "description": "Demonstrates how to iterate over a folder of PDF files and set the same form field values in each document using Aspose.Pdf.", + "title": "Batch Fill Identical Form Fields", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "batch-fill-pdf-form-fields.cs", + "title": "Batch Fill PDF Form Fields", + "description": "Demonstrates how to iterate over a folder of PDF files and populate the same set of form fields with identical values using Aspose.Pdf.", "tags": [ "pdf", - "forms", - "batch", - "field-filling", - "aspose-pdf" + "form-filling", + "batch-processing", + "csharp", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Document.Form.HasField", + "Aspose.Pdf.Document.Form.AutoRecalculate", "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Forms.Form.HasField" + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "batch-fill-pdf-forms-from-csv.cs", - "title": "Batch Fill PDF Form Templates from CSV Data", - "description": "Shows how to read a CSV file, map its columns to PDF form fields, and generate a filled PDF for each data row using Aspose.Pdf.", + "title": "Batch Fill PDF Forms from CSV Data", + "description": "Shows how to read a CSV file, map each row to form fields, fill a PDF template for every record, and save the resulting PDFs to a designated folder.", "tags": [ "pdf", - "form-filling", + "forms", "csv", - "batch-processing", + "batch", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.CheckboxField", - "Aspose.Pdf.Forms.RadioButtonOptionField", - "Aspose.Pdf.Forms.ListBoxField", - "Aspose.Pdf.Forms.ComboBoxField" + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.Field.Value" ], "difficulty": "intermediate" }, { - "filename": "batch-import-xml-into-pdfs.cs", - "title": "Batch Import XML Data into Multiple PDFs", - "description": "Demonstrates how to iterate over PDF files in a folder, bind matching XML data to each document to fill form fields, and save the resulting PDFs to an output directory.", + "filename": "batch-fill-pdf-forms-from-xml.cs", + "title": "Batch Fill PDF Forms from XML Files", + "description": "Demonstrates how to process a folder of PDF documents, bind each one to a matching XML data file, and save the filled PDFs to an output directory using Aspose.Pdf.", "tags": [ - "xml", "pdf", + "xml", "form-filling", - "batch-processing", + "batch", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Document.BindXml", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Close", - "Aspose.Pdf.Document.Dispose" + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, + { + "filename": "batch-import-xml-into-pdfs.cs", + "title": "Batch Import Xml Into Pdfs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "batch-set-comments-field-character-limit.cs", - "title": "Batch Set Comments Field Character Limit in PDFs", - "description": "Shows how to loop through PDF files in a folder, locate a 'Comments' text box form field, set its MaxLen property to 100 characters, and save the updated PDFs.", + "title": "Batch Set Comments Field Character Limit", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "batch-set-comments-maxlen.cs", + "title": "Batch Set Max Length for Comments Field in PDFs", + "description": "Loads each PDF in a folder, locates the 'Comments' textbox field, sets its maximum length to 100 characters, and saves the updated file to an output directory.", "tags": [ "pdf", "form", - "batch", + "batch-processing", "maxlength", - "textbox" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.Field", "Aspose.Pdf.Forms.TextBoxField", - "Document.Save", - "Document.Form" + "Document.Form", + "TextBoxField.MaxLen", + "Document.Save" ], "difficulty": "intermediate" }, { - "filename": "bulk-fill-pdf-form-with-json-skip-missing-fields.cs", - "title": "Bulk Fill PDF Form with JSON and Skip Missing Fields", - "description": "Demonstrates loading a PDF form, reading JSON data, and bulk‑filling fields while gracefully skipping any fields missing from the JSON.", + "filename": "bind-pdf-with-formeditor-save-modified-pdf.cs", + "title": "Bind PDF with FormEditor and Save Modified PDF", + "description": "Demonstrates loading a PDF using Aspose.Pdf's FormEditor, optionally adding a form field, and saving the modified document to a new output file.", "tags": [ "pdf", "form", - "json", - "bulk-fill", - "error-handling" + "edit", + "aspose", + "csharp" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.Field.ImportValueFromJson", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.IgnoreCorruptedObjects" + "Aspose.Pdf.Facades.FormEditor", + "FormEditor.BindPdf", + "FormEditor.AddTextField", + "FormEditor.Save", + "Aspose.Pdf.Rectangle" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "calculate-total-price-pdf-form.cs", - "title": "Calculate Total Price in PDF Form Using JavaScript", - "description": "Demonstrates how to add numeric form fields to a PDF, attach a JavaScript calculation that multiplies quantity and unit price, and display the read‑only total with automatic recalculation.", + "filename": "bulk-fill-pdf-form-fields-from-json.cs", + "title": "Bulk Fill PDF Form Fields from JSON with Missing Field Handling", + "description": "Demonstrates how to populate all form fields in a PDF using data from a JSON file while gracefully skipping fields that are not present in the JSON.", "tags": [ "pdf", "form", - "calculation", - "javascript", - "aspose-pdf" + "json", + "bulk-fill", + "error-handling" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Forms.NumberField", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Forms.Form" + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.Field.ImportValueFromJson", + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "center-align-text-field.cs", - "title": "Center Align Text Field in PDF", - "description": "Shows how to load a PDF, locate a TextBox form field, and set its horizontal (and optionally vertical) alignment to center using Aspose.Pdf.", + "filename": "bulk-fill-pdf-form-with-json-skip-missing-fields.cs", + "title": "Bulk Fill Pdf Form With Json Skip Missing Fields", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "calculate-total-price-pdf-form.cs", + "title": "Calculate Total Price Pdf Form", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "center-align-text-field-in-pdf-form.cs", + "title": "Center Align Text Field in PDF Form", + "description": "Shows how to load a PDF, locate a text box form field, and set its horizontal alignment to center using Aspose.Pdf.", "tags": [ "pdf", - "form-field", + "form", "alignment", - "aspose.pdf", - "csharp" + "textbox", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.Field", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Text.HorizontalAlignment", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Forms.Form" + "Aspose.Pdf.Forms.HorizontalAlignment", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, + { + "filename": "center-align-text-field.cs", + "title": "Center Align Text Field", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "clone-pdf-form-field-to-another-page.cs", "title": "Clone PDF Form Field to Another Page", - "description": "Demonstrates how to duplicate an existing form field, modify its properties, and place the cloned field on a different PDF page using Aspose.Pdf.", + "description": "Demonstrates how to clone an existing form field, modify its properties, and place the clone on a different PDF page using Aspose.Pdf.", "tags": [ - "form-field", + "form", "clone", "pdf", - "Aspose.Pdf", - "page" + "field", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Field", "Aspose.Pdf.Forms.Form.Add", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Color" + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate" }, + { + "filename": "collapse-pdf-outline-section.cs", + "title": "Collapse PDF Outline Section", + "description": "Shows how to set the initial expand/collapse state of a PDF outline (bookmark) to collapsed using Aspose.Pdf.", + "tags": [ + "outline", + "bookmark", + "collapse", + "pdf", + "Aspose.Pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Outlines", + "Aspose.Pdf.OutlineItemCollection", + "Aspose.Pdf.OutlineItemCollection.Open", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner" + }, { "filename": "compare-pdf-form-data-diff-report.cs", "title": "Compare PDF Form Data and Generate Diff Report", - "description": "Demonstrates how to compare the form fields of two PDF documents using Aspose.Pdf and produce both JSON and visual PDF diff reports.", + "description": "Loads two PDF files, extracts their form fields with Aspose.Pdf, compares the values and creates a text report that highlights mismatched or missing fields.", "tags": [ "pdf", - "form-comparison", + "form", + "comparison", "diff", - "json-report", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Comparison.ComparisonOptions", - "Aspose.Pdf.Comparison.TextPdfComparer.CompareDocumentsPageByPage", - "Aspose.Pdf.Comparison.JsonDiffOutputGenerator.GenerateOutput", - "Aspose.Pdf.Comparison.PdfOutputGenerator.GenerateOutput" + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.FieldCollection", + "Aspose.Pdf.Forms.CheckBoxField" ], "difficulty": "intermediate" }, { "filename": "conditional-pdf-section-checkbox.cs", - "title": "Create Conditional PDF Section Controlled by a Checkbox", - "description": "Demonstrates how to add a checkbox and a text field to a PDF and use JavaScript actions to show or hide the text field based on the checkbox state.", + "title": "Conditional PDF Section Controlled by a Checkbox", + "description": "Demonstrates how to add a checkbox to a PDF form and use JavaScript to show or hide a dependent text field based on the checkbox state.", "tags": [ "pdf", - "form", + "forms", "checkbox", - "javascript", - "visibility" + "conditional", + "javascript" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Forms.CheckboxField", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Annotations.JavascriptAction" + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Annotations.AnnotationFlags" ], "difficulty": "intermediate" }, { "filename": "convert-form-data-json-to-csv.cs", - "title": "Convert Form Data JSON to CSV", - "description": "Reads a JSON file containing an array of form records, extracts the fields, and writes them to a CSV file for easy spreadsheet import.", + "title": "Convert Form Data Json To Csv", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "convert-pdf-form-json-to-csv.cs", + "title": "Convert PDF Form JSON Export to CSV", + "description": "Reads a JSON file exported from a PDF form and generates a CSV file containing field names and their values, handling both object and array JSON structures.", "tags": [ "json", "csv", - "data-conversion", - "forms", - "csharp" + "pdf-form", + "conversion", + "aspnet" ], "apis_used": [], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "copy-form-field-to-another-page.cs", "title": "Copy Form Field to Another Page in PDF", - "description": "Shows how to duplicate an existing form field and place it on a different page of the same PDF, including adjusting its appearance rectangle.", + "description": "Shows how to duplicate an existing AcroForm field and place the copy on a different page within the same PDF document using Aspose.Pdf.", "tags": [ - "form", - "field", - "copy", + "forms", + "field-copy", "pdf", - "aspose" + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.Form", "Aspose.Pdf.Forms.Field", "Aspose.Pdf.Forms.Form.Add", - "Aspose.Pdf.Forms.Form.AddFieldAppearance", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Forms.Form.AddFieldAppearance" ], "difficulty": "intermediate" }, { "filename": "copy-form-fields-between-pdfs.cs", - "title": "Copy Form Fields Between PDFs", - "description": "Shows how to load a source and destination PDF, locate each form field's page, and copy the fields into the destination document using Aspose.Pdf's Form.Add method.", + "title": "Copy Form Fields Between Pdfs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "copy-form-fields-to-another-pdf.cs", + "title": "Copy Form Fields from One PDF to Another", + "description": "Demonstrates how to load two PDFs, clone form fields from a source document, and add them to a destination document on a chosen page using Aspose.Pdf.", "tags": [ "pdf", - "forms", - "field-copy", + "form-fields", + "copy", "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Field", "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.Field.Clone", "Aspose.Pdf.Forms.Form.Add", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations" + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "create-acroform-textbox-with-margins.cs", - "title": "Create AcroForm TextBox with Page Margins", - "description": "Shows how to generate a PDF containing an AcroForm text box positioned relative to the page margins using Aspose.Pdf.", + "filename": "create-acroform-textbox-appearance.cs", + "title": "Create AcroForm TextBox with Font and Color", + "description": "Demonstrates how to create a new PDF, add an AcroForm text box field, and customize its appearance including font, size, text color, and border.", "tags": [ "acroform", - "pdf", - "margins", "textbox", - "aspose-pdf" + "appearance", + "font", + "color" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.MarginInfo", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Annotations.Border", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.DefaultAppearance", + "Aspose.Pdf.Forms.Border", + "Aspose.Pdf.Color" ], - "difficulty": "intermediate" + "difficulty": "beginner" + }, + { + "filename": "create-acroform-textbox-with-margins.cs", + "title": "Create Acroform Textbox With Margins", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "create-code128-barcode-linked-to-text-field.cs", - "title": "Create Code128 Barcode Field Linked to Text Field", - "description": "Demonstrates adding a Code‑128 barcode field to a PDF and linking it to a text box so the barcode updates automatically when the source field changes.", - "tags": [ - "barcode", - "form-field", - "javascript", - "code128", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.BarcodeField", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.JavascriptAction" - ], - "difficulty": "intermediate" + "title": "Create Code128 Barcode Linked To Text Field", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "create-collapsible-pdf-section.cs", - "title": "Create Collapsible PDF Section with Outline Bookmark", - "description": "Demonstrates how to add a bookmark (outline) to a PDF and set its initial state to collapsed using the Open property.", - "tags": [ - "pdf", - "outline", - "bookmark", - "collapsible", - "aspose" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.Position", - "Aspose.Pdf.OutlineItemCollection" - ], - "difficulty": "beginner" + "title": "Create Collapsible Pdf Section", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "create-collapsible-section-in-pdf-form.cs", + "title": "Create Collapsible Section In Pdf Form", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-collapsible-section-pdf-form.cs", "title": "Create Collapsible Section in PDF Form", - "description": "Shows how to add a checkbox that toggles the visibility of a text field via JavaScript, creating a collapsible section within a PDF form.", + "description": "Shows how to add a checkbox that toggles the visibility of a text box using JavaScript, creating a collapsible section in an Aspose.Pdf form.", "tags": [ - "pdf-form", + "pdf", + "form", + "collapsible", "checkbox", - "collapsible-section", - "javascript", - "aspose-pdf" + "javascript" ], "apis_used": [ "Aspose.Pdf.Document", @@ -44945,36 +54510,23 @@ "Aspose.Pdf.Forms.CheckboxField", "Aspose.Pdf.Forms.TextBoxField", "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Annotations.AnnotationFlags" + "Aspose.Pdf.Annotations.AnnotationFlags", + "Aspose.Pdf.Forms.Border" ], "difficulty": "intermediate" }, { "filename": "create-gender-radio-button-pdf.cs", - "title": "Create PDF with Gender Radio Button AcroForm", - "description": "Shows how to generate a new PDF, add an AcroForm radio button group for gender selection, and save the document using Aspose.Pdf.", - "tags": [ - "pdf", - "acroform", - "radiobutton", - "aspose", - "forms" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.RadioButtonField", - "Aspose.Pdf.Forms.RadioButtonField.AddOption", - "Aspose.Pdf.Form.Add", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner" + "title": "Create Gender Radio Button Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "create-hidden-audit-timestamp-field.cs", "title": "Create Hidden Audit Timestamp Field in PDF", - "description": "Demonstrates how to add a hidden DateField to a PDF using Aspose.Pdf to store the document creation timestamp for audit purposes, and optionally set the PDF's creation date metadata.", + "description": "Shows how to add a hidden DateField to a PDF using Aspose.Pdf to store the document creation timestamp for audit purposes.", "tags": [ "pdf", "hidden-field", @@ -44987,107 +54539,129 @@ "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.DateField", - "Aspose.Pdf.Annotations.AnnotationFlags", - "Aspose.Pdf.DocumentInfo", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Annotations.AnnotationFlags" ], "difficulty": "beginner" }, { "filename": "create-hidden-calculation-field.cs", "title": "Create Hidden Calculation Field in PDF with JavaScript", - "description": "Shows how to add a hidden numeric field to a PDF and attach a JavaScript OnCalculate action that sums the values of two existing fields (Item1 and Item2) using Aspose.Pdf.", + "description": "Shows how to add visible text fields and a hidden read‑only calculation field to a PDF using Aspose.Pdf, then attach JavaScript that sums the numeric values of two fields.", "tags": [ "pdf", "form", - "javascript", "calculation", - "hidden-field" + "javascript", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.NumberField", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Forms.Field.Actions" + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.JavascriptAction", + "Aspose.Pdf.Annotations.AnnotationFlags" ], "difficulty": "intermediate" }, { - "filename": "create-multi-page-pdf-with-different-acroform-fields.cs", - "title": "Create Multi‑Page PDF with Different AcroForm Fields", - "description": "Demonstrates generating a PDF with three pages, each containing a distinct AcroForm field type (text box, checkbox, and radio button group).", + "filename": "create-localized-pdf-form.cs", + "title": "Create Localized PDF Form with Dynamic Label", + "description": "Demonstrates how to build a PDF form that changes a label's text based on the selected locale using a combo box and JavaScript.", "tags": [ - "pdf", - "acroform", - "multpage", - "textbox", - "radiobutton" + "pdf-form", + "localization", + "javascript", + "combo-box", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.CheckboxField", - "Aspose.Pdf.Forms.RadioButtonField", - "Aspose.Pdf.Forms.Form.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.ComboBoxField", + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Tagged.ITaggedContent" ], "difficulty": "intermediate" }, { - "filename": "create-multi-select-list-box.cs", - "title": "Create Multi-Select List Box in PDF", - "description": "Shows how to add a list box form field to a PDF, enable multi‑selection, populate options, and pre‑select multiple items using Aspose.Pdf.", + "filename": "create-multi-page-pdf-unique-form-fields.cs", + "title": "Create Multi‑Page PDF with Unique Form Fields", + "description": "Demonstrates how to generate a PDF with multiple pages and add a separate TextBoxField to each page, giving each field a distinct name and value.", "tags": [ - "listbox", - "multiselect", - "pdf-form", - "aspose-pdf", - "csharp" + "pdf", + "forms", + "multpage", + "textboxfield", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.TextBoxField", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.ListBoxField", - "Aspose.Pdf.Forms.ListBoxField.AddOption", - "Aspose.Pdf.Forms.ListBoxField.SelectedItems" + "Aspose.Pdf.Forms.Form.Add", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "create-multi-select-list-box__v2.cs", - "title": "Create Multi‑Select List Box in PDF Form", - "description": "Demonstrates how to add a list box field to a PDF form, enable multi‑selection, populate options, and set default selected items using Aspose.Pdf.", + "filename": "create-multi-page-pdf-with-acroform-fields.cs", + "title": "Create Multi‑Page PDF with Distinct AcroForm Fields", + "description": "Demonstrates how to generate a PDF with multiple pages, each containing a different AcroForm field (text box, checkbox, combo box) using Aspose.Pdf.", "tags": [ - "listbox", - "multiselect", - "pdf-form", - "aspose-pdf", - "csharp" + "pdf", + "acroform", + "multpage", + "fields", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.ListBoxField", - "Aspose.Pdf.Forms.ListBoxField.AddOption", - "Aspose.Pdf.Forms.ListBoxField.MultiSelect", - "Aspose.Pdf.Forms.ListBoxField.SelectedItems", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.CheckboxField", + "Aspose.Pdf.Forms.ComboBoxField", + "Aspose.Pdf.Form.Add", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" + }, + { + "filename": "create-multi-page-pdf-with-different-acroform-fields.cs", + "title": "Create Multi Page Pdf With Different Acroform Fields", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-multi-select-list-box.cs", + "title": "Create Multi Select List Box", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "create-multi-select-listbox-max-three.cs", - "title": "Create Multi‑Select List Box with Maximum Three Selections", - "description": "Shows how to add a multi‑select list box to a PDF using Aspose.Pdf, populate it with options, enable multi‑selection, and pre‑select up to three items.", + "title": "Create Multi Select Listbox Max Three", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-multi-select-listbox.cs", + "title": "Create a Multi‑Select List Box in PDF", + "description": "Demonstrates how to add a ListBox form field to a PDF, enable multi‑selection, populate options, and pre‑select multiple items using Aspose.Pdf.", "tags": [ "listbox", "multiselect", + "form", "pdf", - "forms", "aspose-pdf" ], "apis_used": [ @@ -45097,20 +54671,49 @@ "Aspose.Pdf.Forms.ListBoxField", "Aspose.Pdf.Forms.ListBoxField.AddOption", "Aspose.Pdf.Forms.ListBoxField.SelectedItems", - "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Document.Form.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "create-password-protected-pdf-form.cs", - "title": "Create Password Protected PDF Form with Encryption", - "description": "Demonstrates adding a text box field to a PDF, configuring its appearance, and then encrypting the document with user and owner passwords so that opening or editing requires authentication.", + "title": "Create Password Protected Pdf Form", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-pdf-acroform-open-js.cs", + "title": "Create PDF with AcroForm Text Field and Open-Action JavaScript", + "description": "Shows how to add a text box AcroForm field to a PDF and set a document‑level JavaScript action that runs when the PDF is opened.", + "tags": [ + "acroform", + "javascript", + "text-field", + "pdf-creation", + "open-action" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.DefaultAppearance", + "Aspose.Pdf.Annotations.JavascriptAction" + ], + "difficulty": "intermediate" + }, + { + "filename": "create-pdf-acroform-textbox-absolute-coordinates.cs", + "title": "Create PDF with AcroForm TextBox Using Absolute Coordinates", + "description": "Demonstrates how to generate a PDF containing an AcroForm text box positioned with absolute coordinates and customize its appearance.", "tags": [ + "acroform", + "textbox", + "coordinates", "pdf", - "form", - "encryption", - "password", "aspose-pdf" ], "apis_used": [ @@ -45119,168 +54722,203 @@ "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.TextBoxField", "Aspose.Pdf.Forms.DefaultAppearance", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Permissions" + "Aspose.Pdf.Form.Add", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "create-pdf-dropdown-country.cs", - "title": "Create PDF Dropdown List with Country Options", - "description": "Shows how to add a ComboBox (dropdown) form field to a PDF and fill it with a predefined array of country names using Aspose.Pdf.", + "filename": "create-pdf-country-dropdown.cs", + "title": "Create a PDF Country Dropdown List", + "description": "Shows how to add a ComboBox form field named 'Country' to a PDF and fill it with a predefined array of country names using Aspose.Pdf.", "tags": [ "pdf", "dropdown", - "combobox", "form", - "aspose" + "combobox", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.ComboBoxField", - "Aspose.Pdf.Forms.ComboBoxField.AddOption", - "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Document.Form.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "create-pdf-form-auto-backup.cs", - "title": "Create PDF Form with Auto Backup on Field Change", - "description": "Shows how to build a PDF form with a text box field and attach JavaScript that automatically saves a backup copy whenever the field value is modified.", + "filename": "create-pdf-date-field-validation.cs", + "title": "Create PDF with Date Field Validated by Regex", + "description": "Demonstrates how to add a date form field to a PDF and attach JavaScript that validates the input against an MM/DD/YYYY regular expression.", "tags": [ "pdf", - "form", + "date-field", + "validation", "javascript", - "backup", - "aspose-pdf" + "regex" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.DateField", "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.DateField.ExecuteFieldJavaScript", + "Aspose.Pdf.Document.Form.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, + { + "filename": "create-pdf-dropdown-country.cs", + "title": "Create Pdf Dropdown Country", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-pdf-form-auto-backup.cs", + "title": "Create Pdf Form Auto Backup", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "create-pdf-form-digital-signature.cs", - "title": "Create PDF Form with Digital Signature and Certificate Validation", - "description": "Demonstrates how to add a signature field to a PDF form, sign it with a PFX certificate using PKCS#1, verify the signature, and save the signed document.", + "title": "Create PDF Form with Digital Signature Field and Certificate Validation", + "description": "Demonstrates how to add a signature field to a PDF form, sign it using a PFX certificate with Aspose.Pdf, and save the signed document.", "tags": [ "pdf", "digital-signature", "form", "certificate", - "validation" + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.PKCS1", - "Aspose.Pdf.Forms.Signature" + "Aspose.Pdf.Security.PKCS7" ], "difficulty": "intermediate" }, { "filename": "create-pdf-form-field-formatted-currency.cs", - "title": "Create PDF Form Field with Formatted Currency Value", - "description": "Demonstrates how to add a RichTextBox form field to a PDF and set its value with a currency format that includes the symbol and thousand separators.", + "title": "Create Pdf Form Field Formatted Currency", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-pdf-form-pdf-only-attachment.cs", + "title": "Create Pdf Form Pdf Only Attachment", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-pdf-form-tax-calculation.cs", + "title": "Create PDF Form with Tax Calculation Using JavaScript", + "description": "Demonstrates how to build a PDF form with subtotal, tax rate, and calculated tax amount fields, using Aspose.Pdf and JavaScript for automatic tax computation.", "tags": [ - "pdf", - "form", - "currency", - "richtextboxfield", - "aspose" + "pdf-form", + "javascript", + "tax-calculation", + "aspose-pdf", + "numberfield" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.RichTextBoxField", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.NumberField", + "Aspose.Pdf.Forms.Border", + "Aspose.Pdf.Forms.JavascriptAction", + "Aspose.Pdf.Document.Form" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "create-pdf-form-pdf-only-attachment.cs", - "title": "Create PDF Form with PDF‑Only File Attachment Field", - "description": "Shows how to add a text box field to a PDF form and apply JavaScript validation so that only files with a .pdf extension are accepted.", + "filename": "create-pdf-form-template-fill-from-json.cs", + "title": "Create PDF Form Template and Fill It from JSON", + "description": "Shows how to build a PDF form with placeholder fields using Aspose.Pdf, serialize matching data to a JSON file, and populate the form fields from that JSON source.", "tags": [ "pdf-form", - "file-attachment", - "javascript", - "validation", - "aspose-pdf" + "json", + "aspose-pdf", + "csharp", + "form-filling" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Annotations.JavascriptAction" + "Aspose.Pdf.Forms.CheckboxField", + "Aspose.Pdf.Text.DefaultAppearance", + "Aspose.Pdf.Forms.Form.ImportFromJson" ], "difficulty": "intermediate" }, { - "filename": "create-pdf-form-tax-calculation.cs", - "title": "Create PDF Form with Automatic Tax Calculation", - "description": "Demonstrates how to build a PDF form with subtotal and tax rate fields and a read‑only tax amount field that is calculated automatically using JavaScript.", + "filename": "create-pdf-form-with-analytics.cs", + "title": "Create PDF Form with Interaction Logging", + "description": "Demonstrates how to build a PDF form, add a hidden log field, and attach JavaScript actions to form fields so that each interaction is recorded for analytics.", "tags": [ "pdf-form", - "tax-calculation", "javascript", + "analytics", "aspose-pdf", - "readonly-field" + "field-logging" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Forms.NumberField", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.CheckboxField", + "Aspose.Pdf.Forms.ComboBoxField", "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Forms.Form" + "Aspose.Pdf.Annotations.AnnotationFlags" ], "difficulty": "intermediate" }, { - "filename": "create-pdf-form-template-fill-from-json.cs", - "title": "Create PDF Form Template and Fill from JSON", - "description": "Demonstrates how to programmatically create a PDF form with placeholder fields using Aspose.Pdf, write matching JSON data, and then populate the form fields from the JSON file.", + "filename": "create-pdf-form-with-automatic-backup.cs", + "title": "Create PDF Form with Automatic Backup on Field Blur", + "description": "Shows how to add a text box to a PDF form and attach a JavaScript action that saves a backup PDF when the field loses focus.", "tags": [ - "pdf", - "form", - "json", - "aspose-pdf", - "csharp" + "pdf-form", + "javascript", + "autosave", + "field-event", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.Forms.Form", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.CheckboxField", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.Form.ImportFromJson", - "Aspose.Pdf.Forms.Form.Add" + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate" }, { "filename": "create-pdf-form-with-barcode-field.cs", "title": "Create PDF Form with Barcode Field", - "description": "Shows how to generate a PDF document that contains a read‑only barcode form field (Code128) using Aspose.Pdf.", + "description": "Shows how to generate a PDF form and insert a read‑only Code128 barcode field using Aspose.Pdf.", "tags": [ "pdf", "barcode", "form", - "aspose", - "csharp" + "aspnet", + "code128" ], "apis_used": [ "Aspose.Pdf.Document", @@ -45294,224 +54932,313 @@ "difficulty": "beginner" }, { - "filename": "create-pdf-form-with-barcode.cs", + "filename": "create-pdf-form-with-barcode-field__v2.cs", "title": "Create PDF Form with Barcode Field", - "description": "Shows how to generate a PDF form that contains a Code128 barcode field using Aspose.Pdf.", + "description": "Shows how to generate a PDF form that contains a Code128 barcode field derived from a numeric identifier using Aspose.Pdf.", "tags": [ "pdf", "barcode", "form", - "aspose-pdf", - "code128" + "code128", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.BarcodeField", - "BarcodeField.AddBarcode", - "Document.Form.Add", - "Document.Save" + "Aspose.Pdf.Forms.BarcodeField.AddBarcode", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, + { + "filename": "create-pdf-form-with-barcode.cs", + "title": "Create Pdf Form With Barcode", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "create-pdf-form-with-concatenated-barcode.cs", "title": "Create PDF Form with Concatenated Barcode Field", - "description": "Demonstrates how to build a PDF form with text fields, concatenate their values, and generate a barcode field from the combined string using Aspose.Pdf.", + "description": "Shows how to add text box fields to a PDF form and generate a Code128 barcode from the concatenated values of those fields using Aspose.Pdf.", "tags": [ - "pdf", - "form", + "pdf-form", "barcode", - "aspose-pdf", - "csharp" + "code128", + "text-field", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.TextBoxField", "Aspose.Pdf.Forms.BarcodeField", "Aspose.Pdf.Forms.BarcodeField.AddBarcode", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Form" ], "difficulty": "intermediate" }, { - "filename": "create-pdf-form-with-hidden-interaction-log.cs", - "title": "Create PDF Form with Hidden Interaction Log", - "description": "Demonstrates how to add a visible text box to a PDF form and capture user interactions in a hidden log field using JavaScript actions.", + "filename": "create-pdf-form-with-dynamic-list-box.cs", + "title": "Create PDF Form with Dynamic List Box", + "description": "Shows how to generate a PDF document, add an AcroForm ListBox field with initial options, and save the file using Aspose.Pdf.", "tags": [ - "pdf-form", - "javascript", - "analytics", - "hidden-field", - "aspose-pdf" + "pdf", + "form", + "listbox", + "aspnet", + "acroform" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Annotations.AnnotationFlags", - "Aspose.Pdf.Annotations.JavascriptAction" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.ListBoxField", + "Aspose.Pdf.Form.Add", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "create-pdf-form-with-validation.cs", - "title": "Create PDF Form with Required Field Validation", - "description": "Demonstrates how to build a PDF form with a required text box and a submit button that runs JavaScript to ensure all required fields are filled before submission.", + "filename": "create-pdf-form-with-hidden-interaction-log.cs", + "title": "Create Pdf Form With Hidden Interaction Log", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-pdf-form-with-password-protection.cs", + "title": "Create PDF Form with Password Protection", + "description": "Demonstrates adding a text box form field to a PDF and securing the document with user and owner passwords, using permissions to prevent form editing for the user password.", "tags": [ "pdf", "form", - "validation", - "javascript", - "aspose" + "encryption", + "password", + "permissions" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.ButtonField", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Forms.DefaultAppearance", + "Aspose.Pdf.Permissions", + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "create-pdf-template-with-form-placeholders.cs", - "title": "Create PDF Template with Form Placeholders", - "description": "Shows how to build a PDF document containing form fields (text boxes, checkbox, signature) that serve as placeholders for dynamic data.", + "filename": "create-pdf-form-with-qr-code.cs", + "title": "Create PDF Form with QR Code Field", + "description": "Shows how to generate a PDF form that contains a QR code field using Aspose.Pdf's BarcodeField class.", "tags": [ "pdf", + "qr-code", "form", - "placeholder", - "template", - "aspose" + "barcode", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.CheckboxField", - "Aspose.Pdf.Forms.SignatureField", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Color" + "Aspose.Pdf.Forms.BarcodeField", + "Aspose.Pdf.Document.Form.Add", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner" + }, + { + "filename": "create-pdf-form-with-required-field-validation.cs", + "title": "Create PDF Form with Required Field Validation", + "description": "Shows how to build a PDF form with required text fields and attach JavaScript to a submit button that validates those fields before submitting the form.", + "tags": [ + "pdf-form", + "javascript-validation", + "aspose-pdf", + "required-fields", + "submit-button" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.ButtonField", + "Aspose.Pdf.Annotations.JavascriptAction" ], "difficulty": "intermediate" }, { - "filename": "create-pdf-with-acroform-calculation-js.cs", - "title": "Create PDF with AcroForm Fields and Calculation JavaScript", - "description": "Demonstrates how to add AcroForm text fields to a PDF, attach a JavaScript action that calculates a total from quantity and price, and enable automatic recalculation.", + "filename": "create-pdf-form-with-submit-button.cs", + "title": "Create PDF Form with Submit Button", + "description": "Shows how to build a PDF form containing a text box and a submit button that automatically posts the form data to a REST endpoint using Aspose.Pdf.", "tags": [ - "acroform", - "javascript", - "calculation", "pdf", + "form", + "submit", + "button", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Drawing.DefaultAppearance", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Forms.Form" + "Aspose.Pdf.Forms.ButtonField", + "Aspose.Pdf.Forms.SubmitFormAction", + "Aspose.Pdf.FileSpecification" ], "difficulty": "intermediate" }, { - "filename": "create-pdf-with-acroform-open-js.cs", - "title": "Create PDF with AcroForm Text Field and Open-Action JavaScript", - "description": "Demonstrates how to add an AcroForm text box to a PDF and assign a document-level JavaScript action that runs when the file is opened.", + "filename": "create-pdf-form-with-validation.cs", + "title": "Create Pdf Form With Validation", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-pdf-multi-select-list-box.cs", + "title": "Create PDF with Multi‑Select List Box", + "description": "Shows how to add a multi‑select list box form field to a PDF document using Aspose.Pdf.", "tags": [ - "acroform", - "javascript", - "open-action", - "pdf-creation", - "aspose-pdf" + "listbox", + "multiselect", + "pdf-form", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Annotations.JavascriptAction" + "Aspose.Pdf.Forms.ListBoxField", + "Aspose.Pdf.Forms.ListBoxField.AddOption", + "Aspose.Pdf.Forms.ListBoxField.MultiSelect", + "Aspose.Pdf.Form.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "create-pdf-with-acroform-text-field.cs", - "title": "Create PDF with AcroForm Text Field", - "description": "Shows how to create a new PDF, add a blank page, and place a TextBoxField (AcroForm) on the first page using Aspose.Pdf.", + "filename": "create-pdf-template-with-form-fields.cs", + "title": "Create PDF Template with Form Fields using Aspose.Pdf", + "description": "Shows how to generate a PDF template that contains text box form fields (Name, Email, Address) with labels, and save it as a reusable document.", "tags": [ - "acroform", - "text-field", "pdf", + "form-fields", + "template", "aspose-pdf", - "forms" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Form.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Text.DefaultAppearance", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.Position" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "create-pdf-with-acroform-textbox-margins.cs", - "title": "Create PDF with AcroForm TextBox and Page Margins", - "description": "Shows how to create a PDF document, set page margins, and add an AcroForm text box field using Aspose.Pdf.", + "filename": "create-pdf-template-with-form-placeholders.cs", + "title": "Create Pdf Template With Form Placeholders", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-pdf-with-acroform-calculation-js.cs", + "title": "Create Pdf With Acroform Calculation Js", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-pdf-with-acroform-calculation.cs", + "title": "Create PDF with AcroForm fields and calculation script", + "description": "Demonstrates how to generate a PDF containing AcroForm text fields for quantity, price, and total, and embed JavaScript that automatically computes the total amount.", "tags": [ "pdf", "acroform", - "textbox", - "margins", - "aspose" + "javascript", + "calculation", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.MarginInfo", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.JavascriptAction", "Aspose.Pdf.Forms.Form.Add", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "create-pdf-with-hidden-guid-tracking-field.cs", - "title": "Create PDF with Hidden GUID Tracking Field", - "description": "Demonstrates generating a GUID at runtime and storing it in a hidden text box field inside a PDF using Aspose.Pdf.", + "filename": "create-pdf-with-acroform-fields-custom-tab-order.cs", + "title": "Create PDF with AcroForm Fields and Custom Tab Order", + "description": "Demonstrates how to create a PDF, add AcroForm text and number fields, enable manual tab order on a page, and assign custom tab order indices for better keyboard navigation.", "tags": [ + "acroform", + "tab-order", "pdf", - "hidden-field", - "guid", "forms", - "aspose.pdf" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.TabOrder", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Annotations.AnnotationFlags" + "Aspose.Pdf.Forms.NumberField", + "Aspose.Pdf.Form.Add", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" + }, + { + "filename": "create-pdf-with-acroform-open-js.cs", + "title": "Create Pdf With Acroform Open Js", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-pdf-with-acroform-text-field.cs", + "title": "Create Pdf With Acroform Text Field", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-pdf-with-acroform-textbox-margins.cs", + "title": "Create Pdf With Acroform Textbox Margins", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "create-pdf-with-listbox.cs", - "title": "Create PDF with List Box Form Field", - "description": "Shows how to generate a new PDF, add an AcroForm list box, populate it with country options, and save the file.", + "filename": "create-pdf-with-acroform-tooltips.cs", + "title": "Create PDF with AcroForm fields and tooltips", + "description": "Shows how to generate a PDF, add text and numeric AcroForm fields, and assign tooltips via the AlternateName property.", "tags": [ - "listbox", "acroform", + "tooltip", "pdf", "forms", "aspnet" @@ -45520,23 +55247,45 @@ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.ListBoxField", - "Aspose.Pdf.Form.Add", - "Aspose.Pdf.Forms.ListBoxField.AddOption", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.NumberField", + "Aspose.Pdf.Document.Form.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, + { + "filename": "create-pdf-with-hidden-guid-tracking-field.cs", + "title": "Create PDF with Hidden GUID Tracking Field", + "description": "Demonstrates generating a GUID at runtime and storing it in a hidden text box form field inside a PDF using Aspose.Pdf.", + "tags": [ + "pdf", + "form", + "guid", + "hidden-field", + "aspose.pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Form.Add", + "Aspose.Pdf.Document.Pages.Add" + ], + "difficulty": "beginner" + }, { "filename": "create-pdf-with-top-checkbox.cs", "title": "Create PDF with Top‑Positioned Checkbox Field", - "description": "Shows how to generate a new PDF, add an AcroForm, and place a checkbox field near the top of the page.", + "description": "Shows how to create a new PDF document, add an AcroForm, and place a checkbox field near the top of the page.", "tags": [ - "pdf", "acroform", "checkbox", - "forms", - "aspnet" + "pdf", + "aspose-pdf", + "form-field" ], "apis_used": [ "Aspose.Pdf.Document", @@ -45549,104 +55298,104 @@ "difficulty": "beginner" }, { - "filename": "create-pdf-with-xmp-metadata-fallback-xml.cs", - "title": "Create PDF with XMP Metadata and Fallback XML Values", - "description": "Loads an XML file, retrieves a field value with a default fallback, and writes it as a custom XMP metadata property in a newly created PDF using Aspose.Pdf.", + "filename": "create-pdf-with-xfa-form.cs", + "title": "Create PDF with XFA Form and Populate Its Fields", + "description": "Demonstrates how to load an XFA template, embed it into a PDF, and set values for XFA fields using Aspose.Pdf.", "tags": [ - "xml", - "xmp", - "metadata", - "fallback", - "pdf" + "xfa", + "pdf", + "form", + "field-population", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Document.Metadata.RegisterNamespaceUri", - "Aspose.Pdf.Document.Metadata.Indexer", + "Aspose.Pdf.Forms.Form.AssignXfa", + "Aspose.Pdf.Forms.Form.HasXfa", + "Aspose.Pdf.Forms.TextBoxField", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" + }, + { + "filename": "create-pdf-with-xmp-metadata-fallback-xml.cs", + "title": "Create Pdf With Xmp Metadata Fallback Xml", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "create-right-aligned-numeric-text-field.cs", "title": "Create Right-Aligned Numeric Text Field in PDF", - "description": "Shows how to add a numeric text field to an existing PDF and set its horizontal alignment to right using Aspose.Pdf.", + "description": "Shows how to add a numeric text field to a PDF document and set its horizontal alignment to right using Aspose.Pdf.", "tags": [ "pdf", "form", - "numeric-field", - "right-alignment", - "aspose-pdf" + "text-field", + "alignment", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.NumberField", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.HorizontalAlignment", - "Aspose.Pdf.Form" + "Aspose.Pdf.Forms.NumberField", + "Aspose.Pdf.Text.HorizontalAlignment", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "create-rtl-textbox-form-field.cs", - "title": "Create RTL TextBox Form Field in PDF", - "description": "Shows how to add a text box form field that supports right‑to‑left languages (e.g., Arabic) by setting alignment, a Unicode font, and the document language.", - "tags": [ - "rtl", - "form-field", - "textbox", - "aspdf", - "pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Text.HorizontalAlignment", - "Aspose.Pdf.Forms.DefaultAppearance", - "Aspose.Pdf.TaggedContent.SetLanguage", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "intermediate" + "title": "Create Rtl Textbox Form Field", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "date-field-validation-with-regex.cs", - "title": "Add Date Field with MM/DD/YYYY Validation", - "description": "Demonstrates creating a PDF form with a DateField, setting its display format, and attaching a JavaScript OnValidate action that checks the input against an MM/DD/YYYY regular expression.", + "title": "Date Field Validation With Regex", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "define-calculation-order-for-pdf-form-fields.cs", + "title": "Define Calculation Order for PDF Form Fields", + "description": "Shows how to enable automatic recalculation, set a custom calculation order for dependent form fields, and assign a JavaScript calculation action using Aspose.Pdf.", "tags": [ "pdf", - "form", - "datefield", - "validation", - "javascript" + "forms", + "calculation-order", + "javascript", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.DateField", - "Aspose.Pdf.Forms.JavascriptAction" + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.JavascriptAction", + "Aspose.Pdf.Forms.Form.AutoRecalculate" ], "difficulty": "intermediate" }, { "filename": "delete-form-field-from-pdf.cs", - "title": "Delete a Form Field from PDF", - "description": "Shows how to load a PDF, verify a form field's existence by name, delete that field, and save the updated document using Aspose.Pdf.", + "title": "Delete a Form Field from a PDF", + "description": "Demonstrates how to remove a specific form field from an existing PDF using Aspose.Pdf by checking for the field's existence and saving the modified document.", "tags": [ "pdf", "form", "delete", "field", - "aspose" + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Form.HasField", - "Aspose.Pdf.Forms.Form.Delete", + "Aspose.Pdf.Form.HasField", + "Aspose.Pdf.Form.Delete", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" @@ -45654,137 +55403,91 @@ { "filename": "delete-form-field-from-pdf__v2.cs", "title": "Delete a Form Field from a PDF", - "description": "Demonstrates how to load a PDF with Aspose.Pdf, delete a specific form field named 'OldPhoneNumber', and save the updated document.", + "description": "Shows how to remove a specific form field from a PDF document using Aspose.Pdf by calling Document.Form.Delete and then saving the file.", "tags": [ "pdf", "form", "delete", - "aspose", + "aspose.pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Document.Form", "Aspose.Pdf.Form.Delete", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Dispose" + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "delete-form-fields-on-page.cs", - "title": "Delete Form Fields on a Specific PDF Page", - "description": "Shows how to locate and remove all form fields that appear on page 5 of a PDF document using Aspose.Pdf.", - "tags": [ - "form-fields", - "pdf", - "delete", - "page", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Form.GetFieldsInRect", - "Aspose.Pdf.Forms.Form.Delete", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "intermediate" + "title": "Delete Form Fields On Page", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "detect-flattened-pdf-modify-form-field.cs", - "title": "Detect Flattened PDF and Modify Form Field", - "description": "The example loads a PDF, checks whether it has been flattened (i.e., form fields removed), and if not, updates a specific form field before saving the document.", - "tags": [ - "pdf", - "form", - "flattened", - "field", - "aspose" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.Field.Value", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner" + "title": "Detect Flattened Pdf Modify Form Field", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "digitally-sign-filled-pdf-form.cs", - "title": "Digitally Sign a Filled PDF Form", - "description": "Shows how to add a signature field to a PDF that already contains filled form fields and apply a PKCS#7 digital signature using Aspose.Pdf.", - "tags": [ - "digital-signature", - "pdf", - "forms", - "pkcs7", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.PKCS7", - "SignatureField.Sign", - "Document.Save" - ], - "difficulty": "intermediate" + "title": "Digitally Sign Filled Pdf Form", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "duplicate-rename-pdf-form-field.cs", - "title": "Duplicate and Rename PDF Form Field", - "description": "Demonstrates how to programmatically copy an existing form field, assign each copy a unique name, reposition them to avoid overlap, and save the updated PDF using Aspose.Pdf.", + "filename": "duplicate-pdf-form-field.cs", + "title": "Duplicate PDF Form Field and Rename", + "description": "Shows how to programmatically copy an existing PDF form field, give each copy a unique name, optionally reposition them, and save the updated document using Aspose.Pdf.", "tags": [ "pdf", - "form-fields", - "duplicate", - "aspose.pdf", + "form", + "duplicate-field", + "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Form.HasField", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.Form.Add", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, + { + "filename": "duplicate-rename-pdf-form-field.cs", + "title": "Duplicate Rename Pdf Form Field", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "dynamic-listbox-add-item.cs", - "title": "Create Dynamic ListBox with Add‑Item Button in PDF", - "description": "Demonstrates how to build a PDF form containing a ListBox that can grow dynamically when a user clicks a button, using JavaScript attached to the button's mouse‑up action.", - "tags": [ - "listbox", - "javascript", - "pdf-form", - "button", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Forms.ListBoxField", - "Aspose.Pdf.Forms.ButtonField", - "Aspose.Pdf.Annotations.Border", - "Aspose.Pdf.Annotations.JavascriptAction" - ], - "difficulty": "intermediate" + "title": "Dynamic Listbox Add Item", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "enable-spell-checking-textbox-field.cs", - "title": "Enable Spell Checking for a PDF Text Box Field", - "description": "Shows how to create a PDF form, add a TextBoxField, and enable spell checking using Aspose.Pdf.", + "title": "Enable Spell Checking for a Text Box Field in PDF", + "description": "Shows how to add a TextBoxField to a PDF document and turn on spell checking using Aspose.Pdf.", "tags": [ - "pdf", - "form", "spellcheck", - "textboxfield", + "textbox", + "form", + "pdf", "aspose" ], "apis_used": [ @@ -45792,20 +55495,30 @@ "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Document.Form.Add", + "Aspose.Pdf.Forms.TextBoxField.SpellCheck", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "export-acroform-data-to-xfdf-xml.cs", - "title": "Export AcroForm Data to XFDF XML", - "description": "Loads a PDF document, checks its existence, and exports all AcroForm fields to an XFDF (XML) file using Aspose.Pdf's ExportAnnotationsToXfdf method, with basic error handling.", + "title": "Export Acroform Data To Xfdf Xml", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "export-acroform-data-to-xfdf.cs", + "title": "Export AcroForm Data to XFDF and Save to Network Share", + "description": "Demonstrates loading a PDF with Aspose.Pdf, extracting its AcroForm fields as XFDF (XML) and writing the resulting file to a UNC network share.", "tags": [ - "acroform", - "xfdf", - "export", - "pdf", - "aspose-pdf" + "AcroForm", + "XFDF", + "Export", + "NetworkShare", + "PDF" ], "apis_used": [ "Aspose.Pdf.Document", @@ -45814,126 +55527,146 @@ "difficulty": "beginner" }, { - "filename": "export-acroform-data-to-xfdf.cs", - "title": "Export AcroForm Data to XFDF on Network Share", - "description": "Demonstrates loading a PDF with Aspose.Pdf, extracting its AcroForm fields and saving them as an XFDF file to a UNC network share.", + "filename": "export-acroform-data-to-xml.cs", + "title": "Export AcroForm Data to XML", + "description": "Loads a PDF, iterates through its AcroForm fields, extracts each field's value according to its concrete type, and writes the collected data into an XML file.", "tags": [ "AcroForm", - "XFDF", + "XML", "Export", - "NetworkShare", - "Aspose.Pdf" + "Aspose.Pdf", + "FormFields" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.ExportAnnotationsToXfdf" + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.CheckboxField", + "Aspose.Pdf.Forms.RadioButtonField", + "Aspose.Pdf.Forms.ListBoxField", + "Aspose.Pdf.Forms.ComboBoxField", + "Aspose.Pdf.Forms.SignatureField" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "export-conditional-visibility-state-to-xml.cs", - "title": "Export Conditional Visibility State to XML", - "description": "Demonstrates iterating through PDF annotations, toggling HideAction visibility, marking widget annotations as exportable, and saving the document's state to an XML file to preserve user preferences across sessions.", + "filename": "export-barcode-fields-to-xml.cs", + "title": "Export Barcode Form Fields to XML", + "description": "Shows how to iterate through a PDF's form fields, extract barcode field names and values, and write them to an XML file for inventory system integration.", "tags": [ + "barcode", "pdf", - "visibility", - "annotations", "xml", - "aspose-pdf" + "forms", + "export" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.LinkAnnotation", - "Aspose.Pdf.Annotations.HideAction", - "Aspose.Pdf.Annotations.WidgetAnnotation", - "Aspose.Pdf.Document.SaveXml" + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.BarcodeField", + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Document.Form.Fields" ], - "difficulty": "intermediate" + "difficulty": "beginner" + }, + { + "filename": "export-conditional-visibility-state-to-xml.cs", + "title": "Export Conditional Visibility State To Xml", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "export-form-field-appearances.cs", - "title": "Export Form Field Appearances to Separate PDFs", - "description": "Loads a PDF, iterates through its form fields, extracts each field's appearance stream, and saves each appearance as an individual one‑page PDF for visual inspection.", + "title": "Export Form Field Appearances to Separate PDF Files", + "description": "Loads a PDF containing form fields, extracts each field's visual appearance stream, and saves each appearance as an individual PDF file for visual inspection.", "tags": [ "form-fields", "appearance", "export", "pdf", - "Aspose.Pdf" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.Form", "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Forms.Form.AddFieldAppearance", + "Aspose.Pdf.Document.Save", "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Forms.Form.AddFieldAppearance" + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate" }, { "filename": "export-pdf-barcode-fields-to-xml.cs", - "title": "Export PDF Barcode Fields to XML", - "description": "Loads a PDF, extracts all barcode form fields and writes their names and values to an XML file for integration with inventory systems.", + "title": "Export Pdf Barcode Fields To Xml", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "export-pdf-conversion-progress-to-xml.cs", + "title": "Export PDF Conversion Progress to XML", + "description": "Demonstrates attaching a custom progress handler to HtmlSaveOptions during PDF‑to‑HTML conversion with Aspose.Pdf, capturing each progress event and persisting the data to an XML file.", "tags": [ - "pdf", - "barcode", + "pdf-conversion", + "progress-events", "xml", - "forms", - "export" + "aspose-pdf", + "html-export" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.BarcodeField", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Forms.Form.Fields" + "Aspose.Pdf.HtmlSaveOptions", + "Aspose.Pdf.HtmlSaveOptions.ConversionProgressEventHandler", + "Aspose.Pdf.HtmlSaveOptions.ProgressEventHandlerInfo", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "export-pdf-conversion-progress-to-xml.cs", - "title": "Export PDF Conversion Progress to XML", - "description": "Shows how to capture Aspose.Pdf HTML conversion progress events and write them to an XML file for external tracking.", + "filename": "export-pdf-digital-signature-to-xml.cs", + "title": "Export PDF Digital Signature Information to XML", + "description": "Shows how to load a signed PDF with Aspose.Pdf and export its digital signature data to an XML file for audit logging.", "tags": [ "pdf", - "html", - "progress", + "digital-signature", "xml", - "aspose-pdf" + "audit", + "export" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.HtmlSaveOptions", - "Aspose.Pdf.HtmlSaveOptions.ConversionProgressEventHandler", - "Aspose.Pdf.HtmlSaveOptions.ProgressEventHandlerInfo" + "Aspose.Pdf.Document.SaveXml" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "export-pdf-form-data-to-compressed-json.cs", - "title": "Export PDF Form Data to Compressed JSON", - "description": "Demonstrates how to extract form fields from a PDF using Aspose.Pdf, serialize them to JSON, and compress the output with GZip for efficient storage or transmission.", + "filename": "export-pdf-form-appearance-to-json.cs", + "title": "Export PDF Form Field Appearance Settings to JSON", + "description": "Demonstrates how to export all form fields, including their appearance settings, from a PDF document to a formatted JSON file using Aspose.Pdf.", "tags": [ "pdf", - "form", + "forms", + "export", "json", - "gzip", - "export" + "appearance" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Form", - "Aspose.Pdf.Form.ExportToJson", - "Aspose.Pdf.ExportFieldsToJsonOptions" + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.ExportFieldsToJsonOptions", + "Aspose.Pdf.Forms.Form.ExportToJson" ], "difficulty": "beginner" }, { "filename": "export-pdf-form-data-to-indented-json.cs", "title": "Export PDF Form Data to Indented JSON", - "description": "Shows how to load a PDF, configure export options, and write all form fields to a formatted JSON file using Aspose.Pdf.", + "description": "Shows how to load a PDF, extract all form fields, and write them to a JSON file with indentation for better readability using Aspose.Pdf.", "tags": [ "pdf", "form", @@ -45943,37 +55676,53 @@ ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.ExportFieldsToJsonOptions", - "Aspose.Pdf.Form", - "Aspose.Pdf.Form.ExportToJson", - "Aspose.Pdf.Document.Form" + "Aspose.Pdf.Forms.ExportFieldsToJsonOptions", + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Form.ExportToJson" ], "difficulty": "beginner" }, + { + "filename": "export-pdf-form-data-to-json-gzip.cs", + "title": "Export PDF Form Data to JSON and Compress with GZip", + "description": "Shows how to load a PDF, export its form fields to JSON using Aspose.Pdf, and compress the result with GZip for efficient storage or transmission.", + "tags": [ + "pdf", + "form", + "json", + "gzip", + "export" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.ExportFieldsToJsonOptions", + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Form.ExportToJson" + ], + "difficulty": "intermediate" + }, { "filename": "export-pdf-form-data-to-json.cs", "title": "Export PDF Form Data to JSON", - "description": "Demonstrates loading a PDF, checking its existence, and exporting all form fields to a JSON file using Aspose.Pdf.", + "description": "Shows how to load a PDF, export its form fields to a JSON string, and write the JSON to a file using Aspose.Pdf.", "tags": [ "pdf", "form", - "export", "json", + "export", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Form", - "Aspose.Pdf.Form.ExportToJson", - "Aspose.Pdf.Document..ctor", - "Aspose.Pdf.Document.Dispose" + "Aspose.Pdf.Form.ExportToJson" ], "difficulty": "beginner" }, { "filename": "export-pdf-form-data-to-pretty-json.cs", "title": "Export PDF Form Data to Pretty-Printed JSON", - "description": "Demonstrates loading a PDF, configuring JSON export options for indentation, and exporting all form fields to a formatted JSON file.", + "description": "Demonstrates how to export all form fields from a PDF to a JSON file with indentation for readability using Aspose.Pdf.", "tags": [ "pdf", "form", @@ -45983,51 +55732,33 @@ ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.ExportFieldsToJsonOptions", - "Aspose.Pdf.Forms.Form.ExportToJson", "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.ExportFieldsToJsonOptions.WriteIndented" + "Aspose.Pdf.Forms.ExportFieldsToJsonOptions", + "Aspose.Pdf.Forms.ExportFieldsToJsonOptions.WriteIndented", + "Aspose.Pdf.Forms.Form.ExportToJson" ], "difficulty": "beginner" }, { "filename": "export-pdf-form-data-to-xfdf-stream.cs", - "title": "Export PDF Form Data to XFDF Stream", - "description": "Demonstrates how to stream a PDF's form annotations as XFDF XML directly to an output stream, enabling immediate download via an HTTP response.", - "tags": [ - "xfdf", - "form-export", - "streaming", - "aspose-pdf", - "http-response" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.ExportAnnotationsToXfdf" - ], - "difficulty": "beginner" + "title": "Export Pdf Form Data To Xfdf Stream", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "export-pdf-form-data-to-xfdf.cs", - "title": "Export PDF Form Data to XFDF XML", - "description": "Demonstrates loading a PDF containing form fields and exporting the form data to an XFDF XML file using Aspose.Pdf.", - "tags": [ - "pdf", - "form", - "xfdf", - "export", - "xml" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.ExportAnnotationsToXfdf" - ], - "difficulty": "beginner" + "title": "Export Pdf Form Data To Xfdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "export-pdf-form-data-to-xml-and-transform.cs", "title": "Export PDF Form Data to XML and Transform to Custom Report", - "description": "Demonstrates how to export form fields from a PDF to an XML file using Aspose.Pdf, then apply an XSLT stylesheet to generate a custom report such as HTML.", + "description": "Demonstrates extracting PDF form fields to XML with Aspose.Pdf and then applying an XSLT stylesheet to generate a custom HTML report.", "tags": [ "pdf", "form-data", @@ -46037,53 +55768,51 @@ ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.XmlSaveOptions" + "Aspose.Pdf.XmlSaveOptions", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "export-pdf-form-data-to-xml-custom-root.cs", "title": "Export PDF Form Data to XML with Custom Root Element", - "description": "Demonstrates how to export form fields from a PDF to XML using Aspose.Pdf, then rename the XML root element to a custom name required by an external system.", + "description": "Shows how to extract XFA form data from a PDF and save it as XML while renaming the root element to meet external system requirements.", "tags": [ "pdf", - "form-data", + "form", "xml", - "export", - "custom-root" + "xfa", + "export" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.XmlSaveOptions", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Form", + "Aspose.Pdf.Forms.XFA", + "Aspose.Pdf.Forms.XFA.Datasets" ], "difficulty": "intermediate" }, { "filename": "export-pdf-form-data-to-xml.cs", "title": "Export PDF Form Data to XML", - "description": "Shows how to read all form fields from a PDF using Aspose.Pdf and write their names and values to an XML file for offline data collection.", + "description": "Shows how to load a PDF document with Aspose.Pdf and export its form fields to an XML file.", "tags": [ "pdf", "form", "xml", "export", - "aspose" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.Form.Fields", - "Aspose.Pdf.Forms.Field.Value" + "Aspose.Pdf.Document.SaveXml" ], "difficulty": "beginner" }, { "filename": "export-pdf-form-data-to-xml__v2.cs", - "title": "Export PDF Form Data to XML after Setting Tax Value", - "description": "Loads a PDF form, assigns a value to the Tax field, and saves the entire form data as an XML file using Aspose.Pdf.", + "title": "Export PDF Form Data to XML", + "description": "Loads a PDF, checks for interactive form fields, and serializes their values into a custom XML file before saving the unchanged PDF.", "tags": [ "pdf", "form", @@ -46094,28 +55823,48 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.CheckboxField", + "Aspose.Pdf.Forms.RadioButtonField", + "Aspose.Pdf.Forms.ListBoxField", + "Aspose.Pdf.Forms.ComboBoxField", + "Aspose.Pdf.Forms.SignatureField" + ], + "difficulty": "intermediate" + }, + { + "filename": "export-pdf-form-data-to-xml__v3.cs", + "title": "Export PDF Form Data to XML", + "description": "Shows how to load a PDF form, access the calculated tax field values, and export the entire form data to an XML file using Aspose.Pdf.", + "tags": [ + "pdf", + "form", + "xml", + "export", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.XmlSaveOptions", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Form" + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "export-pdf-form-field-metadata-to-csv.cs", "title": "Export PDF Form Field Metadata to CSV", - "description": "Loads a PDF, extracts each form field's name, type, and default value, and writes the information to a CSV file for auditing purposes.", + "description": "Loads a PDF, iterates through all form fields, extracts each field's name, type, and default value, and writes the information to a CSV file for auditing.", "tags": [ "pdf", - "form-fields", + "forms", + "export", "csv", - "audit", - "aspose-pdf" + "audit" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.Form", "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Document.Form.Fields", "Aspose.Pdf.Forms.Field.FullName", "Aspose.Pdf.Forms.Field.Value" ], @@ -46124,58 +55873,56 @@ { "filename": "export-pdf-form-fields-to-csv.cs", "title": "Export PDF Form Fields to CSV", - "description": "Loads a PDF document, extracts all AcroForm field details, and writes them to a CSV file for external analysis.", + "description": "Loads a PDF document, extracts each form field's metadata (names, value, and flags) and writes the information to a CSV file for external analysis.", "tags": [ "pdf", "form", - "export", "csv", + "export", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.Form", "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Document.Form (property)", - "Aspose.Pdf.Forms.Field.GetType" + "Aspose.Pdf.Forms.FieldCollection" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "export-pdf-form-fields-to-csv__v2.cs", "title": "Export PDF Form Fields to CSV", - "description": "Shows how to load a PDF with Aspose.Pdf, read all form fields, and write each field's name and current value to a CSV file.", + "description": "Demonstrates loading a PDF with Aspose.Pdf, iterating its form fields, and writing each field name and value to a CSV file for external processing.", "tags": [ "pdf", - "form-fields", - "csv", + "form", "export", + "csv", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.Form", "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Document.Form.Fields", "Aspose.Pdf.Forms.Field.FullName", "Aspose.Pdf.Forms.Field.Value" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "export-pdf-form-fields-to-json.cs", "title": "Export PDF Form Fields to JSON", - "description": "Shows how to load a PDF with Aspose.Pdf, extract all form field values, and serialize them into a JSON string using the ExportToJson method.", + "description": "Loads a PDF document, extracts all form field values, and serializes them into a JSON string using Aspose.Pdf.", "tags": [ "pdf", "form-fields", "json", "export", - "aspose-pdf" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Form", "Aspose.Pdf.Form.ExportToJson" ], "difficulty": "beginner" @@ -46183,28 +55930,27 @@ { "filename": "export-pdf-form-fields-to-json__v2.cs", "title": "Export PDF Form Fields to JSON Schema", - "description": "Shows how to load a PDF with Aspose.Pdf, extract its form field definitions, and export them to a JSON file that describes field types and constraints.", + "description": "Shows how to extract form field definitions from a PDF and serialize them into a JSON schema using Aspose.Pdf, with configurable export options and result inspection.", "tags": [ "pdf", "form", "json", "export", - "aspose" + "schema" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", "Aspose.Pdf.Forms.ExportFieldsToJsonOptions", "Aspose.Pdf.Forms.Form.ExportToJson", - "Aspose.Pdf.Forms.ExportFieldsToJsonOptions.WriteIndented", - "Aspose.Pdf.Forms.ExportFieldsToJsonOptions.ExportPasswordValue" + "Aspose.Pdf.Forms.FieldSerializationResult", + "Aspose.Pdf.Forms.Form" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "export-pdf-form-fields-to-json__v3.cs", "title": "Export PDF Form Fields to JSON Schema", - "description": "Shows how to load a PDF document, set JSON export options, and export the form field definitions to a JSON file using Aspose.Pdf.", + "description": "Shows how to load a PDF with Aspose.Pdf, configure JSON export options, and export all form fields to a JSON schema file.", "tags": [ "pdf", "form", @@ -46216,70 +55962,59 @@ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.ExportFieldsToJsonOptions", "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Form.ExportToJson" + "Aspose.Pdf.Forms.Form.ExportToJson", + "Aspose.Pdf.Forms.ExportFieldsToJsonOptions.WriteIndented" ], "difficulty": "beginner" }, { "filename": "export-pdf-form-fields-to-json__v4.cs", - "title": "Export PDF Form Fields to JSON", - "description": "Shows how to export all form field definitions, including appearance settings, from a PDF document to a JSON file using Aspose.Pdf.", - "tags": [ - "pdf", - "form-fields", - "export", - "json", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.ExportFieldsToJsonOptions", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Form.ExportToJson" - ], - "difficulty": "beginner" + "title": "Export Pdf Form Fields To Json__V4", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "export-pdf-form-interaction-log-to-xfdf.cs", - "title": "Export PDF Form Interaction Log to XFDF", - "description": "Demonstrates how to export a PDF form's annotations and field values to an XFDF (XML) file for server‑side analysis after a form submission.", + "title": "Export Pdf Form Interaction Log To Xfdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "export-pdf-model-to-xml.cs", + "title": "Export PDF Document Model to XML Preserving Visibility", + "description": "Loads a PDF, optionally toggles the visibility of 3‑D cross‑section annotations, and saves the entire document model to an XML file to retain user preferences across sessions.", "tags": [ "pdf", - "form", - "xfdf", - "export", - "annotations" + "xml", + "visibility", + "annotations", + "export" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.ExportAnnotationsToXfdf", - "Aspose.Pdf.Document.Form" + "Aspose.Pdf.XmlSaveOptions", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Annotations.Pdf3DCrossSection", + "Aspose.Pdf.Page" ], "difficulty": "beginner" }, { "filename": "export-pdf-signature-to-xml-audit.cs", - "title": "Export PDF Signature Details to XML Audit Log", - "description": "Loads a signed PDF, extracts information from each signature field, and writes the details to an XML file for audit purposes.", - "tags": [ - "pdf", - "signature", - "audit", - "xml", - "forms" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.Signature" - ], - "difficulty": "intermediate" + "title": "Export Pdf Signature To Xml Audit", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "export-selected-pdf-form-fields-to-xml.cs", - "title": "Export Selected PDF Form Fields to XML", - "description": "Demonstrates how to load a PDF, select specific form fields by name, and write their values into an XML document.", + "filename": "export-selected-form-fields-to-xml.cs", + "title": "Export Selected Form Fields to XML", + "description": "Demonstrates how to load a PDF, pick specific form fields by name, and write their values to a custom XML file using Aspose.Pdf.", "tags": [ "pdf", "forms", @@ -46290,205 +56025,236 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Field", "Aspose.Pdf.Forms.FieldCollection", + "Aspose.Pdf.Forms.Field", "Aspose.Pdf.Forms.Field.PartialName", "Aspose.Pdf.Forms.Field.Value" ], "difficulty": "intermediate" }, + { + "filename": "export-selected-pdf-form-fields-to-xml.cs", + "title": "Export Selected Pdf Form Fields To Xml", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "export-total-price-to-xml.cs", - "title": "Export Total Price to XML via PDF", - "description": "Shows how to create a PDF containing a total price and export its content to XML using Aspose.Pdf for invoicing integration.", + "title": "Export Total Price to XML from Tagged PDF", + "description": "Calculates a total price, creates a minimal tagged PDF with the price displayed, and saves the document as XML for integration with an external invoicing system.", "tags": [ "pdf", "xml", + "tagged-pdf", "export", - "total-price", - "aspose" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.TaggedContent", "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.FontRepository.FindFont", - "Aspose.Pdf.MobiXmlSaveOptions", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Text.FontRepository", + "Aspose.Pdf.XmlSaveOptions" ], "difficulty": "intermediate" }, { "filename": "extract-signature-field-image.cs", "title": "Extract Signature Field Appearance as Image", - "description": "Demonstrates how to locate signature fields in a PDF, extract their visual appearance as a JPEG image, and save the images for audit‑logging purposes.", + "description": "Demonstrates how to locate a signature form field in a PDF and extract its visual appearance as a JPEG image for audit‑logging purposes.", "tags": [ "signature", "image", - "pdf", "forms", - "audit" + "audit", + "pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Forms.Field", "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.SignatureField.ExtractImage" + "Aspose.Pdf.Forms.SignatureField.ExtractImage", + "Aspose.Pdf.Forms.Form" ], "difficulty": "intermediate" }, { - "filename": "extract-xfa-form-data-to-xml.cs", - "title": "Extract XFA Form Data from PDF to XML", - "description": "Shows how to load a PDF, verify it contains an XFA form, retrieve the XFA data package (XDP) and save it as an XML file using Aspose.Pdf.", + "filename": "extract-text-box-form-fields.cs", + "title": "Extract Text Box Form Fields from PDF", + "description": "Shows how to load a PDF, filter its form fields to only TextBoxField instances using LINQ, and write each field's name and value to a text file.", "tags": [ - "XFA", - "PDF", - "XML", - "Aspose.Pdf", - "form" + "pdf", + "form-fields", + "textbox", + "linq", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.XFA", - "Aspose.Pdf.Forms.XFA.XDP" + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.FieldCollection", + "Aspose.Pdf.Forms.Field" ], "difficulty": "beginner" }, { - "filename": "fill-pdf-form-and-encrypt.cs", - "title": "Fill PDF Form Fields and Apply AES-256 Encryption", - "description": "The example loads a PDF containing form fields, sets values for a text box, checkbox, and combo box, then protects the document with user/owner passwords, specific permissions, and AES‑256 encryption before saving.", + "filename": "extract-transform-import-pdf-form-data.cs", + "title": "Extract, Transform, and Import PDF Form Data via JSON", + "description": "Shows how to export form fields from a PDF to JSON, modify the field names, and import the transformed data into another PDF using Aspose.Pdf.", "tags": [ - "form-filling", - "encryption", - "permissions", - "aes-256", - "aspose-pdf" + "pdf-forms", + "json", + "data-transformation", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.Form.ExportToJson", + "Aspose.Pdf.Forms.Form.ImportFromJson", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.CheckboxField", - "Aspose.Pdf.Forms.ComboBoxField", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.CryptoAlgorithm" + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate" }, { - "filename": "fill-pdf-form-fields-from-byte-array.cs", - "title": "Fill PDF Form Fields from Byte Array", - "description": "Demonstrates loading a PDF from a byte array, setting values of its form fields, and returning the updated PDF as a byte array using Aspose.Pdf.", + "filename": "extract-xfa-form-data-to-xml.cs", + "title": "Extract XFA Form Data from PDF to XML", + "description": "Shows how to load a PDF with Aspose.Pdf, verify the presence of an XFA form, retrieve the XFA data package as an XmlDocument, and save it as an XML file.", "tags": [ + "xfa", "pdf", - "form", - "fill", - "aspose", - "memory-stream" + "xml", + "extraction", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Forms.Form.this[string]" + "Aspose.Pdf.Form.HasXfa", + "Aspose.Pdf.Form.XFA", + "Aspose.Pdf.XfaForm.XDP" ], "difficulty": "beginner" }, { - "filename": "fill-pdf-form-fields-from-dictionary.cs", - "title": "Fill PDF Form Fields from a Dictionary", - "description": "Demonstrates loading a PDF, iterating over its form fields, and assigning values from a dictionary of field names to the corresponding fields, then saving the updated document.", + "filename": "fill-and-flatten-pdf-form-fields.cs", + "title": "Fill and Flatten PDF Form Fields", + "description": "The example loads a PDF, sets values for a text box and a checkbox, flattens the form so the fields become static content, and saves the resulting PDF.", "tags": [ "pdf", "form", + "flatten", "fill", - "dictionary", - "aspose" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.Form", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Page", - "Aspose.Pdf.Forms.Form" + "Aspose.Pdf.Forms.CheckboxField", + "Aspose.Pdf.Forms.Form.Flatten" ], "difficulty": "beginner" }, { - "filename": "fill-pdf-text-field.cs", - "title": "Fill PDF Text Field Using Aspose.Pdf", - "description": "Loads an existing PDF, locates a text form field by its name, assigns a provided string value, and saves the updated document.", + "filename": "fill-pdf-form-and-encrypt.cs", + "title": "Fill PDF Form Fields and Encrypt the Document", + "description": "The example loads a PDF with fillable form fields, sets values for text boxes and checkboxes, then applies password protection with specific permissions before saving the result.", "tags": [ "pdf", - "form", - "fill-field", - "aspose", + "form-filling", + "encryption", + "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.Field.Value", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.CheckboxField", + "Aspose.Pdf.Permissions", + "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.Encrypt" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "filter-pdf-form-textbox-fields-using-linq.cs", - "title": "Filter PDF Form TextBox Fields Using LINQ", - "description": "Demonstrates loading a PDF, retrieving its form fields, and using LINQ to select only TextBoxField instances, optionally filtering by field name.", + "filename": "fill-pdf-form-fields-from-byte-array.cs", + "title": "Fill Pdf Form Fields From Byte Array", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "fill-pdf-form-fields-from-dictionary.cs", + "title": "Fill Pdf Form Fields From Dictionary", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "fill-pdf-form-fields-from-stream.cs", + "title": "Fill PDF Form Fields from Stream and Return Byte Array", + "description": "Demonstrates loading a PDF from a stream, populating its form fields using Aspose.Pdf, and returning the modified document as a byte array.", "tags": [ "pdf", - "forms", - "linq", - "textbox", - "filter" + "form", + "aspose", + "fill", + "memory-stream" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.Field", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Document.Form" + "Aspose.Pdf.Forms.ComboBoxField", + "Aspose.Pdf.Forms.CheckboxField", + "Aspose.Pdf.Forms.RadioButtonField", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "flatten-pdf-form-fields-after-filling.cs", - "title": "Flatten PDF Form Fields After Filling", - "description": "Loads a PDF, fills specific form fields (text box, checkbox, combo box) and then flattens the form so the content becomes part of the page and non‑editable before saving.", + "filename": "fill-pdf-text-field.cs", + "title": "Fill a PDF Text Field with Aspose.Pdf", + "description": "Shows how to load an existing PDF, locate a text form field by its name, assign a string value, and save the modified document.", "tags": [ "pdf", "form", - "flatten", - "aspose.pdf", + "fill-field", + "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.CheckboxField", - "Aspose.Pdf.Forms.ComboBoxField", - "Aspose.Pdf.Document.Flatten", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Forms.Field.Value", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, + { + "filename": "filter-pdf-form-textbox-fields-using-linq.cs", + "title": "Filter Pdf Form Textbox Fields Using Linq", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "flatten-pdf-form-fields.cs", - "title": "Flatten PDF Form Fields to Create a Plain PDF", - "description": "Shows how to load a PDF with Aspose.Pdf, flatten all form fields to retain their visual appearance while removing interactivity, and save the result as a non‑interactive PDF.", + "title": "Flatten PDF Form Fields to Static Content", + "description": "Shows how to load a PDF with Aspose.Pdf, flatten all interactive form fields so they become static, and save the resulting document.", "tags": [ "pdf", - "forms", "flatten", + "forms", "aspose", "csharp" ], @@ -46500,166 +56266,211 @@ "difficulty": "beginner" }, { - "filename": "flatten-pdf-form-fields__v2.cs", - "title": "Flatten PDF Form Fields", - "description": "Shows how to load a PDF with Aspose.Pdf, flatten all interactive form fields so the content becomes static, and save the resulting PDF.", + "filename": "flatten-pdf-form-fields__v2.cs", + "title": "Flatten Pdf Form Fields__V2", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "flatten-pdf-remove-form-fields.cs", + "title": "Flatten PDF to Remove All Form Fields", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, flatten it to delete all interactive form fields, and save the resulting plain PDF.", "tags": [ "pdf", - "flatten", "forms", - "aspose", + "flatten", + "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Document.Flatten", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Form" + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "generate-form-fields-report.cs", - "title": "Generate PDF Form Fields Report with Character Limits", - "description": "Loads PDF files, enumerates each form field, extracts the field name, type and maximum character length (when available), and writes the data to a CSV report.", + "filename": "generate-csv-summary-of-pdf-form-fields.cs", + "title": "Generate CSV Summary of PDF Form Fields", + "description": "The example loads all PDF files in a folder, extracts each form field's name and value, and writes a CSV report summarizing the filled fields across the documents.", "tags": [ "pdf", "forms", "csv", - "aspose-pdf", - "character-limit" + "aspose", + "field-extraction" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Field" + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Forms.Form.Fields" ], "difficulty": "intermediate" }, + { + "filename": "generate-form-fields-report.cs", + "title": "Generate Form Fields Report", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "generate-invoice-pdf-with-xml-discounts.cs", - "title": "Generate Invoice PDF with XML Discount Rates", - "description": "The example reads discount rates from an XML file, applies them to a list of items, calculates the total price, and writes the result into a PDF using Aspose.Pdf.", + "title": "Generate Invoice Pdf With Xml Discounts", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "generate-pdf-discount-from-xml.cs", + "title": "Generate PDF with Discounted Price from XML", + "description": "Loads discount rates from an XML file, calculates the final price, and creates a PDF displaying the base price, total discount, and final price using Aspose.Pdf.", "tags": [ "xml", - "discount", "pdf", - "aspose.pdf", - "invoice" + "discount", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.Position", - "Aspose.Pdf.Text.TextState", "Aspose.Pdf.FontRepository.FindFont", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Color", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "get-address-field-character-limit.cs", - "title": "Get Character Limit of Address TextBox Field", - "description": "Loads a PDF, accesses its AcroForm, finds the text box named \"Address\" and reads its maximum character length (MaxLen).", + "filename": "generate-pdf-form-fields-from-json.cs", + "title": "Generate PDF Form Fields from JSON Schema", + "description": "Demonstrates how to read a JSON schema describing form fields and create corresponding AcroForm fields in a new PDF using Aspose.Pdf.", "tags": [ "pdf", - "form", - "textbox", - "maxlength", + "forms", + "json", + "acroform", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.TextBoxField" + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.CheckboxField", + "Aspose.Pdf.Forms.RadioButtonOptionField", + "Aspose.Pdf.Forms.ComboBoxField", + "Aspose.Pdf.Forms.Form" ], - "difficulty": "beginner" + "difficulty": "intermediate" + }, + { + "filename": "get-address-field-character-limit.cs", + "title": "Get Address Field Character Limit", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "hide-pdf-form-field.cs", "title": "Hide PDF Form Field Using Aspose.Pdf", - "description": "Shows how to hide a PDF form field by setting the Hidden annotation flag (or adding a HideAction) with Aspose.Pdf in C#.", + "description": "Demonstrates how to hide a specific form field in a PDF by setting the Hidden flag on its widget annotation and saving the updated document.", "tags": [ "pdf", - "form", - "hidden", - "aspose", - "csharp" + "form-field", + "visibility", + "annotation", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.WidgetAnnotation", + "Aspose.Pdf.Annotations.WidgetAnnotation", "Aspose.Pdf.Annotations.AnnotationFlags", - "Aspose.Pdf.Annotations.HideAction" + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "highlight-required-form-fields.cs", - "title": "Highlight Required Form Fields in PDF", - "description": "Shows how to load a PDF, iterate through its form fields, mark them as required, and change their background color to highlight required input areas using Aspose.Pdf.", + "filename": "highlight-mandatory-text-field-border-red.cs", + "title": "Highlight Mandatory Text Fields by Setting Border Color to Red", + "description": "Loads a PDF, iterates through its form fields, and changes the border color of all text box fields to red to indicate mandatory information, then saves the updated document.", "tags": [ "pdf", - "form", - "highlight", - "required", - "color" + "form-fields", + "border-color", + "mandatory", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.TextBoxField", "Aspose.Pdf.Color", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "import-acroform-data-from-xfdf-xml.cs", - "title": "Import AcroForm Data from XFDF/XML into PDF", - "description": "Demonstrates loading a PDF with an AcroForm, reading field values from an XFDF/XML file, importing them into the document, and saving the updated PDF.", + "filename": "highlight-required-form-fields.cs", + "title": "Highlight Required Form Fields in PDF", + "description": "Shows how to load a PDF, locate required form fields, and change their color (and border width) to highlight them before saving the document.", "tags": [ - "acroform", - "xfdf", - "import-data", "pdf", - "aspose-pdf" + "form", + "highlight", + "required", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.XfdfReader", - "Aspose.Pdf.XfdfReader.ReadFields" + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Color", + "Aspose.Pdf.Forms.Border" ], "difficulty": "beginner" }, { - "filename": "import-acroform-fields-from-json.cs", - "title": "Import AcroForm Fields from JSON into PDF", - "description": "Demonstrates how to deserialize a JSON schema and recreate AcroForm fields in a newly generated PDF using Aspose.Pdf.", + "filename": "import-acroform-data-from-xfdf-xml.cs", + "title": "Import Acroform Data From Xfdf Xml", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "import-acroform-data-from-xml.cs", + "title": "Import AcroForm Data from XML into PDF", + "description": "Demonstrates loading a PDF, reading field values from an XML file, and populating the PDF's AcroForm fields using Aspose.Pdf.", "tags": [ "acroform", - "json", + "xml", + "import", "pdf", - "forms", - "import" + "forms" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Form.ImportFromJson", - "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.Form" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "import-acroform-fields-from-json__v2.cs", - "title": "Import AcroForm Fields from JSON Schema", - "description": "Demonstrates how to load a JSON form schema and generate corresponding AcroForm fields in a new PDF document using Aspose.Pdf.", + "filename": "import-acroform-fields-from-json.cs", + "title": "Import AcroForm Fields from JSON into PDF", + "description": "Demonstrates how to load a JSON schema that defines AcroForm fields and import them into a newly created PDF document using Aspose.Pdf.", "tags": [ "pdf", "acroform", @@ -46669,61 +56480,74 @@ ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Form", + "Aspose.Pdf.Document.Form", "Aspose.Pdf.Form.ImportFromJson", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Pages.Add" ], "difficulty": "beginner" }, + { + "filename": "import-acroform-fields-from-json__v2.cs", + "title": "Import Acroform Fields From Json__V2", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "import-annotation-visibility-from-xml.cs", - "title": "Import Annotation Visibility from XML and Apply to PDF", - "description": "Loads visibility settings from an XML file and updates the Hidden flag of PDF annotations accordingly, then saves the modified document.", - "tags": [ - "pdf", - "annotations", - "visibility", - "xml", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotation", - "Aspose.Pdf.AnnotationFlags", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "intermediate" + "title": "Import Annotation Visibility From Xml", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "import-encrypted-xfa-form-data-into-pdf.cs", - "title": "Import Encrypted XFA Form Data into PDF", - "description": "Demonstrates how to decrypt an encrypted XFA XML file and import its form data into a PDF using Aspose.Pdf.", + "title": "Import Encrypted Xfa Form Data Into Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "import-encrypted-xfdf-form-data.cs", + "title": "Import Encrypted XFDF Form Data into PDF", + "description": "Shows how to create a PDF form, encrypt XFDF data with AES‑CBC, decrypt it at runtime, and import the field values into the PDF using Aspose.Pdf.", "tags": [ - "pdf", - "xfa", - "encryption", + "xfdf", "form", + "encryption", + "pdf", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.Rectangle", - "Aspose.Pdf.Form", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Xfdf.XfdfReader.ReadFields" ], "difficulty": "intermediate" }, { "filename": "import-form-appearance-from-json.cs", - "title": "Import Form Appearance Settings from JSON into PDF", - "description": "Demonstrates loading a PDF, importing form field appearance settings (and values) from a JSON file, and saving the updated document.", + "title": "Import Form Appearance From Json", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "import-form-appearances-from-json.cs", + "title": "Import Form Field Appearances from JSON into PDF", + "description": "Shows how to load a PDF with Aspose.Pdf, import form field appearance settings from a JSON file, and save the updated document.", "tags": [ "pdf", "form", - "appearance", "json", + "appearance", "import" ], "apis_used": [ @@ -46737,144 +56561,179 @@ { "filename": "import-form-data-from-compressed-json.cs", "title": "Import Form Data from Compressed JSON into PDF", - "description": "Shows how to load a PDF, decompress a GZIP‑compressed JSON payload, import the data into the PDF form using ImportFromJson, and save the filled document.", + "description": "Shows how to load a PDF, decompress a GZIP‑compressed JSON payload on the fly, import the form field values using Form.ImportFromJson, and save the updated document.", "tags": [ "form", "json", "gzip", "import", - "pdf" + "aspose.pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Form.ImportFromJson", + "Aspose.Pdf.Form", + "Aspose.Pdf.Form.ImportFromJson", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "import-form-data-from-json-api.cs", - "title": "Import Form Data from JSON API into PDF", - "description": "The example fetches JSON form data from a REST endpoint, loads a PDF template, imports the data into the PDF form fields using Form.ImportFromJson, and saves the populated document.", + "title": "Import Form Data From Json Api", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "import-form-data-from-json-via-rest-api.cs", + "title": "Import Form Data from JSON via REST API", + "description": "Demonstrates downloading JSON form data from a REST endpoint and populating an existing PDF form using Aspose.Pdf's ImportFromJson method.", "tags": [ - "pdf", "form", "json", "rest", - "aspose-pdf" + "aspose.pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Form", - "Aspose.Pdf.Form.ImportFromJson", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Form" + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Form.ImportFromJson", + "Aspose.Pdf.Forms.Form.ExportToJson" ], "difficulty": "intermediate" }, { "filename": "import-form-data-from-json.cs", "title": "Import Form Data from JSON into PDF", - "description": "Shows how to load a PDF, import form field values from a JSON string using Aspose.Pdf, and save the populated document.", + "description": "Demonstrates how to bulk import form field values from a JSON file into an existing PDF document using Aspose.Pdf's Form.ImportFromJson method and then save the updated PDF.", "tags": [ - "pdf", "form", "json", "import", - "aspose" + "pdf", + "bulk-update" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Save", "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Form.ImportFromJson", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.Form.ImportFromJson" ], "difficulty": "beginner" }, { "filename": "import-form-data-from-json__v2.cs", - "title": "Import Form Data from JSON into PDF", - "description": "Shows how to load a PDF, bulk import form field values from a JSON file using Aspose.Pdf, and save the updated document.", + "title": "Import Form Data From Json__V2", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "import-form-data-from-xml-with-error-handling.cs", + "title": "Import Form Data From Xml With Error Handling", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "import-form-fields-from-csv.cs", + "title": "Import Form Fields from CSV into PDF", + "description": "Demonstrates reading a CSV file that defines form‑field metadata and programmatically adding the corresponding fields to a PDF using Aspose.Pdf.", "tags": [ "pdf", "form", - "json", - "import", - "aspose" + "csv", + "aspose", + "field-creation" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Form.ImportFromJson", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.Form.Add", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.CheckboxField", + "Aspose.Pdf.Forms.RadioButtonField", + "Aspose.Pdf.Forms.ListBoxField" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "import-form-data-from-xml-with-error-handling.cs", - "title": "Import Form Data from XML with Error Handling", - "description": "Demonstrates loading a PDF, optionally binding form data from an XML file, and handling missing files or binding errors to avoid runtime exceptions.", + "filename": "import-json-form-data-into-pdf.cs", + "title": "Import JSON Form Data into PDF", + "description": "Shows how to load a PDF, import form field values from a JSON string using Aspose.Pdf's ImportFromJson method, and save the updated document.", "tags": [ - "pdf", + "json", "form", - "xml", - "error-handling", - "aspose-pdf" + "import", + "pdf", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.BindXml", + "Aspose.Pdf.Form", + "Aspose.Pdf.Form.ImportFromJson", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "import-form-fields-from-csv.cs", - "title": "Import Form Field Definitions from CSV into PDF", - "description": "Shows how to read a CSV file containing form field metadata and programmatically create matching PDF form fields using Aspose.Pdf.", + "filename": "import-signature-from-xml.cs", + "title": "Import Signature Data from XML and Apply to PDF Field", + "description": "Demonstrates loading a PDF, reading signature details from an XML file, locating the corresponding signature field, and applying a PKCS#7 digital signature using a PFX certificate.", "tags": [ - "csv", - "form-fields", + "digital-signature", "pdf", - "aspose", - "csharp" + "xml", + "signature-field", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.CheckboxField", - "Aspose.Pdf.Forms.RadioButtonField", - "Aspose.Pdf.Forms.Form.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Forms.PKCS7", + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Forms.SignatureField.Sign" ], "difficulty": "intermediate" }, { "filename": "import-tax-rate-from-xml.cs", - "title": "Import Tax Rate from XML into PDF Hidden Form Field", + "title": "Import Tax Rate From Xml", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "import-tax-rate-xml-pdf-hidden-field.cs", + "title": "Import Tax Rate from XML into PDF Hidden Field", "description": "Shows how to read a tax rate from an XML file and set the value of a hidden form field in a PDF using Aspose.Pdf.", "tags": [ - "pdf", - "form", "xml", - "tax-rate", - "aspose" + "pdf-form", + "hidden-field", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Document.Save", "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Field" + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.Field.Value" ], "difficulty": "intermediate" }, { - "filename": "import-xfa-data-from-xml-into-pdf.cs", + "filename": "import-xfa-data-from-xml.cs", "title": "Import XFA Form Data from XML into PDF", - "description": "Shows how to load XFA XML data and assign it to an existing PDF that contains an XFA form using Aspose.Pdf.", + "description": "Shows how to load XFA data from an XML file and assign it to an existing XFA form in a PDF using Aspose.Pdf, then save the updated document.", "tags": [ "xfa", "xml", @@ -46884,73 +56743,82 @@ ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Document.Form.HasXfa", - "Aspose.Pdf.Document.Form.AssignXfa", + "Aspose.Pdf.Form", + "Aspose.Pdf.Form.HasXfa", + "Aspose.Pdf.Form.AssignXfa", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "import-xfa-form-data-from-xml-string.cs", - "title": "Import XFA Form Data from XML String", - "description": "Demonstrates how to load XFA form data from an XML string and assign it to a PDF document using Aspose.Pdf, then save the updated PDF.", + "title": "Import XFA Form Data from XML String into PDF", + "description": "Demonstrates how to load an XML string containing XFA form field values and import it into a PDF document using Aspose.Pdf, then save the updated PDF.", "tags": [ "xfa", "form", - "xml", "import", + "xml", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Document.Form.AssignXfa", + "Aspose.Pdf.Form.AssignXfa", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "import-xfdf-data-into-pdf.cs", - "title": "Import XFDF Data into PDF to Repopulate Form Fields", - "description": "Shows how to load a PDF, read transformed XFDF (XML) containing updated form values, import those values into the PDF, and save the repopulated document.", + "filename": "import-xfa-form-data-with-missing-xml-handling.cs", + "title": "Import XFA Form Data from XML with Missing File Handling", + "description": "Demonstrates loading a PDF, optionally importing XFA form data from an XML file, and handling the case where the XML file is missing or invalid to avoid runtime errors.", "tags": [ - "xfdf", - "form-fields", - "import", "pdf", - "aspose-pdf" + "xfa", + "xml", + "error-handling", + "forms" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Annotations.XfdfReader.ReadFields", + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Form.AssignXfa", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" + }, + { + "filename": "import-xfdf-data-into-pdf.cs", + "title": "Import Xfdf Data Into Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "import-xfdf-form-data-into-pdf.cs", - "title": "Import XFDF Form Data into PDF", - "description": "Shows how to load a PDF, import form field values from an XFDF (XML) file, and save the updated PDF using Aspose.Pdf.", + "title": "Import XFDF Form Data into a PDF", + "description": "Shows how to load a PDF document, read field values from an XFDF (XML) file, and automatically populate matching form fields using Aspose.Pdf.", "tags": [ "xfdf", - "form", + "form-fields", "pdf", - "aspose-pdf", - "csharp" + "import", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Save", "Aspose.Pdf.Annotations.XfdfReader", - "Aspose.Pdf.Annotations.XfdfReader.ReadFields", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Annotations.XfdfReader.ReadFields" ], "difficulty": "beginner" }, { - "filename": "import-xfdf-interaction-logs-into-pdf.cs", - "title": "Import XFDF Interaction Logs into PDF", - "description": "Demonstrates loading a PDF, importing annotations from an XFDF (XML) interaction log file, and saving the updated document using Aspose.Pdf.", + "filename": "import-xfdf-interaction-log-into-pdf.cs", + "title": "Import XFDF Interaction Log into PDF", + "description": "Demonstrates loading a base PDF, importing user interaction annotations from an XFDF (XML) log, and saving the reconstructed PDF using Aspose.Pdf.", "tags": [ "xfdf", "annotations", @@ -46961,371 +56829,447 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Document.ImportAnnotationsFromXfdf", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Annotations.XfdfReader", - "Aspose.Pdf.Annotations.XfdfReader.ReadAnnotations" + "Aspose.Pdf.Annotations.XfdfReader.ReadAnnotations", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "import-xml-form-data-into-pdf.cs", - "title": "Import XML Form Data into PDF from Network Stream", - "description": "Shows how to download XFA XML form data via HttpClient, assign it to a PDF form using Aspose.Pdf's Form.AssignXfa, and save the updated PDF.", + "filename": "import-xfdf-interaction-logs-into-pdf.cs", + "title": "Import Xfdf Interaction Logs Into Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "import-xml-form-data-into-multiple-pdfs.cs", + "title": "Import XML Form Data into Multiple PDFs in Parallel", + "description": "Shows how to load PDF files, bind XML form data (XFA or AcroForm) to each document, and save the synchronized PDFs concurrently using Aspose.Pdf.", "tags": [ "xml", - "form", + "form-data", "pdf", - "aspose", - "httpclient" + "parallel", + "aspose.pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Form.AssignXfa", + "Aspose.Pdf.Document.BindXml", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "import-xml-signature-data-and-sign-pdf.cs", - "title": "Import XML Signature Data and Sign PDF", - "description": "Demonstrates loading a PDF with a signature field, importing digital signature information from an XFA XML file, and applying a PKCS#7 signature using a PFX certificate.", + "filename": "import-xml-form-data-into-pdf.cs", + "title": "Import XML Form Data from Network Stream into PDF", + "description": "Shows how to download XML form data via HTTP, load it into an XmlDocument, and import it into a PDF form using Aspose.Pdf's AssignXfa method.", "tags": [ + "xml", "pdf", - "digital-signature", - "xfa", - "pkcs7", + "form", + "http", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Form.AssignXfa", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.PKCS7", - "Aspose.Pdf.Forms.SignatureField.Sign", + "Aspose.Pdf.Form", + "Aspose.Pdf.Form.AssignXfa", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "incremental-update-pdf-form.cs", - "title": "Incrementally Update PDF Form Fields", - "description": "Demonstrates opening a PDF with a read/write stream, modifying form fields, and saving the document using Aspose.PDF's incremental update feature to retain previous revisions.", + "filename": "import-xml-signature-data-and-sign-pdf.cs", + "title": "Import Xml Signature Data And Sign Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "import-xml-update-pdf-form-fields.cs", + "title": "Import XML Data and Update PDF Form Fields", + "description": "Shows how to load a PDF with form fields, read an XML file containing a subset of field values, update matching fields in the PDF, and save the result.", "tags": [ - "incremental-update", "pdf-forms", + "xml", + "field-update", "aspose-pdf", - "form-fields", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.HasIncrementalUpdate", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.CheckboxField" + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Document.Form.HasField", + "Aspose.Pdf.Forms.Field" ], "difficulty": "intermediate" }, + { + "filename": "incremental-update-pdf-form.cs", + "title": "Incremental Update Pdf Form", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "insert-form-field-at-specific-index.cs", "title": "Insert Form Field at Specific Index in PDF", - "description": "Demonstrates loading a PDF, creating a TextBoxField, and inserting it at a chosen index within the document's Form collection using Aspose.Pdf.", + "description": "Demonstrates how to add a TextBox form field to a PDF at a given page index using Aspose.Pdf, preserving the ordered layout of form fields.", "tags": [ "pdf", "form", - "textbox", - "index", - "aspose" + "textfield", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.TextBoxField", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Form", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Form.Add" ], "difficulty": "beginner" }, { - "filename": "list-filled-form-fields-in-pdfs.cs", - "title": "List Filled Form Fields in PDFs", - "description": "The example scans a folder of PDF files, loads each document with Aspose.Pdf, checks for the presence of form fields, and prints each field's name and its current value.", + "filename": "limit-textboxfield-input-length.cs", + "title": "Limit TextBoxField Input Length in PDF Form", + "description": "Demonstrates setting a maximum character length on a PDF form TextBoxField, assigning a longer string, and verifying that the value is truncated to the defined limit.", "tags": [ "pdf", - "forms", - "field-extraction", - "aspose-pdf", - "csharp" + "form", + "textbox", + "maxlength", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.TextBoxField", "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.FieldCollection", - "Aspose.Pdf.Forms.CheckBoxField" - ], - "difficulty": "beginner" - }, - { - "filename": "list-pdf-form-field-names.cs", - "title": "List PDF Form Field Names", - "description": "Loads a PDF document, accesses its AcroForm, and prints the names of all form fields contained in the file.", - "tags": [ - "pdf", - "forms", - "field-names", - "aspose-pdf", - "enumeration" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Form.Count", - "Aspose.Pdf.Forms.Form.Fields", - "Aspose.Pdf.Forms.Field.Name" + "Aspose.Pdf.Forms.TextBoxField.MaxLen", + "Aspose.Pdf.Forms.TextBoxField.Value", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "lock-pdf-form-fields.cs", - "title": "Lock PDF Form Fields After Completion", - "description": "Shows how to load a PDF with Aspose.Pdf, set each form field to read‑only to prevent further edits, and save the locked document.", - "tags": [ - "pdf", - "form-fields", - "read-only", - "lock", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Forms.Form.Flatten" - ], - "difficulty": "beginner" + "filename": "list-filled-form-fields-in-pdfs.cs", + "title": "List Filled Form Fields In Pdfs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "log-pdf-form-field-modifications.cs", - "title": "Log PDF Form Field Modifications to a File", - "description": "Shows how to iterate over PDF form fields, change their values, and write each original and new value to a log file for audit and troubleshooting.", + "filename": "list-form-field-names-types-char-limits.cs", + "title": "List Form Field Names, Types, and Character Limits in PDFs", + "description": "The example scans PDF files in a folder, opens each document, and enumerates its form fields, outputting each field's name, concrete type, and maximum character length when applicable.", "tags": [ "pdf", "forms", - "audit", - "logging", - "aspose" + "field-info", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.WidgetAnnotation", "Aspose.Pdf.Forms.Field", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.CheckboxField" + "Aspose.Pdf.Forms.FileSelectBoxField" ], "difficulty": "intermediate" }, { - "filename": "mark-pdf-form-field-as-required.cs", - "title": "Mark PDF Form Field as Required", - "description": "Shows how to load a PDF with Aspose.Pdf, locate a specific form field, set its Required property to true, and save the updated document.", + "filename": "list-pdf-form-field-names.cs", + "title": "List All PDF Form Field Names", + "description": "Shows how to load a PDF with Aspose.Pdf, detect AcroForm and XFA forms, and enumerate the names of all form fields present.", "tags": [ "pdf", - "form", - "required", - "validation", + "forms", + "field-names", + "enumeration", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Form.HasField", "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.Field.Required", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.XfaForm" ], "difficulty": "beginner" }, { - "filename": "mark-pdf-form-field-required.cs", - "title": "Mark PDF Form Field as Required with Red Border", - "description": "Demonstrates how to set a PDF form field as required so that PDF viewers display a red border when the field is left empty after form submission, using Aspose.Pdf.", + "filename": "lock-all-pdf-form-fields.cs", + "title": "Lock All PDF Form Fields", + "description": "Shows how to make every form field read‑only (or flatten the form) with Aspose.Pdf so the PDF cannot be edited after completion.", "tags": [ "pdf", "form", - "required", - "border", + "readonly", + "lock", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Form.HasField", - "Aspose.Pdf.Forms.Form.EmulateRequierdGroups", - "Aspose.Pdf.Annotations.WidgetAnnotation", - "Aspose.Pdf.Annotations.WidgetAnnotation.Required" + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.Form.Flatten", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "merge-pdfs-with-acroform-field-renaming.cs", - "title": "Merge PDFs with AcroForm Field Renaming", - "description": "Demonstrates how to merge two PDF files that contain AcroForm fields while renaming the fields in the second document to prevent name conflicts.", + "filename": "log-form-field-modifications.cs", + "title": "Log PDF Form Field Modifications", + "description": "Shows how to iterate through PDF form fields, change their values and read‑only status, and write each change to a log file for audit and troubleshooting.", "tags": [ - "pdf-merge", - "acroform", - "field-renaming", - "aspose-pdf", - "csharp" + "pdf", + "forms", + "audit", + "logging", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Merge", "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Forms.Form", "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.Field.Name", - "Aspose.Pdf.Forms.Field.PartialName" + "Aspose.Pdf.Forms.Field.Value", + "Aspose.Pdf.Forms.Field.ReadOnly" ], "difficulty": "intermediate" }, { - "filename": "modify-and-flatten-pdf-form-fields.cs", - "title": "Modify and Flatten PDF Form Fields with Aspose.Pdf", - "description": "Shows how to load a PDF, update text and checkbox fields, delete an unwanted field, flatten the form so fields become static content, and save the result without loading the entire document into memory.", + "filename": "log-pdf-form-field-modifications.cs", + "title": "Log Pdf Form Field Modifications", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "mark-pdf-form-field-as-required.cs", + "title": "Mark PDF Form Field as Required", + "description": "Shows how to set the Required property on an existing PDF form field using Aspose.Pdf, and how to create a new required TextBoxField when the field is missing.", "tags": [ "pdf", "form", - "field", - "flatten", - "aspose-pdf" + "required", + "aspose.pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.CheckboxField", "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.Form.Delete", - "Aspose.Pdf.Forms.Form.Flatten", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "modify-pdf-form-field.cs", - "title": "Modify PDF Form Field Value with Aspose.Pdf", - "description": "Loads a PDF, accesses a form field named \"SampleField\", sets a new value, and saves the updated document.", + "filename": "mark-pdf-form-field-required.cs", + "title": "Mark Pdf Form Field Required", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "merge-pdfs-unique-acroform-field-names.cs", + "title": "Merge PDFs while Ensuring Unique AcroForm Field Names", + "description": "Demonstrates how to merge two PDF documents that contain AcroForm fields, renaming duplicate field names to avoid conflicts before appending pages.", "tags": [ - "pdf", - "form", - "field", + "pdf-merge", + "acroform", + "field-renaming", "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.FormField", - "Aspose.Pdf.Forms.TextBoxField" + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Document.Pages.Add", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" + }, + { + "filename": "merge-pdfs-with-acroform-field-renaming.cs", + "title": "Merge Pdfs With Acroform Field Renaming", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "modify-and-flatten-pdf-form-fields.cs", + "title": "Modify And Flatten Pdf Form Fields", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "modify-pdf-form-field.cs", + "title": "Modify Pdf Form Field", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "parallel-batch-fill-pdf-form-fields.cs", - "title": "Parallel Batch Fill PDF Form Fields", - "description": "Demonstrates how to use Aspose.Pdf to fill form fields in multiple PDFs concurrently with Parallel.ForEach, improving batch processing performance.", + "title": "Parallel Batch Fill Pdf Form Fields", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "parallel-fill-pdf-form-fields.cs", + "title": "Parallel Fill PDF Form Fields", + "description": "Demonstrates how to use Aspose.Pdf to load multiple PDFs, fill text box form fields, and save the results concurrently with Parallel.ForEach for faster batch processing.", "tags": [ "pdf", - "form", + "forms", "parallel", "batch", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Forms.Form.AutoRecalculate", - "Aspose.Pdf.Forms.Form.HasField" + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "pdf-form-language-dependent-labels.cs", - "title": "Create PDF Form with Language‑Dependent Labels", - "description": "Shows how to add a language selection combo box to a PDF form and use JavaScript to dynamically change another field's label based on the selected language.", + "title": "Pdf Form Language Dependent Labels", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "pdf-form-pdf-only-attachment-field.cs", + "title": "Create PDF Form with PDF‑Only File Attachment Field", + "description": "Demonstrates how to create a PDF form using Aspose.Pdf, add a text box field that acts as a file selector, and apply JavaScript validation to restrict the selected file to PDF format only.", "tags": [ - "pdf", - "form", + "pdf-form", + "file-attachment", "javascript", - "combobox", - "label" + "validation", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Forms.ComboBoxField", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Annotations.JavascriptAction" + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Form.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "populate-combobox-from-database.cs", - "title": "Populate ComboBox Field from Database in PDF", - "description": "Demonstrates how to create a ComboBox form field in a PDF and fill its options with values retrieved from a database using Aspose.Pdf.", + "title": "Populate Combobox From Database", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "populate-combobox-from-datatable.cs", + "title": "Populate PDF ComboBox Field from DataTable", + "description": "Demonstrates how to create a PDF template with a ComboBox field, load it, and programmatically fill the combo box options using data from a DataTable, then save the updated PDF.", "tags": [ "pdf", "combobox", - "forms", - "aspose", - "database" + "form-fields", + "aspose-pdf", + "data-binding" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.ComboBoxField", "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.ComboBoxField", - "Aspose.Pdf.Color" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Forms.ComboBoxField.AddOption" ], "difficulty": "intermediate" }, + { + "filename": "populate-currency-value-in-pdf-form.cs", + "title": "Populate Currency Value in PDF Form Field", + "description": "Shows how to create a RichTextBox form field in a PDF and fill it with a formatted currency string that includes the currency symbol and thousand separators using Aspose.Pdf.", + "tags": [ + "pdf", + "form", + "currency", + "aspose.pdf", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.RichTextBoxField", + "Aspose.Pdf.Form" + ], + "difficulty": "beginner" + }, { "filename": "populate-pdf-form-fields-from-csv.cs", - "title": "Populate PDF Form Fields from CSV", - "description": "Reads a CSV file with header/value pairs, matches the headers to form field names in a PDF template, fills those fields, and saves the populated document.", + "title": "Populate Pdf Form Fields From Csv", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "populate-pdf-form-fields-from-dictionary.cs", + "title": "Populate PDF Form Fields from Dictionary", + "description": "Shows how to load a PDF, iterate over its form fields, assign values from a dictionary of field names, and save the updated document.", "tags": [ "pdf", "form", - "csv", - "aspose", - "fill" + "fill", + "dictionary", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.Form", "Aspose.Pdf.Forms.Field", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Forms.Form.HasField" + "Aspose.Pdf.Forms.Field.FullName", + "Aspose.Pdf.Forms.Field.Value" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "populate-pdf-form-from-xml-xslt.cs", - "title": "Populate PDF Form Fields from XML using XSLT", - "description": "Demonstrates loading a PDF template, applying an XSLT transformation to XML data, and binding the transformed data to the PDF form fields before saving the result.", + "filename": "populate-pdf-form-fields-using-xslt.cs", + "title": "Populate PDF Form Fields Using XSLT Transformation", + "description": "Shows how to load a PDF template, transform XML data with an XSLT stylesheet using BindXml, and save the resulting PDF with populated form fields.", "tags": [ "pdf", - "xml", + "form-fields", "xslt", - "form-filling", - "aspose-pdf" + "xml", + "aspose.pdf" ], "apis_used": [ "Aspose.Pdf.Document", @@ -47334,118 +57278,142 @@ ], "difficulty": "beginner" }, + { + "filename": "populate-pdf-form-from-csv.cs", + "title": "Populate PDF Form Fields from CSV", + "description": "Shows how to load a PDF form, read a CSV file with header and data rows, map each column to a matching form field, set values for various field types, and save the filled PDF.", + "tags": [ + "pdf", + "form", + "csv", + "field-mapping", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.CheckboxField", + "Aspose.Pdf.Forms.ComboBoxField", + "Aspose.Pdf.Forms.ListBoxField", + "Aspose.Pdf.Forms.RadioButtonField", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "intermediate" + }, + { + "filename": "populate-pdf-form-from-xml-xslt.cs", + "title": "Populate Pdf Form From Xml Xslt", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "read-pdf-form-field-value.cs", "title": "Read PDF Form Field Value", - "description": "Shows how to open a PDF with Aspose.Pdf, locate a form field by its name, retrieve the field's current value, and output it to the console.", + "description": "Loads a PDF document, finds a form field by its name, extracts the field's value, and prints it to the console.", "tags": [ "pdf", "form", "field", - "read", - "aspose" + "aspose", + "read" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.WidgetAnnotation", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Forms.Form.HasField" + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Field" ], "difficulty": "beginner" }, { "filename": "remove-form-field-from-pdf.cs", "title": "Remove a Form Field from a PDF", - "description": "Shows how to load a PDF, verify the existence of a specific form field, and delete that field using Aspose.Pdf's Form collection.", + "description": "Shows how to verify the existence of a form field in a PDF and delete it using Aspose.Pdf, then save the modified document.", "tags": [ "pdf", "form", - "remove", + "delete", "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Form.HasField", "Aspose.Pdf.Forms.Form.Delete", - "Aspose.Pdf.Forms.WidgetAnnotation", - "Aspose.Pdf.Forms.Form.this[string]" + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "remove-form-fields-first-page.cs", "title": "Remove Form Fields from First PDF Page", - "description": "Demonstrates how to load a PDF, locate all form fields on the first page, delete them, and save the cleaned document as a template.", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, flatten (remove) all form fields on the first page, and save the cleaned template page.", "tags": [ "pdf", "forms", - "delete", - "aspose-pdf", + "flatten", + "aspose.pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Form.GetFieldsInRect", - "Aspose.Pdf.Forms.Form.Delete" + "Aspose.Pdf.Page.Flatten", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "remove-javascript-actions-from-pdf-form-fields.cs", "title": "Remove JavaScript Actions from PDF Form Fields", - "description": "Demonstrates how to strip all JavaScript actions from AcroForm fields and document‑level scripts in a PDF to improve security before distribution.", + "description": "The example loads a PDF, iterates through all form fields, clears any JavaScript actions attached to the fields, and saves the cleaned document.", "tags": [ "pdf", "javascript", - "forms", + "form-fields", "security", - "aspose" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.Form", "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Annotations.WidgetAnnotation", - "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Forms.Field.Actions", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "remove-signature-form-fields.cs", "title": "Remove Signature Form Fields from PDF", - "description": "Shows how to loop through a PDF's form collection, identify fields of type Signature, and delete them using Aspose.Pdf.", + "description": "Demonstrates how to iterate through a PDF's form collection and delete all fields of the Signature subtype using Aspose.Pdf.", "tags": [ "pdf", "forms", "signature", "remove", - "aspnet" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Field", "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Annotations.WidgetAnnotation", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Forms.Form.Delete" + "Aspose.Pdf.Forms.Form.Delete", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "remove-typewriter-forms-page-3.cs", - "title": "Remove Typewriter Form XObjects from Page 3", - "description": "Demonstrates how to locate form XObjects of type 'Typewriter' on the third page of a PDF using TextFragmentAbsorber and delete them from the page's form resources.", + "filename": "remove-typewriter-form-fields-page-3.cs", + "title": "Remove Typewriter Form Fields from Page 3", + "description": "Demonstrates how to use TextFragmentAbsorber to locate and delete Typewriter form XObjects (subtype \"Form\") on the third page of a PDF document.", "tags": [ - "pdf", "forms", "textfragmentabsorber", - "delete", + "pdf", + "remove", "page3" ], "apis_used": [ @@ -47453,105 +57421,203 @@ "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragmentAbsorber", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.XForm", - "Aspose.Pdf.Resources.Forms", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.XForm" ], "difficulty": "intermediate" }, + { + "filename": "remove-typewriter-forms-page-3.cs", + "title": "Remove Typewriter Forms Page 3", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "rename-pdf-form-field.cs", "title": "Rename PDF Form Field Programmatically", - "description": "Shows how to locate an existing form field in a PDF, change its Name, MappingName, and tooltip, and save the updated document using Aspose.Pdf.", + "description": "Shows how to load a PDF, locate a specific form field, rename its Name, PartialName, and MappingName, and save the updated document.", "tags": [ "pdf", "form", "rename", - "aspose.pdf", - "c#" + "field", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.Form", "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.Form.HasField", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Forms.Form.HasField" + ], + "difficulty": "intermediate" + }, + { + "filename": "replace-placeholder-with-current-date.cs", + "title": "Replace Placeholder with Current Date in PDF Form", + "description": "Shows how to load a PDF, locate a text box form field, generate a formatted current date, and replace the placeholder text with that date using Aspose.Pdf.", + "tags": [ + "pdf", + "form-field", + "date-replacement", + "aspose.pdf", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.PageDate", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Form" + ], + "difficulty": "beginner" + }, + { + "filename": "replace-xfa-with-acroform-xml-template.cs", + "title": "Replace XFA Form with AcroForm Using XML Template", + "description": "Shows how to load a PDF containing an XFA form, assign new XFA data from an XML template, convert the form to a standard AcroForm, and save the updated PDF.", + "tags": [ + "XFA", + "AcroForm", + "Aspose.Pdf", + "XML", + "form-conversion" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Form.AssignXfa", + "Aspose.Pdf.Forms.Form.HasXfa", + "Aspose.Pdf.Forms.Form.Type", + "Aspose.Pdf.Forms.FormType.Standard", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "replace-xfa-with-acroform.cs", - "title": "Replace XFA Form with AcroForm Using XML Template", - "description": "Demonstrates how to remove an existing XFA form from a PDF and create a static AcroForm by importing field definitions from an external XML template.", + "title": "Replace Xfa With Acroform", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "repopulate-pdf-form-fields-from-xml.cs", + "title": "Repopulate PDF Form Fields from XML (XFA)", + "description": "Shows how to load a PDF, read transformed XML data, assign it to the XFA form, and save the updated PDF with repopulated fields.", "tags": [ + "pdf", "xfa", - "acroform", - "pdf-forms", - "aspose-pdf", - "xml" + "form", + "xml", + "repopulate" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Form", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.CheckboxField", - "Aspose.Pdf.Forms.RadioButtonField", - "Aspose.Pdf.Forms.ListBoxField", - "Aspose.Pdf.Forms.ComboBoxField", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Document.Form.AssignXfa", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "require-signature-field-lock-pdf.cs", "title": "Require Signature Field and Lock PDF After Signing", - "description": "Shows how to add a required digital signature field, sign it with a PKCS#7 certificate, and lock the PDF to prevent any further modifications.", + "description": "Demonstrates how to add a required digital signature field to a PDF, apply a PKCS#7 signature, and lock the document using an MDP signature to prevent further changes.", "tags": [ - "digital-signature", - "signature-field", - "pdf-lock", - "Aspose.Pdf", - "PKCS7" + "signature", + "pdf", + "locking", + "required-field", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.PKCS7", "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Forms.PKCS7", "Aspose.Pdf.Forms.DocMDPSignature", "Aspose.Pdf.Forms.DocMDPAccessPermissions" ], "difficulty": "intermediate" }, + { + "filename": "restore-editability-of-flattened-pdf-form-fields.cs", + "title": "Restore Editability of Flattened PDF Form Fields", + "description": "Shows how to detect a flattened PDF, enable automatic form restoration, make form annotations independent, and save the document to regain editability where possible.", + "tags": [ + "pdf", + "form", + "flatten", + "restore", + "Aspose.Pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Form", + "Aspose.Pdf.Form.AutoRestoreForm", + "Aspose.Pdf.Form.MakeFormAnnotationsIndependent", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "intermediate" + }, { "filename": "rotate-form-field-label.cs", "title": "Rotate PDF Form Field Label", - "description": "Demonstrates how to rotate a form field label by 45 degrees using Aspose.Pdf by rotating a Rectangle and adding a read‑only TextBoxField to a PDF document.", + "description": "Shows how to rotate a form field label in a PDF document by 45 degrees using Aspose.Pdf.", "tags": [ "pdf", "form-field", "rotation", "label", - "aspose-pdf" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", + "Aspose.Pdf.Forms.Field", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Rectangle.Rotate", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Document.Form.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, + { + "filename": "save-pdf-incremental-updates.cs", + "title": "Save PDF with Incremental Updates to Preserve Form Data", + "description": "Demonstrates opening a PDF with a writable stream, updating a form field, and saving the document using incremental updates so previous revisions remain intact.", + "tags": [ + "pdf", + "incremental-save", + "form-fields", + "aspose-pdf", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.ComboBoxField", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.HasIncrementalUpdate" + ], + "difficulty": "intermediate" + }, { "filename": "select-listbox-item-in-pdf-form.cs", - "title": "Select ListBox Item in PDF Form", - "description": "Loads a PDF, retrieves a ListBox form field by name, sets its selected index, and saves the updated document.", + "title": "Select Listbox Item In Pdf Form", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "select-listbox-option-in-pdf-form.cs", + "title": "Select ListBox Option in PDF Form", + "description": "Shows how to load a PDF, locate a ListBox form field, set its selected option by index, and save the modified document.", "tags": [ "pdf", - "form", "listbox", + "form", "aspose", "csharp" ], @@ -47559,6 +57625,7 @@ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.ListBoxField", "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Forms.ListBoxField.Options", "Aspose.Pdf.Forms.ListBoxField.Selected", "Aspose.Pdf.Document.Save" ], @@ -47566,209 +57633,233 @@ }, { "filename": "select-radio-button-in-pdf-form.cs", - "title": "Select Radio Button in PDF Form", - "description": "Loads a PDF, locates a radio button field by its name, sets the desired option value, and saves the modified document.", + "title": "Select Radio Button In Pdf Form", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "select-radio-button-option-in-pdf-form.cs", + "title": "Select Radio Button Option in PDF Form", + "description": "Demonstrates how to load an existing PDF, locate a radio button field, set a specific option, and save the updated document using Aspose.Pdf.", "tags": [ "pdf", - "forms", + "form", "radiobutton", - "aspose-pdf", + "aspose.pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Save", "Aspose.Pdf.Forms.RadioButtonField", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Forms.RadioButtonField.Value", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.RadioButtonField.Selected", + "Aspose.Pdf.Forms.RadioButtonField.Count" ], "difficulty": "beginner" }, { - "filename": "set-beveled-border-style-for-pdf-form-field.cs", - "title": "Set Beveled Border Style for PDF Form Field", - "description": "Shows how to create a PDF, add a text box form field, and apply a beveled border style to give the field a three‑dimensional appearance.", + "filename": "set-beveled-border-on-pdf-form-field.cs", + "title": "Set Beveled Border on PDF Form Field", + "description": "Demonstrates how to load a PDF, locate a form field, and apply a beveled border style with a specified color, then save the document.", "tags": [ "pdf", - "form-field", + "form", "border", "beveled", - "aspose" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.Field", "Aspose.Pdf.Forms.Border", "Aspose.Pdf.Forms.BorderStyle", - "Aspose.Pdf.Form.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Color" ], "difficulty": "beginner" }, + { + "filename": "set-beveled-border-style-for-pdf-form-field.cs", + "title": "Set Beveled Border Style For Pdf Form Field", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "set-calculation-order-for-pdf-form-fields.cs", - "title": "Set Calculation Order for PDF Form Fields", - "description": "Shows how to enable automatic recalculation, define a calculation order, and attach a JavaScript calculation to PDF form fields using Aspose.Pdf.", - "tags": [ - "pdf", - "form", - "calculation", - "javascript", - "aspose" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.JavascriptAction", - "Aspose.Pdf.Forms.Form.AutoRecalculate", - "Aspose.Pdf.Forms.Form.CalculatedFields", - "Aspose.Pdf.Forms.Field.Actions.OnCalculate", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "intermediate" + "title": "Set Calculation Order For Pdf Form Fields", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "set-character-limit-for-pdf-form-field.cs", - "title": "Set Character Limit for PDF Form Field", - "description": "Demonstrates how to limit the number of characters a user can enter in a PDF form field using Aspose.Pdf's FormEditor class.", - "tags": [ - "pdf", - "form", - "field-limit", - "aspose", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.BindPdf", - "Aspose.Pdf.Facades.FormEditor.SetFieldLimit", - "Aspose.Pdf.Facades.FormEditor.Save" - ], - "difficulty": "beginner" + "title": "Set Character Limit For Pdf Form Field", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "set-checkbox-default-checked.cs", "title": "Set Checkbox Default State to Checked in PDF", - "description": "Shows how to create a PDF, add a checkbox form field, and programmatically set its default value to checked using Aspose.Pdf.", + "description": "Demonstrates how to programmatically set a checkbox form field to be checked by default when generating a PDF with Aspose.Pdf.", "tags": [ "checkbox", "form", "pdf", - "Aspose.Pdf", - "default-value" + "aspose-pdf", + "default-checked" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.CheckboxField", - "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Form.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "set-current-date-in-pdf-form-field.cs", - "title": "Set Current Date in PDF Form Field", - "description": "Shows how to load a PDF, locate a DateField form field, set a custom display format, assign the current system date, and save the updated document.", + "filename": "set-checkbox-field-in-pdf.cs", + "title": "Set Checkbox Field Value in PDF", + "description": "Loads an existing PDF, locates a checkbox form field, sets its checked state based on a command‑line argument, and saves the modified document.", "tags": [ "pdf", "form", - "datefield", - "aspose", + "checkbox", + "aspose.pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.DateField", + "Aspose.Pdf.Forms.CheckboxField", "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Forms.DateField.DateFormat", - "Aspose.Pdf.Forms.DateField.Value", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "set-dashed-border-on-pdf-form-field.cs", - "title": "Set Dashed Border on PDF Form Field", - "description": "Shows how to load a PDF, locate a specific form field, and apply a dashed border style using Aspose.Pdf before saving the document.", + "filename": "set-current-date-in-pdf-form-field.cs", + "title": "Set Current Date In Pdf Form Field", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "set-custom-font-for-signature-field.cs", + "title": "Set Custom TrueType Font for PDF Signature Field", + "description": "Demonstrates how to register a custom TrueType font and assign it to a signature form field using the DefaultAppearance property in Aspose.Pdf.", "tags": [ - "pdf", - "form-field", - "border", - "dashed", - "aspose" + "signature", + "custom-font", + "pdf-forms", + "default-appearance", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.Border", - "Aspose.Pdf.Forms.BorderStyle", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.FontRepository", + "Aspose.Pdf.FontRepository.Sources.Add", + "Aspose.Pdf.FontRepository.OpenFont", + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Annotations.DefaultAppearance" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "set-datefield-default-time.cs", - "title": "Set DateField Default Time in PDF", - "description": "Demonstrates adding a DateField to a PDF, configuring its display format to HH:mm:ss, and setting the current system time as the default value using Aspose.Pdf.", + "filename": "set-dashed-border-for-pdf-form-field.cs", + "title": "Set Dashed Border for PDF Form Field", + "description": "Loads a PDF, locates a specific form field, and applies a dashed border style to visually mark it as optional, then saves the updated document.", "tags": [ "pdf", - "datefield", "form", - "aspose", - "csharp" + "border", + "dashed", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.DateField", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.DefaultAppearance", - "Aspose.Pdf.FormCollection.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.Border", + "Aspose.Pdf.Annotations.BorderStyle" ], "difficulty": "beginner" }, + { + "filename": "set-dashed-border-on-pdf-form-field.cs", + "title": "Set Dashed Border On Pdf Form Field", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "set-datefield-default-time.cs", + "title": "Set Datefield Default Time", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "set-default-appearance-for-pdf-form-field.cs", - "title": "Set Default Appearance for PDF Form Field", - "description": "Shows how to create a PDF, add a TextBox form field, and define its default appearance (font, size, and color) using Aspose.Pdf.", + "title": "Set Default Appearance For Pdf Form Field", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "set-default-appearance-for-pdf-text-field.cs", + "title": "Set Default Appearance for PDF Text Field", + "description": "Shows how to load a PDF, locate a TextBoxField, and assign a DefaultAppearance (font, size, and color) to define the field's default appearance.", "tags": [ - "form-field", + "pdf", + "form", "default-appearance", - "font", - "color", - "Aspose.Pdf" + "textboxfield", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.Form", "Aspose.Pdf.Forms.TextBoxField", "Aspose.Pdf.Annotations.DefaultAppearance", - "Aspose.Pdf.Form", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "set-default-combobox-selection.cs", - "title": "Set Default Selected Item in PDF ComboBox", - "description": "Demonstrates how to load a PDF, locate a ComboBox form field named \"Country\", set its default selected value to \"United States\", and save the updated document using Aspose.Pdf.", + "title": "Set Default Combobox Selection", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "set-default-selected-country-in-pdf-combo-box.cs", + "title": "Set Default Selected Country in PDF Combo Box", + "description": "Shows how to set the default selected item of the 'Country' combo box to \"United States\" in a PDF using Aspose.Pdf FormEditor.", "tags": [ "pdf", - "form", "combobox", - "aspose", + "form", + "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Field", "Aspose.Pdf.Forms.ComboBoxField", + "Aspose.Pdf.Forms.ComboBoxField.Value", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" @@ -47776,7 +57867,7 @@ { "filename": "set-default-selected-radio-button-value.cs", "title": "Set Default Selected Radio Button Value in PDF Form", - "description": "Demonstrates how to programmatically set the default selected option of a radio button field in a PDF form using Aspose.Pdf.", + "description": "Demonstrates how to programmatically set the default selected option of a radio button field in a PDF form using Aspose.Pdf for .NET.", "tags": [ "pdf", "form", @@ -47788,133 +57879,194 @@ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.Form", "Aspose.Pdf.Forms.RadioButtonField", - "Aspose.Pdf.Forms.RadioButtonField.Value", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "set-default-value-for-pdf-form-field.cs", - "title": "Set Default Value for a PDF Form Field", - "description": "Creates a PDF, adds a text box form field, and defines its default text and appearance so the value is shown when the PDF opens.", + "title": "Set Default Value For Pdf Form Field", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "set-default-value-for-pdf-form-textbox.cs", + "title": "Set Default Value for PDF Form TextBox", + "description": "Shows how to create a PDF document, add a TextBox form field, set its default appearance, and define a default value that appears when the PDF is opened.", "tags": [ - "pdf", - "form", + "pdf-form", "default-value", "textbox", - "aspose-pdf" + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Annotations.DefaultAppearance", - "Aspose.Pdf.Form.Add", + "Aspose.Pdf.Forms.DefaultAppearance", + "Aspose.Pdf.Form", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "set-export-value-radio-button-option.cs", - "title": "Set Export Value for Radio Button Option in PDF Form", - "description": "Demonstrates how to load a PDF, locate a radio button field, change the export value of a specific option, and save the updated document using Aspose.Pdf.", + "title": "Set Export Value for Radio Button Option in PDF", + "description": "Demonstrates how to load a PDF, locate a radio button field, set the export value of a specific option, and save the updated document using Aspose.Pdf.", "tags": [ "pdf", - "form", + "forms", "radiobutton", "export-value", - "aspose" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", "Aspose.Pdf.Forms.Form", "Aspose.Pdf.Forms.RadioButtonField", - "Aspose.Pdf.Forms.Option" + "Aspose.Pdf.Forms.Option", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "set-field-visibility-based-on-other-field.cs", - "title": "Set Form Field Visibility Based on Another Field Value", - "description": "Shows how to attach JavaScript to a PDF form field with Aspose.Pdf so that the visibility of a target field is toggled depending on the source field's value.", + "title": "Set Field Visibility Based On Other Field", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "set-file-attachment-size-limit.cs", + "title": "Set File Attachment Size Limit for PDF Form Fields", + "description": "Shows how to restrict the maximum file size for a file‑select (attachment) form field to 2 MB by configuring Aspose.Pdf's Document.FileSizeLimitToMemoryLoading property.", "tags": [ - "pdf", - "form", - "visibility", - "javascript", - "aspose-pdf" + "file-attachment", + "form-field", + "size-limit", + "Aspose.Pdf", + "C#" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.JavascriptAction", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.FileSizeLimitToMemoryLoading", + "Aspose.Pdf.Forms.FileSelectBoxField", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Form" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "set-font-size-style-pdf-text-field.cs", - "title": "Set Font Size and Style for a PDF Text Field", - "description": "Shows how to add a TextBoxField to a PDF and configure its font name, size, color, and minimum/maximum font sizes using Aspose.Pdf.", + "title": "Set Font Size Style Pdf Text Field", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "set-font-size-style-pdf-textbox-field.cs", + "title": "Set Font Size and Style for PDF TextBox Field", + "description": "Shows how to adjust minimum/maximum font sizes, define a default appearance, and apply rich‑text styling to a TextBox form field in a PDF using Aspose.Pdf.", "tags": [ "pdf", - "form-field", + "form", "font", "appearance", - "aspose-pdf" + "rich-text" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.DefaultAppearance", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.Form.Add", + "Aspose.Pdf.Text.DefaultAppearance", + "Aspose.Pdf.Forms.RichTextBoxField", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "set-form-field-appearance-custom-font.cs", "title": "Set Form Field Appearance with a Custom Font", - "description": "Shows how to load an external TrueType font and apply it to a PDF textbox form field using Aspose.Pdf, ensuring the font is embedded in the output PDF.", + "description": "Demonstrates how to load an external TrueType font and apply it to a PDF form text box field using the DefaultAppearance property.", "tags": [ - "form-field", + "forms", "custom-font", - "pdf", + "default-appearance", "textbox", - "aspose-pdf" + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.FontRepository.OpenFont", - "Aspose.Pdf.Font", + "Aspose.Pdf.Text.FontRepository.OpenFont", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.DefaultAppearance", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Form" + "Aspose.Pdf.Annotations.DefaultAppearance", + "Aspose.Pdf.Forms.Form.Add", + "Aspose.Pdf.Forms.Form.AddFieldAppearance", + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate" }, { - "filename": "set-form-field-visible-non-printable.cs", - "title": "Set Form Field Visible but Non-Printable in PDF", - "description": "Shows how to make an AcroForm field visible on screen while suppressing its printing using Aspose.Pdf for .NET.", + "filename": "set-form-field-border-color-width.cs", + "title": "Set Form Field Border Color and Width", + "description": "Shows how to load a PDF, locate a form field, and apply a corporate‑style solid blue border with a specific width using Aspose.Pdf.", + "tags": [ + "form", + "border", + "style", + "pdf", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Annotations.Border", + "Aspose.Pdf.Color", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner" + }, + { + "filename": "set-form-field-visibility-based-on-another-field.cs", + "title": "Set Form Field Visibility Based on Another Field", + "description": "Shows how to programmatically toggle the visibility of a PDF form field by attaching JavaScript to a source field using Aspose.Pdf.", "tags": [ + "pdf", "form", "visibility", + "javascript", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.JavascriptAction", + "Aspose.Pdf.Forms.HideAction", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "intermediate" + }, + { + "filename": "set-form-field-visible-non-printable.cs", + "title": "Set Form Field Visibility to Non‑Printable", + "description": "Shows how to make a PDF form field visible on screen but omitted from printing by clearing the Print flag and ensuring it is not hidden.", + "tags": [ + "pdf", + "form-field", + "visibility", "non-printable", - "Aspose.Pdf", - "C#" + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", "Aspose.Pdf.Forms.WidgetAnnotation", "Aspose.Pdf.Annotations.AnnotationFlags", + "Aspose.Pdf.Document.Form", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" @@ -47922,79 +58074,97 @@ { "filename": "set-initial-zoom-level-for-pdf-form.cs", "title": "Set Initial Zoom Level for PDF Form", - "description": "Demonstrates how to set the initial view zoom level of a PDF form by assigning an XYZExplicitDestination to the document's OpenAction and saving the result.", + "description": "Shows how to define an initial zoom factor for a PDF form by creating an XYZExplicitDestination, assigning it to the document's OpenAction, and optionally fitting the viewer window.", "tags": [ "pdf", "zoom", + "openaction", "form", - "aspose-pdf", - "openaction" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.XYZExplicitDestination", "Aspose.Pdf.Annotations.GoToAction", + "Aspose.Pdf.Document.OpenAction", + "Aspose.Pdf.Document.FitWindow", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "set-max-file-size-for-pdf-form-attachment.cs", - "title": "Set Maximum File Size for PDF Form Attachment to 2 MB", - "description": "Demonstrates how to limit the size of files that can be attached to a PDF form field to 2 MB using Aspose.Pdf's global memory‑loading limit and FormEditor.", + "title": "Set Max File Size For Pdf Form Attachment", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "set-max-length-for-pdf-text-field.cs", + "title": "Set Maximum Length for PDF Text Field", + "description": "Shows how to open a PDF, locate the 'CustomerName' TextBoxField, and limit its input to 50 characters using Aspose.Pdf.", "tags": [ "pdf", "form", - "file-size-limit", - "aspose.pdf", - "c#" + "textfield", + "maxlength", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.FileSizeLimitToMemoryLoading", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Facades.FormEditor", - "Aspose.Pdf.Facades.FormEditor.SetMaxFileSize" + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.TextBoxField.MaxLen", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "set-max-length-pdf-text-form-field.cs", - "title": "Set Maximum Length for PDF Text Form Field", - "description": "Demonstrates how to load a PDF, locate a text box form field, set its MaxLen property to restrict user input, and save the updated document.", + "title": "Set Max Length Pdf Text Form Field", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "set-max-length-pdf-textbox-field.cs", + "title": "Set Maximum Length for PDF TextBox Form Field", + "description": "Shows how to load a PDF with Aspose.Pdf, locate a text box form field, set its MaxLen property to restrict user input, and save the modified document.", "tags": [ "pdf", - "form", + "form-field", "maxlength", - "textbox", - "aspose" + "aspose.pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Field", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Forms.Form" + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Forms.TextBoxField.MaxLen", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "set-noexport-flag-for-sensitive-pdf-form-fields.cs", "title": "Set NoExport Flag for Sensitive PDF Form Fields", - "description": "Loads a PDF, identifies sensitive form fields by name, marks them as non‑exportable (NoExport) and saves the updated document.", + "description": "Shows how to load a PDF with Aspose.Pdf, iterate over its form fields, and mark fields containing a specific keyword as non‑exportable (NoExport) before saving.", "tags": [ "pdf", "form-fields", "noexport", - "exportable", - "aspose-pdf" + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Forms.Field.Exportable", + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Form.Fields", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" @@ -48002,91 +58172,94 @@ { "filename": "set-password-field-max-length.cs", "title": "Set Maximum Length for PDF Password Field", - "description": "Shows how to load a PDF with Aspose.Pdf, locate a password form field, set its maximum character length to 20, and save the updated document.", + "description": "Shows how to load a PDF with Aspose.Pdf, locate a password box field, set its maximum character length to 20, and save the updated document.", "tags": [ "pdf", - "form-field", - "password", + "password-field", "max-length", - "aspose" + "aspose-pdf", + "forms" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.PasswordBoxField", - "Aspose.Pdf.Document.Save", "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Forms.FormField" + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "set-pdf-checkbox-field.cs", - "title": "Set PDF Checkbox Field", - "description": "Loads an existing PDF, locates a checkbox form field, sets its checked state based on a boolean value, and saves the modified document.", - "tags": [ - "pdf", - "form-fields", - "checkbox", - "aspose-pdf", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.CheckboxField", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Forms.Form.Fields" - ], - "difficulty": "beginner" + "title": "Set Pdf Checkbox Field", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "set-pdf-form-field-read-only.cs", "title": "Set PDF Form Field to Read‑Only", - "description": "Loads a PDF, finds the form field named 'EmployeeID', marks it as read‑only to prevent user edits, and saves the updated document.", + "description": "Shows how to load a PDF, locate a text box form field, mark it as read‑only, and save the updated document.", "tags": [ "pdf", "form", "readonly", - "aspose", + "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.WidgetAnnotation", - "Aspose.Pdf.Forms.FormField.ReadOnly", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Form" ], "difficulty": "beginner" }, { - "filename": "set-pdf-form-fields-read-only.cs", - "title": "Set PDF Form Fields to Read‑Only", - "description": "Shows how to load a PDF with Aspose.Pdf, iterate over widget annotations representing form fields, mark each field as read‑only, and save the updated document.", + "filename": "set-pdf-form-field-read-only__v2.cs", + "title": "Set PDF Form Field to Read‑Only", + "description": "Shows how to load a PDF, locate the \"EmployeeID\" form field, mark it as read‑only to prevent user modifications, and save the updated document.", "tags": [ "pdf", - "form-fields", + "form", "readonly", "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.WidgetAnnotation", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Forms.Field.ReadOnly" ], "difficulty": "beginner" }, + { + "filename": "set-pdf-form-fields-read-only.cs", + "title": "Set Pdf Form Fields Read Only", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "set-pdf-metadata-after-form-filling.cs", - "title": "Set PDF Metadata After Form Filling", - "description": "Loads a PDF, fills a form field, sets the document's author and title metadata, and saves the updated file.", + "title": "Set Pdf Metadata After Form Filling", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "set-pdf-metadata-after-form-processing.cs", + "title": "Set PDF Metadata After Form Processing", + "description": "Demonstrates loading a PDF with form fields, filling a text box, and updating the document's metadata such as author, title, subject, and keywords before saving.", "tags": [ "pdf", "metadata", - "form-filling", + "forms", "aspose-pdf", "csharp" ], @@ -48094,7 +58267,7 @@ "Aspose.Pdf.Document", "Aspose.Pdf.DocumentInfo", "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.TextBoxField", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" @@ -48102,9 +58275,9 @@ { "filename": "set-rich-text-field-html.cs", "title": "Set Rich Text Field Value with HTML in PDF", - "description": "Shows how to load a PDF, locate a RichTextBox form field, assign HTML‑formatted content via the FormattedValue property, optionally apply a style, and save the updated document.", + "description": "Demonstrates how to load a PDF, locate a RichTextBox form field, and assign HTML markup to its FormattedValue to display formatted text.", "tags": [ - "richtext", + "rich-text", "pdf-form", "html", "aspose-pdf", @@ -48113,41 +58286,41 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.RichTextBoxField", + "Aspose.Pdf.Forms.Form", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Forms.RichTextBoxField.FormattedValue", - "Aspose.Pdf.Forms.RichTextBoxField.Style" + "Aspose.Pdf.Forms.FormField" ], "difficulty": "beginner" }, { - "filename": "set-tooltip-for-pdf-form-field.cs", - "title": "Set Tooltip for PDF Form Field (Email)", - "description": "Demonstrates loading a PDF, locating the 'Email' form field, setting its tooltip (alternate name) to guide users on the required email format, and saving the updated document.", + "filename": "set-tooltip-for-pdf-email-field.cs", + "title": "Set Tooltip for PDF Email Form Field", + "description": "The example loads a PDF, finds the TextBox form field named \"Email\", sets its tooltip (alternate name) to show the required email format, and saves the updated document.", "tags": [ "pdf", - "form-field", + "form", "tooltip", - "aspose", - "csharp" + "textboxfield", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.TextBoxField", "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.Field.AlternateName", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Form" ], "difficulty": "beginner" }, { "filename": "sign-pdf-and-lock-signature-field.cs", "title": "Sign PDF and Lock Signature Field", - "description": "Shows how to digitally sign a PDF signature field with a PKCS#7 certificate and then lock the field to prevent any further edits during review.", + "description": "Shows how to sign a PDF signature field with a PKCS#7 certificate using Aspose.Pdf and then lock the field to prevent further modifications during document review.", "tags": [ - "digital-signature", - "pdf", - "signature-field", + "pdf-signature", "field-lock", + "digital-signature", + "incremental-update", "aspose-pdf" ], "apis_used": [ @@ -48162,377 +58335,466 @@ }, { "filename": "style-pdf-form-field-border.cs", - "title": "Style PDF Form Field Border Color and Width", - "description": "Demonstrates how to load a PDF, locate a form field widget, and apply corporate border color and width using Aspose.Pdf.", - "tags": [ - "pdf", - "form-field", - "border", - "aspose-pdf", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Annotations.WidgetAnnotation", - "Aspose.Pdf.Annotations.Border", - "Aspose.Pdf.Color", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner" + "title": "Style Pdf Form Field Border", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "synchronize-pdf-form-data-xfdf.cs", - "title": "Synchronize PDF Form Data via XFDF", - "description": "Exports form field values from a source PDF to an XFDF (XML) file and imports them into a target PDF, effectively synchronizing the form data between the two documents.", + "filename": "synchronize-pdf-form-data-using-xfdf.cs", + "title": "Synchronize PDF Form Data Using XFDF", + "description": "Demonstrates exporting form fields from a source PDF to an XFDF file and importing that data into a target PDF to keep form values synchronized.", "tags": [ "pdf", - "form", + "forms", "xfdf", "export", "import" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.ExportAnnotationsToXfdf", + "Aspose.Pdf.Forms.TextBoxField", "Aspose.Pdf.Annotations.XfdfReader.ReadFields", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.ExportAnnotationsToXfdf", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate" }, + { + "filename": "synchronize-pdf-form-data-xfdf.cs", + "title": "Synchronize Pdf Form Data Xfdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "synchronize-xfdf-form-data-across-multiple-pdfs.cs", - "title": "Synchronize XFDF Form Data Across Multiple PDFs", - "description": "Demonstrates loading XFDF form data once and applying it to several PDF documents in parallel, then saving the synchronized PDFs.", - "tags": [ - "xfdf", - "form-data", - "pdf", - "parallel", - "synchronization" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.XfdfReader", - "Aspose.Pdf.XfdfReader.ReadFields", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Dispose" - ], - "difficulty": "intermediate" + "title": "Synchronize Xfdf Form Data Across Multiple Pdfs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "transform-import-pdf-form-data-json.cs", - "title": "Transform and Import PDF Form Data via JSON", - "description": "The example creates a source PDF with a form field, exports its data to JSON, renames a field, and imports the transformed data into a target PDF.", - "tags": [ - "pdf-forms", - "json", - "data-transformation", - "aspose-pdf", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.Form.ExportToJson", - "Aspose.Pdf.Forms.Form.ImportFromJson", - "Aspose.Pdf.Forms.Form.Add" - ], - "difficulty": "intermediate" + "title": "Transform Import Pdf Form Data Json", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "truncate-textboxfield-input-to-max-length.cs", - "title": "Truncate TextBoxField Input to Max Length", - "description": "Demonstrates how to set a maximum character length for a PDF form TextBoxField using Aspose.Pdf, assign a longer string, and verify that the value is automatically truncated.", + "title": "Truncate Textboxfield Input To Max Length", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "update-pdf-form-fields-from-xml.cs", + "title": "Update Pdf Form Fields From Xml", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "update-pdf-form-fields.cs", + "title": "Update PDF Form Fields without Full Document Load", + "description": "Shows how to modify text fields in a PDF form using Aspose.Pdf's core API, avoiding the heavy Facades layer and loading the entire document into memory.", "tags": [ "pdf", "form", - "textbox", - "maxlength", - "aspose" + "fields", + "update", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.TextBoxField", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Forms.TextBoxField.MaxLen", - "Aspose.Pdf.Forms.TextBoxField.Value" + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.CheckBoxField" ], "difficulty": "beginner" }, { - "filename": "update-pdf-form-fields-from-xml.cs", - "title": "Update PDF Form Fields from XML Subset", - "description": "Shows how to load a PDF, read an XML file that contains a subset of form field values, and update the matching fields in the PDF form before saving.", + "filename": "validate-age-numberfield-non-numeric-input.cs", + "title": "Validate Age NumberField Rejects Alphabetic Input", + "description": "Shows how to create a numeric field in a PDF with Aspose.Pdf, set allowed characters, and confirm that assigning alphabetic characters throws an InvalidValueFormatException.", "tags": [ "pdf", "form", - "xml", - "field-mapping", - "aspose-pdf" + "numberfield", + "validation", + "aspose.pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Document.Form.HasField" + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.NumberField", + "Aspose.Pdf.Forms.InvalidValueFormatException" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "validate-date-field-minimum-date.cs", - "title": "Validate Date Field Minimum Date in PDF", - "description": "Shows how to create a PDF with a date picker form field and attach JavaScript validation that rejects dates earlier than January 1, 2000.", + "title": "Validate Date Field Minimum Date", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "validate-email-field-before-saving-pdf.cs", + "title": "Validate Email Field Before Saving Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "validate-email-form-field.cs", + "title": "Validate Email Form Field Before Saving PDF", + "description": "Demonstrates how to load a PDF, retrieve a form field, validate that the email contains an '@' character, and save the document only if validation passes.", "tags": [ "pdf", - "datefield", + "form", "validation", - "javascript", - "forms" + "email", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.DateField", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Forms.DateField.Actions.OnValidate", + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Forms.Field", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "validate-email-field-before-saving-pdf.cs", - "title": "Validate Email Field Before Saving PDF", - "description": "Loads a PDF, retrieves the 'email' form field, checks that its value contains an '@' character, and saves the document only if the validation succeeds.", + "filename": "validate-file-attachment-size-in-pdf-form.cs", + "title": "Validate File Attachment Size in PDF Form", + "description": "The example loads a PDF form, checks the size of a selected file in a FileSelectBoxField, and either adds a warning annotation or enables a submit button if the file is within a 5 MB limit.", "tags": [ "pdf", "form", "validation", - "email", + "file-size", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.FileSelectBoxField", + "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Forms.ButtonField", + "Aspose.Pdf.Forms.SubmitFormAction", + "Aspose.Pdf.FileSpecification" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "validate-incorrect-password-prevents-access.cs", "title": "Validate Incorrect Password Prevents Access to Encrypted PDF Form Field", - "description": "The example creates a PDF with a password‑protected form field, encrypts the document, then demonstrates that opening it with a wrong password throws an exception while the correct password allows reading the field value.", + "description": "Demonstrates creating a PDF with a form field, encrypting it with user/owner passwords, and verifying that an incorrect password throws an InvalidPasswordException while the correct password allows field access.", "tags": [ "pdf-encryption", - "form-field", + "form-fields", "password-protection", - "aspose-pdf", - "invalid-password" + "invalid-password", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Document.Encrypt", "Aspose.Pdf.Permissions", - "Aspose.Pdf.InvalidPasswordException" + "Aspose.Pdf.CryptoAlgorithm" ], "difficulty": "intermediate" }, { - "filename": "validate-numeric-age-field-rejects-non-numeric-input.cs", - "title": "Validate Numeric Age Field Rejects Alphabetic Input", - "description": "The example creates a PDF with a numeric \"Age\" form field, restricts it to digits, and verifies that assigning alphabetic characters throws an InvalidValueFormatException.", + "filename": "validate-ipv4-address-in-pdf-form-field.cs", + "title": "Validate IPv4 Address in PDF Form Field", + "description": "Shows how to load a PDF, access a text box form field, validate its content against an IPv4 regular expression, and save the document.", "tags": [ "pdf", "form", - "numeric", "validation", - "Aspose.Pdf" + "ipv4", + "regex" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.NumberField", - "Aspose.Pdf.Forms.InvalidValueFormatException" + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Color" ], - "difficulty": "beginner" + "difficulty": "intermediate" + }, + { + "filename": "validate-numeric-age-field-rejects-non-numeric-input.cs", + "title": "Validate Numeric Age Field Rejects Non Numeric Input", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "validate-pdf-file-size.cs", - "title": "Validate PDF File Size Before Form Submission", - "description": "Shows how to enforce a 5 MB limit on an uploaded PDF by setting Aspose.Pdf's FileSizeLimitToMemoryLoading property and handling PdfException during document loading.", + "title": "Validate Pdf File Size", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "validate-required-form-fields.cs", + "title": "Validate Required Form Fields", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "validate-required-pdf-form-field.cs", + "title": "Validate Required PDF Form Field and Highlight Empty with Red Border", + "description": "Shows how to mark a PDF form field as required, check its value after a simulated submission, and apply a red border to empty required fields using Aspose.Pdf.", "tags": [ "pdf", - "file-size", + "form", "validation", - "aspose-pdf", - "forms" + "required-field", + "border" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.FileSizeLimitToMemoryLoading", - "Aspose.Pdf.PdfException" + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.Border", + "Aspose.Pdf.Color" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "validate-required-form-fields.cs", - "title": "Validate Required Form Fields Before Saving PDF", - "description": "Demonstrates how to check that all required form fields in a PDF are filled before allowing the document to be saved, using Aspose.Pdf.", + "filename": "validate-required-pdf-form-fields-before-export.cs", + "title": "Validate Required PDF Form Fields Before Exporting to JSON", + "description": "The example loads a PDF, checks that all fields marked as required contain a value, and only then exports the form data to a JSON file. It aborts the export if any required field is empty.", "tags": [ "pdf", "form-validation", - "required-fields", - "aspose-pdf", + "json-export", + "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Forms.Field.Required", - "Aspose.Pdf.Forms.Field.Value" + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Form.ExportToJson", + "Aspose.Pdf.Forms.Field.Required" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "validate-required-pdf-form-fields-export-json.cs", - "title": "Validate Required PDF Form Fields and Export to JSON", - "description": "The example checks that all required fields in a PDF form are filled before exporting the form data to a JSON file, preventing incomplete submissions.", + "title": "Validate Required Pdf Form Fields Export Json", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "validate-required-pdf-form-fields.cs", + "title": "Validate Required PDF Form Fields Before Saving", + "description": "Shows how to iterate through a PDF's form fields with Aspose.Pdf, check that every required field has a value, and abort the save if any are empty.", "tags": [ "pdf", "form-validation", - "json-export", + "required-fields", "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Field", "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Form.ExportToJson" + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.Field.Required", + "Aspose.Pdf.Forms.Field.Value", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "validate-xml-xsd-import-pdf-xfa.cs", - "title": "Validate XML against XSD and Import into PDF XFA Form", - "description": "The example validates an XML file using an XSD schema and, if valid, imports the XML data into an XFA form inside a PDF document with Aspose.Pdf.", + "filename": "validate-xml-xsd-fill-xfa-pdf.cs", + "title": "Validate XML with XSD and Fill XFA PDF Form", + "description": "The example validates an XML file against an XSD schema and, if successful, imports the data into an XFA PDF form using Aspose.Pdf.", "tags": [ "xml-validation", "xsd", - "pdf-form", "xfa", + "pdf-form", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Form.AssignXfa", - "Aspose.Pdf.Forms.Form.HasXfa", + "Aspose.Pdf.Form", + "Aspose.Pdf.Form.HasXfa", + "Aspose.Pdf.Form.AssignXfa", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, + { + "filename": "validate-xml-xsd-import-pdf-xfa.cs", + "title": "Validate Xml Xsd Import Pdf Xfa", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "verify-pdf-form-field-count.cs", - "title": "Verify PDF Form Field Count and Update a Field", - "description": "Loads a PDF, checks that the number of form fields matches an expected count using Document.Form.Count, optionally updates a field value, and saves the document.", + "title": "Verify PDF Form Field Count with Aspose.Pdf", + "description": "Loads a PDF document, checks the number of form fields using Document.Form.Count, and proceeds only when the count matches the expected value.", "tags": [ "pdf", - "forms", + "form", "field-count", "validation", "aspose-pdf" ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Form.Count", - "Aspose.Pdf.Forms.Form.HasField", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.Field.Value" + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Form", + "Aspose.Pdf.Form.Count" ], - "difficulty": "intermediate" + "difficulty": "beginner" } ] }, { "name": "working-with-graphs", - "file_count": 77, + "file_count": 129, "files": [ + "add-background-image-and-graph-to-pdf.cs", "add-centered-graph-to-pdf-page.cs", "add-colored-line-segments-to-pdf-graph.cs", + "add-dashed-rectangle-to-graph.cs", "add-dashed-rectangle-to-pdf-graph.cs", + "add-ellipse-to-pdf-page.cs", "add-ellipse-with-border-and-centered-text.cs", + "add-filled-arc-to-pdf-graph.cs", + "add-filled-arc-with-radial-gradient.cs", + "add-filled-circle-to-pdf-graph.cs", "add-filled-circle-to-pdf.cs", "add-filled-curve-to-pdf-graph.cs", + "add-filled-curve-with-opacity-and-border.cs", "add-filled-rectangle-dashed-border-to-pdf-graph.cs", + "add-filled-rectangle-with-dashed-border.cs", + "add-full-size-graph-to-pdf-page.cs", + "add-gradient-ellipse-graphs-to-pdfs.cs", "add-graph-matching-page-size.cs", + "add-graph-rectangle-watermark-to-pdf.cs", "add-graph-to-pdf.cs", "add-graph-watermark-to-pdf-pages.cs", "add-graph-with-shapes-to-pdf.cs", "add-line-to-pdf-graph.cs", + "add-multi-colored-line-segments-to-pdf-graph.cs", "add-non-overlapping-rectangles-to-pdf-graph.cs", "add-polygon-annotation-with-dashed-outline.cs", "add-rectangle-ellipse-graph-to-pdf.cs", "add-rectangle-radial-gradient-pdf.cs", + "add-rectangle-solid-red-fill-to-pdf-graph.cs", "add-rectangle-with-bounds-checking.cs", "add-rectangle-with-drop-shadow-to-pdf.cs", + "add-rectangle-with-shadow-to-pdf.cs", "add-regular-hexagon-to-pdf-graph.cs", "add-rotated-ellipse-to-pdf.cs", + "add-rounded-rectangle-with-fill-to-pdf-graph.cs", "add-rounded-rectangle-with-fill.cs", + "add-semi-transparent-rectangle-using-transparency-layer.cs", + "add-semi-transparent-rectangle.cs", "add-shadow-effect-to-filled-rectangle.cs", + "add-shapes-with-bounds-checking.cs", "add-solid-red-rectangle-to-pdf-graph.cs", "add-text-inside-graph-pdf.cs", + "add-text-inside-graph.cs", + "add-unfilled-arc-with-custom-stroke.cs", "add-unfilled-arc-with-line-width-and-dash-style.cs", "adjust-rectangle-bounds-in-pdf.cs", + "align-graph-to-left-margin-pdf.cs", "apply-background-image-to-pdf-graph.cs", "apply-clipping-region-to-graph.cs", + "batch-insert-company-logo-graph-into-pdfs.cs", "batch-insert-logo-graph-into-pdfs.cs", + "build-reusable-graph-for-pdf-pages.cs", "center-text-in-rectangle-pdf.cs", + "check-adjust-shape-bounds-pdf.cs", + "clip-graph-to-rectangle-pdf.cs", "clip-shapes-within-graph-region.cs", + "combine-multiple-graphs-pdf-collage.cs", + "configure-graph-border-add-rectangle.cs", "configure-graph-border-rectangle-dash-style.cs", + "configure-shape-fill-colors-json-pdf-graph.cs", "configure-shape-fill-colors-pdf-graph.cs", + "create-bar-graph-with-legend.cs", "create-bezier-curve-in-pdf-graph.cs", + "create-custom-star-shape-pdf.cs", + "create-dimension-line-in-pdf-graph.cs", + "create-dimension-specific-rectangle-pdf.cs", "create-dimension-specific-rectangle.cs", "create-ellipse-pdf-graph.cs", + "create-graph-with-rectangle-and-ellipse.cs", "create-horizontal-bar-chart-pdf.cs", "create-layered-shapes-in-pdf.cs", "create-multi-page-pdf-with-full-page-graphs.cs", + "create-new-pdf-single-page.cs", "create-pdf-collage-multiple-graphs.cs", + "create-pdf-graph-border-colors.cs", + "create-pdf-graph-filled-outline-shapes.cs", "create-pdf-graph-styled-text.cs", "create-pdf-graph-with-border-colors.cs", "create-pdf-pages-with-proportional-graph-shapes.cs", "create-pdf-with-filled-arc-graph.cs", "create-pdf-with-graph.cs", "create-pdf-with-single-default-page.cs", + "create-proportional-graphs-pdf.cs", + "create-rotate-ellipse-pdf-graph.cs", "create-sample-graph-pdf.cs", + "create-semi-transparent-ellipse-fill.cs", "create-semi-transparent-shape-graph.cs", "create-star-shape-pdf.cs", "deserialize-pdf-add-graph-label.cs", + "draw-straight-line-in-pdf-graph.cs", "draw-straight-line-with-custom-cap.cs", + "ellipse-with-transparent-fill-and-centered-text.cs", + "enable-bounds-check-mode-graph.cs", "enable-boundscheckmode-validate-graph-shape.cs", "export-graph-to-pdf.cs", "export-pdf-to-memory-stream-and-save.cs", + "export-pdf-to-memorystream-and-save-to-file.cs", "graph-filled-and-outline-shapes.cs", "handle-shape-bounds-exceptions.cs", + "insert-centered-textfragment-rectangle.cs", "insert-dashed-polyline-annotation.cs", "insert-graph-into-pdf-footer.cs", "insert-rotate-scaled-image-pdf.cs", "insert-rounded-rectangle-into-pdf-graph.cs", + "insert-scaled-rotated-image-into-pdf.cs", + "iterate-graph-shapes-bounding-boxes.cs", "log-graph-shapes-bounding-boxes.cs", "map-shape-colors-to-pdf-graph.cs", + "map-shape-identifiers-to-fill-colors.cs", "measure-ellipse-bounding-box.cs", "non-uniform-graph-scaling.cs", + "non-uniform-scale-graph.cs", "out-of-bounds-rectangle-throws-exception.cs", "parallel-gradient-ellipse-pdf.cs", "pdf-report-with-colored-bar-graph.cs", @@ -48540,11 +58802,15 @@ "rotate-graph-in-pdf.cs", "scale-graph-shapes-150-percent.cs", "semi-transparent-ellipse-pdf.cs", + "serialize-pdf-graph-to-byte-array.cs", "serialize-pdf-to-byte-array.cs", "set-graph-dimensions-pdf.cs", "set-rectangle-fill-opacity-50-argb.cs", "skew-graph-x-axis.cs", + "test-out-of-bounds-rectangle-throws-exception.cs", + "toggle-graph-bounds-check-mode.cs", "toggle-graph-boundscheckmode.cs", + "translate-graph-position-in-pdf.cs", "translate-graph-rectangle.cs" ], "required_namespaces": [ @@ -48552,27 +58818,47 @@ "Aspose.Pdf.Drawing", "Aspose.Pdf.Text", "Aspose.Pdf.Annotations", - "Aspose.Pdf.Operators", - "Aspose.Pdf.Vector" + "Aspose.Pdf.Operators" ], "key_apis": [ "TextFragment", "TextBuilder", "BorderInfo", - "GraphInfo", "ImageStamp", - "PolygonAnnotation", "PolylineAnnotation" ], "examples": [ + { + "filename": "add-background-image-and-graph-to-pdf.cs", + "title": "Add Background Image to PDF and Draw Graph Shapes on Top", + "description": "Demonstrates how to place a background image on a PDF page using an Artifact and then draw a Graph with shapes that appear above the image.", + "tags": [ + "background-image", + "graph", + "shapes", + "Aspose.Pdf", + "PDF" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Artifact", + "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Drawing.Line", + "Aspose.Pdf.GraphInfo", + "Aspose.Pdf.Color" + ], + "difficulty": "intermediate" + }, { "filename": "add-centered-graph-to-pdf-page.cs", "title": "Add Centered Graph to PDF Page", - "description": "Shows how to create a Graph, center it on a PDF page, add a rectangle shape, and insert the graph into the page using Aspose.Pdf.", + "description": "Shows how to create a Graph, center it horizontally and vertically on a PDF page, add it to the page's Paragraphs collection, and save the document using Aspose.Pdf.", "tags": [ "graph", + "center", "pdf", - "alignment", "aspose", "csharp" ], @@ -48580,81 +58866,124 @@ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Rectangle", "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Color" + "Aspose.Pdf.Drawing.HorizontalAlignment", + "Aspose.Pdf.Drawing.VerticalAlignment", + "Aspose.Pdf.Drawing.Color" ], "difficulty": "beginner" }, { "filename": "add-colored-line-segments-to-pdf-graph.cs", - "title": "Add Colored Line Segments to a PDF Graph", - "description": "Shows how to create a PDF, add a Graph container, and draw consecutive line segments with varying colors to represent a continuous data series.", + "title": "Add Colored Line Segments To Pdf Graph", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-dashed-rectangle-to-graph.cs", + "title": "Add Dashed Rectangle to Graph in PDF", + "description": "Creates a PDF document, adds a Graph container, draws a rectangle with a 2‑point black dashed border, and saves the file.", "tags": [ "pdf", "graph", - "line", - "color", - "aspose" + "rectangle", + "border", + "dash" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Line", - "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Color" + "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Drawing.GraphInfo" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "add-dashed-rectangle-to-pdf-graph.cs", - "title": "Add Dashed Rectangle to PDF Graph", - "description": "Creates a PDF document, adds a full‑page graph, and draws a rectangle with a 2‑point dashed border on the graph.", + "title": "Add Dashed Rectangle To Pdf Graph", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-ellipse-to-pdf-page.cs", + "title": "Add Ellipse to PDF Page with Specified Radii and Stroke Color", + "description": "Demonstrates how to open an existing PDF, create a Graph container, draw an ellipse with given horizontal and vertical radii, set its stroke color, and save the modified document.", "tags": [ + "ellipse", "pdf", - "rectangle", - "border", - "dash", - "graph" + "graph", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Graph", - "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.GraphInfo", + "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Drawing.Ellipse", + "Aspose.Pdf.Drawing.GraphInfo", "Aspose.Pdf.Color" ], "difficulty": "beginner" }, { "filename": "add-ellipse-with-border-and-centered-text.cs", - "title": "Add Ellipse with Border and Centered Text to PDF", - "description": "Demonstrates how to draw a semi‑transparent ellipse with a thick border and place a centered text fragment inside it using Aspose.Pdf.", + "title": "Add Ellipse With Border And Centered Text", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-filled-arc-to-pdf-graph.cs", + "title": "Add Filled Arc to PDF Graph", + "description": "Demonstrates how to create a PDF document, add a graph, and draw a filled arc with a custom color using Aspose.Pdf.", "tags": [ - "ellipse", - "graph", - "text", "pdf", + "graph", + "arc", + "filled-shape", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Ellipse", + "Aspose.Pdf.Drawing.Arc", + "Aspose.Pdf.Drawing.GraphInfo" + ], + "difficulty": "beginner" + }, + { + "filename": "add-filled-arc-with-radial-gradient.cs", + "title": "Add Filled Arc with Radial Gradient to PDF", + "description": "Creates a PDF document, adds a graph containing an arc shape, and demonstrates how to apply a radial gradient fill (fallback to a solid color) using GraphInfo.", + "tags": [ + "arc", + "radial-gradient", + "graph", + "pdf", + "Aspose.Pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Drawing.Arc", + "Aspose.Pdf.Drawing.GradientRadialShading", "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextBuilder", - "Aspose.Pdf.FontRepository" + "Aspose.Pdf.Color" ], "difficulty": "intermediate" }, { - "filename": "add-filled-circle-to-pdf.cs", - "title": "Add Filled Circle to PDF with Aspose.Pdf", - "description": "Demonstrates creating a PDF document, adding a Graph that covers the page, drawing a filled circle with a specified center and radius, and saving the file using Aspose.Pdf.", + "filename": "add-filled-circle-to-pdf-graph.cs", + "title": "Add Filled Circle to PDF Using Aspose.Pdf Graph", + "description": "Demonstrates how to create a PDF document, add a Graph container, draw a filled circle with a border, and save the result using Aspose.Pdf.", "tags": [ "pdf", "circle", @@ -48671,15 +59000,31 @@ ], "difficulty": "beginner" }, + { + "filename": "add-filled-circle-to-pdf.cs", + "title": "Add Filled Circle To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "add-filled-curve-to-pdf-graph.cs", - "title": "Add Filled Curve with Opacity and Border to PDF Graph", - "description": "Demonstrates creating a Graph in a PDF, drawing a Bezier curve, applying a semi‑transparent fill using ARGB, and setting the border color and thickness.", + "title": "Add Filled Curve To Pdf Graph", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-filled-curve-with-opacity-and-border.cs", + "title": "Add Filled Curve with Opacity and Border to PDF", + "description": "Demonstrates how to draw a filled Bézier curve in a PDF using Aspose.Pdf, setting fill opacity and border thickness.", "tags": [ "pdf", "graph", - "curve", - "fill-opacity", + "filled-curve", + "opacity", "border" ], "apis_used": [ @@ -48688,35 +59033,43 @@ "Aspose.Pdf.Drawing.Graph", "Aspose.Pdf.Drawing.Curve", "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Color" + "Aspose.Pdf.Drawing.Color" ], "difficulty": "intermediate" }, { "filename": "add-filled-rectangle-dashed-border-to-pdf-graph.cs", + "title": "Add Filled Rectangle Dashed Border To Pdf Graph", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-filled-rectangle-with-dashed-border.cs", "title": "Add Filled Rectangle with Dashed Border to PDF Graph", - "description": "Shows how to create a Graph, draw a rectangle with fill color, border color, line width, and dash pattern, and embed it into a PDF page using Aspose.Pdf.", + "description": "Demonstrates how to draw a filled rectangle with a custom dashed border inside a Graph container in a PDF using Aspose.Pdf.", "tags": [ - "graph", + "pdf", "rectangle", - "dash-pattern", - "fill-color", - "pdf" + "graph", + "border", + "dash-pattern" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Graph", + "Aspose.Pdf.Page", + "Aspose.Pdf.Drawing.Graph", "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Page.Paragraphs.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.GraphInfo", + "Aspose.Pdf.Color" ], "difficulty": "beginner" }, { - "filename": "add-graph-matching-page-size.cs", - "title": "Create a Graph Matching PDF Page Size", - "description": "Shows how to instantiate an Aspose.Pdf.Drawing.Graph using the width and height of a PDF page and add it to the page's paragraph collection.", + "filename": "add-full-size-graph-to-pdf-page.cs", + "title": "Add Full-Size Graph to PDF Page", + "description": "Shows how to create a Graph object that matches the page dimensions of a PDF, add a rectangle shape, and embed the graph into the page using Aspose.Pdf.", "tags": [ "graph", "pdf", @@ -48727,23 +59080,54 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.PageInfo", "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Drawing.GraphInfo", + "Aspose.Pdf.Color" + ], + "difficulty": "intermediate" + }, + { + "filename": "add-gradient-ellipse-graphs-to-pdfs.cs", + "title": "Add Gradient Ellipse Graphs to PDFs in Parallel", + "description": "Demonstrates processing multiple PDF files concurrently and adding a graph with gradient‑filled ellipses to each page using Aspose.Pdf.", + "tags": [ + "pdf", + "parallel", + "graph", + "ellipse", + "gradient" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Drawing.Ellipse", + "Aspose.Pdf.Drawing.GraphInfo", + "Aspose.Pdf.Color.FromRgb", "Aspose.Pdf.Page.Paragraphs.Add", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "add-graph-to-pdf.cs", - "title": "Add Graph to PDF Document", - "description": "Demonstrates loading an existing PDF, creating an Aspose.Pdf.Drawing.Graph with a rectangle shape, positioning it on a page, and saving the modified document.", + "filename": "add-graph-matching-page-size.cs", + "title": "Add Graph Matching Page Size", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-graph-rectangle-watermark-to-pdf.cs", + "title": "Add Graph Rectangle Watermark to PDF Pages", + "description": "The example loads each PDF from an input folder, creates a Graph that matches the page size, adds a light‑gray rectangle as a watermark, and saves the modified documents to an output folder.", "tags": [ "pdf", + "watermark", "graph", - "aspose-pdf", - "csharp", - "document-modification" + "batch", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", @@ -48751,41 +59135,50 @@ "Aspose.Pdf.Drawing.Graph", "Aspose.Pdf.Drawing.Rectangle", "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Color" + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "add-graph-watermark-to-pdf-pages.cs", - "title": "Add Graph Watermark Rectangle to PDF Pages", - "description": "Demonstrates how to batch‑process PDF files, adding the same graph containing a rectangle watermark to every page using Aspose.Pdf.", + "filename": "add-graph-to-pdf.cs", + "title": "Add Graph to PDF Document", + "description": "Shows how to load a PDF, create a Graph with shapes such as a rectangle and line, place it on a page, and save the updated file using Aspose.Pdf.", "tags": [ "pdf", - "watermark", "graph", - "batch", - "Aspose.Pdf" + "aspose-pdf", + "shapes", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Drawing.Line", "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Drawing.Color" + "Aspose.Pdf.Color" ], "difficulty": "intermediate" }, + { + "filename": "add-graph-watermark-to-pdf-pages.cs", + "title": "Add Graph Watermark To Pdf Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "add-graph-with-shapes-to-pdf.cs", "title": "Add Graph with Shapes to a PDF Page", - "description": "Loads an existing PDF, adds a new blank page, creates a Graph object, draws a rectangle, ellipse and line with styling, and saves the modified document.", + "description": "Loads an existing PDF, adds a new page, creates a Graph container, draws a rectangle, ellipse, and line, and saves the modified document.", "tags": [ "pdf", "graph", "shapes", - "drawing", - "aspose-pdf" + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", @@ -48800,14 +59193,22 @@ }, { "filename": "add-line-to-pdf-graph.cs", - "title": "Add a Dimension‑Specific Line to a PDF Graph", - "description": "Shows how to create a Graph, define a line with exact coordinates, set its color and thickness via GraphInfo, and embed the graph into a PDF page using Aspose.Pdf.", + "title": "Add Line To Pdf Graph", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-multi-colored-line-segments-to-pdf-graph.cs", + "title": "Create a Multi‑Color Line Graph in PDF", + "description": "Demonstrates how to build a PDF document, add a Graph container, and draw multiple line segments with different colors to represent a continuous data series.", "tags": [ - "pdf", "graph", "line", - "drawing", - "aspose" + "color", + "pdf", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", @@ -48815,28 +59216,28 @@ "Aspose.Pdf.Drawing.Graph", "Aspose.Pdf.Drawing.Line", "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Color" + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "add-non-overlapping-rectangles-to-pdf-graph.cs", "title": "Add Non-Overlapping Rectangles to a PDF Graph", - "description": "Creates a PDF, adds a Graph canvas, draws multiple rectangles of varying sizes while checking for intersections to avoid overlap, and saves the document.", + "description": "Demonstrates placing multiple rectangles of varying sizes on a PDF graph while preventing overlap using bounds checking.", "tags": [ "pdf", "graph", "rectangle", - "collision-detection", - "aspose" + "overlap", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Graph", - "Aspose.Pdf.Drawing.Rectangle", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.GraphInfo", + "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Drawing.GraphInfo", "Aspose.Pdf.Rectangle.IsIntersect", "Aspose.Pdf.Document.Save" ], @@ -48844,56 +59245,76 @@ }, { "filename": "add-polygon-annotation-with-dashed-outline.cs", - "title": "Add Polygon Annotation with Dashed Outline to PDF", - "description": "Demonstrates creating a polygon annotation in a PDF, applying a solid interior color, and configuring a dashed border style using Aspose.Pdf.", - "tags": [ - "polygon", - "annotation", - "border", - "dash", - "pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.PolygonAnnotation", - "Aspose.Pdf.Border", - "Aspose.Pdf.Dash", - "Aspose.Pdf.Color" - ], - "difficulty": "intermediate" + "title": "Add Polygon Annotation With Dashed Outline", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "add-rectangle-ellipse-graph-to-pdf.cs", - "title": "Add Rectangle and Ellipse Shapes to PDF using Graph", - "description": "Creates a PDF document, adds a graph container, draws a rectangle and an ellipse with distinct fill and stroke colors, and saves the file.", + "title": "Add Rectangle Ellipse Graph To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-rectangle-radial-gradient-pdf.cs", + "title": "Add Rectangle Radial Gradient Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-rectangle-solid-red-fill-to-pdf-graph.cs", + "title": "Add Rectangle with Solid Red Fill to PDF Graph", + "description": "Shows how to create a PDF, add a Graph container, define a rectangle using absolute coordinates, apply a solid red fill, and save the document.", "tags": [ - "graph", - "shapes", + "pdf", "rectangle", - "ellipse", - "pdf" + "graph", + "fill", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.Ellipse", - "Aspose.Pdf.Drawing.GraphInfo" + "Aspose.Pdf.Drawing.GraphInfo", + "Aspose.Pdf.Color", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "add-rectangle-radial-gradient-pdf.cs", - "title": "Add Rectangle with Radial Gradient to PDF", - "description": "Demonstrates creating a PDF, adding a Graph container, drawing a rectangle and applying a radial gradient (with a semi‑transparent fallback) using GraphInfo.", + "filename": "add-rectangle-with-bounds-checking.cs", + "title": "Add Rectangle With Bounds Checking", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-rectangle-with-drop-shadow-to-pdf.cs", + "title": "Add Rectangle With Drop Shadow To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-rectangle-with-shadow-to-pdf.cs", + "title": "Add Rectangle with Shadow to PDF", + "description": "Shows how to draw a rectangle with a semi‑transparent offset shadow in a PDF using Aspose.Pdf's Graph and Rectangle objects.", "tags": [ "pdf", "rectangle", - "gradient", + "shadow", "graph", - "aspose-pdf" + "drawing" ], "apis_used": [ "Aspose.Pdf.Document", @@ -48901,42 +59322,49 @@ "Aspose.Pdf.Drawing.Graph", "Aspose.Pdf.Drawing.Rectangle", "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Color", - "Aspose.Pdf.Drawing.GradientRadialShading" + "Aspose.Pdf.Color" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "add-rectangle-with-bounds-checking.cs", - "title": "Add Rectangle with Bounds Checking and Error Logging to PDF", - "description": "Demonstrates creating a PDF, adding a rectangle shape inside a Graph container, manually checking page bounds, handling a custom exception, and logging detailed shape coordinates before saving the document.", + "filename": "add-regular-hexagon-to-pdf-graph.cs", + "title": "Add Regular Hexagon to PDF Graph", + "description": "Demonstrates how to draw a regular six‑sided polygon (hexagon) on a PDF page using Aspose.Pdf's Graph container and set its border color and thickness.", "tags": [ "pdf", "graph", - "bounds-check", - "exception", - "Aspose.Pdf" + "hexagon", + "shape", + "border" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Drawing.Line", "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Drawing.Color" + "Aspose.Pdf.Color" ], "difficulty": "intermediate" }, { - "filename": "add-rectangle-with-drop-shadow-to-pdf.cs", - "title": "Add Rectangle with Drop Shadow to PDF", - "description": "Demonstrates how to draw a rectangle with a semi‑transparent offset shadow using Aspose.Pdf's Graph container and save it as a PDF.", + "filename": "add-rotated-ellipse-to-pdf.cs", + "title": "Add Rotated Ellipse To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-rounded-rectangle-with-fill-to-pdf-graph.cs", + "title": "Add Rounded Rectangle with Fill to PDF Graph", + "description": "Creates a PDF document, adds a Graph container, and draws a rounded rectangle with a solid fill and border color.", "tags": [ "pdf", "rectangle", - "shadow", "graph", - "aspose-pdf" + "rounded-corner", + "fill-color" ], "apis_used": [ "Aspose.Pdf.Document", @@ -48944,64 +59372,65 @@ "Aspose.Pdf.Drawing.Graph", "Aspose.Pdf.Drawing.Rectangle", "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Color", - "Document.Save", - "Graph.Shapes.Add" + "Aspose.Pdf.Color" ], "difficulty": "beginner" }, { - "filename": "add-regular-hexagon-to-pdf-graph.cs", - "title": "Add Regular Hexagon to PDF Graph", - "description": "Demonstrates creating a regular six‑sided polygon (hexagon) inside a Graph container, applying border color and thickness, and saving the PDF.", + "filename": "add-rounded-rectangle-with-fill.cs", + "title": "Add Rounded Rectangle with Fill to PDF", + "description": "Shows how to draw a rectangle with rounded corners, set a corner radius, and apply a solid fill using Aspose.Pdf's Graph and Rectangle classes.", "tags": [ - "hexagon", + "rounded-rectangle", "graph", - "shape", - "border", - "pdf" + "fill", + "pdf", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Line", - "Aspose.Pdf.Drawing.Path", + "Aspose.Pdf.Drawing.Rectangle", "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Color" + "Aspose.Pdf.Color", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "add-rotated-ellipse-to-pdf.cs", - "title": "Add Rotated Ellipse to PDF", - "description": "Demonstrates creating an ellipse shape, applying a 45° rotation using GraphInfo, and adding it to a PDF document with Aspose.Pdf.", + "filename": "add-semi-transparent-rectangle-using-transparency-layer.cs", + "title": "Add Semi-Transparent Rectangle via Transparency Layer", + "description": "The example opens an existing PDF, creates a Graph as a transparency layer, draws a semi‑transparent rectangle using GraphInfo, adds it to the first page, flattens transparency, and saves the modified document.", "tags": [ - "ellipse", - "rotation", - "graph", "pdf", + "transparency", + "graph", + "rectangle", "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Ellipse", - "Aspose.Pdf.Drawing.GraphInfo" + "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.GraphInfo", + "Aspose.Pdf.Color", + "Aspose.Pdf.Document.FlattenTransparency", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "add-rounded-rectangle-with-fill.cs", - "title": "Add Rounded Rectangle with Fill to PDF", - "description": "Shows how to insert a rectangle with rounded corners and a solid fill into an existing PDF document using Aspose.Pdf.", + "filename": "add-semi-transparent-rectangle.cs", + "title": "Add Semi-Transparent Rectangle Using Alpha Channel", + "description": "Creates a PDF containing a rectangle filled with a semi‑transparent color to demonstrate alpha‑channel usage (simulated linear gradient).", "tags": [ - "rounded-rectangle", + "alpha", + "gradient", + "rectangle", "pdf", - "graph", - "fill", - "Aspose.Pdf" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", @@ -49016,12 +59445,12 @@ { "filename": "add-shadow-effect-to-filled-rectangle.cs", "title": "Add Shadow Effect to a Filled Rectangle in PDF", - "description": "Shows how to simulate a shadow for a filled rectangle by drawing an offset semi‑transparent rectangle behind it using Aspose.Pdf's Graph container.", + "description": "Shows how to draw a filled rectangle with a simulated shadow by adding an offset semi‑transparent rectangle before the main shape using Aspose.Pdf.", "tags": [ "shadow", "rectangle", - "graph", "pdf", + "graph", "Aspose.Pdf" ], "apis_used": [ @@ -49035,57 +59464,76 @@ "difficulty": "beginner" }, { - "filename": "add-solid-red-rectangle-to-pdf-graph.cs", - "title": "Add Solid Red Rectangle to PDF Graph", - "description": "Demonstrates how to create a PDF document, add a graph, and draw a solid red rectangle using absolute coordinates.", + "filename": "add-shapes-with-bounds-checking.cs", + "title": "Add Shapes to PDF with Bounds Checking", + "description": "Demonstrates loading a PDF, creating a Graph that spans the page, enabling bounds‑checking, adding various shapes with exception handling, and saving the result.", "tags": [ "pdf", - "rectangle", "graph", - "drawing", - "fill" + "shapes", + "bounds-checking", + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Drawing.Graph.Shapes.UpdateBoundsCheckMode", "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.GraphInfo" + "Aspose.Pdf.Drawing.Ellipse", + "Aspose.Pdf.Drawing.Line", + "Aspose.Pdf.BoundsOutOfRangeException" ], - "difficulty": "beginner" + "difficulty": "intermediate" + }, + { + "filename": "add-solid-red-rectangle-to-pdf-graph.cs", + "title": "Add Solid Red Rectangle To Pdf Graph", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "add-text-inside-graph-pdf.cs", - "title": "Add Text Inside a Graph with Font Styling", - "description": "Demonstrates how to place a text fragment inside a Graph container in a PDF, set its font family, size, color, and position it at specific coordinates using Aspose.Pdf.", + "title": "Add Text Inside Graph Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-text-inside-graph.cs", + "title": "Add Text Inside a Graph with Custom Font and Position", + "description": "Demonstrates how to insert a Graph into a PDF page and place a formatted TextFragment inside it at specific coordinates using Aspose.Pdf.", "tags": [ - "pdf", "graph", "text", - "font", - "aspose" + "pdf", + "aspose", + "position" ], "apis_used": [ - "Document", - "Page", - "Graph", - "Rectangle", - "TextFragment", - "FontRepository", - "Color" + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Drawing.GraphInfo", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.FontRepository", + "Aspose.Pdf.Text.Position" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "add-unfilled-arc-with-line-width-and-dash-style.cs", - "title": "Add Unfilled Arc with Custom Line Width and Dash Style to PDF", - "description": "This example creates a PDF document, adds a graph container, and draws an unfilled arc with a specified line width and dash pattern.", + "filename": "add-unfilled-arc-with-custom-stroke.cs", + "title": "Add Unfilled Arc with Custom Stroke to PDF", + "description": "Demonstrates creating a PDF, adding a Graph container, drawing an unfilled arc, and customizing its line width and dash pattern.", "tags": [ "pdf", "arc", "graph", - "dash-style", - "aspose-pdf" + "stroke", + "aspose.pdf" ], "apis_used": [ "Aspose.Pdf.Document", @@ -49093,20 +59541,38 @@ "Aspose.Pdf.Drawing.Graph", "Aspose.Pdf.Drawing.Arc", "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Page.Paragraphs.Add", + "Aspose.Pdf.Drawing.Graph.Shapes.Add" ], "difficulty": "beginner" }, + { + "filename": "add-unfilled-arc-with-line-width-and-dash-style.cs", + "title": "Add Unfilled Arc With Line Width And Dash Style", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "adjust-rectangle-bounds-in-pdf.cs", - "title": "Adjust Rectangle Position Within PDF Page Bounds", - "description": "The example loads a PDF, draws a rectangle using a Graph, checks whether the shape fits inside the page, and moves it if it exceeds the page boundaries before saving the document.", + "title": "Adjust Rectangle Bounds In Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "align-graph-to-left-margin-pdf.cs", + "title": "Align Graph to Left Margin in PDF", + "description": "Demonstrates creating a Graph, positioning it with a left offset and top margin, adding a shape, and inserting it into a PDF page using Aspose.Pdf.", "tags": [ + "graph", "pdf", - "shapes", - "bounds", + "alignment", "aspose-pdf", - "graph" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", @@ -49115,40 +59581,118 @@ "Aspose.Pdf.Drawing.Rectangle", "Aspose.Pdf.Drawing.GraphInfo" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "apply-background-image-to-pdf-graph.cs", - "title": "Apply Background Image to PDF Graph and Draw Shapes on Top", - "description": "Demonstrates how to set a page background image and overlay a graph with rectangle and line shapes, ensuring the shapes appear above the background using Aspose.Pdf.", + "title": "Apply Background Image To Pdf Graph", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "apply-clipping-region-to-graph.cs", + "title": "Apply Clipping Region To Graph", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "batch-insert-company-logo-graph-into-pdfs.cs", + "title": "Batch Insert Company Logo Graph into PDFs", + "description": "Shows how to process all PDF files in a folder, load each with Aspose.Pdf, add a predefined Graph containing a rectangle logo (and an optional line) to every page, and save the updated documents.", + "tags": [ + "pdf", + "graph", + "batch-processing", + "logo", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Drawing.Line", + "Aspose.Pdf.GraphInfo", + "Aspose.Pdf.Color" + ], + "difficulty": "intermediate" + }, + { + "filename": "batch-insert-logo-graph-into-pdfs.cs", + "title": "Batch Insert Logo Graph Into Pdfs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "build-reusable-graph-for-pdf-pages.cs", + "title": "Create Reusable Graph with Shapes for PDF Pages", + "description": "Demonstrates how to build a predefined Graph containing a rectangle, ellipse, and line, and add it to any PDF page using Aspose.Pdf.", "tags": [ - "background-image", "graph", "shapes", - "Aspose.Pdf", - "PDF" + "pdf", + "aspose", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Graph", + "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Drawing.Ellipse", + "Aspose.Pdf.Drawing.Line", + "Aspose.Pdf.Drawing.GraphInfo", + "Aspose.Pdf.Color" + ], + "difficulty": "intermediate" + }, + { + "filename": "center-text-in-rectangle-pdf.cs", + "title": "Center Text In Rectangle Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "check-adjust-shape-bounds-pdf.cs", + "title": "Check and Adjust Shape Bounds in a PDF", + "description": "Demonstrates loading a PDF, creating a rectangle shape inside a Graph, checking whether the shape fits the page bounds, and repositioning it if necessary before saving the document.", + "tags": [ + "pdf", + "shape", + "bounds", + "aspose", + "graph" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Image", - "Aspose.Pdf.Graph", + "Aspose.Pdf.Drawing.Graph", "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.Line", - "Aspose.Pdf.Drawing.GraphInfo" + "Aspose.Pdf.Drawing.Rectangle.CheckBounds", + "Aspose.Pdf.Drawing.GraphInfo", + "Aspose.Pdf.Color", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "apply-clipping-region-to-graph.cs", - "title": "Apply Clipping Region to a Graph in PDF", - "description": "Demonstrates how to define a clipping rectangle using low‑level PDF operators and then draw a Graph whose shapes are rendered only inside that region.", + "filename": "clip-graph-to-rectangle-pdf.cs", + "title": "Clip Graph Shapes to a Rectangle in PDF", + "description": "Demonstrates how to define a clipping region using PDF operators and render a Graph so that its shapes are visible only within that rectangle.", "tags": [ "clipping", "graph", - "pdf", "shapes", - "Aspose.Pdf" + "pdf", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", @@ -49163,87 +59707,82 @@ "difficulty": "intermediate" }, { - "filename": "batch-insert-logo-graph-into-pdfs.cs", - "title": "Batch Insert Logo Graph into PDF Files", - "description": "Loads each PDF from an input folder, creates a Graph with a rectangle representing a company logo, adds the graph to the first page, and saves the updated PDFs to an output folder.", - "tags": [ - "pdf", - "graph", - "batch-processing", - "logo", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Graph", - "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Page", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "intermediate" + "filename": "clip-shapes-within-graph-region.cs", + "title": "Clip Shapes Within Graph Region", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "center-text-in-rectangle-pdf.cs", - "title": "Center Text Inside a Rectangle on a PDF", - "description": "Demonstrates how to draw a rectangle using a Graph container and place a centered TextFragment inside it on a PDF page with Aspose.Pdf.", + "filename": "combine-multiple-graphs-pdf-collage.cs", + "title": "Combine Multiple Graphs on a Single PDF Page", + "description": "Shows how to create several Aspose.Pdf Graph objects (rectangle, ellipse, line) and position them at different coordinates on one PDF page to form a collage.", "tags": [ + "graphs", "pdf", - "rectangle", - "text", - "graph", - "aspose-pdf" + "collage", + "aspose", + "positioning" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Graph", + "Aspose.Pdf.Drawing.Graph", "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextBuilder", - "Aspose.Pdf.GraphInfo", - "Aspose.Pdf.FontRepository" + "Aspose.Pdf.Drawing.Ellipse", + "Aspose.Pdf.Drawing.Line", + "Aspose.Pdf.Drawing.GraphInfo" ], "difficulty": "intermediate" }, { - "filename": "clip-shapes-within-graph-region.cs", - "title": "Clip Shapes Within a Graph Region in PDF", - "description": "Demonstrates defining a clipping rectangle for a Graph and adding shapes that are confined to that region when creating a PDF with Aspose.Pdf.", + "filename": "configure-graph-border-add-rectangle.cs", + "title": "Configure Graph Border and Add Rectangle with Custom Style", + "description": "Demonstrates how to set a Graph's line width and dash pattern, which are inherited by shapes, and then add a rectangle with custom border and fill colors.", "tags": [ "graph", - "clipping", - "shapes", - "pdf", - "aspose" + "border", + "rectangle", + "dash-style", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.Ellipse", - "Aspose.Pdf.Drawing.GraphInfo" + "Aspose.Pdf.Drawing.GraphInfo", + "Aspose.Pdf.Color" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "configure-graph-border-rectangle-dash-style.cs", - "title": "Set Graph Border and Rectangle Dash Style in PDF", - "description": "Demonstrates how to configure the Graph's outer border and customize a rectangle's line width, color, and dash pattern before adding it to a PDF page.", + "title": "Configure Graph Border Rectangle Dash Style", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "configure-shape-fill-colors-json-pdf-graph.cs", + "title": "Configure Shape Fill Colors via JSON and Create PDF Graph", + "description": "The example reads a JSON configuration file that maps shape types to color names, converts those names to Aspose.Pdf.Color, and applies the colors while building a Graph with rectangles, ellipses, and lines in a PDF document.", "tags": [ + "json", + "pdf", "graph", - "rectangle", - "border", - "dash-style", - "pdf" + "shapes", + "configuration" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.BorderInfo", "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Drawing.Ellipse", + "Aspose.Pdf.Drawing.Line", "Aspose.Pdf.Drawing.GraphInfo", "Aspose.Pdf.Color" ], @@ -49251,212 +59790,245 @@ }, { "filename": "configure-shape-fill-colors-pdf-graph.cs", - "title": "Configure Shape Fill Colors for PDF Graphs", - "description": "Demonstrates loading a JSON configuration to set default fill colors for rectangle, ellipse, and line shapes in an Aspose.Pdf graph and saving the result as a PDF.", + "title": "Configure Shape Fill Colors Pdf Graph", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-bar-graph-with-legend.cs", + "title": "Create Bar Graph with Legend in PDF", + "description": "Shows how to generate a PDF report containing a simple bar graph using colored rectangles and a legend with Aspose.Pdf.", "tags": [ "pdf", "graph", - "configuration", - "shapes", - "colors" + "legend", + "bars", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.Ellipse", - "Aspose.Pdf.Drawing.Line", "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Color" + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.Position" ], "difficulty": "intermediate" }, { "filename": "create-bezier-curve-in-pdf-graph.cs", "title": "Create Bezier Curve in PDF Graph", - "description": "Demonstrates how to draw a Bezier curve using four control points inside a Graph container and set its stroke color and line width in a PDF document.", + "description": "Demonstrates how to draw a Bezier curve using four control points inside a Graph object in a PDF document and set its stroke color and line width.", "tags": [ "bezier", "graph", - "curve", "pdf", - "aspose" + "aspose", + "curve" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", "Aspose.Pdf.Drawing.Curve", - "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Color" + "Aspose.Pdf.Drawing.GraphInfo" ], "difficulty": "beginner" }, { - "filename": "create-dimension-specific-rectangle.cs", - "title": "Create Dimension-Specific Rectangle in PDF", - "description": "Demonstrates how to use Aspose.Pdf's Graph object to draw a rectangle with exact dimensions and styling inside a PDF page.", + "filename": "create-custom-star-shape-pdf.cs", + "title": "Create a Custom Star Shape in a PDF using Aspose.Pdf", + "description": "Demonstrates how to generate a star polygon with a configurable number of points, fill color, and outline, and embed it in a PDF using Aspose.Pdf's Graph and Path objects.", "tags": [ + "star", + "shape", + "graph", "pdf", - "rectangle", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Drawing.Path", + "Aspose.Pdf.Drawing.Line", + "Aspose.Pdf.Drawing.GraphInfo" + ], + "difficulty": "intermediate" + }, + { + "filename": "create-dimension-line-in-pdf-graph.cs", + "title": "Create Dimension Line in PDF Graph", + "description": "Shows how to use Aspose.Pdf.Drawing.Graph to add a dimension‑specific line shape to a PDF document and style it with GraphInfo.", + "tags": [ "graph", - "drawing", - "aspose-pdf" + "line", + "pdf", + "aspose", + "drawing" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Graph", - "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.GraphInfo", - "Aspose.Pdf.Color" + "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Drawing.Line", + "Aspose.Pdf.Drawing.GraphInfo", + "Aspose.Pdf.Text.TextFragment" ], "difficulty": "beginner" }, { - "filename": "create-ellipse-pdf-graph.cs", - "title": "Create an Ellipse in a PDF Graph with Custom Radii and Stroke Color", - "description": "Demonstrates how to draw an ellipse on a PDF using Aspose.Pdf's Graph container, specifying horizontal and vertical radii and applying a red stroke color.", + "filename": "create-dimension-specific-rectangle-pdf.cs", + "title": "Create Dimension-Specific Rectangle in PDF", + "description": "Demonstrates how to add a rectangle with explicit dimensions to a PDF using Aspose.Pdf's Graph container and set its visual style.", "tags": [ - "ellipse", "pdf", + "rectangle", "graph", "drawing", - "Aspose.Pdf" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Ellipse", + "Aspose.Pdf.Drawing.Rectangle", "Aspose.Pdf.Drawing.GraphInfo", "Aspose.Pdf.Color" ], "difficulty": "beginner" }, { - "filename": "create-horizontal-bar-chart-pdf.cs", - "title": "Create Horizontal Bar Chart in PDF", - "description": "Shows how to generate a simple horizontal bar chart in a PDF by adding rectangle shapes to a Graph container using Aspose.Pdf.", + "filename": "create-dimension-specific-rectangle.cs", + "title": "Create Dimension Specific Rectangle", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-ellipse-pdf-graph.cs", + "title": "Create Ellipse Pdf Graph", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-graph-with-rectangle-and-ellipse.cs", + "title": "Create Graph with Rectangle and Ellipse Shapes in PDF", + "description": "The example demonstrates how to create a Graph object, add rectangle and ellipse shapes with distinct fill and border styles, and embed the graph into a PDF page using Aspose.Pdf.", "tags": [ - "pdf", - "barchart", "graph", + "shapes", "rectangle", - "aspose-pdf" + "ellipse", + "pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Drawing.Ellipse", "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Color" + "Aspose.Pdf.Drawing.Color" ], "difficulty": "intermediate" }, { - "filename": "create-layered-shapes-in-pdf.cs", - "title": "Create Layered Shapes in PDF with Aspose.Pdf Graph", - "description": "Demonstrates how to add a layer to a PDF page, draw rectangle, ellipse, and line shapes inside a Graph, and optionally flatten the layer.", + "filename": "create-horizontal-bar-chart-pdf.cs", + "title": "Create Horizontal Bar Chart in PDF with Aspose.Pdf", + "description": "Demonstrates how to generate a simple horizontal bar chart in a PDF by adding rectangle shapes to an Aspose.Pdf Graph within a loop.", "tags": [ - "layer", - "graph", - "shapes", "pdf", + "barchart", + "graph", + "rectangle", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Layer", "Aspose.Pdf.Graph", "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.Ellipse", - "Aspose.Pdf.Drawing.Line", - "Aspose.Pdf.GraphInfo" + "Aspose.Pdf.GraphInfo", + "Aspose.Pdf.Color.FromRgb", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, + { + "filename": "create-layered-shapes-in-pdf.cs", + "title": "Create Layered Shapes In Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "create-multi-page-pdf-with-full-page-graphs.cs", - "title": "Create Multi‑Page PDF with Full‑Page Graphs", - "description": "Demonstrates how to generate a PDF containing multiple pages, each with a Graph object sized exactly to the page dimensions.", + "title": "Create Multi-Page PDF with Full-Page Graphs", + "description": "Demonstrates how to generate a PDF containing multiple pages, each page holding a Graph that exactly matches the page's dimensions.", "tags": [ "pdf", "graph", "multipage", - "aspose-pdf", + "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PageCollection.Add", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.BorderInfo", + "Aspose.Pdf.Drawing.GraphInfo", "Aspose.Pdf.Color", "Aspose.Pdf.Page.Paragraphs.Add", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "create-pdf-collage-multiple-graphs.cs", - "title": "Create PDF Collage with Multiple Graphs", - "description": "Shows how to add several Graph objects at different coordinates on a single PDF page, each containing different shapes, to build a collage.", + "filename": "create-new-pdf-single-page.cs", + "title": "Create a New PDF with a Single Page", + "description": "Demonstrates how to create an empty PDF document, add a default‑size page, and save it using Aspose.Pdf.", "tags": [ "pdf", - "graph", - "collage", - "shapes", - "aspose" + "creation", + "documentfactory", + "pages", + "aspose-pdf" ], "apis_used": [ + "Aspose.Pdf.DocumentFactory", "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.Ellipse", - "Aspose.Pdf.Drawing.Line", - "Aspose.Pdf.Drawing.GraphInfo" + "Aspose.Pdf.DocumentFactory.CreateDocument", + "Aspose.Pdf.Document.Pages.Add", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "create-pdf-graph-styled-text.cs", - "title": "Create PDF with Graph and Styled Text Fragments", - "description": "Demonstrates how to add a Graph container with a rectangle shape to a PDF page and place multiple text fragments using different fonts, sizes, and colors.", - "tags": [ - "graph", - "text", - "fonts", - "pdf", - "Aspose.Pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Graph", - "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Text.TextBuilder", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.FontRepository", - "Aspose.Pdf.GraphInfo" - ], - "difficulty": "intermediate" + "filename": "create-pdf-collage-multiple-graphs.cs", + "title": "Create Pdf Collage Multiple Graphs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "create-pdf-graph-with-border-colors.cs", - "title": "Create PDF Graph with Shape Border Colors", - "description": "Demonstrates how to generate a PDF containing a graph where each shape's border color is retrieved from a lookup table. Uses Aspose.Pdf's graph and drawing classes to add rectangles, an ellipse, and a line with custom colors.", + "filename": "create-pdf-graph-border-colors.cs", + "title": "Create PDF Graph with Shape Border Colors from Lookup Table", + "description": "Demonstrates generating a PDF that contains a graph where each shape's border color is assigned using a lookup dictionary.", "tags": [ "pdf", "graph", "shapes", "border-color", - "aspose-pdf" + "lookup-table" ], "apis_used": [ "Aspose.Pdf.Document", @@ -49465,21 +60037,20 @@ "Aspose.Pdf.Drawing.GraphInfo", "Aspose.Pdf.Drawing.Rectangle", "Aspose.Pdf.Drawing.Ellipse", - "Aspose.Pdf.Drawing.Line", - "Aspose.Pdf.Color" + "Aspose.Pdf.Drawing.Line" ], "difficulty": "intermediate" }, { - "filename": "create-pdf-pages-with-proportional-graph-shapes.cs", - "title": "Create PDF Pages with Proportional Graph Shapes", - "description": "Demonstrates how to generate a PDF where each page contains a graph with rectangle, ellipse, and line shapes sized proportionally to the page dimensions.", + "filename": "create-pdf-graph-filled-outline-shapes.cs", + "title": "Create PDF Graph with Filled and Outline Shapes", + "description": "Demonstrates adding a Graph to a PDF and drawing shapes with both fill and stroke, illustrating stroke‑only rendering for outlines.", "tags": [ "pdf", "graph", "shapes", - "aspose-pdf", - "csharp" + "stroke", + "fill" ], "apis_used": [ "Aspose.Pdf.Document", @@ -49493,36 +60064,62 @@ "difficulty": "intermediate" }, { - "filename": "create-pdf-with-filled-arc-graph.cs", - "title": "Create PDF with Filled Arc Graph", - "description": "Shows how to generate a PDF, add a Graph container, draw a semi‑circle Arc with a custom fill color, and save the document.", + "filename": "create-pdf-graph-styled-text.cs", + "title": "Create PDF with Graph Shapes and Styled Text", + "description": "Shows how to add a Graph containing rectangle, ellipse, and line shapes to a PDF and place TextFragment objects with different fonts and sizes inside each shape.", "tags": [ - "pdf", "graph", - "arc", - "fill-color", + "shapes", + "text", + "fonts", "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Arc", "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Drawing.Ellipse", + "Aspose.Pdf.Drawing.Line", + "Aspose.Pdf.Text.TextBuilder", + "Aspose.Pdf.Text.TextFragment" ], - "difficulty": "beginner" + "difficulty": "intermediate" + }, + { + "filename": "create-pdf-graph-with-border-colors.cs", + "title": "Create Pdf Graph With Border Colors", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-pdf-pages-with-proportional-graph-shapes.cs", + "title": "Create Pdf Pages With Proportional Graph Shapes", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-pdf-with-filled-arc-graph.cs", + "title": "Create Pdf With Filled Arc Graph", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "create-pdf-with-graph.cs", - "title": "Create PDF with Graph and Rectangle in Memory", - "description": "Shows how to generate a PDF document in memory using Aspose.Pdf, add a Graph container with a rectangle shape, and return the PDF as a byte array.", + "title": "Create PDF with Graph in Memory", + "description": "Demonstrates generating a PDF document in memory, adding a simple graph (a rectangle) using Aspose.Pdf's Graph API, and returning the PDF as a byte array.", "tags": [ "pdf", "graph", "memorystream", "aspose", - "rectangle" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", @@ -49536,182 +60133,226 @@ }, { "filename": "create-pdf-with-single-default-page.cs", - "title": "Create PDF with a Single Default Page", - "description": "Shows how to create a new PDF document, add a default‑size page, and save it using Aspose.Pdf.", - "tags": [ - "pdf", - "aspose-pdf", - "create-document", - "add-page", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner" + "title": "Create Pdf With Single Default Page", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "create-sample-graph-pdf.cs", - "title": "Create Sample Graph and Add to PDF Page", - "description": "Shows how to build a predefined Graph with a rectangle, ellipse, line, and title, then insert it into a PDF page using Aspose.Pdf.", + "filename": "create-proportional-graphs-pdf.cs", + "title": "Create Proportional Graphs on PDF Pages", + "description": "Demonstrates how to generate a PDF where each page contains a graph with shapes sized proportionally to the page dimensions using Aspose.Pdf.", "tags": [ + "pdf", "graph", "shapes", - "pdf", "aspose", - "csharp" + "proportional" ], "apis_used": [ - "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Graph", "Aspose.Pdf.Drawing.Rectangle", "Aspose.Pdf.Drawing.Ellipse", "Aspose.Pdf.Drawing.Line", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Document", - "Aspose.Pdf.Page" + "Aspose.Pdf.Drawing.GraphInfo" ], "difficulty": "intermediate" }, { - "filename": "create-semi-transparent-shape-graph.cs", - "title": "Create Semi-Transparent Shape Using Graph in PDF", - "description": "Demonstrates how to add a Graph to a PDF page, draw a rectangle with 50% opacity, and save the document.", + "filename": "create-rotate-ellipse-pdf-graph.cs", + "title": "Create and Rotate an Ellipse in a PDF Graph", + "description": "Shows how to create an ellipse, set a 45‑degree rotation via GraphInfo, and add it to a Graph placed on a PDF page using Aspose.Pdf.", "tags": [ + "ellipse", + "rotation", "graph", - "transparency", - "rectangle", "pdf", - "aspose" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Drawing.Ellipse", "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Drawing.Color" + "Aspose.Pdf.Drawing.Color", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "create-star-shape-pdf.cs", - "title": "Create Custom Star Shape in PDF", - "description": "Demonstrates how to generate a star polygon with a configurable number of points, fill color, and stroke, and add it to a PDF using Aspose.Pdf's drawing API.", + "filename": "create-sample-graph-pdf.cs", + "title": "Create Sample Graph Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-semi-transparent-ellipse-fill.cs", + "title": "Create Semi-Transparent Ellipse Fill in PDF", + "description": "Demonstrates adding a graph with an ellipse to a PDF and setting its fill color using an alpha channel to achieve semi-transparency.", "tags": [ - "star", - "pdf", + "ellipse", + "transparent", "graph", - "shape", - "aspose" + "pdf", + "color" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Path", - "Aspose.Pdf.Drawing.Line", - "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Color" + "Aspose.Pdf.Drawing.Ellipse", + "Aspose.Pdf.Drawing.Color", + "Aspose.Pdf.Drawing.GraphInfo" ], - "difficulty": "intermediate" + "difficulty": "beginner" + }, + { + "filename": "create-semi-transparent-shape-graph.cs", + "title": "Create Semi Transparent Shape Graph", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-star-shape-pdf.cs", + "title": "Create Star Shape Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "deserialize-pdf-add-graph-label.cs", - "title": "Deserialize PDF Byte Array and Add Graph with Text Label", - "description": "The example shows how to load a PDF from a byte array into an Aspose.Pdf Document, create a Graph with shapes, and place a text label pointing to the graph on the same page.", + "title": "Deserialize Pdf Add Graph Label", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "draw-straight-line-in-pdf-graph.cs", + "title": "Draw a Straight Line in a PDF Graph", + "description": "Demonstrates how to create a PDF document with Aspose.Pdf, add a Graph container, draw a line between two points, configure its color and thickness, and save the result.", "tags": [ "pdf", "graph", - "aspose-pdf", - "byte-array", - "text-label" + "line", + "drawing", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Rectangle", "Aspose.Pdf.Drawing.Line", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextBuilder", - "Aspose.Pdf.FontRepository" + "Aspose.Pdf.Drawing.GraphInfo", + "Aspose.Pdf.Drawing.Color", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "draw-straight-line-with-custom-cap.cs", - "title": "Draw Straight Line with Custom Cap in PDF", - "description": "Demonstrates how to draw a straight line on a PDF page using Aspose.Pdf, configure its start and end points, and apply a line cap style.", + "title": "Draw Straight Line With Custom Cap", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "ellipse-with-transparent-fill-and-centered-text.cs", + "title": "Add Ellipse with Transparent Fill and Centered Text to PDF", + "description": "Demonstrates how to draw an ellipse with a semi‑transparent fill and a thick border, then place a centered TextFragment inside it using Aspose.Pdf.", "tags": [ - "pdf", - "line", - "aspose-pdf", - "graphics", - "cap-style" + "ellipse", + "transparent", + "text", + "graph", + "pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Operators.SetLineCap", - "Aspose.Pdf.Operators.MoveTo", - "Aspose.Pdf.Operators.LineTo", - "Aspose.Pdf.Operators.Stroke" + "Aspose.Pdf.Drawing.Ellipse", + "Aspose.Pdf.Drawing.GraphInfo", + "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.TextBuilder" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "enable-boundscheckmode-validate-graph-shape.cs", - "title": "Validate Graph Shape Placement with BoundsCheckMode", - "description": "Demonstrates how to enable BoundsCheckMode.ThrowExceptionIfDoesNotFit on an Aspose.Pdf.Drawing.Graph so that adding a shape that exceeds the graph's dimensions throws an exception. The code creates a PDF, adds a graph with a fitting rectangle, and shows the validation behavior.", + "filename": "enable-bounds-check-mode-graph.cs", + "title": "Enable Bounds Check Mode for Graph Shape Placement", + "description": "Shows how to activate BoundsCheckMode.ThrowExceptionIfDoesNotFit on a Graph to ensure shapes fit within its area, handling out‑of‑bounds shapes with exceptions.", "tags": [ "graph", - "boundscheck", - "validation", - "pdf", - "shapes" + "bounds-check", + "shape", + "exception", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Graph.Shapes.UpdateBoundsCheckMode", + "Aspose.Pdf.Drawing.BorderInfo", "Aspose.Pdf.Drawing.Rectangle", "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Color" + "Aspose.Pdf.Drawing.BoundsCheckMode" ], "difficulty": "intermediate" }, + { + "filename": "enable-boundscheckmode-validate-graph-shape.cs", + "title": "Enable Boundscheckmode Validate Graph Shape", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "export-graph-to-pdf.cs", - "title": "Export Graph to PDF Document", - "description": "Demonstrates how to create a PDF document, add a Graph with a rectangle shape, and save it as a new PDF file using Aspose.Pdf.", + "title": "Export Graph to PDF", + "description": "Creates a PDF document, adds a Graph with a rectangle shape and a title, and saves the result as a PDF file.", "tags": [ "graph", "pdf", + "export", "aspose", - "drawing", - "export" + "drawing" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Graph", "Aspose.Pdf.Drawing.Rectangle", "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Text.TextFragment" ], "difficulty": "beginner" }, { "filename": "export-pdf-to-memory-stream-and-save.cs", - "title": "Export PDF to MemoryStream and Save to Disk", - "description": "Demonstrates loading a PDF with Aspose.Pdf, saving it into a MemoryStream, and then writing the stream contents to a file on disk.", + "title": "Export Pdf To Memory Stream And Save", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "export-pdf-to-memorystream-and-save-to-file.cs", + "title": "Export PDF to MemoryStream and Save to File", + "description": "Demonstrates loading a PDF with Aspose.Pdf, saving it into a MemoryStream, and then writing the stream contents to a new file on disk.", "tags": [ "pdf", - "memory-stream", + "memorystream", "file-output", "aspose-pdf", "csharp" @@ -49724,58 +60365,51 @@ }, { "filename": "graph-filled-and-outline-shapes.cs", - "title": "Create PDF with Filled and Outline Shapes Using Graph", - "description": "Shows how to draw filled rectangles, stroke‑only outlines, and a line on a PDF using Aspose.Pdf's Graph container.", - "tags": [ - "graph", - "shapes", - "fill", - "stroke", - "pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.Line", - "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Color" - ], - "difficulty": "intermediate" + "title": "Graph Filled And Outline Shapes", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "handle-shape-bounds-exceptions.cs", - "title": "Handle Shape Bounds Exceptions in PDF Graph", - "description": "Demonstrates creating a PDF with a graph, adding rectangle and line shapes, and catching BoundsOutOfRangeException to log coordinates of shapes that exceed the graph limits.", + "title": "Handle Shape Bounds Exceptions", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "insert-centered-textfragment-rectangle.cs", + "title": "Insert Centered TextFragment Inside a Rectangle", + "description": "Shows how to draw a rectangle on a PDF page using Aspose.Pdf Graph and place a TextFragment centered within that rectangle.", "tags": [ "pdf", + "rectangle", + "textfragment", "graph", - "shapes", - "exception", - "bounds" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.Line", - "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Drawing.BoundsOutOfRangeException" + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.TextBuilder" ], "difficulty": "intermediate" }, { "filename": "insert-dashed-polyline-annotation.cs", "title": "Insert Dashed Polyline Annotation into PDF", - "description": "Demonstrates how to add a polyline annotation with multiple vertices to a PDF page and apply a custom dashed border style using Aspose.Pdf.", + "description": "Demonstrates how to add a polyline annotation with multiple vertices and a custom dashed border to a PDF page using Aspose.Pdf.", "tags": [ "polyline", "annotation", - "pdf", "border", - "dash" + "dash", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", @@ -49791,78 +60425,73 @@ { "filename": "insert-graph-into-pdf-footer.cs", "title": "Insert Graph into PDF Footer", - "description": "Demonstrates how to create a PDF, add a footer, place a Graph object inside the footer with specific margins and alignment, and save the document using Aspose.Pdf.", + "description": "Demonstrates how to create a Graph object, style it, and place it in the page footer with custom margins using Aspose.Pdf.", "tags": [ "graph", "footer", "pdf", - "aspose", - "layout" + "aspose-pdf", + "margin" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.HeaderFooter", + "Aspose.Pdf.MarginInfo", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.MarginInfo", - "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.GraphInfo" + "Aspose.Pdf.Drawing.GraphInfo", + "Aspose.Pdf.Drawing.Rectangle" ], "difficulty": "intermediate" }, { - "filename": "insert-rotate-scaled-image-pdf.cs", - "title": "Insert and Rotate Scaled Image in PDF", - "description": "Demonstrates how to add an external image to a PDF page, scale it proportionally, and rotate it by a specified angle using Aspose.Pdf.", + "filename": "insert-rotate-scaled-image-pdf.cs", + "title": "Insert Rotate Scaled Image Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "insert-rounded-rectangle-into-pdf-graph.cs", + "title": "Insert Rounded Rectangle Into Pdf Graph", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "insert-scaled-rotated-image-into-pdf.cs", + "title": "Insert Scaled and Rotated Image into PDF", + "description": "Shows how to load an external image, scale it proportionally to a target width, rotate it by a given angle, and place it on a PDF page using a Graph container with Aspose.Pdf.", "tags": [ - "image", "pdf", + "image", "scaling", "rotation", "Aspose.Pdf" ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.ImageStamp", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.ImageStamp.Zoom", - "Aspose.Pdf.ImageStamp.RotateAngle" - ], - "difficulty": "beginner" - }, - { - "filename": "insert-rounded-rectangle-into-pdf-graph.cs", - "title": "Insert Rounded Rectangle into PDF Graph with Solid Fill", - "description": "Creates a PDF document, adds a Graph container, draws a rectangle with rounded corners, applies a solid fill color, and saves the file.", - "tags": [ - "pdf", - "graph", - "rectangle", - "rounded-corner", - "fill-color" - ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Color" + "Aspose.Pdf.Drawing.ImageStamp", + "Aspose.Pdf.Page.Resources.Images.Add", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "log-graph-shapes-bounding-boxes.cs", - "title": "Log Bounding Boxes of Graph Shapes in PDF", - "description": "Demonstrates creating a PDF graph, adding rectangle, ellipse, and line shapes, iterating through the graph's shapes, and logging the bounding box coordinates for each shape.", + "filename": "iterate-graph-shapes-bounding-boxes.cs", + "title": "Iterate Graph Shapes and Log Bounding Boxes", + "description": "Demonstrates creating a PDF graph, adding rectangle and ellipse shapes, and iterating through all shapes to log their bounding box coordinates.", "tags": [ "graph", "shapes", "bounding-box", - "pdf", - "aspose-pdf" + "Aspose.Pdf", + "iteration" ], "apis_used": [ "Aspose.Pdf.Document", @@ -49870,43 +60499,58 @@ "Aspose.Pdf.Drawing.Graph", "Aspose.Pdf.Drawing.Rectangle", "Aspose.Pdf.Drawing.Ellipse", - "Aspose.Pdf.Drawing.Line", + "Aspose.Pdf.Drawing.GraphInfo", "Aspose.Pdf.Drawing.Shape" ], "difficulty": "intermediate" }, + { + "filename": "log-graph-shapes-bounding-boxes.cs", + "title": "Log Graph Shapes Bounding Boxes", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "map-shape-colors-to-pdf-graph.cs", - "title": "Map Shape IDs to Fill Colors in a PDF Graph", - "description": "Demonstrates using a Dictionary to associate shape identifiers with fill colors and applying them while constructing a Graph containing rectangle, ellipse, and circle shapes in an Aspose.Pdf document.", + "title": "Map Shape Colors To Pdf Graph", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "map-shape-identifiers-to-fill-colors.cs", + "title": "Map Shape Identifiers to Fill Colors in PDF Graph", + "description": "Demonstrates how to use a dictionary to associate shape IDs with Aspose.Pdf fill colors and apply those colors when building a Graph with rectangles and an ellipse.", "tags": [ "pdf", + "graph", "shapes", - "dictionary", - "aspose-pdf", - "graph" + "colors", + "dictionary" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.GraphInfo", "Aspose.Pdf.Drawing.Rectangle", "Aspose.Pdf.Drawing.Ellipse", - "Aspose.Pdf.Drawing.Color" + "Aspose.Pdf.Drawing.GraphInfo" ], "difficulty": "intermediate" }, { "filename": "measure-ellipse-bounding-box.cs", - "title": "Measure Ellipse Bounding Box after Gradient Fill", - "description": "Demonstrates how to add an ellipse to a PDF, apply a solid placeholder fill (as gradients aren't directly supported), and programmatically obtain its content bounding box for correct placement.", + "title": "Measure Ellipse Bounding Box with Gradient Fill", + "description": "Shows how to draw an ellipse with a gradient (or solid) fill using Aspose.Pdf, compute its bounding box coordinates programmatically, and save the result to a PDF file.", "tags": [ "ellipse", - "bounding-box", "gradient", + "bounding-box", "pdf", - "measurement" + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", @@ -49915,206 +60559,161 @@ "Aspose.Pdf.Drawing.Ellipse", "Aspose.Pdf.Drawing.GraphInfo", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Page.CalculateContentBBox" + "Aspose.Pdf.Color" ], "difficulty": "intermediate" }, { "filename": "non-uniform-graph-scaling.cs", - "title": "Non‑Uniform Graph Scaling in PDF", - "description": "Demonstrates how to scale a Graph element non‑uniformly on the X and Y axes using GraphInfo, adds a rectangle shape to visualize the effect, and saves the result as a PDF.", + "title": "Non Uniform Graph Scaling", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "non-uniform-scale-graph.cs", + "title": "Non‑Uniformly Scale Graph in PDF", + "description": "Shows how to create a Graph with a rectangle shape, apply different scaling rates on the X and Y axes to change its aspect ratio, and save the result as a PDF.", "tags": [ "graph", "scaling", "pdf", - "aspose-pdf", - "csharp" + "aspose", + "non-uniform" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Drawing.Rectangle", "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Drawing.Rectangle" + "Aspose.Pdf.Color" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "out-of-bounds-rectangle-throws-exception.cs", - "title": "Out-of-Bounds Rectangle Throws Exception in Graph", - "description": "Demonstrates creating a Graph, adding a rectangle that exceeds its bounds, and asserting that an exception is thrown using a unit test.", - "tags": [ - "graph", - "bounds", - "unit-test", - "exception", - "Aspose.Pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.Graph.Shapes.Add", - "Aspose.Pdf.Page.Paragraphs.Add" - ], - "difficulty": "beginner" + "title": "Out Of Bounds Rectangle Throws Exception", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "parallel-gradient-ellipse-pdf.cs", - "title": "Parallel Processing of PDFs with Gradient Ellipse Graphs", - "description": "Demonstrates how to process multiple PDF files concurrently using Parallel.ForEach and add a graph containing gradient‑filled ellipses to each page with Aspose.Pdf.", - "tags": [ - "parallel", - "pdf", - "graph", - "ellipse", - "gradient" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Ellipse", - "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Color" - ], - "difficulty": "intermediate" + "title": "Parallel Gradient Ellipse Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "pdf-report-with-colored-bar-graph.cs", - "title": "Create PDF Report with Colored Bar Graph and Legend", - "description": "Demonstrates how to generate a PDF document that contains a simple bar‑graph made of colored rectangles and a corresponding legend using Aspose.Pdf.", - "tags": [ - "pdf", - "graph", - "legend", - "colored-rectangles", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.Position", - "Aspose.Pdf.Color" - ], - "difficulty": "intermediate" + "title": "Pdf Report With Colored Bar Graph", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "place-graph-left-margin-offset.cs", - "title": "Place Graph on PDF Page with Left Margin Offset", - "description": "Shows how to add a Graph object to an existing PDF page and align it to the left margin using a specified horizontal offset.", - "tags": [ - "graph", - "pdf", - "position", - "offset", - "aspose" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Drawing.Color" - ], - "difficulty": "beginner" + "title": "Place Graph Left Margin Offset", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "rotate-graph-in-pdf.cs", - "title": "Rotate Graph Element in PDF", - "description": "Demonstrates creating a Graph, setting its rotation angle in degrees, adding a shape, and inserting it into a PDF page using Aspose.Pdf.", + "title": "Rotate a Graph in a PDF", + "description": "Demonstrates how to create a Graph object, set its rotation angle in degrees, add a shape, and save the result to a PDF using Aspose.Pdf.", "tags": [ "graph", "rotation", "pdf", - "aspose", + "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Graph", - "Aspose.Pdf.Drawing.Rectangle", "Aspose.Pdf.Page", - "Aspose.Pdf.Drawing.GraphInfo" + "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Drawing.GraphInfo", + "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "scale-graph-shapes-150-percent.cs", "title": "Scale Graph Shapes by 150% Using GraphInfo", - "description": "Demonstrates how to apply a 150 % scaling transformation to all shapes in an Aspose.Pdf.Drawing.Graph by setting the GraphInfo ScalingRateX and ScalingRateY before rendering the PDF.", + "description": "Shows how to set GraphInfo ScalingRateX and ScalingRateY to enlarge all shapes in a Graph before adding it to a PDF page.", "tags": [ "graph", "scaling", "aspose-pdf", - "shapes", - "pdf" + "pdf", + "shapes" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.GraphInfo", + "Aspose.Pdf.Drawing.GraphInfo", "Aspose.Pdf.Drawing.Rectangle", "Aspose.Pdf.Drawing.Ellipse", "Aspose.Pdf.Drawing.Line" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "semi-transparent-ellipse-pdf.cs", - "title": "Create Semi-Transparent Ellipse in PDF", - "description": "Shows how to draw an ellipse with a semi‑transparent fill color using Aspose.Pdf's Graph and Ellipse classes and save the result to a PDF file.", + "title": "Semi Transparent Ellipse Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "serialize-pdf-graph-to-byte-array.cs", + "title": "Serialize PDF with Graph to Byte Array", + "description": "Creates a PDF containing a simple line graph using Aspose.Pdf and serializes the document to a byte array for network transmission.", "tags": [ - "ellipse", - "transparent", - "graph", "pdf", - "Aspose.Pdf" + "graph", + "serialization", + "byte-array", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Ellipse", + "Aspose.Pdf.Drawing.Line", "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Drawing.Color.FromArgb", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "serialize-pdf-to-byte-array.cs", - "title": "Serialize PDF to Byte Array for Transmission", - "description": "Loads an existing PDF that contains a graph, saves it into a memory stream, and extracts a byte array suitable for network transmission.", - "tags": [ - "pdf", - "serialization", - "byte-array", - "aspose-pdf", - "memory-stream" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner" + "title": "Serialize Pdf To Byte Array", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "set-graph-dimensions-pdf.cs", - "title": "Set Graph Width and Height in PDF", - "description": "Demonstrates how to create a Graph object with specific width and height, optionally set its dimensions, add a rectangle shape, and save the PDF using Aspose.Pdf.", + "title": "Set Graph Dimensions in PDF", + "description": "Demonstrates how to create a Graph with specific width and height, add a rectangle shape that fills the graph area, and save the result as a PDF using Aspose.Pdf.", "tags": [ "graph", - "dimensions", "pdf", + "dimensions", "aspose-pdf", - "csharp" + "rectangle" ], "apis_used": [ "Aspose.Pdf.Document", @@ -50127,52 +60726,62 @@ }, { "filename": "set-rectangle-fill-opacity-50-argb.cs", - "title": "Set Rectangle Fill Opacity to 50% Using ARGB Color", - "description": "Shows how to draw a rectangle in a PDF with a semi‑transparent fill by using an ARGB color value and verifies the fill color.", + "title": "Set Rectangle Fill Opacity 50 Argb", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "skew-graph-x-axis.cs", + "title": "Skew Graph on X Axis in PDF", + "description": "Demonstrates applying a skew transformation to a Graph container on the X‑axis and adding a rectangle shape to visualize the effect in a PDF document using Aspose.Pdf.", "tags": [ + "graph", + "skew", "pdf", - "rectangle", - "opacity", - "argb", - "graph" + "aspose", + "transformation" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Rectangle", "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Drawing.Color.FromArgb" + "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Drawing.Color" ], "difficulty": "beginner" }, { - "filename": "skew-graph-x-axis.cs", - "title": "Skew a Graph on the X Axis in a PDF", - "description": "Demonstrates how to load a PDF, create a Graph object, apply an X‑axis skew, and add a rectangle shape to visualize the slanted effect before saving the document.", + "filename": "test-out-of-bounds-rectangle-throws-exception.cs", + "title": "Test Out‑of‑Bounds Rectangle Throws Exception", + "description": "Demonstrates configuring a Graph for bounds checking and writing an NUnit test that verifies adding a rectangle outside the page limits raises a BoundsOutOfRangeException.", "tags": [ "graph", - "skew", - "pdf", - "aspose", - "visual-effect" + "bounds", + "unit-test", + "exception", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Drawing.Rectangle" + "Aspose.Pdf.Drawing.Graph.Shapes.UpdateBoundsCheckMode", + "Aspose.Pdf.Drawing.BoundsCheckMode", + "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Drawing.BoundsOutOfRangeException" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "toggle-graph-boundscheckmode.cs", - "title": "Toggle Graph BoundsCheckMode in PDF", - "description": "Demonstrates how to switch the Graph shape collection's bounds‑check mode between strict (throw exception) and ignore based on a user setting, and saves a PDF containing a rectangle that exceeds the graph size.", + "filename": "toggle-graph-bounds-check-mode.cs", + "title": "Toggle Graph Bounds Check Mode in PDF", + "description": "Demonstrates how to switch the Graph.BoundsCheckMode between throwing an exception for out‑of‑bounds shapes and ignoring bounds, using Aspose.Pdf.", "tags": [ "graph", - "boundscheck", + "bounds", "pdf", "aspose", "shapes" @@ -50181,7 +60790,7 @@ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.BoundsCheckMode", + "Aspose.Pdf.Drawing.Graph.Shapes.UpdateBoundsCheckMode", "Aspose.Pdf.Drawing.Rectangle", "Aspose.Pdf.Drawing.GraphInfo", "Aspose.Pdf.Color" @@ -50189,30 +60798,47 @@ "difficulty": "beginner" }, { - "filename": "translate-graph-rectangle.cs", - "title": "Translate Rectangle Position in a PDF Graph", - "description": "Demonstrates how to move a rectangle shape inside a Graph container by adjusting its Left and Bottom coordinates, then saving the PDF.", + "filename": "toggle-graph-boundscheckmode.cs", + "title": "Toggle Graph Boundscheckmode", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "translate-graph-position-in-pdf.cs", + "title": "Translate Graph Position Horizontally and Vertically", + "description": "Demonstrates creating a Graph with a rectangle shape in a PDF, adding it to a page, and moving the entire graph by adjusting its Left and Top properties.", "tags": [ - "pdf", "graph", "translation", - "shape", - "aspose-pdf" + "pdf", + "aspose-pdf", + "position" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Graph", + "Aspose.Pdf.Drawing.Graph", "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.GraphInfo" + "Aspose.Pdf.Drawing.GraphInfo", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" + }, + { + "filename": "translate-graph-rectangle.cs", + "title": "Translate Graph Rectangle", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" } ] }, { "name": "working-with-images", - "file_count": 72, + "file_count": 105, "files": [ "add-alternative-text-to-pdf-images.cs", "add-background-image-to-pdf-pages.cs", @@ -50220,83 +60846,115 @@ "add-background-pattern-image-to-pdf-pages.cs", "add-background-pattern-image-to-pdf-pages__v2.cs", "add-background-texture-overlay-to-pdf-pages.cs", + "add-centered-logo-to-first-pdf-page.cs", "add-company-logo-to-first-page.cs", + "add-decorative-footer-image-to-pdf-pages.cs", "add-decorative-header-image-to-pdf-pages.cs", "add-diagonal-image-watermark-to-pdf.cs", + "add-dicom-image-to-pdf-page.cs", "add-dicom-image-to-pdf-using-filestream.cs", + "add-header-image-to-pdf-pages.cs", "add-image-with-alt-text-to-pdf.cs", - "add-png-logo-to-first-pdf-page.cs", - "add-raster-image-to-new-pdf-page.cs", + "add-png-logo-to-first-page.cs", + "add-raster-image-to-pdf-page.cs", "add-scalable-footer-image-to-pdf-pages.cs", "add-semi-transparent-image-watermark-to-pdf-pages.cs", "add-semi-transparent-overlay-image-to-pdf.cs", "add-semi-transparent-overlay-to-pdf-pages.cs", + "add-subtle-background-pattern-to-pdf-pages.cs", + "add-texture-background-image-to-pdf-pages.cs", "add-transparent-png-overlay-to-pdf-pages.cs", "add-vector-graphics-collection-to-pdf-page.cs", + "add-vector-graphics-to-pdf-page.cs", "batch-extract-images-from-pdfs.cs", "batch-extract-vector-graphics-from-pdfs.cs", + "collect-image-resolution-metadata.cs", "compress-large-images-in-pdf.cs", "compress-large-images-in-pdf__v2.cs", + "compress-pdf-images-using-optimization.cs", + "convert-even-pdf-pages-to-grayscale.cs", "convert-pdf-images-to-monochrome.cs", "convert-pdf-pages-to-png-with-default-font.cs", - "convert-pdf-to-multi-page-tiff.cs", + "convert-pdf-pages-to-png-with-default-font__v2.cs", + "convert-pdf-to-multi-page-tiff-default-font.cs", "convert-pdf-to-png-with-default-font.cs", "copy-vector-graphics-between-pdf-pages.cs", "correct-exif-orientation-in-pdf.cs", - "delete-low-resolution-images-from-pdf.cs", + "correct-pdf-image-orientation.cs", + "delete-raster-image-from-pdf-page.cs", "delete-specific-raster-image-from-pdf-page.cs", "export-pdf-pages-to-bmp-300-dpi.cs", "extract-image-resolution-metadata.cs", + "extract-images-from-multiple-pdfs.cs", + "extract-images-from-pdf-preserve-format.cs", "extract-raster-images-from-pdf.cs", "extract-raster-images-from-pdf__v2.cs", "extract-vector-graphics-to-svg.cs", "generate-png-thumbnails-for-pdf-pages.cs", "insert-dicom-image-with-custom-size.cs", + "insert-raster-image-into-pdf-page.cs", "insert-raster-image-into-pdf.cs", "move-vector-graphic-on-pdf-page.cs", + "move-vector-graphic-position.cs", "remove-all-images-from-pdf.cs", + "remove-duplicate-images-from-pdf.cs", "remove-duplicate-images-pdf.cs", "remove-low-resolution-images-from-pdf.cs", + "remove-low-resolution-images-from-pdf__v2.cs", "remove-vector-graphic-from-pdf-page.cs", "render-pdf-page-to-png-with-fallback-font.cs", "render-pdf-pages-to-jpeg-with-default-font.cs", "render-pdf-pages-to-png-300-dpi.cs", "render-pdf-to-multi-page-tiff-lzw-fallback.cs", + "render-pdf-to-png-300-dpi-default-font.cs", + "render-pdf-to-tiff-with-lzw-and-font-fallback.cs", "replace-appendix-images-with-placeholder.cs", "replace-image-in-pdf-page.cs", "replace-image-on-pdf-page-with-png.cs", - "replace-images-even-pages-grayscale.cs", + "replace-image-on-pdf-page.cs", "replace-images-last-page-with-banner.cs", "replace-images-odd-pages-placeholder.cs", + "replace-images-odd-pages-qr-placeholder.cs", + "replace-images-on-odd-pages-with-placeholder.cs", + "replace-images-on-pdf-page.cs", "replace-images-with-logo.cs", "replace-index-page-images-with-banner.cs", "replace-jpeg-with-png-in-pdf.cs", + "replace-jpeg-with-png-on-pdf-page.cs", "replace-odd-page-images-with-qr-placeholder.cs", + "replace-pdf-images-with-icc-profile-jpegs.cs", "replace-pdf-images-with-icc-profile.cs", + "replace-pdf-images-with-placeholder.cs", + "replace-pdf-images-with-placeholder__v2.cs", "replace-pdf-images-with-placeholders.cs", "replace-pdf-images-with-qr-placeholder.cs", "replace-raster-with-vector.cs", "replace-specific-images-on-pdf-page.cs", + "replace-title-page-banner.cs", "replace-title-page-images-with-banner.cs", + "replace-vector-graphic-with-raster-image.cs", "replace-vector-with-raster-image.cs", "resize-embedded-raster-image.cs", "resize-images-half-size.cs", - "resize-images-in-pdf-using-configurable-scale-factor.cs", + "resize-images-on-pdf-pages.cs", + "resize-pdf-images-using-config-scale-factor.cs", + "resize-pdf-images-using-config-scale.cs", "resize-pdf-images-using-config.cs", "resize-pdf-images-using-configurable-scale.cs", - "retrieve-alt-text-from-pdf-images.cs", - "transfer-vector-graphic-to-another-pdf-page.cs" + "retrieve-image-alt-text.cs", + "transfer-vector-graphic-between-pdf-pages.cs", + "transfer-vector-graphic-to-another-pdf-page.cs", + "vectorize-pdf-replace-raster-with-svg.cs" ], "required_namespaces": [ "Aspose.Pdf", "Aspose.Pdf.Devices", - "Aspose.Pdf.Text", - "Aspose.Pdf.Vector", "Aspose.Pdf.Facades", - "Aspose.Pdf.Annotations", + "Aspose.Pdf.Vector", + "Aspose.Pdf.Text", "Aspose.Pdf.Drawing", - "Aspose.Pdf.Optimization", - "Aspose.Pdf.LogicalStructure" + "Aspose.Pdf.Annotations", + "Aspose.Pdf.Optimization" ], "key_apis": [ "ImagePlacementAbsorber", @@ -50309,20 +60967,20 @@ "GoToURIAction", "JpegDevice", "LinkAnnotation", - "TextAbsorber", + "SvgLoadOptions", "ThumbnailDevice" ], "examples": [ { "filename": "add-alternative-text-to-pdf-images.cs", "title": "Add Alternative Text to PDF Images", - "description": "Demonstrates how to load a PDF, iterate through its pages and image resources, and set alternative text for each image to improve accessibility, then save the updated document.", + "description": "Demonstrates how to load a PDF, iterate through its pages and images, set alternative text for each image to improve accessibility, and save the updated document.", "tags": [ "pdf", "accessibility", - "alternative-text", "image", - "Aspose.Pdf" + "alt-text", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", @@ -50336,43 +60994,39 @@ { "filename": "add-background-image-to-pdf-pages.cs", "title": "Add Background Image to PDF Pages with Opacity", - "description": "Shows how to place a background image on every page of a PDF and set its opacity to 30% using Aspose.Pdf.", + "description": "Shows how to place a semi‑transparent background image on every page of a PDF using Aspose.Pdf's ImageStamp and save the result.", "tags": [ "pdf", - "background", - "image", + "background-image", "opacity", - "aspose" + "stamp", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.BackgroundArtifact", - "Aspose.Pdf.Page.Artifacts", - "Aspose.Pdf.BackgroundArtifact.SetImage", - "Aspose.Pdf.BackgroundArtifact.Opacity", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.ImageStamp", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.PageCollection" ], "difficulty": "beginner" }, { "filename": "add-background-image-to-pdf.cs", "title": "Add Background Image to PDF Pages", - "description": "Demonstrates loading an existing PDF, adding a background image to each page using a BackgroundArtifact, setting it as a background with reduced opacity to simulate a multiply blend, and saving the result.", + "description": "Shows how to place a background image on each page of an existing PDF using Aspose.Pdf, configuring it as a background artifact with adjustable opacity for a subtle shading effect.", "tags": [ "pdf", "background", "image", - "opacity", - "aspose-pdf" + "artifact", + "opacity" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.BackgroundArtifact", "Aspose.Pdf.BackgroundArtifact.SetImage", - "Aspose.Pdf.BackgroundArtifact.IsBackground", - "Aspose.Pdf.BackgroundArtifact.Opacity", "Aspose.Pdf.Page.Artifacts.Add", "Aspose.Pdf.Document.Save" ], @@ -50381,7 +61035,7 @@ { "filename": "add-background-pattern-image-to-pdf-pages.cs", "title": "Add Background Pattern Image to PDF Pages", - "description": "Demonstrates how to place a semi‑transparent pattern image as a background on every page of a PDF using Aspose.Pdf.", + "description": "Shows how to place a semi‑transparent background pattern image on each page of a PDF document using Aspose.Pdf.", "tags": [ "background", "image", @@ -50395,6 +61049,7 @@ "Aspose.Pdf.BackgroundArtifact", "Aspose.Pdf.BackgroundArtifact.SetImage", "Aspose.Pdf.BackgroundArtifact.Opacity", + "Aspose.Pdf.BackgroundArtifact.IsBackground", "Aspose.Pdf.Page.Artifacts.Add", "Aspose.Pdf.Document.Save" ], @@ -50402,91 +61057,82 @@ }, { "filename": "add-background-pattern-image-to-pdf-pages__v2.cs", - "title": "Add Background Pattern Image to PDF Pages", - "description": "Shows how to place a semi‑transparent background pattern image on every page of a PDF using Aspose.Pdf.", - "tags": [ - "background", - "image", - "opacity", - "pdf", - "Aspose.Pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.BackgroundArtifact", - "Aspose.Pdf.BackgroundArtifact.SetImage", - "Aspose.Pdf.BackgroundArtifact.Opacity", - "Aspose.Pdf.Page.Artifacts.Add", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "intermediate" + "title": "Add Background Pattern Image To Pdf Pages__V2", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "add-background-texture-overlay-to-pdf-pages.cs", - "title": "Add Background Texture Overlay to PDF Pages", - "description": "Demonstrates how to add a semi‑transparent background image to each page of a PDF using Aspose.Pdf's BackgroundArtifact for a subtle overlay effect.", - "tags": [ - "pdf", - "background", - "image", - "overlay", - "Aspose.Pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.BackgroundArtifact", - "Aspose.Pdf.Page.Artifacts", - "Aspose.Pdf.BackgroundArtifact.SetImage" - ], - "difficulty": "intermediate" + "title": "Add Background Texture Overlay To Pdf Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "add-company-logo-to-first-page.cs", - "title": "Add Company Logo to First Page of PDF", - "description": "Shows how to load a PDF, create a centered ImageStamp for a logo, add it only to the first page, and save the modified document.", + "filename": "add-centered-logo-to-first-pdf-page.cs", + "title": "Add Centered Logo to First PDF Page", + "description": "Shows how to load a PDF, create an ImageStamp for a logo, center it on the first page, and save the modified document.", "tags": [ "pdf", "image", "stamp", "logo", - "aspose" + "center" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.ImageStamp", + "Aspose.Pdf.HorizontalAlignment", + "Aspose.Pdf.VerticalAlignment", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.HorizontalAlignment" + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "add-decorative-header-image-to-pdf-pages.cs", - "title": "Add Decorative Header Image to PDF Pages", - "description": "Shows how to place a header image at the top of each page in a PDF using Aspose.Pdf, calculating page dimensions and adding the image as a stamp.", + "filename": "add-company-logo-to-first-page.cs", + "title": "Add Company Logo To First Page", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-decorative-footer-image-to-pdf-pages.cs", + "title": "Add Decorative Footer Image to PDF Pages", + "description": "Shows how to insert a footer image on every page of a PDF, scaling it proportionally to the page width using Aspose.Pdf.", "tags": [ - "header", + "footer", "image", "pdf", - "aspose", - "stamp" + "Aspose.Pdf", + "scaling" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.ImageStamp", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page.AddImage", + "Aspose.Pdf.PageInfo" ], "difficulty": "intermediate" }, + { + "filename": "add-decorative-header-image-to-pdf-pages.cs", + "title": "Add Decorative Header Image To Pdf Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "add-diagonal-image-watermark-to-pdf.cs", "title": "Add Diagonal Image Watermark to PDF", - "description": "Demonstrates how to overlay a semi‑transparent image watermark on every page of a PDF and rotate it 45° for diagonal placement using Aspose.Pdf.", + "description": "Shows how to load a PDF, create an ImageStamp with a 45° rotation and semi‑transparent opacity, apply it to each page as a background watermark, and save the modified document.", "tags": [ "pdf", "watermark", @@ -50497,30 +61143,57 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.ImageStamp", - "Aspose.Pdf.ImageStamp.RotateAngle", "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "add-dicom-image-to-pdf-using-filestream.cs", - "title": "Add DICOM Image to PDF Using FileStream", - "description": "Shows how to load a DICOM file via a FileStream, create an Aspose.Pdf.Image, and embed it on a PDF page, then save the document.", + "filename": "add-dicom-image-to-pdf-page.cs", + "title": "Add DICOM Image to PDF Page using FileStream", + "description": "Shows how to load an existing PDF, read a DICOM image via a FileStream, and place the image on a page at a defined rectangle using Aspose.Pdf.", "tags": [ "dicom", "pdf", "image", - "aspose", - "filestream" + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.Image", - "Aspose.Pdf.Image.ImageStream", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.PageInfo", - "Aspose.Pdf.Page.Paragraphs.Add", + "Aspose.Pdf.Page.AddImage" + ], + "difficulty": "intermediate" + }, + { + "filename": "add-dicom-image-to-pdf-using-filestream.cs", + "title": "Add Dicom Image To Pdf Using Filestream", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-header-image-to-pdf-pages.cs", + "title": "Add Header Image to Each PDF Page", + "description": "Shows how to place a decorative header image at the top of every page in a PDF using Aspose.Pdf, calculating a rectangle so the image does not overlap existing content.", + "tags": [ + "pdf", + "header", + "image", + "aspose", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.PageInfo.Width", + "Aspose.Pdf.PageInfo.Height", + "Aspose.Pdf.Page.AddImage", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" @@ -50528,7 +61201,7 @@ { "filename": "add-image-with-alt-text-to-pdf.cs", "title": "Add Image with Alternative Text to PDF", - "description": "Shows how to insert an image into a PDF using Aspose.Pdf and assign alternative (alt) text for accessibility purposes.", + "description": "Shows how to insert an image into an existing PDF document and assign alternative (alt) text for accessibility using Aspose.Pdf.", "tags": [ "pdf", "image", @@ -50539,21 +61212,22 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Image", - "Aspose.Pdf.XImage.TrySetAlternativeText", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Page.AddImage", + "Aspose.Pdf.XImage", + "Aspose.Pdf.XImage.TrySetAlternativeText" ], "difficulty": "intermediate" }, { - "filename": "add-png-logo-to-first-pdf-page.cs", - "title": "Add PNG Logo to First PDF Page", + "filename": "add-png-logo-to-first-page.cs", + "title": "Add PNG Logo to First Page of PDF", "description": "Shows how to load a PDF with Aspose.Pdf, place a PNG logo at specific coordinates on the first page, and save the modified document.", "tags": [ "pdf", "image", "logo", - "aspose", + "aspose-pdf", "csharp" ], "apis_used": [ @@ -50566,92 +61240,78 @@ "difficulty": "beginner" }, { - "filename": "add-raster-image-to-new-pdf-page.cs", - "title": "Add Raster Image to a New PDF Page", - "description": "Shows how to place a raster image (PNG, JPEG, etc.) on a newly added PDF page using Aspose.Pdf's Image class and the page's Paragraphs collection.", + "filename": "add-raster-image-to-pdf-page.cs", + "title": "Add Raster Image to PDF Page", + "description": "Demonstrates how to insert a raster image (PNG, JPEG, etc.) onto a newly created PDF page using Aspose.Pdf's Image class and the Paragraphs collection.", "tags": [ "image", "pdf", - "raster", "aspose", + "raster", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Image", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Page.Paragraphs", + "Aspose.Pdf.PageCollection.Add", + "Aspose.Pdf.Page.Paragraphs.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "add-scalable-footer-image-to-pdf-pages.cs", - "title": "Add Scalable Footer Image to PDF Pages", - "description": "Shows how to insert a decorative footer image on every page of a PDF and scale it proportionally to the page width using Aspose.Pdf.", - "tags": [ - "footer", - "image", - "scaling", - "pdf", - "Aspose.Pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Image", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.PageInfo.Width", - "Aspose.Pdf.Image.BitmapSize", - "Aspose.Pdf.Page.AddImage" - ], - "difficulty": "intermediate" + "title": "Add Scalable Footer Image To Pdf Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "add-semi-transparent-image-watermark-to-pdf-pages.cs", "title": "Add Semi-Transparent Image Watermark to PDF Pages", - "description": "Demonstrates how to overlay a semi‑transparent PNG image as a watermark on every page of a PDF using Aspose.Pdf, with the opacity set from a configuration value.", + "description": "Demonstrates how to overlay a semi-transparent PNG watermark on every page of a PDF using Aspose.Pdf, with opacity configurable via a setting.", "tags": [ - "pdf", "watermark", + "pdf", "image", "opacity", - "aspose" + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.ImageStamp", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.HorizontalAlignment", - "Aspose.Pdf.VerticalAlignment" + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "add-semi-transparent-overlay-image-to-pdf.cs", "title": "Add Semi-Transparent Overlay Image to PDF", - "description": "Demonstrates how to apply a semi‑transparent image overlay to every page of a PDF using Aspose.Pdf, then flatten the transparency and save the result.", + "description": "Demonstrates how to apply a semi‑transparent PNG overlay to every page of a PDF using Aspose.Pdf, stretching the image to cover each page.", "tags": [ - "pdf", "overlay", "image", - "transparency", - "stamp" + "pdf", + "opacity", + "watermark" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.ImageStamp", + "Aspose.Pdf.Page", + "Aspose.Pdf.PageInfo", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.FlattenTransparency", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "add-semi-transparent-overlay-to-pdf-pages.cs", - "title": "Add Semi-Transparent Color Overlay to PDF Pages", - "description": "Shows how to load a theme configuration from a JSON file and apply a semi‑transparent color overlay to each page of a PDF using Aspose.Pdf.", + "title": "Add Semi-Transparent Overlay to PDF Pages from Theme Config", + "description": "Shows how to read a JSON theme file, parse a hex color with opacity, and draw a full‑page semi‑transparent rectangle overlay on each page of a PDF using Aspose.Pdf.", "tags": [ "pdf", "overlay", @@ -50665,98 +61325,157 @@ "Aspose.Pdf.Drawing.Graph", "Aspose.Pdf.Drawing.Rectangle", "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Color" + "Aspose.Pdf.Color.FromArgb", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, + { + "filename": "add-subtle-background-pattern-to-pdf-pages.cs", + "title": "Add Subtle Background Pattern to PDF Pages", + "description": "Demonstrates how to apply a low‑opacity pattern image as a background artifact on every page of a PDF using Aspose.Pdf.", + "tags": [ + "background", + "pattern", + "opacity", + "pdf", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.BackgroundArtifact", + "Aspose.Pdf.BackgroundArtifact.SetImage", + "Aspose.Pdf.BackgroundArtifact.Opacity", + "Aspose.Pdf.Page.Artifacts.Add", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner" + }, + { + "filename": "add-texture-background-image-to-pdf-pages.cs", + "title": "Add Texture Background Image to PDF Pages", + "description": "Shows how to place a subtle texture image as a background on every page of a PDF using Aspose.Pdf's BackgroundArtifact and adjust its opacity.", + "tags": [ + "pdf", + "background", + "image", + "texture", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.BackgroundArtifact", + "Aspose.Pdf.BackgroundArtifact.SetImage", + "Aspose.Pdf.Page.Artifacts", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner" + }, { "filename": "add-transparent-png-overlay-to-pdf-pages.cs", "title": "Add Transparent PNG Overlay to PDF Pages", - "description": "Demonstrates loading a PDF, iterating through its pages, and applying a transparent PNG overlay using an ImageStamp positioned above existing content.", + "description": "Shows how to load a PDF, iterate through each page, and place a full‑page transparent PNG overlay above existing content before saving the document.", "tags": [ "pdf", "overlay", "png", - "image-stamp", - "aspose" + "aspose", + "z-order" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.ImageStamp", - "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Page.AddImage", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "add-vector-graphics-collection-to-pdf-page.cs", - "title": "Add Vector Graphics Collection to PDF Page", - "description": "Demonstrates how to create a collection of vector shapes (line, rectangle, ellipse) and add them to a new PDF page using Aspose.Pdf's Graph object.", + "title": "Add Vector Graphics Collection To Pdf Page", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-vector-graphics-to-pdf-page.cs", + "title": "Add Vector Graphics to a PDF Page", + "description": "Shows how to create a new PDF page, build a Graph with rectangle, ellipse, and line shapes, and add the vector graphics to the document using Aspose.Pdf.", "tags": [ "pdf", "vector-graphics", "shapes", - "aspose-pdf", - "add-page" + "graph", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Shape", - "Aspose.Pdf.Drawing.Line", "Aspose.Pdf.Drawing.Rectangle", "Aspose.Pdf.Drawing.Ellipse", - "Aspose.Pdf.Drawing.GraphInfo" + "Aspose.Pdf.Drawing.Line", + "Aspose.Pdf.Drawing.GraphInfo", + "Aspose.Pdf.Color" ], "difficulty": "intermediate" }, { "filename": "batch-extract-images-from-pdfs.cs", - "title": "Batch Extract Images from PDFs", - "description": "Shows how to process multiple PDF files in a folder, load each with Aspose.Pdf, and extract all embedded images into separate output sub‑folders.", + "title": "Batch Extract Images From Pdfs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "batch-extract-vector-graphics-from-pdfs.cs", + "title": "Batch Extract Vector Graphics from PDFs", + "description": "Loads all PDF files from a specified input folder, iterates through each page, and extracts any vector graphics as SVG files, storing them in separate subfolders per document and page.", "tags": [ "pdf", - "image-extraction", - "batch-processing", - "aspose", - "csharp" + "vector", + "svg", + "batch", + "extraction" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.XImage", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Page.Resources.Images", - "Aspose.Pdf.XImage.Save" + "Aspose.Pdf.Vector.SvgExtractor", + "Aspose.Pdf.Page.HasVectorGraphics", + "Aspose.Pdf.Document.Pages" ], "difficulty": "intermediate" }, { - "filename": "batch-extract-vector-graphics-from-pdfs.cs", - "title": "Batch Extract Vector Graphics from PDFs to SVG", - "description": "Demonstrates how to iterate through multiple PDF files, detect pages with vector graphics, and extract each graphic as an individual SVG file into organized folders.", + "filename": "collect-image-resolution-metadata.cs", + "title": "Collect Image Resolution Metadata from PDF Pages", + "description": "Loads a PDF, iterates through each page, finds all images using ImagePlacementAbsorber, and reports their DPI resolution and visible size.", "tags": [ "pdf", - "vector-graphics", - "svg", - "batch", - "aspose-pdf" + "image", + "resolution", + "aspose-pdf", + "metadata" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Vector.SvgExtractor", - "Aspose.Pdf.Page.HasVectorGraphics", - "Aspose.Pdf.Vector.SvgExtractor.Extract" + "Aspose.Pdf.ImagePlacementAbsorber", + "Aspose.Pdf.ImagePlacement", + "Aspose.Pdf.Page.Accept" ], "difficulty": "intermediate" }, { "filename": "compress-large-images-in-pdf.cs", "title": "Compress Large Images in PDF", - "description": "Shows how to reduce PDF size by compressing images (e.g., those over 1 MB) using Aspose.Pdf's optimization options.", + "description": "Shows how to load a PDF, configure image compression to replace images larger than 2 MB with compressed JPEGs, and save the optimized document.", "tags": [ "pdf", "image-compression", @@ -50771,12 +61490,20 @@ "Aspose.Pdf.Document.OptimizeResources", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "compress-large-images-in-pdf__v2.cs", - "title": "Compress Large Images in PDF with JPEG Optimization", - "description": "Demonstrates loading a PDF, configuring image compression options to replace images larger than 2 MB with compressed JPEGs, and saving the optimized document.", + "title": "Compress Large Images In Pdf__V2", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "compress-pdf-images-using-optimization.cs", + "title": "Compress Images in PDF Using Aspose.Pdf Optimization", + "description": "The example loads a PDF, configures image compression options (quality and resolution), applies resource optimization to compress large images, and saves the reduced‑size PDF.", "tags": [ "pdf", "image-compression", @@ -50789,6 +61516,27 @@ "Aspose.Pdf.Optimization.OptimizationOptions", "Aspose.Pdf.Optimization.ImageCompressionOptions", "Aspose.Pdf.Document.OptimizeResources", + "Aspose.Pdf.Document.OptimizeSize", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "intermediate" + }, + { + "filename": "convert-even-pdf-pages-to-grayscale.cs", + "title": "Convert Even PDF Pages to Grayscale", + "description": "Shows how to load a PDF, iterate through its pages, apply a grayscale conversion only to even-numbered pages, and save the modified document.", + "tags": [ + "pdf", + "grayscale", + "even-pages", + "image-processing", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.PageCollection", + "Aspose.Pdf.Page", + "Aspose.Pdf.Page.MakeGrayscale", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" @@ -50796,28 +61544,27 @@ { "filename": "convert-pdf-images-to-monochrome.cs", "title": "Convert PDF Images to Monochrome", - "description": "Shows how to replace each image in a PDF with its grayscale version using Aspose.Pdf, resulting in a uniform monochrome document.", + "description": "Shows how to open a PDF, iterate through each page's images, and replace them with a black‑and‑white version using Aspose.Pdf.", "tags": [ "pdf", - "grayscale", - "image-replacement", - "aspose.pdf", - "monochrome" + "image", + "monochrome", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.ImageCollection", - "Aspose.Pdf.XImage.Grayscaled", - "Aspose.Pdf.ImageCollection.Replace", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.XImageCollection", + "Aspose.Pdf.XImage", + "Aspose.Pdf.XImageCollection.Replace" ], "difficulty": "intermediate" }, { "filename": "convert-pdf-pages-to-png-with-default-font.cs", - "title": "Convert PDF Pages to PNG Images with Default Font Arial", - "description": "Demonstrates setting RenderingOptions.DefaultFontName to Arial and converting each page of a PDF document to PNG images using Aspose.Pdf.", + "title": "Convert PDF Pages to PNG with Default Font", + "description": "Shows how to load a PDF, set RenderingOptions.DefaultFontName to Arial, and convert each page to a PNG image using Aspose.Pdf.", "tags": [ "pdf", "image-conversion", @@ -50826,79 +61573,95 @@ "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.RenderingOptions", - "Aspose.Pdf.Devices.PngDevice", "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.Devices.RenderingOptions", + "Aspose.Pdf.Devices.PngDevice", "Aspose.Pdf.Devices.PngDevice.Process" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "convert-pdf-to-multi-page-tiff.cs", - "title": "Convert PDF to Multi‑Page TIFF with Default Font", - "description": "Demonstrates converting an entire PDF document to a multi‑page TIFF file using Aspose.Pdf, configuring resolution, TIFF settings, and applying a default font for missing fonts.", + "filename": "convert-pdf-pages-to-png-with-default-font__v2.cs", + "title": "Convert PDF Pages to PNG with Default Font Override", + "description": "Demonstrates how to set RenderingOptions.DefaultFontName to \"Times New Roman\" and convert each page of a PDF document to PNG images using Aspose.Pdf.", "tags": [ "pdf", - "tiff", - "conversion", + "image-conversion", "default-font", - "csharp" + "png", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Devices.Resolution", - "Aspose.Pdf.Devices.TiffSettings", - "Aspose.Pdf.Devices.TiffDevice", - "Aspose.Pdf.Devices.TiffDevice.Process", - "Aspose.Pdf.Devices.RenderingOptions" + "Aspose.Pdf.Devices.PngDevice", + "Aspose.Pdf.Devices.RenderingOptions", + "Aspose.Pdf.Devices.PngDevice.Process" ], "difficulty": "intermediate" }, { - "filename": "convert-pdf-to-png-with-default-font.cs", - "title": "Convert PDF Pages to PNG with Default Font Override", - "description": "Loads a PDF, sets RenderingOptions.DefaultFontName to \"Times New Roman\" to replace missing fonts, and converts each page to a PNG image using Aspose.Pdf.", + "filename": "convert-pdf-to-multi-page-tiff-default-font.cs", + "title": "Convert PDF to Multi-Page TIFF with Default Font", + "description": "Demonstrates converting an entire PDF document into a multi‑page TIFF file using Aspose.Pdf, setting resolution, TIFF options, and applying a default font for rendering missing fonts.", "tags": [ "pdf", - "png", - "rendering-options", - "font-substitution", - "aspose-pdf" + "tiff", + "conversion", + "default-font", + "resolution" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.RenderingOptions", - "Aspose.Pdf.Devices.PngDevice", "Aspose.Pdf.Devices.Resolution", - "Aspose.Pdf.Devices.PngDevice.Process" + "Aspose.Pdf.Devices.TiffSettings", + "Aspose.Pdf.Devices.TiffDevice", + "Aspose.Pdf.Devices.TiffDevice.RenderingOptions", + "Aspose.Pdf.Devices.TiffDevice.Process" ], "difficulty": "intermediate" }, + { + "filename": "convert-pdf-to-png-with-default-font.cs", + "title": "Convert Pdf To Png With Default Font", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "copy-vector-graphics-between-pdf-pages.cs", "title": "Copy Vector Graphics Between PDF Pages", - "description": "Shows how to extract vector graphics from a source PDF page using GraphicsAbsorber and insert each graphic into a target PDF page.", + "description": "Demonstrates how to extract vector graphic objects from a source PDF page using GraphicsAbsorber and insert each graphic individually onto a target PDF page.", "tags": [ "vector-graphics", "pdf", + "aspnet", "graphics-absorber", - "page-merge", - "aspose-pdf" + "page-manipulation" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Vector.GraphicsAbsorber", - "Aspose.Pdf.Vector.Graphic.AddOnPage", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Vector.GraphicsAbsorber.Visit", + "Aspose.Pdf.Vector.GraphicObject.AddOnPage" ], "difficulty": "intermediate" }, { "filename": "correct-exif-orientation-in-pdf.cs", - "title": "Correct EXIF Orientation of Images in PDF", - "description": "The example loads a PDF, detects EXIF orientation metadata in each embedded image, rotates/flips the image accordingly, and replaces it in the PDF to ensure proper display.", + "title": "Correct Exif Orientation In Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "correct-pdf-image-orientation.cs", + "title": "Correct PDF Image Orientation Using EXIF Data", + "description": "Loads a PDF, reads each embedded image's EXIF orientation, rotates or flips the image accordingly, and replaces it in the PDF to ensure proper display.", "tags": [ "pdf", "exif", @@ -50909,38 +61672,17 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.XImage", "Aspose.Pdf.XImageCollection", + "Aspose.Pdf.XImage", "Aspose.Pdf.XImageCollection.Replace", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "delete-low-resolution-images-from-pdf.cs", - "title": "Delete Low-Resolution Images from PDF", - "description": "Shows how to remove images with a DPI lower than 72 from a PDF using ImagePlacementAbsorber, hide them, and then optimize the document resources.", - "tags": [ - "pdf", - "image", - "dpi", - "aspnet", - "optimize" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.ImagePlacementAbsorber", - "Aspose.Pdf.ImagePlacement", - "Aspose.Pdf.Document.OptimizeResources", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "intermediate" - }, - { - "filename": "delete-specific-raster-image-from-pdf-page.cs", - "title": "Delete Specific Raster Image from PDF Page", - "description": "Shows how to remove a raster image from a PDF page by deleting its reference using Aspose.Pdf's image collection API.", + "filename": "delete-raster-image-from-pdf-page.cs", + "title": "Delete Raster Image from PDF Page", + "description": "Shows how to remove a specific raster image from a PDF page by deleting its reference in the page resources using Aspose.Pdf.", "tags": [ "pdf", "image", @@ -50951,96 +61693,121 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.XImage", - "Aspose.Pdf.ImageCollection.Delete", + "Aspose.Pdf.Page.Resources", + "Aspose.Pdf.Page.Resources.Images", + "Aspose.Pdf.Page.Resources.Images.Delete", "Aspose.Pdf.ImageDeleteAction" ], - "difficulty": "intermediate" + "difficulty": "beginner" + }, + { + "filename": "delete-specific-raster-image-from-pdf-page.cs", + "title": "Delete Specific Raster Image From Pdf Page", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "export-pdf-pages-to-bmp-300-dpi.cs", "title": "Export PDF Pages to BMP Images at 300 DPI", - "description": "Demonstrates loading a PDF with Aspose.Pdf, setting a 300 DPI resolution, and rendering each page to a BMP file using BmpDevice and optional rendering options.", + "description": "Shows how to convert each page of a PDF into a 300‑DPI BMP image using Aspose.Pdf's BmpDevice with a custom resolution.", "tags": [ "pdf", "bmp", "export", - "resolution", - "aspose" + "300dpi", + "rendering" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Resolution", "Aspose.Pdf.Devices.BmpDevice", "Aspose.Pdf.Devices.BmpDevice.Process", - "Aspose.Pdf.RenderingOptions" + "Aspose.Pdf.Page" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "extract-image-resolution-metadata.cs", - "title": "Extract Image Resolution Metadata from PDF Pages", - "description": "Loads a PDF, iterates through each page, finds all image placements using ImagePlacementAbsorber, and reports their size and DPI resolution.", + "title": "Extract Image Resolution Metadata", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-images-from-multiple-pdfs.cs", + "title": "Extract Images from Multiple PDFs", + "description": "Demonstrates how to batch‑process PDF files in a folder and extract every embedded image, saving them as PNG files with unique names.", "tags": [ "pdf", - "image", - "resolution", - "metadata", - "aspose" + "image-extraction", + "batch", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page.Accept", - "Aspose.Pdf.ImagePlacementAbsorber", - "Aspose.Pdf.ImagePlacement", - "Aspose.Pdf.ImagePlacement.Resolution" + "Aspose.Pdf.Page", + "Aspose.Pdf.XImage", + "Aspose.Pdf.Page.Resources.Images", + "Aspose.Pdf.XImage.Save" ], "difficulty": "intermediate" }, { - "filename": "extract-raster-images-from-pdf.cs", - "title": "Extract Raster Images from PDF to PNG", - "description": "Demonstrates how to load a PDF with Aspose.Pdf, iterate through each page, extract raster image resources, and save them as separate PNG files.", + "filename": "extract-images-from-pdf-preserve-format.cs", + "title": "Extract Images from PDF Preserving Original Format", + "description": "Shows how to iterate through PDF pages using Aspose.Pdf, extract each embedded raster image, detect its original format from header bytes, and save the image to disk without conversion.", "tags": [ "pdf", "image-extraction", - "aspose", - "png", - "csharp" + "aspose-pdf", + "raster", + "file-format" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.XImage", - "Aspose.Pdf.Page.Resources.Images", + "Aspose.Pdf.Page.Resources", "Aspose.Pdf.XImage.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "extract-raster-images-from-pdf__v2.cs", - "title": "Extract Raster Images from PDF Preserving Original Format", - "description": "Loads a PDF with Aspose.Pdf, iterates through each page and its embedded images, saves each image to a memory stream, determines the original format from header bytes, and writes the raw bytes to disk, preserving the original image format.", + "filename": "extract-raster-images-from-pdf.cs", + "title": "Extract Raster Images from PDF and Save as PNG", + "description": "Loads a PDF document, iterates through each page's image resources, and saves every raster image as an individual PNG file.", "tags": [ "pdf", "image-extraction", + "png", "aspose-pdf", - "raster-images", - "file-format" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.XImage", - "Aspose.Pdf.Page.Resources.Images", + "Aspose.Pdf.ImageCollection", "Aspose.Pdf.XImage.Save" ], "difficulty": "intermediate" }, + { + "filename": "extract-raster-images-from-pdf__v2.cs", + "title": "Extract Raster Images From Pdf__V2", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "extract-vector-graphics-to-svg.cs", "title": "Extract Vector Graphics from PDF Page to SVG", - "description": "Demonstrates how to use Aspose.Pdf's GraphicsAbsorber to collect vector graphics from a specific PDF page and convert them to an SVG file with SvgExtractor.", + "description": "Demonstrates using GraphicsAbsorber to collect vector graphics from a specific PDF page and converting them to an SVG file for further manipulation.", "tags": [ "pdf", "vector-graphics", @@ -51050,9 +61817,11 @@ ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.Page.HasVectorGraphics", "Aspose.Pdf.Vector.GraphicsAbsorber", "Aspose.Pdf.Vector.GraphicsAbsorber.Visit", + "Aspose.Pdf.Vector.SvgExtractor", "Aspose.Pdf.Vector.SvgExtractor.Extract" ], "difficulty": "intermediate" @@ -51060,52 +61829,52 @@ { "filename": "generate-png-thumbnails-for-pdf-pages.cs", "title": "Generate PNG Thumbnails for PDF Pages", - "description": "Creates 150x200 pixel PNG thumbnail images for each page of a PDF using Aspose.Pdf's ThumbnailDevice.", + "description": "Creates 150x200 pixel PNG thumbnail images for each page of a PDF document using Aspose.Pdf's ThumbnailDevice.", "tags": [ "pdf", "thumbnail", "png", "aspose", - "image" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Devices.ThumbnailDevice", - "Aspose.Pdf.Document.Pages", "Aspose.Pdf.Devices.ThumbnailDevice.Process", - "Aspose.Pdf.Document.Pages.Count" + "Aspose.Pdf.PageCollection", + "Aspose.Pdf.Page" ], "difficulty": "beginner" }, { "filename": "insert-dicom-image-with-custom-size.cs", "title": "Insert DICOM Image with Custom Size into PDF", - "description": "Demonstrates how to embed a DICOM image into a PDF and control its displayed size by setting Width and Height on an ImageStamp before adding it to a page.", + "description": "Shows how to add a DICOM image to a PDF document and control its resolution by setting explicit Width and Height on an ImageStamp before stamping.", "tags": [ "dicom", - "pdf", "image", - "aspose", - "csharp" + "pdf", + "custom-size", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.ImageStamp", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.PageCollection" ], "difficulty": "beginner" }, { - "filename": "insert-raster-image-into-pdf.cs", - "title": "Insert Raster Image into PDF at Absolute Coordinates", - "description": "Shows how to load an existing PDF, define a rectangle with absolute coordinates, and add a raster image to a specific page using Aspose.Pdf.", + "filename": "insert-raster-image-into-pdf-page.cs", + "title": "Insert Raster Image into PDF Page", + "description": "Shows how to load an existing PDF, define an absolute rectangle, and insert a raster image onto a specific page using Aspose.Pdf.", "tags": [ "pdf", "image", "insert", - "coordinates", + "rectangle", "Aspose.Pdf" ], "apis_used": [ @@ -51117,85 +61886,131 @@ ], "difficulty": "beginner" }, + { + "filename": "insert-raster-image-into-pdf.cs", + "title": "Insert Raster Image Into Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "move-vector-graphic-on-pdf-page.cs", - "title": "Move Vector Graphic on PDF Page", - "description": "Demonstrates extracting a vector graphic from a PDF page with GraphicsAbsorber, changing its Position (which updates the internal matrix), and saving the modified document.", + "title": "Move Vector Graphic On Pdf Page", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "move-vector-graphic-position.cs", + "title": "Move Vector Graphic to New Position Using Matrix", + "description": "Demonstrates how to shift a vector graphic on a PDF page by updating its Position or applying a translation matrix with Aspose.Pdf.", "tags": [ "vector-graphics", - "graphicsabsorber", - "position", + "matrix", "pdf-manipulation", + "positioning", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Vector.GraphicsAbsorber", - "Aspose.Pdf.Vector.GraphicsAbsorber.Visit", - "Aspose.Pdf.Vector.Graphic", - "Aspose.Pdf.Vector.Point" + "Aspose.Pdf.Page.HasVectorGraphics", + "Aspose.Pdf.Vector.Matrix", + "Aspose.Pdf.Vector.Matrix.Translate", + "Aspose.Pdf.Text.Point", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "remove-all-images-from-pdf.cs", - "title": "Remove All Images from a PDF", - "description": "Demonstrates how to delete every image from each page of a PDF using Aspose.Pdf by clearing the page's image collection and saving the result.", + "title": "Remove All Images from PDF Pages", + "description": "Shows how to load a PDF with Aspose.Pdf, iterate through each page, delete all images from the page resources, and save the cleaned document.", "tags": [ "pdf", "images", "remove", - "aspose.pdf", + "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.Page.Resources", "Aspose.Pdf.XImageCollection", - "Aspose.Pdf.Page.Resources.Images.Delete", + "Aspose.Pdf.XImageCollection.Delete", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "remove-duplicate-images-pdf.cs", - "title": "Remove Duplicate Images Across PDF Pages", - "description": "Demonstrates how to iterate through PDF pages, compare raw image bytes, and delete duplicate images using Aspose.Pdf.", + "filename": "remove-duplicate-images-from-pdf.cs", + "title": "Remove Duplicate Images from PDF", + "description": "Demonstrates how to iterate through PDF pages, compute a hash of each image's raw bytes, and delete duplicate images using Aspose.Pdf APIs, then re‑optimize the document.", "tags": [ "pdf", - "images", - "duplicate", - "aspose", - "csharp" + "duplicate-images", + "image-hash", + "optimization", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", + "Aspose.Pdf.Page.Resources.Images", "Aspose.Pdf.XImage", - "Aspose.Pdf.Facades.ImageDeleteAction", - "Aspose.Pdf.Resources.Images", + "Aspose.Pdf.XImage.Save", + "Aspose.Pdf.ImageDeleteAction.ForceDelete", + "Aspose.Pdf.Document.OptimizeResources", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, + { + "filename": "remove-duplicate-images-pdf.cs", + "title": "Remove Duplicate Images Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "remove-low-resolution-images-from-pdf.cs", "title": "Remove Low-Resolution Images from PDF", - "description": "Shows how to delete images whose DPI is lower than 72 from a PDF using ImagePlacementAbsorber, hide them, and then optimize the document resources.", + "description": "Shows how to scan each page of a PDF, use ImagePlacementAbsorber to find images, hide those with DPI lower than 72, optimize resources, and save the result.", "tags": [ "pdf", "image", "dpi", - "aspnet", - "optimize" + "optimization", + "aspnet" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.ImagePlacementAbsorber", + "Aspose.Pdf.ImagePlacement", + "Aspose.Pdf.Document.OptimizeResources", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "intermediate" + }, + { + "filename": "remove-low-resolution-images-from-pdf__v2.cs", + "title": "Remove Low-Resolution Images from PDF", + "description": "Shows how to delete images with a DPI lower than 72 using ImagePlacementAbsorber, hide the low‑resolution images, optimize resources, and save the updated PDF.", + "tags": [ + "pdf", + "image", + "dpi", + "aspose.pdf", + "optimization" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.ImagePlacementAbsorber", "Aspose.Pdf.ImagePlacement", - "Aspose.Pdf.Page.Accept", "Aspose.Pdf.ImagePlacement.Hide", "Aspose.Pdf.Document.OptimizeResources", "Aspose.Pdf.Document.Save" @@ -51204,29 +62019,28 @@ }, { "filename": "remove-vector-graphic-from-pdf-page.cs", - "title": "Remove a Vector Graphic from a PDF Page", - "description": "Shows how to locate vector graphics on a PDF page with GraphicsAbsorber and delete a specific graphic using Aspose.Pdf.", + "title": "Remove Vector Graphic from PDF Page", + "description": "Demonstrates how to locate vector graphics on a PDF page using GraphicsAbsorber and delete a selected graphic, then save the modified document.", "tags": [ "pdf", - "vector-graphic", - "graphicsabsorber", - "remove", - "aspose-pdf" + "vector-graphics", + "graphics-absorber", + "aspose-pdf", + "remove" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Vector.GraphicsAbsorber", "Aspose.Pdf.Vector.GraphicsAbsorber.Visit", - "Aspose.Pdf.Vector.GraphicsAbsorber.Elements", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Vector.Graphic.Remove" ], "difficulty": "intermediate" }, { "filename": "render-pdf-page-to-png-with-fallback-font.cs", "title": "Render PDF Page to PNG with Fallback Font", - "description": "Shows how to render the first page of a PDF document to a PNG image while specifying a fallback font using Aspose.Pdf's RenderingOptions.", + "description": "Demonstrates how to render the first page of a PDF to a PNG image while specifying a default fallback font using Aspose.Pdf rendering options.", "tags": [ "pdf", "png", @@ -51236,28 +62050,28 @@ ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.RenderingOptions", - "Aspose.Pdf.Devices.Resolution", "Aspose.Pdf.Devices.PngDevice", + "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.Devices.RenderingOptions", "Aspose.Pdf.Devices.PngDevice.Process" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "render-pdf-pages-to-jpeg-with-default-font.cs", - "title": "Render PDF Pages to JPEG with Default Font Substitution", - "description": "Demonstrates how to convert each page of a PDF document to a JPEG image while specifying a default font for any missing glyphs during rendering.", + "title": "Render PDF Pages to JPEG with Default Font", + "description": "Demonstrates how to convert each page of a PDF document to a JPEG image while specifying a default font for missing glyphs using Aspose.Pdf.", "tags": [ "pdf", "jpeg", "rendering", - "font-substitution", + "default-font", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Resolution", "Aspose.Pdf.Devices.JpegDevice", - "Aspose.Pdf.Devices.Resolution", "Aspose.Pdf.Devices.JpegDevice.RenderingOptions", "Aspose.Pdf.Devices.JpegDevice.Process" ], @@ -51265,259 +62079,296 @@ }, { "filename": "render-pdf-pages-to-png-300-dpi.cs", - "title": "Render PDF Pages to PNG at 300 DPI", - "description": "Demonstrates loading a PDF with Aspose.Pdf, setting a 300 DPI resolution, and rendering each page to a PNG image file.", + "title": "Render Pdf Pages To Png 300 Dpi", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "render-pdf-to-multi-page-tiff-lzw-fallback.cs", + "title": "Render Pdf To Multi Page Tiff Lzw Fallback", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "render-pdf-to-png-300-dpi-default-font.cs", + "title": "Render PDF Pages to PNG at 300 DPI with Default Font", + "description": "The example loads a PDF, configures a font substitution to use Arial for missing fonts, and renders each page to a PNG image at 300 DPI.", "tags": [ "pdf", "png", "render", - "300dpi", - "aspose" + "dpi", + "font-substitution" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Resolution", + "Aspose.Pdf.Page", "Aspose.Pdf.Devices.PngDevice", - "Aspose.Pdf.Devices.PngDevice.Process", - "Aspose.Pdf.PageCollection" + "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.Text.FontRepository", + "Aspose.Pdf.Text.SimpleFontSubstitution" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "render-pdf-to-multi-page-tiff-lzw-fallback.cs", + "filename": "render-pdf-to-tiff-with-lzw-and-font-fallback.cs", "title": "Render PDF to Multi-Page TIFF with LZW Compression and Font Fallback", - "description": "Loads a PDF, registers a fallback font for missing glyphs, and converts all pages into a single multi-page TIFF file using LZW compression.", + "description": "The example loads a PDF, applies a default font fallback for missing characters, and renders all pages to a single multi-page TIFF file using LZW compression at 300 DPI.", "tags": [ "pdf", "tiff", - "compression", + "lzw", "font-fallback", "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.FontRepository", - "Aspose.Pdf.Text.SimpleFontSubstitution", "Aspose.Pdf.Document", + "Aspose.Pdf.PdfSaveOptions", + "Aspose.Pdf.Devices.TiffDevice", "Aspose.Pdf.Devices.Resolution", "Aspose.Pdf.Devices.TiffSettings", "Aspose.Pdf.Devices.CompressionType", - "Aspose.Pdf.Devices.TiffDevice" + "Aspose.Pdf.Devices.ColorDepth", + "Aspose.Pdf.Devices.ShapeType" ], "difficulty": "intermediate" }, { "filename": "replace-appendix-images-with-placeholder.cs", - "title": "Replace Appendix Images with Placeholder in PDF", - "description": "Loads a PDF, detects pages that belong to the appendix by searching for the word \"Appendix\", and replaces every image on those pages with a single placeholder image.", - "tags": [ - "pdf", - "image-replacement", - "appendix", - "placeholder", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextAbsorber", - "Aspose.Pdf.Text.TextSearchOptions", - "Aspose.Pdf.XImageCollection", - "Aspose.Pdf.XImageCollection.Replace", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "intermediate" + "title": "Replace Appendix Images With Placeholder", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "replace-image-in-pdf-page.cs", - "title": "Replace Image in PDF Page", - "description": "Shows how to replace an existing image on a PDF page with a new image loaded from a file stream using Aspose.Pdf.", + "title": "Replace Image In Pdf Page", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "replace-image-on-pdf-page-with-png.cs", + "title": "Replace Image On Pdf Page With Png", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "replace-image-on-pdf-page.cs", + "title": "Replace Image on PDF Page", + "description": "Shows how to locate image placements on a specific PDF page and replace each with a new image loaded from a file stream using Aspose.Pdf.", "tags": [ + "image-replacement", "pdf", - "image", - "replace", "aspose-pdf", - "csharp" + "csharp", + "page" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Page.Resources", - "Aspose.Pdf.XImageCollection", - "Aspose.Pdf.XImageCollection.Replace" + "Aspose.Pdf.ImagePlacementAbsorber", + "Aspose.Pdf.ImagePlacement", + "Aspose.Pdf.ImagePlacement.Replace", + "Aspose.Pdf.Page" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "replace-image-on-pdf-page-with-png.cs", - "title": "Replace Image on PDF Page with High-Resolution PNG", - "description": "Demonstrates loading a PDF, accessing the XImageCollection of page three via Resources.Images, and replacing an existing JPEG with a higher‑resolution PNG before saving the document.", + "filename": "replace-images-last-page-with-banner.cs", + "title": "Replace Images on Last PDF Page with Full-Width Banner", + "description": "Demonstrates how to hide all existing images on the final page of a PDF and insert a banner image that spans the page width using Aspose.Pdf.", "tags": [ "pdf", - "image-replacement", - "aspose-pdf", - "csharp", - "resources" + "image", + "banner", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.XImageCollection", - "Aspose.Pdf.XImageCollection.Replace", + "Aspose.Pdf.ImagePlacementAbsorber", + "Aspose.Pdf.ImagePlacement", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Page.AddImage", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "replace-images-even-pages-grayscale.cs", - "title": "Replace Images on Even PDF Pages with Grayscale", - "description": "Loads a PDF, iterates through its pages and converts only the even‑numbered pages to grayscale, effectively replacing the images on those pages with grayscale versions.", + "filename": "replace-images-odd-pages-placeholder.cs", + "title": "Replace Images Odd Pages Placeholder", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "replace-images-odd-pages-qr-placeholder.cs", + "title": "Replace Images on Odd Pages with QR Code Placeholder", + "description": "Demonstrates how to iterate through odd‑numbered PDF pages, locate each image, and replace it with a QR‑code placeholder while preserving a reference to the original image.", "tags": [ "pdf", - "grayscale", - "images", - "pages", - "Aspose.Pdf" + "image-replacement", + "qr-code", + "odd-pages", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Page.MakeGrayscale", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Text.ImagePlacementAbsorber", + "Aspose.Pdf.Text.ImagePlacement", + "Aspose.Pdf.XImage", + "Aspose.Pdf.Resources.Images.Replace", + "Aspose.Pdf.XImage.TrySetAlternativeText" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "replace-images-last-page-with-banner.cs", - "title": "Replace Images on Last Page with Banner", - "description": "Shows how to hide all existing images on the last page of a PDF and insert a single banner image that spans the page width using Aspose.Pdf.", + "filename": "replace-images-on-odd-pages-with-placeholder.cs", + "title": "Replace Images on Odd PDF Pages with Placeholder", + "description": "Shows how to iterate through a PDF, locate image placements on odd‑numbered pages, and replace each image with a placeholder graphic while keeping the original dimensions and positioning.", "tags": [ "pdf", - "image", - "banner", - "aspose.pdf", - "last-page" + "image-replacement", + "odd-pages", + "placeholder", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.ImagePlacementAbsorber", - "Aspose.Pdf.ImagePlacement.Hide", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Page.AddImage" + "Aspose.Pdf.ImagePlacement", + "Aspose.Pdf.ImagePlacement.Replace", + "Aspose.Pdf.Page.Accept" ], "difficulty": "intermediate" }, { - "filename": "replace-images-odd-pages-placeholder.cs", - "title": "Replace Images on Odd PDF Pages with a Placeholder", - "description": "Demonstrates how to iterate through a PDF, detect image placements on odd‑numbered pages, and replace each image with a placeholder graphic while preserving its original size.", + "filename": "replace-images-on-pdf-page.cs", + "title": "Replace Images on a PDF Page Using a Dictionary", + "description": "Demonstrates how to replace specific images on a given PDF page by mapping image indices to new image files using Aspose.Pdf.", "tags": [ "pdf", "image-replacement", - "odd-pages", - "placeholder", + "dictionary", + "aspnet", "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.ImagePlacementAbsorber", - "Aspose.Pdf.ImagePlacement", - "Aspose.Pdf.ImagePlacement.Replace", + "Aspose.Pdf.XImageCollection", + "Aspose.Pdf.XImageCollection.Replace", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "replace-images-with-logo.cs", - "title": "Replace Images on PDF Pages with a Logo", - "description": "Demonstrates how to locate all image placements on each PDF page using ImagePlacementAbsorber and replace them with a specified logo image.", + "title": "Replace Images on PDF Page with New Logo", + "description": "Creates a sample PDF containing an image, then uses ImagePlacementAbsorber to locate all image placements and replaces each with a new in‑memory logo image.", "tags": [ - "images", - "replace", - "logo", + "image-replacement", "pdf", - "aspose-pdf" + "aspose-pdf", + "image-absorber", + "logo" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Drawing.Image", "Aspose.Pdf.ImagePlacementAbsorber", - "Aspose.Pdf.ImagePlacement", - "Aspose.Pdf.Page.Accept", - "Aspose.Pdf.ImagePlacement.Replace", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.ImagePlacement" ], "difficulty": "intermediate" }, { "filename": "replace-index-page-images-with-banner.cs", - "title": "Replace Images on First PDF Page with Banner", - "description": "Shows how to load a PDF with Aspose.Pdf, access the images on the first page, and replace each of them with a single banner image to update branding.", + "title": "Replace Index Page Images with a Banner Image", + "description": "Shows how to replace every image on the first (index) page of a PDF with a single banner image using Aspose.Pdf.", "tags": [ "pdf", "image-replacement", "branding", - "aspose-pdf", + "aspose.pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.ImageCollection", - "Aspose.Pdf.ImageCollection.Replace", - "Aspose.Pdf.Resources" + "Aspose.Pdf.XImageCollection", + "Aspose.Pdf.XImageCollection.Replace", + "Aspose.Pdf.Page.Resources" ], "difficulty": "beginner" }, { "filename": "replace-jpeg-with-png-in-pdf.cs", "title": "Replace JPEG Images with PNG in PDF", - "description": "Demonstrates loading a PDF with Aspose.Pdf, iterating through each page's image resources, and replacing every JPEG image with a specified PNG while keeping the original layout.", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, iterate through each page and image resource, and replace every JPEG image with a PNG file while preserving the original layout.", "tags": [ "pdf", "image-replacement", "aspose-pdf", - "csharp", + "jpeg", "png" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.XImageCollection", - "Aspose.Pdf.XImageCollection.Replace", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.ImageCollection.Replace", + "Aspose.Pdf.Resources" ], "difficulty": "beginner" }, { - "filename": "replace-odd-page-images-with-qr-placeholder.cs", - "title": "Replace Images on Odd PDF Pages with QR Code Placeholder", - "description": "Shows how to iterate through a PDF, replace every image on odd‑numbered pages with a QR‑code placeholder image, and assign alternative text that links to the original image source.", + "filename": "replace-jpeg-with-png-on-pdf-page.cs", + "title": "Replace JPEG with High‑Resolution PNG on PDF Page", + "description": "Shows how to replace an existing JPEG image on the third page of a PDF with a higher‑resolution PNG using Aspose.Pdf's Resources.Images collection.", "tags": [ "pdf", "image-replacement", - "qr-code", - "aspose", - "placeholder" + "aspose-pdf", + "resources", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.XImageCollection", "Aspose.Pdf.XImageCollection.Replace", - "Aspose.Pdf.XImage.TrySetAlternativeText", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "replace-pdf-images-with-icc-profile.cs", - "title": "Replace PDF Images with ICC Profile Versions", - "description": "Shows how to load a PDF, iterate through its pages, and replace each embedded image with a JPEG that already contains an ICC color profile, then save the updated document.", + "filename": "replace-odd-page-images-with-qr-placeholder.cs", + "title": "Replace Odd Page Images With Qr Placeholder", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "replace-pdf-images-with-icc-profile-jpegs.cs", + "title": "Replace PDF Images with ICC‑Profile JPEGs", + "description": "Shows how to iterate through each page of a PDF and replace all embedded images with a JPEG that contains an embedded ICC color profile using Aspose.Pdf.", "tags": [ "pdf", "image-replacement", - "icc-profile", + "icc", "color-management", "aspose-pdf" ], @@ -51531,35 +62382,43 @@ "difficulty": "intermediate" }, { - "filename": "replace-pdf-images-with-placeholders.cs", - "title": "Replace PDF Images with Placeholders and Add Hyperlink References", - "description": "Demonstrates how to replace each image in a PDF with a low‑resolution placeholder and attach a link annotation that points to the original image location.", + "filename": "replace-pdf-images-with-icc-profile.cs", + "title": "Replace Pdf Images With Icc Profile", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "replace-pdf-images-with-placeholder.cs", + "title": "Replace PDF Images with Placeholder and Add Hyperlink", + "description": "Shows how to replace each image in a PDF with a small placeholder PNG and overlay a link annotation that points to the original image location.", "tags": [ "pdf", "image-replacement", - "placeholder", - "annotation", - "aspose-pdf" + "link-annotation", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.ImagePlacementAbsorber", "Aspose.Pdf.ImagePlacement", "Aspose.Pdf.XImage", + "Aspose.Pdf.Page.Resources.Images.Replace", "Aspose.Pdf.Annotations.LinkAnnotation", "Aspose.Pdf.Annotations.GoToURIAction" ], "difficulty": "intermediate" }, { - "filename": "replace-pdf-images-with-qr-placeholder.cs", - "title": "Replace PDF Images with QR Code Placeholder", - "description": "Shows how to open a PDF, iterate through each page's image resources, and replace every image with a QR‑code placeholder image using Aspose.Pdf.", + "filename": "replace-pdf-images-with-placeholder__v2.cs", + "title": "Replace All PDF Images with a Placeholder", + "description": "Shows how to load a PDF with Aspose.Pdf, iterate through each page, replace every embedded image with a low‑resolution placeholder image, and save the modified document.", "tags": [ "pdf", "image-replacement", - "qr-code", + "placeholder", "aspose-pdf", "csharp" ], @@ -51567,57 +62426,58 @@ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.XImageCollection", - "Aspose.Pdf.XImageCollection.Replace", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.XImageCollection.Replace" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "replace-raster-with-vector.cs", - "title": "Replace Raster Images with Vector Graphics in PDF", - "description": "Demonstrates how to extract vector graphics from PDF pages, remove raster images, and save a vector‑only PDF using Aspose.Pdf.", + "filename": "replace-pdf-images-with-placeholders.cs", + "title": "Replace Pdf Images With Placeholders", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "replace-pdf-images-with-qr-placeholder.cs", + "title": "Replace PDF Images with QR Code Placeholder", + "description": "Shows how to iterate through a PDF, replace each embedded image with a QR‑code placeholder image, and store the original image name as alternative text using Aspose.Pdf.", "tags": [ "pdf", - "vector", - "raster", "image-replacement", - "optimization" + "qr-code", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Page.HasVectorGraphics", - "Aspose.Pdf.Page.TrySaveVectorGraphics", - "Aspose.Pdf.Page.Resources.Images.Clear", - "Aspose.Pdf.Document.OptimizeResources", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.ImageCollection", + "Aspose.Pdf.XImage", + "Aspose.Pdf.ImageCollection.Replace", + "Aspose.Pdf.XImage.TrySetAlternativeText" ], "difficulty": "intermediate" }, + { + "filename": "replace-raster-with-vector.cs", + "title": "Replace Raster With Vector", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "replace-specific-images-on-pdf-page.cs", - "title": "Replace Specific Images on a PDF Page", - "description": "Demonstrates how to replace selected images on a given PDF page using a dictionary that maps image indices to new image files.", - "tags": [ - "pdf", - "image-replacement", - "aspose-pdf", - "csharp", - "dictionary" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.XImageCollection", - "Aspose.Pdf.XImageCollection.Replace", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "intermediate" + "title": "Replace Specific Images On Pdf Page", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "replace-title-page-images-with-banner.cs", + "filename": "replace-title-page-banner.cs", "title": "Replace Title Page Images with High‑Resolution Banner", - "description": "Shows how to replace all images on the first (title) page of a PDF with a high‑resolution banner while keeping the original layout using Aspose.Pdf.", + "description": "Demonstrates how to load a PDF, locate the title page, and replace all existing images on that page with a high‑resolution banner image while preserving the original text layout.", "tags": [ "pdf", "image-replacement", @@ -51628,37 +62488,55 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.XImageCollection", - "Aspose.Pdf.XImageCollection.Replace", - "Aspose.Pdf.XImage.TrySetAlternativeText" + "Aspose.Pdf.Page.Resources", + "Aspose.Pdf.ImageCollection", + "Aspose.Pdf.ImageCollection.Replace", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "replace-vector-with-raster-image.cs", + "filename": "replace-title-page-images-with-banner.cs", + "title": "Replace Title Page Images With Banner", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "replace-vector-graphic-with-raster-image.cs", "title": "Replace Vector Graphic with Raster Image in PDF", - "description": "Shows how to overlay a raster image onto a specific area where a vector graphic resides in a PDF, preserving the original layout using Aspose.Pdf.", + "description": "Demonstrates loading a PDF, detecting pages with vector graphics, and overlaying a raster PNG in the same location while preserving layout, then flattening transparency and saving the result.", "tags": [ "pdf", - "image", - "vector", - "raster", - "stamp" + "vector-graphics", + "raster-image", + "aspose-pdf", + "image-replace" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.ImageStamp", "Aspose.Pdf.Page.HasVectorGraphics", - "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Page.AddImage", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Document.FlattenTransparency", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, + { + "filename": "replace-vector-with-raster-image.cs", + "title": "Replace Vector With Raster Image", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "resize-embedded-raster-image.cs", "title": "Resize Embedded Raster Image in PDF", - "description": "Shows how to open a PDF with Aspose.Pdf, locate raster Image objects, set new width and height using FixWidth/FixHeight, and save the updated document.", + "description": "Demonstrates how to load a PDF, define a rectangle with new dimensions, and replace an embedded raster image by adding it with the specified width and height before saving the document.", "tags": [ "pdf", "image", @@ -51669,102 +62547,118 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Image", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Image.FixWidth", - "Aspose.Pdf.Image.FixHeight" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Page.AddImage", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "resize-images-half-size.cs", "title": "Resize Images on PDF Pages to Half Size", - "description": "Shows how to load a PDF, iterate through its pages and image objects, and reduce each image's width and height to 50% using Aspose.Pdf.", + "description": "Shows how to load a PDF with Aspose.Pdf, iterate through each page and its paragraphs, detect Image objects, scale them to 50 % of their original dimensions, and save the modified document.", "tags": [ "pdf", - "image-resize", + "image", + "resize", "aspose-pdf", - "csharp", - "scale" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Image", - "Aspose.Pdf.Image.ImageScale", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Image.ImageScale" ], "difficulty": "beginner" }, { - "filename": "resize-images-in-pdf-using-configurable-scale-factor.cs", - "title": "Resize Images in PDF Using Configurable Scale Factor", - "description": "Demonstrates loading a scaling factor from appsettings.json and applying it to all images in a PDF using Aspose.Pdf.", + "filename": "resize-images-on-pdf-pages.cs", + "title": "Resize Images on PDF Pages Using a Config File", + "description": "Demonstrates how to read a JSON configuration that defines target dimensions per page, extract each image with ImagePlacementAbsorber, hide the original, and re‑add it with the new size in an Aspose.Pdf document.", "tags": [ "pdf", "image-resize", - "configuration", "aspose-pdf", + "json-config", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Image", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Page.Paragraphs" + "Aspose.Pdf.Devices.ImagePlacementAbsorber", + "Aspose.Pdf.ImagePlacement", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Page.AddImage" ], "difficulty": "intermediate" }, { - "filename": "resize-pdf-images-using-config.cs", - "title": "Resize PDF Images Using a Configuration File", - "description": "Demonstrates how to read a JSON configuration that specifies target dimensions per page, extract each image from a PDF, resize it with System.Drawing, and replace the original image on the page.", + "filename": "resize-pdf-images-using-config-scale-factor.cs", + "title": "Resize Images in PDF Using Configurable Scale Factor", + "description": "The example reads a scaling factor from a configuration file and applies it to all images in a PDF, resizing them before saving the document.", "tags": [ "pdf", - "image-resize", + "image-scaling", "configuration", - "aspose", + "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.ImagePlacementAbsorber", - "Aspose.Pdf.ImagePlacement", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Page.AddImage" + "Aspose.Pdf.Image", + "Aspose.Pdf.Page.Paragraphs", + "Aspose.Pdf.Image.ImageScale", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "resize-pdf-images-using-configurable-scale.cs", + "filename": "resize-pdf-images-using-config-scale.cs", "title": "Resize Images in PDF Using Configurable Scale Factor", - "description": "The example reads a scaling factor from a text configuration file, loads a PDF with Aspose.Pdf, iterates through each page and image, applies the factor via ImageScale, and saves the modified document.", + "description": "Demonstrates loading a scaling factor from appsettings.json and applying it to all image objects in a PDF using Aspose.Pdf, then saving the modified document.", "tags": [ "pdf", "image-scaling", - "configuration", "aspose-pdf", + "configuration", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Image", - "Aspose.Pdf.Image.ImageScale", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Page.Paragraphs" ], "difficulty": "intermediate" }, { - "filename": "retrieve-alt-text-from-pdf-images.cs", + "filename": "resize-pdf-images-using-config.cs", + "title": "Resize Pdf Images Using Config", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "resize-pdf-images-using-configurable-scale.cs", + "title": "Resize Pdf Images Using Configurable Scale", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "retrieve-image-alt-text.cs", "title": "Retrieve Alternative Text from PDF Images", - "description": "Shows how to load a PDF with Aspose.Pdf, iterate through its pages and images, extract each image's alternative (alt) text, and log the results for auditing.", + "description": "Loads a PDF, iterates through each page and its image resources, extracts any alternative (alt) text associated with the images, and logs the results for auditing.", "tags": [ "pdf", - "alternative-text", "image", + "alt-text", "aspose", "audit" ], @@ -51778,23 +62672,50 @@ "difficulty": "beginner" }, { - "filename": "transfer-vector-graphic-to-another-pdf-page.cs", - "title": "Transfer Vector Graphic to Another PDF Page with Position Adjustment", - "description": "Demonstrates extracting vector graphics from one PDF page using GraphicsAbsorber, shifting their position, and placing them onto another page.", + "filename": "transfer-vector-graphic-between-pdf-pages.cs", + "title": "Transfer Vector Graphic Between PDF Pages", + "description": "Demonstrates extracting vector graphics from a source PDF page with GraphicsAbsorber, repositioning them, and adding them to another PDF page.", "tags": [ - "vector-graphics", - "pdf-manipulation", - "graphics-absorber", + "vector-graphic", + "pdf", "page-transfer", - "positioning" + "position", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.GraphicsAbsorber", "Aspose.Pdf.Page", - "Aspose.Pdf.GraphicElement", - "Aspose.Pdf.Point", - "Aspose.Pdf.GraphicElement.AddOnPage" + "Aspose.Pdf.Vector.GraphicsAbsorber", + "Aspose.Pdf.Vector.GraphicElement", + "Aspose.Pdf.Point" + ], + "difficulty": "intermediate" + }, + { + "filename": "transfer-vector-graphic-to-another-pdf-page.cs", + "title": "Transfer Vector Graphic To Another Pdf Page", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "vectorize-pdf-replace-raster-with-svg.cs", + "title": "Vectorize PDF Pages by Replacing Raster Images with SVG", + "description": "Shows how to extract vector graphics from each PDF page as SVG, substitute raster pages with the SVG version when possible, and rebuild the PDF using Aspose.Pdf.", + "tags": [ + "pdf", + "vectorization", + "svg", + "aspose-pdf", + "image-replacement" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page.TrySaveVectorGraphics", + "Aspose.Pdf.SvgLoadOptions", + "Aspose.Pdf.Document.Pages.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" } @@ -51802,45 +62723,71 @@ }, { "name": "working-with-tables", - "file_count": 96, + "file_count": 153, "files": [ "add-auto-numbered-column-to-pdf-table.cs", "add-background-color-to-table-cell.cs", "add-centered-paragraph-to-table-cell.cs", + "add-checkbox-form-field-in-table-cell.cs", "add-checkbox-in-table-cell.cs", "add-footer-row-to-pdf-table.cs", "add-footnote-references-in-pdf-table.cs", + "add-footnote-references-to-table-cells.cs", "add-gradient-background-behind-table.cs", "add-hyperlink-to-table-cell.cs", + "add-list-items-in-table-cell.cs", "add-multiline-text-to-table-cell.cs", "add-numbered-list-in-table-cell.cs", + "add-radio-button-group-in-table-cell.cs", + "add-solid-border-to-pdf-table.cs", "add-styled-text-to-table-cell.cs", + "add-table-footer-to-pdf.cs", "add-table-to-specific-pdf-page.cs", + "add-table-with-background-color.cs", + "add-table-with-semi-transparent-background.cs", + "add-text-fragment-to-table-cell.cs", + "adjust-table-column-widths-proportionally.cs", "adjust-table-column-widths.cs", "alternating-row-colors-pdf-table.cs", "apply-different-autofit-behavior-to-tables.cs", + "apply-different-autofit-behaviors-to-tables.cs", + "apply-double-border-to-pdf-table.cs", "apply-solid-border-to-pdf-table.cs", "auto-fit-table-columns-to-content.cs", "auto-fit-table-row-height.cs", "auto-fit-table-to-page-width.cs", "batch-add-table-with-logo-to-pdfs.cs", + "batch-replace-tables-in-multiple-pdfs.cs", "batch-replace-tables-in-pdfs.cs", "calculate-remaining-page-height-add-table.cs", + "calculate-remaining-page-space-add-table.cs", "center-align-table.cs", + "center-table-horizontally.cs", + "check-table-break-across-pages.cs", "conditional-formatting-table-cells.cs", "count-tables-in-pdf-using-tableabsorber.cs", - "create-fixed-width-table.cs", + "count-tables-in-pdf.cs", + "create-fixed-width-table-pdf.cs", + "create-pdf-report-multiple-tables.cs", + "create-pdf-table-alternating-row-colors.cs", + "create-pdf-table-dynamic-row-count.cs", "create-pdf-table-from-datatable.cs", "create-pdf-table-from-datatable__v2.cs", + "create-pdf-table-from-filtered-dataview.cs", + "create-repeating-table-header.cs", "create-table-double-border.cs", "create-table-on-new-pdf-page.cs", + "create-table-with-header-and-data-rows.cs", "create-table-with-repeating-header.cs", "create-table-with-rows-and-cells.cs", + "detect-extract-tables-rotated-pages.cs", "detect-merged-cells-in-pdf-tables.cs", "determine-table-page-break-isbroken.cs", "embed-html-fragment-in-table-cell.cs", + "embed-html-in-table-cell.cs", "enable-table-splitting-across-pdf-pages.cs", "export-pdf-table-structure-to-json.cs", + "export-pdf-table-to-csv.cs", "export-pdf-to-csv.cs", "extract-pdf-tables-to-csv.cs", "extract-pdf-tables-to-datatable.cs", @@ -51849,55 +62796,86 @@ "extract-tables-from-rotated-pdf-pages.cs", "extract-text-from-pdf-tables.cs", "generate-pdf-report-multiple-tables.cs", + "get-rendered-table-width-after-layout.cs", "get-rendered-table-width.cs", "import-datatable-images-into-pdf-table.cs", "import-datatable-into-pdf-table.cs", "import-dataview-into-pdf-table.cs", "import-filtered-dataview-into-pdf-table.cs", + "import-images-from-datatable-into-pdf-table.cs", "insert-column-into-pdf-table.cs", "insert-external-image-into-pdf-table-cell.cs", + "insert-hyperlink-into-table-cell.cs", "insert-image-into-pdf-table-cell.cs", + "insert-image-into-table-cell.cs", + "insert-new-column-into-pdf-table.cs", "insert-page-break-after-table-row.cs", "insert-svg-image-into-pdf-table-cell.cs", + "insert-svg-image-into-table-cell.cs", "insert-table-after-paragraph.cs", "insert-table-after-paragraph__v2.cs", "insert-table-at-specific-position.cs", + "insert-table-before-first-image.cs", "insert-table-before-image.cs", + "insert-table-into-paragraph-collection.cs", "insert-table-into-pdf-page.cs", + "insert-table-into-pdf.cs", "insert-table-into-textbox-field.cs", "landscape-pdf-with-wide-table.cs", "map-datatable-columns-to-pdf-table.cs", + "mark-table-header-enable-column-repeat.cs", + "merge-table-cells-colspan.cs", "merge-table-cells-vertically-rowspan.cs", "merge-table-columns-using-cell-colspan.cs", "offset-table-left-margin.cs", + "populate-pdf-table-from-linq-data.cs", "populate-pdf-table-from-linq-query.cs", "prevent-table-splitting.cs", "remove-all-tables-from-pdf.cs", "remove-column-from-pdf-table.cs", + "remove-first-table-from-pdf.cs", "remove-table-from-pdf.cs", "remove-tables-containing-keyword.cs", "render-rotated-table-pdf.cs", "render-table-from-xml-to-pdf.cs", "render-table-high-dpi-images.cs", + "render-table-on-new-pdf-page.cs", + "render-wide-table-landscape.cs", + "render-xml-table-to-pdf.cs", + "reorder-pdf-table-columns.cs", "reorder-table-columns-in-pdf.cs", + "replace-merged-table-cells.cs", "replace-table-cell-text-by-keyword.cs", "replace-table-in-pdf.cs", + "replace-text-in-pdf-table-cells.cs", "right-align-table-pdf.cs", "rotate-page-add-table.cs", + "rotate-table-90-degrees-pdf.cs", "rotate-text-in-table-cell.cs", + "serialize-pdf-table-to-xml.cs", "serialize-table-to-xml.cs", + "set-cell-background-color-in-pdf-table.cs", "set-cell-vertical-alignment-middle.cs", "set-custom-cell-margins-in-pdf-table.cs", "set-custom-row-height-in-pdf-table.cs", "set-default-cell-padding-for-pdf-table.cs", + "set-fixed-row-height-for-pdf-table-rows.cs", "set-fixed-row-height-table-rows.cs", "set-maximum-column-widths-for-pdf-table.cs", + "set-maximum-table-column-width.cs", "set-minimum-column-width-for-pdf-tables.cs", + "set-minimum-column-width.cs", "set-table-background-color.cs", "set-table-border-thickness-2-points.cs", + "set-table-border-thickness.cs", "set-table-width-80-percent.cs", + "set-table-width-percentage.cs", "set-table-z-index-pdf.cs", + "set-table-z-index.cs", "split-merged-table-cells.cs", + "split-table-across-pdf-pages.cs", + "stretch-table-to-page-width.cs", + "style-table-header-row-pdf.cs", "style-table-header-row.cs", "table-with-repeating-header-and-column.cs" ], @@ -51907,78 +62885,59 @@ "Aspose.Pdf.Drawing", "Aspose.Pdf.LogicalStructure", "Aspose.Pdf.Tagged", - "Aspose.Pdf.Annotations", "Aspose.Pdf.Forms", - "Aspose.Pdf.Facades", - "Aspose.Pdf.Operators" + "Aspose.Pdf.Annotations", + "Aspose.Pdf.Devices" ], "key_apis": [ "BorderInfo", "TextFragment", "TableAbsorber", "MarginInfo", - "LinkAnnotation", - "FitExplicitDestination", "GoToURIAction", "HtmlFragment", - "StringBuilder", - "XmlLoadOptions" + "LinkAnnotation", + "StringBuilder" ], "examples": [ { "filename": "add-auto-numbered-column-to-pdf-table.cs", "title": "Add Auto‑Numbered Column to PDF Table", - "description": "Shows how to create a PDF table with Aspose.Pdf and insert sequential numbers into the first column of each row.", + "description": "Shows how to create a PDF table with Aspose.Pdf and fill the first column with sequential numbers using the Table.ImportArray method.", "tags": [ "pdf", "table", "autonumber", - "aspose.pdf", - "csharp" + "importarray", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", "Aspose.Pdf.Row", - "Aspose.Pdf.Cell", - "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.BorderInfo", - "Aspose.Pdf.MarginInfo" + "Aspose.Pdf.MarginInfo", + "Aspose.Pdf.Text.TextState" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "add-background-color-to-table-cell.cs", - "title": "Add Background Color to a Table Cell in PDF", - "description": "Shows how to set the BackgroundColor property of a table cell using Aspose.Pdf to color a cell within a PDF table.", - "tags": [ - "table", - "cell", - "background", - "pdf", - "aspose" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Table", - "Aspose.Pdf.Cell", - "Aspose.Pdf.Color", - "Aspose.Pdf.BorderInfo", - "Aspose.Pdf.MarginInfo", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner" + "title": "Add Background Color To Table Cell", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "add-centered-paragraph-to-table-cell.cs", "title": "Add Centered Paragraph to Table Cell", - "description": "Creates a PDF document, adds a table, and places a horizontally centered paragraph inside a table cell using Aspose.Pdf.", + "description": "Demonstrates how to create a PDF table with Aspose.Pdf and insert a paragraph into a cell with horizontal center alignment.", "tags": [ "table", "paragraph", - "center", + "center-alignment", "pdf", "aspose" ], @@ -51986,23 +62945,22 @@ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", + "Aspose.Pdf.Row", + "Aspose.Pdf.Cell", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.HorizontalAlignment", - "Aspose.Pdf.Table.Rows.Add", - "Aspose.Pdf.Cell.Paragraphs.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.HorizontalAlignment" ], "difficulty": "beginner" }, { - "filename": "add-checkbox-in-table-cell.cs", - "title": "Add Checkbox Form Field Inside a Table Cell", - "description": "Shows how to create a CheckboxField, calculate its position within a table cell, and add it to the PDF form collection.", + "filename": "add-checkbox-form-field-in-table-cell.cs", + "title": "Add Checkbox Form Field Inside Table Cell", + "description": "Shows how to create a PDF with a table and place a checkbox form field inside one of the table's cells using Aspose.Pdf.", "tags": [ - "checkbox", - "table", - "form-field", "pdf", + "table", + "checkbox", + "form", "aspose-pdf" ], "apis_used": [ @@ -52010,155 +62968,207 @@ "Aspose.Pdf.Page", "Aspose.Pdf.Table", "Aspose.Pdf.Forms.CheckboxField", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.BoxStyle", - "Aspose.Pdf.Color", - "Aspose.Pdf.Form" + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate" }, + { + "filename": "add-checkbox-in-table-cell.cs", + "title": "Add Checkbox In Table Cell", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "add-footer-row-to-pdf-table.cs", - "title": "Add Footer Row to PDF Table with Tagged Structure", - "description": "Shows how to create a table footer (TFoot) in a PDF using Aspose.Pdf, attach it to the tagged PDF structure, and have it repeat at the bottom of each page.", + "title": "Add Footer Row To Pdf Table", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-footnote-references-in-pdf-table.cs", + "title": "Add Footnote References In Pdf Table", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-footnote-references-to-table-cells.cs", + "title": "Add Footnote References to Table Cells in PDF", + "description": "Shows how to insert superscript footnote markers inside table cells, attach Aspose.Pdf footnote notes, and save the updated PDF.", "tags": [ "table", - "footer", - "tagged-pdf", - "Aspose.Pdf", - "C#" + "footnote", + "pdf", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", - "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.StructureElement", - "Aspose.Pdf.Tagged.TableElement", - "Aspose.Pdf.Tagged.TableTFootElement", - "Aspose.Pdf.Tagged.TableTDElement" + "Aspose.Pdf.Row", + "Aspose.Pdf.Cell", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.Note" ], "difficulty": "intermediate" }, { - "filename": "add-footnote-references-in-pdf-table.cs", - "title": "Add Footnote References with Links in PDF Table", - "description": "Demonstrates creating a table in a PDF, inserting superscript footnote markers in cells, adding footnote paragraphs on a separate page, and linking the markers to the footnotes using link annotations.", + "filename": "add-gradient-background-behind-table.cs", + "title": "Add Gradient Background Behind Table", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-hyperlink-to-table-cell.cs", + "title": "Add Hyperlink To Table Cell", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-list-items-in-table-cell.cs", + "title": "Add List Items Inside a Table Cell", + "description": "Shows how to create a bullet list within a PDF table cell by adding TextFragment paragraphs with list markers.", "tags": [ - "pdf", "table", - "footnote", - "link-annotation", - "aspose-pdf" + "list", + "cell", + "pdf", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", + "Aspose.Pdf.Row", + "Aspose.Pdf.Cell", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Annotations.LinkAnnotation", - "Aspose.Pdf.FitExplicitDestination", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.FontRepository" ], "difficulty": "intermediate" }, { - "filename": "add-gradient-background-behind-table.cs", - "title": "Add Gradient Background Behind a Table", - "description": "Demonstrates how to simulate a gradient background for a table by drawing a rectangle on a Graph and positioning the table on top using Aspose.Pdf.", + "filename": "add-multiline-text-to-table-cell.cs", + "title": "Add Multiline Text to Table Cell in PDF", + "description": "Demonstrates how to insert multiline text into a PDF table cell by adding separate TextFragment objects and a line‑break fragment.", "tags": [ - "gradient", "table", - "background", - "graph", - "aspdf" + "multiline", + "textfragment", + "pdf", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.GraphInfo", "Aspose.Pdf.Table", - "Aspose.Pdf.Row" + "Aspose.Pdf.Row", + "Aspose.Pdf.Cell", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.FontRepository.FindFont" ], "difficulty": "intermediate" }, { - "filename": "add-hyperlink-to-table-cell.cs", - "title": "Add Hyperlink to Table Cell in PDF", - "description": "Shows how to make a table cell clickable by calculating its rectangle and attaching a LinkAnnotation that opens an external URL.", + "filename": "add-numbered-list-in-table-cell.cs", + "title": "Add Numbered List In Table Cell", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-radio-button-group-in-table-cell.cs", + "title": "Add Radio Button Group Inside a Table Cell", + "description": "Demonstrates how to place a group of radio buttons inside a table cell by creating a RadioButtonField, adding options, and attaching it to the PDF form.", "tags": [ + "radio-button", "table", - "hyperlink", - "annotation", - "pdf", - "linkannotation" + "form", + "aspdf", + "pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", - "Aspose.Pdf.Annotations.LinkAnnotation", - "Aspose.Pdf.Annotations.GoToURIAction", + "Aspose.Pdf.Forms.RadioButtonField", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.Border" + "Aspose.Pdf.Document.Form.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "add-multiline-text-to-table-cell.cs", - "title": "Add Multiline Text to a Table Cell", - "description": "Shows how to create a PDF table cell containing multiline text by inserting several TextFragment objects separated by line‑break fragments using Aspose.Pdf.", + "filename": "add-solid-border-to-pdf-table.cs", + "title": "Add Solid Border to PDF Table", + "description": "Demonstrates how to load an existing PDF, create a table, apply a solid black border to the entire table, and save the modified document using Aspose.Pdf.", "tags": [ "table", - "multiline", - "textfragment", + "border", "pdf", - "aspose" + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.Table", + "Aspose.Pdf.BorderInfo", "Aspose.Pdf.Row", - "Aspose.Pdf.Cell", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.FontRepository.FindFont" + "Aspose.Pdf.Page", + "Aspose.Pdf.MarginInfo" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "add-numbered-list-in-table-cell.cs", - "title": "Add Numbered List Inside Table Cell", - "description": "Demonstrates how to create a table with a single cell and insert a numbered list into that cell using Aspose.Pdf's tagged content API.", + "filename": "add-styled-text-to-table-cell.cs", + "title": "Add Styled Text To Table Cell", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-table-footer-to-pdf.cs", + "title": "Add Table Footer Row Repeated on Each PDF Page", + "description": "Demonstrates how to add a visual table with a footer row that repeats at the bottom of each page and how to create the corresponding logical (tagged) structure using Aspose.Pdf.", "tags": [ - "tables", - "list", + "table", + "footer", "tagged-pdf", - "csharp", - "aspose-pdf" + "aspose-pdf", + "pdf" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Table", "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.StructureElement", "Aspose.Pdf.Tagged.TableElement", - "Aspose.Pdf.Tagged.ListElement", - "Aspose.Pdf.Tagged.ParagraphElement" + "Aspose.Pdf.Tagged.TableTFootElement", + "Aspose.Pdf.Tagged.TableTRElement", + "Aspose.Pdf.Tagged.TableTDElement" ], "difficulty": "intermediate" }, { - "filename": "add-styled-text-to-table-cell.cs", - "title": "Add Styled Text to Table Cell in PDF", - "description": "Shows how to insert text with a specific font and size into a PDF table cell using a TextFragment and overriding the cell's text state.", + "filename": "add-table-to-specific-pdf-page.cs", + "title": "Add Table to Specific PDF Page", + "description": "Shows how to insert a formatted table onto a chosen page of a PDF document using Aspose.Pdf, including page validation, table construction, cell population, positioning, and saving.", "tags": [ - "table", - "textfragment", - "font", "pdf", - "aspose-pdf" + "table", + "aspose.pdf", + "page", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", @@ -52166,213 +63176,251 @@ "Aspose.Pdf.Table", "Aspose.Pdf.Row", "Aspose.Pdf.Cell", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.FontRepository" + "Aspose.Pdf.Text.TextFragment" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "add-table-to-specific-pdf-page.cs", - "title": "Add Table to Specific PDF Page", - "description": "Demonstrates loading a PDF, accessing a target page, creating a formatted table, and inserting it onto that page using Aspose.Pdf.", + "filename": "add-table-with-background-color.cs", + "title": "Add Table with Background Color to PDF", + "description": "Demonstrates creating a PDF, inserting a table, and applying a solid background color while noting that gradient backgrounds are not supported via the Table.BackgroundColor property.", "tags": [ "table", + "background-color", "pdf", "aspose-pdf", - "page", - "csharp" + "gradient-limitations" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", "Aspose.Pdf.Row", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.FontRepository", - "Aspose.Pdf.BorderInfo", - "Aspose.Pdf.MarginInfo" + "Aspose.Pdf.Color" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "adjust-table-column-widths.cs", - "title": "Adjust Table Column Widths Proportionally in PDF", - "description": "Loads a PDF, finds the first table, calculates each column's width as a percentage of the total width, and updates the table to use these proportional widths with auto‑fit mode.", + "filename": "add-table-with-semi-transparent-background.cs", + "title": "Add Table with Semi-Transparent Background to PDF", + "description": "Demonstrates how to create a PDF, add a table, and set the table's background color with opacity using Aspose.Pdf.", "tags": [ - "pdf", "table", - "column-width", - "aspose-pdf", - "csharp" + "background-color", + "opacity", + "pdf", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", - "Aspose.Pdf.ColumnAdjustment", - "Aspose.Pdf.Table.ColumnWidths" + "Aspose.Pdf.Row", + "Aspose.Pdf.Color", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Page.Paragraphs.Add" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "alternating-row-colors-pdf-table.cs", - "title": "Apply Alternating Row Colors to PDF Table", - "description": "Shows how to load a PDF with Aspose.Pdf, create a table, populate rows and cells, and set alternating background colors for rows based on their index.", + "filename": "add-text-fragment-to-table-cell.cs", + "title": "Add TextFragment with Font and Size to a PDF Table Cell", + "description": "Demonstrates how to insert text with a specific font and size into a table cell by creating a TextFragment, configuring its TextState, and adding it to the cell's paragraphs.", "tags": [ + "table", + "textfragment", + "font", "pdf", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Table", + "Aspose.Pdf.Row", + "Aspose.Pdf.Cell", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.FontRepository.FindFont", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Page" + ], + "difficulty": "intermediate" + }, + { + "filename": "adjust-table-column-widths-proportionally.cs", + "title": "Adjust Table Column Widths Proportionally in PDF", + "description": "Shows how to compute the total width of a table's columns, convert each width to a percentage of that total, and apply the proportional widths to a PDF table using Aspose.Pdf.", + "tags": [ "table", - "alternating-colors", - "aspose-pdf", - "csharp" + "column-width", + "percentage", + "pdf", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", "Aspose.Pdf.Row", - "Aspose.Pdf.Cell", - "Aspose.Pdf.Color", "Aspose.Pdf.BorderInfo", - "Aspose.Pdf.Text.TextFragment" + "Aspose.Pdf.ColumnAdjustment" ], "difficulty": "intermediate" }, { - "filename": "apply-different-autofit-behavior-to-tables.cs", - "title": "Apply Different AutoFitBehavior Settings to Tables in a PDF", - "description": "Demonstrates how to add multiple tables to a PDF and set distinct ColumnAdjustment (AutoFitToContent and AutoFitToWindow) for each table.", + "filename": "adjust-table-column-widths.cs", + "title": "Adjust Table Column Widths", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "alternating-row-colors-pdf-table.cs", + "title": "Alternating Row Colors Pdf Table", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "apply-different-autofit-behavior-to-tables.cs", + "title": "Apply Different Autofit Behavior To Tables", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "apply-different-autofit-behaviors-to-tables.cs", + "title": "Apply Different AutoFit Behaviors to Tables in a PDF", + "description": "Demonstrates how to add multiple tables to a PDF and set distinct ColumnAdjustment (AutoFitToContent and AutoFitToWindow) for each, showing varied column sizing behavior.", "tags": [ - "tables", "autofit", + "tables", "pdf", - "aspose-pdf", + "aspose", "columnadjustment" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", - "Aspose.Pdf.Row", - "Aspose.Pdf.BorderInfo", "Aspose.Pdf.ColumnAdjustment", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Row", + "Aspose.Pdf.Cell", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Drawing.BorderInfo" ], "difficulty": "intermediate" }, { - "filename": "apply-solid-border-to-pdf-table.cs", - "title": "Apply Solid Border to PDF Table", - "description": "Creates a PDF document containing a table and applies a solid black border around the entire table using the Table.Border and BorderInfo properties.", + "filename": "apply-double-border-to-pdf-table.cs", + "title": "Apply Double Border to PDF Table", + "description": "Creates a PDF with a 3x3 table and sets a double‑border effect by configuring BorderInfo with width and color.", "tags": [ "table", "border", "pdf", - "aspose", - "csharp" + "Aspose.Pdf", + "double-border" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", - "Aspose.Pdf.BorderInfo", - "Aspose.Pdf.BorderSide", - "Aspose.Pdf.Color" + "Aspose.Pdf.Row", + "Aspose.Pdf.Drawing.BorderInfo", + "Aspose.Pdf.Drawing.Color" ], "difficulty": "beginner" }, + { + "filename": "apply-solid-border-to-pdf-table.cs", + "title": "Apply Solid Border To Pdf Table", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "auto-fit-table-columns-to-content.cs", - "title": "AutoFit Table Columns to Content in PDF", - "description": "Demonstrates creating a PDF table, enabling ColumnAdjustment.AutoFitToContent, and saving the document so column widths automatically adjust to the cell contents.", + "title": "Auto‑Fit Table Columns to Content in PDF", + "description": "Loads an existing PDF, creates a table, sets ColumnAdjustment to AutoFitToContent so columns resize to their cell contents, adds sample rows, and saves the modified document.", "tags": [ "table", "autofit", "pdf", - "column-adjustment", - "aspose-pdf" + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", - "Aspose.Pdf.ColumnAdjustment", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.FontRepository" + "Aspose.Pdf.Row", + "Aspose.Pdf.BorderInfo", + "Aspose.Pdf.Color" ], "difficulty": "beginner" }, { "filename": "auto-fit-table-row-height.cs", - "title": "Auto-Fit Table Row Height in PDF", - "description": "Demonstrates how to enable automatic height adjustment for a table row (auto‑fit) using Aspose.Pdf's TaggedContent API.", + "title": "Auto‑Fit Table Row Height in PDF", + "description": "Demonstrates how to let a table row automatically adjust its height to fit wrapped cell content by leaving FixedRowHeight unset and setting MinRowHeight to zero.", "tags": [ "table", "autofit", "row-height", - "tagged-content", - "pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.StructureElement", - "Aspose.Pdf.Tagged.TableElement", - "Aspose.Pdf.Tagged.TableTRElement", - "Aspose.Pdf.Tagged.TableTHElement", - "Aspose.Pdf.Tagged.TableTDElement" - ], - "difficulty": "intermediate" - }, - { - "filename": "auto-fit-table-to-page-width.cs", - "title": "Auto‑Fit Table to Page Width in PDF", - "description": "Demonstrates how to create a PDF document with a table that automatically stretches to fill the page width using Aspose.Pdf's auto‑fit behavior.", - "tags": [ - "table", - "autofit", "pdf", - "layout", - "aspnet" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", "Aspose.Pdf.Row", - "Aspose.Pdf.ColumnAdjustment" + "Aspose.Pdf.Cell", + "Aspose.Pdf.Text.TextFragment" ], "difficulty": "beginner" }, + { + "filename": "auto-fit-table-to-page-width.cs", + "title": "Auto Fit Table To Page Width", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "batch-add-table-with-logo-to-pdfs.cs", "title": "Batch Add Table with Company Logo to PDFs", - "description": "Shows how to iterate through a folder of PDF files, insert a table containing a company logo image onto each document's first page, and save the modified PDFs to an output folder.", + "description": "Demonstrates how to iterate through a folder of PDF files, insert a two‑column table containing a company logo and descriptive text on the first page of each document, and save the modified files.", "tags": [ "pdf", "table", - "image", + "logo", "batch", - "aspose-pdf" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.Table", - "Aspose.Pdf.Row", - "Aspose.Pdf.Cell", - "Aspose.Pdf.Drawing.Image" + "Aspose.Pdf.Image", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.FontRepository", + "Aspose.Pdf.Page" ], "difficulty": "intermediate" }, { - "filename": "batch-replace-tables-in-pdfs.cs", + "filename": "batch-replace-tables-in-multiple-pdfs.cs", "title": "Batch Replace Tables in Multiple PDFs", - "description": "Demonstrates how to iterate over PDF files, locate each table with TableAbsorber, and replace them with a new Table using Aspose.Pdf.", + "description": "Demonstrates how to iterate over PDF files, locate each table with TableAbsorber, create a replacement Table, and replace the original tables across all documents.", "tags": [ - "table-absorption", - "pdf-batch", - "table-replacement", + "tables", + "batch-processing", + "replace", "aspose-pdf", "csharp" ], @@ -52382,43 +63430,69 @@ "Aspose.Pdf.TableAbsorber.Visit", "Aspose.Pdf.TableAbsorber.Replace", "Aspose.Pdf.Table", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.BorderInfo" + "Aspose.Pdf.Row", + "Aspose.Pdf.Cell", + "Aspose.Pdf.Text.TextFragment" ], "difficulty": "intermediate" }, + { + "filename": "batch-replace-tables-in-pdfs.cs", + "title": "Batch Replace Tables In Pdfs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "calculate-remaining-page-height-add-table.cs", - "title": "Calculate Remaining Page Height and Insert Table", - "description": "Demonstrates how to compute the usable vertical space on a PDF page by subtracting margins and existing content, then creates and adds a table that fits within the remaining area.", + "title": "Calculate Remaining Page Height Add Table", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "calculate-remaining-page-space-add-table.cs", + "title": "Calculate Remaining Page Space and Add Table to PDF", + "description": "Demonstrates how to compute the usable vertical space on a PDF page by subtracting margins and existing content, then conditionally place a table based on the remaining space.", "tags": [ "pdf", "table", + "space", "margin", - "height", - "aspose-pdf" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.PageInfo.PureHeight", "Aspose.Pdf.Page.CalculateContentBBox", + "Aspose.Pdf.PageInfo.PureHeight", "Aspose.Pdf.Table", "Aspose.Pdf.Table.GetHeight", - "Aspose.Pdf.Text.TextFragment" + "Aspose.Pdf.Page.Paragraphs.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "center-align-table.cs", - "title": "Center Align Table in PDF", - "description": "Demonstrates how to create a PDF with a table and set its HorizontalAlignment to Center using Aspose.Pdf.", + "title": "Center Align Table", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "center-table-horizontally.cs", + "title": "Center Table Horizontally in PDF", + "description": "Shows how to create a table, set its HorizontalAlignment to Center, and add it to a PDF page using Aspose.Pdf.", "tags": [ "table", "alignment", "pdf", - "aspose-pdf", - "center" + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", @@ -52426,62 +63500,90 @@ "Aspose.Pdf.Table", "Aspose.Pdf.Row", "Aspose.Pdf.Cell", - "Aspose.Pdf.Text.TextState" + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Text.TextFragment" + ], + "difficulty": "beginner" + }, + { + "filename": "check-table-break-across-pages.cs", + "title": "Check Table Break Across Pages", + "description": "Creates a PDF with a simple two‑column table, adds it to a page, and reads the Table.IsBroken property to determine whether the table would split across pages.", + "tags": [ + "table", + "isbroken", + "pdf", + "aspose", + "page-break" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Table", + "Aspose.Pdf.Table.IsBroken", + "Aspose.Pdf.Page.Paragraphs.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "conditional-formatting-table-cells.cs", - "title": "Conditional Formatting of PDF Table Cells", - "description": "Shows how to change the background color of table cells in a PDF based on numeric thresholds using Aspose.Pdf.", + "title": "Conditional Formatting of Table Cells in PDF", + "description": "Demonstrates how to create a PDF table with Aspose.Pdf, add data rows, and apply background colors to cells when numeric values exceed defined thresholds.", "tags": [ + "pdf", + "table", "conditional-formatting", - "pdf-table", - "background-color", - "threshold", - "Aspose.Pdf" + "color", + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", - "Aspose.Pdf.Row", - "Aspose.Pdf.BorderInfo", - "Aspose.Pdf.Color", - "Aspose.Pdf.Text.TextFragment" + "Aspose.Pdf.TableRow", + "Aspose.Pdf.TableCell", + "Aspose.Pdf.Drawing.Color" ], "difficulty": "intermediate" }, { "filename": "count-tables-in-pdf-using-tableabsorber.cs", - "title": "Count Tables in PDF Using TableAbsorber", - "description": "Shows how to employ Aspose.Pdf's TableAbsorber to locate tables in a PDF and retrieve the total count via the TableList collection.", + "title": "Count Tables In Pdf Using Tableabsorber", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "count-tables-in-pdf.cs", + "title": "Count Tables in PDF using TableAbsorber", + "description": "Shows how to use Aspose.Pdf's TableAbsorber to locate and count tables in a PDF document.", "tags": [ "table", "pdf", - "count", - "aspose", - "c#" + "aspose-pdf", + "csharp", + "count" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.TableAbsorber", "Aspose.Pdf.TableAbsorber.Visit", - "Aspose.Pdf.TableAbsorber.TableList", - "Aspose.Pdf.TableAbsorber.TableList.Count" + "Aspose.Pdf.TableAbsorber.TableList" ], "difficulty": "beginner" }, { - "filename": "create-fixed-width-table.cs", + "filename": "create-fixed-width-table-pdf.cs", "title": "Create Fixed-Width Table in PDF", - "description": "Demonstrates how to generate a PDF with a table whose total width is fixed to 500 points and optionally centered on the page.", + "description": "Shows how to set a table's total width to 500 points, add content, and save it as a PDF using Aspose.Pdf.", "tags": [ "table", "fixed-width", "pdf", - "aspose-pdf", - "layout" + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", @@ -52495,34 +63597,58 @@ "difficulty": "beginner" }, { - "filename": "create-pdf-table-from-datatable.cs", - "title": "Create PDF Table from a DataTable with Aspose.Pdf", - "description": "Demonstrates how to fill an in‑memory DataTable, import it into an Aspose.Pdf Table, and generate a PDF document containing the table.", + "filename": "create-pdf-report-multiple-tables.cs", + "title": "Create PDF Report with Multiple Tables", + "description": "Demonstrates building a PDF document that contains several tables, each imported from a DataTable representing data from different databases.", "tags": [ "pdf", - "datatable", - "table", + "tables", "aspose", - "csharp" + "datatable", + "report" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.FontRepository", "Aspose.Pdf.Table", "Aspose.Pdf.BorderInfo", "Aspose.Pdf.MarginInfo", - "Aspose.Pdf.Table.ImportDataTable" + "Aspose.Pdf.Position" ], "difficulty": "intermediate" }, { - "filename": "create-pdf-table-from-datatable__v2.cs", - "title": "Create PDF Table with Dynamic Row Count from DataTable", - "description": "Demonstrates how to generate a PDF, build a DataTable with a variable number of rows, import it into an Aspose.Pdf.Table, and add the table to a PDF page.", + "filename": "create-pdf-table-alternating-row-colors.cs", + "title": "Create PDF Table with Alternating Row Colors", + "description": "Shows how to generate a PDF table using Aspose.Pdf and apply alternating background colors to each data row.", "tags": [ "pdf", "table", - "datatable", + "alternating-rows", + "background-color", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Table", + "Aspose.Pdf.Row", + "Aspose.Pdf.BorderInfo", + "Aspose.Pdf.Color", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner" + }, + { + "filename": "create-pdf-table-dynamic-row-count.cs", + "title": "Create PDF Table with Dynamic Row Count", + "description": "Demonstrates building a DataTable at runtime, importing it into an Aspose.Pdf.Table, and saving the PDF with a dynamically sized table.", + "tags": [ + "pdf", + "table", + "dynamic", "aspose", "csharp" ], @@ -52531,43 +63657,48 @@ "Aspose.Pdf.Page", "Aspose.Pdf.Table", "Aspose.Pdf.BorderInfo", - "Aspose.Pdf.MarginInfo", "Aspose.Pdf.Table.ImportDataTable" ], "difficulty": "intermediate" }, { - "filename": "create-table-double-border.cs", - "title": "Create Table with Double Border in PDF", - "description": "Shows how to generate a PDF document containing a table and apply a double‑style border by configuring BorderInfo with a thicker width.", + "filename": "create-pdf-table-from-datatable.cs", + "title": "Create PDF Table from a DataTable with Aspose.Pdf", + "description": "Demonstrates how to fill an in‑memory DataTable, import it into an Aspose.Pdf Table, and save the result as a PDF document.", "tags": [ - "table", - "border", "pdf", - "Aspose.Pdf", - "double-border" + "datatable", + "aspose", + "table", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", - "Aspose.Pdf.BorderInfo", - "Aspose.Pdf.Row", - "Aspose.Pdf.Cell", - "Aspose.Pdf.Text.TextState" + "Aspose.Pdf.Table.ImportDataTable", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "create-table-on-new-pdf-page.cs", - "title": "Create a Table on a New PDF Page", - "description": "Demonstrates how to add a new page to a PDF document and place a formatted table with header and data rows on that page using Aspose.Pdf.", + "filename": "create-pdf-table-from-datatable__v2.cs", + "title": "Create Pdf Table From Datatable__V2", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-pdf-table-from-filtered-dataview.cs", + "title": "Create PDF Table from Filtered DataView", + "description": "Demonstrates filtering a DataView and manually populating an Aspose.Pdf Table to generate a PDF, avoiding the ImportDataView bug.", "tags": [ - "table", - "pdf", - "aspose", - "csharp", - "document" + "DataView", + "Table", + "PDF", + "Filtering", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", @@ -52575,22 +63706,21 @@ "Aspose.Pdf.Table", "Aspose.Pdf.Row", "Aspose.Pdf.Cell", - "Aspose.Pdf.BorderInfo", - "Aspose.Pdf.MarginInfo", - "Aspose.Pdf.Text.TextFragment" + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Drawing.ColumnAdjustment" ], "difficulty": "intermediate" }, { - "filename": "create-table-with-repeating-header.cs", - "title": "Create Table with Repeating Header in PDF", - "description": "Shows how to use Aspose.Pdf's tagged‑content API to build a table whose header row repeats automatically on each new page of the PDF.", + "filename": "create-repeating-table-header.cs", + "title": "Create Repeating Table Header in PDF", + "description": "Shows how to add a table with a header row that repeats on each new page using Aspose.Pdf's tagged content API.", "tags": [ "table", "header", + "repeat", "tagged-content", - "pdf", - "aspose" + "pdf" ], "apis_used": [ "Aspose.Pdf.Document", @@ -52605,127 +63735,166 @@ "difficulty": "intermediate" }, { - "filename": "create-table-with-rows-and-cells.cs", - "title": "Create Table with Rows and Cells in PDF", - "description": "Demonstrates how to programmatically build a table, add rows and cells, and insert it into a PDF document using Aspose.Pdf.", + "filename": "create-table-double-border.cs", + "title": "Create Table Double Border", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-table-on-new-pdf-page.cs", + "title": "Create Table On New Pdf Page", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-table-with-header-and-data-rows.cs", + "title": "Create Table with Header and Data Rows in PDF", + "description": "Demonstrates how to programmatically create a PDF, add a table with a styled header row, populate it with data rows, and save the document using Aspose.Pdf for .NET.", "tags": [ - "pdf", "table", - "aspose", + "pdf", + "aspose-pdf", "csharp", - "rows" + "styling" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", "Aspose.Pdf.Row", - "Aspose.Pdf.Table.Rows.Add", - "Aspose.Pdf.Row.Cells.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Cell", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.FontRepository.FindFont" ], - "difficulty": "beginner" + "difficulty": "intermediate" + }, + { + "filename": "create-table-with-repeating-header.cs", + "title": "Create Table With Repeating Header", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-table-with-rows-and-cells.cs", + "title": "Create Table With Rows And Cells", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "detect-extract-tables-rotated-pages.cs", + "title": "Detect and Extract Tables on Rotated PDF Pages", + "description": "Demonstrates checking each page's rotation angle and using TableAbsorber to locate and enumerate tables on rotated PDF pages.", + "tags": [ + "table extraction", + "rotation", + "pdf", + "Aspose.Pdf", + "TableAbsorber" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rotation", + "Aspose.Pdf.Text.TableAbsorber", + "Aspose.Pdf.Text.TableAbsorber.Visit", + "Aspose.Pdf.Text.TableAbsorber.TableList", + "Aspose.Pdf.Text.Table.RowList", + "Aspose.Pdf.Text.Row.CellList" + ], + "difficulty": "intermediate" }, { "filename": "detect-merged-cells-in-pdf-tables.cs", - "title": "Detect Merged Cells in PDF Tables using TableAbsorber", - "description": "Loads a PDF, extracts tables with TableAbsorber, and identifies cells that span multiple rows or columns by checking RowSpan and ColSpan values.", + "title": "Detect Merged Cells in PDF Tables Using TableAbsorber", + "description": "Shows how to use Aspose.Pdf's TableAbsorber with the FlowEngine to find tables that contain merged cells by examining each cell's ColSpan and RowSpan values.", "tags": [ "table", "merged-cells", - "aspdf", + "aspose.pdf", "tableabsorber", - "pdf" + "c#" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.TableAbsorber", - "Aspose.Pdf.TableAbsorber.UseFlowEngine", "Aspose.Pdf.TableAbsorber.Visit", "Aspose.Pdf.TableAbsorber.TableList", - "Aspose.Pdf.AbsorbedCell.ColSpan", - "Aspose.Pdf.AbsorbedCell.RowSpan" + "Aspose.Pdf.Table.RowList", + "Aspose.Pdf.Row.CellList", + "Aspose.Pdf.Cell.ColSpan" ], "difficulty": "intermediate" }, { "filename": "determine-table-page-break-isbroken.cs", - "title": "Determine Table Page Break Using IsBroken", - "description": "Loads a PDF, creates a table, adds it to a page, and checks the Table.IsBroken property to see if the table will be split across pages.", - "tags": [ - "table", - "isbroken", - "pagination", - "pdf", - "aspose" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Table", - "Aspose.Pdf.Row", - "Aspose.Pdf.Page", - "Aspose.Pdf.Table.IsBroken", - "Aspose.Pdf.Page.Paragraphs.Add", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner" + "title": "Determine Table Page Break Isbroken", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "embed-html-fragment-in-table-cell.cs", - "title": "Embed HTML Fragment in Table Cell", - "description": "Demonstrates creating a PDF, adding a table, and inserting an HtmlFragment with styled HTML markup into a cell's paragraph collection.", + "title": "Embed Html Fragment In Table Cell", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "embed-html-in-table-cell.cs", + "title": "Embed HTML in Table Cell using HtmlFragment", + "description": "Demonstrates how to insert HTML markup into a PDF table cell by adding an HtmlFragment to the cell's paragraph collection.", "tags": [ "html", "table", "cell", "pdf", - "aspose-pdf" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.Table", "Aspose.Pdf.Row", "Aspose.Pdf.Cell", "Aspose.Pdf.Text.HtmlFragment", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.BorderInfo", + "Aspose.Pdf.Color" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "enable-table-splitting-across-pdf-pages.cs", - "title": "Enable Table Splitting Across PDF Pages", - "description": "Demonstrates how to allow a table to break across multiple PDF pages by setting Table.IsBroken to true and populating enough rows to span several pages.", - "tags": [ - "table", - "splitting", - "pdf", - "aspose", - "pagination" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Table", - "Aspose.Pdf.Row", - "Aspose.Pdf.BorderInfo", - "Aspose.Pdf.Color" - ], - "difficulty": "intermediate" + "title": "Enable Table Splitting Across Pdf Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "export-pdf-table-structure-to-json.cs", "title": "Export PDF Table Structure to JSON", - "description": "Demonstrates how to read a PDF's tagged table elements, extract row and cell metadata, and serialize the structure to a JSON file.", + "description": "Shows how to extract the logical table structure from a tagged PDF using Aspose.Pdf, iterate rows and cells, and serialize their properties into a JSON file.", "tags": [ "pdf", "table", - "tagged-content", "json", - "export" + "export", + "tagged-content" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Tagged.ITaggedContent", + "Aspose.Pdf.Tagged.StructureElement", "Aspose.Pdf.Tagged.TableElement", "Aspose.Pdf.Tagged.TableTRElement", "Aspose.Pdf.Tagged.TableTDElement" @@ -52733,135 +63902,130 @@ "difficulty": "intermediate" }, { - "filename": "export-pdf-to-csv.cs", - "title": "Export PDF to CSV using Aspose.Pdf", - "description": "Demonstrates loading a PDF document with Aspose.Pdf and saving its table data as a CSV file using ExcelSaveOptions.", + "filename": "export-pdf-table-to-csv.cs", + "title": "Export PDF Table Data to CSV", + "description": "Shows how to extract tables from a PDF using Aspose.Pdf's TableAbsorber and write each cell's text to a CSV file with proper escaping.", "tags": [ "pdf", + "table", "csv", - "export", - "aspose", - "tables" + "aspose-pdf", + "export" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.ExcelSaveOptions", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.ExcelSaveOptions.Format", - "Aspose.Pdf.ExcelSaveOptions.ExcelFormat.CSV" + "Aspose.Pdf.TableAbsorber", + "Aspose.Pdf.TableAbsorber.Visit", + "Aspose.Pdf.TableAbsorber.TableList", + "Aspose.Pdf.Table.RowList", + "Aspose.Pdf.TableCell.TextFragments" ], - "difficulty": "beginner" + "difficulty": "intermediate" + }, + { + "filename": "export-pdf-to-csv.cs", + "title": "Export Pdf To Csv", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "extract-pdf-tables-to-csv.cs", - "title": "Extract PDF Tables to CSV with TableAbsorber", - "description": "Demonstrates how to use Aspose.Pdf's TableAbsorber to locate tables in a PDF document and export each table as a CSV file, handling cell text and CSV escaping.", + "title": "Extract PDF Tables to CSV using TableAbsorber", + "description": "Demonstrates how to locate tables in a PDF with Aspose.Pdf's TableAbsorber and export each table to a separate CSV file, handling cell text and proper CSV escaping.", "tags": [ - "table", + "table extraction", "csv", - "aspose-pdf", + "aspose pdf", "tableabsorber", - "pdf" + "pdf processing" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.TableAbsorber", "Aspose.Pdf.TableAbsorber.Visit", "Aspose.Pdf.TableAbsorber.TableList", - "Aspose.Pdf.TableAbsorber.RowList", - "Aspose.Pdf.TableAbsorber.CellList", "Aspose.Pdf.Text.TextFragment" ], "difficulty": "intermediate" }, { "filename": "extract-pdf-tables-to-datatable.cs", - "title": "Extract PDF Tables to DataTable with TableAbsorber", - "description": "Demonstrates how to use Aspose.Pdf's TableAbsorber to locate tables in a PDF, extract cell text, and populate a System.Data.DataTable for further processing.", + "title": "Extract PDF Tables into DataTable with TableAbsorber", + "description": "Demonstrates how to use Aspose.Pdf's TableAbsorber to read tables from a PDF and populate them into .NET DataTable objects, including creating a sample PDF if needed.", "tags": [ - "pdf", "table-extraction", + "pdf", "aspose", "datatable", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Table", "Aspose.Pdf.TableAbsorber", "Aspose.Pdf.TableAbsorber.Visit", - "Aspose.Pdf.AbsorbedTable", - "Aspose.Pdf.AbsorbedRow", - "Aspose.Pdf.AbsorbedCell", - "Aspose.Pdf.Text.TextFragment" + "Aspose.Pdf.TableAbsorber.TableList" ], "difficulty": "intermediate" }, { "filename": "extract-table-coordinates-from-pdf.cs", "title": "Extract Table Coordinates from PDF", - "description": "Shows how to load a PDF, detect tables with TableAbsorber, and retrieve the rectangle coordinates of each detected table.", + "description": "Demonstrates how to locate tables in a PDF and retrieve their bounding rectangle coordinates using Aspose.Pdf's TableAbsorber.", "tags": [ "table", "coordinates", "pdf", - "aspose-pdf", - "tableabsorber" + "aspose", + "extraction" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.TableAbsorber", "Aspose.Pdf.TableAbsorber.Visit", - "Aspose.Pdf.TableAbsorber.TableList", "Aspose.Pdf.AbsorbedTable", "Aspose.Pdf.Rectangle" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "extract-tables-from-pdf.cs", - "title": "Extract Tables from PDF using TableAbsorber", - "description": "Demonstrates how to use Aspose.Pdf's TableAbsorber to locate and iterate through tables, rows, and cells in a PDF document and retrieve their text content.", + "title": "Extract Tables from PDF Using TableAbsorber", + "description": "Demonstrates how to load a PDF, use Aspose.Pdf's TableAbsorber to detect tables, iterate through rows, cells, and text fragments, and save the document.", "tags": [ - "table extraction", + "tables", "pdf", + "extraction", "aspose-pdf", - "c#", - "text extraction" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.TableAbsorber", - "Aspose.Pdf.TableAbsorber.AbsorbedTable", - "Aspose.Pdf.TableAbsorber.AbsorbedRow", - "Aspose.Pdf.TableAbsorber.AbsorbedCell", + "Aspose.Pdf.TableAbsorber.Visit", + "Aspose.Pdf.TableAbsorber.TableList", + "Aspose.Pdf.AbsorbedTable", + "Aspose.Pdf.AbsorbedRow", + "Aspose.Pdf.AbsorbedCell", "Aspose.Pdf.Text.TextFragment" ], "difficulty": "intermediate" }, { "filename": "extract-tables-from-rotated-pdf-pages.cs", - "title": "Extract Tables from Rotated PDF Pages", - "description": "Shows how to detect rotated pages in a PDF and use TableAbsorber to locate and read tables on those pages.", - "tags": [ - "table extraction", - "rotated pages", - "Aspose.Pdf", - "TableAbsorber", - "PDF" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rotation", - "Aspose.Pdf.TableAbsorber", - "Aspose.Pdf.Text.TextFragment" - ], - "difficulty": "intermediate" + "title": "Extract Tables From Rotated Pdf Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "extract-text-from-pdf-tables.cs", - "title": "Extract Text from PDF Tables using TableAbsorber", - "description": "Demonstrates how to load a PDF, use Aspose.Pdf's TableAbsorber to detect tables, and retrieve the concatenated text from each cell.", + "title": "Extract Text from PDF Tables Using TableAbsorber", + "description": "Demonstrates how to load a PDF, locate tables with TableAbsorber, iterate through rows and cells, and concatenate the text fragments inside each cell.", "tags": [ "pdf", "table", @@ -52872,39 +64036,25 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.TableAbsorber", - "Aspose.Pdf.TableAbsorber.Visit", - "Aspose.Pdf.TableAbsorber.TableList", "Aspose.Pdf.TableAbsorber.TableAbsorbed", + "Aspose.Pdf.TableAbsorber.TableAbsorbed.Row", + "Aspose.Pdf.TableAbsorber.TableAbsorbed.Cell", "Aspose.Pdf.Text.TextFragment" ], "difficulty": "intermediate" }, { "filename": "generate-pdf-report-multiple-tables.cs", - "title": "Generate PDF Report with Multiple Tables from Different DataSources", - "description": "Demonstrates creating a PDF document, adding separate pages, and inserting tables that are populated from in‑memory DataTables representing different databases.", - "tags": [ - "pdf", - "table", - "aspose.pdf", - "datatable", - "report" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Table", - "Aspose.Pdf.Drawing.BorderInfo", - "Aspose.Pdf.Drawing.MarginInfo", - "Aspose.Pdf.Table.ImportDataTable", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "intermediate" + "title": "Generate Pdf Report Multiple Tables", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "get-rendered-table-width.cs", + "filename": "get-rendered-table-width-after-layout.cs", "title": "Get Rendered Table Width After Layout", - "description": "Demonstrates how to create a table in a PDF, force layout by saving the document, and then read the calculated width of the rendered table using Aspose.Pdf.", + "description": "Loads a PDF, inserts a table, and shows how to read the calculated width of the rendered table after layout using Aspose.Pdf.", "tags": [ "table", "width", @@ -52914,105 +64064,146 @@ ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.Table", "Aspose.Pdf.Row", - "Aspose.Pdf.Table.GetWidth", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page", + "Aspose.Pdf.Table.GetWidth" ], - "difficulty": "intermediate" + "difficulty": "beginner" + }, + { + "filename": "get-rendered-table-width.cs", + "title": "Get Rendered Table Width", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "import-datatable-images-into-pdf-table.cs", - "title": "Import DataTable Images into a PDF Table", - "description": "Demonstrates loading image byte arrays from a DataTable and rendering them as images inside a PDF table using Aspose.Pdf.", + "title": "Import Datatable Images Into Pdf Table", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "import-datatable-into-pdf-table.cs", + "title": "Import DataTable into PDF Table", + "description": "Shows how to import an in‑memory DataTable into an Aspose.Pdf Table and save it as a PDF document.", "tags": [ - "pdf", "datatable", - "images", + "pdf", "table", + "import", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", - "Aspose.Pdf.BorderInfo", - "Aspose.Pdf.Drawing.Image", - "Aspose.Pdf.Color" + "Aspose.Pdf.Table.ImportDataTable", + "Aspose.Pdf.Page.Paragraphs.Add" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "import-datatable-into-pdf-table.cs", - "title": "Import DataTable into PDF Table", - "description": "Shows how to populate an Aspose.Pdf Table directly from an in‑memory DataTable using ImportDataTable, add the table to a PDF page, and save the document.", + "filename": "import-dataview-into-pdf-table.cs", + "title": "Import Dataview Into Pdf Table", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "import-filtered-dataview-into-pdf-table.cs", + "title": "Import Filtered DataView into PDF Table", + "description": "Shows how to filter a DataTable with a DataView and import the filtered rows into an Aspose.Pdf Table, then save the result as a PDF document.", "tags": [ - "datatable", - "pdf-table", + "dataview", + "table", "import", - "aspose-pdf", - "csharp" + "pdf", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", - "Aspose.Pdf.Table.ImportDataTable", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Table.ImportDataView", + "Aspose.Pdf.Page.Paragraphs.Add" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "import-dataview-into-pdf-table.cs", - "title": "Import DataView into PDF Table", - "description": "Demonstrates how to import a filtered DataView into an Aspose.Pdf Table using Table.ImportDataView and save the result as a PDF document.", + "filename": "import-images-from-datatable-into-pdf-table.cs", + "title": "Import Images from DataTable into a PDF Table", + "description": "Demonstrates how to load image byte arrays from a DataTable, create Image objects, and place them into cells of an Aspose.Pdf Table, then save the result as a PDF.", "tags": [ - "DataView", - "Table", - "PDF", - "Aspose.Pdf", - "ImportDataView" + "pdf", + "image", + "datatable", + "table", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.Table", - "Aspose.Pdf.BorderInfo", - "Aspose.Pdf.Table.ImportDataView" + "Aspose.Pdf.Drawing.Image", + "Aspose.Pdf.Page", + "Aspose.Pdf.Paragraphs.Add" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "import-filtered-dataview-into-pdf-table.cs", - "title": "Import Filtered DataView into PDF Table", - "description": "Shows how to filter rows in a DataView and import the filtered data into an Aspose.Pdf Table, then save the result as a PDF document.", + "filename": "insert-column-into-pdf-table.cs", + "title": "Insert Column Into Pdf Table", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "insert-external-image-into-pdf-table-cell.cs", + "title": "Insert External Image Into Pdf Table Cell", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "insert-hyperlink-into-table-cell.cs", + "title": "Insert Hyperlink into a Table Cell with LinkAnnotation", + "description": "Demonstrates how to add a clickable hyperlink inside a table cell by creating a LinkAnnotation, positioning it over the cell text, and saving the updated PDF.", "tags": [ - "dataview", - "filter", - "pdf-table", - "aspose.pdf", - "csharp" + "linkannotation", + "table", + "hyperlink", + "pdf", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", - "Aspose.Pdf.Table.ImportDataView", - "Aspose.Pdf.Page.Paragraphs.Add" + "Aspose.Pdf.Cell", + "Aspose.Pdf.Annotations.LinkAnnotation", + "Aspose.Pdf.Annotations.GoToURIAction", + "Aspose.Pdf.Annotations.Border", + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate" }, { - "filename": "insert-column-into-pdf-table.cs", - "title": "Insert Column into PDF Table", - "description": "Shows how to add a new column to an existing table in a PDF by inserting an empty cell at a specified index in each row using Aspose.Pdf.", + "filename": "insert-image-into-pdf-table-cell.cs", + "title": "Insert Image from Memory Stream into PDF Table Cell", + "description": "Shows how to load an image into a memory stream and embed it into a table cell of an existing PDF document using Aspose.Pdf.", "tags": [ "pdf", "table", - "column", - "aspose-pdf", - "csharp" + "image", + "memory-stream", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", @@ -53020,105 +64211,113 @@ "Aspose.Pdf.Table", "Aspose.Pdf.Row", "Aspose.Pdf.Cell", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Row.Cells.Insert" + "Aspose.Pdf.Image" ], "difficulty": "intermediate" }, { - "filename": "insert-external-image-into-pdf-table-cell.cs", - "title": "Insert External Image into PDF Table Cell", - "description": "Demonstrates how to load an external image file and place it inside a table cell of a PDF document using Aspose.Pdf.", + "filename": "insert-image-into-table-cell.cs", + "title": "Insert Image into a PDF Table Cell", + "description": "Demonstrates how to create a PDF document, add a table, and place an external image file inside a table cell using Aspose.Pdf.", "tags": [ - "image", - "table", "pdf", + "table", + "image", "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.Table", "Aspose.Pdf.Row", "Aspose.Pdf.Cell", "Aspose.Pdf.Image", - "Aspose.Pdf.BorderInfo" + "Aspose.Pdf.Text.TextFragment" ], "difficulty": "intermediate" }, { - "filename": "insert-image-into-pdf-table-cell.cs", - "title": "Insert Image from Memory Stream into PDF Table Cell", - "description": "Shows how to load an image from a memory stream and embed it into a table cell of a PDF document using Aspose.Pdf.", + "filename": "insert-new-column-into-pdf-table.cs", + "title": "Insert New Column into PDF Table", + "description": "Shows how to add a new column to each row of a table in a PDF by inserting a Cell at a specified zero‑based index using Aspose.Pdf.", "tags": [ "pdf", "table", - "image", - "memory-stream", - "aspose-pdf" + "column", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.Table", "Aspose.Pdf.Row", - "Aspose.Pdf.Cell", - "Aspose.Pdf.Image", - "Aspose.Pdf.Page" + "Aspose.Pdf.Cell" ], "difficulty": "intermediate" }, { "filename": "insert-page-break-after-table-row.cs", - "title": "Insert Page Break After Table Row in PDF", - "description": "Demonstrates how to force a specific table row onto a new page using the IsInNewPage property, creating a page break between rows in a PDF document.", + "title": "Insert Page Break After Specific Table Row", + "description": "Demonstrates how to create a page break within a PDF table by setting the IsInNewPage property on a row, causing subsequent rows to start on a new page.", "tags": [ "table", "page-break", + "Aspose.Pdf", "row", - "pdf", - "aspose-pdf" + "pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", "Aspose.Pdf.Row", - "Aspose.Pdf.Row.IsInNewPage" + "Aspose.Pdf.Cell", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.BorderInfo" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "insert-svg-image-into-pdf-table-cell.cs", - "title": "Insert SVG Image into PDF Table Cell", - "description": "Shows how to load an existing PDF, create a table, and place an SVG image inside a table cell using Aspose.Pdf.", + "title": "Insert Svg Image Into Pdf Table Cell", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "insert-svg-image-into-table-cell.cs", + "title": "Insert SVG Image into Table Cell", + "description": "Demonstrates how to embed an SVG file into a PDF by creating an Image object, adding it to a Table cell, and saving the document.", "tags": [ "svg", "table", - "pdf", "image", + "pdf", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.Table", "Aspose.Pdf.Row", "Aspose.Pdf.Cell", - "Aspose.Pdf.Image", - "Aspose.Pdf.Page.Paragraphs.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Drawing.Image" ], "difficulty": "beginner" }, { "filename": "insert-table-after-paragraph.cs", "title": "Insert Table After Specific Paragraph in PDF", - "description": "Demonstrates how to locate a paragraph containing a marker text in a PDF, create a simple 2x2 table, and insert the table immediately after that paragraph using Aspose.Pdf.", + "description": "Demonstrates how to locate a paragraph by its text, create a simple 2x2 table, and insert the table immediately after the found paragraph in a PDF document using Aspose.Pdf.", "tags": [ "pdf", "table", - "paragraph", + "search", "insert", - "Aspose.Pdf" + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", @@ -53126,186 +64325,214 @@ "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Table", "Aspose.Pdf.Row", - "Aspose.Pdf.Cell", - "Aspose.Pdf.ParagraphCollection.Insert" + "Aspose.Pdf.Cell" ], "difficulty": "intermediate" }, { "filename": "insert-table-after-paragraph__v2.cs", - "title": "Insert Table After a Paragraph in a PDF", - "description": "Demonstrates creating a PDF, adding a text fragment, building a table, and inserting the table into the page's paragraph collection right after the text.", + "title": "Insert Table After Paragraph__V2", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "insert-table-at-specific-position.cs", + "title": "Insert Table at Specific Position in PDF", + "description": "Demonstrates how to add an Aspose.Pdf.Table to an existing PDF page and position it at exact X/Y coordinates using MarginInfo.", "tags": [ "table", - "paragraph", + "position", "pdf", - "aspose.pdf", - "csharp" + "aspose", + "margininfo" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Table", - "Aspose.Pdf.Row", - "Aspose.Pdf.ParagraphCollection.Insert", + "Aspose.Pdf.MarginInfo", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Text.FontRepository", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "insert-table-at-specific-position.cs", - "title": "Insert Table at Specific Position in PDF", - "description": "Shows how to load an existing PDF, create a table, set its absolute X/Y coordinates using MarginInfo, add it to a page, and save the result.", + "filename": "insert-table-before-first-image.cs", + "title": "Insert Table Before First Image in PDF", + "description": "Demonstrates how to locate the first image on each PDF page, create a simple 2x2 table, and insert the table before the image using Aspose.Pdf.", "tags": [ - "table", - "position", "pdf", + "table", + "image", "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.Image", "Aspose.Pdf.Table", - "Aspose.Pdf.Row", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.BorderInfo", "Aspose.Pdf.MarginInfo" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "insert-table-before-image.cs", - "title": "Insert Table Before an Image in a Tagged PDF", - "description": "Shows how to locate an image (FigureElement) in a tagged PDF's structure tree and insert a new TableElement with header and data rows before that image.", + "title": "Insert Table Before Image", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "insert-table-into-paragraph-collection.cs", + "title": "Insert Table into Paragraph Collection in PDF", + "description": "Shows how to add a TextFragment and then insert a Table as a paragraph into a PDF page using Aspose.Pdf.", "tags": [ - "pdf", "table", - "image", - "tagged-content", - "aspose-pdf" + "paragraph", + "pdf", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.FigureElement", - "Aspose.Pdf.Tagged.StructureElement", - "Aspose.Pdf.Tagged.TableElement", - "Aspose.Pdf.Tagged.TableTHeadElement", - "Aspose.Pdf.Tagged.TableTRElement" + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Drawing.Position", + "Aspose.Pdf.Table", + "Aspose.Pdf.Row", + "Aspose.Pdf.Cell", + "Aspose.Pdf.ParagraphCollection.Insert" ], "difficulty": "intermediate" }, { "filename": "insert-table-into-pdf-page.cs", + "title": "Insert Table Into Pdf Page", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "insert-table-into-pdf.cs", "title": "Insert Table into Existing PDF Page", - "description": "Shows how to create a Table, add header and data rows, and place it at a specific position on a chosen page of an existing PDF document using Aspose.Pdf.", + "description": "Shows how to load an existing PDF with Aspose.Pdf, create and style a Table, position it on a specific page, and save the updated document.", "tags": [ "table", "pdf", - "insert", "aspose.pdf", + "insert", "c#" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.Table", "Aspose.Pdf.Row", "Aspose.Pdf.Cell", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Page" + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Text.FontRepository.FindFont", + "Aspose.Pdf.BorderInfo" ], "difficulty": "intermediate" }, { "filename": "insert-table-into-textbox-field.cs", - "title": "Insert a Table into a TextBox Form Field", - "description": "Demonstrates how to create a TextBox form field, build a tagged table structure, and embed the table as the field's appearance in an existing PDF.", - "tags": [ - "tables", - "form-fields", - "tagged-pdf", - "appearance", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Tagged.TaggedContent", - "Aspose.Pdf.Tagged.TableElement", - "Aspose.Pdf.Forms.Form.AddFieldAppearance" - ], - "difficulty": "intermediate" + "title": "Insert Table Into Textbox Field", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "landscape-pdf-with-wide-table.cs", - "title": "Create Landscape PDF with Wide Table", - "description": "Shows how to set a PDF page to landscape orientation and add a wide table that fits within the page using Aspose.Pdf.", + "title": "Landscape Pdf With Wide Table", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "map-datatable-columns-to-pdf-table.cs", + "title": "Map DataTable Columns to PDF Table Using ImportDataTable", + "description": "Shows how to map selected DataTable columns to specific PDF table columns by building a column‑mapping dictionary and using Table.ImportDataTable.", "tags": [ - "landscape", - "table", - "pdf", - "page-orientation", - "aspose-pdf" + "datatable", + "column-mapping", + "pdf-table", + "aspose-pdf", + "import" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Page.SetPageSize", - "Aspose.Pdf.PageInfo.IsLandscape", "Aspose.Pdf.Table", - "Aspose.Pdf.Row" + "Aspose.Pdf.Table.ImportDataTable" ], "difficulty": "intermediate" }, { - "filename": "map-datatable-columns-to-pdf-table.cs", - "title": "Map DataTable Columns to Specific PDF Table Columns", - "description": "Demonstrates how to map selected DataTable columns to arbitrary positions in an Aspose.Pdf Table using a column‑mapping dictionary and the ImportDataTable method.", + "filename": "mark-table-header-enable-column-repeat.cs", + "title": "Mark Table Header and Enable Column Repeat", + "description": "Shows how to mark a table column as a header and enable column repeat so the header appears on each new page, using both visual Table and tagged PDF structure for accessibility.", "tags": [ - "datatable", - "pdf", "table", - "import", - "column-mapping" + "header", + "column-repeat", + "tagged-pdf", + "accessibility" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Table", - "Aspose.Pdf.Page", - "Aspose.Pdf.Table.ImportDataTable" + "Aspose.Pdf.Tagged.ITaggedContent", + "Aspose.Pdf.Tagged.TableElement", + "Aspose.Pdf.Tagged.TableTHeadElement", + "Aspose.Pdf.Tagged.TableTHElement", + "Aspose.Pdf.Tagged.TableTBodyElement" ], "difficulty": "intermediate" }, { - "filename": "merge-table-cells-vertically-rowspan.cs", - "title": "Merge Table Cells Vertically Using RowSpan", - "description": "Shows how to merge a table cell with the cell directly below by setting the Cell.RowSpan property in an Aspose.Pdf document.", + "filename": "merge-table-cells-colspan.cs", + "title": "Merge Table Cells Across Multiple Columns", + "description": "Demonstrates how to merge three adjacent columns in an Aspose.Pdf table by setting the Cell.ColSpan property.", "tags": [ "table", - "rowspan", - "cell-merge", + "colspan", "pdf", - "aspose-pdf" + "aspose-pdf", + "cell-merge" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", "Aspose.Pdf.Row", - "Aspose.Pdf.Cell" + "Aspose.Pdf.Cell", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.FontRepository", + "Aspose.Pdf.Color" ], "difficulty": "beginner" }, { - "filename": "merge-table-columns-using-cell-colspan.cs", - "title": "Merge Table Columns Using Cell.ColSpan", - "description": "Demonstrates creating a PDF table with Aspose.Pdf and merging three adjacent columns into a single cell by setting the Cell.ColSpan property.", + "filename": "merge-table-cells-vertically-rowspan.cs", + "title": "Merge Table Cells Vertically Using RowSpan", + "description": "Shows how to merge a table cell with the cell directly below by setting the Cell.RowSpan property in an Aspose.Pdf table.", "tags": [ "table", - "colspan", + "rowspan", + "cell-merge", "pdf", - "aspose", - "csharp" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", @@ -53313,21 +64540,28 @@ "Aspose.Pdf.Table", "Aspose.Pdf.Row", "Aspose.Pdf.Cell", - "Aspose.Pdf.BorderInfo", - "Aspose.Pdf.Color" + "Aspose.Pdf.BorderInfo" ], "difficulty": "beginner" }, + { + "filename": "merge-table-columns-using-cell-colspan.cs", + "title": "Merge Table Columns Using Cell Colspan", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "offset-table-left-margin.cs", "title": "Offset Table from Left Margin in PDF", - "description": "Demonstrates creating a PDF, adding a table, and shifting it from the left page margin by setting Table.Margin.Left to a specific point value.", + "description": "Demonstrates how to shift a table away from the left page margin by setting Table.Margin.Left using MarginInfo, and adds a simple two‑column table to a PDF page.", "tags": [ "table", "margin", "offset", "pdf", - "aspose-pdf" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", @@ -53339,74 +64573,84 @@ "difficulty": "beginner" }, { - "filename": "populate-pdf-table-from-linq-query.cs", - "title": "Populate PDF Table from LINQ Query using Aspose.Pdf", - "description": "Demonstrates converting a LINQ query result into a DataTable, importing it into an Aspose.Pdf Table, and saving the table in a PDF document.", + "filename": "populate-pdf-table-from-linq-data.cs", + "title": "Populate PDF Table from LINQ Query via DataTable", + "description": "Demonstrates converting a LINQ query result to a DataTable, importing it into an Aspose.Pdf Table, and saving the table in a PDF document.", "tags": [ - "LINQ", - "DataTable", - "Aspose.Pdf", - "Table", - "PDF" + "linq", + "datatable", + "pdf", + "table", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", - "Aspose.Pdf.Table.ImportDataTable", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.BorderInfo", + "Aspose.Pdf.Color" ], "difficulty": "intermediate" }, + { + "filename": "populate-pdf-table-from-linq-query.cs", + "title": "Populate Pdf Table From Linq Query", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "prevent-table-splitting.cs", "title": "Prevent Table Splitting Across PDF Pages", - "description": "Demonstrates how to keep an Aspose.Pdf.Table on a single page by setting Table.IsBroken to false, even when the content exceeds the page height.", + "description": "Shows how to keep an Aspose.Pdf table on a single page by setting Table.IsBroken to false and adding the table to a PDF document.", "tags": [ "table", "pdf", - "aspose-pdf", + "aspose", "csharp", - "no-split" + "nosplit" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.Table", "Aspose.Pdf.Row", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.BorderInfo", + "Aspose.Pdf.Page", + "Aspose.Pdf.Color" ], "difficulty": "beginner" }, { "filename": "remove-all-tables-from-pdf.cs", "title": "Remove All Tables from a PDF Document", - "description": "Demonstrates how to locate every table in a PDF using TableAbsorber and delete them from the document.", + "description": "Shows how to locate tables in a PDF using TableAbsorber and delete each absorbed table from the document.", "tags": [ + "pdf", "tables", "remove", - "pdf", - "aspose-pdf", - "tableabsorber" + "aspose.pdf", + "c#" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.TableAbsorber", "Aspose.Pdf.TableAbsorber.Visit", + "Aspose.Pdf.TableAbsorber.TableList", "Aspose.Pdf.TableAbsorber.Remove", - "Aspose.Pdf.TableAbsorber.TableList" + "Aspose.Pdf.AbsorbedTable" ], "difficulty": "intermediate" }, { "filename": "remove-column-from-pdf-table.cs", "title": "Remove a Column from a PDF Table", - "description": "Demonstrates how to delete a specific column from an Aspose.Pdf Table by removing the corresponding Cell objects from each Row and saving the updated PDF.", + "description": "Shows how to delete a specific column from a table in a PDF by removing the corresponding Cell objects from each Row using Aspose.Pdf.", "tags": [ + "pdf", "table", "column", - "pdf", - "aspose.pdf", + "aspose-pdf", "csharp" ], "apis_used": [ @@ -53414,188 +64658,271 @@ "Aspose.Pdf.Page", "Aspose.Pdf.Table", "Aspose.Pdf.Row", - "Aspose.Pdf.Row.Cells.Remove", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Cell" ], "difficulty": "intermediate" }, { - "filename": "remove-table-from-pdf.cs", - "title": "Remove a Table from PDF with TableAbsorber", - "description": "Demonstrates how to locate the first table in a PDF using TableAbsorber and delete it with the Remove method, then save the modified document.", + "filename": "remove-first-table-from-pdf.cs", + "title": "Remove First Table from PDF using TableAbsorber", + "description": "Shows how to locate tables in a PDF with TableAbsorber and delete the first detected table.", "tags": [ - "pdf", "table", "remove", - "aspose", - "csharp" + "pdf", + "aspose-pdf", + "tableabsorber" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.TableAbsorber", "Aspose.Pdf.TableAbsorber.Visit", "Aspose.Pdf.TableAbsorber.Remove", - "Aspose.Pdf.AbsorbedTable", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, + { + "filename": "remove-table-from-pdf.cs", + "title": "Remove Table From Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "remove-tables-containing-keyword.cs", - "title": "Remove Tables Containing a Keyword from PDF", - "description": "Demonstrates how to use Aspose.Pdf to locate tables in a PDF, scan each cell for a specific keyword, and delete any tables that contain the keyword.", + "title": "Remove Tables Containing a Keyword from a PDF", + "description": "Demonstrates how to locate tables in a PDF using Aspose.Pdf's TableAbsorber, scan each cell for a specific keyword, and delete the matching tables before saving the document.", "tags": [ - "pdf", "tables", "keyword", - "remove", - "aspose" + "pdf", + "removal", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.TableAbsorber", + "Aspose.Pdf.AbsorbedTable", "Aspose.Pdf.TableAbsorber.Visit", - "Aspose.Pdf.TableAbsorber.Remove", - "Aspose.Pdf.Text.TextFragment" + "Aspose.Pdf.TableAbsorber.Remove" ], "difficulty": "intermediate" }, { "filename": "render-rotated-table-pdf.cs", - "title": "Render a Table Rotated 90 Degrees in PDF", - "description": "Demonstrates how to rotate an entire table by 90° using a transformation matrix (GSave, ConcatenateMatrix, GRestore) before adding it to a PDF page with Aspose.Pdf.", + "title": "Render Rotated Table Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "render-table-from-xml-to-pdf.cs", + "title": "Render Table From Xml To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "render-table-high-dpi-images.cs", + "title": "Render Table with High‑DPI Images", + "description": "Demonstrates creating a PDF table with images and saving it as HTML using a higher ImageResolution to produce high‑DPI output.", "tags": [ "table", - "rotation", - "matrix", + "high-dpi", + "image", + "html", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Table", + "Aspose.Pdf.Drawing.Image", + "Aspose.Pdf.HtmlSaveOptions", + "Aspose.Pdf.Drawing.BorderInfo" + ], + "difficulty": "intermediate" + }, + { + "filename": "render-table-on-new-pdf-page.cs", + "title": "Render Table on a New PDF Page", + "description": "Shows how to create a PDF document with Aspose.Pdf, add a new page, build a table with header and data rows, and save the result.", + "tags": [ "pdf", - "aspose" + "table", + "aspose-pdf", + "csharp", + "document" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", + "Aspose.Pdf.Row", "Aspose.Pdf.BorderInfo", - "Aspose.Pdf.Operators.GSave", - "Aspose.Pdf.Operators.ConcatenateMatrix", - "Aspose.Pdf.Operators.GRestore", - "Aspose.Pdf.Matrix" + "Aspose.Pdf.MarginInfo" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "render-table-from-xml-to-pdf.cs", - "title": "Render Table from XML Definition to PDF", - "description": "Loads a PDF table definition stored in an XML file, reconstructs the Table object in memory, and saves the rendered PDF document.", + "filename": "render-wide-table-landscape.cs", + "title": "Render Wide Table in Landscape Orientation", + "description": "Demonstrates setting a PDF page to landscape orientation and adding a wide table that fits the page using Aspose.Pdf.", "tags": [ - "xml", + "landscape", "table", "pdf", - "aspose.pdf", - "render" + "aspose", + "orientation" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.XmlLoadOptions", + "Aspose.Pdf.Page", + "Aspose.Pdf.PageInfo.IsLandscape", + "Aspose.Pdf.Page.SetPageSize", + "Aspose.Pdf.Table", + "Aspose.Pdf.Row", + "Aspose.Pdf.BorderInfo", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "render-table-high-dpi-images.cs", - "title": "Render Table with High‑DPI Images in PDF and HTML", - "description": "Shows how to create a table containing images and export the document to PDF and HTML with high‑resolution images by configuring ImageResolution in HtmlSaveOptions.", + "filename": "render-xml-table-to-pdf.cs", + "title": "Render XML-defined Table to PDF", + "description": "The example reads a table layout from an XML file, builds a DataTable, and uses Aspose.Pdf to create a PDF document with the table rendered on a page.", "tags": [ - "table", - "high-dpi", - "html-export", - "image-resolution", - "aspose-pdf" + "xml", + "datatable", + "pdf", + "aspose-pdf", + "table" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", - "Aspose.Pdf.Image", - "Aspose.Pdf.HtmlSaveOptions", - "Aspose.Pdf.Drawing.BorderInfo" + "Aspose.Pdf.BorderInfo", + "Aspose.Pdf.Color", + "Aspose.Pdf.Table.ImportDataTable" ], "difficulty": "intermediate" }, { - "filename": "reorder-table-columns-in-pdf.cs", - "title": "Reorder Table Columns in PDF", - "description": "Shows how to extract tables from a PDF, rebuild each row with a custom column order, and replace the original table using Aspose.Pdf.", + "filename": "reorder-pdf-table-columns.cs", + "title": "Reorder PDF Table Columns", + "description": "Demonstrates extracting a table from a PDF, rebuilding it with a custom column order, and replacing the original table using Aspose.Pdf.", "tags": [ "pdf", "table", "column-reorder", - "aspose", + "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TableAbsorber", - "Aspose.Pdf.Text.AbsorbedTable", + "Aspose.Pdf.TableAbsorber", + "Aspose.Pdf.AbsorbedTable", "Aspose.Pdf.Table", "Aspose.Pdf.Row", "Aspose.Pdf.Cell", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TableAbsorber.Replace" + "Aspose.Pdf.Text.TextFragment" ], "difficulty": "intermediate" }, { - "filename": "replace-table-cell-text-by-keyword.cs", - "title": "Replace Table Cell Text by Keyword in PDF", - "description": "Demonstrates how to locate PDF table cells containing a specific keyword and replace the cell text using Aspose.Pdf's TableAbsorber and TextFragment classes.", + "filename": "reorder-table-columns-in-pdf.cs", + "title": "Reorder Table Columns In Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "replace-merged-table-cells.cs", + "title": "Replace Merged Table Cells with Separate Cells", + "description": "Shows how to use TableAbsorber to detect merged cells in a PDF table, split them into individual cells, and insert a new table without merged spans.", "tags": [ "pdf", "table", - "text-replacement", - "aspose-pdf", + "merged-cells", + "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.TableAbsorber", - "Aspose.Pdf.TableAbsorber.Visit", + "Aspose.Pdf.AbsorbedTable", + "Aspose.Pdf.AbsorbedRow", + "Aspose.Pdf.AbsorbedCell", + "Aspose.Pdf.Table", "Aspose.Pdf.Text.TextFragment" ], "difficulty": "intermediate" }, + { + "filename": "replace-table-cell-text-by-keyword.cs", + "title": "Replace Table Cell Text By Keyword", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "replace-table-in-pdf.cs", - "title": "Replace Existing Table with a New Table in a PDF", - "description": "Demonstrates locating tables with TableAbsorber, creating a new Table, and replacing each absorbed table while keeping its original position in the document.", + "title": "Replace Table in PDF Using Aspose.Pdf", + "description": "Shows how to locate tables on each PDF page with TableAbsorber, create a new Table, and replace the original table while keeping its position.", "tags": [ "table", "replace", "pdf", - "aspose", - "absorption" + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.TableAbsorber", - "Aspose.Pdf.Text.AbsorbedTable", "Aspose.Pdf.Table", - "Aspose.Pdf.TableAbsorber.Visit", + "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.TableAbsorber.Replace" ], "difficulty": "intermediate" }, + { + "filename": "replace-text-in-pdf-table-cells.cs", + "title": "Replace Text in PDF Table Cells", + "description": "Shows how to locate tables in a PDF, find cells that contain a specific keyword, and replace the cell text using Aspose.Pdf's TableAbsorber and TextFragment classes.", + "tags": [ + "table", + "text-replacement", + "pdf", + "aspose", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.TableAbsorber", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.TableAbsorber.Visit", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "intermediate" + }, { "filename": "right-align-table-pdf.cs", "title": "Right Align Table in PDF", - "description": "Demonstrates how to align a table to the right margin of a PDF page using Aspose.Pdf by setting the table's Alignment property and adjusting its left coordinate.", + "description": "Demonstrates how to align a table to the right margin of a PDF page using Aspose.Pdf by setting the table's Alignment property and optionally adjusting its left coordinate.", "tags": [ "table", "alignment", + "right-margin", "pdf", - "right", "aspose-pdf" ], "apis_used": [ @@ -53610,8 +64937,8 @@ }, { "filename": "rotate-page-add-table.cs", - "title": "Rotate PDF Page and Insert a Table", - "description": "Shows how to rotate a PDF page 90° clockwise and then add a formatted table to the rotated page using Aspose.Pdf.", + "title": "Rotate PDF Page and Add Table", + "description": "Shows how to rotate a PDF page 90 degrees clockwise and insert a simple two‑column table onto the rotated page using Aspose.Pdf.", "tags": [ "rotation", "table", @@ -53624,22 +64951,43 @@ "Aspose.Pdf.Page", "Aspose.Pdf.Rotation", "Aspose.Pdf.Table", - "Aspose.Pdf.Row", - "Aspose.Pdf.Cell", - "Aspose.Pdf.Text.TextState" + "Aspose.Pdf.Row" + ], + "difficulty": "intermediate" + }, + { + "filename": "rotate-table-90-degrees-pdf.cs", + "title": "Render a 90° Rotated Table in a PDF", + "description": "Demonstrates creating a table from a DataTable, adding it to a PDF page, and rotating the entire page (including the table) by 90 degrees using Aspose.Pdf.", + "tags": [ + "table", + "rotation", + "pdf", + "aspose.pdf", + "c#" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Table", + "Aspose.Pdf.BorderInfo", + "Aspose.Pdf.Rotation", + "Aspose.Pdf.Table.ImportDataTable", + "Aspose.Pdf.Page.Paragraphs.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "rotate-text-in-table-cell.cs", "title": "Rotate Text Inside a Table Cell", - "description": "Shows how to rotate text within a PDF table cell by setting the TextFragment's rotation angle and adding it to the cell before saving the document.", + "description": "Creates a PDF, adds a table with a single cell, and rotates the text inside that cell by setting the TextFragment's TextState.Rotation property.", "tags": [ "text-rotation", "table", - "cell", "pdf", - "aspose-pdf" + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", @@ -53648,43 +64996,72 @@ "Aspose.Pdf.Row", "Aspose.Pdf.Cell", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextState" + "Aspose.Pdf.Text.TextState.Rotation" ], "difficulty": "beginner" }, { - "filename": "serialize-table-to-xml.cs", - "title": "Serialize Table to XML in PDF Document", - "description": "Shows how to create a PDF with a table using Aspose.Pdf and then serialize the entire document, including the table structure, to an XML file.", + "filename": "serialize-pdf-table-to-xml.cs", + "title": "Serialize PDF Table to XML", + "description": "Shows how to create a PDF table from a DataTable, save the PDF, then read the table back and serialize its rows and cells into an XML document.", + "tags": [ + "pdf", + "table", + "xml", + "serialization", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Table", + "Aspose.Pdf.Row", + "Aspose.Pdf.Cell", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Table.ImportDataTable" + ], + "difficulty": "intermediate" + }, + { + "filename": "serialize-table-to-xml.cs", + "title": "Serialize Table To Xml", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "set-cell-background-color-in-pdf-table.cs", + "title": "Set Cell Background Color in PDF Table", + "description": "Creates a PDF document, adds a table, and sets the background color of a specific cell to light gray.", "tags": [ "pdf", "table", - "xml", - "serialization", - "aspose" + "cell", + "background-color", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", "Aspose.Pdf.Row", - "Aspose.Pdf.BorderInfo", - "Aspose.Pdf.MarginInfo", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.SaveXml" + "Aspose.Pdf.Cell", + "Aspose.Pdf.Color", + "Aspose.Pdf.Text.TextFragment" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "set-cell-vertical-alignment-middle.cs", "title": "Set Cell Vertical Alignment to Middle in PDF Table", - "description": "Demonstrates how to create a PDF table with Aspose.Pdf and set a cell's vertical alignment to the middle (center) before saving the document.", + "description": "Demonstrates how to create a PDF table with Aspose.Pdf, add a cell containing text, and set the cell's vertical alignment to middle using the VerticalAlignment property.", "tags": [ "table", - "cell", - "vertical-alignment", + "cell-alignment", "pdf", - "aspose" + "aspose-pdf", + "vertical-alignment" ], "apis_used": [ "Aspose.Pdf.Document", @@ -53692,21 +65069,21 @@ "Aspose.Pdf.Table", "Aspose.Pdf.Row", "Aspose.Pdf.Cell", - "Aspose.Pdf.VerticalAlignment", - "Aspose.Pdf.Text.TextFragment" + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.VerticalAlignment" ], "difficulty": "beginner" }, { "filename": "set-custom-cell-margins-in-pdf-table.cs", "title": "Set Custom Cell Margins in a PDF Table", - "description": "Demonstrates how to configure individual cell margins in an Aspose.Pdf table using a MarginInfo object and save the result as a PDF.", + "description": "Demonstrates how to configure margins for a table cell using MarginInfo and assign it to the cell's Margin property in Aspose.Pdf.", "tags": [ "table", - "margin", - "cell", + "cell-margins", "pdf", - "aspose" + "aspose-pdf", + "margininfo" ], "apis_used": [ "Aspose.Pdf.Document", @@ -53714,15 +65091,14 @@ "Aspose.Pdf.Table", "Aspose.Pdf.Row", "Aspose.Pdf.Cell", - "Aspose.Pdf.MarginInfo", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.MarginInfo" ], "difficulty": "beginner" }, { "filename": "set-custom-row-height-in-pdf-table.cs", "title": "Set Custom Row Height in PDF Table", - "description": "Shows how to create a PDF document with a table using Aspose.Pdf and assign a fixed height to a specific row.", + "description": "Shows how to create a PDF document with a table and assign a fixed height to a specific row using Aspose.Pdf for .NET.", "tags": [ "table", "row-height", @@ -53735,40 +65111,39 @@ "Aspose.Pdf.Page", "Aspose.Pdf.Table", "Aspose.Pdf.Row", - "Aspose.Pdf.Row.FixedRowHeight", + "Aspose.Pdf.Page.Paragraphs.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "set-default-cell-padding-for-pdf-table.cs", - "title": "Set Default Cell Padding for PDF Table", - "description": "Demonstrates how to apply uniform padding to all cells of a PDF table by assigning a MarginInfo instance to Table.DefaultCellPadding using Aspose.Pdf.", + "title": "Set Default Cell Padding for a PDF Table", + "description": "Creates a PDF document, adds a table, and applies uniform cell padding to all cells by setting Table.DefaultCellPadding with a MarginInfo instance.", "tags": [ "table", "padding", "margininfo", - "pdf", - "aspose" + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", - "Aspose.Pdf.Row", "Aspose.Pdf.MarginInfo", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Row" ], "difficulty": "beginner" }, { - "filename": "set-fixed-row-height-table-rows.cs", - "title": "Set Fixed Row Height for Table Rows in PDF", - "description": "Shows how to create a table in a PDF and enforce a uniform row height by configuring the FixedRowHeight property for each row before adding content.", + "filename": "set-fixed-row-height-for-pdf-table-rows.cs", + "title": "Set Fixed Row Height for PDF Table Rows", + "description": "Shows how to create a PDF table and enforce a fixed height for each row using Aspose.Pdf in C#.", "tags": [ + "pdf", "table", "row-height", - "pdf", "aspose", "csharp" ], @@ -53777,22 +65152,35 @@ "Aspose.Pdf.Page", "Aspose.Pdf.Table", "Aspose.Pdf.Row", - "Aspose.Pdf.BorderInfo", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Text.FontRepository", - "Aspose.Pdf.MarginInfo" + "Aspose.Pdf.Text.TextFragment" ], - "difficulty": "intermediate" + "difficulty": "beginner" + }, + { + "filename": "set-fixed-row-height-table-rows.cs", + "title": "Set Fixed Row Height Table Rows", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "set-maximum-column-widths-for-pdf-table.cs", - "title": "Set Maximum Column Widths for PDF Table", - "description": "Shows how to limit the width of table columns in a PDF by setting the ColumnWidths and DefaultColumnWidth properties using Aspose.Pdf.", + "title": "Set Maximum Column Widths For Pdf Table", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "set-maximum-table-column-width.cs", + "title": "Limit Table Column Widths in PDF", + "description": "Demonstrates how to set a default column width and explicit column widths to prevent table columns from expanding beyond a specified point measurement in a PDF using Aspose.Pdf.", "tags": [ "pdf", "table", "column-width", - "aspose", + "aspose-pdf", "csharp" ], "apis_used": [ @@ -53806,49 +65194,53 @@ }, { "filename": "set-minimum-column-width-for-pdf-tables.cs", - "title": "Set Minimum Column Width for PDF Tables", - "description": "Shows how to enforce a minimum column width for tables in a PDF by setting the Table.DefaultColumnWidth property while iterating through pages with Aspose.Pdf.", + "title": "Set Minimum Column Width For Pdf Tables", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "set-minimum-column-width.cs", + "title": "Set Minimum Column Width for PDF Table", + "description": "Demonstrates how to enforce a minimum column width in a PDF table by using the Table.DefaultColumnWidth property and optionally defining explicit column widths with Aspose.Pdf.", "tags": [ - "pdf", "table", "column-width", - "aspose", - "csharp" + "pdf", + "aspose-pdf", + "default-column-width" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Table.DefaultColumnWidth", - "Aspose.Pdf.Table.ColumnWidths" + "Aspose.Pdf.BorderInfo", + "Aspose.Pdf.Row", + "Aspose.Pdf.Cell" ], "difficulty": "beginner" }, { "filename": "set-table-background-color.cs", - "title": "Set Semi-Transparent Background Color for PDF Table", - "description": "Demonstrates creating a PDF, adding a table, and applying a background color with opacity using Aspose.Pdf.", - "tags": [ - "table", - "background-color", - "opacity", - "pdf", - "aspose" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Table", - "Aspose.Pdf.Row", - "Aspose.Pdf.Color", - "Aspose.Pdf.Page" - ], - "difficulty": "beginner" + "title": "Set Table Background Color", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "set-table-border-thickness-2-points.cs", - "title": "Set Table Border Thickness to 2 Points", - "description": "Shows how to create a table in a PDF document and configure its border width to 2 points using Aspose.Pdf.", + "title": "Set Table Border Thickness 2 Points", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "set-table-border-thickness.cs", + "title": "Set Table Border Thickness in PDF", + "description": "Shows how to create a PDF table with a 2‑point border using Aspose.Pdf, including column widths, cell padding, and adding header and data rows.", "tags": [ "table", "border", @@ -53858,23 +65250,32 @@ ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.Table", "Aspose.Pdf.BorderInfo", - "Aspose.Pdf.Page", - "Aspose.Pdf.Row" + "Aspose.Pdf.Row", + "Aspose.Pdf.MarginInfo" ], "difficulty": "beginner" }, { "filename": "set-table-width-80-percent.cs", - "title": "Set Table Width to 80% of Page", - "description": "Shows how to define a table's width as a percentage of the page width using Aspose.Pdf and save the resulting PDF.", + "title": "Set Table Width 80 Percent", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "set-table-width-percentage.cs", + "title": "Set Table Width as Percentage of Page Width", + "description": "Shows how to define a table's width as a percentage of the page width using Aspose.Pdf and optionally center the table on the page.", "tags": [ "table", - "width", - "percentage", - "Aspose.Pdf", - "PDF" + "percentage-width", + "pdf", + "alignment", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", @@ -53883,174 +65284,246 @@ "Aspose.Pdf.Row", "Aspose.Pdf.Cell", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.HorizontalAlignment" ], "difficulty": "beginner" }, { "filename": "set-table-z-index-pdf.cs", - "title": "Set Table Z-Index in PDF with Aspose.Pdf", - "description": "Demonstrates how to create a table, position it on a PDF page, and control its overlapping order by setting the Z‑index using Aspose.Pdf.", + "title": "Set Table Z Index Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "set-table-z-index.cs", + "title": "Set Table Z-Index to Control Overlap in PDF", + "description": "Demonstrates how to assign a ZIndex value to a Table so it renders above other page elements such as a background rectangle in an Aspose.Pdf document.", "tags": [ - "table", "z-index", + "table", "pdf", - "aspose", - "positioning" + "aspose-pdf", + "overlap" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Drawing.Rectangle", "Aspose.Pdf.Table", "Aspose.Pdf.Row", - "Aspose.Pdf.Table.ZIndex" + "Aspose.Pdf.Cell", + "Aspose.Pdf.BorderInfo" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "split-merged-table-cells.cs", - "title": "Split Merged Table Cells into Separate Cells in PDF", - "description": "Demonstrates how to detect merged cells in a PDF table, split them into individual cells, and replace the original table using Aspose.Pdf.", + "title": "Split Merged Table Cells", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "split-table-across-pdf-pages.cs", + "title": "Split Table Across PDF Pages with Aspose.Pdf", + "description": "Demonstrates enabling table breaking so a large table automatically continues onto subsequent pages in a PDF document using Aspose.Pdf.", "tags": [ - "tables", + "table", + "page-splitting", "pdf", - "cell-split", "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.TableAbsorber", - "Aspose.Pdf.AbsorbedTable", "Aspose.Pdf.Table", "Aspose.Pdf.Row", - "Aspose.Pdf.Cell", - "Aspose.Pdf.Text.TextFragment" + "Aspose.Pdf.BorderInfo", + "Aspose.Pdf.MarginInfo" ], "difficulty": "intermediate" }, { - "filename": "style-table-header-row.cs", - "title": "Style Table Header Row in PDF", - "description": "Shows how to create a PDF with a table and apply a distinct background color and bold font to the header cells using Aspose.Pdf.", + "filename": "stretch-table-to-page-width.cs", + "title": "Stretch Table Across Page Width", + "description": "Creates a PDF document, adds a table, and configures it to automatically fit the page width before saving the file.", "tags": [ - "pdf", "table", - "header", - "style", - "aspose" + "autofit", + "pdf", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", "Aspose.Pdf.Row", - "Aspose.Pdf.Cell", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Text.FontRepository" + "Aspose.Pdf.ColumnAdjustment" ], "difficulty": "beginner" }, { - "filename": "table-with-repeating-header-and-column.cs", - "title": "Create Table with Repeating Header Row and Column", - "description": "Demonstrates how to create a PDF table, mark the first row as a header, and enable column repetition so the first column stays visible on each new page when the table splits.", + "filename": "style-table-header-row-pdf.cs", + "title": "Style Table Header Row in PDF with Aspose.Pdf", + "description": "Creates a PDF document containing a table whose header row is styled with a background color and bold font using Aspose.Pdf.", "tags": [ "table", "header", - "repeating", - "Aspose.Pdf", - "C#" + "styling", + "pdf", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", "Aspose.Pdf.Row", - "Aspose.Pdf.Cell", - "Aspose.Pdf.BorderInfo", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Text.FontRepository", "Aspose.Pdf.Color" ], - "difficulty": "intermediate" + "difficulty": "beginner" + }, + { + "filename": "style-table-header-row.cs", + "title": "Style Table Header Row", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "table-with-repeating-header-and-column.cs", + "title": "Table With Repeating Header And Column", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" } ] }, { "name": "working-with-text", - "file_count": 73, + "file_count": 114, "files": [ "add-arabic-bidi-text-to-pdf.cs", "add-clickable-hyperlink-text-to-pdf.cs", "add-clickable-hyperlink-to-pdf-text.cs", + "add-endnote-bold-italic.cs", "add-footer-page-numbers-to-pdf.cs", + "add-footnote-with-image-to-pdf.cs", "add-header-to-all-pdf-pages.cs", + "add-header-to-pdf-pages.cs", "add-html-fragment-to-pdf.cs", + "add-invisible-tooltip-button-over-text.cs", "add-multi-line-text-paragraph.cs", "add-rotated-text-bottom-right-last-page.cs", "add-rotated-text-watermark-to-pdf-pages.cs", "add-semi-transparent-text-watermark.cs", + "add-styled-html-fragment-to-pdf-page.cs", "add-table-to-footnote-in-pdf.cs", + "add-table-to-pdf-footnote.cs", "add-text-and-encrypt-pdf.cs", "add-text-to-pdf-from-memory-stream.cs", "add-text-to-pdf-page-at-specific-coordinates.cs", "add-text-with-font-settings-to-pdf.cs", "add-underlined-text-to-pdf.cs", + "adjust-word-spacing-in-pdf.cs", "adjust-word-spacing-inserted-text.cs", + "append-a-multi-line-textfragment-to-a-page-and-retrieve-its-line-break-information-for-custom-rendering.cs", "append-disclaimer-to-first-pdf-page.cs", "append-multiline-textfragment-line-break-info.cs", "apply-background-color-to-text.cs", "apply-custom-otf-font-to-textfragment.cs", + "apply-opentype-font-to-textfragment.cs", + "batch-replace-keywords-in-pdf.cs", + "batch-replace-multiple-strings-in-pdf.cs", "batch-replace-text-in-pdfs.cs", "batch-replace-text-pdf-config.cs", + "center-text-horizontally-in-pdf.cs", "center-text-on-pdf-page.cs", + "convert-modified-pdf-to-byte-array.cs", "create-endnote-bold-italic.cs", "create-footnote-with-image.cs", "create-internal-text-link-to-page.cs", + "create-pdf-launch-action-open-external-file.cs", "create-rotated-text-paragraph.cs", + "create-strikethrough-text-pdf.cs", "create-strikethrough-text.cs", + "create-text-link-goto-action.cs", + "detect-manual-line-breaks-in-textfragment.cs", "embed-css-in-htmlfragment.cs", + "emulate-kerning-in-pdf-text.cs", "enable-automatic-hyphenation.cs", - "enable-kerning-in-pdf-text.cs", + "enable-hyphenation-long-words-pdf.cs", "enable-rtl-text-direction.cs", "extract-email-addresses-from-pdf.cs", + "extract-line-break-positions-from-pdf.cs", "extract-line-break-positions-pdf.cs", + "extract-page-word-count-to-csv.cs", + "extract-pdf-text-sentences-per-page.cs", "extract-pdf-text-sentences-to-pages.cs", "extract-pdf-text-to-utf8-file.cs", + "extract-text-fragments-and-positions.cs", + "extract-text-from-pdf-to-utf8-file.cs", "extract-text-word-count-per-pdf-page.cs", "find-approximate-text-matches-pdf.cs", + "find-dates-in-pdf-using-regex.cs", "find-dates-using-regex-in-pdf.cs", + "find-phrase-occurrences-with-textabsorber.cs", "find-specific-phrase-in-pdf.cs", "highlight-keyword-in-pdf.cs", + "highlight-keyword-occurrences-pdf.cs", "identify-forced-line-breaks-in-textfragment.cs", + "inline-text-image-paragraph.cs", + "insert-hyperlink-into-pdf-text-segment.cs", + "insert-identical-text-on-all-pdf-pages.cs", "insert-rotated-mixed-style-text-paragraph.cs", - "insert-rotated-text-on-second-page.cs", + "insert-rotated-text-second-page.cs", "insert-same-text-on-all-pdf-pages.cs", "justify-text-in-pdf.cs", "launch-action-open-external-file.cs", "left-align-text-in-pdf.cs", + "left-align-text-pdf.cs", + "load-custom-ttf-font-and-apply-to-text.cs", "load-custom-ttf-font-from-memory.cs", "render-subscript-text.cs", "render-superscript-text.cs", - "replace-text-in-pdf.cs", + "render-text-with-ligatures.cs", + "replace-confidential-with-public-in-pdf.cs", + "replace-phrase-preserve-formatting.cs", + "replace-text-in-pdf-using-fuzzy-regex.cs", "replace-text-on-specific-pdf-pages.cs", - "replace-text-pdf-preserve-formatting.cs", + "replace-text-rotate-page-save-memory-stream.cs", "replace-text-rotate-pdf-pages-save-memory.cs", + "replace-text-with-clickable-hyperlink.cs", "retrieve-line-break-info-from-text-fragments.cs", + "right-align-text-in-pdf.cs", "right-align-text-pdf.cs", + "rotate-added-text-in-pdf.cs", "rotate-draft-text-fragments.cs", "rotate-header-text-pdf.cs", "rotate-pdf-title-text-45-degrees.cs", "rotate-specific-text-fragment.cs", + "rotate-table-cell-text.cs", + "rotate-text-box-form-field.cs", "rotate-text-field-appearance.cs", "rotate-text-in-pdf-table-cell.cs", "rotate-text-in-pdf.cs", "save-pdf-to-byte-array.cs", "search-pdf-text-log.cs", "search-replace-text-with-hyperlink.cs", + "search-text-pdf-with-logging.cs", "set-character-spacing-pdf.cs", "set-custom-line-height-pdf-text.cs", "set-custom-line-spacing-pdf.cs", + "set-font-size-color-textfragment.cs", "show-floating-box-on-button-hover.cs", "style-textfragment-font-size-color.cs" ], @@ -54060,34 +65533,33 @@ "Aspose.Pdf.Annotations", "Aspose.Pdf.Drawing", "Aspose.Pdf.Forms", - "Aspose.Pdf.Operators" + "Aspose.Pdf.Facades" ], "key_apis": [ "TextFragment", "TextFragmentAbsorber", "TextBuilder", "TextAbsorber", - "HtmlFragment", "LinkAnnotation", - "MarginInfo", - "BorderInfo", + "HtmlFragment", + "GoToAction", "GoToURIAction", - "HideAction", + "JavascriptAction", "LaunchAction", "PageNumberStamp", - "SquareAnnotation", "TableAbsorber", - "TextStamp" + "TextStamp", + "WatermarkAnnotation" ], "examples": [ { "filename": "add-arabic-bidi-text-to-pdf.cs", "title": "Add Arabic Bidirectional Text to PDF", - "description": "Demonstrates how to insert right‑to‑left Arabic text into an existing PDF using Aspose.Pdf, relying on Unicode directionality for proper rendering.", + "description": "Demonstrates how to open an existing PDF, create a TextFragment with Arabic Unicode characters, configure its TextState, and save the document, enabling proper bidirectional rendering.", "tags": [ "bidi", "arabic", - "text", + "textfragment", "pdf", "aspose" ], @@ -54096,21 +65568,21 @@ "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Text.Position", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Text.FontRepository" + "Aspose.Pdf.Text.FontRepository.FindFont", + "Aspose.Pdf.Color" ], "difficulty": "beginner" }, { "filename": "add-clickable-hyperlink-text-to-pdf.cs", "title": "Add Clickable Hyperlink Text to PDF", - "description": "Demonstrates how to insert a text fragment with a clickable segment that opens a web URL using Aspose.Pdf.", + "description": "Shows how to create a TextSegment with a WebHyperlink and append it to a PDF page using Aspose.Pdf.", "tags": [ "hyperlink", - "text", + "textsegment", "pdf", - "clickable", - "Aspose.Pdf" + "aspose", + "clickable" ], "apis_used": [ "Aspose.Pdf.Document", @@ -54118,187 +65590,259 @@ "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Text.TextSegment", "Aspose.Pdf.Text.WebHyperlink", - "Aspose.Pdf.Text.TextBuilder" + "Aspose.Pdf.Text.TextBuilder", + "Aspose.Pdf.Position", + "Aspose.Pdf.Color" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "add-clickable-hyperlink-to-pdf-text.cs", - "title": "Add Clickable Hyperlink to PDF Text", - "description": "Shows how to insert a clickable hyperlink into a PDF by creating a TextFragment, adding a TextSegment with a WebHyperlink, and saving the modified document.", + "title": "Add Clickable Hyperlink To Pdf Text", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-endnote-bold-italic.cs", + "title": "Add Endnote with Bold and Italic Formatting to PDF", + "description": "Demonstrates how to insert an endnote into a PDF and apply bold and italic formatting using TextState settings.", "tags": [ - "hyperlink", - "textsegment", - "pdf", - "aspose-pdf", - "textbuilder" + "endnote", + "bold", + "italic", + "textstate", + "pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextSegment", - "Aspose.Pdf.Text.WebHyperlink", - "Aspose.Pdf.Text.TextBuilder" + "Aspose.Pdf.Text.Note", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "add-footer-page-numbers-to-pdf.cs", "title": "Add Footer Page Numbers to PDF", - "description": "Shows how to insert a footer containing page numbers on each page of a PDF using Aspose.Pdf's PageNumberStamp.", + "description": "Shows how to insert a footer with automatic page numbers on every page of an existing PDF using Aspose.Pdf's PageNumberStamp.", "tags": [ - "pdf", "footer", "page-number", "stamp", - "aspose-pdf" + "pdf", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.PageNumberStamp", - "Aspose.Pdf.Text.HorizontalAlignment", - "Aspose.Pdf.Text.VerticalAlignment", + "Aspose.Pdf.Facades.PageNumberStamp", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.FontRepository" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "add-header-to-all-pdf-pages.cs", - "title": "Add Header to All PDF Pages", - "description": "Shows how to loop through a PDF's Pages collection and attach the same header text to each page using HeaderFooter and TextFragment.", + "filename": "add-footnote-with-image-to-pdf.cs", + "title": "Add Footnote with Image to PDF", + "description": "Shows how to create a footnote (Note) for a TextFragment, insert an image into the footnote's Paragraphs collection, and save the modified PDF using Aspose.Pdf.", "tags": [ - "header", + "footnote", + "image", "pdf", - "aspose", - "text", - "loop" + "aspose-pdf", + "textfragment" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.HeaderFooter", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.FontRepository", - "Aspose.Pdf.Color" + "Aspose.Pdf.Text.Note", + "Aspose.Pdf.Image", + "Aspose.Pdf.Text.Position" ], "difficulty": "intermediate" }, { - "filename": "add-html-fragment-to-pdf.cs", - "title": "Add HTML Fragment with Styled Text to PDF", - "description": "Shows how to insert a styled HTML fragment into a PDF page using Aspose.Pdf's HtmlFragment and customize its TextState (font, size, color).", + "filename": "add-header-to-all-pdf-pages.cs", + "title": "Add Header To All Pdf Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-header-to-pdf-pages.cs", + "title": "Add Header to PDF Pages", + "description": "Shows how to loop through a PDF's Pages collection and add a repeated header string to each page using a TextStamp.", "tags": [ - "html", "pdf", - "textstate", - "aspose-pdf", - "csharp" + "header", + "textstamp", + "pages", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.HtmlFragment", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.FontRepository.FindFont", - "Aspose.Pdf.Color", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Page.Paragraphs.Add" + "Aspose.Pdf.Text.TextStamp", + "Aspose.Pdf.Text.FontRepository.FindFont", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner" + }, + { + "filename": "add-html-fragment-to-pdf.cs", + "title": "Add Html Fragment To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-invisible-tooltip-button-over-text.cs", + "title": "Add Invisible Tooltip Button Over Text in PDF", + "description": "Shows how to locate a specific text fragment in a PDF and overlay an invisible button field that displays a tooltip via JavaScript when the mouse enters the area.", + "tags": [ + "tooltip", + "buttonfield", + "textsearch", + "javascript", + "pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Text.TextFragmentAbsorber", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Forms.ButtonField", + "Aspose.Pdf.Annotations.JavascriptAction" ], "difficulty": "intermediate" }, { "filename": "add-multi-line-text-paragraph.cs", "title": "Add Multi‑Line Text Paragraph to PDF Page", - "description": "Demonstrates creating a TextParagraph, configuring its rectangle, wrap mode, alignment, and margins, adding multiple lines, and appending it to a PDF page using TextBuilder before saving the document.", + "description": "Demonstrates creating a TextParagraph, setting its rectangle and word‑wrap options, appending multiple lines, and inserting it into a PDF page using TextBuilder.", "tags": [ "text", "paragraph", - "wrap", - "alignment", + "multiline", + "aspdf", "pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextParagraph", - "Aspose.Pdf.Text.TextFormattingOptions", "Aspose.Pdf.Text.TextBuilder", - "Aspose.Pdf.Text.MarginInfo", + "Aspose.Pdf.Text.TextFormattingOptions.WordWrapMode", "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate" }, { "filename": "add-rotated-text-bottom-right-last-page.cs", - "title": "Add Rotated Text to Bottom-Right Corner of Last PDF Page", - "description": "Demonstrates using Aspose.Pdf's TextBuilder to place a rotated text paragraph at the bottom‑right corner of the last page of a PDF document.", + "title": "Add Rotated Text to Bottom‑Right of Last PDF Page", + "description": "Demonstrates how to use Aspose.Pdf's TextBuilder to place a rotated text fragment at the bottom‑right corner of the last page of a PDF document.", "tags": [ - "rotated-text", - "textbuilder", + "text", + "rotation", "pdf", - "last-page", - "aspnet-pdf" + "textbuilder", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextParagraph", + "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Text.TextBuilder", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.PageInfo" + "Aspose.Pdf.Text.Position", + "Aspose.Pdf.Text.FontRepository", + "Aspose.Pdf.Color" ], "difficulty": "intermediate" }, { "filename": "add-rotated-text-watermark-to-pdf-pages.cs", - "title": "Add Rotated Text Watermark to All PDF Pages", - "description": "Shows how to use Aspose.Pdf's TextBuilder and TextFragment to place a rotated \"CONFIDENTIAL\" watermark at the center of each page in a PDF document.", + "title": "Add Rotated Text Watermark to PDF Pages", + "description": "Shows how to use Aspose.Pdf's TextBuilder and TextFragment to place a rotated \"CONFIDENTIAL\" watermark on every page of a PDF document.", "tags": [ "watermark", "text", "pdf", "rotation", - "Aspose.Pdf" + "Aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Text.TextBuilder", - "Aspose.Pdf.Text.FontRepository", - "Aspose.Pdf.Color" + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.FontRepository.FindFont", + "Aspose.Pdf.Color", + "Aspose.Pdf.Text.TextBuilder.AppendText", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "add-semi-transparent-text-watermark.cs", - "title": "Add Semi-Transparent Text Watermark to PDF", - "description": "Demonstrates how to overlay a semi‑transparent text watermark on every page of a PDF using Aspose.Pdf's TextStamp and TextState.", + "title": "Add Semi-Transparent Text Watermark to PDF Pages", + "description": "Demonstrates how to overlay a semi-transparent watermark text on each page of a PDF using Aspose.Pdf's TextState and WatermarkAnnotation.", "tags": [ "watermark", "text", - "pdf", "opacity", - "Aspose.Pdf" + "annotation", + "pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Text.FontRepository.FindFont", - "Aspose.Pdf.Text.TextStamp", - "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Annotations.WatermarkAnnotation", + "Aspose.Pdf.Annotations.WatermarkAnnotation.SetTextAndState", + "Aspose.Pdf.Color.FromRgb", + "Aspose.Pdf.FontRepository.FindFont" + ], + "difficulty": "intermediate" + }, + { + "filename": "add-styled-html-fragment-to-pdf-page.cs", + "title": "Add Styled HTML Fragment to PDF Page", + "description": "Shows how to insert a styled HTML fragment into an existing PDF document using Aspose.Pdf's HtmlFragment and optional TextState for formatting.", + "tags": [ + "html", + "pdf", + "textstate", + "fragment", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.HtmlFragment", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.FontRepository.FindFont", + "Aspose.Pdf.Page", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "add-table-to-footnote-in-pdf.cs", - "title": "Add Table to Footnote in PDF", - "description": "Demonstrates how to create a footnote for a text fragment and populate it with a table using Aspose.Pdf.", + "title": "Add Table To Footnote In Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-table-to-pdf-footnote.cs", + "title": "Insert a Table into a PDF Footnote", + "description": "Demonstrates how to create a footnote for a text fragment and populate it with a table, then add the footnote to a PDF page using Aspose.Pdf.", "tags": [ "footnote", "table", @@ -54319,34 +65863,35 @@ { "filename": "add-text-and-encrypt-pdf.cs", "title": "Add Text and Encrypt PDF with Password", - "description": "Loads an existing PDF, adds a red text fragment, sets specific permissions, encrypts the document with user and owner passwords using AES‑256, and saves the protected file.", + "description": "Loads an existing PDF, adds a red text fragment to the first page, then encrypts the document with user and owner passwords and specific permissions before saving.", "tags": [ "pdf", "encryption", "text", - "permissions", - "aspose-pdf" + "aspose-pdf", + "permissions" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Text.Position", + "Aspose.Pdf.FontRepository.FindFont", "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Document.Encrypt" + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.CryptoAlgorithm" ], "difficulty": "intermediate" }, { "filename": "add-text-to-pdf-from-memory-stream.cs", "title": "Add Text to PDF from Memory Stream", - "description": "Demonstrates loading a PDF from a Stream, inserting a text fragment on the first page, and returning the modified PDF as a new MemoryStream using Aspose.Pdf.", + "description": "Shows how to load a PDF from a Stream, insert a text fragment on the first page, and write the updated PDF back to another Stream using Aspose.Pdf.", "tags": [ "pdf", - "aspose", "text", "memory-stream", + "aspose", "csharp" ], "apis_used": [ @@ -54355,19 +65900,20 @@ "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Text.Position", "Aspose.Pdf.Text.TextBuilder", - "Aspose.Pdf.Text.FontRepository" + "Aspose.Pdf.Text.FontRepository.FindFont", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "add-text-to-pdf-page-at-specific-coordinates.cs", "title": "Add Text to PDF Page at Specific Coordinates", - "description": "Shows how to load a PDF, create a TextFragment, set its position using X/Y coordinates, and save the modified document with Aspose.Pdf.", + "description": "Shows how to load a PDF, create a TextFragment, set its position using X/Y coordinates, and save the modified document.", "tags": [ "text", "pdf", "coordinates", - "aspose.pdf", + "aspose", "csharp" ], "apis_used": [ @@ -54376,41 +65922,28 @@ "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Text.Position", "Aspose.Pdf.Text.TextBuilder", - "Aspose.Pdf.Text.FontRepository" + "Aspose.Pdf.Text.FontRepository.FindFont" ], "difficulty": "beginner" }, { "filename": "add-text-with-font-settings-to-pdf.cs", - "title": "Add Text with Font Settings to PDF", - "description": "Shows how to create a PDF, add a page, insert a TextFragment, configure its font, size, and color via TextState, and save the document.", - "tags": [ - "pdf", - "text", - "font", - "aspose", - "textstate" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.FontRepository", - "Aspose.Pdf.Text.Color", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner" + "title": "Add Text With Font Settings To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "add-underlined-text-to-pdf.cs", "title": "Add Underlined Text to PDF", - "description": "Creates a PDF document and inserts a text fragment with underlining by setting the TextState.Underline property using Aspose.Pdf.", + "description": "Creates a PDF document, adds a page, and inserts a text fragment with underlining by setting TextState.Underline to true.", "tags": [ "underlined-text", - "pdf", - "aspose-pdf", - "textfragment", - "csharp" + "Aspose.Pdf", + "TextFragment", + "PDF-generation", + "C#" ], "apis_used": [ "Aspose.Pdf.Document", @@ -54419,101 +65952,111 @@ "Aspose.Pdf.Text.TextState", "Aspose.Pdf.Text.TextBuilder", "Aspose.Pdf.Text.Position", - "Aspose.Pdf.Text.FontRepository" + "Aspose.Pdf.FontRepository.FindFont" ], "difficulty": "beginner" }, { - "filename": "adjust-word-spacing-inserted-text.cs", - "title": "Adjust Word Spacing of Inserted Text in PDF", - "description": "Shows how to add a text fragment to a PDF page and customize the spacing between words using the TextState.WordSpacing property.", + "filename": "adjust-word-spacing-in-pdf.cs", + "title": "Adjust Word Spacing for Inserted Text in PDF", + "description": "Demonstrates how to load an existing PDF, create a TextFragment, set its WordSpacing property, and place it on a page using Aspose.Pdf.", "tags": [ - "text-insertion", "word-spacing", + "text-fragment", "pdf-modification", - "textfragment", - "aspose-pdf" + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Text.Position", - "Aspose.Pdf.FontRepository", - "Aspose.Pdf.Color" + "Aspose.Pdf.FontRepository.FindFont", + "Aspose.Pdf.Position", + "Aspose.Pdf.Page" ], "difficulty": "beginner" }, + { + "filename": "adjust-word-spacing-inserted-text.cs", + "title": "Adjust Word Spacing Inserted Text", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "append-a-multi-line-textfragment-to-a-page-and-retrieve-its-line-break-information-for-custom-rendering.cs", + "title": "Append A Multi Line Textfragment To A Page And Retrieve Its Line Break Information For Custom Rendering", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "append-disclaimer-to-first-pdf-page.cs", "title": "Append Disclaimer Text to First PDF Page", - "description": "Demonstrates how to add a disclaimer as a TextFragment to the end of the paragraph collection on the first page of a PDF using Aspose.Pdf.", + "description": "Shows how to load a PDF, create a formatted TextFragment, and add it to the end of the first page's paragraph collection as a disclaimer.", "tags": [ "pdf", - "disclaimer", "textfragment", - "aspnet", - "append" + "disclaimer", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.FontRepository.FindFont", + "Aspose.Pdf.FontRepository.FindFont", "Aspose.Pdf.Color.Gray", - "Aspose.Pdf.Page.Paragraphs.Add" + "Aspose.Pdf.Page.Paragraphs.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "append-multiline-textfragment-line-break-info.cs", - "title": "Append Multi-line TextFragment and Retrieve Line Break Information", - "description": "Demonstrates adding a multi-line TextFragment to a PDF page with Aspose.Pdf and extracting each line's break details via the generated TextSegments for custom rendering.", - "tags": [ - "textfragment", - "multiline", - "linebreak", - "aspose-pdf", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextBuilder", - "Aspose.Pdf.Text.TextSegment", - "Aspose.Pdf.Text.FontRepository", - "Aspose.Pdf.Text.Position" - ], - "difficulty": "intermediate" + "title": "Append Multiline Textfragment Line Break Info", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "apply-background-color-to-text.cs", "title": "Apply Background Color to Text in PDF", - "description": "Demonstrates how to set a background color on a TextFragment's TextState before adding it to a PDF page using Aspose.Pdf.", + "description": "Demonstrates how to set a background color for a text fragment in a PDF using Aspose.Pdf by configuring the TextState.BackgroundColor property before adding the fragment to a page.", "tags": [ - "background-color", - "textfragment", + "text", + "background", "pdf", - "highlight", - "aspose-pdf" + "aspose-pdf", + "textfragment" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Position", + "Aspose.Pdf.Text.Position", "Aspose.Pdf.Page.Paragraphs.Add", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Color" + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "apply-custom-otf-font-to-textfragment.cs", - "title": "Apply Custom OTF Font to TextFragment", - "description": "Demonstrates loading an OpenType (OTF) font, embedding it, and applying it to a TextFragment to create styled text in a PDF using Aspose.Pdf.", + "title": "Apply Custom Otf Font To Textfragment", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "apply-opentype-font-to-textfragment.cs", + "title": "Apply OpenType Font to TextFragment in PDF", + "description": "Demonstrates loading an OpenType (OTF) font, embedding it, and applying it to a TextFragment to create a styled PDF document.", "tags": [ "otf", "font", @@ -54522,151 +66065,176 @@ "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.FontRepository.OpenFont", - "Aspose.Pdf.Font", "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.FontRepository", + "Aspose.Pdf.Text.Font", "Aspose.Pdf.Text.TextState", "Aspose.Pdf.Color" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "batch-replace-text-in-pdfs.cs", - "title": "Batch Replace Text in PDFs Using Aspose.Pdf", - "description": "Demonstrates how to process a folder of PDF files and replace multiple strings with new values using Aspose.Pdf's TextFragmentAbsorber and a dictionary of replacement pairs.", + "filename": "batch-replace-keywords-in-pdf.cs", + "title": "Batch Replace Keywords in PDF Using a Configuration File", + "description": "Demonstrates how to read a mapping file and perform batch text replacements in a PDF document using Aspose.Pdf's text absorber and fragment classes.", "tags": [ "pdf", "text-replacement", "batch-processing", - "aspose-pdf", - "csharp" + "configuration-file", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Text.TextFragmentAbsorber", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.PageCollection.Accept", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.PageCollection.Accept" ], "difficulty": "intermediate" }, { - "filename": "batch-replace-text-pdf-config.cs", - "title": "Batch Replace Text in PDF Using a Configuration File", - "description": "Demonstrates how to load key‑value pairs from a config file and replace multiple text strings across all pages of a PDF using Aspose.Pdf.", + "filename": "batch-replace-multiple-strings-in-pdf.cs", + "title": "Batch Replace Multiple Strings in PDF", + "description": "Shows how to replace several text strings in a PDF by iterating a dictionary of old‑new pairs using Aspose.Pdf's TextFragmentAbsorber and TextReplaceOptions.", "tags": [ "pdf", "text-replacement", - "batch", - "configuration", - "aspose" + "batch-processing", + "dictionary", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragmentAbsorber", + "Aspose.Pdf.Text.TextReplaceOptions", "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.PageCollection.Accept", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "center-text-on-pdf-page.cs", - "title": "Center Text on PDF Page", - "description": "Shows how to center‑align a text fragment on a PDF page using Aspose.Pdf by setting TextState.HorizontalAlignment to Center.", + "filename": "batch-replace-text-in-pdfs.cs", + "title": "Batch Replace Text In Pdfs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "batch-replace-text-pdf-config.cs", + "title": "Batch Replace Text Pdf Config", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "center-text-horizontally-in-pdf.cs", + "title": "Center Text Horizontally in PDF", + "description": "Demonstrates how to place a text fragment at the horizontal center of a PDF page using Aspose.Pdf's TextFragment and HorizontalAlignment properties.", "tags": [ - "center-alignment", - "textfragment", + "text-alignment", "pdf", "aspose-pdf", - "horizontal-alignment" + "csharp", + "horizontal-center" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextState", "Aspose.Pdf.FontRepository.FindFont", - "Aspose.Pdf.Text.Position", - "Aspose.Pdf.Page.Paragraphs.Add", + "Aspose.Pdf.Text.HorizontalAlignment", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "create-endnote-bold-italic.cs", - "title": "Create Endnote with Bold and Italic Text in PDF", - "description": "Demonstrates how to add an endnote to a PDF and format its text using TextState to apply bold and italic styles.", - "tags": [ - "endnote", - "bold", - "italic", - "textstate", - "pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.Note", - "Aspose.Pdf.Text.TextState" - ], - "difficulty": "beginner" + "filename": "center-text-on-pdf-page.cs", + "title": "Center Text On Pdf Page", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "create-footnote-with-image.cs", - "title": "Create Footnote with Image in PDF", - "description": "Demonstrates how to add a footnote to a PDF page and insert an in‑memory PNG image into the footnote's Paragraphs collection using Aspose.Pdf.", + "filename": "convert-modified-pdf-to-byte-array.cs", + "title": "Convert Modified PDF to Byte Array", + "description": "Loads a PDF, adds a blank page, and returns the modified document as a byte array using a MemoryStream for further processing or transmission.", "tags": [ - "footnote", - "image", "pdf", - "aspose", - "csharp" + "byte-array", + "memory-stream", + "aspose.pdf", + "document-modification" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.Note", - "Aspose.Pdf.Drawing.Image", - "Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Document.Pages.Add" ], "difficulty": "intermediate" }, + { + "filename": "create-endnote-bold-italic.cs", + "title": "Create Endnote Bold Italic", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-footnote-with-image.cs", + "title": "Create Footnote With Image", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "create-internal-text-link-to-page.cs", - "title": "Create Internal Text Link to Specific Page in PDF", - "description": "Shows how to add a clickable TextFragment that navigates to a given page within the same PDF using Aspose.Pdf's LocalHyperlink.", + "title": "Create Internal Text Link To Page", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-pdf-launch-action-open-external-file.cs", + "title": "Create PDF with Launch Action to Open External File", + "description": "Demonstrates how to add clickable text in a PDF that launches an external file using Aspose.Pdf's LaunchAction.", "tags": [ - "text-link", - "internal-navigation", - "Aspose.Pdf", - "TextFragment", - "LocalHyperlink" + "pdf", + "launch-action", + "link-annotation", + "clickable-text", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.Position", - "Aspose.Pdf.Text.LocalHyperlink", - "Aspose.Pdf.PageCollection.Add", - "Aspose.Pdf.Page.Paragraphs.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Annotations.LinkAnnotation", + "Aspose.Pdf.Annotations.LaunchAction", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Color" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "create-rotated-text-paragraph.cs", - "title": "Create Rotated Text Paragraph with Multiple Fragments", - "description": "Shows how to build a TextParagraph containing several TextFragments, apply a 30‑degree rotation, and add it to a PDF page using Aspose.Pdf.", + "title": "Create Rotated Text Paragraph in PDF", + "description": "Demonstrates how to build a TextParagraph with multiple TextFragments, set its bounding rectangle, apply a 30‑degree rotation, and add it to a PDF page using Aspose.Pdf.", "tags": [ "text", "rotation", "paragraph", - "textfragment", + "pdf", "aspose-pdf" ], "apis_used": [ @@ -54675,78 +66243,108 @@ "Aspose.Pdf.Text.TextParagraph", "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Text.TextBuilder", - "Aspose.Pdf.FontRepository.FindFont" + "Aspose.Pdf.Text.FontRepository", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Color" ], "difficulty": "intermediate" }, { - "filename": "create-strikethrough-text.cs", + "filename": "create-strikethrough-text-pdf.cs", "title": "Create Strikethrough Text in PDF", - "description": "Shows how to apply strikeout formatting to a TextFragment using the TextState property and save the result as a PDF with Aspose.Pdf.", + "description": "Shows how to apply strikeout formatting to a TextFragment by setting TextState.StrikeOut and adding the fragment to a PDF page using Aspose.Pdf.", "tags": [ "strikethrough", - "textfragment", + "text", "pdf", "aspose-pdf", - "textstate" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.FontRepository", - "Aspose.Pdf.Text.Position", + "Aspose.Pdf.Text.FontRepository", + "Aspose.Pdf.Page.Paragraphs.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "embed-css-in-htmlfragment.cs", - "title": "Embed CSS in HtmlFragment for Styled PDF Text", - "description": "Shows how to embed CSS rules inside an HtmlFragment to control font, color, margins, and line spacing when converting HTML to PDF with Aspose.Pdf.", + "filename": "create-strikethrough-text.cs", + "title": "Create Strikethrough Text", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-text-link-goto-action.cs", + "title": "Create Text Link with GoTo Action in PDF", + "description": "Shows how to add a clickable text fragment that jumps to another page by using a LinkAnnotation with a GoToAction in Aspose.Pdf.", "tags": [ - "css", - "htmlfragment", + "text-link", + "goto-action", + "annotation", "pdf", - "styling", - "aspose-pdf" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.HtmlFragment", - "Aspose.Pdf.HorizontalAlignment", - "Aspose.Pdf.Page.Paragraphs.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Annotations.LinkAnnotation", + "Aspose.Pdf.Annotations.GoToAction", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Border" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "enable-automatic-hyphenation.cs", - "title": "Enable Automatic Hyphenation for Long Words in PDF", - "description": "Shows how to turn on automatic hyphenation for long words by configuring TextParagraph's formatting options and inserting the paragraph into a PDF page.", + "filename": "detect-manual-line-breaks-in-textfragment.cs", + "title": "Detect Manual Line Breaks in TextFragment Content", + "description": "Shows how to load a PDF, iterate through pages and TextFragment objects, split the fragment text into logical lines, and determine whether each line ends with a manual line‑break for custom layout handling.", "tags": [ - "hyphenation", - "text-formatting", "pdf", + "textfragment", + "line-break", "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextParagraph", - "Aspose.Pdf.Text.TextFormattingOptions", - "Aspose.Pdf.Text.TextBuilder", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Page.Paragraphs" ], "difficulty": "intermediate" }, { - "filename": "enable-kerning-in-pdf-text.cs", - "title": "Enable Kerning in PDF Text Using TextFragment", - "description": "Shows how to add a TextFragment to a PDF document and adjust character spacing to emulate kerning between characters.", + "filename": "embed-css-in-htmlfragment.cs", + "title": "Embed CSS in HtmlFragment to Style PDF Text", + "description": "Demonstrates embedding CSS rules within an HtmlFragment to control font, color, and spacing, and adding the fragment to a PDF page using Aspose.Pdf.", + "tags": [ + "css", + "htmlfragment", + "pdf", + "styling", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.HtmlFragment", + "Aspose.Pdf.Page.Paragraphs.Add", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner" + }, + { + "filename": "emulate-kerning-in-pdf-text.cs", + "title": "Emulate Kerning in PDF Text Using Aspose.Pdf", + "description": "Shows how to add a TextFragment to a PDF and emulate kerning by setting the CharacterSpacing property on its TextState.", "tags": [ "kerning", "textfragment", @@ -54759,224 +66357,330 @@ "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Text.TextState", "Aspose.Pdf.Position", - "Aspose.Pdf.PageCollection" + "Aspose.Pdf.Page" ], "difficulty": "beginner" }, { - "filename": "enable-rtl-text-direction.cs", - "title": "Enable Right-to-Left Text Direction in PDF", - "description": "Shows how to set a PDF's reading order to right‑to‑left and add Arabic text using Aspose.Pdf's document, text fragment, and text builder APIs.", + "filename": "enable-automatic-hyphenation.cs", + "title": "Enable Automatic Hyphenation", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "enable-hyphenation-long-words-pdf.cs", + "title": "Enable Hyphenation for Long Words in PDF", + "description": "Demonstrates how to enable automatic hyphenation for long words when inserting text into a PDF using Aspose.Pdf. The example creates a TextFragment, configures hyphenation options, and appends it to a page.", "tags": [ - "rtl", - "arabic", - "text", + "hyphenation", + "textfragment", "pdf", - "direction" + "aspose-pdf", + "textbuilder" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Direction", "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.FontRepository", - "Aspose.Pdf.Text.TextBuilder" + "Aspose.Pdf.Text.TextBuilder", + "Aspose.Pdf.Text.TextFormattingOptions", + "Aspose.Pdf.Text.FontRepository", + "Aspose.Pdf.Color" ], "difficulty": "intermediate" }, + { + "filename": "enable-rtl-text-direction.cs", + "title": "Enable Rtl Text Direction", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "extract-email-addresses-from-pdf.cs", - "title": "Extract Email Addresses from PDF Using Regex", - "description": "Demonstrates how to search each page of a PDF for email addresses using a regular expression with Aspose.Pdf's TextFragmentAbsorber and collect the matches.", + "title": "Extract Email Addresses from PDF Pages using Regex", + "description": "Shows how to load a PDF with Aspose.Pdf, search each page for email addresses using a regular expression, and print the matches together with their page numbers.", "tags": [ "pdf", "regex", "email", - "search", + "text-search", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", + "Aspose.Pdf.Page.Accept", "Aspose.Pdf.Text.TextFragmentAbsorber", "Aspose.Pdf.Text.TextSearchOptions", - "Aspose.Pdf.Text.TextFragmentCollection", "Aspose.Pdf.Text.TextFragment" ], "difficulty": "intermediate" }, { - "filename": "extract-line-break-positions-pdf.cs", - "title": "Extract Line‑Break Y Positions from PDF Text Fragments", - "description": "Loads a PDF, extracts multi‑line text fragments, groups their segments by Y coordinate to determine line‑break positions, and writes the results to a JSON file.", + "filename": "extract-line-break-positions-from-pdf.cs", + "title": "Extract Line-Break Positions from PDF Text Fragments", + "description": "Demonstrates how to load a PDF, absorb its text fragments, and determine the Y‑coordinates where each line starts, outputting the positions as JSON.", "tags": [ "pdf", "text-extraction", - "line-breaks", - "json", - "aspose-pdf" + "line-break", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Text.TextFragmentAbsorber", "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Text.TextSegment", - "Aspose.Pdf.Page.Accept" + "Aspose.Pdf.Text.Position" ], "difficulty": "intermediate" }, { - "filename": "extract-pdf-text-sentences-to-pages.cs", - "title": "Extract PDF Text and Place Each Sentence on a Separate Page", - "description": "Demonstrates how to extract all text from a PDF, split it into individual sentences using a regular expression, and write each sentence to its own page as a TextFragment.", + "filename": "extract-line-break-positions-pdf.cs", + "title": "Extract Line Break Positions Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-page-word-count-to-csv.cs", + "title": "Extract Text from PDF Pages and Count Words to CSV", + "description": "The example opens a PDF, extracts the text of each page using Aspose.Pdf, counts the words, and writes the page number and word count to a CSV file.", + "tags": [ + "pdf", + "text-extraction", + "word-count", + "csv", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextAbsorber", + "Aspose.Pdf.Page.Accept", + "Aspose.Pdf.Document.Pages" + ], + "difficulty": "beginner" + }, + { + "filename": "extract-pdf-text-sentences-per-page.cs", + "title": "Extract PDF Text and Save Each Sentence on Separate Pages", + "description": "The example extracts all text from an input PDF, splits it into individual sentences, and writes each sentence to its own page in a new PDF using TextFragment objects.", "tags": [ "pdf", "text-extraction", "sentence-splitting", - "aspose", - "textfragment" + "textfragment", + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Text.TextAbsorber", "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Text.TextBuilder", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.Position" + "Aspose.Pdf.Text.Position", + "Aspose.Pdf.Text.FontRepository", + "Aspose.Pdf.Color" ], "difficulty": "intermediate" }, + { + "filename": "extract-pdf-text-sentences-to-pages.cs", + "title": "Extract Pdf Text Sentences To Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "extract-pdf-text-to-utf8-file.cs", - "title": "Extract All Text from PDF and Save as UTF-8 File", - "description": "Demonstrates how to load a PDF with Aspose.Pdf, extract the concatenated text from all pages using a TextAbsorber, and write the result to a UTF‑8 encoded text file.", + "title": "Extract Pdf Text To Utf8 File", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-text-fragments-and-positions.cs", + "title": "Extract Text Fragments and Positions from PDF", + "description": "Loads a PDF document, uses TextFragmentAbsorber to retrieve all text fragments on each page, and logs each fragment's text, coordinates, rectangle bounds, and segment details.", "tags": [ "pdf", "text-extraction", - "utf-8", - "file-io", - "aspose-pdf" + "positions", + "text-fragment", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextAbsorber", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.PageCollection.Accept", - "Aspose.Pdf.Text.TextAbsorber.Text" + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragmentAbsorber", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.TextSegment" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "extract-text-word-count-per-pdf-page.cs", - "title": "Extract Text and Count Words per PDF Page", - "description": "Shows how to load a PDF with Aspose.Pdf, extract the text of each page using TextAbsorber, count the words, and output the page‑wise word counts to a CSV file.", + "filename": "extract-text-from-pdf-to-utf8-file.cs", + "title": "Extract Text from PDF and Save as UTF-8 File", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, extract all page text using a TextAbsorber, and write the concatenated result to a UTF‑8 encoded text file.", "tags": [ "pdf", "text-extraction", - "word-count", - "csv", - "aspose" + "utf-8", + "file-io", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextAbsorber", - "Aspose.Pdf.Text.TextAbsorber.Visit", + "Aspose.Pdf.PageCollection.Accept", "Aspose.Pdf.Text.TextAbsorber.Text" ], "difficulty": "beginner" }, + { + "filename": "extract-text-word-count-per-pdf-page.cs", + "title": "Extract Text Word Count Per Pdf Page", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "find-approximate-text-matches-pdf.cs", - "title": "Find Approximate Text Matches in PDF Using Fuzzy Regex", - "description": "Demonstrates how to locate approximate text occurrences in a PDF using a fuzzy regular‑expression pattern with TextFragmentAbsorber, and optionally highlight the matches.", - "tags": [ - "text-search", - "fuzzy-matching", - "regex", - "highlight", - "pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextSearchOptions", - "Aspose.Pdf.Text.TextFragmentAbsorber", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextState" - ], - "difficulty": "intermediate" + "title": "Find Approximate Text Matches Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "find-dates-using-regex-in-pdf.cs", - "title": "Find Dates Using Regex in PDF", - "description": "Demonstrates how to locate all dates in the format MM/DD/YYYY within a PDF using Aspose.Pdf's TextFragmentAbsorber with a regular‑expression pattern.", + "filename": "find-dates-in-pdf-using-regex.cs", + "title": "Find Dates in PDF Using Regex", + "description": "Shows how to locate all dates in MM/DD/YYYY format within a PDF by applying a regular expression with TextFragmentAbsorber and output the matches.", "tags": [ - "text-search", + "date extraction", "regex", + "text search", "pdf", - "date-extraction", - "aspose" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextSearchOptions", "Aspose.Pdf.Text.TextFragmentAbsorber", + "Aspose.Pdf.Text.TextSearchOptions", "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.PageCollection.Accept" ], "difficulty": "intermediate" }, { - "filename": "find-specific-phrase-in-pdf.cs", - "title": "Find Specific Phrase in PDF Using TextFragmentAbsorber", - "description": "Demonstrates how to use Aspose.Pdf's TextFragmentAbsorber to locate and list all occurrences of a given phrase within a PDF document.", + "filename": "find-dates-using-regex-in-pdf.cs", + "title": "Find Dates Using Regex In Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "find-phrase-occurrences-with-textabsorber.cs", + "title": "Find All Occurrences of a Phrase Using TextAbsorber", + "description": "Demonstrates how to extract the full text of a PDF with TextAbsorber and locate every case‑insensitive occurrence of a specified phrase, reporting its character positions.", "tags": [ - "text-search", + "textabsorption", + "phrase-search", "pdf", "aspose-pdf", - "textfragmentabsorber", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextFragmentAbsorber", - "Aspose.Pdf.Text.TextFragmentAbsorber.Visit", - "Aspose.Pdf.Text.TextFragmentAbsorber.TextFragments", - "Aspose.Pdf.Text.TextFragment" + "Aspose.Pdf.Text.TextAbsorber", + "Aspose.Pdf.PageCollection", + "Aspose.Pdf.PageCollection.Accept" ], "difficulty": "beginner" }, + { + "filename": "find-specific-phrase-in-pdf.cs", + "title": "Find Specific Phrase In Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "highlight-keyword-in-pdf.cs", - "title": "Highlight Keyword in PDF (Case‑Insensitive)", - "description": "Shows how to search a PDF for a case‑insensitive keyword using a regular expression and Aspose.Pdf, then highlight each found occurrence with a colored text fragment.", + "title": "Highlight Keyword In Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "highlight-keyword-occurrences-pdf.cs", + "title": "Highlight Keyword Occurrences in PDF (Case‑Insensitive)", + "description": "Shows how to search a PDF for a case‑insensitive keyword using a regular expression and highlight each found instance with a colored background.", "tags": [ "pdf", "highlight", - "keyword", + "search", "regex", - "textsearch" + "textfragment" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page.Accept", "Aspose.Pdf.Text.TextFragmentAbsorber", "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Text.TextState", "Aspose.Pdf.Color", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.PageCollection.Accept" ], "difficulty": "intermediate" }, { "filename": "identify-forced-line-breaks-in-textfragment.cs", - "title": "Identify Forced Line Breaks in TextFragment", - "description": "Loads a PDF, iterates through each page's TextFragment paragraphs, splits the fragment text into logical lines, and determines whether each line ends with a forced line‑break for custom layout processing.", + "title": "Identify Forced Line Breaks In Textfragment", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "inline-text-image-paragraph.cs", + "title": "Create Inline Text and Image in PDF Paragraph", + "description": "Shows how to combine a TextFragment and an Image fragment inline within a single paragraph of a PDF document using Aspose.Pdf.", + "tags": [ + "inline", + "text", + "image", + "pdf", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Image", + "Aspose.Pdf.FontRepository", + "Aspose.Pdf.Color" + ], + "difficulty": "beginner" + }, + { + "filename": "insert-hyperlink-into-pdf-text-segment.cs", + "title": "Insert Hyperlink into PDF Text Segment", + "description": "Shows how to create a clickable hyperlink by assigning a WebHyperlink to a TextSegment and adding it to a TextFragment in a PDF document.", "tags": [ + "hyperlink", + "textsegment", "pdf", - "textfragment", - "line-break", "aspose", "csharp" ], @@ -54984,35 +66688,57 @@ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Page.Paragraphs" + "Aspose.Pdf.Text.TextSegment", + "Aspose.Pdf.Text.WebHyperlink", + "Aspose.Pdf.Text.TextBuilder", + "Aspose.Pdf.Text.FontRepository" ], - "difficulty": "intermediate" + "difficulty": "beginner" + }, + { + "filename": "insert-identical-text-on-all-pdf-pages.cs", + "title": "Insert Identical Text on All PDF Pages", + "description": "Shows how to add the same plain text to every page of a PDF by creating a TextFragment, setting its appearance, and adding it to each page's Paragraphs collection.", + "tags": [ + "pdf", + "text", + "aspose-pdf", + "paragraphs", + "iteration" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.Position", + "Aspose.Pdf.FontRepository.FindFont" + ], + "difficulty": "beginner" }, { "filename": "insert-rotated-mixed-style-text-paragraph.cs", "title": "Insert Rotated Mixed-Style Text Paragraph on Third PDF Page", - "description": "Loads an existing PDF, creates a TextParagraph with bold and italic segments, rotates it 45°, and inserts it onto the third page.", + "description": "Loads an existing PDF, creates a TextParagraph with bold and italic font styles, rotates it 45 degrees, and inserts it onto the third page of the document.", "tags": [ "text", "rotation", "font-style", - "paragraph", + "pdf", "aspdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextParagraph", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextSegment", + "Aspose.Pdf.Text.TextState", "Aspose.Pdf.Text.TextBuilder", - "Aspose.Pdf.FontRepository.FindFont" + "Aspose.Pdf.FontRepository.FindFont", + "Aspose.Pdf.Color" ], "difficulty": "intermediate" }, { - "filename": "insert-rotated-text-on-second-page.cs", + "filename": "insert-rotated-text-second-page.cs", "title": "Insert Rotated Text on Second PDF Page", "description": "Shows how to use Aspose.Pdf's TextBuilder to add a rotated TextFragment to the second page of an existing PDF document.", "tags": [ @@ -55027,41 +66753,28 @@ "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Text.TextBuilder", - "Aspose.Pdf.Text.FontRepository.FindFont" + "Aspose.Pdf.Text.FontRepository" ], "difficulty": "intermediate" }, { "filename": "insert-same-text-on-all-pdf-pages.cs", - "title": "Insert Same Text on All PDF Pages", - "description": "Demonstrates loading a PDF, iterating through each page, and adding an identical plain‑text fragment at a specified position on every page before saving the document.", - "tags": [ - "pdf", - "text insertion", - "pages", - "Aspose.Pdf", - "watermark" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.Position", - "Aspose.Pdf.Page.Paragraphs.Add", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner" + "title": "Insert Same Text On All Pdf Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "justify-text-in-pdf.cs", - "title": "Justify Text in PDF Using Aspose.Pdf", - "description": "Shows how to justify a text fragment across the full page width by setting the TextState.HorizontalAlignment property to Justify and adding the fragment to a PDF page.", + "title": "Justify Text in PDF with TextFragment", + "description": "Demonstrates how to create a PDF, add a TextFragment, and set its TextState.HorizontalAlignment to Justify so the text spans the full page width.", "tags": [ "justify", - "text", - "pdf", - "aspose", - "csharp" + "textfragment", + "aspose-pdf", + "horizontal-alignment", + "pdf" ], "apis_used": [ "Aspose.Pdf.Document", @@ -55069,94 +66782,95 @@ "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Text.TextState", "Aspose.Pdf.Text.HorizontalAlignment", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Color" ], "difficulty": "beginner" }, { "filename": "launch-action-open-external-file.cs", - "title": "Create Launch Action Link to Open External File", - "description": "Demonstrates how to add a clickable text element to a PDF that launches an external file using Aspose.Pdf's LaunchAction.", - "tags": [ - "launch-action", - "link-annotation", - "pdf", - "external-file", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.LinkAnnotation", - "Aspose.Pdf.Annotations.LaunchAction", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Border", - "Aspose.Pdf.Color" - ], - "difficulty": "beginner" + "title": "Launch Action Open External File", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "left-align-text-in-pdf.cs", - "title": "Left Align Text in PDF", - "description": "Shows how to add a text fragment to a PDF document and align it to the left margin using Aspose.Pdf's TextState.HorizontalAlignment property.", + "title": "Left Align Text In Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "left-align-text-pdf.cs", + "title": "Left Align Text in PDF using Aspose.Pdf", + "description": "Shows how to create a PDF, add a TextFragment, and set its HorizontalAlignment to Left for left‑aligned text.", "tags": [ "text-alignment", "pdf", "aspose-pdf", - "left-align", - "text-fragment" + "textfragment", + "horizontal-alignment" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.FontRepository.FindFont", "Aspose.Pdf.Text.HorizontalAlignment", "Aspose.Pdf.Position", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Page.Paragraphs.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "load-custom-ttf-font-from-memory.cs", - "title": "Load Custom TrueType Font from Memory Stream and Apply to PDF Text", - "description": "Demonstrates how to load a TrueType font from a memory stream, embed it in a PDF, and use it with a TextFragment's TextState for rendering custom text.", + "filename": "load-custom-ttf-font-and-apply-to-text.cs", + "title": "Load Custom TrueType Font and Apply to PDF Text", + "description": "Shows how to retrieve a TrueType font from the Aspose.Pdf font repository, embed it, and assign it to a TextFragment's TextState for rendering in a PDF document.", "tags": [ - "custom-font", - "memory-stream", - "textfragment", + "font", + "text", "pdf", - "aspose-pdf" + "custom-font", + "embedding" ], "apis_used": [ - "Aspose.Pdf.FontRepository", - "Aspose.Pdf.Font", "Aspose.Pdf.Document", + "Aspose.Pdf.FontRepository.FindFont", + "Aspose.Pdf.Font", "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Color" + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, + { + "filename": "load-custom-ttf-font-from-memory.cs", + "title": "Load Custom Ttf Font From Memory", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "render-subscript-text.cs", - "title": "Render Subscript Text in PDF using Aspose.Pdf", - "description": "Demonstrates creating a PDF, adding normal and subscript characters by enabling TextState.Subscript (negative rise) on a TextFragment, and saving the document.", + "title": "Render Subscript Text in PDF", + "description": "Shows how to create subscript characters in a PDF by setting the Subscript flag (negative rise) on a TextFragment before adding it to a page.", "tags": [ "subscript", - "textfragment", - "aspose-pdf", + "text", "pdf", - "text-formatting" + "aspose-pdf", + "textfragment" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.FontRepository.FindFont", "Aspose.Pdf.Text.TextState.Subscript", - "Aspose.Pdf.Text.Position", "Aspose.Pdf.Page.Paragraphs.Add", "Aspose.Pdf.Document.Save" ], @@ -55164,39 +66878,60 @@ }, { "filename": "render-superscript-text.cs", - "title": "Render Superscript Text Using Text Rise", - "description": "Demonstrates creating a PDF and adding superscript characters by setting a positive TextRise value with the SetTextRise operator, then resetting it to baseline.", + "title": "Render Superscript Text in PDF", + "description": "Loads an existing PDF, adds a normal text fragment and a superscript fragment by adjusting its position and font size, then saves the modified document.", "tags": [ "superscript", - "text-rise", + "textfragment", "pdf", "aspose-pdf", - "text-formatting" + "positioning" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Operators.SetTextRise", - "Aspose.Pdf.Operators.ShowText" + "Aspose.Pdf.Text.Position", + "Aspose.Pdf.Text.TextState" ], "difficulty": "beginner" }, { - "filename": "replace-text-in-pdf.cs", - "title": "Replace Text in PDF Using Aspose.Pdf", - "description": "Shows how to locate a specific phrase in a PDF document and replace it with another string using Aspose.Pdf's text search and replacement APIs.", + "filename": "render-text-with-ligatures.cs", + "title": "Render Text with Ligatures in PDF", + "description": "Creates a PDF document, adds a TextFragment containing Unicode ligature characters, and demonstrates that ligatures are rendered automatically.", + "tags": [ + "ligatures", + "text", + "pdf", + "aspose-pdf", + "textfragment" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.FontRepository", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Position" + ], + "difficulty": "beginner" + }, + { + "filename": "replace-confidential-with-public-in-pdf.cs", + "title": "Replace Confidential with Public in PDF", + "description": "Demonstrates how to locate all occurrences of a specific phrase in a PDF and replace it with another phrase using Aspose.Pdf's text absorption and replacement features.", "tags": [ "text-replacement", "pdf", "aspose-pdf", - "csharp", - "search" + "search", + "replace" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextSearchOptions", "Aspose.Pdf.Text.TextFragmentAbsorber", + "Aspose.Pdf.Text.TextSearchOptions", "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Document.Save", "Aspose.Pdf.PageCollection.Accept" @@ -55204,33 +66939,54 @@ "difficulty": "beginner" }, { - "filename": "replace-text-on-specific-pdf-pages.cs", - "title": "Replace Text on Specific PDF Pages", - "description": "Demonstrates how to replace a given phrase only within a defined page range of a PDF by iterating pages and using Aspose.Pdf's text absorber.", + "filename": "replace-phrase-preserve-formatting.cs", + "title": "Replace Phrase While Preserving Formatting in PDF", + "description": "Demonstrates how to search for a specific text phrase in a PDF, replace it with new text, and retain the original font, size, color, and other formatting using Aspose.Pdf.", "tags": [ - "text-replacement", "pdf", - "page-range", - "aspose-pdf", + "text-replacement", + "formatting", + "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page.Accept", "Aspose.Pdf.Text.TextFragmentAbsorber", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Page.Accept", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Text.TextState" ], "difficulty": "intermediate" }, { - "filename": "replace-text-pdf-preserve-formatting.cs", - "title": "Replace Text in PDF While Preserving Formatting", - "description": "Demonstrates how to search for a specific phrase in a PDF, replace it with a new phrase, and keep the original font, size, color, and other formatting using Aspose.Pdf.", + "filename": "replace-text-in-pdf-using-fuzzy-regex.cs", + "title": "Replace Text in PDF Using Fuzzy Regex Search", + "description": "Demonstrates how to locate approximate text matches in a PDF using a regular‑expression (fuzzy) search with Aspose.Pdf and replace the found fragments with new content.", "tags": [ "pdf", "text-replacement", - "formatting", + "regex", + "fuzzy-search", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Text.TextFragmentAbsorber", + "Aspose.Pdf.Text.TextSearchOptions", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Document.Pages.Accept", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "intermediate" + }, + { + "filename": "replace-text-on-specific-pdf-pages.cs", + "title": "Replace Text on Specific PDF Pages", + "description": "Demonstrates how to replace a given phrase only within a defined page range of a PDF by iterating pages and using Aspose.Pdf's TextFragmentAbsorber.", + "tags": [ + "text-replacement", + "pdf", + "page-range", "aspose", "csharp" ], @@ -55239,81 +66995,125 @@ "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragmentAbsorber", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Text.TextState.ApplyChangesFrom" + "Aspose.Pdf.Page.Accept", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "replace-text-rotate-pdf-pages-save-memory.cs", - "title": "Replace Text and Rotate PDF Pages, Save to MemoryStream", - "description": "The example loads a PDF, replaces all occurrences of a target string using TextFragmentAbsorber, rotates each page 90° clockwise, and saves the modified document into a MemoryStream (optionally writing it to a file).", + "filename": "replace-text-rotate-page-save-memory-stream.cs", + "title": "Replace Text and Rotate PDF Page, Save to MemoryStream", + "description": "The example creates a PDF in memory, replaces a specific text string, rotates the first page, and saves the modified document to a MemoryStream.", "tags": [ "text-replacement", "page-rotation", "memory-stream", - "aspose-pdf", - "csharp" + "pdf-modification", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextFragmentAbsorber", - "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.TextFragmentAbsorber", "Aspose.Pdf.Rotation", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "retrieve-line-break-info-from-text-fragments.cs", - "title": "Retrieve Line Break Information from Text Fragments", - "description": "Loads a PDF, extracts text fragments from the first page, and uses reflection to call GetLineBreakInfo on each fragment, logging the results to the console.", + "filename": "replace-text-rotate-pdf-pages-save-memory.cs", + "title": "Replace Text Rotate Pdf Pages Save Memory", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "replace-text-with-clickable-hyperlink.cs", + "title": "Replace Text with Clickable Hyperlink in PDF", + "description": "Shows how to locate a phrase in a PDF, replace it with new text, and attach a clickable hyperlink annotation using Aspose.Pdf.", "tags": [ "pdf", - "text", - "linebreak", - "aspose", - "reflection" + "text-replacement", + "hyperlink", + "annotation", + "search" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Text.TextFragmentAbsorber", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextFragment.GetLineBreakInfo", - "Aspose.Pdf.Page" + "Aspose.Pdf.Annotations.LinkAnnotation", + "Aspose.Pdf.Annotations.GoToURIAction" ], "difficulty": "intermediate" }, { - "filename": "right-align-text-pdf.cs", - "title": "Right Align Text in PDF using Aspose.Pdf", - "description": "Demonstrates how to right‑align a text fragment on a PDF page by setting the TextState.HorizontalAlignment property and saving the modified document.", + "filename": "retrieve-line-break-info-from-text-fragments.cs", + "title": "Retrieve Line Break Info From Text Fragments", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "right-align-text-in-pdf.cs", + "title": "Right Align Text in PDF", + "description": "Shows how to right‑align a text fragment on a PDF page by setting TextState.HorizontalAlignment to Right using Aspose.Pdf.", "tags": [ "right-alignment", "text-fragment", "pdf", - "csharp", - "aspose-pdf" + "aspose-pdf", + "horizontal-alignment" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Text.HorizontalAlignment", + "Aspose.Pdf.Position" + ], + "difficulty": "beginner" + }, + { + "filename": "right-align-text-pdf.cs", + "title": "Right Align Text Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "rotate-added-text-in-pdf.cs", + "title": "Rotate Added Text in PDF", + "description": "Demonstrates how to rotate a text fragment by setting the TextState.Rotation property before placing it on a PDF page.", + "tags": [ + "text-rotation", + "textfragment", + "pdf", + "aspose-pdf", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Text.Position", - "Aspose.Pdf.Page.Paragraphs.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Color" ], "difficulty": "beginner" }, { "filename": "rotate-draft-text-fragments.cs", "title": "Rotate 'Draft' Text Fragments in PDF", - "description": "Shows how to locate all occurrences of the word \"Draft\" in a PDF and rotate those text fragments by 15 degrees using Aspose.Pdf.", + "description": "Shows how to locate all text fragments containing the word \"Draft\" with TextFragmentAbsorber and apply a 15‑degree rotation to each fragment in a PDF document.", "tags": [ "text-rotation", - "search-text", + "text-search", "pdf-modification", "aspose-pdf", "csharp" @@ -55322,7 +67122,7 @@ "Aspose.Pdf.Document", "Aspose.Pdf.Text.TextFragmentAbsorber", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextState.Rotation", + "Aspose.Pdf.Text.TextState", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" @@ -55330,19 +67130,19 @@ { "filename": "rotate-header-text-pdf.cs", "title": "Rotate Header Text in PDFs by 90 Degrees", - "description": "Iterates through PDF files in a folder, detects header text fragments using a font‑size heuristic, rotates those fragments 90° and saves the updated PDFs to an output directory.", + "description": "Processes all PDF files in a folder, detects header-like text fragments based on font size, and rotates those fragments 90 degrees using Aspose.Pdf.", "tags": [ "pdf", "text-rotation", - "header", - "batch", + "header-detection", + "batch-processing", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Text.TextFragmentAbsorber", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextState.Rotation", + "Aspose.Pdf.Text.TextState", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" @@ -55350,20 +67150,20 @@ { "filename": "rotate-pdf-title-text-45-degrees.cs", "title": "Rotate PDF Title Text by 45 Degrees", - "description": "Shows how to load PDF files with Aspose.Pdf, absorb all text fragments, rotate each fragment 45 degrees, and save the updated documents.", + "description": "Shows how to load PDF files with Aspose.Pdf, extract all text fragments on each page, rotate them 45 degrees, and save the updated documents.", "tags": [ "pdf", "text-rotation", "aspose.pdf", "csharp", - "batch-processing" + "document-manipulation" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragmentAbsorber", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.PageCollection.Accept", + "Aspose.Pdf.Text.TextState.Rotation", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" @@ -55371,7 +67171,7 @@ { "filename": "rotate-specific-text-fragment.cs", "title": "Rotate Specific Text Fragment in PDF", - "description": "Loads a PDF, searches for a given text string on a page, rotates the first matching text fragment by 45 degrees, and saves the modified document.", + "description": "Shows how to load a PDF, locate a text fragment using TextFragmentAbsorber, rotate that fragment by 45 degrees, and save the modified document.", "tags": [ "pdf", "text-rotation", @@ -55383,38 +67183,15 @@ "Aspose.Pdf.Document", "Aspose.Pdf.Text.TextFragmentAbsorber", "Aspose.Pdf.Page.Accept", - "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Text.TextState.Rotation", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "rotate-text-field-appearance.cs", - "title": "Rotate Text Field Appearance in PDF", - "description": "Shows how to rotate the appearance of a text box form field by adjusting its rectangle and updating the field's appearance stream, then saving the PDF.", - "tags": [ - "form-field", - "rotation", - "appearance", - "Aspose.Pdf", - "C#" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.Form.Add", - "Aspose.Pdf.Forms.Form.AddFieldAppearance", - "Aspose.Pdf.Rectangle.Rotate", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "intermediate" - }, - { - "filename": "rotate-text-in-pdf-table-cell.cs", - "title": "Rotate Text in a PDF Table Cell", - "description": "Shows how to locate a table cell in a PDF, rotate its text fragment by 60 degrees using TextFragment.Rotation, and save the modified document.", + "filename": "rotate-table-cell-text.cs", + "title": "Rotate Table Cell Text by 60 Degrees", + "description": "Shows how to locate a table cell in a PDF and rotate its text fragments by 60 degrees using Aspose.Pdf.", "tags": [ "table", "text-rotation", @@ -55425,95 +67202,106 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.TableAbsorber", + "Aspose.Pdf.TableAbsorber.Visit", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Text.TextState.Rotation", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "rotate-text-in-pdf.cs", - "title": "Rotate Text in PDF with Aspose.Pdf", - "description": "Demonstrates how to add a text fragment to a PDF page and rotate it by setting the TextState.Rotation property before saving the document.", + "filename": "rotate-text-box-form-field.cs", + "title": "Rotate Text Box Form Field", + "description": "Shows how to rotate a text box form field by adjusting its rectangle and regenerating its appearance using Aspose.Pdf.", "tags": [ - "text-rotation", "pdf", - "aspose-pdf", - "csharp", - "text-fragment" + "form-field", + "rotation", + "appearance", + "textbox" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.Position", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Page", - "Aspose.Pdf.Page.Paragraphs.Add", + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Drawing.Rectangle.Rotate", + "Aspose.Pdf.Forms.Form.AddFieldAppearance", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" + }, + { + "filename": "rotate-text-field-appearance.cs", + "title": "Rotate Text Field Appearance", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "rotate-text-in-pdf-table-cell.cs", + "title": "Rotate Text In Pdf Table Cell", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "rotate-text-in-pdf.cs", + "title": "Rotate Text In Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "save-pdf-to-byte-array.cs", - "title": "Save PDF to Byte Array", - "description": "Loads a PDF document with Aspose.Pdf, optionally applies modifications, and returns the saved PDF as a byte array using a memory stream.", - "tags": [ - "pdf", - "byte-array", - "memory-stream", - "aspose-pdf", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner" + "title": "Save Pdf To Byte Array", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "search-pdf-text-log.cs", - "title": "Search PDF Text and Record Search Log", - "description": "Demonstrates loading a PDF, searching for a phrase using TextFragmentAbsorber with search options, optionally modifying found fragments, saving the document, and writing a log file with the search results and any extraction errors.", + "title": "Search Pdf Text Log", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "search-replace-text-with-hyperlink.cs", + "title": "Search Replace Text With Hyperlink", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "search-text-pdf-with-logging.cs", + "title": "Search Text in PDF with Logging", + "description": "Demonstrates how to enable logging while searching for a phrase in a PDF using Aspose.Pdf, and records the number of matches and any extraction errors to a log file.", "tags": [ "pdf", "text-search", "logging", - "aspose-pdf", + "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Text.TextSearchOptions", "Aspose.Pdf.Text.TextFragmentAbsorber", - "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.TextFragmentAbsorber.Visit", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, - { - "filename": "search-replace-text-with-hyperlink.cs", - "title": "Search and Replace Text with Clickable Hyperlink in PDF", - "description": "Demonstrates how to locate a specific phrase in a PDF, replace it with new text, and attach a clickable URL using a link annotation.", - "tags": [ - "pdf", - "search-replace", - "hyperlink", - "annotation", - "textfragment" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextFragmentAbsorber", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Annotations.LinkAnnotation", - "Aspose.Pdf.Annotations.GoToURIAction" - ], - "difficulty": "intermediate" - }, { "filename": "set-character-spacing-pdf.cs", - "title": "Set Character Spacing for Text in PDF", - "description": "Demonstrates how to adjust inter‑character gaps by setting the CharacterSpacing property on a TextState before adding a TextFragment to a PDF page.", + "title": "Set Character Spacing for PDF Text", + "description": "Demonstrates how to adjust the CharacterSpacing property of a TextState to control inter‑character gaps before adding a TextFragment to a PDF page using Aspose.Pdf.", "tags": [ "character-spacing", "text-state", @@ -55525,45 +67313,43 @@ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextState.CharacterSpacing", "Aspose.Pdf.Text.Position", - "Aspose.Pdf.Page.Paragraphs.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.FontRepository", + "Aspose.Pdf.Text.TextState" ], "difficulty": "beginner" }, { "filename": "set-custom-line-height-pdf-text.cs", "title": "Set Custom Line Height for PDF Text", - "description": "Demonstrates how to assign a custom line height (line spacing) to a TextFragment by configuring its TextState before adding it to a PDF page.", + "description": "Loads an existing PDF, adds a multi‑line TextFragment, sets a custom line height via the TextState.LineSpacing property, and saves the document.", "tags": [ "line-height", - "text-formatting", + "text-fragment", "pdf", "aspose-pdf", - "csharp" + "text-formatting" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.FontRepository.FindFont", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Page.Paragraphs.Add" + "Aspose.Pdf.Text.TextState.LineSpacing", + "Aspose.Pdf.Page.Paragraphs.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { "filename": "set-custom-line-spacing-pdf.cs", - "title": "Set Custom Line Spacing for Text in PDF", - "description": "Demonstrates how to adjust line spacing (leading) for added text by configuring TextState.LineSpacing and appending lines to a TextParagraph.", + "title": "Set Custom Line Spacing for Added Text in PDF", + "description": "Shows how to add text to a PDF with a specific leading (line spacing) by using Aspose.Pdf's TextParagraph, TextState, and TextBuilder.", "tags": [ "line-spacing", - "text-state", - "paragraph", - "Aspose.Pdf", - "PDF" + "text-paragraph", + "aspose-pdf", + "pdf-modification", + "textstate" ], "apis_used": [ "Aspose.Pdf.Document", @@ -55571,42 +67357,20 @@ "Aspose.Pdf.Text.TextParagraph", "Aspose.Pdf.Text.TextState", "Aspose.Pdf.Text.TextBuilder", - "Aspose.Pdf.Text.TextParagraph.AppendLine", - "Aspose.Pdf.FontRepository.FindFont" - ], - "difficulty": "intermediate" - }, - { - "filename": "show-floating-box-on-button-hover.cs", - "title": "Show Floating Box on Button Hover using HideAction", - "description": "Demonstrates how to display a floating annotation when the mouse enters a button and hide it on exit by assigning HideAction to the button's OnEnter and OnExit events.", - "tags": [ - "button", - "hover", - "annotation", - "hideaction", - "pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Forms.ButtonField", - "Aspose.Pdf.Annotations.SquareAnnotation", - "Aspose.Pdf.Annotations.HideAction", - "Aspose.Pdf.Annotations.AnnotationFlags", - "Aspose.Pdf.Annotations.Border" + "Aspose.Pdf.Text.TextFormattingOptions", + "Aspose.Pdf.FontRepository" ], "difficulty": "intermediate" }, { - "filename": "style-textfragment-font-size-color.cs", - "title": "Style TextFragment with Font Size and Color", - "description": "Demonstrates how to define font size, color, and font for a TextFragment by using its TextState property and add it to a PDF page.", + "filename": "set-font-size-color-textfragment.cs", + "title": "Set Font Size and Color for a TextFragment", + "description": "Demonstrates how to define font size, color, and font family using a TextState and apply it to a TextFragment for styled PDF output.", "tags": [ "textfragment", - "textstate", "font", "color", + "styling", "pdf" ], "apis_used": [ @@ -55614,88 +67378,151 @@ "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Text.FontRepository", - "Aspose.Pdf.Text.Color", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Text.FontRepository.FindFont", + "Aspose.Pdf.Color" ], "difficulty": "beginner" + }, + { + "filename": "show-floating-box-on-button-hover.cs", + "title": "Show Floating Box On Button Hover", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "style-textfragment-font-size-color.cs", + "title": "Style Textfragment Font Size Color", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" } ] }, { "name": "working-with-xml", - "file_count": 73, + "file_count": 121, "files": [ "add-automatic-page-numbers-to-pdf.cs", "add-background-images-to-pdf-pages.cs", "add-custom-page-borders-to-pdf.cs", "add-header-footer-to-pdf-from-xml.cs", + "add-header-footer-to-pdf-using-xml-templates.cs", + "add-javascript-actions-to-pdf-from-xml.cs", + "add-page-transitions-to-pdf-from-xml.cs", + "apply-css-from-xml-to-pdf.cs", "apply-custom-background-color-to-pdf-pages.cs", "apply-custom-colour-scheme-xml-xsl.cs", "apply-custom-font-to-xml-elements.cs", "apply-section-based-page-margins.cs", + "apply-section-specific-page-margins.cs", + "apply-xml-color-to-pdf-page-background.cs", "batch-convert-xml-to-pdf.cs", + "batch-xml-to-pdf-conversion-profiling.cs", "compress-pdf-flate-after-xml-conversion.cs", - "compress-pdf-objects-from-xml.cs", - "compress-pdf-streams-using-aspose-pdf-optimization.cs", + "compress-pdf-streams-using-aspose-pdf.cs", + "compress-pdf-text-objects-from-xml.cs", + "compress-pdf-text-streams-flate-xml.cs", + "concurrent-xml-to-pdf-conversion.cs", "convert-pdf-pages-to-high-resolution-png-thumbnails.cs", + "convert-pdf-pages-to-png-thumbnails.cs", + "convert-styled-html-to-pdf-with-custom-colors.cs", "convert-xml-multiple-namespaces-to-pdf.cs", "convert-xml-to-html-preview.cs", "convert-xml-to-pdf-version-1-7.cs", + "convert-xml-to-pdf-with-logging.cs", "convert-xml-to-pdf-with-xslt.cs", "convert-xml-to-pdf.cs", + "convert-xml-to-pdfa-2b-and-validate.cs", + "create-barcodes-pdf-from-xml.cs", "create-hierarchical-pdf-outline-from-xml.cs", "create-pdf-bookmarks-from-xml.cs", "create-pdf-form-fields-from-xml.cs", + "create-pdf-from-xsl-fo-memory-stream.cs", "create-pdf-outline-from-xml.cs", + "create-pdf-outlines-from-xml-section-titles.cs", "create-pdf-toc-from-xml-headings.cs", + "create-pdf-toc-from-xml.cs", + "create-pdf-xfa-form-from-xml.cs", + "create-png-thumbnail-from-xml.cs", "decode-base64-images-xml-to-pdf.cs", "downsample-images-from-xml.cs", "embed-3d-models-from-xml.cs", "embed-audio-annotations-from-xml.cs", + "embed-custom-truetype-font-into-pdf.cs", "embed-custom-ttf-font-into-pdf-from-xml.cs", "embed-javascript-actions-in-pdf-from-xml.cs", "embed-video-annotations-from-xml.cs", + "embed-videos-from-xml-into-pdf.cs", "encrypt-pdf-from-xml-aes256.cs", "encrypt-pdf-from-xml-drm.cs", "encrypt-pdf-from-xml.cs", + "encrypt-pdf-from-xml__v2.cs", "encrypt-xml-derived-pdf-with-custom-permissions.cs", + "export-pdf-pages-high-resolution-png.cs", "export-pdf-pages-to-bmp-images.cs", "export-pdf-pages-to-png-with-custom-resolution.cs", + "extract-base64-images-from-xml-to-pdf.cs", "extract-pdf-xml-representation.cs", "extract-plain-text-from-pdf.cs", "generate-barcode-from-xml-to-pdf.cs", + "generate-html-preview-from-xml.cs", "generate-pdf-from-xml-custom-page-size.cs", + "generate-pdf-from-xml-fullscreen.cs", + "generate-pdf-from-xml-pdf-1-7.cs", "generate-pdf-from-xml-using-memorystream.cs", + "generate-pdf-from-xml-using-xslt-config.cs", "generate-pdf-from-xml-with-xsl.cs", "generate-pdf-from-xsl-fo-and-xml.cs", "generate-pdf-from-xsl-fo-with-optional-xslt.cs", + "generate-pdf-from-xsl-fo.cs", "generate-pdf-fullscreen-viewer-mode.cs", "generate-pdf-table-from-xml.cs", "generate-pdf-thumbnail-from-xml.cs", "generate-pdf-with-retry-logic.cs", + "handle-malformed-xml-pdf-conversion.cs", "handle-xslfo-parsing-errors-during-pdf-generation.cs", + "handle-xslfo-parsing-errors-pdf-generation.cs", + "insert-automatic-page-numbers-pdf-xslt.cs", "insert-conditional-page-breaks-based-on-xml-length.cs", + "insert-conditional-page-breaks-based-on-xml-text-length.cs", "insert-dynamic-headers-from-xml.cs", + "insert-dynamic-page-headers-from-xml.cs", + "insert-footnotes-from-xml.cs", "insert-footnotes-into-pdf-from-xml.cs", + "merge-multiple-xml-pdfs.cs", "merge-multiple-xml-to-pdf-documents.cs", "paginate-xml-to-multiple-pdfs.cs", + "pdf-generation-with-retry-logic.cs", "populate-pdf-form-from-xml.cs", "preserve-cdata-to-pdf.cs", "profile-batch-xml-to-pdf-conversion.cs", + "register-aspose-pdf-generation-di.cs", "register-pdfoutputgenerator-di.cs", "render-cdata-html-to-pdf.cs", "render-embedded-svg-from-xml-to-pdf.cs", + "render-html-cdata-to-pdf.cs", + "render-svg-from-xml-to-pdf.cs", "repeat-table-header-on-each-pdf-page.cs", + "repeat-table-header-rows.cs", "set-custom-page-margins-from-xml.cs", + "set-pdf-page-duration-from-xml.cs", "set-pdf-page-durations-from-xml.cs", "set-pdf-page-orientation-from-xml.cs", "set-pdf-page-size-from-xml.cs", + "set-pdf-page-size-via-xml-processing-instruction.cs", + "set-pdf-permissions-and-encrypt-xml-pdf.cs", "set-pdf-viewer-preferences-from-xml.cs", + "set-pdf-viewer-preferences-xml-to-pdf.cs", "sign-pdf-from-xml-with-certificate.cs", "split-pdf-into-chapters.cs", + "split-xml-pdf-into-multiple-files.cs", "thread-safe-xml-to-pdf-conversion.cs", + "transform-xml-xsl-to-pdf-multiple-namespaces.cs", "validate-pdfa-2b-compliance-xml-to-pdf.cs", + "validate-xml-xsd-before-pdf-generation.cs", "validate-xml-xsd-generate-pdf.cs", "xml-to-pdf-conversion-with-xslt-tests.cs", "xml-to-pdf-validation-with-logging.cs" @@ -55707,91 +67534,76 @@ "Aspose.Pdf.Devices", "Aspose.Pdf.Forms", "Aspose.Pdf.Optimization", - "Aspose.Pdf.Comparison", "Aspose.Pdf.Drawing", + "Aspose.Pdf.Comparison", + "Aspose.Pdf.Facades", "Aspose.Pdf.LogicalStructure", - "Aspose.Pdf.Security", "Aspose.Pdf.Tagged" ], "key_apis": [ "XmlLoadOptions", "TextFragment", "OutlineItemCollection", - "XslFoLoadOptions", - "MarginInfo", + "HtmlLoadOptions", + "JavascriptAction", "PngDevice", - "TextFragmentAbsorber", + "TextAbsorber", "XYZExplicitDestination", + "XslFoLoadOptions", "BmpDevice", "BorderInfo", - "FileInfo", - "GoToAction", "HtmlFragment", - "HtmlLoadOptions", - "HtmlSaveOptions", - "JavascriptAction", + "MarginInfo", "PDF3DAnnotation", "PageInfo", "RichMediaAnnotation", "ServiceCollection", "SoundAnnotation", "StringBuilder", - "SvgLoadOptions", - "TextAbsorber", + "TextFragmentAbsorber", + "TextStamp", "ThumbnailDevice", "XmlSaveOptions" ], "examples": [ { "filename": "add-automatic-page-numbers-to-pdf.cs", - "title": "Add Automatic Page Numbers to PDF via XSL‑FO", - "description": "Demonstrates loading an XSL‑FO XML file into an Aspose.Pdf Document, applying automatic pagination, and saving the result as a PDF with page numbers.", - "tags": [ - "pdf", - "pagination", - "xsl-fo", - "aspose.pdf", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.PageCollection", - "Aspose.Pdf.PageCollection.UpdatePagination", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner" + "title": "Add Automatic Page Numbers To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "add-background-images-to-pdf-pages.cs", "title": "Add Background Images to PDF Pages from XML", - "description": "Demonstrates loading an XML file that maps page numbers to image paths and applying those images as background images to the corresponding pages of a PDF using Aspose.Pdf.", + "description": "Demonstrates loading an XML file that maps page numbers to image files and applying those images as background artifacts to the corresponding pages of a PDF using Aspose.Pdf.", "tags": [ "pdf", - "background-image", + "background", "xml", - "aspose", - "csharp" + "branding", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Image", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Page.BackgroundImage" + "Aspose.Pdf.Facades.BackgroundArtifact", + "Aspose.Pdf.Page.Artifacts", + "Aspose.Pdf.Facades.BackgroundArtifact.SetImage" ], "difficulty": "intermediate" }, { "filename": "add-custom-page-borders-to-pdf.cs", - "title": "Add Custom Page Borders to PDF Using Graph", - "description": "Demonstrates how to draw a rectangular border around each page of a PDF by creating a Graph container and adding a Rectangle shape with custom GraphInfo settings.", + "title": "Add Custom Page Borders to PDF Using Graphs", + "description": "Shows how to draw a rectangular border on each page of a PDF by creating a Graph container, adding a Rectangle shape with GraphInfo, and saving the modified document.", "tags": [ "pdf", "border", "graph", "drawing", - "aspose-pdf" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", @@ -55799,140 +67611,257 @@ "Aspose.Pdf.Drawing.Graph", "Aspose.Pdf.Drawing.Rectangle", "Aspose.Pdf.Drawing.GraphInfo", + "Aspose.Pdf.Page.Paragraphs.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "add-header-footer-to-pdf-from-xml.cs", - "title": "Add Header and Footer to PDF Pages from XML Templates", - "description": "Demonstrates loading simple XML‑based header/footer templates and applying them to every page of a PDF using Aspose.Pdf, including dynamic page‑number replacement.", + "title": "Add Header Footer To Pdf From Xml", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "add-header-footer-to-pdf-using-xml-templates.cs", + "title": "Add Header and Footer to PDF Using XML Templates", + "description": "Demonstrates loading header and footer text from XML files, inserting page numbers, and applying them to each page of a PDF using Aspose.Pdf.", "tags": [ + "pdf", "header", "footer", - "pdf", - "aspose", - "xml" + "xml", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", "Aspose.Pdf.Page", "Aspose.Pdf.HeaderFooter", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.FontRepository.FindFont", - "Aspose.Pdf.Color" + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "apply-custom-background-color-to-pdf-pages.cs", - "title": "Apply Custom Background Color to PDF Pages", - "description": "Shows how to load a PDF, parse an XML/HTML color string, and set each page's background color using Aspose.Pdf.", + "filename": "add-javascript-actions-to-pdf-from-xml.cs", + "title": "Add JavaScript Actions to PDF from XML", + "description": "Demonstrates loading an XML file into a PDF, adding a document‑level JavaScript alert, creating a text box form field, and attaching a JavaScript validation action to the field.", "tags": [ + "javascript", "pdf", - "background", - "color", - "aspose-pdf", - "xml-color" + "form", + "validation", + "xml" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.XmlLoadOptions", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.JavascriptAction", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "intermediate" + }, + { + "filename": "add-page-transitions-to-pdf-from-xml.cs", + "title": "Add Page Transition Effects to PDF Generated from XML", + "description": "Loads an XML file into a PDF document using Aspose.Pdf, attaches JavaScript actions to each page to set a fade transition and display duration, and saves the PDF with the applied transitions.", + "tags": [ + "pdf", + "xml", + "page-transition", + "javascript", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.XmlLoadOptions", "Aspose.Pdf.Page", - "Aspose.Pdf.Color.Parse", - "Aspose.Pdf.Page.Background", + "Aspose.Pdf.Annotations.JavascriptAction", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "apply-custom-colour-scheme-xml-xsl.cs", - "title": "Apply Custom Color Scheme to PDF via XML and XSL", - "description": "Demonstrates loading an XML file with an XSL stylesheet to transform PDF element definitions and generate a PDF with a custom colour scheme using Aspose.Pdf.", + "filename": "apply-css-from-xml-to-pdf.cs", + "title": "Apply CSS from XML/XSL to Generate Styled PDF", + "description": "Demonstrates how to load an XML document with an XSL stylesheet that references external CSS files and convert it to a PDF with the styles applied using Aspose.Pdf.", "tags": [ "xml", "xsl", - "color-scheme", + "css", + "pdf", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.XmlLoadOptions", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "intermediate" + }, + { + "filename": "apply-custom-background-color-to-pdf-pages.cs", + "title": "Apply Custom Background Color To Pdf Pages", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "apply-custom-colour-scheme-xml-xsl.cs", + "title": "Apply Custom Colour Scheme Xml Xsl", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "apply-custom-font-to-xml-elements.cs", + "title": "Apply Custom Font to Specific XML Elements in PDF", + "description": "Demonstrates loading an XML file into a PDF, extracting text fragments, and applying a custom TrueType font to fragments that match a specific marker, then saving the result.", + "tags": [ + "xml", + "custom-font", "pdf-generation", + "text-fragment", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.XmlLoadOptions", + "Aspose.Pdf.FontRepository.OpenFont", + "Aspose.Pdf.Text.TextFragmentAbsorber", + "Aspose.Pdf.Text.TextFragment" + ], + "difficulty": "intermediate" + }, + { + "filename": "apply-section-based-page-margins.cs", + "title": "Apply Section Based Page Margins", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "apply-section-specific-page-margins.cs", + "title": "Apply Section-Specific Page Margins Using XML", + "description": "Shows how to load margin definitions from an XML file and apply different margins to defined page ranges in a PDF document with Aspose.Pdf.", + "tags": [ + "pdf", + "margins", + "xml", + "section", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.MarginInfo", + "Aspose.Pdf.PageInfo.Margin", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Pages" + ], + "difficulty": "intermediate" + }, + { + "filename": "apply-xml-color-to-pdf-page-background.cs", + "title": "Set PDF Page Background Color from XML Value", + "description": "Loads a PDF, parses an XML color string (hex or rgb) into an Aspose.Pdf.Color, and applies that color as the background for each page before saving the modified document.", + "tags": [ + "pdf", + "background", + "color", + "xml", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.XmlLoadOptions", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document..ctor(string, XmlLoadOptions)" + "Aspose.Pdf.Color.Parse", + "Aspose.Pdf.Page", + "Aspose.Pdf.Page.Background" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "apply-custom-font-to-xml-elements.cs", - "title": "Apply Custom Font to Specific XML Elements in PDF", - "description": "Demonstrates loading an XML file into a PDF, extracting text fragments, and applying a custom TrueType font to fragments that represent specific XML elements before saving the document.", + "filename": "batch-convert-xml-to-pdf.cs", + "title": "Batch Convert XML Files to PDF", + "description": "Shows how to load all XML files in a folder and convert each one to a PDF document using Aspose.Pdf's XmlLoadOptions.", "tags": [ - "custom-font", "xml", "pdf", - "textfragment", + "batch", + "conversion", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.Text.TextFragmentAbsorber", - "Aspose.Pdf.Text.FontRepository.OpenFont", - "Aspose.Pdf.Text.TextFragment.TextState", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "apply-section-based-page-margins.cs", - "title": "Apply Section-Based Page Margins from XML", - "description": "Demonstrates how to read margin definitions from an XML file and apply different page margins to sections of a PDF using Aspose.Pdf.", + "filename": "batch-xml-to-pdf-conversion-profiling.cs", + "title": "Batch XML to PDF Conversion with Performance Profiling", + "description": "Demonstrates how to convert multiple XML files to PDF using Aspose.Pdf while measuring load, save, and overall processing times. The example aggregates timing data and suggests parallelization if needed.", "tags": [ - "pdf", - "margins", "xml", - "aspose-pdf", - "section" + "pdf", + "conversion", + "profiling", + "batch" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.PageInfo", - "Aspose.Pdf.MarginInfo", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.XmlLoadOptions", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.LoadOptions", + "Aspose.Pdf.SaveOptions" ], "difficulty": "intermediate" }, { - "filename": "batch-convert-xml-to-pdf.cs", - "title": "Batch Convert XML Files to PDF", - "description": "Demonstrates iterating over a folder of XML files, loading each with Aspose.Pdf XmlLoadOptions, and saving them as separate PDF documents.", + "filename": "compress-pdf-flate-after-xml-conversion.cs", + "title": "Compress Pdf Flate After Xml Conversion", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "compress-pdf-streams-using-aspose-pdf.cs", + "title": "Compress PDF Streams Using Aspose.Pdf Optimization", + "description": "Shows how to load a PDF (e.g., generated from XML), apply resource optimization to compress streams and remove unused objects, and save the reduced‑size PDF.", "tags": [ - "xml", - "pdf", - "batch", - "conversion", - "aspose-pdf" + "pdf compression", + "optimization", + "aspose.pdf", + "csharp", + "xml" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.XmlLoadOptions", + "Aspose.Pdf.Optimization.OptimizationOptions", + "Aspose.Pdf.Document.OptimizeResources", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "compress-pdf-flate-after-xml-conversion.cs", - "title": "Compress PDF with Flate after XML Conversion", - "description": "Loads a PDF represented as XML, applies Flate compression to object streams using Aspose.PDF optimization options, and saves the reduced‑size PDF.", + "filename": "compress-pdf-text-objects-from-xml.cs", + "title": "Compress PDF Text Objects from XML", + "description": "Demonstrates converting an XML file to a PDF with Aspose.Pdf and applying stream compression to the PDF text objects using optimization options.", "tags": [ "pdf", - "compression", "xml", + "compression", "optimization", - "aspose-pdf" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", @@ -55941,139 +67870,152 @@ "Aspose.Pdf.Document.OptimizeResources", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "compress-pdf-objects-from-xml.cs", - "title": "Compress PDF Objects from XML Using Aspose.Pdf Optimization", - "description": "Demonstrates loading an XML file into a PDF document and applying object stream compression to reduce the PDF size using Aspose.Pdf optimization features.", + "filename": "compress-pdf-text-streams-flate-xml.cs", + "title": "Compress PDF Text Streams with Flate via XML Conversion", + "description": "The example converts a PDF to XML, reloads it, applies Flate compression to all objects (including text streams) using Aspose.Pdf optimization, and saves the reduced‑size PDF.", "tags": [ "pdf", "compression", + "flate", "xml", - "optimization", - "aspose" + "optimization" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.XmlSaveOptions", "Aspose.Pdf.XmlLoadOptions", "Aspose.Pdf.Optimization.OptimizationOptions", - "Aspose.Pdf.Document.OptimizeResources", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.OptimizeResources" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "compress-pdf-streams-using-aspose-pdf-optimization.cs", - "title": "Compress PDF Streams Using Aspose.Pdf Optimization", - "description": "Demonstrates how to reduce the size of a PDF generated from XML by compressing its objects into streams using Aspose.Pdf's OptimizationOptions.", + "filename": "concurrent-xml-to-pdf-conversion.cs", + "title": "Concurrent XML to PDF Conversion with Aspose.Pdf", + "description": "Demonstrates how to safely convert multiple XML files to PDF in parallel using Aspose.Pdf's XmlLoadOptions and a separate Document instance per thread.", "tags": [ + "xml", "pdf", - "compression", - "optimization", + "concurrency", "aspose-pdf", - "csharp" + "parallel" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Optimization.OptimizationOptions", - "Aspose.Pdf.Document.OptimizeResources", + "Aspose.Pdf.XmlLoadOptions", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "convert-pdf-pages-to-high-resolution-png-thumbnails.cs", + "title": "Convert Pdf Pages To High Resolution Png Thumbnails", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "convert-pdf-pages-to-png-thumbnails.cs", "title": "Convert PDF Pages to High-Resolution PNG Thumbnails", - "description": "Shows how to open a PDF with Aspose.Pdf, set a 300 DPI resolution, and render each page to a PNG file for thumbnail creation.", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, set a high DPI resolution, and render each page as a PNG image for thumbnail creation.", "tags": [ "pdf", "png", "thumbnail", - "aspose.pdf", - "resolution" + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Devices.Resolution", "Aspose.Pdf.Devices.PngDevice", - "Aspose.Pdf.PageCollection", - "Aspose.Pdf.Devices.PngDevice.Process" + "Aspose.Pdf.Devices.PngDevice.Process", + "Aspose.Pdf.Document.Pages" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "convert-xml-multiple-namespaces-to-pdf.cs", - "title": "Convert XML with Multiple Namespaces to PDF using XSLT", - "description": "Demonstrates loading an XML file with an XSLT stylesheet that defines multiple namespaces and converting it directly to a PDF using Aspose.Pdf.", + "filename": "convert-styled-html-to-pdf-with-custom-colors.cs", + "title": "Convert Styled HTML to PDF with Custom Colors", + "description": "Demonstrates how to embed inline CSS in an HTML file and use Aspose.Pdf to convert it into a PDF that preserves the custom color styling.", "tags": [ - "xml", - "xslt", - "pdf", - "aspose.pdf", - "namespaces" + "html-to-pdf", + "css", + "color", + "aspose-pdf", + "document-conversion" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.XmlLoadOptions", + "Aspose.Pdf.HtmlLoadOptions", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, + { + "filename": "convert-xml-multiple-namespaces-to-pdf.cs", + "title": "Convert Xml Multiple Namespaces To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "convert-xml-to-html-preview.cs", - "title": "Convert XML to PDF and Save as HTML Preview", - "description": "Demonstrates loading an XML file into a PDF document using Aspose.Pdf and converting the PDF to an HTML file for web preview.", - "tags": [ - "xml", - "pdf", - "html", - "conversion", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.HtmlSaveOptions", - "Aspose.Pdf.HtmlSaveOptions.PartsEmbeddingModes", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner" + "title": "Convert Xml To Html Preview", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "convert-xml-to-pdf-version-1-7.cs", - "title": "Convert XML to PDF with PDF version 1.7", - "description": "Demonstrates loading an XML file into an Aspose.Pdf Document, converting it to a PDF with version 1.7, and optionally exporting the PDF back to XML.", + "title": "Convert Xml To Pdf Version 1 7", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "convert-xml-to-pdf-with-logging.cs", + "title": "Convert XML Files to PDF with Detailed Logging", + "description": "Reads XML files from a directory, converts each to a PDF using Aspose.Pdf, and records detailed processing steps and errors in a log file.", "tags": [ "xml", "pdf", "conversion", - "version", + "logging", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.PdfFormat", - "Aspose.Pdf.ConvertErrorAction", - "Aspose.Pdf.XmlSaveOptions" + "Aspose.Pdf.PdfException", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document..ctor" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "convert-xml-to-pdf-with-xslt.cs", "title": "Convert XML to PDF with XSLT Transformation", - "description": "Demonstrates how to apply an XSLT stylesheet to an XML file using Aspose.Pdf's XmlLoadOptions and then convert the transformed content directly to a PDF document.", + "description": "Demonstrates loading an XML file, applying an XSLT stylesheet during loading with Aspose.Pdf, and saving the transformed content as a PDF document.", "tags": [ "xml", "xslt", "pdf", - "aspose-pdf", + "aspose.pdf", "conversion" ], "apis_used": [ "Aspose.Pdf.XmlLoadOptions", + "Aspose.Pdf.XmlLoadOptions..ctor", "Aspose.Pdf.Document", + "Aspose.Pdf.Document..ctor", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" @@ -56081,13 +68023,13 @@ { "filename": "convert-xml-to-pdf.cs", "title": "Convert XML to PDF using Aspose.Pdf", - "description": "Demonstrates loading an XML file and converting it to a PDF using Aspose.Pdf's default XSLT transformation without an explicit stylesheet.", + "description": "Demonstrates loading an XML file and converting it to a PDF with Aspose.Pdf's default XSLT transformation.", "tags": [ "xml", "pdf", - "aspose", - "xslt", - "conversion" + "aspose.pdf", + "conversion", + "xslt" ], "apis_used": [ "Aspose.Pdf.Document", @@ -56097,136 +68039,223 @@ "difficulty": "beginner" }, { - "filename": "create-hierarchical-pdf-outline-from-xml.cs", - "title": "Create Hierarchical PDF Outline from XML Structure", - "description": "Demonstrates loading an XML file as a PDF and generating a nested bookmark outline that mirrors the XML element hierarchy using Aspose.Pdf.", + "filename": "convert-xml-to-pdfa-2b-and-validate.cs", + "title": "Convert XML to PDF/A‑2b and Validate Compliance", + "description": "Shows how to load an XML file, convert it to PDF/A‑2b format, save the PDF, and validate the output for PDF/A‑2b compliance using Aspose.Pdf.", "tags": [ "xml", + "pdfa-2b", + "conversion", + "validation", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.XmlLoadOptions", + "Aspose.Pdf.PdfFormat", + "Aspose.Pdf.ConvertErrorAction", + "Aspose.Pdf.Document.Convert", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Validate" + ], + "difficulty": "intermediate" + }, + { + "filename": "create-barcodes-pdf-from-xml.cs", + "title": "Create Barcodes in PDF from XML Fields", + "description": "Shows how to load an XML file as a PDF, read barcode field definitions, generate Code128 barcodes with Aspose.Pdf, and place them on the PDF pages.", + "tags": [ + "barcode", "pdf", - "outline", - "bookmark", - "aspose" + "xml", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.OutlineItemCollection", - "Aspose.Pdf.Annotations.XYZExplicitDestination", - "Aspose.Pdf.Document.Outlines", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.BarcodeField", + "Aspose.Pdf.Color" ], "difficulty": "intermediate" }, { - "filename": "create-pdf-bookmarks-from-xml.cs", - "title": "Create PDF Bookmarks from XML Sections", - "description": "Demonstrates loading an existing PDF and an XML file, then generating outline (bookmark) entries that navigate to specified pages using Aspose.Pdf.", + "filename": "create-hierarchical-pdf-outline-from-xml.cs", + "title": "Create Hierarchical PDF Outline from XML", + "description": "Shows how to load an XML file and generate a PDF with a nested bookmark outline that mirrors the XML element hierarchy using Aspose.Pdf.", "tags": [ "pdf", - "bookmarks", "outline", + "bookmarks", "xml", - "aspose-pdf" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.OutlineItemCollection", - "Aspose.Pdf.XYZExplicitDestination", - "Aspose.Pdf.Document.Outlines", + "Aspose.Pdf.Annotations.XYZExplicitDestination", + "Aspose.Pdf.Document.Pages.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, + { + "filename": "create-pdf-bookmarks-from-xml.cs", + "title": "Create Pdf Bookmarks From Xml", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "create-pdf-form-fields-from-xml.cs", - "title": "Create PDF Form Fields from XML and Set Default Values", - "description": "Shows how to load an XML definition, assign XFA data to a PDF, iterate over field nodes, and set default values for form fields using Aspose.Pdf.", + "title": "Create Pdf Form Fields From Xml", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-pdf-from-xsl-fo-memory-stream.cs", + "title": "Create PDF from XSL‑FO Using a MemoryStream", + "description": "Demonstrates loading XSL‑FO XML from a MemoryStream and generating a PDF document with default settings using Aspose.Pdf.", "tags": [ "pdf", - "form", - "xml", - "aspose", - "xfa" + "xsl-fo", + "memorystream", + "aspose.pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Document.Form.AssignXfa", + "Aspose.Pdf.XslFoLoadOptions", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { "filename": "create-pdf-outline-from-xml.cs", "title": "Create PDF Outline Hierarchy from XML Nesting", - "description": "Demonstrates loading an XML file into a PDF and generating a hierarchical bookmark (outline) structure that mirrors the XML element nesting, using recursion.", + "description": "Demonstrates loading an XML file with Aspose.Pdf, then generating a PDF outline whose hierarchy mirrors the XML element nesting using recursive outline creation.", "tags": [ - "pdf-outline", + "pdf", + "outline", "xml", - "recursion", "navigation", - "aspose-pdf" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.OutlineCollection", "Aspose.Pdf.OutlineItemCollection", - "Aspose.Pdf.Annotations.GoToAction", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Outlines", + "Aspose.Pdf.OutlineItemCollection.Title" + ], + "difficulty": "intermediate" + }, + { + "filename": "create-pdf-outlines-from-xml-section-titles.cs", + "title": "Create PDF Outlines from XML Section Titles", + "description": "Reads section titles from an XML file, generates a PDF page for each title, and adds outline (bookmark) entries that link to the corresponding pages.", + "tags": [ + "pdf", + "outline", + "bookmark", + "xml", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Annotations.XYZExplicitDestination", + "Aspose.Pdf.OutlineItemCollection" ], "difficulty": "intermediate" }, { "filename": "create-pdf-toc-from-xml-headings.cs", + "title": "Create Pdf Toc From Xml Headings", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "create-pdf-toc-from-xml.cs", "title": "Create PDF Table of Contents from XML Headings", - "description": "Shows how to read heading elements from an XML file and generate a Table of Contents in a PDF using Aspose.Pdf's tagged content and TOC features.", + "description": "Shows how to build a hierarchical Table of Contents in a PDF by reading heading data from an XML file and using Aspose.Pdf's tagged content API.", "tags": [ "pdf", "toc", "xml", - "aspose", - "tagged-content" + "tagged-content", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.FontRepository", "Aspose.Pdf.Tagged.ITaggedContent", "Aspose.Pdf.Tagged.TOCElement", "Aspose.Pdf.Tagged.TOCIElement", - "Aspose.Pdf.LogicalStructure.TocInfo" + "Aspose.Pdf.Page", + "Aspose.Pdf.Tagged.TocInfo" ], "difficulty": "intermediate" }, { - "filename": "decode-base64-images-xml-to-pdf.cs", - "title": "Decode Base64 Images from XML and Embed into PDF", - "description": "Loads an XML file, extracts base64‑encoded image data, decodes it, and adds each image to a new page in a PDF document using Aspose.Pdf.", + "filename": "create-pdf-xfa-form-from-xml.cs", + "title": "Create PDF XFA Form Fields from XML and Set Default Values", + "description": "Shows how to load or create a PDF, assign an XFA form definition from an XML file, set default field values using XPath, and save the populated PDF.", "tags": [ + "pdf", + "xfa", "xml", - "base64", + "form-fields", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Forms.Form.AssignXfa", + "Aspose.Pdf.PageCollection.Add", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "intermediate" + }, + { + "filename": "create-png-thumbnail-from-xml.cs", + "title": "Create PNG Thumbnail of First PDF Page from XML", + "description": "The example loads an XML file, converts it to a PDF using Aspose.Pdf, and generates a PNG thumbnail of the first page. The thumbnail is saved to disk as an image file.", + "tags": [ "pdf", - "image", - "aspose-pdf" + "thumbnail", + "xml", + "aspose-pdf", + "image" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.XmlLoadOptions", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.PageInfo", - "Aspose.Pdf.Page.AddImage" + "Aspose.Pdf.Devices.ThumbnailDevice", + "Aspose.Pdf.Devices.ThumbnailDevice.Process" ], "difficulty": "intermediate" }, + { + "filename": "decode-base64-images-xml-to-pdf.cs", + "title": "Decode Base64 Images Xml To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "downsample-images-from-xml.cs", - "title": "Downsample Images in PDF Created from XML", - "description": "Shows how to load an XML file, generate a PDF with Aspose.Pdf, and downsample high‑resolution images to reduce the PDF size using optimization options.", + "title": "Downsample Images from XML to PDF using Aspose.Pdf", + "description": "Shows how to load an XML file, convert it to a PDF, and down‑sample high‑resolution images by configuring Aspose.Pdf optimization options.", "tags": [ "xml", "image-downsampling", @@ -56238,6 +68267,7 @@ "Aspose.Pdf.Document", "Aspose.Pdf.Document.BindXml", "Aspose.Pdf.Optimization.OptimizationOptions", + "Aspose.Pdf.Optimization.OptimizationOptions.MaxResoultion", "Aspose.Pdf.Document.OptimizeResources", "Aspose.Pdf.Document.Save" ], @@ -56245,8 +68275,8 @@ }, { "filename": "embed-3d-models-from-xml.cs", - "title": "Embed 3D Models as PDF Annotations from XML", - "description": "Loads an XML file that lists 3D model files and their placement, then embeds each model as an interactive 3D annotation in a PDF using Aspose.Pdf.", + "title": "Embed 3D Models from XML into PDF as Annotations", + "description": "Loads an XML file that lists 3D model files and their placement, then embeds each model into the specified PDF page as an interactive 3D annotation using Aspose.Pdf.", "tags": [ "pdf", "3d", @@ -56257,18 +68287,17 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.PDF3DContent", - "Aspose.Pdf.PDF3DArtwork", - "Aspose.Pdf.PDF3DAnnotation", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Color" + "Aspose.Pdf.Annotations.PDF3DContent", + "Aspose.Pdf.Annotations.PDF3DArtwork", + "Aspose.Pdf.Annotations.PDF3DAnnotation", + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate" }, { "filename": "embed-audio-annotations-from-xml.cs", "title": "Embed Audio Annotations from XML into PDF", - "description": "Loads an XML file that defines audio file locations and positions, creates SoundAnnotation objects for each entry, and embeds the audio clips into the specified pages of a PDF document.", + "description": "Demonstrates loading a PDF, parsing an XML file that references audio files, and adding SoundAnnotation objects to the specified pages and locations.", "tags": [ "pdf", "audio", @@ -56281,61 +68310,64 @@ "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Annotations.SoundAnnotation", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Annotations.AnnotationCollection.Add" ], "difficulty": "intermediate" }, { - "filename": "embed-custom-ttf-font-into-pdf-from-xml.cs", + "filename": "embed-custom-truetype-font-into-pdf.cs", "title": "Embed Custom TrueType Font into PDF from XML", - "description": "Demonstrates loading an XML file into a PDF document and embedding a custom TrueType font by replacing all text fragments with the specified font.", + "description": "Demonstrates loading XML into a PDF with Aspose.Pdf, opening a TrueType font, marking it for embedding, and adding text that uses the font so the font is embedded in the saved PDF.", "tags": [ "pdf", + "truetype", "font-embedding", "xml", - "aspose", - "truetype" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.Text.FontRepository.OpenFont", - "Aspose.Pdf.Text.Font", - "Aspose.Pdf.Text.TextFragmentAbsorber", + "Aspose.Pdf.FontRepository.OpenFont", + "Aspose.Pdf.Font.IsEmbedded", "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Text.TextState.Font", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, + { + "filename": "embed-custom-ttf-font-into-pdf-from-xml.cs", + "title": "Embed Custom Ttf Font Into Pdf From Xml", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "embed-javascript-actions-in-pdf-from-xml.cs", - "title": "Embed JavaScript Actions in PDF Generated from XML", - "description": "The example loads an XML file, converts it to a PDF using Aspose.Pdf, and embeds JavaScript actions such as an open‑document alert and validation logic for a text box form field.", - "tags": [ - "javascript", - "pdf", - "form-validation", - "xml", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.Field" - ], - "difficulty": "intermediate" + "title": "Embed Javascript Actions In Pdf From Xml", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "embed-video-annotations-from-xml.cs", - "title": "Embed Video Annotations from XML into PDF", - "description": "Demonstrates how to read video locations from an XML file and embed each video as a RichMedia annotation in a PDF using Aspose.Pdf.", + "title": "Embed Video Annotations From Xml", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "embed-videos-from-xml-into-pdf.cs", + "title": "Embed Videos from XML into PDF as Rich Media Annotations", + "description": "Demonstrates how to read video references from an XML file and add them as RichMedia video annotations to specific pages of a PDF using Aspose.Pdf.", "tags": [ - "xml", - "video", "pdf", + "video", + "xml", "annotation", "richmedia" ], @@ -56343,21 +68375,20 @@ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Color", "Aspose.Pdf.Annotations.RichMediaAnnotation", - "Aspose.Pdf.Annotations.RichMediaAnnotation.SetContent" + "Aspose.Pdf.Annotations.RichMediaAnnotation.ContentType" ], "difficulty": "intermediate" }, { "filename": "encrypt-pdf-from-xml-aes256.cs", "title": "Encrypt PDF from XML with AES‑256", - "description": "Loads an XML file, converts it to a PDF using Aspose.Pdf, applies AES‑256 encryption with user and owner passwords and specific permissions, and saves the protected PDF.", + "description": "Demonstrates loading an XML file into a PDF document with Aspose.Pdf, applying AES‑256 encryption, setting user and owner passwords and permissions, and saving the protected PDF.", "tags": [ - "xml", - "pdf", - "encryption", + "pdf-encryption", + "xml-to-pdf", "aes256", + "permissions", "aspose-pdf" ], "apis_used": [ @@ -56372,14 +68403,22 @@ }, { "filename": "encrypt-pdf-from-xml-drm.cs", - "title": "Encrypt PDF from XML with DRM", - "description": "Demonstrates loading an XML file, converting it to a PDF with Aspose.Pdf, and applying AES‑256 password protection with specific permissions for secure distribution.", + "title": "Encrypt Pdf From Xml Drm", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "encrypt-pdf-from-xml.cs", + "title": "Encrypt PDF from XML with Password Protection", + "description": "Demonstrates loading an XML file, converting it to a PDF, and applying password protection using AES‑256 encryption with specific permissions via Aspose.Pdf.", "tags": [ - "xml", - "pdf", - "encryption", - "permissions", - "Aspose.Pdf" + "pdf-encryption", + "xml-to-pdf", + "password-protection", + "aes256", + "permissions" ], "apis_used": [ "Aspose.Pdf.Document", @@ -56392,57 +68431,64 @@ "difficulty": "intermediate" }, { - "filename": "encrypt-pdf-from-xml.cs", - "title": "Encrypt PDF from XML with Password Protection", - "description": "Demonstrates loading an XML file, converting it to a PDF using Aspose.Pdf, and applying AES‑256 password protection with specific permissions before saving.", + "filename": "encrypt-pdf-from-xml__v2.cs", + "title": "Encrypt PDF Generated from XML", + "description": "Demonstrates loading XML content into a PDF using Aspose.Pdf, applying AES‑256 encryption with specific permissions, and saving the secured document.", "tags": [ "pdf", "encryption", "xml", - "password-protection", - "aspose-pdf" + "aspose.pdf", + "permissions" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.BindXml", "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Permissions" ], "difficulty": "intermediate" }, { "filename": "encrypt-xml-derived-pdf-with-custom-permissions.cs", - "title": "Encrypt XML‑derived PDF with Custom Permissions", - "description": "Demonstrates loading an XML file into a PDF, applying encryption with user and owner passwords, and setting custom permissions to disable printing and copying.", + "title": "Encrypt Xml Derived Pdf With Custom Permissions", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "export-pdf-pages-high-resolution-png.cs", + "title": "Export PDF Pages as High-Resolution PNG Images from XML", + "description": "The example loads an XML file, binds it to an Aspose.Pdf Document, saves the PDF, and then exports each page as a PNG image using a specified DPI (e.g., 300).", "tags": [ - "pdf-encryption", - "custom-permissions", - "xml-to-pdf", - "security", + "xml", + "pdf", + "image-export", + "resolution", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.BindXml", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.Devices.PngDevice", + "Aspose.Pdf.Devices.PngDevice.Process" ], "difficulty": "intermediate" }, { "filename": "export-pdf-pages-to-bmp-images.cs", "title": "Export PDF Pages from XML to BMP Images", - "description": "Shows how to bind an XML file to an Aspose.Pdf Document, generate a PDF, and export each page as a separate BMP image file.", + "description": "Demonstrates how to bind an XML file to an Aspose.Pdf Document, generate a PDF, and export each PDF page as a separate BMP image file.", "tags": [ "pdf", "xml", - "image-export", - "bmp", - "aspose-pdf" + "image", + "aspose", + "bmp" ], "apis_used": [ "Aspose.Pdf.Document", @@ -56455,33 +68501,41 @@ }, { "filename": "export-pdf-pages-to-png-with-custom-resolution.cs", - "title": "Export PDF Pages to PNG with Custom Resolution", - "description": "The example creates a PDF from an XML definition, sets a desired DPI resolution, and exports each page as a PNG image using Aspose.Pdf.", + "title": "Export Pdf Pages To Png With Custom Resolution", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "extract-base64-images-from-xml-to-pdf.cs", + "title": "Extract Base64 Images from XML and Embed in PDF", + "description": "Shows how to load an XML file, locate base64‑encoded image data URIs, decode them, and add each image to a new page of a PDF using Aspose.Pdf.", "tags": [ - "pdf", - "image-export", - "resolution", "xml", - "aspose-pdf" + "base64", + "image", + "pdf", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.BindXml", - "Aspose.Pdf.Resolution", - "Aspose.Pdf.Devices.PngDevice", - "Aspose.Pdf.Devices.PngDevice.Process" + "Aspose.Pdf.Page", + "Aspose.Pdf.Image", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "extract-pdf-xml-representation.cs", "title": "Extract PDF Internal XML Representation", - "description": "Shows how to load a PDF using Aspose.Pdf and save its internal XML representation to a file.", + "description": "Loads a PDF file using Aspose.Pdf and saves its internal XML representation to a separate file for analysis or validation.", "tags": [ "pdf", "xml", - "extraction", - "aspose", + "export", + "aspose-pdf", "csharp" ], "apis_used": [ @@ -56493,7 +68547,7 @@ { "filename": "extract-plain-text-from-pdf.cs", "title": "Extract Plain Text from PDF for Indexing", - "description": "Shows how to load a PDF generated from XML, extract its plain text using Aspose.Pdf's TextAbsorber with pure formatting, and save the result to a .txt file for indexing.", + "description": "Demonstrates loading a PDF generated from XML and extracting its plain text using Aspose.Pdf's TextAbsorber, then saving the result for indexing purposes.", "tags": [ "pdf", "text-extraction", @@ -56505,160 +68559,169 @@ "Aspose.Pdf.Document", "Aspose.Pdf.Text.TextExtractionOptions", "Aspose.Pdf.Text.TextAbsorber", - "Aspose.Pdf.Document.Pages.Accept", + "Aspose.Pdf.PageCollection.Accept", "Aspose.Pdf.Text.TextAbsorber.Text" ], "difficulty": "beginner" }, { "filename": "generate-barcode-from-xml-to-pdf.cs", - "title": "Generate Barcode in PDF from XML", - "description": "Demonstrates loading an XML file into a PDF document with Aspose.Pdf, creating a barcode field on a page, and saving the resulting PDF.", - "tags": [ - "barcode", - "pdf", - "xml", - "aspose-pdf", - "barcodefield" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.BarcodeField", - "Aspose.Pdf.Forms.BarcodeField.AddBarcode", - "Aspose.Pdf.Page.Annotations.Add", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "intermediate" + "title": "Generate Barcode From Xml To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "generate-pdf-from-xml-custom-page-size.cs", - "title": "Generate PDF from XML with Custom Page Size", - "description": "Shows how to load an XML file using Aspose.Pdf, apply a custom page size based on processing instructions, and save the result as a PDF.", + "filename": "generate-html-preview-from-xml.cs", + "title": "Generate HTML preview from XML using Aspose.Pdf", + "description": "Loads an XML file that defines a PDF, creates the PDF in memory, and saves it as an HTML file for web preview using Aspose.Pdf.", "tags": [ "xml", + "html", "pdf", "aspose-pdf", - "page-size", - "processing-instructions" + "preview" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Page.SetPageSize", + "Aspose.Pdf.HtmlSaveOptions", + "Aspose.Pdf.HtmlSaveOptions.PartsEmbeddingModes", + "Aspose.Pdf.HtmlSaveOptions.RasterImagesSavingModes", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "generate-pdf-from-xml-using-memorystream.cs", - "title": "Generate PDF from XML Using MemoryStream", - "description": "Shows how to load XML from a MemoryStream, extract elements, and create a PDF with Aspose.Pdf using default settings.", - "tags": [ - "xml", - "memorystream", - "pdf", - "aspose", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Text.FontStyles", - "Aspose.Pdf.Text.Color", - "Aspose.Pdf.Text.HorizontalAlignment" - ], - "difficulty": "beginner" + "filename": "generate-pdf-from-xml-custom-page-size.cs", + "title": "Generate Pdf From Xml Custom Page Size", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "generate-pdf-from-xml-with-xsl.cs", - "title": "Generate PDF from XML with Optional XSL/CSS Styling", - "description": "Shows how to load an XML file (optionally applying an XSL stylesheet that can incorporate CSS rules) into an Aspose.Pdf Document using XmlLoadOptions and save it as a PDF.", + "filename": "generate-pdf-from-xml-fullscreen.cs", + "title": "Generate PDF from XML with Full‑Screen Viewer Mode", + "description": "Demonstrates loading an XML file into an Aspose.Pdf Document, configuring the viewer to start in full‑screen mode, and saving the result as a PDF.", "tags": [ - "xml", - "xsl", - "css", "pdf", - "aspose-pdf" + "fullscreen", + "xml", + "aspose", + "viewer-mode" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.Document..ctor(string, XmlLoadOptions)", - "Aspose.Pdf.XmlLoadOptions..ctor(string)", - "Aspose.Pdf.Document.Save(string)" + "Aspose.Pdf.Document.PageMode", + "Aspose.Pdf.Document.NonFullScreenPageMode", + "Aspose.Pdf.Document.FitWindow", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, { - "filename": "generate-pdf-from-xsl-fo-and-xml.cs", - "title": "Generate PDF from XSL‑FO and XML with Aspose.Pdf", - "description": "Shows how to create a PDF directly from an XSL‑FO file and how to bind XML data with an XSL‑FO stylesheet using Aspose.Pdf's Document class.", + "filename": "generate-pdf-from-xml-pdf-1-7.cs", + "title": "Generate PDF from XML with PDF version 1.7", + "description": "Demonstrates loading an XML file into an Aspose.Pdf Document, converting it to PDF version 1.7, and saving the resulting PDF.", "tags": [ - "xsl-fo", + "xml", "pdf", + "conversion", "aspose-pdf", - "xml", - "document-conversion" + "pdf-version" ], "apis_used": [ + "Aspose.Pdf.XmlLoadOptions", "Aspose.Pdf.Document", - "Aspose.Pdf.XslFoLoadOptions", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.BindXml" + "Aspose.Pdf.Document.Convert", + "Aspose.Pdf.PdfFormat", + "Aspose.Pdf.ConvertErrorAction" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "generate-pdf-from-xsl-fo-with-optional-xslt.cs", - "title": "Generate PDF from XSL‑FO with optional XSLT", - "description": "The example reads XSL‑FO and optional XSLT file paths from a simple key‑value configuration file, creates XslFoLoadOptions, loads the XSL‑FO document with Aspose.Pdf, and saves it as a PDF.", + "filename": "generate-pdf-from-xml-using-memorystream.cs", + "title": "Generate Pdf From Xml Using Memorystream", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "generate-pdf-from-xml-using-xslt-config.cs", + "title": "Generate PDF from XML using XSLT Configured via appsettings.json", + "description": "Demonstrates loading XML and XSLT file paths from a JSON configuration, applying the XSLT during XML‑to‑PDF conversion with Aspose.Pdf, and saving the resulting PDF.", "tags": [ - "xsl-fo", + "xml", "xslt", - "pdf-generation", + "pdf", "configuration", - "aspose-pdf" + "aspose" ], "apis_used": [ - "Aspose.Pdf.Document.Document(string, XslFoLoadOptions)", - "Aspose.Pdf.XslFoLoadOptions.XslFoLoadOptions()", - "Aspose.Pdf.XslFoLoadOptions.XslFoLoadOptions(string)", - "Aspose.Pdf.Document.Save(string)", - "Aspose.Pdf.XslFoLoadOptions" + "Aspose.Pdf.Document", + "Aspose.Pdf.XmlLoadOptions", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "generate-pdf-fullscreen-viewer-mode.cs", - "title": "Generate PDF from XML in Full‑Screen Viewer Mode", - "description": "Shows how to convert an XML file to PDF using Aspose.Pdf and set the document to open in full‑screen viewer mode with optional non‑full‑screen behavior.", + "filename": "generate-pdf-from-xml-with-xsl.cs", + "title": "Generate Pdf From Xml With Xsl", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "generate-pdf-from-xsl-fo-and-xml.cs", + "title": "Generate Pdf From Xsl Fo And Xml", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "generate-pdf-from-xsl-fo-with-optional-xslt.cs", + "title": "Generate Pdf From Xsl Fo With Optional Xslt", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "generate-pdf-from-xsl-fo.cs", + "title": "Generate PDF from XSL‑FO using Aspose.Pdf", + "description": "Demonstrates how to load an XSL‑FO template with Aspose.Pdf and convert it directly into a PDF document.", "tags": [ + "xsl-fo", "pdf", - "fullscreen", - "xml", "aspose.pdf", - "viewer-preferences" + "csharp", + "document-generation" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.PageMode", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.PageMode", - "Aspose.Pdf.Document.NonFullScreenPageMode" + "Aspose.Pdf.XslFoLoadOptions", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner" }, + { + "filename": "generate-pdf-fullscreen-viewer-mode.cs", + "title": "Generate Pdf Fullscreen Viewer Mode", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "generate-pdf-table-from-xml.cs", - "title": "Generate PDF Table from XML Data using Aspose.Pdf", - "description": "Demonstrates loading tabular data from an XML file into a DataSet and creating a PDF document with a formatted table using Aspose.Pdf.", + "title": "Generate PDF Table from XML Data", + "description": "Demonstrates loading tabular data from an XML file into a DataSet and exporting it as a formatted table in a PDF using Aspose.Pdf.", "tags": [ "xml", "pdf", @@ -56672,121 +68735,163 @@ "Aspose.Pdf.Table", "Aspose.Pdf.BorderInfo", "Aspose.Pdf.MarginInfo", - "Aspose.Pdf.Table.ImportDataTable" + "Aspose.Pdf.Color", + "Aspose.Pdf.Table.ImportDataTable", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "generate-pdf-thumbnail-from-xml.cs", - "title": "Generate PDF Thumbnail from XML-derived PDF", - "description": "Demonstrates how to convert an XML file to a PDF using Aspose.Pdf and then create a PNG thumbnail of the first PDF page.", - "tags": [ - "pdf", - "thumbnail", - "xml", - "aspose", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.Devices.ThumbnailDevice", - "Aspose.Pdf.Page", - "Aspose.Pdf.Devices.ThumbnailDevice.Process" - ], - "difficulty": "intermediate" + "title": "Generate Pdf Thumbnail From Xml", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "generate-pdf-with-retry-logic.cs", - "title": "Generate PDF with Retry Logic for Transient Errors", - "description": "Demonstrates creating a PDF using Aspose.Pdf while handling transient I/O and PDF exceptions with configurable retry logic.", + "title": "Generate Pdf With Retry Logic", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "handle-malformed-xml-pdf-conversion.cs", + "title": "Handle Malformed XML During PDF Conversion with Aspose.Pdf", + "description": "Demonstrates how to use a custom warning handler and load options to abort processing when malformed XML is encountered during PDF conversion, with proper exception handling.", "tags": [ + "xml", "pdf", - "retry", - "aspose", - "transient-errors", - "csharp" + "exception-handling", + "warning-callback", + "aspose-pdf" ], "apis_used": [ + "Aspose.Pdf.XmlLoadOptions", + "Aspose.Pdf.IWarningCallback", + "Aspose.Pdf.ReturnAction", + "Aspose.Pdf.WarningInfo", "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.PdfException", - "Aspose.Pdf.Page", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Pages.Add", - "Aspose.Pdf.Paragraphs.Add" + "Aspose.Pdf.PdfException" ], "difficulty": "intermediate" }, { "filename": "handle-xslfo-parsing-errors-during-pdf-generation.cs", - "title": "Handle XSL‑FO Parsing Errors During PDF Generation", - "description": "Demonstrates configuring Aspose.Pdf to gracefully handle XSL‑FO parsing warnings and errors with a custom IWarningCallback, providing user‑friendly messages while generating a PDF.", + "title": "Handle Xslfo Parsing Errors During Pdf Generation", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "handle-xslfo-parsing-errors-pdf-generation.cs", + "title": "Handle XSL‑FO Parsing Errors with Custom Warning Callback during PDF Generation", + "description": "Demonstrates how to configure Aspose.Pdf to invoke a custom warning handler for XSL‑FO parsing errors and generate a PDF with user‑friendly error messages.", "tags": [ "xml", - "xsl-fo", + "parsing-errors", "pdf-generation", - "error-handling", + "warning-callback", "aspose-pdf" ], "apis_used": [ + "Aspose.Pdf.XslFoLoadOptions", "Aspose.Pdf.IWarningCallback", - "Aspose.Pdf.WarningInfo", "Aspose.Pdf.ReturnAction", - "Aspose.Pdf.XslFoLoadOptions", "Aspose.Pdf.Document", "Aspose.Pdf.PdfException" ], "difficulty": "intermediate" }, + { + "filename": "insert-automatic-page-numbers-pdf-xslt.cs", + "title": "Insert Automatic Page Numbers into PDF using XSLT", + "description": "Shows how to load an XML file, apply an XSLT stylesheet with Aspose.Pdf to create a PDF, automatically update pagination (page numbers) across all pages, and save the result.", + "tags": [ + "pdf", + "xslt", + "pagination", + "aspose", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.BindXml", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.PageCollection.UpdatePagination", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "intermediate" + }, { "filename": "insert-conditional-page-breaks-based-on-xml-length.cs", - "title": "Insert Conditional Page Breaks in PDF Based on XML Content Length", - "description": "Shows how to load an XML file into a PDF with Aspose.Pdf, evaluate each top‑level element's text length, and insert a blank page when the length exceeds a defined threshold.", + "title": "Insert Conditional Page Breaks Based On Xml Length", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "insert-conditional-page-breaks-based-on-xml-text-length.cs", + "title": "Insert Conditional Page Breaks in PDF Based on XML Text Length", + "description": "Shows how to load an XML file into a PDF, evaluate the text length of each page, and insert a blank page when the length exceeds a specified threshold.", "tags": [ "pdf", "xml", "page-break", - "aspose", - "csharp" + "text-length", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.PageCollection.Insert", + "Aspose.Pdf.Text.TextAbsorber", + "Aspose.Pdf.Page", + "Aspose.Pdf.Document.Pages.Insert", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "insert-dynamic-headers-from-xml.cs", - "title": "Insert Dynamic Headers into PDF from XML per Page", - "description": "Demonstrates how to read header text for each page from an XML file and apply those values as page‑specific headers in a PDF using Aspose.Pdf.", + "title": "Insert Dynamic Headers From Xml", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "insert-dynamic-page-headers-from-xml.cs", + "title": "Insert Dynamic Page Headers from XML into PDF", + "description": "Demonstrates loading a PDF, reading per‑page header text from an XML file, and adding those headers to each page using Aspose.Pdf TextStamp objects.", "tags": [ "pdf", "header", "xml", "aspose-pdf", - "dynamic" + "textstamp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.HeaderFooter", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Text.TextStamp", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.FontRepository", + "Aspose.Pdf.Color" ], "difficulty": "intermediate" }, { - "filename": "insert-footnotes-into-pdf-from-xml.cs", - "title": "Insert Footnotes into PDF Pages from XML", - "description": "Demonstrates loading footnote definitions from an XML file and adding them as footnotes to each page of a PDF using Aspose.Pdf.", + "filename": "insert-footnotes-from-xml.cs", + "title": "Insert Footnotes into PDF from XML", + "description": "Demonstrates loading footnote definitions from an XML file and adding them as footnotes to a PDF page using Aspose.Pdf.", "tags": [ "pdf", - "footnotes", + "footnote", "xml", - "aspose.pdf", + "aspose-pdf", "csharp" ], "apis_used": [ @@ -56794,20 +68899,28 @@ "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Text.Note", - "Aspose.Pdf.Position", + "Aspose.Pdf.Text.Position", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "merge-multiple-xml-to-pdf-documents.cs", - "title": "Merge Multiple XML‑to‑PDF Documents", - "description": "Shows how to convert several XML files to PDF using Aspose.Pdf and then merge the resulting PDFs into a single document.", + "filename": "insert-footnotes-into-pdf-from-xml.cs", + "title": "Insert Footnotes Into Pdf From Xml", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "merge-multiple-xml-pdfs.cs", + "title": "Merge PDFs Created from XML Files", + "description": "Demonstrates loading XML files as PDF documents with Aspose.Pdf, merging them into a single document, and saving the combined PDF.", "tags": [ "pdf", - "xml", "merge", - "aspose", + "xml", + "aspose-pdf", "csharp" ], "apis_used": [ @@ -56818,156 +68931,191 @@ ], "difficulty": "intermediate" }, + { + "filename": "merge-multiple-xml-to-pdf-documents.cs", + "title": "Merge Multiple Xml To Pdf Documents", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "paginate-xml-to-multiple-pdfs.cs", - "title": "Paginate Large XML into Multiple PDFs with Sequential Page Numbers", - "description": "Demonstrates loading a large XML file as a PDF, splitting it into smaller PDF files of a fixed page count, and adding global sequential page‑number stamps to each page.", + "title": "Paginate Xml To Multiple Pdfs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "pdf-generation-with-retry-logic.cs", + "title": "PDF Generation with Retry Logic for Transient I/O Errors", + "description": "Demonstrates creating a simple PDF using Aspose.Pdf and implementing retry logic to handle transient I/O or PDF exceptions during the save operation.", "tags": [ - "xml", "pdf", - "pagination", - "aspose", - "page-numbering" + "retry", + "aspose-pdf", + "io-errors", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.PageNumberStamp", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.FontRepository", - "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Position", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { "filename": "populate-pdf-form-from-xml.cs", - "title": "Populate PDF Form Fields from XML using Aspose.Pdf", - "description": "Demonstrates loading a PDF template with XFA form fields, reading XML data, assigning the XML to the XFA form, and saving the populated PDF.", + "title": "Populate PDF Form Fields from XML Records", + "description": "Shows how to read multiple elements from an XML file and fill a PDF form (AcroForm or XFA) for each record, saving a separate PDF per record.", "tags": [ "pdf", - "xfa", "xml", "form-filling", - "aspose-pdf" + "batch", + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Form", - "Aspose.Pdf.Form.HasXfa", - "Aspose.Pdf.Form.AssignXfa", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Forms.Form.AssignXfa" ], "difficulty": "intermediate" }, { "filename": "preserve-cdata-to-pdf.cs", "title": "Preserve CDATA Sections from XML to PDF", - "description": "Shows how to load an XML document, extract CDATA nodes, and write each block to a PDF using Aspose.Pdf with monospaced formatting and automatic page breaks.", + "description": "Shows how to load an XML document, extract all CDATA sections, and render each section as formatted text in a PDF using Aspose.Pdf.", "tags": [ "xml", "cdata", "pdf", "aspose", - "text-fragment" + "text-rendering" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.FontRepository.FindFont", "Aspose.Pdf.Text.Position", - "Aspose.Pdf.Color", - "Aspose.Pdf.Page.Paragraphs" + "Aspose.Pdf.FontRepository.FindFont", + "Aspose.Pdf.Color" ], "difficulty": "intermediate" }, { "filename": "profile-batch-xml-to-pdf-conversion.cs", - "title": "Profile Batch XML to PDF Conversion with Aspose.Pdf", - "description": "The program measures load, save, total execution time and memory usage for converting multiple XML files to PDF using Aspose.Pdf, then prints summary statistics for the batch.", - "tags": [ - "xml", - "pdf", - "profiling", - "batch-processing", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Dispose", - "Aspose.Pdf.Document (constructor)" - ], - "difficulty": "intermediate" + "title": "Profile Batch Xml To Pdf Conversion", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "register-pdfoutputgenerator-di.cs", - "title": "Register PdfOutputGenerator in Dependency Injection Container", - "description": "Shows how to add Aspose.Pdf's PdfOutputGenerator as a singleton service in an IServiceCollection and resolve it using a minimal service provider.", + "filename": "register-aspose-pdf-generation-di.cs", + "title": "Register Aspose PDF Generation Service with Dependency Injection", + "description": "Demonstrates how to add Aspose.Pdf Comparison's PdfOutputGenerator to an IServiceCollection as a singleton and resolve it via a simple service provider.", "tags": [ "dependency-injection", "aspose-pdf", + "pdf-generation", "singleton", - "service-registration", "csharp" ], "apis_used": [ - "PdfOutputGenerator" + "PdfOutputGenerator", + "OutputTextStyle", + "PageInfo" ], - "difficulty": "beginner" + "difficulty": "intermediate" + }, + { + "filename": "register-pdfoutputgenerator-di.cs", + "title": "Register Pdfoutputgenerator Di", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { "filename": "render-cdata-html-to-pdf.cs", - "title": "Render CDATA HTML as PDF using Aspose.Pdf", - "description": "Demonstrates loading HTML stored in XML CDATA sections and converting it into formatted PDF content with Aspose.Pdf.", + "title": "Render Cdata Html To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "render-embedded-svg-from-xml-to-pdf.cs", + "title": "Render Embedded Svg From Xml To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "render-html-cdata-to-pdf.cs", + "title": "Render HTML CDATA Sections to PDF", + "description": "Shows how to load an XML file, extract HTML fragments stored in CDATA sections, and render those fragments into a PDF document using Aspose.Pdf.", "tags": [ "xml", "cdata", "html", "pdf", - "aspose-pdf" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.Text.HtmlFragment", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Page.Paragraphs", + "Aspose.Pdf.Page.Paragraphs.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "render-embedded-svg-from-xml-to-pdf.cs", - "title": "Render Embedded SVG Elements from XML into PDF", - "description": "Shows how to extract SVG markup embedded in an XML file, convert each SVG to PDF pages using Aspose.Pdf's SvgLoadOptions, and merge them into a single PDF document.", + "filename": "render-svg-from-xml-to-pdf.cs", + "title": "Render SVG Elements from XML into PDF as Vector Graphics", + "description": "Loads an XML file, extracts each node, and embeds it on a separate PDF page as a vector graphic using Aspose.Pdf.", "tags": [ "svg", - "xml", "pdf", - "aspose.pdf", - "conversion" + "aspose-pdf", + "xml", + "vector-graphics" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.SvgLoadOptions", - "Aspose.Pdf.PageCollection", - "Aspose.Pdf.PageCollection.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Page.AddImage", + "Aspose.Pdf.PageInfo" ], "difficulty": "intermediate" }, { "filename": "repeat-table-header-on-each-pdf-page.cs", - "title": "Repeat Table Header Row on Each PDF Page", - "description": "Demonstrates how to create a table with a header row that repeats on every page when the table spans multiple PDF pages using Aspose.Pdf.", + "title": "Repeat Table Header On Each Pdf Page", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "repeat-table-header-rows.cs", + "title": "Repeat Table Header Rows on Each PDF Page", + "description": "Demonstrates how to create a PDF table with header rows that automatically repeat on every page when the table spans multiple pages using Aspose.Pdf.", "tags": [ "table", "header", - "pagination", - "Aspose.Pdf", - "C#" + "pdf", + "repeating-rows", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", @@ -56975,15 +69123,14 @@ "Aspose.Pdf.Table", "Aspose.Pdf.Row", "Aspose.Pdf.Cell", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.FontRepository" + "Aspose.Pdf.Text.TextState" ], "difficulty": "intermediate" }, { "filename": "set-custom-page-margins-from-xml.cs", - "title": "Set Custom Page Margins per Section from XML", - "description": "Demonstrates how to read margin definitions from an XML file and apply them to specific page ranges in a PDF using Aspose.Pdf.", + "title": "Set Custom Page Margins from XML per Section", + "description": "Demonstrates loading margin definitions from an XML file and applying them to specific page ranges in a PDF using Aspose.Pdf.", "tags": [ "pdf", "margins", @@ -57001,29 +69148,37 @@ "difficulty": "intermediate" }, { - "filename": "set-pdf-page-durations-from-xml.cs", - "title": "Set PDF Page Transition Durations from XML", - "description": "Loads timing values from an XML file and assigns them to PDF pages using Aspose.Pdf's Duration property, then saves the modified document.", + "filename": "set-pdf-page-duration-from-xml.cs", + "title": "Set PDF Page Transition Duration from XML", + "description": "Demonstrates loading an XML file that defines per‑page display durations, applying those durations to an Aspose.Pdf document, and saving the updated PDF.", "tags": [ "pdf", - "aspose.pdf", "xml", "page-duration", - "c#" + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Page", - "Aspose.Pdf.Page.Duration" + "Aspose.Pdf.XmlLoadOptions", + "Aspose.Pdf.PageCollection", + "Aspose.Pdf.Page.Duration", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, + { + "filename": "set-pdf-page-durations-from-xml.cs", + "title": "Set Pdf Page Durations From Xml", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, { "filename": "set-pdf-page-orientation-from-xml.cs", - "title": "Set PDF Page Orientation from XML Layout", - "description": "Shows how to read an orientation attribute from an XML file and apply the landscape or portrait setting to every page of a PDF using Aspose.Pdf.", + "title": "Set PDF Page Orientation from XML", + "description": "Loads a PDF, reads an XML layout file, and sets each page's orientation to landscape or portrait based on XML attributes before saving the modified document.", "tags": [ "pdf", "orientation", @@ -57033,198 +69188,218 @@ ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.PageCollection", "Aspose.Pdf.PageInfo", - "Aspose.Pdf.Page", + "Aspose.Pdf.PageInfo.IsLandscape", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { "filename": "set-pdf-page-size-from-xml.cs", "title": "Set PDF Page Size from XML", - "description": "Shows how to read width and height values from an XML file and apply them to every page of a PDF using Aspose.Pdf.", + "description": "Shows how to read page width and height from an XML file and apply those dimensions to every page of a PDF using Aspose.Pdf.", "tags": [ "pdf", - "pagesize", "xml", - "aspose", + "pagesize", + "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Pages", "Aspose.Pdf.Page", "Aspose.Pdf.Page.SetPageSize", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "set-pdf-viewer-preferences-from-xml.cs", - "title": "Set PDF Viewer Preferences from XML", - "description": "Demonstrates how to load an XML file into an Aspose.Pdf Document, configure viewer preferences such as FitWindow and PageMode, and save the result as a PDF.", + "filename": "set-pdf-page-size-via-xml-processing-instruction.cs", + "title": "Set PDF Page Size via XML Processing Instruction", + "description": "Demonstrates how to read a custom processing instruction from an XML file to determine page dimensions and apply those dimensions to every page of a PDF generated with Aspose.Pdf.", "tags": [ "pdf", - "viewer-preferences", "xml", - "aspose-pdf", - "csharp" + "processing-instruction", + "page-size", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.Document.FitWindow", - "Aspose.Pdf.Document.PageMode", - "Aspose.Pdf.PageMode", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page.SetPageSize", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Pages" ], - "difficulty": "beginner" + "difficulty": "intermediate" }, { - "filename": "sign-pdf-from-xml-with-certificate.cs", - "title": "Sign PDF Created from XML with Certificate", - "description": "Loads an XML file, converts it to a PDF using Aspose.Pdf, adds a signature field, and digitally signs the PDF with a PKCS#7 certificate.", + "filename": "set-pdf-permissions-and-encrypt-xml-pdf.cs", + "title": "Set PDF Permissions and Encrypt XML‑derived PDF", + "description": "Demonstrates loading an XML file into an Aspose.Pdf Document, applying AES‑256 encryption, and restricting printing and content extraction by setting custom permissions.", "tags": [ "pdf", + "encryption", + "permissions", "xml", - "digital-signature", - "certificate", - "aspose" + "aspose.pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.PKCS7", - "Aspose.Pdf.Document.Form.Add", - "Aspose.Pdf.Forms.SignatureField.Sign", + "Aspose.Pdf.Permissions", + "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.Encrypt", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "split-pdf-into-chapters.cs", - "title": "Split PDF into Chapters Using Outlines", - "description": "Demonstrates loading an XML file as a PDF, reading top‑level outlines (bookmarks) to determine chapter start pages, and saving each chapter as a separate PDF file.", + "filename": "set-pdf-viewer-preferences-from-xml.cs", + "title": "Set Pdf Viewer Preferences From Xml", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "set-pdf-viewer-preferences-xml-to-pdf.cs", + "title": "Set PDF Viewer Preferences When Converting XML to PDF", + "description": "Demonstrates loading an XML file with Aspose.Pdf, configuring viewer preferences such as FitWindow and PageMode, and saving the output as a PDF.", "tags": [ "pdf", - "split", - "chapters", - "outlines", - "aspose-pdf" + "viewer-preferences", + "xml", + "aspose-pdf", + "fit-window" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.OutlineItemCollection", - "Aspose.Pdf.Annotations.GoToAction", - "Aspose.Pdf.Annotations.ExplicitDestination", - "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Document.FitWindow", + "Aspose.Pdf.Document.PageMode", + "Aspose.Pdf.PageMode", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate" + "difficulty": "beginner" }, { - "filename": "thread-safe-xml-to-pdf-conversion.cs", - "title": "Thread‑Safe XML to PDF Conversion Using Parallel Processing", - "description": "Demonstrates converting multiple XML files to PDF concurrently with Aspose.Pdf, using XmlLoadOptions and Document inside a Parallel.ForEach loop to ensure thread safety.", - "tags": [ - "xml", - "pdf", - "parallel", - "aspose", - "thread-safe" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Dispose" - ], - "difficulty": "intermediate" + "filename": "sign-pdf-from-xml-with-certificate.cs", + "title": "Sign Pdf From Xml With Certificate", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "validate-pdfa-2b-compliance-xml-to-pdf.cs", - "title": "Validate PDF/A-2b Compliance After Converting XML to PDF", - "description": "Loads an XML file, converts it to a PDF using Aspose.Pdf, then validates the PDF against PDF/A-2b standards and writes a validation log.", - "tags": [ - "pdfa", - "validation", - "xml-to-pdf", - "aspose.pdf", - "archival" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.XmlLoadOptions", - "Document.Save", - "Document.Validate", - "PdfFormat.PDF_A_2B", - "Document.IsPdfaCompliant" - ], - "difficulty": "intermediate" + "filename": "split-pdf-into-chapters.cs", + "title": "Split Pdf Into Chapters", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" }, { - "filename": "validate-xml-xsd-generate-pdf.cs", - "title": "Validate XML against XSD and Generate PDF", - "description": "The example validates an XML file using an XSD schema and, if valid, creates a PDF with Aspose.Pdf that contains the extracted message element.", + "filename": "split-xml-pdf-into-multiple-files.cs", + "title": "Split Large XML‑Converted PDF into Multiple Files with Continuous Page Numbers", + "description": "Demonstrates loading an XML file as a PDF with Aspose.Pdf, splitting the resulting document into smaller PDFs of a configurable page count, and adding sequential page numbers that continue across all parts.", "tags": [ "xml", - "xsd", - "validation", "pdf", + "splitting", + "pagination", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.Position", - "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.XmlLoadOptions", + "Aspose.Pdf.Text.PageNumberStamp", "Aspose.Pdf.FontRepository.FindFont", + "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" }, { - "filename": "xml-to-pdf-conversion-with-xslt-tests.cs", - "title": "XML to PDF Conversion with XSLT Unit Tests", - "description": "Demonstrates converting XML documents to PDF using Aspose.Pdf with and without XSLT transformations, including passing XSLT parameters, wrapped in NUnit-style unit tests.", + "filename": "thread-safe-xml-to-pdf-conversion.cs", + "title": "Thread Safe Xml To Pdf Conversion", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "transform-xml-xsl-to-pdf-multiple-namespaces.cs", + "title": "Transform XML with XSLT to PDF Handling Multiple Namespaces", + "description": "Demonstrates how to apply an XSLT stylesheet to an XML file and generate a PDF with Aspose.Pdf while explicitly loading the XSLT stream to avoid namespace conflicts.", "tags": [ "xml", - "pdf", "xslt", - "aspose", - "unit-testing" + "pdf", + "aspose.pdf", + "namespaces" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.XslFoLoadOptions", - "Aspose.Pdf.XsltArgumentList" + "Aspose.Pdf.Document..ctor(string, XmlLoadOptions)", + "Aspose.Pdf.XmlLoadOptions..ctor(Stream)", + "Aspose.Pdf.Document.Save(string)" ], "difficulty": "intermediate" }, { - "filename": "xml-to-pdf-validation-with-logging.cs", - "title": "Convert XML to PDF and Validate PDF/A‑1B with Detailed Logging", - "description": "Demonstrates loading an XML file as a PDF using Aspose.Pdf, validating the result against PDF/A‑1B, and recording step‑by‑step processing and error information to log files.", + "filename": "validate-pdfa-2b-compliance-xml-to-pdf.cs", + "title": "Validate Pdfa 2B Compliance Xml To Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "validate-xml-xsd-before-pdf-generation.cs", + "title": "Validate XML against XSD before Generating PDF with Aspose.Pdf", + "description": "The example validates an XML file against an XSD schema and, if validation succeeds, loads the XML into an Aspose.Pdf Document and saves it as a PDF.", "tags": [ - "xml", - "pdf", - "validation", - "logging", - "aspose-pdf" + "xml-validation", + "xsd", + "pdf-generation", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.Document.Validate", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.PdfFormat", - "Aspose.Pdf.PdfException" + "Aspose.Pdf.Document..ctor", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate" + }, + { + "filename": "validate-xml-xsd-generate-pdf.cs", + "title": "Validate Xml Xsd Generate Pdf", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "xml-to-pdf-conversion-with-xslt-tests.cs", + "title": "Xml To Pdf Conversion With Xslt Tests", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" + }, + { + "filename": "xml-to-pdf-validation-with-logging.cs", + "title": "Xml To Pdf Validation With Logging", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "" } ] } diff --git a/llm.txt b/llm.txt index dc3d2bf45..dbef97b48 100644 --- a/llm.txt +++ b/llm.txt @@ -1,12 +1,12 @@ # Aspose.PDF for .NET Examples > Build-validated, compiler-verified C# examples for Aspose.PDF for .NET -- Examples: 2,636 +- Examples: 3,998 - Categories: 35 - Pass Rate: 100.0% -- NuGet Version: 26.7.0 +- NuGet Version: 26.8.0 - Framework: net10.0 -- Last Updated: 2026-07-21 +- Last Updated: 2026-09-10 - Structured index: ./index.json - Agent instructions: ./AGENTS.md - Product documentation: https://docs.aspose.com/pdf/net/ @@ -32,41 +32,41 @@ ## Categories -- [accessibility-and-tagged-pdfs](./accessibility-and-tagged-pdfs/): 45 build-verified examples; instructions in [AGENTS.md](./accessibility-and-tagged-pdfs/AGENTS.md) -- [basic-operations](./basic-operations/): 57 build-verified examples; instructions in [AGENTS.md](./basic-operations/AGENTS.md) -- [compare-pdf](./compare-pdf/): 29 build-verified examples; instructions in [AGENTS.md](./compare-pdf/AGENTS.md) -- [conversion](./conversion/): 102 build-verified examples; instructions in [AGENTS.md](./conversion/AGENTS.md) -- [document](./document/): 117 build-verified examples; instructions in [AGENTS.md](./document/AGENTS.md) -- [facades-acroforms](./facades-acroforms/): 41 build-verified examples; instructions in [AGENTS.md](./facades-acroforms/AGENTS.md) -- [facades-annotations](./facades-annotations/): 106 build-verified examples; instructions in [AGENTS.md](./facades-annotations/AGENTS.md) -- [facades-bookmarks](./facades-bookmarks/): 35 build-verified examples; instructions in [AGENTS.md](./facades-bookmarks/AGENTS.md) -- [facades-convert-documents](./facades-convert-documents/): 36 build-verified examples; instructions in [AGENTS.md](./facades-convert-documents/AGENTS.md) -- [facades-documents](./facades-documents/): 101 build-verified examples; instructions in [AGENTS.md](./facades-documents/AGENTS.md) -- [facades-edit-document](./facades-edit-document/): 213 build-verified examples; instructions in [AGENTS.md](./facades-edit-document/AGENTS.md) -- [facades-extract-images-and-text](./facades-extract-images-and-text/): 83 build-verified examples; instructions in [AGENTS.md](./facades-extract-images-and-text/AGENTS.md) -- [facades-fill-forms](./facades-fill-forms/): 35 build-verified examples; instructions in [AGENTS.md](./facades-fill-forms/AGENTS.md) -- [facades-forms](./facades-forms/): 85 build-verified examples; instructions in [AGENTS.md](./facades-forms/AGENTS.md) -- [facades-metadata](./facades-metadata/): 40 build-verified examples; instructions in [AGENTS.md](./facades-metadata/AGENTS.md) -- [facades-pages](./facades-pages/): 117 build-verified examples; instructions in [AGENTS.md](./facades-pages/AGENTS.md) -- [facades-secure-documents](./facades-secure-documents/): 38 build-verified examples; instructions in [AGENTS.md](./facades-secure-documents/AGENTS.md) -- [facades-sign-documents](./facades-sign-documents/): 35 build-verified examples; instructions in [AGENTS.md](./facades-sign-documents/AGENTS.md) -- [facades-stamps](./facades-stamps/): 48 build-verified examples; instructions in [AGENTS.md](./facades-stamps/AGENTS.md) -- [facades-texts-and-images](./facades-texts-and-images/): 28 build-verified examples; instructions in [AGENTS.md](./facades-texts-and-images/AGENTS.md) -- [facades-xmp-metadata](./facades-xmp-metadata/): 44 build-verified examples; instructions in [AGENTS.md](./facades-xmp-metadata/AGENTS.md) -- [graphs-zugferd-operators](./graphs-zugferd-operators/): 82 build-verified examples; instructions in [AGENTS.md](./graphs-zugferd-operators/AGENTS.md) -- [pages](./pages/): 100 build-verified examples; instructions in [AGENTS.md](./pages/AGENTS.md) -- [parse-pdf](./parse-pdf/): 63 build-verified examples; instructions in [AGENTS.md](./parse-pdf/AGENTS.md) -- [securing-and-signing-pdf](./securing-and-signing-pdf/): 78 build-verified examples; instructions in [AGENTS.md](./securing-and-signing-pdf/AGENTS.md) -- [stamping](./stamping/): 50 build-verified examples; instructions in [AGENTS.md](./stamping/AGENTS.md) +- [accessibility-and-tagged-pdfs](./accessibility-and-tagged-pdfs/): 70 build-verified examples; instructions in [AGENTS.md](./accessibility-and-tagged-pdfs/AGENTS.md) +- [basic-operations](./basic-operations/): 77 build-verified examples; instructions in [AGENTS.md](./basic-operations/AGENTS.md) +- [compare-pdf](./compare-pdf/): 44 build-verified examples; instructions in [AGENTS.md](./compare-pdf/AGENTS.md) +- [conversion](./conversion/): 150 build-verified examples; instructions in [AGENTS.md](./conversion/AGENTS.md) +- [document](./document/): 175 build-verified examples; instructions in [AGENTS.md](./document/AGENTS.md) +- [facades-acroforms](./facades-acroforms/): 59 build-verified examples; instructions in [AGENTS.md](./facades-acroforms/AGENTS.md) +- [facades-annotations](./facades-annotations/): 155 build-verified examples; instructions in [AGENTS.md](./facades-annotations/AGENTS.md) +- [facades-bookmarks](./facades-bookmarks/): 48 build-verified examples; instructions in [AGENTS.md](./facades-bookmarks/AGENTS.md) +- [facades-convert-documents](./facades-convert-documents/): 51 build-verified examples; instructions in [AGENTS.md](./facades-convert-documents/AGENTS.md) +- [facades-documents](./facades-documents/): 153 build-verified examples; instructions in [AGENTS.md](./facades-documents/AGENTS.md) +- [facades-edit-document](./facades-edit-document/): 328 build-verified examples; instructions in [AGENTS.md](./facades-edit-document/AGENTS.md) +- [facades-extract-images-and-text](./facades-extract-images-and-text/): 125 build-verified examples; instructions in [AGENTS.md](./facades-extract-images-and-text/AGENTS.md) +- [facades-fill-forms](./facades-fill-forms/): 61 build-verified examples; instructions in [AGENTS.md](./facades-fill-forms/AGENTS.md) +- [facades-forms](./facades-forms/): 132 build-verified examples; instructions in [AGENTS.md](./facades-forms/AGENTS.md) +- [facades-metadata](./facades-metadata/): 58 build-verified examples; instructions in [AGENTS.md](./facades-metadata/AGENTS.md) +- [facades-pages](./facades-pages/): 185 build-verified examples; instructions in [AGENTS.md](./facades-pages/AGENTS.md) +- [facades-secure-documents](./facades-secure-documents/): 59 build-verified examples; instructions in [AGENTS.md](./facades-secure-documents/AGENTS.md) +- [facades-sign-documents](./facades-sign-documents/): 61 build-verified examples; instructions in [AGENTS.md](./facades-sign-documents/AGENTS.md) +- [facades-stamps](./facades-stamps/): 82 build-verified examples; instructions in [AGENTS.md](./facades-stamps/AGENTS.md) +- [facades-texts-and-images](./facades-texts-and-images/): 45 build-verified examples; instructions in [AGENTS.md](./facades-texts-and-images/AGENTS.md) +- [facades-xmp-metadata](./facades-xmp-metadata/): 72 build-verified examples; instructions in [AGENTS.md](./facades-xmp-metadata/AGENTS.md) +- [graphs-zugferd-operators](./graphs-zugferd-operators/): 124 build-verified examples; instructions in [AGENTS.md](./graphs-zugferd-operators/AGENTS.md) +- [pages](./pages/): 133 build-verified examples; instructions in [AGENTS.md](./pages/AGENTS.md) +- [parse-pdf](./parse-pdf/): 97 build-verified examples; instructions in [AGENTS.md](./parse-pdf/AGENTS.md) +- [securing-and-signing-pdf](./securing-and-signing-pdf/): 116 build-verified examples; instructions in [AGENTS.md](./securing-and-signing-pdf/AGENTS.md) +- [stamping](./stamping/): 72 build-verified examples; instructions in [AGENTS.md](./stamping/AGENTS.md) - [uncategorized](./uncategorized/): 1 build-verified examples; instructions in [AGENTS.md](./uncategorized/AGENTS.md) -- [working-with-annotations](./working-with-annotations/): 156 build-verified examples; instructions in [AGENTS.md](./working-with-annotations/AGENTS.md) -- [working-with-attachments](./working-with-attachments/): 50 build-verified examples; instructions in [AGENTS.md](./working-with-attachments/AGENTS.md) -- [working-with-forms](./working-with-forms/): 230 build-verified examples; instructions in [AGENTS.md](./working-with-forms/AGENTS.md) -- [working-with-graphs](./working-with-graphs/): 77 build-verified examples; instructions in [AGENTS.md](./working-with-graphs/AGENTS.md) -- [working-with-images](./working-with-images/): 72 build-verified examples; instructions in [AGENTS.md](./working-with-images/AGENTS.md) -- [working-with-tables](./working-with-tables/): 96 build-verified examples; instructions in [AGENTS.md](./working-with-tables/AGENTS.md) -- [working-with-text](./working-with-text/): 73 build-verified examples; instructions in [AGENTS.md](./working-with-text/AGENTS.md) -- [working-with-xml](./working-with-xml/): 73 build-verified examples; instructions in [AGENTS.md](./working-with-xml/AGENTS.md) +- [working-with-annotations](./working-with-annotations/): 216 build-verified examples; instructions in [AGENTS.md](./working-with-annotations/AGENTS.md) +- [working-with-attachments](./working-with-attachments/): 69 build-verified examples; instructions in [AGENTS.md](./working-with-attachments/AGENTS.md) +- [working-with-forms](./working-with-forms/): 358 build-verified examples; instructions in [AGENTS.md](./working-with-forms/AGENTS.md) +- [working-with-graphs](./working-with-graphs/): 129 build-verified examples; instructions in [AGENTS.md](./working-with-graphs/AGENTS.md) +- [working-with-images](./working-with-images/): 105 build-verified examples; instructions in [AGENTS.md](./working-with-images/AGENTS.md) +- [working-with-tables](./working-with-tables/): 153 build-verified examples; instructions in [AGENTS.md](./working-with-tables/AGENTS.md) +- [working-with-text](./working-with-text/): 114 build-verified examples; instructions in [AGENTS.md](./working-with-text/AGENTS.md) +- [working-with-xml](./working-with-xml/): 121 build-verified examples; instructions in [AGENTS.md](./working-with-xml/AGENTS.md) ## See Also diff --git a/pages/AGENTS.md b/pages/AGENTS.md index a7b7f52a2..3a5c5e947 100644 --- a/pages/AGENTS.md +++ b/pages/AGENTS.md @@ -8,7 +8,7 @@ parent: ../agents.md # AGENTS - pages -> **Pages** in PDF using C# / .NET -- **100** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. +> **Pages** in PDF using C# / .NET -- **133** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. ## Persona @@ -23,16 +23,16 @@ See the root [agents.md](../agents.md) for repository-wide conventions and bound ## Required Namespaces -- `using Aspose.Pdf;` (100/100 files) ← category-specific -- `using Aspose.Pdf.Text;` (17/100 files) -- `using Aspose.Pdf.Facades;` (3/100 files) -- `using Aspose.Pdf.Annotations;` (2/100 files) -- `using Aspose.Pdf.Drawing;` (2/100 files) -- `using System;` (100/100 files) -- `using System.IO;` (98/100 files) -- `using System.Collections.Generic;` (5/100 files) -- `using System.Linq;` (4/100 files) -- `using System.Text.Json;` (1/100 files) +- `using Aspose.Pdf;` (100/133 files) ← category-specific +- `using Aspose.Pdf.Text;` (17/133 files) +- `using Aspose.Pdf.Facades;` (3/133 files) +- `using Aspose.Pdf.Annotations;` (2/133 files) +- `using Aspose.Pdf.Drawing;` (2/133 files) +- `using System;` (100/133 files) +- `using System.IO;` (98/133 files) +- `using System.Collections.Generic;` (5/133 files) +- `using System.Linq;` (4/133 files) +- `using System.Text.Json;` (1/133 files) ## Common Code Pattern @@ -50,40 +50,40 @@ using (Document doc = new Document("input.pdf")) | File | Title | Key APIs | Description | |------|-------|----------|-------------| +| [add-alphanumeric-bates-numbering-to-pdf](./add-alphanumeric-bates-numbering-to-pdf.cs) | Add alphanumeric bates numbering to pdf | | Add alphanumeric bates numbering to pdf | +| [add-bates-numbering-increment-5](./add-bates-numbering-increment-5.cs) | Add bates numbering increment 5 | | Add bates numbering increment 5 | | [add-bates-numbering-to-pdf-pages](./add-bates-numbering-to-pdf-pages.cs) | Add Bates Numbering to PDF Pages | `Document`, `Pages`, `AddBatesNumbering` | Shows how to insert Bates numbering stamps starting at 1000 with a dash separator on every page o... | | [add-bates-numbering-to-pdf-pages__v2](./add-bates-numbering-to-pdf-pages__v2.cs) | Add Bates Numbering to PDF Pages | `Document`, `Pages`, `AddBatesNumbering` | Loads a PDF document, applies year‑based Bates numbering (format "2026-####") to each page, and s... | +| [add-bates-numbering-to-pdf](./add-bates-numbering-to-pdf.cs) | Add bates numbering to pdf | | Add bates numbering to pdf | | [add-bates-numbering-with-custom-prefix-suffix](./add-bates-numbering-with-custom-prefix-suffix.cs) | Add Bates Numbering with Custom Prefix and Suffix to PDF | `Document`, `PageCollection`, `AddBatesNumbering` | Demonstrates loading a PDF with Aspose.Pdf, applying Bates numbering that includes a custom prefi... | | [add-bates-numbering-with-prefix](./add-bates-numbering-with-prefix.cs) | Add Bates Numbering with Alphanumeric Prefix to PDF | `Document`, `Pages`, `AddBatesNumbering` | Shows how to load a PDF using Aspose.Pdf, apply Bates numbering with a custom alphanumeric prefix... | | [add-blank-front-matter-page-roman-label](./add-blank-front-matter-page-roman-label.cs) | Add Blank Front‑Matter Page with Roman Numeral Label | `Document`, `Page`, `PageLabel` | Demonstrates how to insert a blank page at the beginning of an existing PDF and assign a custom p... | +| [add-blank-front-matter-page-with-label-i](./add-blank-front-matter-page-with-label-i.cs) | Add blank front matter page with label i | | Add blank front matter page with label i | | [add-bold-uppercase-header-to-pdf-pages](./add-bold-uppercase-header-to-pdf-pages.cs) | Add Bold Uppercase Header to PDF Pages | `Document`, `Page`, `HeaderFooter` | Shows how to insert a bold, uppercase header on every page of a PDF document using Aspose.Pdf. | | [add-chapter-page-numbers-to-pdf](./add-chapter-page-numbers-to-pdf.cs) | Add Chapter Prefix Page Numbers to PDF | `Document`, `PageNumberStamp`, `FindFont` | Demonstrates how to insert page numbers with a custom "Chapter" prefix on every page of a PDF usi... | +| [add-curved-text-watermark-to-pdf-page](./add-curved-text-watermark-to-pdf-page.cs) | Add curved text watermark to pdf page | | Add curved text watermark to pdf page | | [add-curved-text-watermark-to-pdf-pages](./add-curved-text-watermark-to-pdf-pages.cs) | Add Curved Text Watermark to PDF Pages | `Document`, `Page`, `WatermarkArtifact` | Shows how to place a repeated watermark that follows a curved arc across each page of a PDF using... | | [add-custom-page-numbers-to-pdf](./add-custom-page-numbers-to-pdf.cs) | Add Custom Page Numbers to PDF | `Document`, `PageNumberStamp`, `AddStamp` | Demonstrates how to load a PDF with Aspose.Pdf, create a PageNumberStamp using the format "Page X... | | [add-diagonal-text-watermark-to-pdf-pages](./add-diagonal-text-watermark-to-pdf-pages.cs) | Add Diagonal Text Watermark to PDF Pages | `Document`, `Page`, `TextStamp` | Shows how to load a PDF, iterate through its pages, and apply a semi‑transparent diagonal text wa... | | [add-generation-date-footer-to-pdf-pages](./add-generation-date-footer-to-pdf-pages.cs) | Add Generation Date Footer to Each PDF Page | `Document`, `Page`, `FooterArtifact` | Demonstrates how to add a text footer with the current generation date to every page of a PDF usi... | | [add-header-logo-image-to-pdf-pages](./add-header-logo-image-to-pdf-pages.cs) | Add Header Logo Image to PDF Pages | `Document`, `ImageStamp`, `AddStamp` | Shows how to load a PDF, create an ImageStamp for a company logo, align it to the top‑left of eac... | | [add-header-to-first-pdf-page](./add-header-to-first-pdf-page.cs) | Add Header Text to First PDF Page Using MarginInfo | `Document`, `HeaderFooter`, `MarginInfo` | Demonstrates how to add a text header to the first page of a PDF by configuring a HeaderFooter wi... | +| [add-header-with-logo-to-pdf-pages](./add-header-with-logo-to-pdf-pages.cs) | Add header with logo to pdf pages | | Add header with logo to pdf pages | | [add-html-header-to-first-three-pdf-pages](./add-html-header-to-first-three-pdf-pages.cs) | Add HTML Header with CSS to First Three PDF Pages | `Document`, `Page`, `HtmlFragment` | Demonstrates how to embed a styled HTML header into the first three pages of a PDF using Aspose.P... | +| [add-image-footer-30-opacity](./add-image-footer-30-opacity.cs) | Add image footer 30 opacity | | Add image footer 30 opacity | | [add-image-footer-to-pdf-pages](./add-image-footer-to-pdf-pages.cs) | Add Image Footer with Opacity to PDF Pages | `Document`, `Page`, `FooterArtifact` | Demonstrates how to add an image footer with 30% opacity to every page of a PDF using Aspose.Pdf. | | [add-image-footer-with-scaling-to-pdf-pages](./add-image-footer-with-scaling-to-pdf-pages.cs) | Add Image Footer with Scaling to PDF Pages | `Document`, `Page`, `Image` | Shows how to insert a scaled footer image on every page of a PDF document using Aspose.Pdf. | | [add-image-watermark-with-opacity-to-pdf-pages](./add-image-watermark-with-opacity-to-pdf-pages.cs) | Add Image Watermark with Opacity to PDF Pages | `Document`, `ImageStamp`, `AddStamp` | Demonstrates how to overlay a semi‑transparent image (logo) on every page of a PDF using Aspose.P... | | [add-lightgray-background-to-pdf-pages](./add-lightgray-background-to-pdf-pages.cs) | Add LightGray Background to PDF Pages | `Document`, `Page`, `Color` | Shows how to load a PDF with Aspose.Pdf, iterate over each page, set a LightGray background color... | +| [add-multiple-empty-pages-sequentially](./add-multiple-empty-pages-sequentially.cs) | Add multiple empty pages sequentially | | Add multiple empty pages sequentially | | [add-multiple-empty-pages-to-pdf](./add-multiple-empty-pages-to-pdf.cs) | Add Multiple Empty Pages Sequentially to PDF | `Document`, `Pages`, `PageCollection` | Demonstrates how to add a series of empty pages to a PDF by iterating over a list of page counts,... | +| [add-page-numbers-leading-zeros](./add-page-numbers-leading-zeros.cs) | Add page numbers leading zeros | | Add page numbers leading zeros | | [add-page-numbers-to-even-pdf-pages](./add-page-numbers-to-even-pdf-pages.cs) | Add Page Numbers to Even PDF Pages | `Document`, `PageNumberStamp`, `HorizontalAlignment` | Demonstrates loading a PDF with Aspose.Pdf, iterating through its pages, and adding a page number... | | [add-page-numbers-to-odd-pdf-pages](./add-page-numbers-to-odd-pdf-pages.cs) | Add Page Numbers to Odd PDF Pages | `Document`, `PageNumberStamp`, `Put` | Demonstrates loading a PDF with Aspose.Pdf, iterating through its pages, and applying a page numb... | -| [add-page-numbers-to-pdf](./add-page-numbers-to-pdf.cs) | Add Page Numbers to PDF Pages | `Document`, `PageNumberStamp`, `AddStamp` | Shows how to insert a centered page number stamp starting at 1 on every page of a PDF using Aspos... | -| [add-page-numbers-with-custom-embedded-font](./add-page-numbers-with-custom-embedded-font.cs) | Add Page Numbers with Custom Embedded Font to PDF | `Document`, `FindFont`, `Font` | Demonstrates how to insert page numbers on every PDF page using a TrueType font loaded from an ex... | -| [add-repeating-image-watermark-to-pdf-pages](./add-repeating-image-watermark-to-pdf-pages.cs) | Add Repeating Image Watermark to PDF Pages | `Document`, `Page`, `ImageStamp` | Demonstrates how to overlay a semi‑transparent image repeatedly in a grid pattern on every page o... | -| [add-roman-numeral-page-numbers](./add-roman-numeral-page-numbers.cs) | Add Roman Numeral Page Numbers to Introductory PDF Pages | `Document`, `PageNumberStamp`, `NumberingStyle` | Demonstrates how to insert page numbers in uppercase Roman numeral format on the first few pages ... | -| [add-rotated-image-watermark-to-pdf-pages](./add-rotated-image-watermark-to-pdf-pages.cs) | Add Rotated Image Watermark to PDF Pages | `Document`, `Page`, `ImageStamp` | Demonstrates how to overlay a 45‑degree rotated, half‑size image as a watermark on every page of ... | -| [add-semi-transparent-text-watermark](./add-semi-transparent-text-watermark.cs) | Add Semi-Transparent Text Watermark with Outline to PDF Page... | `Document`, `AddStamp`, `TextStamp` | Demonstrates how to load a PDF, iterate through its pages, and apply a semi‑transparent text wate... | -| [add-superscript-page-numbers-to-pdf](./add-superscript-page-numbers-to-pdf.cs) | Add Superscript Page Numbers to PDF Pages | `Document`, `Page`, `PageNumberStamp` | Shows how to insert page numbers with a superscript‑style appearance on every page of a PDF using... | -| [add-year-text-watermark-to-pdf](./add-year-text-watermark-to-pdf.cs) | Add Year-Based Text Watermark to PDF | `Document`, `AddStamp`, `TextStamp` | Shows how to load a PDF, create a TextStamp that includes the current year, apply it to every pag... | -| [adjust-pdf-bleedbox-for-printer-specs](./adjust-pdf-bleedbox-for-printer-specs.cs) | Adjust PDF BleedBox for Printer Specifications | `Document`, `Page`, `Rectangle` | Shows how to read each page's BleedBox, expand it by a margin, and save the modified PDF using As... | -| ... | | | *and 70 more files* | +| ... | | | *and 103 more files* | ## Category Statistics -- Total examples: 100 +- Total examples: 133 ## Category-Specific Tips @@ -123,5 +123,5 @@ using (Document doc = new Document("input.pdf")) - Review code examples in this folder for pages patterns -Updated: 2026-08-20 | Run: `20260820_001147_12d7b3` +Updated: 2026-09-10 | Run: `20260910_054408_87a7f4` diff --git a/pages/README.md b/pages/README.md new file mode 100644 index 000000000..3d94c2d13 --- /dev/null +++ b/pages/README.md @@ -0,0 +1,152 @@ +# Pages + +> **Pages** in PDF using C# / .NET -- **133** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. + +- Category: `pages` +- Examples: 133 +- NuGet: `Aspose.PDF 26.8.0` -- target `net10.0` + +## Examples + +- [`add-alphanumeric-bates-numbering-to-pdf.cs`](./add-alphanumeric-bates-numbering-to-pdf.cs) -- Add alphanumeric bates numbering to pdf +- [`add-bates-numbering-increment-5.cs`](./add-bates-numbering-increment-5.cs) -- Add bates numbering increment 5 +- [`add-bates-numbering-to-pdf-pages.cs`](./add-bates-numbering-to-pdf-pages.cs) -- Add bates numbering to pdf pages +- [`add-bates-numbering-to-pdf-pages__v2.cs`](./add-bates-numbering-to-pdf-pages__v2.cs) -- Add bates numbering to pdf pages v2 +- [`add-bates-numbering-to-pdf.cs`](./add-bates-numbering-to-pdf.cs) -- Add bates numbering to pdf +- [`add-bates-numbering-with-custom-prefix-suffix.cs`](./add-bates-numbering-with-custom-prefix-suffix.cs) -- Add bates numbering with custom prefix suffix +- [`add-bates-numbering-with-prefix.cs`](./add-bates-numbering-with-prefix.cs) -- Add bates numbering with prefix +- [`add-blank-front-matter-page-roman-label.cs`](./add-blank-front-matter-page-roman-label.cs) -- Add blank front matter page roman label +- [`add-blank-front-matter-page-with-label-i.cs`](./add-blank-front-matter-page-with-label-i.cs) -- Add blank front matter page with label i +- [`add-bold-uppercase-header-to-pdf-pages.cs`](./add-bold-uppercase-header-to-pdf-pages.cs) -- Add bold uppercase header to pdf pages +- [`add-chapter-page-numbers-to-pdf.cs`](./add-chapter-page-numbers-to-pdf.cs) -- Add chapter page numbers to pdf +- [`add-curved-text-watermark-to-pdf-page.cs`](./add-curved-text-watermark-to-pdf-page.cs) -- Add curved text watermark to pdf page +- [`add-curved-text-watermark-to-pdf-pages.cs`](./add-curved-text-watermark-to-pdf-pages.cs) -- Add curved text watermark to pdf pages +- [`add-custom-page-numbers-to-pdf.cs`](./add-custom-page-numbers-to-pdf.cs) -- Add custom page numbers to pdf +- [`add-diagonal-text-watermark-to-pdf-pages.cs`](./add-diagonal-text-watermark-to-pdf-pages.cs) -- Add diagonal text watermark to pdf pages +- [`add-generation-date-footer-to-pdf-pages.cs`](./add-generation-date-footer-to-pdf-pages.cs) -- Add generation date footer to pdf pages +- [`add-header-logo-image-to-pdf-pages.cs`](./add-header-logo-image-to-pdf-pages.cs) -- Add header logo image to pdf pages +- [`add-header-to-first-pdf-page.cs`](./add-header-to-first-pdf-page.cs) -- Add header to first pdf page +- [`add-header-with-logo-to-pdf-pages.cs`](./add-header-with-logo-to-pdf-pages.cs) -- Add header with logo to pdf pages +- [`add-html-header-to-first-three-pdf-pages.cs`](./add-html-header-to-first-three-pdf-pages.cs) -- Add html header to first three pdf pages +- [`add-image-footer-30-opacity.cs`](./add-image-footer-30-opacity.cs) -- Add image footer 30 opacity +- [`add-image-footer-to-pdf-pages.cs`](./add-image-footer-to-pdf-pages.cs) -- Add image footer to pdf pages +- [`add-image-footer-with-scaling-to-pdf-pages.cs`](./add-image-footer-with-scaling-to-pdf-pages.cs) -- Add image footer with scaling to pdf pages +- [`add-image-watermark-with-opacity-to-pdf-pages.cs`](./add-image-watermark-with-opacity-to-pdf-pages.cs) -- Add image watermark with opacity to pdf pages +- [`add-lightgray-background-to-pdf-pages.cs`](./add-lightgray-background-to-pdf-pages.cs) -- Add lightgray background to pdf pages +- [`add-multiple-empty-pages-sequentially.cs`](./add-multiple-empty-pages-sequentially.cs) -- Add multiple empty pages sequentially +- [`add-multiple-empty-pages-to-pdf.cs`](./add-multiple-empty-pages-to-pdf.cs) -- Add multiple empty pages to pdf +- [`add-page-numbers-leading-zeros.cs`](./add-page-numbers-leading-zeros.cs) -- Add page numbers leading zeros +- [`add-page-numbers-to-even-pdf-pages.cs`](./add-page-numbers-to-even-pdf-pages.cs) -- Add page numbers to even pdf pages +- [`add-page-numbers-to-odd-pdf-pages.cs`](./add-page-numbers-to-odd-pdf-pages.cs) -- Add page numbers to odd pdf pages +- [`add-page-numbers-to-pdf.cs`](./add-page-numbers-to-pdf.cs) -- Add page numbers to pdf +- [`add-page-numbers-with-custom-embedded-font.cs`](./add-page-numbers-with-custom-embedded-font.cs) -- Add page numbers with custom embedded font +- [`add-page-numbers-with-custom-font.cs`](./add-page-numbers-with-custom-font.cs) -- Add page numbers with custom font +- [`add-repeating-image-watermark-to-pdf-pages.cs`](./add-repeating-image-watermark-to-pdf-pages.cs) -- Add repeating image watermark to pdf pages +- [`add-roman-numeral-page-numbers.cs`](./add-roman-numeral-page-numbers.cs) -- Add roman numeral page numbers +- [`add-rotated-image-watermark-to-pdf-pages.cs`](./add-rotated-image-watermark-to-pdf-pages.cs) -- Add rotated image watermark to pdf pages +- [`add-scaled-image-footer-to-pdf-pages.cs`](./add-scaled-image-footer-to-pdf-pages.cs) -- Add scaled image footer to pdf pages +- [`add-semi-transparent-text-watermark.cs`](./add-semi-transparent-text-watermark.cs) -- Add semi transparent text watermark +- [`add-superscript-page-numbers-to-pdf.cs`](./add-superscript-page-numbers-to-pdf.cs) -- Add superscript page numbers to pdf +- [`add-year-text-watermark-to-pdf.cs`](./add-year-text-watermark-to-pdf.cs) -- Add year text watermark to pdf +- [`adjust-media-box-to-crop-pdf-page.cs`](./adjust-media-box-to-crop-pdf-page.cs) -- Adjust media box to crop pdf page +- [`adjust-pdf-bleedbox-for-printer-specs.cs`](./adjust-pdf-bleedbox-for-printer-specs.cs) -- Adjust pdf bleedbox for printer specs +- [`adjust-pdf-bleedbox-margins.cs`](./adjust-pdf-bleedbox-margins.cs) -- Adjust pdf bleedbox margins +- [`append-empty-a4-page-to-pdf.cs`](./append-empty-a4-page-to-pdf.cs) -- Append empty a4 page to pdf +- [`append-page-to-pdf.cs`](./append-page-to-pdf.cs) -- Append page to pdf +- [`batch-add-bates-numbering-to-pdf-pages.cs`](./batch-add-bates-numbering-to-pdf-pages.cs) -- Batch add bates numbering to pdf pages +- [`batch-resize-pdf-pages-fixed-width.cs`](./batch-resize-pdf-pages-fixed-width.cs) -- Batch resize pdf pages fixed width +- [`convert-odd-pages-landscape-to-portrait.cs`](./convert-odd-pages-landscape-to-portrait.cs) -- Convert odd pages landscape to portrait +- [`convert-pdf-pages-portrait-to-landscape.cs`](./convert-pdf-pages-portrait-to-landscape.cs) -- Convert pdf pages portrait to landscape +- [`convert-pdf-pages-to-portrait.cs`](./convert-pdf-pages-to-portrait.cs) -- Convert pdf pages to portrait +- [`copy-mediabox-page-8-to-12.cs`](./copy-mediabox-page-8-to-12.cs) -- Copy mediabox page 8 to 12 +- [`crop-pdf-page-media-box.cs`](./crop-pdf-page-media-box.cs) -- Crop pdf page media box +- [`crop-pdf-pages-remove-margins.cs`](./crop-pdf-pages-remove-margins.cs) -- Crop pdf pages remove margins +- [`crop-pdf-pages-to-4-3-aspect-ratio.cs`](./crop-pdf-pages-to-4-3-aspect-ratio.cs) -- Crop pdf pages to 4 3 aspect ratio +- [`crop-pdf-pages-to-4by3-aspect-ratio.cs`](./crop-pdf-pages-to-4by3-aspect-ratio.cs) -- Crop pdf pages to 4by3 aspect ratio +- [`delete-first-page-from-pdf.cs`](./delete-first-page-from-pdf.cs) -- Delete first page from pdf +- [`delete-last-page-from-pdfs.cs`](./delete-last-page-from-pdfs.cs) -- Delete last page from pdfs +- [`delete-last-three-pages-from-pdf.cs`](./delete-last-three-pages-from-pdf.cs) -- Delete last three pages from pdf +- [`delete-page-range-from-pdf.cs`](./delete-page-range-from-pdf.cs) -- Delete page range from pdf +- [`delete-pdf-pages-from-config.cs`](./delete-pdf-pages-from-config.cs) -- Delete pdf pages from config +- [`delete-range-of-pdf-pages.cs`](./delete-range-of-pdf-pages.cs) -- Delete range of pdf pages +- [`delete-specific-pages-from-pdf.cs`](./delete-specific-pages-from-pdf.cs) -- Delete specific pages from pdf +- [`delete-specific-pages-from-pdf__v2.cs`](./delete-specific-pages-from-pdf__v2.cs) -- Delete specific pages from pdf v2 +- [`delete-specified-pdf-pages.cs`](./delete-specified-pdf-pages.cs) -- Delete specified pdf pages +- [`duplicate-pdf-page-insert-after.cs`](./duplicate-pdf-page-insert-after.cs) -- Duplicate pdf page insert after +- [`duplicate-third-page-in-pdf.cs`](./duplicate-third-page-in-pdf.cs) -- Duplicate third page in pdf +- [`export-pdf-page-dimensions-to-csv.cs`](./export-pdf-page-dimensions-to-csv.cs) -- Export pdf page dimensions to csv +- [`extend-bleedbox-beyond-cropbox.cs`](./extend-bleedbox-beyond-cropbox.cs) -- Extend bleedbox beyond cropbox +- [`extract-resize-reinsert-pdf-pages.cs`](./extract-resize-reinsert-pdf-pages.cs) -- Extract resize reinsert pdf pages +- [`insert-blank-page-at-index-three.cs`](./insert-blank-page-at-index-three.cs) -- Insert blank page at index three +- [`insert-blank-pages-after-each-page.cs`](./insert-blank-pages-after-each-page.cs) -- Insert blank pages after each page +- [`insert-custom-page-numbers-pdf.cs`](./insert-custom-page-numbers-pdf.cs) -- Insert custom page numbers pdf +- [`insert-custom-sized-page-at-beginning.cs`](./insert-custom-sized-page-at-beginning.cs) -- Insert custom sized page at beginning +- [`insert-empty-page-custom-size.cs`](./insert-empty-page-custom-size.cs) -- Insert empty page custom size +- [`insert-empty-page-with-custom-size.cs`](./insert-empty-page-with-custom-size.cs) -- Insert empty page with custom size +- [`insert-external-pdf-page-at-index.cs`](./insert-external-pdf-page-at-index.cs) -- Insert external pdf page at index +- [`insert-page-from-another-pdf.cs`](./insert-page-from-another-pdf.cs) -- Insert page from another pdf +- [`insert-page-matching-page2-size.cs`](./insert-page-matching-page2-size.cs) -- Insert page matching page2 size +- [`insert-page-numbers-after-toc.cs`](./insert-page-numbers-after-toc.cs) -- Insert page numbers after toc +- [`insert-page-numbers-arial-font.cs`](./insert-page-numbers-arial-font.cs) -- Insert page numbers arial font +- [`insert-page-numbers-leading-zeros.cs`](./insert-page-numbers-leading-zeros.cs) -- Insert page numbers leading zeros +- [`insert-roman-page-numbers.cs`](./insert-roman-page-numbers.cs) -- Insert roman page numbers +- [`insert-ten-empty-pages-at-pdf-midpoint.cs`](./insert-ten-empty-pages-at-pdf-midpoint.cs) -- Insert ten empty pages at pdf midpoint +- [`insert-transparent-separator-page.cs`](./insert-transparent-separator-page.cs) -- Insert transparent separator page +- [`move-even-pages-to-end.cs`](./move-even-pages-to-end.cs) -- Move even pages to end +- [`move-page-9-to-first-position.cs`](./move-page-9-to-first-position.cs) -- Move page 9 to first position +- [`move-page-between-pdfs-preserving-rotation-size.cs`](./move-page-between-pdfs-preserving-rotation-size.cs) -- Move page between pdfs preserving rotation size +- [`move-pages-3-6-to-end.cs`](./move-pages-3-6-to-end.cs) -- Move pages 3 6 to end +- [`move-pdf-page-to-another-document.cs`](./move-pdf-page-to-another-document.cs) -- Move pdf page to another document +- [`move-pdf-pages-to-end.cs`](./move-pdf-pages-to-end.cs) -- Move pdf pages to end +- [`read-pdf-page-count.cs`](./read-pdf-page-count.cs) -- Read pdf page count +- [`read-pdf-page-dimensions.cs`](./read-pdf-page-dimensions.cs) -- Read pdf page dimensions +- [`read-pdf-page-dimensions__v2.cs`](./read-pdf-page-dimensions__v2.cs) -- Read pdf page dimensions v2 +- [`remove-bates-numbering-add-new-sequence.cs`](./remove-bates-numbering-add-new-sequence.cs) -- Remove bates numbering add new sequence +- [`remove-bates-numbering-from-selected-pdf-pages.cs`](./remove-bates-numbering-from-selected-pdf-pages.cs) -- Remove bates numbering from selected pdf pages +- [`remove-specific-bates-numbering-stamp.cs`](./remove-specific-bates-numbering-stamp.cs) -- Remove specific bates numbering stamp +- [`reorder-pdf-pages-by-orientation.cs`](./reorder-pdf-pages-by-orientation.cs) -- Reorder pdf pages by orientation +- [`reorder-pdf-pages-custom-sequence.cs`](./reorder-pdf-pages-custom-sequence.cs) -- Reorder pdf pages custom sequence +- [`reorder-pdf-pages-descending.cs`](./reorder-pdf-pages-descending.cs) -- Reorder pdf pages descending +- [`replace-bates-numbering-in-pdf.cs`](./replace-bates-numbering-in-pdf.cs) -- Replace bates numbering in pdf +- [`replace-pdf-headers-and-footers.cs`](./replace-pdf-headers-and-footers.cs) -- Replace pdf headers and footers +- [`replace-pdf-headers-footers.cs`](./replace-pdf-headers-footers.cs) -- Replace pdf headers footers +- [`reset-page-rotation.cs`](./reset-page-rotation.cs) -- Reset page rotation +- [`resize-pdf-page-to-letter-size.cs`](./resize-pdf-page-to-letter-size.cs) -- Resize pdf page to letter size +- [`resize-pdf-pages-to-a5.cs`](./resize-pdf-pages-to-a5.cs) -- Resize pdf pages to a5 +- [`resize-pdf-pages-to-match-template-size.cs`](./resize-pdf-pages-to-match-template-size.cs) -- Resize pdf pages to match template size +- [`resize-pdf-pages-to-printable-area.cs`](./resize-pdf-pages-to-printable-area.cs) -- Resize pdf pages to printable area +- [`resize-pdf-pages-to-template-size.cs`](./resize-pdf-pages-to-template-size.cs) -- Resize pdf pages to template size +- [`resize-pdf-pages-to-template-size__v2.cs`](./resize-pdf-pages-to-template-size__v2.cs) -- Resize pdf pages to template size v2 +- [`resize-pdf-pages-uniform-size.cs`](./resize-pdf-pages-uniform-size.cs) -- Resize pdf pages uniform size +- [`resize-wide-pdf-pages-to-a4.cs`](./resize-wide-pdf-pages-to-a4.cs) -- Resize wide pdf pages to a4 +- [`retrieve-trimbox-after-cropping-pdf-page.cs`](./retrieve-trimbox-after-cropping-pdf-page.cs) -- Retrieve trimbox after cropping pdf page +- [`retrieve-trimbox-values-from-pdf-pages.cs`](./retrieve-trimbox-values-from-pdf-pages.cs) -- Retrieve trimbox values from pdf pages +- [`rotate-all-pdf-pages-180-degrees.cs`](./rotate-all-pdf-pages-180-degrees.cs) -- Rotate all pdf pages 180 degrees +- [`rotate-every-third-pdf-page-90-degrees.cs`](./rotate-every-third-pdf-page-90-degrees.cs) -- Rotate every third pdf page 90 degrees +- [`rotate-fourth-page-90-degrees-clockwise.cs`](./rotate-fourth-page-90-degrees-clockwise.cs) -- Rotate fourth page 90 degrees clockwise +- [`rotate-fourth-page-90-degrees.cs`](./rotate-fourth-page-90-degrees.cs) -- Rotate fourth page 90 degrees +- [`rotate-pdf-pages-by-parity.cs`](./rotate-pdf-pages-by-parity.cs) -- Rotate pdf pages by parity +- [`rotate-pdf-pages-reverse-order.cs`](./rotate-pdf-pages-reverse-order.cs) -- Rotate pdf pages reverse order +- [`rotate-pdf-pages-using-config.cs`](./rotate-pdf-pages-using-config.cs) -- Rotate pdf pages using config +- [`set-alternating-page-background-colors.cs`](./set-alternating-page-background-colors.cs) -- Set alternating page background colors +- [`set-custom-size-first-pdf-page.cs`](./set-custom-size-first-pdf-page.cs) -- Set custom size first pdf page +- [`set-page-background-color-hsl.cs`](./set-page-background-color-hsl.cs) -- Set page background color hsl +- [`set-pdf-page-background-cmyk.cs`](./set-pdf-page-background-cmyk.cs) -- Set pdf page background cmyk +- [`set-pdf-page-background-color-from-theme.cs`](./set-pdf-page-background-color-from-theme.cs) -- Set pdf page background color from theme +- [`set-pdf-page-background-color.cs`](./set-pdf-page-background-color.cs) -- Set pdf page background color +- [`set-pdf-page-background-from-theme.cs`](./set-pdf-page-background-from-theme.cs) -- Set pdf page background from theme +- [`set-pdf-page-background-hsl.cs`](./set-pdf-page-background-hsl.cs) -- Set pdf page background hsl +- [`set-pdf-page-background-transparent.cs`](./set-pdf-page-background-transparent.cs) -- Set pdf page background transparent +- [`set-transparent-background-for-pdf-pages.cs`](./set-transparent-background-for-pdf-pages.cs) -- Set transparent background for pdf pages +- [`trim-white-margins-pixel-tolerance.cs`](./trim-white-margins-pixel-tolerance.cs) -- Trim white margins pixel tolerance +- [`trim-white-space-from-pdf-pages.cs`](./trim-white-space-from-pdf-pages.cs) -- Trim white space from pdf pages +- [`trim-white-space-pixel-tolerance.cs`](./trim-white-space-pixel-tolerance.cs) -- Trim white space pixel tolerance + +## See Also + +- [`AGENTS.md`](./AGENTS.md) -- category-specific anti-patterns, API surface, and conventions for AI coding agents +- [`../AGENTS.md`](../AGENTS.md) -- repository-wide agent guide +- [`../README.md`](../README.md) -- full category index and project overview +- [Aspose.PDF for .NET docs](https://docs.aspose.com/pdf/net/) + +> Each `.cs` file is a standalone, build-validated console example. Drop into a fresh `dotnet new console` project, add the `Aspose.PDF` NuGet (version above), and run. diff --git a/pages/index.json b/pages/index.json index 8209886cc..e896b73f7 100644 --- a/pages/index.json +++ b/pages/index.json @@ -1,844 +1,970 @@ { "category": "pages", "nuget_version": "26.8.0", - "last_updated": "2026-08-20T08:13:55Z", + "last_updated": "2026-09-10T12:45:08Z", "examples": { - "append-empty-a4-page-to-pdf": { - "title": "Append Empty A4 Page to PDF", - "filename": "append-empty-a4-page-to-pdf.cs", - "description": "Demonstrates loading an existing PDF, adding a blank A4‑sized page at the end of the document, and saving the modified file.", - "tags": [ - "pdf", - "add-page", - "a4", - "aspose-pdf", - "document" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.PageSize", - "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Page.SetPageSize", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T08:13:55Z", + "add-alphanumeric-bates-numbering-to-pdf": { + "title": "Add Alphanumeric Bates Numbering To Pdf", + "filename": "add-alphanumeric-bates-numbering-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-bates-numbering-increment-5": { + "title": "Add Bates Numbering Increment 5", + "filename": "add-bates-numbering-increment-5.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "insert-blank-page-at-index-three": { - "title": "Insert Blank Page at Specific Position in PDF", - "filename": "insert-blank-page-at-index-three.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, insert a blank page at position 3 using the Pages.Insert method, and save the updated document.", + "add-bates-numbering-to-pdf-pages": { + "title": "Add Bates Numbering to PDF Pages", + "filename": "add-bates-numbering-to-pdf-pages.cs", + "description": "Shows how to insert Bates numbering stamps starting at 1000 with a dash separator on every page of a PDF using Aspose.Pdf.", "tags": [ + "bates-numbering", "pdf", - "insert-page", - "aspose.pdf", - "csharp", - "blank-page" + "pages", + "aspose-pdf", + "stamp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.PageCollection.Insert", - "Aspose.Pdf.PageInfo", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Document.Pages.AddBatesNumbering", + "Aspose.Pdf.Artifact" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "insert-page-matching-page2-size": { - "title": "Insert New Page Matching Page 2 Size", - "filename": "insert-page-matching-page2-size.cs", - "description": "Demonstrates how to copy the width and height of page 2 in a PDF and insert a new empty page at position 5 with the same dimensions using Aspose.Pdf.", + "add-bates-numbering-to-pdf-pages__v2": { + "title": "Add Bates Numbering to PDF Pages", + "filename": "add-bates-numbering-to-pdf-pages__v2.cs", + "description": "Loads a PDF document, applies year‑based Bates numbering (format \"2026-####\") to each page, and saves the updated file.", "tags": [ + "bates-numbering", "pdf", - "page-insertion", - "page-size", + "pages", "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.PageInfo", - "Aspose.Pdf.Page.SetPageSize", - "Aspose.Pdf.Document.Pages.Insert", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Pages.AddBatesNumbering", + "Aspose.Pdf.BatesNumberingArtifact", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "add-multiple-empty-pages-to-pdf": { - "title": "Add Multiple Empty Pages Sequentially to PDF", - "filename": "add-multiple-empty-pages-to-pdf.cs", - "description": "Demonstrates how to add a series of empty pages to a PDF by iterating over a list of page counts, with handling for Aspose.PDF evaluation limits.", + "add-bates-numbering-to-pdf": { + "title": "Add Bates Numbering To Pdf", + "filename": "add-bates-numbering-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-bates-numbering-with-custom-prefix-suffix": { + "title": "Add Bates Numbering with Custom Prefix and Suffix to PDF", + "filename": "add-bates-numbering-with-custom-prefix-suffix.cs", + "description": "Demonstrates loading a PDF with Aspose.Pdf, applying Bates numbering that includes a custom prefix and suffix, and saving the modified document.", "tags": [ + "bates-numbering", "pdf", - "pages", "aspose-pdf", - "evaluation", - "csharp" + "custom-prefix", + "custom-suffix" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages", "Aspose.Pdf.PageCollection", - "Aspose.Pdf.PageCollection.Add", + "Aspose.Pdf.PageCollection.AddBatesNumbering", + "Aspose.Pdf.BatesNumberingArtifact", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "read-pdf-page-dimensions": { - "title": "Read PDF Page Dimensions", - "filename": "read-pdf-page-dimensions.cs", - "description": "Loads a PDF document, iterates over each page, and logs the width and height of the page rectangle to the console.", + "add-bates-numbering-with-prefix": { + "title": "Add Bates Numbering with Alphanumeric Prefix to PDF", + "filename": "add-bates-numbering-with-prefix.cs", + "description": "Shows how to load a PDF using Aspose.Pdf, apply Bates numbering with a custom alphanumeric prefix to every page, and save the updated document.", "tags": [ + "bates-numbering", "pdf", - "pages", - "dimensions", + "prefix", "aspose", - "csharp" + "pages" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Page.Rect" + "Aspose.Pdf.Pages.AddBatesNumbering", + "Aspose.Pdf.BatesNumberingArtifact", + "Aspose.Pdf.HorizontalAlignment", + "Aspose.Pdf.VerticalAlignment" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "resize-pdf-page-to-letter-size": { - "title": "Resize PDF Page to Letter Size", - "filename": "resize-pdf-page-to-letter-size.cs", - "description": "Shows how to load a PDF, verify it has at least seven pages, and change page 7 to the Letter format using SetPageSize, then save the document.", + "add-blank-front-matter-page-roman-label": { + "title": "Add Blank Front‑Matter Page with Roman Numeral Label", + "filename": "add-blank-front-matter-page-roman-label.cs", + "description": "Demonstrates how to insert a blank page at the beginning of an existing PDF and assign a custom page label using lowercase Roman numerals for front‑matter numbering.", "tags": [ "pdf", - "pages", - "resize", - "letter", - "aspose-pdf" + "page-label", + "front-matter", + "blank-page", + "roman-numerals" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.PageSize", - "Aspose.Pdf.Page.SetPageSize", + "Aspose.Pdf.PageLabel", + "Aspose.Pdf.PageLabels.UpdateLabel", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "resize-pdf-pages-to-a5": { - "title": "Resize PDF Pages to A5 Size", - "filename": "resize-pdf-pages-to-a5.cs", - "description": "Loads a PDF, iterates through all pages, resizes each page to A5 dimensions, and saves the modified document.", + "add-blank-front-matter-page-with-label-i": { + "title": "Add Blank Front Matter Page With Label I", + "filename": "add-blank-front-matter-page-with-label-i.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-bold-uppercase-header-to-pdf-pages": { + "title": "Add Bold Uppercase Header to PDF Pages", + "filename": "add-bold-uppercase-header-to-pdf-pages.cs", + "description": "Shows how to insert a bold, uppercase header on every page of a PDF document using Aspose.Pdf.", "tags": [ + "header", "pdf", - "resize", - "pages", - "a5", - "aspose-pdf" + "aspose", + "text", + "bold" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Page.Resize", - "Aspose.Pdf.PageSize", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.HeaderFooter", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.FontRepository.FindFont", + "Aspose.Pdf.Color" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "rotate-fourth-page-90-degrees-clockwise": { - "title": "Rotate Fourth Page 90 Degrees Clockwise", - "filename": "rotate-fourth-page-90-degrees-clockwise.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, verify it has at least four pages, rotate page 4 by 90° clockwise using the Rotate property, and save the modified document.", + "add-chapter-page-numbers-to-pdf": { + "title": "Add Chapter Prefix Page Numbers to PDF", + "filename": "add-chapter-page-numbers-to-pdf.cs", + "description": "Demonstrates how to insert page numbers with a custom \"Chapter\" prefix on every page of a PDF using Aspose.Pdf. The example sets alignment, margin, and text styling for the page number stamp.", "tags": [ - "rotate", + "page-number", + "stamp", "pdf", - "page", - "aspose", + "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rotation", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.PageCollection" + "Aspose.Pdf.PageNumberStamp", + "Aspose.Pdf.FontRepository.FindFont", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "convert-odd-pages-landscape-to-portrait": { - "title": "Convert Odd Pages from Landscape to Portrait", - "filename": "convert-odd-pages-landscape-to-portrait.cs", - "description": "Shows how to change the orientation of odd‑numbered PDF pages from landscape to portrait by swapping the MediaBox dimensions and updating the PageInfo flag using Aspose.Pdf.", + "add-curved-text-watermark-to-pdf-page": { + "title": "Add Curved Text Watermark To Pdf Page", + "filename": "add-curved-text-watermark-to-pdf-page.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-curved-text-watermark-to-pdf-pages": { + "title": "Add Curved Text Watermark to PDF Pages", + "filename": "add-curved-text-watermark-to-pdf-pages.cs", + "description": "Shows how to place a repeated watermark that follows a curved arc across each page of a PDF using Aspose.Pdf's WatermarkArtifact and TextState.", "tags": [ + "watermark", + "curved", "pdf", - "orientation", - "mediabox", - "pages", - "aspnet" + "artifact", + "text" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.PageInfo", - "Aspose.Pdf.Rectangle", + "Aspose.Pdf.WatermarkArtifact", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.FontRepository.FindFont", + "Aspose.Pdf.Color.FromArgb", + "Aspose.Pdf.Page.Artifacts.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "move-page-9-to-first-position": { - "title": "Move Page 9 to First Position in PDF", - "filename": "move-page-9-to-first-position.cs", - "description": "Shows how to reposition page 9 to the beginning of a PDF by inserting it at index 1 and removing the original occurrence using Aspose.Pdf.", + "add-custom-page-numbers-to-pdf": { + "title": "Add Custom Page Numbers to PDF", + "filename": "add-custom-page-numbers-to-pdf.cs", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, create a PageNumberStamp using the format \"Page X of Y\", apply it to every page, and save the updated document.", "tags": [ "pdf", - "page-reorder", + "page-number", + "stamp", "aspose-pdf", - "csharp", - "document-manipulation" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.PageCollection.Insert", - "Aspose.Pdf.PageCollection.Delete", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.PageNumberStamp", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.HorizontalAlignment", + "Aspose.Pdf.VerticalAlignment" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "reorder-pdf-pages-custom-sequence": { - "title": "Reorder PDF Pages Using Custom Sequence", - "filename": "reorder-pdf-pages-custom-sequence.cs", - "description": "Shows how to reorder the pages of a PDF by providing a custom integer array that defines the new page order and saving the result with Aspose.Pdf.", + "add-diagonal-text-watermark-to-pdf-pages": { + "title": "Add Diagonal Text Watermark to PDF Pages", + "filename": "add-diagonal-text-watermark-to-pdf-pages.cs", + "description": "Shows how to load a PDF, iterate through its pages, and apply a semi‑transparent diagonal text watermark using Aspose.Pdf's TextStamp.", "tags": [ + "watermark", "pdf", - "page-reordering", + "textstamp", "aspose-pdf", - "csharp", - "document-manipulation" + "diagonal" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PageCollection", - "Aspose.Pdf.PageCollection.Add", - "Aspose.Pdf.PageCollection.Count", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextStamp", + "Aspose.Pdf.Text.FontRepository", + "Aspose.Pdf.Text.Color", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "delete-last-three-pages-from-pdf": { - "title": "Delete Last Three Pages from PDF", - "filename": "delete-last-three-pages-from-pdf.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, verify it has at least three pages, delete the last three pages using PageCollection.Delete, and save the modified document.", + "add-generation-date-footer-to-pdf-pages": { + "title": "Add Generation Date Footer to Each PDF Page", + "filename": "add-generation-date-footer-to-pdf-pages.cs", + "description": "Demonstrates how to add a text footer with the current generation date to every page of a PDF using Aspose.Pdf.", "tags": [ + "footer", + "date", "pdf", - "delete-pages", - "aspose-pdf", - "csharp", - "document-manipulation" + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PageCollection", - "Aspose.Pdf.PageCollection.Delete", - "Aspose.Pdf.PageCollection.Count", + "Aspose.Pdf.Page", + "Aspose.Pdf.FooterArtifact", + "Aspose.Pdf.Facades.HorizontalAlignment", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "delete-page-range-from-pdf": { - "title": "Delete Page Range from PDF", - "filename": "delete-page-range-from-pdf.cs", - "description": "Demonstrates how to remove pages 5 through 10 from a PDF document in a single operation using Aspose.Pdf.", + "add-header-logo-image-to-pdf-pages": { + "title": "Add Header Logo Image to PDF Pages", + "filename": "add-header-logo-image-to-pdf-pages.cs", + "description": "Shows how to load a PDF, create an ImageStamp for a company logo, align it to the top‑left of each page as a header, and save the modified document.", "tags": [ - "delete", - "pages", "pdf", - "range", + "header", + "image", + "stamp", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PageCollection", - "Aspose.Pdf.PageCollection.Delete", + "Aspose.Pdf.ImageStamp", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.HorizontalAlignment", + "Aspose.Pdf.VerticalAlignment", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "insert-custom-sized-page-at-beginning": { - "title": "Insert Custom-Sized Page at Beginning of PDF", - "filename": "insert-custom-sized-page-at-beginning.cs", - "description": "Demonstrates how to insert an empty page with a custom size of 200 × 300 points at the start of an existing PDF using Aspose.Pdf.", + "add-header-to-first-pdf-page": { + "title": "Add Header Text to First PDF Page Using MarginInfo", + "filename": "add-header-to-first-pdf-page.cs", + "description": "Demonstrates how to add a text header to the first page of a PDF by configuring a HeaderFooter with MarginInfo and a TextFragment, then saving the document.", "tags": [ - "pages", - "insert", - "custom-size", - "Aspose.Pdf", - "C#" + "header", + "margininfo", + "textfragment", + "pdf", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Document.Pages.Insert", - "Aspose.Pdf.Page.SetPageSize", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.HeaderFooter", + "Aspose.Pdf.MarginInfo", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.FontRepository.FindFont", + "Aspose.Pdf.Color" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "append-page-to-pdf": { - "title": "Append a Page from One PDF to Another", - "filename": "append-page-to-pdf.cs", - "description": "Demonstrates copying a specific page from a source PDF and appending it to the end of a target PDF using Aspose.Pdf.", + "add-header-with-logo-to-pdf-pages": { + "title": "Add Header With Logo To Pdf Pages", + "filename": "add-header-with-logo-to-pdf-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-html-header-to-first-three-pdf-pages": { + "title": "Add HTML Header with CSS to First Three PDF Pages", + "filename": "add-html-header-to-first-three-pdf-pages.cs", + "description": "Demonstrates how to embed a styled HTML header into the first three pages of a PDF using Aspose.Pdf and then convert the document to HTML while preserving the header.", "tags": [ + "header", + "html", + "css", "pdf", - "append-page", - "aspose", - "document", - "pages" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Pages.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.HtmlFragment", + "Aspose.Pdf.HeaderFooter", + "Aspose.Pdf.HtmlSaveOptions" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "duplicate-third-page-in-pdf": { - "title": "Duplicate Third Page in PDF", - "filename": "duplicate-third-page-in-pdf.cs", - "description": "Demonstrates how to duplicate the third page of a PDF document and insert the copy immediately after the original using Aspose.Pdf.", + "add-image-footer-30-opacity": { + "title": "Add Image Footer 30 Opacity", + "filename": "add-image-footer-30-opacity.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-image-footer-to-pdf-pages": { + "title": "Add Image Footer with Opacity to PDF Pages", + "filename": "add-image-footer-to-pdf-pages.cs", + "description": "Demonstrates how to add an image footer with 30% opacity to every page of a PDF using Aspose.Pdf.", "tags": [ + "footer", + "image", + "opacity", "pdf", - "page-duplicate", - "aspose-pdf", - "csharp", - "document" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Pages.Insert", + "Aspose.Pdf.FooterArtifact", + "Aspose.Pdf.HorizontalAlignment", + "Aspose.Pdf.VerticalAlignment", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "rotate-all-pdf-pages-180-degrees": { - "title": "Rotate All PDF Pages 180 Degrees", - "filename": "rotate-all-pdf-pages-180-degrees.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, rotate each page 180° using the Rotate property, and save the modified document.", + "add-image-footer-with-scaling-to-pdf-pages": { + "title": "Add Image Footer with Scaling to PDF Pages", + "filename": "add-image-footer-with-scaling-to-pdf-pages.cs", + "description": "Shows how to insert a scaled footer image on every page of a PDF document using Aspose.Pdf.", "tags": [ "pdf", - "rotation", - "pages", - "aspose", - "csharp" + "footer", + "image", + "scaling", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Pages", "Aspose.Pdf.Page", - "Aspose.Pdf.Page.Rotate", - "Aspose.Pdf.Rotation" + "Aspose.Pdf.Drawing.Image", + "Aspose.Pdf.Drawing.Image.ImageScale", + "Aspose.Pdf.Drawing.Image.HorizontalAlignment", + "Aspose.Pdf.Drawing.Image.VerticalAlignment", + "Aspose.Pdf.Page.Paragraphs", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "convert-pdf-pages-portrait-to-landscape": { - "title": "Convert PDF Pages from Portrait to Landscape", - "filename": "convert-pdf-pages-portrait-to-landscape.cs", - "description": "Loads a PDF, iterates through each page, swaps the MediaBox width and height using SetPageSize to change the orientation to landscape, and saves the modified document.", + "add-image-watermark-with-opacity-to-pdf-pages": { + "title": "Add Image Watermark with Opacity to PDF Pages", + "filename": "add-image-watermark-with-opacity-to-pdf-pages.cs", + "description": "Demonstrates how to overlay a semi‑transparent image (logo) on every page of a PDF using Aspose.Pdf, creating a subtle branding watermark.", "tags": [ + "watermark", + "image", "pdf", - "orientation", - "landscape", - "pages", - "aspose" + "opacity", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Page.MediaBox", - "Aspose.Pdf.Page.SetPageSize", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.ImageStamp", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.HorizontalAlignment", + "Aspose.Pdf.VerticalAlignment" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "insert-blank-pages-after-each-page": { - "title": "Insert Blank Pages After Each Page in PDF", - "filename": "insert-blank-pages-after-each-page.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, iterate its pages in reverse, and insert a blank page after each existing page, effectively doubling the page count.", + "add-lightgray-background-to-pdf-pages": { + "title": "Add LightGray Background to PDF Pages", + "filename": "add-lightgray-background-to-pdf-pages.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, iterate over each page, set a LightGray background color for consistent branding, and save the modified document.", "tags": [ - "pdf", - "blank-page", - "insertion", - "aspose", - "csharp" + "background", + "branding", + "pages", + "Aspose.Pdf", + "C#" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.PageCollection", - "Aspose.Pdf.PageCollection.Insert", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page", + "Aspose.Pdf.Color", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Page.Background" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "rotate-pdf-pages-by-parity": { - "title": "Rotate PDF Pages Based on Page Number Parity", - "filename": "rotate-pdf-pages-by-parity.cs", - "description": "Shows how to load a PDF, iterate through its pages, apply a 90° clockwise rotation to odd‑numbered pages while leaving even pages unchanged, and save the modified document.", + "add-multiple-empty-pages-sequentially": { + "title": "Add Multiple Empty Pages Sequentially", + "filename": "add-multiple-empty-pages-sequentially.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-multiple-empty-pages-to-pdf": { + "title": "Add Multiple Empty Pages Sequentially to PDF", + "filename": "add-multiple-empty-pages-to-pdf.cs", + "description": "Demonstrates how to add a series of empty pages to a PDF by iterating over a list of page counts, with handling for Aspose.PDF evaluation limits.", "tags": [ "pdf", - "rotation", "pages", "aspose-pdf", + "evaluation", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rotation", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.PageCollection" + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.PageCollection", + "Aspose.Pdf.PageCollection.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "export-pdf-page-dimensions-to-csv": { - "title": "Export PDF Page Dimensions to CSV", - "filename": "export-pdf-page-dimensions-to-csv.cs", - "description": "Loads a PDF document, reads the width and height of each page, and writes the page number with its dimensions to a CSV file for external analysis.", + "add-page-numbers-leading-zeros": { + "title": "Add Page Numbers Leading Zeros", + "filename": "add-page-numbers-leading-zeros.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-page-numbers-to-even-pdf-pages": { + "title": "Add Page Numbers to Even PDF Pages", + "filename": "add-page-numbers-to-even-pdf-pages.cs", + "description": "Demonstrates loading a PDF with Aspose.Pdf, iterating through its pages, and adding a page number stamp only to even-numbered pages before saving the result.", "tags": [ "pdf", - "pages", - "dimensions", - "csv", - "export" + "page-numbering", + "even-pages", + "aspose.pdf", + "stamp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.PageInfo", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Page.PageInfo.Width", - "Aspose.Pdf.Page.PageInfo.Height" + "Aspose.Pdf.PageNumberStamp", + "Aspose.Pdf.HorizontalAlignment", + "Aspose.Pdf.VerticalAlignment", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "insert-page-from-another-pdf": { - "title": "Insert Page from Another PDF at Specific Position", - "filename": "insert-page-from-another-pdf.cs", - "description": "Demonstrates how to load two PDF documents, take a page from the source PDF, and insert it into the target PDF at index two while keeping the original size and rotation.", + "add-page-numbers-to-odd-pdf-pages": { + "title": "Add Page Numbers to Odd PDF Pages", + "filename": "add-page-numbers-to-odd-pdf-pages.cs", + "description": "Demonstrates loading a PDF with Aspose.Pdf, iterating through its pages, and applying a page number stamp only to odd-numbered pages before saving the document.", "tags": [ "pdf", - "page-insertion", + "page-number", + "odd-pages", "aspose-pdf", - "csharp", - "document-manipulation" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.PageCollection", - "Aspose.Pdf.PageCollection.Insert", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.PageNumberStamp", + "Aspose.Pdf.PageNumberStamp.Put", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.HorizontalAlignment", + "Aspose.Pdf.VerticalAlignment" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "set-custom-size-first-pdf-page": { - "title": "Set Custom Size for First PDF Page", - "filename": "set-custom-size-first-pdf-page.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, change the first page size to 500 × 700 points, and save the modified document.", + "add-page-numbers-to-pdf": { + "title": "Add Page Numbers to PDF Pages", + "filename": "add-page-numbers-to-pdf.cs", + "description": "Shows how to insert a centered page number stamp starting at 1 on every page of a PDF using Aspose.Pdf.", "tags": [ - "page-size", + "page-number", + "stamp", "pdf", "aspose", - "csharp", - "first-page" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Page.SetPageSize", + "Aspose.Pdf.PageNumberStamp", + "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Pages" + "Aspose.Pdf.HorizontalAlignment", + "Aspose.Pdf.VerticalAlignment" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "rotate-pdf-pages-reverse-order": { - "title": "Rotate PDF Pages in Reverse Order", - "filename": "rotate-pdf-pages-reverse-order.cs", - "description": "Loads a PDF, iterates through its pages in reverse order, applies a 90° clockwise rotation to each page, and saves the modified document.", + "add-page-numbers-with-custom-embedded-font": { + "title": "Add Page Numbers with Custom Embedded Font to PDF", + "filename": "add-page-numbers-with-custom-embedded-font.cs", + "description": "Demonstrates how to insert page numbers on every PDF page using a TrueType font loaded from an external file and embed that font in the resulting document.", "tags": [ - "rotation", - "pages", - "pdf", - "aspose-pdf", - "reverse-order" + "page-number", + "custom-font", + "embedding", + "stamp", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rotation", + "Aspose.Pdf.FontRepository.FindFont", + "Aspose.Pdf.Font", + "Aspose.Pdf.PageNumberStamp", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "move-pdf-pages-to-end": { - "title": "Move Specific PDF Pages to End", - "filename": "move-pdf-pages-to-end.cs", - "description": "Shows how to extract pages 3‑6 from a PDF and relocate them to the end of the document using Aspose.Pdf.", + "add-page-numbers-with-custom-font": { + "title": "Add Page Numbers With Custom Font", + "filename": "add-page-numbers-with-custom-font.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-repeating-image-watermark-to-pdf-pages": { + "title": "Add Repeating Image Watermark to PDF Pages", + "filename": "add-repeating-image-watermark-to-pdf-pages.cs", + "description": "Demonstrates how to overlay a semi‑transparent image repeatedly in a grid pattern on every page of a PDF using Aspose.Pdf.", "tags": [ + "watermark", + "image", + "grid", "pdf", - "pages", - "reorder", - "aspose-pdf", - "csharp" + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Pages.Insert", - "Aspose.Pdf.Pages.Delete", + "Aspose.Pdf.ImageStamp", + "Aspose.Pdf.PageInfo", + "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "copy-mediabox-page-8-to-12": { - "title": "Copy MediaBox from Page 8 to Page 12", - "filename": "copy-mediabox-page-8-to-12.cs", - "description": "Demonstrates how to read the MediaBox rectangle from one PDF page and apply it to another page using Aspose.Pdf, ensuring both pages share the same dimensions.", + "add-roman-numeral-page-numbers": { + "title": "Add Roman Numeral Page Numbers to Introductory PDF Pages", + "filename": "add-roman-numeral-page-numbers.cs", + "description": "Demonstrates how to insert page numbers in uppercase Roman numeral format on the first few pages of a PDF using Aspose.Pdf.", "tags": [ - "MediaBox", - "Aspose.Pdf", - "page-dimensions", - "PDF-manipulation", - "C#" + "pdf", + "page-numbering", + "roman-numerals", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Page.MediaBox" + "Aspose.Pdf.PageNumberStamp", + "Aspose.Pdf.Text.NumberingStyle", + "Aspose.Pdf.HorizontalAlignment", + "Aspose.Pdf.VerticalAlignment" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "insert-ten-empty-pages-at-pdf-midpoint": { - "title": "Insert Ten Empty Pages at PDF Midpoint", - "filename": "insert-ten-empty-pages-at-pdf-midpoint.cs", - "description": "Demonstrates how to load a PDF with Aspose.Pdf, calculate its middle page, and batch‑insert ten blank pages at that position.", + "add-rotated-image-watermark-to-pdf-pages": { + "title": "Add Rotated Image Watermark to PDF Pages", + "filename": "add-rotated-image-watermark-to-pdf-pages.cs", + "description": "Demonstrates how to overlay a 45‑degree rotated, half‑size image as a watermark on every page of a PDF using Aspose.Pdf.", "tags": [ + "watermark", + "image", + "rotation", "pdf", - "pages", - "insert", - "midpoint", - "aspose" + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PageCollection", - "Aspose.Pdf.PageCollection.Count", - "Aspose.Pdf.PageCollection.Insert", + "Aspose.Pdf.Page", + "Aspose.Pdf.Facades.ImageStamp", + "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "resize-wide-pdf-pages-to-a4": { - "title": "Resize Wide PDF Pages to A4", - "filename": "resize-wide-pdf-pages-to-a4.cs", - "description": "Loads a PDF, checks each page's width, and sets the page size to A4 for pages wider than 600 points while leaving narrower pages unchanged.", + "add-scaled-image-footer-to-pdf-pages": { + "title": "Add Scaled Image Footer To Pdf Pages", + "filename": "add-scaled-image-footer-to-pdf-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-semi-transparent-text-watermark": { + "title": "Add Semi-Transparent Text Watermark with Outline to PDF Pages", + "filename": "add-semi-transparent-text-watermark.cs", + "description": "Demonstrates how to load a PDF, iterate through its pages, and apply a semi‑transparent text watermark with an outline using Aspose.Pdf's TextStamp.", "tags": [ + "watermark", "pdf", - "page-size", - "resize", - "aspose-pdf", - "csharp" + "textstamp", + "opacity", + "outline" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.PageInfo.Width", - "Aspose.Pdf.Page.SetPageSize", - "Aspose.Pdf.PageSize.A4", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Text.TextStamp", + "Aspose.Pdf.FontRepository.FindFont", + "Aspose.Pdf.Color" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "delete-pdf-pages-from-config": { - "title": "Delete PDF Pages Using a Config File", - "filename": "delete-pdf-pages-from-config.cs", - "description": "Shows how to read page numbers from a text configuration file and delete those pages from a PDF document with Aspose.Pdf.", + "add-superscript-page-numbers-to-pdf": { + "title": "Add Superscript Page Numbers to PDF Pages", + "filename": "add-superscript-page-numbers-to-pdf.cs", + "description": "Shows how to insert page numbers with a superscript‑style appearance on every page of a PDF using Aspose.Pdf's PageNumberStamp.", "tags": [ + "page-number", + "superscript", + "stamp", "pdf", - "delete-pages", - "config", - "aspose", - "csharp" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PageCollection", - "Aspose.Pdf.PageCollection.Delete", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Pages" + "Aspose.Pdf.Page", + "Aspose.Pdf.PageNumberStamp", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.FontRepository.FindFont", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "reorder-pdf-pages-descending": { - "title": "Reorder PDF Pages in Descending Order", - "filename": "reorder-pdf-pages-descending.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, copy its pages in reverse (descending) order into a new document, optionally balance the page tree, and save the reordered file.", + "add-year-text-watermark-to-pdf": { + "title": "Add Year-Based Text Watermark to PDF", + "filename": "add-year-text-watermark-to-pdf.cs", + "description": "Shows how to load a PDF, create a TextStamp that includes the current year, apply it to every page, and save the watermarked document.", "tags": [ "pdf", - "page-reordering", - "descending", + "watermark", + "textstamp", "aspose-pdf", - "csharp" + "date" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.PageCollection.Add", - "Aspose.Pdf.Document.PageNodesToBalancedTree", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Text.TextStamp", + "Aspose.Pdf.Text.FontRepository.FindFont", + "Aspose.Pdf.Text.TextState" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "convert-pdf-pages-to-portrait": { - "title": "Convert PDF Pages to Portrait Orientation", - "filename": "convert-pdf-pages-to-portrait.cs", - "description": "Loads a PDF, iterates through each page, and changes any landscape page to portrait by swapping the MediaBox dimensions, then saves the modified document.", + "adjust-media-box-to-crop-pdf-page": { + "title": "Adjust Media Box To Crop Pdf Page", + "filename": "adjust-media-box-to-crop-pdf-page.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "adjust-pdf-bleedbox-for-printer-specs": { + "title": "Adjust PDF BleedBox for Printer Specifications", + "filename": "adjust-pdf-bleedbox-for-printer-specs.cs", + "description": "Shows how to read each page's BleedBox, expand it by a margin, and save the modified PDF using Aspose.Pdf.", "tags": [ + "bleedbox", "pdf", - "orientation", - "portrait", "pages", + "margin", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Page.MediaBox", - "Aspose.Pdf.Page.SetPageSize", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Page.BleedBox" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "rotate-every-third-pdf-page-90-degrees": { - "title": "Rotate Every Third PDF Page by 90 Degrees", - "filename": "rotate-every-third-pdf-page-90-degrees.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, iterate through its pages, rotate pages whose number is divisible by three by 90°, and save the modified document.", + "adjust-pdf-bleedbox-margins": { + "title": "Adjust Pdf Bleedbox Margins", + "filename": "adjust-pdf-bleedbox-margins.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "append-empty-a4-page-to-pdf": { + "title": "Append Empty A4 Page to PDF", + "filename": "append-empty-a4-page-to-pdf.cs", + "description": "Demonstrates loading an existing PDF, adding a blank A4‑sized page at the end of the document, and saving the modified file.", "tags": [ "pdf", - "rotation", - "pages", - "aspose", - "csharp" + "add-page", + "a4", + "aspose-pdf", + "document" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rotation", + "Aspose.Pdf.PageSize", + "Aspose.Pdf.Document.Pages.Add", + "Aspose.Pdf.Page.SetPageSize", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "delete-first-page-from-pdf": { - "title": "Delete First Page from PDF and Shift Remaining Pages", - "filename": "delete-first-page-from-pdf.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, remove the first page, and save the document so that the remaining pages automatically shift forward.", + "append-page-to-pdf": { + "title": "Append a Page from One PDF to Another", + "filename": "append-page-to-pdf.cs", + "description": "Demonstrates copying a specific page from a source PDF and appending it to the end of a target PDF using Aspose.Pdf.", "tags": [ "pdf", - "delete-page", - "aspose-pdf", - "csharp", - "page-manipulation" + "append-page", + "aspose", + "document", + "pages" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Document.Pages.Delete", + "Aspose.Pdf.Pages.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "resize-pdf-pages-uniform-size": { - "title": "Resize PDF Pages to Uniform Size", - "filename": "resize-pdf-pages-uniform-size.cs", - "description": "Shows how to determine the largest page dimensions in a PDF and resize every page to those dimensions, creating a uniform page size throughout the document.", + "batch-add-bates-numbering-to-pdf-pages": { + "title": "Batch Add Bates Numbering to PDF Pages", + "filename": "batch-add-bates-numbering-to-pdf-pages.cs", + "description": "Iterates through all PDF files in a folder, adds sequential Bates numbers starting at 5 with six‑digit zero padding, and saves the modified PDFs to an output directory.", "tags": [ + "bates-numbering", "pdf", - "page-size", - "resize", - "uniform", - "Aspose.Pdf" + "batch-processing", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.PageSize", - "Aspose.Pdf.Page.Resize", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.PageCollection.AddBatesNumbering", + "Aspose.Pdf.BatesNumberingArtifact", + "Aspose.Pdf.Document.Pages" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "reset-page-rotation": { - "title": "Reset Page Rotation in PDF", - "filename": "reset-page-rotation.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, read a page's current rotation, reset it to no rotation, and save the updated document.", + "batch-resize-pdf-pages-fixed-width": { + "title": "Batch Resize PDF Pages to Fixed Width", + "filename": "batch-resize-pdf-pages-fixed-width.cs", + "description": "Shows how to resize every page in a PDF to a target width of 800 points while preserving the original aspect ratio using Aspose.Pdf.", "tags": [ "pdf", - "rotation", - "page", - "aspose", - "csharp" + "resize", + "pages", + "aspect-ratio", + "batch" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rotation", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Pages" + "Aspose.Pdf.PageInfo", + "Aspose.Pdf.Page.SetPageSize", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "extract-resize-reinsert-pdf-pages": { - "title": "Extract, Resize, and Reinsert PDF Pages", - "filename": "extract-resize-reinsert-pdf-pages.cs", - "description": "Shows how to extract a range of pages from a PDF, change their size to A4, and insert them at a new position using Aspose.Pdf.", + "convert-odd-pages-landscape-to-portrait": { + "title": "Convert Odd Pages from Landscape to Portrait", + "filename": "convert-odd-pages-landscape-to-portrait.cs", + "description": "Shows how to change the orientation of odd‑numbered PDF pages from landscape to portrait by swapping the MediaBox dimensions and updating the PageInfo flag using Aspose.Pdf.", "tags": [ "pdf", + "orientation", + "mediabox", "pages", - "extract", - "resize", - "reorder" + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.PageSize", - "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Document.Pages.Delete", - "Aspose.Pdf.Document.Pages.Insert", - "Aspose.Pdf.Page.SetPageSize", + "Aspose.Pdf.PageInfo", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "move-even-pages-to-end": { - "title": "Move Even Pages to End of PDF", - "filename": "move-even-pages-to-end.cs", - "description": "Demonstrates how to reorder a PDF by extracting all even‑numbered pages and appending them to the end while preserving their original order using Aspose.Pdf.", + "convert-pdf-pages-portrait-to-landscape": { + "title": "Convert PDF Pages from Portrait to Landscape", + "filename": "convert-pdf-pages-portrait-to-landscape.cs", + "description": "Loads a PDF, iterates through each page, swaps the MediaBox width and height using SetPageSize to change the orientation to landscape, and saves the modified document.", "tags": [ "pdf", + "orientation", + "landscape", "pages", - "reorder", - "aspose", - "csharp" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Pages", - "Aspose.Pdf.Pages.Delete", - "Aspose.Pdf.Pages.Add", + "Aspose.Pdf.Page.MediaBox", + "Aspose.Pdf.Page.SetPageSize", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "resize-pdf-pages-to-template-size": { - "title": "Resize PDF Pages to Match Template Size", - "filename": "resize-pdf-pages-to-template-size.cs", - "description": "Shows how to read the dimensions of a template PDF's first page and apply those dimensions to every page of another PDF using Aspose.Pdf.", + "convert-pdf-pages-to-portrait": { + "title": "Convert PDF Pages to Portrait Orientation", + "filename": "convert-pdf-pages-to-portrait.cs", + "description": "Loads a PDF, iterates through each page, and changes any landscape page to portrait by swapping the MediaBox dimensions, then saves the modified document.", "tags": [ "pdf", - "page-size", - "resize", - "aspose", - "csharp" + "orientation", + "portrait", + "pages", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.PageInfo", + "Aspose.Pdf.Page.MediaBox", "Aspose.Pdf.Page.SetPageSize", "Aspose.Pdf.Document.Save" ], @@ -846,1307 +972,1548 @@ "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "rotate-pdf-pages-using-config": { - "title": "Rotate PDF Pages Using Configuration Dictionary", - "filename": "rotate-pdf-pages-using-config.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, rotate selected pages based on a dictionary of page numbers to angles, and save the modified document.", + "copy-mediabox-page-8-to-12": { + "title": "Copy MediaBox from Page 8 to Page 12", + "filename": "copy-mediabox-page-8-to-12.cs", + "description": "Demonstrates how to read the MediaBox rectangle from one PDF page and apply it to another page using Aspose.Pdf, ensuring both pages share the same dimensions.", "tags": [ - "pdf", - "rotation", - "pages", - "aspose", - "csharp" + "MediaBox", + "Aspose.Pdf", + "page-dimensions", + "PDF-manipulation", + "C#" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Page.IntToRotation", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Pages" + "Aspose.Pdf.Page.MediaBox" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "insert-transparent-separator-page": { - "title": "Insert Transparent Separator Page into PDF", - "filename": "insert-transparent-separator-page.cs", - "description": "Shows how to add an empty page with a transparent background as a separator between sections of an existing PDF using Aspose.Pdf.", + "crop-pdf-page-media-box": { + "title": "Crop PDF Page by Setting MediaBox", + "filename": "crop-pdf-page-media-box.cs", + "description": "Shows how to define a custom cropping region for a PDF page by setting its MediaBox, leaving the page content unchanged.", "tags": [ + "mediaBox", + "crop", "pdf", - "separator", - "transparent", - "page-insertion", + "page", "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages.Insert", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Page", - "Aspose.Pdf.Color.Transparent", + "Aspose.Pdf.PageCollection", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "delete-last-page-from-pdfs": { - "title": "Delete Last Page from PDFs in a Folder", - "filename": "delete-last-page-from-pdfs.cs", - "description": "Demonstrates iterating over PDF files in a directory, removing the last page of each document with Aspose.Pdf, and overwriting the original files.", + "crop-pdf-pages-remove-margins": { + "title": "Crop PDF Pages to Remove Margins", + "filename": "crop-pdf-pages-remove-margins.cs", + "description": "Demonstrates how to adjust the CropBox of each page in a PDF using Aspose.Pdf to trim specified left, right, top, and bottom margins.", "tags": [ + "cropbox", "pdf", + "margins", "pages", - "delete", - "batch", - "aspose" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.PageCollection.Count", - "Aspose.Pdf.PageCollection.Delete", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Page.MediaBox", + "Aspose.Pdf.Page.CropBox" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "move-pdf-page-to-another-document": { - "title": "Move a PDF Page to Another Document", - "filename": "move-pdf-page-to-another-document.cs", - "description": "Demonstrates how to transfer a single page from a source PDF to a destination PDF while preserving its original rotation and size, then saves both modified documents.", + "crop-pdf-pages-to-4-3-aspect-ratio": { + "title": "Crop PDF Pages to 4:3 Aspect Ratio for Slides", + "filename": "crop-pdf-pages-to-4-3-aspect-ratio.cs", + "description": "Demonstrates how to load a PDF, iterate through its pages, and set a centered CropBox so each page conforms to a 4:3 aspect ratio suitable for presentation slides.", "tags": [ + "crop", + "aspect-ratio", "pdf", - "page-manipulation", - "aspose-pdf", - "csharp", - "move-page" + "pages", + "presentation" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Pages.Insert", - "Aspose.Pdf.Pages.Delete", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Rectangle", + "Document.Save", + "Page.CropBox", + "Page.MediaBox" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "crop-pdf-page-media-box": { - "title": "Crop PDF Page by Setting MediaBox", - "filename": "crop-pdf-page-media-box.cs", - "description": "Shows how to define a custom cropping region for a PDF page by setting its MediaBox, leaving the page content unchanged.", + "crop-pdf-pages-to-4by3-aspect-ratio": { + "title": "Crop Pdf Pages To 4By3 Aspect Ratio", + "filename": "crop-pdf-pages-to-4by3-aspect-ratio.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "delete-first-page-from-pdf": { + "title": "Delete First Page from PDF and Shift Remaining Pages", + "filename": "delete-first-page-from-pdf.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, remove the first page, and save the document so that the remaining pages automatically shift forward.", "tags": [ - "mediaBox", - "crop", "pdf", - "page", - "Aspose.Pdf" + "delete-page", + "aspose-pdf", + "csharp", + "page-manipulation" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Page", - "Aspose.Pdf.PageCollection", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Document.Pages.Delete", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "batch-resize-pdf-pages-fixed-width": { - "title": "Batch Resize PDF Pages to Fixed Width", - "filename": "batch-resize-pdf-pages-fixed-width.cs", - "description": "Shows how to resize every page in a PDF to a target width of 800 points while preserving the original aspect ratio using Aspose.Pdf.", + "delete-last-page-from-pdfs": { + "title": "Delete Last Page from PDFs in a Folder", + "filename": "delete-last-page-from-pdfs.cs", + "description": "Demonstrates iterating over PDF files in a directory, removing the last page of each document with Aspose.Pdf, and overwriting the original files.", "tags": [ "pdf", - "resize", "pages", - "aspect-ratio", - "batch" + "delete", + "batch", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.PageInfo", - "Aspose.Pdf.Page.SetPageSize", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.PageCollection.Count", + "Aspose.Pdf.PageCollection.Delete", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "delete-specified-pdf-pages": { - "title": "Delete Specified PDF Pages Using Aspose.Pdf", - "filename": "delete-specified-pdf-pages.cs", - "description": "Shows how to read a list of page numbers from a text file and delete those pages from a PDF document using Aspose.Pdf.", + "delete-last-three-pages-from-pdf": { + "title": "Delete Last Three Pages from PDF", + "filename": "delete-last-three-pages-from-pdf.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, verify it has at least three pages, delete the last three pages using PageCollection.Delete, and save the modified document.", "tags": [ "pdf", "delete-pages", "aspose-pdf", - "file-io", - "csharp" + "csharp", + "document-manipulation" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.PageCollection", - "Aspose.Pdf.PageCollection.Delete" + "Aspose.Pdf.PageCollection.Delete", + "Aspose.Pdf.PageCollection.Count", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "reorder-pdf-pages-by-orientation": { - "title": "Reorder PDF Pages by Orientation", - "filename": "reorder-pdf-pages-by-orientation.cs", - "description": "Demonstrates how to load a PDF, separate landscape and portrait pages, and rebuild the document so that all landscape pages appear before portrait pages.", + "delete-page-range-from-pdf": { + "title": "Delete Page Range from PDF", + "filename": "delete-page-range-from-pdf.cs", + "description": "Demonstrates how to remove pages 5 through 10 from a PDF document in a single operation using Aspose.Pdf.", "tags": [ + "delete", + "pages", "pdf", - "page-orientation", - "reorder", - "aspose", - "csharp" + "range", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.PageInfo.IsLandscape", - "Aspose.Pdf.PageCollection.Add", + "Aspose.Pdf.PageCollection", "Aspose.Pdf.PageCollection.Delete", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "add-blank-front-matter-page-roman-label": { - "title": "Add Blank Front‑Matter Page with Roman Numeral Label", - "filename": "add-blank-front-matter-page-roman-label.cs", - "description": "Demonstrates how to insert a blank page at the beginning of an existing PDF and assign a custom page label using lowercase Roman numerals for front‑matter numbering.", + "delete-pdf-pages-from-config": { + "title": "Delete PDF Pages Using a Config File", + "filename": "delete-pdf-pages-from-config.cs", + "description": "Shows how to read page numbers from a text configuration file and delete those pages from a PDF document with Aspose.Pdf.", "tags": [ "pdf", - "page-label", - "front-matter", - "blank-page", - "roman-numerals" + "delete-pages", + "config", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.PageLabel", - "Aspose.Pdf.PageLabels.UpdateLabel", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.PageCollection", + "Aspose.Pdf.PageCollection.Delete", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Pages" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "resize-pdf-pages-to-printable-area": { - "title": "Resize PDF Pages to Printable Area", - "filename": "resize-pdf-pages-to-printable-area.cs", - "description": "Shows how to resize every page of a PDF to a fixed printable size of 595 × 842 points, scaling the existing content proportionally using Aspose.Pdf.", + "delete-range-of-pdf-pages": { + "title": "Delete Range Of Pdf Pages", + "filename": "delete-range-of-pdf-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "delete-specific-pages-from-pdf": { + "title": "Delete Specific Pages From Pdf", + "filename": "delete-specific-pages-from-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "delete-specific-pages-from-pdf__v2": { + "title": "Delete Specific Pages From Pdf__V2", + "filename": "delete-specific-pages-from-pdf__v2.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "delete-specified-pdf-pages": { + "title": "Delete Specified PDF Pages Using Aspose.Pdf", + "filename": "delete-specified-pdf-pages.cs", + "description": "Shows how to read a list of page numbers from a text file and delete those pages from a PDF document using Aspose.Pdf.", "tags": [ "pdf", - "page-resize", + "delete-pages", "aspose-pdf", - "printable-area", + "file-io", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.PageSize", - "Aspose.Pdf.Page.Resize", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.PageCollection", + "Aspose.Pdf.PageCollection.Delete" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "insert-empty-page-with-custom-size": { - "title": "Insert Empty Page with Custom Size into PDF", - "filename": "insert-empty-page-with-custom-size.cs", - "description": "Shows how to load an existing PDF, add an empty page, set its width and height from user input, and save the modified document using Aspose.Pdf.", + "duplicate-pdf-page-insert-after": { + "title": "Duplicate Pdf Page Insert After", + "filename": "duplicate-pdf-page-insert-after.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "duplicate-third-page-in-pdf": { + "title": "Duplicate Third Page in PDF", + "filename": "duplicate-third-page-in-pdf.cs", + "description": "Demonstrates how to duplicate the third page of a PDF document and insert the copy immediately after the original using Aspose.Pdf.", "tags": [ "pdf", - "page", - "custom-size", + "page-duplicate", "aspose-pdf", - "csharp" + "csharp", + "document" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Page.SetPageSize", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Pages.Insert", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "resize-pdf-pages-to-template-size__v2": { - "title": "Resize PDF Pages to Match Template Size", - "filename": "resize-pdf-pages-to-template-size__v2.cs", - "description": "Demonstrates how to load a reference PDF, extract its page dimensions, and resize all pages of another PDF to those dimensions using Aspose.Pdf.", + "export-pdf-page-dimensions-to-csv": { + "title": "Export PDF Page Dimensions to CSV", + "filename": "export-pdf-page-dimensions-to-csv.cs", + "description": "Loads a PDF document, reads the width and height of each page, and writes the page number with its dimensions to a CSV file for external analysis.", "tags": [ "pdf", - "resize", "pages", - "template", - "aspose" + "dimensions", + "csv", + "export" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.PageSize", - "Aspose.Pdf.Page.Resize", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.PageInfo", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Page.PageInfo.Width", + "Aspose.Pdf.Page.PageInfo.Height" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "add-header-to-first-pdf-page": { - "title": "Add Header Text to First PDF Page Using MarginInfo", - "filename": "add-header-to-first-pdf-page.cs", - "description": "Demonstrates how to add a text header to the first page of a PDF by configuring a HeaderFooter with MarginInfo and a TextFragment, then saving the document.", + "extend-bleedbox-beyond-cropbox": { + "title": "Extend BleedBox Beyond CropBox in PDF", + "filename": "extend-bleedbox-beyond-cropbox.cs", + "description": "Demonstrates how to increase each page's BleedBox by 5 points on all sides relative to the existing CropBox using Aspose.Pdf.", "tags": [ - "header", - "margininfo", - "textfragment", + "bleedbox", + "cropbox", "pdf", - "aspose" + "pages", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.HeaderFooter", - "Aspose.Pdf.MarginInfo", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.FontRepository.FindFont", - "Aspose.Pdf.Color" + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Page.CropBox", + "Page.BleedBox", + "Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "add-html-header-to-first-three-pdf-pages": { - "title": "Add HTML Header with CSS to First Three PDF Pages", - "filename": "add-html-header-to-first-three-pdf-pages.cs", - "description": "Demonstrates how to embed a styled HTML header into the first three pages of a PDF using Aspose.Pdf and then convert the document to HTML while preserving the header.", + "extract-resize-reinsert-pdf-pages": { + "title": "Extract, Resize, and Reinsert PDF Pages", + "filename": "extract-resize-reinsert-pdf-pages.cs", + "description": "Shows how to extract a range of pages from a PDF, change their size to A4, and insert them at a new position using Aspose.Pdf.", "tags": [ - "header", - "html", - "css", "pdf", - "aspose-pdf" + "pages", + "extract", + "resize", + "reorder" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.HtmlFragment", - "Aspose.Pdf.HeaderFooter", - "Aspose.Pdf.HtmlSaveOptions" + "Aspose.Pdf.PageSize", + "Aspose.Pdf.Document.Pages.Add", + "Aspose.Pdf.Document.Pages.Delete", + "Aspose.Pdf.Document.Pages.Insert", + "Aspose.Pdf.Page.SetPageSize", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "add-image-footer-with-scaling-to-pdf-pages": { - "title": "Add Image Footer with Scaling to PDF Pages", - "filename": "add-image-footer-with-scaling-to-pdf-pages.cs", - "description": "Shows how to insert a scaled footer image on every page of a PDF document using Aspose.Pdf.", + "insert-blank-page-at-index-three": { + "title": "Insert Blank Page at Specific Position in PDF", + "filename": "insert-blank-page-at-index-three.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, insert a blank page at position 3 using the Pages.Insert method, and save the updated document.", "tags": [ "pdf", - "footer", - "image", - "scaling", - "Aspose.Pdf" + "insert-page", + "aspose.pdf", + "csharp", + "blank-page" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Drawing.Image", - "Aspose.Pdf.Drawing.Image.ImageScale", - "Aspose.Pdf.Drawing.Image.HorizontalAlignment", - "Aspose.Pdf.Drawing.Image.VerticalAlignment", - "Aspose.Pdf.Page.Paragraphs", + "Aspose.Pdf.PageCollection.Insert", + "Aspose.Pdf.PageInfo", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "add-image-footer-to-pdf-pages": { - "title": "Add Image Footer with Opacity to PDF Pages", - "filename": "add-image-footer-to-pdf-pages.cs", - "description": "Demonstrates how to add an image footer with 30% opacity to every page of a PDF using Aspose.Pdf.", + "insert-blank-pages-after-each-page": { + "title": "Insert Blank Pages After Each Page in PDF", + "filename": "insert-blank-pages-after-each-page.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, iterate its pages in reverse, and insert a blank page after each existing page, effectively doubling the page count.", "tags": [ - "footer", - "image", - "opacity", "pdf", - "aspose" + "blank-page", + "insertion", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.FooterArtifact", - "Aspose.Pdf.HorizontalAlignment", - "Aspose.Pdf.VerticalAlignment", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.PageCollection", + "Aspose.Pdf.PageCollection.Insert", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "add-generation-date-footer-to-pdf-pages": { - "title": "Add Generation Date Footer to Each PDF Page", - "filename": "add-generation-date-footer-to-pdf-pages.cs", - "description": "Demonstrates how to add a text footer with the current generation date to every page of a PDF using Aspose.Pdf.", + "insert-custom-page-numbers-pdf": { + "title": "Insert Custom Page Numbers (current/total) into PDF", + "filename": "insert-custom-page-numbers-pdf.cs", + "description": "Shows how to add page numbers in the \"current/total\" format to every page of a PDF using Aspose.Pdf, with the numbers placed at the bottom‑right corner.", "tags": [ - "footer", - "date", + "page-number", "pdf", - "aspose", - "csharp" + "aspose.pdf", + "text-stamp", + "custom-separator" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.FooterArtifact", - "Aspose.Pdf.Facades.HorizontalAlignment", + "Aspose.Pdf.PageNumber", + "Aspose.Pdf.Text.TextStamp", + "Aspose.Pdf.Text.FontRepository", + "Aspose.Pdf.Color", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "add-diagonal-text-watermark-to-pdf-pages": { - "title": "Add Diagonal Text Watermark to PDF Pages", - "filename": "add-diagonal-text-watermark-to-pdf-pages.cs", - "description": "Shows how to load a PDF, iterate through its pages, and apply a semi‑transparent diagonal text watermark using Aspose.Pdf's TextStamp.", + "insert-custom-sized-page-at-beginning": { + "title": "Insert Custom-Sized Page at Beginning of PDF", + "filename": "insert-custom-sized-page-at-beginning.cs", + "description": "Demonstrates how to insert an empty page with a custom size of 200 × 300 points at the start of an existing PDF using Aspose.Pdf.", "tags": [ - "watermark", - "pdf", - "textstamp", - "aspose-pdf", - "diagonal" + "pages", + "insert", + "custom-size", + "Aspose.Pdf", + "C#" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextStamp", - "Aspose.Pdf.Text.FontRepository", - "Aspose.Pdf.Text.Color", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Pages.Insert", + "Aspose.Pdf.Page.SetPageSize", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "add-rotated-image-watermark-to-pdf-pages": { - "title": "Add Rotated Image Watermark to PDF Pages", - "filename": "add-rotated-image-watermark-to-pdf-pages.cs", - "description": "Demonstrates how to overlay a 45‑degree rotated, half‑size image as a watermark on every page of a PDF using Aspose.Pdf.", + "insert-empty-page-custom-size": { + "title": "Insert Empty Page Custom Size", + "filename": "insert-empty-page-custom-size.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "insert-empty-page-with-custom-size": { + "title": "Insert Empty Page with Custom Size into PDF", + "filename": "insert-empty-page-with-custom-size.cs", + "description": "Shows how to load an existing PDF, add an empty page, set its width and height from user input, and save the modified document using Aspose.Pdf.", "tags": [ - "watermark", - "image", - "rotation", "pdf", - "Aspose.Pdf" + "page", + "custom-size", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Facades.ImageStamp", - "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Pages.Add", + "Aspose.Pdf.Page.SetPageSize", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "add-image-watermark-with-opacity-to-pdf-pages": { - "title": "Add Image Watermark with Opacity to PDF Pages", - "filename": "add-image-watermark-with-opacity-to-pdf-pages.cs", - "description": "Demonstrates how to overlay a semi‑transparent image (logo) on every page of a PDF using Aspose.Pdf, creating a subtle branding watermark.", - "tags": [ - "watermark", - "image", - "pdf", - "opacity", - "Aspose.Pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.ImageStamp", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.HorizontalAlignment", - "Aspose.Pdf.VerticalAlignment" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T08:13:55Z", + "insert-external-pdf-page-at-index": { + "title": "Insert External Pdf Page At Index", + "filename": "insert-external-pdf-page-at-index.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "add-repeating-image-watermark-to-pdf-pages": { - "title": "Add Repeating Image Watermark to PDF Pages", - "filename": "add-repeating-image-watermark-to-pdf-pages.cs", - "description": "Demonstrates how to overlay a semi‑transparent image repeatedly in a grid pattern on every page of a PDF using Aspose.Pdf.", + "insert-page-from-another-pdf": { + "title": "Insert Page from Another PDF at Specific Position", + "filename": "insert-page-from-another-pdf.cs", + "description": "Demonstrates how to load two PDF documents, take a page from the source PDF, and insert it into the target PDF at index two while keeping the original size and rotation.", "tags": [ - "watermark", - "image", - "grid", "pdf", - "Aspose.Pdf" + "page-insertion", + "aspose-pdf", + "csharp", + "document-manipulation" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.ImageStamp", - "Aspose.Pdf.PageInfo", - "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.PageCollection", + "Aspose.Pdf.PageCollection.Insert", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "add-year-text-watermark-to-pdf": { - "title": "Add Year-Based Text Watermark to PDF", - "filename": "add-year-text-watermark-to-pdf.cs", - "description": "Shows how to load a PDF, create a TextStamp that includes the current year, apply it to every page, and save the watermarked document.", + "insert-page-matching-page2-size": { + "title": "Insert New Page Matching Page 2 Size", + "filename": "insert-page-matching-page2-size.cs", + "description": "Demonstrates how to copy the width and height of page 2 in a PDF and insert a new empty page at position 5 with the same dimensions using Aspose.Pdf.", "tags": [ "pdf", - "watermark", - "textstamp", + "page-insertion", + "page-size", "aspose-pdf", - "date" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Text.TextStamp", - "Aspose.Pdf.Text.FontRepository.FindFont", - "Aspose.Pdf.Text.TextState" + "Aspose.Pdf.Page", + "Aspose.Pdf.PageInfo", + "Aspose.Pdf.Page.SetPageSize", + "Aspose.Pdf.Document.Pages.Insert", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "add-curved-text-watermark-to-pdf-pages": { - "title": "Add Curved Text Watermark to PDF Pages", - "filename": "add-curved-text-watermark-to-pdf-pages.cs", - "description": "Shows how to place a repeated watermark that follows a curved arc across each page of a PDF using Aspose.Pdf's WatermarkArtifact and TextState.", + "insert-page-numbers-after-toc": { + "title": "Insert Page Numbers After Table of Contents Using Bookmark Detection", + "filename": "insert-page-numbers-after-toc.cs", + "description": "Demonstrates how to locate the Table of Contents bookmark in a PDF, determine its page, and add sequential page numbers to all subsequent pages using Aspose.Pdf.", "tags": [ - "watermark", - "curved", "pdf", - "artifact", - "text" + "bookmark", + "page-number", + "toc", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.OutlineItemCollection", + "Aspose.Pdf.Annotations.GoToAction", + "Aspose.Pdf.Annotations.PageNumberStamp", "Aspose.Pdf.Page", - "Aspose.Pdf.WatermarkArtifact", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.FontRepository.FindFont", - "Aspose.Pdf.Color.FromArgb", - "Aspose.Pdf.Page.Artifacts.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.HorizontalAlignment", + "Aspose.Pdf.VerticalAlignment" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "add-semi-transparent-text-watermark": { - "title": "Add Semi-Transparent Text Watermark with Outline to PDF Pages", - "filename": "add-semi-transparent-text-watermark.cs", - "description": "Demonstrates how to load a PDF, iterate through its pages, and apply a semi‑transparent text watermark with an outline using Aspose.Pdf's TextStamp.", + "insert-page-numbers-arial-font": { + "title": "Insert Page Numbers with Arial Font in PDF", + "filename": "insert-page-numbers-arial-font.cs", + "description": "Demonstrates how to add sequential page numbers to every page of a PDF using Aspose.Pdf, customizing the font to Arial and size to 14 points.", "tags": [ - "watermark", "pdf", - "textstamp", - "opacity", - "outline" + "page-number", + "stamp", + "font", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.PageNumberStamp", + "Aspose.Pdf.Text.FontRepository.FindFont", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Text.TextStamp", - "Aspose.Pdf.FontRepository.FindFont", - "Aspose.Pdf.Color" + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "add-lightgray-background-to-pdf-pages": { - "title": "Add LightGray Background to PDF Pages", - "filename": "add-lightgray-background-to-pdf-pages.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, iterate over each page, set a LightGray background color for consistent branding, and save the modified document.", + "insert-page-numbers-leading-zeros": { + "title": "Insert Page Numbers with Leading Zeros in PDF", + "filename": "insert-page-numbers-leading-zeros.cs", + "description": "Demonstrates how to add page numbers to every page of a PDF using Aspose.Pdf, formatting single‑digit numbers with a leading zero (e.g., 01, 02). The example positions the stamp at the bottom‑center and customizes its appearance.", "tags": [ - "background", - "branding", - "pages", - "Aspose.Pdf", - "C#" + "pdf", + "page-number", + "leading-zero", + "stamp", + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Color", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Page.Background" + "Aspose.Pdf.PageNumberStamp", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Text.FontRepository.FindFont", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "set-transparent-background-for-pdf-pages": { - "title": "Set Transparent Background for PDF Pages", - "filename": "set-transparent-background-for-pdf-pages.cs", - "description": "Shows how to make each page and the entire PDF document background transparent using Aspose.Pdf.", + "insert-roman-page-numbers": { + "title": "Insert Roman Page Numbers", + "filename": "insert-roman-page-numbers.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "insert-ten-empty-pages-at-pdf-midpoint": { + "title": "Insert Ten Empty Pages at PDF Midpoint", + "filename": "insert-ten-empty-pages-at-pdf-midpoint.cs", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, calculate its middle page, and batch‑insert ten blank pages at that position.", "tags": [ - "background", - "transparent", "pdf", "pages", - "Aspose.Pdf" + "insert", + "midpoint", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Color.Transparent", - "Aspose.Pdf.Document.Background", + "Aspose.Pdf.PageCollection", + "Aspose.Pdf.PageCollection.Count", + "Aspose.Pdf.PageCollection.Insert", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "set-pdf-page-background-color": { - "title": "Set PDF Page Background Color Using RGB", - "filename": "set-pdf-page-background-color.cs", - "description": "Demonstrates how to apply a corporate brand RGB background color to every page of a PDF document using Aspose.Pdf.", + "insert-transparent-separator-page": { + "title": "Insert Transparent Separator Page into PDF", + "filename": "insert-transparent-separator-page.cs", + "description": "Shows how to add an empty page with a transparent background as a separator between sections of an existing PDF using Aspose.Pdf.", "tags": [ "pdf", - "background-color", - "aspose-pdf", - "rgb", - "csharp" + "separator", + "transparent", + "page-insertion", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Pages.Insert", "Aspose.Pdf.Page", - "Aspose.Pdf.Color.FromArgb", - "Aspose.Pdf.Page.Background", + "Aspose.Pdf.Color.Transparent", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "set-pdf-page-background-cmyk": { - "title": "Set PDF Page Background Color Using CMYK Values", - "filename": "set-pdf-page-background-cmyk.cs", - "description": "Shows how to apply a CMYK background color to every page of a PDF with Aspose.Pdf, creating a simple source PDF if it does not exist.", + "move-even-pages-to-end": { + "title": "Move Even Pages to End of PDF", + "filename": "move-even-pages-to-end.cs", + "description": "Demonstrates how to reorder a PDF by extracting all even‑numbered pages and appending them to the end while preserving their original order using Aspose.Pdf.", "tags": [ - "cmyk", - "background-color", "pdf", "pages", - "aspose.pdf" + "reorder", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Color.FromCmyk", - "Aspose.Pdf.Page.Background", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Pages" + "Aspose.Pdf.Pages", + "Aspose.Pdf.Pages.Delete", + "Aspose.Pdf.Pages.Add", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "set-page-background-color-hsl": { - "title": "Set PDF Page Background Color Using HSL Values", - "filename": "set-page-background-color-hsl.cs", - "description": "Demonstrates converting HSL color values to an Aspose.Pdf.Color and applying the resulting color as the background of a PDF page.", + "move-page-9-to-first-position": { + "title": "Move Page 9 to First Position in PDF", + "filename": "move-page-9-to-first-position.cs", + "description": "Shows how to reposition page 9 to the beginning of a PDF by inserting it at index 1 and removing the original occurrence using Aspose.Pdf.", "tags": [ - "background", - "color", - "HSL", - "Aspose.Pdf", - "C#" + "pdf", + "page-reorder", + "aspose-pdf", + "csharp", + "document-manipulation" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Color.FromRgb", - "Aspose.Pdf.Page.Background", + "Aspose.Pdf.PageCollection.Insert", + "Aspose.Pdf.PageCollection.Delete", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "set-pdf-page-background-color-from-theme": { - "title": "Set PDF Page Background Color from Theme Configuration", - "filename": "set-pdf-page-background-color-from-theme.cs", - "description": "Shows how to read a theme value from a JSON configuration file and apply the corresponding background color to every page of a PDF using Aspose.Pdf.", + "move-page-between-pdfs-preserving-rotation-size": { + "title": "Move Page Between Pdfs Preserving Rotation Size", + "filename": "move-page-between-pdfs-preserving-rotation-size.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "move-pages-3-6-to-end": { + "title": "Move Pages 3 6 To End", + "filename": "move-pages-3-6-to-end.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "move-pdf-page-to-another-document": { + "title": "Move a PDF Page to Another Document", + "filename": "move-pdf-page-to-another-document.cs", + "description": "Demonstrates how to transfer a single page from a source PDF to a destination PDF while preserving its original rotation and size, then saves both modified documents.", "tags": [ "pdf", - "background-color", - "theme", - "json", - "aspose" + "page-manipulation", + "aspose-pdf", + "csharp", + "move-page" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Color", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Page.Background" + "Aspose.Pdf.Pages.Insert", + "Aspose.Pdf.Pages.Delete", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "set-alternating-page-background-colors": { - "title": "Set Alternating Page Background Colors in PDF", - "filename": "set-alternating-page-background-colors.cs", - "description": "Demonstrates how to load a PDF with Aspose.Pdf, iterate through its pages, and assign LightGray or White background colors alternately before saving the document.", + "move-pdf-pages-to-end": { + "title": "Move Specific PDF Pages to End", + "filename": "move-pdf-pages-to-end.cs", + "description": "Shows how to extract pages 3‑6 from a PDF and relocate them to the end of the document using Aspose.Pdf.", "tags": [ - "page-background", - "alternating-colors", - "Aspose.Pdf", - "C#", - "PDF-manipulation" + "pdf", + "pages", + "reorder", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.PageCollection", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Color" + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Pages.Insert", + "Aspose.Pdf.Pages.Delete", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T08:13:55Z", + "status": "verified" + }, + "read-pdf-page-count": { + "title": "Read PDF Page Count with Aspose.Pdf", + "filename": "read-pdf-page-count.cs", + "description": "Demonstrates how to load a PDF using Aspose.Pdf and retrieve the total number of pages without modifying the file.", + "tags": [ + "pdf", + "page-count", + "aspose", + "csharp", + "document" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.PageCollection" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "add-page-numbers-to-pdf": { - "title": "Add Page Numbers to PDF Pages", - "filename": "add-page-numbers-to-pdf.cs", - "description": "Shows how to insert a centered page number stamp starting at 1 on every page of a PDF using Aspose.Pdf.", + "read-pdf-page-dimensions": { + "title": "Read PDF Page Dimensions", + "filename": "read-pdf-page-dimensions.cs", + "description": "Loads a PDF document, iterates over each page, and logs the width and height of the page rectangle to the console.", "tags": [ - "page-number", - "stamp", "pdf", + "pages", + "dimensions", "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PageNumberStamp", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.HorizontalAlignment", - "Aspose.Pdf.VerticalAlignment" + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Page.Rect" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "add-roman-numeral-page-numbers": { - "title": "Add Roman Numeral Page Numbers to Introductory PDF Pages", - "filename": "add-roman-numeral-page-numbers.cs", - "description": "Demonstrates how to insert page numbers in uppercase Roman numeral format on the first few pages of a PDF using Aspose.Pdf.", + "read-pdf-page-dimensions__v2": { + "title": "Read PDF Page Width and Height", + "filename": "read-pdf-page-dimensions__v2.cs", + "description": "Demonstrates how to open a PDF with Aspose.Pdf, iterate through its pages, and retrieve each page's width and height using the page rectangle.", "tags": [ "pdf", - "page-numbering", - "roman-numerals", - "aspose", + "pages", + "dimensions", + "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PageNumberStamp", - "Aspose.Pdf.Text.NumberingStyle", - "Aspose.Pdf.HorizontalAlignment", - "Aspose.Pdf.VerticalAlignment" + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Page", + "Aspose.Pdf.Page.Rect", + "Aspose.Pdf.Rectangle" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "add-chapter-page-numbers-to-pdf": { - "title": "Add Chapter Prefix Page Numbers to PDF", - "filename": "add-chapter-page-numbers-to-pdf.cs", - "description": "Demonstrates how to insert page numbers with a custom \"Chapter\" prefix on every page of a PDF using Aspose.Pdf. The example sets alignment, margin, and text styling for the page number stamp.", + "remove-bates-numbering-add-new-sequence": { + "title": "Remove Existing Bates Numbering and Add New Sequence to PDF", + "filename": "remove-bates-numbering-add-new-sequence.cs", + "description": "Shows how to delete all Bates numbering artifacts from a PDF and then apply a new Bates numbering sequence using Aspose.Pdf.", "tags": [ - "page-number", - "stamp", + "bates-numbering", "pdf", "aspose-pdf", + "pages", + "document" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Pages", + "Aspose.Pdf.Pages.DeleteBatesNumbering", + "Aspose.Pdf.Pages.AddBatesNumbering", + "Aspose.Pdf.BatesNArtifact" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:13:55Z", + "status": "verified" + }, + "remove-bates-numbering-from-selected-pdf-pages": { + "title": "Remove Bates Numbering from Selected PDF Pages", + "filename": "remove-bates-numbering-from-selected-pdf-pages.cs", + "description": "Shows how to delete all Bates numbering artifacts from a PDF and then re‑add them only to pages that should keep the stamp, effectively removing the numbering from specific pages.", + "tags": [ + "bates-numbering", + "pdf", + "pages", + "remove-stamp", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.PageCollection.DeleteBatesNumbering", + "Aspose.Pdf.BatesNArtifact", + "Aspose.Pdf.Page.Artifacts.Add", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T08:13:55Z", + "status": "verified" + }, + "remove-specific-bates-numbering-stamp": { + "title": "Remove Specific Bates Numbering Stamp", + "filename": "remove-specific-bates-numbering-stamp.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "reorder-pdf-pages-by-orientation": { + "title": "Reorder PDF Pages by Orientation", + "filename": "reorder-pdf-pages-by-orientation.cs", + "description": "Demonstrates how to load a PDF, separate landscape and portrait pages, and rebuild the document so that all landscape pages appear before portrait pages.", + "tags": [ + "pdf", + "page-orientation", + "reorder", + "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PageNumberStamp", - "Aspose.Pdf.FontRepository.FindFont", - "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Page", + "Aspose.Pdf.PageInfo.IsLandscape", + "Aspose.Pdf.PageCollection.Add", + "Aspose.Pdf.PageCollection.Delete", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "insert-page-numbers-leading-zeros": { - "title": "Insert Page Numbers with Leading Zeros in PDF", - "filename": "insert-page-numbers-leading-zeros.cs", - "description": "Demonstrates how to add page numbers to every page of a PDF using Aspose.Pdf, formatting single‑digit numbers with a leading zero (e.g., 01, 02). The example positions the stamp at the bottom‑center and customizes its appearance.", + "reorder-pdf-pages-custom-sequence": { + "title": "Reorder PDF Pages Using Custom Sequence", + "filename": "reorder-pdf-pages-custom-sequence.cs", + "description": "Shows how to reorder the pages of a PDF by providing a custom integer array that defines the new page order and saving the result with Aspose.Pdf.", "tags": [ "pdf", - "page-number", - "leading-zero", - "stamp", - "aspnet" + "page-reordering", + "aspose-pdf", + "csharp", + "document-manipulation" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PageNumberStamp", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Text.FontRepository.FindFont", - "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.PageCollection", + "Aspose.Pdf.PageCollection.Add", + "Aspose.Pdf.PageCollection.Count", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "add-custom-page-numbers-to-pdf": { - "title": "Add Custom Page Numbers to PDF", - "filename": "add-custom-page-numbers-to-pdf.cs", - "description": "Demonstrates how to load a PDF with Aspose.Pdf, create a PageNumberStamp using the format \"Page X of Y\", apply it to every page, and save the updated document.", + "reorder-pdf-pages-descending": { + "title": "Reorder PDF Pages in Descending Order", + "filename": "reorder-pdf-pages-descending.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, copy its pages in reverse (descending) order into a new document, optionally balance the page tree, and save the reordered file.", "tags": [ "pdf", - "page-number", - "stamp", + "page-reordering", + "descending", "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PageNumberStamp", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.HorizontalAlignment", - "Aspose.Pdf.VerticalAlignment" + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.PageCollection.Add", + "Aspose.Pdf.Document.PageNodesToBalancedTree", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "insert-custom-page-numbers-pdf": { - "title": "Insert Custom Page Numbers (current/total) into PDF", - "filename": "insert-custom-page-numbers-pdf.cs", - "description": "Shows how to add page numbers in the \"current/total\" format to every page of a PDF using Aspose.Pdf, with the numbers placed at the bottom‑right corner.", + "replace-bates-numbering-in-pdf": { + "title": "Replace Bates Numbering In Pdf", + "filename": "replace-bates-numbering-in-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "replace-pdf-headers-and-footers": { + "title": "Replace Pdf Headers And Footers", + "filename": "replace-pdf-headers-and-footers.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "replace-pdf-headers-footers": { + "title": "Replace PDF Headers and Footers", + "filename": "replace-pdf-headers-footers.cs", + "description": "Demonstrates how to remove existing headers and footers from all pages of a PDF and add new styled header and footer content, including page numbers, using Aspose.Pdf.", "tags": [ - "page-number", "pdf", - "aspose.pdf", - "text-stamp", - "custom-separator" + "header", + "footer", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PageNumber", - "Aspose.Pdf.Text.TextStamp", - "Aspose.Pdf.Text.FontRepository", - "Aspose.Pdf.Color", + "Aspose.Pdf.Page", + "Aspose.Pdf.HeaderFooter", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.FontRepository.FindFont", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "add-superscript-page-numbers-to-pdf": { - "title": "Add Superscript Page Numbers to PDF Pages", - "filename": "add-superscript-page-numbers-to-pdf.cs", - "description": "Shows how to insert page numbers with a superscript‑style appearance on every page of a PDF using Aspose.Pdf's PageNumberStamp.", + "reset-page-rotation": { + "title": "Reset Page Rotation in PDF", + "filename": "reset-page-rotation.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, read a page's current rotation, reset it to no rotation, and save the updated document.", "tags": [ - "page-number", - "superscript", - "stamp", "pdf", - "aspose" + "rotation", + "page", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.PageNumberStamp", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.FontRepository.FindFont", - "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Rotation", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Pages" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:13:55Z", + "status": "verified" + }, + "resize-pdf-page-to-letter-size": { + "title": "Resize PDF Page to Letter Size", + "filename": "resize-pdf-page-to-letter-size.cs", + "description": "Shows how to load a PDF, verify it has at least seven pages, and change page 7 to the Letter format using SetPageSize, then save the document.", + "tags": [ + "pdf", + "pages", + "resize", + "letter", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.PageSize", + "Aspose.Pdf.Page.SetPageSize", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "insert-page-numbers-arial-font": { - "title": "Insert Page Numbers with Arial Font in PDF", - "filename": "insert-page-numbers-arial-font.cs", - "description": "Demonstrates how to add sequential page numbers to every page of a PDF using Aspose.Pdf, customizing the font to Arial and size to 14 points.", + "resize-pdf-pages-to-a5": { + "title": "Resize PDF Pages to A5 Size", + "filename": "resize-pdf-pages-to-a5.cs", + "description": "Loads a PDF, iterates through all pages, resizes each page to A5 dimensions, and saves the modified document.", "tags": [ "pdf", - "page-number", - "stamp", - "font", - "csharp" + "resize", + "pages", + "a5", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.PageNumberStamp", - "Aspose.Pdf.Text.FontRepository.FindFont", - "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Page.Resize", + "Aspose.Pdf.PageSize", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "add-page-numbers-with-custom-embedded-font": { - "title": "Add Page Numbers with Custom Embedded Font to PDF", - "filename": "add-page-numbers-with-custom-embedded-font.cs", - "description": "Demonstrates how to insert page numbers on every PDF page using a TrueType font loaded from an external file and embed that font in the resulting document.", + "resize-pdf-pages-to-match-template-size": { + "title": "Resize Pdf Pages To Match Template Size", + "filename": "resize-pdf-pages-to-match-template-size.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "resize-pdf-pages-to-printable-area": { + "title": "Resize PDF Pages to Printable Area", + "filename": "resize-pdf-pages-to-printable-area.cs", + "description": "Shows how to resize every page of a PDF to a fixed printable size of 595 × 842 points, scaling the existing content proportionally using Aspose.Pdf.", "tags": [ - "page-number", - "custom-font", - "embedding", - "stamp", - "Aspose.Pdf" + "pdf", + "page-resize", + "aspose-pdf", + "printable-area", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.FontRepository.FindFont", - "Aspose.Pdf.Font", - "Aspose.Pdf.PageNumberStamp", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Page", + "Aspose.Pdf.PageSize", + "Aspose.Pdf.Page.Resize", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "add-page-numbers-to-odd-pdf-pages": { - "title": "Add Page Numbers to Odd PDF Pages", - "filename": "add-page-numbers-to-odd-pdf-pages.cs", - "description": "Demonstrates loading a PDF with Aspose.Pdf, iterating through its pages, and applying a page number stamp only to odd-numbered pages before saving the document.", + "resize-pdf-pages-to-template-size": { + "title": "Resize PDF Pages to Match Template Size", + "filename": "resize-pdf-pages-to-template-size.cs", + "description": "Shows how to read the dimensions of a template PDF's first page and apply those dimensions to every page of another PDF using Aspose.Pdf.", "tags": [ "pdf", - "page-number", - "odd-pages", - "aspose-pdf", + "page-size", + "resize", + "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PageNumberStamp", - "Aspose.Pdf.PageNumberStamp.Put", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.HorizontalAlignment", - "Aspose.Pdf.VerticalAlignment" + "Aspose.Pdf.Page", + "Aspose.Pdf.PageInfo", + "Aspose.Pdf.Page.SetPageSize", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "add-page-numbers-to-even-pdf-pages": { - "title": "Add Page Numbers to Even PDF Pages", - "filename": "add-page-numbers-to-even-pdf-pages.cs", - "description": "Demonstrates loading a PDF with Aspose.Pdf, iterating through its pages, and adding a page number stamp only to even-numbered pages before saving the result.", + "resize-pdf-pages-to-template-size__v2": { + "title": "Resize PDF Pages to Match Template Size", + "filename": "resize-pdf-pages-to-template-size__v2.cs", + "description": "Demonstrates how to load a reference PDF, extract its page dimensions, and resize all pages of another PDF to those dimensions using Aspose.Pdf.", "tags": [ "pdf", - "page-numbering", - "even-pages", - "aspose.pdf", - "stamp" + "resize", + "pages", + "template", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PageNumberStamp", - "Aspose.Pdf.HorizontalAlignment", - "Aspose.Pdf.VerticalAlignment", - "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.PageSize", + "Aspose.Pdf.Page.Resize", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "insert-page-numbers-after-toc": { - "title": "Insert Page Numbers After Table of Contents Using Bookmark Detection", - "filename": "insert-page-numbers-after-toc.cs", - "description": "Demonstrates how to locate the Table of Contents bookmark in a PDF, determine its page, and add sequential page numbers to all subsequent pages using Aspose.Pdf.", + "resize-pdf-pages-uniform-size": { + "title": "Resize PDF Pages to Uniform Size", + "filename": "resize-pdf-pages-uniform-size.cs", + "description": "Shows how to determine the largest page dimensions in a PDF and resize every page to those dimensions, creating a uniform page size throughout the document.", "tags": [ "pdf", - "bookmark", - "page-number", - "toc", - "aspose-pdf" + "page-size", + "resize", + "uniform", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.OutlineItemCollection", - "Aspose.Pdf.Annotations.GoToAction", - "Aspose.Pdf.Annotations.PageNumberStamp", "Aspose.Pdf.Page", - "Aspose.Pdf.HorizontalAlignment", - "Aspose.Pdf.VerticalAlignment" + "Aspose.Pdf.PageSize", + "Aspose.Pdf.Page.Resize", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "add-bates-numbering-to-pdf-pages": { - "title": "Add Bates Numbering to PDF Pages", - "filename": "add-bates-numbering-to-pdf-pages.cs", - "description": "Shows how to insert Bates numbering stamps starting at 1000 with a dash separator on every page of a PDF using Aspose.Pdf.", + "resize-wide-pdf-pages-to-a4": { + "title": "Resize Wide PDF Pages to A4", + "filename": "resize-wide-pdf-pages-to-a4.cs", + "description": "Loads a PDF, checks each page's width, and sets the page size to A4 for pages wider than 600 points while leaving narrower pages unchanged.", "tags": [ - "bates-numbering", "pdf", - "pages", + "page-size", + "resize", "aspose-pdf", - "stamp" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Document.Pages.AddBatesNumbering", - "Aspose.Pdf.Artifact" + "Aspose.Pdf.Page", + "Aspose.Pdf.PageInfo.Width", + "Aspose.Pdf.Page.SetPageSize", + "Aspose.Pdf.PageSize.A4", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "add-bates-numbering-with-custom-prefix-suffix": { - "title": "Add Bates Numbering with Custom Prefix and Suffix to PDF", - "filename": "add-bates-numbering-with-custom-prefix-suffix.cs", - "description": "Demonstrates loading a PDF with Aspose.Pdf, applying Bates numbering that includes a custom prefix and suffix, and saving the modified document.", + "retrieve-trimbox-after-cropping-pdf-page": { + "title": "Retrieve TrimBox After Cropping a PDF Page", + "filename": "retrieve-trimbox-after-cropping-pdf-page.cs", + "description": "Demonstrates how to set a CropBox on a PDF page and then read the resulting TrimBox to verify the content area using Aspose.Pdf.", "tags": [ - "bates-numbering", + "trimbox", + "cropbox", "pdf", - "aspose-pdf", - "custom-prefix", - "custom-suffix" + "pages", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PageCollection", - "Aspose.Pdf.PageCollection.AddBatesNumbering", - "Aspose.Pdf.BatesNumberingArtifact", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Page.CropBox", + "Aspose.Pdf.Page.TrimBox" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "add-bates-numbering-with-prefix": { - "title": "Add Bates Numbering with Alphanumeric Prefix to PDF", - "filename": "add-bates-numbering-with-prefix.cs", - "description": "Shows how to load a PDF using Aspose.Pdf, apply Bates numbering with a custom alphanumeric prefix to every page, and save the updated document.", + "retrieve-trimbox-values-from-pdf-pages": { + "title": "Retrieve Trimbox Values From Pdf Pages", + "filename": "retrieve-trimbox-values-from-pdf-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "rotate-all-pdf-pages-180-degrees": { + "title": "Rotate All PDF Pages 180 Degrees", + "filename": "rotate-all-pdf-pages-180-degrees.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, rotate each page 180° using the Rotate property, and save the modified document.", "tags": [ - "bates-numbering", "pdf", - "prefix", + "rotation", + "pages", "aspose", - "pages" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Save", "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Pages.AddBatesNumbering", - "Aspose.Pdf.BatesNumberingArtifact", - "Aspose.Pdf.HorizontalAlignment", - "Aspose.Pdf.VerticalAlignment" + "Aspose.Pdf.Page", + "Aspose.Pdf.Page.Rotate", + "Aspose.Pdf.Rotation" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "add-bates-numbering-to-pdf-pages__v2": { - "title": "Add Bates Numbering to PDF Pages", - "filename": "add-bates-numbering-to-pdf-pages__v2.cs", - "description": "Loads a PDF document, applies year‑based Bates numbering (format \"2026-####\") to each page, and saves the updated file.", + "rotate-every-third-pdf-page-90-degrees": { + "title": "Rotate Every Third PDF Page by 90 Degrees", + "filename": "rotate-every-third-pdf-page-90-degrees.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, iterate through its pages, rotate pages whose number is divisible by three by 90°, and save the modified document.", "tags": [ - "bates-numbering", "pdf", + "rotation", "pages", - "aspose-pdf", + "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Pages.AddBatesNumbering", - "Aspose.Pdf.BatesNumberingArtifact", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rotation", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "batch-add-bates-numbering-to-pdf-pages": { - "title": "Batch Add Bates Numbering to PDF Pages", - "filename": "batch-add-bates-numbering-to-pdf-pages.cs", - "description": "Iterates through all PDF files in a folder, adds sequential Bates numbers starting at 5 with six‑digit zero padding, and saves the modified PDFs to an output directory.", + "rotate-fourth-page-90-degrees-clockwise": { + "title": "Rotate Fourth Page 90 Degrees Clockwise", + "filename": "rotate-fourth-page-90-degrees-clockwise.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, verify it has at least four pages, rotate page 4 by 90° clockwise using the Rotate property, and save the modified document.", "tags": [ - "bates-numbering", + "rotate", "pdf", - "batch-processing", - "aspose-pdf", + "page", + "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rotation", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.PageCollection.AddBatesNumbering", - "Aspose.Pdf.BatesNumberingArtifact", - "Aspose.Pdf.Document.Pages" + "Aspose.Pdf.PageCollection" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "remove-bates-numbering-add-new-sequence": { - "title": "Remove Existing Bates Numbering and Add New Sequence to PDF", - "filename": "remove-bates-numbering-add-new-sequence.cs", - "description": "Shows how to delete all Bates numbering artifacts from a PDF and then apply a new Bates numbering sequence using Aspose.Pdf.", + "rotate-fourth-page-90-degrees": { + "title": "Rotate Fourth Page 90 Degrees", + "filename": "rotate-fourth-page-90-degrees.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "rotate-pdf-pages-by-parity": { + "title": "Rotate PDF Pages Based on Page Number Parity", + "filename": "rotate-pdf-pages-by-parity.cs", + "description": "Shows how to load a PDF, iterate through its pages, apply a 90° clockwise rotation to odd‑numbered pages while leaving even pages unchanged, and save the modified document.", "tags": [ - "bates-numbering", "pdf", - "aspose-pdf", + "rotation", "pages", - "document" + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Pages", - "Aspose.Pdf.Pages.DeleteBatesNumbering", - "Aspose.Pdf.Pages.AddBatesNumbering", - "Aspose.Pdf.BatesNArtifact" + "Aspose.Pdf.Page", + "Aspose.Pdf.Rotation", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.PageCollection" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "remove-bates-numbering-from-selected-pdf-pages": { - "title": "Remove Bates Numbering from Selected PDF Pages", - "filename": "remove-bates-numbering-from-selected-pdf-pages.cs", - "description": "Shows how to delete all Bates numbering artifacts from a PDF and then re‑add them only to pages that should keep the stamp, effectively removing the numbering from specific pages.", + "rotate-pdf-pages-reverse-order": { + "title": "Rotate PDF Pages in Reverse Order", + "filename": "rotate-pdf-pages-reverse-order.cs", + "description": "Loads a PDF, iterates through its pages in reverse order, applies a 90° clockwise rotation to each page, and saves the modified document.", "tags": [ - "bates-numbering", - "pdf", + "rotation", "pages", - "remove-stamp", - "aspose-pdf" + "pdf", + "aspose-pdf", + "reverse-order" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PageCollection.DeleteBatesNumbering", - "Aspose.Pdf.BatesNArtifact", - "Aspose.Pdf.Page.Artifacts.Add", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rotation", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "replace-pdf-headers-footers": { - "title": "Replace PDF Headers and Footers", - "filename": "replace-pdf-headers-footers.cs", - "description": "Demonstrates how to remove existing headers and footers from all pages of a PDF and add new styled header and footer content, including page numbers, using Aspose.Pdf.", + "rotate-pdf-pages-using-config": { + "title": "Rotate PDF Pages Using Configuration Dictionary", + "filename": "rotate-pdf-pages-using-config.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, rotate selected pages based on a dictionary of page numbers to angles, and save the modified document.", "tags": [ "pdf", - "header", - "footer", - "aspose-pdf", + "rotation", + "pages", + "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.HeaderFooter", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.FontRepository.FindFont", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page.IntToRotation", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Pages" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "read-pdf-page-count": { - "title": "Read PDF Page Count with Aspose.Pdf", - "filename": "read-pdf-page-count.cs", - "description": "Demonstrates how to load a PDF using Aspose.Pdf and retrieve the total number of pages without modifying the file.", + "set-alternating-page-background-colors": { + "title": "Set Alternating Page Background Colors in PDF", + "filename": "set-alternating-page-background-colors.cs", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, iterate through its pages, and assign LightGray or White background colors alternately before saving the document.", "tags": [ - "pdf", - "page-count", - "aspose", - "csharp", - "document" + "page-background", + "alternating-colors", + "Aspose.Pdf", + "C#", + "PDF-manipulation" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PageCollection" + "Aspose.Pdf.Page", + "Aspose.Pdf.PageCollection", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Color" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "read-pdf-page-dimensions__v2": { - "title": "Read PDF Page Width and Height", - "filename": "read-pdf-page-dimensions__v2.cs", - "description": "Demonstrates how to open a PDF with Aspose.Pdf, iterate through its pages, and retrieve each page's width and height using the page rectangle.", + "set-custom-size-first-pdf-page": { + "title": "Set Custom Size for First PDF Page", + "filename": "set-custom-size-first-pdf-page.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, change the first page size to 500 × 700 points, and save the modified document.", "tags": [ + "page-size", "pdf", - "pages", - "dimensions", - "aspose-pdf", - "csharp" + "aspose", + "csharp", + "first-page" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages", "Aspose.Pdf.Page", - "Aspose.Pdf.Page.Rect", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Page.SetPageSize", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Pages" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "adjust-pdf-bleedbox-for-printer-specs": { - "title": "Adjust PDF BleedBox for Printer Specifications", - "filename": "adjust-pdf-bleedbox-for-printer-specs.cs", - "description": "Shows how to read each page's BleedBox, expand it by a margin, and save the modified PDF using Aspose.Pdf.", + "set-page-background-color-hsl": { + "title": "Set PDF Page Background Color Using HSL Values", + "filename": "set-page-background-color-hsl.cs", + "description": "Demonstrates converting HSL color values to an Aspose.Pdf.Color and applying the resulting color as the background of a PDF page.", "tags": [ - "bleedbox", - "pdf", - "pages", - "margin", - "aspose-pdf" + "background", + "color", + "HSL", + "Aspose.Pdf", + "C#" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Page.BleedBox" + "Aspose.Pdf.Color.FromRgb", + "Aspose.Pdf.Page.Background", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "retrieve-trimbox-after-cropping-pdf-page": { - "title": "Retrieve TrimBox After Cropping a PDF Page", - "filename": "retrieve-trimbox-after-cropping-pdf-page.cs", - "description": "Demonstrates how to set a CropBox on a PDF page and then read the resulting TrimBox to verify the content area using Aspose.Pdf.", + "set-pdf-page-background-cmyk": { + "title": "Set PDF Page Background Color Using CMYK Values", + "filename": "set-pdf-page-background-cmyk.cs", + "description": "Shows how to apply a CMYK background color to every page of a PDF with Aspose.Pdf, creating a simple source PDF if it does not exist.", "tags": [ - "trimbox", - "cropbox", + "cmyk", + "background-color", "pdf", "pages", - "aspose-pdf" + "aspose.pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Page.CropBox", - "Aspose.Pdf.Page.TrimBox" + "Aspose.Pdf.Color.FromCmyk", + "Aspose.Pdf.Page.Background", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Pages" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "crop-pdf-pages-remove-margins": { - "title": "Crop PDF Pages to Remove Margins", - "filename": "crop-pdf-pages-remove-margins.cs", - "description": "Demonstrates how to adjust the CropBox of each page in a PDF using Aspose.Pdf to trim specified left, right, top, and bottom margins.", + "set-pdf-page-background-color-from-theme": { + "title": "Set PDF Page Background Color from Theme Configuration", + "filename": "set-pdf-page-background-color-from-theme.cs", + "description": "Shows how to read a theme value from a JSON configuration file and apply the corresponding background color to every page of a PDF using Aspose.Pdf.", "tags": [ - "cropbox", "pdf", - "margins", - "pages", - "aspose-pdf" + "background-color", + "theme", + "json", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Color", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Page.MediaBox", - "Aspose.Pdf.Page.CropBox" + "Aspose.Pdf.Page.Background" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "extend-bleedbox-beyond-cropbox": { - "title": "Extend BleedBox Beyond CropBox in PDF", - "filename": "extend-bleedbox-beyond-cropbox.cs", - "description": "Demonstrates how to increase each page's BleedBox by 5 points on all sides relative to the existing CropBox using Aspose.Pdf.", + "set-pdf-page-background-color": { + "title": "Set PDF Page Background Color Using RGB", + "filename": "set-pdf-page-background-color.cs", + "description": "Demonstrates how to apply a corporate brand RGB background color to every page of a PDF document using Aspose.Pdf.", "tags": [ - "bleedbox", - "cropbox", "pdf", - "pages", - "aspose-pdf" + "background-color", + "aspose-pdf", + "rgb", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Page.CropBox", - "Page.BleedBox", - "Document.Save" + "Aspose.Pdf.Color.FromArgb", + "Aspose.Pdf.Page.Background", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "trim-white-space-from-pdf-pages": { - "title": "Trim White Space from PDF Pages", - "filename": "trim-white-space-from-pdf-pages.cs", - "description": "The example loads a PDF, skips blank pages, calculates the content bounding box for each page, sets the TrimBox to that rectangle to remove surrounding whitespace, and saves the trimmed document.", + "set-pdf-page-background-from-theme": { + "title": "Set Pdf Page Background From Theme", + "filename": "set-pdf-page-background-from-theme.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-pdf-page-background-hsl": { + "title": "Set Pdf Page Background Hsl", + "filename": "set-pdf-page-background-hsl.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-pdf-page-background-transparent": { + "title": "Set Pdf Page Background Transparent", + "filename": "set-pdf-page-background-transparent.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-transparent-background-for-pdf-pages": { + "title": "Set Transparent Background for PDF Pages", + "filename": "set-transparent-background-for-pdf-pages.cs", + "description": "Shows how to make each page and the entire PDF document background transparent using Aspose.Pdf.", "tags": [ + "background", + "transparent", "pdf", - "trim", - "whitespace", - "bounding-box", - "aspose-pdf" + "pages", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page.IsBlank", - "Aspose.Pdf.Page.CalculateContentBBox", - "Aspose.Pdf.Page.TrimBox", + "Aspose.Pdf.Page", + "Aspose.Pdf.Color.Transparent", + "Aspose.Pdf.Document.Background", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, @@ -2174,73 +2541,36 @@ "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "crop-pdf-pages-to-4-3-aspect-ratio": { - "title": "Crop PDF Pages to 4:3 Aspect Ratio for Slides", - "filename": "crop-pdf-pages-to-4-3-aspect-ratio.cs", - "description": "Demonstrates how to load a PDF, iterate through its pages, and set a centered CropBox so each page conforms to a 4:3 aspect ratio suitable for presentation slides.", - "tags": [ - "crop", - "aspect-ratio", - "pdf", - "pages", - "presentation" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Document.Save", - "Page.CropBox", - "Page.MediaBox" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:13:55Z", - "status": "verified" - }, - "add-header-logo-image-to-pdf-pages": { - "title": "Add Header Logo Image to PDF Pages", - "filename": "add-header-logo-image-to-pdf-pages.cs", - "description": "Shows how to load a PDF, create an ImageStamp for a company logo, align it to the top‑left of each page as a header, and save the modified document.", + "trim-white-space-from-pdf-pages": { + "title": "Trim White Space from PDF Pages", + "filename": "trim-white-space-from-pdf-pages.cs", + "description": "The example loads a PDF, skips blank pages, calculates the content bounding box for each page, sets the TrimBox to that rectangle to remove surrounding whitespace, and saves the trimmed document.", "tags": [ "pdf", - "header", - "image", - "stamp", - "aspose" + "trim", + "whitespace", + "bounding-box", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.ImageStamp", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.HorizontalAlignment", - "Aspose.Pdf.VerticalAlignment", + "Aspose.Pdf.Page.IsBlank", + "Aspose.Pdf.Page.CalculateContentBBox", + "Aspose.Pdf.Page.TrimBox", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:13:55Z", "status": "verified" }, - "add-bold-uppercase-header-to-pdf-pages": { - "title": "Add Bold Uppercase Header to PDF Pages", - "filename": "add-bold-uppercase-header-to-pdf-pages.cs", - "description": "Shows how to insert a bold, uppercase header on every page of a PDF document using Aspose.Pdf.", - "tags": [ - "header", - "pdf", - "aspose", - "text", - "bold" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.HeaderFooter", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.FontRepository.FindFont", - "Aspose.Pdf.Color" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T08:13:55Z", + "trim-white-space-pixel-tolerance": { + "title": "Trim White Space Pixel Tolerance", + "filename": "trim-white-space-pixel-tolerance.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" } } diff --git a/parse-pdf/AGENTS.md b/parse-pdf/AGENTS.md index 68afd08e7..b1113337b 100644 --- a/parse-pdf/AGENTS.md +++ b/parse-pdf/AGENTS.md @@ -8,7 +8,7 @@ parent: ../agents.md # AGENTS - parse-pdf -> **Parse PDF** in PDF using C# / .NET -- **64** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. +> **Parse PDF** in PDF using C# / .NET -- **97** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. ## Persona @@ -23,27 +23,27 @@ See the root [agents.md](../agents.md) for repository-wide conventions and bound ## Required Namespaces -- `using Aspose.Pdf;` (64/64 files) ← category-specific -- `using Aspose.Pdf.Forms;` (22/64 files) -- `using Aspose.Pdf.Text;` (16/64 files) -- `using Aspose.Pdf.Vector;` (12/64 files) -- `using Aspose.Pdf.Drawing;` (4/64 files) -- `using Aspose.Pdf.Annotations;` (3/64 files) -- `using Aspose.Pdf.Devices;` (2/64 files) -- `using System;` (64/64 files) -- `using System.IO;` (64/64 files) -- `using System.Collections.Generic;` (9/64 files) -- `using System.Text;` (8/64 files) -- `using System.Linq;` (4/64 files) -- `using System.Text.Json;` (4/64 files) -- `using System.Reflection;` (2/64 files) -- `using System.Drawing;` (1/64 files) -- `using System.Drawing.Imaging;` (1/64 files) -- `using System.Globalization;` (1/64 files) -- `using System.Text.Json.Nodes;` (1/64 files) -- `using System.Threading;` (1/64 files) -- `using System.Threading.Tasks;` (1/64 files) -- `using System.Xml;` (1/64 files) +- `using Aspose.Pdf;` (64/97 files) ← category-specific +- `using Aspose.Pdf.Forms;` (22/97 files) +- `using Aspose.Pdf.Text;` (16/97 files) +- `using Aspose.Pdf.Vector;` (12/97 files) +- `using Aspose.Pdf.Drawing;` (4/97 files) +- `using Aspose.Pdf.Annotations;` (3/97 files) +- `using Aspose.Pdf.Devices;` (2/97 files) +- `using System;` (64/97 files) +- `using System.IO;` (64/97 files) +- `using System.Collections.Generic;` (9/97 files) +- `using System.Text;` (8/97 files) +- `using System.Linq;` (4/97 files) +- `using System.Text.Json;` (4/97 files) +- `using System.Reflection;` (2/97 files) +- `using System.Drawing;` (1/97 files) +- `using System.Drawing.Imaging;` (1/97 files) +- `using System.Globalization;` (1/97 files) +- `using System.Text.Json.Nodes;` (1/97 files) +- `using System.Threading;` (1/97 files) +- `using System.Threading.Tasks;` (1/97 files) +- `using System.Xml;` (1/97 files) ## Common Code Pattern @@ -62,38 +62,38 @@ using (Document doc = new Document("input.pdf")) |------|-------|----------|-------------| | [batch-extract-vector-graphics-to-svg](./batch-extract-vector-graphics-to-svg.cs) | Batch Extract Vector Graphics from PDFs to SVG | `Document`, `Page`, `HasVectorGraphics` | Shows how to iterate over PDF files in a folder, detect pages containing vector graphics, and sav... | | [combine-pdf-form-data-into-json-array](./combine-pdf-form-data-into-json-array.cs) | Combine PDF Form Data into a Single JSON Array | `Document`, `Form`, `ExportToJson` | Demonstrates loading multiple PDF files, exporting each form's fields to JSON using Aspose.Pdf, a... | +| [combine-pdf-form-data-to-json](./combine-pdf-form-data-to-json.cs) | Combine pdf form data to json | | Combine pdf form data to json | | [combine-pdf-page-vector-graphics-into-svg](./combine-pdf-page-vector-graphics-into-svg.cs) | Combine PDF Page Vector Graphics into a Single SVG | `Document`, `Page`, `SvgExtractor` | Loads a PDF, extracts vector graphics from each page using Aspose.Pdf's SvgExtractor, and merges ... | +| [combine-pdf-vector-graphics-to-svg](./combine-pdf-vector-graphics-to-svg.cs) | Combine pdf vector graphics to svg | | Combine pdf vector graphics to svg | +| [combine-pdf-vector-graphics-to-svg__v2](./combine-pdf-vector-graphics-to-svg__v2.cs) | Combine pdf vector graphics to svg__v2 | | Combine pdf vector graphics to svg__v2 | | [combine-pdf-vectors-to-svg](./combine-pdf-vectors-to-svg.cs) | Combine Vector Graphics from Multiple PDFs into a Single SVG | `Document`, `Page`, `HasVectorGraphics` | The example loads several PDF files, extracts vector graphics from each page using Aspose.Pdf's S... | | [count-acroform-fields-in-pdf](./count-acroform-fields-in-pdf.cs) | Count AcroForm Fields in PDF | `Document`, `Form` | Loads a PDF with Aspose.Pdf and retrieves the total number of AcroForm fields using Document.Form... | | [count-form-fields-on-each-pdf-page](./count-form-fields-on-each-pdf-page.cs) | Count Form Fields on Each PDF Page | `Document`, `Form`, `Page` | Demonstrates opening a PDF with Aspose.Pdf, verifying the presence of an AcroForm, iterating thro... | +| [enumerate-pdf-form-fields-on-page](./enumerate-pdf-form-fields-on-page.cs) | Enumerate pdf form fields on page | | Enumerate pdf form fields on page | | [enumerate-pdf-form-fields](./enumerate-pdf-form-fields.cs) | Enumerate PDF Form Fields on a Page | `Document`, `Page`, `Field` | Loads a PDF, accesses a specific page, and lists each form field on that page with its name, type... | | [export-acroform-fields-to-json](./export-acroform-fields-to-json.cs) | Export AcroForm Fields to JSON | `Document`, `Form`, `ExportToJson` | Shows how to load a PDF containing AcroForm fields and export the field names and values directly... | | [export-acroform-to-xfdf](./export-acroform-to-xfdf.cs) | Export AcroForm Fields to XFDF | `Document`, `ExportAnnotationsToXfdf` | Shows how to load a PDF with Aspose.Pdf, create a FileStream, and export the document's AcroForm ... | +| [export-filtered-pdf-form-fields-to-json](./export-filtered-pdf-form-fields-to-json.cs) | Export filtered pdf form fields to json | | Export filtered pdf form fields to json | +| [export-pdf-acroform-fields-to-json](./export-pdf-acroform-fields-to-json.cs) | Export pdf acroform fields to json | | Export pdf acroform fields to json | | [export-pdf-annotations-to-xfdf](./export-pdf-annotations-to-xfdf.cs) | Export PDF Annotations to XFDF using FileStream | `Document`, `ExportAnnotationsToXfdf` | Demonstrates how to load a PDF with Aspose.Pdf, export all its annotations to an XFDF file via a ... | +| [export-pdf-annotations-to-xfdf__v2](./export-pdf-annotations-to-xfdf__v2.cs) | Export pdf annotations to xfdf__v2 | | Export pdf annotations to xfdf__v2 | | [export-pdf-form-data-to-fdf](./export-pdf-form-data-to-fdf.cs) | Export PDF Form Data to FDF Using Aspose.Pdf | `Document`, `Form`, `BindPdf` | Loads a PDF document, binds it to the Aspose.Pdf.Facades.Form facade, and exports the form fields... | +| [export-pdf-form-data-to-json-bytes](./export-pdf-form-data-to-json-bytes.cs) | Export pdf form data to json bytes | | Export pdf form data to json bytes | | [export-pdf-form-data-to-json](./export-pdf-form-data-to-json.cs) | Export PDF Form Data to JSON | `Document`, `Form`, `ExportToJson` | Shows how to load a PDF document with Aspose.Pdf, export all form fields to a JSON string using t... | | [export-pdf-form-data-to-json__v2](./export-pdf-form-data-to-json__v2.cs) | Export PDF Form Data to JSON File | `Document`, `Form`, `ExportToJson` | Demonstrates loading a PDF with Aspose.Pdf, extracting all form fields, and saving them as a UTF‑... | | [export-pdf-form-data-to-json__v3](./export-pdf-form-data-to-json__v3.cs) | Export PDF Form Data to JSON Files | `Document`, `Form`, `ExportToJson` | Iterates through PDF files in a folder, loads each with Aspose.Pdf, and exports the document's fo... | | [export-pdf-form-data-to-json__v4](./export-pdf-form-data-to-json__v4.cs) | Export PDF Form Data to JSON | `Document`, `Form`, `Form` | Shows how to load a PDF with Aspose.Pdf and export its interactive form fields to a JSON file usi... | | [export-pdf-form-data-to-json__v5](./export-pdf-form-data-to-json__v5.cs) | Export PDF Form Data to JSON via Stream | `Document`, `Form`, `ExportToJson` | Shows how to load a PDF document and export its form fields directly to a JSON file using a FileS... | +| [export-pdf-form-data-to-xfdf](./export-pdf-form-data-to-xfdf.cs) | Export pdf form data to xfdf | | Export pdf form data to xfdf | +| [export-pdf-form-data-to-xml-xfdf](./export-pdf-form-data-to-xml-xfdf.cs) | Export pdf form data to xml xfdf | | Export pdf form data to xml xfdf | | [export-pdf-form-data-to-xml](./export-pdf-form-data-to-xml.cs) | Export PDF Form Data to XML Using MemoryStream | `Document`, `Form`, `Fields` | Loads a PDF, verifies the presence of form fields, and writes the form data as XML directly into ... | +| [export-pdf-form-fields-to-json](./export-pdf-form-fields-to-json.cs) | Export pdf form fields to json | | Export pdf form fields to json | | [export-pdf-form-fields-to-xml](./export-pdf-form-fields-to-xml.cs) | Export PDF Form Fields to XML | `Document`, `SaveXml` | Loads a PDF document and saves its complete model, including form field definitions and values, t... | | [export-pdf-form-fields-with-prefix-to-json](./export-pdf-form-fields-with-prefix-to-json.cs) | Export PDF Form Fields with Specific Prefix to JSON | `Document`, `Field`, `Form` | Loads a PDF, filters its form fields to only those whose names start with a given prefix, and wri... | -| [export-pdf-form-to-fdf](./export-pdf-form-to-fdf.cs) | Export PDF Form Data to FDF | `Document`, `Form`, `BindPdf` | Shows how to extract form field values from a PDF document and write them to an FDF file using As... | -| [export-pdf-page-as-png](./export-pdf-page-as-png.cs) | Export PDF Page as PNG Image | `Document`, `Resolution`, `PngDevice` | Loads a PDF document, creates a resolution and PNG device, and rasterizes the first page to a PNG... | -| [export-pdf-pages-to-svg-preserving-coordinate-syst...](./export-pdf-pages-to-svg-preserving-coordinate-system.cs) | Export PDF Pages to SVG Preserving Coordinate System | `Document`, `Page`, `TrySaveVectorGraphics` | Loads a PDF, iterates through each page, and saves any vector graphics as SVG files while keeping... | -| [export-pdf-tables-to-csv-with-borders](./export-pdf-tables-to-csv-with-borders.cs) | Export PDF Tables to CSV with Visual Border Markers | `Document`, `Page`, `TableAbsorber` | Demonstrates how to extract tables from a PDF using Aspose.Pdf's TableAbsorber and write them to ... | -| [export-pdf-to-html-png-xfdf](./export-pdf-to-html-png-xfdf.cs) | Export PDF to HTML, PNG, and XFDF with Proper Stream Disposa... | `Document`, `HtmlSaveOptions`, `PngDevice` | Demonstrates how to export a PDF document to HTML, a PNG image of the first page, and XFDF annota... | -| [export-pdf-to-svg-with-custom-options](./export-pdf-to-svg-with-custom-options.cs) | Export PDF to SVG with Custom Rendering Options | `Document`, `SvgSaveOptions`, `SvgExtractionOptions` | Shows how to save a PDF as a single SVG file and extract per‑page vector graphics while applying ... | -| [extract-checkbox-states-from-pdf](./extract-checkbox-states-from-pdf.cs) | Extract Checkbox States from PDF AcroForm | `Document`, `Field`, `CheckboxField` | Shows how to read checkbox fields from a PDF's AcroForm using Aspose.Pdf and write their checked ... | -| [extract-first-page-text-to-utf8-file](./extract-first-page-text-to-utf8-file.cs) | Extract First Page Text from PDF to UTF-8 File | `Document`, `TextAbsorber`, `Accept` | Demonstrates how to load a PDF with Aspose.Pdf, extract the text from its first page using a Text... | -| [extract-fonts-from-pdf-ttf](./extract-fonts-from-pdf-ttf.cs) | Extract Fonts from PDF and Save as TTF Files | `Document`, `FontUtilities`, `GetAllFonts` | Loads a PDF document, retrieves all embedded fonts, and exports each font to a .ttf file in a des... | -| [extract-graphic-element-as-svg](./extract-graphic-element-as-svg.cs) | Extract Graphic Element as SVG from PDF | `Document`, `Page`, `SvgExtractor` | Loads a PDF, extracts vector graphic elements on a page as SVG strings, selects one by index, and... | -| [extract-graphics-from-specific-pdf-pages](./extract-graphics-from-specific-pdf-pages.cs) | Extract Graphics from Specific PDF Pages to SVG | `Document`, `Page`, `GraphicsAbsorber` | Shows how to use GraphicsAbsorber together with SvgExtractor to collect vector graphics from sele... | -| ... | | | *and 34 more files* | +| ... | | | *and 67 more files* | ## Category Statistics -- Total examples: 64 +- Total examples: 97 ## General Tips - See parent [AGENTS.md](../AGENTS.md) for: @@ -104,5 +104,5 @@ using (Document doc = new Document("input.pdf")) - Review code examples in this folder for parse-pdf patterns -Updated: 2026-08-20 | Run: `20260820_001147_12d7b3` +Updated: 2026-09-10 | Run: `20260910_054408_87a7f4` diff --git a/parse-pdf/README.md b/parse-pdf/README.md new file mode 100644 index 000000000..0d7b1507f --- /dev/null +++ b/parse-pdf/README.md @@ -0,0 +1,116 @@ +# Parse PDF + +> **Parse PDF** in PDF using C# / .NET -- **97** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. + +- Category: `parse-pdf` +- Examples: 97 +- NuGet: `Aspose.PDF 26.8.0` -- target `net10.0` + +## Examples + +- [`batch-extract-vector-graphics-to-svg.cs`](./batch-extract-vector-graphics-to-svg.cs) -- Batch extract vector graphics to svg +- [`combine-pdf-form-data-into-json-array.cs`](./combine-pdf-form-data-into-json-array.cs) -- Combine pdf form data into json array +- [`combine-pdf-form-data-to-json.cs`](./combine-pdf-form-data-to-json.cs) -- Combine pdf form data to json +- [`combine-pdf-page-vector-graphics-into-svg.cs`](./combine-pdf-page-vector-graphics-into-svg.cs) -- Combine pdf page vector graphics into svg +- [`combine-pdf-vector-graphics-to-svg.cs`](./combine-pdf-vector-graphics-to-svg.cs) -- Combine pdf vector graphics to svg +- [`combine-pdf-vector-graphics-to-svg__v2.cs`](./combine-pdf-vector-graphics-to-svg__v2.cs) -- Combine pdf vector graphics to svg v2 +- [`combine-pdf-vectors-to-svg.cs`](./combine-pdf-vectors-to-svg.cs) -- Combine pdf vectors to svg +- [`count-acroform-fields-in-pdf.cs`](./count-acroform-fields-in-pdf.cs) -- Count acroform fields in pdf +- [`count-form-fields-on-each-pdf-page.cs`](./count-form-fields-on-each-pdf-page.cs) -- Count form fields on each pdf page +- [`enumerate-pdf-form-fields-on-page.cs`](./enumerate-pdf-form-fields-on-page.cs) -- Enumerate pdf form fields on page +- [`enumerate-pdf-form-fields.cs`](./enumerate-pdf-form-fields.cs) -- Enumerate pdf form fields +- [`export-acroform-fields-to-json.cs`](./export-acroform-fields-to-json.cs) -- Export acroform fields to json +- [`export-acroform-to-xfdf.cs`](./export-acroform-to-xfdf.cs) -- Export acroform to xfdf +- [`export-filtered-pdf-form-fields-to-json.cs`](./export-filtered-pdf-form-fields-to-json.cs) -- Export filtered pdf form fields to json +- [`export-pdf-acroform-fields-to-json.cs`](./export-pdf-acroform-fields-to-json.cs) -- Export pdf acroform fields to json +- [`export-pdf-annotations-to-xfdf.cs`](./export-pdf-annotations-to-xfdf.cs) -- Export pdf annotations to xfdf +- [`export-pdf-annotations-to-xfdf__v2.cs`](./export-pdf-annotations-to-xfdf__v2.cs) -- Export pdf annotations to xfdf v2 +- [`export-pdf-form-data-to-fdf.cs`](./export-pdf-form-data-to-fdf.cs) -- Export pdf form data to fdf +- [`export-pdf-form-data-to-json-bytes.cs`](./export-pdf-form-data-to-json-bytes.cs) -- Export pdf form data to json bytes +- [`export-pdf-form-data-to-json.cs`](./export-pdf-form-data-to-json.cs) -- Export pdf form data to json +- [`export-pdf-form-data-to-json__v2.cs`](./export-pdf-form-data-to-json__v2.cs) -- Export pdf form data to json v2 +- [`export-pdf-form-data-to-json__v3.cs`](./export-pdf-form-data-to-json__v3.cs) -- Export pdf form data to json v3 +- [`export-pdf-form-data-to-json__v4.cs`](./export-pdf-form-data-to-json__v4.cs) -- Export pdf form data to json v4 +- [`export-pdf-form-data-to-json__v5.cs`](./export-pdf-form-data-to-json__v5.cs) -- Export pdf form data to json v5 +- [`export-pdf-form-data-to-xfdf.cs`](./export-pdf-form-data-to-xfdf.cs) -- Export pdf form data to xfdf +- [`export-pdf-form-data-to-xml-xfdf.cs`](./export-pdf-form-data-to-xml-xfdf.cs) -- Export pdf form data to xml xfdf +- [`export-pdf-form-data-to-xml.cs`](./export-pdf-form-data-to-xml.cs) -- Export pdf form data to xml +- [`export-pdf-form-fields-to-json.cs`](./export-pdf-form-fields-to-json.cs) -- Export pdf form fields to json +- [`export-pdf-form-fields-to-xml.cs`](./export-pdf-form-fields-to-xml.cs) -- Export pdf form fields to xml +- [`export-pdf-form-fields-with-prefix-to-json.cs`](./export-pdf-form-fields-with-prefix-to-json.cs) -- Export pdf form fields with prefix to json +- [`export-pdf-form-to-fdf.cs`](./export-pdf-form-to-fdf.cs) -- Export pdf form to fdf +- [`export-pdf-page-as-png.cs`](./export-pdf-page-as-png.cs) -- Export pdf page as png +- [`export-pdf-pages-to-svg-preserving-coordinate-system.cs`](./export-pdf-pages-to-svg-preserving-coordinate-system.cs) -- Export pdf pages to svg preserving coordinate system +- [`export-pdf-pages-vector-graphics-to-svg.cs`](./export-pdf-pages-vector-graphics-to-svg.cs) -- Export pdf pages vector graphics to svg +- [`export-pdf-subpaths-to-separate-svgs.cs`](./export-pdf-subpaths-to-separate-svgs.cs) -- Export pdf subpaths to separate svgs +- [`export-pdf-tables-to-csv-with-border-markers.cs`](./export-pdf-tables-to-csv-with-border-markers.cs) -- Export pdf tables to csv with border markers +- [`export-pdf-tables-to-csv-with-borders.cs`](./export-pdf-tables-to-csv-with-borders.cs) -- Export pdf tables to csv with borders +- [`export-pdf-to-html-png-xfdf.cs`](./export-pdf-to-html-png-xfdf.cs) -- Export pdf to html png xfdf +- [`export-pdf-to-pdf-html-xml-with-stream-disposal.cs`](./export-pdf-to-pdf-html-xml-with-stream-disposal.cs) -- Export pdf to pdf html xml with stream disposal +- [`export-pdf-to-svg-with-custom-options.cs`](./export-pdf-to-svg-with-custom-options.cs) -- Export pdf to svg with custom options +- [`extract-checkbox-states-from-pdf.cs`](./extract-checkbox-states-from-pdf.cs) -- Extract checkbox states from pdf +- [`extract-checkbox-states-to-json.cs`](./extract-checkbox-states-to-json.cs) -- Extract checkbox states to json +- [`extract-filter-graphics-by-area.cs`](./extract-filter-graphics-by-area.cs) -- Extract filter graphics by area +- [`extract-first-page-text-to-utf8-file.cs`](./extract-first-page-text-to-utf8-file.cs) -- Extract first page text to utf8 file +- [`extract-fonts-from-pdf-ttf.cs`](./extract-fonts-from-pdf-ttf.cs) -- Extract fonts from pdf ttf +- [`extract-graphic-element-as-svg.cs`](./extract-graphic-element-as-svg.cs) -- Extract graphic element as svg +- [`extract-graphics-from-specific-pdf-pages.cs`](./extract-graphics-from-specific-pdf-pages.cs) -- Extract graphics from specific pdf pages +- [`extract-images-from-pdf.cs`](./extract-images-from-pdf.cs) -- Extract images from pdf +- [`extract-images-using-graphicsabsorber.cs`](./extract-images-using-graphicsabsorber.cs) -- Extract images using graphicsabsorber +- [`extract-paragraphs-from-pdf.cs`](./extract-paragraphs-from-pdf.cs) -- Extract paragraphs from pdf +- [`extract-paragraphs-with-line-breaks.cs`](./extract-paragraphs-with-line-breaks.cs) -- Extract paragraphs with line breaks +- [`extract-pdf-font-table-form-field-statistics.cs`](./extract-pdf-font-table-form-field-statistics.cs) -- Extract pdf font table form field statistics +- [`extract-pdf-form-field-values.cs`](./extract-pdf-form-field-values.cs) -- Extract pdf form field values +- [`extract-pdf-form-fields.cs`](./extract-pdf-form-fields.cs) -- Extract pdf form fields +- [`extract-pdf-form-xobject-text-with-logging.cs`](./extract-pdf-form-xobject-text-with-logging.cs) -- Extract pdf form xobject text with logging +- [`extract-pdf-metadata-and-save-aps.cs`](./extract-pdf-metadata-and-save-aps.cs) -- Extract pdf metadata and save aps +- [`extract-pdf-metadata-and-save-svg.cs`](./extract-pdf-metadata-and-save-svg.cs) -- Extract pdf metadata and save svg +- [`extract-pdf-paragraphs-to-markdown.cs`](./extract-pdf-paragraphs-to-markdown.cs) -- Extract pdf paragraphs to markdown +- [`extract-pdf-stamp-texts-to-json.cs`](./extract-pdf-stamp-texts-to-json.cs) -- Extract pdf stamp texts to json +- [`extract-pdf-tables-to-csv.cs`](./extract-pdf-tables-to-csv.cs) -- Extract pdf tables to csv +- [`extract-selected-radio-button-labels.cs`](./extract-selected-radio-button-labels.cs) -- Extract selected radio button labels +- [`extract-single-graphic-element-as-svg.cs`](./extract-single-graphic-element-as-svg.cs) -- Extract single graphic element as svg +- [`extract-stamp-annotation-text.cs`](./extract-stamp-annotation-text.cs) -- Extract stamp annotation text +- [`extract-subpaths-as-png-images.cs`](./extract-subpaths-as-png-images.cs) -- Extract subpaths as png images +- [`extract-subpaths-as-separate-svg.cs`](./extract-subpaths-as-separate-svg.cs) -- Extract subpaths as separate svg +- [`extract-subpaths-pdf-png.cs`](./extract-subpaths-pdf-png.cs) -- Extract subpaths pdf png +- [`extract-superscript-subscript-from-pdf.cs`](./extract-superscript-subscript-from-pdf.cs) -- Extract superscript subscript from pdf +- [`extract-superscript-subscript-from-pdf__v2.cs`](./extract-superscript-subscript-from-pdf__v2.cs) -- Extract superscript subscript from pdf v2 +- [`extract-superscripts-subscripts-from-pdf.cs`](./extract-superscripts-subscripts-from-pdf.cs) -- Extract superscripts subscripts from pdf +- [`extract-svg-apply-brand-colors.cs`](./extract-svg-apply-brand-colors.cs) -- Extract svg apply brand colors +- [`extract-text-from-pdf-to-txt.cs`](./extract-text-from-pdf-to-txt.cs) -- Extract text from pdf to txt +- [`extract-vector-graphics-from-encrypted-pdf.cs`](./extract-vector-graphics-from-encrypted-pdf.cs) -- Extract vector graphics from encrypted pdf +- [`extract-vector-graphics-to-svg.cs`](./extract-vector-graphics-to-svg.cs) -- Extract vector graphics to svg +- [`extract-vector-graphics-to-svg__v2.cs`](./extract-vector-graphics-to-svg__v2.cs) -- Extract vector graphics to svg v2 +- [`filter-export-large-graphics-pdf.cs`](./filter-export-large-graphics-pdf.cs) -- Filter export large graphics pdf +- [`iterate-modify-pdf-form-fields.cs`](./iterate-modify-pdf-form-fields.cs) -- Iterate modify pdf form fields +- [`iterate-pdf-form-fields-set-values.cs`](./iterate-pdf-form-fields-set-values.cs) -- Iterate pdf form fields set values +- [`iterate-pdf-pages-list-form-fields.cs`](./iterate-pdf-pages-list-form-fields.cs) -- Iterate pdf pages list form fields +- [`list-form-fields-per-pdf-page.cs`](./list-form-fields-per-pdf-page.cs) -- List form fields per pdf page +- [`load-pdf-extract-acroform-fields.cs`](./load-pdf-extract-acroform-fields.cs) -- Load pdf extract acroform fields +- [`log-form-field-count-per-pdf-page.cs`](./log-form-field-count-per-pdf-page.cs) -- Log form field count per pdf page +- [`log-pdf-form-extraction-timestamps.cs`](./log-pdf-form-extraction-timestamps.cs) -- Log pdf form extraction timestamps +- [`modify-checkbox-appearance-extract-value.cs`](./modify-checkbox-appearance-extract-value.cs) -- Modify checkbox appearance extract value +- [`parallel-pdf-text-extraction.cs`](./parallel-pdf-text-extraction.cs) -- Parallel pdf text extraction +- [`parse-number-fields-to-decimal.cs`](./parse-number-fields-to-decimal.cs) -- Parse number fields to decimal +- [`parse-numeric-form-fields-sum.cs`](./parse-numeric-form-fields-sum.cs) -- Parse numeric form fields sum +- [`pdf-summary-report-text-image-count.cs`](./pdf-summary-report-text-image-count.cs) -- Pdf summary report text image count +- [`pdf-summary-report-text-images-graphics.cs`](./pdf-summary-report-text-images-graphics.cs) -- Pdf summary report text images graphics +- [`read-acroform-fields-from-pdf-stream.cs`](./read-acroform-fields-from-pdf-stream.cs) -- Read acroform fields from pdf stream +- [`read-checkbox-value-to-boolean.cs`](./read-checkbox-value-to-boolean.cs) -- Read checkbox value to boolean +- [`retrieve-acroform-fields-from-pdf.cs`](./retrieve-acroform-fields-from-pdf.cs) -- Retrieve acroform fields from pdf +- [`retrieve-form-field-types.cs`](./retrieve-form-field-types.cs) -- Retrieve form field types +- [`retrieve-pdf-form-field-by-name.cs`](./retrieve-pdf-form-field-by-name.cs) -- Retrieve pdf form field by name +- [`retrieve-pdf-form-field-types.cs`](./retrieve-pdf-form-field-types.cs) -- Retrieve pdf form field types +- [`retrieve-pdf-form-field-value.cs`](./retrieve-pdf-form-field-value.cs) -- Retrieve pdf form field value +- [`serialize-pdf-form-data-to-json-bytes.cs`](./serialize-pdf-form-data-to-json-bytes.cs) -- Serialize pdf form data to json bytes +- [`validate-pdf-fonts-against-system.cs`](./validate-pdf-fonts-against-system.cs) -- Validate pdf fonts against system + +## See Also + +- [`AGENTS.md`](./AGENTS.md) -- category-specific anti-patterns, API surface, and conventions for AI coding agents +- [`../AGENTS.md`](../AGENTS.md) -- repository-wide agent guide +- [`../README.md`](../README.md) -- full category index and project overview +- [Aspose.PDF for .NET docs](https://docs.aspose.com/pdf/net/) + +> Each `.cs` file is a standalone, build-validated console example. Drop into a fresh `dotnet new console` project, add the `Aspose.PDF` NuGet (version above), and run. diff --git a/parse-pdf/index.json b/parse-pdf/index.json index a9759e60c..d19d33fa7 100644 --- a/parse-pdf/index.json +++ b/parse-pdf/index.json @@ -1,116 +1,175 @@ { "category": "parse-pdf", "nuget_version": "26.8.0", - "last_updated": "2026-08-20T08:19:01Z", + "last_updated": "2026-09-10T12:45:08Z", "examples": { - "load-pdf-extract-acroform-fields": { - "title": "Load PDF and Extract AcroForm Fields", - "filename": "load-pdf-extract-acroform-fields.cs", - "description": "Shows how to load a PDF file with Aspose.Pdf, access its AcroForm, and enumerate each form field to display its name and current value.", + "batch-extract-vector-graphics-to-svg": { + "title": "Batch Extract Vector Graphics from PDFs to SVG", + "filename": "batch-extract-vector-graphics-to-svg.cs", + "description": "Shows how to iterate over PDF files in a folder, detect pages containing vector graphics, and save those graphics as SVG files using Aspose.Pdf.", "tags": [ "pdf", - "acroform", - "form-fields", - "aspose", - "csharp" + "vector-graphics", + "svg", + "batch-processing", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.FieldCollection" + "Aspose.Pdf.Page", + "Aspose.Pdf.Page.HasVectorGraphics", + "Aspose.Pdf.Page.TrySaveVectorGraphics", + "Aspose.Pdf.Document.Pages" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "read-acroform-fields-from-pdf-stream": { - "title": "Read AcroForm Fields from PDF Stream", - "filename": "read-acroform-fields-from-pdf-stream.cs", - "description": "Shows how to open a PDF as a read‑only stream and use Aspose.Pdf to enumerate AcroForm fields without saving the file to disk.", + "combine-pdf-form-data-into-json-array": { + "title": "Combine PDF Form Data into a Single JSON Array", + "filename": "combine-pdf-form-data-into-json-array.cs", + "description": "Demonstrates loading multiple PDF files, exporting each form's fields to JSON using Aspose.Pdf, and merging the results into a single JSON array for batch processing.", "tags": [ "pdf", - "acroform", - "fields", - "stream", + "form", + "json", + "batch", + "export" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Form.ExportToJson" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T08:19:01Z", + "status": "verified" + }, + "combine-pdf-form-data-to-json": { + "title": "Combine Pdf Form Data To Json", + "filename": "combine-pdf-form-data-to-json.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "combine-pdf-page-vector-graphics-into-svg": { + "title": "Combine PDF Page Vector Graphics into a Single SVG", + "filename": "combine-pdf-page-vector-graphics-into-svg.cs", + "description": "Loads a PDF, extracts vector graphics from each page using Aspose.Pdf's SvgExtractor, and merges them into a single multi‑page SVG document.", + "tags": [ + "pdf", + "svg", + "vector", + "extraction", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Form", - "Aspose.Pdf.Forms.Field" + "Aspose.Pdf.Page", + "Aspose.Pdf.Vector.SvgExtractor", + "Aspose.Pdf.Vector.SvgExtractor.Extract", + "Aspose.Pdf.Document.Pages" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "retrieve-acroform-fields-from-pdf": { - "title": "Retrieve AcroForm Fields from PDF", - "filename": "retrieve-acroform-fields-from-pdf.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, access its AcroForm, and enumerate all form fields, displaying each field's name, type, and value.", + "combine-pdf-vector-graphics-to-svg": { + "title": "Combine Pdf Vector Graphics To Svg", + "filename": "combine-pdf-vector-graphics-to-svg.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "combine-pdf-vector-graphics-to-svg__v2": { + "title": "Combine Pdf Vector Graphics To Svg__V2", + "filename": "combine-pdf-vector-graphics-to-svg__v2.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "combine-pdf-vectors-to-svg": { + "title": "Combine Vector Graphics from Multiple PDFs into a Single SVG", + "filename": "combine-pdf-vectors-to-svg.cs", + "description": "The example loads several PDF files, extracts vector graphics from each page using Aspose.Pdf's SvgExtractor, and merges the resulting SVG fragments into one multi‑page SVG document.", "tags": [ "pdf", - "acroform", - "fields", - "aspose", - "csharp" + "svg", + "vector-graphics", + "extraction", + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Form.Fields", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.Field.FullName", - "Aspose.Pdf.Forms.Field.Value" + "Aspose.Pdf.Page", + "Aspose.Pdf.Page.HasVectorGraphics", + "Aspose.Pdf.SvgExtractor", + "Aspose.Pdf.SvgExtractor.Extract" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "retrieve-pdf-form-field-value": { - "title": "Retrieve PDF Form Field Value by Name", - "filename": "retrieve-pdf-form-field-value.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, access its AcroForm collection, retrieve a specific form field using the Document.Form indexer, and read the field's value.", + "count-acroform-fields-in-pdf": { + "title": "Count AcroForm Fields in PDF", + "filename": "count-acroform-fields-in-pdf.cs", + "description": "Loads a PDF with Aspose.Pdf and retrieves the total number of AcroForm fields using Document.Form.Count.", "tags": [ + "acroform", + "field-count", "pdf", - "form", - "field", "aspose-pdf", - "csharp" + "document" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.WidgetAnnotation", - "Aspose.Pdf.Forms.Field" + "Aspose.Pdf.Form" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "list-form-fields-per-pdf-page": { - "title": "List Form Fields on Each PDF Page", - "filename": "list-form-fields-per-pdf-page.cs", - "description": "Loads a PDF document, iterates through all pages, and prints the names of any form fields present on each page.", + "count-form-fields-on-each-pdf-page": { + "title": "Count Form Fields on Each PDF Page", + "filename": "count-form-fields-on-each-pdf-page.cs", + "description": "Demonstrates opening a PDF with Aspose.Pdf, verifying the presence of an AcroForm, iterating through pages, and logging the number of form fields (WidgetAnnotations) found on each page.", "tags": [ "pdf", "form-fields", - "aspose-pdf", - "csharp", - "page-iteration" + "aspose", + "page-iteration", + "logging" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Form", "Aspose.Pdf.Page", - "Aspose.Pdf.Page.FieldsInTabOrder", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Annotations.WidgetAnnotation", + "Aspose.Pdf.Page.Annotations" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, + "enumerate-pdf-form-fields-on-page": { + "title": "Enumerate Pdf Form Fields On Page", + "filename": "enumerate-pdf-form-fields-on-page.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "enumerate-pdf-form-fields": { "title": "Enumerate PDF Form Fields on a Page", "filename": "enumerate-pdf-form-fields.cs", @@ -133,50 +192,125 @@ "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "read-checkbox-value-to-boolean": { - "title": "Read Checkbox Value and Convert to Boolean", - "filename": "read-checkbox-value-to-boolean.cs", - "description": "Shows how to open a PDF with Aspose.Pdf, access a checkbox form field, read its Value property, and convert the string value to a Boolean.", + "export-acroform-fields-to-json": { + "title": "Export AcroForm Fields to JSON", + "filename": "export-acroform-fields-to-json.cs", + "description": "Shows how to load a PDF containing AcroForm fields and export the field names and values directly to a JSON file using Aspose.Pdf.", "tags": [ - "checkbox", - "form", "pdf", - "boolean", + "acroform", + "json", + "export", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.CheckboxField", - "Aspose.Pdf.Forms.Form.Fields", - "Aspose.Pdf.Forms.CheckboxField.Value" + "Aspose.Pdf.Forms.Form.ExportToJson" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "parse-number-fields-to-decimal": { - "title": "Parse Number Fields from PDF Form to Decimal", - "filename": "parse-number-fields-to-decimal.cs", - "description": "Shows how to load a PDF form with Aspose.Pdf, iterate over NumberField entries, convert their string values to decimal using invariant culture, and perform a simple calculation.", + "export-acroform-to-xfdf": { + "title": "Export AcroForm Fields to XFDF", + "filename": "export-acroform-to-xfdf.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, create a FileStream, and export the document's AcroForm fields (annotations) to an XFDF file.", "tags": [ "pdf", - "form-fields", - "numberfield", - "parsing", - "decimal" + "xfdf", + "acroform", + "export", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.NumberField", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Forms.NumberField.Value", - "Aspose.Pdf.Forms.NumberField.PartialName" + "Aspose.Pdf.Document.ExportAnnotationsToXfdf" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:19:01Z", + "status": "verified" + }, + "export-filtered-pdf-form-fields-to-json": { + "title": "Export Filtered Pdf Form Fields To Json", + "filename": "export-filtered-pdf-form-fields-to-json.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "export-pdf-acroform-fields-to-json": { + "title": "Export Pdf Acroform Fields To Json", + "filename": "export-pdf-acroform-fields-to-json.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "export-pdf-annotations-to-xfdf": { + "title": "Export PDF Annotations to XFDF using FileStream", + "filename": "export-pdf-annotations-to-xfdf.cs", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, export all its annotations to an XFDF file via a FileStream, and properly close the stream.", + "tags": [ + "xfdf", + "annotations", + "export", + "aspose-pdf", + "filestream" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.ExportAnnotationsToXfdf" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, + "export-pdf-annotations-to-xfdf__v2": { + "title": "Export Pdf Annotations To Xfdf__V2", + "filename": "export-pdf-annotations-to-xfdf__v2.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "export-pdf-form-data-to-fdf": { + "title": "Export PDF Form Data to FDF Using Aspose.Pdf", + "filename": "export-pdf-form-data-to-fdf.cs", + "description": "Loads a PDF document, binds it to the Aspose.Pdf.Facades.Form facade, and exports the form fields to an FDF file via a FileStream.", + "tags": [ + "pdf", + "fdf", + "form", + "export", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.Form.BindPdf", + "Aspose.Pdf.Facades.Form.ExportFdf" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T08:19:01Z", + "status": "verified" + }, + "export-pdf-form-data-to-json-bytes": { + "title": "Export Pdf Form Data To Json Bytes", + "filename": "export-pdf-form-data-to-json-bytes.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "export-pdf-form-data-to-json": { "title": "Export PDF Form Data to JSON", "filename": "export-pdf-form-data-to-json.cs", @@ -220,621 +354,795 @@ "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "export-pdf-form-fields-to-xml": { - "title": "Export PDF Form Fields to XML", - "filename": "export-pdf-form-fields-to-xml.cs", - "description": "Loads a PDF document and saves its complete model, including form field definitions and values, to an XML file using Aspose.Pdf.", + "export-pdf-form-data-to-json__v3": { + "title": "Export PDF Form Data to JSON Files", + "filename": "export-pdf-form-data-to-json__v3.cs", + "description": "Iterates through PDF files in a folder, loads each with Aspose.Pdf, and exports the document's form fields to a separate JSON file.", "tags": [ "pdf", - "form-fields", - "xml", + "form", "export", - "aspose-pdf" + "json", + "batch" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.SaveXml" + "Aspose.Pdf.Form", + "Aspose.Pdf.Form.ExportToJson" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "export-pdf-form-to-fdf": { - "title": "Export PDF Form Data to FDF", - "filename": "export-pdf-form-to-fdf.cs", - "description": "Shows how to extract form field values from a PDF document and write them to an FDF file using Aspose.Pdf's Form facade.", + "export-pdf-form-data-to-json__v4": { + "title": "Export PDF Form Data to JSON", + "filename": "export-pdf-form-data-to-json__v4.cs", + "description": "Shows how to load a PDF with Aspose.Pdf and export its interactive form fields to a JSON file using a simple command‑line utility.", "tags": [ "pdf", "form", - "fdf", "export", - "aspose" + "json", + "command-line" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.BindPdf", - "Aspose.Pdf.Facades.Form.ExportFdf" + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Form", + "Aspose.Pdf.Form.ExportToJson", + "Aspose.Pdf.Document.Dispose" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "export-acroform-to-xfdf": { - "title": "Export AcroForm Fields to XFDF", - "filename": "export-acroform-to-xfdf.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, create a FileStream, and export the document's AcroForm fields (annotations) to an XFDF file.", + "export-pdf-form-data-to-json__v5": { + "title": "Export PDF Form Data to JSON via Stream", + "filename": "export-pdf-form-data-to-json__v5.cs", + "description": "Shows how to load a PDF document and export its form fields directly to a JSON file using a FileStream with Aspose.Pdf's ExportToJson method.", "tags": [ "pdf", - "xfdf", - "acroform", + "form", + "json", "export", - "aspose" + "stream" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.ExportAnnotationsToXfdf" + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Form.ExportToJson" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "export-pdf-to-html-png-xfdf": { - "title": "Export PDF to HTML, PNG, and XFDF with Proper Stream Disposal", - "filename": "export-pdf-to-html-png-xfdf.cs", - "description": "Demonstrates how to export a PDF document to HTML, a PNG image of the first page, and XFDF annotations while correctly closing each FileStream using using blocks.", + "export-pdf-form-data-to-xfdf": { + "title": "Export Pdf Form Data To Xfdf", + "filename": "export-pdf-form-data-to-xfdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "export-pdf-form-data-to-xml-xfdf": { + "title": "Export Pdf Form Data To Xml Xfdf", + "filename": "export-pdf-form-data-to-xml-xfdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "export-pdf-form-data-to-xml": { + "title": "Export PDF Form Data to XML Using MemoryStream", + "filename": "export-pdf-form-data-to-xml.cs", + "description": "Loads a PDF, verifies the presence of form fields, and writes the form data as XML directly into a MemoryStream, then reads the XML for demonstration.", "tags": [ "pdf", - "export", - "html", - "png", - "xfdf" + "form", + "xml", + "memorystream", + "export" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.HtmlSaveOptions", - "Aspose.Pdf.Devices.PngDevice", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.ExportAnnotationsToXfdf" + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Form.Fields", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.CheckboxField" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "modify-checkbox-appearance-extract-value": { - "title": "Modify Checkbox Appearance and Extract Its Value", - "filename": "modify-checkbox-appearance-extract-value.cs", - "description": "Shows how to locate a checkbox form field, draw a custom rectangle over it using Aspose.Pdf.Drawing.Graph, and then read the checkbox value before saving the modified PDF.", + "export-pdf-form-fields-to-json": { + "title": "Export Pdf Form Fields To Json", + "filename": "export-pdf-form-fields-to-json.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "export-pdf-form-fields-to-xml": { + "title": "Export PDF Form Fields to XML", + "filename": "export-pdf-form-fields-to-xml.cs", + "description": "Loads a PDF document and saves its complete model, including form field definitions and values, to an XML file using Aspose.Pdf.", "tags": [ - "checkbox", - "form-field", - "appearance", - "graph", - "pdf-modification" + "pdf", + "form-fields", + "xml", + "export", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.CheckboxField", - "Aspose.Pdf.Page", - "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Color" + "Aspose.Pdf.Document.SaveXml" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "extract-pdf-form-field-values": { - "title": "Extract PDF Form Field Values to a Dictionary", - "filename": "extract-pdf-form-field-values.cs", - "description": "Shows how to load a PDF using Aspose.Pdf, iterate over its form fields, and return a case‑insensitive dictionary of each field's full name and string value.", + "export-pdf-form-fields-with-prefix-to-json": { + "title": "Export PDF Form Fields with Specific Prefix to JSON", + "filename": "export-pdf-form-fields-with-prefix-to-json.cs", + "description": "Loads a PDF, filters its form fields to only those whose names start with a given prefix, and writes the selected field names and values to a formatted JSON file.", "tags": [ "pdf", - "form", - "aspose", - "dictionary", - "csharp" + "form-fields", + "filter", + "json", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.Field", "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Document.Form.Fields" + "Aspose.Pdf.Document.Form.Fields", + "Aspose.Pdf.Forms.Field.Name", + "Aspose.Pdf.Forms.Field.Value" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "export-pdf-form-data-to-json__v3": { - "title": "Export PDF Form Data to JSON Files", - "filename": "export-pdf-form-data-to-json__v3.cs", - "description": "Iterates through PDF files in a folder, loads each with Aspose.Pdf, and exports the document's form fields to a separate JSON file.", + "export-pdf-form-to-fdf": { + "title": "Export PDF Form Data to FDF", + "filename": "export-pdf-form-to-fdf.cs", + "description": "Shows how to extract form field values from a PDF document and write them to an FDF file using Aspose.Pdf's Form facade.", "tags": [ "pdf", "form", + "fdf", "export", - "json", - "batch" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Form", - "Aspose.Pdf.Form.ExportToJson" + "Aspose.Pdf.Facades.Form", + "Aspose.Pdf.Facades.Form.BindPdf", + "Aspose.Pdf.Facades.Form.ExportFdf" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "combine-pdf-form-data-into-json-array": { - "title": "Combine PDF Form Data into a Single JSON Array", - "filename": "combine-pdf-form-data-into-json-array.cs", - "description": "Demonstrates loading multiple PDF files, exporting each form's fields to JSON using Aspose.Pdf, and merging the results into a single JSON array for batch processing.", + "export-pdf-page-as-png": { + "title": "Export PDF Page as PNG Image", + "filename": "export-pdf-page-as-png.cs", + "description": "Loads a PDF document, creates a resolution and PNG device, and rasterizes the first page to a PNG file at a specified DPI.", "tags": [ "pdf", - "form", - "json", - "batch", - "export" + "rasterization", + "png", + "resolution", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Form.ExportToJson" + "Aspose.Pdf.Resolution", + "Aspose.Pdf.Devices.PngDevice", + "Aspose.Pdf.Page", + "Aspose.Pdf.Devices.PngDevice.Process" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "export-pdf-form-data-to-json__v4": { - "title": "Export PDF Form Data to JSON", - "filename": "export-pdf-form-data-to-json__v4.cs", - "description": "Shows how to load a PDF with Aspose.Pdf and export its interactive form fields to a JSON file using a simple command‑line utility.", + "export-pdf-pages-to-svg-preserving-coordinate-system": { + "title": "Export PDF Pages to SVG Preserving Coordinate System", + "filename": "export-pdf-pages-to-svg-preserving-coordinate-system.cs", + "description": "Loads a PDF, iterates through each page, and saves any vector graphics as SVG files while keeping the original PDF coordinate system.", "tags": [ "pdf", - "form", + "svg", + "vector-graphics", "export", - "json", - "command-line" + "coordinate-system" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Form", - "Aspose.Pdf.Form.ExportToJson", - "Aspose.Pdf.Document.Dispose" + "Aspose.Pdf.Page", + "Aspose.Pdf.Page.TrySaveVectorGraphics", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.PageCollection" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "log-pdf-form-extraction-timestamps": { - "title": "Log PDF Form Extraction Timestamps", - "filename": "log-pdf-form-extraction-timestamps.cs", - "description": "Shows how to iterate through PDF pages, extract text from form XObjects, and capture start/end timestamps for each extraction using Aspose.Pdf.", + "export-pdf-pages-vector-graphics-to-svg": { + "title": "Export Pdf Pages Vector Graphics To Svg", + "filename": "export-pdf-pages-vector-graphics-to-svg.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "export-pdf-subpaths-to-separate-svgs": { + "title": "Export Pdf Subpaths To Separate Svgs", + "filename": "export-pdf-subpaths-to-separate-svgs.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "export-pdf-tables-to-csv-with-border-markers": { + "title": "Export Pdf Tables To Csv With Border Markers", + "filename": "export-pdf-tables-to-csv-with-border-markers.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "export-pdf-tables-to-csv-with-borders": { + "title": "Export PDF Tables to CSV with Visual Border Markers", + "filename": "export-pdf-tables-to-csv-with-borders.cs", + "description": "Demonstrates how to extract tables from a PDF using Aspose.Pdf's TableAbsorber and write them to a CSV file while preserving cell borders with delimiter markers.", "tags": [ "pdf", - "form-extraction", - "logging", - "text-absorber", - "aspose-pdf" + "csv", + "table", + "aspose", + "border" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.XForm", - "Aspose.Pdf.Text.TextAbsorber", - "Aspose.Pdf.Text.TextAbsorber.Visit" + "Aspose.Pdf.TableAbsorber", + "Aspose.Pdf.TableAbsorber.Table", + "Aspose.Pdf.TableAbsorber.Row", + "Aspose.Pdf.TableAbsorber.Cell" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "serialize-pdf-form-data-to-json-bytes": { - "title": "Serialize PDF Form Data to JSON Byte Array", - "filename": "serialize-pdf-form-data-to-json-bytes.cs", - "description": "Loads a PDF, extracts all form fields as JSON, writes the JSON into a MemoryStream, and returns the resulting JSON as a byte array for API consumption.", + "export-pdf-to-html-png-xfdf": { + "title": "Export PDF to HTML, PNG, and XFDF with Proper Stream Disposal", + "filename": "export-pdf-to-html-png-xfdf.cs", + "description": "Demonstrates how to export a PDF document to HTML, a PNG image of the first page, and XFDF annotations while correctly closing each FileStream using using blocks.", "tags": [ "pdf", - "form", - "json", - "serialization", - "memorystream" + "export", + "html", + "png", + "xfdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Form.ExportToJson", - "Aspose.Pdf.Document(string)" + "Aspose.Pdf.HtmlSaveOptions", + "Aspose.Pdf.Devices.PngDevice", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.ExportAnnotationsToXfdf" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "export-pdf-form-fields-with-prefix-to-json": { - "title": "Export PDF Form Fields with Specific Prefix to JSON", - "filename": "export-pdf-form-fields-with-prefix-to-json.cs", - "description": "Loads a PDF, filters its form fields to only those whose names start with a given prefix, and writes the selected field names and values to a formatted JSON file.", + "export-pdf-to-pdf-html-xml-with-stream-disposal": { + "title": "Export Pdf To Pdf Html Xml With Stream Disposal", + "filename": "export-pdf-to-pdf-html-xml-with-stream-disposal.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "export-pdf-to-svg-with-custom-options": { + "title": "Export PDF to SVG with Custom Rendering Options", + "filename": "export-pdf-to-svg-with-custom-options.cs", + "description": "Shows how to save a PDF as a single SVG file and extract per‑page vector graphics while applying custom DPI‑like scaling, glyph caching, stroke width, and grouping options.", "tags": [ - "pdf", - "form-fields", - "filter", - "json", - "aspose" + "svg", + "export", + "custom-options", + "vector-graphics", + "aspdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Document.Form.Fields", - "Aspose.Pdf.Forms.Field.Name", - "Aspose.Pdf.Forms.Field.Value" + "Aspose.Pdf.SvgSaveOptions", + "Aspose.Pdf.SvgExtractionOptions", + "Aspose.Pdf.SvgExtractor", + "Aspose.Pdf.Page" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "count-acroform-fields-in-pdf": { - "title": "Count AcroForm Fields in PDF", - "filename": "count-acroform-fields-in-pdf.cs", - "description": "Loads a PDF with Aspose.Pdf and retrieves the total number of AcroForm fields using Document.Form.Count.", + "extract-checkbox-states-from-pdf": { + "title": "Extract Checkbox States from PDF AcroForm", + "filename": "extract-checkbox-states-from-pdf.cs", + "description": "Shows how to read checkbox fields from a PDF's AcroForm using Aspose.Pdf and write their checked states to a JSON file as a list of booleans.", "tags": [ - "acroform", - "field-count", "pdf", - "aspose-pdf", - "document" + "checkbox", + "acroform", + "json", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Form" + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.CheckboxField", + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Document.Form.Fields" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "iterate-modify-pdf-form-fields": { - "title": "Iterate and Modify PDF Form Fields", - "filename": "iterate-modify-pdf-form-fields.cs", - "description": "Shows how to open a PDF with Aspose.Pdf, loop through each form field, read and update text box values, and save the modified document.", + "extract-checkbox-states-to-json": { + "title": "Extract Checkbox States To Json", + "filename": "extract-checkbox-states-to-json.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-filter-graphics-by-area": { + "title": "Extract Filter Graphics By Area", + "filename": "extract-filter-graphics-by-area.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-first-page-text-to-utf8-file": { + "title": "Extract First Page Text from PDF to UTF-8 File", + "filename": "extract-first-page-text-to-utf8-file.cs", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, extract the text from its first page using a TextAbsorber, and save the result to a UTF‑8 encoded text file.", "tags": [ "pdf", - "form-fields", - "iteration", - "aspose-pdf", + "text-extraction", + "aspose", + "utf-8", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Text.TextAbsorber", + "Aspose.Pdf.Page.Accept", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Text.TextAbsorber.Text" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "retrieve-pdf-form-field-types": { - "title": "Retrieve PDF Form Field Types with Aspose.Pdf", - "filename": "retrieve-pdf-form-field-types.cs", - "description": "The example loads a PDF document, accesses its AcroForm, and enumerates each form field to display its name and runtime type using Aspose.Pdf.", + "extract-fonts-from-pdf-ttf": { + "title": "Extract Fonts from PDF and Save as TTF Files", + "filename": "extract-fonts-from-pdf-ttf.cs", + "description": "Loads a PDF document, retrieves all embedded fonts, and exports each font to a .ttf file in a designated output folder.", "tags": [ "pdf", - "form", - "field-type", - "aspose", + "font-extraction", + "ttf", + "aspose.pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.Form.Fields" + "Aspose.Pdf.Document.FontUtilities", + "Aspose.Pdf.FontUtilities.GetAllFonts", + "Aspose.Pdf.Font", + "Aspose.Pdf.Font.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "export-pdf-form-data-to-json__v5": { - "title": "Export PDF Form Data to JSON via Stream", - "filename": "export-pdf-form-data-to-json__v5.cs", - "description": "Shows how to load a PDF document and export its form fields directly to a JSON file using a FileStream with Aspose.Pdf's ExportToJson method.", + "extract-graphic-element-as-svg": { + "title": "Extract Graphic Element as SVG from PDF", + "filename": "extract-graphic-element-as-svg.cs", + "description": "Loads a PDF, extracts vector graphic elements on a page as SVG strings, selects one by index, and saves it to an SVG file.", "tags": [ "pdf", - "form", - "json", - "export", - "stream" + "svg", + "vector", + "extraction", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Form.ExportToJson" + "Aspose.Pdf.Page", + "Aspose.Pdf.Vector.SvgExtractor", + "Aspose.Pdf.Vector.SvgExtractor.Extract" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "export-pdf-form-data-to-xml": { - "title": "Export PDF Form Data to XML Using MemoryStream", - "filename": "export-pdf-form-data-to-xml.cs", - "description": "Loads a PDF, verifies the presence of form fields, and writes the form data as XML directly into a MemoryStream, then reads the XML for demonstration.", + "extract-graphics-from-specific-pdf-pages": { + "title": "Extract Graphics from Specific PDF Pages to SVG", + "filename": "extract-graphics-from-specific-pdf-pages.cs", + "description": "Shows how to use GraphicsAbsorber together with SvgExtractor to collect vector graphics from selected PDF pages and save them as SVG files.", "tags": [ "pdf", - "form", - "xml", - "memorystream", - "export" + "graphics", + "svg", + "extraction", + "pages" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Form.Fields", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.CheckboxField" + "Aspose.Pdf.Page", + "Aspose.Pdf.Vector.GraphicsAbsorber", + "Aspose.Pdf.Drawing.SvgExtractor", + "Aspose.Pdf.Vector.GraphicElement" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "export-pdf-form-data-to-fdf": { - "title": "Export PDF Form Data to FDF Using Aspose.Pdf", - "filename": "export-pdf-form-data-to-fdf.cs", - "description": "Loads a PDF document, binds it to the Aspose.Pdf.Facades.Form facade, and exports the form fields to an FDF file via a FileStream.", + "extract-images-from-pdf": { + "title": "Extract Images from PDF and Save as PNG", + "filename": "extract-images-from-pdf.cs", + "description": "Loads a PDF, iterates through each page's image resources, and saves every embedded image as a PNG file in a specified output folder.", "tags": [ "pdf", - "fdf", - "form", - "export", - "aspose" + "image-extraction", + "aspose-pdf", + "png", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.Form", - "Aspose.Pdf.Facades.Form.BindPdf", - "Aspose.Pdf.Facades.Form.ExportFdf" + "Aspose.Pdf.Page", + "Aspose.Pdf.Drawing.Image", + "Aspose.Pdf.XImage", + "Aspose.Pdf.Page.Resources.Images" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "export-pdf-annotations-to-xfdf": { - "title": "Export PDF Annotations to XFDF using FileStream", - "filename": "export-pdf-annotations-to-xfdf.cs", - "description": "Demonstrates how to load a PDF with Aspose.Pdf, export all its annotations to an XFDF file via a FileStream, and properly close the stream.", + "extract-images-using-graphicsabsorber": { + "title": "Extract Images from PDF Using GraphicsAbsorber", + "filename": "extract-images-using-graphicsabsorber.cs", + "description": "Shows how to employ GraphicsAbsorber to locate only image objects on each PDF page and export them as JPEG files, while ignoring other graphic elements.", "tags": [ - "xfdf", - "annotations", - "export", - "aspose-pdf", - "filestream" + "pdf", + "image-extraction", + "graphicsabsorber", + "jpeg", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.ExportAnnotationsToXfdf" + "Aspose.Pdf.Page", + "Aspose.Pdf.Vector.GraphicsAbsorber", + "Aspose.Pdf.Vector.SvgExtractor", + "Aspose.Pdf.XImage" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "count-form-fields-on-each-pdf-page": { - "title": "Count Form Fields on Each PDF Page", - "filename": "count-form-fields-on-each-pdf-page.cs", - "description": "Demonstrates opening a PDF with Aspose.Pdf, verifying the presence of an AcroForm, iterating through pages, and logging the number of form fields (WidgetAnnotations) found on each page.", + "extract-paragraphs-from-pdf": { + "title": "Extract Paragraphs From Pdf", + "filename": "extract-paragraphs-from-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-paragraphs-with-line-breaks": { + "title": "Extract Paragraphs with Line Breaks from PDF", + "filename": "extract-paragraphs-with-line-breaks.cs", + "description": "Demonstrates how to use Aspose.Pdf to absorb paragraph structures from a PDF, preserve line breaks, and save the extracted text to a UTF‑8 .txt file.", "tags": [ "pdf", - "form-fields", - "aspose", - "page-iteration", - "logging" + "paragraph", + "text-extraction", + "line-breaks", + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Form", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.WidgetAnnotation", - "Aspose.Pdf.Page.Annotations" + "Aspose.Pdf.Text.ParagraphAbsorber", + "Aspose.Pdf.Text.PageMarkup", + "Aspose.Pdf.Text.MarkupSection", + "Aspose.Pdf.Text.MarkupParagraph", + "Aspose.Pdf.Text.TextFragment" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "extract-vector-graphics-to-svg": { - "title": "Extract Vector Graphics from PDF to Individual SVG Files", - "filename": "extract-vector-graphics-to-svg.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, iterate through its pages, and extract each vector graphic as a separate SVG file using SvgExtractor.", + "extract-pdf-font-table-form-field-statistics": { + "title": "Extract PDF Font, Table, and Form Field Statistics", + "filename": "extract-pdf-font-table-form-field-statistics.cs", + "description": "Demonstrates how to open PDF files with Aspose.Pdf and count distinct fonts, tables, and AcroForm fields in each document.", "tags": [ "pdf", - "vector-graphics", - "svg", - "extraction", - "aspose" + "fonts", + "tables", + "form-fields", + "statistics" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Vector.SvgExtractionOptions", - "Aspose.Pdf.Vector.SvgExtractor", - "Aspose.Pdf.Vector.SvgExtractor.Extract" + "Aspose.Pdf.Text.FontInfo", + "Aspose.Pdf.Table", + "Aspose.Pdf.Form" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "extract-vector-graphics-to-svg__v2": { - "title": "Extract Vector Graphics from PDF Page to SVG", - "filename": "extract-vector-graphics-to-svg__v2.cs", - "description": "Shows how to load a PDF, verify a page contains vector graphics, and extract each graphic as a separate SVG file using Aspose.Pdf.", + "extract-pdf-form-field-values": { + "title": "Extract PDF Form Field Values to a Dictionary", + "filename": "extract-pdf-form-field-values.cs", + "description": "Shows how to load a PDF using Aspose.Pdf, iterate over its form fields, and return a case‑insensitive dictionary of each field's full name and string value.", "tags": [ "pdf", - "vector-graphics", - "svg", - "extraction", - "aspose" + "form", + "aspose", + "dictionary", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Vector.SvgExtractor", - "Aspose.Pdf.Page.HasVectorGraphics", - "Aspose.Pdf.Vector.SvgExtractor.Extract", - "Aspose.Pdf.PdfException" + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Document.Form.Fields" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "combine-pdf-page-vector-graphics-into-svg": { - "title": "Combine PDF Page Vector Graphics into a Single SVG", - "filename": "combine-pdf-page-vector-graphics-into-svg.cs", - "description": "Loads a PDF, extracts vector graphics from each page using Aspose.Pdf's SvgExtractor, and merges them into a single multi‑page SVG document.", + "extract-pdf-form-fields": { + "title": "Extract Pdf Form Fields", + "filename": "extract-pdf-form-fields.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-pdf-form-xobject-text-with-logging": { + "title": "Extract Pdf Form Xobject Text With Logging", + "filename": "extract-pdf-form-xobject-text-with-logging.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-pdf-metadata-and-save-aps": { + "title": "Extract Pdf Metadata And Save Aps", + "filename": "extract-pdf-metadata-and-save-aps.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-pdf-metadata-and-save-svg": { + "title": "Extract PDF Metadata and Save as SVG", + "filename": "extract-pdf-metadata-and-save-svg.cs", + "description": "Demonstrates how to read basic PDF metadata (author, title, etc.) using Aspose.Pdf and export the document's vector content to an SVG file for documentation purposes.", "tags": [ - "pdf", + "metadata", "svg", - "vector", + "aspose-pdf", "extraction", - "aspose" + "document" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Vector.SvgExtractor", - "Aspose.Pdf.Vector.SvgExtractor.Extract", - "Aspose.Pdf.Document.Pages" + "Aspose.Pdf.DocumentInfo", + "Aspose.Pdf.SvgSaveOptions", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.DocumentInfo.CreationDate" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "extract-subpaths-pdf-png": { - "title": "Extract Subpaths from PDF Pages as PNG Images", - "filename": "extract-subpaths-pdf-png.cs", - "description": "Shows how to use GraphicsAbsorber to capture each SubPath graphic element on PDF pages and export each one as an individual PNG file.", + "extract-pdf-paragraphs-to-markdown": { + "title": "Extract PDF Paragraphs to Markdown Preserving Indentation", + "filename": "extract-pdf-paragraphs-to-markdown.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, use ParagraphAbsorber to capture paragraph structures, and write each paragraph to a markdown file while keeping the original leading spaces.", "tags": [ - "graphicsabsorber", - "subpath", - "png", "pdf", - "extraction" + "markdown", + "paragraph", + "extraction", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Vector.GraphicsAbsorber", - "Aspose.Pdf.Vector.SubPath.AddOnPage", - "Aspose.Pdf.Page.ConvertToPNGMemoryStream" + "Aspose.Pdf.ParagraphAbsorber", + "Aspose.Pdf.ParagraphAbsorber.Visit", + "Aspose.Pdf.PageMarkup", + "Aspose.Pdf.MarkupParagraph" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "export-pdf-page-as-png": { - "title": "Export PDF Page as PNG Image", - "filename": "export-pdf-page-as-png.cs", - "description": "Loads a PDF document, creates a resolution and PNG device, and rasterizes the first page to a PNG file at a specified DPI.", + "extract-pdf-stamp-texts-to-json": { + "title": "Extract Stamp Texts from PDF to JSON", + "filename": "extract-pdf-stamp-texts-to-json.cs", + "description": "Loads a PDF, iterates through its pages to find stamp annotations, extracts the visible text from each stamp, and writes the collected strings to a JSON file.", "tags": [ "pdf", - "rasterization", - "png", - "resolution", + "stamp", + "annotation", + "json", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Resolution", - "Aspose.Pdf.Devices.PngDevice", "Aspose.Pdf.Page", - "Aspose.Pdf.Devices.PngDevice.Process" + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.StampAnnotation", + "Aspose.Pdf.Annotations.AnnotationCollection" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "extract-graphic-element-as-svg": { - "title": "Extract Graphic Element as SVG from PDF", - "filename": "extract-graphic-element-as-svg.cs", - "description": "Loads a PDF, extracts vector graphic elements on a page as SVG strings, selects one by index, and saves it to an SVG file.", + "extract-pdf-tables-to-csv": { + "title": "Extract PDF Tables and Export to CSV", + "filename": "extract-pdf-tables-to-csv.cs", + "description": "Demonstrates how to locate tables in a PDF using Aspose.Pdf, read each cell's text, and write each table to a separate CSV file with proper escaping.", "tags": [ "pdf", - "svg", - "vector", - "extraction", - "aspose" + "table", + "csv", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Vector.SvgExtractor", - "Aspose.Pdf.Vector.SvgExtractor.Extract" + "Aspose.Pdf.TableAbsorber", + "Aspose.Pdf.TableAbsorber.Visit", + "Aspose.Pdf.TableAbsorber.TableList", + "Aspose.Pdf.Text.TextFragment" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "extract-first-page-text-to-utf8-file": { - "title": "Extract First Page Text from PDF to UTF-8 File", - "filename": "extract-first-page-text-to-utf8-file.cs", - "description": "Demonstrates how to load a PDF with Aspose.Pdf, extract the text from its first page using a TextAbsorber, and save the result to a UTF‑8 encoded text file.", + "extract-selected-radio-button-labels": { + "title": "Extract Selected Radio Button Labels from PDF Form", + "filename": "extract-selected-radio-button-labels.cs", + "description": "Loads a PDF document, iterates over its form fields, and prints the visible label of the selected option for each radio button field.", "tags": [ "pdf", - "text-extraction", + "form", + "radiobutton", "aspose", - "utf-8", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextAbsorber", - "Aspose.Pdf.Page.Accept", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Text.TextAbsorber.Text" + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.RadioButtonField", + "Aspose.Pdf.Forms.RadioButtonField.Options", + "Aspose.Pdf.Forms.RadioButtonField.Selected", + "Aspose.Pdf.Forms.Option" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "extract-text-from-pdf-to-txt": { - "title": "Extract Text from PDF and Save to TXT", - "filename": "extract-text-from-pdf-to-txt.cs", - "description": "Demonstrates how to load a PDF with Aspose.Pdf, extract all page text using a TextAbsorber, and write the concatenated result to a UTF‑8 .txt file.", + "extract-single-graphic-element-as-svg": { + "title": "Extract Single Graphic Element As Svg", + "filename": "extract-single-graphic-element-as-svg.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-stamp-annotation-text": { + "title": "Extract Stamp Annotation Text", + "filename": "extract-stamp-annotation-text.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-subpaths-as-png-images": { + "title": "Extract Subpaths As Png Images", + "filename": "extract-subpaths-as-png-images.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-subpaths-as-separate-svg": { + "title": "Extract Subpaths as Separate SVG Images", + "filename": "extract-subpaths-as-separate-svg.cs", + "description": "Demonstrates loading a PDF, configuring SvgExtractionOptions to export each graphic subpath as an individual SVG file with a transparent background, and saving the results per page.", "tags": [ + "svg", + "subpath", + "extraction", "pdf", - "text-extraction", - "aspose", - "csharp", - "file-io" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextAbsorber", - "Aspose.Pdf.PageCollection.Accept", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Text.TextAbsorber.Text" + "Aspose.Pdf.Page", + "Aspose.Pdf.SvgExtractionOptions", + "Aspose.Pdf.SvgExtractor", + "Aspose.Pdf.SvgExtractor.Extract" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "extract-pdf-stamp-texts-to-json": { - "title": "Extract Stamp Texts from PDF to JSON", - "filename": "extract-pdf-stamp-texts-to-json.cs", - "description": "Loads a PDF, iterates through its pages to find stamp annotations, extracts the visible text from each stamp, and writes the collected strings to a JSON file.", + "extract-subpaths-pdf-png": { + "title": "Extract Subpaths from PDF Pages as PNG Images", + "filename": "extract-subpaths-pdf-png.cs", + "description": "Shows how to use GraphicsAbsorber to capture each SubPath graphic element on PDF pages and export each one as an individual PNG file.", "tags": [ + "graphicsabsorber", + "subpath", + "png", "pdf", - "stamp", - "annotation", - "json", - "aspose" + "extraction" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.StampAnnotation", - "Aspose.Pdf.Annotations.AnnotationCollection" + "Aspose.Pdf.Vector.GraphicsAbsorber", + "Aspose.Pdf.Vector.SubPath.AddOnPage", + "Aspose.Pdf.Page.ConvertToPNGMemoryStream" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, @@ -860,291 +1168,355 @@ "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "extract-paragraphs-with-line-breaks": { - "title": "Extract Paragraphs with Line Breaks from PDF", - "filename": "extract-paragraphs-with-line-breaks.cs", - "description": "Demonstrates how to use Aspose.Pdf to absorb paragraph structures from a PDF, preserve line breaks, and save the extracted text to a UTF‑8 .txt file.", + "extract-superscript-subscript-from-pdf__v2": { + "title": "Extract Superscript and Subscript Text from PDF", + "filename": "extract-superscript-subscript-from-pdf__v2.cs", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, extract text while preserving formatting, and prepend Unicode markers for superscript and subscript characters.", "tags": [ "pdf", - "paragraph", "text-extraction", - "line-breaks", - "aspnet" + "superscript", + "subscript", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Text.ParagraphAbsorber", - "Aspose.Pdf.Text.PageMarkup", - "Aspose.Pdf.Text.MarkupSection", - "Aspose.Pdf.Text.MarkupParagraph", - "Aspose.Pdf.Text.TextFragment" + "Aspose.Pdf.Text.TextFragmentAbsorber", + "Aspose.Pdf.Text.TextExtractionOptions", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.TextState" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "extract-images-from-pdf": { - "title": "Extract Images from PDF and Save as PNG", - "filename": "extract-images-from-pdf.cs", - "description": "Loads a PDF, iterates through each page's image resources, and saves every embedded image as a PNG file in a specified output folder.", + "extract-superscripts-subscripts-from-pdf": { + "title": "Extract Superscripts Subscripts From Pdf", + "filename": "extract-superscripts-subscripts-from-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-svg-apply-brand-colors": { + "title": "Extract SVG Vector Graphics and Apply Brand Color Transformation", + "filename": "extract-svg-apply-brand-colors.cs", + "description": "The example loads a PDF, extracts each page's vector graphics as SVG, replaces black colors with a brand palette, and saves the transformed SVG files.", "tags": [ + "svg", + "color-transformation", + "vector-extraction", "pdf", - "image-extraction", - "aspose-pdf", - "png", - "csharp" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Drawing.Image", - "Aspose.Pdf.XImage", - "Aspose.Pdf.Page.Resources.Images" + "Aspose.Pdf.Vector.SvgExtractor", + "Aspose.Pdf.Vector.SvgExtractor.Extract", + "Aspose.Pdf.PageCollection" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "extract-fonts-from-pdf-ttf": { - "title": "Extract Fonts from PDF and Save as TTF Files", - "filename": "extract-fonts-from-pdf-ttf.cs", - "description": "Loads a PDF document, retrieves all embedded fonts, and exports each font to a .ttf file in a designated output folder.", + "extract-text-from-pdf-to-txt": { + "title": "Extract Text from PDF and Save to TXT", + "filename": "extract-text-from-pdf-to-txt.cs", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, extract all page text using a TextAbsorber, and write the concatenated result to a UTF‑8 .txt file.", "tags": [ "pdf", - "font-extraction", - "ttf", - "aspose.pdf", - "csharp" + "text-extraction", + "aspose", + "csharp", + "file-io" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.FontUtilities", - "Aspose.Pdf.FontUtilities.GetAllFonts", - "Aspose.Pdf.Font", - "Aspose.Pdf.Font.Save" + "Aspose.Pdf.Text.TextAbsorber", + "Aspose.Pdf.PageCollection.Accept", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Text.TextAbsorber.Text" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "extract-pdf-tables-to-csv": { - "title": "Extract PDF Tables and Export to CSV", - "filename": "extract-pdf-tables-to-csv.cs", - "description": "Demonstrates how to locate tables in a PDF using Aspose.Pdf, read each cell's text, and write each table to a separate CSV file with proper escaping.", + "extract-vector-graphics-from-encrypted-pdf": { + "title": "Extract Vector Graphics From Encrypted Pdf", + "filename": "extract-vector-graphics-from-encrypted-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-vector-graphics-to-svg": { + "title": "Extract Vector Graphics from PDF to Individual SVG Files", + "filename": "extract-vector-graphics-to-svg.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, iterate through its pages, and extract each vector graphic as a separate SVG file using SvgExtractor.", "tags": [ "pdf", - "table", - "csv", - "aspose", - "csharp" + "vector-graphics", + "svg", + "extraction", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.TableAbsorber", - "Aspose.Pdf.TableAbsorber.Visit", - "Aspose.Pdf.TableAbsorber.TableList", - "Aspose.Pdf.Text.TextFragment" + "Aspose.Pdf.Page", + "Aspose.Pdf.Vector.SvgExtractionOptions", + "Aspose.Pdf.Vector.SvgExtractor", + "Aspose.Pdf.Vector.SvgExtractor.Extract" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "export-acroform-fields-to-json": { - "title": "Export AcroForm Fields to JSON", - "filename": "export-acroform-fields-to-json.cs", - "description": "Shows how to load a PDF containing AcroForm fields and export the field names and values directly to a JSON file using Aspose.Pdf.", - "tags": [ + "extract-vector-graphics-to-svg__v2": { + "title": "Extract Vector Graphics from PDF Page to SVG", + "filename": "extract-vector-graphics-to-svg__v2.cs", + "description": "Shows how to load a PDF, verify a page contains vector graphics, and extract each graphic as a separate SVG file using Aspose.Pdf.", + "tags": [ "pdf", - "acroform", - "json", - "export", + "vector-graphics", + "svg", + "extraction", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Form.ExportToJson" + "Aspose.Pdf.Page", + "Aspose.Pdf.Vector.SvgExtractor", + "Aspose.Pdf.Page.HasVectorGraphics", + "Aspose.Pdf.Vector.SvgExtractor.Extract", + "Aspose.Pdf.PdfException" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "batch-extract-vector-graphics-to-svg": { - "title": "Batch Extract Vector Graphics from PDFs to SVG", - "filename": "batch-extract-vector-graphics-to-svg.cs", - "description": "Shows how to iterate over PDF files in a folder, detect pages containing vector graphics, and save those graphics as SVG files using Aspose.Pdf.", + "filter-export-large-graphics-pdf": { + "title": "Filter and Export Large Graphics from PDF", + "filename": "filter-export-large-graphics-pdf.cs", + "description": "Demonstrates how to absorb graphic elements from each PDF page, filter them by bounding‑box area, and export the qualifying elements as separate SVG files.", "tags": [ - "pdf", - "vector-graphics", + "graphics", + "filter", "svg", - "batch-processing", - "aspose-pdf" + "pdf", + "extraction" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Page.HasVectorGraphics", - "Aspose.Pdf.Page.TrySaveVectorGraphics", - "Aspose.Pdf.Document.Pages" + "Aspose.Pdf.Vector.GraphicsAbsorber", + "Aspose.Pdf.Vector.GraphicElement", + "Aspose.Pdf.Drawing.SvgExtractor" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "parallel-pdf-text-extraction": { - "title": "Parallel PDF Text Extraction with Aspose.Pdf", - "filename": "parallel-pdf-text-extraction.cs", - "description": "Demonstrates how to extract text from multiple PDF files concurrently using Aspose.Pdf and the Task Parallel Library, with cancellation support and thread‑safe result aggregation.", + "iterate-modify-pdf-form-fields": { + "title": "Iterate and Modify PDF Form Fields", + "filename": "iterate-modify-pdf-form-fields.cs", + "description": "Shows how to open a PDF with Aspose.Pdf, loop through each form field, read and update text box values, and save the modified document.", "tags": [ "pdf", - "text-extraction", - "parallel", - "aspose", - "tpl" + "form-fields", + "iteration", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextAbsorber", - "Aspose.Pdf.PageCollection.Accept", - "Aspose.Pdf.Text.TextAbsorber.Text", - "Aspose.Pdf.Document.Dispose" + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "export-pdf-to-svg-with-custom-options": { - "title": "Export PDF to SVG with Custom Rendering Options", - "filename": "export-pdf-to-svg-with-custom-options.cs", - "description": "Shows how to save a PDF as a single SVG file and extract per‑page vector graphics while applying custom DPI‑like scaling, glyph caching, stroke width, and grouping options.", + "iterate-pdf-form-fields-set-values": { + "title": "Iterate Pdf Form Fields Set Values", + "filename": "iterate-pdf-form-fields-set-values.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "iterate-pdf-pages-list-form-fields": { + "title": "Iterate Pdf Pages List Form Fields", + "filename": "iterate-pdf-pages-list-form-fields.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "list-form-fields-per-pdf-page": { + "title": "List Form Fields on Each PDF Page", + "filename": "list-form-fields-per-pdf-page.cs", + "description": "Loads a PDF document, iterates through all pages, and prints the names of any form fields present on each page.", "tags": [ - "svg", - "export", - "custom-options", - "vector-graphics", - "aspdf" + "pdf", + "form-fields", + "aspose-pdf", + "csharp", + "page-iteration" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.SvgSaveOptions", - "Aspose.Pdf.SvgExtractionOptions", - "Aspose.Pdf.SvgExtractor", - "Aspose.Pdf.Page" + "Aspose.Pdf.Page", + "Aspose.Pdf.Page.FieldsInTabOrder", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "filter-export-large-graphics-pdf": { - "title": "Filter and Export Large Graphics from PDF", - "filename": "filter-export-large-graphics-pdf.cs", - "description": "Demonstrates how to absorb graphic elements from each PDF page, filter them by bounding‑box area, and export the qualifying elements as separate SVG files.", + "load-pdf-extract-acroform-fields": { + "title": "Load PDF and Extract AcroForm Fields", + "filename": "load-pdf-extract-acroform-fields.cs", + "description": "Shows how to load a PDF file with Aspose.Pdf, access its AcroForm, and enumerate each form field to display its name and current value.", "tags": [ - "graphics", - "filter", - "svg", "pdf", - "extraction" + "acroform", + "form-fields", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Vector.GraphicsAbsorber", - "Aspose.Pdf.Vector.GraphicElement", - "Aspose.Pdf.Drawing.SvgExtractor" + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.FieldCollection" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "extract-graphics-from-specific-pdf-pages": { - "title": "Extract Graphics from Specific PDF Pages to SVG", - "filename": "extract-graphics-from-specific-pdf-pages.cs", - "description": "Shows how to use GraphicsAbsorber together with SvgExtractor to collect vector graphics from selected PDF pages and save them as SVG files.", + "log-form-field-count-per-pdf-page": { + "title": "Log Form Field Count Per Pdf Page", + "filename": "log-form-field-count-per-pdf-page.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "log-pdf-form-extraction-timestamps": { + "title": "Log PDF Form Extraction Timestamps", + "filename": "log-pdf-form-extraction-timestamps.cs", + "description": "Shows how to iterate through PDF pages, extract text from form XObjects, and capture start/end timestamps for each extraction using Aspose.Pdf.", "tags": [ "pdf", - "graphics", - "svg", - "extraction", - "pages" + "form-extraction", + "logging", + "text-absorber", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Vector.GraphicsAbsorber", - "Aspose.Pdf.Drawing.SvgExtractor", - "Aspose.Pdf.Vector.GraphicElement" + "Aspose.Pdf.XForm", + "Aspose.Pdf.Text.TextAbsorber", + "Aspose.Pdf.Text.TextAbsorber.Visit" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "combine-pdf-vectors-to-svg": { - "title": "Combine Vector Graphics from Multiple PDFs into a Single SVG", - "filename": "combine-pdf-vectors-to-svg.cs", - "description": "The example loads several PDF files, extracts vector graphics from each page using Aspose.Pdf's SvgExtractor, and merges the resulting SVG fragments into one multi‑page SVG document.", + "modify-checkbox-appearance-extract-value": { + "title": "Modify Checkbox Appearance and Extract Its Value", + "filename": "modify-checkbox-appearance-extract-value.cs", + "description": "Shows how to locate a checkbox form field, draw a custom rectangle over it using Aspose.Pdf.Drawing.Graph, and then read the checkbox value before saving the modified PDF.", "tags": [ - "pdf", - "svg", - "vector-graphics", - "extraction", - "aspnet" + "checkbox", + "form-field", + "appearance", + "graph", + "pdf-modification" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.CheckboxField", "Aspose.Pdf.Page", - "Aspose.Pdf.Page.HasVectorGraphics", - "Aspose.Pdf.SvgExtractor", - "Aspose.Pdf.SvgExtractor.Extract" + "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Drawing.GraphInfo", + "Aspose.Pdf.Color" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "extract-subpaths-as-separate-svg": { - "title": "Extract Subpaths as Separate SVG Images", - "filename": "extract-subpaths-as-separate-svg.cs", - "description": "Demonstrates loading a PDF, configuring SvgExtractionOptions to export each graphic subpath as an individual SVG file with a transparent background, and saving the results per page.", + "parallel-pdf-text-extraction": { + "title": "Parallel PDF Text Extraction with Aspose.Pdf", + "filename": "parallel-pdf-text-extraction.cs", + "description": "Demonstrates how to extract text from multiple PDF files concurrently using Aspose.Pdf and the Task Parallel Library, with cancellation support and thread‑safe result aggregation.", "tags": [ - "svg", - "subpath", - "extraction", "pdf", - "aspose" + "text-extraction", + "parallel", + "aspose", + "tpl" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.SvgExtractionOptions", - "Aspose.Pdf.SvgExtractor", - "Aspose.Pdf.SvgExtractor.Extract" + "Aspose.Pdf.Text.TextAbsorber", + "Aspose.Pdf.PageCollection.Accept", + "Aspose.Pdf.Text.TextAbsorber.Text", + "Aspose.Pdf.Document.Dispose" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "export-pdf-pages-to-svg-preserving-coordinate-system": { - "title": "Export PDF Pages to SVG Preserving Coordinate System", - "filename": "export-pdf-pages-to-svg-preserving-coordinate-system.cs", - "description": "Loads a PDF, iterates through each page, and saves any vector graphics as SVG files while keeping the original PDF coordinate system.", + "parse-number-fields-to-decimal": { + "title": "Parse Number Fields from PDF Form to Decimal", + "filename": "parse-number-fields-to-decimal.cs", + "description": "Shows how to load a PDF form with Aspose.Pdf, iterate over NumberField entries, convert their string values to decimal using invariant culture, and perform a simple calculation.", "tags": [ "pdf", - "svg", - "vector-graphics", - "export", - "coordinate-system" + "form-fields", + "numberfield", + "parsing", + "decimal" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Page.TrySaveVectorGraphics", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.PageCollection" + "Aspose.Pdf.Forms.NumberField", + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Forms.NumberField.Value", + "Aspose.Pdf.Forms.NumberField.PartialName" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, + "parse-numeric-form-fields-sum": { + "title": "Parse Numeric Form Fields Sum", + "filename": "parse-numeric-form-fields-sum.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "pdf-summary-report-text-image-count": { "title": "PDF Summary Report: Text Length and Image Count", "filename": "pdf-summary-report-text-image-count.cs", @@ -1168,225 +1540,183 @@ "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "extract-pdf-font-table-form-field-statistics": { - "title": "Extract PDF Font, Table, and Form Field Statistics", - "filename": "extract-pdf-font-table-form-field-statistics.cs", - "description": "Demonstrates how to open PDF files with Aspose.Pdf and count distinct fonts, tables, and AcroForm fields in each document.", - "tags": [ - "pdf", - "fonts", - "tables", - "form-fields", - "statistics" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.FontInfo", - "Aspose.Pdf.Table", - "Aspose.Pdf.Form" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:19:01Z", + "pdf-summary-report-text-images-graphics": { + "title": "Pdf Summary Report Text Images Graphics", + "filename": "pdf-summary-report-text-images-graphics.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "validate-pdf-fonts-against-system": { - "title": "Validate PDF Fonts Against System Installation", - "filename": "validate-pdf-fonts-against-system.cs", - "description": "Loads a PDF, iterates through each page to collect fonts, and reports any fonts that are not installed on the host system using Aspose.Pdf's font accessibility check.", + "read-acroform-fields-from-pdf-stream": { + "title": "Read AcroForm Fields from PDF Stream", + "filename": "read-acroform-fields-from-pdf-stream.cs", + "description": "Shows how to open a PDF as a read‑only stream and use Aspose.Pdf to enumerate AcroForm fields without saving the file to disk.", "tags": [ "pdf", - "fonts", - "validation", - "aspose-pdf", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Page.Resources", - "Aspose.Pdf.Page.Resources.GetFonts", - "Aspose.Pdf.Text.Font", - "Aspose.Pdf.Text.Font.IsAccessible", - "Aspose.Pdf.Text.FontCollection" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:19:01Z", - "status": "verified" - }, - "extract-pdf-metadata-and-save-svg": { - "title": "Extract PDF Metadata and Save as SVG", - "filename": "extract-pdf-metadata-and-save-svg.cs", - "description": "Demonstrates how to read basic PDF metadata (author, title, etc.) using Aspose.Pdf and export the document's vector content to an SVG file for documentation purposes.", - "tags": [ - "metadata", - "svg", - "aspose-pdf", - "extraction", - "document" + "acroform", + "fields", + "stream", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.DocumentInfo", - "Aspose.Pdf.SvgSaveOptions", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.DocumentInfo.CreationDate" + "Aspose.Pdf.Form", + "Aspose.Pdf.Forms.Field" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "extract-images-using-graphicsabsorber": { - "title": "Extract Images from PDF Using GraphicsAbsorber", - "filename": "extract-images-using-graphicsabsorber.cs", - "description": "Shows how to employ GraphicsAbsorber to locate only image objects on each PDF page and export them as JPEG files, while ignoring other graphic elements.", + "read-checkbox-value-to-boolean": { + "title": "Read Checkbox Value and Convert to Boolean", + "filename": "read-checkbox-value-to-boolean.cs", + "description": "Shows how to open a PDF with Aspose.Pdf, access a checkbox form field, read its Value property, and convert the string value to a Boolean.", "tags": [ + "checkbox", + "form", "pdf", - "image-extraction", - "graphicsabsorber", - "jpeg", + "boolean", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Vector.GraphicsAbsorber", - "Aspose.Pdf.Vector.SvgExtractor", - "Aspose.Pdf.XImage" + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.CheckboxField", + "Aspose.Pdf.Forms.Form.Fields", + "Aspose.Pdf.Forms.CheckboxField.Value" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "extract-pdf-paragraphs-to-markdown": { - "title": "Extract PDF Paragraphs to Markdown Preserving Indentation", - "filename": "extract-pdf-paragraphs-to-markdown.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, use ParagraphAbsorber to capture paragraph structures, and write each paragraph to a markdown file while keeping the original leading spaces.", + "retrieve-acroform-fields-from-pdf": { + "title": "Retrieve AcroForm Fields from PDF", + "filename": "retrieve-acroform-fields-from-pdf.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, access its AcroForm, and enumerate all form fields, displaying each field's name, type, and value.", "tags": [ "pdf", - "markdown", - "paragraph", - "extraction", - "aspose" + "acroform", + "fields", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.ParagraphAbsorber", - "Aspose.Pdf.ParagraphAbsorber.Visit", - "Aspose.Pdf.PageMarkup", - "Aspose.Pdf.MarkupParagraph" + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Form.Fields", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.Field.FullName", + "Aspose.Pdf.Forms.Field.Value" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "extract-superscript-subscript-from-pdf__v2": { - "title": "Extract Superscript and Subscript Text from PDF", - "filename": "extract-superscript-subscript-from-pdf__v2.cs", - "description": "Demonstrates how to load a PDF with Aspose.Pdf, extract text while preserving formatting, and prepend Unicode markers for superscript and subscript characters.", - "tags": [ - "pdf", - "text-extraction", - "superscript", - "subscript", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextFragmentAbsorber", - "Aspose.Pdf.Text.TextExtractionOptions", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextState" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:19:01Z", + "retrieve-form-field-types": { + "title": "Retrieve Form Field Types", + "filename": "retrieve-form-field-types.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "export-pdf-tables-to-csv-with-borders": { - "title": "Export PDF Tables to CSV with Visual Border Markers", - "filename": "export-pdf-tables-to-csv-with-borders.cs", - "description": "Demonstrates how to extract tables from a PDF using Aspose.Pdf's TableAbsorber and write them to a CSV file while preserving cell borders with delimiter markers.", + "retrieve-pdf-form-field-by-name": { + "title": "Retrieve Pdf Form Field By Name", + "filename": "retrieve-pdf-form-field-by-name.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "retrieve-pdf-form-field-types": { + "title": "Retrieve PDF Form Field Types with Aspose.Pdf", + "filename": "retrieve-pdf-form-field-types.cs", + "description": "The example loads a PDF document, accesses its AcroForm, and enumerates each form field to display its name and runtime type using Aspose.Pdf.", "tags": [ "pdf", - "csv", - "table", + "form", + "field-type", "aspose", - "border" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.TableAbsorber", - "Aspose.Pdf.TableAbsorber.Table", - "Aspose.Pdf.TableAbsorber.Row", - "Aspose.Pdf.TableAbsorber.Cell" + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.Form.Fields" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "extract-checkbox-states-from-pdf": { - "title": "Extract Checkbox States from PDF AcroForm", - "filename": "extract-checkbox-states-from-pdf.cs", - "description": "Shows how to read checkbox fields from a PDF's AcroForm using Aspose.Pdf and write their checked states to a JSON file as a list of booleans.", + "retrieve-pdf-form-field-value": { + "title": "Retrieve PDF Form Field Value by Name", + "filename": "retrieve-pdf-form-field-value.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, access its AcroForm collection, retrieve a specific form field using the Document.Form indexer, and read the field's value.", "tags": [ "pdf", - "checkbox", - "acroform", - "json", - "aspose" + "form", + "field", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.CheckboxField", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Document.Form.Fields" + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.WidgetAnnotation", + "Aspose.Pdf.Forms.Field" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "extract-selected-radio-button-labels": { - "title": "Extract Selected Radio Button Labels from PDF Form", - "filename": "extract-selected-radio-button-labels.cs", - "description": "Loads a PDF document, iterates over its form fields, and prints the visible label of the selected option for each radio button field.", + "serialize-pdf-form-data-to-json-bytes": { + "title": "Serialize PDF Form Data to JSON Byte Array", + "filename": "serialize-pdf-form-data-to-json-bytes.cs", + "description": "Loads a PDF, extracts all form fields as JSON, writes the JSON into a MemoryStream, and returns the resulting JSON as a byte array for API consumption.", "tags": [ "pdf", "form", - "radiobutton", - "aspose", - "csharp" + "json", + "serialization", + "memorystream" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.RadioButtonField", - "Aspose.Pdf.Forms.RadioButtonField.Options", - "Aspose.Pdf.Forms.RadioButtonField.Selected", - "Aspose.Pdf.Forms.Option" + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Form.ExportToJson", + "Aspose.Pdf.Document(string)" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:19:01Z", "status": "verified" }, - "extract-svg-apply-brand-colors": { - "title": "Extract SVG Vector Graphics and Apply Brand Color Transformation", - "filename": "extract-svg-apply-brand-colors.cs", - "description": "The example loads a PDF, extracts each page's vector graphics as SVG, replaces black colors with a brand palette, and saves the transformed SVG files.", + "validate-pdf-fonts-against-system": { + "title": "Validate PDF Fonts Against System Installation", + "filename": "validate-pdf-fonts-against-system.cs", + "description": "Loads a PDF, iterates through each page to collect fonts, and reports any fonts that are not installed on the host system using Aspose.Pdf's font accessibility check.", "tags": [ - "svg", - "color-transformation", - "vector-extraction", "pdf", - "aspose-pdf" + "fonts", + "validation", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Vector.SvgExtractor", - "Aspose.Pdf.Vector.SvgExtractor.Extract", - "Aspose.Pdf.PageCollection" + "Aspose.Pdf.Page.Resources", + "Aspose.Pdf.Page.Resources.GetFonts", + "Aspose.Pdf.Text.Font", + "Aspose.Pdf.Text.Font.IsAccessible", + "Aspose.Pdf.Text.FontCollection" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:19:01Z", diff --git a/securing-and-signing-pdf/AGENTS.md b/securing-and-signing-pdf/AGENTS.md index fb4c4a134..8f5dac012 100644 --- a/securing-and-signing-pdf/AGENTS.md +++ b/securing-and-signing-pdf/AGENTS.md @@ -8,7 +8,7 @@ parent: ../agents.md # AGENTS - securing-and-signing-pdf -> **Securing and signing PDF** in PDF using C# / .NET -- **78** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. +> **Securing and signing PDF** in PDF using C# / .NET -- **116** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. ## Persona @@ -23,27 +23,27 @@ See the root [agents.md](../agents.md) for repository-wide conventions and bound ## Required Namespaces -- `using Aspose.Pdf;` (78/78 files) ← category-specific -- `using Aspose.Pdf.Forms;` (52/78 files) ← category-specific -- `using Aspose.Pdf.Security;` (9/78 files) -- `using Aspose.Pdf.Annotations;` (4/78 files) -- `using Aspose.Pdf.Drawing;` (2/78 files) -- `using Aspose.Pdf.Signatures;` (2/78 files) -- `using Aspose.Pdf.Text;` (1/78 files) -- `using System;` (78/78 files) -- `using System.IO;` (78/78 files) -- `using System.Security.Cryptography.X509Certificates;` (16/78 files) -- `using System.Collections.Generic;` (5/78 files) -- `using System.Linq;` (4/78 files) -- `using System.Security.Cryptography;` (3/78 files) -- `using Azure.Storage.Blobs;` (1/78 files) -- `using System.Drawing.Imaging;` (1/78 files) -- `using System.IO.Compression;` (1/78 files) -- `using System.Net.Http;` (1/78 files) -- `using System.Text;` (1/78 files) -- `using System.Threading;` (1/78 files) -- `using System.Threading.Tasks;` (1/78 files) -- `using System.Xml;` (1/78 files) +- `using Aspose.Pdf;` (78/116 files) ← category-specific +- `using Aspose.Pdf.Forms;` (52/116 files) +- `using Aspose.Pdf.Security;` (9/116 files) +- `using Aspose.Pdf.Annotations;` (4/116 files) +- `using Aspose.Pdf.Drawing;` (2/116 files) +- `using Aspose.Pdf.Signatures;` (2/116 files) +- `using Aspose.Pdf.Text;` (1/116 files) +- `using System;` (78/116 files) +- `using System.IO;` (78/116 files) +- `using System.Security.Cryptography.X509Certificates;` (16/116 files) +- `using System.Collections.Generic;` (5/116 files) +- `using System.Linq;` (4/116 files) +- `using System.Security.Cryptography;` (3/116 files) +- `using Azure.Storage.Blobs;` (1/116 files) +- `using System.Drawing.Imaging;` (1/116 files) +- `using System.IO.Compression;` (1/116 files) +- `using System.Net.Http;` (1/116 files) +- `using System.Text;` (1/116 files) +- `using System.Threading;` (1/116 files) +- `using System.Threading.Tasks;` (1/116 files) +- `using System.Xml;` (1/116 files) ## Common Code Pattern @@ -61,40 +61,40 @@ using (Document doc = new Document("input.pdf")) | File | Title | Key APIs | Description | |------|-------|----------|-------------| +| [add-digital-signature-to-pdf](./add-digital-signature-to-pdf.cs) | Add digital signature to pdf | | Add digital signature to pdf | | [add-invisible-digital-signature-to-pdf](./add-invisible-digital-signature-to-pdf.cs) | Add Invisible Digital Signature to PDF | `Document`, `Page`, `Rectangle` | Shows how to create an invisible digital signature field, sign it with a PKCS#7 certificate, reco... | | [add-new-empty-signature-field](./add-new-empty-signature-field.cs) | Add a New Empty Signature Field to a PDF | `Document`, `SignatureField`, `Rectangle` | The example loads a PDF, lists any existing signature fields, creates a new empty signature field... | | [add-visible-digital-signature-second-page](./add-visible-digital-signature-second-page.cs) | Add Visible Digital Signature to Second Page of PDF | `Document`, `Page`, `Rectangle` | Demonstrates how to place a visible digital signature in the bottom‑right corner of the second pa... | +| [add-warning-overlay-disable-copy-paste](./add-warning-overlay-disable-copy-paste.cs) | Add warning overlay disable copy paste | | Add warning overlay disable copy paste | +| [apply-invisible-digital-signature](./apply-invisible-digital-signature.cs) | Apply invisible digital signature | | Apply invisible digital signature | | [apply-pkcs7-detached-digital-signature](./apply-pkcs7-detached-digital-signature.cs) | Apply PKCS#7 Detached Digital Signature to PDF | `Document`, `SignatureField`, `PKCS7Detached` | Demonstrates loading a PDF from a file stream, adding a signature field, and applying a PKCS#7 de... | +| [apply-pkcs7-detached-signature-to-pdf](./apply-pkcs7-detached-signature-to-pdf.cs) | Apply pkcs7 detached signature to pdf | | Apply pkcs7 detached signature to pdf | +| [batch-decrypt-pdf-lookup](./batch-decrypt-pdf-lookup.cs) | Batch decrypt pdf lookup | | Batch decrypt pdf lookup | | [batch-decrypt-pdfs-lookup-table](./batch-decrypt-pdfs-lookup-table.cs) | Batch Decrypt Password-Protected PDFs Using a Lookup Table | `Document`, `Document(string, string)`, `Decrypt` | Demonstrates iterating over a folder of encrypted PDFs, trying multiple possible passwords from a... | | [batch-encrypt-and-sign-pdfs](./batch-encrypt-and-sign-pdfs.cs) | Batch Encrypt and Digitally Sign PDFs | `Document`, `Permissions`, `CryptoAlgorithm` | Demonstrates how to encrypt multiple PDF files with AES‑256 and then apply a PKCS#7 digital signa... | | [batch-encrypt-pdfs-archive-zip](./batch-encrypt-pdfs-archive-zip.cs) | Batch Encrypt PDFs and Archive to ZIP | `Document`, `Encrypt`, `Save` | Demonstrates how to encrypt multiple PDF files with unique passwords using Aspose.Pdf and then pa... | | [batch-encrypt-pdfs-by-filename](./batch-encrypt-pdfs-by-filename.cs) | Batch Encrypt PDFs Using File Name Passwords | `Document`, `Permissions`, `CryptoAlgorithm` | Iterates through all PDF files in a folder, derives a password from each file name, encrypts each... | | [batch-encrypt-pdfs-date-password](./batch-encrypt-pdfs-date-password.cs) | Batch Encrypt PDFs with Date-Based Passwords | `Document`, `Permissions`, `CryptoAlgorithm` | Demonstrates how to encrypt multiple PDF files in a folder using Aspose.Pdf, generating a unique ... | +| [batch-encrypt-pdfs-deterministic-passwords](./batch-encrypt-pdfs-deterministic-passwords.cs) | Batch encrypt pdfs deterministic passwords | | Batch encrypt pdfs deterministic passwords | | [batch-sign-and-compress-pdfs](./batch-sign-and-compress-pdfs.cs) | Batch Sign and Compress PDFs | `Document`, `SignatureField`, `PKCS7` | Demonstrates how to iterate over a folder of PDF files, add a digital signature field, sign each ... | +| [batch-sign-pdfs-metadata-certificate](./batch-sign-pdfs-metadata-certificate.cs) | Batch sign pdfs metadata certificate | | Batch sign pdfs metadata certificate | | [batch-sign-pdfs-title-based-certificate-selection](./batch-sign-pdfs-title-based-certificate-selection.cs) | Batch Sign PDFs with Title-Based Certificate Selection | `Document`, `DocumentInfo`, `PKCS7` | Loads PDFs from a folder, selects a certificate based on the document title, creates a PKCS7 sign... | | [batch-sign-pdfs-with-certificate-per-document-type](./batch-sign-pdfs-with-certificate-per-document-type.cs) | Batch Sign PDFs with Certificate per Document Type | `Document`, `Info`, `SignatureField` | Loads PDF files from an input folder, determines a document type from the PDF title, retrieves th... | | [batch-sign-pdfs-with-certificate](./batch-sign-pdfs-with-certificate.cs) | Batch Sign PDFs with Certificate and Timestamp | `Document`, `Page`, `Rectangle` | Demonstrates how to iterate over PDF files in a folder and apply a PKCS#7 digital signature using... | +| [batch-sign-pdfs-with-document-type-certificates](./batch-sign-pdfs-with-document-type-certificates.cs) | Batch sign pdfs with document type certificates | | Batch sign pdfs with document type certificates | | [certified-pdf-signature-allow-add-pages](./certified-pdf-signature-allow-add-pages.cs) | Create a Certified PDF Signature Allowing Page Additions | `Document`, `Rectangle`, `SignatureField` | Demonstrates how to add a certification (MDP) signature to a PDF using Aspose.Pdf so that new pag... | +| [certify-pdf-allow-annotations](./certify-pdf-allow-annotations.cs) | Certify pdf allow annotations | | Certify pdf allow annotations | | [custom-security-handler-logging-pdf-access](./custom-security-handler-logging-pdf-access.cs) | Custom Security Handler for Logging PDF Access Attempts | `Document`, `ICustomSecurityHandler`, `Permissions` | Demonstrates how to implement a custom ICustomSecurityHandler that logs password checks and encry... | +| [custom-security-handler-logging](./custom-security-handler-logging.cs) | Custom security handler logging | | Custom security handler logging | +| [custom-security-handler-restrict-copy-paste](./custom-security-handler-restrict-copy-paste.cs) | Custom security handler restrict copy paste | | Custom security handler restrict copy paste | | [custom-security-handler-warning-overlay](./custom-security-handler-warning-overlay.cs) | Custom Security Handler with Warning Overlay | `Document`, `Permissions`, `Encrypt` | Shows how to attach a custom ICustomSecurityHandler to a PDF to disable copy‑paste permissions an... | | [decrypt-pdf-extract-embedded-images](./decrypt-pdf-extract-embedded-images.cs) | Decrypt PDF and Extract Embedded Images | `Document`, `Decrypt()`, `Save()` | Shows how to open an encrypted PDF with a user password, remove its encryption, and extract all e... | | [decrypt-pdf-extract-images-reencrypt](./decrypt-pdf-extract-images-reencrypt.cs) | Decrypt PDF, Extract Images, and Re‑encrypt with New Owner P... | `Document`, `Decrypt`, `Page` | The example opens an encrypted PDF using a known password, decrypts it, extracts all embedded ima... | -| [decrypt-pdf-sign-fields-multiple-certs](./decrypt-pdf-sign-fields-multiple-certs.cs) | Decrypt PDF and Sign Each Signature Field with Different Cer... | `Document`, `Decrypt`, `SignatureField` | The example opens an encrypted PDF, removes its protection, locates all signature fields, and sig... | -| [decrypt-pdf-update-metadata](./decrypt-pdf-update-metadata.cs) | Decrypt PDF and Update Metadata with Aspose.Pdf | `Document`, `Decrypt`, `Info` | Demonstrates how to open an encrypted PDF using the owner password, remove its encryption, modify... | -| [decrypt-pdf-with-certificate-token](./decrypt-pdf-with-certificate-token.cs) | Decrypt PDF Encrypted with Certificate Using Hardware Token | `Document`, `CertificateEncryptionOptions`, `Decrypt` | Shows how to open a PDF encrypted with a public certificate, retrieve the private key from a hard... | -| [decrypt-pdf-with-owner-password](./decrypt-pdf-with-owner-password.cs) | Decrypt PDF with Owner Password using Aspose.Pdf | `Document`, `Decrypt`, `Save` | Demonstrates opening an encrypted PDF with the owner password, removing its protection, and savin... | -| [download-sign-pdf-azure-blob](./download-sign-pdf-azure-blob.cs) | Download PDF, Apply PKCS7 Signature, and Upload to Azure Blo... | `Document`, `Page`, `Rectangle` | The example downloads a PDF from a URL, creates a signature field, signs it with a PKCS7 certific... | -| [encrypt-pdf-aes256-user-owner-passwords](./encrypt-pdf-aes256-user-owner-passwords.cs) | Encrypt PDF with AES‑256 and Set User/Owner Passwords | `Document`, `Permissions`, `CryptoAlgorithm` | Demonstrates how to encrypt a PDF using AES‑256, assign separate user and owner passwords, and co... | -| [encrypt-pdf-allow-copy-block-print](./encrypt-pdf-allow-copy-block-print.cs) | Encrypt PDF and Allow Copying While Blocking Printing | `Document`, `Permissions`, `CryptoAlgorithm` | Shows how to encrypt a PDF with Aspose.Pdf, set user and owner passwords, permit content extracti... | -| [encrypt-pdf-disable-content-extraction](./encrypt-pdf-disable-content-extraction.cs) | Encrypt PDF and Disable Content Extraction | `Document`, `Permissions`, `CryptoAlgorithm` | Loads a PDF, encrypts it with AES‑256 using user and owner passwords, sets permissions to none to... | -| [encrypt-pdf-disable-printing](./encrypt-pdf-disable-printing.cs) | Encrypt PDF with Password and Disable Printing | `Document`, `Encrypt`, `Save` | Demonstrates how to encrypt a PDF using AES‑256 with user and owner passwords while restricting p... | -| [encrypt-pdf-owner-password-high-res-printing](./encrypt-pdf-owner-password-high-res-printing.cs) | Encrypt PDF with Owner Password and Allow High‑Resolution Pr... | `Document`, `Permissions`, `CryptoAlgorithm` | The example loads a PDF, applies AES‑256 encryption with an owner password, enables high‑resoluti... | -| [encrypt-pdf-print-only-permission](./encrypt-pdf-print-only-permission.cs) | Encrypt PDF with Print‑Only Permission | `Document`, `Permissions`, `CryptoAlgorithm` | Shows how to encrypt a PDF using Aspose.Pdf and restrict its permissions so that only printing is... | -| [encrypt-pdf-rc4-128-bit-restrict-editing](./encrypt-pdf-rc4-128-bit-restrict-editing.cs) | Encrypt PDF with RC4 128-bit and Restrict Editing | `Document`, `Permissions`, `CryptoAlgorithm` | The example loads a PDF, applies 128‑bit RC4 encryption with user and owner passwords, restricts ... | -| ... | | | *and 48 more files* | +| [decrypt-pdf-resign-multiple-certificates](./decrypt-pdf-resign-multiple-certificates.cs) | Decrypt pdf resign multiple certificates | | Decrypt pdf resign multiple certificates | +| ... | | | *and 86 more files* | ## Category Statistics -- Total examples: 78 +- Total examples: 116 ## General Tips - See parent [AGENTS.md](../AGENTS.md) for: @@ -105,5 +105,5 @@ using (Document doc = new Document("input.pdf")) - Review code examples in this folder for securing-and-signing-pdf patterns -Updated: 2026-08-20 | Run: `20260820_001147_12d7b3` +Updated: 2026-09-10 | Run: `20260910_054408_87a7f4` diff --git a/securing-and-signing-pdf/README.md b/securing-and-signing-pdf/README.md new file mode 100644 index 000000000..fde022656 --- /dev/null +++ b/securing-and-signing-pdf/README.md @@ -0,0 +1,135 @@ +# Securing and signing PDF + +> **Securing and signing PDF** in PDF using C# / .NET -- **116** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. + +- Category: `securing-and-signing-pdf` +- Examples: 116 +- NuGet: `Aspose.PDF 26.8.0` -- target `net10.0` + +## Examples + +- [`add-digital-signature-to-pdf.cs`](./add-digital-signature-to-pdf.cs) -- Add digital signature to pdf +- [`add-invisible-digital-signature-to-pdf.cs`](./add-invisible-digital-signature-to-pdf.cs) -- Add invisible digital signature to pdf +- [`add-new-empty-signature-field.cs`](./add-new-empty-signature-field.cs) -- Add new empty signature field +- [`add-visible-digital-signature-second-page.cs`](./add-visible-digital-signature-second-page.cs) -- Add visible digital signature second page +- [`add-warning-overlay-disable-copy-paste.cs`](./add-warning-overlay-disable-copy-paste.cs) -- Add warning overlay disable copy paste +- [`apply-invisible-digital-signature.cs`](./apply-invisible-digital-signature.cs) -- Apply invisible digital signature +- [`apply-pkcs7-detached-digital-signature.cs`](./apply-pkcs7-detached-digital-signature.cs) -- Apply pkcs7 detached digital signature +- [`apply-pkcs7-detached-signature-to-pdf.cs`](./apply-pkcs7-detached-signature-to-pdf.cs) -- Apply pkcs7 detached signature to pdf +- [`batch-decrypt-pdf-lookup.cs`](./batch-decrypt-pdf-lookup.cs) -- Batch decrypt pdf lookup +- [`batch-decrypt-pdfs-lookup-table.cs`](./batch-decrypt-pdfs-lookup-table.cs) -- Batch decrypt pdfs lookup table +- [`batch-encrypt-and-sign-pdfs.cs`](./batch-encrypt-and-sign-pdfs.cs) -- Batch encrypt and sign pdfs +- [`batch-encrypt-pdfs-archive-zip.cs`](./batch-encrypt-pdfs-archive-zip.cs) -- Batch encrypt pdfs archive zip +- [`batch-encrypt-pdfs-by-filename.cs`](./batch-encrypt-pdfs-by-filename.cs) -- Batch encrypt pdfs by filename +- [`batch-encrypt-pdfs-date-password.cs`](./batch-encrypt-pdfs-date-password.cs) -- Batch encrypt pdfs date password +- [`batch-encrypt-pdfs-deterministic-passwords.cs`](./batch-encrypt-pdfs-deterministic-passwords.cs) -- Batch encrypt pdfs deterministic passwords +- [`batch-sign-and-compress-pdfs.cs`](./batch-sign-and-compress-pdfs.cs) -- Batch sign and compress pdfs +- [`batch-sign-pdfs-metadata-certificate.cs`](./batch-sign-pdfs-metadata-certificate.cs) -- Batch sign pdfs metadata certificate +- [`batch-sign-pdfs-title-based-certificate-selection.cs`](./batch-sign-pdfs-title-based-certificate-selection.cs) -- Batch sign pdfs title based certificate selection +- [`batch-sign-pdfs-with-certificate-per-document-type.cs`](./batch-sign-pdfs-with-certificate-per-document-type.cs) -- Batch sign pdfs with certificate per document type +- [`batch-sign-pdfs-with-certificate.cs`](./batch-sign-pdfs-with-certificate.cs) -- Batch sign pdfs with certificate +- [`batch-sign-pdfs-with-document-type-certificates.cs`](./batch-sign-pdfs-with-document-type-certificates.cs) -- Batch sign pdfs with document type certificates +- [`certified-pdf-signature-allow-add-pages.cs`](./certified-pdf-signature-allow-add-pages.cs) -- Certified pdf signature allow add pages +- [`certify-pdf-allow-annotations.cs`](./certify-pdf-allow-annotations.cs) -- Certify pdf allow annotations +- [`custom-security-handler-logging-pdf-access.cs`](./custom-security-handler-logging-pdf-access.cs) -- Custom security handler logging pdf access +- [`custom-security-handler-logging.cs`](./custom-security-handler-logging.cs) -- Custom security handler logging +- [`custom-security-handler-restrict-copy-paste.cs`](./custom-security-handler-restrict-copy-paste.cs) -- Custom security handler restrict copy paste +- [`custom-security-handler-warning-overlay.cs`](./custom-security-handler-warning-overlay.cs) -- Custom security handler warning overlay +- [`decrypt-pdf-extract-embedded-images.cs`](./decrypt-pdf-extract-embedded-images.cs) -- Decrypt pdf extract embedded images +- [`decrypt-pdf-extract-images-reencrypt.cs`](./decrypt-pdf-extract-images-reencrypt.cs) -- Decrypt pdf extract images reencrypt +- [`decrypt-pdf-resign-multiple-certificates.cs`](./decrypt-pdf-resign-multiple-certificates.cs) -- Decrypt pdf resign multiple certificates +- [`decrypt-pdf-sign-fields-multiple-certs.cs`](./decrypt-pdf-sign-fields-multiple-certs.cs) -- Decrypt pdf sign fields multiple certs +- [`decrypt-pdf-update-metadata.cs`](./decrypt-pdf-update-metadata.cs) -- Decrypt pdf update metadata +- [`decrypt-pdf-using-certificate-token.cs`](./decrypt-pdf-using-certificate-token.cs) -- Decrypt pdf using certificate token +- [`decrypt-pdf-with-certificate-token.cs`](./decrypt-pdf-with-certificate-token.cs) -- Decrypt pdf with certificate token +- [`decrypt-pdf-with-owner-password.cs`](./decrypt-pdf-with-owner-password.cs) -- Decrypt pdf with owner password +- [`download-sign-pdf-azure-blob.cs`](./download-sign-pdf-azure-blob.cs) -- Download sign pdf azure blob +- [`encrypt-pdf-aes256-user-owner-passwords.cs`](./encrypt-pdf-aes256-user-owner-passwords.cs) -- Encrypt pdf aes256 user owner passwords +- [`encrypt-pdf-allow-copy-block-print.cs`](./encrypt-pdf-allow-copy-block-print.cs) -- Encrypt pdf allow copy block print +- [`encrypt-pdf-certificate-sign.cs`](./encrypt-pdf-certificate-sign.cs) -- Encrypt pdf certificate sign +- [`encrypt-pdf-disable-content-extraction.cs`](./encrypt-pdf-disable-content-extraction.cs) -- Encrypt pdf disable content extraction +- [`encrypt-pdf-disable-printing.cs`](./encrypt-pdf-disable-printing.cs) -- Encrypt pdf disable printing +- [`encrypt-pdf-owner-password-high-res-printing.cs`](./encrypt-pdf-owner-password-high-res-printing.cs) -- Encrypt pdf owner password high res printing +- [`encrypt-pdf-print-only-permission.cs`](./encrypt-pdf-print-only-permission.cs) -- Encrypt pdf print only permission +- [`encrypt-pdf-rc4-128-bit-restrict-editing.cs`](./encrypt-pdf-rc4-128-bit-restrict-editing.cs) -- Encrypt pdf rc4 128 bit restrict editing +- [`encrypt-pdf-rc4-128-restrict-editing.cs`](./encrypt-pdf-rc4-128-restrict-editing.cs) -- Encrypt pdf rc4 128 restrict editing +- [`encrypt-pdf-remove-user-password.cs`](./encrypt-pdf-remove-user-password.cs) -- Encrypt pdf remove user password +- [`encrypt-pdf-view-only-edit-password.cs`](./encrypt-pdf-view-only-edit-password.cs) -- Encrypt pdf view only edit password +- [`encrypt-pdf-with-password-aes256.cs`](./encrypt-pdf-with-password-aes256.cs) -- Encrypt pdf with password aes256 +- [`encrypt-pdf-with-password.cs`](./encrypt-pdf-with-password.cs) -- Encrypt pdf with password +- [`encrypt-pdf-with-print-copy-permissions.cs`](./encrypt-pdf-with-print-copy-permissions.cs) -- Encrypt pdf with print copy permissions +- [`encrypt-pdf-with-smart-card-certificate.cs`](./encrypt-pdf-with-smart-card-certificate.cs) -- Encrypt pdf with smart card certificate +- [`encrypt-pdf-with-user-owner-passwords-remove-user.cs`](./encrypt-pdf-with-user-owner-passwords-remove-user.cs) -- Encrypt pdf with user owner passwords remove user +- [`encrypt-pdf-with-user-password.cs`](./encrypt-pdf-with-user-password.cs) -- Encrypt pdf with user password +- [`encrypted-pdf-with-attachment-and-signature.cs`](./encrypted-pdf-with-attachment-and-signature.cs) -- Encrypted pdf with attachment and signature +- [`extract-certificate-chain-from-pdf-signature.cs`](./extract-certificate-chain-from-pdf-signature.cs) -- Extract certificate chain from pdf signature +- [`extract-certificate-chain-from-pdf-signatures.cs`](./extract-certificate-chain-from-pdf-signatures.cs) -- Extract certificate chain from pdf signatures +- [`extract-digest-algorithm-from-pdf-signatures.cs`](./extract-digest-algorithm-from-pdf-signatures.cs) -- Extract digest algorithm from pdf signatures +- [`extract-images-from-signed-pdf.cs`](./extract-images-from-signed-pdf.cs) -- Extract images from signed pdf +- [`extract-images-from-signed-pdf__v2.cs`](./extract-images-from-signed-pdf__v2.cs) -- Extract images from signed pdf v2 +- [`extract-pdf-signature-signing-time-utc.cs`](./extract-pdf-signature-signing-time-utc.cs) -- Extract pdf signature signing time utc +- [`extract-signature-certificate-chain.cs`](./extract-signature-certificate-chain.cs) -- Extract signature certificate chain +- [`extract-signature-field-metadata.cs`](./extract-signature-field-metadata.cs) -- Extract signature field metadata +- [`extract-signature-field-names-and-page-numbers.cs`](./extract-signature-field-names-and-page-numbers.cs) -- Extract signature field names and page numbers +- [`extract-signature-image-to-png.cs`](./extract-signature-image-to-png.cs) -- Extract signature image to png +- [`extract-signature-images.cs`](./extract-signature-images.cs) -- Extract signature images +- [`extract-signature-signing-time-utc.cs`](./extract-signature-signing-time-utc.cs) -- Extract signature signing time utc +- [`lock-form-fields-after-signing.cs`](./lock-form-fields-after-signing.cs) -- Lock form fields after signing +- [`pdf-certification-signature-no-modifications.cs`](./pdf-certification-signature-no-modifications.cs) -- Pdf certification signature no modifications +- [`remove-digital-signature-from-pdf.cs`](./remove-digital-signature-from-pdf.cs) -- Remove digital signature from pdf +- [`restrict-copy-paste-in-pdf.cs`](./restrict-copy-paste-in-pdf.cs) -- Restrict copy paste in pdf +- [`retrieve-reason-location-from-pdf-signatures.cs`](./retrieve-reason-location-from-pdf-signatures.cs) -- Retrieve reason location from pdf signatures +- [`retrieve-signature-reason-location.cs`](./retrieve-signature-reason-location.cs) -- Retrieve signature reason location +- [`set-pdf-privileges-disable-extraction-form-filling.cs`](./set-pdf-privileges-disable-extraction-form-filling.cs) -- Set pdf privileges disable extraction form filling +- [`sign-pdf-add-custom-xmp-metadata.cs`](./sign-pdf-add-custom-xmp-metadata.cs) -- Sign pdf add custom xmp metadata +- [`sign-pdf-and-flatten-form-fields.cs`](./sign-pdf-and-flatten-form-fields.cs) -- Sign pdf and flatten form fields +- [`sign-pdf-and-lock-readonly.cs`](./sign-pdf-and-lock-readonly.cs) -- Sign pdf and lock readonly +- [`sign-pdf-and-lock-signature-field.cs`](./sign-pdf-and-lock-signature-field.cs) -- Sign pdf and lock signature field +- [`sign-pdf-append-only.cs`](./sign-pdf-append-only.cs) -- Sign pdf append only +- [`sign-pdf-embed-xfa-data.cs`](./sign-pdf-embed-xfa-data.cs) -- Sign pdf embed xfa data +- [`sign-pdf-embed-xfa-form-data.cs`](./sign-pdf-embed-xfa-form-data.cs) -- Sign pdf embed xfa form data +- [`sign-pdf-enforce-finality.cs`](./sign-pdf-enforce-finality.cs) -- Sign pdf enforce finality +- [`sign-pdf-flatten-form-fields.cs`](./sign-pdf-flatten-form-fields.cs) -- Sign pdf flatten form fields +- [`sign-pdf-flatten-signature.cs`](./sign-pdf-flatten-signature.cs) -- Sign pdf flatten signature +- [`sign-pdf-hardware-token-pkcs11.cs`](./sign-pdf-hardware-token-pkcs11.cs) -- Sign pdf hardware token pkcs11 +- [`sign-pdf-lock-signature-field.cs`](./sign-pdf-lock-signature-field.cs) -- Sign pdf lock signature field +- [`sign-pdf-lock-specific-form-fields.cs`](./sign-pdf-lock-specific-form-fields.cs) -- Sign pdf lock specific form fields +- [`sign-pdf-prevent-additional-signatures.cs`](./sign-pdf-prevent-additional-signatures.cs) -- Sign pdf prevent additional signatures +- [`sign-pdf-remove-annotations-preserve-signature.cs`](./sign-pdf-remove-annotations-preserve-signature.cs) -- Sign pdf remove annotations preserve signature +- [`sign-pdf-remove-annotations.cs`](./sign-pdf-remove-annotations.cs) -- Sign pdf remove annotations +- [`sign-pdf-with-4096-rsa-certificate.cs`](./sign-pdf-with-4096-rsa-certificate.cs) -- Sign pdf with 4096 rsa certificate +- [`sign-pdf-with-certificate.cs`](./sign-pdf-with-certificate.cs) -- Sign pdf with certificate +- [`sign-pdf-with-custom-image-appearance.cs`](./sign-pdf-with-custom-image-appearance.cs) -- Sign pdf with custom image appearance +- [`sign-pdf-with-ecc-p256.cs`](./sign-pdf-with-ecc-p256.cs) -- Sign pdf with ecc p256 +- [`sign-pdf-with-hardware-token.cs`](./sign-pdf-with-hardware-token.cs) -- Sign pdf with hardware token +- [`sign-pdf-with-incremental-updates.cs`](./sign-pdf-with-incremental-updates.cs) -- Sign pdf with incremental updates +- [`sign-pdf-with-pkcs7-and-custom-xml.cs`](./sign-pdf-with-pkcs7-and-custom-xml.cs) -- Sign pdf with pkcs7 and custom xml +- [`sign-pdf-with-pkcs7-signature.cs`](./sign-pdf-with-pkcs7-signature.cs) -- Sign pdf with pkcs7 signature +- [`sign-pdf-with-reason-contact-location.cs`](./sign-pdf-with-reason-contact-location.cs) -- Sign pdf with reason contact location +- [`sign-pdf-with-rsa-4096-certificate.cs`](./sign-pdf-with-rsa-4096-certificate.cs) -- Sign pdf with rsa 4096 certificate +- [`sign-pdf-with-sha384-digest.cs`](./sign-pdf-with-sha384-digest.cs) -- Sign pdf with sha384 digest +- [`sign-pdf-with-sha512-digest.cs`](./sign-pdf-with-sha512-digest.cs) -- Sign pdf with sha512 digest +- [`sign-pdf-with-sha512.cs`](./sign-pdf-with-sha512.cs) -- Sign pdf with sha512 +- [`sign-pdf-with-smart-card-no-pin.cs`](./sign-pdf-with-smart-card-no-pin.cs) -- Sign pdf with smart card no pin +- [`sign-pdf-with-smart-card.cs`](./sign-pdf-with-smart-card.cs) -- Sign pdf with smart card +- [`sign-pdf-with-timestamp.cs`](./sign-pdf-with-timestamp.cs) -- Sign pdf with timestamp +- [`sign-pdf-with-visible-signature-pfx.cs`](./sign-pdf-with-visible-signature-pfx.cs) -- Sign pdf with visible signature pfx +- [`sign-pdf-with-windows-certificate.cs`](./sign-pdf-with-windows-certificate.cs) -- Sign pdf with windows certificate +- [`validate-pdf-digital-signature-ocsp.cs`](./validate-pdf-digital-signature-ocsp.cs) -- Validate pdf digital signature ocsp +- [`validate-pdf-digital-signature.cs`](./validate-pdf-digital-signature.cs) -- Validate pdf digital signature +- [`validate-pdf-signature-crl-revocation.cs`](./validate-pdf-signature-crl-revocation.cs) -- Validate pdf signature crl revocation +- [`validate-pdf-signature-crl.cs`](./validate-pdf-signature-crl.cs) -- Validate pdf signature crl +- [`validate-pdf-signature-extract-san.cs`](./validate-pdf-signature-extract-san.cs) -- Validate pdf signature extract san +- [`validate-pdf-signature-ocsp.cs`](./validate-pdf-signature-ocsp.cs) -- Validate pdf signature ocsp +- [`validate-pdf-signature-timestamp.cs`](./validate-pdf-signature-timestamp.cs) -- Validate pdf signature timestamp +- [`validate-pdf-signature.cs`](./validate-pdf-signature.cs) -- Validate pdf signature +- [`validate-pkcs7-detached-signature.cs`](./validate-pkcs7-detached-signature.cs) -- Validate pkcs7 detached signature + +## See Also + +- [`AGENTS.md`](./AGENTS.md) -- category-specific anti-patterns, API surface, and conventions for AI coding agents +- [`../AGENTS.md`](../AGENTS.md) -- repository-wide agent guide +- [`../README.md`](../README.md) -- full category index and project overview +- [Aspose.PDF for .NET docs](https://docs.aspose.com/pdf/net/) + +> Each `.cs` file is a standalone, build-validated console example. Drop into a fresh `dotnet new console` project, add the `Aspose.PDF` NuGet (version above), and run. diff --git a/securing-and-signing-pdf/index.json b/securing-and-signing-pdf/index.json index d00ea4b8d..236b09d98 100644 --- a/securing-and-signing-pdf/index.json +++ b/securing-and-signing-pdf/index.json @@ -1,40 +1,28 @@ { "category": "securing-and-signing-pdf", "nuget_version": "26.8.0", - "last_updated": "2026-08-20T08:22:32Z", + "last_updated": "2026-09-10T12:45:08Z", "examples": { - "apply-pkcs7-detached-digital-signature": { - "title": "Apply PKCS#7 Detached Digital Signature to PDF", - "filename": "apply-pkcs7-detached-digital-signature.cs", - "description": "Demonstrates loading a PDF from a file stream, adding a signature field, and applying a PKCS#7 detached digital signature using a PFX certificate.", - "tags": [ - "pdf-signature", - "pkcs7", - "digital-signature", - "aspose-pdf", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.PKCS7Detached", - "Aspose.Pdf.Forms.SignatureField.Sign", - "Aspose.Pdf.Rectangle" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:22:32Z", + "add-digital-signature-to-pdf": { + "title": "Add Digital Signature To Pdf", + "filename": "add-digital-signature-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "batch-sign-pdfs-with-certificate": { - "title": "Batch Sign PDFs with Certificate and Timestamp", - "filename": "batch-sign-pdfs-with-certificate.cs", - "description": "Demonstrates how to iterate over PDF files in a folder and apply a PKCS#7 digital signature using a PFX certificate, adding a timestamp from a TSA. The signed PDFs are saved back to the original location.", + "add-invisible-digital-signature-to-pdf": { + "title": "Add Invisible Digital Signature to PDF", + "filename": "add-invisible-digital-signature-to-pdf.cs", + "description": "Shows how to create an invisible digital signature field, sign it with a PKCS#7 certificate, record the signing time, and save the PDF without altering its layout using Aspose.Pdf.", "tags": [ - "pdf-signing", - "batch", - "certificate", - "timestamp", - "aspose-pdf" + "digital-signature", + "pdf", + "invisible", + "Aspose.Pdf", + "PKCS7" ], "apis_used": [ "Aspose.Pdf.Document", @@ -42,74 +30,34 @@ "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.SignatureField", "Aspose.Pdf.Forms.PKCS7", - "Aspose.Pdf.Forms.TimestampSettings" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Forms.SignatureField.Sign", + "Aspose.Pdf.Document.Form.Add" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "encrypt-pdf-disable-printing": { - "title": "Encrypt PDF with Password and Disable Printing", - "filename": "encrypt-pdf-disable-printing.cs", - "description": "Demonstrates how to encrypt a PDF using AES‑256 with user and owner passwords while restricting permissions to prevent printing.", + "add-new-empty-signature-field": { + "title": "Add a New Empty Signature Field to a PDF", + "filename": "add-new-empty-signature-field.cs", + "description": "The example loads a PDF, lists any existing signature fields, creates a new empty signature field on the first page, and saves the updated document.", "tags": [ "pdf", - "encryption", - "permissions", + "signature", + "form", "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T08:22:32Z", - "status": "verified" - }, - "encrypt-pdf-owner-password-high-res-printing": { - "title": "Encrypt PDF with Owner Password and Allow High‑Resolution Printing", - "filename": "encrypt-pdf-owner-password-high-res-printing.cs", - "description": "The example loads a PDF, applies AES‑256 encryption with an owner password, enables high‑resolution printing while disabling copying, and saves the protected document.", - "tags": [ - "encryption", - "owner-password", - "printing", - "copy-protection", - "Aspose.Pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T08:22:32Z", - "status": "verified" - }, - "decrypt-pdf-with-owner-password": { - "title": "Decrypt PDF with Owner Password using Aspose.Pdf", - "filename": "decrypt-pdf-with-owner-password.cs", - "description": "Demonstrates opening an encrypted PDF with the owner password, removing its protection, and saving the decrypted document.", - "tags": [ - "pdf", - "decryption", - "owner-password", - "aspose.pdf", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Decrypt", + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Document.Form", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.InvalidPasswordException" + "Aspose.Pdf.Forms.Form.Add" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, @@ -135,436 +83,570 @@ "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "add-invisible-digital-signature-to-pdf": { - "title": "Add Invisible Digital Signature to PDF", - "filename": "add-invisible-digital-signature-to-pdf.cs", - "description": "Shows how to create an invisible digital signature field, sign it with a PKCS#7 certificate, record the signing time, and save the PDF without altering its layout using Aspose.Pdf.", + "add-warning-overlay-disable-copy-paste": { + "title": "Add Warning Overlay Disable Copy Paste", + "filename": "add-warning-overlay-disable-copy-paste.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "apply-invisible-digital-signature": { + "title": "Apply Invisible Digital Signature", + "filename": "apply-invisible-digital-signature.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "apply-pkcs7-detached-digital-signature": { + "title": "Apply PKCS#7 Detached Digital Signature to PDF", + "filename": "apply-pkcs7-detached-digital-signature.cs", + "description": "Demonstrates loading a PDF from a file stream, adding a signature field, and applying a PKCS#7 detached digital signature using a PFX certificate.", "tags": [ + "pdf-signature", + "pkcs7", "digital-signature", - "pdf", - "invisible", - "Aspose.Pdf", - "PKCS7" + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.PKCS7", - "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Forms.PKCS7Detached", "Aspose.Pdf.Forms.SignatureField.Sign", - "Aspose.Pdf.Document.Form.Add" + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "extract-signature-field-metadata": { - "title": "Extract Signature Field Metadata from PDF", - "filename": "extract-signature-field-metadata.cs", - "description": "Loads a PDF, checks for form fields, and iterates over all signature fields to output their properties, signature details, and extracts any embedded certificate or image.", + "apply-pkcs7-detached-signature-to-pdf": { + "title": "Apply Pkcs7 Detached Signature To Pdf", + "filename": "apply-pkcs7-detached-signature-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "batch-decrypt-pdf-lookup": { + "title": "Batch Decrypt Pdf Lookup", + "filename": "batch-decrypt-pdf-lookup.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "batch-decrypt-pdfs-lookup-table": { + "title": "Batch Decrypt Password-Protected PDFs Using a Lookup Table", + "filename": "batch-decrypt-pdfs-lookup-table.cs", + "description": "Demonstrates iterating over a folder of encrypted PDFs, trying multiple possible passwords from a dictionary, decrypting each document with Aspose.Pdf, and saving the unprotected version.", "tags": [ "pdf", - "signature", - "form", - "metadata", - "aspnet" + "decryption", + "batch", + "password", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.Signature", - "Aspose.Pdf.Forms.SignatureField.ExtractCertificate", - "Aspose.Pdf.Forms.SignatureField.ExtractImage" + "Aspose.Pdf.Document(string, string)", + "Aspose.Pdf.Document.Decrypt", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.InvalidPasswordException" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "extract-images-from-signed-pdf": { - "title": "Extract Images from a Signed PDF and Save as PNG", - "filename": "extract-images-from-signed-pdf.cs", - "description": "The example loads a signed PDF, extracts any signature field images, then iterates through each page to save all embedded images as PNG files.", + "batch-encrypt-and-sign-pdfs": { + "title": "Batch Encrypt and Digitally Sign PDFs", + "filename": "batch-encrypt-and-sign-pdfs.cs", + "description": "Demonstrates how to encrypt multiple PDF files with AES‑256 and then apply a PKCS#7 digital signature to each encrypted document using Aspose.Pdf.", "tags": [ - "pdf", - "image-extraction", - "signature", - "aspose.pdf", - "png" + "pdf encryption", + "digital signature", + "batch processing", + "aes-256", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Permissions", + "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.SignatureField.ExtractImage", - "Aspose.Pdf.Page", - "Aspose.Pdf.XImage", - "Aspose.Pdf.XImage.Save" + "Aspose.Pdf.Forms.PKCS7" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "remove-digital-signature-from-pdf": { - "title": "Remove Digital Signature from PDF", - "filename": "remove-digital-signature-from-pdf.cs", - "description": "Shows how to programmatically strip a digital signature from a PDF when privileges allow, using signature sanitization and explicit removal of signature field annotations.", + "batch-encrypt-pdfs-archive-zip": { + "title": "Batch Encrypt PDFs and Archive to ZIP", + "filename": "batch-encrypt-pdfs-archive-zip.cs", + "description": "Demonstrates how to encrypt multiple PDF files with unique passwords using Aspose.Pdf and then package the encrypted PDFs into a ZIP archive.", "tags": [ - "pdf", - "signature", - "remove", + "pdf-encryption", + "batch-processing", + "zip-archive", "aspose-pdf", - "sanitization" + "password-protection" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Decrypt", - "Aspose.Pdf.Document.EnableSignatureSanitization", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Annotations.AnnotationCollection.Delete", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Security.Permissions", + "Aspose.Pdf.Security.CryptoAlgorithm" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "sign-pdf-with-smart-card": { - "title": "Sign PDF with Smart Card Certificate", - "filename": "sign-pdf-with-smart-card.cs", - "description": "Shows how to load a PDF, add a signature field, and sign it using a smart‑card certificate (private key) via Aspose.Pdf.", + "batch-encrypt-pdfs-by-filename": { + "title": "Batch Encrypt PDFs Using File Name Passwords", + "filename": "batch-encrypt-pdfs-by-filename.cs", + "description": "Iterates through all PDF files in a folder, derives a password from each file name, encrypts each document with AES‑256 using Aspose.Pdf, and saves the encrypted copies to an output directory.", "tags": [ - "pdf-signing", - "smart-card", - "certificate", + "pdf-encryption", + "batch", "aspose-pdf", - "csharp" + "csharp", + "password-protection" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.ExternalSignature", - "Aspose.Pdf.Forms.SignatureField.Sign", + "Aspose.Pdf.Permissions", + "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.Encrypt", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "sign-pdf-with-smart-card-no-pin": { - "title": "Sign PDF with Smart Card Certificate (No PIN Prompt)", - "filename": "sign-pdf-with-smart-card-no-pin.cs", - "description": "Shows how to add a visible signature field to a PDF and sign it using a smart‑card X509Certificate2 without displaying a PIN prompt, leveraging Aspose.Pdf.", + "batch-encrypt-pdfs-date-password": { + "title": "Batch Encrypt PDFs with Date-Based Passwords", + "filename": "batch-encrypt-pdfs-date-password.cs", + "description": "Demonstrates how to encrypt multiple PDF files in a folder using Aspose.Pdf, generating a unique password for each file from its name combined with the current UTC date.", "tags": [ - "pdf signing", - "smart card", - "digital signature", - "c#", - "aspose.pdf" + "pdf-encryption", + "batch-processing", + "aspose-pdf", + "aes-256", + "hashing" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.ExternalSignature", - "Aspose.Pdf.Forms.SignatureField.Sign", + "Aspose.Pdf.Permissions", + "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.Encrypt", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "custom-security-handler-logging-pdf-access": { - "title": "Custom Security Handler for Logging PDF Access Attempts", - "filename": "custom-security-handler-logging-pdf-access.cs", - "description": "Demonstrates how to implement a custom ICustomSecurityHandler that logs password checks and encryption steps, then encrypts and opens a PDF using this handler.", + "batch-encrypt-pdfs-deterministic-passwords": { + "title": "Batch Encrypt Pdfs Deterministic Passwords", + "filename": "batch-encrypt-pdfs-deterministic-passwords.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "batch-sign-and-compress-pdfs": { + "title": "Batch Sign and Compress PDFs", + "filename": "batch-sign-and-compress-pdfs.cs", + "description": "Demonstrates how to iterate over a folder of PDF files, add a digital signature field, sign each document with a PKCS#7 certificate, compress the signed PDF, and save the result.", "tags": [ "pdf", - "encryption", - "custom-security", - "logging", - "Aspose.Pdf" + "digital-signature", + "batch-processing", + "compression", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Security.ICustomSecurityHandler", - "Aspose.Pdf.Security.Permissions", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Forms.PKCS7", + "Aspose.Pdf.Document.OptimizeResources", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Form.Add", + "Aspose.Pdf.Forms.SignatureField.Sign" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "restrict-copy-paste-in-pdf": { - "title": "Restrict Copy-Paste in PDF with Encryption", - "filename": "restrict-copy-paste-in-pdf.cs", - "description": "Demonstrates how to encrypt a PDF using Aspose.Pdf, set permissions to allow printing and modification while disabling content extraction (copy‑paste).", + "batch-sign-pdfs-metadata-certificate": { + "title": "Batch Sign Pdfs Metadata Certificate", + "filename": "batch-sign-pdfs-metadata-certificate.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "batch-sign-pdfs-title-based-certificate-selection": { + "title": "Batch Sign PDFs with Title-Based Certificate Selection", + "filename": "batch-sign-pdfs-title-based-certificate-selection.cs", + "description": "Loads PDFs from a folder, selects a certificate based on the document title, creates a PKCS7 signature, adds or uses a signature field, signs each document, and saves the signed files to an output folder.", "tags": [ - "pdf encryption", - "permissions", - "copy-paste", - "Aspose.Pdf", - "C#" + "pdf-signing", + "batch", + "certificate", + "aspose-pdf", + "pkcs7" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.DocumentInfo", + "Aspose.Pdf.Forms.PKCS7", + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Form" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "sign-pdf-with-timestamp": { - "title": "Sign PDF with Timestamp from TSA", - "filename": "sign-pdf-with-timestamp.cs", - "description": "Shows how to add a digital PKCS#7 signature to a PDF and request a trusted timestamp from a Time‑Stamp Authority using Aspose.Pdf.", + "batch-sign-pdfs-with-certificate-per-document-type": { + "title": "Batch Sign PDFs with Certificate per Document Type", + "filename": "batch-sign-pdfs-with-certificate-per-document-type.cs", + "description": "Loads PDF files from an input folder, determines a document type from the PDF title, retrieves the corresponding certificate, signs all signature fields, and saves the signed PDFs to an output folder.", "tags": [ - "pdf-signature", - "timestamp", - "tsp", - "digital-signature", - "aspose-pdf" + "pdf-signing", + "batch", + "certificate", + "aspose-pdf", + "signature-field" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Info", "Aspose.Pdf.Forms.SignatureField", "Aspose.Pdf.Forms.PKCS7", - "Aspose.Pdf.Forms.TimestampSettings", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "validate-pdf-digital-signature": { - "title": "Validate PDF Digital Signature with Certificate Chain Check", - "filename": "validate-pdf-digital-signature.cs", - "description": "Loads a PDF, locates the first signature field, configures validation options to check the certificate chain, and verifies the detached PKCS#7 signature.", + "batch-sign-pdfs-with-certificate": { + "title": "Batch Sign PDFs with Certificate and Timestamp", + "filename": "batch-sign-pdfs-with-certificate.cs", + "description": "Demonstrates how to iterate over PDF files in a folder and apply a PKCS#7 digital signature using a PFX certificate, adding a timestamp from a TSA. The signed PDFs are saved back to the original location.", "tags": [ - "pdf", - "digital-signature", - "validation", - "certificate-chain", + "pdf-signing", + "batch", + "certificate", + "timestamp", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Security.ValidationOptions", - "Aspose.Pdf.Security.ValidationMode", - "Aspose.Pdf.Forms.Signature.Verify" + "Aspose.Pdf.Forms.PKCS7", + "Aspose.Pdf.Forms.TimestampSettings" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "validate-pdf-signature-ocsp": { - "title": "Validate PDF Signature Using OCSP", - "filename": "validate-pdf-signature-ocsp.cs", - "description": "Demonstrates how to load a signed PDF, configure OCSP validation options, and verify each digital signature's revocation status using Aspose.Pdf.", + "batch-sign-pdfs-with-document-type-certificates": { + "title": "Batch Sign Pdfs With Document Type Certificates", + "filename": "batch-sign-pdfs-with-document-type-certificates.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "certified-pdf-signature-allow-add-pages": { + "title": "Create a Certified PDF Signature Allowing Page Additions", + "filename": "certified-pdf-signature-allow-add-pages.cs", + "description": "Demonstrates how to add a certification (MDP) signature to a PDF using Aspose.Pdf so that new pages can be appended after signing.", "tags": [ - "signature", - "ocsp", - "validation", "pdf", - "aspnet" + "signature", + "certification", + "aspose", + "add-pages" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.ValidationOptions", - "Aspose.Pdf.ValidationMethod", - "Aspose.Pdf.ValidationMode", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Security.Signature", - "Aspose.Pdf.Security.ValidationResult" + "Aspose.Pdf.Forms.PKCS1", + "Aspose.Pdf.Forms.SignatureField.Sign", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "validate-pdf-signature-crl": { - "title": "Validate PDF Signature Using CRL Revocation Checking", - "filename": "validate-pdf-signature-crl.cs", - "description": "Shows how to load a signed PDF with Aspose.Pdf, set ValidationOptions to use CRL distribution points, and verify each signature field's revocation status.", + "certify-pdf-allow-annotations": { + "title": "Certify Pdf Allow Annotations", + "filename": "certify-pdf-allow-annotations.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "custom-security-handler-logging-pdf-access": { + "title": "Custom Security Handler for Logging PDF Access Attempts", + "filename": "custom-security-handler-logging-pdf-access.cs", + "description": "Demonstrates how to implement a custom ICustomSecurityHandler that logs password checks and encryption steps, then encrypts and opens a PDF using this handler.", "tags": [ "pdf", - "signature", - "crl", - "validation", - "revocation" + "encryption", + "custom-security", + "logging", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Security.Signature", - "Aspose.Pdf.Security.ValidationOptions", - "Aspose.Pdf.Security.ValidationResult", - "Aspose.Pdf.Forms.Field" + "Aspose.Pdf.Security.ICustomSecurityHandler", + "Aspose.Pdf.Security.Permissions", + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "extract-pdf-signature-signing-time-utc": { - "title": "Extract PDF Signature Signing Time and Convert to UTC", - "filename": "extract-pdf-signature-signing-time-utc.cs", - "description": "Loads a signed PDF, locates signature fields, reads the stored signing date, and converts it to UTC format.", + "custom-security-handler-logging": { + "title": "Custom Security Handler Logging", + "filename": "custom-security-handler-logging.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "custom-security-handler-restrict-copy-paste": { + "title": "Custom Security Handler Restrict Copy Paste", + "filename": "custom-security-handler-restrict-copy-paste.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "custom-security-handler-warning-overlay": { + "title": "Custom Security Handler with Warning Overlay", + "filename": "custom-security-handler-warning-overlay.cs", + "description": "Shows how to attach a custom ICustomSecurityHandler to a PDF to disable copy‑paste permissions and add a visible warning annotation on each page using Aspose.Pdf.", "tags": [ - "pdf", - "signature", - "signing-time", - "utc", - "aspose-pdf" + "custom-security", + "encryption", + "annotation", + "permissions", + "pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.Signature" + "Aspose.Pdf.Permissions", + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Page.Annotations.Add", + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "extract-certificate-chain-from-pdf-signature": { - "title": "Extract Certificate Chain from PDF Signature and Save as DER Files", - "filename": "extract-certificate-chain-from-pdf-signature.cs", - "description": "Loads a signed PDF, extracts the X509 certificate from each signature field, builds its certificate chain, and writes each certificate in DER format to disk.", + "decrypt-pdf-extract-embedded-images": { + "title": "Decrypt PDF and Extract Embedded Images", + "filename": "decrypt-pdf-extract-embedded-images.cs", + "description": "Shows how to open an encrypted PDF with a user password, remove its encryption, and extract all embedded images to PNG files.", "tags": [ "pdf", - "signature", - "certificate", - "der", - "extraction" + "decryption", + "image-extraction", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.SignatureField.ExtractCertificateObject", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Forms.FormField" + "Aspose.Pdf.Document.Decrypt()", + "Aspose.Pdf.Document.Save()", + "Aspose.Pdf.Page", + "Aspose.Pdf.XImage.Save()", + "Aspose.Pdf.Page.Resources.Images" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "sign-pdf-with-reason-contact-location": { - "title": "Sign PDF with Reason, Contact Info, and Location", - "filename": "sign-pdf-with-reason-contact-location.cs", - "description": "Demonstrates how to add a digital signature field to a PDF and sign it using a PKCS#7 certificate while populating the Reason, ContactInfo, and Location properties.", + "decrypt-pdf-extract-images-reencrypt": { + "title": "Decrypt PDF, Extract Images, and Re‑encrypt with New Owner Password", + "filename": "decrypt-pdf-extract-images-reencrypt.cs", + "description": "The example opens an encrypted PDF using a known password, decrypts it, extracts all embedded images to a folder, then re‑encrypts the PDF with a new owner password and saves the result.", "tags": [ - "pdf-signature", - "digital-signature", - "pkcs7", - "certificate", - "aspose-pdf" + "pdf-decryption", + "image-extraction", + "pdf-encryption", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.PKCS7", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Page.Annotations.Add", - "Aspose.Pdf.Forms.SignatureField.Sign", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Decrypt", + "Aspose.Pdf.Page", + "Aspose.Pdf.XImage.Save", + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Permissions", + "Aspose.Pdf.CryptoAlgorithm" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "sign-pdf-with-custom-image-appearance": { - "title": "Sign PDF with Custom Image Appearance", - "filename": "sign-pdf-with-custom-image-appearance.cs", - "description": "Demonstrates how to add a visible digital signature to a PDF using a custom PNG image as the signature appearance and a PFX certificate.", - "tags": [ - "pdf-signature", - "visible-appearance", - "custom-image", - "aspose-pdf", - "pfx" + "decrypt-pdf-resign-multiple-certificates": { + "title": "Decrypt Pdf Resign Multiple Certificates", + "filename": "decrypt-pdf-resign-multiple-certificates.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "decrypt-pdf-sign-fields-multiple-certs": { + "title": "Decrypt PDF and Sign Each Signature Field with Different Certificates", + "filename": "decrypt-pdf-sign-fields-multiple-certs.cs", + "description": "The example opens an encrypted PDF, removes its protection, locates all signature fields, and signs each field using a different PFX certificate, cycling through a list of certificates.", + "tags": [ + "pdf-decryption", + "digital-signature", + "certificate", + "form-fields", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Decrypt", "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.PKCS1", + "Aspose.Pdf.Forms.PKCS7", "Aspose.Pdf.Forms.SignatureField.Sign", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "certified-pdf-signature-allow-add-pages": { - "title": "Create a Certified PDF Signature Allowing Page Additions", - "filename": "certified-pdf-signature-allow-add-pages.cs", - "description": "Demonstrates how to add a certification (MDP) signature to a PDF using Aspose.Pdf so that new pages can be appended after signing.", + "decrypt-pdf-update-metadata": { + "title": "Decrypt PDF and Update Metadata with Aspose.Pdf", + "filename": "decrypt-pdf-update-metadata.cs", + "description": "Demonstrates how to open an encrypted PDF using the owner password, remove its encryption, modify document metadata, and save the result.", "tags": [ "pdf", - "signature", - "certification", + "decryption", + "metadata", "aspose", - "add-pages" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.PKCS1", - "Aspose.Pdf.Forms.SignatureField.Sign", + "Aspose.Pdf.Document.Decrypt", + "Aspose.Pdf.Document.Info", + "Aspose.Pdf.DocumentInfo", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "sign-pdf-lock-specific-form-fields": { - "title": "Sign PDF and Lock Specific Form Fields", - "filename": "sign-pdf-lock-specific-form-fields.cs", - "description": "Demonstrates loading a PDF, adding or using a signature field, applying a PKCS#7 digital signature, and setting selected form fields to read‑only after signing.", + "decrypt-pdf-using-certificate-token": { + "title": "Decrypt Pdf Using Certificate Token", + "filename": "decrypt-pdf-using-certificate-token.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "decrypt-pdf-with-certificate-token": { + "title": "Decrypt PDF Encrypted with Certificate Using Hardware Token", + "filename": "decrypt-pdf-with-certificate-token.cs", + "description": "Shows how to open a PDF encrypted with a public certificate, retrieve the private key from a hardware token, decrypt the document, and save the unencrypted version using Aspose.Pdf.", "tags": [ - "pdf-signature", - "form-fields", - "read-only", - "aspose-pdf", - "csharp" + "pdf", + "decryption", + "certificate", + "hardware-token", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.PKCS7", - "Aspose.Pdf.Forms.SignatureField.Sign", - "Aspose.Pdf.Forms.Form.SignaturesAppendOnly" + "Aspose.Pdf.Security.CertificateEncryptionOptions", + "Aspose.Pdf.Document.Decrypt", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "sign-pdf-and-lock-readonly": { - "title": "Sign PDF and Enforce Read‑Only Mode", - "filename": "sign-pdf-and-lock-readonly.cs", - "description": "Demonstrates how to add a digital signature to a PDF using Aspose.Pdf, then set the document to append‑only mode so the file becomes read‑only after signing.", + "decrypt-pdf-with-owner-password": { + "title": "Decrypt PDF with Owner Password using Aspose.Pdf", + "filename": "decrypt-pdf-with-owner-password.cs", + "description": "Demonstrates opening an encrypted PDF with the owner password, removing its protection, and saving the decrypted document.", "tags": [ - "pdf-signature", - "read-only", - "append-only", - "Aspose.Pdf", - "C#" + "pdf", + "decryption", + "owner-password", + "aspose.pdf", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Decrypt", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.InvalidPasswordException" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:22:32Z", + "status": "verified" + }, + "download-sign-pdf-azure-blob": { + "title": "Download PDF, Apply PKCS7 Signature, and Upload to Azure Blob", + "filename": "download-sign-pdf-azure-blob.cs", + "description": "The example downloads a PDF from a URL, creates a signature field, signs it with a PKCS7 certificate using Aspose.Pdf, and uploads the signed document to Azure Blob Storage.", + "tags": [ + "pdf", + "digital-signature", + "azure-blob", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Signatures.PKCS1", - "Aspose.Pdf.Document.Form.SignaturesAppendOnly" + "Aspose.Pdf.Forms.PKCS7" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", @@ -592,16 +674,16 @@ "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "encrypt-pdf-rc4-128-bit-restrict-editing": { - "title": "Encrypt PDF with RC4 128-bit and Restrict Editing", - "filename": "encrypt-pdf-rc4-128-bit-restrict-editing.cs", - "description": "The example loads a PDF, applies 128‑bit RC4 encryption with user and owner passwords, restricts permissions to printing only, and saves the encrypted document.", + "encrypt-pdf-allow-copy-block-print": { + "title": "Encrypt PDF and Allow Copying While Blocking Printing", + "filename": "encrypt-pdf-allow-copy-block-print.cs", + "description": "Shows how to encrypt a PDF with Aspose.Pdf, set user and owner passwords, permit content extraction (copy) and disable printing, then save the protected file.", "tags": [ - "pdf", "encryption", - "rc4", "permissions", - "aspose-pdf" + "copy", + "printing", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", @@ -614,61 +696,70 @@ "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "decrypt-pdf-extract-embedded-images": { - "title": "Decrypt PDF and Extract Embedded Images", - "filename": "decrypt-pdf-extract-embedded-images.cs", - "description": "Shows how to open an encrypted PDF with a user password, remove its encryption, and extract all embedded images to PNG files.", + "encrypt-pdf-certificate-sign": { + "title": "Encrypt Pdf Certificate Sign", + "filename": "encrypt-pdf-certificate-sign.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "encrypt-pdf-disable-content-extraction": { + "title": "Encrypt PDF and Disable Content Extraction", + "filename": "encrypt-pdf-disable-content-extraction.cs", + "description": "Loads a PDF, encrypts it with AES‑256 using user and owner passwords, sets permissions to none to block all content extraction, and saves the encrypted file.", "tags": [ + "encryption", + "permissions", "pdf", - "decryption", - "image-extraction", - "aspose-pdf", - "csharp" + "aes-256", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Decrypt()", - "Aspose.Pdf.Document.Save()", - "Aspose.Pdf.Page", - "Aspose.Pdf.XImage.Save()", - "Aspose.Pdf.Page.Resources.Images" + "Aspose.Pdf.Permissions", + "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "decrypt-pdf-update-metadata": { - "title": "Decrypt PDF and Update Metadata with Aspose.Pdf", - "filename": "decrypt-pdf-update-metadata.cs", - "description": "Demonstrates how to open an encrypted PDF using the owner password, remove its encryption, modify document metadata, and save the result.", + "encrypt-pdf-disable-printing": { + "title": "Encrypt PDF with Password and Disable Printing", + "filename": "encrypt-pdf-disable-printing.cs", + "description": "Demonstrates how to encrypt a PDF using AES‑256 with user and owner passwords while restricting permissions to prevent printing.", "tags": [ "pdf", - "decryption", - "metadata", - "aspose", + "encryption", + "permissions", + "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Decrypt", - "Aspose.Pdf.Document.Info", - "Aspose.Pdf.DocumentInfo", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Permissions", + "Aspose.Pdf.CryptoAlgorithm" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "batch-encrypt-pdfs-by-filename": { - "title": "Batch Encrypt PDFs Using File Name Passwords", - "filename": "batch-encrypt-pdfs-by-filename.cs", - "description": "Iterates through all PDF files in a folder, derives a password from each file name, encrypts each document with AES‑256 using Aspose.Pdf, and saves the encrypted copies to an output directory.", + "encrypt-pdf-owner-password-high-res-printing": { + "title": "Encrypt PDF with Owner Password and Allow High‑Resolution Printing", + "filename": "encrypt-pdf-owner-password-high-res-printing.cs", + "description": "The example loads a PDF, applies AES‑256 encryption with an owner password, enables high‑resolution printing while disabling copying, and saves the protected document.", "tags": [ - "pdf-encryption", - "batch", - "aspose-pdf", - "csharp", - "password-protection" + "encryption", + "owner-password", + "printing", + "copy-protection", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", @@ -677,63 +768,126 @@ "Aspose.Pdf.Document.Encrypt", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "batch-decrypt-pdfs-lookup-table": { - "title": "Batch Decrypt Password-Protected PDFs Using a Lookup Table", - "filename": "batch-decrypt-pdfs-lookup-table.cs", - "description": "Demonstrates iterating over a folder of encrypted PDFs, trying multiple possible passwords from a dictionary, decrypting each document with Aspose.Pdf, and saving the unprotected version.", + "encrypt-pdf-print-only-permission": { + "title": "Encrypt PDF with Print‑Only Permission", + "filename": "encrypt-pdf-print-only-permission.cs", + "description": "Shows how to encrypt a PDF using Aspose.Pdf and restrict its permissions so that only printing is allowed.", "tags": [ - "pdf", - "decryption", - "batch", - "password", - "aspose" + "pdf encryption", + "print permission", + "Aspose.Pdf", + "C#", + "security" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document(string, string)", - "Aspose.Pdf.Document.Decrypt", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.InvalidPasswordException" + "Aspose.Pdf.Permissions", + "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "batch-sign-pdfs-title-based-certificate-selection": { - "title": "Batch Sign PDFs with Title-Based Certificate Selection", - "filename": "batch-sign-pdfs-title-based-certificate-selection.cs", - "description": "Loads PDFs from a folder, selects a certificate based on the document title, creates a PKCS7 signature, adds or uses a signature field, signs each document, and saves the signed files to an output folder.", + "encrypt-pdf-rc4-128-bit-restrict-editing": { + "title": "Encrypt PDF with RC4 128-bit and Restrict Editing", + "filename": "encrypt-pdf-rc4-128-bit-restrict-editing.cs", + "description": "The example loads a PDF, applies 128‑bit RC4 encryption with user and owner passwords, restricts permissions to printing only, and saves the encrypted document.", "tags": [ - "pdf-signing", - "batch", - "certificate", - "aspose-pdf", - "pkcs7" + "pdf", + "encryption", + "rc4", + "permissions", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.DocumentInfo", - "Aspose.Pdf.Forms.PKCS7", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Form" + "Aspose.Pdf.Permissions", + "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "batch-encrypt-and-sign-pdfs": { - "title": "Batch Encrypt and Digitally Sign PDFs", - "filename": "batch-encrypt-and-sign-pdfs.cs", - "description": "Demonstrates how to encrypt multiple PDF files with AES‑256 and then apply a PKCS#7 digital signature to each encrypted document using Aspose.Pdf.", + "encrypt-pdf-rc4-128-restrict-editing": { + "title": "Encrypt Pdf Rc4 128 Restrict Editing", + "filename": "encrypt-pdf-rc4-128-restrict-editing.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "encrypt-pdf-remove-user-password": { + "title": "Encrypt Pdf Remove User Password", + "filename": "encrypt-pdf-remove-user-password.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "encrypt-pdf-view-only-edit-password": { + "title": "Encrypt PDF for View-Only with Edit Password", + "filename": "encrypt-pdf-view-only-edit-password.cs", + "description": "Shows how to encrypt a PDF so it can be opened and viewed without a password while requiring an owner password for any editing operations, using specific permissions.", + "tags": [ + "pdf-encryption", + "view-only", + "owner-password", + "Aspose.Pdf", + "permissions" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Permissions", + "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:22:32Z", + "status": "verified" + }, + "encrypt-pdf-with-password-aes256": { + "title": "Encrypt PDF with Password (AES‑256)", + "filename": "encrypt-pdf-with-password-aes256.cs", + "description": "Loads a PDF from a byte array, applies AES‑256 encryption with a user password and optional owner password, and returns the encrypted PDF bytes.", + "tags": [ + "pdf", + "encryption", + "password", + "permissions", + "aes256" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Permissions", + "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:22:32Z", + "status": "verified" + }, + "encrypt-pdf-with-password": { + "title": "Encrypt PDF with Password and Permissions", + "filename": "encrypt-pdf-with-password.cs", + "description": "Shows how to load a PDF, apply AES‑256 encryption with user and owner passwords, set specific permissions, and save the protected document.", "tags": [ "pdf encryption", - "digital signature", - "batch processing", + "password protection", + "permissions", "aes-256", "aspose-pdf" ], @@ -741,587 +895,723 @@ "Aspose.Pdf.Document", "Aspose.Pdf.Permissions", "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.PKCS7" + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "extract-signature-field-names-and-page-numbers": { - "title": "Extract Signature Field Names and Page Numbers from PDF", - "filename": "extract-signature-field-names-and-page-numbers.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, iterate over its form fields, identify signature fields, and retrieve each field's name and the page number it appears on.", + "encrypt-pdf-with-print-copy-permissions": { + "title": "Encrypt PDF with Printing and Copying Permissions", + "filename": "encrypt-pdf-with-print-copy-permissions.cs", + "description": "Shows how to encrypt a PDF using Aspose.Pdf, set user and owner passwords, and enable printing and content extraction permissions.", "tags": [ - "pdf", - "signature", - "form", - "fields", - "extraction" + "pdf-encryption", + "permissions", + "printing", + "copying", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.SignatureField.FullName", - "Aspose.Pdf.Forms.SignatureField.PageIndex" + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Permissions", + "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "retrieve-reason-location-from-pdf-signatures": { - "title": "Retrieve Reason and Location from PDF Signatures", - "filename": "retrieve-reason-location-from-pdf-signatures.cs", - "description": "Demonstrates loading a signed PDF with Aspose.Pdf, iterating over signature fields, and extracting the Reason and Location metadata from each digital signature.", + "encrypt-pdf-with-smart-card-certificate": { + "title": "Encrypt PDF with Smart Card Certificate", + "filename": "encrypt-pdf-with-smart-card-certificate.cs", + "description": "Shows how to retrieve a certificate from a smart card or HSM and encrypt a PDF so that only the certificate holder can open it, using Aspose.Pdf.", "tags": [ - "pdf", - "signature", - "metadata", + "pdf-encryption", + "smart-card", + "certificate", "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Signatures.PKCS7", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Document.Form" + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Permissions", + "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "sign-pdf-add-custom-xmp-metadata": { - "title": "Sign PDF and Embed Custom XMP Metadata", - "filename": "sign-pdf-add-custom-xmp-metadata.cs", - "description": "Demonstrates how to create a visible signature field, apply a PKCS#1 digital signature, and add custom XMP metadata describing the signing process using Aspose.Pdf.", + "encrypt-pdf-with-user-owner-passwords-remove-user": { + "title": "Encrypt PDF with User and Owner Passwords and Remove User Password", + "filename": "encrypt-pdf-with-user-owner-passwords-remove-user.cs", + "description": "Demonstrates how to encrypt a PDF using both user and owner passwords, then open it with the owner password to remove the user password while keeping the document encrypted.", "tags": [ - "pdf signing", - "xmp metadata", - "digital signature", - "aspnet", - "custom metadata" + "pdf-encryption", + "user-password", + "owner-password", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.PKCS1", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Document.Metadata", - "Aspose.Pdf.XmpMetadata.RegisterNamespaceUri" + "Aspose.Pdf.Permissions", + "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Document.ChangePasswords" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "sign-pdf-with-pkcs7-and-custom-xml": { - "title": "Sign PDF with PKCS#7 and embed custom XML signature", - "filename": "sign-pdf-with-pkcs7-and-custom-xml.cs", - "description": "The example loads a PDF, creates a signature field, applies a PKCS#7 digital signature using a PFX certificate, demonstrates where to embed custom XML signature data, and saves the signed document.", + "encrypt-pdf-with-user-password": { + "title": "Encrypt Pdf With User Password", + "filename": "encrypt-pdf-with-user-password.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "encrypted-pdf-with-attachment-and-signature": { + "title": "Encrypted Pdf With Attachment And Signature", + "filename": "encrypted-pdf-with-attachment-and-signature.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-certificate-chain-from-pdf-signature": { + "title": "Extract Certificate Chain from PDF Signature and Save as DER Files", + "filename": "extract-certificate-chain-from-pdf-signature.cs", + "description": "Loads a signed PDF, extracts the X509 certificate from each signature field, builds its certificate chain, and writes each certificate in DER format to disk.", "tags": [ - "pdf-signature", - "pkcs7", - "custom-xml", - "aspose-pdf", - "digital-signature" + "pdf", + "signature", + "certificate", + "der", + "extraction" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.PKCS7", - "Aspose.Pdf.Document.Form.Add", - "Aspose.Pdf.Forms.SignatureField.Sign", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.SignatureField.ExtractCertificateObject", + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Forms.FormField" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "sign-pdf-and-lock-signature-field": { - "title": "Sign PDF and Lock Signature Field", - "filename": "sign-pdf-and-lock-signature-field.cs", - "description": "Demonstrates how to add a digital signature to a PDF, make the signature field read‑only, and enable append‑only mode to prevent further modifications.", + "extract-certificate-chain-from-pdf-signatures": { + "title": "Extract Certificate Chain From Pdf Signatures", + "filename": "extract-certificate-chain-from-pdf-signatures.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-digest-algorithm-from-pdf-signatures": { + "title": "Extract Digest Algorithm from PDF Signatures", + "filename": "extract-digest-algorithm-from-pdf-signatures.cs", + "description": "Loads a PDF, iterates over its form fields to find signature fields, and logs the digest hash algorithm used in each digital signature for compliance reporting.", "tags": [ - "pdf-signature", - "signature-field", - "read-only", - "append-only", - "aspose-pdf" + "pdf", + "signature", + "digest", + "aspose", + "compliance" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.Field", "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.PKCS1", - "Aspose.Pdf.Rectangle", - "SignatureField.Sign", - "SignatureField.ReadOnly", - "Document.Form.SignaturesAppendOnly", - "Document.Save" + "Aspose.Pdf.Forms.Signature.GetSignatureAlgorithmInfo", + "Aspose.Pdf.Forms.SignatureAlgorithmInfo.DigestHashAlgorithm" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "sign-pdf-with-incremental-updates": { - "title": "Sign PDF with Incremental Updates for Future Signatures", - "filename": "sign-pdf-with-incremental-updates.cs", - "description": "Demonstrates how to add a digital signature to a PDF using Aspose.Pdf while enabling incremental updates so additional signatures can be appended later.", + "extract-images-from-signed-pdf": { + "title": "Extract Images from a Signed PDF and Save as PNG", + "filename": "extract-images-from-signed-pdf.cs", + "description": "The example loads a signed PDF, extracts any signature field images, then iterates through each page to save all embedded images as PNG files.", "tags": [ - "pdf-signature", - "incremental-update", - "digital-signature", - "aspose-pdf", - "csharp" + "pdf", + "image-extraction", + "signature", + "aspose.pdf", + "png" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.PKCS7", - "Aspose.Pdf.Rectangle", - "Document.Form.SignaturesAppendOnly", - "Document.Form.Add", - "SignatureField.Sign", - "Document.Save" + "Aspose.Pdf.Forms.SignatureField.ExtractImage", + "Aspose.Pdf.Page", + "Aspose.Pdf.XImage", + "Aspose.Pdf.XImage.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "sign-pdf-prevent-additional-signatures": { - "title": "Sign PDF and Prevent Additional Signatures", - "filename": "sign-pdf-prevent-additional-signatures.cs", - "description": "Demonstrates how to digitally sign a PDF with Aspose.Pdf, enable append‑only mode to block further signatures, and save the final document.", + "extract-images-from-signed-pdf__v2": { + "title": "Extract Images from Signed PDF into Page‑Specific Folders", + "filename": "extract-images-from-signed-pdf__v2.cs", + "description": "Demonstrates how to load a signed PDF with Aspose.Pdf, iterate through each page, extract all embedded images, and save them as PNG files in separate folders per page.", "tags": [ - "pdf-signature", - "digital-signature", - "append-only", - "security", - "aspnet" + "pdf", + "image-extraction", + "aspose", + "pages", + "signed-pdf" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.XImage", + "Aspose.Pdf.Page.Resources.Images", + "Aspose.Pdf.XImage.Save" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T08:22:32Z", + "status": "verified" + }, + "extract-pdf-signature-signing-time-utc": { + "title": "Extract PDF Signature Signing Time and Convert to UTC", + "filename": "extract-pdf-signature-signing-time-utc.cs", + "description": "Loads a signed PDF, locates signature fields, reads the stored signing date, and converts it to UTC format.", + "tags": [ + "pdf", + "signature", + "signing-time", + "utc", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Field", "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.PKCS1", - "Aspose.Pdf.Rectangle", - "Document.Form.SignaturesAppendOnly", - "SignatureField.Sign", - "Document.Save" + "Aspose.Pdf.Forms.Signature" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "encrypt-pdf-print-only-permission": { - "title": "Encrypt PDF with Print‑Only Permission", - "filename": "encrypt-pdf-print-only-permission.cs", - "description": "Shows how to encrypt a PDF using Aspose.Pdf and restrict its permissions so that only printing is allowed.", + "extract-signature-certificate-chain": { + "title": "Extract Signature Certificate Chain and Verify Expiration", + "filename": "extract-signature-certificate-chain.cs", + "description": "Loads a signed PDF, extracts the X509 certificate from each signature field, builds its certificate chain, and checks the expiration dates of the certificates.", "tags": [ - "pdf encryption", - "print permission", - "Aspose.Pdf", - "C#", - "security" + "pdf", + "signature", + "certificate", + "validation", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Forms.SignatureField.ExtractCertificateObject" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "encrypt-pdf-allow-copy-block-print": { - "title": "Encrypt PDF and Allow Copying While Blocking Printing", - "filename": "encrypt-pdf-allow-copy-block-print.cs", - "description": "Shows how to encrypt a PDF with Aspose.Pdf, set user and owner passwords, permit content extraction (copy) and disable printing, then save the protected file.", + "extract-signature-field-metadata": { + "title": "Extract Signature Field Metadata from PDF", + "filename": "extract-signature-field-metadata.cs", + "description": "Loads a PDF, checks for form fields, and iterates over all signature fields to output their properties, signature details, and extracts any embedded certificate or image.", "tags": [ - "encryption", - "permissions", - "copy", - "printing", - "Aspose.Pdf" + "pdf", + "signature", + "form", + "metadata", + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Forms.Signature", + "Aspose.Pdf.Forms.SignatureField.ExtractCertificate", + "Aspose.Pdf.Forms.SignatureField.ExtractImage" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "encrypt-pdf-with-print-copy-permissions": { - "title": "Encrypt PDF with Printing and Copying Permissions", - "filename": "encrypt-pdf-with-print-copy-permissions.cs", - "description": "Shows how to encrypt a PDF using Aspose.Pdf, set user and owner passwords, and enable printing and content extraction permissions.", + "extract-signature-field-names-and-page-numbers": { + "title": "Extract Signature Field Names and Page Numbers from PDF", + "filename": "extract-signature-field-names-and-page-numbers.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, iterate over its form fields, identify signature fields, and retrieve each field's name and the page number it appears on.", "tags": [ - "pdf-encryption", - "permissions", - "printing", - "copying", - "aspose-pdf" + "pdf", + "signature", + "form", + "fields", + "extraction" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Forms.SignatureField.FullName", + "Aspose.Pdf.Forms.SignatureField.PageIndex" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "encrypt-pdf-disable-content-extraction": { - "title": "Encrypt PDF and Disable Content Extraction", - "filename": "encrypt-pdf-disable-content-extraction.cs", - "description": "Loads a PDF, encrypts it with AES‑256 using user and owner passwords, sets permissions to none to block all content extraction, and saves the encrypted file.", + "extract-signature-image-to-png": { + "title": "Extract Signature Image from PDF and Save as PNG", + "filename": "extract-signature-image-to-png.cs", + "description": "Demonstrates how to locate a signature field in a PDF, extract its appearance image, and write the image to a PNG file using Aspose.Pdf.", "tags": [ - "encryption", - "permissions", "pdf", - "aes-256", - "aspose-pdf" + "signature", + "image", + "extraction", + "png" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.FormField", + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Forms.SignatureField.ExtractImage" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "decrypt-pdf-extract-images-reencrypt": { - "title": "Decrypt PDF, Extract Images, and Re‑encrypt with New Owner Password", - "filename": "decrypt-pdf-extract-images-reencrypt.cs", - "description": "The example opens an encrypted PDF using a known password, decrypts it, extracts all embedded images to a folder, then re‑encrypts the PDF with a new owner password and saves the result.", + "extract-signature-images": { + "title": "Extract Signature Field Images from PDF", + "filename": "extract-signature-images.cs", + "description": "Shows how to loop through signature fields in a PDF document and save each field's appearance as a JPEG image.", "tags": [ - "pdf-decryption", - "image-extraction", - "pdf-encryption", - "aspose-pdf", - "csharp" + "pdf", + "signature", + "image", + "extraction", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Decrypt", - "Aspose.Pdf.Page", - "Aspose.Pdf.XImage.Save", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm" + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Forms.SignatureField.ExtractImage", + "Aspose.Pdf.Forms.SignatureField.FullName", + "Aspose.Pdf.Forms.SignatureField.PageIndex" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "download-sign-pdf-azure-blob": { - "title": "Download PDF, Apply PKCS7 Signature, and Upload to Azure Blob", - "filename": "download-sign-pdf-azure-blob.cs", - "description": "The example downloads a PDF from a URL, creates a signature field, signs it with a PKCS7 certificate using Aspose.Pdf, and uploads the signed document to Azure Blob Storage.", + "extract-signature-signing-time-utc": { + "title": "Extract Signature Signing Time Utc", + "filename": "extract-signature-signing-time-utc.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "lock-form-fields-after-signing": { + "title": "Lock Form Fields After Signing", + "filename": "lock-form-fields-after-signing.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "pdf-certification-signature-no-modifications": { + "title": "Pdf Certification Signature No Modifications", + "filename": "pdf-certification-signature-no-modifications.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "remove-digital-signature-from-pdf": { + "title": "Remove Digital Signature from PDF", + "filename": "remove-digital-signature-from-pdf.cs", + "description": "Shows how to programmatically strip a digital signature from a PDF when privileges allow, using signature sanitization and explicit removal of signature field annotations.", "tags": [ "pdf", - "digital-signature", - "azure-blob", + "signature", + "remove", "aspose-pdf", - "csharp" + "sanitization" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Decrypt", + "Aspose.Pdf.Document.EnableSignatureSanitization", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.Annotation", "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.PKCS7" + "Aspose.Pdf.Annotations.AnnotationCollection.Delete", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "encrypt-pdf-with-password-aes256": { - "title": "Encrypt PDF with Password (AES‑256)", - "filename": "encrypt-pdf-with-password-aes256.cs", - "description": "Loads a PDF from a byte array, applies AES‑256 encryption with a user password and optional owner password, and returns the encrypted PDF bytes.", + "restrict-copy-paste-in-pdf": { + "title": "Restrict Copy-Paste in PDF with Encryption", + "filename": "restrict-copy-paste-in-pdf.cs", + "description": "Demonstrates how to encrypt a PDF using Aspose.Pdf, set permissions to allow printing and modification while disabling content extraction (copy‑paste).", "tags": [ - "pdf", - "encryption", - "password", + "pdf encryption", "permissions", - "aes256" + "copy-paste", + "Aspose.Pdf", + "C#" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm", "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.CryptoAlgorithm", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "sign-pdf-with-windows-certificate": { - "title": "Sign PDF with Windows Store Certificate using Aspose.Pdf", - "filename": "sign-pdf-with-windows-certificate.cs", - "description": "Shows how to retrieve a certificate from the Windows personal store by thumbprint and apply it to a PDF signature field using Aspose.Pdf.", + "retrieve-reason-location-from-pdf-signatures": { + "title": "Retrieve Reason and Location from PDF Signatures", + "filename": "retrieve-reason-location-from-pdf-signatures.cs", + "description": "Demonstrates loading a signed PDF with Aspose.Pdf, iterating over signature fields, and extracting the Reason and Location metadata from each digital signature.", "tags": [ - "pdf signing", - "certificate", - "windows store", - "aspose.pdf", - "c#" + "pdf", + "signature", + "metadata", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.ExternalSignature", - "Aspose.Pdf.Forms.Form.Add" + "Aspose.Pdf.Signatures.PKCS7", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Document.Form" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "sign-pdf-with-certificate": { - "title": "Sign PDF with a Certificate using Aspose.Pdf", - "filename": "sign-pdf-with-certificate.cs", - "description": "Demonstrates loading a PFX certificate, creating a signature field on a PDF, and applying a digital signature with Aspose.Pdf.", + "retrieve-signature-reason-location": { + "title": "Retrieve Signature Reason Location", + "filename": "retrieve-signature-reason-location.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-pdf-privileges-disable-extraction-form-filling": { + "title": "Set Pdf Privileges Disable Extraction Form Filling", + "filename": "set-pdf-privileges-disable-extraction-form-filling.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "sign-pdf-add-custom-xmp-metadata": { + "title": "Sign PDF and Embed Custom XMP Metadata", + "filename": "sign-pdf-add-custom-xmp-metadata.cs", + "description": "Demonstrates how to create a visible signature field, apply a PKCS#1 digital signature, and add custom XMP metadata describing the signing process using Aspose.Pdf.", "tags": [ - "pdf", - "digital-signature", - "certificate", - "aspose", - "csharp" + "pdf signing", + "xmp metadata", + "digital signature", + "aspnet", + "custom metadata" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.SignatureField", "Aspose.Pdf.Forms.PKCS1", - "Aspose.Pdf.Forms.SignatureField.Sign", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Form.Add" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Document.Metadata", + "Aspose.Pdf.XmpMetadata.RegisterNamespaceUri" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "sign-pdf-hardware-token-pkcs11": { - "title": "Sign PDF using a hardware token (PKCS#11)", - "filename": "sign-pdf-hardware-token-pkcs11.cs", - "description": "Demonstrates how to add a signature field to a PDF and sign it with a certificate stored on a hardware token via the PKCS#11 interface using Aspose.Pdf.", + "sign-pdf-and-flatten-form-fields": { + "title": "Sign PDF and Flatten Form Fields", + "filename": "sign-pdf-and-flatten-form-fields.cs", + "description": "Demonstrates loading a PDF, adding a digital signature field, applying a PKCS#7 signature, flattening all form fields to make them non‑editable, and saving the signed document.", "tags": [ "pdf-signature", - "hardware-token", - "pkcs11", - "aspose-pdf", - "csharp" + "flatten", + "digital-signature", + "form-fields", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.ExternalSignature", - "SignatureField.Sign", - "Document.Save" + "Aspose.Pdf.Forms.PKCS7", + "Aspose.Pdf.Forms.Signature", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Document.Flatten", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "validate-pdf-signature": { - "title": "Validate PDF Digital Signature with Aspose.Pdf", - "filename": "validate-pdf-signature.cs", - "description": "Loads a PDF, locates signature fields, and validates each digital signature using Aspose.Pdf's validation options and strict mode, reporting the validation status.", + "sign-pdf-and-lock-readonly": { + "title": "Sign PDF and Enforce Read‑Only Mode", + "filename": "sign-pdf-and-lock-readonly.cs", + "description": "Demonstrates how to add a digital signature to a PDF using Aspose.Pdf, then set the document to append‑only mode so the file becomes read‑only after signing.", "tags": [ - "pdf", - "digital-signature", - "validation", - "aspose-pdf", - "csharp" + "pdf-signature", + "read-only", + "append-only", + "Aspose.Pdf", + "C#" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Security.ValidationOptions", - "Aspose.Pdf.Security.ValidationMode", - "Aspose.Pdf.Security.Signature.Verify", - "Aspose.Pdf.Security.ValidationResult" + "Aspose.Pdf.Signatures.PKCS1", + "Aspose.Pdf.Document.Form.SignaturesAppendOnly" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "validate-pdf-signature-timestamp": { - "title": "Validate PDF Signature and Check Timestamp Against Certificate Validity", - "filename": "validate-pdf-signature-timestamp.cs", - "description": "Shows how to load a signed PDF, locate the first signature field, verify the signature using strict validation options, extract the signing timestamp, and (if the certificate is accessible) compare the timestamp to the certificate's validity period.", + "sign-pdf-and-lock-signature-field": { + "title": "Sign PDF and Lock Signature Field", + "filename": "sign-pdf-and-lock-signature-field.cs", + "description": "Demonstrates how to add a digital signature to a PDF, make the signature field read‑only, and enable append‑only mode to prevent further modifications.", "tags": [ - "pdf", - "signature", - "validation", - "timestamp", - "certificate" + "pdf-signature", + "signature-field", + "read-only", + "append-only", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Security.Signature", - "Aspose.Pdf.Security.ValidationOptions", - "Aspose.Pdf.Security.ValidationMode", - "Aspose.Pdf.Security.ValidationResult" + "Aspose.Pdf.Forms.PKCS1", + "Aspose.Pdf.Rectangle", + "SignatureField.Sign", + "SignatureField.ReadOnly", + "Document.Form.SignaturesAppendOnly", + "Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "extract-signature-image-to-png": { - "title": "Extract Signature Image from PDF and Save as PNG", - "filename": "extract-signature-image-to-png.cs", - "description": "Demonstrates how to locate a signature field in a PDF, extract its appearance image, and write the image to a PNG file using Aspose.Pdf.", - "tags": [ - "pdf", - "signature", - "image", - "extraction", - "png" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.FormField", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.SignatureField.ExtractImage" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T08:22:32Z", + "sign-pdf-append-only": { + "title": "Sign Pdf Append Only", + "filename": "sign-pdf-append-only.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "extract-signature-images": { - "title": "Extract Signature Field Images from PDF", - "filename": "extract-signature-images.cs", - "description": "Shows how to loop through signature fields in a PDF document and save each field's appearance as a JPEG image.", + "sign-pdf-embed-xfa-data": { + "title": "Sign Pdf Embed Xfa Data", + "filename": "sign-pdf-embed-xfa-data.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "sign-pdf-embed-xfa-form-data": { + "title": "Sign PDF and Embed Custom XFA Form Data", + "filename": "sign-pdf-embed-xfa-form-data.cs", + "description": "Demonstrates loading a PDF, assigning custom XFA XML to its form, creating a signature field, and applying a PKCS#7 digital signature using a certificate.", "tags": [ - "pdf", - "signature", - "image", - "extraction", - "aspose" + "pdf-signature", + "xfa", + "digital-signature", + "csharp", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.Form.AssignXfa", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.SignatureField.ExtractImage", - "Aspose.Pdf.Forms.SignatureField.FullName", - "Aspose.Pdf.Forms.SignatureField.PageIndex" + "Aspose.Pdf.PKCS7" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "extract-images-from-signed-pdf__v2": { - "title": "Extract Images from Signed PDF into Page‑Specific Folders", - "filename": "extract-images-from-signed-pdf__v2.cs", - "description": "Demonstrates how to load a signed PDF with Aspose.Pdf, iterate through each page, extract all embedded images, and save them as PNG files in separate folders per page.", + "sign-pdf-enforce-finality": { + "title": "Sign Pdf Enforce Finality", + "filename": "sign-pdf-enforce-finality.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "sign-pdf-flatten-form-fields": { + "title": "Sign Pdf Flatten Form Fields", + "filename": "sign-pdf-flatten-form-fields.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "sign-pdf-flatten-signature": { + "title": "Sign PDF and Flatten Signature Appearance", + "filename": "sign-pdf-flatten-signature.cs", + "description": "Demonstrates how to add a digital signature to a PDF using a PKCS#7 certificate, then flatten the document so the signature appearance becomes a static part of the page.", "tags": [ - "pdf", - "image-extraction", - "aspose", - "pages", - "signed-pdf" + "pdf-signing", + "flatten", + "signature", + "pkcs7", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.XImage", - "Aspose.Pdf.Page.Resources.Images", - "Aspose.Pdf.XImage.Save" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Forms.PKCS7", + "Aspose.Pdf.Forms.SignatureField.Sign", + "Aspose.Pdf.Document.Flatten", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "extract-signature-certificate-chain": { - "title": "Extract Signature Certificate Chain and Verify Expiration", - "filename": "extract-signature-certificate-chain.cs", - "description": "Loads a signed PDF, extracts the X509 certificate from each signature field, builds its certificate chain, and checks the expiration dates of the certificates.", - "tags": [ - "pdf", - "signature", - "certificate", - "validation", - "aspose" + "sign-pdf-hardware-token-pkcs11": { + "title": "Sign PDF using a hardware token (PKCS#11)", + "filename": "sign-pdf-hardware-token-pkcs11.cs", + "description": "Demonstrates how to add a signature field to a PDF and sign it with a certificate stored on a hardware token via the PKCS#11 interface using Aspose.Pdf.", + "tags": [ + "pdf-signature", + "hardware-token", + "pkcs11", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.SignatureField.ExtractCertificateObject" + "Aspose.Pdf.Forms.ExternalSignature", + "SignatureField.Sign", + "Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "custom-security-handler-warning-overlay": { - "title": "Custom Security Handler with Warning Overlay", - "filename": "custom-security-handler-warning-overlay.cs", - "description": "Shows how to attach a custom ICustomSecurityHandler to a PDF to disable copy‑paste permissions and add a visible warning annotation on each page using Aspose.Pdf.", + "sign-pdf-lock-signature-field": { + "title": "Sign Pdf Lock Signature Field", + "filename": "sign-pdf-lock-signature-field.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "sign-pdf-lock-specific-form-fields": { + "title": "Sign PDF and Lock Specific Form Fields", + "filename": "sign-pdf-lock-specific-form-fields.cs", + "description": "Demonstrates loading a PDF, adding or using a signature field, applying a PKCS#7 digital signature, and setting selected form fields to read‑only after signing.", "tags": [ - "custom-security", - "encryption", - "annotation", - "permissions", - "pdf" + "pdf-signature", + "form-fields", + "read-only", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Page.Annotations.Add", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Forms.PKCS7", + "Aspose.Pdf.Forms.SignatureField.Sign", + "Aspose.Pdf.Forms.Form.SignaturesAppendOnly" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "sign-pdf-flatten-signature": { - "title": "Sign PDF and Flatten Signature Appearance", - "filename": "sign-pdf-flatten-signature.cs", - "description": "Demonstrates how to add a digital signature to a PDF using a PKCS#7 certificate, then flatten the document so the signature appearance becomes a static part of the page.", + "sign-pdf-prevent-additional-signatures": { + "title": "Sign PDF and Prevent Additional Signatures", + "filename": "sign-pdf-prevent-additional-signatures.cs", + "description": "Demonstrates how to digitally sign a PDF with Aspose.Pdf, enable append‑only mode to block further signatures, and save the final document.", "tags": [ - "pdf-signing", - "flatten", - "signature", - "pkcs7", - "aspose-pdf" + "pdf-signature", + "digital-signature", + "append-only", + "security", + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.PKCS7", - "Aspose.Pdf.Forms.SignatureField.Sign", - "Aspose.Pdf.Document.Flatten", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.PKCS1", + "Aspose.Pdf.Rectangle", + "Document.Form.SignaturesAppendOnly", + "SignatureField.Sign", + "Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, + "sign-pdf-remove-annotations-preserve-signature": { + "title": "Sign Pdf Remove Annotations Preserve Signature", + "filename": "sign-pdf-remove-annotations-preserve-signature.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "sign-pdf-remove-annotations": { "title": "Sign PDF and Remove Annotations While Preserving Signature", "filename": "sign-pdf-remove-annotations.cs", @@ -1347,66 +1637,92 @@ "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "encrypt-pdf-with-password": { - "title": "Encrypt PDF with Password and Permissions", - "filename": "encrypt-pdf-with-password.cs", - "description": "Shows how to load a PDF, apply AES‑256 encryption with user and owner passwords, set specific permissions, and save the protected document.", + "sign-pdf-with-4096-rsa-certificate": { + "title": "Sign PDF with 4096‑bit RSA Certificate", + "filename": "sign-pdf-with-4096-rsa-certificate.cs", + "description": "Demonstrates how to digitally sign a PDF using a 4096‑bit RSA private key stored in a PFX file with Aspose.Pdf, adding a visible signature field to the first page.", "tags": [ - "pdf encryption", - "password protection", - "permissions", - "aes-256", - "aspose-pdf" + "pdf-signature", + "rsa", + "aspose.pdf", + "pfx", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Forms.PKCS1", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Page.Annotations.Add", + "Aspose.Pdf.Forms.SignatureField.Sign", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "encrypt-pdf-view-only-edit-password": { - "title": "Encrypt PDF for View-Only with Edit Password", - "filename": "encrypt-pdf-view-only-edit-password.cs", - "description": "Shows how to encrypt a PDF so it can be opened and viewed without a password while requiring an owner password for any editing operations, using specific permissions.", + "sign-pdf-with-certificate": { + "title": "Sign PDF with a Certificate using Aspose.Pdf", + "filename": "sign-pdf-with-certificate.cs", + "description": "Demonstrates loading a PFX certificate, creating a signature field on a PDF, and applying a digital signature with Aspose.Pdf.", "tags": [ - "pdf-encryption", - "view-only", - "owner-password", - "Aspose.Pdf", - "permissions" + "pdf", + "digital-signature", + "certificate", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Forms.PKCS1", + "Aspose.Pdf.Forms.SignatureField.Sign", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Form.Add" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "decrypt-pdf-sign-fields-multiple-certs": { - "title": "Decrypt PDF and Sign Each Signature Field with Different Certificates", - "filename": "decrypt-pdf-sign-fields-multiple-certs.cs", - "description": "The example opens an encrypted PDF, removes its protection, locates all signature fields, and signs each field using a different PFX certificate, cycling through a list of certificates.", + "sign-pdf-with-custom-image-appearance": { + "title": "Sign PDF with Custom Image Appearance", + "filename": "sign-pdf-with-custom-image-appearance.cs", + "description": "Demonstrates how to add a visible digital signature to a PDF using a custom PNG image as the signature appearance and a PFX certificate.", "tags": [ - "pdf-decryption", - "digital-signature", - "certificate", - "form-fields", - "aspose-pdf" + "pdf-signature", + "visible-appearance", + "custom-image", + "aspose-pdf", + "pfx" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Forms.PKCS1", + "Aspose.Pdf.Forms.SignatureField.Sign", + "Aspose.Pdf.Rectangle" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T08:22:32Z", + "status": "verified" + }, + "sign-pdf-with-ecc-p256": { + "title": "Sign PDF with ECC P‑256 Private Key", + "filename": "sign-pdf-with-ecc-p256.cs", + "description": "Shows how to load an ECC certificate, add a signature field, and apply a PKCS#7 signature using a custom ECDSA signer to create a compact signature on a PDF document.", + "tags": [ + "pdf", + "ecc", + "signature", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Decrypt", "Aspose.Pdf.Forms.SignatureField", "Aspose.Pdf.Forms.PKCS7", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.SignatureField.Sign", "Aspose.Pdf.Document.Save" ], @@ -1414,74 +1730,108 @@ "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "batch-sign-and-compress-pdfs": { - "title": "Batch Sign and Compress PDFs", - "filename": "batch-sign-and-compress-pdfs.cs", - "description": "Demonstrates how to iterate over a folder of PDF files, add a digital signature field, sign each document with a PKCS#7 certificate, compress the signed PDF, and save the result.", + "sign-pdf-with-hardware-token": { + "title": "Sign Pdf With Hardware Token", + "filename": "sign-pdf-with-hardware-token.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "sign-pdf-with-incremental-updates": { + "title": "Sign PDF with Incremental Updates for Future Signatures", + "filename": "sign-pdf-with-incremental-updates.cs", + "description": "Demonstrates how to add a digital signature to a PDF using Aspose.Pdf while enabling incremental updates so additional signatures can be appended later.", "tags": [ - "pdf", + "pdf-signature", + "incremental-update", "digital-signature", - "batch-processing", - "compression", - "aspose-pdf" + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.SignatureField", "Aspose.Pdf.Forms.PKCS7", - "Aspose.Pdf.Document.OptimizeResources", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Form.Add", - "Aspose.Pdf.Forms.SignatureField.Sign" + "Aspose.Pdf.Rectangle", + "Document.Form.SignaturesAppendOnly", + "Document.Form.Add", + "SignatureField.Sign", + "Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "batch-encrypt-pdfs-archive-zip": { - "title": "Batch Encrypt PDFs and Archive to ZIP", - "filename": "batch-encrypt-pdfs-archive-zip.cs", - "description": "Demonstrates how to encrypt multiple PDF files with unique passwords using Aspose.Pdf and then package the encrypted PDFs into a ZIP archive.", + "sign-pdf-with-pkcs7-and-custom-xml": { + "title": "Sign PDF with PKCS#7 and embed custom XML signature", + "filename": "sign-pdf-with-pkcs7-and-custom-xml.cs", + "description": "The example loads a PDF, creates a signature field, applies a PKCS#7 digital signature using a PFX certificate, demonstrates where to embed custom XML signature data, and saves the signed document.", "tags": [ - "pdf-encryption", - "batch-processing", - "zip-archive", + "pdf-signature", + "pkcs7", + "custom-xml", "aspose-pdf", - "password-protection" + "digital-signature" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Security.Permissions", - "Aspose.Pdf.Security.CryptoAlgorithm" + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Forms.PKCS7", + "Aspose.Pdf.Document.Form.Add", + "Aspose.Pdf.Forms.SignatureField.Sign", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "extract-digest-algorithm-from-pdf-signatures": { - "title": "Extract Digest Algorithm from PDF Signatures", - "filename": "extract-digest-algorithm-from-pdf-signatures.cs", - "description": "Loads a PDF, iterates over its form fields to find signature fields, and logs the digest hash algorithm used in each digital signature for compliance reporting.", + "sign-pdf-with-pkcs7-signature": { + "title": "Sign Pdf With Pkcs7 Signature", + "filename": "sign-pdf-with-pkcs7-signature.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "sign-pdf-with-reason-contact-location": { + "title": "Sign PDF with Reason, Contact Info, and Location", + "filename": "sign-pdf-with-reason-contact-location.cs", + "description": "Demonstrates how to add a digital signature field to a PDF and sign it using a PKCS#7 certificate while populating the Reason, ContactInfo, and Location properties.", "tags": [ - "pdf", - "signature", - "digest", - "aspose", - "compliance" + "pdf-signature", + "digital-signature", + "pkcs7", + "certificate", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Field", "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.Signature.GetSignatureAlgorithmInfo", - "Aspose.Pdf.Forms.SignatureAlgorithmInfo.DigestHashAlgorithm" + "Aspose.Pdf.Forms.PKCS7", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Page.Annotations.Add", + "Aspose.Pdf.Forms.SignatureField.Sign", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, + "sign-pdf-with-rsa-4096-certificate": { + "title": "Sign Pdf With Rsa 4096 Certificate", + "filename": "sign-pdf-with-rsa-4096-certificate.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "sign-pdf-with-sha384-digest": { "title": "Sign PDF with SHA‑384 Digest using Aspose.Pdf", "filename": "sign-pdf-with-sha384-digest.cs", @@ -1504,6 +1854,16 @@ "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, + "sign-pdf-with-sha512-digest": { + "title": "Sign Pdf With Sha512 Digest", + "filename": "sign-pdf-with-sha512-digest.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "sign-pdf-with-sha512": { "title": "Sign PDF with SHA‑512 Digest Using Aspose.Pdf", "filename": "sign-pdf-with-sha512.cs", @@ -1526,23 +1886,22 @@ "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "sign-pdf-with-4096-rsa-certificate": { - "title": "Sign PDF with 4096‑bit RSA Certificate", - "filename": "sign-pdf-with-4096-rsa-certificate.cs", - "description": "Demonstrates how to digitally sign a PDF using a 4096‑bit RSA private key stored in a PFX file with Aspose.Pdf, adding a visible signature field to the first page.", + "sign-pdf-with-smart-card-no-pin": { + "title": "Sign PDF with Smart Card Certificate (No PIN Prompt)", + "filename": "sign-pdf-with-smart-card-no-pin.cs", + "description": "Shows how to add a visible signature field to a PDF and sign it using a smart‑card X509Certificate2 without displaying a PIN prompt, leveraging Aspose.Pdf.", "tags": [ - "pdf-signature", - "rsa", - "aspose.pdf", - "pfx", - "csharp" + "pdf signing", + "smart card", + "digital signature", + "c#", + "aspose.pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.PKCS1", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Page.Annotations.Add", + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Forms.ExternalSignature", "Aspose.Pdf.Forms.SignatureField.Sign", "Aspose.Pdf.Document.Save" ], @@ -1550,22 +1909,22 @@ "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "sign-pdf-with-ecc-p256": { - "title": "Sign PDF with ECC P‑256 Private Key", - "filename": "sign-pdf-with-ecc-p256.cs", - "description": "Shows how to load an ECC certificate, add a signature field, and apply a PKCS#7 signature using a custom ECDSA signer to create a compact signature on a PDF document.", + "sign-pdf-with-smart-card": { + "title": "Sign PDF with Smart Card Certificate", + "filename": "sign-pdf-with-smart-card.cs", + "description": "Shows how to load a PDF, add a signature field, and sign it using a smart‑card certificate (private key) via Aspose.Pdf.", "tags": [ - "pdf", - "ecc", - "signature", - "aspose", + "pdf-signing", + "smart-card", + "certificate", + "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.PKCS7", "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Forms.ExternalSignature", "Aspose.Pdf.Forms.SignatureField.Sign", "Aspose.Pdf.Document.Save" ], @@ -1573,148 +1932,182 @@ "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "encrypt-pdf-with-smart-card-certificate": { - "title": "Encrypt PDF with Smart Card Certificate", - "filename": "encrypt-pdf-with-smart-card-certificate.cs", - "description": "Shows how to retrieve a certificate from a smart card or HSM and encrypt a PDF so that only the certificate holder can open it, using Aspose.Pdf.", + "sign-pdf-with-timestamp": { + "title": "Sign PDF with Timestamp from TSA", + "filename": "sign-pdf-with-timestamp.cs", + "description": "Shows how to add a digital PKCS#7 signature to a PDF and request a trusted timestamp from a Time‑Stamp Authority using Aspose.Pdf.", "tags": [ - "pdf-encryption", - "smart-card", - "certificate", - "aspose-pdf", - "csharp" + "pdf-signature", + "timestamp", + "tsp", + "digital-signature", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Forms.PKCS7", + "Aspose.Pdf.Forms.TimestampSettings", + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "decrypt-pdf-with-certificate-token": { - "title": "Decrypt PDF Encrypted with Certificate Using Hardware Token", - "filename": "decrypt-pdf-with-certificate-token.cs", - "description": "Shows how to open a PDF encrypted with a public certificate, retrieve the private key from a hardware token, decrypt the document, and save the unencrypted version using Aspose.Pdf.", + "sign-pdf-with-visible-signature-pfx": { + "title": "Sign Pdf With Visible Signature Pfx", + "filename": "sign-pdf-with-visible-signature-pfx.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "sign-pdf-with-windows-certificate": { + "title": "Sign PDF with Windows Store Certificate using Aspose.Pdf", + "filename": "sign-pdf-with-windows-certificate.cs", + "description": "Shows how to retrieve a certificate from the Windows personal store by thumbprint and apply it to a PDF signature field using Aspose.Pdf.", "tags": [ - "pdf", - "decryption", + "pdf signing", "certificate", - "hardware-token", - "aspose-pdf" + "windows store", + "aspose.pdf", + "c#" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Security.CertificateEncryptionOptions", - "Aspose.Pdf.Document.Decrypt", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Forms.ExternalSignature", + "Aspose.Pdf.Forms.Form.Add" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "batch-sign-pdfs-with-certificate-per-document-type": { - "title": "Batch Sign PDFs with Certificate per Document Type", - "filename": "batch-sign-pdfs-with-certificate-per-document-type.cs", - "description": "Loads PDF files from an input folder, determines a document type from the PDF title, retrieves the corresponding certificate, signs all signature fields, and saves the signed PDFs to an output folder.", + "validate-pdf-digital-signature-ocsp": { + "title": "Validate Pdf Digital Signature Ocsp", + "filename": "validate-pdf-digital-signature-ocsp.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "validate-pdf-digital-signature": { + "title": "Validate PDF Digital Signature with Certificate Chain Check", + "filename": "validate-pdf-digital-signature.cs", + "description": "Loads a PDF, locates the first signature field, configures validation options to check the certificate chain, and verifies the detached PKCS#7 signature.", "tags": [ - "pdf-signing", - "batch", - "certificate", - "aspose-pdf", - "signature-field" + "pdf", + "digital-signature", + "validation", + "certificate-chain", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Info", "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.PKCS7", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Security.ValidationOptions", + "Aspose.Pdf.Security.ValidationMode", + "Aspose.Pdf.Forms.Signature.Verify" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "batch-encrypt-pdfs-date-password": { - "title": "Batch Encrypt PDFs with Date-Based Passwords", - "filename": "batch-encrypt-pdfs-date-password.cs", - "description": "Demonstrates how to encrypt multiple PDF files in a folder using Aspose.Pdf, generating a unique password for each file from its name combined with the current UTC date.", + "validate-pdf-signature-crl-revocation": { + "title": "Validate Pdf Signature Crl Revocation", + "filename": "validate-pdf-signature-crl-revocation.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "validate-pdf-signature-crl": { + "title": "Validate PDF Signature Using CRL Revocation Checking", + "filename": "validate-pdf-signature-crl.cs", + "description": "Shows how to load a signed PDF with Aspose.Pdf, set ValidationOptions to use CRL distribution points, and verify each signature field's revocation status.", "tags": [ - "pdf-encryption", - "batch-processing", - "aspose-pdf", - "aes-256", - "hashing" + "pdf", + "signature", + "crl", + "validation", + "revocation" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Security.Signature", + "Aspose.Pdf.Security.ValidationOptions", + "Aspose.Pdf.Security.ValidationResult", + "Aspose.Pdf.Forms.Field" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "add-new-empty-signature-field": { - "title": "Add a New Empty Signature Field to a PDF", - "filename": "add-new-empty-signature-field.cs", - "description": "The example loads a PDF, lists any existing signature fields, creates a new empty signature field on the first page, and saves the updated document.", + "validate-pdf-signature-extract-san": { + "title": "Validate PDF Signature and Extract SAN from Signing Certificate", + "filename": "validate-pdf-signature-extract-san.cs", + "description": "Demonstrates how to load a signed PDF, verify each signature using strict validation, and retrieve the signing certificate's Subject Alternative Name (SAN) entries.", "tags": [ "pdf", "signature", - "form", - "aspose-pdf", - "csharp" + "validation", + "certificate", + "san" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Forms.Form.Add" + "Aspose.Pdf.Security.Signature", + "Aspose.Pdf.Security.ValidationOptions", + "Aspose.Pdf.Security.ValidationMode", + "Aspose.Pdf.Security.ValidationResult" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "sign-pdf-embed-xfa-form-data": { - "title": "Sign PDF and Embed Custom XFA Form Data", - "filename": "sign-pdf-embed-xfa-form-data.cs", - "description": "Demonstrates loading a PDF, assigning custom XFA XML to its form, creating a signature field, and applying a PKCS#7 digital signature using a certificate.", + "validate-pdf-signature-ocsp": { + "title": "Validate PDF Signature Using OCSP", + "filename": "validate-pdf-signature-ocsp.cs", + "description": "Demonstrates how to load a signed PDF, configure OCSP validation options, and verify each digital signature's revocation status using Aspose.Pdf.", "tags": [ - "pdf-signature", - "xfa", - "digital-signature", - "csharp", - "aspose-pdf" + "signature", + "ocsp", + "validation", + "pdf", + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form.AssignXfa", - "Aspose.Pdf.Rectangle", + "Aspose.Pdf.ValidationOptions", + "Aspose.Pdf.ValidationMethod", + "Aspose.Pdf.ValidationMode", "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.PKCS7" + "Aspose.Pdf.Security.Signature", + "Aspose.Pdf.Security.ValidationResult" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "validate-pdf-signature-extract-san": { - "title": "Validate PDF Signature and Extract SAN from Signing Certificate", - "filename": "validate-pdf-signature-extract-san.cs", - "description": "Demonstrates how to load a signed PDF, verify each signature using strict validation, and retrieve the signing certificate's Subject Alternative Name (SAN) entries.", + "validate-pdf-signature-timestamp": { + "title": "Validate PDF Signature and Check Timestamp Against Certificate Validity", + "filename": "validate-pdf-signature-timestamp.cs", + "description": "Shows how to load a signed PDF, locate the first signature field, verify the signature using strict validation options, extract the signing timestamp, and (if the certificate is accessible) compare the timestamp to the certificate's validity period.", "tags": [ "pdf", "signature", "validation", - "certificate", - "san" + "timestamp", + "certificate" ], "apis_used": [ "Aspose.Pdf.Document", @@ -1728,50 +2121,37 @@ "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "encrypt-pdf-with-user-owner-passwords-remove-user": { - "title": "Encrypt PDF with User and Owner Passwords and Remove User Password", - "filename": "encrypt-pdf-with-user-owner-passwords-remove-user.cs", - "description": "Demonstrates how to encrypt a PDF using both user and owner passwords, then open it with the owner password to remove the user password while keeping the document encrypted.", + "validate-pdf-signature": { + "title": "Validate PDF Digital Signature with Aspose.Pdf", + "filename": "validate-pdf-signature.cs", + "description": "Loads a PDF, locates signature fields, and validates each digital signature using Aspose.Pdf's validation options and strict mode, reporting the validation status.", "tags": [ - "pdf-encryption", - "user-password", - "owner-password", + "pdf", + "digital-signature", + "validation", "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Document.ChangePasswords" + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Security.ValidationOptions", + "Aspose.Pdf.Security.ValidationMode", + "Aspose.Pdf.Security.Signature.Verify", + "Aspose.Pdf.Security.ValidationResult" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:22:32Z", "status": "verified" }, - "sign-pdf-and-flatten-form-fields": { - "title": "Sign PDF and Flatten Form Fields", - "filename": "sign-pdf-and-flatten-form-fields.cs", - "description": "Demonstrates loading a PDF, adding a digital signature field, applying a PKCS#7 signature, flattening all form fields to make them non‑editable, and saving the signed document.", - "tags": [ - "pdf-signature", - "flatten", - "digital-signature", - "form-fields", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.PKCS7", - "Aspose.Pdf.Forms.Signature", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Document.Flatten", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:22:32Z", + "validate-pkcs7-detached-signature": { + "title": "Validate Pkcs7 Detached Signature", + "filename": "validate-pkcs7-detached-signature.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" } } diff --git a/sitemap.xml b/sitemap.xml index 73d9e7669..2b4617b5c 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -2,673 +2,673 @@ https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/README.md - 2026-07-21 + 2026-09-10 weekly 1.0 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/AGENTS.md - 2026-07-21 + 2026-09-10 weekly 0.8 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/llm.txt - 2026-07-21 + 2026-09-10 weekly 0.8 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/index.json - 2026-07-21 + 2026-09-10 weekly 0.8 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/CONTRIBUTING.md - 2026-07-21 + 2026-09-10 weekly 0.8 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/.well-known/agent.json - 2026-07-21 + 2026-09-10 weekly 0.7 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/.well-known/ai-plugin.json - 2026-07-21 + 2026-09-10 weekly 0.7 https://github.com/aspose-pdf/agentic-net-examples.git/tree/main/accessibility-and-tagged-pdfs - 2026-07-21 + 2026-09-10 weekly 0.6 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/accessibility-and-tagged-pdfs/README.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/accessibility-and-tagged-pdfs/AGENTS.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/tree/main/basic-operations - 2026-07-21 + 2026-09-10 weekly 0.6 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/basic-operations/README.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/basic-operations/AGENTS.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/tree/main/compare-pdf - 2026-07-21 + 2026-09-10 weekly 0.6 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/compare-pdf/README.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/compare-pdf/AGENTS.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/tree/main/conversion - 2026-07-21 + 2026-09-10 weekly 0.6 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/conversion/README.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/conversion/AGENTS.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/tree/main/document - 2026-07-21 + 2026-09-10 weekly 0.6 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/document/README.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/document/AGENTS.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/tree/main/facades-acroforms - 2026-07-21 + 2026-09-10 weekly 0.6 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/facades-acroforms/README.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/facades-acroforms/AGENTS.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/tree/main/facades-annotations - 2026-07-21 + 2026-09-10 weekly 0.6 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/facades-annotations/README.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/facades-annotations/AGENTS.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/tree/main/facades-bookmarks - 2026-07-21 + 2026-09-10 weekly 0.6 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/facades-bookmarks/README.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/facades-bookmarks/AGENTS.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/tree/main/facades-convert-documents - 2026-07-21 + 2026-09-10 weekly 0.6 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/facades-convert-documents/README.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/facades-convert-documents/AGENTS.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/tree/main/facades-documents - 2026-07-21 + 2026-09-10 weekly 0.6 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/facades-documents/README.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/facades-documents/AGENTS.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/tree/main/facades-edit-document - 2026-07-21 + 2026-09-10 weekly 0.6 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/facades-edit-document/README.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/facades-edit-document/AGENTS.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/tree/main/facades-extract-images-and-text - 2026-07-21 + 2026-09-10 weekly 0.6 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/facades-extract-images-and-text/README.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/facades-extract-images-and-text/AGENTS.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/tree/main/facades-fill-forms - 2026-07-21 + 2026-09-10 weekly 0.6 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/facades-fill-forms/README.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/facades-fill-forms/AGENTS.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/tree/main/facades-forms - 2026-07-21 + 2026-09-10 weekly 0.6 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/facades-forms/README.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/facades-forms/AGENTS.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/tree/main/facades-metadata - 2026-07-21 + 2026-09-10 weekly 0.6 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/facades-metadata/README.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/facades-metadata/AGENTS.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/tree/main/facades-pages - 2026-07-21 + 2026-09-10 weekly 0.6 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/facades-pages/README.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/facades-pages/AGENTS.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/tree/main/facades-secure-documents - 2026-07-21 + 2026-09-10 weekly 0.6 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/facades-secure-documents/README.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/facades-secure-documents/AGENTS.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/tree/main/facades-sign-documents - 2026-07-21 + 2026-09-10 weekly 0.6 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/facades-sign-documents/README.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/facades-sign-documents/AGENTS.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/tree/main/facades-stamps - 2026-07-21 + 2026-09-10 weekly 0.6 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/facades-stamps/README.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/facades-stamps/AGENTS.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/tree/main/facades-texts-and-images - 2026-07-21 + 2026-09-10 weekly 0.6 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/facades-texts-and-images/README.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/facades-texts-and-images/AGENTS.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/tree/main/facades-xmp-metadata - 2026-07-21 + 2026-09-10 weekly 0.6 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/facades-xmp-metadata/README.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/facades-xmp-metadata/AGENTS.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/tree/main/graphs-zugferd-operators - 2026-07-21 + 2026-09-10 weekly 0.6 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/graphs-zugferd-operators/README.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/graphs-zugferd-operators/AGENTS.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/tree/main/pages - 2026-07-21 + 2026-09-10 weekly 0.6 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/pages/README.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/pages/AGENTS.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/tree/main/parse-pdf - 2026-07-21 + 2026-09-10 weekly 0.6 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/parse-pdf/README.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/parse-pdf/AGENTS.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/tree/main/securing-and-signing-pdf - 2026-07-21 + 2026-09-10 weekly 0.6 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/securing-and-signing-pdf/README.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/securing-and-signing-pdf/AGENTS.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/tree/main/stamping - 2026-07-21 + 2026-09-10 weekly 0.6 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/stamping/README.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/stamping/AGENTS.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/tree/main/uncategorized - 2026-07-21 + 2026-09-10 weekly 0.6 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/uncategorized/README.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/uncategorized/AGENTS.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/tree/main/working-with-annotations - 2026-07-21 + 2026-09-10 weekly 0.6 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/working-with-annotations/README.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/working-with-annotations/AGENTS.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/tree/main/working-with-attachments - 2026-07-21 + 2026-09-10 weekly 0.6 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/working-with-attachments/README.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/working-with-attachments/AGENTS.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/tree/main/working-with-forms - 2026-07-21 + 2026-09-10 weekly 0.6 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/working-with-forms/README.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/working-with-forms/AGENTS.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/tree/main/working-with-graphs - 2026-07-21 + 2026-09-10 weekly 0.6 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/working-with-graphs/README.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/working-with-graphs/AGENTS.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/tree/main/working-with-images - 2026-07-21 + 2026-09-10 weekly 0.6 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/working-with-images/README.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/working-with-images/AGENTS.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/tree/main/working-with-tables - 2026-07-21 + 2026-09-10 weekly 0.6 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/working-with-tables/README.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/working-with-tables/AGENTS.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/tree/main/working-with-text - 2026-07-21 + 2026-09-10 weekly 0.6 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/working-with-text/README.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/working-with-text/AGENTS.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/tree/main/working-with-xml - 2026-07-21 + 2026-09-10 weekly 0.6 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/working-with-xml/README.md - 2026-07-21 + 2026-09-10 weekly 0.5 https://github.com/aspose-pdf/agentic-net-examples.git/blob/main/working-with-xml/AGENTS.md - 2026-07-21 + 2026-09-10 weekly 0.5 diff --git a/stamping/AGENTS.md b/stamping/AGENTS.md index f0717a013..b5dd7b914 100644 --- a/stamping/AGENTS.md +++ b/stamping/AGENTS.md @@ -8,7 +8,7 @@ parent: ../agents.md # AGENTS - stamping -> **Stamping** in PDF using C# / .NET -- **50** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. +> **Stamping** in PDF using C# / .NET -- **72** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. ## Persona @@ -23,15 +23,15 @@ See the root [agents.md](../agents.md) for repository-wide conventions and bound ## Required Namespaces -- `using Aspose.Pdf;` (50/50 files) ← category-specific -- `using Aspose.Pdf.Text;` (11/50 files) -- `using Aspose.Pdf.Annotations;` (7/50 files) -- `using Aspose.Pdf.Drawing;` (2/50 files) -- `using Aspose.Pdf.Facades;` (2/50 files) -- `using System;` (50/50 files) -- `using System.IO;` (50/50 files) -- `using System.Drawing;` (2/50 files) -- `using System.Drawing.Imaging;` (1/50 files) +- `using Aspose.Pdf;` (50/72 files) ← category-specific +- `using Aspose.Pdf.Text;` (11/72 files) +- `using Aspose.Pdf.Annotations;` (7/72 files) +- `using Aspose.Pdf.Drawing;` (2/72 files) +- `using Aspose.Pdf.Facades;` (2/72 files) +- `using System;` (50/72 files) +- `using System.IO;` (50/72 files) +- `using System.Drawing;` (2/72 files) +- `using System.Drawing.Imaging;` (1/72 files) ## Common Code Pattern @@ -58,31 +58,31 @@ using (Document doc = new Document("input.pdf")) | [add-diagonal-image-watermark-to-pdf](./add-diagonal-image-watermark-to-pdf.cs) | Add Diagonal Image Watermark to PDF | `Document`, `ImageStamp`, `AddStamp` | Demonstrates how to apply an image stamp rotated 90° as a diagonal watermark on every page of a P... | | [add-diagonal-text-stamp-watermark](./add-diagonal-text-stamp-watermark.cs) | Add Diagonal Text Stamp Watermark to PDF | `Document`, `TextStamp`, `FontRepository` | Demonstrates how to add a semi‑transparent, 45‑degree rotated text stamp as a diagonal watermark ... | | [add-faint-overlay-stamp-to-pdf-pages](./add-faint-overlay-stamp-to-pdf-pages.cs) | Add Faint Overlay Stamp to PDF Pages | `Document`, `TextStamp`, `AddStamp` | Shows how to apply a semi‑transparent text stamp as a faint overlay on every page of a PDF using ... | +| [add-faint-text-overlay-stamp-to-pdf-pages](./add-faint-text-overlay-stamp-to-pdf-pages.cs) | Add faint text overlay stamp to pdf pages | | Add faint text overlay stamp to pdf pages | +| [add-fixed-size-image-stamp-to-pdf-pages](./add-fixed-size-image-stamp-to-pdf-pages.cs) | Add fixed size image stamp to pdf pages | | Add fixed size image stamp to pdf pages | | [add-full-page-image-watermark-to-pdf](./add-full-page-image-watermark-to-pdf.cs) | Add Full-Page Image Watermark to PDF | `Document`, `Page`, `ImageStamp` | Demonstrates how to apply an image stamp as a full‑page background watermark to every page of a P... | +| [add-full-page-image-watermark](./add-full-page-image-watermark.cs) | Add full page image watermark | | Add full page image watermark | +| [add-fully-opaque-image-watermark](./add-fully-opaque-image-watermark.cs) | Add fully opaque image watermark | | Add fully opaque image watermark | | [add-global-text-stamp-to-all-pdf-pages](./add-global-text-stamp-to-all-pdf-pages.cs) | Add Global Text Stamp to All PDF Pages | `Document`, `TextStamp`, `Page` | Shows how to create a TextStamp and apply it to every page of a PDF document using Aspose.Pdf's A... | +| [add-image-background-floatingbox-page-4](./add-image-background-floatingbox-page-4.cs) | Add image background floatingbox page 4 | | Add image background floatingbox page 4 | | [add-image-stamp-alt-text-pdfa](./add-image-stamp-alt-text-pdfa.cs) | Add Image Stamp with Alt Text for PDF/A‑1b | `Document`, `ImageStamp`, `AddStamp` | Demonstrates how to place an image stamp with alternative text on every page of a PDF and then co... | +| [add-image-stamp-alt-text-pdfa1b](./add-image-stamp-alt-text-pdfa1b.cs) | Add image stamp alt text pdfa1b | | Add image stamp alt text pdfa1b | | [add-image-stamp-annotation-to-pdf](./add-image-stamp-annotation-to-pdf.cs) | Add Image Stamp Annotation to PDF | `Document`, `Page`, `Rectangle` | Shows how to place an image as a StampAnnotation on a PDF page while preserving existing annotati... | | [add-image-stamp-flatten-annotations](./add-image-stamp-flatten-annotations.cs) | Add Image Stamp and Flatten Annotations to Create Read‑Only ... | `Document`, `Page`, `ImageStamp` | Demonstrates how to add an image stamp to every page of a PDF and then flatten all annotations so... | | [add-image-stamp-floatingbox-page-4](./add-image-stamp-floatingbox-page-4.cs) | Add Image Stamp as Background Using FloatingBox on Page 4 | `Document`, `Page`, `FloatingBox` | Demonstrates how to place an image stamp as the background of a FloatingBox on the fourth page of... | | [add-image-stamp-from-memory-stream-to-pdf](./add-image-stamp-from-memory-stream-to-pdf.cs) | Add Image Stamp from Memory Stream to PDF | `ImageStamp`, `Document`, `Page` | Demonstrates how to load an image into a MemoryStream and apply it as an ImageStamp to every page... | +| [add-image-stamp-from-memory-stream](./add-image-stamp-from-memory-stream.cs) | Add image stamp from memory stream | | Add image stamp from memory stream | | [add-image-stamp-percentage-position](./add-image-stamp-percentage-position.cs) | Add Image Stamp with Percentage‑Based Positioning | `Document`, `ImageStamp`, `Page` | Demonstrates how to place an image stamp on each page of a PDF using offsets expressed as percent... | | [add-image-stamp-preserve-acroform-fields](./add-image-stamp-preserve-acroform-fields.cs) | Add Image Stamp While Preserving AcroForm Fields | `Document`, `ImageStamp`, `AddStamp` | Demonstrates how to apply an ImageStamp to every page of a PDF using Aspose.Pdf while keeping exi... | +| [add-image-stamp-preserve-annotations](./add-image-stamp-preserve-annotations.cs) | Add image stamp preserve annotations | | Add image stamp preserve annotations | | [add-image-stamp-preserve-bookmarks](./add-image-stamp-preserve-bookmarks.cs) | Add Image Stamp While Preserving Bookmarks and Outline | `Document`, `ImageStamp`, `AddStamp` | Demonstrates how to load an existing PDF, apply a semi‑transparent image stamp to every page, and... | | [add-image-stamp-preserve-embedded-files](./add-image-stamp-preserve-embedded-files.cs) | Add Image Stamp to PDF While Preserving Embedded Files | `Document`, `Page`, `ImageStamp` | Demonstrates how to load a PDF, iterate through its pages, add an image stamp to each page, and s... | | [add-image-stamp-preserve-javascript](./add-image-stamp-preserve-javascript.cs) | Add Image Stamp to PDF While Preserving JavaScript Actions | `Document`, `ImageStamp`, `AddStamp` | Demonstrates loading a PDF, creating an ImageStamp, applying it to every page, and saving the doc... | | [add-image-stamp-preserve-page-labels](./add-image-stamp-preserve-page-labels.cs) | Add Image Stamp to PDF While Preserving Page Labels | `Document`, `ImageStamp`, `AddStamp` | Demonstrates how to load a PDF, create an ImageStamp, apply it to every page, and save the docume... | -| [add-image-stamp-preserve-xmp-metadata](./add-image-stamp-preserve-xmp-metadata.cs) | Add Image Stamp While Preserving XMP Metadata | `Document`, `Page`, `ImageStamp` | Demonstrates how to load a PDF, retrieve its XMP metadata, apply an image stamp to every page, re... | -| [add-image-stamp-to-encrypted-pdf](./add-image-stamp-to-encrypted-pdf.cs) | Add Image Stamp to Encrypted PDF | `Document`, `Decrypt`, `ImageStamp` | Shows how to open an encrypted PDF with a password, decrypt it, place an image stamp on a page, a... | -| [add-image-stamp-to-pdf-form](./add-image-stamp-to-pdf-form.cs) | Add Image Stamp to PDF Form While Preserving Fields | `Document`, `Page`, `ImageStamp` | Demonstrates loading a PDF that contains form fields, adding an image stamp to each page, and sav... | -| [add-image-stamp-to-pdf-page](./add-image-stamp-to-pdf-page.cs) | Add Image Stamp to PDF Page with Quality and Opacity | `Document`, `ImageStamp`, `AddStamp` | Shows how to place an image stamp on the second page of a PDF, configuring 100% quality and 0.8 o... | -| [add-image-stamp-to-signed-pdf](./add-image-stamp-to-signed-pdf.cs) | Add Image Stamp to Signed PDF without Invalidating Signature | `Document`, `ImageStamp`, `Page` | Shows how to place a semi‑transparent image stamp on a digitally signed PDF using Aspose.Pdf whil... | -| [add-image-stamp-unicode-alt-text](./add-image-stamp-unicode-alt-text.cs) | Add Image Stamp with Unicode Alternative Text to PDF | `Document`, `ImageStamp`, `AlternativeText` | Demonstrates how to place an image stamp on a PDF page and set multilingual Unicode alternative t... | -| [add-image-stamp-with-alt-text-to-pdf-page](./add-image-stamp-with-alt-text-to-pdf-page.cs) | Add Image Stamp with Alt Text to PDF Page | `Document`, `ImageStamp`, `AddStamp` | Demonstrates how to add an image stamp with alternative text for accessibility to the third page ... | -| [add-low-quality-image-stamp-to-pdf](./add-low-quality-image-stamp-to-pdf.cs) | Add Low-Quality Image Stamp to PDF | `Document`, `ImageStamp`, `AddStamp` | Shows how to load a PDF, create an ImageStamp with reduced quality (10 %) and apply it to every p... | -| ... | | | *and 20 more files* | +| ... | | | *and 42 more files* | ## Category Statistics -- Total examples: 50 +- Total examples: 72 ## General Tips - See parent [AGENTS.md](../AGENTS.md) for: @@ -93,5 +93,5 @@ using (Document doc = new Document("input.pdf")) - Review code examples in this folder for stamping patterns -Updated: 2026-08-20 | Run: `20260820_001147_12d7b3` +Updated: 2026-09-10 | Run: `20260910_054408_87a7f4` diff --git a/stamping/README.md b/stamping/README.md new file mode 100644 index 000000000..dc3066848 --- /dev/null +++ b/stamping/README.md @@ -0,0 +1,91 @@ +# Stamping + +> **Stamping** in PDF using C# / .NET -- **72** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. + +- Category: `stamping` +- Examples: 72 +- NuGet: `Aspose.PDF 26.8.0` -- target `net10.0` + +## Examples + +- [`add-background-image-stamp-to-pdf.cs`](./add-background-image-stamp-to-pdf.cs) -- Add background image stamp to pdf +- [`add-bold-outlined-text-stamp.cs`](./add-bold-outlined-text-stamp.cs) -- Add bold outlined text stamp +- [`add-bottom-left-text-stamp.cs`](./add-bottom-left-text-stamp.cs) -- Add bottom left text stamp +- [`add-confidential-text-stamp-to-pdf.cs`](./add-confidential-text-stamp-to-pdf.cs) -- Add confidential text stamp to pdf +- [`add-custom-sized-page-stamp.cs`](./add-custom-sized-page-stamp.cs) -- Add custom sized page stamp +- [`add-custom-text-stamp-to-pdf-first-page.cs`](./add-custom-text-stamp-to-pdf-first-page.cs) -- Add custom text stamp to pdf first page +- [`add-diagonal-image-watermark-to-pdf.cs`](./add-diagonal-image-watermark-to-pdf.cs) -- Add diagonal image watermark to pdf +- [`add-diagonal-text-stamp-watermark.cs`](./add-diagonal-text-stamp-watermark.cs) -- Add diagonal text stamp watermark +- [`add-faint-overlay-stamp-to-pdf-pages.cs`](./add-faint-overlay-stamp-to-pdf-pages.cs) -- Add faint overlay stamp to pdf pages +- [`add-faint-text-overlay-stamp-to-pdf-pages.cs`](./add-faint-text-overlay-stamp-to-pdf-pages.cs) -- Add faint text overlay stamp to pdf pages +- [`add-fixed-size-image-stamp-to-pdf-pages.cs`](./add-fixed-size-image-stamp-to-pdf-pages.cs) -- Add fixed size image stamp to pdf pages +- [`add-full-page-image-watermark-to-pdf.cs`](./add-full-page-image-watermark-to-pdf.cs) -- Add full page image watermark to pdf +- [`add-full-page-image-watermark.cs`](./add-full-page-image-watermark.cs) -- Add full page image watermark +- [`add-fully-opaque-image-watermark.cs`](./add-fully-opaque-image-watermark.cs) -- Add fully opaque image watermark +- [`add-global-text-stamp-to-all-pdf-pages.cs`](./add-global-text-stamp-to-all-pdf-pages.cs) -- Add global text stamp to all pdf pages +- [`add-image-background-floatingbox-page-4.cs`](./add-image-background-floatingbox-page-4.cs) -- Add image background floatingbox page 4 +- [`add-image-stamp-alt-text-pdfa.cs`](./add-image-stamp-alt-text-pdfa.cs) -- Add image stamp alt text pdfa +- [`add-image-stamp-alt-text-pdfa1b.cs`](./add-image-stamp-alt-text-pdfa1b.cs) -- Add image stamp alt text pdfa1b +- [`add-image-stamp-annotation-to-pdf.cs`](./add-image-stamp-annotation-to-pdf.cs) -- Add image stamp annotation to pdf +- [`add-image-stamp-flatten-annotations.cs`](./add-image-stamp-flatten-annotations.cs) -- Add image stamp flatten annotations +- [`add-image-stamp-floatingbox-page-4.cs`](./add-image-stamp-floatingbox-page-4.cs) -- Add image stamp floatingbox page 4 +- [`add-image-stamp-from-memory-stream-to-pdf.cs`](./add-image-stamp-from-memory-stream-to-pdf.cs) -- Add image stamp from memory stream to pdf +- [`add-image-stamp-from-memory-stream.cs`](./add-image-stamp-from-memory-stream.cs) -- Add image stamp from memory stream +- [`add-image-stamp-percentage-position.cs`](./add-image-stamp-percentage-position.cs) -- Add image stamp percentage position +- [`add-image-stamp-preserve-acroform-fields.cs`](./add-image-stamp-preserve-acroform-fields.cs) -- Add image stamp preserve acroform fields +- [`add-image-stamp-preserve-annotations.cs`](./add-image-stamp-preserve-annotations.cs) -- Add image stamp preserve annotations +- [`add-image-stamp-preserve-bookmarks.cs`](./add-image-stamp-preserve-bookmarks.cs) -- Add image stamp preserve bookmarks +- [`add-image-stamp-preserve-embedded-files.cs`](./add-image-stamp-preserve-embedded-files.cs) -- Add image stamp preserve embedded files +- [`add-image-stamp-preserve-javascript.cs`](./add-image-stamp-preserve-javascript.cs) -- Add image stamp preserve javascript +- [`add-image-stamp-preserve-page-labels.cs`](./add-image-stamp-preserve-page-labels.cs) -- Add image stamp preserve page labels +- [`add-image-stamp-preserve-xmp-metadata.cs`](./add-image-stamp-preserve-xmp-metadata.cs) -- Add image stamp preserve xmp metadata +- [`add-image-stamp-to-encrypted-pdf.cs`](./add-image-stamp-to-encrypted-pdf.cs) -- Add image stamp to encrypted pdf +- [`add-image-stamp-to-page-two.cs`](./add-image-stamp-to-page-two.cs) -- Add image stamp to page two +- [`add-image-stamp-to-pdf-form.cs`](./add-image-stamp-to-pdf-form.cs) -- Add image stamp to pdf form +- [`add-image-stamp-to-pdf-page.cs`](./add-image-stamp-to-pdf-page.cs) -- Add image stamp to pdf page +- [`add-image-stamp-to-pdf-with-form-fields.cs`](./add-image-stamp-to-pdf-with-form-fields.cs) -- Add image stamp to pdf with form fields +- [`add-image-stamp-to-signed-pdf.cs`](./add-image-stamp-to-signed-pdf.cs) -- Add image stamp to signed pdf +- [`add-image-stamp-top-right-corner.cs`](./add-image-stamp-top-right-corner.cs) -- Add image stamp top right corner +- [`add-image-stamp-unicode-alt-text.cs`](./add-image-stamp-unicode-alt-text.cs) -- Add image stamp unicode alt text +- [`add-image-stamp-with-alt-text-to-pdf-page.cs`](./add-image-stamp-with-alt-text-to-pdf-page.cs) -- Add image stamp with alt text to pdf page +- [`add-image-stamp-with-unicode-alt-text.cs`](./add-image-stamp-with-unicode-alt-text.cs) -- Add image stamp with unicode alt text +- [`add-low-quality-image-stamp-to-pdf.cs`](./add-low-quality-image-stamp-to-pdf.cs) -- Add low quality image stamp to pdf +- [`add-multi-line-text-stamp-custom-line-spacing.cs`](./add-multi-line-text-stamp-custom-line-spacing.cs) -- Add multi line text stamp custom line spacing +- [`add-multi-line-text-stamp.cs`](./add-multi-line-text-stamp.cs) -- Add multi line text stamp +- [`add-opaque-image-watermark-to-pdf.cs`](./add-opaque-image-watermark-to-pdf.cs) -- Add opaque image watermark to pdf +- [`add-outlined-text-stamp.cs`](./add-outlined-text-stamp.cs) -- Add outlined text stamp +- [`add-page-stamp-to-specific-pdf-pages.cs`](./add-page-stamp-to-specific-pdf-pages.cs) -- Add page stamp to specific pdf pages +- [`add-rotated-image-stamp-to-pdf.cs`](./add-rotated-image-stamp-to-pdf.cs) -- Add rotated image stamp to pdf +- [`add-rotated-text-stamp-to-pdf-pages.cs`](./add-rotated-text-stamp-to-pdf-pages.cs) -- Add rotated text stamp to pdf pages +- [`add-rotated-text-watermark.cs`](./add-rotated-text-watermark.cs) -- Add rotated text watermark +- [`add-rtl-text-stamp-to-pdf.cs`](./add-rtl-text-stamp-to-pdf.cs) -- Add rtl text stamp to pdf +- [`add-semi-transparent-logo-stamp-to-first-pdf-page.cs`](./add-semi-transparent-logo-stamp-to-first-pdf-page.cs) -- Add semi transparent logo stamp to first pdf page +- [`add-semi-transparent-logo-stamp-to-pdf.cs`](./add-semi-transparent-logo-stamp-to-pdf.cs) -- Add semi transparent logo stamp to pdf +- [`add-text-stamp-auto-adjust-font-size.cs`](./add-text-stamp-auto-adjust-font-size.cs) -- Add text stamp auto adjust font size +- [`add-text-stamp-auto-adjust-font.cs`](./add-text-stamp-auto-adjust-font.cs) -- Add text stamp auto adjust font +- [`add-text-stamp-with-background-box.cs`](./add-text-stamp-with-background-box.cs) -- Add text stamp with background box +- [`add-upside-down-image-stamp.cs`](./add-upside-down-image-stamp.cs) -- Add upside down image stamp +- [`align-image-stamp-top-right-margin.cs`](./align-image-stamp-top-right-margin.cs) -- Align image stamp top right margin +- [`align-text-stamp-bottom-left-margin.cs`](./align-text-stamp-bottom-left-margin.cs) -- Align text stamp bottom left margin +- [`apply-fixed-size-image-stamp-to-pdf-pages.cs`](./apply-fixed-size-image-stamp-to-pdf-pages.cs) -- Apply fixed size image stamp to pdf pages +- [`apply-image-stamp-percentage-offsets.cs`](./apply-image-stamp-percentage-offsets.cs) -- Apply image stamp percentage offsets +- [`apply-image-stamp-to-all-pdf-pages.cs`](./apply-image-stamp-to-all-pdf-pages.cs) -- Apply image stamp to all pdf pages +- [`apply-pdf-page-background-stamp.cs`](./apply-pdf-page-background-stamp.cs) -- Apply pdf page background stamp +- [`create-page-stamp-from-existing-pdf-page.cs`](./create-page-stamp-from-existing-pdf-page.cs) -- Create page stamp from existing pdf page +- [`create-page-stamp-from-pdf.cs`](./create-page-stamp-from-pdf.cs) -- Create page stamp from pdf +- [`fit-image-stamp-rectangle.cs`](./fit-image-stamp-rectangle.cs) -- Fit image stamp rectangle +- [`fit-image-stamp-within-rectangle.cs`](./fit-image-stamp-within-rectangle.cs) -- Fit image stamp within rectangle +- [`place-image-stamp-at-custom-coordinates.cs`](./place-image-stamp-at-custom-coordinates.cs) -- Place image stamp at custom coordinates +- [`place-image-stamp-custom-coordinates.cs`](./place-image-stamp-custom-coordinates.cs) -- Place image stamp custom coordinates +- [`rotate-image-stamp-45-degrees.cs`](./rotate-image-stamp-45-degrees.cs) -- Rotate image stamp 45 degrees +- [`scale-image-stamp-full-page-width.cs`](./scale-image-stamp-full-page-width.cs) -- Scale image stamp full page width +- [`scale-image-stamp-to-full-page-width.cs`](./scale-image-stamp-to-full-page-width.cs) -- Scale image stamp to full page width + +## See Also + +- [`AGENTS.md`](./AGENTS.md) -- category-specific anti-patterns, API surface, and conventions for AI coding agents +- [`../AGENTS.md`](../AGENTS.md) -- repository-wide agent guide +- [`../README.md`](../README.md) -- full category index and project overview +- [Aspose.PDF for .NET docs](https://docs.aspose.com/pdf/net/) + +> Each `.cs` file is a standalone, build-validated console example. Drop into a fresh `dotnet new console` project, add the `Aspose.PDF` NuGet (version above), and run. diff --git a/stamping/index.json b/stamping/index.json index 9a1d8da10..57aff2d2a 100644 --- a/stamping/index.json +++ b/stamping/index.json @@ -1,113 +1,136 @@ { "category": "stamping", "nuget_version": "26.8.0", - "last_updated": "2026-08-20T08:26:54Z", + "last_updated": "2026-09-10T12:45:08Z", "examples": { - "add-semi-transparent-logo-stamp-to-pdf": { - "title": "Add Semi-Transparent Logo Stamp to PDF", - "filename": "add-semi-transparent-logo-stamp-to-pdf.cs", - "description": "Shows how to place a semi‑transparent image (logo) stamp on the first page of a PDF document using Aspose.Pdf.", + "add-background-image-stamp-to-pdf": { + "title": "Add Background Image Stamp to PDF Pages", + "filename": "add-background-image-stamp-to-pdf.cs", + "description": "Shows how to place an image stamp behind the existing content of each PDF page by setting the Background property to true using Aspose.Pdf.", "tags": [ - "pdf", "image-stamp", - "opacity", - "aspose-pdf", - "csharp" + "background", + "pdf", + "watermark", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.ImageStamp", - "Aspose.Pdf.HorizontalAlignment", - "Aspose.Pdf.VerticalAlignment", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page", + "Aspose.Pdf.ImageStamp.Background" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:26:54Z", "status": "verified" }, - "add-image-stamp-to-pdf-page": { - "title": "Add Image Stamp to PDF Page with Quality and Opacity", - "filename": "add-image-stamp-to-pdf-page.cs", - "description": "Shows how to place an image stamp on the second page of a PDF, configuring 100% quality and 0.8 opacity using Aspose.Pdf.", + "add-bold-outlined-text-stamp": { + "title": "Add Bold Outlined Text Stamp to PDF", + "filename": "add-bold-outlined-text-stamp.cs", + "description": "Shows how to create a text stamp with fill‑stroke rendering to produce bold outlined text on a PDF page using Aspose.Pdf.", "tags": [ - "image-stamp", + "text-stamp", + "outline", + "fill-stroke", "pdf", - "opacity", - "quality", "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.ImageStamp", + "Aspose.Pdf.Text.TextStamp", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Text.FontRepository.FindFont", + "Aspose.Pdf.Text.TextRenderingMode" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T08:26:54Z", + "status": "verified" + }, + "add-bottom-left-text-stamp": { + "title": "Add Bottom‑Left Text Stamp to PDF", + "filename": "add-bottom-left-text-stamp.cs", + "description": "Shows how to place a text stamp at the bottom‑left corner of each PDF page with a 10‑point margin using Aspose.Pdf.", + "tags": [ + "text-stamp", + "pdf", + "alignment", + "margin", + "Aspose.Pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.TextStamp", + "Aspose.Pdf.Annotations.HorizontalAlignment", + "Aspose.Pdf.Annotations.VerticalAlignment", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.ImageStamp.Quality", - "Aspose.Pdf.ImageStamp.Opacity" + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:26:54Z", "status": "verified" }, - "add-image-stamp-with-alt-text-to-pdf-page": { - "title": "Add Image Stamp with Alt Text to PDF Page", - "filename": "add-image-stamp-with-alt-text-to-pdf-page.cs", - "description": "Demonstrates how to add an image stamp with alternative text for accessibility to the third page of a PDF using Aspose.Pdf.", + "add-confidential-text-stamp-to-pdf": { + "title": "Add Confidential Text Stamp to PDF", + "filename": "add-confidential-text-stamp-to-pdf.cs", + "description": "Demonstrates loading a PDF with Aspose.Pdf, creating a semi‑transparent TextStamp, centering it on each page, and saving the stamped document.", "tags": [ - "image-stamp", - "accessibility", "pdf", - "Aspose.Pdf", - "page" + "watermark", + "text-stamp", + "opacity", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.ImageStamp", + "Aspose.Pdf.TextStamp", "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.ImageStamp.AlternativeText" + "Aspose.Pdf.HorizontalAlignment", + "Aspose.Pdf.VerticalAlignment" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:26:54Z", "status": "verified" }, - "add-image-stamp-floatingbox-page-4": { - "title": "Add Image Stamp as Background Using FloatingBox on Page 4", - "filename": "add-image-stamp-floatingbox-page-4.cs", - "description": "Demonstrates how to place an image stamp as the background of a FloatingBox on the fourth page of a PDF using Aspose.Pdf.", + "add-custom-sized-page-stamp": { + "title": "Add Custom-Sized Page Stamp to PDF", + "filename": "add-custom-sized-page-stamp.cs", + "description": "Demonstrates creating a PdfPageStamp from an existing page, setting custom width, height, and position, and applying it to another page in a PDF document using Aspose.Pdf.", "tags": [ - "floatingbox", - "image-stamp", - "background", + "stamp", "pdf", - "page4" + "custom-size", + "Aspose.Pdf", + "page-manipulation" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Drawing.FloatingBox", - "Aspose.Pdf.Drawing.Image", - "Aspose.Pdf.Page.Paragraphs.Add", + "Aspose.Pdf.PdfPageStamp", + "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:26:54Z", "status": "verified" }, - "apply-image-stamp-to-all-pdf-pages": { - "title": "Apply Image Stamp to All PDF Pages", - "filename": "apply-image-stamp-to-all-pdf-pages.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, create an ImageStamp, and apply it to every page using a foreach loop before saving the document.", + "add-custom-text-stamp-to-pdf-first-page": { + "title": "Add Custom Text Stamp to PDF First Page", + "filename": "add-custom-text-stamp-to-pdf-first-page.cs", + "description": "Demonstrates how to place a text stamp with a custom font, size, and blue color on the first page of a PDF using Aspose.Pdf.", "tags": [ - "image-stamp", + "text-stamp", "pdf", - "aspose-pdf", - "foreach", - "stamp" + "custom-font", + "color", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.ImageStamp", - "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Text.FontRepository.FindFont", + "Aspose.Pdf.Text.TextStamp", "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], @@ -115,21 +138,46 @@ "generated_at": "2026-08-20T08:26:54Z", "status": "verified" }, - "add-rotated-image-stamp-to-pdf": { - "title": "Add Rotated Image Stamp to PDF", - "filename": "add-rotated-image-stamp-to-pdf.cs", - "description": "Demonstrates loading a PDF, creating an ImageStamp from an image, rotating it 45 degrees, positioning it, adding it to a page, and saving the result.", + "add-diagonal-image-watermark-to-pdf": { + "title": "Add Diagonal Image Watermark to PDF", + "filename": "add-diagonal-image-watermark-to-pdf.cs", + "description": "Demonstrates how to apply an image stamp rotated 90° as a diagonal watermark on every page of a PDF using Aspose.Pdf.", "tags": [ "image-stamp", + "watermark", "rotation", - "pdf", - "csharp", - "aspose-pdf" + "Aspose.Pdf", + "PDF" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.ImageStamp", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Save", "Aspose.Pdf.ImageStamp.RotateAngle", + "Aspose.Pdf.ImageStamp.HorizontalAlignment", + "Aspose.Pdf.ImageStamp.VerticalAlignment", + "Aspose.Pdf.ImageStamp.Opacity" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:26:54Z", + "status": "verified" + }, + "add-diagonal-text-stamp-watermark": { + "title": "Add Diagonal Text Stamp Watermark to PDF", + "filename": "add-diagonal-text-stamp-watermark.cs", + "description": "Demonstrates how to add a semi‑transparent, 45‑degree rotated text stamp as a diagonal watermark on every page of a PDF using Aspose.Pdf.", + "tags": [ + "watermark", + "text-stamp", + "rotation", + "pdf", + "Aspose.Pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Text.TextStamp", + "Aspose.Pdf.Text.FontRepository", "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], @@ -137,39 +185,58 @@ "generated_at": "2026-08-20T08:26:54Z", "status": "verified" }, - "align-image-stamp-top-right-margin": { - "title": "Align Image Stamp to Top‑Right Corner with Margins", - "filename": "align-image-stamp-top-right-margin.cs", - "description": "Shows how to place an image stamp in the top‑right corner of each PDF page using Aspose.Pdf, applying configurable right and top margin offsets.", + "add-faint-overlay-stamp-to-pdf-pages": { + "title": "Add Faint Overlay Stamp to PDF Pages", + "filename": "add-faint-overlay-stamp-to-pdf-pages.cs", + "description": "Shows how to apply a semi‑transparent text stamp as a faint overlay on every page of a PDF using Aspose.Pdf.", "tags": [ - "image-stamp", "pdf", - "alignment", - "margin", + "stamp", + "watermark", + "opacity", "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.ImageStamp", - "Aspose.Pdf.ImageStamp.HorizontalAlignment", - "Aspose.Pdf.ImageStamp.VerticalAlignment", + "Aspose.Pdf.TextStamp", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.TextState" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:26:54Z", "status": "verified" }, - "scale-image-stamp-full-page-width": { - "title": "Scale Image Stamp to Full Page Width", - "filename": "scale-image-stamp-full-page-width.cs", - "description": "Shows how to add an image stamp to every page of a PDF, scaling it to the page width while preserving its original aspect ratio.", + "add-faint-text-overlay-stamp-to-pdf-pages": { + "title": "Add Faint Text Overlay Stamp To Pdf Pages", + "filename": "add-faint-text-overlay-stamp-to-pdf-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-fixed-size-image-stamp-to-pdf-pages": { + "title": "Add Fixed Size Image Stamp To Pdf Pages", + "filename": "add-fixed-size-image-stamp-to-pdf-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-full-page-image-watermark-to-pdf": { + "title": "Add Full-Page Image Watermark to PDF", + "filename": "add-full-page-image-watermark-to-pdf.cs", + "description": "Demonstrates how to apply an image stamp as a full‑page background watermark to every page of a PDF using Aspose.Pdf.", "tags": [ + "watermark", "image-stamp", - "scaling", - "aspect-ratio", "pdf", - "Aspose.Pdf" + "aspose-pdf", + "full-page" ], "apis_used": [ "Aspose.Pdf.Document", @@ -178,147 +245,195 @@ "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:26:54Z", "status": "verified" }, - "add-image-stamp-from-memory-stream-to-pdf": { - "title": "Add Image Stamp from Memory Stream to PDF", - "filename": "add-image-stamp-from-memory-stream-to-pdf.cs", - "description": "Demonstrates how to load an image into a MemoryStream and apply it as an ImageStamp to every page of a PDF using Aspose.Pdf.", + "add-full-page-image-watermark": { + "title": "Add Full Page Image Watermark", + "filename": "add-full-page-image-watermark.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-fully-opaque-image-watermark": { + "title": "Add Fully Opaque Image Watermark", + "filename": "add-fully-opaque-image-watermark.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-global-text-stamp-to-all-pdf-pages": { + "title": "Add Global Text Stamp to All PDF Pages", + "filename": "add-global-text-stamp-to-all-pdf-pages.cs", + "description": "Shows how to create a TextStamp and apply it to every page of a PDF document using Aspose.Pdf's AddStamp method.", "tags": [ - "image-stamp", - "memory-stream", + "text-stamp", "pdf", - "Aspose.Pdf", - "watermark" + "watermark", + "aspose-pdf", + "global-stamp" ], "apis_used": [ - "Aspose.Pdf.ImageStamp", "Aspose.Pdf.Document", + "Aspose.Pdf.Text.TextStamp", "Aspose.Pdf.Page", "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:26:54Z", "status": "verified" }, - "add-low-quality-image-stamp-to-pdf": { - "title": "Add Low-Quality Image Stamp to PDF", - "filename": "add-low-quality-image-stamp-to-pdf.cs", - "description": "Shows how to load a PDF, create an ImageStamp with reduced quality (10 %) and apply it to every page, then save the stamped document.", + "add-image-background-floatingbox-page-4": { + "title": "Add Image Background Floatingbox Page 4", + "filename": "add-image-background-floatingbox-page-4.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-image-stamp-alt-text-pdfa": { + "title": "Add Image Stamp with Alt Text for PDF/A‑1b", + "filename": "add-image-stamp-alt-text-pdfa.cs", + "description": "Demonstrates how to place an image stamp with alternative text on every page of a PDF and then convert the document to PDF/A‑1b compliance using Aspose.Pdf.", "tags": [ - "pdf", "image-stamp", - "quality", - "aspose", + "pdfa", + "accessibility", + "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.ImageStamp", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.ImageStamp.Quality", - "Aspose.Pdf.ImageStamp.HorizontalAlignment", - "Aspose.Pdf.ImageStamp.VerticalAlignment", + "Aspose.Pdf.Document.Convert", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:26:54Z", "status": "verified" }, - "add-opaque-image-watermark-to-pdf": { - "title": "Add Fully Opaque Image Watermark to PDF", - "filename": "add-opaque-image-watermark-to-pdf.cs", - "description": "Demonstrates how to apply a fully opaque image stamp as a visual watermark on every page of a PDF using Aspose.Pdf.", + "add-image-stamp-alt-text-pdfa1b": { + "title": "Add Image Stamp Alt Text Pdfa1B", + "filename": "add-image-stamp-alt-text-pdfa1b.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-image-stamp-annotation-to-pdf": { + "title": "Add Image Stamp Annotation to PDF", + "filename": "add-image-stamp-annotation-to-pdf.cs", + "description": "Shows how to place an image as a StampAnnotation on a PDF page while preserving existing annotations.", "tags": [ - "image-watermark", - "pdf", - "aspose-pdf", "stamp", - "opacity" + "annotation", + "image", + "pdf", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.ImageStamp", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Page.PageInfo", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.StampAnnotation", + "Aspose.Pdf.Color", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:26:54Z", "status": "verified" }, - "add-diagonal-image-watermark-to-pdf": { - "title": "Add Diagonal Image Watermark to PDF", - "filename": "add-diagonal-image-watermark-to-pdf.cs", - "description": "Demonstrates how to apply an image stamp rotated 90° as a diagonal watermark on every page of a PDF using Aspose.Pdf.", + "add-image-stamp-flatten-annotations": { + "title": "Add Image Stamp and Flatten Annotations to Create Read‑Only PDF", + "filename": "add-image-stamp-flatten-annotations.cs", + "description": "Demonstrates how to add an image stamp to every page of a PDF and then flatten all annotations so the resulting file becomes read‑only.", "tags": [ "image-stamp", - "watermark", - "rotation", - "Aspose.Pdf", - "PDF" + "flatten-annotations", + "read-only", + "pdf", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.ImageStamp", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.ImageStamp", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.ImageStamp.RotateAngle", - "Aspose.Pdf.ImageStamp.HorizontalAlignment", - "Aspose.Pdf.ImageStamp.VerticalAlignment", - "Aspose.Pdf.ImageStamp.Opacity" + "Aspose.Pdf.Annotations.Annotation.Flatten", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:26:54Z", "status": "verified" }, - "add-upside-down-image-stamp": { - "title": "Add Upside-Down Image Stamp to PDF", - "filename": "add-upside-down-image-stamp.cs", - "description": "Demonstrates how to place an image stamp rotated 180 degrees on a PDF page using Aspose.Pdf.", + "add-image-stamp-floatingbox-page-4": { + "title": "Add Image Stamp as Background Using FloatingBox on Page 4", + "filename": "add-image-stamp-floatingbox-page-4.cs", + "description": "Demonstrates how to place an image stamp as the background of a FloatingBox on the fourth page of a PDF using Aspose.Pdf.", "tags": [ + "floatingbox", "image-stamp", - "rotation", + "background", "pdf", - "aspose-pdf", - "csharp" + "page4" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.ImageStamp", - "Aspose.Pdf.Rotation", - "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Page", + "Aspose.Pdf.Drawing.FloatingBox", + "Aspose.Pdf.Drawing.Image", + "Aspose.Pdf.Page.Paragraphs.Add", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:26:54Z", "status": "verified" }, - "place-image-stamp-custom-coordinates": { - "title": "Place Image Stamp at Custom Coordinates", - "filename": "place-image-stamp-custom-coordinates.cs", - "description": "Demonstrates how to add an image stamp to a PDF page at specific X and Y positions using Aspose.Pdf.", + "add-image-stamp-from-memory-stream-to-pdf": { + "title": "Add Image Stamp from Memory Stream to PDF", + "filename": "add-image-stamp-from-memory-stream-to-pdf.cs", + "description": "Demonstrates how to load an image into a MemoryStream and apply it as an ImageStamp to every page of a PDF using Aspose.Pdf.", "tags": [ "image-stamp", + "memory-stream", "pdf", - "positioning", - "aspose-pdf", - "csharp" + "Aspose.Pdf", + "watermark" ], "apis_used": [ + "Aspose.Pdf.ImageStamp", "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.ImageStamp", "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:26:54Z", "status": "verified" }, + "add-image-stamp-from-memory-stream": { + "title": "Add Image Stamp From Memory Stream", + "filename": "add-image-stamp-from-memory-stream.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "add-image-stamp-percentage-position": { "title": "Add Image Stamp with Percentage‑Based Positioning", "filename": "add-image-stamp-percentage-position.cs", @@ -342,69 +457,77 @@ "generated_at": "2026-08-20T08:26:54Z", "status": "verified" }, - "fit-image-stamp-within-rectangle": { - "title": "Fit Image Stamp Within a Defined Rectangle", - "filename": "fit-image-stamp-within-rectangle.cs", - "description": "Demonstrates how to create an in‑memory image and place it as an ImageStamp that exactly fits inside a specified rectangle on a PDF page using Aspose.Pdf.", + "add-image-stamp-preserve-acroform-fields": { + "title": "Add Image Stamp While Preserving AcroForm Fields", + "filename": "add-image-stamp-preserve-acroform-fields.cs", + "description": "Demonstrates how to apply an ImageStamp to every page of a PDF using Aspose.Pdf while keeping existing AcroForm fields intact.", "tags": [ "image-stamp", + "acroform", "pdf", - "rectangle", - "positioning", + "preserve-fields", "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.ImageStamp", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.PageCollection", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.HorizontalAlignment", + "Aspose.Pdf.VerticalAlignment" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:26:54Z", "status": "verified" }, - "apply-fixed-size-image-stamp-to-pdf-pages": { - "title": "Apply Fixed-Size Image Stamp to PDF Pages", - "filename": "apply-fixed-size-image-stamp-to-pdf-pages.cs", - "description": "Demonstrates how to add an image stamp with constant width and height to every page of a PDF using Aspose.Pdf, independent of page dimensions.", + "add-image-stamp-preserve-annotations": { + "title": "Add Image Stamp Preserve Annotations", + "filename": "add-image-stamp-preserve-annotations.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-image-stamp-preserve-bookmarks": { + "title": "Add Image Stamp While Preserving Bookmarks and Outline", + "filename": "add-image-stamp-preserve-bookmarks.cs", + "description": "Demonstrates how to load an existing PDF, apply a semi‑transparent image stamp to every page, and save the document while keeping its bookmarks and outline intact.", "tags": [ "image-stamp", "pdf", - "fixed-size", - "Aspose.Pdf", - "csharp" + "bookmarks", + "outline", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.ImageStamp", "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Pages" + "Aspose.Pdf.HorizontalAlignment", + "Aspose.Pdf.VerticalAlignment" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:26:54Z", "status": "verified" }, - "add-image-stamp-unicode-alt-text": { - "title": "Add Image Stamp with Unicode Alternative Text to PDF", - "filename": "add-image-stamp-unicode-alt-text.cs", - "description": "Demonstrates how to place an image stamp on a PDF page and set multilingual Unicode alternative text for accessibility using Aspose.Pdf.", + "add-image-stamp-preserve-embedded-files": { + "title": "Add Image Stamp to PDF While Preserving Embedded Files", + "filename": "add-image-stamp-preserve-embedded-files.cs", + "description": "Demonstrates how to load a PDF, iterate through its pages, add an image stamp to each page, and save the document while keeping any embedded files intact.", "tags": [ "image-stamp", - "alternative-text", - "accessibility", "pdf", - "Aspose.Pdf" + "embedded-files", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.ImageStamp", - "Aspose.Pdf.ImageStamp.AlternativeText", - "Aspose.Pdf.ImageStamp.HorizontalAlignment", - "Aspose.Pdf.ImageStamp.VerticalAlignment", - "Aspose.Pdf.ImageStamp.Opacity", "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], @@ -412,97 +535,110 @@ "generated_at": "2026-08-20T08:26:54Z", "status": "verified" }, - "add-image-stamp-alt-text-pdfa": { - "title": "Add Image Stamp with Alt Text for PDF/A‑1b", - "filename": "add-image-stamp-alt-text-pdfa.cs", - "description": "Demonstrates how to place an image stamp with alternative text on every page of a PDF and then convert the document to PDF/A‑1b compliance using Aspose.Pdf.", + "add-image-stamp-preserve-javascript": { + "title": "Add Image Stamp to PDF While Preserving JavaScript Actions", + "filename": "add-image-stamp-preserve-javascript.cs", + "description": "Demonstrates loading a PDF, creating an ImageStamp, applying it to every page, and saving the document while keeping any existing JavaScript actions intact.", "tags": [ "image-stamp", - "pdfa", - "accessibility", + "javascript", + "pdf", "aspose-pdf", - "csharp" + "preserve" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.ImageStamp", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Convert", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.HorizontalAlignment", + "Aspose.Pdf.VerticalAlignment" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:26:54Z", "status": "verified" }, - "add-image-stamp-to-encrypted-pdf": { - "title": "Add Image Stamp to Encrypted PDF", - "filename": "add-image-stamp-to-encrypted-pdf.cs", - "description": "Shows how to open an encrypted PDF with a password, decrypt it, place an image stamp on a page, and save the modified document.", + "add-image-stamp-preserve-page-labels": { + "title": "Add Image Stamp to PDF While Preserving Page Labels", + "filename": "add-image-stamp-preserve-page-labels.cs", + "description": "Demonstrates how to load a PDF, create an ImageStamp, apply it to every page, and save the document while keeping existing page labels unchanged.", "tags": [ - "pdf", "image-stamp", - "encryption", + "pdf", "aspose-pdf", - "csharp" + "page-labels", + "watermark" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Decrypt", "Aspose.Pdf.ImageStamp", "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Page", "Aspose.Pdf.HorizontalAlignment", "Aspose.Pdf.VerticalAlignment" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:26:54Z", "status": "verified" }, - "add-image-stamp-to-signed-pdf": { - "title": "Add Image Stamp to Signed PDF without Invalidating Signature", - "filename": "add-image-stamp-to-signed-pdf.cs", - "description": "Shows how to place a semi‑transparent image stamp on a digitally signed PDF using Aspose.Pdf while preserving the existing signature via incremental save.", + "add-image-stamp-preserve-xmp-metadata": { + "title": "Add Image Stamp While Preserving XMP Metadata", + "filename": "add-image-stamp-preserve-xmp-metadata.cs", + "description": "Demonstrates how to load a PDF, retrieve its XMP metadata, apply an image stamp to every page, restore the original metadata, and save the result.", "tags": [ "image-stamp", - "digital-signature", - "incremental-save", - "Aspose.Pdf", - "PDF" + "xmp", + "pdf", + "aspose-pdf", + "metadata" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Annotations.ImageStamp", "Aspose.Pdf.Page", + "Aspose.Pdf.ImageStamp", + "Aspose.Pdf.Document.GetXmpMetadata", + "Aspose.Pdf.Document.SetXmpMetadata", "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:26:54Z", "status": "verified" }, - "add-image-stamp-annotation-to-pdf": { - "title": "Add Image Stamp Annotation to PDF", - "filename": "add-image-stamp-annotation-to-pdf.cs", - "description": "Shows how to place an image as a StampAnnotation on a PDF page while preserving existing annotations.", + "add-image-stamp-to-encrypted-pdf": { + "title": "Add Image Stamp to Encrypted PDF", + "filename": "add-image-stamp-to-encrypted-pdf.cs", + "description": "Shows how to open an encrypted PDF with a password, decrypt it, place an image stamp on a page, and save the modified document.", "tags": [ - "stamp", - "annotation", - "image", "pdf", - "Aspose.Pdf" + "image-stamp", + "encryption", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.StampAnnotation", - "Aspose.Pdf.Color", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Decrypt", + "Aspose.Pdf.ImageStamp", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.HorizontalAlignment", + "Aspose.Pdf.VerticalAlignment" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:26:54Z", "status": "verified" }, + "add-image-stamp-to-page-two": { + "title": "Add Image Stamp To Page Two", + "filename": "add-image-stamp-to-page-two.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "add-image-stamp-to-pdf-form": { "title": "Add Image Stamp to PDF Form While Preserving Fields", "filename": "add-image-stamp-to-pdf-form.cs", @@ -525,115 +661,88 @@ "generated_at": "2026-08-20T08:26:54Z", "status": "verified" }, - "add-image-stamp-flatten-annotations": { - "title": "Add Image Stamp and Flatten Annotations to Create Read‑Only PDF", - "filename": "add-image-stamp-flatten-annotations.cs", - "description": "Demonstrates how to add an image stamp to every page of a PDF and then flatten all annotations so the resulting file becomes read‑only.", - "tags": [ - "image-stamp", - "flatten-annotations", - "read-only", - "pdf", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.ImageStamp", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Annotations.Annotation.Flatten", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:26:54Z", - "status": "verified" - }, - "add-image-stamp-preserve-bookmarks": { - "title": "Add Image Stamp While Preserving Bookmarks and Outline", - "filename": "add-image-stamp-preserve-bookmarks.cs", - "description": "Demonstrates how to load an existing PDF, apply a semi‑transparent image stamp to every page, and save the document while keeping its bookmarks and outline intact.", + "add-image-stamp-to-pdf-page": { + "title": "Add Image Stamp to PDF Page with Quality and Opacity", + "filename": "add-image-stamp-to-pdf-page.cs", + "description": "Shows how to place an image stamp on the second page of a PDF, configuring 100% quality and 0.8 opacity using Aspose.Pdf.", "tags": [ "image-stamp", "pdf", - "bookmarks", - "outline", + "opacity", + "quality", "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.ImageStamp", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.HorizontalAlignment", - "Aspose.Pdf.VerticalAlignment" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T08:26:54Z", - "status": "verified" - }, - "add-image-stamp-preserve-page-labels": { - "title": "Add Image Stamp to PDF While Preserving Page Labels", - "filename": "add-image-stamp-preserve-page-labels.cs", - "description": "Demonstrates how to load a PDF, create an ImageStamp, apply it to every page, and save the document while keeping existing page labels unchanged.", - "tags": [ - "image-stamp", - "pdf", - "aspose-pdf", - "page-labels", - "watermark" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.ImageStamp", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Page", - "Aspose.Pdf.HorizontalAlignment", - "Aspose.Pdf.VerticalAlignment" + "Aspose.Pdf.Facades.ImageStamp", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.ImageStamp.Quality", + "Aspose.Pdf.ImageStamp.Opacity" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:26:54Z", "status": "verified" }, - "add-image-stamp-preserve-xmp-metadata": { - "title": "Add Image Stamp While Preserving XMP Metadata", - "filename": "add-image-stamp-preserve-xmp-metadata.cs", - "description": "Demonstrates how to load a PDF, retrieve its XMP metadata, apply an image stamp to every page, restore the original metadata, and save the result.", + "add-image-stamp-to-pdf-with-form-fields": { + "title": "Add Image Stamp To Pdf With Form Fields", + "filename": "add-image-stamp-to-pdf-with-form-fields.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-image-stamp-to-signed-pdf": { + "title": "Add Image Stamp to Signed PDF without Invalidating Signature", + "filename": "add-image-stamp-to-signed-pdf.cs", + "description": "Shows how to place a semi‑transparent image stamp on a digitally signed PDF using Aspose.Pdf while preserving the existing signature via incremental save.", "tags": [ "image-stamp", - "xmp", - "pdf", - "aspose-pdf", - "metadata" + "digital-signature", + "incremental-save", + "Aspose.Pdf", + "PDF" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Annotations.ImageStamp", "Aspose.Pdf.Page", - "Aspose.Pdf.ImageStamp", - "Aspose.Pdf.Document.GetXmpMetadata", - "Aspose.Pdf.Document.SetXmpMetadata", "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:26:54Z", "status": "verified" }, - "add-image-stamp-preserve-embedded-files": { - "title": "Add Image Stamp to PDF While Preserving Embedded Files", - "filename": "add-image-stamp-preserve-embedded-files.cs", - "description": "Demonstrates how to load a PDF, iterate through its pages, add an image stamp to each page, and save the document while keeping any embedded files intact.", + "add-image-stamp-top-right-corner": { + "title": "Add Image Stamp Top Right Corner", + "filename": "add-image-stamp-top-right-corner.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-image-stamp-unicode-alt-text": { + "title": "Add Image Stamp with Unicode Alternative Text to PDF", + "filename": "add-image-stamp-unicode-alt-text.cs", + "description": "Demonstrates how to place an image stamp on a PDF page and set multilingual Unicode alternative text for accessibility using Aspose.Pdf.", "tags": [ "image-stamp", + "alternative-text", + "accessibility", "pdf", - "embedded-files", - "aspose-pdf", - "csharp" + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.ImageStamp", + "Aspose.Pdf.ImageStamp.AlternativeText", + "Aspose.Pdf.ImageStamp.HorizontalAlignment", + "Aspose.Pdf.ImageStamp.VerticalAlignment", + "Aspose.Pdf.ImageStamp.Opacity", "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], @@ -641,92 +750,111 @@ "generated_at": "2026-08-20T08:26:54Z", "status": "verified" }, - "add-image-stamp-preserve-javascript": { - "title": "Add Image Stamp to PDF While Preserving JavaScript Actions", - "filename": "add-image-stamp-preserve-javascript.cs", - "description": "Demonstrates loading a PDF, creating an ImageStamp, applying it to every page, and saving the document while keeping any existing JavaScript actions intact.", + "add-image-stamp-with-alt-text-to-pdf-page": { + "title": "Add Image Stamp with Alt Text to PDF Page", + "filename": "add-image-stamp-with-alt-text-to-pdf-page.cs", + "description": "Demonstrates how to add an image stamp with alternative text for accessibility to the third page of a PDF using Aspose.Pdf.", "tags": [ "image-stamp", - "javascript", + "accessibility", "pdf", - "aspose-pdf", - "preserve" + "Aspose.Pdf", + "page" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.ImageStamp", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.HorizontalAlignment", - "Aspose.Pdf.VerticalAlignment" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.ImageStamp.AlternativeText" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:26:54Z", "status": "verified" }, - "add-image-stamp-preserve-acroform-fields": { - "title": "Add Image Stamp While Preserving AcroForm Fields", - "filename": "add-image-stamp-preserve-acroform-fields.cs", - "description": "Demonstrates how to apply an ImageStamp to every page of a PDF using Aspose.Pdf while keeping existing AcroForm fields intact.", + "add-image-stamp-with-unicode-alt-text": { + "title": "Add Image Stamp With Unicode Alt Text", + "filename": "add-image-stamp-with-unicode-alt-text.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-low-quality-image-stamp-to-pdf": { + "title": "Add Low-Quality Image Stamp to PDF", + "filename": "add-low-quality-image-stamp-to-pdf.cs", + "description": "Shows how to load a PDF, create an ImageStamp with reduced quality (10 %) and apply it to every page, then save the stamped document.", "tags": [ - "image-stamp", - "acroform", "pdf", - "preserve-fields", - "Aspose.Pdf" + "image-stamp", + "quality", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.ImageStamp", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.HorizontalAlignment", - "Aspose.Pdf.VerticalAlignment" + "Aspose.Pdf.ImageStamp.Quality", + "Aspose.Pdf.ImageStamp.HorizontalAlignment", + "Aspose.Pdf.ImageStamp.VerticalAlignment", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:26:54Z", "status": "verified" }, - "add-custom-text-stamp-to-pdf-first-page": { - "title": "Add Custom Text Stamp to PDF First Page", - "filename": "add-custom-text-stamp-to-pdf-first-page.cs", - "description": "Demonstrates how to place a text stamp with a custom font, size, and blue color on the first page of a PDF using Aspose.Pdf.", + "add-multi-line-text-stamp-custom-line-spacing": { + "title": "Add Multi Line Text Stamp Custom Line Spacing", + "filename": "add-multi-line-text-stamp-custom-line-spacing.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-multi-line-text-stamp": { + "title": "Add Multi-Line Text Stamp with Custom Line Spacing", + "filename": "add-multi-line-text-stamp.cs", + "description": "Shows how to place a multi-line disclaimer text stamp on every page of a PDF and customize its appearance, including alignment, opacity, font, and optional line spacing.", "tags": [ "text-stamp", + "multi-line", "pdf", - "custom-font", - "color", - "aspose-pdf" + "aspose-pdf", + "line-spacing" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Text.FontRepository.FindFont", - "Aspose.Pdf.Text.TextStamp", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Text.TextStamp", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.FontRepository.FindFont" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:26:54Z", "status": "verified" }, - "add-text-stamp-auto-adjust-font": { - "title": "Add Text Stamp with Auto‑Adjusting Font Size to PDF", - "filename": "add-text-stamp-auto-adjust-font.cs", - "description": "Demonstrates how to place a text stamp on each page of a PDF and automatically adjust the font size so the text fits within a defined rectangle.", + "add-opaque-image-watermark-to-pdf": { + "title": "Add Fully Opaque Image Watermark to PDF", + "filename": "add-opaque-image-watermark-to-pdf.cs", + "description": "Demonstrates how to apply a fully opaque image stamp as a visual watermark on every page of a PDF using Aspose.Pdf.", "tags": [ - "text-stamp", - "auto-font-size", + "image-watermark", "pdf", "aspose-pdf", - "stamp" + "stamp", + "opacity" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextStamp", + "Aspose.Pdf.ImageStamp", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.HorizontalAlignment", - "Aspose.Pdf.VerticalAlignment" + "Aspose.Pdf.Page.PageInfo", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:26:54Z", @@ -757,44 +885,21 @@ "generated_at": "2026-08-20T08:26:54Z", "status": "verified" }, - "add-bold-outlined-text-stamp": { - "title": "Add Bold Outlined Text Stamp to PDF", - "filename": "add-bold-outlined-text-stamp.cs", - "description": "Shows how to create a text stamp with fill‑stroke rendering to produce bold outlined text on a PDF page using Aspose.Pdf.", - "tags": [ - "text-stamp", - "outline", - "fill-stroke", - "pdf", - "Aspose.Pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextStamp", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Text.FontRepository.FindFont", - "Aspose.Pdf.Text.TextRenderingMode" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:26:54Z", - "status": "verified" - }, - "add-bottom-left-text-stamp": { - "title": "Add Bottom‑Left Text Stamp to PDF", - "filename": "add-bottom-left-text-stamp.cs", - "description": "Shows how to place a text stamp at the bottom‑left corner of each PDF page with a 10‑point margin using Aspose.Pdf.", + "add-page-stamp-to-specific-pdf-pages": { + "title": "Add Page Stamp to Specific PDF Pages", + "filename": "add-page-stamp-to-specific-pdf-pages.cs", + "description": "Shows how to create a page stamp from a source page and apply it to a range of pages (5‑10) in a PDF document using Aspose.Pdf.", "tags": [ - "text-stamp", "pdf", - "alignment", - "margin", - "Aspose.Pdf" + "stamp", + "page-range", + "csharp", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.TextStamp", - "Aspose.Pdf.Annotations.HorizontalAlignment", - "Aspose.Pdf.Annotations.VerticalAlignment", + "Aspose.Pdf.Page", + "Aspose.Pdf.PdfPageStamp", "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], @@ -802,93 +907,71 @@ "generated_at": "2026-08-20T08:26:54Z", "status": "verified" }, - "add-rotated-text-watermark": { - "title": "Add Rotated Text Watermark to PDF", - "filename": "add-rotated-text-watermark.cs", - "description": "Demonstrates creating a TextStamp, rotating it 30 degrees, customizing its appearance, and applying it to every page of a PDF using Aspose.Pdf.", + "add-rotated-image-stamp-to-pdf": { + "title": "Add Rotated Image Stamp to PDF", + "filename": "add-rotated-image-stamp-to-pdf.cs", + "description": "Demonstrates loading a PDF, creating an ImageStamp from an image, rotating it 45 degrees, positioning it, adding it to a page, and saving the result.", "tags": [ - "pdf", - "watermark", + "image-stamp", "rotation", - "text-stamp", - "Aspose" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextStamp", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.FontRepository.FindFont", - "Aspose.Pdf.Color" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T08:26:54Z", - "status": "verified" - }, - "add-confidential-text-stamp-to-pdf": { - "title": "Add Confidential Text Stamp to PDF", - "filename": "add-confidential-text-stamp-to-pdf.cs", - "description": "Demonstrates loading a PDF with Aspose.Pdf, creating a semi‑transparent TextStamp, centering it on each page, and saving the stamped document.", - "tags": [ "pdf", - "watermark", - "text-stamp", - "opacity", + "csharp", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.TextStamp", + "Aspose.Pdf.ImageStamp", + "Aspose.Pdf.ImageStamp.RotateAngle", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.HorizontalAlignment", - "Aspose.Pdf.VerticalAlignment" + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:26:54Z", "status": "verified" }, - "add-text-stamp-with-background-box": { - "title": "Add Text Stamp with Background Box to PDF Pages", - "filename": "add-text-stamp-with-background-box.cs", - "description": "Demonstrates how to add a semi‑transparent text stamp with a black background box and white foreground text to every page of a PDF using Aspose.Pdf.", + "add-rotated-text-stamp-to-pdf-pages": { + "title": "Add Rotated Text Stamp to PDF Pages", + "filename": "add-rotated-text-stamp-to-pdf-pages.cs", + "description": "Shows how to load a PDF, create a TextStamp, rotate it 90°, apply it to every page, and save the modified document.", "tags": [ - "stamp", - "watermark", + "text-stamp", + "rotation", "pdf", - "textstamp", - "background" + "watermark", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextStamp", - "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.TextStamp", + "Aspose.Pdf.Annotations.Rotation", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Color" + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:26:54Z", "status": "verified" }, - "add-multi-line-text-stamp": { - "title": "Add Multi-Line Text Stamp with Custom Line Spacing", - "filename": "add-multi-line-text-stamp.cs", - "description": "Shows how to place a multi-line disclaimer text stamp on every page of a PDF and customize its appearance, including alignment, opacity, font, and optional line spacing.", + "add-rotated-text-watermark": { + "title": "Add Rotated Text Watermark to PDF", + "filename": "add-rotated-text-watermark.cs", + "description": "Demonstrates creating a TextStamp, rotating it 30 degrees, customizing its appearance, and applying it to every page of a PDF using Aspose.Pdf.", "tags": [ - "text-stamp", - "multi-line", "pdf", - "aspose-pdf", - "line-spacing" + "watermark", + "rotation", + "text-stamp", + "Aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Text.TextStamp", + "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.FontRepository.FindFont" + "Aspose.Pdf.FontRepository.FindFont", + "Aspose.Pdf.Color" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:26:54Z", "status": "verified" }, @@ -914,21 +997,32 @@ "generated_at": "2026-08-20T08:26:54Z", "status": "verified" }, - "add-full-page-image-watermark-to-pdf": { - "title": "Add Full-Page Image Watermark to PDF", - "filename": "add-full-page-image-watermark-to-pdf.cs", - "description": "Demonstrates how to apply an image stamp as a full‑page background watermark to every page of a PDF using Aspose.Pdf.", + "add-semi-transparent-logo-stamp-to-first-pdf-page": { + "title": "Add Semi Transparent Logo Stamp To First Pdf Page", + "filename": "add-semi-transparent-logo-stamp-to-first-pdf-page.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-semi-transparent-logo-stamp-to-pdf": { + "title": "Add Semi-Transparent Logo Stamp to PDF", + "filename": "add-semi-transparent-logo-stamp-to-pdf.cs", + "description": "Shows how to place a semi‑transparent image (logo) stamp on the first page of a PDF document using Aspose.Pdf.", "tags": [ - "watermark", - "image-stamp", "pdf", + "image-stamp", + "opacity", "aspose-pdf", - "full-page" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.ImageStamp", + "Aspose.Pdf.HorizontalAlignment", + "Aspose.Pdf.VerticalAlignment", "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], @@ -936,88 +1030,99 @@ "generated_at": "2026-08-20T08:26:54Z", "status": "verified" }, - "add-diagonal-text-stamp-watermark": { - "title": "Add Diagonal Text Stamp Watermark to PDF", - "filename": "add-diagonal-text-stamp-watermark.cs", - "description": "Demonstrates how to add a semi‑transparent, 45‑degree rotated text stamp as a diagonal watermark on every page of a PDF using Aspose.Pdf.", + "add-text-stamp-auto-adjust-font-size": { + "title": "Add Text Stamp Auto Adjust Font Size", + "filename": "add-text-stamp-auto-adjust-font-size.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-text-stamp-auto-adjust-font": { + "title": "Add Text Stamp with Auto‑Adjusting Font Size to PDF", + "filename": "add-text-stamp-auto-adjust-font.cs", + "description": "Demonstrates how to place a text stamp on each page of a PDF and automatically adjust the font size so the text fits within a defined rectangle.", "tags": [ - "watermark", "text-stamp", - "rotation", + "auto-font-size", "pdf", - "Aspose.Pdf" + "aspose-pdf", + "stamp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Text.TextStamp", - "Aspose.Pdf.Text.FontRepository", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.HorizontalAlignment", + "Aspose.Pdf.VerticalAlignment" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:26:54Z", "status": "verified" }, - "add-background-image-stamp-to-pdf": { - "title": "Add Background Image Stamp to PDF Pages", - "filename": "add-background-image-stamp-to-pdf.cs", - "description": "Shows how to place an image stamp behind the existing content of each PDF page by setting the Background property to true using Aspose.Pdf.", + "add-text-stamp-with-background-box": { + "title": "Add Text Stamp with Background Box to PDF Pages", + "filename": "add-text-stamp-with-background-box.cs", + "description": "Demonstrates how to add a semi‑transparent text stamp with a black background box and white foreground text to every page of a PDF using Aspose.Pdf.", "tags": [ - "image-stamp", - "background", - "pdf", + "stamp", "watermark", - "Aspose.Pdf" + "pdf", + "textstamp", + "background" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.ImageStamp", + "Aspose.Pdf.Text.TextStamp", + "Aspose.Pdf.Text.TextState", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Page", - "Aspose.Pdf.ImageStamp.Background" + "Aspose.Pdf.Color" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:26:54Z", "status": "verified" }, - "add-faint-overlay-stamp-to-pdf-pages": { - "title": "Add Faint Overlay Stamp to PDF Pages", - "filename": "add-faint-overlay-stamp-to-pdf-pages.cs", - "description": "Shows how to apply a semi‑transparent text stamp as a faint overlay on every page of a PDF using Aspose.Pdf.", + "add-upside-down-image-stamp": { + "title": "Add Upside-Down Image Stamp to PDF", + "filename": "add-upside-down-image-stamp.cs", + "description": "Demonstrates how to place an image stamp rotated 180 degrees on a PDF page using Aspose.Pdf.", "tags": [ + "image-stamp", + "rotation", "pdf", - "stamp", - "watermark", - "opacity", - "Aspose.Pdf" + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.TextStamp", + "Aspose.Pdf.ImageStamp", + "Aspose.Pdf.Rotation", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.TextState" + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:26:54Z", "status": "verified" }, - "add-rotated-text-stamp-to-pdf-pages": { - "title": "Add Rotated Text Stamp to PDF Pages", - "filename": "add-rotated-text-stamp-to-pdf-pages.cs", - "description": "Shows how to load a PDF, create a TextStamp, rotate it 90°, apply it to every page, and save the modified document.", + "align-image-stamp-top-right-margin": { + "title": "Align Image Stamp to Top‑Right Corner with Margins", + "filename": "align-image-stamp-top-right-margin.cs", + "description": "Shows how to place an image stamp in the top‑right corner of each PDF page using Aspose.Pdf, applying configurable right and top margin offsets.", "tags": [ - "text-stamp", - "rotation", + "image-stamp", "pdf", - "watermark", + "alignment", + "margin", "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.TextStamp", - "Aspose.Pdf.Annotations.Rotation", + "Aspose.Pdf.Facades.ImageStamp", + "Aspose.Pdf.ImageStamp.HorizontalAlignment", + "Aspose.Pdf.ImageStamp.VerticalAlignment", "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], @@ -1025,43 +1130,63 @@ "generated_at": "2026-08-20T08:26:54Z", "status": "verified" }, - "add-custom-sized-page-stamp": { - "title": "Add Custom-Sized Page Stamp to PDF", - "filename": "add-custom-sized-page-stamp.cs", - "description": "Demonstrates creating a PdfPageStamp from an existing page, setting custom width, height, and position, and applying it to another page in a PDF document using Aspose.Pdf.", + "align-text-stamp-bottom-left-margin": { + "title": "Align Text Stamp Bottom Left Margin", + "filename": "align-text-stamp-bottom-left-margin.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "apply-fixed-size-image-stamp-to-pdf-pages": { + "title": "Apply Fixed-Size Image Stamp to PDF Pages", + "filename": "apply-fixed-size-image-stamp-to-pdf-pages.cs", + "description": "Demonstrates how to add an image stamp with constant width and height to every page of a PDF using Aspose.Pdf, independent of page dimensions.", "tags": [ - "stamp", + "image-stamp", "pdf", - "custom-size", + "fixed-size", "Aspose.Pdf", - "page-manipulation" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.PdfPageStamp", + "Aspose.Pdf.ImageStamp", "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Pages" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:26:54Z", "status": "verified" }, - "add-page-stamp-to-specific-pdf-pages": { - "title": "Add Page Stamp to Specific PDF Pages", - "filename": "add-page-stamp-to-specific-pdf-pages.cs", - "description": "Shows how to create a page stamp from a source page and apply it to a range of pages (5‑10) in a PDF document using Aspose.Pdf.", + "apply-image-stamp-percentage-offsets": { + "title": "Apply Image Stamp Percentage Offsets", + "filename": "apply-image-stamp-percentage-offsets.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "apply-image-stamp-to-all-pdf-pages": { + "title": "Apply Image Stamp to All PDF Pages", + "filename": "apply-image-stamp-to-all-pdf-pages.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, create an ImageStamp, and apply it to every page using a foreach loop before saving the document.", "tags": [ + "image-stamp", "pdf", - "stamp", - "page-range", - "csharp", - "aspose" + "aspose-pdf", + "foreach", + "stamp" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.ImageStamp", "Aspose.Pdf.Page", - "Aspose.Pdf.PdfPageStamp", "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], @@ -1069,25 +1194,25 @@ "generated_at": "2026-08-20T08:26:54Z", "status": "verified" }, - "add-global-text-stamp-to-all-pdf-pages": { - "title": "Add Global Text Stamp to All PDF Pages", - "filename": "add-global-text-stamp-to-all-pdf-pages.cs", - "description": "Shows how to create a TextStamp and apply it to every page of a PDF document using Aspose.Pdf's AddStamp method.", + "apply-pdf-page-background-stamp": { + "title": "Apply PDF Page as Background Stamp", + "filename": "apply-pdf-page-background-stamp.cs", + "description": "Demonstrates how to use a page from one PDF as a background stamp for every page of another PDF using Aspose.Pdf.", "tags": [ - "text-stamp", "pdf", - "watermark", - "aspose-pdf", - "global-stamp" + "background", + "stamp", + "page", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextStamp", "Aspose.Pdf.Page", + "Aspose.Pdf.PdfPageStamp", "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:26:54Z", "status": "verified" }, @@ -1113,27 +1238,122 @@ "generated_at": "2026-08-20T08:26:54Z", "status": "verified" }, - "apply-pdf-page-background-stamp": { - "title": "Apply PDF Page as Background Stamp", - "filename": "apply-pdf-page-background-stamp.cs", - "description": "Demonstrates how to use a page from one PDF as a background stamp for every page of another PDF using Aspose.Pdf.", + "create-page-stamp-from-pdf": { + "title": "Create Page Stamp From Pdf", + "filename": "create-page-stamp-from-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "fit-image-stamp-rectangle": { + "title": "Fit Image Stamp Rectangle", + "filename": "fit-image-stamp-rectangle.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "fit-image-stamp-within-rectangle": { + "title": "Fit Image Stamp Within a Defined Rectangle", + "filename": "fit-image-stamp-within-rectangle.cs", + "description": "Demonstrates how to create an in‑memory image and place it as an ImageStamp that exactly fits inside a specified rectangle on a PDF page using Aspose.Pdf.", "tags": [ + "image-stamp", + "pdf", + "rectangle", + "positioning", + "Aspose.Pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.ImageStamp", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.PageCollection", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T08:26:54Z", + "status": "verified" + }, + "place-image-stamp-at-custom-coordinates": { + "title": "Place Image Stamp At Custom Coordinates", + "filename": "place-image-stamp-at-custom-coordinates.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "place-image-stamp-custom-coordinates": { + "title": "Place Image Stamp at Custom Coordinates", + "filename": "place-image-stamp-custom-coordinates.cs", + "description": "Demonstrates how to add an image stamp to a PDF page at specific X and Y positions using Aspose.Pdf.", + "tags": [ + "image-stamp", + "pdf", + "positioning", + "aspose-pdf", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.ImageStamp", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:26:54Z", + "status": "verified" + }, + "rotate-image-stamp-45-degrees": { + "title": "Rotate Image Stamp 45 Degrees", + "filename": "rotate-image-stamp-45-degrees.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "scale-image-stamp-full-page-width": { + "title": "Scale Image Stamp to Full Page Width", + "filename": "scale-image-stamp-full-page-width.cs", + "description": "Shows how to add an image stamp to every page of a PDF, scaling it to the page width while preserving its original aspect ratio.", + "tags": [ + "image-stamp", + "scaling", + "aspect-ratio", "pdf", - "background", - "stamp", - "page", "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.PdfPageStamp", + "Aspose.Pdf.ImageStamp", "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:26:54Z", "status": "verified" + }, + "scale-image-stamp-to-full-page-width": { + "title": "Scale Image Stamp To Full Page Width", + "filename": "scale-image-stamp-to-full-page-width.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" } } } \ No newline at end of file diff --git a/uncategorized/AGENTS.md b/uncategorized/AGENTS.md index 0c6b4682c..df457d899 100644 --- a/uncategorized/AGENTS.md +++ b/uncategorized/AGENTS.md @@ -8,7 +8,7 @@ parent: ../agents.md # AGENTS - uncategorized -> **Uncategorized** in PDF using C# / .NET -- **1** verified, compile-tested examples for **Aspose.PDF for .NET** 26.7.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. +> **Uncategorized** in PDF using C# / .NET -- **1** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. ## Persona @@ -57,5 +57,5 @@ using (Document doc = new Document("input.pdf")) - Review code examples in this folder for uncategorized patterns -Updated: 2026-07-17 | Run: `20260717_171638_da3b3e` +Updated: 2026-09-10 | Run: `20260910_054408_87a7f4` diff --git a/uncategorized/README.md b/uncategorized/README.md index a37f27a94..73dce537c 100644 --- a/uncategorized/README.md +++ b/uncategorized/README.md @@ -1,10 +1,10 @@ # Uncategorized -> **Uncategorized** in PDF using C# / .NET -- **1** verified, compile-tested examples for **Aspose.PDF for .NET** 26.7.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. +> **Uncategorized** in PDF using C# / .NET -- **1** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. - Category: `uncategorized` - Examples: 1 -- NuGet: `Aspose.PDF 26.7.0` -- target `net10.0` +- NuGet: `Aspose.PDF 26.8.0` -- target `net10.0` ## Examples diff --git a/working-with-annotations/AGENTS.md b/working-with-annotations/AGENTS.md index ecfe2322d..477f1251a 100644 --- a/working-with-annotations/AGENTS.md +++ b/working-with-annotations/AGENTS.md @@ -8,7 +8,7 @@ parent: ../agents.md # AGENTS - working-with-annotations -> **Working with annotations** in PDF using C# / .NET -- **157** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. +> **Working with annotations** in PDF using C# / .NET -- **216** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. ## Persona @@ -23,25 +23,25 @@ See the root [agents.md](../agents.md) for repository-wide conventions and bound ## Required Namespaces -- `using Aspose.Pdf;` (157/157 files) ← category-specific -- `using Aspose.Pdf.Annotations;` (130/157 files) ← category-specific -- `using Aspose.Pdf.Text;` (15/157 files) -- `using Aspose.Pdf.Forms;` (10/157 files) -- `using Aspose.Pdf.Drawing;` (5/157 files) -- `using Aspose.Pdf.Facades;` (2/157 files) -- `using Aspose.Pdf.Devices;` (1/157 files) -- `using System;` (157/157 files) -- `using System.IO;` (155/157 files) -- `using System.Collections.Generic;` (14/157 files) -- `using System.Drawing;` (5/157 files) -- `using System.Linq;` (2/157 files) -- `using System.Threading.Tasks;` (2/157 files) -- `using Azure.Storage.Blobs;` (1/157 files) -- `using System.Net.Http;` (1/157 files) -- `using System.Net.Http.Headers;` (1/157 files) -- `using System.Text;` (1/157 files) -- `using System.Text.Json;` (1/157 files) -- `using System.Xml;` (1/157 files) +- `using Aspose.Pdf;` (157/216 files) ← category-specific +- `using Aspose.Pdf.Annotations;` (130/216 files) ← category-specific +- `using Aspose.Pdf.Text;` (15/216 files) +- `using Aspose.Pdf.Forms;` (10/216 files) +- `using Aspose.Pdf.Drawing;` (5/216 files) +- `using Aspose.Pdf.Facades;` (2/216 files) +- `using Aspose.Pdf.Devices;` (1/216 files) +- `using System;` (157/216 files) +- `using System.IO;` (155/216 files) +- `using System.Collections.Generic;` (14/216 files) +- `using System.Drawing;` (5/216 files) +- `using System.Linq;` (2/216 files) +- `using System.Threading.Tasks;` (2/216 files) +- `using Azure.Storage.Blobs;` (1/216 files) +- `using System.Net.Http;` (1/216 files) +- `using System.Net.Http.Headers;` (1/216 files) +- `using System.Text;` (1/216 files) +- `using System.Text.Json;` (1/216 files) +- `using System.Xml;` (1/216 files) ## Common Code Pattern @@ -59,12 +59,17 @@ using (Document doc = new Document("input.pdf")) | File | Title | Key APIs | Description | |------|-------|----------|-------------| +| [add-3d-annotation-custom-camera-view](./add-3d-annotation-custom-camera-view.cs) | Add 3d annotation custom camera view | | Add 3d annotation custom camera view | | [add-3d-annotation-front-view](./add-3d-annotation-front-view.cs) | Add 3D Annotation with Front View to PDF | `Document`, `PDF3DContent`, `PDF3DArtwork` | Shows how to embed a U3D/PRC 3‑D model into a PDF, create a 3‑D annotation, define a front‑facing... | | [add-3d-annotation-with-custom-camera](./add-3d-annotation-with-custom-camera.cs) | Add 3D Annotation with Custom Camera to PDF | `Document`, `PDF3DContent`, `PDF3DArtwork` | Shows how to embed a 3D model into a PDF and define a custom camera view using Aspose.Pdf 3D anno... | +| [add-3d-u3d-annotation-initial-view-page-2](./add-3d-u3d-annotation-initial-view-page-2.cs) | Add 3d u3d annotation initial view page 2 | | Add 3d u3d annotation initial view page 2 | | [add-3d-u3d-annotation-initial-view-page-two](./add-3d-u3d-annotation-initial-view-page-two.cs) | Add 3D U3D Annotation with Initial View on Page Two | `Document`, `LoadAsU3D`, `PDF3DArtwork` | Shows how to embed a U3D model as a 3D annotation in a PDF, define an initial camera view, and pl... | | [add-animated-gif-screen-annotation](./add-animated-gif-screen-annotation.cs) | Add Animated GIF Screen Annotation to PDF Page | `Document`, `Page`, `Rectangle` | Demonstrates how to place a ScreenAnnotation that shows an animated GIF, looping continuously, on... | +| [add-auto-play-rich-media-annotation](./add-auto-play-rich-media-annotation.cs) | Add auto play rich media annotation | | Add auto play rich media annotation | | [add-automatic-background-music-to-pdf](./add-automatic-background-music-to-pdf.cs) | Add Automatic Background Music to PDF | `Document`, `Page`, `RichMediaAnnotation` | Demonstrates how to embed an MP3 audio file as a RichMediaAnnotation that automatically plays whe... | | [add-background-image-artifact-to-pdf-page](./add-background-image-artifact-to-pdf-page.cs) | Add Background Image Artifact to PDF Page | `Document`, `Page`, `BackgroundArtifact` | Demonstrates how to create a BackgroundArtifact from an image file and attach it to a page's Arti... | +| [add-background-image-to-pdf-page](./add-background-image-to-pdf-page.cs) | Add background image to pdf page | | Add background image to pdf page | +| [add-background-music-to-pdf](./add-background-music-to-pdf.cs) | Add background music to pdf | | Add background music to pdf | | [add-bates-numbering-with-prefix](./add-bates-numbering-with-prefix.cs) | Add Bates Numbering Artifact with Prefix to PDF | `Document`, `AddBatesNumbering`, `BatesNArtifact` | Demonstrates how to add a Bates numbering artifact with a custom "ABC" prefix and a six‑digit for... | | [add-button-annotation-go-to-page-10](./add-button-annotation-go-to-page-10.cs) | Add Button Annotation to Navigate to Page 10 | `Document`, `Page`, `Rectangle` | Shows how to create a button form field that jumps to page 10 of the same PDF when activated, usi... | | [add-button-annotation-highlight-text-fields](./add-button-annotation-highlight-text-fields.cs) | Create Button Annotation to Highlight Text Fields | `Document`, `Page`, `Rectangle` | Shows how to add a push‑button annotation to a PDF page with Aspose.Pdf, attach a JavaScript acti... | @@ -72,27 +77,22 @@ using (Document doc = new Document("input.pdf")) | [add-diagonal-watermark-annotation](./add-diagonal-watermark-annotation.cs) | Add Diagonal Watermark Annotation to PDF | `Document`, `Page`, `Rectangle` | Demonstrates how to place a WatermarkAnnotation diagonally across a PDF page using a rectangle ge... | | [add-dynamic-date-watermark-to-pdf-pages](./add-dynamic-date-watermark-to-pdf-pages.cs) | Add Dynamic Date Watermark to PDF Pages | `Document`, `Page`, `WatermarkAnnotation` | Demonstrates how to add a WatermarkAnnotation with a runtime‑generated date string to each page o... | | [add-dynamic-page-number-watermark](./add-dynamic-page-number-watermark.cs) | Add Dynamic Page Number Watermark to PDF | `Document`, `Page`, `WatermarkAnnotation` | Shows how to create a WatermarkAnnotation that displays the current page number on each page of a... | +| [add-export-annotations-button](./add-export-annotations-button.cs) | Add export annotations button | | Add export annotations button | +| [add-external-link-annotation-to-pdf](./add-external-link-annotation-to-pdf.cs) | Add external link annotation to pdf | | Add external link annotation to pdf | | [add-external-url-link-annotation](./add-external-url-link-annotation.cs) | Add External URL Link Annotation to PDF | `Document`, `Page`, `Rectangle` | Shows how to create a link annotation that opens an external website when the user clicks the ann... | | [add-figure-annotation-around-table](./add-figure-annotation-around-table.cs) | Add Figure Annotation Around a Detected Table | `Document`, `TableAbsorber`, `Rectangle` | Demonstrates how to use TableAbsorber to locate a table on a PDF page and draw a square (figure) ... | | [add-figure-annotation-external-image](./add-figure-annotation-external-image.cs) | Add Figure Annotation Referencing External Image | `Document`, `Page`, `Rectangle` | Demonstrates how to create a FileAttachment (figure) annotation in a PDF that uses an external im... | +| [add-figure-annotations-custom-line-width-color](./add-figure-annotations-custom-line-width-color.cs) | Add figure annotations custom line width color | | Add figure annotations custom line width color | +| [add-flash-rich-media-annotation](./add-flash-rich-media-annotation.cs) | Add flash rich media annotation | | Add flash rich media annotation | +| [add-footer-watermark-annotation](./add-footer-watermark-annotation.cs) | Add footer watermark annotation | | Add footer watermark annotation | | [add-footer-watermark-to-pdf-pages](./add-footer-watermark-to-pdf-pages.cs) | Add Footer Watermark to PDF Pages | `Document`, `Page`, `Rectangle` | Demonstrates loading a PDF with Aspose.Pdf, iterating through each page, and adding a WatermarkAn... | | [add-free-text-annotation-arial](./add-free-text-annotation-arial.cs) | Add Free‑Text Annotation with Arial Font to PDF | `Document`, `Page`, `Rectangle` | Demonstrates how to create a free‑text annotation on a PDF page using Arial, 12‑point font, and s... | | [add-free-text-annotation-with-callout](./add-free-text-annotation-with-callout.cs) | Add Free‑Text Annotation with Callout to PDF | `Document`, `Page`, `Rectangle` | Demonstrates how to load a PDF, create a free‑text annotation with a callout line, set its appear... | -| [add-highlight-annotation-70-opacity](./add-highlight-annotation-70-opacity.cs) | Add Highlight Annotation with 70% Opacity to PDF | `Document`, `HighlightAnnotation`, `Rectangle` | Shows how to load a PDF, create a highlight annotation with 70% opacity, set its color, add it to... | -| [add-highlight-annotation-with-opacity](./add-highlight-annotation-with-opacity.cs) | Add Highlight Annotation with Custom Opacity to PDF | `Document`, `Page`, `Rectangle` | Shows how to load a PDF, create a highlight annotation with a specific color and opacity, add it ... | -| [add-highres-pdf-page-as-tiled-background](./add-highres-pdf-page-as-tiled-background.cs) | Add High-Resolution PDF Page as Tiled Background | `Document`, `Page`, `BackgroundArtifact` | Shows how to use Aspose.Pdf's BackgroundArtifact to set a high‑resolution PDF page as a tiled bac... | -| [add-internal-link-annotation-to-pdf](./add-internal-link-annotation-to-pdf.cs) | Add Internal Link Annotation to PDF | `Document`, `Page`, `Rectangle` | Shows how to create a link annotation that navigates to a specific page within the same PDF docum... | -| [add-javascript-button-annotation-to-pdf-page](./add-javascript-button-annotation-to-pdf-page.cs) | Add JavaScript Button Annotation to PDF Page | `Document`, `Page`, `Rectangle` | Demonstrates how to create a push button on page 4 of a PDF and attach a JavaScript action that s... | -| [add-javascript-link-annotation-modal-dialog](./add-javascript-link-annotation-modal-dialog.cs) | Add JavaScript Link Annotation to Show Modal Dialog | `Document`, `Page`, `Rectangle` | Shows how to create a link annotation with a JavaScript action that displays a custom modal dialo... | -| [add-javascript-link-annotation](./add-javascript-link-annotation.cs) | Add JavaScript Link Annotation to Open URL | `Document`, `Page`, `Rectangle` | Demonstrates how to add a link annotation with a JavaScript action that opens a URL in a new brow... | -| [add-magenta-underline-annotation](./add-magenta-underline-annotation.cs) | Add Magenta Underline Annotation to PDF | `Document`, `Page`, `Rectangle` | Demonstrates how to add an underline annotation with magenta color and a 2‑point border to a PDF ... | -| [add-polyline-figure-annotation](./add-polyline-figure-annotation.cs) | Add Polyline Figure Annotation to PDF | `Document`, `Page`, `Rectangle` | Shows how to insert a custom polyline figure annotation onto a PDF page with Aspose.Pdf, defining... | -| [add-polyline-figure-annotation__v2](./add-polyline-figure-annotation__v2.cs) | Add Polyline Figure Annotation to PDF | `Document`, `Page`, `Rectangle` | Shows how to create a polyline figure annotation from a list of points and add it to a PDF page u... | -| [add-popup-annotation-to-pdf](./add-popup-annotation-to-pdf.cs) | Add Popup Annotation Linked to a Sticky Note | `Document`, `Page`, `TextAnnotation` | Demonstrates how to create a TextAnnotation (sticky note) and a linked PopupAnnotation in a PDF u... | -| ... | | | *and 127 more files* | +| [add-goto-page-button-annotation](./add-goto-page-button-annotation.cs) | Add goto page button annotation | | Add goto page button annotation | +| ... | | | *and 186 more files* | ## Category Statistics -- Total examples: 157 +- Total examples: 216 ## Category-Specific Tips @@ -136,5 +136,5 @@ using (Document doc = new Document("input.pdf")) - Review code examples in this folder for working-with-annotations patterns -Updated: 2026-08-20 | Run: `20260820_001147_12d7b3` +Updated: 2026-09-10 | Run: `20260910_054408_87a7f4` diff --git a/working-with-annotations/README.md b/working-with-annotations/README.md new file mode 100644 index 000000000..147171970 --- /dev/null +++ b/working-with-annotations/README.md @@ -0,0 +1,235 @@ +# Working with annotations + +> **Working with annotations** in PDF using C# / .NET -- **216** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. + +- Category: `working-with-annotations` +- Examples: 216 +- NuGet: `Aspose.PDF 26.8.0` -- target `net10.0` + +## Examples + +- [`add-3d-annotation-custom-camera-view.cs`](./add-3d-annotation-custom-camera-view.cs) -- Add 3d annotation custom camera view +- [`add-3d-annotation-front-view.cs`](./add-3d-annotation-front-view.cs) -- Add 3d annotation front view +- [`add-3d-annotation-with-custom-camera.cs`](./add-3d-annotation-with-custom-camera.cs) -- Add 3d annotation with custom camera +- [`add-3d-u3d-annotation-initial-view-page-2.cs`](./add-3d-u3d-annotation-initial-view-page-2.cs) -- Add 3d u3d annotation initial view page 2 +- [`add-3d-u3d-annotation-initial-view-page-two.cs`](./add-3d-u3d-annotation-initial-view-page-two.cs) -- Add 3d u3d annotation initial view page two +- [`add-animated-gif-screen-annotation.cs`](./add-animated-gif-screen-annotation.cs) -- Add animated gif screen annotation +- [`add-auto-play-rich-media-annotation.cs`](./add-auto-play-rich-media-annotation.cs) -- Add auto play rich media annotation +- [`add-automatic-background-music-to-pdf.cs`](./add-automatic-background-music-to-pdf.cs) -- Add automatic background music to pdf +- [`add-background-image-artifact-to-pdf-page.cs`](./add-background-image-artifact-to-pdf-page.cs) -- Add background image artifact to pdf page +- [`add-background-image-to-pdf-page.cs`](./add-background-image-to-pdf-page.cs) -- Add background image to pdf page +- [`add-background-music-to-pdf.cs`](./add-background-music-to-pdf.cs) -- Add background music to pdf +- [`add-bates-numbering-with-prefix.cs`](./add-bates-numbering-with-prefix.cs) -- Add bates numbering with prefix +- [`add-button-annotation-go-to-page-10.cs`](./add-button-annotation-go-to-page-10.cs) -- Add button annotation go to page 10 +- [`add-button-annotation-highlight-text-fields.cs`](./add-button-annotation-highlight-text-fields.cs) -- Add button annotation highlight text fields +- [`add-callout-leader-line-to-freetext-annotation.cs`](./add-callout-leader-line-to-freetext-annotation.cs) -- Add callout leader line to freetext annotation +- [`add-diagonal-watermark-annotation.cs`](./add-diagonal-watermark-annotation.cs) -- Add diagonal watermark annotation +- [`add-dynamic-date-watermark-to-pdf-pages.cs`](./add-dynamic-date-watermark-to-pdf-pages.cs) -- Add dynamic date watermark to pdf pages +- [`add-dynamic-page-number-watermark.cs`](./add-dynamic-page-number-watermark.cs) -- Add dynamic page number watermark +- [`add-export-annotations-button.cs`](./add-export-annotations-button.cs) -- Add export annotations button +- [`add-external-link-annotation-to-pdf.cs`](./add-external-link-annotation-to-pdf.cs) -- Add external link annotation to pdf +- [`add-external-url-link-annotation.cs`](./add-external-url-link-annotation.cs) -- Add external url link annotation +- [`add-figure-annotation-around-table.cs`](./add-figure-annotation-around-table.cs) -- Add figure annotation around table +- [`add-figure-annotation-external-image.cs`](./add-figure-annotation-external-image.cs) -- Add figure annotation external image +- [`add-figure-annotations-custom-line-width-color.cs`](./add-figure-annotations-custom-line-width-color.cs) -- Add figure annotations custom line width color +- [`add-flash-rich-media-annotation.cs`](./add-flash-rich-media-annotation.cs) -- Add flash rich media annotation +- [`add-footer-watermark-annotation.cs`](./add-footer-watermark-annotation.cs) -- Add footer watermark annotation +- [`add-footer-watermark-to-pdf-pages.cs`](./add-footer-watermark-to-pdf-pages.cs) -- Add footer watermark to pdf pages +- [`add-free-text-annotation-arial.cs`](./add-free-text-annotation-arial.cs) -- Add free text annotation arial +- [`add-free-text-annotation-with-callout.cs`](./add-free-text-annotation-with-callout.cs) -- Add free text annotation with callout +- [`add-goto-page-button-annotation.cs`](./add-goto-page-button-annotation.cs) -- Add goto page button annotation +- [`add-highlight-annotation-70-opacity.cs`](./add-highlight-annotation-70-opacity.cs) -- Add highlight annotation 70 opacity +- [`add-highlight-annotation-with-opacity.cs`](./add-highlight-annotation-with-opacity.cs) -- Add highlight annotation with opacity +- [`add-highres-pdf-page-as-tiled-background.cs`](./add-highres-pdf-page-as-tiled-background.cs) -- Add highres pdf page as tiled background +- [`add-internal-link-annotation-to-pdf.cs`](./add-internal-link-annotation-to-pdf.cs) -- Add internal link annotation to pdf +- [`add-javascript-button-annotation-to-pdf-page.cs`](./add-javascript-button-annotation-to-pdf-page.cs) -- Add javascript button annotation to pdf page +- [`add-javascript-link-annotation-modal-dialog.cs`](./add-javascript-link-annotation-modal-dialog.cs) -- Add javascript link annotation modal dialog +- [`add-javascript-link-annotation.cs`](./add-javascript-link-annotation.cs) -- Add javascript link annotation +- [`add-js-link-word-count.cs`](./add-js-link-word-count.cs) -- Add js link word count +- [`add-magenta-underline-annotation.cs`](./add-magenta-underline-annotation.cs) -- Add magenta underline annotation +- [`add-polyline-annotation-to-pdf.cs`](./add-polyline-annotation-to-pdf.cs) -- Add polyline annotation to pdf +- [`add-polyline-annotation-to-pdf__v2.cs`](./add-polyline-annotation-to-pdf__v2.cs) -- Add polyline annotation to pdf v2 +- [`add-polyline-figure-annotation.cs`](./add-polyline-figure-annotation.cs) -- Add polyline figure annotation +- [`add-polyline-figure-annotation__v2.cs`](./add-polyline-figure-annotation__v2.cs) -- Add polyline figure annotation v2 +- [`add-popup-annotation-to-pdf.cs`](./add-popup-annotation-to-pdf.cs) -- Add popup annotation to pdf +- [`add-popup-annotation-to-pdf__v2.cs`](./add-popup-annotation-to-pdf__v2.cs) -- Add popup annotation to pdf v2 +- [`add-popup-annotation-with-custom-dimensions.cs`](./add-popup-annotation-with-custom-dimensions.cs) -- Add popup annotation with custom dimensions +- [`add-qr-code-watermark-to-pdf.cs`](./add-qr-code-watermark-to-pdf.cs) -- Add qr code watermark to pdf +- [`add-read-only-rich-media-pdf-annotation.cs`](./add-read-only-rich-media-pdf-annotation.cs) -- Add read only rich media pdf annotation +- [`add-repeating-text-watermark-artifact.cs`](./add-repeating-text-watermark-artifact.cs) -- Add repeating text watermark artifact +- [`add-rich-media-annotation-hidden-toolbar.cs`](./add-rich-media-annotation-hidden-toolbar.cs) -- Add rich media annotation hidden toolbar +- [`add-rich-media-annotation-pdf-portfolio.cs`](./add-rich-media-annotation-pdf-portfolio.cs) -- Add rich media annotation pdf portfolio +- [`add-rich-media-pdf-annotation-read-only.cs`](./add-rich-media-pdf-annotation-read-only.cs) -- Add rich media pdf annotation read only +- [`add-rich-media-video-annotation.cs`](./add-rich-media-video-annotation.cs) -- Add rich media video annotation +- [`add-rich-media-video-annotation__v2.cs`](./add-rich-media-video-annotation__v2.cs) -- Add rich media video annotation v2 +- [`add-screen-annotation-external-video.cs`](./add-screen-annotation-external-video.cs) -- Add screen annotation external video +- [`add-screen-annotation-looping-video.cs`](./add-screen-annotation-looping-video.cs) -- Add screen annotation looping video +- [`add-screen-annotation-swf-readonly.cs`](./add-screen-annotation-swf-readonly.cs) -- Add screen annotation swf readonly +- [`add-screen-annotation-with-video-to-pdf.cs`](./add-screen-annotation-with-video-to-pdf.cs) -- Add screen annotation with video to pdf +- [`add-sound-annotation-chime.cs`](./add-sound-annotation-chime.cs) -- Add sound annotation chime +- [`add-sound-annotation-to-each-pdf-page.cs`](./add-sound-annotation-to-each-pdf-page.cs) -- Add sound annotation to each pdf page +- [`add-sound-annotation-to-pdf-page.cs`](./add-sound-annotation-to-pdf-page.cs) -- Add sound annotation to pdf page +- [`add-sound-annotation-to-pdf-page__v2.cs`](./add-sound-annotation-to-pdf-page__v2.cs) -- Add sound annotation to pdf page v2 +- [`add-sound-annotation-to-pdf.cs`](./add-sound-annotation-to-pdf.cs) -- Add sound annotation to pdf +- [`add-sound-annotation-visible-tone.cs`](./add-sound-annotation-visible-tone.cs) -- Add sound annotation visible tone +- [`add-sound-annotation-voiceover-page-five.cs`](./add-sound-annotation-voiceover-page-five.cs) -- Add sound annotation voiceover page five +- [`add-sound-annotation-with-notification-tone.cs`](./add-sound-annotation-with-notification-tone.cs) -- Add sound annotation with notification tone +- [`add-square-figure-annotations-custom-border.cs`](./add-square-figure-annotations-custom-border.cs) -- Add square figure annotations custom border +- [`add-strikeout-annotation-with-author.cs`](./add-strikeout-annotation-with-author.cs) -- Add strikeout annotation with author +- [`add-strikethrough-annotation-to-pdf.cs`](./add-strikethrough-annotation-to-pdf.cs) -- Add strikethrough annotation to pdf +- [`add-text-annotation-to-pdf-page-3.cs`](./add-text-annotation-to-pdf-page-3.cs) -- Add text annotation to pdf page 3 +- [`add-text-watermark-annotation.cs`](./add-text-watermark-annotation.cs) -- Add text watermark annotation +- [`add-tiled-pdf-background-artifact.cs`](./add-tiled-pdf-background-artifact.cs) -- Add tiled pdf background artifact +- [`add-transparent-freetext-annotation.cs`](./add-transparent-freetext-annotation.cs) -- Add transparent freetext annotation +- [`add-watermark-annotation-with-gradient.cs`](./add-watermark-annotation-with-gradient.cs) -- Add watermark annotation with gradient +- [`add-word-count-link-annotation.cs`](./add-word-count-link-annotation.cs) -- Add word count link annotation +- [`add-yellow-highlight-annotation.cs`](./add-yellow-highlight-annotation.cs) -- Add yellow highlight annotation +- [`align-watermark-annotations-to-page-margins.cs`](./align-watermark-annotations-to-page-margins.cs) -- Align watermark annotations to page margins +- [`apply-tiled-pdf-pattern-watermark.cs`](./apply-tiled-pdf-pattern-watermark.cs) -- Apply tiled pdf pattern watermark +- [`auto-play-rich-media-video-annotation.cs`](./auto-play-rich-media-video-annotation.cs) -- Auto play rich media video annotation +- [`batch-add-image-watermark-artifact.cs`](./batch-add-image-watermark-artifact.cs) -- Batch add image watermark artifact +- [`batch-add-linked-popup-annotations.cs`](./batch-add-linked-popup-annotations.cs) -- Batch add linked popup annotations +- [`batch-add-popup-annotations.cs`](./batch-add-popup-annotations.cs) -- Batch add popup annotations +- [`batch-add-screen-annotations-with-videos.cs`](./batch-add-screen-annotations-with-videos.cs) -- Batch add screen annotations with videos +- [`batch-add-sound-annotations-to-pdf-pages.cs`](./batch-add-sound-annotations-to-pdf-pages.cs) -- Batch add sound annotations to pdf pages +- [`batch-add-text-annotation-to-first-page.cs`](./batch-add-text-annotation-to-first-page.cs) -- Batch add text annotation to first page +- [`batch-add-text-annotations-to-pdf-pages.cs`](./batch-add-text-annotations-to-pdf-pages.cs) -- Batch add text annotations to pdf pages +- [`batch-add-video-screen-annotations.cs`](./batch-add-video-screen-annotations.cs) -- Batch add video screen annotations +- [`batch-add-video-screen-annotations__v2.cs`](./batch-add-video-screen-annotations__v2.cs) -- Batch add video screen annotations v2 +- [`batch-add-watermark-artifact-to-pdfs.cs`](./batch-add-watermark-artifact-to-pdfs.cs) -- Batch add watermark artifact to pdfs +- [`batch-export-pdf-annotations-to-xfdf.cs`](./batch-export-pdf-annotations-to-xfdf.cs) -- Batch export pdf annotations to xfdf +- [`batch-import-xfdf-annotations-into-pdfs.cs`](./batch-import-xfdf-annotations-into-pdfs.cs) -- Batch import xfdf annotations into pdfs +- [`batch-import-xfdf-annotations-merge-pdfs.cs`](./batch-import-xfdf-annotations-merge-pdfs.cs) -- Batch import xfdf annotations merge pdfs +- [`batch-replace-watermark-annotations.cs`](./batch-replace-watermark-annotations.cs) -- Batch replace watermark annotations +- [`batch-watermark-dynamic-opacity.cs`](./batch-watermark-dynamic-opacity.cs) -- Batch watermark dynamic opacity +- [`change-button-annotation-color-to-blue.cs`](./change-button-annotation-color-to-blue.cs) -- Change button annotation color to blue +- [`change-figure-annotation-color.cs`](./change-figure-annotation-color.cs) -- Change figure annotation color +- [`clone-richmedia-annotations-summary-page.cs`](./clone-richmedia-annotations-summary-page.cs) -- Clone richmedia annotations summary page +- [`clone-richmedia-annotations-to-summary-page.cs`](./clone-richmedia-annotations-to-summary-page.cs) -- Clone richmedia annotations to summary page +- [`clone-watermark-annotation-across-pdf-pages.cs`](./clone-watermark-annotation-across-pdf-pages.cs) -- Clone watermark annotation across pdf pages +- [`clone-watermark-annotation-to-multiple-pdf-pages.cs`](./clone-watermark-annotation-to-multiple-pdf-pages.cs) -- Clone watermark annotation to multiple pdf pages +- [`copy-pdf-annotations-via-xfdf.cs`](./copy-pdf-annotations-via-xfdf.cs) -- Copy pdf annotations via xfdf +- [`count-watermark-artifacts-on-pdf-page.cs`](./count-watermark-artifacts-on-pdf-page.cs) -- Count watermark artifacts on pdf page +- [`create-3d-annotation-custom-lighting.cs`](./create-3d-annotation-custom-lighting.cs) -- Create 3d annotation custom lighting +- [`create-3d-annotation-metal-surface.cs`](./create-3d-annotation-metal-surface.cs) -- Create 3d annotation metal surface +- [`create-3d-annotation-metallic-lighting.cs`](./create-3d-annotation-metallic-lighting.cs) -- Create 3d annotation metallic lighting +- [`create-3d-annotation-with-custom-lighting.cs`](./create-3d-annotation-with-custom-lighting.cs) -- Create 3d annotation with custom lighting +- [`create-3d-annotation-with-embedded-textures.cs`](./create-3d-annotation-with-embedded-textures.cs) -- Create 3d annotation with embedded textures +- [`create-button-toggle-annotations-visibility.cs`](./create-button-toggle-annotations-visibility.cs) -- Create button toggle annotations visibility +- [`create-link-annotation-external-pdf-page.cs`](./create-link-annotation-external-pdf-page.cs) -- Create link annotation external pdf page +- [`create-link-annotation-named-destination.cs`](./create-link-annotation-named-destination.cs) -- Create link annotation named destination +- [`create-link-annotation-open-embedded-pdf.cs`](./create-link-annotation-open-embedded-pdf.cs) -- Create link annotation open embedded pdf +- [`create-link-annotation-remote-pdf-page.cs`](./create-link-annotation-remote-pdf-page.cs) -- Create link annotation remote pdf page +- [`create-pdf-button-export-annotations-json.cs`](./create-pdf-button-export-annotations-json.cs) -- Create pdf button export annotations json +- [`create-pdf-gradient-background-artifact.cs`](./create-pdf-gradient-background-artifact.cs) -- Create pdf gradient background artifact +- [`create-pdf-submit-button.cs`](./create-pdf-submit-button.cs) -- Create pdf submit button +- [`create-pdf-with-gradient-background.cs`](./create-pdf-with-gradient-background.cs) -- Create pdf with gradient background +- [`create-popup-annotation-linked-to-highlight.cs`](./create-popup-annotation-linked-to-highlight.cs) -- Create popup annotation linked to highlight +- [`create-richmedia-annotation-flash-video.cs`](./create-richmedia-annotation-flash-video.cs) -- Create richmedia annotation flash video +- [`create-submit-button-with-javascript.cs`](./create-submit-button-with-javascript.cs) -- Create submit button with javascript +- [`delete-all-annotations-restore-from-xfdf.cs`](./delete-all-annotations-restore-from-xfdf.cs) -- Delete all annotations restore from xfdf +- [`delete-all-highlight-annotations.cs`](./delete-all-highlight-annotations.cs) -- Delete all highlight annotations +- [`delete-annotation-by-id-page-two.cs`](./delete-annotation-by-id-page-two.cs) -- Delete annotation by id page two +- [`delete-annotations-from-pdf-using-csv.cs`](./delete-annotations-from-pdf-using-csv.cs) -- Delete annotations from pdf using csv +- [`delete-annotations-restore-from-xfdf.cs`](./delete-annotations-restore-from-xfdf.cs) -- Delete annotations restore from xfdf +- [`delete-pdf-annotations-from-csv.cs`](./delete-pdf-annotations-from-csv.cs) -- Delete pdf annotations from csv +- [`duplicate-watermark-annotations-across-pdf-pages.cs`](./duplicate-watermark-annotations-across-pdf-pages.cs) -- Duplicate watermark annotations across pdf pages +- [`duplicate-watermark-annotations.cs`](./duplicate-watermark-annotations.cs) -- Duplicate watermark annotations +- [`embed-mp4-video-with-poster.cs`](./embed-mp4-video-with-poster.cs) -- Embed mp4 video with poster +- [`embed-pdf-portfolio-rich-media-disable-printing.cs`](./embed-pdf-portfolio-rich-media-disable-printing.cs) -- Embed pdf portfolio rich media disable printing +- [`embed-pdf-portfolio-richmedia-annotation.cs`](./embed-pdf-portfolio-richmedia-annotation.cs) -- Embed pdf portfolio richmedia annotation +- [`embed-pdf-portfolio-richmedia-disable-printing.cs`](./embed-pdf-portfolio-richmedia-disable-printing.cs) -- Embed pdf portfolio richmedia disable printing +- [`export-annotation-ids-to-csv.cs`](./export-annotation-ids-to-csv.cs) -- Export annotation ids to csv +- [`export-annotations-modify-colors-xfdf.cs`](./export-annotations-modify-colors-xfdf.cs) -- Export annotations modify colors xfdf +- [`export-annotations-modify-colors.cs`](./export-annotations-modify-colors.cs) -- Export annotations modify colors +- [`export-import-annotations-xfdf.cs`](./export-import-annotations-xfdf.cs) -- Export import annotations xfdf +- [`export-import-pdf-annotations-xfdf.cs`](./export-import-pdf-annotations-xfdf.cs) -- Export import pdf annotations xfdf +- [`export-import-pdf-annotations-xfdf__v3.cs`](./export-import-pdf-annotations-xfdf__v3.cs) -- Export import pdf annotations xfdf v3 +- [`export-page-annotations-to-xfdf.cs`](./export-page-annotations-to-xfdf.cs) -- Export page annotations to xfdf +- [`export-pdf-annotation-ids-to-csv.cs`](./export-pdf-annotation-ids-to-csv.cs) -- Export pdf annotation ids to csv +- [`export-pdf-annotations-to-csv.cs`](./export-pdf-annotations-to-csv.cs) -- Export pdf annotations to csv +- [`export-pdf-annotations-to-xfdf-and-upload.cs`](./export-pdf-annotations-to-xfdf-and-upload.cs) -- Export pdf annotations to xfdf and upload +- [`export-pdf-annotations-to-xfdf-azure-blob.cs`](./export-pdf-annotations-to-xfdf-azure-blob.cs) -- Export pdf annotations to xfdf azure blob +- [`export-pdf-annotations-to-xfdf-stream.cs`](./export-pdf-annotations-to-xfdf-stream.cs) -- Export pdf annotations to xfdf stream +- [`export-pdf-annotations-to-xfdf.cs`](./export-pdf-annotations-to-xfdf.cs) -- Export pdf annotations to xfdf +- [`export-popup-annotations-to-xfdf.cs`](./export-popup-annotations-to-xfdf.cs) -- Export popup annotations to xfdf +- [`extract-3d-annotation-preview-images-to-report.cs`](./extract-3d-annotation-preview-images-to-report.cs) -- Extract 3d annotation preview images to report +- [`extract-embedded-media-from-richmedia-annotations.cs`](./extract-embedded-media-from-richmedia-annotations.cs) -- Extract embedded media from richmedia annotations +- [`extract-embedded-rich-media.cs`](./extract-embedded-rich-media.cs) -- Extract embedded rich media +- [`extract-highlight-annotation-to-report.cs`](./extract-highlight-annotation-to-report.cs) -- Extract highlight annotation to report +- [`extract-media-from-screenannotation.cs`](./extract-media-from-screenannotation.cs) -- Extract media from screenannotation +- [`extract-pdf-watermark-artifacts-report.cs`](./extract-pdf-watermark-artifacts-report.cs) -- Extract pdf watermark artifacts report +- [`extract-popup-annotation-to-pdf.cs`](./extract-popup-annotation-to-pdf.cs) -- Extract popup annotation to pdf +- [`extract-popup-annotations-to-pdf.cs`](./extract-popup-annotations-to-pdf.cs) -- Extract popup annotations to pdf +- [`extract-watermark-artifacts-report.cs`](./extract-watermark-artifacts-report.cs) -- Extract watermark artifacts report +- [`fade-background-artifacts.cs`](./fade-background-artifacts.cs) -- Fade background artifacts +- [`filter-pdf-annotations-by-author.cs`](./filter-pdf-annotations-by-author.cs) -- Filter pdf annotations by author +- [`generate-annotation-summary-per-pdf-page.cs`](./generate-annotation-summary-per-pdf-page.cs) -- Generate annotation summary per pdf page +- [`get-annotation-bounding-rectangle.cs`](./get-annotation-bounding-rectangle.cs) -- Get annotation bounding rectangle +- [`group-pdf-annotations-by-type.cs`](./group-pdf-annotations-by-type.cs) -- Group pdf annotations by type +- [`hide-free-text-annotation-page-five.cs`](./hide-free-text-annotation-page-five.cs) -- Hide free text annotation page five +- [`highlight-keyword-across-pdf-pages.cs`](./highlight-keyword-across-pdf-pages.cs) -- Highlight keyword across pdf pages +- [`import-annotations-from-fdf.cs`](./import-annotations-from-fdf.cs) -- Import annotations from fdf +- [`import-annotations-from-fdf__v2.cs`](./import-annotations-from-fdf__v2.cs) -- Import annotations from fdf v2 +- [`import-annotations-from-fdf__v3.cs`](./import-annotations-from-fdf__v3.cs) -- Import annotations from fdf v3 +- [`import-annotations-from-xfdf.cs`](./import-annotations-from-xfdf.cs) -- Import annotations from xfdf +- [`import-fdf-annotations-into-pdf.cs`](./import-fdf-annotations-into-pdf.cs) -- Import fdf annotations into pdf +- [`import-multiple-fdf-annotations.cs`](./import-multiple-fdf-annotations.cs) -- Import multiple fdf annotations +- [`import-xfdf-annotations-into-multiple-pdfs-in-parallel.cs`](./import-xfdf-annotations-into-multiple-pdfs-in-parallel.cs) -- Import xfdf annotations into multiple pdfs in parallel +- [`import-xfdf-annotations-into-multiple-pdfs.cs`](./import-xfdf-annotations-into-multiple-pdfs.cs) -- Import xfdf annotations into multiple pdfs +- [`import-xfdf-annotations-into-pdf.cs`](./import-xfdf-annotations-into-pdf.cs) -- Import xfdf annotations into pdf +- [`import-xfdf-annotations-into-pdf__v2.cs`](./import-xfdf-annotations-into-pdf__v2.cs) -- Import xfdf annotations into pdf v2 +- [`import-xfdf-annotations-reassign-pages.cs`](./import-xfdf-annotations-reassign-pages.cs) -- Import xfdf annotations reassign pages +- [`import-xfdf-annotations-set-visibility-by-role.cs`](./import-xfdf-annotations-set-visibility-by-role.cs) -- Import xfdf annotations set visibility by role +- [`import-xfdf-annotations-visibility-by-role.cs`](./import-xfdf-annotations-visibility-by-role.cs) -- Import xfdf annotations visibility by role +- [`increase-sound-annotation-clickable-area.cs`](./increase-sound-annotation-clickable-area.cs) -- Increase sound annotation clickable area +- [`insert-watermark-annotation-page-6.cs`](./insert-watermark-annotation-page-6.cs) -- Insert watermark annotation page 6 +- [`iterate-pdf-annotations-log-media.cs`](./iterate-pdf-annotations-log-media.cs) -- Iterate pdf annotations log media +- [`list-annotation-types-on-pdf-page.cs`](./list-annotation-types-on-pdf-page.cs) -- List annotation types on pdf page +- [`list-annotations-with-media-info.cs`](./list-annotations-with-media-info.cs) -- List annotations with media info +- [`list-pdf-annotation-ids-to-csv.cs`](./list-pdf-annotation-ids-to-csv.cs) -- List pdf annotation ids to csv +- [`metadata-watermark-annotation.cs`](./metadata-watermark-annotation.cs) -- Metadata watermark annotation +- [`modify-annotation-rectangle-by-id.cs`](./modify-annotation-rectangle-by-id.cs) -- Modify annotation rectangle by id +- [`modify-figure-annotation-color.cs`](./modify-figure-annotation-color.cs) -- Modify figure annotation color +- [`recolor-highlight-annotations-light-green.cs`](./recolor-highlight-annotations-light-green.cs) -- Recolor highlight annotations light green +- [`remove-annotations-from-third-pdf-page.cs`](./remove-annotations-from-third-pdf-page.cs) -- Remove annotations from third pdf page +- [`remove-background-artifacts-from-pdf-pages.cs`](./remove-background-artifacts-from-pdf-pages.cs) -- Remove background artifacts from pdf pages +- [`remove-background-artifacts-from-pdf.cs`](./remove-background-artifacts-from-pdf.cs) -- Remove background artifacts from pdf +- [`remove-highlight-annotations-from-pdf.cs`](./remove-highlight-annotations-from-pdf.cs) -- Remove highlight annotations from pdf +- [`remove-popup-annotations-from-pdf.cs`](./remove-popup-annotations-from-pdf.cs) -- Remove popup annotations from pdf +- [`remove-screen-annotations-from-pdf.cs`](./remove-screen-annotations-from-pdf.cs) -- Remove screen annotations from pdf +- [`remove-sound-annotations-from-pdf.cs`](./remove-sound-annotations-from-pdf.cs) -- Remove sound annotations from pdf +- [`replace-background-artifact-image.cs`](./replace-background-artifact-image.cs) -- Replace background artifact image +- [`replace-highlight-annotation-color.cs`](./replace-highlight-annotation-color.cs) -- Replace highlight annotation color +- [`replace-pdf-page-background-images.cs`](./replace-pdf-page-background-images.cs) -- Replace pdf page background images +- [`replace-watermark-annotations-with-logo.cs`](./replace-watermark-annotations-with-logo.cs) -- Replace watermark annotations with logo +- [`retrieve-annotation-bounding-rectangle.cs`](./retrieve-annotation-bounding-rectangle.cs) -- Retrieve annotation bounding rectangle +- [`retrieve-annotation-ids-page-numbers.cs`](./retrieve-annotation-ids-page-numbers.cs) -- Retrieve annotation ids page numbers +- [`retrieve-first-richmediaannotation-page-five.cs`](./retrieve-first-richmediaannotation-page-five.cs) -- Retrieve first richmediaannotation page five +- [`reuse-ximage-across-multiple-pdf-pages.cs`](./reuse-ximage-across-multiple-pdf-pages.cs) -- Reuse ximage across multiple pdf pages +- [`reuse-ximage-across-pdf-pages.cs`](./reuse-ximage-across-pdf-pages.cs) -- Reuse ximage across pdf pages +- [`set-arrow-line-ending-on-pdf-annotation.cs`](./set-arrow-line-ending-on-pdf-annotation.cs) -- Set arrow line ending on pdf annotation +- [`set-arrow-line-endings-on-pdf-annotation.cs`](./set-arrow-line-endings-on-pdf-annotation.cs) -- Set arrow line endings on pdf annotation +- [`set-author-strikethrough-annotation.cs`](./set-author-strikethrough-annotation.cs) -- Set author strikethrough annotation +- [`set-callout-leader-line-length.cs`](./set-callout-leader-line-length.cs) -- Set callout leader line length +- [`set-dashed-border-for-button-annotations.cs`](./set-dashed-border-for-button-annotations.cs) -- Set dashed border for button annotations +- [`set-figure-annotation-border-color-dark-gray.cs`](./set-figure-annotation-border-color-dark-gray.cs) -- Set figure annotation border color dark gray +- [`set-figure-annotation-border-width.cs`](./set-figure-annotation-border-width.cs) -- Set figure annotation border width +- [`set-highlight-annotation-opacity.cs`](./set-highlight-annotation-opacity.cs) -- Set highlight annotation opacity +- [`set-line-ending-styles-pdf.cs`](./set-line-ending-styles-pdf.cs) -- Set line ending styles pdf +- [`set-link-annotation-border-red-width-3.cs`](./set-link-annotation-border-red-width-3.cs) -- Set link annotation border red width 3 +- [`set-underline-annotation-opacity.cs`](./set-underline-annotation-opacity.cs) -- Set underline annotation opacity +- [`toggle-rich-media-annotation-visibility.cs`](./toggle-rich-media-annotation-visibility.cs) -- Toggle rich media annotation visibility +- [`toggle-rich-media-visibility-button.cs`](./toggle-rich-media-visibility-button.cs) -- Toggle rich media visibility button +- [`toggle-watermark-visibility-button.cs`](./toggle-watermark-visibility-button.cs) -- Toggle watermark visibility button +- [`update-watermark-artifact-opacity.cs`](./update-watermark-artifact-opacity.cs) -- Update watermark artifact opacity +- [`validate-xfdf-annotation-count-per-page.cs`](./validate-xfdf-annotation-count-per-page.cs) -- Validate xfdf annotation count per page + +## See Also + +- [`AGENTS.md`](./AGENTS.md) -- category-specific anti-patterns, API surface, and conventions for AI coding agents +- [`../AGENTS.md`](../AGENTS.md) -- repository-wide agent guide +- [`../README.md`](../README.md) -- full category index and project overview +- [Aspose.PDF for .NET docs](https://docs.aspose.com/pdf/net/) + +> Each `.cs` file is a standalone, build-validated console example. Drop into a fresh `dotnet new console` project, add the `Aspose.PDF` NuGet (version above), and run. diff --git a/working-with-annotations/index.json b/working-with-annotations/index.json index d79197725..26ae58033 100644 --- a/working-with-annotations/index.json +++ b/working-with-annotations/index.json @@ -1,71 +1,116 @@ { "category": "working-with-annotations", "nuget_version": "26.8.0", - "last_updated": "2026-08-20T08:30:08Z", + "last_updated": "2026-09-10T12:45:08Z", "examples": { - "add-text-annotation-to-pdf-page-3": { - "title": "Add Text Annotation to PDF Page 3", - "filename": "add-text-annotation-to-pdf-page-3.cs", - "description": "Demonstrates loading a PDF, verifying it has at least three pages, and adding a yellow sticky‑note text annotation to page three before saving the document.", + "add-3d-annotation-custom-camera-view": { + "title": "Add 3D Annotation Custom Camera View", + "filename": "add-3d-annotation-custom-camera-view.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-3d-annotation-front-view": { + "title": "Add 3D Annotation with Front View to PDF", + "filename": "add-3d-annotation-front-view.cs", + "description": "Shows how to embed a U3D/PRC 3‑D model into a PDF, create a 3‑D annotation, define a front‑facing view, and save the updated document.", "tags": [ - "pdf", + "3d", "annotation", - "text-annotation", + "pdf", + "aspose", + "view" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Annotations.PDF3DContent", + "Aspose.Pdf.Annotations.PDF3DArtwork", + "Aspose.Pdf.Annotations.PDF3DAnnotation", + "Aspose.Pdf.Annotations.PDF3DView", + "Aspose.Pdf.Annotations.Matrix3D", + "Aspose.Pdf.Rectangle" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T08:30:08Z", + "status": "verified" + }, + "add-3d-annotation-with-custom-camera": { + "title": "Add 3D Annotation with Custom Camera to PDF", + "filename": "add-3d-annotation-with-custom-camera.cs", + "description": "Shows how to embed a 3D model into a PDF and define a custom camera view using Aspose.Pdf 3D annotation classes.", + "tags": [ + "3d-annotation", + "custom-camera", + "pdf", "aspose-pdf", - "csharp" + "view" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Annotations.TextIcon", - "Aspose.Pdf.Color" + "Aspose.Pdf.Annotations.PDF3DContent", + "Aspose.Pdf.Annotations.PDF3DArtwork", + "Aspose.Pdf.Annotations.Matrix3D", + "Aspose.Pdf.Annotations.PDF3DView", + "Aspose.Pdf.Annotations.PDF3DAnnotation" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "create-popup-annotation-linked-to-highlight": { - "title": "Create Popup Annotation Linked to Highlight", - "filename": "create-popup-annotation-linked-to-highlight.cs", - "description": "Loads a PDF, adds a highlight annotation on the first page, creates a popup annotation, links the popup to the highlight, and saves the modified document.", + "add-3d-u3d-annotation-initial-view-page-2": { + "title": "Add 3D U3D Annotation Initial View Page 2", + "filename": "add-3d-u3d-annotation-initial-view-page-2.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-3d-u3d-annotation-initial-view-page-two": { + "title": "Add 3D U3D Annotation with Initial View on Page Two", + "filename": "add-3d-u3d-annotation-initial-view-page-two.cs", + "description": "Shows how to embed a U3D model as a 3D annotation in a PDF, define an initial camera view, and place the annotation on the second page using Aspose.Pdf.", "tags": [ - "highlight", - "popup", - "annotation", - "link", - "pdf" + "3D annotation", + "U3D", + "Aspose.Pdf", + "initial view", + "page two" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.HighlightAnnotation", - "Aspose.Pdf.Annotations.PopupAnnotation", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Color" + "Aspose.Pdf.Annotations.PDF3DContent.LoadAsU3D", + "Aspose.Pdf.Annotations.PDF3DArtwork", + "Aspose.Pdf.Annotations.PDF3DAnnotation", + "Aspose.Pdf.Annotations.Matrix3D", + "Aspose.Pdf.Annotations.PDF3DView", + "Aspose.Pdf.Page.Annotations.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "add-free-text-annotation-arial": { - "title": "Add Free‑Text Annotation with Arial Font to PDF", - "filename": "add-free-text-annotation-arial.cs", - "description": "Demonstrates how to create a free‑text annotation on a PDF page using Arial, 12‑point font, and save the modified document.", + "add-animated-gif-screen-annotation": { + "title": "Add Animated GIF Screen Annotation to PDF Page", + "filename": "add-animated-gif-screen-annotation.cs", + "description": "Demonstrates how to place a ScreenAnnotation that shows an animated GIF, looping continuously, on the third page of a PDF using Aspose.Pdf.", "tags": [ - "free-text", - "annotation", + "screen-annotation", + "animated-gif", "pdf", - "Aspose.Pdf", - "Arial" + "aspose-pdf", + "page-3" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.DefaultAppearance", - "Aspose.Pdf.Annotations.FreeTextAnnotation", + "Aspose.Pdf.Annotations.ScreenAnnotation", "Aspose.Pdf.Page.Annotations.Add", "Aspose.Pdf.Document.Save" ], @@ -73,514 +118,664 @@ "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "add-callout-leader-line-to-freetext-annotation": { - "title": "Add Callout Leader Line to Free-Text Annotation", - "filename": "add-callout-leader-line-to-freetext-annotation.cs", - "description": "Demonstrates creating a FreeTextAnnotation with a callout leader line by configuring the Callout property, appearance, and intent, then saving the PDF.", + "add-auto-play-rich-media-annotation": { + "title": "Add Auto Play Rich Media Annotation", + "filename": "add-auto-play-rich-media-annotation.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-automatic-background-music-to-pdf": { + "title": "Add Automatic Background Music to PDF", + "filename": "add-automatic-background-music-to-pdf.cs", + "description": "Demonstrates how to embed an MP3 audio file as a RichMediaAnnotation that automatically plays when the page becomes visible.", "tags": [ - "free-text", - "callout", + "richmedia", + "audio", "annotation", - "leader-line", - "Aspose.Pdf" + "background-music", + "aspose.pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.FreeTextAnnotation", - "Aspose.Pdf.FreeTextIntent", - "Aspose.Pdf.DefaultAppearance", - "Aspose.Pdf.Point", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Annotations.RichMediaAnnotation", + "Aspose.Pdf.Annotations.RichMediaAnnotation.ActivationEvent", + "Aspose.Pdf.Annotations.RichMediaAnnotation.ContentType", + "Aspose.Pdf.Annotations.RichMediaAnnotation.SetContent", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "hide-free-text-annotation-page-five": { - "title": "Hide Free‑Text Annotation on a Specific PDF Page", - "filename": "hide-free-text-annotation-page-five.cs", - "description": "Shows how to add a free‑text annotation to page 5 of a PDF and make it invisible by setting the Hidden flag while keeping the annotation data intact.", + "add-background-image-artifact-to-pdf-page": { + "title": "Add Background Image Artifact to PDF Page", + "filename": "add-background-image-artifact-to-pdf-page.cs", + "description": "Demonstrates how to create a BackgroundArtifact from an image file and attach it to a page's Artifacts collection, placing it behind the page content.", "tags": [ - "free-text", - "annotation", - "hidden", + "background", + "artifact", + "image", "pdf", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.DefaultAppearance", - "Aspose.Pdf.Annotations.FreeTextAnnotation", - "Aspose.Pdf.Annotations.AnnotationFlags", + "Aspose.Pdf.BackgroundArtifact", + "Aspose.Pdf.BackgroundArtifact.SetImage", + "Aspose.Pdf.Page.Artifacts.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "add-yellow-highlight-annotation": { - "title": "Add Yellow Highlight Annotation with Opacity", - "filename": "add-yellow-highlight-annotation.cs", - "description": "Shows how to create a highlight annotation on a PDF page, set its color to yellow and opacity to 80%, and save the updated document.", + "add-background-image-to-pdf-page": { + "title": "Add Background Image To Pdf Page", + "filename": "add-background-image-to-pdf-page.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-background-music-to-pdf": { + "title": "Add Background Music To Pdf", + "filename": "add-background-music-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-bates-numbering-with-prefix": { + "title": "Add Bates Numbering Artifact with Prefix to PDF", + "filename": "add-bates-numbering-with-prefix.cs", + "description": "Demonstrates how to add a Bates numbering artifact with a custom \"ABC\" prefix and a six‑digit format to each page of a PDF using Aspose.Pdf.", "tags": [ - "highlight", + "bates-numbering", + "pdf", "annotation", - "color", - "opacity", - "pdf" + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Annotations.HighlightAnnotation", - "Aspose.Pdf.Color", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Page.Annotations.Add", + "Aspose.Pdf.PageCollectionExtensions.AddBatesNumbering", + "Aspose.Pdf.BatesNArtifact", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "set-underline-annotation-opacity": { - "title": "Set Underline Annotation Opacity in PDF", - "filename": "set-underline-annotation-opacity.cs", - "description": "Shows how to load a PDF, find underline annotations on a specific page, and change their opacity to 50% using Aspose.Pdf.", + "add-button-annotation-go-to-page-10": { + "title": "Add Button Annotation to Navigate to Page 10", + "filename": "add-button-annotation-go-to-page-10.cs", + "description": "Shows how to create a button form field that jumps to page 10 of the same PDF when activated, using Aspose.Pdf.", "tags": [ - "underline", + "button", "annotation", - "opacity", + "goto-action", "pdf", - "aspose" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.UnderlineAnnotation", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.ButtonField", + "Aspose.Pdf.Annotations.GoToAction", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "add-strikeout-annotation-with-author": { - "title": "Add Strikeout Annotation with Author to PDF", - "filename": "add-strikeout-annotation-with-author.cs", - "description": "Demonstrates how to create a strike‑out annotation on a PDF page, set its author (title) to Jane Smith, and save the modified document.", + "add-button-annotation-highlight-text-fields": { + "title": "Create Button Annotation to Highlight Text Fields", + "filename": "add-button-annotation-highlight-text-fields.cs", + "description": "Shows how to add a push‑button annotation to a PDF page with Aspose.Pdf, attach a JavaScript action that highlights all text fields on the current page, and save the updated document.", "tags": [ + "button", + "javascript", "annotation", - "strikeout", - "author", "pdf", - "Aspose.Pdf" + "textfield" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.StrikeOutAnnotation", - "Aspose.Pdf.Color" + "Aspose.Pdf.Forms.ButtonField", + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Annotations.AnnotationCollection.Add", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "delete-annotation-by-id-page-two": { - "title": "Delete Annotation by Id from Page Two", - "filename": "delete-annotation-by-id-page-two.cs", - "description": "Shows how to locate an annotation using its Name (unique Id) on the second page of a PDF and delete it with Aspose.Pdf.", + "add-callout-leader-line-to-freetext-annotation": { + "title": "Add Callout Leader Line to Free-Text Annotation", + "filename": "add-callout-leader-line-to-freetext-annotation.cs", + "description": "Demonstrates creating a FreeTextAnnotation with a callout leader line by configuring the Callout property, appearance, and intent, then saving the PDF.", "tags": [ - "annotations", - "delete", - "pdf", - "Aspose.Pdf", - "page2" + "free-text", + "callout", + "annotation", + "leader-line", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Page.Annotations.Delete", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.FreeTextAnnotation", + "Aspose.Pdf.FreeTextIntent", + "Aspose.Pdf.DefaultAppearance", + "Aspose.Pdf.Point", + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "remove-annotations-from-third-pdf-page": { - "title": "Remove All Annotations from a PDF Page", - "filename": "remove-annotations-from-third-pdf-page.cs", - "description": "Demonstrates how to load a PDF, access the third page, clear all its annotations, and save the modified document using Aspose.Pdf.", + "add-diagonal-watermark-annotation": { + "title": "Add Diagonal Watermark Annotation to PDF", + "filename": "add-diagonal-watermark-annotation.cs", + "description": "Demonstrates how to place a WatermarkAnnotation diagonally across a PDF page using a rectangle geometry and simulate a gradient effect with semi‑transparent color.", "tags": [ - "annotations", - "pdf", - "page", - "remove", + "watermark", + "annotation", + "gradient", + "pdf", "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Annotations.AnnotationCollection.Clear", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.WatermarkAnnotation", + "Aspose.Pdf.Color.FromRgb", + "Aspose.Pdf.Page.Annotations.Add", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "list-annotation-types-on-pdf-page": { - "title": "List Annotation Types on a PDF Page", - "filename": "list-annotation-types-on-pdf-page.cs", - "description": "Loads a PDF, ensures it has at least four pages, accesses page 4, iterates over its annotations, and writes each annotation's type to the console.", + "add-dynamic-date-watermark-to-pdf-pages": { + "title": "Add Dynamic Date Watermark to PDF Pages", + "filename": "add-dynamic-date-watermark-to-pdf-pages.cs", + "description": "Demonstrates how to add a WatermarkAnnotation with a runtime‑generated date string to each page of a PDF using Aspose.Pdf.", "tags": [ - "annotations", + "watermark", + "annotation", + "date", "pdf", - "aspose", - "page", - "csharp" + "Aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Page.Annotations", - "Aspose.Pdf.Annotations.Annotation.AnnotationType" + "Aspose.Pdf.Annotations.WatermarkAnnotation", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Text.FontRepository.FindFont", + "Aspose.Pdf.Annotations.WatermarkAnnotation.SetTextAndState", + "Aspose.Pdf.Page.Annotations.Add", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "modify-annotation-rectangle-by-id": { - "title": "Modify Annotation Rectangle by Id in PDF", - "filename": "modify-annotation-rectangle-by-id.cs", - "description": "Loads a PDF, locates an annotation using its Name (Id), adjusts its rectangle coordinates, and saves the updated document.", + "add-dynamic-page-number-watermark": { + "title": "Add Dynamic Page Number Watermark to PDF", + "filename": "add-dynamic-page-number-watermark.cs", + "description": "Shows how to create a WatermarkAnnotation that displays the current page number on each page of a PDF and saves the result using Aspose.Pdf.", "tags": [ + "watermark", "annotation", - "rectangle", + "page-number", "pdf", - "aspose", - "modify" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Page.Annotations.FindByName", - "Aspose.Pdf.Annotation.Rect", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Annotations.WatermarkAnnotation", + "Aspose.Pdf.Annotations.WatermarkAnnotation.SetTextAndState", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Text.FontRepository.FindFont", + "Aspose.Pdf.Rectangle" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "import-xfdf-annotations-into-pdf": { - "title": "Import XFDF Annotations into PDF", - "filename": "import-xfdf-annotations-into-pdf.cs", - "description": "Shows how to load a PDF, import annotations from an XFDF string using a memory stream, and save the updated document.", + "add-export-annotations-button": { + "title": "Add Export Annotations Button", + "filename": "add-export-annotations-button.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-external-link-annotation-to-pdf": { + "title": "Add External Link Annotation To Pdf", + "filename": "add-external-link-annotation-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-external-url-link-annotation": { + "title": "Add External URL Link Annotation to PDF", + "filename": "add-external-url-link-annotation.cs", + "description": "Shows how to create a link annotation that opens an external website when the user clicks the annotation area using Aspose.Pdf.", "tags": [ - "xfdf", - "annotations", - "import", + "link-annotation", + "external-url", "pdf", - "aspose-pdf" + "aspose-pdf", + "annotations" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.ImportAnnotationsFromXfdf", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.LinkAnnotation", + "Aspose.Pdf.Annotations.GoToURIAction" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "export-pdf-annotations-to-xfdf": { - "title": "Export PDF Annotations to XFDF", - "filename": "export-pdf-annotations-to-xfdf.cs", - "description": "Loads a PDF file, verifies its existence, and exports all page annotations to an XFDF file saved in the same folder as the source PDF.", + "add-figure-annotation-around-table": { + "title": "Add Figure Annotation Around a Detected Table", + "filename": "add-figure-annotation-around-table.cs", + "description": "Demonstrates how to use TableAbsorber to locate a table on a PDF page and draw a square (figure) annotation around it with custom border and fill colors.", "tags": [ - "annotations", - "xfdf", - "export", - "pdf", - "aspose-pdf" + "table", + "annotation", + "square", + "aspose-pdf", + "pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.ExportAnnotationsToXfdf" + "Aspose.Pdf.TableAbsorber", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.SquareAnnotation", + "Aspose.Pdf.Annotations.Border", + "Aspose.Pdf.Color" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "import-annotations-from-fdf": { - "title": "Import Annotations from FDF into PDF", - "filename": "import-annotations-from-fdf.cs", - "description": "Shows how to load a PDF, read an FDF file containing annotations, import those annotations into the PDF, and save the updated document.", + "add-figure-annotation-external-image": { + "title": "Add Figure Annotation Referencing External Image", + "filename": "add-figure-annotation-external-image.cs", + "description": "Demonstrates how to create a FileAttachment (figure) annotation in a PDF that uses an external image file as its appearance and saves the updated document.", "tags": [ - "annotations", - "FDF", - "PDF", - "import", - "Aspose.Pdf" + "annotation", + "fileattachment", + "image", + "pdf", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Annotations.FdfReader", - "Aspose.Pdf.Annotations.FdfReader.ReadAnnotations", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.Annotations.FileAttachmentAnnotation", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "batch-add-text-annotations-to-pdf-pages": { - "title": "Batch Add Text Annotations to PDF Pages", - "filename": "batch-add-text-annotations-to-pdf-pages.cs", - "description": "Shows how to load a PDF, iterate over every page, create a TextAnnotation, and add it to each page using Aspose.Pdf.", + "add-figure-annotations-custom-line-width-color": { + "title": "Add Figure Annotations Custom Line Width Color", + "filename": "add-figure-annotations-custom-line-width-color.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-flash-rich-media-annotation": { + "title": "Add Flash Rich Media Annotation", + "filename": "add-flash-rich-media-annotation.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-footer-watermark-annotation": { + "title": "Add Footer Watermark Annotation", + "filename": "add-footer-watermark-annotation.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-footer-watermark-to-pdf-pages": { + "title": "Add Footer Watermark to PDF Pages", + "filename": "add-footer-watermark-to-pdf-pages.cs", + "description": "Demonstrates loading a PDF with Aspose.Pdf, iterating through each page, and adding a WatermarkAnnotation at the bottom as a unique page identifier, then saving the result.", "tags": [ - "annotations", "pdf", - "text-annotation", - "loop", - "Aspose.Pdf" + "watermark", + "annotation", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.TextAnnotation", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Color", - "Aspose.Pdf.Annotations.TextIcon", - "Aspose.Pdf.Page.Annotations.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Annotations.WatermarkAnnotation", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Page.Annotations.Add" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "highlight-keyword-across-pdf-pages": { - "title": "Highlight Keyword Across All PDF Pages", - "filename": "highlight-keyword-across-pdf-pages.cs", - "description": "Shows how to search for a specific word in a PDF and apply highlight annotations to every occurrence on all pages using Aspose.Pdf.", + "add-free-text-annotation-arial": { + "title": "Add Free‑Text Annotation with Arial Font to PDF", + "filename": "add-free-text-annotation-arial.cs", + "description": "Demonstrates how to create a free‑text annotation on a PDF page using Arial, 12‑point font, and save the modified document.", "tags": [ - "highlight", - "keyword", - "pdf", + "free-text", "annotation", - "search" + "pdf", + "Aspose.Pdf", + "Arial" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextFragmentAbsorber", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Annotations.HighlightAnnotation", + "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Color" + "Aspose.Pdf.Annotations.DefaultAppearance", + "Aspose.Pdf.Annotations.FreeTextAnnotation", + "Aspose.Pdf.Page.Annotations.Add", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "add-square-figure-annotations-custom-border": { - "title": "Add Square Figure Annotations with Custom Border to Selected PDF Pages", - "filename": "add-square-figure-annotations-custom-border.cs", - "description": "Demonstrates how to programmatically add square figure annotations with a custom line width and color to specific pages of a PDF using Aspose.Pdf.", + "add-free-text-annotation-with-callout": { + "title": "Add Free‑Text Annotation with Callout to PDF", + "filename": "add-free-text-annotation-with-callout.cs", + "description": "Demonstrates how to load a PDF, create a free‑text annotation with a callout line, set its appearance and border, and save the modified document.", "tags": [ + "free-text", "annotation", - "square", - "border", + "callout", "pdf", - "Aspose" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.SquareAnnotation", + "Aspose.Pdf.Annotations.DefaultAppearance", + "Aspose.Pdf.Annotations.FreeTextAnnotation", "Aspose.Pdf.Annotations.Border", - "Aspose.Pdf.Color" + "Aspose.Pdf.Point" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "batch-export-pdf-annotations-to-xfdf": { - "title": "Batch Export PDF Annotations to XFDF", - "filename": "batch-export-pdf-annotations-to-xfdf.cs", - "description": "Demonstrates how to load multiple PDF files from a folder and export each document's annotations to separate XFDF files using Aspose.Pdf.", + "add-goto-page-button-annotation": { + "title": "Add Goto Page Button Annotation", + "filename": "add-goto-page-button-annotation.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-highlight-annotation-70-opacity": { + "title": "Add Highlight Annotation with 70% Opacity to PDF", + "filename": "add-highlight-annotation-70-opacity.cs", + "description": "Shows how to load a PDF, create a highlight annotation with 70% opacity, set its color, add it to a page, and save the updated document.", "tags": [ - "annotations", - "xfdf", - "batch", + "highlight", + "annotation", + "opacity", "pdf", - "export" + "Aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.ExportAnnotationsToXfdf" + "Aspose.Pdf.Annotations.HighlightAnnotation", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Color", + "Aspose.Pdf.Page.Annotations.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "import-xfdf-annotations-into-multiple-pdfs": { - "title": "Import XFDF Annotations into Multiple PDFs in Parallel", - "filename": "import-xfdf-annotations-into-multiple-pdfs.cs", - "description": "Shows how to load a PDF, import annotation data from an XFDF file, and save the updated document while processing several PDFs concurrently using Parallel.ForEach.", + "add-highlight-annotation-with-opacity": { + "title": "Add Highlight Annotation with Custom Opacity to PDF", + "filename": "add-highlight-annotation-with-opacity.cs", + "description": "Shows how to load a PDF, create a highlight annotation with a specific color and opacity, add it to a page, and save the modified document using Aspose.Pdf.", "tags": [ - "xfdf", - "annotations", - "parallel", - "aspose.pdf", - "csharp" + "highlight", + "annotation", + "opacity", + "pdf", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.ImportAnnotationsFromXfdf", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.HighlightAnnotation", + "Aspose.Pdf.Color", + "Aspose.Pdf.Page.Annotations", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "validate-xfdf-annotation-count-per-page": { - "title": "Validate XFDF Annotation Count per PDF Page", - "filename": "validate-xfdf-annotation-count-per-page.cs", - "description": "Loads a PDF, imports annotations from an XFDF file, and verifies that each page contains the expected number of annotations.", + "add-highres-pdf-page-as-tiled-background": { + "title": "Add High-Resolution PDF Page as Tiled Background", + "filename": "add-highres-pdf-page-as-tiled-background.cs", + "description": "Shows how to use Aspose.Pdf's BackgroundArtifact to set a high‑resolution PDF page as a tiled background for a new document.", "tags": [ - "xfdf", - "annotations", - "validation", + "backgroundartifact", "pdf", - "aspose" + "tiled", + "high-resolution", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations", - "Aspose.Pdf.Document.ImportAnnotationsFromXfdf", - "Aspose.Pdf.Page.Annotations" + "Aspose.Pdf.BackgroundArtifact", + "Aspose.Pdf.BackgroundArtifact.SetPdfPage", + "Aspose.Pdf.BackgroundArtifact.IsBackground", + "Aspose.Pdf.Page.SetPageSize", + "Aspose.Pdf.Page.Artifacts.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "export-import-annotations-xfdf": { - "title": "Export and Re‑Import PDF Annotations via XFDF", - "filename": "export-import-annotations-xfdf.cs", - "description": "Demonstrates exporting all annotations from a PDF to an XFDF file, importing them back into the same document, and verifying round‑trip integrity by comparing annotation counts.", + "add-internal-link-annotation-to-pdf": { + "title": "Add Internal Link Annotation to PDF", + "filename": "add-internal-link-annotation-to-pdf.cs", + "description": "Shows how to create a link annotation that navigates to a specific page within the same PDF document using Aspose.Pdf.", "tags": [ - "annotations", - "xfdf", - "export", - "import", - "roundtrip" + "link-annotation", + "internal-link", + "pdf", + "Aspose.Pdf", + "page-destination" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Document.ExportAnnotationsToXfdf", - "Aspose.Pdf.Document.ImportAnnotationsFromXfdf", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.LinkAnnotation", + "Aspose.Pdf.FitExplicitDestination", + "Aspose.Pdf.Border", + "Aspose.Pdf.Color" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "list-pdf-annotation-ids-to-csv": { - "title": "List PDF Annotation IDs and Export to CSV", - "filename": "list-pdf-annotation-ids-to-csv.cs", - "description": "Loads a PDF, iterates through each page's annotations, extracts their Name and FullName, and writes the information to a CSV file.", + "add-javascript-button-annotation-to-pdf-page": { + "title": "Add JavaScript Button Annotation to PDF Page", + "filename": "add-javascript-button-annotation-to-pdf-page.cs", + "description": "Demonstrates how to create a push button on page 4 of a PDF and attach a JavaScript action that shows an alert when the button is clicked.", "tags": [ - "annotations", - "csv", - "aspose-pdf", - "export", - "pages" + "button", + "javascript", + "annotation", + "pdf", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Page.Annotations" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.ButtonField", + "Aspose.Pdf.Annotations.JavascriptAction" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "filter-pdf-annotations-by-author": { - "title": "Filter PDF Annotations by Author", - "filename": "filter-pdf-annotations-by-author.cs", - "description": "Shows how to iterate through a PDF, retain only markup annotations whose author matches a given user, and delete all other annotations using Aspose.Pdf.", + "add-javascript-link-annotation-modal-dialog": { + "title": "Add JavaScript Link Annotation to Show Modal Dialog", + "filename": "add-javascript-link-annotation-modal-dialog.cs", + "description": "Shows how to create a link annotation with a JavaScript action that displays a custom modal dialog box in a PDF using Aspose.Pdf.", "tags": [ - "annotations", - "author", - "filter", - "Aspose.Pdf", - "C#" + "link-annotation", + "javascript", + "modal-dialog", + "pdf", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.AnnotationCollection", - "Aspose.Pdf.Annotations.MarkupAnnotation", - "Aspose.Pdf.Annotations.AnnotationCollection.Delete", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.LinkAnnotation", + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Annotations.Border", + "Aspose.Pdf.Color" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "add-strikethrough-annotation-to-pdf": { - "title": "Add Strikethrough Annotation with Author to PDF", - "filename": "add-strikethrough-annotation-to-pdf.cs", - "description": "Demonstrates how to load a PDF, define a rectangle over a paragraph, create a StrikeOutAnnotation, set its author, and save the updated document using Aspose.Pdf.", + "add-javascript-link-annotation": { + "title": "Add JavaScript Link Annotation to Open URL", + "filename": "add-javascript-link-annotation.cs", + "description": "Demonstrates how to add a link annotation with a JavaScript action that opens a URL in a new browser window using Aspose.Pdf.", "tags": [ - "strikeout", - "annotation", + "link-annotation", + "javascript", "pdf", - "author", - "Aspose.Pdf" + "aspose-pdf", + "url" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.StrikeOutAnnotation", - "Aspose.Pdf.Color" + "Aspose.Pdf.Annotations.LinkAnnotation", + "Aspose.Pdf.Annotations.JavascriptAction" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "generate-annotation-summary-per-pdf-page": { - "title": "Generate Annotation Summary per PDF Page", - "filename": "generate-annotation-summary-per-pdf-page.cs", - "description": "Loads a PDF, iterates through each page to count annotation types, and saves the results as a formatted JSON summary file.", + "add-js-link-word-count": { + "title": "Add Js Link Word Count", + "filename": "add-js-link-word-count.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-magenta-underline-annotation": { + "title": "Add Magenta Underline Annotation to PDF", + "filename": "add-magenta-underline-annotation.cs", + "description": "Demonstrates how to add an underline annotation with magenta color and a 2‑point border to a PDF page using Aspose.Pdf.", "tags": [ - "annotations", - "pdf", - "summary", - "json", - "aspose" + "underline", + "annotation", + "color", + "border", + "pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.Annotation.AnnotationType", - "Aspose.Pdf.Document.Pages" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.UnderlineAnnotation", + "Aspose.Pdf.Annotations.Border", + "Aspose.Pdf.Color" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, + "add-polyline-annotation-to-pdf": { + "title": "Add Polyline Annotation To Pdf", + "filename": "add-polyline-annotation-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-polyline-annotation-to-pdf__v2": { + "title": "Add Polyline Annotation To Pdf__V2", + "filename": "add-polyline-annotation-to-pdf__v2.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "add-polyline-figure-annotation": { "title": "Add Polyline Figure Annotation to PDF", "filename": "add-polyline-figure-annotation.cs", @@ -605,427 +800,518 @@ "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "set-arrow-line-endings-on-pdf-annotation": { - "title": "Set Arrow Line Endings on PDF Annotation", - "filename": "set-arrow-line-endings-on-pdf-annotation.cs", - "description": "Demonstrates how to add a line annotation to a PDF page and configure its start and end line ending styles to open and closed arrows using Aspose.Pdf.", + "add-polyline-figure-annotation__v2": { + "title": "Add Polyline Figure Annotation to PDF", + "filename": "add-polyline-figure-annotation__v2.cs", + "description": "Shows how to create a polyline figure annotation from a list of points and add it to a PDF page using Aspose.Pdf.", "tags": [ - "pdf", + "polyline", "annotation", - "line", - "arrow", - "Aspose.Pdf" + "pdf", + "Aspose.Pdf", + "figure" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Annotations.LineAnnotation", + "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Point", - "Aspose.Pdf.Color", - "Aspose.Pdf.Annotations.LineEnding" + "Aspose.Pdf.Annotations.PolylineAnnotation", + "Aspose.Pdf.Page.Annotations.Add", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "import-annotations-from-fdf__v2": { - "title": "Import Annotations from FDF into PDF", - "filename": "import-annotations-from-fdf__v2.cs", - "description": "Shows how to read an FDF file and import its annotations onto the matching pages of a PDF document using Aspose.Pdf.", + "add-popup-annotation-to-pdf": { + "title": "Add Popup Annotation Linked to a Sticky Note", + "filename": "add-popup-annotation-to-pdf.cs", + "description": "Demonstrates how to create a TextAnnotation (sticky note) and a linked PopupAnnotation in a PDF using Aspose.Pdf, then save the document.", "tags": [ - "fdf", - "annotations", - "import", + "popup", + "annotation", + "sticky-note", "pdf", - "aspose" + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Annotations.FdfReader.ReadAnnotations" + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Annotations.PopupAnnotation", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Color" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "recolor-highlight-annotations-light-green": { - "title": "Recolor Highlight Annotations to Light Green", - "filename": "recolor-highlight-annotations-light-green.cs", - "description": "Shows how to load a PDF, iterate through all pages and annotations, identify HighlightAnnotation objects, change their color to LightGreen, and save the modified document.", + "add-popup-annotation-to-pdf__v2": { + "title": "Add Popup Annotation Linked to a Text Annotation with Custom Size and Position", + "filename": "add-popup-annotation-to-pdf__v2.cs", + "description": "Demonstrates how to create a TextAnnotation as a parent markup, add a PopupAnnotation with custom dimensions, position it relative to the parent, and link the two annotations in a PDF document using Aspose.Pdf.", "tags": [ - "highlight", + "popup", "annotation", - "color", - "pdf", - "Aspose" + "positioning", + "Aspose.Pdf", + "text-annotation" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.HighlightAnnotation", - "Aspose.Pdf.Color", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Annotations.PopupAnnotation", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Color" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "retrieve-annotation-bounding-rectangle": { - "title": "Retrieve Annotation Bounding Rectangle from PDF", - "filename": "retrieve-annotation-bounding-rectangle.cs", - "description": "Loads a PDF, validates a page and annotation index, obtains the annotation's bounding rectangle (considering page rotation), and logs its coordinates and size.", + "add-popup-annotation-with-custom-dimensions": { + "title": "Add Popup Annotation With Custom Dimensions", + "filename": "add-popup-annotation-with-custom-dimensions.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-qr-code-watermark-to-pdf": { + "title": "Add QR Code Watermark to PDF", + "filename": "add-qr-code-watermark-to-pdf.cs", + "description": "Creates a PDF document and adds a QR code image as a watermark artifact positioned at the top‑right corner of the page.", "tags": [ - "annotation", - "rectangle", "pdf", - "aspose", - "bounding-box" + "watermark", + "qr-code", + "artifact", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.Annotation.GetRectangle" + "Aspose.Pdf.WatermarkArtifact", + "Aspose.Pdf.WatermarkArtifact.SetImage", + "Aspose.Pdf.WatermarkArtifact.ArtifactHorizontalAlignment", + "Aspose.Pdf.Page.Artifacts.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "add-highlight-annotation-70-opacity": { - "title": "Add Highlight Annotation with 70% Opacity to PDF", - "filename": "add-highlight-annotation-70-opacity.cs", - "description": "Shows how to load a PDF, create a highlight annotation with 70% opacity, set its color, add it to a page, and save the updated document.", + "add-read-only-rich-media-pdf-annotation": { + "title": "Add Read‑Only Rich Media PDF Annotation", + "filename": "add-read-only-rich-media-pdf-annotation.cs", + "description": "Demonstrates how to embed a PDF as a rich‑media annotation in another PDF and set it to read‑only using Aspose.Pdf.", "tags": [ - "highlight", + "richmedia", "annotation", - "opacity", "pdf", - "Aspose" + "readonly", + "embed" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Annotations.HighlightAnnotation", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Color", - "Aspose.Pdf.Page.Annotations.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.RichMediaAnnotation", + "Aspose.Pdf.Annotations.AnnotationFlags", + "Aspose.Pdf.Annotations.RichMediaAnnotation.SetContent", + "Aspose.Pdf.Page.Annotations.Add" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "add-popup-annotation-to-pdf": { - "title": "Add Popup Annotation Linked to a Sticky Note", - "filename": "add-popup-annotation-to-pdf.cs", - "description": "Demonstrates how to create a TextAnnotation (sticky note) and a linked PopupAnnotation in a PDF using Aspose.Pdf, then save the document.", + "add-repeating-text-watermark-artifact": { + "title": "Add Repeating Text Watermark Artifact to PDF Pages", + "filename": "add-repeating-text-watermark-artifact.cs", + "description": "Demonstrates how to create a semi‑transparent WatermarkArtifact with repeating text and apply it as a background to every page of a PDF using Aspose.Pdf.", "tags": [ - "popup", - "annotation", - "sticky-note", + "watermark", "pdf", + "artifact", + "text", "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Annotations.PopupAnnotation", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Color" + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Text.FontRepository", + "Aspose.Pdf.Text.Color", + "Aspose.Pdf.WatermarkArtifact", + "Aspose.Pdf.Page" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "import-xfdf-annotations-reassign-pages": { - "title": "Import XFDF Annotations and Reassign to Different PDF Pages", - "filename": "import-xfdf-annotations-reassign-pages.cs", - "description": "Demonstrates how to import annotations from an XFDF file into a PDF using Aspose.Pdf, then move those annotations to other pages based on a custom page‑mapping dictionary.", + "add-rich-media-annotation-hidden-toolbar": { + "title": "Add Rich Media Annotation with Hidden Playback Toolbar", + "filename": "add-rich-media-annotation-hidden-toolbar.cs", + "description": "Demonstrates embedding a video as a RichMediaAnnotation in a PDF using Aspose.Pdf and hiding the default playback toolbar via custom flash variables.", "tags": [ - "xfdf", - "annotations", - "page-mapping", - "aspose-pdf", - "csharp" + "richmedia", + "annotation", + "video", + "toolbar", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.ImportAnnotationsFromXfdf", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.AnnotationCollection.Add", - "Aspose.Pdf.Annotations.AnnotationCollection.Delete" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.RichMediaAnnotation", + "Aspose.Pdf.Annotations.RichMediaAnnotation.ActivationEvent", + "Aspose.Pdf.Annotations.RichMediaAnnotation.SetContent", + "Aspose.Pdf.Annotations.RichMediaAnnotation.CustomFlashVariables", + "Aspose.Pdf.Page.Annotations.Add" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "remove-popup-annotations-from-pdf": { - "title": "Remove Popup Annotations from PDF", - "filename": "remove-popup-annotations-from-pdf.cs", - "description": "Shows how to iterate through each page of a PDF, locate PopupAnnotation objects, and delete them while preserving their parent markup annotations using Aspose.Pdf.", + "add-rich-media-annotation-pdf-portfolio": { + "title": "Add Rich Media Annotation with PDF Portfolio", + "filename": "add-rich-media-annotation-pdf-portfolio.cs", + "description": "Demonstrates how to embed a PDF portfolio into a RichMedia annotation and set the initial view to the first embedded file using Aspose.Pdf.", "tags": [ - "popup", + "richmedia", "annotation", - "delete", - "Aspose.Pdf", - "PDF" + "pdf-portfolio", + "embed", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.PopupAnnotation", - "Aspose.Pdf.Annotations.AnnotationCollection.Delete", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.RichMediaAnnotation", + "RichMediaAnnotation.SetContent", + "RichMediaAnnotation.ActiveState", + "Page.Annotations.Add", + "Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "group-pdf-annotations-by-type": { - "title": "Group PDF Annotations by Type and Report Summary", - "filename": "group-pdf-annotations-by-type.cs", - "description": "Loads a PDF document, iterates through its pages to collect all annotations, groups them by AnnotationType, and prints a summary count and detailed listing per page.", + "add-rich-media-pdf-annotation-read-only": { + "title": "Add Rich Media Pdf Annotation Read Only", + "filename": "add-rich-media-pdf-annotation-read-only.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-rich-media-video-annotation": { + "title": "Add Rich Media Video Annotation with Poster to PDF", + "filename": "add-rich-media-video-annotation.cs", + "description": "Demonstrates how to embed an MP4 video and a poster image into a PDF using a RichMediaAnnotation.", "tags": [ - "annotations", + "richmedia", + "video", + "annotation", "pdf", - "grouping", - "reporting", - "aspose-pdf" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.AnnotationCollection", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.AnnotationType" + "Aspose.Pdf.Annotations.RichMediaAnnotation", + "Aspose.Pdf.Annotations.RichMediaAnnotation.SetContent", + "Aspose.Pdf.Annotations.RichMediaAnnotation.SetPoster", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Color" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "add-figure-annotation-external-image": { - "title": "Add Figure Annotation Referencing External Image", - "filename": "add-figure-annotation-external-image.cs", - "description": "Demonstrates how to create a FileAttachment (figure) annotation in a PDF that uses an external image file as its appearance and saves the updated document.", + "add-rich-media-video-annotation__v2": { + "title": "Add Rich Media Video Annotation (Click Activation)", + "filename": "add-rich-media-video-annotation__v2.cs", + "description": "Demonstrates how to embed a video file into a PDF using Aspose.Pdf's RichMediaAnnotation, set the activation event, and save the modified document.", "tags": [ + "richmedia", + "video", "annotation", - "fileattachment", - "image", "pdf", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Annotations.FileAttachmentAnnotation", + "Aspose.Pdf.Annotations.RichMediaAnnotation", + "Aspose.Pdf.Annotations.RichMediaAnnotation.ActivationEvent", + "Aspose.Pdf.Annotations.RichMediaAnnotation.SetContent", + "Aspose.Pdf.Page.Annotations.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "copy-pdf-annotations-via-xfdf": { - "title": "Copy PDF Annotations via XFDF", - "filename": "copy-pdf-annotations-via-xfdf.cs", - "description": "Demonstrates exporting annotations from a source PDF to an XFDF file and importing them into another PDF using Aspose.Pdf.", + "add-screen-annotation-external-video": { + "title": "Add Screen Annotation with External Video URL", + "filename": "add-screen-annotation-external-video.cs", + "description": "Demonstrates how to add a ScreenAnnotation to a PDF page that references an external video URL and starts playback automatically.", "tags": [ - "annotations", - "xfdf", + "screen-annotation", + "video", + "external-url", "pdf", - "export", - "import" + "annotation" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.TextAnnotation", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Document.ExportAnnotationsToXfdf", - "Aspose.Pdf.Document.ImportAnnotationsFromXfdf" + "Aspose.Pdf.Annotations.ScreenAnnotation", + "Aspose.Pdf.Annotations.GoToURIAction" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "batch-add-text-annotation-to-first-page": { - "title": "Batch Add Text Annotation to First Page of PDFs", - "filename": "batch-add-text-annotation-to-first-page.cs", - "description": "The example iterates through all PDF files in a folder, adds a standard text annotation to the first page of each document, and saves the annotated files to an output directory.", + "add-screen-annotation-looping-video": { + "title": "Add Looping Video Screen Annotation to PDF", + "filename": "add-screen-annotation-looping-video.cs", + "description": "This example demonstrates how to embed a video file as a ScreenAnnotation in a PDF, set the annotation to read‑only, and configure it for loop playback.", "tags": [ - "pdf", - "annotation", - "batch", - "textannotation", - "aspose-pdf" + "screen-annotation", + "video", + "loop", + "read-only", + "pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Color" + "Aspose.Pdf.Annotations.ScreenAnnotation", + "Aspose.Pdf.Annotations.AnnotationFlags", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.AnnotationCollection.Add", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "modify-figure-annotation-color": { - "title": "Change Color of Square and Circle Annotations", - "filename": "modify-figure-annotation-color.cs", - "description": "Loads a PDF, iterates through its pages and annotations, retrieves the appearance dictionary of square and circle figure annotations, updates their border and interior colors, and saves the modified document.", + "add-screen-annotation-swf-readonly": { + "title": "Add Screen Annotation with External SWF and Disable Editing", + "filename": "add-screen-annotation-swf-readonly.cs", + "description": "Demonstrates how to add a ScreenAnnotation that references an external SWF file to a PDF page and make it read‑only to prevent user interaction.", "tags": [ - "annotations", - "appearance", - "color", - "square", - "circle" + "screen-annotation", + "swf", + "readonly", + "annotation", + "pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.SquareAnnotation", - "Aspose.Pdf.Annotations.CircleAnnotation", - "Aspose.Pdf.Annotations.AppearanceDictionary", - "Aspose.Pdf.Color" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.ScreenAnnotation", + "Aspose.Pdf.Annotations.AnnotationFlags", + "Aspose.Pdf.Page.Annotations.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "delete-pdf-annotations-from-csv": { - "title": "Delete PDF Annotations Using a CSV List", - "filename": "delete-pdf-annotations-from-csv.cs", - "description": "Demonstrates how to read annotation identifiers from a CSV file and remove matching annotations from a PDF using Aspose.Pdf.", + "add-screen-annotation-with-video-to-pdf": { + "title": "Add Video Screen Annotation to PDF Page", + "filename": "add-screen-annotation-with-video-to-pdf.cs", + "description": "Loads an existing PDF, accesses the third page, adds a ScreenAnnotation that embeds a video file, and saves the modified document.", "tags": [ - "annotations", + "screen-annotation", + "video", "pdf", - "delete", - "csv", - "aspose" + "aspose-pdf", + "page-3" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.AnnotationCollection.FindByName", - "Aspose.Pdf.Annotations.AnnotationCollection.Delete", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.ScreenAnnotation", + "Aspose.Pdf.Page.Annotations.Add", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "set-figure-annotation-border-width": { - "title": "Set Figure Annotation Border Width", - "filename": "set-figure-annotation-border-width.cs", - "description": "Shows how to add a square annotation to a PDF page and set its border thickness to 2 points using Aspose.Pdf.", + "add-sound-annotation-chime": { + "title": "Add Sound Annotation (Chime) to PDF Page", + "filename": "add-sound-annotation-chime.cs", + "description": "Shows how to insert a SoundAnnotation that plays a chime when a specific page becomes visible in a PDF document.", "tags": [ + "sound", "annotation", - "border", "pdf", - "Aspose.Pdf", - "square" + "aspose", + "chime" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.SquareAnnotation", - "Aspose.Pdf.Annotations.Border" + "Aspose.Pdf.Annotations.SoundAnnotation", + "Aspose.Pdf.Annotations.SoundIcon", + "Aspose.Pdf.Page.Annotations.Add", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "extract-popup-annotations-to-pdf": { - "title": "Extract Popup Annotations to Separate PDFs", - "filename": "extract-popup-annotations-to-pdf.cs", - "description": "Loads a PDF, finds all popup annotations, extracts their text content, and saves each annotation as an individual PDF file.", + "add-sound-annotation-to-each-pdf-page": { + "title": "Add Sound Annotation to Each PDF Page", + "filename": "add-sound-annotation-to-each-pdf-page.cs", + "description": "Demonstrates how to iterate through all pages of a PDF and attach a SoundAnnotation that plays a notification tone when the page loads.", "tags": [ - "popup", + "sound", "annotation", - "extract", "pdf", - "aspose" + "aspose", + "pages" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.PopupAnnotation", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Annotations.SoundAnnotation", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.SoundIcon" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "add-free-text-annotation-with-callout": { - "title": "Add Free‑Text Annotation with Callout to PDF", - "filename": "add-free-text-annotation-with-callout.cs", - "description": "Demonstrates how to load a PDF, create a free‑text annotation with a callout line, set its appearance and border, and save the modified document.", + "add-sound-annotation-to-pdf-page": { + "title": "Add Sound Annotation To Pdf Page", + "filename": "add-sound-annotation-to-pdf-page.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-sound-annotation-to-pdf-page__v2": { + "title": "Add Sound Annotation To Pdf Page__V2", + "filename": "add-sound-annotation-to-pdf-page__v2.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-sound-annotation-to-pdf": { + "title": "Add Clickable Sound Annotation to PDF", + "filename": "add-sound-annotation-to-pdf.cs", + "description": "Demonstrates how to embed an MP3 file as a SoundAnnotation in a PDF, set its icon, title, and contents, and save the modified document using Aspose.Pdf.", "tags": [ - "free-text", + "sound", "annotation", - "callout", "pdf", + "audio", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.DefaultAppearance", - "Aspose.Pdf.Annotations.FreeTextAnnotation", - "Aspose.Pdf.Annotations.Border", - "Aspose.Pdf.Point" + "Aspose.Pdf.Annotations.SoundAnnotation", + "Aspose.Pdf.Annotations.SoundIcon", + "Aspose.Pdf.Page.Annotations.Add", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "export-pdf-annotations-to-xfdf-azure-blob": { - "title": "Export PDF Annotations to XFDF and Upload to Azure Blob", - "filename": "export-pdf-annotations-to-xfdf-azure-blob.cs", - "description": "Shows how to export all annotations from a PDF document to XFDF format and store the resulting XFDF file in an Azure Blob Storage container (using a stub for local testing).", + "add-sound-annotation-visible-tone": { + "title": "Add Sound Annotation that Plays When Visible", + "filename": "add-sound-annotation-visible-tone.cs", + "description": "Demonstrates how to create a SoundAnnotation in a PDF using Aspose.Pdf, link it to a WAV file, set an icon and tooltip, and have the sound play when the annotation becomes visible on screen.", "tags": [ + "sound", + "annotation", "pdf", - "annotations", - "xfdf", - "azure-blob", - "export" + "aspose", + "visibility" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.SoundAnnotation", + "Aspose.Pdf.Annotations.SoundIcon", + "Aspose.Pdf.Page.Annotations.Add", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:30:08Z", + "status": "verified" + }, + "add-sound-annotation-voiceover-page-five": { + "title": "Add Sound Annotation for Voice‑over on PDF Page", + "filename": "add-sound-annotation-voiceover-page-five.cs", + "description": "Demonstrates how to add a SoundAnnotation that plays a voice‑over WAV file when the user clicks a defined region on page five of a PDF document.", + "tags": [ + "sound", + "annotation", + "audio", + "clickable", + "Aspose.Pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Document.ExportAnnotationsToXfdf" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.SoundAnnotation", + "Aspose.Pdf.Page.Annotations.Add", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "add-figure-annotation-around-table": { - "title": "Add Figure Annotation Around a Detected Table", - "filename": "add-figure-annotation-around-table.cs", - "description": "Demonstrates how to use TableAbsorber to locate a table on a PDF page and draw a square (figure) annotation around it with custom border and fill colors.", + "add-sound-annotation-with-notification-tone": { + "title": "Add Sound Annotation With Notification Tone", + "filename": "add-sound-annotation-with-notification-tone.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-square-figure-annotations-custom-border": { + "title": "Add Square Figure Annotations with Custom Border to Selected PDF Pages", + "filename": "add-square-figure-annotations-custom-border.cs", + "description": "Demonstrates how to programmatically add square figure annotations with a custom line width and color to specific pages of a PDF using Aspose.Pdf.", "tags": [ - "table", "annotation", "square", - "aspose-pdf", - "pdf" + "border", + "pdf", + "Aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.TableAbsorber", + "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Annotations.SquareAnnotation", "Aspose.Pdf.Annotations.Border", @@ -1035,94 +1321,107 @@ "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "retrieve-annotation-ids-page-numbers": { - "title": "Retrieve Annotation IDs and Their Page Numbers", - "filename": "retrieve-annotation-ids-page-numbers.cs", - "description": "The example loads a PDF, iterates through each page's annotations, extracts each annotation's identifier (Name or FullName) and its page number, and stores them in a dictionary for fast lookup.", + "add-strikeout-annotation-with-author": { + "title": "Add Strikeout Annotation with Author to PDF", + "filename": "add-strikeout-annotation-with-author.cs", + "description": "Demonstrates how to create a strike‑out annotation on a PDF page, set its author (title) to Jane Smith, and save the modified document.", "tags": [ - "annotations", + "annotation", + "strikeout", + "author", "pdf", - "dictionary", - "lookup", - "Aspose" + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Page.Annotations", - "Aspose.Pdf.Annotation.PageIndex" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.StrikeOutAnnotation", + "Aspose.Pdf.Color" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "remove-highlight-annotations-from-pdf": { - "title": "Remove Highlight Annotations from PDF", - "filename": "remove-highlight-annotations-from-pdf.cs", - "description": "Demonstrates how to load a PDF with Aspose.Pdf, iterate through its pages, identify all highlight annotations, delete them, and save the cleaned document.", + "add-strikethrough-annotation-to-pdf": { + "title": "Add Strikethrough Annotation with Author to PDF", + "filename": "add-strikethrough-annotation-to-pdf.cs", + "description": "Demonstrates how to load a PDF, define a rectangle over a paragraph, create a StrikeOutAnnotation, set its author, and save the updated document using Aspose.Pdf.", "tags": [ - "highlight", + "strikeout", "annotation", - "remove", "pdf", - "aspose" + "author", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.HighlightAnnotation", - "Aspose.Pdf.Page.Annotations", - "Aspose.Pdf.Page.Annotations.Delete", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.StrikeOutAnnotation", + "Aspose.Pdf.Color" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "export-popup-annotations-to-xfdf": { - "title": "Export Only Popup Annotations to XFDF", - "filename": "export-popup-annotations-to-xfdf.cs", - "description": "Shows how to filter a PDF so that only popup annotations remain and then export those annotations to an XFDF file using Aspose.Pdf.", + "add-text-annotation-to-pdf-page-3": { + "title": "Add Text Annotation to PDF Page 3", + "filename": "add-text-annotation-to-pdf-page-3.cs", + "description": "Demonstrates loading a PDF, verifying it has at least three pages, and adding a yellow sticky‑note text annotation to page three before saving the document.", "tags": [ - "popup", - "annotations", - "xfdf", - "export", - "filter" + "pdf", + "annotation", + "text-annotation", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.PopupAnnotation", - "Aspose.Pdf.Document.ExportAnnotationsToXfdf" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Annotations.TextIcon", + "Aspose.Pdf.Color" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "import-annotations-from-fdf__v3": { - "title": "Import Annotations from FDF into PDF", - "filename": "import-annotations-from-fdf__v3.cs", - "description": "Shows how to load a PDF, read an FDF file and automatically import its annotations onto the correct pages, then save the updated document.", + "add-text-watermark-annotation": { + "title": "Add Text Watermark Annotation to PDF Pages", + "filename": "add-text-watermark-annotation.cs", + "description": "Demonstrates how to add a bold \"Confidential\" text watermark as an annotation to the top of each page in a PDF using Aspose.Pdf.", "tags": [ - "annotations", - "fdf", - "import", + "watermark", + "annotation", "pdf", - "aspose-pdf" + "text", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.FdfReader.ReadAnnotations", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.WatermarkAnnotation", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Annotations.WatermarkAnnotation.SetTextAndState", + "Aspose.Pdf.Page.Annotations.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, + "add-tiled-pdf-background-artifact": { + "title": "Add Tiled Pdf Background Artifact", + "filename": "add-tiled-pdf-background-artifact.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "add-transparent-freetext-annotation": { "title": "Add Transparent Free‑Text Annotation to PDF", "filename": "add-transparent-freetext-annotation.cs", @@ -1148,53 +1447,142 @@ "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "set-line-ending-styles-pdf": { - "title": "Set Line Ending Styles for a PDF Line Annotation", - "filename": "set-line-ending-styles-pdf.cs", - "description": "Demonstrates how to create a line annotation in a PDF and configure its start and end line ending styles (circle and open arrow) using Aspose.Pdf.", + "add-watermark-annotation-with-gradient": { + "title": "Add Watermark Annotation With Gradient", + "filename": "add-watermark-annotation-with-gradient.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-word-count-link-annotation": { + "title": "Create PDF Link Annotation that Shows Word Count", + "filename": "add-word-count-link-annotation.cs", + "description": "Demonstrates how to add a clickable link annotation to a PDF that runs JavaScript to calculate the total word count of the document and displays it in an alert.", "tags": [ - "line-annotation", - "pdf", - "aspose", - "line-ending", - "csharp" + "link-annotation", + "javascript", + "word-count", + "pdf", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.LineAnnotation", - "Aspose.Pdf.Annotations.LineEnding", - "Aspose.Pdf.Color", - "Aspose.Pdf.Drawing.Border" + "Aspose.Pdf.Annotations.LinkAnnotation", + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Annotations.Border", + "Aspose.Pdf.Color" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "replace-highlight-annotation-color": { - "title": "Replace Highlight Annotation Color in PDF", - "filename": "replace-highlight-annotation-color.cs", - "description": "The example loads a PDF, iterates through its pages and annotations, finds highlight annotations, changes their color to a custom light‑orange shade, and saves the modified document.", + "add-yellow-highlight-annotation": { + "title": "Add Yellow Highlight Annotation with Opacity", + "filename": "add-yellow-highlight-annotation.cs", + "description": "Shows how to create a highlight annotation on a PDF page, set its color to yellow and opacity to 80%, and save the updated document.", "tags": [ "highlight", "annotation", "color", + "opacity", + "pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Annotations.HighlightAnnotation", + "Aspose.Pdf.Color", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Page.Annotations.Add", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:30:08Z", + "status": "verified" + }, + "align-watermark-annotations-to-page-margins": { + "title": "Align Watermark Annotations to Page Margins", + "filename": "align-watermark-annotations-to-page-margins.cs", + "description": "Shows how to adjust the rectangle of every WatermarkAnnotation in a PDF so that the watermarks line up uniformly with specified page margins.", + "tags": [ + "watermark", + "annotation", + "pdf", + "margin", + "alignment" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.WatermarkAnnotation", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.PageInfo" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T08:30:08Z", + "status": "verified" + }, + "apply-tiled-pdf-pattern-watermark": { + "title": "Apply Tiled PDF Pattern as Watermark Across All Pages", + "filename": "apply-tiled-pdf-pattern-watermark.cs", + "description": "Demonstrates using WatermarkArtifact with SetPdfPage to tile a PDF page as a background watermark on every page of a target PDF document.", + "tags": [ + "watermark", "pdf", + "tiled", + "artifact", "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.HighlightAnnotation", - "Aspose.Pdf.Color.FromRgb", + "Aspose.Pdf.WatermarkArtifact", + "Aspose.Pdf.WatermarkArtifact.SetPdfPage", + "Aspose.Pdf.WatermarkArtifact.IsBackground", + "Aspose.Pdf.WatermarkArtifact.Opacity", + "Aspose.Pdf.Page.Artifacts.Add", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", + "generated_at": "2026-08-20T08:30:08Z", + "status": "verified" + }, + "auto-play-rich-media-video-annotation": { + "title": "Add Auto‑Playing Rich Media Video Annotation", + "filename": "auto-play-rich-media-video-annotation.cs", + "description": "Demonstrates how to embed a video as a RichMediaAnnotation in a PDF and configure it to start playing automatically when the page becomes visible.", + "tags": [ + "richmedia", + "annotation", + "autoplay", + "video", + "pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.RichMediaAnnotation", + "Aspose.Pdf.Annotations.RichMediaAnnotation.SetContent" + ], + "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, + "batch-add-image-watermark-artifact": { + "title": "Batch Add Image Watermark Artifact", + "filename": "batch-add-image-watermark-artifact.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "batch-add-linked-popup-annotations": { "title": "Batch Add Linked Popup Annotations to PDF Pages", "filename": "batch-add-linked-popup-annotations.cs", @@ -1218,453 +1606,488 @@ "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "import-xfdf-annotations-set-visibility-by-role": { - "title": "Import XFDF Annotations and Set Visibility by User Role", - "filename": "import-xfdf-annotations-set-visibility-by-role.cs", - "description": "Demonstrates loading a PDF, importing annotations from an XFDF file, and toggling their visibility based on the current user's role before saving the document.", - "tags": [ - "xfdf", - "annotations", - "visibility", - "role-based", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.ImportAnnotationsFromXfdf", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.AnnotationFlags", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:30:08Z", + "batch-add-popup-annotations": { + "title": "Batch Add Popup Annotations", + "filename": "batch-add-popup-annotations.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "add-polyline-figure-annotation__v2": { - "title": "Add Polyline Figure Annotation to PDF", - "filename": "add-polyline-figure-annotation__v2.cs", - "description": "Shows how to create a polyline figure annotation from a list of points and add it to a PDF page using Aspose.Pdf.", + "batch-add-screen-annotations-with-videos": { + "title": "Batch Add Screen Annotations With Videos", + "filename": "batch-add-screen-annotations-with-videos.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "batch-add-sound-annotations-to-pdf-pages": { + "title": "Batch Add Sound Annotations to PDF Pages", + "filename": "batch-add-sound-annotations-to-pdf-pages.cs", + "description": "Demonstrates how to add a SoundAnnotation to each page of a PDF using Aspose.Pdf, assigning a different audio file to each page.", "tags": [ - "polyline", - "annotation", + "sound-annotation", "pdf", - "Aspose.Pdf", - "figure" + "audio", + "annotations", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.SoundAnnotation", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Point", - "Aspose.Pdf.Annotations.PolylineAnnotation", - "Aspose.Pdf.Page.Annotations.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Annotations.SoundIcon" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "add-magenta-underline-annotation": { - "title": "Add Magenta Underline Annotation to PDF", - "filename": "add-magenta-underline-annotation.cs", - "description": "Demonstrates how to add an underline annotation with magenta color and a 2‑point border to a PDF page using Aspose.Pdf.", + "batch-add-text-annotation-to-first-page": { + "title": "Batch Add Text Annotation to First Page of PDFs", + "filename": "batch-add-text-annotation-to-first-page.cs", + "description": "The example iterates through all PDF files in a folder, adds a standard text annotation to the first page of each document, and saves the annotated files to an output directory.", "tags": [ - "underline", + "pdf", "annotation", - "color", - "border", - "pdf" + "batch", + "textannotation", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.UnderlineAnnotation", - "Aspose.Pdf.Annotations.Border", + "Aspose.Pdf.Annotations.TextAnnotation", "Aspose.Pdf.Color" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "extract-highlight-annotation-to-report": { - "title": "Extract Highlight Annotations as Images and Embed in a Report PDF", - "filename": "extract-highlight-annotation-to-report.cs", - "description": "The example reads a PDF, finds highlight annotations, renders the page containing each annotation to a PNG image, and inserts those images into a new report PDF.", + "batch-add-text-annotations-to-pdf-pages": { + "title": "Batch Add Text Annotations to PDF Pages", + "filename": "batch-add-text-annotations-to-pdf-pages.cs", + "description": "Shows how to load a PDF, iterate over every page, create a TextAnnotation, and add it to each page using Aspose.Pdf.", "tags": [ - "highlight", - "annotation", - "image", - "report", + "annotations", + "pdf", + "text-annotation", + "loop", "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.HighlightAnnotation", - "Aspose.Pdf.Devices.PngDevice", - "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.Annotations.TextAnnotation", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Page.AddImage", + "Aspose.Pdf.Color", + "Aspose.Pdf.Annotations.TextIcon", + "Aspose.Pdf.Page.Annotations.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "set-callout-leader-line-length": { - "title": "Set Callout Leader Line Length for Free‑Text Annotation", - "filename": "set-callout-leader-line-length.cs", - "description": "Demonstrates how to create a free‑text annotation in a PDF and configure its callout leader line to be exactly 20 points long using Aspose.Pdf.", + "batch-add-video-screen-annotations": { + "title": "Batch Add Video Screen Annotations to PDF Pages", + "filename": "batch-add-video-screen-annotations.cs", + "description": "Shows how to add a ScreenAnnotation with a video file to each page of a multi‑page PDF using Aspose.Pdf, including validation of input files.", "tags": [ - "free-text", - "annotation", - "callout", - "leader-line", - "Aspose.Pdf" + "screen-annotation", + "video", + "pdf", + "annotations", + "batch" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.FreeTextAnnotation", - "Aspose.Pdf.DefaultAppearance", - "Aspose.Pdf.Point", + "Aspose.Pdf.Annotations.ScreenAnnotation", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.Collection.Add", + "Aspose.Pdf.Page.Annotations", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "export-pdf-annotations-to-xfdf-and-upload": { - "title": "Export PDF Annotations to XFDF and Upload via REST", - "filename": "export-pdf-annotations-to-xfdf-and-upload.cs", - "description": "The example loads a PDF, exports its annotations to an in‑memory XFDF stream, and posts the XFDF file to a REST API endpoint using multipart/form‑data.", + "batch-add-video-screen-annotations__v2": { + "title": "Batch Add Video Screen Annotations to PDF Pages", + "filename": "batch-add-video-screen-annotations__v2.cs", + "description": "Demonstrates how to iterate through all pages of a PDF and add a ScreenAnnotation that plays a video, adjusting the annotation rectangle to keep the video’s aspect ratio.", "tags": [ - "annotations", - "xfdf", - "rest-api", - "upload", - "aspose-pdf" + "screen-annotation", + "video", + "pdf", + "batch", + "aspect-ratio" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.ExportAnnotationsToXfdf" + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.ScreenAnnotation", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "import-multiple-fdf-annotations": { - "title": "Import Multiple FDF Files and Consolidate Annotations", - "filename": "import-multiple-fdf-annotations.cs", - "description": "Demonstrates how to read annotations from several FDF files, add them to a PDF document, collect all annotations into a single list, and save the updated PDF.", + "batch-add-watermark-artifact-to-pdfs": { + "title": "Batch Add Watermark Artifact to PDFs", + "filename": "batch-add-watermark-artifact-to-pdfs.cs", + "description": "Demonstrates how to iterate through a folder of PDF files and add the same image‑based WatermarkArtifact to every page, reusing the image reference to keep the resulting file size low.", "tags": [ - "fdf", - "annotations", + "watermark", + "artifact", + "batch", "pdf", - "import", - "consolidate" + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.AnnotationCollection", - "Aspose.Pdf.Annotations.FdfReader.ReadAnnotations" + "Aspose.Pdf.WatermarkArtifact", + "Aspose.Pdf.WatermarkArtifact.SetImage", + "Aspose.Pdf.Page.Artifacts.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "add-popup-annotation-to-pdf__v2": { - "title": "Add Popup Annotation Linked to a Text Annotation with Custom Size and Position", - "filename": "add-popup-annotation-to-pdf__v2.cs", - "description": "Demonstrates how to create a TextAnnotation as a parent markup, add a PopupAnnotation with custom dimensions, position it relative to the parent, and link the two annotations in a PDF document using Aspose.Pdf.", + "batch-export-pdf-annotations-to-xfdf": { + "title": "Batch Export PDF Annotations to XFDF", + "filename": "batch-export-pdf-annotations-to-xfdf.cs", + "description": "Demonstrates how to load multiple PDF files from a folder and export each document's annotations to separate XFDF files using Aspose.Pdf.", "tags": [ - "popup", - "annotation", - "positioning", - "Aspose.Pdf", - "text-annotation" + "annotations", + "xfdf", + "batch", + "pdf", + "export" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Annotations.PopupAnnotation", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Color" + "Aspose.Pdf.Document.ExportAnnotationsToXfdf" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "set-figure-annotation-border-color-dark-gray": { - "title": "Set Figure Annotation Border Color to Dark Gray", - "filename": "set-figure-annotation-border-color-dark-gray.cs", - "description": "Loads a PDF, iterates through all pages and annotations, and changes the border color of every figure annotation (e.g., square, circle, polygon) to dark gray before saving the document.", + "batch-import-xfdf-annotations-into-pdfs": { + "title": "Batch Import XFDF Annotations into PDFs", + "filename": "batch-import-xfdf-annotations-into-pdfs.cs", + "description": "Demonstrates how to iterate over a folder of PDF files, import matching XFDF annotation files into each PDF, and save the annotated documents. The example shows batch processing and error handling using Aspose.Pdf.", "tags": [ - "pdf", + "xfdf", "annotations", - "border-color", - "figure-annotation", - "Aspose.Pdf" + "batch", + "pdf", + "import" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.CommonFigureAnnotation", - "Aspose.Pdf.Annotations.Annotation.Characteristics", + "Aspose.Pdf.Document.ImportAnnotationsFromXfdf", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "export-annotation-ids-to-csv": { - "title": "Export Annotation IDs and Authors to CSV", - "filename": "export-annotation-ids-to-csv.cs", - "description": "Loads a PDF, iterates through all pages and their annotations, extracts each annotation's Name (as ID) and author (Title), and writes the data to a UTF‑8 CSV file for audit purposes.", + "batch-import-xfdf-annotations-merge-pdfs": { + "title": "Batch Import Xfdf Annotations Merge Pdfs", + "filename": "batch-import-xfdf-annotations-merge-pdfs.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "batch-replace-watermark-annotations": { + "title": "Batch Replace Watermark Annotations with Current Date", + "filename": "batch-replace-watermark-annotations.cs", + "description": "Shows how to load a PDF, iterate through all pages and annotations, identify WatermarkAnnotation objects, and replace their text with a string that includes the current date.", "tags": [ - "annotations", - "csv", - "audit", - "aspose-pdf", - "metadata" + "watermark", + "annotation", + "pdf", + "batch", + "date" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.AnnotationCollection", "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.MarkupAnnotation" + "Aspose.Pdf.Annotations.WatermarkAnnotation", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Color", + "Aspose.Pdf.Annotations.WatermarkAnnotation.SetTextAndState" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "add-highlight-annotation-with-opacity": { - "title": "Add Highlight Annotation with Custom Opacity to PDF", - "filename": "add-highlight-annotation-with-opacity.cs", - "description": "Shows how to load a PDF, create a highlight annotation with a specific color and opacity, add it to a page, and save the modified document using Aspose.Pdf.", + "batch-watermark-dynamic-opacity": { + "title": "Batch Add WatermarkArtifact with Dynamic Opacity to PDFs", + "filename": "batch-watermark-dynamic-opacity.cs", + "description": "Processes all PDF files in a folder, adds a centered watermark artifact whose opacity is calculated from the document's page count, and saves the watermarked PDFs to an output folder.", "tags": [ - "highlight", - "annotation", - "opacity", + "watermark", "pdf", - "aspose" + "batch", + "opacity", + "annotations" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.HighlightAnnotation", - "Aspose.Pdf.Color", - "Aspose.Pdf.Page.Annotations", + "Aspose.Pdf.WatermarkArtifact", + "Aspose.Pdf.Page.Artifacts.Add", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "delete-all-annotations-restore-from-xfdf": { - "title": "Delete All PDF Annotations and Restore from XFDF", - "filename": "delete-all-annotations-restore-from-xfdf.cs", - "description": "Loads a PDF, removes every annotation from all pages, then re‑imports the annotations from an XFDF backup file and saves the updated document.", + "change-button-annotation-color-to-blue": { + "title": "Change Button Annotation Color to Blue", + "filename": "change-button-annotation-color-to-blue.cs", + "description": "Loads a PDF, iterates through all annotations, sets the color of button field annotations to blue, and saves the modified document.", "tags": [ "annotations", - "xfdf", + "button", + "color", "pdf", - "aspose-pdf", - "delete" + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations", - "Aspose.Pdf.Document.ImportAnnotationsFromXfdf", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Forms.ButtonField", + "Aspose.Pdf.Color" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "set-highlight-annotation-opacity": { - "title": "Set Highlight Annotation Opacity to 60%", - "filename": "set-highlight-annotation-opacity.cs", - "description": "Loads a PDF, iterates through all pages and their annotations, sets the opacity of each highlight annotation to 0.6, and saves the modified document.", + "change-figure-annotation-color": { + "title": "Change Figure Annotation Color", + "filename": "change-figure-annotation-color.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "clone-richmedia-annotations-summary-page": { + "title": "Clone RichMediaAnnotations to a Summary Page", + "filename": "clone-richmedia-annotations-summary-page.cs", + "description": "Loads a PDF, gathers all RichMediaAnnotation objects, adds a new summary page, and clones each annotation onto that page while preserving key properties.", "tags": [ - "highlight", + "richmedia", "annotation", - "opacity", - "pdf", - "Aspose" + "summary-page", + "clone", + "pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.RichMediaAnnotation", "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.HighlightAnnotation", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "add-screen-annotation-with-video-to-pdf": { - "title": "Add Video Screen Annotation to PDF Page", - "filename": "add-screen-annotation-with-video-to-pdf.cs", - "description": "Loads an existing PDF, accesses the third page, adds a ScreenAnnotation that embeds a video file, and saves the modified document.", + "clone-richmedia-annotations-to-summary-page": { + "title": "Clone Richmedia Annotations To Summary Page", + "filename": "clone-richmedia-annotations-to-summary-page.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "clone-watermark-annotation-across-pdf-pages": { + "title": "Clone Watermark Annotation Across Pdf Pages", + "filename": "clone-watermark-annotation-across-pdf-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "clone-watermark-annotation-to-multiple-pdf-pages": { + "title": "Clone Watermark Annotation to Multiple PDF Pages", + "filename": "clone-watermark-annotation-to-multiple-pdf-pages.cs", + "description": "Loads a PDF, finds the first WatermarkAnnotation, and clones it onto every other page with position offsets, then saves the updated document.", "tags": [ - "screen-annotation", - "video", + "watermark", + "annotation", + "clone", "pdf", - "aspose-pdf", - "page-3" + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Annotations.WatermarkAnnotation", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.ScreenAnnotation", - "Aspose.Pdf.Page.Annotations.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Page.Annotations.Add" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "add-sound-annotation-to-pdf": { - "title": "Add Clickable Sound Annotation to PDF", - "filename": "add-sound-annotation-to-pdf.cs", - "description": "Demonstrates how to embed an MP3 file as a SoundAnnotation in a PDF, set its icon, title, and contents, and save the modified document using Aspose.Pdf.", + "copy-pdf-annotations-via-xfdf": { + "title": "Copy PDF Annotations via XFDF", + "filename": "copy-pdf-annotations-via-xfdf.cs", + "description": "Demonstrates exporting annotations from a source PDF to an XFDF file and importing them into another PDF using Aspose.Pdf.", "tags": [ - "sound", - "annotation", + "annotations", + "xfdf", "pdf", - "audio", - "aspose" + "export", + "import" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.TextAnnotation", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.SoundAnnotation", - "Aspose.Pdf.Annotations.SoundIcon", - "Aspose.Pdf.Page.Annotations.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.ExportAnnotationsToXfdf", + "Aspose.Pdf.Document.ImportAnnotationsFromXfdf" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "create-richmedia-annotation-flash-video": { - "title": "Create RichMedia Annotation with Flash Video on First Page", - "filename": "create-richmedia-annotation-flash-video.cs", - "description": "Demonstrates how to embed a Flash video as a RichMediaAnnotation on the first page of a PDF and configure its playback controls using Aspose.Pdf.", + "count-watermark-artifacts-on-pdf-page": { + "title": "Count Watermark Artifacts on a PDF Page", + "filename": "count-watermark-artifacts-on-pdf-page.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, access a specific page, and count the WatermarkArtifact objects present on that page.", "tags": [ - "richmedia", - "flash", - "annotation", + "watermark", + "artifact", "pdf", + "count", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.RichMediaAnnotation", - "Aspose.Pdf.Annotations.RichMediaAnnotation.SetContent" + "Aspose.Pdf.WatermarkArtifact", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Page.Artifacts" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "add-3d-u3d-annotation-initial-view-page-two": { - "title": "Add 3D U3D Annotation with Initial View on Page Two", - "filename": "add-3d-u3d-annotation-initial-view-page-two.cs", - "description": "Shows how to embed a U3D model as a 3D annotation in a PDF, define an initial camera view, and place the annotation on the second page using Aspose.Pdf.", + "create-3d-annotation-custom-lighting": { + "title": "Create 3D Annotation with Custom Lighting in PDF", + "filename": "create-3d-annotation-custom-lighting.cs", + "description": "Demonstrates embedding a U3D model into a PDF as a 3‑D annotation and applying a custom lighting scheme and render mode to enhance visual depth.", "tags": [ - "3D annotation", - "U3D", - "Aspose.Pdf", - "initial view", - "page two" + "3d", + "annotation", + "lighting", + "pdf", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Annotations.PDF3DContent.LoadAsU3D", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.PDF3DContent", + "Aspose.Pdf.Annotations.PDF3DLightingScheme", + "Aspose.Pdf.Annotations.PDF3DRenderMode", "Aspose.Pdf.Annotations.PDF3DArtwork", - "Aspose.Pdf.Annotations.PDF3DAnnotation", - "Aspose.Pdf.Annotations.Matrix3D", - "Aspose.Pdf.Annotations.PDF3DView", - "Aspose.Pdf.Page.Annotations.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Annotations.PDF3DAnnotation" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "retrieve-first-richmediaannotation-page-five": { - "title": "Retrieve First RichMediaAnnotation from Page Five", - "filename": "retrieve-first-richmediaannotation-page-five.cs", - "description": "Loads a PDF, accesses page 5, uses a LINQ query to find the first RichMediaAnnotation on that page, and prints its key properties.", + "create-3d-annotation-metal-surface": { + "title": "Create 3D Annotation Metal Surface", + "filename": "create-3d-annotation-metal-surface.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-3d-annotation-metallic-lighting": { + "title": "Create 3D Annotation with Metallic Lighting", + "filename": "create-3d-annotation-metallic-lighting.cs", + "description": "Demonstrates embedding a 3‑D model into a PDF and configuring lighting, render mode, and material properties to simulate realistic metal surfaces.", "tags": [ - "richmedia", + "3d", "annotation", - "linq", - "pdf", - "aspose" + "lighting", + "material", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.RichMediaAnnotation", - "Aspose.Pdf.Annotations.AnnotationCollection", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Annotations.PDF3DContent", + "Aspose.Pdf.Annotations.PDF3DArtwork", + "Aspose.Pdf.Annotations.PDF3DAnnotation", + "Aspose.Pdf.Annotations.PDF3DLightingScheme", + "Aspose.Pdf.Annotations.PDF3DRenderMode" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "remove-sound-annotations-from-pdf": { - "title": "Remove Sound Annotations from PDF", - "filename": "remove-sound-annotations-from-pdf.cs", - "description": "Shows how to load a PDF, iterate through each page, locate SoundAnnotation objects, delete them, and save the cleaned document using Aspose.Pdf.", - "tags": [ - "sound-annotation", - "pdf", - "annotations", - "delete", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.SoundAnnotation", - "Aspose.Pdf.Page.Annotations", - "Aspose.Pdf.Page.Annotations.Delete", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T08:30:08Z", + "create-3d-annotation-with-custom-lighting": { + "title": "Create 3D Annotation With Custom Lighting", + "filename": "create-3d-annotation-with-custom-lighting.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "add-javascript-button-annotation-to-pdf-page": { - "title": "Add JavaScript Button Annotation to PDF Page", - "filename": "add-javascript-button-annotation-to-pdf-page.cs", - "description": "Demonstrates how to create a push button on page 4 of a PDF and attach a JavaScript action that shows an alert when the button is clicked.", + "create-3d-annotation-with-embedded-textures": { + "title": "Create 3D Annotation With Embedded Textures", + "filename": "create-3d-annotation-with-embedded-textures.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-button-toggle-annotations-visibility": { + "title": "Create Button to Toggle Annotations Visibility", + "filename": "create-button-toggle-annotations-visibility.cs", + "description": "Shows how to add a push‑button form field to a PDF page and assign JavaScript that toggles the hidden state of all annotations on that page.", "tags": [ + "annotations", "button", "javascript", - "annotation", - "pdf", - "aspose" + "toggle", + "pdf" ], "apis_used": [ "Aspose.Pdf.Document", @@ -1673,17 +2096,27 @@ "Aspose.Pdf.Forms.ButtonField", "Aspose.Pdf.Annotations.JavascriptAction" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "add-button-annotation-go-to-page-10": { - "title": "Add Button Annotation to Navigate to Page 10", - "filename": "add-button-annotation-go-to-page-10.cs", - "description": "Shows how to create a button form field that jumps to page 10 of the same PDF when activated, using Aspose.Pdf.", + "create-link-annotation-external-pdf-page": { + "title": "Create Link Annotation External Pdf Page", + "filename": "create-link-annotation-external-pdf-page.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-link-annotation-named-destination": { + "title": "Create Link Annotation to a Named Destination", + "filename": "create-link-annotation-named-destination.cs", + "description": "Demonstrates how to add a link annotation that jumps to a named destination within the same PDF using Aspose.Pdf. The example creates a named destination, associates it with a GoToAction, and attaches the annotation to a page.", "tags": [ - "button", - "annotation", + "link-annotation", + "named-destination", "goto-action", "pdf", "aspose-pdf" @@ -1691,1902 +2124,2059 @@ "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.ButtonField", + "Aspose.Pdf.Annotations.LinkAnnotation", "Aspose.Pdf.Annotations.GoToAction", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.NamedDestinations.Add", + "Aspose.Pdf.Destinations.FitExplicitDestination", + "Aspose.Pdf.Annotations.Border", + "Aspose.Pdf.Rectangle" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "insert-watermark-annotation-page-6": { - "title": "Insert Watermark Annotation on Page 6", - "filename": "insert-watermark-annotation-page-6.cs", - "description": "Demonstrates how to add a WatermarkAnnotation with 30 % opacity to the center of the sixth page of a PDF using Aspose.Pdf and then save the modified document.", + "create-link-annotation-open-embedded-pdf": { + "title": "Create Link Annotation to Open Embedded PDF Attachment", + "filename": "create-link-annotation-open-embedded-pdf.cs", + "description": "Demonstrates how to embed a PDF file into a document and add a link annotation that opens the embedded PDF when clicked.", "tags": [ - "watermark", - "annotation", - "pdf", - "opacity", - "Aspose.Pdf" + "link-annotation", + "embedded-file", + "goto-remote-action", + "pdf-attachment", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.WatermarkAnnotation", - "Aspose.Pdf.Page.Annotations.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.Annotations.LinkAnnotation", + "Aspose.Pdf.Annotations.GoToRemoteAction", + "Aspose.Pdf.Annotations.Border" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "add-text-watermark-annotation": { - "title": "Add Text Watermark Annotation to PDF Pages", - "filename": "add-text-watermark-annotation.cs", - "description": "Demonstrates how to add a bold \"Confidential\" text watermark as an annotation to the top of each page in a PDF using Aspose.Pdf.", + "create-link-annotation-remote-pdf-page": { + "title": "Create Link Annotation to Open Remote PDF Page", + "filename": "create-link-annotation-remote-pdf-page.cs", + "description": "Shows how to add a link annotation that opens a specific page of an external PDF document using Aspose.Pdf.", "tags": [ - "watermark", - "annotation", - "pdf", - "text", - "Aspose.Pdf" + "link-annotation", + "remote-pdf", + "goto-action", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.WatermarkAnnotation", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Annotations.WatermarkAnnotation.SetTextAndState", - "Aspose.Pdf.Page.Annotations.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.LinkAnnotation", + "Aspose.Pdf.Annotations.GoToRemoteAction" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "reuse-ximage-across-pdf-pages": { - "title": "Reuse XImage Across PDF Pages", - "filename": "reuse-ximage-across-pdf-pages.cs", - "description": "Shows how to add an image once to a PDF's XImageCollection and reuse it on every page using Aspose.Pdf.", + "create-pdf-button-export-annotations-json": { + "title": "Create PDF Button to Export Annotations as JSON", + "filename": "create-pdf-button-export-annotations-json.cs", + "description": "The example loads an existing PDF, adds a push‑button form field, and assigns a JavaScript action that gathers all annotations, converts them to a JSON string, and displays the result. The modified PDF is then saved with the new export button.", "tags": [ - "ximage", - "image-reuse", - "pdf", + "button", + "javascript", "annotations", - "aspose-pdf" + "json", + "pdf-form" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.XImageCollection.Add", - "Aspose.Pdf.Page.AddImage", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.ButtonField", + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Form", + "Aspose.Pdf.Forms.FieldActions" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "add-background-image-artifact-to-pdf-page": { - "title": "Add Background Image Artifact to PDF Page", - "filename": "add-background-image-artifact-to-pdf-page.cs", - "description": "Demonstrates how to create a BackgroundArtifact from an image file and attach it to a page's Artifacts collection, placing it behind the page content.", + "create-pdf-gradient-background-artifact": { + "title": "Create PDF with Gradient Background Artifact", + "filename": "create-pdf-gradient-background-artifact.cs", + "description": "Shows how to add a BackgroundArtifact to a PDF page and outlines the approach for using a form (XForm) to apply a gradient fill instead of a solid color.", "tags": [ "background", "artifact", - "image", + "gradient", "pdf", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.BackgroundArtifact", - "Aspose.Pdf.BackgroundArtifact.SetImage", - "Aspose.Pdf.Page.Artifacts.Add", + "Aspose.Pdf.Drawing.BackgroundArtifact", + "Aspose.Pdf.Drawing.Color", + "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Drawing.GraphInfo", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "add-bates-numbering-with-prefix": { - "title": "Add Bates Numbering Artifact with Prefix to PDF", - "filename": "add-bates-numbering-with-prefix.cs", - "description": "Demonstrates how to add a Bates numbering artifact with a custom \"ABC\" prefix and a six‑digit format to each page of a PDF using Aspose.Pdf.", + "create-pdf-submit-button": { + "title": "Create PDF Submit Button with JavaScript Action", + "filename": "create-pdf-submit-button.cs", + "description": "Shows how to add a push button to a PDF that submits form data to a specified HTTP endpoint using Acrobat JavaScript.", "tags": [ - "bates-numbering", "pdf", - "annotation", - "aspose-pdf", - "csharp" + "button", + "javascript", + "form", + "submit" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PageCollectionExtensions.AddBatesNumbering", - "Aspose.Pdf.BatesNArtifact", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.ButtonField", + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Forms.Form.Add", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "count-watermark-artifacts-on-pdf-page": { - "title": "Count Watermark Artifacts on a PDF Page", - "filename": "count-watermark-artifacts-on-pdf-page.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, access a specific page, and count the WatermarkArtifact objects present on that page.", + "create-pdf-with-gradient-background": { + "title": "Create Pdf With Gradient Background", + "filename": "create-pdf-with-gradient-background.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-popup-annotation-linked-to-highlight": { + "title": "Create Popup Annotation Linked to Highlight", + "filename": "create-popup-annotation-linked-to-highlight.cs", + "description": "Loads a PDF, adds a highlight annotation on the first page, creates a popup annotation, links the popup to the highlight, and saves the modified document.", "tags": [ - "watermark", - "artifact", - "pdf", - "count", - "aspose" + "highlight", + "popup", + "annotation", + "link", + "pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.WatermarkArtifact", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Page.Artifacts" + "Aspose.Pdf.Annotations.HighlightAnnotation", + "Aspose.Pdf.Annotations.PopupAnnotation", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Color" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "update-watermark-artifact-opacity": { - "title": "Update Watermark Artifact Opacity in PDF", - "filename": "update-watermark-artifact-opacity.cs", - "description": "Shows how to retrieve all watermark artifacts on each PDF page and set their opacity to 50% using Aspose.Pdf.", + "create-richmedia-annotation-flash-video": { + "title": "Create RichMedia Annotation with Flash Video on First Page", + "filename": "create-richmedia-annotation-flash-video.cs", + "description": "Demonstrates how to embed a Flash video as a RichMediaAnnotation on the first page of a PDF and configure its playback controls using Aspose.Pdf.", "tags": [ - "watermark", - "artifact", - "opacity", + "richmedia", + "flash", + "annotation", "pdf", "aspose" ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Artifact", - "Aspose.Pdf.WatermarkArtifact", - "Aspose.Pdf.WatermarkArtifact.BeginUpdates", - "Aspose.Pdf.WatermarkArtifact.SaveUpdates" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T08:30:08Z", - "status": "verified" - }, - "export-import-pdf-annotations-xfdf": { - "title": "Export and Import PDF Annotations via XFDF", - "filename": "export-import-pdf-annotations-xfdf.cs", - "description": "Demonstrates how to export annotations from a PDF to an XFDF file and then import those annotations into another PDF using Aspose.Pdf.", - "tags": [ - "annotations", - "xfdf", - "export", - "import", - "pdf" - ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Document.ExportAnnotationsToXfdf", - "Aspose.Pdf.Document.ImportAnnotationsFromXfdf" + "Aspose.Pdf.Annotations.RichMediaAnnotation", + "Aspose.Pdf.Annotations.RichMediaAnnotation.SetContent" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "import-fdf-annotations-into-pdf": { - "title": "Import FDF Annotations into PDF", - "filename": "import-fdf-annotations-into-pdf.cs", - "description": "Demonstrates how to read form field data and other annotations from an FDF file and merge them into an existing PDF document using Aspose.Pdf, then save the updated PDF.", + "create-submit-button-with-javascript": { + "title": "Create Submit Button With Javascript", + "filename": "create-submit-button-with-javascript.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "delete-all-annotations-restore-from-xfdf": { + "title": "Delete All PDF Annotations and Restore from XFDF", + "filename": "delete-all-annotations-restore-from-xfdf.cs", + "description": "Loads a PDF, removes every annotation from all pages, then re‑imports the annotations from an XFDF backup file and saves the updated document.", "tags": [ - "FDF", "annotations", - "form-fields", - "merge", - "Aspose.Pdf" + "xfdf", + "pdf", + "aspose-pdf", + "delete" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Annotations.FdfReader", - "Aspose.Pdf.Annotations.FdfReader.ReadAnnotations" + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations", + "Aspose.Pdf.Document.ImportAnnotationsFromXfdf", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "batch-add-video-screen-annotations": { - "title": "Batch Add Video Screen Annotations to PDF Pages", - "filename": "batch-add-video-screen-annotations.cs", - "description": "Shows how to add a ScreenAnnotation with a video file to each page of a multi‑page PDF using Aspose.Pdf, including validation of input files.", + "delete-all-highlight-annotations": { + "title": "Delete All Highlight Annotations", + "filename": "delete-all-highlight-annotations.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "delete-annotation-by-id-page-two": { + "title": "Delete Annotation by Id from Page Two", + "filename": "delete-annotation-by-id-page-two.cs", + "description": "Shows how to locate an annotation using its Name (unique Id) on the second page of a PDF and delete it with Aspose.Pdf.", "tags": [ - "screen-annotation", - "video", - "pdf", "annotations", - "batch" + "delete", + "pdf", + "Aspose.Pdf", + "page2" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.ScreenAnnotation", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Page.Annotations", + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Page.Annotations.Delete", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "remove-background-artifacts-from-pdf": { - "title": "Remove Background Artifacts from PDF Pages", - "filename": "remove-background-artifacts-from-pdf.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, iterate through each page's artifact collection, detect BackgroundArtifact objects, delete them, and save the resulting document.", - "tags": [ - "pdf", - "artifact", - "background", - "annotations", - "removal" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.ArtifactCollection", - "Aspose.Pdf.Annotations.BackgroundArtifact", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.ArtifactCollection.Delete" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T08:30:08Z", + "delete-annotations-from-pdf-using-csv": { + "title": "Delete Annotations From Pdf Using Csv", + "filename": "delete-annotations-from-pdf-using-csv.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "add-external-url-link-annotation": { - "title": "Add External URL Link Annotation to PDF", - "filename": "add-external-url-link-annotation.cs", - "description": "Shows how to create a link annotation that opens an external website when the user clicks the annotation area using Aspose.Pdf.", - "tags": [ - "link-annotation", - "external-url", - "pdf", - "aspose-pdf", - "annotations" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.LinkAnnotation", - "Aspose.Pdf.Annotations.GoToURIAction" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T08:30:08Z", + "delete-annotations-restore-from-xfdf": { + "title": "Delete Annotations Restore From Xfdf", + "filename": "delete-annotations-restore-from-xfdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "add-internal-link-annotation-to-pdf": { - "title": "Add Internal Link Annotation to PDF", - "filename": "add-internal-link-annotation-to-pdf.cs", - "description": "Shows how to create a link annotation that navigates to a specific page within the same PDF document using Aspose.Pdf.", + "delete-pdf-annotations-from-csv": { + "title": "Delete PDF Annotations Using a CSV List", + "filename": "delete-pdf-annotations-from-csv.cs", + "description": "Demonstrates how to read annotation identifiers from a CSV file and remove matching annotations from a PDF using Aspose.Pdf.", "tags": [ - "link-annotation", - "internal-link", + "annotations", "pdf", - "Aspose.Pdf", - "page-destination" + "delete", + "csv", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.LinkAnnotation", - "Aspose.Pdf.FitExplicitDestination", - "Aspose.Pdf.Border", - "Aspose.Pdf.Color" + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.AnnotationCollection.FindByName", + "Aspose.Pdf.Annotations.AnnotationCollection.Delete", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "add-sound-annotation-to-each-pdf-page": { - "title": "Add Sound Annotation to Each PDF Page", - "filename": "add-sound-annotation-to-each-pdf-page.cs", - "description": "Demonstrates how to iterate through all pages of a PDF and attach a SoundAnnotation that plays a notification tone when the page loads.", + "duplicate-watermark-annotations-across-pdf-pages": { + "title": "Duplicate Watermark Annotations Across Pdf Pages", + "filename": "duplicate-watermark-annotations-across-pdf-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "duplicate-watermark-annotations": { + "title": "Duplicate WatermarkAnnotations Across PDF Pages", + "filename": "duplicate-watermark-annotations.cs", + "description": "Loads a PDF, extracts all WatermarkAnnotation objects from the first page, and clones them onto every subsequent page while preserving visual properties, then saves the result.", "tags": [ - "sound", + "watermark", "annotation", "pdf", - "aspose", - "pages" + "duplicate", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.SoundAnnotation", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.SoundIcon" + "Aspose.Pdf.Annotations.WatermarkAnnotation", + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Page.Annotations", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "auto-play-rich-media-video-annotation": { - "title": "Add Auto‑Playing Rich Media Video Annotation", - "filename": "auto-play-rich-media-video-annotation.cs", - "description": "Demonstrates how to embed a video as a RichMediaAnnotation in a PDF and configure it to start playing automatically when the page becomes visible.", + "embed-mp4-video-with-poster": { + "title": "Embed Mp4 Video With Poster", + "filename": "embed-mp4-video-with-poster.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "embed-pdf-portfolio-rich-media-disable-printing": { + "title": "Embed PDF Portfolio as Rich Media and Disable Printing", + "filename": "embed-pdf-portfolio-rich-media-disable-printing.cs", + "description": "Shows how to embed a PDF portfolio into a PDF using a RichMediaAnnotation and then prevent printing by applying encryption with specific permissions.", "tags": [ "richmedia", - "annotation", - "autoplay", - "video", - "pdf" + "pdf-portfolio", + "permissions", + "encryption", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", "Aspose.Pdf.Annotations.RichMediaAnnotation", - "Aspose.Pdf.Annotations.RichMediaAnnotation.SetContent" + "Aspose.Pdf.Annotations.RichMediaAnnotation.SetContent", + "Aspose.Pdf.Permissions", + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "clone-watermark-annotation-to-multiple-pdf-pages": { - "title": "Clone Watermark Annotation to Multiple PDF Pages", - "filename": "clone-watermark-annotation-to-multiple-pdf-pages.cs", - "description": "Loads a PDF, finds the first WatermarkAnnotation, and clones it onto every other page with position offsets, then saves the updated document.", + "embed-pdf-portfolio-richmedia-annotation": { + "title": "Embed Pdf Portfolio Richmedia Annotation", + "filename": "embed-pdf-portfolio-richmedia-annotation.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "embed-pdf-portfolio-richmedia-disable-printing": { + "title": "Embed Pdf Portfolio Richmedia Disable Printing", + "filename": "embed-pdf-portfolio-richmedia-disable-printing.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "export-annotation-ids-to-csv": { + "title": "Export Annotation IDs and Authors to CSV", + "filename": "export-annotation-ids-to-csv.cs", + "description": "Loads a PDF, iterates through all pages and their annotations, extracts each annotation's Name (as ID) and author (Title), and writes the data to a UTF‑8 CSV file for audit purposes.", "tags": [ - "watermark", - "annotation", - "clone", - "pdf", - "Aspose.Pdf" + "annotations", + "csv", + "audit", + "aspose-pdf", + "metadata" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Annotations.WatermarkAnnotation", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Page.Annotations.Add" + "Aspose.Pdf.Annotations.AnnotationCollection", + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.MarkupAnnotation" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "export-pdf-annotations-to-xfdf-stream": { - "title": "Export PDF Annotations to XFDF Stream", - "filename": "export-pdf-annotations-to-xfdf-stream.cs", - "description": "Demonstrates loading a PDF with Aspose.Pdf, exporting all its annotations directly to an XFDF format using a memory stream, and reading the XFDF content without writing a separate file.", + "export-annotations-modify-colors-xfdf": { + "title": "Export Annotations Modify Colors Xfdf", + "filename": "export-annotations-modify-colors-xfdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "export-annotations-modify-colors": { + "title": "Export Annotations to XFDF, Change Colors, and Re‑import", + "filename": "export-annotations-modify-colors.cs", + "description": "Demonstrates exporting PDF annotations to an XFDF file, editing the XFDF XML to change annotation colors, and importing the modified annotations back into the PDF.", "tags": [ "annotations", "xfdf", - "export", - "memory-stream", - "aspose-pdf" + "color", + "pdf", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.ExportAnnotationsToXfdf" + "Aspose.Pdf.Document.ExportAnnotationsToXfdf", + "Aspose.Pdf.Document.ImportAnnotationsFromXfdf", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "import-xfdf-annotations-into-pdf__v2": { - "title": "Import XFDF Annotations into PDF", - "filename": "import-xfdf-annotations-into-pdf__v2.cs", - "description": "Shows how to load an existing PDF, import annotations from an XFDF file, and save the updated document while preserving the original page layout and content.", + "export-import-annotations-xfdf": { + "title": "Export and Re‑Import PDF Annotations via XFDF", + "filename": "export-import-annotations-xfdf.cs", + "description": "Demonstrates exporting all annotations from a PDF to an XFDF file, importing them back into the same document, and verifying round‑trip integrity by comparing annotation counts.", "tags": [ - "xfdf", "annotations", - "pdf", + "xfdf", + "export", "import", - "aspose-pdf" + "roundtrip" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Document.ExportAnnotationsToXfdf", "Aspose.Pdf.Document.ImportAnnotationsFromXfdf", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "create-3d-annotation-custom-lighting": { - "title": "Create 3D Annotation with Custom Lighting in PDF", - "filename": "create-3d-annotation-custom-lighting.cs", - "description": "Demonstrates embedding a U3D model into a PDF as a 3‑D annotation and applying a custom lighting scheme and render mode to enhance visual depth.", + "export-import-pdf-annotations-xfdf": { + "title": "Export and Import PDF Annotations via XFDF", + "filename": "export-import-pdf-annotations-xfdf.cs", + "description": "Demonstrates how to export annotations from a PDF to an XFDF file and then import those annotations into another PDF using Aspose.Pdf.", "tags": [ - "3d", - "annotation", - "lighting", - "pdf", - "aspose-pdf" + "annotations", + "xfdf", + "export", + "import", + "pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.PDF3DContent", - "Aspose.Pdf.Annotations.PDF3DLightingScheme", - "Aspose.Pdf.Annotations.PDF3DRenderMode", - "Aspose.Pdf.Annotations.PDF3DArtwork", - "Aspose.Pdf.Annotations.PDF3DAnnotation" + "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Document.ExportAnnotationsToXfdf", + "Aspose.Pdf.Document.ImportAnnotationsFromXfdf" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "list-annotations-with-media-info": { - "title": "List PDF Annotations with Types, Rectangles, and Media Files", - "filename": "list-annotations-with-media-info.cs", - "description": "Loads a PDF, iterates through all pages and their annotations, and logs each annotation's type, bounding rectangle, and any associated media file name (if applicable).", + "export-import-pdf-annotations-xfdf__v3": { + "title": "Export Import Pdf Annotations Xfdf__V3", + "filename": "export-import-pdf-annotations-xfdf__v3.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "export-page-annotations-to-xfdf": { + "title": "Export Page Annotations To Xfdf", + "filename": "export-page-annotations-to-xfdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "export-pdf-annotation-ids-to-csv": { + "title": "Export Pdf Annotation Ids To Csv", + "filename": "export-pdf-annotation-ids-to-csv.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "export-pdf-annotations-to-csv": { + "title": "Export PDF Annotations to CSV", + "filename": "export-pdf-annotations-to-csv.cs", + "description": "Opens a PDF document, iterates through each page and its annotations, and writes key annotation details (type, name, title, contents, rectangle) to a CSV file for auditing purposes.", "tags": [ "annotations", - "pdf", - "media", - "aspose", - "csharp" + "csv", + "audit", + "aspdf", + "pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.AnnotationCollection", "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.ScreenAnnotation", - "Aspose.Pdf.Annotations.MovieAnnotation", - "Aspose.Pdf.Annotations.RichMediaAnnotation", + "Aspose.Pdf.Annotations.MarkupAnnotation", "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "replace-background-artifact-image": { - "title": "Replace Background Artifact Image with High‑Resolution Version", - "filename": "replace-background-artifact-image.cs", - "description": "Loads a PDF, finds BackgroundArtifact objects on each page, and replaces their image with a higher‑resolution PNG while preserving the original layout.", + "export-pdf-annotations-to-xfdf-and-upload": { + "title": "Export PDF Annotations to XFDF and Upload via REST", + "filename": "export-pdf-annotations-to-xfdf-and-upload.cs", + "description": "The example loads a PDF, exports its annotations to an in‑memory XFDF stream, and posts the XFDF file to a REST API endpoint using multipart/form‑data.", "tags": [ - "background", - "artifact", - "image", - "pdf", - "aspose" + "annotations", + "xfdf", + "rest-api", + "upload", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Artifact", - "Aspose.Pdf.BackgroundArtifact", - "Aspose.Pdf.BackgroundArtifact.SetImage", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.ExportAnnotationsToXfdf" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "add-dynamic-date-watermark-to-pdf-pages": { - "title": "Add Dynamic Date Watermark to PDF Pages", - "filename": "add-dynamic-date-watermark-to-pdf-pages.cs", - "description": "Demonstrates how to add a WatermarkAnnotation with a runtime‑generated date string to each page of a PDF using Aspose.Pdf.", + "export-pdf-annotations-to-xfdf-azure-blob": { + "title": "Export PDF Annotations to XFDF and Upload to Azure Blob", + "filename": "export-pdf-annotations-to-xfdf-azure-blob.cs", + "description": "Shows how to export all annotations from a PDF document to XFDF format and store the resulting XFDF file in an Azure Blob Storage container (using a stub for local testing).", "tags": [ - "watermark", - "annotation", - "date", "pdf", - "Aspose" + "annotations", + "xfdf", + "azure-blob", + "export" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.WatermarkAnnotation", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Text.FontRepository.FindFont", - "Aspose.Pdf.Annotations.WatermarkAnnotation.SetTextAndState", - "Aspose.Pdf.Page.Annotations.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.ExportAnnotationsToXfdf" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "create-link-annotation-open-embedded-pdf": { - "title": "Create Link Annotation to Open Embedded PDF Attachment", - "filename": "create-link-annotation-open-embedded-pdf.cs", - "description": "Demonstrates how to embed a PDF file into a document and add a link annotation that opens the embedded PDF when clicked.", + "export-pdf-annotations-to-xfdf-stream": { + "title": "Export PDF Annotations to XFDF Stream", + "filename": "export-pdf-annotations-to-xfdf-stream.cs", + "description": "Demonstrates loading a PDF with Aspose.Pdf, exporting all its annotations directly to an XFDF format using a memory stream, and reading the XFDF content without writing a separate file.", "tags": [ - "link-annotation", - "embedded-file", - "goto-remote-action", - "pdf-attachment", + "annotations", + "xfdf", + "export", + "memory-stream", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Annotations.LinkAnnotation", - "Aspose.Pdf.Annotations.GoToRemoteAction", - "Aspose.Pdf.Annotations.Border" + "Aspose.Pdf.Document.ExportAnnotationsToXfdf" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "set-dashed-border-for-button-annotations": { - "title": "Set Dashed Border for Button Annotations", - "filename": "set-dashed-border-for-button-annotations.cs", - "description": "Loads a PDF, finds all button field annotations, and applies a dashed 2‑point border to each before saving the document.", + "export-pdf-annotations-to-xfdf": { + "title": "Export PDF Annotations to XFDF", + "filename": "export-pdf-annotations-to-xfdf.cs", + "description": "Loads a PDF file, verifies its existence, and exports all page annotations to an XFDF file saved in the same folder as the source PDF.", "tags": [ - "button", - "border", - "annotation", + "annotations", + "xfdf", + "export", "pdf", - "aspose" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Forms.ButtonField", - "Aspose.Pdf.Annotations.Border", - "Aspose.Pdf.Annotations.BorderStyle", - "Aspose.Pdf.Annotations.Dash" + "Aspose.Pdf.Document.ExportAnnotationsToXfdf" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "add-screen-annotation-looping-video": { - "title": "Add Looping Video Screen Annotation to PDF", - "filename": "add-screen-annotation-looping-video.cs", - "description": "This example demonstrates how to embed a video file as a ScreenAnnotation in a PDF, set the annotation to read‑only, and configure it for loop playback.", + "export-popup-annotations-to-xfdf": { + "title": "Export Only Popup Annotations to XFDF", + "filename": "export-popup-annotations-to-xfdf.cs", + "description": "Shows how to filter a PDF so that only popup annotations remain and then export those annotations to an XFDF file using Aspose.Pdf.", "tags": [ - "screen-annotation", - "video", - "loop", - "read-only", - "pdf" + "popup", + "annotations", + "xfdf", + "export", + "filter" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.ScreenAnnotation", - "Aspose.Pdf.Annotations.AnnotationFlags", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.AnnotationCollection.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.PopupAnnotation", + "Aspose.Pdf.Document.ExportAnnotationsToXfdf" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "extract-pdf-watermark-artifacts-report": { - "title": "Extract Watermark Artifacts and Report Positions", - "filename": "extract-pdf-watermark-artifacts-report.cs", - "description": "Loads a PDF, iterates through each page's artifacts, identifies WatermarkArtifact objects, and writes their X/Y position and opacity to a text report.", + "extract-3d-annotation-preview-images-to-report": { + "title": "Extract 3D Annotation Preview Images To Report", + "filename": "extract-3d-annotation-preview-images-to-report.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-embedded-media-from-richmedia-annotations": { + "title": "Extract Embedded Media From Richmedia Annotations", + "filename": "extract-embedded-media-from-richmedia-annotations.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-embedded-rich-media": { + "title": "Extract Embedded Rich Media from PDF Annotations", + "filename": "extract-embedded-rich-media.cs", + "description": "Shows how to walk through PDF pages, locate RichMediaAnnotation objects, and save their embedded video/audio or binary content into a page‑based folder structure.", "tags": [ - "watermark", - "artifact", + "richmedia", + "annotation", + "extraction", "pdf", - "report", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Artifact", - "Aspose.Pdf.WatermarkArtifact", - "Aspose.Pdf.Point" + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.RichMediaAnnotation", + "Aspose.Pdf.Annotations.RichMediaAnnotation.Content" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "create-pdf-submit-button": { - "title": "Create PDF Submit Button with JavaScript Action", - "filename": "create-pdf-submit-button.cs", - "description": "Shows how to add a push button to a PDF that submits form data to a specified HTTP endpoint using Acrobat JavaScript.", + "extract-highlight-annotation-to-report": { + "title": "Extract Highlight Annotations as Images and Embed in a Report PDF", + "filename": "extract-highlight-annotation-to-report.cs", + "description": "The example reads a PDF, finds highlight annotations, renders the page containing each annotation to a PNG image, and inserts those images into a new report PDF.", "tags": [ - "pdf", - "button", - "javascript", - "form", - "submit" + "highlight", + "annotation", + "image", + "report", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.HighlightAnnotation", + "Aspose.Pdf.Devices.PngDevice", + "Aspose.Pdf.Devices.Resolution", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.ButtonField", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Forms.Form.Add", + "Aspose.Pdf.Page.AddImage", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "add-rich-media-annotation-hidden-toolbar": { - "title": "Add Rich Media Annotation with Hidden Playback Toolbar", - "filename": "add-rich-media-annotation-hidden-toolbar.cs", - "description": "Demonstrates embedding a video as a RichMediaAnnotation in a PDF using Aspose.Pdf and hiding the default playback toolbar via custom flash variables.", + "extract-media-from-screenannotation": { + "title": "Extract Media Files from ScreenAnnotations in a PDF", + "filename": "extract-media-from-screenannotation.cs", + "description": "Demonstrates how to locate ScreenAnnotation objects in a PDF, retrieve the associated media via a GoToRemoteAction, and save the embedded file to disk for further analysis.", "tags": [ - "richmedia", - "annotation", - "video", - "toolbar", - "aspose-pdf" + "screenannotation", + "media-extraction", + "pdf", + "annotations", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.RichMediaAnnotation", - "Aspose.Pdf.Annotations.RichMediaAnnotation.ActivationEvent", - "Aspose.Pdf.Annotations.RichMediaAnnotation.SetContent", - "Aspose.Pdf.Annotations.RichMediaAnnotation.CustomFlashVariables", - "Aspose.Pdf.Page.Annotations.Add" + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.ScreenAnnotation", + "Aspose.Pdf.Annotations.GoToRemoteAction", + "Aspose.Pdf.FileSpecification" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "batch-add-watermark-artifact-to-pdfs": { - "title": "Batch Add Watermark Artifact to PDFs", - "filename": "batch-add-watermark-artifact-to-pdfs.cs", - "description": "Demonstrates how to iterate through a folder of PDF files and add the same image‑based WatermarkArtifact to every page, reusing the image reference to keep the resulting file size low.", + "extract-pdf-watermark-artifacts-report": { + "title": "Extract Watermark Artifacts and Report Positions", + "filename": "extract-pdf-watermark-artifacts-report.cs", + "description": "Loads a PDF, iterates through each page's artifacts, identifies WatermarkArtifact objects, and writes their X/Y position and opacity to a text report.", "tags": [ "watermark", "artifact", - "batch", "pdf", - "Aspose.Pdf" + "report", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.Artifact", "Aspose.Pdf.WatermarkArtifact", - "Aspose.Pdf.WatermarkArtifact.SetImage", - "Aspose.Pdf.Page.Artifacts.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Point" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "remove-screen-annotations-from-pdf": { - "title": "Remove Screen Annotations from PDF", - "filename": "remove-screen-annotations-from-pdf.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, locate all ScreenAnnotation objects on each page, delete them, and save the resulting document.", + "extract-popup-annotation-to-pdf": { + "title": "Extract Popup Annotation To Pdf", + "filename": "extract-popup-annotation-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-popup-annotations-to-pdf": { + "title": "Extract Popup Annotations to Separate PDFs", + "filename": "extract-popup-annotations-to-pdf.cs", + "description": "Loads a PDF, finds all popup annotations, extracts their text content, and saves each annotation as an individual PDF file.", "tags": [ - "screen-annotation", + "popup", + "annotation", + "extract", "pdf", - "remove-annotations", - "aspose-pdf", - "csharp" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.ScreenAnnotation", - "Aspose.Pdf.Page.Annotations", - "Aspose.Pdf.Page.Annotations.Delete", + "Aspose.Pdf.Annotations.PopupAnnotation", + "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "create-link-annotation-named-destination": { - "title": "Create Link Annotation to a Named Destination", - "filename": "create-link-annotation-named-destination.cs", - "description": "Demonstrates how to add a link annotation that jumps to a named destination within the same PDF using Aspose.Pdf. The example creates a named destination, associates it with a GoToAction, and attaches the annotation to a page.", + "extract-watermark-artifacts-report": { + "title": "Extract Watermark Artifacts Report", + "filename": "extract-watermark-artifacts-report.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "fade-background-artifacts": { + "title": "Fade PDF Background Artifacts by Setting Opacity", + "filename": "fade-background-artifacts.cs", + "description": "Demonstrates how to iterate through PDF pages, locate BackgroundArtifact objects, and set their opacity to 40% to create a faded background effect.", "tags": [ - "link-annotation", - "named-destination", - "goto-action", + "background", + "opacity", + "artifact", "pdf", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.LinkAnnotation", - "Aspose.Pdf.Annotations.GoToAction", - "Aspose.Pdf.NamedDestinations.Add", - "Aspose.Pdf.Destinations.FitExplicitDestination", - "Aspose.Pdf.Annotations.Border", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Artifact", + "Aspose.Pdf.BackgroundArtifact", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" - }, - "add-sound-annotation-visible-tone": { - "title": "Add Sound Annotation that Plays When Visible", - "filename": "add-sound-annotation-visible-tone.cs", - "description": "Demonstrates how to create a SoundAnnotation in a PDF using Aspose.Pdf, link it to a WAV file, set an icon and tooltip, and have the sound play when the annotation becomes visible on screen.", + }, + "filter-pdf-annotations-by-author": { + "title": "Filter PDF Annotations by Author", + "filename": "filter-pdf-annotations-by-author.cs", + "description": "Shows how to iterate through a PDF, retain only markup annotations whose author matches a given user, and delete all other annotations using Aspose.Pdf.", "tags": [ - "sound", - "annotation", - "pdf", - "aspose", - "visibility" + "annotations", + "author", + "filter", + "Aspose.Pdf", + "C#" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.SoundAnnotation", - "Aspose.Pdf.Annotations.SoundIcon", - "Aspose.Pdf.Page.Annotations.Add", + "Aspose.Pdf.Annotations.AnnotationCollection", + "Aspose.Pdf.Annotations.MarkupAnnotation", + "Aspose.Pdf.Annotations.AnnotationCollection.Delete", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "duplicate-watermark-annotations": { - "title": "Duplicate WatermarkAnnotations Across PDF Pages", - "filename": "duplicate-watermark-annotations.cs", - "description": "Loads a PDF, extracts all WatermarkAnnotation objects from the first page, and clones them onto every subsequent page while preserving visual properties, then saves the result.", + "generate-annotation-summary-per-pdf-page": { + "title": "Generate Annotation Summary per PDF Page", + "filename": "generate-annotation-summary-per-pdf-page.cs", + "description": "Loads a PDF, iterates through each page to count annotation types, and saves the results as a formatted JSON summary file.", "tags": [ - "watermark", - "annotation", + "annotations", "pdf", - "duplicate", - "Aspose.Pdf" + "summary", + "json", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.WatermarkAnnotation", "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Page.Annotations", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Annotations.Annotation.AnnotationType", + "Aspose.Pdf.Document.Pages" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "toggle-watermark-visibility-button": { - "title": "Toggle Watermark Visibility with a Button Annotation", - "filename": "toggle-watermark-visibility-button.cs", - "description": "Demonstrates how to add a WatermarkArtifact to a PDF page and create a push‑button that uses JavaScript to toggle the watermark's visibility at runtime.", + "get-annotation-bounding-rectangle": { + "title": "Get Annotation Bounding Rectangle", + "filename": "get-annotation-bounding-rectangle.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "group-pdf-annotations-by-type": { + "title": "Group PDF Annotations by Type and Report Summary", + "filename": "group-pdf-annotations-by-type.cs", + "description": "Loads a PDF document, iterates through its pages to collect all annotations, groups them by AnnotationType, and prints a summary count and detailed listing per page.", "tags": [ - "watermark", - "button", - "javascript", - "annotation", - "Aspose.Pdf" + "annotations", + "pdf", + "grouping", + "reporting", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.WatermarkArtifact", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Forms.ButtonField", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Annotations.AnnotationCollection", + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.AnnotationType" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "export-annotations-modify-colors": { - "title": "Export Annotations to XFDF, Change Colors, and Re‑import", - "filename": "export-annotations-modify-colors.cs", - "description": "Demonstrates exporting PDF annotations to an XFDF file, editing the XFDF XML to change annotation colors, and importing the modified annotations back into the PDF.", + "hide-free-text-annotation-page-five": { + "title": "Hide Free‑Text Annotation on a Specific PDF Page", + "filename": "hide-free-text-annotation-page-five.cs", + "description": "Shows how to add a free‑text annotation to page 5 of a PDF and make it invisible by setting the Hidden flag while keeping the annotation data intact.", "tags": [ - "annotations", - "xfdf", - "color", + "free-text", + "annotation", + "hidden", "pdf", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.ExportAnnotationsToXfdf", - "Aspose.Pdf.Document.ImportAnnotationsFromXfdf", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.DefaultAppearance", + "Aspose.Pdf.Annotations.FreeTextAnnotation", + "Aspose.Pdf.Annotations.AnnotationFlags", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "add-footer-watermark-to-pdf-pages": { - "title": "Add Footer Watermark to PDF Pages", - "filename": "add-footer-watermark-to-pdf-pages.cs", - "description": "Demonstrates loading a PDF with Aspose.Pdf, iterating through each page, and adding a WatermarkAnnotation at the bottom as a unique page identifier, then saving the result.", + "highlight-keyword-across-pdf-pages": { + "title": "Highlight Keyword Across All PDF Pages", + "filename": "highlight-keyword-across-pdf-pages.cs", + "description": "Shows how to search for a specific word in a PDF and apply highlight annotations to every occurrence on all pages using Aspose.Pdf.", "tags": [ + "highlight", + "keyword", "pdf", - "watermark", "annotation", - "aspose", - "csharp" + "search" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragmentAbsorber", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Annotations.HighlightAnnotation", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.WatermarkAnnotation", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Page.Annotations.Add" + "Aspose.Pdf.Color" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "embed-pdf-portfolio-rich-media-disable-printing": { - "title": "Embed PDF Portfolio as Rich Media and Disable Printing", - "filename": "embed-pdf-portfolio-rich-media-disable-printing.cs", - "description": "Shows how to embed a PDF portfolio into a PDF using a RichMediaAnnotation and then prevent printing by applying encryption with specific permissions.", + "import-annotations-from-fdf": { + "title": "Import Annotations from FDF into PDF", + "filename": "import-annotations-from-fdf.cs", + "description": "Shows how to load a PDF, read an FDF file containing annotations, import those annotations into the PDF, and save the updated document.", "tags": [ - "richmedia", - "pdf-portfolio", - "permissions", - "encryption", - "aspose-pdf" + "annotations", + "FDF", + "PDF", + "import", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Annotations.RichMediaAnnotation", - "Aspose.Pdf.Annotations.RichMediaAnnotation.SetContent", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Annotations.FdfReader", + "Aspose.Pdf.Annotations.FdfReader.ReadAnnotations", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "add-screen-annotation-external-video": { - "title": "Add Screen Annotation with External Video URL", - "filename": "add-screen-annotation-external-video.cs", - "description": "Demonstrates how to add a ScreenAnnotation to a PDF page that references an external video URL and starts playback automatically.", + "import-annotations-from-fdf__v2": { + "title": "Import Annotations from FDF into PDF", + "filename": "import-annotations-from-fdf__v2.cs", + "description": "Shows how to read an FDF file and import its annotations onto the matching pages of a PDF document using Aspose.Pdf.", "tags": [ - "screen-annotation", - "video", - "external-url", + "fdf", + "annotations", + "import", "pdf", - "annotation" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.ScreenAnnotation", - "Aspose.Pdf.Annotations.GoToURIAction" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Annotations.FdfReader.ReadAnnotations" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "increase-sound-annotation-clickable-area": { - "title": "Increase Clickable Area of Sound Annotations by 20%", - "filename": "increase-sound-annotation-clickable-area.cs", - "description": "Shows how to load a PDF, locate all SoundAnnotation objects, enlarge their rectangle by 20% while keeping the center point, and save the modified document.", + "import-annotations-from-fdf__v3": { + "title": "Import Annotations from FDF into PDF", + "filename": "import-annotations-from-fdf__v3.cs", + "description": "Shows how to load a PDF, read an FDF file and automatically import its annotations onto the correct pages, then save the updated document.", "tags": [ - "sound-annotation", - "rectangle", + "annotations", + "fdf", + "import", "pdf", - "aspose-pdf", - "clickable-area" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.SoundAnnotation", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.FdfReader.ReadAnnotations", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "apply-tiled-pdf-pattern-watermark": { - "title": "Apply Tiled PDF Pattern as Watermark Across All Pages", - "filename": "apply-tiled-pdf-pattern-watermark.cs", - "description": "Demonstrates using WatermarkArtifact with SetPdfPage to tile a PDF page as a background watermark on every page of a target PDF document.", + "import-annotations-from-xfdf": { + "title": "Import Annotations From Xfdf", + "filename": "import-annotations-from-xfdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "import-fdf-annotations-into-pdf": { + "title": "Import FDF Annotations into PDF", + "filename": "import-fdf-annotations-into-pdf.cs", + "description": "Demonstrates how to read form field data and other annotations from an FDF file and merge them into an existing PDF document using Aspose.Pdf, then save the updated PDF.", "tags": [ - "watermark", - "pdf", - "tiled", - "artifact", + "FDF", + "annotations", + "form-fields", + "merge", "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.WatermarkArtifact", - "Aspose.Pdf.WatermarkArtifact.SetPdfPage", - "Aspose.Pdf.WatermarkArtifact.IsBackground", - "Aspose.Pdf.WatermarkArtifact.Opacity", - "Aspose.Pdf.Page.Artifacts.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Annotations.FdfReader", + "Aspose.Pdf.Annotations.FdfReader.ReadAnnotations" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "add-javascript-link-annotation": { - "title": "Add JavaScript Link Annotation to Open URL", - "filename": "add-javascript-link-annotation.cs", - "description": "Demonstrates how to add a link annotation with a JavaScript action that opens a URL in a new browser window using Aspose.Pdf.", + "import-multiple-fdf-annotations": { + "title": "Import Multiple FDF Files and Consolidate Annotations", + "filename": "import-multiple-fdf-annotations.cs", + "description": "Demonstrates how to read annotations from several FDF files, add them to a PDF document, collect all annotations into a single list, and save the updated PDF.", "tags": [ - "link-annotation", - "javascript", + "fdf", + "annotations", "pdf", - "aspose-pdf", - "url" + "import", + "consolidate" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.LinkAnnotation", - "Aspose.Pdf.Annotations.JavascriptAction" + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.AnnotationCollection", + "Aspose.Pdf.Annotations.FdfReader.ReadAnnotations" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "replace-watermark-annotations-with-logo": { - "title": "Batch Replace Watermark Annotations with a Logo Image", - "filename": "replace-watermark-annotations-with-logo.cs", - "description": "Shows how to iterate through all PDF pages, locate existing WatermarkAnnotation objects, keep their opacity and rectangle, delete them, and add a new StampAnnotation that displays a corporate logo image.", + "import-xfdf-annotations-into-multiple-pdfs-in-parallel": { + "title": "Import Xfdf Annotations Into Multiple Pdfs In Parallel", + "filename": "import-xfdf-annotations-into-multiple-pdfs-in-parallel.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "import-xfdf-annotations-into-multiple-pdfs": { + "title": "Import XFDF Annotations into Multiple PDFs in Parallel", + "filename": "import-xfdf-annotations-into-multiple-pdfs.cs", + "description": "Shows how to load a PDF, import annotation data from an XFDF file, and save the updated document while processing several PDFs concurrently using Parallel.ForEach.", "tags": [ - "watermark", - "annotation", - "image", - "pdf", - "replace" + "xfdf", + "annotations", + "parallel", + "aspose.pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.WatermarkAnnotation", - "Aspose.Pdf.Annotations.StampAnnotation", - "Aspose.Pdf.Page.Annotations", - "Aspose.Pdf.Annotations.AnnotationCollection.Delete", - "Aspose.Pdf.Annotations.AnnotationCollection.Add" + "Aspose.Pdf.Document.ImportAnnotationsFromXfdf", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "add-3d-annotation-with-custom-camera": { - "title": "Add 3D Annotation with Custom Camera to PDF", - "filename": "add-3d-annotation-with-custom-camera.cs", - "description": "Shows how to embed a 3D model into a PDF and define a custom camera view using Aspose.Pdf 3D annotation classes.", + "import-xfdf-annotations-into-pdf": { + "title": "Import XFDF Annotations into PDF", + "filename": "import-xfdf-annotations-into-pdf.cs", + "description": "Shows how to load a PDF, import annotations from an XFDF string using a memory stream, and save the updated document.", "tags": [ - "3d-annotation", - "custom-camera", + "xfdf", + "annotations", + "import", "pdf", - "aspose-pdf", - "view" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Annotations.PDF3DContent", - "Aspose.Pdf.Annotations.PDF3DArtwork", - "Aspose.Pdf.Annotations.Matrix3D", - "Aspose.Pdf.Annotations.PDF3DView", - "Aspose.Pdf.Annotations.PDF3DAnnotation" + "Aspose.Pdf.Document.ImportAnnotationsFromXfdf", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "fade-background-artifacts": { - "title": "Fade PDF Background Artifacts by Setting Opacity", - "filename": "fade-background-artifacts.cs", - "description": "Demonstrates how to iterate through PDF pages, locate BackgroundArtifact objects, and set their opacity to 40% to create a faded background effect.", + "import-xfdf-annotations-into-pdf__v2": { + "title": "Import XFDF Annotations into PDF", + "filename": "import-xfdf-annotations-into-pdf__v2.cs", + "description": "Shows how to load an existing PDF, import annotations from an XFDF file, and save the updated document while preserving the original page layout and content.", "tags": [ - "background", - "opacity", - "artifact", + "xfdf", + "annotations", "pdf", + "import", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Artifact", - "Aspose.Pdf.BackgroundArtifact", + "Aspose.Pdf.Document.ImportAnnotationsFromXfdf", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "add-rich-media-video-annotation": { - "title": "Add Rich Media Video Annotation with Poster to PDF", - "filename": "add-rich-media-video-annotation.cs", - "description": "Demonstrates how to embed an MP4 video and a poster image into a PDF using a RichMediaAnnotation.", + "import-xfdf-annotations-reassign-pages": { + "title": "Import XFDF Annotations and Reassign to Different PDF Pages", + "filename": "import-xfdf-annotations-reassign-pages.cs", + "description": "Demonstrates how to import annotations from an XFDF file into a PDF using Aspose.Pdf, then move those annotations to other pages based on a custom page‑mapping dictionary.", "tags": [ - "richmedia", - "video", - "annotation", - "pdf", - "aspose" + "xfdf", + "annotations", + "page-mapping", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Document.ImportAnnotationsFromXfdf", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.RichMediaAnnotation", - "Aspose.Pdf.Annotations.RichMediaAnnotation.SetContent", - "Aspose.Pdf.Annotations.RichMediaAnnotation.SetPoster", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Color" + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.AnnotationCollection.Add", + "Aspose.Pdf.Annotations.AnnotationCollection.Delete" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "add-sound-annotation-voiceover-page-five": { - "title": "Add Sound Annotation for Voice‑over on PDF Page", - "filename": "add-sound-annotation-voiceover-page-five.cs", - "description": "Demonstrates how to add a SoundAnnotation that plays a voice‑over WAV file when the user clicks a defined region on page five of a PDF document.", + "import-xfdf-annotations-set-visibility-by-role": { + "title": "Import XFDF Annotations and Set Visibility by User Role", + "filename": "import-xfdf-annotations-set-visibility-by-role.cs", + "description": "Demonstrates loading a PDF, importing annotations from an XFDF file, and toggling their visibility based on the current user's role before saving the document.", "tags": [ - "sound", - "annotation", - "audio", - "clickable", - "Aspose.Pdf" + "xfdf", + "annotations", + "visibility", + "role-based", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Document.ImportAnnotationsFromXfdf", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.SoundAnnotation", - "Aspose.Pdf.Page.Annotations.Add", + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.AnnotationFlags", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "add-qr-code-watermark-to-pdf": { - "title": "Add QR Code Watermark to PDF", - "filename": "add-qr-code-watermark-to-pdf.cs", - "description": "Creates a PDF document and adds a QR code image as a watermark artifact positioned at the top‑right corner of the page.", + "import-xfdf-annotations-visibility-by-role": { + "title": "Import Xfdf Annotations Visibility By Role", + "filename": "import-xfdf-annotations-visibility-by-role.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "increase-sound-annotation-clickable-area": { + "title": "Increase Clickable Area of Sound Annotations by 20%", + "filename": "increase-sound-annotation-clickable-area.cs", + "description": "Shows how to load a PDF, locate all SoundAnnotation objects, enlarge their rectangle by 20% while keeping the center point, and save the modified document.", "tags": [ + "sound-annotation", + "rectangle", "pdf", - "watermark", - "qr-code", - "artifact", - "aspose-pdf" + "aspose-pdf", + "clickable-area" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.WatermarkArtifact", - "Aspose.Pdf.WatermarkArtifact.SetImage", - "Aspose.Pdf.WatermarkArtifact.ArtifactHorizontalAlignment", - "Aspose.Pdf.Page.Artifacts.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.SoundAnnotation", + "Aspose.Pdf.Rectangle" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "create-button-toggle-annotations-visibility": { - "title": "Create Button to Toggle Annotations Visibility", - "filename": "create-button-toggle-annotations-visibility.cs", - "description": "Shows how to add a push‑button form field to a PDF page and assign JavaScript that toggles the hidden state of all annotations on that page.", + "insert-watermark-annotation-page-6": { + "title": "Insert Watermark Annotation on Page 6", + "filename": "insert-watermark-annotation-page-6.cs", + "description": "Demonstrates how to add a WatermarkAnnotation with 30 % opacity to the center of the sixth page of a PDF using Aspose.Pdf and then save the modified document.", "tags": [ - "annotations", - "button", - "javascript", - "toggle", - "pdf" + "watermark", + "annotation", + "pdf", + "opacity", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.ButtonField", - "Aspose.Pdf.Annotations.JavascriptAction" + "Aspose.Pdf.Annotations.WatermarkAnnotation", + "Aspose.Pdf.Page.Annotations.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "batch-add-sound-annotations-to-pdf-pages": { - "title": "Batch Add Sound Annotations to PDF Pages", - "filename": "batch-add-sound-annotations-to-pdf-pages.cs", - "description": "Demonstrates how to add a SoundAnnotation to each page of a PDF using Aspose.Pdf, assigning a different audio file to each page.", + "iterate-pdf-annotations-log-media": { + "title": "Iterate Pdf Annotations Log Media", + "filename": "iterate-pdf-annotations-log-media.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "list-annotation-types-on-pdf-page": { + "title": "List Annotation Types on a PDF Page", + "filename": "list-annotation-types-on-pdf-page.cs", + "description": "Loads a PDF, ensures it has at least four pages, accesses page 4, iterates over its annotations, and writes each annotation's type to the console.", "tags": [ - "sound-annotation", - "pdf", - "audio", "annotations", - "aspose-pdf" + "pdf", + "aspose", + "page", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.SoundAnnotation", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.SoundIcon" + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Page.Annotations", + "Aspose.Pdf.Annotations.Annotation.AnnotationType" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "extract-media-from-screenannotation": { - "title": "Extract Media Files from ScreenAnnotations in a PDF", - "filename": "extract-media-from-screenannotation.cs", - "description": "Demonstrates how to locate ScreenAnnotation objects in a PDF, retrieve the associated media via a GoToRemoteAction, and save the embedded file to disk for further analysis.", + "list-annotations-with-media-info": { + "title": "List PDF Annotations with Types, Rectangles, and Media Files", + "filename": "list-annotations-with-media-info.cs", + "description": "Loads a PDF, iterates through all pages and their annotations, and logs each annotation's type, bounding rectangle, and any associated media file name (if applicable).", "tags": [ - "screenannotation", - "media-extraction", - "pdf", "annotations", - "aspose" + "pdf", + "media", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.AnnotationCollection", "Aspose.Pdf.Annotations.Annotation", "Aspose.Pdf.Annotations.ScreenAnnotation", - "Aspose.Pdf.Annotations.GoToRemoteAction", - "Aspose.Pdf.FileSpecification" + "Aspose.Pdf.Annotations.MovieAnnotation", + "Aspose.Pdf.Annotations.RichMediaAnnotation", + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "add-read-only-rich-media-pdf-annotation": { - "title": "Add Read‑Only Rich Media PDF Annotation", - "filename": "add-read-only-rich-media-pdf-annotation.cs", - "description": "Demonstrates how to embed a PDF as a rich‑media annotation in another PDF and set it to read‑only using Aspose.Pdf.", + "list-pdf-annotation-ids-to-csv": { + "title": "List PDF Annotation IDs and Export to CSV", + "filename": "list-pdf-annotation-ids-to-csv.cs", + "description": "Loads a PDF, iterates through each page's annotations, extracts their Name and FullName, and writes the information to a CSV file.", "tags": [ - "richmedia", - "annotation", - "pdf", - "readonly", - "embed" + "annotations", + "csv", + "aspose-pdf", + "export", + "pages" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.RichMediaAnnotation", - "Aspose.Pdf.Annotations.AnnotationFlags", - "Aspose.Pdf.Annotations.RichMediaAnnotation.SetContent", - "Aspose.Pdf.Page.Annotations.Add" + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Page.Annotations" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "export-pdf-annotations-to-csv": { - "title": "Export PDF Annotations to CSV", - "filename": "export-pdf-annotations-to-csv.cs", - "description": "Opens a PDF document, iterates through each page and its annotations, and writes key annotation details (type, name, title, contents, rectangle) to a CSV file for auditing purposes.", + "metadata-watermark-annotation": { + "title": "Add Metadata-Based Watermark Annotation to PDF", + "filename": "metadata-watermark-annotation.cs", + "description": "The example opens a PDF, reads the document title (or a default), creates a WatermarkAnnotation with that text, configures its appearance, and saves the watermarked PDF.", "tags": [ - "annotations", - "csv", - "audit", - "aspdf", - "pdf" + "watermark", + "annotation", + "metadata", + "pdf", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.MarkupAnnotation", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Info", + "Aspose.Pdf.Annotations.WatermarkAnnotation", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Color", + "Aspose.Pdf.Page.Annotations.Add", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "add-button-annotation-highlight-text-fields": { - "title": "Create Button Annotation to Highlight Text Fields", - "filename": "add-button-annotation-highlight-text-fields.cs", - "description": "Shows how to add a push‑button annotation to a PDF page with Aspose.Pdf, attach a JavaScript action that highlights all text fields on the current page, and save the updated document.", + "modify-annotation-rectangle-by-id": { + "title": "Modify Annotation Rectangle by Id in PDF", + "filename": "modify-annotation-rectangle-by-id.cs", + "description": "Loads a PDF, locates an annotation using its Name (Id), adjusts its rectangle coordinates, and saves the updated document.", "tags": [ - "button", - "javascript", "annotation", + "rectangle", "pdf", - "textfield" + "aspose", + "modify" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Page.Annotations.FindByName", + "Aspose.Pdf.Annotation.Rect", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.ButtonField", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Annotations.AnnotationCollection.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "add-highres-pdf-page-as-tiled-background": { - "title": "Add High-Resolution PDF Page as Tiled Background", - "filename": "add-highres-pdf-page-as-tiled-background.cs", - "description": "Shows how to use Aspose.Pdf's BackgroundArtifact to set a high‑resolution PDF page as a tiled background for a new document.", + "modify-figure-annotation-color": { + "title": "Change Color of Square and Circle Annotations", + "filename": "modify-figure-annotation-color.cs", + "description": "Loads a PDF, iterates through its pages and annotations, retrieves the appearance dictionary of square and circle figure annotations, updates their border and interior colors, and saves the modified document.", "tags": [ - "backgroundartifact", - "pdf", - "tiled", - "high-resolution", - "aspose-pdf" + "annotations", + "appearance", + "color", + "square", + "circle" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.BackgroundArtifact", - "Aspose.Pdf.BackgroundArtifact.SetPdfPage", - "Aspose.Pdf.BackgroundArtifact.IsBackground", - "Aspose.Pdf.Page.SetPageSize", - "Aspose.Pdf.Page.Artifacts.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.SquareAnnotation", + "Aspose.Pdf.Annotations.CircleAnnotation", + "Aspose.Pdf.Annotations.AppearanceDictionary", + "Aspose.Pdf.Color" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "set-link-annotation-border-red-width-3": { - "title": "Set Red Border and Width for Link Annotations", - "filename": "set-link-annotation-border-red-width-3.cs", - "description": "Loads a PDF, iterates through all pages and link annotations, changes each link's border color to red and line width to three points, then saves the modified document.", + "recolor-highlight-annotations-light-green": { + "title": "Recolor Highlight Annotations to Light Green", + "filename": "recolor-highlight-annotations-light-green.cs", + "description": "Shows how to load a PDF, iterate through all pages and annotations, identify HighlightAnnotation objects, change their color to LightGreen, and save the modified document.", "tags": [ - "link-annotation", - "border-color", - "line-width", + "highlight", + "annotation", + "color", "pdf", - "Aspose.Pdf" + "Aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.LinkAnnotation", - "Aspose.Pdf.Annotations.Border", - "Aspose.Pdf.Color" + "Aspose.Pdf.Annotations.HighlightAnnotation", + "Aspose.Pdf.Color", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "add-repeating-text-watermark-artifact": { - "title": "Add Repeating Text Watermark Artifact to PDF Pages", - "filename": "add-repeating-text-watermark-artifact.cs", - "description": "Demonstrates how to create a semi‑transparent WatermarkArtifact with repeating text and apply it as a background to every page of a PDF using Aspose.Pdf.", + "remove-annotations-from-third-pdf-page": { + "title": "Remove All Annotations from a PDF Page", + "filename": "remove-annotations-from-third-pdf-page.cs", + "description": "Demonstrates how to load a PDF, access the third page, clear all its annotations, and save the modified document using Aspose.Pdf.", "tags": [ - "watermark", + "annotations", "pdf", - "artifact", - "text", + "page", + "remove", "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Text.FontRepository", - "Aspose.Pdf.Text.Color", - "Aspose.Pdf.WatermarkArtifact", - "Aspose.Pdf.Page" + "Aspose.Pdf.Page", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Annotations.AnnotationCollection.Clear", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "add-screen-annotation-swf-readonly": { - "title": "Add Screen Annotation with External SWF and Disable Editing", - "filename": "add-screen-annotation-swf-readonly.cs", - "description": "Demonstrates how to add a ScreenAnnotation that references an external SWF file to a PDF page and make it read‑only to prevent user interaction.", + "remove-background-artifacts-from-pdf-pages": { + "title": "Remove Background Artifacts From Pdf Pages", + "filename": "remove-background-artifacts-from-pdf-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "remove-background-artifacts-from-pdf": { + "title": "Remove Background Artifacts from PDF Pages", + "filename": "remove-background-artifacts-from-pdf.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, iterate through each page's artifact collection, detect BackgroundArtifact objects, delete them, and save the resulting document.", "tags": [ - "screen-annotation", - "swf", - "readonly", - "annotation", - "pdf" + "pdf", + "artifact", + "background", + "annotations", + "removal" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.ScreenAnnotation", - "Aspose.Pdf.Annotations.AnnotationFlags", - "Aspose.Pdf.Page.Annotations.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.ArtifactCollection", + "Aspose.Pdf.Annotations.BackgroundArtifact", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.ArtifactCollection.Delete" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "batch-import-xfdf-annotations-into-pdfs": { - "title": "Batch Import XFDF Annotations into PDFs", - "filename": "batch-import-xfdf-annotations-into-pdfs.cs", - "description": "Demonstrates how to iterate over a folder of PDF files, import matching XFDF annotation files into each PDF, and save the annotated documents. The example shows batch processing and error handling using Aspose.Pdf.", + "remove-highlight-annotations-from-pdf": { + "title": "Remove Highlight Annotations from PDF", + "filename": "remove-highlight-annotations-from-pdf.cs", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, iterate through its pages, identify all highlight annotations, delete them, and save the cleaned document.", "tags": [ - "xfdf", - "annotations", - "batch", + "highlight", + "annotation", + "remove", "pdf", - "import" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.ImportAnnotationsFromXfdf", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.HighlightAnnotation", + "Aspose.Pdf.Page.Annotations", + "Aspose.Pdf.Page.Annotations.Delete", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "add-rich-media-video-annotation__v2": { - "title": "Add Rich Media Video Annotation (Click Activation)", - "filename": "add-rich-media-video-annotation__v2.cs", - "description": "Demonstrates how to embed a video file into a PDF using Aspose.Pdf's RichMediaAnnotation, set the activation event, and save the modified document.", + "remove-popup-annotations-from-pdf": { + "title": "Remove Popup Annotations from PDF", + "filename": "remove-popup-annotations-from-pdf.cs", + "description": "Shows how to iterate through each page of a PDF, locate PopupAnnotation objects, and delete them while preserving their parent markup annotations using Aspose.Pdf.", "tags": [ - "richmedia", - "video", + "popup", "annotation", - "pdf", - "aspose" + "delete", + "Aspose.Pdf", + "PDF" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.RichMediaAnnotation", - "Aspose.Pdf.Annotations.RichMediaAnnotation.ActivationEvent", - "Aspose.Pdf.Annotations.RichMediaAnnotation.SetContent", - "Aspose.Pdf.Page.Annotations.Add", + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.PopupAnnotation", + "Aspose.Pdf.Annotations.AnnotationCollection.Delete", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "replace-pdf-page-background-images": { - "title": "Replace PDF Page Background Images", - "filename": "replace-pdf-page-background-images.cs", - "description": "Shows how to iterate over PDF pages, locate BackgroundArtifact objects, and replace their images with a new file while keeping the original positions unchanged.", + "remove-screen-annotations-from-pdf": { + "title": "Remove Screen Annotations from PDF", + "filename": "remove-screen-annotations-from-pdf.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, locate all ScreenAnnotation objects on each page, delete them, and save the resulting document.", "tags": [ + "screen-annotation", "pdf", - "background", - "artifact", - "image", - "aspose" + "remove-annotations", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Artifact", - "Aspose.Pdf.BackgroundArtifact", - "Aspose.Pdf.BackgroundArtifact.SetImage", + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.ScreenAnnotation", + "Aspose.Pdf.Page.Annotations", + "Aspose.Pdf.Page.Annotations.Delete", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "metadata-watermark-annotation": { - "title": "Add Metadata-Based Watermark Annotation to PDF", - "filename": "metadata-watermark-annotation.cs", - "description": "The example opens a PDF, reads the document title (or a default), creates a WatermarkAnnotation with that text, configures its appearance, and saves the watermarked PDF.", + "remove-sound-annotations-from-pdf": { + "title": "Remove Sound Annotations from PDF", + "filename": "remove-sound-annotations-from-pdf.cs", + "description": "Shows how to load a PDF, iterate through each page, locate SoundAnnotation objects, delete them, and save the cleaned document using Aspose.Pdf.", "tags": [ - "watermark", - "annotation", - "metadata", + "sound-annotation", "pdf", - "Aspose.Pdf" + "annotations", + "delete", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Info", - "Aspose.Pdf.Annotations.WatermarkAnnotation", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Color", - "Aspose.Pdf.Page.Annotations.Add", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.SoundAnnotation", + "Aspose.Pdf.Page.Annotations", + "Aspose.Pdf.Page.Annotations.Delete", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "add-javascript-link-annotation-modal-dialog": { - "title": "Add JavaScript Link Annotation to Show Modal Dialog", - "filename": "add-javascript-link-annotation-modal-dialog.cs", - "description": "Shows how to create a link annotation with a JavaScript action that displays a custom modal dialog box in a PDF using Aspose.Pdf.", + "replace-background-artifact-image": { + "title": "Replace Background Artifact Image with High‑Resolution Version", + "filename": "replace-background-artifact-image.cs", + "description": "Loads a PDF, finds BackgroundArtifact objects on each page, and replaces their image with a higher‑resolution PNG while preserving the original layout.", "tags": [ - "link-annotation", - "javascript", - "modal-dialog", + "background", + "artifact", + "image", "pdf", - "aspose-pdf" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.LinkAnnotation", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Annotations.Border", - "Aspose.Pdf.Color" + "Aspose.Pdf.Artifact", + "Aspose.Pdf.BackgroundArtifact", + "Aspose.Pdf.BackgroundArtifact.SetImage", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "batch-watermark-dynamic-opacity": { - "title": "Batch Add WatermarkArtifact with Dynamic Opacity to PDFs", - "filename": "batch-watermark-dynamic-opacity.cs", - "description": "Processes all PDF files in a folder, adds a centered watermark artifact whose opacity is calculated from the document's page count, and saves the watermarked PDFs to an output folder.", + "replace-highlight-annotation-color": { + "title": "Replace Highlight Annotation Color in PDF", + "filename": "replace-highlight-annotation-color.cs", + "description": "The example loads a PDF, iterates through its pages and annotations, finds highlight annotations, changes their color to a custom light‑orange shade, and saves the modified document.", "tags": [ - "watermark", + "highlight", + "annotation", + "color", "pdf", - "batch", - "opacity", - "annotations" + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.WatermarkArtifact", - "Aspose.Pdf.Page.Artifacts.Add", + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.HighlightAnnotation", + "Aspose.Pdf.Color.FromRgb", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "create-3d-annotation-metallic-lighting": { - "title": "Create 3D Annotation with Metallic Lighting", - "filename": "create-3d-annotation-metallic-lighting.cs", - "description": "Demonstrates embedding a 3‑D model into a PDF and configuring lighting, render mode, and material properties to simulate realistic metal surfaces.", + "replace-pdf-page-background-images": { + "title": "Replace PDF Page Background Images", + "filename": "replace-pdf-page-background-images.cs", + "description": "Shows how to iterate over PDF pages, locate BackgroundArtifact objects, and replace their images with a new file while keeping the original positions unchanged.", "tags": [ - "3d", - "annotation", - "lighting", - "material", - "aspose-pdf" + "pdf", + "background", + "artifact", + "image", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Annotations.PDF3DContent", - "Aspose.Pdf.Annotations.PDF3DArtwork", - "Aspose.Pdf.Annotations.PDF3DAnnotation", - "Aspose.Pdf.Annotations.PDF3DLightingScheme", - "Aspose.Pdf.Annotations.PDF3DRenderMode" + "Aspose.Pdf.Page", + "Aspose.Pdf.Artifact", + "Aspose.Pdf.BackgroundArtifact", + "Aspose.Pdf.BackgroundArtifact.SetImage", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "add-sound-annotation-chime": { - "title": "Add Sound Annotation (Chime) to PDF Page", - "filename": "add-sound-annotation-chime.cs", - "description": "Shows how to insert a SoundAnnotation that plays a chime when a specific page becomes visible in a PDF document.", + "replace-watermark-annotations-with-logo": { + "title": "Batch Replace Watermark Annotations with a Logo Image", + "filename": "replace-watermark-annotations-with-logo.cs", + "description": "Shows how to iterate through all PDF pages, locate existing WatermarkAnnotation objects, keep their opacity and rectangle, delete them, and add a new StampAnnotation that displays a corporate logo image.", "tags": [ - "sound", + "watermark", "annotation", + "image", "pdf", - "aspose", - "chime" + "replace" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.SoundAnnotation", - "Aspose.Pdf.Annotations.SoundIcon", - "Aspose.Pdf.Page.Annotations.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Annotations.WatermarkAnnotation", + "Aspose.Pdf.Annotations.StampAnnotation", + "Aspose.Pdf.Page.Annotations", + "Aspose.Pdf.Annotations.AnnotationCollection.Delete", + "Aspose.Pdf.Annotations.AnnotationCollection.Add" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "clone-richmedia-annotations-summary-page": { - "title": "Clone RichMediaAnnotations to a Summary Page", - "filename": "clone-richmedia-annotations-summary-page.cs", - "description": "Loads a PDF, gathers all RichMediaAnnotation objects, adds a new summary page, and clones each annotation onto that page while preserving key properties.", + "retrieve-annotation-bounding-rectangle": { + "title": "Retrieve Annotation Bounding Rectangle from PDF", + "filename": "retrieve-annotation-bounding-rectangle.cs", + "description": "Loads a PDF, validates a page and annotation index, obtains the annotation's bounding rectangle (considering page rotation), and logs its coordinates and size.", "tags": [ - "richmedia", "annotation", - "summary-page", - "clone", - "pdf" + "rectangle", + "pdf", + "aspose", + "bounding-box" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.RichMediaAnnotation", "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.Annotation.GetRectangle" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "create-pdf-button-export-annotations-json": { - "title": "Create PDF Button to Export Annotations as JSON", - "filename": "create-pdf-button-export-annotations-json.cs", - "description": "The example loads an existing PDF, adds a push‑button form field, and assigns a JavaScript action that gathers all annotations, converts them to a JSON string, and displays the result. The modified PDF is then saved with the new export button.", + "retrieve-annotation-ids-page-numbers": { + "title": "Retrieve Annotation IDs and Their Page Numbers", + "filename": "retrieve-annotation-ids-page-numbers.cs", + "description": "The example loads a PDF, iterates through each page's annotations, extracts each annotation's identifier (Name or FullName) and its page number, and stores them in a dictionary for fast lookup.", "tags": [ - "button", - "javascript", "annotations", - "json", - "pdf-form" + "pdf", + "dictionary", + "lookup", + "Aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.ButtonField", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Form", - "Aspose.Pdf.Forms.FieldActions" + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Page.Annotations", + "Aspose.Pdf.Annotation.PageIndex" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "add-diagonal-watermark-annotation": { - "title": "Add Diagonal Watermark Annotation to PDF", - "filename": "add-diagonal-watermark-annotation.cs", - "description": "Demonstrates how to place a WatermarkAnnotation diagonally across a PDF page using a rectangle geometry and simulate a gradient effect with semi‑transparent color.", + "retrieve-first-richmediaannotation-page-five": { + "title": "Retrieve First RichMediaAnnotation from Page Five", + "filename": "retrieve-first-richmediaannotation-page-five.cs", + "description": "Loads a PDF, accesses page 5, uses a LINQ query to find the first RichMediaAnnotation on that page, and prints its key properties.", "tags": [ - "watermark", + "richmedia", "annotation", - "gradient", + "linq", "pdf", - "Aspose.Pdf" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.WatermarkAnnotation", - "Aspose.Pdf.Color.FromRgb", - "Aspose.Pdf.Page.Annotations.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Annotations.RichMediaAnnotation", + "Aspose.Pdf.Annotations.AnnotationCollection", + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "extract-embedded-rich-media": { - "title": "Extract Embedded Rich Media from PDF Annotations", - "filename": "extract-embedded-rich-media.cs", - "description": "Shows how to walk through PDF pages, locate RichMediaAnnotation objects, and save their embedded video/audio or binary content into a page‑based folder structure.", + "reuse-ximage-across-multiple-pdf-pages": { + "title": "Reuse Ximage Across Multiple Pdf Pages", + "filename": "reuse-ximage-across-multiple-pdf-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "reuse-ximage-across-pdf-pages": { + "title": "Reuse XImage Across PDF Pages", + "filename": "reuse-ximage-across-pdf-pages.cs", + "description": "Shows how to add an image once to a PDF's XImageCollection and reuse it on every page using Aspose.Pdf.", "tags": [ - "richmedia", - "annotation", - "extraction", + "ximage", + "image-reuse", "pdf", - "aspose" + "annotations", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.RichMediaAnnotation", - "Aspose.Pdf.Annotations.RichMediaAnnotation.Content" + "Aspose.Pdf.XImageCollection.Add", + "Aspose.Pdf.Page.AddImage", + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "create-link-annotation-remote-pdf-page": { - "title": "Create Link Annotation to Open Remote PDF Page", - "filename": "create-link-annotation-remote-pdf-page.cs", - "description": "Shows how to add a link annotation that opens a specific page of an external PDF document using Aspose.Pdf.", + "set-arrow-line-ending-on-pdf-annotation": { + "title": "Set Arrow Line Ending On Pdf Annotation", + "filename": "set-arrow-line-ending-on-pdf-annotation.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-arrow-line-endings-on-pdf-annotation": { + "title": "Set Arrow Line Endings on PDF Annotation", + "filename": "set-arrow-line-endings-on-pdf-annotation.cs", + "description": "Demonstrates how to add a line annotation to a PDF page and configure its start and end line ending styles to open and closed arrows using Aspose.Pdf.", "tags": [ - "link-annotation", - "remote-pdf", - "goto-action", - "aspose-pdf", - "csharp" + "pdf", + "annotation", + "line", + "arrow", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.LineAnnotation", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.LinkAnnotation", - "Aspose.Pdf.Annotations.GoToRemoteAction" + "Aspose.Pdf.Point", + "Aspose.Pdf.Color", + "Aspose.Pdf.Annotations.LineEnding" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "add-animated-gif-screen-annotation": { - "title": "Add Animated GIF Screen Annotation to PDF Page", - "filename": "add-animated-gif-screen-annotation.cs", - "description": "Demonstrates how to place a ScreenAnnotation that shows an animated GIF, looping continuously, on the third page of a PDF using Aspose.Pdf.", + "set-author-strikethrough-annotation": { + "title": "Set Author Strikethrough Annotation", + "filename": "set-author-strikethrough-annotation.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-callout-leader-line-length": { + "title": "Set Callout Leader Line Length for Free‑Text Annotation", + "filename": "set-callout-leader-line-length.cs", + "description": "Demonstrates how to create a free‑text annotation in a PDF and configure its callout leader line to be exactly 20 points long using Aspose.Pdf.", "tags": [ - "screen-annotation", - "animated-gif", - "pdf", - "aspose-pdf", - "page-3" + "free-text", + "annotation", + "callout", + "leader-line", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.FreeTextAnnotation", + "Aspose.Pdf.DefaultAppearance", + "Aspose.Pdf.Point", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.ScreenAnnotation", - "Aspose.Pdf.Page.Annotations.Add", + "Aspose.Pdf.Annotations.Collection.Add", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "align-watermark-annotations-to-page-margins": { - "title": "Align Watermark Annotations to Page Margins", - "filename": "align-watermark-annotations-to-page-margins.cs", - "description": "Shows how to adjust the rectangle of every WatermarkAnnotation in a PDF so that the watermarks line up uniformly with specified page margins.", + "set-dashed-border-for-button-annotations": { + "title": "Set Dashed Border for Button Annotations", + "filename": "set-dashed-border-for-button-annotations.cs", + "description": "Loads a PDF, finds all button field annotations, and applies a dashed 2‑point border to each before saving the document.", "tags": [ - "watermark", + "button", + "border", "annotation", "pdf", - "margin", - "alignment" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.WatermarkAnnotation", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.PageInfo" + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Forms.ButtonField", + "Aspose.Pdf.Annotations.Border", + "Aspose.Pdf.Annotations.BorderStyle", + "Aspose.Pdf.Annotations.Dash" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "toggle-rich-media-annotation-visibility": { - "title": "Toggle Rich Media Annotation Visibility with a Button", - "filename": "toggle-rich-media-annotation-visibility.cs", - "description": "Demonstrates how to add a RichMediaAnnotation to a PDF and use a push button with JavaScript to toggle its visibility at runtime.", + "set-figure-annotation-border-color-dark-gray": { + "title": "Set Figure Annotation Border Color to Dark Gray", + "filename": "set-figure-annotation-border-color-dark-gray.cs", + "description": "Loads a PDF, iterates through all pages and annotations, and changes the border color of every figure annotation (e.g., square, circle, polygon) to dark gray before saving the document.", "tags": [ - "richmedia", - "button", - "javascript", - "annotation", - "toggle" + "pdf", + "annotations", + "border-color", + "figure-annotation", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.RichMediaAnnotation", - "Aspose.Pdf.Forms.ButtonField", - "Aspose.Pdf.Forms.JavascriptAction", - "Aspose.Pdf.Annotations.Border", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.CommonFigureAnnotation", + "Aspose.Pdf.Annotations.Annotation.Characteristics", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "add-3d-annotation-front-view": { - "title": "Add 3D Annotation with Front View to PDF", - "filename": "add-3d-annotation-front-view.cs", - "description": "Shows how to embed a U3D/PRC 3‑D model into a PDF, create a 3‑D annotation, define a front‑facing view, and save the updated document.", + "set-figure-annotation-border-width": { + "title": "Set Figure Annotation Border Width", + "filename": "set-figure-annotation-border-width.cs", + "description": "Shows how to add a square annotation to a PDF page and set its border thickness to 2 points using Aspose.Pdf.", "tags": [ - "3d", "annotation", + "border", "pdf", - "aspose", - "view" + "Aspose.Pdf", + "square" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Annotations.PDF3DContent", - "Aspose.Pdf.Annotations.PDF3DArtwork", - "Aspose.Pdf.Annotations.PDF3DAnnotation", - "Aspose.Pdf.Annotations.PDF3DView", - "Aspose.Pdf.Annotations.Matrix3D", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.SquareAnnotation", + "Aspose.Pdf.Annotations.Border" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "batch-replace-watermark-annotations": { - "title": "Batch Replace Watermark Annotations with Current Date", - "filename": "batch-replace-watermark-annotations.cs", - "description": "Shows how to load a PDF, iterate through all pages and annotations, identify WatermarkAnnotation objects, and replace their text with a string that includes the current date.", + "set-highlight-annotation-opacity": { + "title": "Set Highlight Annotation Opacity to 60%", + "filename": "set-highlight-annotation-opacity.cs", + "description": "Loads a PDF, iterates through all pages and their annotations, sets the opacity of each highlight annotation to 0.6, and saves the modified document.", "tags": [ - "watermark", + "highlight", "annotation", + "opacity", "pdf", - "batch", - "date" + "Aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.WatermarkAnnotation", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Color", - "Aspose.Pdf.Annotations.WatermarkAnnotation.SetTextAndState" + "Aspose.Pdf.Annotations.HighlightAnnotation", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "add-word-count-link-annotation": { - "title": "Create PDF Link Annotation that Shows Word Count", - "filename": "add-word-count-link-annotation.cs", - "description": "Demonstrates how to add a clickable link annotation to a PDF that runs JavaScript to calculate the total word count of the document and displays it in an alert.", + "set-line-ending-styles-pdf": { + "title": "Set Line Ending Styles for a PDF Line Annotation", + "filename": "set-line-ending-styles-pdf.cs", + "description": "Demonstrates how to create a line annotation in a PDF and configure its start and end line ending styles (circle and open arrow) using Aspose.Pdf.", "tags": [ - "link-annotation", - "javascript", - "word-count", + "line-annotation", "pdf", - "aspose-pdf" + "aspose", + "line-ending", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.LinkAnnotation", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Annotations.Border", - "Aspose.Pdf.Color" + "Aspose.Pdf.Annotations.LineAnnotation", + "Aspose.Pdf.Annotations.LineEnding", + "Aspose.Pdf.Color", + "Aspose.Pdf.Drawing.Border" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "add-automatic-background-music-to-pdf": { - "title": "Add Automatic Background Music to PDF", - "filename": "add-automatic-background-music-to-pdf.cs", - "description": "Demonstrates how to embed an MP3 audio file as a RichMediaAnnotation that automatically plays when the page becomes visible.", + "set-link-annotation-border-red-width-3": { + "title": "Set Red Border and Width for Link Annotations", + "filename": "set-link-annotation-border-red-width-3.cs", + "description": "Loads a PDF, iterates through all pages and link annotations, changes each link's border color to red and line width to three points, then saves the modified document.", "tags": [ - "richmedia", - "audio", - "annotation", - "background-music", - "aspose.pdf" + "link-annotation", + "border-color", + "line-width", + "pdf", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.RichMediaAnnotation", - "Aspose.Pdf.Annotations.RichMediaAnnotation.ActivationEvent", - "Aspose.Pdf.Annotations.RichMediaAnnotation.ContentType", - "Aspose.Pdf.Annotations.RichMediaAnnotation.SetContent", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.LinkAnnotation", + "Aspose.Pdf.Annotations.Border", + "Aspose.Pdf.Color" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "create-pdf-gradient-background-artifact": { - "title": "Create PDF with Gradient Background Artifact", - "filename": "create-pdf-gradient-background-artifact.cs", - "description": "Shows how to add a BackgroundArtifact to a PDF page and outlines the approach for using a form (XForm) to apply a gradient fill instead of a solid color.", + "set-underline-annotation-opacity": { + "title": "Set Underline Annotation Opacity in PDF", + "filename": "set-underline-annotation-opacity.cs", + "description": "Shows how to load a PDF, find underline annotations on a specific page, and change their opacity to 50% using Aspose.Pdf.", "tags": [ - "background", - "artifact", - "gradient", + "underline", + "annotation", + "opacity", "pdf", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Drawing.BackgroundArtifact", - "Aspose.Pdf.Drawing.Color", - "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.GraphInfo", + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.UnderlineAnnotation", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "add-dynamic-page-number-watermark": { - "title": "Add Dynamic Page Number Watermark to PDF", - "filename": "add-dynamic-page-number-watermark.cs", - "description": "Shows how to create a WatermarkAnnotation that displays the current page number on each page of a PDF and saves the result using Aspose.Pdf.", + "toggle-rich-media-annotation-visibility": { + "title": "Toggle Rich Media Annotation Visibility with a Button", + "filename": "toggle-rich-media-annotation-visibility.cs", + "description": "Demonstrates how to add a RichMediaAnnotation to a PDF and use a push button with JavaScript to toggle its visibility at runtime.", "tags": [ - "watermark", + "richmedia", + "button", + "javascript", "annotation", - "page-number", - "pdf", - "csharp" + "toggle" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.WatermarkAnnotation", - "Aspose.Pdf.Annotations.WatermarkAnnotation.SetTextAndState", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Text.FontRepository.FindFont", + "Aspose.Pdf.Annotations.RichMediaAnnotation", + "Aspose.Pdf.Forms.ButtonField", + "Aspose.Pdf.Forms.JavascriptAction", + "Aspose.Pdf.Annotations.Border", "Aspose.Pdf.Rectangle" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "add-rich-media-annotation-pdf-portfolio": { - "title": "Add Rich Media Annotation with PDF Portfolio", - "filename": "add-rich-media-annotation-pdf-portfolio.cs", - "description": "Demonstrates how to embed a PDF portfolio into a RichMedia annotation and set the initial view to the first embedded file using Aspose.Pdf.", + "toggle-rich-media-visibility-button": { + "title": "Toggle Rich Media Visibility Button", + "filename": "toggle-rich-media-visibility-button.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "toggle-watermark-visibility-button": { + "title": "Toggle Watermark Visibility with a Button Annotation", + "filename": "toggle-watermark-visibility-button.cs", + "description": "Demonstrates how to add a WatermarkArtifact to a PDF page and create a push‑button that uses JavaScript to toggle the watermark's visibility at runtime.", "tags": [ - "richmedia", + "watermark", + "button", + "javascript", "annotation", - "pdf-portfolio", - "embed", - "aspose-pdf" + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.RichMediaAnnotation", - "RichMediaAnnotation.SetContent", - "RichMediaAnnotation.ActiveState", - "Page.Annotations.Add", - "Document.Save" + "Aspose.Pdf.Annotations.WatermarkArtifact", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Forms.ButtonField", + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "change-button-annotation-color-to-blue": { - "title": "Change Button Annotation Color to Blue", - "filename": "change-button-annotation-color-to-blue.cs", - "description": "Loads a PDF, iterates through all annotations, sets the color of button field annotations to blue, and saves the modified document.", + "update-watermark-artifact-opacity": { + "title": "Update Watermark Artifact Opacity in PDF", + "filename": "update-watermark-artifact-opacity.cs", + "description": "Shows how to retrieve all watermark artifacts on each PDF page and set their opacity to 50% using Aspose.Pdf.", "tags": [ - "annotations", - "button", - "color", + "watermark", + "artifact", + "opacity", "pdf", - "Aspose.Pdf" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Forms.ButtonField", - "Aspose.Pdf.Color" + "Aspose.Pdf.Artifact", + "Aspose.Pdf.WatermarkArtifact", + "Aspose.Pdf.WatermarkArtifact.BeginUpdates", + "Aspose.Pdf.WatermarkArtifact.SaveUpdates" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:30:08Z", "status": "verified" }, - "batch-add-video-screen-annotations__v2": { - "title": "Batch Add Video Screen Annotations to PDF Pages", - "filename": "batch-add-video-screen-annotations__v2.cs", - "description": "Demonstrates how to iterate through all pages of a PDF and add a ScreenAnnotation that plays a video, adjusting the annotation rectangle to keep the video’s aspect ratio.", + "validate-xfdf-annotation-count-per-page": { + "title": "Validate XFDF Annotation Count per PDF Page", + "filename": "validate-xfdf-annotation-count-per-page.cs", + "description": "Loads a PDF, imports annotations from an XFDF file, and verifies that each page contains the expected number of annotations.", "tags": [ - "screen-annotation", - "video", + "xfdf", + "annotations", + "validation", "pdf", - "batch", - "aspect-ratio" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.ScreenAnnotation", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Annotations", + "Aspose.Pdf.Document.ImportAnnotationsFromXfdf", + "Aspose.Pdf.Page.Annotations" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:30:08Z", diff --git a/working-with-attachments/AGENTS.md b/working-with-attachments/AGENTS.md index a826b508a..ea8520a9c 100644 --- a/working-with-attachments/AGENTS.md +++ b/working-with-attachments/AGENTS.md @@ -8,7 +8,7 @@ parent: ../agents.md # AGENTS - working-with-attachments -> **Working with attachments** in PDF using C# / .NET -- **49** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. +> **Working with attachments** in PDF using C# / .NET -- **69** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. ## Persona @@ -23,27 +23,27 @@ See the root [agents.md](../agents.md) for repository-wide conventions and bound ## Required Namespaces -- `using Aspose.Pdf;` (48/49 files) ← category-specific -- `using Aspose.Pdf.Annotations;` (16/49 files) -- `using Aspose.Pdf.Drawing;` (2/49 files) -- `using Aspose.Pdf.AI;` (1/49 files) -- `using Aspose.Pdf.Devices;` (1/49 files) -- `using Aspose.Pdf.Facades;` (1/49 files) -- `using Aspose.Pdf.Optimization;` (1/49 files) -- `using Aspose.Pdf.Text;` (1/49 files) -- `using System;` (49/49 files) -- `using System.IO;` (48/49 files) -- `using System.Collections.Generic;` (6/49 files) -- `using NUnit.Framework;` (2/49 files) -- `using System.Threading.Tasks;` (2/49 files) -- `using System.Diagnostics;` (1/49 files) -- `using System.IO.Compression;` (1/49 files) -- `using System.Net.Http;` (1/49 files) -- `using System.Security.Cryptography;` (1/49 files) -- `using System.Text;` (1/49 files) -- `using System.Text.Json;` (1/49 files) -- `using System.Threading;` (1/49 files) -- `using System.Xml.Serialization;` (1/49 files) +- `using Aspose.Pdf;` (48/69 files) ← category-specific +- `using Aspose.Pdf.Annotations;` (16/69 files) +- `using Aspose.Pdf.Drawing;` (2/69 files) +- `using Aspose.Pdf.AI;` (1/69 files) +- `using Aspose.Pdf.Devices;` (1/69 files) +- `using Aspose.Pdf.Facades;` (1/69 files) +- `using Aspose.Pdf.Optimization;` (1/69 files) +- `using Aspose.Pdf.Text;` (1/69 files) +- `using System;` (49/69 files) +- `using System.IO;` (48/69 files) +- `using System.Collections.Generic;` (6/69 files) +- `using NUnit.Framework;` (2/69 files) +- `using System.Threading.Tasks;` (2/69 files) +- `using System.Diagnostics;` (1/69 files) +- `using System.IO.Compression;` (1/69 files) +- `using System.Net.Http;` (1/69 files) +- `using System.Security.Cryptography;` (1/69 files) +- `using System.Text;` (1/69 files) +- `using System.Text.Json;` (1/69 files) +- `using System.Threading;` (1/69 files) +- `using System.Xml.Serialization;` (1/69 files) ## Common Code Pattern @@ -62,39 +62,39 @@ using (Document doc = new Document("input.pdf")) | File | Title | Key APIs | Description | |------|-------|----------|-------------| | [add-attachment-to-password-protected-pdf](./add-attachment-to-password-protected-pdf.cs) | Add Attachment to Password-Protected PDF | `Document`, `FileSpecification`, `EmbeddedFiles` | Shows how to open an encrypted PDF with a user password, embed a file as an attachment, and save ... | +| [add-attachment-to-pdf-and-save](./add-attachment-to-pdf-and-save.cs) | Add attachment to pdf and save | | Add attachment to pdf and save | +| [add-custom-descriptions-to-pdf-attachments](./add-custom-descriptions-to-pdf-attachments.cs) | Add custom descriptions to pdf attachments | | Add custom descriptions to pdf attachments | +| [add-extract-remove-pdf-attachments](./add-extract-remove-pdf-attachments.cs) | Add extract remove pdf attachments | | Add extract remove pdf attachments | | [add-file-attachment-to-pdf-with-error-handling](./add-file-attachment-to-pdf-with-error-handling.cs) | Add File Attachment to PDF with Error Handling | `Document`, `FileSpecification`, `FileAttachmentAnnotation` | Demonstrates how to attach a file to a PDF page using Aspose.Pdf and includes robust error handli... | | [add-file-attachment-to-pdf](./add-file-attachment-to-pdf.cs) | Add File Attachment to PDF | `Document`, `Page`, `Rectangle` | Demonstrates how to load an existing PDF, create a FileSpecification for a file, attach it to a p... | | [add-file-attachment-with-retry](./add-file-attachment-with-retry.cs) | Add File Attachment to PDF with Retry Logic | `Document`, `Page`, `FileSpecification` | Shows how to attach a file to the first page of a PDF located on a network share using Aspose.Pdf... | | [add-image-watermark-to-pdf-attachments](./add-image-watermark-to-pdf-attachments.cs) | Add Image Watermark to PDF Attachments | `Document`, `FileSpecification`, `ImageStamp` | Shows how to iterate through embedded PDF attachments, apply an image watermark to every page of ... | +| [add-image-watermark-to-pdf-pages](./add-image-watermark-to-pdf-pages.cs) | Add image watermark to pdf pages | | Add image watermark to pdf pages | | [add-in-memory-attachment-to-pdf](./add-in-memory-attachment-to-pdf.cs) | Add In-Memory Attachment to PDF | `Document`, `FileSpecification`, `Save` | Demonstrates how to embed a file stored in a MemoryStream as an attachment in a PDF using Aspose.... | | [add-multiple-attachments-to-pdf](./add-multiple-attachments-to-pdf.cs) | Add Multiple Attachments to a PDF | `Document`, `FileSpecification`, `Add` | Shows how to embed several files into an existing PDF by iterating a list of file paths and savin... | | [add-multiple-files-to-pdf-portfolio](./add-multiple-files-to-pdf-portfolio.cs) | Add Multiple Files to a PDF Portfolio | `Document`, `EmbeddedFileCollection`, `FileSpecification` | Demonstrates how to embed several files of different formats into a single PDF portfolio using As... | | [add-nested-pdf-to-pdf-portfolio](./add-nested-pdf-to-pdf-portfolio.cs) | Add Nested PDF to Existing PDF Portfolio | `Document`, `FileSpecification`, `EmbeddedFilesCollection` | Demonstrates how to embed a PDF file as a nested item inside an existing PDF portfolio using Aspo... | +| [add-nested-pdf-to-portfolio](./add-nested-pdf-to-portfolio.cs) | Add nested pdf to portfolio | | Add nested pdf to portfolio | | [add-unicode-file-attachment-to-pdf](./add-unicode-file-attachment-to-pdf.cs) | Add Unicode File Attachment to PDF | `Document`, `Page`, `Rectangle` | Shows how to embed a file with a Unicode (e.g., Chinese) filename into a PDF as a file‑attachment... | | [add-word-document-to-pdf-portfolio](./add-word-document-to-pdf-portfolio.cs) | Add Word Document to PDF Portfolio | `Document`, `Collection`, `FileSpecification` | Demonstrates how to create a PDF portfolio and embed a Word (.docx) file using Aspose.Pdf's Colle... | | [apply-custom-visual-template-to-pdf-portfolio](./apply-custom-visual-template-to-pdf-portfolio.cs) | Apply Custom Visual Template to PDF Portfolio | `Document`, `Page`, `Graph` | Shows how to load a PDF Portfolio and apply a visual template to each page by adding a semi‑trans... | +| [apply-visual-template-to-pdf-portfolio](./apply-visual-template-to-pdf-portfolio.cs) | Apply visual template to pdf portfolio | | Apply visual template to pdf portfolio | +| [attach-binary-file-to-pdf](./attach-binary-file-to-pdf.cs) | Attach binary file to pdf | | Attach binary file to pdf | | [attach-file-from-byte-array-to-pdf](./attach-file-from-byte-array-to-pdf.cs) | Attach a File from a Byte Array to a PDF | `Document`, `Page`, `FileSpecification` | Demonstrates how to create a FileSpecification from a byte array using a MemoryStream and add it ... | | [attach-remote-file-to-pdf](./attach-remote-file-to-pdf.cs) | Attach Remote File to PDF | `Document`, `Page`, `Rectangle` | Downloads a file from a remote URL into memory and adds it as a file attachment annotation to an ... | +| [attachment-removal-integration-tests](./attachment-removal-integration-tests.cs) | Attachment removal integration tests | | Attachment removal integration tests | | [batch-add-attachment-to-pdfs](./batch-add-attachment-to-pdfs.cs) | Batch Add Attachment to PDFs | `Document`, `FileSpecification`, `EmbeddedFilesCollection` | Shows how to iterate through a folder of PDF files, attach the same external file to each documen... | | [batch-extract-pdf-attachments-to-zip](./batch-extract-pdf-attachments-to-zip.cs) | Batch Extract PDF Attachments to a ZIP Archive | `Document`, `EmbeddedFilesCollection`, `EmbeddedFile` | Shows how to iterate over multiple PDF files, retrieve their embedded attachments with Aspose.Pdf... | | [compress-pdf-portfolio-with-optimization](./compress-pdf-portfolio-with-optimization.cs) | Compress PDF Portfolio and Save with Optimization | `Document`, `OptimizationOptions`, `OptimizeResources` | Shows how to load an existing PDF Portfolio, enable object compression using OptimizationOptions,... | +| [convert-pdf-to-portfolio-with-embedded-files](./convert-pdf-to-portfolio-with-embedded-files.cs) | Convert pdf to portfolio with embedded files | | Convert pdf to portfolio with embedded files | | [create-pdf-portfolio-embed-files](./create-pdf-portfolio-embed-files.cs) | Create PDF Portfolio by Embedding Files | `Document`, `FileSpecification`, `Pages` | Demonstrates how to convert an existing PDF into a PDF Portfolio by adding multiple embedded file... | | [create-pdf-portfolio-with-attachments](./create-pdf-portfolio-with-attachments.cs) | Create PDF Portfolio with Attachments | `Document`, `Collection`, `FileSpecification` | Demonstrates how to create a PDF portfolio document and embed files as attachments using Aspose.P... | +| [create-pdf-portfolio-with-multiple-embedded-files](./create-pdf-portfolio-with-multiple-embedded-files.cs) | Create pdf portfolio with multiple embedded files | | Create pdf portfolio with multiple embedded files | | [delete-outline-items-by-text](./delete-outline-items-by-text.cs) | Delete PDF Outline Items by Matching Text | `Document`, `OutlineCollection`, `OutlineItemCollection` | Demonstrates loading a PDF, searching its outline (bookmark) entries for a specific text, and rem... | -| [delete-pdf-attachment-by-filename](./delete-pdf-attachment-by-filename.cs) | Delete PDF Attachment by Filename using Aspose.Pdf | `Document`, `EmbeddedFiles`, `FindByName` | Demonstrates how to locate and remove an embedded file from a PDF by matching its filename with A... | -| [embed-attachment-metadata-into-pdf](./embed-attachment-metadata-into-pdf.cs) | Embed Attachment Metadata into PDF Information Dictionary | `Document`, `FileSpecification`, `PdfFormatConversionOptions` | Loads a PDF, adds an embedded file, stores custom attachment metadata in the document information... | -| [embed-hidden-xml-metadata-pdf-attachment](./embed-hidden-xml-metadata-pdf-attachment.cs) | Embed Hidden XML Metadata as PDF Attachment | `Document`, `Page`, `FileAttachmentAnnotation` | Serializes a custom metadata object to XML, embeds it in a PDF as a hidden file attachment annota... | -| [embed-image-into-pdf-portfolio](./embed-image-into-pdf-portfolio.cs) | Embed Image into PDF Portfolio with Display Name | `Document`, `FileSpecification`, `Add` | Demonstrates how to embed an image file into a PDF portfolio using Aspose.Pdf and set a custom di... | -| [extract-attachments-from-encrypted-pdf](./extract-attachments-from-encrypted-pdf.cs) | Extract Attachments from Encrypted PDF | `Document`, `Decrypt`, `EmbeddedFiles` | Shows how to open a password‑protected PDF, decrypt it, and extract all embedded file attachments... | -| [extract-embedded-file-from-pdf-portfolio](./extract-embedded-file-from-pdf-portfolio.cs) | Extract Embedded File from PDF Portfolio by Index | `Document`, `EmbeddedFileCollection`, `FileSpecification` | Demonstrates how to load a PDF containing a portfolio, retrieve an embedded file by its 1‑based i... | -| [extract-embedded-files-from-pdf-portfolio](./extract-embedded-files-from-pdf-portfolio.cs) | Extract Embedded Files from PDF Portfolio | `Document`, `EmbeddedFiles`, `Save` | The example opens a PDF portfolio, iterates through its embedded files, and saves each file to a ... | -| [extract-pdf-attachment-metadata](./extract-pdf-attachment-metadata.cs) | Extract PDF Attachment Metadata to JSON | `Document`, `Page`, `Annotation` | Shows how to read file‑attachment annotations from a PDF, obtain each attachment's file name and ... | -| [extract-pdf-attachments-in-parallel](./extract-pdf-attachments-in-parallel.cs) | Extract PDF Attachments in Parallel | `Document`, `EmbeddedFiles`, `EmbeddedFile` | Shows how to process multiple PDF files concurrently and extract all embedded attachments using A... | -| [extract-pdf-attachments-sha256-hash](./extract-pdf-attachments-sha256-hash.cs) | Extract PDF Attachments and Compute SHA-256 Hashes | `Document`, `FileSpecification`, `EmbeddedFilesCollection` | Loads a PDF, enumerates its embedded file attachments, and calculates a SHA‑256 hash for each att... | -| ... | | | *and 19 more files* | +| ... | | | *and 39 more files* | ## Category Statistics -- Total examples: 49 +- Total examples: 69 ## Category-Specific Tips @@ -134,5 +134,5 @@ using (Document doc = new Document("input.pdf")) - Review code examples in this folder for working-with-attachments patterns -Updated: 2026-08-20 | Run: `20260820_001147_12d7b3` +Updated: 2026-09-10 | Run: `20260910_054408_87a7f4` diff --git a/working-with-attachments/README.md b/working-with-attachments/README.md new file mode 100644 index 000000000..c12cde39d --- /dev/null +++ b/working-with-attachments/README.md @@ -0,0 +1,88 @@ +# Working with attachments + +> **Working with attachments** in PDF using C# / .NET -- **69** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. + +- Category: `working-with-attachments` +- Examples: 69 +- NuGet: `Aspose.PDF 26.8.0` -- target `net10.0` + +## Examples + +- [`add-attachment-to-password-protected-pdf.cs`](./add-attachment-to-password-protected-pdf.cs) -- Add attachment to password protected pdf +- [`add-attachment-to-pdf-and-save.cs`](./add-attachment-to-pdf-and-save.cs) -- Add attachment to pdf and save +- [`add-custom-descriptions-to-pdf-attachments.cs`](./add-custom-descriptions-to-pdf-attachments.cs) -- Add custom descriptions to pdf attachments +- [`add-extract-remove-pdf-attachments.cs`](./add-extract-remove-pdf-attachments.cs) -- Add extract remove pdf attachments +- [`add-file-attachment-to-pdf-with-error-handling.cs`](./add-file-attachment-to-pdf-with-error-handling.cs) -- Add file attachment to pdf with error handling +- [`add-file-attachment-to-pdf.cs`](./add-file-attachment-to-pdf.cs) -- Add file attachment to pdf +- [`add-file-attachment-with-retry.cs`](./add-file-attachment-with-retry.cs) -- Add file attachment with retry +- [`add-image-watermark-to-pdf-attachments.cs`](./add-image-watermark-to-pdf-attachments.cs) -- Add image watermark to pdf attachments +- [`add-image-watermark-to-pdf-pages.cs`](./add-image-watermark-to-pdf-pages.cs) -- Add image watermark to pdf pages +- [`add-in-memory-attachment-to-pdf.cs`](./add-in-memory-attachment-to-pdf.cs) -- Add in memory attachment to pdf +- [`add-multiple-attachments-to-pdf.cs`](./add-multiple-attachments-to-pdf.cs) -- Add multiple attachments to pdf +- [`add-multiple-files-to-pdf-portfolio.cs`](./add-multiple-files-to-pdf-portfolio.cs) -- Add multiple files to pdf portfolio +- [`add-nested-pdf-to-pdf-portfolio.cs`](./add-nested-pdf-to-pdf-portfolio.cs) -- Add nested pdf to pdf portfolio +- [`add-nested-pdf-to-portfolio.cs`](./add-nested-pdf-to-portfolio.cs) -- Add nested pdf to portfolio +- [`add-unicode-file-attachment-to-pdf.cs`](./add-unicode-file-attachment-to-pdf.cs) -- Add unicode file attachment to pdf +- [`add-word-document-to-pdf-portfolio.cs`](./add-word-document-to-pdf-portfolio.cs) -- Add word document to pdf portfolio +- [`apply-custom-visual-template-to-pdf-portfolio.cs`](./apply-custom-visual-template-to-pdf-portfolio.cs) -- Apply custom visual template to pdf portfolio +- [`apply-visual-template-to-pdf-portfolio.cs`](./apply-visual-template-to-pdf-portfolio.cs) -- Apply visual template to pdf portfolio +- [`attach-binary-file-to-pdf.cs`](./attach-binary-file-to-pdf.cs) -- Attach binary file to pdf +- [`attach-file-from-byte-array-to-pdf.cs`](./attach-file-from-byte-array-to-pdf.cs) -- Attach file from byte array to pdf +- [`attach-remote-file-to-pdf.cs`](./attach-remote-file-to-pdf.cs) -- Attach remote file to pdf +- [`attachment-removal-integration-tests.cs`](./attachment-removal-integration-tests.cs) -- Attachment removal integration tests +- [`batch-add-attachment-to-pdfs.cs`](./batch-add-attachment-to-pdfs.cs) -- Batch add attachment to pdfs +- [`batch-extract-pdf-attachments-to-zip.cs`](./batch-extract-pdf-attachments-to-zip.cs) -- Batch extract pdf attachments to zip +- [`compress-pdf-portfolio-with-optimization.cs`](./compress-pdf-portfolio-with-optimization.cs) -- Compress pdf portfolio with optimization +- [`convert-pdf-to-portfolio-with-embedded-files.cs`](./convert-pdf-to-portfolio-with-embedded-files.cs) -- Convert pdf to portfolio with embedded files +- [`create-pdf-portfolio-embed-files.cs`](./create-pdf-portfolio-embed-files.cs) -- Create pdf portfolio embed files +- [`create-pdf-portfolio-with-attachments.cs`](./create-pdf-portfolio-with-attachments.cs) -- Create pdf portfolio with attachments +- [`create-pdf-portfolio-with-multiple-embedded-files.cs`](./create-pdf-portfolio-with-multiple-embedded-files.cs) -- Create pdf portfolio with multiple embedded files +- [`delete-outline-items-by-text.cs`](./delete-outline-items-by-text.cs) -- Delete outline items by text +- [`delete-pdf-attachment-by-filename.cs`](./delete-pdf-attachment-by-filename.cs) -- Delete pdf attachment by filename +- [`delete-pdf-outline-items-matching-text.cs`](./delete-pdf-outline-items-matching-text.cs) -- Delete pdf outline items matching text +- [`embed-attachment-metadata-in-pdf.cs`](./embed-attachment-metadata-in-pdf.cs) -- Embed attachment metadata in pdf +- [`embed-attachment-metadata-into-pdf.cs`](./embed-attachment-metadata-into-pdf.cs) -- Embed attachment metadata into pdf +- [`embed-hidden-xml-metadata-attachment.cs`](./embed-hidden-xml-metadata-attachment.cs) -- Embed hidden xml metadata attachment +- [`embed-hidden-xml-metadata-pdf-attachment.cs`](./embed-hidden-xml-metadata-pdf-attachment.cs) -- Embed hidden xml metadata pdf attachment +- [`embed-image-into-pdf-portfolio.cs`](./embed-image-into-pdf-portfolio.cs) -- Embed image into pdf portfolio +- [`extract-attachment-by-name-from-pdf.cs`](./extract-attachment-by-name-from-pdf.cs) -- Extract attachment by name from pdf +- [`extract-attachments-from-encrypted-pdf.cs`](./extract-attachments-from-encrypted-pdf.cs) -- Extract attachments from encrypted pdf +- [`extract-embedded-attachments-parallel.cs`](./extract-embedded-attachments-parallel.cs) -- Extract embedded attachments parallel +- [`extract-embedded-file-from-pdf-portfolio.cs`](./extract-embedded-file-from-pdf-portfolio.cs) -- Extract embedded file from pdf portfolio +- [`extract-embedded-files-from-pdf-portfolio.cs`](./extract-embedded-files-from-pdf-portfolio.cs) -- Extract embedded files from pdf portfolio +- [`extract-pdf-attachment-metadata.cs`](./extract-pdf-attachment-metadata.cs) -- Extract pdf attachment metadata +- [`extract-pdf-attachments-in-parallel.cs`](./extract-pdf-attachments-in-parallel.cs) -- Extract pdf attachments in parallel +- [`extract-pdf-attachments-sha256-hash.cs`](./extract-pdf-attachments-sha256-hash.cs) -- Extract pdf attachments sha256 hash +- [`extract-pdf-attachments-sha256.cs`](./extract-pdf-attachments-sha256.cs) -- Extract pdf attachments sha256 +- [`extract-pdf-attachments-to-subfolders.cs`](./extract-pdf-attachments-to-subfolders.cs) -- Extract pdf attachments to subfolders +- [`extract-specific-attachment-from-pdf.cs`](./extract-specific-attachment-from-pdf.cs) -- Extract specific attachment from pdf +- [`flatten-pdf-portfolio.cs`](./flatten-pdf-portfolio.cs) -- Flatten pdf portfolio +- [`generate-csv-report-of-pdf-attachments.cs`](./generate-csv-report-of-pdf-attachments.cs) -- Generate csv report of pdf attachments +- [`generate-csv-report-pdf-attachments.cs`](./generate-csv-report-pdf-attachments.cs) -- Generate csv report pdf attachments +- [`generate-pdf-page-thumbnails.cs`](./generate-pdf-page-thumbnails.cs) -- Generate pdf page thumbnails +- [`insert-excel-into-pdf-portfolio.cs`](./insert-excel-into-pdf-portfolio.cs) -- Insert excel into pdf portfolio +- [`list-pdf-attachment-names-sizes.cs`](./list-pdf-attachment-names-sizes.cs) -- List pdf attachment names sizes +- [`measure-pdf-attachment-performance.cs`](./measure-pdf-attachment-performance.cs) -- Measure pdf attachment performance +- [`merge-pdf-portfolios-preserve-metadata.cs`](./merge-pdf-portfolios-preserve-metadata.cs) -- Merge pdf portfolios preserve metadata +- [`read-pdf-metadata-attachment-count.cs`](./read-pdf-metadata-attachment-count.cs) -- Read pdf metadata attachment count +- [`remove-embedded-file-from-pdf-portfolio.cs`](./remove-embedded-file-from-pdf-portfolio.cs) -- Remove embedded file from pdf portfolio +- [`remove-pdf-attachment-by-index.cs`](./remove-pdf-attachment-by-index.cs) -- Remove pdf attachment by index +- [`reorder-pdf-outline-items.cs`](./reorder-pdf-outline-items.cs) -- Reorder pdf outline items +- [`set-custom-description-for-pdf-attachments.cs`](./set-custom-description-for-pdf-attachments.cs) -- Set custom description for pdf attachments +- [`test-attachment-removal-updates-collection-count.cs`](./test-attachment-removal-updates-collection-count.cs) -- Test attachment removal updates collection count +- [`update-attachment-description-pdf.cs`](./update-attachment-description-pdf.cs) -- Update attachment description pdf +- [`update-pdf-attachment-description.cs`](./update-pdf-attachment-description.cs) -- Update pdf attachment description +- [`validate-attachment-mime-type-and-add-to-pdf.cs`](./validate-attachment-mime-type-and-add-to-pdf.cs) -- Validate attachment mime type and add to pdf +- [`validate-attachment-mime-type.cs`](./validate-attachment-mime-type.cs) -- Validate attachment mime type +- [`validate-attachment-size-before-adding-to-pdf.cs`](./validate-attachment-size-before-adding-to-pdf.cs) -- Validate attachment size before adding to pdf +- [`verify-pdf-size-increase-after-adding-file-attachment.cs`](./verify-pdf-size-increase-after-adding-file-attachment.cs) -- Verify pdf size increase after adding file attachment +- [`verify-pdf-size-increases-with-attachment.cs`](./verify-pdf-size-increases-with-attachment.cs) -- Verify pdf size increases with attachment + +## See Also + +- [`AGENTS.md`](./AGENTS.md) -- category-specific anti-patterns, API surface, and conventions for AI coding agents +- [`../AGENTS.md`](../AGENTS.md) -- repository-wide agent guide +- [`../README.md`](../README.md) -- full category index and project overview +- [Aspose.PDF for .NET docs](https://docs.aspose.com/pdf/net/) + +> Each `.cs` file is a standalone, build-validated console example. Drop into a fresh `dotnet new console` project, add the `Aspose.PDF` NuGet (version above), and run. diff --git a/working-with-attachments/index.json b/working-with-attachments/index.json index 9d647e9d2..04d70d5fa 100644 --- a/working-with-attachments/index.json +++ b/working-with-attachments/index.json @@ -1,322 +1,405 @@ { "category": "working-with-attachments", "nuget_version": "26.8.0", - "last_updated": "2026-08-20T08:37:52Z", + "last_updated": "2026-09-10T12:45:08Z", "examples": { - "add-file-attachment-to-pdf": { - "title": "Add File Attachment to PDF", - "filename": "add-file-attachment-to-pdf.cs", - "description": "Demonstrates how to load an existing PDF, create a FileSpecification for a file, attach it to a page using a FileAttachmentAnnotation, and save the updated document.", + "add-attachment-to-password-protected-pdf": { + "title": "Add Attachment to Password-Protected PDF", + "filename": "add-attachment-to-password-protected-pdf.cs", + "description": "Shows how to open an encrypted PDF with a user password, embed a file as an attachment, and save the PDF while keeping its protection intact.", "tags": [ "pdf", "attachment", - "annotation", - "file-specification", - "aspose-pdf" + "encryption", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Annotations.FileAttachmentAnnotation", - "Aspose.Pdf.Color" + "Aspose.Pdf.EmbeddedFiles", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.InvalidPasswordException" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:37:52Z", "status": "verified" }, - "attach-file-from-byte-array-to-pdf": { - "title": "Attach a File from a Byte Array to a PDF", - "filename": "attach-file-from-byte-array-to-pdf.cs", - "description": "Demonstrates how to create a FileSpecification from a byte array using a MemoryStream and add it as a file attachment annotation to an existing PDF document.", + "add-attachment-to-pdf-and-save": { + "title": "Add Attachment To Pdf And Save", + "filename": "add-attachment-to-pdf-and-save.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-custom-descriptions-to-pdf-attachments": { + "title": "Add Custom Descriptions To Pdf Attachments", + "filename": "add-custom-descriptions-to-pdf-attachments.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-extract-remove-pdf-attachments": { + "title": "Add Extract Remove Pdf Attachments", + "filename": "add-extract-remove-pdf-attachments.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-file-attachment-to-pdf-with-error-handling": { + "title": "Add File Attachment to PDF with Error Handling", + "filename": "add-file-attachment-to-pdf-with-error-handling.cs", + "description": "Demonstrates how to attach a file to a PDF page using Aspose.Pdf and includes robust error handling for missing source or attachment files.", "tags": [ "attachment", - "file-specification", "pdf", - "memorystream", - "annotation" + "error-handling", + "annotation", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Annotations.FileAttachmentAnnotation", - "Aspose.Pdf.Annotations.FileIcon", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.FileAttachmentAnnotation", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Page", + "Aspose.Pdf.PdfException", + "Aspose.Pdf.Color", + "Aspose.Pdf.FileIcon" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:37:52Z", "status": "verified" }, - "add-multiple-attachments-to-pdf": { - "title": "Add Multiple Attachments to a PDF", - "filename": "add-multiple-attachments-to-pdf.cs", - "description": "Shows how to embed several files into an existing PDF by iterating a list of file paths and saving the updated document.", + "add-file-attachment-to-pdf": { + "title": "Add File Attachment to PDF", + "filename": "add-file-attachment-to-pdf.cs", + "description": "Demonstrates how to load an existing PDF, create a FileSpecification for a file, attach it to a page using a FileAttachmentAnnotation, and save the updated document.", "tags": [ - "attachments", "pdf", - "aspose", - "csharp", - "file-embedding" + "attachment", + "annotation", + "file-specification", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.EmbeddedFilesCollection.Add", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.EmbeddedFilesCollection" + "Aspose.Pdf.Annotations.FileAttachmentAnnotation", + "Aspose.Pdf.Color" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:37:52Z", "status": "verified" }, - "set-custom-description-for-pdf-attachments": { - "title": "Set Custom Description for PDF Attachment Annotations", - "filename": "set-custom-description-for-pdf-attachments.cs", - "description": "Shows how to load a PDF, iterate over its pages and annotations, find file attachment annotations, and assign custom subject and file description metadata before saving the document.", + "add-file-attachment-with-retry": { + "title": "Add File Attachment to PDF with Retry Logic", + "filename": "add-file-attachment-with-retry.cs", + "description": "Shows how to attach a file to the first page of a PDF located on a network share using Aspose.Pdf, with retry handling for transient I/O errors.", "tags": [ - "attachments", - "metadata", - "file-attachment", - "Aspose.Pdf", - "PDF" + "pdf", + "attachment", + "retry", + "network-share", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.FileAttachmentAnnotation", - "Aspose.Pdf.Annotations.FileSpecification", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.FileAttachmentAnnotation", + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:37:52Z", "status": "verified" }, - "list-pdf-attachment-names-sizes": { - "title": "List PDF Attachment Names and Sizes", - "filename": "list-pdf-attachment-names-sizes.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, iterate the EmbeddedFiles collection, and print each attachment's original name and its size in bytes.", + "add-image-watermark-to-pdf-attachments": { + "title": "Add Image Watermark to PDF Attachments", + "filename": "add-image-watermark-to-pdf-attachments.cs", + "description": "Shows how to iterate through embedded PDF attachments, apply an image watermark to every page of each attachment, and replace the original attachment with the watermarked version before saving the main document.", "tags": [ "attachments", + "watermark", + "image", "pdf", - "aspose", - "file-specification", - "enumeration" + "embedded-files" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.EmbeddedFiles", "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.FileSpecification.Name", - "Aspose.Pdf.FileSpecification.Contents" + "Aspose.Pdf.ImageStamp", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:37:52Z", "status": "verified" }, - "extract-specific-attachment-from-pdf": { - "title": "Extract Specific Attachment from PDF", - "filename": "extract-specific-attachment-from-pdf.cs", - "description": "Demonstrates how to locate an embedded file by name in a PDF document and save it to a specified directory using Aspose.Pdf.", + "add-image-watermark-to-pdf-pages": { + "title": "Add Image Watermark To Pdf Pages", + "filename": "add-image-watermark-to-pdf-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-in-memory-attachment-to-pdf": { + "title": "Add In-Memory Attachment to PDF", + "filename": "add-in-memory-attachment-to-pdf.cs", + "description": "Demonstrates how to embed a file stored in a MemoryStream as an attachment in a PDF using Aspose.Pdf, and save the result without creating intermediate files on disk.", "tags": [ "pdf", "attachment", - "extract", - "aspose-pdf", + "memorystream", + "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.EmbeddedFiles", - "Aspose.Pdf.EmbeddedFilesCollection.FindByName", "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.FileSpecification.Contents" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.EmbeddedFiles" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:37:52Z", "status": "verified" }, - "extract-pdf-attachments-to-subfolders": { - "title": "Extract PDF Attachments to Separate Subfolders", - "filename": "extract-pdf-attachments-to-subfolders.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, iterate over its embedded files and save each attachment into its own subfolder.", + "add-multiple-attachments-to-pdf": { + "title": "Add Multiple Attachments to a PDF", + "filename": "add-multiple-attachments-to-pdf.cs", + "description": "Shows how to embed several files into an existing PDF by iterating a list of file paths and saving the updated document.", "tags": [ - "pdf", "attachments", - "extraction", + "pdf", "aspose", - "csharp" + "csharp", + "file-embedding" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.EmbeddedFiles", - "Aspose.Pdf.EmbeddedFile", - "Aspose.Pdf.EmbeddedFile.Save", - "Aspose.Pdf.EmbeddedFile.Name", - "Aspose.Pdf.FileSpecification" + "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.EmbeddedFilesCollection.Add", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.EmbeddedFilesCollection" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:37:52Z", "status": "verified" }, - "remove-pdf-attachment-by-index": { - "title": "Remove PDF Attachment by Index", - "filename": "remove-pdf-attachment-by-index.cs", - "description": "Shows how to delete an embedded file from a PDF using its zero‑based index with Aspose.Pdf.", + "add-multiple-files-to-pdf-portfolio": { + "title": "Add Multiple Files to a PDF Portfolio", + "filename": "add-multiple-files-to-pdf-portfolio.cs", + "description": "Demonstrates how to embed several files of different formats into a single PDF portfolio using Aspose.Pdf in one loop.", "tags": [ "pdf", - "attachment", - "remove", - "embeddedfiles", - "aspose.pdf" + "portfolio", + "attachments", + "embedding", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.EmbeddedFiles", - "Aspose.Pdf.EmbeddedFile", - "Aspose.Pdf.EmbeddedFiles.Delete", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.EmbeddedFileCollection", + "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.EmbeddedFileCollection.Add" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:37:52Z", "status": "verified" }, - "delete-pdf-attachment-by-filename": { - "title": "Delete PDF Attachment by Filename using Aspose.Pdf", - "filename": "delete-pdf-attachment-by-filename.cs", - "description": "Demonstrates how to locate and remove an embedded file from a PDF by matching its filename with Aspose.Pdf.", + "add-nested-pdf-to-pdf-portfolio": { + "title": "Add Nested PDF to Existing PDF Portfolio", + "filename": "add-nested-pdf-to-pdf-portfolio.cs", + "description": "Demonstrates how to embed a PDF file as a nested item inside an existing PDF portfolio using Aspose.Pdf.", "tags": [ - "pdf", + "pdf-portfolio", "attachment", - "delete", - "aspose", + "embed", + "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.EmbeddedFiles", - "Aspose.Pdf.EmbeddedFiles.FindByName", - "Aspose.Pdf.EmbeddedFiles.Delete", + "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.EmbeddedFilesCollection", + "Aspose.Pdf.EmbeddedFilesCollection.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:37:52Z", "status": "verified" }, - "extract-pdf-attachment-metadata": { - "title": "Extract PDF Attachment Metadata to JSON", - "filename": "extract-pdf-attachment-metadata.cs", - "description": "Shows how to read file‑attachment annotations from a PDF, obtain each attachment's file name and creation date, and write the collected metadata to a JSON file.", + "add-nested-pdf-to-portfolio": { + "title": "Add Nested Pdf To Portfolio", + "filename": "add-nested-pdf-to-portfolio.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-unicode-file-attachment-to-pdf": { + "title": "Add Unicode File Attachment to PDF", + "filename": "add-unicode-file-attachment-to-pdf.cs", + "description": "Shows how to embed a file with a Unicode (e.g., Chinese) filename into a PDF as a file‑attachment annotation using Aspose.Pdf.", "tags": [ + "attachment", + "unicode", "pdf", - "attachments", - "metadata", - "json", - "aspose" + "annotation", + "filespecification" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.FileSpecification", "Aspose.Pdf.Annotations.FileAttachmentAnnotation", - "Aspose.Pdf.Annotations.FileSpecification" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Page.Annotations.Add" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:37:52Z", "status": "verified" }, - "update-pdf-attachment-description": { - "title": "Update PDF Attachment Description", - "filename": "update-pdf-attachment-description.cs", - "description": "Demonstrates how to locate a file attachment annotation in a PDF, modify its description, and save the updated document using Aspose.Pdf.", + "add-word-document-to-pdf-portfolio": { + "title": "Add Word Document to PDF Portfolio", + "filename": "add-word-document-to-pdf-portfolio.cs", + "description": "Demonstrates how to create a PDF portfolio and embed a Word (.docx) file using Aspose.Pdf's Collection and FileSpecification classes.", "tags": [ - "attachment", - "description", - "pdf", - "aspose", - "annotation" + "pdf-portfolio", + "attachments", + "aspose-pdf", + "file-specification", + "docx" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Annotations.FileAttachmentAnnotation", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Collection", "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.Collection.Add", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:37:52Z", "status": "verified" }, - "add-attachment-to-password-protected-pdf": { - "title": "Add Attachment to Password-Protected PDF", - "filename": "add-attachment-to-password-protected-pdf.cs", - "description": "Shows how to open an encrypted PDF with a user password, embed a file as an attachment, and save the PDF while keeping its protection intact.", + "apply-custom-visual-template-to-pdf-portfolio": { + "title": "Apply Custom Visual Template to PDF Portfolio", + "filename": "apply-custom-visual-template-to-pdf-portfolio.cs", + "description": "Shows how to load a PDF Portfolio and apply a visual template to each page by adding a semi‑transparent background rectangle and header text using Aspose.Pdf.Drawing and Aspose.Pdf.Text classes.", "tags": [ - "pdf", - "attachment", - "encryption", - "aspose-pdf", - "csharp" + "pdf-portfolio", + "visual-template", + "drawing", + "graph", + "textfragment" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.EmbeddedFiles", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.InvalidPasswordException" + "Aspose.Pdf.Page", + "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.FontRepository.FindFont", + "Aspose.Pdf.Color" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:37:52Z", "status": "verified" }, - "extract-attachments-from-encrypted-pdf": { - "title": "Extract Attachments from Encrypted PDF", - "filename": "extract-attachments-from-encrypted-pdf.cs", - "description": "Shows how to open a password‑protected PDF, decrypt it, and extract all embedded file attachments to a specified folder.", + "apply-visual-template-to-pdf-portfolio": { + "title": "Apply Visual Template To Pdf Portfolio", + "filename": "apply-visual-template-to-pdf-portfolio.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "attach-binary-file-to-pdf": { + "title": "Attach Binary File To Pdf", + "filename": "attach-binary-file-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "attach-file-from-byte-array-to-pdf": { + "title": "Attach a File from a Byte Array to a PDF", + "filename": "attach-file-from-byte-array-to-pdf.cs", + "description": "Demonstrates how to create a FileSpecification from a byte array using a MemoryStream and add it as a file attachment annotation to an existing PDF document.", "tags": [ + "attachment", + "file-specification", "pdf", - "attachments", - "decryption", - "aspose", - "csharp" + "memorystream", + "annotation" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Decrypt", - "Aspose.Pdf.Document.EmbeddedFiles", - "Aspose.Pdf.EmbeddedFile", - "Aspose.Pdf.EmbeddedFile.Save" + "Aspose.Pdf.Page", + "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.Annotations.FileAttachmentAnnotation", + "Aspose.Pdf.Annotations.FileIcon", + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:37:52Z", "status": "verified" }, - "validate-attachment-size-before-adding-to-pdf": { - "title": "Validate Attachment Size Before Adding to PDF", - "filename": "validate-attachment-size-before-adding-to-pdf.cs", - "description": "Shows how to check each file's size against a limit and attach only those that meet the criteria as file attachment annotations in a PDF document.", + "attach-remote-file-to-pdf": { + "title": "Attach Remote File to PDF", + "filename": "attach-remote-file-to-pdf.cs", + "description": "Downloads a file from a remote URL into memory and adds it as a file attachment annotation to an existing PDF using Aspose.Pdf.", "tags": [ "attachment", - "size-limit", "pdf", - "annotation", - "aspose-pdf" + "download", + "memory", + "annotation" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.FileSpecification", "Aspose.Pdf.Annotations.FileAttachmentAnnotation", - "Aspose.Pdf.Rectangle", "Aspose.Pdf.Color" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:37:52Z", "status": "verified" }, + "attachment-removal-integration-tests": { + "title": "Attachment Removal Integration Tests", + "filename": "attachment-removal-integration-tests.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "batch-add-attachment-to-pdfs": { "title": "Batch Add Attachment to PDFs", "filename": "batch-add-attachment-to-pdfs.cs", @@ -361,181 +444,274 @@ "generated_at": "2026-08-20T08:37:52Z", "status": "verified" }, - "create-pdf-portfolio-with-attachments": { - "title": "Create PDF Portfolio with Attachments", - "filename": "create-pdf-portfolio-with-attachments.cs", - "description": "Demonstrates how to create a PDF portfolio document and embed files as attachments using Aspose.Pdf's Document, Collection, and FileSpecification classes.", + "compress-pdf-portfolio-with-optimization": { + "title": "Compress PDF Portfolio and Save with Optimization", + "filename": "compress-pdf-portfolio-with-optimization.cs", + "description": "Shows how to load an existing PDF Portfolio, enable object compression using OptimizationOptions, and save the compressed portfolio to a new file.", + "tags": [ + "pdf", + "portfolio", + "compression", + "optimization", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Optimization.OptimizationOptions", + "Aspose.Pdf.Document.OptimizeResources", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:37:52Z", + "status": "verified" + }, + "convert-pdf-to-portfolio-with-embedded-files": { + "title": "Convert Pdf To Portfolio With Embedded Files", + "filename": "convert-pdf-to-portfolio-with-embedded-files.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-pdf-portfolio-embed-files": { + "title": "Create PDF Portfolio by Embedding Files", + "filename": "create-pdf-portfolio-embed-files.cs", + "description": "Demonstrates how to convert an existing PDF into a PDF Portfolio by adding multiple embedded files using Aspose.Pdf.", "tags": [ "pdf-portfolio", "attachments", + "embed-files", "aspose-pdf", - "file-specification", - "collection" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Collection", "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.FileSpecification.Contents", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Document.EmbeddedFiles", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:37:52Z", "status": "verified" }, - "add-word-document-to-pdf-portfolio": { - "title": "Add Word Document to PDF Portfolio", - "filename": "add-word-document-to-pdf-portfolio.cs", - "description": "Demonstrates how to create a PDF portfolio and embed a Word (.docx) file using Aspose.Pdf's Collection and FileSpecification classes.", + "create-pdf-portfolio-with-attachments": { + "title": "Create PDF Portfolio with Attachments", + "filename": "create-pdf-portfolio-with-attachments.cs", + "description": "Demonstrates how to create a PDF portfolio document and embed files as attachments using Aspose.Pdf's Document, Collection, and FileSpecification classes.", "tags": [ "pdf-portfolio", "attachments", "aspose-pdf", "file-specification", - "docx" + "collection" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Collection", "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Collection.Add", + "Aspose.Pdf.FileSpecification.Contents", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:37:52Z", "status": "verified" }, - "insert-excel-into-pdf-portfolio": { - "title": "Insert Excel Workbook into PDF Portfolio with Description", - "filename": "insert-excel-into-pdf-portfolio.cs", - "description": "Demonstrates how to create a PDF portfolio and embed an Excel workbook with a custom description using Aspose.Pdf.", + "create-pdf-portfolio-with-multiple-embedded-files": { + "title": "Create Pdf Portfolio With Multiple Embedded Files", + "filename": "create-pdf-portfolio-with-multiple-embedded-files.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "delete-outline-items-by-text": { + "title": "Delete PDF Outline Items by Matching Text", + "filename": "delete-outline-items-by-text.cs", + "description": "Demonstrates loading a PDF, searching its outline (bookmark) entries for a specific text, and removing the matching items using Aspose.Pdf.", "tags": [ - "pdf-portfolio", - "excel-attachment", - "embedded-files", - "aspose-pdf", - "csharp" + "pdf", + "outline", + "bookmark", + "delete", + "search" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.EmbeddedFilesCollection", - "Aspose.Pdf.EmbeddedFilesCollection.Add", + "Aspose.Pdf.OutlineCollection", + "Aspose.Pdf.OutlineItemCollection", + "Aspose.Pdf.OutlineCollection.Delete", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:37:52Z", "status": "verified" }, - "embed-image-into-pdf-portfolio": { - "title": "Embed Image into PDF Portfolio with Display Name", - "filename": "embed-image-into-pdf-portfolio.cs", - "description": "Demonstrates how to embed an image file into a PDF portfolio using Aspose.Pdf and set a custom display name for the embedded file.", + "delete-pdf-attachment-by-filename": { + "title": "Delete PDF Attachment by Filename using Aspose.Pdf", + "filename": "delete-pdf-attachment-by-filename.cs", + "description": "Demonstrates how to locate and remove an embedded file from a PDF by matching its filename with Aspose.Pdf.", "tags": [ - "pdf-portfolio", - "embed-file", - "image", - "aspose-pdf", + "pdf", + "attachment", + "delete", + "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Document.EmbeddedFiles.Add", + "Aspose.Pdf.EmbeddedFiles", + "Aspose.Pdf.EmbeddedFiles.FindByName", + "Aspose.Pdf.EmbeddedFiles.Delete", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:37:52Z", "status": "verified" }, - "add-nested-pdf-to-pdf-portfolio": { - "title": "Add Nested PDF to Existing PDF Portfolio", - "filename": "add-nested-pdf-to-pdf-portfolio.cs", - "description": "Demonstrates how to embed a PDF file as a nested item inside an existing PDF portfolio using Aspose.Pdf.", + "delete-pdf-outline-items-matching-text": { + "title": "Delete Pdf Outline Items Matching Text", + "filename": "delete-pdf-outline-items-matching-text.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "embed-attachment-metadata-in-pdf": { + "title": "Embed Attachment Metadata In Pdf", + "filename": "embed-attachment-metadata-in-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "embed-attachment-metadata-into-pdf": { + "title": "Embed Attachment Metadata into PDF Information Dictionary", + "filename": "embed-attachment-metadata-into-pdf.cs", + "description": "Loads a PDF, adds an embedded file, stores custom attachment metadata in the document information dictionary, and transfers that info into the PDF metadata using conversion options.", "tags": [ - "pdf-portfolio", "attachment", - "embed", - "aspose-pdf", - "csharp" + "metadata", + "document-info", + "pdf", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.EmbeddedFilesCollection", - "Aspose.Pdf.EmbeddedFilesCollection.Add", + "Aspose.Pdf.PdfFormatConversionOptions", + "Aspose.Pdf.Document.Convert", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:37:52Z", "status": "verified" }, - "add-multiple-files-to-pdf-portfolio": { - "title": "Add Multiple Files to a PDF Portfolio", - "filename": "add-multiple-files-to-pdf-portfolio.cs", - "description": "Demonstrates how to embed several files of different formats into a single PDF portfolio using Aspose.Pdf in one loop.", + "embed-hidden-xml-metadata-attachment": { + "title": "Embed Hidden Xml Metadata Attachment", + "filename": "embed-hidden-xml-metadata-attachment.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "embed-hidden-xml-metadata-pdf-attachment": { + "title": "Embed Hidden XML Metadata as PDF Attachment", + "filename": "embed-hidden-xml-metadata-pdf-attachment.cs", + "description": "Serializes a custom metadata object to XML, embeds it in a PDF as a hidden file attachment annotation, and saves the modified document.", "tags": [ "pdf", - "portfolio", - "attachments", - "embedding", - "aspose" + "attachment", + "metadata", + "xml", + "hidden-annotation" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.EmbeddedFileCollection", - "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.EmbeddedFileCollection.Add" + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.FileAttachmentAnnotation", + "Aspose.Pdf.Annotations.FileSpecification", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.AnnotationFlags" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:37:52Z", "status": "verified" }, - "compress-pdf-portfolio-with-optimization": { - "title": "Compress PDF Portfolio and Save with Optimization", - "filename": "compress-pdf-portfolio-with-optimization.cs", - "description": "Shows how to load an existing PDF Portfolio, enable object compression using OptimizationOptions, and save the compressed portfolio to a new file.", + "embed-image-into-pdf-portfolio": { + "title": "Embed Image into PDF Portfolio with Display Name", + "filename": "embed-image-into-pdf-portfolio.cs", + "description": "Demonstrates how to embed an image file into a PDF portfolio using Aspose.Pdf and set a custom display name for the embedded file.", "tags": [ - "pdf", - "portfolio", - "compression", - "optimization", - "aspose-pdf" + "pdf-portfolio", + "embed-file", + "image", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Optimization.OptimizationOptions", - "Aspose.Pdf.Document.OptimizeResources", + "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.Document.Pages.Add", + "Aspose.Pdf.Document.EmbeddedFiles.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:37:52Z", "status": "verified" }, - "extract-embedded-files-from-pdf-portfolio": { - "title": "Extract Embedded Files from PDF Portfolio", - "filename": "extract-embedded-files-from-pdf-portfolio.cs", - "description": "The example opens a PDF portfolio, iterates through its embedded files, and saves each file to a local directory while preserving the virtual folder hierarchy.", + "extract-attachment-by-name-from-pdf": { + "title": "Extract Attachment By Name From Pdf", + "filename": "extract-attachment-by-name-from-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-attachments-from-encrypted-pdf": { + "title": "Extract Attachments from Encrypted PDF", + "filename": "extract-attachments-from-encrypted-pdf.cs", + "description": "Shows how to open a password‑protected PDF, decrypt it, and extract all embedded file attachments to a specified folder.", "tags": [ - "pdf-portfolio", - "embedded-files", - "extraction", - "aspose-pdf", - "file-system" + "pdf", + "attachments", + "decryption", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Decrypt", "Aspose.Pdf.Document.EmbeddedFiles", - "Aspose.Pdf.EmbeddedFile.Save", - "Aspose.Pdf.EmbeddedFile.Name", - "Aspose.Pdf.FileSpecification.Contents" + "Aspose.Pdf.EmbeddedFile", + "Aspose.Pdf.EmbeddedFile.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:37:52Z", "status": "verified" }, + "extract-embedded-attachments-parallel": { + "title": "Extract Embedded Attachments Parallel", + "filename": "extract-embedded-attachments-parallel.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "extract-embedded-file-from-pdf-portfolio": { "title": "Extract Embedded File from PDF Portfolio by Index", "filename": "extract-embedded-file-from-pdf-portfolio.cs", @@ -558,157 +734,145 @@ "generated_at": "2026-08-20T08:37:52Z", "status": "verified" }, - "remove-embedded-file-from-pdf-portfolio": { - "title": "Remove Embedded File from PDF Portfolio by Index", - "filename": "remove-embedded-file-from-pdf-portfolio.cs", - "description": "Demonstrates how to delete a specific embedded file from a PDF portfolio using its 1‑based collection index and save the updated document.", - "tags": [ - "pdf", - "portfolio", - "embedded-files", - "delete", - "aspnet" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.EmbeddedFilesCollection", - "Aspose.Pdf.EmbeddedFile", - "Aspose.Pdf.EmbeddedFilesCollection.Delete", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:37:52Z", - "status": "verified" - }, - "delete-outline-items-by-text": { - "title": "Delete PDF Outline Items by Matching Text", - "filename": "delete-outline-items-by-text.cs", - "description": "Demonstrates loading a PDF, searching its outline (bookmark) entries for a specific text, and removing the matching items using Aspose.Pdf.", + "extract-embedded-files-from-pdf-portfolio": { + "title": "Extract Embedded Files from PDF Portfolio", + "filename": "extract-embedded-files-from-pdf-portfolio.cs", + "description": "The example opens a PDF portfolio, iterates through its embedded files, and saves each file to a local directory while preserving the virtual folder hierarchy.", "tags": [ - "pdf", - "outline", - "bookmark", - "delete", - "search" + "pdf-portfolio", + "embedded-files", + "extraction", + "aspose-pdf", + "file-system" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.OutlineCollection", - "Aspose.Pdf.OutlineItemCollection", - "Aspose.Pdf.OutlineCollection.Delete", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.EmbeddedFiles", + "Aspose.Pdf.EmbeddedFile.Save", + "Aspose.Pdf.EmbeddedFile.Name", + "Aspose.Pdf.FileSpecification.Contents" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:37:52Z", "status": "verified" }, - "reorder-pdf-outline-items": { - "title": "Reorder PDF Outline (Bookmark) Items", - "filename": "reorder-pdf-outline-items.cs", - "description": "Loads a PDF, extracts its top‑level outline (bookmark) entries, changes their order, clears the existing outlines, and re‑adds them in the new sequence.", + "extract-pdf-attachment-metadata": { + "title": "Extract PDF Attachment Metadata to JSON", + "filename": "extract-pdf-attachment-metadata.cs", + "description": "Shows how to read file‑attachment annotations from a PDF, obtain each attachment's file name and creation date, and write the collected metadata to a JSON file.", "tags": [ "pdf", - "outlines", - "bookmarks", - "reorder", + "attachments", + "metadata", + "json", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.OutlineItemCollection", - "Aspose.Pdf.Document.Outlines", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.OutlineItemCollection.Add" + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.FileAttachmentAnnotation", + "Aspose.Pdf.Annotations.FileSpecification" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:37:52Z", "status": "verified" }, - "apply-custom-visual-template-to-pdf-portfolio": { - "title": "Apply Custom Visual Template to PDF Portfolio", - "filename": "apply-custom-visual-template-to-pdf-portfolio.cs", - "description": "Shows how to load a PDF Portfolio and apply a visual template to each page by adding a semi‑transparent background rectangle and header text using Aspose.Pdf.Drawing and Aspose.Pdf.Text classes.", + "extract-pdf-attachments-in-parallel": { + "title": "Extract PDF Attachments in Parallel", + "filename": "extract-pdf-attachments-in-parallel.cs", + "description": "Shows how to process multiple PDF files concurrently and extract all embedded attachments using Aspose.Pdf, employing reflection to save each attachment.", "tags": [ - "pdf-portfolio", - "visual-template", - "drawing", - "graph", - "textfragment" + "pdf", + "attachments", + "parallel", + "aspose", + "reflection" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.FontRepository.FindFont", - "Aspose.Pdf.Color" + "Aspose.Pdf.Document.EmbeddedFiles", + "Aspose.Pdf.EmbeddedFile", + "Aspose.Pdf.EmbeddedFileCollection", + "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.EmbeddedFile.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:37:52Z", "status": "verified" }, - "generate-pdf-page-thumbnails": { - "title": "Generate Thumbnails for PDF Pages", - "filename": "generate-pdf-page-thumbnails.cs", - "description": "Demonstrates how to create PNG thumbnail images for each page of a PDF (portfolio) using Aspose.Pdf's Drawing API.", + "extract-pdf-attachments-sha256-hash": { + "title": "Extract PDF Attachments and Compute SHA-256 Hashes", + "filename": "extract-pdf-attachments-sha256-hash.cs", + "description": "Loads a PDF, enumerates its embedded file attachments, and calculates a SHA‑256 hash for each attachment to verify integrity.", "tags": [ - "thumbnail", "pdf", - "aspose", - "drawing-api", - "pages" + "attachments", + "hash", + "sha256", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Devices.ThumbnailDevice", - "Aspose.Pdf.Page", - "Aspose.Pdf.PageCollection", - "Aspose.Pdf.Devices.ThumbnailDevice.Process" + "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.EmbeddedFilesCollection", + "Aspose.Pdf.FileSpecification.Name", + "Aspose.Pdf.FileSpecification.Contents" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:37:52Z", "status": "verified" }, - "merge-pdf-portfolios-preserve-metadata": { - "title": "Merge Two PDF Portfolios Preserving Embedded File Metadata", - "filename": "merge-pdf-portfolios-preserve-metadata.cs", - "description": "Demonstrates how to combine two PDF portfolios into a single document while keeping all embedded files and their associated metadata intact.", + "extract-pdf-attachments-sha256": { + "title": "Extract Pdf Attachments Sha256", + "filename": "extract-pdf-attachments-sha256.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-pdf-attachments-to-subfolders": { + "title": "Extract PDF Attachments to Separate Subfolders", + "filename": "extract-pdf-attachments-to-subfolders.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, iterate over its embedded files and save each attachment into its own subfolder.", "tags": [ "pdf", - "portfolio", - "merge", - "embedded-files", - "metadata" + "attachments", + "extraction", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages", "Aspose.Pdf.Document.EmbeddedFiles", - "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.EmbeddedFile", + "Aspose.Pdf.EmbeddedFile.Save", + "Aspose.Pdf.EmbeddedFile.Name", + "Aspose.Pdf.FileSpecification" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:37:52Z", "status": "verified" }, - "create-pdf-portfolio-embed-files": { - "title": "Create PDF Portfolio by Embedding Files", - "filename": "create-pdf-portfolio-embed-files.cs", - "description": "Demonstrates how to convert an existing PDF into a PDF Portfolio by adding multiple embedded files using Aspose.Pdf.", + "extract-specific-attachment-from-pdf": { + "title": "Extract Specific Attachment from PDF", + "filename": "extract-specific-attachment-from-pdf.cs", + "description": "Demonstrates how to locate an embedded file by name in a PDF document and save it to a specified directory using Aspose.Pdf.", "tags": [ - "pdf-portfolio", - "attachments", - "embed-files", + "pdf", + "attachment", + "extract", "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Document.Pages", "Aspose.Pdf.Document.EmbeddedFiles", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.EmbeddedFilesCollection.FindByName", + "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.FileSpecification.Contents" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:37:52Z", @@ -734,26 +898,14 @@ "generated_at": "2026-08-20T08:37:52Z", "status": "verified" }, - "read-pdf-metadata-attachment-count": { - "title": "Read PDF Metadata and Count Attachments", - "filename": "read-pdf-metadata-attachment-count.cs", - "description": "Demonstrates how to load a PDF with Aspose.Pdf, extract standard document metadata, count embedded file attachments, and generate a simple text report.", - "tags": [ - "metadata", - "attachments", - "pdf", - "report", - "aspose" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.DocumentInfo", - "Aspose.Pdf.Document.EmbeddedFiles", - "Aspose.Pdf.EmbeddedFileCollection", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T08:37:52Z", + "generate-csv-report-of-pdf-attachments": { + "title": "Generate Csv Report Of Pdf Attachments", + "filename": "generate-csv-report-of-pdf-attachments.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, "generate-csv-report-pdf-attachments": { @@ -779,97 +931,69 @@ "generated_at": "2026-08-20T08:37:52Z", "status": "verified" }, - "add-in-memory-attachment-to-pdf": { - "title": "Add In-Memory Attachment to PDF", - "filename": "add-in-memory-attachment-to-pdf.cs", - "description": "Demonstrates how to embed a file stored in a MemoryStream as an attachment in a PDF using Aspose.Pdf, and save the result without creating intermediate files on disk.", + "generate-pdf-page-thumbnails": { + "title": "Generate Thumbnails for PDF Pages", + "filename": "generate-pdf-page-thumbnails.cs", + "description": "Demonstrates how to create PNG thumbnail images for each page of a PDF (portfolio) using Aspose.Pdf's Drawing API.", "tags": [ + "thumbnail", "pdf", - "attachment", - "memorystream", "aspose", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.EmbeddedFiles" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:37:52Z", - "status": "verified" - }, - "attach-remote-file-to-pdf": { - "title": "Attach Remote File to PDF", - "filename": "attach-remote-file-to-pdf.cs", - "description": "Downloads a file from a remote URL into memory and adds it as a file attachment annotation to an existing PDF using Aspose.Pdf.", - "tags": [ - "attachment", - "pdf", - "download", - "memory", - "annotation" + "drawing-api", + "pages" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Devices.ThumbnailDevice", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Annotations.FileAttachmentAnnotation", - "Aspose.Pdf.Color" + "Aspose.Pdf.PageCollection", + "Aspose.Pdf.Devices.ThumbnailDevice.Process" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:37:52Z", "status": "verified" }, - "add-file-attachment-to-pdf-with-error-handling": { - "title": "Add File Attachment to PDF with Error Handling", - "filename": "add-file-attachment-to-pdf-with-error-handling.cs", - "description": "Demonstrates how to attach a file to a PDF page using Aspose.Pdf and includes robust error handling for missing source or attachment files.", + "insert-excel-into-pdf-portfolio": { + "title": "Insert Excel Workbook into PDF Portfolio with Description", + "filename": "insert-excel-into-pdf-portfolio.cs", + "description": "Demonstrates how to create a PDF portfolio and embed an Excel workbook with a custom description using Aspose.Pdf.", "tags": [ - "attachment", - "pdf", - "error-handling", - "annotation", - "aspose-pdf" + "pdf-portfolio", + "excel-attachment", + "embedded-files", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.FileAttachmentAnnotation", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Page", - "Aspose.Pdf.PdfException", - "Aspose.Pdf.Color", - "Aspose.Pdf.FileIcon" + "Aspose.Pdf.EmbeddedFilesCollection", + "Aspose.Pdf.EmbeddedFilesCollection.Add", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:37:52Z", "status": "verified" }, - "validate-attachment-mime-type-and-add-to-pdf": { - "title": "Validate Attachment MIME Type and Add to PDF", - "filename": "validate-attachment-mime-type-and-add-to-pdf.cs", - "description": "The example verifies that a file's MIME type matches its extension, then embeds the file as an attachment annotation in a PDF using Aspose.Pdf.", + "list-pdf-attachment-names-sizes": { + "title": "List PDF Attachment Names and Sizes", + "filename": "list-pdf-attachment-names-sizes.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, iterate the EmbeddedFiles collection, and print each attachment's original name and its size in bytes.", "tags": [ - "mime", - "attachment", + "attachments", "pdf", - "validation", - "aspose-pdf" + "aspose", + "file-specification", + "enumeration" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Document.EmbeddedFiles", "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.FileAttachmentAnnotation", - "Aspose.Pdf.Image.GetMimeType", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.FileIcon", - "Aspose.Pdf.Color" + "Aspose.Pdf.FileSpecification.Name", + "Aspose.Pdf.FileSpecification.Contents" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:37:52Z", "status": "verified" }, @@ -897,206 +1021,282 @@ "generated_at": "2026-08-20T08:37:52Z", "status": "verified" }, - "embed-attachment-metadata-into-pdf": { - "title": "Embed Attachment Metadata into PDF Information Dictionary", - "filename": "embed-attachment-metadata-into-pdf.cs", - "description": "Loads a PDF, adds an embedded file, stores custom attachment metadata in the document information dictionary, and transfers that info into the PDF metadata using conversion options.", + "merge-pdf-portfolios-preserve-metadata": { + "title": "Merge Two PDF Portfolios Preserving Embedded File Metadata", + "filename": "merge-pdf-portfolios-preserve-metadata.cs", + "description": "Demonstrates how to combine two PDF portfolios into a single document while keeping all embedded files and their associated metadata intact.", "tags": [ - "attachment", - "metadata", - "document-info", "pdf", - "Aspose.Pdf" + "portfolio", + "merge", + "embedded-files", + "metadata" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Document.EmbeddedFiles", "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.PdfFormatConversionOptions", - "Aspose.Pdf.Document.Convert", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:37:52Z", "status": "verified" }, - "add-unicode-file-attachment-to-pdf": { - "title": "Add Unicode File Attachment to PDF", - "filename": "add-unicode-file-attachment-to-pdf.cs", - "description": "Shows how to embed a file with a Unicode (e.g., Chinese) filename into a PDF as a file‑attachment annotation using Aspose.Pdf.", + "read-pdf-metadata-attachment-count": { + "title": "Read PDF Metadata and Count Attachments", + "filename": "read-pdf-metadata-attachment-count.cs", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, extract standard document metadata, count embedded file attachments, and generate a simple text report.", "tags": [ - "attachment", - "unicode", + "metadata", + "attachments", "pdf", - "annotation", - "filespecification" + "report", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Annotations.FileAttachmentAnnotation", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Page.Annotations.Add" + "Aspose.Pdf.DocumentInfo", + "Aspose.Pdf.Document.EmbeddedFiles", + "Aspose.Pdf.EmbeddedFileCollection", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:37:52Z", "status": "verified" }, - "extract-pdf-attachments-sha256-hash": { - "title": "Extract PDF Attachments and Compute SHA-256 Hashes", - "filename": "extract-pdf-attachments-sha256-hash.cs", - "description": "Loads a PDF, enumerates its embedded file attachments, and calculates a SHA‑256 hash for each attachment to verify integrity.", + "remove-embedded-file-from-pdf-portfolio": { + "title": "Remove Embedded File from PDF Portfolio by Index", + "filename": "remove-embedded-file-from-pdf-portfolio.cs", + "description": "Demonstrates how to delete a specific embedded file from a PDF portfolio using its 1‑based collection index and save the updated document.", "tags": [ "pdf", - "attachments", - "hash", - "sha256", - "aspose" + "portfolio", + "embedded-files", + "delete", + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.FileSpecification", "Aspose.Pdf.EmbeddedFilesCollection", - "Aspose.Pdf.FileSpecification.Name", - "Aspose.Pdf.FileSpecification.Contents" + "Aspose.Pdf.EmbeddedFile", + "Aspose.Pdf.EmbeddedFilesCollection.Delete", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:37:52Z", "status": "verified" }, - "add-image-watermark-to-pdf-attachments": { - "title": "Add Image Watermark to PDF Attachments", - "filename": "add-image-watermark-to-pdf-attachments.cs", - "description": "Shows how to iterate through embedded PDF attachments, apply an image watermark to every page of each attachment, and replace the original attachment with the watermarked version before saving the main document.", + "remove-pdf-attachment-by-index": { + "title": "Remove PDF Attachment by Index", + "filename": "remove-pdf-attachment-by-index.cs", + "description": "Shows how to delete an embedded file from a PDF using its zero‑based index with Aspose.Pdf.", "tags": [ - "attachments", - "watermark", - "image", "pdf", - "embedded-files" + "attachment", + "remove", + "embeddedfiles", + "aspose.pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.ImageStamp", - "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.EmbeddedFiles", + "Aspose.Pdf.EmbeddedFile", + "Aspose.Pdf.EmbeddedFiles.Delete", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:37:52Z", "status": "verified" }, - "add-file-attachment-with-retry": { - "title": "Add File Attachment to PDF with Retry Logic", - "filename": "add-file-attachment-with-retry.cs", - "description": "Shows how to attach a file to the first page of a PDF located on a network share using Aspose.Pdf, with retry handling for transient I/O errors.", + "reorder-pdf-outline-items": { + "title": "Reorder PDF Outline (Bookmark) Items", + "filename": "reorder-pdf-outline-items.cs", + "description": "Loads a PDF, extracts its top‑level outline (bookmark) entries, changes their order, clears the existing outlines, and re‑adds them in the new sequence.", "tags": [ "pdf", - "attachment", - "retry", - "network-share", + "outlines", + "bookmarks", + "reorder", "aspose" ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.OutlineItemCollection", + "Aspose.Pdf.Document.Outlines", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.OutlineItemCollection.Add" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T08:37:52Z", + "status": "verified" + }, + "set-custom-description-for-pdf-attachments": { + "title": "Set Custom Description for PDF Attachment Annotations", + "filename": "set-custom-description-for-pdf-attachments.cs", + "description": "Shows how to load a PDF, iterate over its pages and annotations, find file attachment annotations, and assign custom subject and file description metadata before saving the document.", + "tags": [ + "attachments", + "metadata", + "file-attachment", + "Aspose.Pdf", + "PDF" + ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.FileAttachmentAnnotation", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.FileAttachmentAnnotation", + "Aspose.Pdf.Annotations.FileSpecification", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:37:52Z", "status": "verified" }, - "extract-pdf-attachments-in-parallel": { - "title": "Extract PDF Attachments in Parallel", - "filename": "extract-pdf-attachments-in-parallel.cs", - "description": "Shows how to process multiple PDF files concurrently and extract all embedded attachments using Aspose.Pdf, employing reflection to save each attachment.", + "test-attachment-removal-updates-collection-count": { + "title": "Test Attachment Removal Updates Collection Count", + "filename": "test-attachment-removal-updates-collection-count.cs", + "description": "Shows integration tests that verify removing or clearing attachments correctly updates the Attachments collection count in a ThreadMessageResponse.", "tags": [ - "pdf", "attachments", - "parallel", + "unit-test", + "nunit", + "collection", + "aspose-pdf-ai" + ], + "apis_used": [ + "Aspose.Pdf.AI.Attachment", + "Aspose.Pdf.AI.Tool", + "Aspose.Pdf.AI.ThreadMessageResponse" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:37:52Z", + "status": "verified" + }, + "update-attachment-description-pdf": { + "title": "Update Attachment Description Pdf", + "filename": "update-attachment-description-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "update-pdf-attachment-description": { + "title": "Update PDF Attachment Description", + "filename": "update-pdf-attachment-description.cs", + "description": "Demonstrates how to locate a file attachment annotation in a PDF, modify its description, and save the updated document using Aspose.Pdf.", + "tags": [ + "attachment", + "description", + "pdf", "aspose", - "reflection" + "annotation" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.EmbeddedFiles", - "Aspose.Pdf.EmbeddedFile", - "Aspose.Pdf.EmbeddedFileCollection", + "Aspose.Pdf.Annotations.FileAttachmentAnnotation", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.Annotation", "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.EmbeddedFile.Save" + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:37:52Z", "status": "verified" }, - "verify-pdf-size-increase-after-adding-file-attachment": { - "title": "Verify PDF Size Increase After Adding File Attachment", - "filename": "verify-pdf-size-increase-after-adding-file-attachment.cs", - "description": "Creates a PDF, adds a FileAttachmentAnnotation, saves the modified document, and uses an NUnit test to assert that the file size grows as expected.", + "validate-attachment-mime-type-and-add-to-pdf": { + "title": "Validate Attachment MIME Type and Add to PDF", + "filename": "validate-attachment-mime-type-and-add-to-pdf.cs", + "description": "The example verifies that a file's MIME type matches its extension, then embeds the file as an attachment annotation in a PDF using Aspose.Pdf.", "tags": [ - "pdf", + "mime", "attachment", - "nunit", - "unit-test", + "pdf", + "validation", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.Page", "Aspose.Pdf.Annotations.FileAttachmentAnnotation", + "Aspose.Pdf.Image.GetMimeType", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.FileIcon", + "Aspose.Pdf.Color" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:37:52Z", "status": "verified" }, - "test-attachment-removal-updates-collection-count": { - "title": "Test Attachment Removal Updates Collection Count", - "filename": "test-attachment-removal-updates-collection-count.cs", - "description": "Shows integration tests that verify removing or clearing attachments correctly updates the Attachments collection count in a ThreadMessageResponse.", + "validate-attachment-mime-type": { + "title": "Validate Attachment Mime Type", + "filename": "validate-attachment-mime-type.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "validate-attachment-size-before-adding-to-pdf": { + "title": "Validate Attachment Size Before Adding to PDF", + "filename": "validate-attachment-size-before-adding-to-pdf.cs", + "description": "Shows how to check each file's size against a limit and attach only those that meet the criteria as file attachment annotations in a PDF document.", "tags": [ - "attachments", - "unit-test", - "nunit", - "collection", - "aspose-pdf-ai" + "attachment", + "size-limit", + "pdf", + "annotation", + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.AI.Attachment", - "Aspose.Pdf.AI.Tool", - "Aspose.Pdf.AI.ThreadMessageResponse" + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.Annotations.FileAttachmentAnnotation", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Color" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:37:52Z", "status": "verified" }, - "embed-hidden-xml-metadata-pdf-attachment": { - "title": "Embed Hidden XML Metadata as PDF Attachment", - "filename": "embed-hidden-xml-metadata-pdf-attachment.cs", - "description": "Serializes a custom metadata object to XML, embeds it in a PDF as a hidden file attachment annotation, and saves the modified document.", + "verify-pdf-size-increase-after-adding-file-attachment": { + "title": "Verify PDF Size Increase After Adding File Attachment", + "filename": "verify-pdf-size-increase-after-adding-file-attachment.cs", + "description": "Creates a PDF, adds a FileAttachmentAnnotation, saves the modified document, and uses an NUnit test to assert that the file size grows as expected.", "tags": [ "pdf", "attachment", - "metadata", - "xml", - "hidden-annotation" + "nunit", + "unit-test", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.FileSpecification", "Aspose.Pdf.Annotations.FileAttachmentAnnotation", - "Aspose.Pdf.Annotations.FileSpecification", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.AnnotationFlags" + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:37:52Z", "status": "verified" + }, + "verify-pdf-size-increases-with-attachment": { + "title": "Verify Pdf Size Increases With Attachment", + "filename": "verify-pdf-size-increases-with-attachment.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" } } } \ No newline at end of file diff --git a/working-with-forms/AGENTS.md b/working-with-forms/AGENTS.md index 141ab563c..637219534 100644 --- a/working-with-forms/AGENTS.md +++ b/working-with-forms/AGENTS.md @@ -8,7 +8,7 @@ parent: ../agents.md # AGENTS - working-with-forms -> **Working with forms** in PDF using C# / .NET -- **232** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. +> **Working with forms** in PDF using C# / .NET -- **358** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. ## Persona @@ -23,34 +23,34 @@ See the root [agents.md](../agents.md) for repository-wide conventions and bound ## Required Namespaces -- `using Aspose.Pdf;` (232/232 files) ← category-specific -- `using Aspose.Pdf.Forms;` (187/232 files) ← category-specific -- `using Aspose.Pdf.Annotations;` (71/232 files) -- `using Aspose.Pdf.Text;` (22/232 files) -- `using Aspose.Pdf.Drawing;` (13/232 files) -- `using Aspose.Pdf.Facades;` (3/232 files) -- `using Aspose.Pdf.Security;` (1/232 files) -- `using Aspose.Pdf.Tagged;` (1/232 files) -- `using System;` (232/232 files) -- `using System.IO;` (210/232 files) -- `using System.Xml;` (19/232 files) -- `using System.Collections.Generic;` (12/232 files) -- `using System.Drawing;` (7/232 files) -- `using System.Linq;` (6/232 files) -- `using System.Text;` (6/232 files) -- `using System.Xml.Linq;` (5/232 files) -- `using System.Text.Json;` (3/232 files) -- `using System.Threading.Tasks;` (3/232 files) -- `using System.IO.Compression;` (2/232 files) -- `using System.Net.Http;` (2/232 files) -- `using System.Data;` (1/232 files) -- `using System.Globalization;` (1/232 files) -- `using System.Security.Cryptography;` (1/232 files) -- `using System.Text.Json.Nodes;` (1/232 files) -- `using System.Text.RegularExpressions;` (1/232 files) -- `using System.Threading;` (1/232 files) -- `using System.Xml.Schema;` (1/232 files) -- `using System.Xml.Xsl;` (1/232 files) +- `using Aspose.Pdf;` (232/358 files) ← category-specific +- `using Aspose.Pdf.Forms;` (187/358 files) ← category-specific +- `using Aspose.Pdf.Annotations;` (71/358 files) +- `using Aspose.Pdf.Text;` (22/358 files) +- `using Aspose.Pdf.Drawing;` (13/358 files) +- `using Aspose.Pdf.Facades;` (3/358 files) +- `using Aspose.Pdf.Security;` (1/358 files) +- `using Aspose.Pdf.Tagged;` (1/358 files) +- `using System;` (232/358 files) +- `using System.IO;` (210/358 files) +- `using System.Xml;` (19/358 files) +- `using System.Collections.Generic;` (12/358 files) +- `using System.Drawing;` (7/358 files) +- `using System.Linq;` (6/358 files) +- `using System.Text;` (6/358 files) +- `using System.Xml.Linq;` (5/358 files) +- `using System.Text.Json;` (3/358 files) +- `using System.Threading.Tasks;` (3/358 files) +- `using System.IO.Compression;` (2/358 files) +- `using System.Net.Http;` (2/358 files) +- `using System.Data;` (1/358 files) +- `using System.Globalization;` (1/358 files) +- `using System.Security.Cryptography;` (1/358 files) +- `using System.Text.Json.Nodes;` (1/358 files) +- `using System.Text.RegularExpressions;` (1/358 files) +- `using System.Threading;` (1/358 files) +- `using System.Xml.Schema;` (1/358 files) +- `using System.Xml.Xsl;` (1/358 files) ## Common Code Pattern @@ -69,9 +69,12 @@ using (Document doc = new Document("input.pdf")) | File | Title | Key APIs | Description | |------|-------|----------|-------------| | [acroform-with-margins](./acroform-with-margins.cs) | Create AcroForm TextBox Positioned by Page Margins | `Document`, `Page`, `MarginInfo` | Shows how to generate a PDF with an AcroForm text box whose position is calculated relative to th... | +| [add-acroform-textbox-absolute-coordinates](./add-acroform-textbox-absolute-coordinates.cs) | Add acroform textbox absolute coordinates | | Add acroform textbox absolute coordinates | +| [add-auto-updating-date-time-field-to-pdf](./add-auto-updating-date-time-field-to-pdf.cs) | Add auto updating date time field to pdf | | Add auto updating date time field to pdf | | [add-auto-updating-datetime-field-to-pdf](./add-auto-updating-datetime-field-to-pdf.cs) | Add Auto‑Updating Date/Time Field to PDF | `Document`, `DateField`, `Rectangle` | Demonstrates inserting a DateField into a PDF and attaching a JavaScript OpenAction that refreshe... | | [add-blank-page-save-as-new-pdf](./add-blank-page-save-as-new-pdf.cs) | Add Blank Page and Save PDF as New File | `Document`, `Save`, `Pages` | The example loads an existing PDF, adds a blank page, and saves the modified document to a new fi... | | [add-blank-page-to-pdf-form](./add-blank-page-to-pdf-form.cs) | Add Blank Page to PDF Form | `Document`, `Pages`, `Add` | Shows how to load an existing PDF that contains form fields, append a new blank page, and save th... | +| [add-calculated-total-field-to-pdf-form](./add-calculated-total-field-to-pdf-form.cs) | Add calculated total field to pdf form | | Add calculated total field to pdf form | | [add-calculated-total-field-with-javascript](./add-calculated-total-field-with-javascript.cs) | Add Calculated Total Field with JavaScript in PDF Form | `Document`, `Page`, `NumberField` | Shows how to create numeric input fields and a read‑only total field that automatically sums them... | | [add-calculated-total-price-field-to-pdf-form](./add-calculated-total-price-field-to-pdf-form.cs) | Add Calculated Total Price Field to PDF Form | `Document`, `Form`, `NumberField` | Demonstrates how to add quantity, unit price, and a read‑only calculated total price field to a P... | | [add-calculation-button-to-pdf-form](./add-calculation-button-to-pdf-form.cs) | Add Calculation Button to PDF Form | `Document`, `Rectangle`, `ButtonField` | Shows how to create a push‑button in an existing PDF form and attach JavaScript that reads Quanti... | @@ -82,26 +85,23 @@ using (Document doc = new Document("input.pdf")) | [add-date-picker-field-to-pdf](./add-date-picker-field-to-pdf.cs) | Add Date Picker Field to PDF | `Document`, `DateField`, `Border` | Shows how to create a DateField on an existing PDF, configure its appearance, initialize it, and ... | | [add-dynamic-barcode-field-to-pdf](./add-dynamic-barcode-field-to-pdf.cs) | Add Dynamic Barcode Field to PDF | `Document`, `Page`, `Rectangle` | Shows how to load a PDF template, generate a unique value at runtime, create a Code128 barcode fi... | | [add-dynamic-code128-barcode-to-pdf](./add-dynamic-code128-barcode-to-pdf.cs) | Add Dynamic Code128 Barcode Linked to a Text Field | `Document`, `TextBoxField`, `BarcodeField` | Shows how to insert a Code128 barcode field into a PDF and keep it updated automatically when a s... | +| [add-email-validation-to-pdf-form](./add-email-validation-to-pdf-form.cs) | Add email validation to pdf form | | Add email validation to pdf form | | [add-fallback-metadata-to-pdf](./add-fallback-metadata-to-pdf.cs) | Add Fallback Metadata to PDF from XML | `Document`, `Metadata`, `RegisterNamespaceUri` | Shows how to load XML metadata, create missing required fields with default values, and write the... | | [add-gender-radio-button-group-to-pdf](./add-gender-radio-button-group-to-pdf.cs) | Add Gender Radio Button Group to PDF | `Document`, `Page`, `Rectangle` | Demonstrates creating a new PDF document with an AcroForm and adding a gender selection radio but... | | [add-hidden-ip-field-to-pdf](./add-hidden-ip-field-to-pdf.cs) | Add Hidden IP Address Field to PDF with JavaScript | `Document`, `TextBoxField`, `Rectangle` | Shows how to insert a hidden text box field into a PDF and attach JavaScript that captures the us... | | [add-hidden-session-id-field-to-pdf](./add-hidden-session-id-field-to-pdf.cs) | Add Hidden Session ID Field to PDF | `Document`, `Rectangle`, `TextBoxField` | Shows how to insert a hidden text box form field into an existing PDF document to store a session... | +| [add-hidden-session-identifier-field-to-pdf](./add-hidden-session-identifier-field-to-pdf.cs) | Add hidden session identifier field to pdf | | Add hidden session identifier field to pdf | +| [add-ipv4-validation-to-pdf-textbox](./add-ipv4-validation-to-pdf-textbox.cs) | Add ipv4 validation to pdf textbox | | Add ipv4 validation to pdf textbox | | [add-javascript-email-validation-to-pdf-form-field](./add-javascript-email-validation-to-pdf-form-field.cs) | Add JavaScript Email Validation to PDF Form Field | `Document`, `Field`, `JavascriptAction` | Shows how to load a PDF, locate the 'Email' form field, attach a JavaScript OnValidate action tha... | | [add-javascript-listener-to-pdf-form-field](./add-javascript-listener-to-pdf-form-field.cs) | Add JavaScript Listener to PDF Form Field | `Document`, `Field`, `JavascriptAction` | Shows how to attach a JavaScript action to a PDF form field using Aspose.Pdf so the script runs w... | | [add-javascript-localization-to-pdf-form](./add-javascript-localization-to-pdf-form.cs) | Add JavaScript Localization to PDF Form | `Document`, `TextBoxField`, `Rectangle` | Demonstrates embedding a JavaScript dictionary of translations into a PDF and updating a form fie... | | [add-listbox-to-pdf-form](./add-listbox-to-pdf-form.cs) | Add List Box Field to PDF AcroForm | `Document`, `Page`, `Rectangle` | Demonstrates how to create a PDF document, add an AcroForm list box with country options, and sav... | +| [add-locale-translation-to-pdf-form-label](./add-locale-translation-to-pdf-form-label.cs) | Add locale translation to pdf form label | | Add locale translation to pdf form label | | [add-multi-select-list-box-max-3](./add-multi-select-list-box-max-3.cs) | Add Multi-Select List Box with Max 3 Selections to PDF | `Document`, `ListBoxField`, `Rectangle` | Demonstrates creating a ListBoxField in a PDF, enabling multi‑selection, adding options, and limi... | -| [add-multiline-feedback-text-field](./add-multiline-feedback-text-field.cs) | Add Multiline Feedback Text Field to PDF | `Document`, `Rectangle`, `TextBoxField` | Demonstrates how to add a multiline TextBoxField named 'Feedback' with a 500‑character limit to a... | -| [add-new-page-with-acroform-fields](./add-new-page-with-acroform-fields.cs) | Add a New Page with AcroForm Fields to PDF | `Document`, `Page`, `TextBoxField` | Demonstrates how to append a blank page to an existing PDF and place fresh AcroForm fields (text ... | -| [add-numeric-field-with-validation](./add-numeric-field-with-validation.cs) | Add Numeric Field with Validation to PDF | `Document`, `NumberField`, `Rectangle` | Shows how to insert a numeric form field into a PDF and attach JavaScript validation that restric... | -| [add-password-textbox-field-to-pdf](./add-password-textbox-field-to-pdf.cs) | Add Password TextBox Field to PDF | `Document`, `Form`, `TextBoxField` | Shows how to create a read‑only text box form field in a PDF, set its value as a password, and sa... | -| [add-paymentmethod-radio-button-group](./add-paymentmethod-radio-button-group.cs) | Add PaymentMethod Radio Button Group to PDF | `Document`, `Page`, `RadioButtonField` | Demonstrates creating a PDF document with a radio button group named 'PaymentMethod' containing '... | -| [add-progress-bar-field-to-pdf-form](./add-progress-bar-field-to-pdf-form.cs) | Add Progress Bar Field to PDF Form | `Document`, `Form`, `TextBoxField` | Shows how to insert a TextBoxField that works as a progress bar into a PDF form and update its va... | -| [add-read-only-date-field-to-pdf](./add-read-only-date-field-to-pdf.cs) | Add Read‑Only Date Field to PDF | `Document`, `Page`, `Rectangle` | Demonstrates creating a date field in a PDF, populating it with the current date/time, and settin... | -| ... | | | *and 202 more files* | +| ... | | | *and 328 more files* | ## Category Statistics -- Total examples: 232 +- Total examples: 358 ## Category-Specific Tips @@ -145,5 +145,5 @@ using (Document doc = new Document("input.pdf")) - Review code examples in this folder for working-with-forms patterns -Updated: 2026-08-20 | Run: `20260820_001147_12d7b3` +Updated: 2026-09-10 | Run: `20260910_054408_87a7f4` diff --git a/working-with-forms/README.md b/working-with-forms/README.md new file mode 100644 index 000000000..b64622ada --- /dev/null +++ b/working-with-forms/README.md @@ -0,0 +1,377 @@ +# Working with forms + +> **Working with forms** in PDF using C# / .NET -- **358** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. + +- Category: `working-with-forms` +- Examples: 358 +- NuGet: `Aspose.PDF 26.8.0` -- target `net10.0` + +## Examples + +- [`acroform-with-margins.cs`](./acroform-with-margins.cs) -- Acroform with margins +- [`add-acroform-textbox-absolute-coordinates.cs`](./add-acroform-textbox-absolute-coordinates.cs) -- Add acroform textbox absolute coordinates +- [`add-auto-updating-date-time-field-to-pdf.cs`](./add-auto-updating-date-time-field-to-pdf.cs) -- Add auto updating date time field to pdf +- [`add-auto-updating-datetime-field-to-pdf.cs`](./add-auto-updating-datetime-field-to-pdf.cs) -- Add auto updating datetime field to pdf +- [`add-blank-page-save-as-new-pdf.cs`](./add-blank-page-save-as-new-pdf.cs) -- Add blank page save as new pdf +- [`add-blank-page-to-pdf-form.cs`](./add-blank-page-to-pdf-form.cs) -- Add blank page to pdf form +- [`add-calculated-total-field-to-pdf-form.cs`](./add-calculated-total-field-to-pdf-form.cs) -- Add calculated total field to pdf form +- [`add-calculated-total-field-with-javascript.cs`](./add-calculated-total-field-with-javascript.cs) -- Add calculated total field with javascript +- [`add-calculated-total-price-field-to-pdf-form.cs`](./add-calculated-total-price-field-to-pdf-form.cs) -- Add calculated total price field to pdf form +- [`add-calculation-button-to-pdf-form.cs`](./add-calculation-button-to-pdf-form.cs) -- Add calculation button to pdf form +- [`add-checkbox-field-to-pdf-form.cs`](./add-checkbox-field-to-pdf-form.cs) -- Add checkbox field to pdf form +- [`add-current-time-datefield-to-pdf.cs`](./add-current-time-datefield-to-pdf.cs) -- Add current time datefield to pdf +- [`add-date-field-validation.cs`](./add-date-field-validation.cs) -- Add date field validation +- [`add-date-picker-field-current-date.cs`](./add-date-picker-field-current-date.cs) -- Add date picker field current date +- [`add-date-picker-field-to-pdf.cs`](./add-date-picker-field-to-pdf.cs) -- Add date picker field to pdf +- [`add-dynamic-barcode-field-to-pdf.cs`](./add-dynamic-barcode-field-to-pdf.cs) -- Add dynamic barcode field to pdf +- [`add-dynamic-code128-barcode-to-pdf.cs`](./add-dynamic-code128-barcode-to-pdf.cs) -- Add dynamic code128 barcode to pdf +- [`add-email-validation-to-pdf-form.cs`](./add-email-validation-to-pdf-form.cs) -- Add email validation to pdf form +- [`add-fallback-metadata-to-pdf.cs`](./add-fallback-metadata-to-pdf.cs) -- Add fallback metadata to pdf +- [`add-gender-radio-button-group-to-pdf.cs`](./add-gender-radio-button-group-to-pdf.cs) -- Add gender radio button group to pdf +- [`add-hidden-ip-field-to-pdf.cs`](./add-hidden-ip-field-to-pdf.cs) -- Add hidden ip field to pdf +- [`add-hidden-session-id-field-to-pdf.cs`](./add-hidden-session-id-field-to-pdf.cs) -- Add hidden session id field to pdf +- [`add-hidden-session-identifier-field-to-pdf.cs`](./add-hidden-session-identifier-field-to-pdf.cs) -- Add hidden session identifier field to pdf +- [`add-ipv4-validation-to-pdf-textbox.cs`](./add-ipv4-validation-to-pdf-textbox.cs) -- Add ipv4 validation to pdf textbox +- [`add-javascript-email-validation-to-pdf-form-field.cs`](./add-javascript-email-validation-to-pdf-form-field.cs) -- Add javascript email validation to pdf form field +- [`add-javascript-listener-to-pdf-form-field.cs`](./add-javascript-listener-to-pdf-form-field.cs) -- Add javascript listener to pdf form field +- [`add-javascript-localization-to-pdf-form.cs`](./add-javascript-localization-to-pdf-form.cs) -- Add javascript localization to pdf form +- [`add-listbox-to-pdf-form.cs`](./add-listbox-to-pdf-form.cs) -- Add listbox to pdf form +- [`add-locale-translation-to-pdf-form-label.cs`](./add-locale-translation-to-pdf-form-label.cs) -- Add locale translation to pdf form label +- [`add-multi-select-list-box-max-3.cs`](./add-multi-select-list-box-max-3.cs) -- Add multi select list box max 3 +- [`add-multiline-feedback-text-field.cs`](./add-multiline-feedback-text-field.cs) -- Add multiline feedback text field +- [`add-new-page-with-acroform-fields.cs`](./add-new-page-with-acroform-fields.cs) -- Add new page with acroform fields +- [`add-numeric-field-range-validation.cs`](./add-numeric-field-range-validation.cs) -- Add numeric field range validation +- [`add-numeric-field-with-validation.cs`](./add-numeric-field-with-validation.cs) -- Add numeric field with validation +- [`add-password-textbox-field-to-pdf.cs`](./add-password-textbox-field-to-pdf.cs) -- Add password textbox field to pdf +- [`add-payment-method-radio-button-group.cs`](./add-payment-method-radio-button-group.cs) -- Add payment method radio button group +- [`add-paymentmethod-radio-button-group.cs`](./add-paymentmethod-radio-button-group.cs) -- Add paymentmethod radio button group +- [`add-progress-bar-field-to-pdf-form.cs`](./add-progress-bar-field-to-pdf-form.cs) -- Add progress bar field to pdf form +- [`add-progress-bar-to-pdf-form.cs`](./add-progress-bar-to-pdf-form.cs) -- Add progress bar to pdf form +- [`add-read-only-date-field-to-pdf.cs`](./add-read-only-date-field-to-pdf.cs) -- Add read only date field to pdf +- [`add-reset-button-to-pdf-form.cs`](./add-reset-button-to-pdf-form.cs) -- Add reset button to pdf form +- [`add-reset-button-to-pdf-form__v2.cs`](./add-reset-button-to-pdf-form__v2.cs) -- Add reset button to pdf form v2 +- [`add-signature-field-to-pdf-form.cs`](./add-signature-field-to-pdf-form.cs) -- Add signature field to pdf form +- [`add-signature-field-with-image-stamp.cs`](./add-signature-field-with-image-stamp.cs) -- Add signature field with image stamp +- [`add-submit-button-export-interaction-log.cs`](./add-submit-button-export-interaction-log.cs) -- Add submit button export interaction log +- [`add-submit-button-http-post-pdf-form.cs`](./add-submit-button-http-post-pdf-form.cs) -- Add submit button http post pdf form +- [`add-submit-button-http-post-pdf.cs`](./add-submit-button-http-post-pdf.cs) -- Add submit button http post pdf +- [`add-submit-button-post-form-data-xfdf.cs`](./add-submit-button-post-form-data-xfdf.cs) -- Add submit button post form data xfdf +- [`add-submit-button-to-pdf-form.cs`](./add-submit-button-to-pdf-form.cs) -- Add submit button to pdf form +- [`add-submit-button-to-pdf-form__v2.cs`](./add-submit-button-to-pdf-form__v2.cs) -- Add submit button to pdf form v2 +- [`add-submit-button-to-pdf.cs`](./add-submit-button-to-pdf.cs) -- Add submit button to pdf +- [`add-text-annotation-save-modified-pdf.cs`](./add-text-annotation-save-modified-pdf.cs) -- Add text annotation save modified pdf +- [`add-text-box-field-to-pdf-acroform.cs`](./add-text-box-field-to-pdf-acroform.cs) -- Add text box field to pdf acroform +- [`add-tooltip-to-pdf-form-field.cs`](./add-tooltip-to-pdf-form-field.cs) -- Add tooltip to pdf form field +- [`add-tooltip-to-pdf-form-textbox.cs`](./add-tooltip-to-pdf-form-textbox.cs) -- Add tooltip to pdf form textbox +- [`apply-background-image-to-pdf-form-field.cs`](./apply-background-image-to-pdf-form-field.cs) -- Apply background image to pdf form field +- [`apply-custom-font-to-pdf-form-fields.cs`](./apply-custom-font-to-pdf-form-fields.cs) -- Apply custom font to pdf form fields +- [`apply-digital-signature-to-pdf.cs`](./apply-digital-signature-to-pdf.cs) -- Apply digital signature to pdf +- [`apply-xml-visibility-to-pdf-annotations.cs`](./apply-xml-visibility-to-pdf-annotations.cs) -- Apply xml visibility to pdf annotations +- [`assign-custom-appearance-image-to-pdf-button.cs`](./assign-custom-appearance-image-to-pdf-button.cs) -- Assign custom appearance image to pdf button +- [`assign-javascript-onlostfocus-to-pdf-form-field.cs`](./assign-javascript-onlostfocus-to-pdf-form-field.cs) -- Assign javascript onlostfocus to pdf form field +- [`async-import-xml-form-data-into-pdf.cs`](./async-import-xml-form-data-into-pdf.cs) -- Async import xml form data into pdf +- [`auto-update-qr-code-from-text-field.cs`](./auto-update-qr-code-from-text-field.cs) -- Auto update qr code from text field +- [`batch-convert-pdfs-to-xml.cs`](./batch-convert-pdfs-to-xml.cs) -- Batch convert pdfs to xml +- [`batch-export-pdf-form-data-to-xml.cs`](./batch-export-pdf-form-data-to-xml.cs) -- Batch export pdf form data to xml +- [`batch-fill-identical-form-fields.cs`](./batch-fill-identical-form-fields.cs) -- Batch fill identical form fields +- [`batch-fill-pdf-form-fields.cs`](./batch-fill-pdf-form-fields.cs) -- Batch fill pdf form fields +- [`batch-fill-pdf-forms-from-csv.cs`](./batch-fill-pdf-forms-from-csv.cs) -- Batch fill pdf forms from csv +- [`batch-fill-pdf-forms-from-xml.cs`](./batch-fill-pdf-forms-from-xml.cs) -- Batch fill pdf forms from xml +- [`batch-import-xml-into-pdfs.cs`](./batch-import-xml-into-pdfs.cs) -- Batch import xml into pdfs +- [`batch-set-comments-field-character-limit.cs`](./batch-set-comments-field-character-limit.cs) -- Batch set comments field character limit +- [`batch-set-comments-maxlen.cs`](./batch-set-comments-maxlen.cs) -- Batch set comments maxlen +- [`bind-pdf-with-formeditor-save-modified-pdf.cs`](./bind-pdf-with-formeditor-save-modified-pdf.cs) -- Bind pdf with formeditor save modified pdf +- [`bulk-fill-pdf-form-fields-from-json.cs`](./bulk-fill-pdf-form-fields-from-json.cs) -- Bulk fill pdf form fields from json +- [`bulk-fill-pdf-form-with-json-skip-missing-fields.cs`](./bulk-fill-pdf-form-with-json-skip-missing-fields.cs) -- Bulk fill pdf form with json skip missing fields +- [`calculate-total-price-pdf-form.cs`](./calculate-total-price-pdf-form.cs) -- Calculate total price pdf form +- [`center-align-text-field-in-pdf-form.cs`](./center-align-text-field-in-pdf-form.cs) -- Center align text field in pdf form +- [`center-align-text-field.cs`](./center-align-text-field.cs) -- Center align text field +- [`clone-pdf-form-field-to-another-page.cs`](./clone-pdf-form-field-to-another-page.cs) -- Clone pdf form field to another page +- [`collapse-pdf-outline-section.cs`](./collapse-pdf-outline-section.cs) -- Collapse pdf outline section +- [`compare-pdf-form-data-diff-report.cs`](./compare-pdf-form-data-diff-report.cs) -- Compare pdf form data diff report +- [`conditional-pdf-section-checkbox.cs`](./conditional-pdf-section-checkbox.cs) -- Conditional pdf section checkbox +- [`convert-form-data-json-to-csv.cs`](./convert-form-data-json-to-csv.cs) -- Convert form data json to csv +- [`convert-pdf-form-json-to-csv.cs`](./convert-pdf-form-json-to-csv.cs) -- Convert pdf form json to csv +- [`copy-form-field-to-another-page.cs`](./copy-form-field-to-another-page.cs) -- Copy form field to another page +- [`copy-form-fields-between-pdfs.cs`](./copy-form-fields-between-pdfs.cs) -- Copy form fields between pdfs +- [`copy-form-fields-to-another-pdf.cs`](./copy-form-fields-to-another-pdf.cs) -- Copy form fields to another pdf +- [`create-acroform-textbox-appearance.cs`](./create-acroform-textbox-appearance.cs) -- Create acroform textbox appearance +- [`create-acroform-textbox-with-margins.cs`](./create-acroform-textbox-with-margins.cs) -- Create acroform textbox with margins +- [`create-code128-barcode-linked-to-text-field.cs`](./create-code128-barcode-linked-to-text-field.cs) -- Create code128 barcode linked to text field +- [`create-collapsible-pdf-section.cs`](./create-collapsible-pdf-section.cs) -- Create collapsible pdf section +- [`create-collapsible-section-in-pdf-form.cs`](./create-collapsible-section-in-pdf-form.cs) -- Create collapsible section in pdf form +- [`create-collapsible-section-pdf-form.cs`](./create-collapsible-section-pdf-form.cs) -- Create collapsible section pdf form +- [`create-gender-radio-button-pdf.cs`](./create-gender-radio-button-pdf.cs) -- Create gender radio button pdf +- [`create-hidden-audit-timestamp-field.cs`](./create-hidden-audit-timestamp-field.cs) -- Create hidden audit timestamp field +- [`create-hidden-calculation-field.cs`](./create-hidden-calculation-field.cs) -- Create hidden calculation field +- [`create-localized-pdf-form.cs`](./create-localized-pdf-form.cs) -- Create localized pdf form +- [`create-multi-page-pdf-unique-form-fields.cs`](./create-multi-page-pdf-unique-form-fields.cs) -- Create multi page pdf unique form fields +- [`create-multi-page-pdf-with-acroform-fields.cs`](./create-multi-page-pdf-with-acroform-fields.cs) -- Create multi page pdf with acroform fields +- [`create-multi-page-pdf-with-different-acroform-fields.cs`](./create-multi-page-pdf-with-different-acroform-fields.cs) -- Create multi page pdf with different acroform fields +- [`create-multi-select-list-box.cs`](./create-multi-select-list-box.cs) -- Create multi select list box +- [`create-multi-select-listbox-max-three.cs`](./create-multi-select-listbox-max-three.cs) -- Create multi select listbox max three +- [`create-multi-select-listbox.cs`](./create-multi-select-listbox.cs) -- Create multi select listbox +- [`create-password-protected-pdf-form.cs`](./create-password-protected-pdf-form.cs) -- Create password protected pdf form +- [`create-pdf-acroform-open-js.cs`](./create-pdf-acroform-open-js.cs) -- Create pdf acroform open js +- [`create-pdf-acroform-textbox-absolute-coordinates.cs`](./create-pdf-acroform-textbox-absolute-coordinates.cs) -- Create pdf acroform textbox absolute coordinates +- [`create-pdf-country-dropdown.cs`](./create-pdf-country-dropdown.cs) -- Create pdf country dropdown +- [`create-pdf-date-field-validation.cs`](./create-pdf-date-field-validation.cs) -- Create pdf date field validation +- [`create-pdf-dropdown-country.cs`](./create-pdf-dropdown-country.cs) -- Create pdf dropdown country +- [`create-pdf-form-auto-backup.cs`](./create-pdf-form-auto-backup.cs) -- Create pdf form auto backup +- [`create-pdf-form-digital-signature.cs`](./create-pdf-form-digital-signature.cs) -- Create pdf form digital signature +- [`create-pdf-form-field-formatted-currency.cs`](./create-pdf-form-field-formatted-currency.cs) -- Create pdf form field formatted currency +- [`create-pdf-form-pdf-only-attachment.cs`](./create-pdf-form-pdf-only-attachment.cs) -- Create pdf form pdf only attachment +- [`create-pdf-form-tax-calculation.cs`](./create-pdf-form-tax-calculation.cs) -- Create pdf form tax calculation +- [`create-pdf-form-template-fill-from-json.cs`](./create-pdf-form-template-fill-from-json.cs) -- Create pdf form template fill from json +- [`create-pdf-form-with-analytics.cs`](./create-pdf-form-with-analytics.cs) -- Create pdf form with analytics +- [`create-pdf-form-with-automatic-backup.cs`](./create-pdf-form-with-automatic-backup.cs) -- Create pdf form with automatic backup +- [`create-pdf-form-with-barcode-field.cs`](./create-pdf-form-with-barcode-field.cs) -- Create pdf form with barcode field +- [`create-pdf-form-with-barcode-field__v2.cs`](./create-pdf-form-with-barcode-field__v2.cs) -- Create pdf form with barcode field v2 +- [`create-pdf-form-with-barcode.cs`](./create-pdf-form-with-barcode.cs) -- Create pdf form with barcode +- [`create-pdf-form-with-concatenated-barcode.cs`](./create-pdf-form-with-concatenated-barcode.cs) -- Create pdf form with concatenated barcode +- [`create-pdf-form-with-dynamic-list-box.cs`](./create-pdf-form-with-dynamic-list-box.cs) -- Create pdf form with dynamic list box +- [`create-pdf-form-with-hidden-interaction-log.cs`](./create-pdf-form-with-hidden-interaction-log.cs) -- Create pdf form with hidden interaction log +- [`create-pdf-form-with-password-protection.cs`](./create-pdf-form-with-password-protection.cs) -- Create pdf form with password protection +- [`create-pdf-form-with-qr-code.cs`](./create-pdf-form-with-qr-code.cs) -- Create pdf form with qr code +- [`create-pdf-form-with-required-field-validation.cs`](./create-pdf-form-with-required-field-validation.cs) -- Create pdf form with required field validation +- [`create-pdf-form-with-submit-button.cs`](./create-pdf-form-with-submit-button.cs) -- Create pdf form with submit button +- [`create-pdf-form-with-validation.cs`](./create-pdf-form-with-validation.cs) -- Create pdf form with validation +- [`create-pdf-multi-select-list-box.cs`](./create-pdf-multi-select-list-box.cs) -- Create pdf multi select list box +- [`create-pdf-template-with-form-fields.cs`](./create-pdf-template-with-form-fields.cs) -- Create pdf template with form fields +- [`create-pdf-template-with-form-placeholders.cs`](./create-pdf-template-with-form-placeholders.cs) -- Create pdf template with form placeholders +- [`create-pdf-with-acroform-calculation-js.cs`](./create-pdf-with-acroform-calculation-js.cs) -- Create pdf with acroform calculation js +- [`create-pdf-with-acroform-calculation.cs`](./create-pdf-with-acroform-calculation.cs) -- Create pdf with acroform calculation +- [`create-pdf-with-acroform-fields-custom-tab-order.cs`](./create-pdf-with-acroform-fields-custom-tab-order.cs) -- Create pdf with acroform fields custom tab order +- [`create-pdf-with-acroform-open-js.cs`](./create-pdf-with-acroform-open-js.cs) -- Create pdf with acroform open js +- [`create-pdf-with-acroform-text-field.cs`](./create-pdf-with-acroform-text-field.cs) -- Create pdf with acroform text field +- [`create-pdf-with-acroform-textbox-margins.cs`](./create-pdf-with-acroform-textbox-margins.cs) -- Create pdf with acroform textbox margins +- [`create-pdf-with-acroform-tooltips.cs`](./create-pdf-with-acroform-tooltips.cs) -- Create pdf with acroform tooltips +- [`create-pdf-with-hidden-guid-tracking-field.cs`](./create-pdf-with-hidden-guid-tracking-field.cs) -- Create pdf with hidden guid tracking field +- [`create-pdf-with-top-checkbox.cs`](./create-pdf-with-top-checkbox.cs) -- Create pdf with top checkbox +- [`create-pdf-with-xfa-form.cs`](./create-pdf-with-xfa-form.cs) -- Create pdf with xfa form +- [`create-pdf-with-xmp-metadata-fallback-xml.cs`](./create-pdf-with-xmp-metadata-fallback-xml.cs) -- Create pdf with xmp metadata fallback xml +- [`create-right-aligned-numeric-text-field.cs`](./create-right-aligned-numeric-text-field.cs) -- Create right aligned numeric text field +- [`create-rtl-textbox-form-field.cs`](./create-rtl-textbox-form-field.cs) -- Create rtl textbox form field +- [`date-field-validation-with-regex.cs`](./date-field-validation-with-regex.cs) -- Date field validation with regex +- [`define-calculation-order-for-pdf-form-fields.cs`](./define-calculation-order-for-pdf-form-fields.cs) -- Define calculation order for pdf form fields +- [`delete-form-field-from-pdf.cs`](./delete-form-field-from-pdf.cs) -- Delete form field from pdf +- [`delete-form-field-from-pdf__v2.cs`](./delete-form-field-from-pdf__v2.cs) -- Delete form field from pdf v2 +- [`delete-form-fields-on-page.cs`](./delete-form-fields-on-page.cs) -- Delete form fields on page +- [`detect-flattened-pdf-modify-form-field.cs`](./detect-flattened-pdf-modify-form-field.cs) -- Detect flattened pdf modify form field +- [`digitally-sign-filled-pdf-form.cs`](./digitally-sign-filled-pdf-form.cs) -- Digitally sign filled pdf form +- [`duplicate-pdf-form-field.cs`](./duplicate-pdf-form-field.cs) -- Duplicate pdf form field +- [`duplicate-rename-pdf-form-field.cs`](./duplicate-rename-pdf-form-field.cs) -- Duplicate rename pdf form field +- [`dynamic-listbox-add-item.cs`](./dynamic-listbox-add-item.cs) -- Dynamic listbox add item +- [`enable-spell-checking-textbox-field.cs`](./enable-spell-checking-textbox-field.cs) -- Enable spell checking textbox field +- [`export-acroform-data-to-xfdf-xml.cs`](./export-acroform-data-to-xfdf-xml.cs) -- Export acroform data to xfdf xml +- [`export-acroform-data-to-xfdf.cs`](./export-acroform-data-to-xfdf.cs) -- Export acroform data to xfdf +- [`export-acroform-data-to-xml.cs`](./export-acroform-data-to-xml.cs) -- Export acroform data to xml +- [`export-barcode-fields-to-xml.cs`](./export-barcode-fields-to-xml.cs) -- Export barcode fields to xml +- [`export-conditional-visibility-state-to-xml.cs`](./export-conditional-visibility-state-to-xml.cs) -- Export conditional visibility state to xml +- [`export-form-field-appearances.cs`](./export-form-field-appearances.cs) -- Export form field appearances +- [`export-pdf-barcode-fields-to-xml.cs`](./export-pdf-barcode-fields-to-xml.cs) -- Export pdf barcode fields to xml +- [`export-pdf-conversion-progress-to-xml.cs`](./export-pdf-conversion-progress-to-xml.cs) -- Export pdf conversion progress to xml +- [`export-pdf-digital-signature-to-xml.cs`](./export-pdf-digital-signature-to-xml.cs) -- Export pdf digital signature to xml +- [`export-pdf-form-appearance-to-json.cs`](./export-pdf-form-appearance-to-json.cs) -- Export pdf form appearance to json +- [`export-pdf-form-data-to-indented-json.cs`](./export-pdf-form-data-to-indented-json.cs) -- Export pdf form data to indented json +- [`export-pdf-form-data-to-json-gzip.cs`](./export-pdf-form-data-to-json-gzip.cs) -- Export pdf form data to json gzip +- [`export-pdf-form-data-to-json.cs`](./export-pdf-form-data-to-json.cs) -- Export pdf form data to json +- [`export-pdf-form-data-to-pretty-json.cs`](./export-pdf-form-data-to-pretty-json.cs) -- Export pdf form data to pretty json +- [`export-pdf-form-data-to-xfdf-stream.cs`](./export-pdf-form-data-to-xfdf-stream.cs) -- Export pdf form data to xfdf stream +- [`export-pdf-form-data-to-xfdf.cs`](./export-pdf-form-data-to-xfdf.cs) -- Export pdf form data to xfdf +- [`export-pdf-form-data-to-xml-and-transform.cs`](./export-pdf-form-data-to-xml-and-transform.cs) -- Export pdf form data to xml and transform +- [`export-pdf-form-data-to-xml-custom-root.cs`](./export-pdf-form-data-to-xml-custom-root.cs) -- Export pdf form data to xml custom root +- [`export-pdf-form-data-to-xml.cs`](./export-pdf-form-data-to-xml.cs) -- Export pdf form data to xml +- [`export-pdf-form-data-to-xml__v2.cs`](./export-pdf-form-data-to-xml__v2.cs) -- Export pdf form data to xml v2 +- [`export-pdf-form-data-to-xml__v3.cs`](./export-pdf-form-data-to-xml__v3.cs) -- Export pdf form data to xml v3 +- [`export-pdf-form-field-metadata-to-csv.cs`](./export-pdf-form-field-metadata-to-csv.cs) -- Export pdf form field metadata to csv +- [`export-pdf-form-fields-to-csv.cs`](./export-pdf-form-fields-to-csv.cs) -- Export pdf form fields to csv +- [`export-pdf-form-fields-to-csv__v2.cs`](./export-pdf-form-fields-to-csv__v2.cs) -- Export pdf form fields to csv v2 +- [`export-pdf-form-fields-to-json.cs`](./export-pdf-form-fields-to-json.cs) -- Export pdf form fields to json +- [`export-pdf-form-fields-to-json__v2.cs`](./export-pdf-form-fields-to-json__v2.cs) -- Export pdf form fields to json v2 +- [`export-pdf-form-fields-to-json__v3.cs`](./export-pdf-form-fields-to-json__v3.cs) -- Export pdf form fields to json v3 +- [`export-pdf-form-fields-to-json__v4.cs`](./export-pdf-form-fields-to-json__v4.cs) -- Export pdf form fields to json v4 +- [`export-pdf-form-interaction-log-to-xfdf.cs`](./export-pdf-form-interaction-log-to-xfdf.cs) -- Export pdf form interaction log to xfdf +- [`export-pdf-model-to-xml.cs`](./export-pdf-model-to-xml.cs) -- Export pdf model to xml +- [`export-pdf-signature-to-xml-audit.cs`](./export-pdf-signature-to-xml-audit.cs) -- Export pdf signature to xml audit +- [`export-selected-form-fields-to-xml.cs`](./export-selected-form-fields-to-xml.cs) -- Export selected form fields to xml +- [`export-selected-pdf-form-fields-to-xml.cs`](./export-selected-pdf-form-fields-to-xml.cs) -- Export selected pdf form fields to xml +- [`export-total-price-to-xml.cs`](./export-total-price-to-xml.cs) -- Export total price to xml +- [`extract-signature-field-image.cs`](./extract-signature-field-image.cs) -- Extract signature field image +- [`extract-text-box-form-fields.cs`](./extract-text-box-form-fields.cs) -- Extract text box form fields +- [`extract-transform-import-pdf-form-data.cs`](./extract-transform-import-pdf-form-data.cs) -- Extract transform import pdf form data +- [`extract-xfa-form-data-to-xml.cs`](./extract-xfa-form-data-to-xml.cs) -- Extract xfa form data to xml +- [`fill-and-flatten-pdf-form-fields.cs`](./fill-and-flatten-pdf-form-fields.cs) -- Fill and flatten pdf form fields +- [`fill-pdf-form-and-encrypt.cs`](./fill-pdf-form-and-encrypt.cs) -- Fill pdf form and encrypt +- [`fill-pdf-form-fields-from-byte-array.cs`](./fill-pdf-form-fields-from-byte-array.cs) -- Fill pdf form fields from byte array +- [`fill-pdf-form-fields-from-dictionary.cs`](./fill-pdf-form-fields-from-dictionary.cs) -- Fill pdf form fields from dictionary +- [`fill-pdf-form-fields-from-stream.cs`](./fill-pdf-form-fields-from-stream.cs) -- Fill pdf form fields from stream +- [`fill-pdf-text-field.cs`](./fill-pdf-text-field.cs) -- Fill pdf text field +- [`filter-pdf-form-textbox-fields-using-linq.cs`](./filter-pdf-form-textbox-fields-using-linq.cs) -- Filter pdf form textbox fields using linq +- [`flatten-pdf-form-fields.cs`](./flatten-pdf-form-fields.cs) -- Flatten pdf form fields +- [`flatten-pdf-form-fields__v2.cs`](./flatten-pdf-form-fields__v2.cs) -- Flatten pdf form fields v2 +- [`flatten-pdf-remove-form-fields.cs`](./flatten-pdf-remove-form-fields.cs) -- Flatten pdf remove form fields +- [`generate-csv-summary-of-pdf-form-fields.cs`](./generate-csv-summary-of-pdf-form-fields.cs) -- Generate csv summary of pdf form fields +- [`generate-form-fields-report.cs`](./generate-form-fields-report.cs) -- Generate form fields report +- [`generate-invoice-pdf-with-xml-discounts.cs`](./generate-invoice-pdf-with-xml-discounts.cs) -- Generate invoice pdf with xml discounts +- [`generate-pdf-discount-from-xml.cs`](./generate-pdf-discount-from-xml.cs) -- Generate pdf discount from xml +- [`generate-pdf-form-fields-from-json.cs`](./generate-pdf-form-fields-from-json.cs) -- Generate pdf form fields from json +- [`get-address-field-character-limit.cs`](./get-address-field-character-limit.cs) -- Get address field character limit +- [`hide-pdf-form-field.cs`](./hide-pdf-form-field.cs) -- Hide pdf form field +- [`highlight-mandatory-text-field-border-red.cs`](./highlight-mandatory-text-field-border-red.cs) -- Highlight mandatory text field border red +- [`highlight-required-form-fields.cs`](./highlight-required-form-fields.cs) -- Highlight required form fields +- [`import-acroform-data-from-xfdf-xml.cs`](./import-acroform-data-from-xfdf-xml.cs) -- Import acroform data from xfdf xml +- [`import-acroform-data-from-xml.cs`](./import-acroform-data-from-xml.cs) -- Import acroform data from xml +- [`import-acroform-fields-from-json.cs`](./import-acroform-fields-from-json.cs) -- Import acroform fields from json +- [`import-acroform-fields-from-json__v2.cs`](./import-acroform-fields-from-json__v2.cs) -- Import acroform fields from json v2 +- [`import-annotation-visibility-from-xml.cs`](./import-annotation-visibility-from-xml.cs) -- Import annotation visibility from xml +- [`import-encrypted-xfa-form-data-into-pdf.cs`](./import-encrypted-xfa-form-data-into-pdf.cs) -- Import encrypted xfa form data into pdf +- [`import-encrypted-xfdf-form-data.cs`](./import-encrypted-xfdf-form-data.cs) -- Import encrypted xfdf form data +- [`import-form-appearance-from-json.cs`](./import-form-appearance-from-json.cs) -- Import form appearance from json +- [`import-form-appearances-from-json.cs`](./import-form-appearances-from-json.cs) -- Import form appearances from json +- [`import-form-data-from-compressed-json.cs`](./import-form-data-from-compressed-json.cs) -- Import form data from compressed json +- [`import-form-data-from-json-api.cs`](./import-form-data-from-json-api.cs) -- Import form data from json api +- [`import-form-data-from-json-via-rest-api.cs`](./import-form-data-from-json-via-rest-api.cs) -- Import form data from json via rest api +- [`import-form-data-from-json.cs`](./import-form-data-from-json.cs) -- Import form data from json +- [`import-form-data-from-json__v2.cs`](./import-form-data-from-json__v2.cs) -- Import form data from json v2 +- [`import-form-data-from-xml-with-error-handling.cs`](./import-form-data-from-xml-with-error-handling.cs) -- Import form data from xml with error handling +- [`import-form-fields-from-csv.cs`](./import-form-fields-from-csv.cs) -- Import form fields from csv +- [`import-json-form-data-into-pdf.cs`](./import-json-form-data-into-pdf.cs) -- Import json form data into pdf +- [`import-signature-from-xml.cs`](./import-signature-from-xml.cs) -- Import signature from xml +- [`import-tax-rate-from-xml.cs`](./import-tax-rate-from-xml.cs) -- Import tax rate from xml +- [`import-tax-rate-xml-pdf-hidden-field.cs`](./import-tax-rate-xml-pdf-hidden-field.cs) -- Import tax rate xml pdf hidden field +- [`import-xfa-data-from-xml.cs`](./import-xfa-data-from-xml.cs) -- Import xfa data from xml +- [`import-xfa-form-data-from-xml-string.cs`](./import-xfa-form-data-from-xml-string.cs) -- Import xfa form data from xml string +- [`import-xfa-form-data-with-missing-xml-handling.cs`](./import-xfa-form-data-with-missing-xml-handling.cs) -- Import xfa form data with missing xml handling +- [`import-xfdf-data-into-pdf.cs`](./import-xfdf-data-into-pdf.cs) -- Import xfdf data into pdf +- [`import-xfdf-form-data-into-pdf.cs`](./import-xfdf-form-data-into-pdf.cs) -- Import xfdf form data into pdf +- [`import-xfdf-interaction-log-into-pdf.cs`](./import-xfdf-interaction-log-into-pdf.cs) -- Import xfdf interaction log into pdf +- [`import-xfdf-interaction-logs-into-pdf.cs`](./import-xfdf-interaction-logs-into-pdf.cs) -- Import xfdf interaction logs into pdf +- [`import-xml-form-data-into-multiple-pdfs.cs`](./import-xml-form-data-into-multiple-pdfs.cs) -- Import xml form data into multiple pdfs +- [`import-xml-form-data-into-pdf.cs`](./import-xml-form-data-into-pdf.cs) -- Import xml form data into pdf +- [`import-xml-signature-data-and-sign-pdf.cs`](./import-xml-signature-data-and-sign-pdf.cs) -- Import xml signature data and sign pdf +- [`import-xml-update-pdf-form-fields.cs`](./import-xml-update-pdf-form-fields.cs) -- Import xml update pdf form fields +- [`incremental-update-pdf-form.cs`](./incremental-update-pdf-form.cs) -- Incremental update pdf form +- [`insert-form-field-at-specific-index.cs`](./insert-form-field-at-specific-index.cs) -- Insert form field at specific index +- [`limit-textboxfield-input-length.cs`](./limit-textboxfield-input-length.cs) -- Limit textboxfield input length +- [`list-filled-form-fields-in-pdfs.cs`](./list-filled-form-fields-in-pdfs.cs) -- List filled form fields in pdfs +- [`list-form-field-names-types-char-limits.cs`](./list-form-field-names-types-char-limits.cs) -- List form field names types char limits +- [`list-pdf-form-field-names.cs`](./list-pdf-form-field-names.cs) -- List pdf form field names +- [`lock-all-pdf-form-fields.cs`](./lock-all-pdf-form-fields.cs) -- Lock all pdf form fields +- [`log-form-field-modifications.cs`](./log-form-field-modifications.cs) -- Log form field modifications +- [`log-pdf-form-field-modifications.cs`](./log-pdf-form-field-modifications.cs) -- Log pdf form field modifications +- [`mark-pdf-form-field-as-required.cs`](./mark-pdf-form-field-as-required.cs) -- Mark pdf form field as required +- [`mark-pdf-form-field-required.cs`](./mark-pdf-form-field-required.cs) -- Mark pdf form field required +- [`merge-pdfs-unique-acroform-field-names.cs`](./merge-pdfs-unique-acroform-field-names.cs) -- Merge pdfs unique acroform field names +- [`merge-pdfs-with-acroform-field-renaming.cs`](./merge-pdfs-with-acroform-field-renaming.cs) -- Merge pdfs with acroform field renaming +- [`modify-and-flatten-pdf-form-fields.cs`](./modify-and-flatten-pdf-form-fields.cs) -- Modify and flatten pdf form fields +- [`modify-pdf-form-field.cs`](./modify-pdf-form-field.cs) -- Modify pdf form field +- [`parallel-batch-fill-pdf-form-fields.cs`](./parallel-batch-fill-pdf-form-fields.cs) -- Parallel batch fill pdf form fields +- [`parallel-fill-pdf-form-fields.cs`](./parallel-fill-pdf-form-fields.cs) -- Parallel fill pdf form fields +- [`pdf-form-language-dependent-labels.cs`](./pdf-form-language-dependent-labels.cs) -- Pdf form language dependent labels +- [`pdf-form-pdf-only-attachment-field.cs`](./pdf-form-pdf-only-attachment-field.cs) -- Pdf form pdf only attachment field +- [`populate-combobox-from-database.cs`](./populate-combobox-from-database.cs) -- Populate combobox from database +- [`populate-combobox-from-datatable.cs`](./populate-combobox-from-datatable.cs) -- Populate combobox from datatable +- [`populate-currency-value-in-pdf-form.cs`](./populate-currency-value-in-pdf-form.cs) -- Populate currency value in pdf form +- [`populate-pdf-form-fields-from-csv.cs`](./populate-pdf-form-fields-from-csv.cs) -- Populate pdf form fields from csv +- [`populate-pdf-form-fields-from-dictionary.cs`](./populate-pdf-form-fields-from-dictionary.cs) -- Populate pdf form fields from dictionary +- [`populate-pdf-form-fields-using-xslt.cs`](./populate-pdf-form-fields-using-xslt.cs) -- Populate pdf form fields using xslt +- [`populate-pdf-form-from-csv.cs`](./populate-pdf-form-from-csv.cs) -- Populate pdf form from csv +- [`populate-pdf-form-from-xml-xslt.cs`](./populate-pdf-form-from-xml-xslt.cs) -- Populate pdf form from xml xslt +- [`read-pdf-form-field-value.cs`](./read-pdf-form-field-value.cs) -- Read pdf form field value +- [`remove-form-field-from-pdf.cs`](./remove-form-field-from-pdf.cs) -- Remove form field from pdf +- [`remove-form-fields-first-page.cs`](./remove-form-fields-first-page.cs) -- Remove form fields first page +- [`remove-javascript-actions-from-pdf-form-fields.cs`](./remove-javascript-actions-from-pdf-form-fields.cs) -- Remove javascript actions from pdf form fields +- [`remove-signature-form-fields.cs`](./remove-signature-form-fields.cs) -- Remove signature form fields +- [`remove-typewriter-form-fields-page-3.cs`](./remove-typewriter-form-fields-page-3.cs) -- Remove typewriter form fields page 3 +- [`remove-typewriter-forms-page-3.cs`](./remove-typewriter-forms-page-3.cs) -- Remove typewriter forms page 3 +- [`rename-pdf-form-field.cs`](./rename-pdf-form-field.cs) -- Rename pdf form field +- [`replace-placeholder-with-current-date.cs`](./replace-placeholder-with-current-date.cs) -- Replace placeholder with current date +- [`replace-xfa-with-acroform-xml-template.cs`](./replace-xfa-with-acroform-xml-template.cs) -- Replace xfa with acroform xml template +- [`replace-xfa-with-acroform.cs`](./replace-xfa-with-acroform.cs) -- Replace xfa with acroform +- [`repopulate-pdf-form-fields-from-xml.cs`](./repopulate-pdf-form-fields-from-xml.cs) -- Repopulate pdf form fields from xml +- [`require-signature-field-lock-pdf.cs`](./require-signature-field-lock-pdf.cs) -- Require signature field lock pdf +- [`restore-editability-of-flattened-pdf-form-fields.cs`](./restore-editability-of-flattened-pdf-form-fields.cs) -- Restore editability of flattened pdf form fields +- [`rotate-form-field-label.cs`](./rotate-form-field-label.cs) -- Rotate form field label +- [`save-pdf-incremental-updates.cs`](./save-pdf-incremental-updates.cs) -- Save pdf incremental updates +- [`select-listbox-item-in-pdf-form.cs`](./select-listbox-item-in-pdf-form.cs) -- Select listbox item in pdf form +- [`select-listbox-option-in-pdf-form.cs`](./select-listbox-option-in-pdf-form.cs) -- Select listbox option in pdf form +- [`select-radio-button-in-pdf-form.cs`](./select-radio-button-in-pdf-form.cs) -- Select radio button in pdf form +- [`select-radio-button-option-in-pdf-form.cs`](./select-radio-button-option-in-pdf-form.cs) -- Select radio button option in pdf form +- [`set-beveled-border-on-pdf-form-field.cs`](./set-beveled-border-on-pdf-form-field.cs) -- Set beveled border on pdf form field +- [`set-beveled-border-style-for-pdf-form-field.cs`](./set-beveled-border-style-for-pdf-form-field.cs) -- Set beveled border style for pdf form field +- [`set-calculation-order-for-pdf-form-fields.cs`](./set-calculation-order-for-pdf-form-fields.cs) -- Set calculation order for pdf form fields +- [`set-character-limit-for-pdf-form-field.cs`](./set-character-limit-for-pdf-form-field.cs) -- Set character limit for pdf form field +- [`set-checkbox-default-checked.cs`](./set-checkbox-default-checked.cs) -- Set checkbox default checked +- [`set-checkbox-field-in-pdf.cs`](./set-checkbox-field-in-pdf.cs) -- Set checkbox field in pdf +- [`set-current-date-in-pdf-form-field.cs`](./set-current-date-in-pdf-form-field.cs) -- Set current date in pdf form field +- [`set-custom-font-for-signature-field.cs`](./set-custom-font-for-signature-field.cs) -- Set custom font for signature field +- [`set-dashed-border-for-pdf-form-field.cs`](./set-dashed-border-for-pdf-form-field.cs) -- Set dashed border for pdf form field +- [`set-dashed-border-on-pdf-form-field.cs`](./set-dashed-border-on-pdf-form-field.cs) -- Set dashed border on pdf form field +- [`set-datefield-default-time.cs`](./set-datefield-default-time.cs) -- Set datefield default time +- [`set-default-appearance-for-pdf-form-field.cs`](./set-default-appearance-for-pdf-form-field.cs) -- Set default appearance for pdf form field +- [`set-default-appearance-for-pdf-text-field.cs`](./set-default-appearance-for-pdf-text-field.cs) -- Set default appearance for pdf text field +- [`set-default-combobox-selection.cs`](./set-default-combobox-selection.cs) -- Set default combobox selection +- [`set-default-selected-country-in-pdf-combo-box.cs`](./set-default-selected-country-in-pdf-combo-box.cs) -- Set default selected country in pdf combo box +- [`set-default-selected-radio-button-value.cs`](./set-default-selected-radio-button-value.cs) -- Set default selected radio button value +- [`set-default-value-for-pdf-form-field.cs`](./set-default-value-for-pdf-form-field.cs) -- Set default value for pdf form field +- [`set-default-value-for-pdf-form-textbox.cs`](./set-default-value-for-pdf-form-textbox.cs) -- Set default value for pdf form textbox +- [`set-export-value-radio-button-option.cs`](./set-export-value-radio-button-option.cs) -- Set export value radio button option +- [`set-field-visibility-based-on-other-field.cs`](./set-field-visibility-based-on-other-field.cs) -- Set field visibility based on other field +- [`set-file-attachment-size-limit.cs`](./set-file-attachment-size-limit.cs) -- Set file attachment size limit +- [`set-font-size-style-pdf-text-field.cs`](./set-font-size-style-pdf-text-field.cs) -- Set font size style pdf text field +- [`set-font-size-style-pdf-textbox-field.cs`](./set-font-size-style-pdf-textbox-field.cs) -- Set font size style pdf textbox field +- [`set-form-field-appearance-custom-font.cs`](./set-form-field-appearance-custom-font.cs) -- Set form field appearance custom font +- [`set-form-field-border-color-width.cs`](./set-form-field-border-color-width.cs) -- Set form field border color width +- [`set-form-field-visibility-based-on-another-field.cs`](./set-form-field-visibility-based-on-another-field.cs) -- Set form field visibility based on another field +- [`set-form-field-visible-non-printable.cs`](./set-form-field-visible-non-printable.cs) -- Set form field visible non printable +- [`set-initial-zoom-level-for-pdf-form.cs`](./set-initial-zoom-level-for-pdf-form.cs) -- Set initial zoom level for pdf form +- [`set-max-file-size-for-pdf-form-attachment.cs`](./set-max-file-size-for-pdf-form-attachment.cs) -- Set max file size for pdf form attachment +- [`set-max-length-for-pdf-text-field.cs`](./set-max-length-for-pdf-text-field.cs) -- Set max length for pdf text field +- [`set-max-length-pdf-text-form-field.cs`](./set-max-length-pdf-text-form-field.cs) -- Set max length pdf text form field +- [`set-max-length-pdf-textbox-field.cs`](./set-max-length-pdf-textbox-field.cs) -- Set max length pdf textbox field +- [`set-noexport-flag-for-sensitive-pdf-form-fields.cs`](./set-noexport-flag-for-sensitive-pdf-form-fields.cs) -- Set noexport flag for sensitive pdf form fields +- [`set-password-field-max-length.cs`](./set-password-field-max-length.cs) -- Set password field max length +- [`set-pdf-checkbox-field.cs`](./set-pdf-checkbox-field.cs) -- Set pdf checkbox field +- [`set-pdf-form-field-read-only.cs`](./set-pdf-form-field-read-only.cs) -- Set pdf form field read only +- [`set-pdf-form-field-read-only__v2.cs`](./set-pdf-form-field-read-only__v2.cs) -- Set pdf form field read only v2 +- [`set-pdf-form-fields-read-only.cs`](./set-pdf-form-fields-read-only.cs) -- Set pdf form fields read only +- [`set-pdf-metadata-after-form-filling.cs`](./set-pdf-metadata-after-form-filling.cs) -- Set pdf metadata after form filling +- [`set-pdf-metadata-after-form-processing.cs`](./set-pdf-metadata-after-form-processing.cs) -- Set pdf metadata after form processing +- [`set-rich-text-field-html.cs`](./set-rich-text-field-html.cs) -- Set rich text field html +- [`set-tooltip-for-pdf-email-field.cs`](./set-tooltip-for-pdf-email-field.cs) -- Set tooltip for pdf email field +- [`sign-pdf-and-lock-signature-field.cs`](./sign-pdf-and-lock-signature-field.cs) -- Sign pdf and lock signature field +- [`style-pdf-form-field-border.cs`](./style-pdf-form-field-border.cs) -- Style pdf form field border +- [`synchronize-pdf-form-data-using-xfdf.cs`](./synchronize-pdf-form-data-using-xfdf.cs) -- Synchronize pdf form data using xfdf +- [`synchronize-pdf-form-data-xfdf.cs`](./synchronize-pdf-form-data-xfdf.cs) -- Synchronize pdf form data xfdf +- [`synchronize-xfdf-form-data-across-multiple-pdfs.cs`](./synchronize-xfdf-form-data-across-multiple-pdfs.cs) -- Synchronize xfdf form data across multiple pdfs +- [`transform-import-pdf-form-data-json.cs`](./transform-import-pdf-form-data-json.cs) -- Transform import pdf form data json +- [`truncate-textboxfield-input-to-max-length.cs`](./truncate-textboxfield-input-to-max-length.cs) -- Truncate textboxfield input to max length +- [`update-pdf-form-fields-from-xml.cs`](./update-pdf-form-fields-from-xml.cs) -- Update pdf form fields from xml +- [`update-pdf-form-fields.cs`](./update-pdf-form-fields.cs) -- Update pdf form fields +- [`validate-age-numberfield-non-numeric-input.cs`](./validate-age-numberfield-non-numeric-input.cs) -- Validate age numberfield non numeric input +- [`validate-date-field-minimum-date.cs`](./validate-date-field-minimum-date.cs) -- Validate date field minimum date +- [`validate-email-field-before-saving-pdf.cs`](./validate-email-field-before-saving-pdf.cs) -- Validate email field before saving pdf +- [`validate-email-form-field.cs`](./validate-email-form-field.cs) -- Validate email form field +- [`validate-file-attachment-size-in-pdf-form.cs`](./validate-file-attachment-size-in-pdf-form.cs) -- Validate file attachment size in pdf form +- [`validate-incorrect-password-prevents-access.cs`](./validate-incorrect-password-prevents-access.cs) -- Validate incorrect password prevents access +- [`validate-ipv4-address-in-pdf-form-field.cs`](./validate-ipv4-address-in-pdf-form-field.cs) -- Validate ipv4 address in pdf form field +- [`validate-numeric-age-field-rejects-non-numeric-input.cs`](./validate-numeric-age-field-rejects-non-numeric-input.cs) -- Validate numeric age field rejects non numeric input +- [`validate-pdf-file-size.cs`](./validate-pdf-file-size.cs) -- Validate pdf file size +- [`validate-required-form-fields.cs`](./validate-required-form-fields.cs) -- Validate required form fields +- [`validate-required-pdf-form-field.cs`](./validate-required-pdf-form-field.cs) -- Validate required pdf form field +- [`validate-required-pdf-form-fields-before-export.cs`](./validate-required-pdf-form-fields-before-export.cs) -- Validate required pdf form fields before export +- [`validate-required-pdf-form-fields-export-json.cs`](./validate-required-pdf-form-fields-export-json.cs) -- Validate required pdf form fields export json +- [`validate-required-pdf-form-fields.cs`](./validate-required-pdf-form-fields.cs) -- Validate required pdf form fields +- [`validate-xml-xsd-fill-xfa-pdf.cs`](./validate-xml-xsd-fill-xfa-pdf.cs) -- Validate xml xsd fill xfa pdf +- [`validate-xml-xsd-import-pdf-xfa.cs`](./validate-xml-xsd-import-pdf-xfa.cs) -- Validate xml xsd import pdf xfa +- [`verify-pdf-form-field-count.cs`](./verify-pdf-form-field-count.cs) -- Verify pdf form field count + +## See Also + +- [`AGENTS.md`](./AGENTS.md) -- category-specific anti-patterns, API surface, and conventions for AI coding agents +- [`../AGENTS.md`](../AGENTS.md) -- repository-wide agent guide +- [`../README.md`](../README.md) -- full category index and project overview +- [Aspose.PDF for .NET docs](https://docs.aspose.com/pdf/net/) + +> Each `.cs` file is a standalone, build-validated console example. Drop into a fresh `dotnet new console` project, add the `Aspose.PDF` NuGet (version above), and run. diff --git a/working-with-forms/index.json b/working-with-forms/index.json index e28ced2fd..04b32055b 100644 --- a/working-with-forms/index.json +++ b/working-with-forms/index.json @@ -1,1613 +1,1905 @@ { "category": "working-with-forms", "nuget_version": "26.8.0", - "last_updated": "2026-08-20T08:40:37Z", + "last_updated": "2026-09-10T12:45:08Z", "examples": { - "add-text-box-field-to-pdf-acroform": { - "title": "Add Text Box Field to PDF AcroForm", - "filename": "add-text-box-field-to-pdf-acroform.cs", - "description": "Demonstrates creating a new PDF, adding a blank page, and placing a text box (AcroForm) on the first page using Aspose.Pdf.", + "acroform-with-margins": { + "title": "Create AcroForm TextBox Positioned by Page Margins", + "filename": "acroform-with-margins.cs", + "description": "Shows how to generate a PDF with an AcroForm text box whose position is calculated relative to the page margins using Aspose.Pdf.", "tags": [ "acroform", - "textbox", "pdf", - "aspose.pdf", - "csharp" + "margin", + "textbox", + "positioning" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.MarginInfo", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Document.Form.Add", + "Aspose.Pdf.Form.Add", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "create-pdf-with-top-checkbox": { - "title": "Create PDF with Top‑Positioned Checkbox Field", - "filename": "create-pdf-with-top-checkbox.cs", - "description": "Shows how to create a new PDF document, add an AcroForm, and place a checkbox field near the top of the page.", + "add-acroform-textbox-absolute-coordinates": { + "title": "Add Acroform Textbox Absolute Coordinates", + "filename": "add-acroform-textbox-absolute-coordinates.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-auto-updating-date-time-field-to-pdf": { + "title": "Add Auto Updating Date Time Field To Pdf", + "filename": "add-auto-updating-date-time-field-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-auto-updating-datetime-field-to-pdf": { + "title": "Add Auto‑Updating Date/Time Field to PDF", + "filename": "add-auto-updating-datetime-field-to-pdf.cs", + "description": "Demonstrates inserting a DateField into a PDF and attaching a JavaScript OpenAction that refreshes the field with the viewer's current date and time each time the document is opened.", "tags": [ - "acroform", - "checkbox", "pdf", - "aspose-pdf", - "form-field" + "datefield", + "javascript", + "form", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", + "Aspose.Pdf.Forms.DateField", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.CheckboxField", - "Aspose.Pdf.Form.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Document.OpenAction" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "add-gender-radio-button-group-to-pdf": { - "title": "Add Gender Radio Button Group to PDF", - "filename": "add-gender-radio-button-group-to-pdf.cs", - "description": "Demonstrates creating a new PDF document with an AcroForm and adding a gender selection radio button group (Male/Female).", + "add-blank-page-save-as-new-pdf": { + "title": "Add Blank Page and Save PDF as New File", + "filename": "add-blank-page-save-as-new-pdf.cs", + "description": "The example loads an existing PDF, adds a blank page, and saves the modified document to a new file, preserving the original PDF unchanged.", "tags": [ "pdf", - "acroform", - "radiobutton", - "aspose.pdf", - "c#" + "aspose-pdf", + "add-page", + "save-as", + "preserve-original" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.RadioButtonField", - "Aspose.Pdf.Forms.RadioButtonField.AddOption", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Document.Pages.Add", + "Aspose.Pdf.Document.Dispose" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "add-listbox-to-pdf-form": { - "title": "Add List Box Field to PDF AcroForm", - "filename": "add-listbox-to-pdf-form.cs", - "description": "Demonstrates how to create a PDF document, add an AcroForm list box with country options, and save the file using Aspose.Pdf.", + "add-blank-page-to-pdf-form": { + "title": "Add Blank Page to PDF Form", + "filename": "add-blank-page-to-pdf-form.cs", + "description": "Shows how to load an existing PDF that contains form fields, append a new blank page, and save the document while preserving all existing fields.", "tags": [ - "listbox", - "acroform", "pdf", - "forms", - "aspose-pdf" + "form", + "add-page", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.ListBoxField", - "Aspose.Pdf.Forms.ListBoxField.AddOption", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Document.Pages.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "create-acroform-textbox-appearance": { - "title": "Create AcroForm TextBox with Font and Color", - "filename": "create-acroform-textbox-appearance.cs", - "description": "Demonstrates how to create a new PDF, add an AcroForm text box field, and customize its appearance including font, size, text color, and border.", + "add-calculated-total-field-to-pdf-form": { + "title": "Add Calculated Total Field To Pdf Form", + "filename": "add-calculated-total-field-to-pdf-form.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-calculated-total-field-with-javascript": { + "title": "Add Calculated Total Field with JavaScript in PDF Form", + "filename": "add-calculated-total-field-with-javascript.cs", + "description": "Shows how to create numeric input fields and a read‑only total field that automatically sums them using JavaScript in an Aspose.Pdf document.", "tags": [ - "acroform", - "textbox", - "appearance", - "font", - "color" + "pdf", + "form", + "calculated-field", + "javascript", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.DefaultAppearance", - "Aspose.Pdf.Forms.Border", - "Aspose.Pdf.Color" + "Aspose.Pdf.Forms.NumberField", + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Forms.Form" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "fill-pdf-text-field": { - "title": "Fill a PDF Text Field with Aspose.Pdf", - "filename": "fill-pdf-text-field.cs", - "description": "Shows how to load an existing PDF, locate a text form field by its name, assign a string value, and save the modified document.", + "add-calculated-total-price-field-to-pdf-form": { + "title": "Add Calculated Total Price Field to PDF Form", + "filename": "add-calculated-total-price-field-to-pdf-form.cs", + "description": "Demonstrates how to add quantity, unit price, and a read‑only calculated total price field to a PDF using Aspose.Pdf, with JavaScript for automatic calculation.", "tags": [ "pdf", "form", - "fill-field", - "aspose", - "csharp" + "calculated-field", + "javascript", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Forms.Field.Value", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.NumberField", + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Rectangle" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "set-checkbox-field-in-pdf": { - "title": "Set Checkbox Field Value in PDF", - "filename": "set-checkbox-field-in-pdf.cs", - "description": "Loads an existing PDF, locates a checkbox form field, sets its checked state based on a command‑line argument, and saves the modified document.", + "add-calculation-button-to-pdf-form": { + "title": "Add Calculation Button to PDF Form", + "filename": "add-calculation-button-to-pdf-form.cs", + "description": "Shows how to create a push‑button in an existing PDF form and attach JavaScript that reads Quantity and UnitPrice fields, computes the total, and writes the result back to the Total field.", "tags": [ "pdf", "form", - "checkbox", - "aspose.pdf", - "csharp" + "javascript", + "button", + "calculation" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.CheckboxField", - "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.ButtonField", + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Forms.Form.Add", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "select-radio-button-option-in-pdf-form": { - "title": "Select Radio Button Option in PDF Form", - "filename": "select-radio-button-option-in-pdf-form.cs", - "description": "Demonstrates how to load an existing PDF, locate a radio button field, set a specific option, and save the updated document using Aspose.Pdf.", + "add-checkbox-field-to-pdf-form": { + "title": "Add Checkbox Field to PDF Form", + "filename": "add-checkbox-field-to-pdf-form.cs", + "description": "Shows how to load an existing PDF, create a CheckboxField, add it to the document's form, and save the modified file.", "tags": [ - "pdf", + "checkbox", "form", - "radiobutton", - "aspose.pdf", + "pdf", + "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Forms.RadioButtonField", - "Aspose.Pdf.Forms.RadioButtonField.Selected", - "Aspose.Pdf.Forms.RadioButtonField.Count" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.CheckboxField", + "Aspose.Pdf.Forms.Form.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "select-listbox-option-in-pdf-form": { - "title": "Select ListBox Option in PDF Form", - "filename": "select-listbox-option-in-pdf-form.cs", - "description": "Shows how to load a PDF, locate a ListBox form field, set its selected option by index, and save the modified document.", + "add-current-time-datefield-to-pdf": { + "title": "Add Current Time DateField to PDF on Load", + "filename": "add-current-time-datefield-to-pdf.cs", + "description": "Demonstrates how to create a DateField in a PDF using Aspose.Pdf, set its display format to HH:mm:ss, and assign the current system time as the default value when the document is loaded.", "tags": [ - "pdf", - "listbox", - "form", - "aspose", + "datefield", + "pdf-forms", + "aspose-pdf", + "current-time", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.ListBoxField", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Forms.ListBoxField.Options", - "Aspose.Pdf.Forms.ListBoxField.Selected", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.DateField", + "Aspose.Pdf.Forms.DefaultAppearance", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "populate-pdf-form-fields-from-dictionary": { - "title": "Populate PDF Form Fields from Dictionary", - "filename": "populate-pdf-form-fields-from-dictionary.cs", - "description": "Shows how to load a PDF, iterate over its form fields, assign values from a dictionary of field names, and save the updated document.", + "add-date-field-validation": { + "title": "Add Date Field with Validation to PDF", + "filename": "add-date-field-validation.cs", + "description": "Creates a PDF with a date form field and attaches JavaScript that blocks dates earlier than January 1, 2000.", "tags": [ "pdf", - "form", - "fill", - "dictionary", - "aspose" + "datefield", + "validation", + "javascript", + "forms" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Forms.Field.FullName", - "Aspose.Pdf.Forms.Field.Value" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.DateField", + "Aspose.Pdf.Forms.JavascriptAction", + "Aspose.Pdf.Forms.FieldActions" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "read-pdf-form-field-value": { - "title": "Read PDF Form Field Value", - "filename": "read-pdf-form-field-value.cs", - "description": "Loads a PDF document, finds a form field by its name, extracts the field's value, and prints it to the console.", + "add-date-picker-field-current-date": { + "title": "Add Date Picker Field with Current Date to PDF", + "filename": "add-date-picker-field-current-date.cs", + "description": "Shows how to insert a date picker form field into a PDF and set its default value to the current system date using Aspose.Pdf.", "tags": [ - "pdf", - "form", - "field", - "aspose", - "read" + "datefield", + "pdf-form", + "aspose-pdf", + "csharp", + "default-value" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Field" + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.DateField", + "Document.Save", + "Document.Form.Add", + "DateField.Init" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "export-pdf-form-fields-to-json": { - "title": "Export PDF Form Fields to JSON", - "filename": "export-pdf-form-fields-to-json.cs", - "description": "Loads a PDF document, extracts all form field values, and serializes them into a JSON string using Aspose.Pdf.", + "add-date-picker-field-to-pdf": { + "title": "Add Date Picker Field to PDF", + "filename": "add-date-picker-field-to-pdf.cs", + "description": "Shows how to create a DateField on an existing PDF, configure its appearance, initialize it, and attach JavaScript to launch the built‑in date picker when the field is activated.", "tags": [ + "datefield", + "javascript", + "form", "pdf", - "form-fields", - "json", - "export", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Form", - "Aspose.Pdf.Form.ExportToJson" + "Aspose.Pdf.Forms.DateField", + "Aspose.Pdf.Forms.Border", + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Rectangle" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "export-pdf-form-data-to-xml": { - "title": "Export PDF Form Data to XML", - "filename": "export-pdf-form-data-to-xml.cs", - "description": "Shows how to load a PDF document with Aspose.Pdf and export its form fields to an XML file.", + "add-dynamic-barcode-field-to-pdf": { + "title": "Add Dynamic Barcode Field to PDF", + "filename": "add-dynamic-barcode-field-to-pdf.cs", + "description": "Shows how to load a PDF template, generate a unique value at runtime, create a Code128 barcode field on a page, and save the document with the barcode embedded.", "tags": [ + "barcode", "pdf", - "form", - "xml", - "export", - "aspose-pdf" + "forms", + "dynamic", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.SaveXml" + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.BarcodeField", + "Aspose.Pdf.Forms.BarcodeField.AddBarcode", + "Aspose.Pdf.Color", + "Aspose.Pdf.Page.Annotations.Add", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "import-xfdf-form-data-into-pdf": { - "title": "Import XFDF Form Data into a PDF", - "filename": "import-xfdf-form-data-into-pdf.cs", - "description": "Shows how to load a PDF document, read field values from an XFDF (XML) file, and automatically populate matching form fields using Aspose.Pdf.", + "add-dynamic-code128-barcode-to-pdf": { + "title": "Add Dynamic Code128 Barcode Linked to a Text Field", + "filename": "add-dynamic-code128-barcode-to-pdf.cs", + "description": "Shows how to insert a Code128 barcode field into a PDF and keep it updated automatically when a source text field changes, using JavaScript actions.", "tags": [ - "xfdf", - "form-fields", - "pdf", - "import", + "barcode", + "form", + "javascript", + "code128", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Annotations.XfdfReader", - "Aspose.Pdf.Annotations.XfdfReader.ReadFields" + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.BarcodeField", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Forms.BarcodeField.AddBarcode" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "export-pdf-form-data-to-json": { - "title": "Export PDF Form Data to JSON", - "filename": "export-pdf-form-data-to-json.cs", - "description": "Shows how to load a PDF, export its form fields to a JSON string, and write the JSON to a file using Aspose.Pdf.", + "add-email-validation-to-pdf-form": { + "title": "Add Email Validation To Pdf Form", + "filename": "add-email-validation-to-pdf-form.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-fallback-metadata-to-pdf": { + "title": "Add Fallback Metadata to PDF from XML", + "filename": "add-fallback-metadata-to-pdf.cs", + "description": "Shows how to load XML metadata, create missing required fields with default values, and write the values into a PDF's XMP metadata using Aspose.Pdf.", "tags": [ "pdf", - "form", - "json", - "export", - "aspose" + "metadata", + "xml", + "fallback", + "xmp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Form", - "Aspose.Pdf.Form.ExportToJson" + "Aspose.Pdf.Document.Metadata", + "Aspose.Pdf.Document.Metadata.RegisterNamespaceUri", + "Aspose.Pdf.Document.Metadata.Item", + "Aspose.Pdf.XmpPdfAExtensionSchema" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "import-json-form-data-into-pdf": { - "title": "Import JSON Form Data into PDF", - "filename": "import-json-form-data-into-pdf.cs", - "description": "Shows how to load a PDF, import form field values from a JSON string using Aspose.Pdf's ImportFromJson method, and save the updated document.", + "add-gender-radio-button-group-to-pdf": { + "title": "Add Gender Radio Button Group to PDF", + "filename": "add-gender-radio-button-group-to-pdf.cs", + "description": "Demonstrates creating a new PDF document with an AcroForm and adding a gender selection radio button group (Male/Female).", "tags": [ - "json", - "form", - "import", "pdf", - "aspose" + "acroform", + "radiobutton", + "aspose.pdf", + "c#" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Form", - "Aspose.Pdf.Form.ImportFromJson", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.RadioButtonField", + "Aspose.Pdf.Forms.RadioButtonField.AddOption", + "Aspose.Pdf.Document.Form", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "add-blank-page-to-pdf-form": { - "title": "Add Blank Page to PDF Form", - "filename": "add-blank-page-to-pdf-form.cs", - "description": "Shows how to load an existing PDF that contains form fields, append a new blank page, and save the document while preserving all existing fields.", + "add-hidden-ip-field-to-pdf": { + "title": "Add Hidden IP Address Field to PDF with JavaScript", + "filename": "add-hidden-ip-field-to-pdf.cs", + "description": "Shows how to insert a hidden text box field into a PDF and attach JavaScript that captures the user's IP address when the document is opened.", "tags": [ "pdf", "form", - "add-page", - "aspose-pdf", - "csharp" + "hidden-field", + "javascript", + "ip-address" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Forms.TextBoxField.ExecuteFieldJavaScript", + "Aspose.Pdf.Forms.Form.Add", + "Aspose.Pdf.Forms.Form.AddFieldAppearance" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "add-new-page-with-acroform-fields": { - "title": "Add a New Page with AcroForm Fields to PDF", - "filename": "add-new-page-with-acroform-fields.cs", - "description": "Demonstrates how to append a blank page to an existing PDF and place fresh AcroForm fields (text box and checkbox) on that page using Aspose.Pdf.", + "add-hidden-session-id-field-to-pdf": { + "title": "Add Hidden Session ID Field to PDF", + "filename": "add-hidden-session-id-field-to-pdf.cs", + "description": "Shows how to insert a hidden text box form field into an existing PDF document to store a session identifier for backend tracking.", "tags": [ "pdf", - "acroform", - "add-page", - "form-fields", + "hidden-field", + "session-id", + "forms", "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.CheckboxField", - "Aspose.Pdf.Forms.DefaultAppearance", - "Aspose.Pdf.Form" + "Aspose.Pdf.Annotations.AnnotationFlags", + "Aspose.Pdf.Form", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "delete-form-field-from-pdf": { - "title": "Delete a Form Field from a PDF", - "filename": "delete-form-field-from-pdf.cs", - "description": "Demonstrates how to remove a specific form field from an existing PDF using Aspose.Pdf by checking for the field's existence and saving the modified document.", + "add-hidden-session-identifier-field-to-pdf": { + "title": "Add Hidden Session Identifier Field To Pdf", + "filename": "add-hidden-session-identifier-field-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-ipv4-validation-to-pdf-textbox": { + "title": "Add Ipv4 Validation To Pdf Textbox", + "filename": "add-ipv4-validation-to-pdf-textbox.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-javascript-email-validation-to-pdf-form-field": { + "title": "Add JavaScript Email Validation to PDF Form Field", + "filename": "add-javascript-email-validation-to-pdf-form-field.cs", + "description": "Shows how to load a PDF, locate the 'Email' form field, attach a JavaScript OnValidate action that checks for an '@' character, and save the updated document.", "tags": [ "pdf", "form", - "delete", - "field", - "Aspose.Pdf" + "javascript", + "validation", + "email" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Form.HasField", - "Aspose.Pdf.Form.Delete", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.FieldActions", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "flatten-pdf-remove-form-fields": { - "title": "Flatten PDF to Remove All Form Fields", - "filename": "flatten-pdf-remove-form-fields.cs", - "description": "Demonstrates how to load a PDF with Aspose.Pdf, flatten it to delete all interactive form fields, and save the resulting plain PDF.", + "add-javascript-listener-to-pdf-form-field": { + "title": "Add JavaScript Listener to PDF Form Field", + "filename": "add-javascript-listener-to-pdf-form-field.cs", + "description": "Shows how to attach a JavaScript action to a PDF form field using Aspose.Pdf so the script runs when the field value changes.", "tags": [ "pdf", - "forms", - "flatten", - "aspose-pdf", - "csharp" + "javascript", + "form-field", + "validation", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Flatten", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.JavascriptAction", + "Aspose.Pdf.Forms.FieldActions", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "set-form-field-border-color-width": { - "title": "Set Form Field Border Color and Width", - "filename": "set-form-field-border-color-width.cs", - "description": "Shows how to load a PDF, locate a form field, and apply a corporate‑style solid blue border with a specific width using Aspose.Pdf.", + "add-javascript-localization-to-pdf-form": { + "title": "Add JavaScript Localization to PDF Form", + "filename": "add-javascript-localization-to-pdf-form.cs", + "description": "Demonstrates embedding a JavaScript dictionary of translations into a PDF and updating a form field based on the selected locale using Aspose.Pdf.", "tags": [ - "form", - "border", - "style", + "javascript", "pdf", - "aspose" + "localization", + "form", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Annotations.Border", - "Aspose.Pdf.Color", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.JavaScriptCollection", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "highlight-required-form-fields": { - "title": "Highlight Required Form Fields in PDF", - "filename": "highlight-required-form-fields.cs", - "description": "Shows how to load a PDF, locate required form fields, and change their color (and border width) to highlight them before saving the document.", + "add-listbox-to-pdf-form": { + "title": "Add List Box Field to PDF AcroForm", + "filename": "add-listbox-to-pdf-form.cs", + "description": "Demonstrates how to create a PDF document, add an AcroForm list box with country options, and save the file using Aspose.Pdf.", "tags": [ + "listbox", + "acroform", "pdf", - "form", - "highlight", - "required", - "aspose" + "forms", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Color", - "Aspose.Pdf.Forms.Border" + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.ListBoxField", + "Aspose.Pdf.Forms.ListBoxField.AddOption", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "set-font-size-style-pdf-textbox-field": { - "title": "Set Font Size and Style for PDF TextBox Field", - "filename": "set-font-size-style-pdf-textbox-field.cs", - "description": "Shows how to adjust minimum/maximum font sizes, define a default appearance, and apply rich‑text styling to a TextBox form field in a PDF using Aspose.Pdf.", + "add-locale-translation-to-pdf-form-label": { + "title": "Add Locale Translation To Pdf Form Label", + "filename": "add-locale-translation-to-pdf-form-label.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-multi-select-list-box-max-3": { + "title": "Add Multi-Select List Box with Max 3 Selections to PDF", + "filename": "add-multi-select-list-box-max-3.cs", + "description": "Demonstrates creating a ListBoxField in a PDF, enabling multi‑selection, adding options, and limiting the selected items to three using Aspose.Pdf.", "tags": [ + "listbox", + "multiselect", "pdf", - "form", - "font", - "appearance", - "rich-text" + "forms", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Text.DefaultAppearance", - "Aspose.Pdf.Forms.RichTextBoxField", + "Aspose.Pdf.Forms.ListBoxField", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.ListBoxField.AddOption", + "Aspose.Pdf.Forms.ListBoxField.SelectedItems", + "Aspose.Pdf.Forms.ListBoxField.MultiSelect", + "Aspose.Pdf.Page.Annotations.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "set-pdf-form-field-read-only": { - "title": "Set PDF Form Field to Read‑Only", - "filename": "set-pdf-form-field-read-only.cs", - "description": "Shows how to load a PDF, locate a text box form field, mark it as read‑only, and save the updated document.", + "add-multiline-feedback-text-field": { + "title": "Add Multiline Feedback Text Field to PDF", + "filename": "add-multiline-feedback-text-field.cs", + "description": "Demonstrates how to add a multiline TextBoxField named 'Feedback' with a 500‑character limit to an existing PDF using Aspose.Pdf.", "tags": [ "pdf", "form", - "readonly", - "aspose-pdf", - "csharp" + "textbox", + "multiline", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Form" + "Aspose.Pdf.Form.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "mark-pdf-form-field-as-required": { - "title": "Mark PDF Form Field as Required", - "filename": "mark-pdf-form-field-as-required.cs", - "description": "Shows how to set the Required property on an existing PDF form field using Aspose.Pdf, and how to create a new required TextBoxField when the field is missing.", + "add-new-page-with-acroform-fields": { + "title": "Add a New Page with AcroForm Fields to PDF", + "filename": "add-new-page-with-acroform-fields.cs", + "description": "Demonstrates how to append a blank page to an existing PDF and place fresh AcroForm fields (text box and checkbox) on that page using Aspose.Pdf.", "tags": [ "pdf", - "form", - "required", - "aspose.pdf", - "csharp" + "acroform", + "add-page", + "form-fields", + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Page", "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.CheckboxField", + "Aspose.Pdf.Forms.DefaultAppearance", + "Aspose.Pdf.Form" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T08:40:37Z", + "status": "verified" + }, + "add-numeric-field-range-validation": { + "title": "Add Numeric Field Range Validation", + "filename": "add-numeric-field-range-validation.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-numeric-field-with-validation": { + "title": "Add Numeric Field with Validation to PDF", + "filename": "add-numeric-field-with-validation.cs", + "description": "Shows how to insert a numeric form field into a PDF and attach JavaScript validation that restricts the value to a range of 0 to 1000.", + "tags": [ + "pdf", + "form-field", + "validation", + "javascript", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.NumberField", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Forms.FieldActions" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "add-tooltip-to-pdf-form-textbox": { - "title": "Add Tooltip to PDF Form Text Box", - "filename": "add-tooltip-to-pdf-form-textbox.cs", - "description": "Shows how to create a text box field in a PDF form and set its tooltip (alternate name) using Aspose.Pdf.", + "add-password-textbox-field-to-pdf": { + "title": "Add Password TextBox Field to PDF", + "filename": "add-password-textbox-field-to-pdf.cs", + "description": "Shows how to create a read‑only text box form field in a PDF, set its value as a password, and save the document using Aspose.Pdf.", "tags": [ "pdf", - "tooltip", "form", + "password", "textbox", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.Form", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Color" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "set-default-value-for-pdf-form-textbox": { - "title": "Set Default Value for PDF Form TextBox", - "filename": "set-default-value-for-pdf-form-textbox.cs", - "description": "Shows how to create a PDF document, add a TextBox form field, set its default appearance, and define a default value that appears when the PDF is opened.", + "add-payment-method-radio-button-group": { + "title": "Add Payment Method Radio Button Group", + "filename": "add-payment-method-radio-button-group.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-paymentmethod-radio-button-group": { + "title": "Add PaymentMethod Radio Button Group to PDF", + "filename": "add-paymentmethod-radio-button-group.cs", + "description": "Demonstrates creating a PDF document with a radio button group named 'PaymentMethod' containing 'Credit' and 'Debit' options, and saving the file.", "tags": [ + "radio-button", "pdf-form", - "default-value", - "textbox", "aspose-pdf", - "csharp" + "csharp", + "payment-method" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.Forms.RadioButtonField", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.DefaultAppearance", - "Aspose.Pdf.Form", + "Aspose.Pdf.Forms.RadioButtonField.AddOption", + "Aspose.Pdf.Form.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "add-blank-page-save-as-new-pdf": { - "title": "Add Blank Page and Save PDF as New File", - "filename": "add-blank-page-save-as-new-pdf.cs", - "description": "The example loads an existing PDF, adds a blank page, and saves the modified document to a new file, preserving the original PDF unchanged.", + "add-progress-bar-field-to-pdf-form": { + "title": "Add Progress Bar Field to PDF Form", + "filename": "add-progress-bar-field-to-pdf-form.cs", + "description": "Shows how to insert a TextBoxField that works as a progress bar into a PDF form and update its value as the user completes sections.", "tags": [ "pdf", - "aspose-pdf", - "add-page", - "save-as", - "preserve-original" + "form", + "progress", + "textbox", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Document.Dispose" + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.Form.Add", + "Aspose.Pdf.Forms.Form.AddFieldAppearance", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "save-pdf-incremental-updates": { - "title": "Save PDF with Incremental Updates to Preserve Form Data", - "filename": "save-pdf-incremental-updates.cs", - "description": "Demonstrates opening a PDF with a writable stream, updating a form field, and saving the document using incremental updates so previous revisions remain intact.", + "add-progress-bar-to-pdf-form": { + "title": "Add Progress Bar To Pdf Form", + "filename": "add-progress-bar-to-pdf-form.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-read-only-date-field-to-pdf": { + "title": "Add Read‑Only Date Field to PDF", + "filename": "add-read-only-date-field-to-pdf.cs", + "description": "Demonstrates creating a date field in a PDF, populating it with the current date/time, and setting it to read‑only using Aspose.Pdf.", "tags": [ - "pdf", - "incremental-save", - "form-fields", + "datefield", + "readonly", + "pdf-form", "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.ComboBoxField", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.HasIncrementalUpdate" + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.DateField", + "Aspose.Pdf.Forms.Form.Add", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "batch-fill-pdf-form-fields": { - "title": "Batch Fill PDF Form Fields", - "filename": "batch-fill-pdf-form-fields.cs", - "description": "Demonstrates how to iterate over a folder of PDF files and populate the same set of form fields with identical values using Aspose.Pdf.", + "add-reset-button-to-pdf-form": { + "title": "Add Reset Button to PDF Form", + "filename": "add-reset-button-to-pdf-form.cs", + "description": "Shows how to place a push‑button on a PDF page that clears all user‑entered form data by executing a JavaScript reset action.", "tags": [ "pdf", - "form-filling", - "batch-processing", - "csharp", - "aspose" + "form", + "reset", + "javascript", + "button" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Document.Form.HasField", - "Aspose.Pdf.Document.Form.AutoRecalculate", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.ButtonField", + "Aspose.Pdf.Forms.Border", + "Aspose.Pdf.Forms.JavascriptAction", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Drawing.Color" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "batch-fill-pdf-forms-from-xml": { - "title": "Batch Fill PDF Forms from XML Files", - "filename": "batch-fill-pdf-forms-from-xml.cs", - "description": "Demonstrates how to process a folder of PDF documents, bind each one to a matching XML data file, and save the filled PDFs to an output directory using Aspose.Pdf.", + "add-reset-button-to-pdf-form__v2": { + "title": "Add Reset Button to PDF Form", + "filename": "add-reset-button-to-pdf-form__v2.cs", + "description": "Shows how to place a push button on an existing PDF that clears all form fields by attaching a JavaScript reset action.", "tags": [ "pdf", - "xml", - "form-filling", - "batch", + "form", + "reset-button", + "javascript", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.BindXml", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.ButtonField", + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.Form" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "batch-export-pdf-form-data-to-xml": { - "title": "Batch Export PDF Form Data to XML", - "filename": "batch-export-pdf-form-data-to-xml.cs", - "description": "Demonstrates how to iterate through a folder of PDF files, load each with Aspose.Pdf, and export its form data and structure to an individual XML file using XmlSaveOptions.", + "add-signature-field-to-pdf-form": { + "title": "Add Signature Field to PDF Form", + "filename": "add-signature-field-to-pdf-form.cs", + "description": "Shows how to load an existing PDF and insert a digital signature field using Aspose.Pdf, then save the updated document.", "tags": [ + "signature", "pdf", "form", - "xml", - "batch", - "export" + "field", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.XmlSaveOptions", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Form", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:40:37Z", - "status": "verified" - }, - "convert-pdf-form-json-to-csv": { - "title": "Convert PDF Form JSON Export to CSV", - "filename": "convert-pdf-form-json-to-csv.cs", - "description": "Reads a JSON file exported from a PDF form and generates a CSV file containing field names and their values, handling both object and array JSON structures.", - "tags": [ - "json", - "csv", - "pdf-form", - "conversion", - "aspnet" - ], - "apis_used": [], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "validate-required-pdf-form-fields": { - "title": "Validate Required PDF Form Fields Before Saving", - "filename": "validate-required-pdf-form-fields.cs", - "description": "Shows how to iterate through a PDF's form fields with Aspose.Pdf, check that every required field has a value, and abort the save if any are empty.", + "add-signature-field-with-image-stamp": { + "title": "Add Signature Field with Image Stamp to PDF", + "filename": "add-signature-field-with-image-stamp.cs", + "description": "Shows how to create a signature form field named 'ClientSignature' in a PDF and set its visual appearance using a predefined image stamp with Aspose.Pdf.", "tags": [ + "signature", + "form-field", + "image-stamp", "pdf", - "form-validation", - "required-fields", - "aspose", - "csharp" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.Field.Required", - "Aspose.Pdf.Forms.Field.Value", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.ImageStamp", + "Aspose.Pdf.Page.Annotations.Add", + "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "create-pdf-acroform-textbox-absolute-coordinates": { - "title": "Create PDF with AcroForm TextBox Using Absolute Coordinates", - "filename": "create-pdf-acroform-textbox-absolute-coordinates.cs", - "description": "Demonstrates how to generate a PDF containing an AcroForm text box positioned with absolute coordinates and customize its appearance.", + "add-submit-button-export-interaction-log": { + "title": "Add Submit Button and Export Interaction Log to XFDF", + "filename": "add-submit-button-export-interaction-log.cs", + "description": "Demonstrates how to add a PDF form submit button that posts XFDF data and then export the form's interaction log (annotations) to an XML‑based XFDF file for server‑side analysis.", "tags": [ - "acroform", - "textbox", - "coordinates", "pdf", - "aspose-pdf" + "form", + "xfdf", + "submit-button", + "annotations" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.DefaultAppearance", - "Aspose.Pdf.Form.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.ButtonField", + "Aspose.Pdf.Forms.SubmitFormAction", + "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.Document.ExportAnnotationsToXfdf" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "acroform-with-margins": { - "title": "Create AcroForm TextBox Positioned by Page Margins", - "filename": "acroform-with-margins.cs", - "description": "Shows how to generate a PDF with an AcroForm text box whose position is calculated relative to the page margins using Aspose.Pdf.", + "add-submit-button-http-post-pdf-form": { + "title": "Add Submit Button with HTTP POST to PDF Form", + "filename": "add-submit-button-http-post-pdf-form.cs", + "description": "Demonstrates how to create a push‑button field in a PDF, configure it to submit form data via HTTP POST in URL‑encoded format, and save the updated document using Aspose.Pdf.", "tags": [ - "acroform", "pdf", - "margin", - "textbox", - "positioning" + "form", + "submit-button", + "post", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.MarginInfo", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Form.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.ButtonField", + "Aspose.Pdf.Forms.SubmitFormAction", + "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "create-pdf-with-xfa-form": { - "title": "Create PDF with XFA Form and Populate Its Fields", - "filename": "create-pdf-with-xfa-form.cs", - "description": "Demonstrates how to load an XFA template, embed it into a PDF, and set values for XFA fields using Aspose.Pdf.", + "add-submit-button-http-post-pdf": { + "title": "Add Submit Button Http Post Pdf", + "filename": "add-submit-button-http-post-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-submit-button-post-form-data-xfdf": { + "title": "Add Submit Button Post Form Data Xfdf", + "filename": "add-submit-button-post-form-data-xfdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-submit-button-to-pdf-form": { + "title": "Add Submit Button to PDF Form", + "filename": "add-submit-button-to-pdf-form.cs", + "description": "Shows how to create a push‑button field in a PDF, attach a SubmitFormAction that posts the form data to a specified URL, and save the modified document.", "tags": [ - "xfa", "pdf", "form", - "field-population", - "aspose-pdf" + "submit", + "button", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form.AssignXfa", - "Aspose.Pdf.Forms.Form.HasXfa", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.ButtonField", + "Aspose.Pdf.Forms.SubmitFormAction", + "Aspose.Pdf.FileSpecification", + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "extract-xfa-form-data-to-xml": { - "title": "Extract XFA Form Data from PDF to XML", - "filename": "extract-xfa-form-data-to-xml.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, verify the presence of an XFA form, retrieve the XFA data package as an XmlDocument, and save it as an XML file.", + "add-submit-button-to-pdf-form__v2": { + "title": "Add Submit Button To Pdf Form__V2", + "filename": "add-submit-button-to-pdf-form__v2.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-submit-button-to-pdf": { + "title": "Add Submit Button with URL to PDF Form", + "filename": "add-submit-button-to-pdf.cs", + "description": "Demonstrates how to programmatically create a push button on a PDF page, assign a SubmitFormAction with a target URL, and save the updated document using Aspose.Pdf.", "tags": [ - "xfa", "pdf", - "xml", - "extraction", - "aspose-pdf" + "form", + "button", + "submit", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Form.HasXfa", - "Aspose.Pdf.Form.XFA", - "Aspose.Pdf.XfaForm.XDP" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.ButtonField", + "Aspose.Pdf.Forms.SubmitFormAction", + "Aspose.Pdf.FileSpecification" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "import-xfa-data-from-xml": { - "title": "Import XFA Form Data from XML into PDF", - "filename": "import-xfa-data-from-xml.cs", - "description": "Shows how to load XFA data from an XML file and assign it to an existing XFA form in a PDF using Aspose.Pdf, then save the updated document.", + "add-text-annotation-save-modified-pdf": { + "title": "Add Text Annotation Save Modified Pdf", + "filename": "add-text-annotation-save-modified-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-text-box-field-to-pdf-acroform": { + "title": "Add Text Box Field to PDF AcroForm", + "filename": "add-text-box-field-to-pdf-acroform.cs", + "description": "Demonstrates creating a new PDF, adding a blank page, and placing a text box (AcroForm) on the first page using Aspose.Pdf.", "tags": [ - "xfa", - "xml", + "acroform", + "textbox", "pdf", - "import", - "aspose-pdf" + "aspose.pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Form", - "Aspose.Pdf.Form.HasXfa", - "Aspose.Pdf.Form.AssignXfa", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Document.Form.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "merge-pdfs-unique-acroform-field-names": { - "title": "Merge PDFs while Ensuring Unique AcroForm Field Names", - "filename": "merge-pdfs-unique-acroform-field-names.cs", - "description": "Demonstrates how to merge two PDF documents that contain AcroForm fields, renaming duplicate field names to avoid conflicts before appending pages.", + "add-tooltip-to-pdf-form-field": { + "title": "Add Tooltip To Pdf Form Field", + "filename": "add-tooltip-to-pdf-form-field.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-tooltip-to-pdf-form-textbox": { + "title": "Add Tooltip to PDF Form Text Box", + "filename": "add-tooltip-to-pdf-form-textbox.cs", + "description": "Shows how to create a text box field in a PDF form and set its tooltip (alternate name) using Aspose.Pdf.", "tags": [ - "pdf-merge", - "acroform", - "field-renaming", - "aspose-pdf", - "csharp" + "pdf", + "tooltip", + "form", + "textbox", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.TextBoxField", "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.Document.Pages.Add", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "fill-and-flatten-pdf-form-fields": { - "title": "Fill and Flatten PDF Form Fields", - "filename": "fill-and-flatten-pdf-form-fields.cs", - "description": "The example loads a PDF, sets values for a text box and a checkbox, flattens the form so the fields become static content, and saves the resulting PDF.", + "apply-background-image-to-pdf-form-field": { + "title": "Apply Background Image to PDF Form Field", + "filename": "apply-background-image-to-pdf-form-field.cs", + "description": "Demonstrates how to set a background image for a specific form field in a PDF, covering both XFA and standard AcroForm fields using Aspose.Pdf.", "tags": [ "pdf", "form", - "flatten", - "fill", - "aspose-pdf" + "background-image", + "xfa", + "acroform" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Form.XFA.SetFieldImage", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.CheckboxField", - "Aspose.Pdf.Forms.Form.Flatten" + "Aspose.Pdf.Drawing.BackgroundArtifact", + "Aspose.Pdf.Page.Artifacts.Add", + "Aspose.Pdf.Forms.Form.AddFieldAppearance" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "restore-editability-of-flattened-pdf-form-fields": { - "title": "Restore Editability of Flattened PDF Form Fields", - "filename": "restore-editability-of-flattened-pdf-form-fields.cs", - "description": "Shows how to detect a flattened PDF, enable automatic form restoration, make form annotations independent, and save the document to regain editability where possible.", + "apply-custom-font-to-pdf-form-fields": { + "title": "Apply Custom Font to All PDF Form Fields", + "filename": "apply-custom-font-to-pdf-form-fields.cs", + "description": "Shows how to load a TrueType font and set it as the default appearance for every form field in a PDF using Aspose.Pdf.", "tags": [ "pdf", - "form", - "flatten", - "restore", - "Aspose.Pdf" + "form-fields", + "custom-font", + "aspose.pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Form", - "Aspose.Pdf.Form.AutoRestoreForm", - "Aspose.Pdf.Form.MakeFormAnnotationsIndependent", + "Aspose.Pdf.FontRepository.OpenFont", + "Aspose.Pdf.Font", + "Aspose.Pdf.Forms.Field.DefaultAppearance", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "set-form-field-appearance-custom-font": { - "title": "Set Form Field Appearance with a Custom Font", - "filename": "set-form-field-appearance-custom-font.cs", - "description": "Demonstrates how to load an external TrueType font and apply it to a PDF form text box field using the DefaultAppearance property.", + "apply-digital-signature-to-pdf": { + "title": "Apply Digital Signature to PDF Form", + "filename": "apply-digital-signature-to-pdf.cs", + "description": "Shows how to load a PDF, add a signature field, and sign the document with a PKCS#7 digital signature using a PFX certificate.", "tags": [ - "forms", - "custom-font", - "default-appearance", - "textbox", - "Aspose.Pdf" + "pdf", + "digital-signature", + "form", + "certificate", + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Text.FontRepository.OpenFont", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Annotations.DefaultAppearance", - "Aspose.Pdf.Forms.Form.Add", - "Aspose.Pdf.Forms.Form.AddFieldAppearance", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Forms.PKCS7", + "SignatureField.Sign", + "Document.Form.Add", + "Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "rotate-form-field-label": { - "title": "Rotate PDF Form Field Label", - "filename": "rotate-form-field-label.cs", - "description": "Shows how to rotate a form field label in a PDF document by 45 degrees using Aspose.Pdf.", + "apply-xml-visibility-to-pdf-annotations": { + "title": "Apply XML-Defined Visibility to PDF Annotations", + "filename": "apply-xml-visibility-to-pdf-annotations.cs", + "description": "Loads visibility settings from an XML file and updates the Hidden flag of each PDF annotation accordingly, then saves the modified document.", "tags": [ "pdf", - "form-field", - "rotation", - "label", - "aspose" + "annotations", + "visibility", + "xml", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Rectangle.Rotate", + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.AnnotationFlags", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "hide-pdf-form-field": { - "title": "Hide PDF Form Field Using Aspose.Pdf", - "filename": "hide-pdf-form-field.cs", - "description": "Demonstrates how to hide a specific form field in a PDF by setting the Hidden flag on its widget annotation and saving the updated document.", + "assign-custom-appearance-image-to-pdf-button": { + "title": "Assign Custom Appearance Image To Pdf Button", + "filename": "assign-custom-appearance-image-to-pdf-button.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "assign-javascript-onlostfocus-to-pdf-form-field": { + "title": "Assign JavaScript OnLostFocus Action to PDF Form Field", + "filename": "assign-javascript-onlostfocus-to-pdf-form-field.cs", + "description": "Loads a PDF, retrieves a specific form field, attaches a JavaScript action that doubles the numeric value when the field loses focus, and saves the modified document.", "tags": [ - "pdf", + "javascript", "form-field", - "visibility", - "annotation", + "onlostfocus", + "pdf", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Annotations.WidgetAnnotation", - "Aspose.Pdf.Annotations.AnnotationFlags", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.JavascriptAction", + "Aspose.Pdf.Forms.FieldActions", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "set-form-field-visible-non-printable": { - "title": "Set Form Field Visibility to Non‑Printable", - "filename": "set-form-field-visible-non-printable.cs", - "description": "Shows how to make a PDF form field visible on screen but omitted from printing by clearing the Print flag and ensuring it is not hidden.", + "async-import-xml-form-data-into-pdf": { + "title": "Asynchronously Import XML Form Data into a PDF", + "filename": "async-import-xml-form-data-into-pdf.cs", + "description": "Demonstrates loading XFA XML data, assigning it to a PDF form, and saving the updated PDF with the asynchronous SaveAsync method to keep the UI responsive.", "tags": [ + "xml", + "xfa", + "async", "pdf", - "form-field", - "visibility", - "non-printable", - "Aspose.Pdf" + "forms" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.WidgetAnnotation", - "Aspose.Pdf.Annotations.AnnotationFlags", "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Form.AssignXfa", + "Aspose.Pdf.Document.SaveAsync" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "import-xfa-form-data-from-xml-string": { - "title": "Import XFA Form Data from XML String into PDF", - "filename": "import-xfa-form-data-from-xml-string.cs", - "description": "Demonstrates how to load an XML string containing XFA form field values and import it into a PDF document using Aspose.Pdf, then save the updated PDF.", + "auto-update-qr-code-from-text-field": { + "title": "Auto‑Update QR Code from Text Field in PDF", + "filename": "auto-update-qr-code-from-text-field.cs", + "description": "Demonstrates how to attach JavaScript to a PDF text box so that a QR‑code barcode field updates automatically when the text changes, using Aspose.Pdf form features.", "tags": [ - "xfa", - "form", - "import", - "xml", - "aspose-pdf" + "pdf", + "forms", + "barcode", + "javascript", + "autocalculate" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Form.AssignXfa", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.BarcodeField", + "Aspose.Pdf.Forms.JavascriptAction", + "Aspose.Pdf.Forms.FieldActions" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "export-pdf-form-data-to-pretty-json": { - "title": "Export PDF Form Data to Pretty-Printed JSON", - "filename": "export-pdf-form-data-to-pretty-json.cs", - "description": "Demonstrates how to export all form fields from a PDF to a JSON file with indentation for readability using Aspose.Pdf.", + "batch-convert-pdfs-to-xml": { + "title": "Batch Convert PDFs to XML Files", + "filename": "batch-convert-pdfs-to-xml.cs", + "description": "Demonstrates how to iterate through a folder of PDF documents, load each with Aspose.Pdf, and save it as an XML form data file while preserving the original file name.", "tags": [ "pdf", - "form", - "json", - "export", - "pretty-print" + "xml", + "batch", + "conversion", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.ExportFieldsToJsonOptions", - "Aspose.Pdf.Forms.ExportFieldsToJsonOptions.WriteIndented", - "Aspose.Pdf.Forms.Form.ExportToJson" + "Aspose.Pdf.XmlSaveOptions", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.SaveOptions", + "Aspose.Pdf.Document.Dispose" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "import-form-data-from-compressed-json": { - "title": "Import Form Data from Compressed JSON into PDF", - "filename": "import-form-data-from-compressed-json.cs", - "description": "Shows how to load a PDF, decompress a GZIP‑compressed JSON payload on the fly, import the form field values using Form.ImportFromJson, and save the updated document.", + "batch-export-pdf-form-data-to-xml": { + "title": "Batch Export PDF Form Data to XML", + "filename": "batch-export-pdf-form-data-to-xml.cs", + "description": "Demonstrates how to iterate through a folder of PDF files, load each with Aspose.Pdf, and export its form data and structure to an individual XML file using XmlSaveOptions.", "tags": [ + "pdf", "form", - "json", - "gzip", - "import", - "aspose.pdf" + "xml", + "batch", + "export" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Form", - "Aspose.Pdf.Form.ImportFromJson", + "Aspose.Pdf.XmlSaveOptions", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "create-multi-page-pdf-with-acroform-fields": { - "title": "Create Multi‑Page PDF with Distinct AcroForm Fields", - "filename": "create-multi-page-pdf-with-acroform-fields.cs", - "description": "Demonstrates how to generate a PDF with multiple pages, each containing a different AcroForm field (text box, checkbox, combo box) using Aspose.Pdf.", + "batch-fill-identical-form-fields": { + "title": "Batch Fill Identical Form Fields", + "filename": "batch-fill-identical-form-fields.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "batch-fill-pdf-form-fields": { + "title": "Batch Fill PDF Form Fields", + "filename": "batch-fill-pdf-form-fields.cs", + "description": "Demonstrates how to iterate over a folder of PDF files and populate the same set of form fields with identical values using Aspose.Pdf.", "tags": [ "pdf", - "acroform", - "multpage", - "fields", - "aspose-pdf" + "form-filling", + "batch-processing", + "csharp", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.CheckboxField", - "Aspose.Pdf.Forms.ComboBoxField", - "Aspose.Pdf.Form.Add", + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Document.Form.HasField", + "Aspose.Pdf.Document.Form.AutoRecalculate", + "Aspose.Pdf.Forms.Field", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "copy-form-field-to-another-page": { - "title": "Copy Form Field to Another Page in PDF", - "filename": "copy-form-field-to-another-page.cs", - "description": "Shows how to duplicate an existing AcroForm field and place the copy on a different page within the same PDF document using Aspose.Pdf.", + "batch-fill-pdf-forms-from-csv": { + "title": "Batch Fill PDF Forms from CSV Data", + "filename": "batch-fill-pdf-forms-from-csv.cs", + "description": "Shows how to read a CSV file, map each row to form fields, fill a PDF template for every record, and save the resulting PDFs to a designated folder.", "tags": [ - "forms", - "field-copy", "pdf", - "aspose-pdf", - "csharp" + "forms", + "csv", + "batch", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Form", "Aspose.Pdf.Forms.Form", "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.Form.Add", - "Aspose.Pdf.Forms.Form.AddFieldAppearance" + "Aspose.Pdf.Forms.Field.Value" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "rename-pdf-form-field": { - "title": "Rename PDF Form Field Programmatically", - "filename": "rename-pdf-form-field.cs", - "description": "Shows how to load a PDF, locate a specific form field, rename its Name, PartialName, and MappingName, and save the updated document.", + "batch-fill-pdf-forms-from-xml": { + "title": "Batch Fill PDF Forms from XML Files", + "filename": "batch-fill-pdf-forms-from-xml.cs", + "description": "Demonstrates how to process a folder of PDF documents, bind each one to a matching XML data file, and save the filled PDFs to an output directory using Aspose.Pdf.", "tags": [ "pdf", - "form", - "rename", - "field", - "aspose-pdf" - ], + "xml", + "form-filling", + "batch", + "aspose-pdf" + ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Forms.Form.HasField" + "Aspose.Pdf.Document.BindXml", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "clone-pdf-form-field-to-another-page": { - "title": "Clone PDF Form Field to Another Page", - "filename": "clone-pdf-form-field-to-another-page.cs", - "description": "Demonstrates how to clone an existing form field, modify its properties, and place the clone on a different PDF page using Aspose.Pdf.", + "batch-import-xml-into-pdfs": { + "title": "Batch Import Xml Into Pdfs", + "filename": "batch-import-xml-into-pdfs.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "batch-set-comments-field-character-limit": { + "title": "Batch Set Comments Field Character Limit", + "filename": "batch-set-comments-field-character-limit.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "batch-set-comments-maxlen": { + "title": "Batch Set Max Length for Comments Field in PDFs", + "filename": "batch-set-comments-maxlen.cs", + "description": "Loads each PDF in a folder, locates the 'Comments' textbox field, sets its maximum length to 100 characters, and saves the updated file to an output directory.", "tags": [ - "form", - "clone", "pdf", - "field", - "Aspose.Pdf" + "form", + "batch-processing", + "maxlength", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Form.Add", "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Forms.TextBoxField", + "Document.Form", + "TextBoxField.MaxLen", + "Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "assign-javascript-onlostfocus-to-pdf-form-field": { - "title": "Assign JavaScript OnLostFocus Action to PDF Form Field", - "filename": "assign-javascript-onlostfocus-to-pdf-form-field.cs", - "description": "Loads a PDF, retrieves a specific form field, attaches a JavaScript action that doubles the numeric value when the field loses focus, and saves the modified document.", + "bind-pdf-with-formeditor-save-modified-pdf": { + "title": "Bind PDF with FormEditor and Save Modified PDF", + "filename": "bind-pdf-with-formeditor-save-modified-pdf.cs", + "description": "Demonstrates loading a PDF using Aspose.Pdf's FormEditor, optionally adding a form field, and saving the modified document to a new output file.", "tags": [ - "javascript", - "form-field", - "onlostfocus", "pdf", - "aspose-pdf" + "form", + "edit", + "aspose", + "csharp" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.JavascriptAction", - "Aspose.Pdf.Forms.FieldActions", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Facades.FormEditor", + "FormEditor.BindPdf", + "FormEditor.AddTextField", + "FormEditor.Save", + "Aspose.Pdf.Rectangle" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "add-submit-button-to-pdf-form": { - "title": "Add Submit Button to PDF Form", - "filename": "add-submit-button-to-pdf-form.cs", - "description": "Shows how to create a push‑button field in a PDF, attach a SubmitFormAction that posts the form data to a specified URL, and save the modified document.", + "bulk-fill-pdf-form-fields-from-json": { + "title": "Bulk Fill PDF Form Fields from JSON with Missing Field Handling", + "filename": "bulk-fill-pdf-form-fields-from-json.cs", + "description": "Demonstrates how to populate all form fields in a PDF using data from a JSON file while gracefully skipping fields that are not present in the JSON.", "tags": [ "pdf", "form", - "submit", - "button", - "aspose" + "json", + "bulk-fill", + "error-handling" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.ButtonField", - "Aspose.Pdf.Forms.SubmitFormAction", - "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.Field.ImportValueFromJson", + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "add-reset-button-to-pdf-form": { - "title": "Add Reset Button to PDF Form", - "filename": "add-reset-button-to-pdf-form.cs", - "description": "Shows how to place a push‑button on a PDF page that clears all user‑entered form data by executing a JavaScript reset action.", + "bulk-fill-pdf-form-with-json-skip-missing-fields": { + "title": "Bulk Fill Pdf Form With Json Skip Missing Fields", + "filename": "bulk-fill-pdf-form-with-json-skip-missing-fields.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "calculate-total-price-pdf-form": { + "title": "Calculate Total Price Pdf Form", + "filename": "calculate-total-price-pdf-form.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "center-align-text-field-in-pdf-form": { + "title": "Center Align Text Field in PDF Form", + "filename": "center-align-text-field-in-pdf-form.cs", + "description": "Shows how to load a PDF, locate a text box form field, and set its horizontal alignment to center using Aspose.Pdf.", "tags": [ "pdf", "form", - "reset", - "javascript", - "button" + "alignment", + "textbox", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.ButtonField", - "Aspose.Pdf.Forms.Border", - "Aspose.Pdf.Forms.JavascriptAction", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Drawing.Color" + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.HorizontalAlignment", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "define-calculation-order-for-pdf-form-fields": { - "title": "Define Calculation Order for PDF Form Fields", - "filename": "define-calculation-order-for-pdf-form-fields.cs", - "description": "Shows how to enable automatic recalculation, set a custom calculation order for dependent form fields, and assign a JavaScript calculation action using Aspose.Pdf.", + "center-align-text-field": { + "title": "Center Align Text Field", + "filename": "center-align-text-field.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "clone-pdf-form-field-to-another-page": { + "title": "Clone PDF Form Field to Another Page", + "filename": "clone-pdf-form-field-to-another-page.cs", + "description": "Demonstrates how to clone an existing form field, modify its properties, and place the clone on a different PDF page using Aspose.Pdf.", "tags": [ + "form", + "clone", "pdf", - "forms", - "calculation-order", - "javascript", - "aspose" + "field", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Form.Add", "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.JavascriptAction", - "Aspose.Pdf.Forms.Form.AutoRecalculate" + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "add-numeric-field-with-validation": { - "title": "Add Numeric Field with Validation to PDF", - "filename": "add-numeric-field-with-validation.cs", - "description": "Shows how to insert a numeric form field into a PDF and attach JavaScript validation that restricts the value to a range of 0 to 1000.", + "collapse-pdf-outline-section": { + "title": "Collapse PDF Outline Section", + "filename": "collapse-pdf-outline-section.cs", + "description": "Shows how to set the initial expand/collapse state of a PDF outline (bookmark) to collapsed using Aspose.Pdf.", "tags": [ + "outline", + "bookmark", + "collapse", "pdf", - "form-field", - "validation", - "javascript", - "aspose-pdf" + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.NumberField", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Forms.FieldActions" + "Aspose.Pdf.Document.Outlines", + "Aspose.Pdf.OutlineItemCollection", + "Aspose.Pdf.OutlineItemCollection.Open", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "list-pdf-form-field-names": { - "title": "List All PDF Form Field Names", - "filename": "list-pdf-form-field-names.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, detect AcroForm and XFA forms, and enumerate the names of all form fields present.", + "compare-pdf-form-data-diff-report": { + "title": "Compare PDF Form Data and Generate Diff Report", + "filename": "compare-pdf-form-data-diff-report.cs", + "description": "Loads two PDF files, extracts their form fields with Aspose.Pdf, compares the values and creates a text report that highlights mismatched or missing fields.", "tags": [ "pdf", - "forms", - "field-names", - "enumeration", + "form", + "comparison", + "diff", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.Form", "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.XfaForm" + "Aspose.Pdf.Forms.FieldCollection", + "Aspose.Pdf.Forms.CheckBoxField" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "extract-text-box-form-fields": { - "title": "Extract Text Box Form Fields from PDF", - "filename": "extract-text-box-form-fields.cs", - "description": "Shows how to load a PDF, filter its form fields to only TextBoxField instances using LINQ, and write each field's name and value to a text file.", + "conditional-pdf-section-checkbox": { + "title": "Conditional PDF Section Controlled by a Checkbox", + "filename": "conditional-pdf-section-checkbox.cs", + "description": "Demonstrates how to add a checkbox to a PDF form and use JavaScript to show or hide a dependent text field based on the checkbox state.", "tags": [ "pdf", - "form-fields", - "textbox", - "linq", - "aspose-pdf" + "forms", + "checkbox", + "conditional", + "javascript" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Page", + "Aspose.Pdf.Forms.CheckboxField", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.FieldCollection", - "Aspose.Pdf.Forms.Field" + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Annotations.AnnotationFlags" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "export-pdf-form-fields-to-json__v2": { - "title": "Export PDF Form Fields to JSON Schema", - "filename": "export-pdf-form-fields-to-json__v2.cs", - "description": "Shows how to extract form field definitions from a PDF and serialize them into a JSON schema using Aspose.Pdf, with configurable export options and result inspection.", + "convert-form-data-json-to-csv": { + "title": "Convert Form Data Json To Csv", + "filename": "convert-form-data-json-to-csv.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-pdf-form-json-to-csv": { + "title": "Convert PDF Form JSON Export to CSV", + "filename": "convert-pdf-form-json-to-csv.cs", + "description": "Reads a JSON file exported from a PDF form and generates a CSV file containing field names and their values, handling both object and array JSON structures.", "tags": [ - "pdf", - "form", "json", - "export", - "schema" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.ExportFieldsToJsonOptions", - "Aspose.Pdf.Forms.Form.ExportToJson", - "Aspose.Pdf.Forms.FieldSerializationResult", - "Aspose.Pdf.Forms.Form" + "csv", + "pdf-form", + "conversion", + "aspnet" ], + "apis_used": [], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "import-acroform-fields-from-json": { - "title": "Import AcroForm Fields from JSON into PDF", - "filename": "import-acroform-fields-from-json.cs", - "description": "Demonstrates how to load a JSON schema that defines AcroForm fields and import them into a newly created PDF document using Aspose.Pdf.", + "copy-form-field-to-another-page": { + "title": "Copy Form Field to Another Page in PDF", + "filename": "copy-form-field-to-another-page.cs", + "description": "Shows how to duplicate an existing AcroForm field and place the copy on a different page within the same PDF document using Aspose.Pdf.", "tags": [ + "forms", + "field-copy", "pdf", - "acroform", - "json", - "import", - "forms" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Form.ImportFromJson", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Pages.Add" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T08:40:37Z", - "status": "verified" - }, - "fill-pdf-form-and-encrypt": { - "title": "Fill PDF Form Fields and Encrypt the Document", - "filename": "fill-pdf-form-and-encrypt.cs", - "description": "The example loads a PDF with fillable form fields, sets values for text boxes and checkboxes, then applies password protection with specific permissions before saving the result.", - "tags": [ - "pdf", - "form-filling", - "encryption", "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.CheckboxField", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Document.Encrypt" + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.Form.Add", + "Aspose.Pdf.Forms.Form.AddFieldAppearance" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "apply-digital-signature-to-pdf": { - "title": "Apply Digital Signature to PDF Form", - "filename": "apply-digital-signature-to-pdf.cs", - "description": "Shows how to load a PDF, add a signature field, and sign the document with a PKCS#7 digital signature using a PFX certificate.", + "copy-form-fields-between-pdfs": { + "title": "Copy Form Fields Between Pdfs", + "filename": "copy-form-fields-between-pdfs.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "copy-form-fields-to-another-pdf": { + "title": "Copy Form Fields from One PDF to Another", + "filename": "copy-form-fields-to-another-pdf.cs", + "description": "Demonstrates how to load two PDFs, clone form fields from a source document, and add them to a destination document on a chosen page using Aspose.Pdf.", "tags": [ "pdf", - "digital-signature", - "form", - "certificate", - "aspnet" + "form-fields", + "copy", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.PKCS7", - "SignatureField.Sign", - "Document.Form.Add", - "Document.Save" + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.Field.Clone", + "Aspose.Pdf.Forms.Form.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "set-pdf-metadata-after-form-processing": { - "title": "Set PDF Metadata After Form Processing", - "filename": "set-pdf-metadata-after-form-processing.cs", - "description": "Demonstrates loading a PDF with form fields, filling a text box, and updating the document's metadata such as author, title, subject, and keywords before saving.", + "create-acroform-textbox-appearance": { + "title": "Create AcroForm TextBox with Font and Color", + "filename": "create-acroform-textbox-appearance.cs", + "description": "Demonstrates how to create a new PDF, add an AcroForm text box field, and customize its appearance including font, size, text color, and border.", "tags": [ - "pdf", - "metadata", - "forms", - "aspose-pdf", - "csharp" + "acroform", + "textbox", + "appearance", + "font", + "color" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.DocumentInfo", - "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.DefaultAppearance", + "Aspose.Pdf.Forms.Border", + "Aspose.Pdf.Color" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "fill-pdf-form-fields-from-stream": { - "title": "Fill PDF Form Fields from Stream and Return Byte Array", - "filename": "fill-pdf-form-fields-from-stream.cs", - "description": "Demonstrates loading a PDF from a stream, populating its form fields using Aspose.Pdf, and returning the modified document as a byte array.", + "create-acroform-textbox-with-margins": { + "title": "Create Acroform Textbox With Margins", + "filename": "create-acroform-textbox-with-margins.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-code128-barcode-linked-to-text-field": { + "title": "Create Code128 Barcode Linked To Text Field", + "filename": "create-code128-barcode-linked-to-text-field.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-collapsible-pdf-section": { + "title": "Create Collapsible Pdf Section", + "filename": "create-collapsible-pdf-section.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-collapsible-section-in-pdf-form": { + "title": "Create Collapsible Section In Pdf Form", + "filename": "create-collapsible-section-in-pdf-form.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-collapsible-section-pdf-form": { + "title": "Create Collapsible Section in PDF Form", + "filename": "create-collapsible-section-pdf-form.cs", + "description": "Shows how to add a checkbox that toggles the visibility of a text box using JavaScript, creating a collapsible section in an Aspose.Pdf form.", "tags": [ "pdf", "form", - "aspose", - "fill", - "memory-stream" + "collapsible", + "checkbox", + "javascript" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.ComboBoxField", + "Aspose.Pdf.Page", "Aspose.Pdf.Forms.CheckboxField", - "Aspose.Pdf.Forms.RadioButtonField", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Annotations.AnnotationFlags", + "Aspose.Pdf.Forms.Border" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "async-import-xml-form-data-into-pdf": { - "title": "Asynchronously Import XML Form Data into a PDF", - "filename": "async-import-xml-form-data-into-pdf.cs", - "description": "Demonstrates loading XFA XML data, assigning it to a PDF form, and saving the updated PDF with the asynchronous SaveAsync method to keep the UI responsive.", + "create-gender-radio-button-pdf": { + "title": "Create Gender Radio Button Pdf", + "filename": "create-gender-radio-button-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-hidden-audit-timestamp-field": { + "title": "Create Hidden Audit Timestamp Field in PDF", + "filename": "create-hidden-audit-timestamp-field.cs", + "description": "Shows how to add a hidden DateField to a PDF using Aspose.Pdf to store the document creation timestamp for audit purposes.", "tags": [ - "xml", - "xfa", - "async", "pdf", + "hidden-field", + "audit", + "timestamp", "forms" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Form.AssignXfa", - "Aspose.Pdf.Document.SaveAsync" + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.DateField", + "Aspose.Pdf.Annotations.AnnotationFlags" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "parallel-fill-pdf-form-fields": { - "title": "Parallel Fill PDF Form Fields", - "filename": "parallel-fill-pdf-form-fields.cs", - "description": "Demonstrates how to use Aspose.Pdf to load multiple PDFs, fill text box form fields, and save the results concurrently with Parallel.ForEach for faster batch processing.", + "create-hidden-calculation-field": { + "title": "Create Hidden Calculation Field in PDF with JavaScript", + "filename": "create-hidden-calculation-field.cs", + "description": "Shows how to add visible text fields and a hidden read‑only calculation field to a PDF using Aspose.Pdf, then attach JavaScript that sums the numeric values of two fields.", "tags": [ "pdf", - "forms", - "parallel", - "batch", + "form", + "calculation", + "javascript", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.JavascriptAction", + "Aspose.Pdf.Annotations.AnnotationFlags" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "log-form-field-modifications": { - "title": "Log PDF Form Field Modifications", - "filename": "log-form-field-modifications.cs", - "description": "Shows how to iterate through PDF form fields, change their values and read‑only status, and write each change to a log file for audit and troubleshooting.", + "create-localized-pdf-form": { + "title": "Create Localized PDF Form with Dynamic Label", + "filename": "create-localized-pdf-form.cs", + "description": "Demonstrates how to build a PDF form that changes a label's text based on the selected locale using a combo box and JavaScript.", "tags": [ - "pdf", - "forms", - "audit", - "logging", + "pdf-form", + "localization", + "javascript", + "combo-box", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.Field.Value", - "Aspose.Pdf.Forms.Field.ReadOnly" + "Aspose.Pdf.Page", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.ComboBoxField", + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Tagged.ITaggedContent" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "generate-csv-summary-of-pdf-form-fields": { - "title": "Generate CSV Summary of PDF Form Fields", - "filename": "generate-csv-summary-of-pdf-form-fields.cs", - "description": "The example loads all PDF files in a folder, extracts each form field's name and value, and writes a CSV report summarizing the filled fields across the documents.", + "create-multi-page-pdf-unique-form-fields": { + "title": "Create Multi‑Page PDF with Unique Form Fields", + "filename": "create-multi-page-pdf-unique-form-fields.cs", + "description": "Demonstrates how to generate a PDF with multiple pages and add a separate TextBoxField to each page, giving each field a distinct name and value.", "tags": [ "pdf", "forms", - "csv", - "aspose", - "field-extraction" + "multpage", + "textboxfield", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Forms.Form.Fields" + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.Form.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "compare-pdf-form-data-diff-report": { - "title": "Compare PDF Form Data and Generate Diff Report", - "filename": "compare-pdf-form-data-diff-report.cs", - "description": "Loads two PDF files, extracts their form fields with Aspose.Pdf, compares the values and creates a text report that highlights mismatched or missing fields.", + "create-multi-page-pdf-with-acroform-fields": { + "title": "Create Multi‑Page PDF with Distinct AcroForm Fields", + "filename": "create-multi-page-pdf-with-acroform-fields.cs", + "description": "Demonstrates how to generate a PDF with multiple pages, each containing a different AcroForm field (text box, checkbox, combo box) using Aspose.Pdf.", "tags": [ "pdf", - "form", - "comparison", - "diff", - "aspose" + "acroform", + "multpage", + "fields", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.FieldCollection", - "Aspose.Pdf.Forms.CheckBoxField" + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.CheckboxField", + "Aspose.Pdf.Forms.ComboBoxField", + "Aspose.Pdf.Form.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "create-pdf-template-with-form-fields": { - "title": "Create PDF Template with Form Fields using Aspose.Pdf", - "filename": "create-pdf-template-with-form-fields.cs", - "description": "Shows how to generate a PDF template that contains text box form fields (Name, Email, Address) with labels, and save it as a reusable document.", - "tags": [ - "pdf", - "form-fields", - "template", - "aspose-pdf", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Text.DefaultAppearance", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.Position" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:40:37Z", + "create-multi-page-pdf-with-different-acroform-fields": { + "title": "Create Multi Page Pdf With Different Acroform Fields", + "filename": "create-multi-page-pdf-with-different-acroform-fields.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "replace-placeholder-with-current-date": { - "title": "Replace Placeholder with Current Date in PDF Form", - "filename": "replace-placeholder-with-current-date.cs", - "description": "Shows how to load a PDF, locate a text box form field, generate a formatted current date, and replace the placeholder text with that date using Aspose.Pdf.", - "tags": [ - "pdf", - "form-field", - "date-replacement", - "aspose.pdf", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.PageDate", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Form" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T08:40:37Z", + "create-multi-select-list-box": { + "title": "Create Multi Select List Box", + "filename": "create-multi-select-list-box.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-multi-select-listbox-max-three": { + "title": "Create Multi Select Listbox Max Three", + "filename": "create-multi-select-listbox-max-three.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, "create-multi-select-listbox": { @@ -1635,1062 +1927,1291 @@ "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "populate-combobox-from-datatable": { - "title": "Populate PDF ComboBox Field from DataTable", - "filename": "populate-combobox-from-datatable.cs", - "description": "Demonstrates how to create a PDF template with a ComboBox field, load it, and programmatically fill the combo box options using data from a DataTable, then save the updated PDF.", + "create-password-protected-pdf-form": { + "title": "Create Password Protected Pdf Form", + "filename": "create-password-protected-pdf-form.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-pdf-acroform-open-js": { + "title": "Create PDF with AcroForm Text Field and Open-Action JavaScript", + "filename": "create-pdf-acroform-open-js.cs", + "description": "Shows how to add a text box AcroForm field to a PDF and set a document‑level JavaScript action that runs when the PDF is opened.", "tags": [ - "pdf", - "combobox", - "form-fields", - "aspose-pdf", - "data-binding" + "acroform", + "javascript", + "text-field", + "pdf-creation", + "open-action" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.ComboBoxField", - "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Forms.ComboBoxField.AddOption" + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.DefaultAppearance", + "Aspose.Pdf.Annotations.JavascriptAction" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "add-signature-field-to-pdf-form": { - "title": "Add Signature Field to PDF Form", - "filename": "add-signature-field-to-pdf-form.cs", - "description": "Shows how to load an existing PDF and insert a digital signature field using Aspose.Pdf, then save the updated document.", + "create-pdf-acroform-textbox-absolute-coordinates": { + "title": "Create PDF with AcroForm TextBox Using Absolute Coordinates", + "filename": "create-pdf-acroform-textbox-absolute-coordinates.cs", + "description": "Demonstrates how to generate a PDF containing an AcroForm text box positioned with absolute coordinates and customize its appearance.", "tags": [ - "signature", + "acroform", + "textbox", + "coordinates", "pdf", - "form", - "field", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Form", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.DefaultAppearance", + "Aspose.Pdf.Form.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "extract-signature-field-image": { - "title": "Extract Signature Field Appearance as Image", - "filename": "extract-signature-field-image.cs", - "description": "Demonstrates how to locate a signature form field in a PDF and extract its visual appearance as a JPEG image for audit‑logging purposes.", - "tags": [ - "signature", - "image", - "forms", - "audit", - "pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.SignatureField.ExtractImage", - "Aspose.Pdf.Forms.Form" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:40:37Z", - "status": "verified" - }, - "set-max-length-pdf-textbox-field": { - "title": "Set Maximum Length for PDF TextBox Form Field", - "filename": "set-max-length-pdf-textbox-field.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, locate a text box form field, set its MaxLen property to restrict user input, and save the modified document.", + "create-pdf-country-dropdown": { + "title": "Create a PDF Country Dropdown List", + "filename": "create-pdf-country-dropdown.cs", + "description": "Shows how to add a ComboBox form field named 'Country' to a PDF and fill it with a predefined array of country names using Aspose.Pdf.", "tags": [ "pdf", - "form-field", - "maxlength", - "aspose.pdf", - "csharp" + "dropdown", + "form", + "combobox", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Forms.TextBoxField.MaxLen", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.ComboBoxField", + "Aspose.Pdf.Document.Form.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "enable-spell-checking-textbox-field": { - "title": "Enable Spell Checking for a Text Box Field in PDF", - "filename": "enable-spell-checking-textbox-field.cs", - "description": "Shows how to add a TextBoxField to a PDF document and turn on spell checking using Aspose.Pdf.", + "create-pdf-date-field-validation": { + "title": "Create PDF with Date Field Validated by Regex", + "filename": "create-pdf-date-field-validation.cs", + "description": "Demonstrates how to add a date form field to a PDF and attach JavaScript that validates the input against an MM/DD/YYYY regular expression.", "tags": [ - "spellcheck", - "textbox", - "form", "pdf", - "aspose" + "date-field", + "validation", + "javascript", + "regex" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.DateField", + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Forms.DateField.ExecuteFieldJavaScript", "Aspose.Pdf.Document.Form.Add", - "Aspose.Pdf.Forms.TextBoxField.SpellCheck", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "export-pdf-form-data-to-xml__v2": { - "title": "Export PDF Form Data to XML", - "filename": "export-pdf-form-data-to-xml__v2.cs", - "description": "Loads a PDF, checks for interactive form fields, and serializes their values into a custom XML file before saving the unchanged PDF.", + "create-pdf-dropdown-country": { + "title": "Create Pdf Dropdown Country", + "filename": "create-pdf-dropdown-country.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-pdf-form-auto-backup": { + "title": "Create Pdf Form Auto Backup", + "filename": "create-pdf-form-auto-backup.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-pdf-form-digital-signature": { + "title": "Create PDF Form with Digital Signature Field and Certificate Validation", + "filename": "create-pdf-form-digital-signature.cs", + "description": "Demonstrates how to add a signature field to a PDF form, sign it using a PFX certificate with Aspose.Pdf, and save the signed document.", "tags": [ "pdf", + "digital-signature", "form", - "xml", - "export", - "aspose" + "certificate", + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.CheckboxField", - "Aspose.Pdf.Forms.RadioButtonField", - "Aspose.Pdf.Forms.ListBoxField", - "Aspose.Pdf.Forms.ComboBoxField", - "Aspose.Pdf.Forms.SignatureField" + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Security.PKCS7" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "validate-xml-xsd-fill-xfa-pdf": { - "title": "Validate XML with XSD and Fill XFA PDF Form", - "filename": "validate-xml-xsd-fill-xfa-pdf.cs", - "description": "The example validates an XML file against an XSD schema and, if successful, imports the data into an XFA PDF form using Aspose.Pdf.", + "create-pdf-form-field-formatted-currency": { + "title": "Create Pdf Form Field Formatted Currency", + "filename": "create-pdf-form-field-formatted-currency.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-pdf-form-pdf-only-attachment": { + "title": "Create Pdf Form Pdf Only Attachment", + "filename": "create-pdf-form-pdf-only-attachment.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-pdf-form-tax-calculation": { + "title": "Create PDF Form with Tax Calculation Using JavaScript", + "filename": "create-pdf-form-tax-calculation.cs", + "description": "Demonstrates how to build a PDF form with subtotal, tax rate, and calculated tax amount fields, using Aspose.Pdf and JavaScript for automatic tax computation.", "tags": [ - "xml-validation", - "xsd", - "xfa", "pdf-form", - "aspose-pdf" + "javascript", + "tax-calculation", + "aspose-pdf", + "numberfield" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Form", - "Aspose.Pdf.Form.HasXfa", - "Aspose.Pdf.Form.AssignXfa", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.NumberField", + "Aspose.Pdf.Forms.Border", + "Aspose.Pdf.Forms.JavascriptAction", + "Aspose.Pdf.Document.Form" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "populate-pdf-form-fields-using-xslt": { - "title": "Populate PDF Form Fields Using XSLT Transformation", - "filename": "populate-pdf-form-fields-using-xslt.cs", - "description": "Shows how to load a PDF template, transform XML data with an XSLT stylesheet using BindXml, and save the resulting PDF with populated form fields.", + "create-pdf-form-template-fill-from-json": { + "title": "Create PDF Form Template and Fill It from JSON", + "filename": "create-pdf-form-template-fill-from-json.cs", + "description": "Shows how to build a PDF form with placeholder fields using Aspose.Pdf, serialize matching data to a JSON file, and populate the form fields from that JSON source.", "tags": [ - "pdf", - "form-fields", - "xslt", - "xml", - "aspose.pdf" + "pdf-form", + "json", + "aspose-pdf", + "csharp", + "form-filling" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.BindXml", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.CheckboxField", + "Aspose.Pdf.Text.DefaultAppearance", + "Aspose.Pdf.Forms.Form.ImportFromJson" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "create-pdf-with-acroform-calculation": { - "title": "Create PDF with AcroForm fields and calculation script", - "filename": "create-pdf-with-acroform-calculation.cs", - "description": "Demonstrates how to generate a PDF containing AcroForm text fields for quantity, price, and total, and embed JavaScript that automatically computes the total amount.", + "create-pdf-form-with-analytics": { + "title": "Create PDF Form with Interaction Logging", + "filename": "create-pdf-form-with-analytics.cs", + "description": "Demonstrates how to build a PDF form, add a hidden log field, and attach JavaScript actions to form fields so that each interaction is recorded for analytics.", "tags": [ - "pdf", - "acroform", + "pdf-form", "javascript", - "calculation", - "aspose-pdf" + "analytics", + "aspose-pdf", + "field-logging" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.JavascriptAction", - "Aspose.Pdf.Forms.Form.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.CheckboxField", + "Aspose.Pdf.Forms.ComboBoxField", + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Annotations.AnnotationFlags" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "export-pdf-form-fields-to-csv": { - "title": "Export PDF Form Fields to CSV", - "filename": "export-pdf-form-fields-to-csv.cs", - "description": "Loads a PDF document, extracts each form field's metadata (names, value, and flags) and writes the information to a CSV file for external analysis.", + "create-pdf-form-with-automatic-backup": { + "title": "Create PDF Form with Automatic Backup on Field Blur", + "filename": "create-pdf-form-with-automatic-backup.cs", + "description": "Shows how to add a text box to a PDF form and attach a JavaScript action that saves a backup PDF when the field loses focus.", "tags": [ - "pdf", - "form", - "csv", - "export", - "aspose" + "pdf-form", + "javascript", + "autosave", + "field-event", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.FieldCollection" + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Rectangle" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "add-hidden-session-id-field-to-pdf": { - "title": "Add Hidden Session ID Field to PDF", - "filename": "add-hidden-session-id-field-to-pdf.cs", - "description": "Shows how to insert a hidden text box form field into an existing PDF document to store a session identifier for backend tracking.", + "create-pdf-form-with-barcode-field": { + "title": "Create PDF Form with Barcode Field", + "filename": "create-pdf-form-with-barcode-field.cs", + "description": "Shows how to generate a PDF form and insert a read‑only Code128 barcode field using Aspose.Pdf.", "tags": [ "pdf", - "hidden-field", - "session-id", - "forms", - "aspnet" + "barcode", + "form", + "aspnet", + "code128" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Annotations.AnnotationFlags", - "Aspose.Pdf.Form", + "Aspose.Pdf.Forms.BarcodeField", + "Aspose.Pdf.Forms.BarcodeField.AddBarcode", + "Aspose.Pdf.Document.Form", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "set-default-appearance-for-pdf-text-field": { - "title": "Set Default Appearance for PDF Text Field", - "filename": "set-default-appearance-for-pdf-text-field.cs", - "description": "Shows how to load a PDF, locate a TextBoxField, and assign a DefaultAppearance (font, size, and color) to define the field's default appearance.", + "create-pdf-form-with-barcode-field__v2": { + "title": "Create PDF Form with Barcode Field", + "filename": "create-pdf-form-with-barcode-field__v2.cs", + "description": "Shows how to generate a PDF form that contains a Code128 barcode field derived from a numeric identifier using Aspose.Pdf.", "tags": [ "pdf", + "barcode", "form", - "default-appearance", - "textboxfield", + "code128", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Annotations.DefaultAppearance", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.BarcodeField", + "Aspose.Pdf.Forms.BarcodeField.AddBarcode", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "import-xml-form-data-into-pdf": { - "title": "Import XML Form Data from Network Stream into PDF", - "filename": "import-xml-form-data-into-pdf.cs", - "description": "Shows how to download XML form data via HTTP, load it into an XmlDocument, and import it into a PDF form using Aspose.Pdf's AssignXfa method.", + "create-pdf-form-with-barcode": { + "title": "Create Pdf Form With Barcode", + "filename": "create-pdf-form-with-barcode.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-pdf-form-with-concatenated-barcode": { + "title": "Create PDF Form with Concatenated Barcode Field", + "filename": "create-pdf-form-with-concatenated-barcode.cs", + "description": "Shows how to add text box fields to a PDF form and generate a Code128 barcode from the concatenated values of those fields using Aspose.Pdf.", "tags": [ - "xml", - "pdf", - "form", - "http", + "pdf-form", + "barcode", + "code128", + "text-field", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Form", - "Aspose.Pdf.Form.AssignXfa", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.BarcodeField", + "Aspose.Pdf.Forms.BarcodeField.AddBarcode", + "Aspose.Pdf.Form" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "bulk-fill-pdf-form-fields-from-json": { - "title": "Bulk Fill PDF Form Fields from JSON with Missing Field Handling", - "filename": "bulk-fill-pdf-form-fields-from-json.cs", - "description": "Demonstrates how to populate all form fields in a PDF using data from a JSON file while gracefully skipping fields that are not present in the JSON.", + "create-pdf-form-with-dynamic-list-box": { + "title": "Create PDF Form with Dynamic List Box", + "filename": "create-pdf-form-with-dynamic-list-box.cs", + "description": "Shows how to generate a PDF document, add an AcroForm ListBox field with initial options, and save the file using Aspose.Pdf.", "tags": [ "pdf", "form", - "json", - "bulk-fill", - "error-handling" + "listbox", + "aspnet", + "acroform" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.Field.ImportValueFromJson", - "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.ListBoxField", + "Aspose.Pdf.Form.Add", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "add-fallback-metadata-to-pdf": { - "title": "Add Fallback Metadata to PDF from XML", - "filename": "add-fallback-metadata-to-pdf.cs", - "description": "Shows how to load XML metadata, create missing required fields with default values, and write the values into a PDF's XMP metadata using Aspose.Pdf.", - "tags": [ - "pdf", - "metadata", - "xml", - "fallback", - "xmp" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Metadata", - "Aspose.Pdf.Document.Metadata.RegisterNamespaceUri", - "Aspose.Pdf.Document.Metadata.Item", - "Aspose.Pdf.XmpPdfAExtensionSchema" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:40:37Z", + "create-pdf-form-with-hidden-interaction-log": { + "title": "Create Pdf Form With Hidden Interaction Log", + "filename": "create-pdf-form-with-hidden-interaction-log.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "create-pdf-with-acroform-fields-custom-tab-order": { - "title": "Create PDF with AcroForm Fields and Custom Tab Order", - "filename": "create-pdf-with-acroform-fields-custom-tab-order.cs", - "description": "Demonstrates how to create a PDF, add AcroForm text and number fields, enable manual tab order on a page, and assign custom tab order indices for better keyboard navigation.", + "create-pdf-form-with-password-protection": { + "title": "Create PDF Form with Password Protection", + "filename": "create-pdf-form-with-password-protection.cs", + "description": "Demonstrates adding a text box form field to a PDF and securing the document with user and owner passwords, using permissions to prevent form editing for the user password.", "tags": [ - "acroform", - "tab-order", "pdf", - "forms", - "aspose-pdf" + "form", + "encryption", + "password", + "permissions" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.TabOrder", - "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.NumberField", - "Aspose.Pdf.Form.Add", + "Aspose.Pdf.Forms.DefaultAppearance", + "Aspose.Pdf.Permissions", + "Aspose.Pdf.Document.Encrypt", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "set-dashed-border-for-pdf-form-field": { - "title": "Set Dashed Border for PDF Form Field", - "filename": "set-dashed-border-for-pdf-form-field.cs", - "description": "Loads a PDF, locates a specific form field, and applies a dashed border style to visually mark it as optional, then saves the updated document.", + "create-pdf-form-with-qr-code": { + "title": "Create PDF Form with QR Code Field", + "filename": "create-pdf-form-with-qr-code.cs", + "description": "Shows how to generate a PDF form that contains a QR code field using Aspose.Pdf's BarcodeField class.", "tags": [ "pdf", + "qr-code", "form", - "border", - "dashed", + "barcode", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.Border", - "Aspose.Pdf.Annotations.BorderStyle" + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.BarcodeField", + "Aspose.Pdf.Document.Form.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "set-beveled-border-on-pdf-form-field": { - "title": "Set Beveled Border on PDF Form Field", - "filename": "set-beveled-border-on-pdf-form-field.cs", - "description": "Demonstrates how to load a PDF, locate a form field, and apply a beveled border style with a specified color, then save the document.", + "create-pdf-form-with-required-field-validation": { + "title": "Create PDF Form with Required Field Validation", + "filename": "create-pdf-form-with-required-field-validation.cs", + "description": "Shows how to build a PDF form with required text fields and attach JavaScript to a submit button that validates those fields before submitting the form.", "tags": [ - "pdf", - "form", - "border", - "beveled", - "aspose-pdf" + "pdf-form", + "javascript-validation", + "aspose-pdf", + "required-fields", + "submit-button" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.Border", - "Aspose.Pdf.Forms.BorderStyle", - "Aspose.Pdf.Color" + "Aspose.Pdf.Page", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.ButtonField", + "Aspose.Pdf.Annotations.JavascriptAction" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "apply-background-image-to-pdf-form-field": { - "title": "Apply Background Image to PDF Form Field", - "filename": "apply-background-image-to-pdf-form-field.cs", - "description": "Demonstrates how to set a background image for a specific form field in a PDF, covering both XFA and standard AcroForm fields using Aspose.Pdf.", + "create-pdf-form-with-submit-button": { + "title": "Create PDF Form with Submit Button", + "filename": "create-pdf-form-with-submit-button.cs", + "description": "Shows how to build a PDF form containing a text box and a submit button that automatically posts the form data to a REST endpoint using Aspose.Pdf.", "tags": [ "pdf", "form", - "background-image", - "xfa", - "acroform" + "submit", + "button", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Form.XFA.SetFieldImage", + "Aspose.Pdf.Page", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Drawing.BackgroundArtifact", - "Aspose.Pdf.Page.Artifacts.Add", - "Aspose.Pdf.Forms.Form.AddFieldAppearance" + "Aspose.Pdf.Forms.ButtonField", + "Aspose.Pdf.Forms.SubmitFormAction", + "Aspose.Pdf.FileSpecification" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "export-pdf-form-data-to-indented-json": { - "title": "Export PDF Form Data to Indented JSON", - "filename": "export-pdf-form-data-to-indented-json.cs", - "description": "Shows how to load a PDF, extract all form fields, and write them to a JSON file with indentation for better readability using Aspose.Pdf.", + "create-pdf-form-with-validation": { + "title": "Create Pdf Form With Validation", + "filename": "create-pdf-form-with-validation.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-pdf-multi-select-list-box": { + "title": "Create PDF with Multi‑Select List Box", + "filename": "create-pdf-multi-select-list-box.cs", + "description": "Shows how to add a multi‑select list box form field to a PDF document using Aspose.Pdf.", "tags": [ - "pdf", - "form", - "json", - "export", - "indentation" + "listbox", + "multiselect", + "pdf-form", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.ExportFieldsToJsonOptions", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Form.ExportToJson" + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.ListBoxField", + "Aspose.Pdf.Forms.ListBoxField.AddOption", + "Aspose.Pdf.Forms.ListBoxField.MultiSelect", + "Aspose.Pdf.Form.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "import-form-data-from-json-via-rest-api": { - "title": "Import Form Data from JSON via REST API", - "filename": "import-form-data-from-json-via-rest-api.cs", - "description": "Demonstrates downloading JSON form data from a REST endpoint and populating an existing PDF form using Aspose.Pdf's ImportFromJson method.", + "create-pdf-template-with-form-fields": { + "title": "Create PDF Template with Form Fields using Aspose.Pdf", + "filename": "create-pdf-template-with-form-fields.cs", + "description": "Shows how to generate a PDF template that contains text box form fields (Name, Email, Address) with labels, and save it as a reusable document.", "tags": [ - "form", - "json", - "rest", - "aspose.pdf", + "pdf", + "form-fields", + "template", + "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Form.ImportFromJson", - "Aspose.Pdf.Forms.Form.ExportToJson" + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Text.DefaultAppearance", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.Position" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "center-align-text-field-in-pdf-form": { - "title": "Center Align Text Field in PDF Form", - "filename": "center-align-text-field-in-pdf-form.cs", - "description": "Shows how to load a PDF, locate a text box form field, and set its horizontal alignment to center using Aspose.Pdf.", + "create-pdf-template-with-form-placeholders": { + "title": "Create Pdf Template With Form Placeholders", + "filename": "create-pdf-template-with-form-placeholders.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-pdf-with-acroform-calculation-js": { + "title": "Create Pdf With Acroform Calculation Js", + "filename": "create-pdf-with-acroform-calculation-js.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-pdf-with-acroform-calculation": { + "title": "Create PDF with AcroForm fields and calculation script", + "filename": "create-pdf-with-acroform-calculation.cs", + "description": "Demonstrates how to generate a PDF containing AcroForm text fields for quantity, price, and total, and embed JavaScript that automatically computes the total amount.", "tags": [ "pdf", - "form", - "alignment", - "textbox", - "aspose" + "acroform", + "javascript", + "calculation", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.HorizontalAlignment", + "Aspose.Pdf.Forms.JavascriptAction", + "Aspose.Pdf.Forms.Form.Add", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "create-right-aligned-numeric-text-field": { - "title": "Create Right-Aligned Numeric Text Field in PDF", - "filename": "create-right-aligned-numeric-text-field.cs", - "description": "Shows how to add a numeric text field to a PDF document and set its horizontal alignment to right using Aspose.Pdf.", + "create-pdf-with-acroform-fields-custom-tab-order": { + "title": "Create PDF with AcroForm Fields and Custom Tab Order", + "filename": "create-pdf-with-acroform-fields-custom-tab-order.cs", + "description": "Demonstrates how to create a PDF, add AcroForm text and number fields, enable manual tab order on a page, and assign custom tab order indices for better keyboard navigation.", "tags": [ + "acroform", + "tab-order", "pdf", - "form", - "text-field", - "alignment", - "aspose" + "forms", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.TabOrder", "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.TextBoxField", "Aspose.Pdf.Forms.NumberField", - "Aspose.Pdf.Text.HorizontalAlignment", + "Aspose.Pdf.Form.Add", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "add-date-picker-field-to-pdf": { - "title": "Add Date Picker Field to PDF", - "filename": "add-date-picker-field-to-pdf.cs", - "description": "Shows how to create a DateField on an existing PDF, configure its appearance, initialize it, and attach JavaScript to launch the built‑in date picker when the field is activated.", + "create-pdf-with-acroform-open-js": { + "title": "Create Pdf With Acroform Open Js", + "filename": "create-pdf-with-acroform-open-js.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-pdf-with-acroform-text-field": { + "title": "Create Pdf With Acroform Text Field", + "filename": "create-pdf-with-acroform-text-field.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-pdf-with-acroform-textbox-margins": { + "title": "Create Pdf With Acroform Textbox Margins", + "filename": "create-pdf-with-acroform-textbox-margins.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-pdf-with-acroform-tooltips": { + "title": "Create PDF with AcroForm fields and tooltips", + "filename": "create-pdf-with-acroform-tooltips.cs", + "description": "Shows how to generate a PDF, add text and numeric AcroForm fields, and assign tooltips via the AlternateName property.", "tags": [ - "datefield", - "javascript", - "form", + "acroform", + "tooltip", "pdf", - "aspose" + "forms", + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.DateField", - "Aspose.Pdf.Forms.Border", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.NumberField", + "Aspose.Pdf.Document.Form.Add", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "populate-currency-value-in-pdf-form": { - "title": "Populate Currency Value in PDF Form Field", - "filename": "populate-currency-value-in-pdf-form.cs", - "description": "Shows how to create a RichTextBox form field in a PDF and fill it with a formatted currency string that includes the currency symbol and thousand separators using Aspose.Pdf.", + "create-pdf-with-hidden-guid-tracking-field": { + "title": "Create PDF with Hidden GUID Tracking Field", + "filename": "create-pdf-with-hidden-guid-tracking-field.cs", + "description": "Demonstrates generating a GUID at runtime and storing it in a hidden text box form field inside a PDF using Aspose.Pdf.", "tags": [ "pdf", "form", - "currency", - "aspose.pdf", - "csharp" + "guid", + "hidden-field", + "aspose.pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.RichTextBoxField", - "Aspose.Pdf.Form" + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Form.Add", + "Aspose.Pdf.Document.Pages.Add" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "validate-email-form-field": { - "title": "Validate Email Form Field Before Saving PDF", - "filename": "validate-email-form-field.cs", - "description": "Demonstrates how to load a PDF, retrieve a form field, validate that the email contains an '@' character, and save the document only if validation passes.", + "create-pdf-with-top-checkbox": { + "title": "Create PDF with Top‑Positioned Checkbox Field", + "filename": "create-pdf-with-top-checkbox.cs", + "description": "Shows how to create a new PDF document, add an AcroForm, and place a checkbox field near the top of the page.", "tags": [ + "acroform", + "checkbox", "pdf", - "form", - "validation", - "email", - "aspose-pdf" + "aspose-pdf", + "form-field" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.CheckboxField", + "Aspose.Pdf.Form.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "remove-form-field-from-pdf": { - "title": "Remove a Form Field from a PDF", - "filename": "remove-form-field-from-pdf.cs", - "description": "Shows how to verify the existence of a form field in a PDF and delete it using Aspose.Pdf, then save the modified document.", + "create-pdf-with-xfa-form": { + "title": "Create PDF with XFA Form and Populate Its Fields", + "filename": "create-pdf-with-xfa-form.cs", + "description": "Demonstrates how to load an XFA template, embed it into a PDF, and set values for XFA fields using Aspose.Pdf.", "tags": [ + "xfa", "pdf", "form", - "delete", - "aspose", - "csharp" + "field-population", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Form.HasField", - "Aspose.Pdf.Forms.Form.Delete", + "Aspose.Pdf.Forms.Form.AssignXfa", + "Aspose.Pdf.Forms.Form.HasXfa", + "Aspose.Pdf.Forms.TextBoxField", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "insert-form-field-at-specific-index": { - "title": "Insert Form Field at Specific Index in PDF", - "filename": "insert-form-field-at-specific-index.cs", - "description": "Demonstrates how to add a TextBox form field to a PDF at a given page index using Aspose.Pdf, preserving the ordered layout of form fields.", + "create-pdf-with-xmp-metadata-fallback-xml": { + "title": "Create Pdf With Xmp Metadata Fallback Xml", + "filename": "create-pdf-with-xmp-metadata-fallback-xml.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-right-aligned-numeric-text-field": { + "title": "Create Right-Aligned Numeric Text Field in PDF", + "filename": "create-right-aligned-numeric-text-field.cs", + "description": "Shows how to add a numeric text field to a PDF document and set its horizontal alignment to right using Aspose.Pdf.", "tags": [ "pdf", "form", - "textfield", - "aspose-pdf", - "csharp" + "text-field", + "alignment", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.TextBoxField", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Form.Add" + "Aspose.Pdf.Forms.NumberField", + "Aspose.Pdf.Text.HorizontalAlignment", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "create-pdf-acroform-open-js": { - "title": "Create PDF with AcroForm Text Field and Open-Action JavaScript", - "filename": "create-pdf-acroform-open-js.cs", - "description": "Shows how to add a text box AcroForm field to a PDF and set a document‑level JavaScript action that runs when the PDF is opened.", + "create-rtl-textbox-form-field": { + "title": "Create Rtl Textbox Form Field", + "filename": "create-rtl-textbox-form-field.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "date-field-validation-with-regex": { + "title": "Date Field Validation With Regex", + "filename": "date-field-validation-with-regex.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "define-calculation-order-for-pdf-form-fields": { + "title": "Define Calculation Order for PDF Form Fields", + "filename": "define-calculation-order-for-pdf-form-fields.cs", + "description": "Shows how to enable automatic recalculation, set a custom calculation order for dependent form fields, and assign a JavaScript calculation action using Aspose.Pdf.", "tags": [ - "acroform", + "pdf", + "forms", + "calculation-order", "javascript", - "text-field", - "pdf-creation", - "open-action" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.DefaultAppearance", - "Aspose.Pdf.Annotations.JavascriptAction" + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.JavascriptAction", + "Aspose.Pdf.Forms.Form.AutoRecalculate" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "export-pdf-form-data-to-json-gzip": { - "title": "Export PDF Form Data to JSON and Compress with GZip", - "filename": "export-pdf-form-data-to-json-gzip.cs", - "description": "Shows how to load a PDF, export its form fields to JSON using Aspose.Pdf, and compress the result with GZip for efficient storage or transmission.", - "tags": [ + "delete-form-field-from-pdf": { + "title": "Delete a Form Field from a PDF", + "filename": "delete-form-field-from-pdf.cs", + "description": "Demonstrates how to remove a specific form field from an existing PDF using Aspose.Pdf by checking for the field's existence and saving the modified document.", + "tags": [ "pdf", "form", - "json", - "gzip", - "export" + "delete", + "field", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.ExportFieldsToJsonOptions", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Form.ExportToJson" + "Aspose.Pdf.Form.HasField", + "Aspose.Pdf.Form.Delete", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "import-encrypted-xfdf-form-data": { - "title": "Import Encrypted XFDF Form Data into PDF", - "filename": "import-encrypted-xfdf-form-data.cs", - "description": "Shows how to create a PDF form, encrypt XFDF data with AES‑CBC, decrypt it at runtime, and import the field values into the PDF using Aspose.Pdf.", + "delete-form-field-from-pdf__v2": { + "title": "Delete a Form Field from a PDF", + "filename": "delete-form-field-from-pdf__v2.cs", + "description": "Shows how to remove a specific form field from a PDF document using Aspose.Pdf by calling Document.Form.Delete and then saving the file.", "tags": [ - "xfdf", - "form", - "encryption", "pdf", - "aspose" + "form", + "delete", + "aspose.pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Xfdf.XfdfReader.ReadFields" + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Form.Delete", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "set-rich-text-field-html": { - "title": "Set Rich Text Field Value with HTML in PDF", - "filename": "set-rich-text-field-html.cs", - "description": "Demonstrates how to load a PDF, locate a RichTextBox form field, and assign HTML markup to its FormattedValue to display formatted text.", + "delete-form-fields-on-page": { + "title": "Delete Form Fields On Page", + "filename": "delete-form-fields-on-page.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "detect-flattened-pdf-modify-form-field": { + "title": "Detect Flattened Pdf Modify Form Field", + "filename": "detect-flattened-pdf-modify-form-field.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "digitally-sign-filled-pdf-form": { + "title": "Digitally Sign Filled Pdf Form", + "filename": "digitally-sign-filled-pdf-form.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "duplicate-pdf-form-field": { + "title": "Duplicate PDF Form Field and Rename", + "filename": "duplicate-pdf-form-field.cs", + "description": "Shows how to programmatically copy an existing PDF form field, give each copy a unique name, optionally reposition them, and save the updated document using Aspose.Pdf.", "tags": [ - "rich-text", - "pdf-form", - "html", + "pdf", + "form", + "duplicate-field", "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.RichTextBoxField", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Forms.FormField" + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.Form.Add", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "create-pdf-with-acroform-tooltips": { - "title": "Create PDF with AcroForm fields and tooltips", - "filename": "create-pdf-with-acroform-tooltips.cs", - "description": "Shows how to generate a PDF, add text and numeric AcroForm fields, and assign tooltips via the AlternateName property.", + "duplicate-rename-pdf-form-field": { + "title": "Duplicate Rename Pdf Form Field", + "filename": "duplicate-rename-pdf-form-field.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "dynamic-listbox-add-item": { + "title": "Dynamic Listbox Add Item", + "filename": "dynamic-listbox-add-item.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "enable-spell-checking-textbox-field": { + "title": "Enable Spell Checking for a Text Box Field in PDF", + "filename": "enable-spell-checking-textbox-field.cs", + "description": "Shows how to add a TextBoxField to a PDF document and turn on spell checking using Aspose.Pdf.", "tags": [ - "acroform", - "tooltip", + "spellcheck", + "textbox", + "form", "pdf", - "forms", - "aspnet" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.NumberField", "Aspose.Pdf.Document.Form.Add", + "Aspose.Pdf.Forms.TextBoxField.SpellCheck", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "import-form-data-from-json": { - "title": "Import Form Data from JSON into PDF", - "filename": "import-form-data-from-json.cs", - "description": "Demonstrates how to bulk import form field values from a JSON file into an existing PDF document using Aspose.Pdf's Form.ImportFromJson method and then save the updated PDF.", + "export-acroform-data-to-xfdf-xml": { + "title": "Export Acroform Data To Xfdf Xml", + "filename": "export-acroform-data-to-xfdf-xml.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "export-acroform-data-to-xfdf": { + "title": "Export AcroForm Data to XFDF and Save to Network Share", + "filename": "export-acroform-data-to-xfdf.cs", + "description": "Demonstrates loading a PDF with Aspose.Pdf, extracting its AcroForm fields as XFDF (XML) and writing the resulting file to a UNC network share.", "tags": [ - "form", - "json", - "import", - "pdf", - "bulk-update" + "AcroForm", + "XFDF", + "Export", + "NetworkShare", + "PDF" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Form.ImportFromJson" + "Aspose.Pdf.Document.ExportAnnotationsToXfdf" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "export-pdf-form-data-to-xml-custom-root": { - "title": "Export PDF Form Data to XML with Custom Root Element", - "filename": "export-pdf-form-data-to-xml-custom-root.cs", - "description": "Shows how to extract XFA form data from a PDF and save it as XML while renaming the root element to meet external system requirements.", + "export-acroform-data-to-xml": { + "title": "Export AcroForm Data to XML", + "filename": "export-acroform-data-to-xml.cs", + "description": "Loads a PDF, iterates through its AcroForm fields, extracts each field's value according to its concrete type, and writes the collected data into an XML file.", + "tags": [ + "AcroForm", + "XML", + "Export", + "Aspose.Pdf", + "FormFields" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.CheckboxField", + "Aspose.Pdf.Forms.RadioButtonField", + "Aspose.Pdf.Forms.ListBoxField", + "Aspose.Pdf.Forms.ComboBoxField", + "Aspose.Pdf.Forms.SignatureField" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T08:40:37Z", + "status": "verified" + }, + "export-barcode-fields-to-xml": { + "title": "Export Barcode Form Fields to XML", + "filename": "export-barcode-fields-to-xml.cs", + "description": "Shows how to iterate through a PDF's form fields, extract barcode field names and values, and write them to an XML file for inventory system integration.", "tags": [ + "barcode", "pdf", - "form", "xml", - "xfa", + "forms", "export" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Form", - "Aspose.Pdf.Forms.XFA", - "Aspose.Pdf.Forms.XFA.Datasets" + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.BarcodeField", + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Document.Form.Fields" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "add-calculated-total-field-with-javascript": { - "title": "Add Calculated Total Field with JavaScript in PDF Form", - "filename": "add-calculated-total-field-with-javascript.cs", - "description": "Shows how to create numeric input fields and a read‑only total field that automatically sums them using JavaScript in an Aspose.Pdf document.", + "export-conditional-visibility-state-to-xml": { + "title": "Export Conditional Visibility State To Xml", + "filename": "export-conditional-visibility-state-to-xml.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "export-form-field-appearances": { + "title": "Export Form Field Appearances to Separate PDF Files", + "filename": "export-form-field-appearances.cs", + "description": "Loads a PDF containing form fields, extracts each field's visual appearance stream, and saves each appearance as an individual PDF file for visual inspection.", "tags": [ + "form-fields", + "appearance", + "export", "pdf", - "form", - "calculated-field", - "javascript", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Forms.NumberField", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Forms.Form" + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.Form.AddFieldAppearance", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Pages.Add", + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "add-current-time-datefield-to-pdf": { - "title": "Add Current Time DateField to PDF on Load", - "filename": "add-current-time-datefield-to-pdf.cs", - "description": "Demonstrates how to create a DateField in a PDF using Aspose.Pdf, set its display format to HH:mm:ss, and assign the current system time as the default value when the document is loaded.", + "export-pdf-barcode-fields-to-xml": { + "title": "Export Pdf Barcode Fields To Xml", + "filename": "export-pdf-barcode-fields-to-xml.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "export-pdf-conversion-progress-to-xml": { + "title": "Export PDF Conversion Progress to XML", + "filename": "export-pdf-conversion-progress-to-xml.cs", + "description": "Demonstrates attaching a custom progress handler to HtmlSaveOptions during PDF‑to‑HTML conversion with Aspose.Pdf, capturing each progress event and persisting the data to an XML file.", "tags": [ - "datefield", - "pdf-forms", + "pdf-conversion", + "progress-events", + "xml", "aspose-pdf", - "current-time", - "csharp" + "html-export" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.DateField", - "Aspose.Pdf.Forms.DefaultAppearance", + "Aspose.Pdf.HtmlSaveOptions", + "Aspose.Pdf.HtmlSaveOptions.ConversionProgressEventHandler", + "Aspose.Pdf.HtmlSaveOptions.ProgressEventHandlerInfo", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "create-pdf-form-with-barcode-field": { - "title": "Create PDF Form with Barcode Field", - "filename": "create-pdf-form-with-barcode-field.cs", - "description": "Shows how to generate a PDF form and insert a read‑only Code128 barcode field using Aspose.Pdf.", + "export-pdf-digital-signature-to-xml": { + "title": "Export PDF Digital Signature Information to XML", + "filename": "export-pdf-digital-signature-to-xml.cs", + "description": "Shows how to load a signed PDF with Aspose.Pdf and export its digital signature data to an XML file for audit logging.", "tags": [ "pdf", - "barcode", - "form", - "aspnet", - "code128" + "digital-signature", + "xml", + "audit", + "export" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.BarcodeField", - "Aspose.Pdf.Forms.BarcodeField.AddBarcode", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.SaveXml" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "add-dynamic-barcode-field-to-pdf": { - "title": "Add Dynamic Barcode Field to PDF", - "filename": "add-dynamic-barcode-field-to-pdf.cs", - "description": "Shows how to load a PDF template, generate a unique value at runtime, create a Code128 barcode field on a page, and save the document with the barcode embedded.", - "tags": [ - "barcode", + "export-pdf-form-appearance-to-json": { + "title": "Export PDF Form Field Appearance Settings to JSON", + "filename": "export-pdf-form-appearance-to-json.cs", + "description": "Demonstrates how to export all form fields, including their appearance settings, from a PDF document to a formatted JSON file using Aspose.Pdf.", + "tags": [ "pdf", "forms", - "dynamic", - "aspose" + "export", + "json", + "appearance" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.BarcodeField", - "Aspose.Pdf.Forms.BarcodeField.AddBarcode", - "Aspose.Pdf.Color", - "Aspose.Pdf.Page.Annotations.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.ExportFieldsToJsonOptions", + "Aspose.Pdf.Forms.Form.ExportToJson" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "validate-required-pdf-form-fields-before-export": { - "title": "Validate Required PDF Form Fields Before Exporting to JSON", - "filename": "validate-required-pdf-form-fields-before-export.cs", - "description": "The example loads a PDF, checks that all fields marked as required contain a value, and only then exports the form data to a JSON file. It aborts the export if any required field is empty.", + "export-pdf-form-data-to-indented-json": { + "title": "Export PDF Form Data to Indented JSON", + "filename": "export-pdf-form-data-to-indented-json.cs", + "description": "Shows how to load a PDF, extract all form fields, and write them to a JSON file with indentation for better readability using Aspose.Pdf.", "tags": [ "pdf", - "form-validation", - "json-export", - "aspose", - "csharp" + "form", + "json", + "export", + "indentation" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.ExportFieldsToJsonOptions", "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Form.ExportToJson", - "Aspose.Pdf.Forms.Field.Required" + "Aspose.Pdf.Forms.Form.ExportToJson" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "verify-pdf-form-field-count": { - "title": "Verify PDF Form Field Count with Aspose.Pdf", - "filename": "verify-pdf-form-field-count.cs", - "description": "Loads a PDF document, checks the number of form fields using Document.Form.Count, and proceeds only when the count matches the expected value.", + "export-pdf-form-data-to-json-gzip": { + "title": "Export PDF Form Data to JSON and Compress with GZip", + "filename": "export-pdf-form-data-to-json-gzip.cs", + "description": "Shows how to load a PDF, export its form fields to JSON using Aspose.Pdf, and compress the result with GZip for efficient storage or transmission.", "tags": [ "pdf", "form", - "field-count", - "validation", - "aspose-pdf" + "json", + "gzip", + "export" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Form", - "Aspose.Pdf.Form.Count" + "Aspose.Pdf.Forms.ExportFieldsToJsonOptions", + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Form.ExportToJson" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "bind-pdf-with-formeditor-save-modified-pdf": { - "title": "Bind PDF with FormEditor and Save Modified PDF", - "filename": "bind-pdf-with-formeditor-save-modified-pdf.cs", - "description": "Demonstrates loading a PDF using Aspose.Pdf's FormEditor, optionally adding a form field, and saving the modified document to a new output file.", + "export-pdf-form-data-to-json": { + "title": "Export PDF Form Data to JSON", + "filename": "export-pdf-form-data-to-json.cs", + "description": "Shows how to load a PDF, export its form fields to a JSON string, and write the JSON to a file using Aspose.Pdf.", "tags": [ "pdf", "form", - "edit", - "aspose", - "csharp" + "json", + "export", + "aspose" ], "apis_used": [ - "Aspose.Pdf.Facades.FormEditor", - "FormEditor.BindPdf", - "FormEditor.AddTextField", - "FormEditor.Save", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Document", + "Aspose.Pdf.Form", + "Aspose.Pdf.Form.ExportToJson" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "set-max-length-for-pdf-text-field": { - "title": "Set Maximum Length for PDF Text Field", - "filename": "set-max-length-for-pdf-text-field.cs", - "description": "Shows how to open a PDF, locate the 'CustomerName' TextBoxField, and limit its input to 50 characters using Aspose.Pdf.", + "export-pdf-form-data-to-pretty-json": { + "title": "Export PDF Form Data to Pretty-Printed JSON", + "filename": "export-pdf-form-data-to-pretty-json.cs", + "description": "Demonstrates how to export all form fields from a PDF to a JSON file with indentation for readability using Aspose.Pdf.", "tags": [ "pdf", "form", - "textfield", - "maxlength", - "aspose" + "json", + "export", + "pretty-print" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.TextBoxField.MaxLen", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.ExportFieldsToJsonOptions", + "Aspose.Pdf.Forms.ExportFieldsToJsonOptions.WriteIndented", + "Aspose.Pdf.Forms.Form.ExportToJson" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "set-custom-font-for-signature-field": { - "title": "Set Custom TrueType Font for PDF Signature Field", - "filename": "set-custom-font-for-signature-field.cs", - "description": "Demonstrates how to register a custom TrueType font and assign it to a signature form field using the DefaultAppearance property in Aspose.Pdf.", - "tags": [ - "signature", - "custom-font", - "pdf-forms", - "default-appearance", - "Aspose.Pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.FontRepository", - "Aspose.Pdf.FontRepository.Sources.Add", - "Aspose.Pdf.FontRepository.OpenFont", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Annotations.DefaultAppearance" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:40:37Z", + "export-pdf-form-data-to-xfdf-stream": { + "title": "Export Pdf Form Data To Xfdf Stream", + "filename": "export-pdf-form-data-to-xfdf-stream.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "add-checkbox-field-to-pdf-form": { - "title": "Add Checkbox Field to PDF Form", - "filename": "add-checkbox-field-to-pdf-form.cs", - "description": "Shows how to load an existing PDF, create a CheckboxField, add it to the document's form, and save the modified file.", + "export-pdf-form-data-to-xfdf": { + "title": "Export Pdf Form Data To Xfdf", + "filename": "export-pdf-form-data-to-xfdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "export-pdf-form-data-to-xml-and-transform": { + "title": "Export PDF Form Data to XML and Transform to Custom Report", + "filename": "export-pdf-form-data-to-xml-and-transform.cs", + "description": "Demonstrates extracting PDF form fields to XML with Aspose.Pdf and then applying an XSLT stylesheet to generate a custom HTML report.", "tags": [ - "checkbox", - "form", "pdf", - "aspose", - "csharp" + "form-data", + "xml", + "xslt", + "report" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.CheckboxField", - "Aspose.Pdf.Forms.Form.Add", + "Aspose.Pdf.XmlSaveOptions", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "delete-form-field-from-pdf__v2": { - "title": "Delete a Form Field from a PDF", - "filename": "delete-form-field-from-pdf__v2.cs", - "description": "Shows how to remove a specific form field from a PDF document using Aspose.Pdf by calling Document.Form.Delete and then saving the file.", + "export-pdf-form-data-to-xml-custom-root": { + "title": "Export PDF Form Data to XML with Custom Root Element", + "filename": "export-pdf-form-data-to-xml-custom-root.cs", + "description": "Shows how to extract XFA form data from a PDF and save it as XML while renaming the root element to meet external system requirements.", "tags": [ "pdf", "form", - "delete", - "aspose.pdf", - "csharp" + "xml", + "xfa", + "export" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Form.Delete", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Form", + "Aspose.Pdf.Forms.XFA", + "Aspose.Pdf.Forms.XFA.Datasets" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "remove-typewriter-form-fields-page-3": { - "title": "Remove Typewriter Form Fields from Page 3", - "filename": "remove-typewriter-form-fields-page-3.cs", - "description": "Demonstrates how to use TextFragmentAbsorber to locate and delete Typewriter form XObjects (subtype \"Form\") on the third page of a PDF document.", + "export-pdf-form-data-to-xml": { + "title": "Export PDF Form Data to XML", + "filename": "export-pdf-form-data-to-xml.cs", + "description": "Shows how to load a PDF document with Aspose.Pdf and export its form fields to an XML file.", "tags": [ - "forms", - "textfragmentabsorber", "pdf", - "remove", - "page3" + "form", + "xml", + "export", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragmentAbsorber", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.XForm" + "Aspose.Pdf.Document.SaveXml" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "export-acroform-data-to-xml": { - "title": "Export AcroForm Data to XML", - "filename": "export-acroform-data-to-xml.cs", - "description": "Loads a PDF, iterates through its AcroForm fields, extracts each field's value according to its concrete type, and writes the collected data into an XML file.", + "export-pdf-form-data-to-xml__v2": { + "title": "Export PDF Form Data to XML", + "filename": "export-pdf-form-data-to-xml__v2.cs", + "description": "Loads a PDF, checks for interactive form fields, and serializes their values into a custom XML file before saving the unchanged PDF.", "tags": [ - "AcroForm", - "XML", - "Export", - "Aspose.Pdf", - "FormFields" + "pdf", + "form", + "xml", + "export", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", @@ -2706,401 +3227,471 @@ "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "import-acroform-data-from-xml": { - "title": "Import AcroForm Data from XML into PDF", - "filename": "import-acroform-data-from-xml.cs", - "description": "Demonstrates loading a PDF, reading field values from an XML file, and populating the PDF's AcroForm fields using Aspose.Pdf.", + "export-pdf-form-data-to-xml__v3": { + "title": "Export PDF Form Data to XML", + "filename": "export-pdf-form-data-to-xml__v3.cs", + "description": "Shows how to load a PDF form, access the calculated tax field values, and export the entire form data to an XML file using Aspose.Pdf.", "tags": [ - "acroform", - "xml", - "import", "pdf", - "forms" + "form", + "xml", + "export", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.Form" + "Aspose.Pdf.XmlSaveOptions", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "add-submit-button-to-pdf": { - "title": "Add Submit Button with URL to PDF Form", - "filename": "add-submit-button-to-pdf.cs", - "description": "Demonstrates how to programmatically create a push button on a PDF page, assign a SubmitFormAction with a target URL, and save the updated document using Aspose.Pdf.", + "export-pdf-form-field-metadata-to-csv": { + "title": "Export PDF Form Field Metadata to CSV", + "filename": "export-pdf-form-field-metadata-to-csv.cs", + "description": "Loads a PDF, iterates through all form fields, extracts each field's name, type, and default value, and writes the information to a CSV file for auditing.", "tags": [ "pdf", - "form", - "button", - "submit", - "aspose" - ], + "forms", + "export", + "csv", + "audit" + ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.ButtonField", - "Aspose.Pdf.Forms.SubmitFormAction", - "Aspose.Pdf.FileSpecification" + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.Field.FullName", + "Aspose.Pdf.Forms.Field.Value" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "limit-textboxfield-input-length": { - "title": "Limit TextBoxField Input Length in PDF Form", - "filename": "limit-textboxfield-input-length.cs", - "description": "Demonstrates setting a maximum character length on a PDF form TextBoxField, assigning a longer string, and verifying that the value is truncated to the defined limit.", + "export-pdf-form-fields-to-csv": { + "title": "Export PDF Form Fields to CSV", + "filename": "export-pdf-form-fields-to-csv.cs", + "description": "Loads a PDF document, extracts each form field's metadata (names, value, and flags) and writes the information to a CSV file for external analysis.", "tags": [ "pdf", "form", - "textbox", - "maxlength", - "aspose-pdf" + "csv", + "export", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Forms.TextBoxField.MaxLen", - "Aspose.Pdf.Forms.TextBoxField.Value", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.FieldCollection" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "apply-custom-font-to-pdf-form-fields": { - "title": "Apply Custom Font to All PDF Form Fields", - "filename": "apply-custom-font-to-pdf-form-fields.cs", - "description": "Shows how to load a TrueType font and set it as the default appearance for every form field in a PDF using Aspose.Pdf.", + "export-pdf-form-fields-to-csv__v2": { + "title": "Export PDF Form Fields to CSV", + "filename": "export-pdf-form-fields-to-csv__v2.cs", + "description": "Demonstrates loading a PDF with Aspose.Pdf, iterating its form fields, and writing each field name and value to a CSV file for external processing.", "tags": [ "pdf", - "form-fields", - "custom-font", - "aspose.pdf", - "csharp" + "form", + "export", + "csv", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.FontRepository.OpenFont", - "Aspose.Pdf.Font", - "Aspose.Pdf.Forms.Field.DefaultAppearance", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.Field.FullName", + "Aspose.Pdf.Forms.Field.Value" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "batch-set-comments-maxlen": { - "title": "Batch Set Max Length for Comments Field in PDFs", - "filename": "batch-set-comments-maxlen.cs", - "description": "Loads each PDF in a folder, locates the 'Comments' textbox field, sets its maximum length to 100 characters, and saves the updated file to an output directory.", + "export-pdf-form-fields-to-json": { + "title": "Export PDF Form Fields to JSON", + "filename": "export-pdf-form-fields-to-json.cs", + "description": "Loads a PDF document, extracts all form field values, and serializes them into a JSON string using Aspose.Pdf.", "tags": [ "pdf", - "form", - "batch-processing", - "maxlength", - "aspose-pdf" + "form-fields", + "json", + "export", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.TextBoxField", - "Document.Form", - "TextBoxField.MaxLen", - "Document.Save" + "Aspose.Pdf.Form", + "Aspose.Pdf.Form.ExportToJson" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "list-form-field-names-types-char-limits": { - "title": "List Form Field Names, Types, and Character Limits in PDFs", - "filename": "list-form-field-names-types-char-limits.cs", - "description": "The example scans PDF files in a folder, opens each document, and enumerates its form fields, outputting each field's name, concrete type, and maximum character length when applicable.", + "export-pdf-form-fields-to-json__v2": { + "title": "Export PDF Form Fields to JSON Schema", + "filename": "export-pdf-form-fields-to-json__v2.cs", + "description": "Shows how to extract form field definitions from a PDF and serialize them into a JSON schema using Aspose.Pdf, with configurable export options and result inspection.", "tags": [ "pdf", - "forms", - "field-info", - "aspose-pdf", - "csharp" + "form", + "json", + "export", + "schema" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.WidgetAnnotation", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.FileSelectBoxField" + "Aspose.Pdf.Forms.ExportFieldsToJsonOptions", + "Aspose.Pdf.Forms.Form.ExportToJson", + "Aspose.Pdf.Forms.FieldSerializationResult", + "Aspose.Pdf.Forms.Form" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "update-pdf-form-fields": { - "title": "Update PDF Form Fields without Full Document Load", - "filename": "update-pdf-form-fields.cs", - "description": "Shows how to modify text fields in a PDF form using Aspose.Pdf's core API, avoiding the heavy Facades layer and loading the entire document into memory.", + "export-pdf-form-fields-to-json__v3": { + "title": "Export PDF Form Fields to JSON Schema", + "filename": "export-pdf-form-fields-to-json__v3.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, configure JSON export options, and export all form fields to a JSON schema file.", "tags": [ "pdf", "form", - "fields", - "update", - "aspose-pdf" + "json", + "export", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.CheckBoxField" + "Aspose.Pdf.Forms.ExportFieldsToJsonOptions", + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Form.ExportToJson", + "Aspose.Pdf.Forms.ExportFieldsToJsonOptions.WriteIndented" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "export-acroform-data-to-xfdf": { - "title": "Export AcroForm Data to XFDF and Save to Network Share", - "filename": "export-acroform-data-to-xfdf.cs", - "description": "Demonstrates loading a PDF with Aspose.Pdf, extracting its AcroForm fields as XFDF (XML) and writing the resulting file to a UNC network share.", + "export-pdf-form-fields-to-json__v4": { + "title": "Export Pdf Form Fields To Json__V4", + "filename": "export-pdf-form-fields-to-json__v4.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "export-pdf-form-interaction-log-to-xfdf": { + "title": "Export Pdf Form Interaction Log To Xfdf", + "filename": "export-pdf-form-interaction-log-to-xfdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "export-pdf-model-to-xml": { + "title": "Export PDF Document Model to XML Preserving Visibility", + "filename": "export-pdf-model-to-xml.cs", + "description": "Loads a PDF, optionally toggles the visibility of 3‑D cross‑section annotations, and saves the entire document model to an XML file to retain user preferences across sessions.", "tags": [ - "AcroForm", - "XFDF", - "Export", - "NetworkShare", - "PDF" + "pdf", + "xml", + "visibility", + "annotations", + "export" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.ExportAnnotationsToXfdf" + "Aspose.Pdf.XmlSaveOptions", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Annotations.Pdf3DCrossSection", + "Aspose.Pdf.Page" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "import-xml-form-data-into-multiple-pdfs": { - "title": "Import XML Form Data into Multiple PDFs in Parallel", - "filename": "import-xml-form-data-into-multiple-pdfs.cs", - "description": "Shows how to load PDF files, bind XML form data (XFA or AcroForm) to each document, and save the synchronized PDFs concurrently using Aspose.Pdf.", + "export-pdf-signature-to-xml-audit": { + "title": "Export Pdf Signature To Xml Audit", + "filename": "export-pdf-signature-to-xml-audit.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "export-selected-form-fields-to-xml": { + "title": "Export Selected Form Fields to XML", + "filename": "export-selected-form-fields-to-xml.cs", + "description": "Demonstrates how to load a PDF, pick specific form fields by name, and write their values to a custom XML file using Aspose.Pdf.", "tags": [ - "xml", - "form-data", "pdf", - "parallel", - "aspose.pdf" + "forms", + "export", + "xml", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.BindXml", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.FieldCollection", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.Field.PartialName", + "Aspose.Pdf.Forms.Field.Value" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "remove-form-fields-first-page": { - "title": "Remove Form Fields from First PDF Page", - "filename": "remove-form-fields-first-page.cs", - "description": "Demonstrates how to load a PDF with Aspose.Pdf, flatten (remove) all form fields on the first page, and save the cleaned template page.", + "export-selected-pdf-form-fields-to-xml": { + "title": "Export Selected Pdf Form Fields To Xml", + "filename": "export-selected-pdf-form-fields-to-xml.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "export-total-price-to-xml": { + "title": "Export Total Price to XML from Tagged PDF", + "filename": "export-total-price-to-xml.cs", + "description": "Calculates a total price, creates a minimal tagged PDF with the price displayed, and saves the document as XML for integration with an external invoicing system.", "tags": [ "pdf", - "forms", - "flatten", - "aspose.pdf", - "csharp" + "xml", + "tagged-pdf", + "export", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page.Flatten", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.TaggedContent", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.FontRepository", + "Aspose.Pdf.XmlSaveOptions" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "add-paymentmethod-radio-button-group": { - "title": "Add PaymentMethod Radio Button Group to PDF", - "filename": "add-paymentmethod-radio-button-group.cs", - "description": "Demonstrates creating a PDF document with a radio button group named 'PaymentMethod' containing 'Credit' and 'Debit' options, and saving the file.", + "extract-signature-field-image": { + "title": "Extract Signature Field Appearance as Image", + "filename": "extract-signature-field-image.cs", + "description": "Demonstrates how to locate a signature form field in a PDF and extract its visual appearance as a JPEG image for audit‑logging purposes.", "tags": [ - "radio-button", - "pdf-form", - "aspose-pdf", - "csharp", - "payment-method" + "signature", + "image", + "forms", + "audit", + "pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Forms.RadioButtonField", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.RadioButtonField.AddOption", - "Aspose.Pdf.Form.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Forms.SignatureField.ExtractImage", + "Aspose.Pdf.Forms.Form" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "set-default-selected-radio-button-value": { - "title": "Set Default Selected Radio Button Value in PDF Form", - "filename": "set-default-selected-radio-button-value.cs", - "description": "Demonstrates how to programmatically set the default selected option of a radio button field in a PDF form using Aspose.Pdf for .NET.", + "extract-text-box-form-fields": { + "title": "Extract Text Box Form Fields from PDF", + "filename": "extract-text-box-form-fields.cs", + "description": "Shows how to load a PDF, filter its form fields to only TextBoxField instances using LINQ, and write each field's name and value to a text file.", "tags": [ "pdf", - "form", - "radiobutton", - "aspose-pdf", - "csharp" - ], + "form-fields", + "textbox", + "linq", + "aspose-pdf" + ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.RadioButtonField", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.FieldCollection", + "Aspose.Pdf.Forms.Field" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "add-multiline-feedback-text-field": { - "title": "Add Multiline Feedback Text Field to PDF", - "filename": "add-multiline-feedback-text-field.cs", - "description": "Demonstrates how to add a multiline TextBoxField named 'Feedback' with a 500‑character limit to an existing PDF using Aspose.Pdf.", + "extract-transform-import-pdf-form-data": { + "title": "Extract, Transform, and Import PDF Form Data via JSON", + "filename": "extract-transform-import-pdf-form-data.cs", + "description": "Shows how to export form fields from a PDF to JSON, modify the field names, and import the transformed data into another PDF using Aspose.Pdf.", "tags": [ - "pdf", - "form", - "textbox", - "multiline", - "aspose" + "pdf-forms", + "json", + "data-transformation", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.Form.ExportToJson", + "Aspose.Pdf.Forms.Form.ImportFromJson", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Form.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Rectangle" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "remove-signature-form-fields": { - "title": "Remove Signature Form Fields from PDF", - "filename": "remove-signature-form-fields.cs", - "description": "Demonstrates how to iterate through a PDF's form collection and delete all fields of the Signature subtype using Aspose.Pdf.", + "extract-xfa-form-data-to-xml": { + "title": "Extract XFA Form Data from PDF to XML", + "filename": "extract-xfa-form-data-to-xml.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, verify the presence of an XFA form, retrieve the XFA data package as an XmlDocument, and save it as an XML file.", "tags": [ + "xfa", "pdf", - "forms", - "signature", - "remove", + "xml", + "extraction", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.Form.Delete", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Form.HasXfa", + "Aspose.Pdf.Form.XFA", + "Aspose.Pdf.XfaForm.XDP" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "export-pdf-form-fields-to-csv__v2": { - "title": "Export PDF Form Fields to CSV", - "filename": "export-pdf-form-fields-to-csv__v2.cs", - "description": "Demonstrates loading a PDF with Aspose.Pdf, iterating its form fields, and writing each field name and value to a CSV file for external processing.", + "fill-and-flatten-pdf-form-fields": { + "title": "Fill and Flatten PDF Form Fields", + "filename": "fill-and-flatten-pdf-form-fields.cs", + "description": "The example loads a PDF, sets values for a text box and a checkbox, flattens the form so the fields become static content, and saves the resulting PDF.", "tags": [ "pdf", "form", - "export", - "csv", - "aspose" + "flatten", + "fill", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.Field.FullName", - "Aspose.Pdf.Forms.Field.Value" + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.CheckboxField", + "Aspose.Pdf.Forms.Form.Flatten" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "populate-pdf-form-from-csv": { - "title": "Populate PDF Form Fields from CSV", - "filename": "populate-pdf-form-from-csv.cs", - "description": "Shows how to load a PDF form, read a CSV file with header and data rows, map each column to a matching form field, set values for various field types, and save the filled PDF.", + "fill-pdf-form-and-encrypt": { + "title": "Fill PDF Form Fields and Encrypt the Document", + "filename": "fill-pdf-form-and-encrypt.cs", + "description": "The example loads a PDF with fillable form fields, sets values for text boxes and checkboxes, then applies password protection with specific permissions before saving the result.", "tags": [ "pdf", - "form", - "csv", - "field-mapping", - "aspose-pdf" + "form-filling", + "encryption", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", "Aspose.Pdf.Forms.TextBoxField", "Aspose.Pdf.Forms.CheckboxField", - "Aspose.Pdf.Forms.ComboBoxField", - "Aspose.Pdf.Forms.ListBoxField", - "Aspose.Pdf.Forms.RadioButtonField", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Permissions", + "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.Encrypt" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "create-hidden-audit-timestamp-field": { - "title": "Create Hidden Audit Timestamp Field in PDF", - "filename": "create-hidden-audit-timestamp-field.cs", - "description": "Shows how to add a hidden DateField to a PDF using Aspose.Pdf to store the document creation timestamp for audit purposes.", + "fill-pdf-form-fields-from-byte-array": { + "title": "Fill Pdf Form Fields From Byte Array", + "filename": "fill-pdf-form-fields-from-byte-array.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "fill-pdf-form-fields-from-dictionary": { + "title": "Fill Pdf Form Fields From Dictionary", + "filename": "fill-pdf-form-fields-from-dictionary.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "fill-pdf-form-fields-from-stream": { + "title": "Fill PDF Form Fields from Stream and Return Byte Array", + "filename": "fill-pdf-form-fields-from-stream.cs", + "description": "Demonstrates loading a PDF from a stream, populating its form fields using Aspose.Pdf, and returning the modified document as a byte array.", "tags": [ "pdf", - "hidden-field", - "audit", - "timestamp", - "forms" + "form", + "aspose", + "fill", + "memory-stream" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.DateField", - "Aspose.Pdf.Annotations.AnnotationFlags" + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.ComboBoxField", + "Aspose.Pdf.Forms.CheckboxField", + "Aspose.Pdf.Forms.RadioButtonField", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "set-pdf-form-field-read-only__v2": { - "title": "Set PDF Form Field to Read‑Only", - "filename": "set-pdf-form-field-read-only__v2.cs", - "description": "Shows how to load a PDF, locate the \"EmployeeID\" form field, mark it as read‑only to prevent user modifications, and save the updated document.", + "fill-pdf-text-field": { + "title": "Fill a PDF Text Field with Aspose.Pdf", + "filename": "fill-pdf-text-field.cs", + "description": "Shows how to load an existing PDF, locate a text form field by its name, assign a string value, and save the modified document.", "tags": [ "pdf", "form", - "readonly", - "aspose-pdf", + "fill-field", + "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Document.Save", "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Forms.Field.ReadOnly" + "Aspose.Pdf.Forms.Field.Value", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, + "filter-pdf-form-textbox-fields-using-linq": { + "title": "Filter Pdf Form Textbox Fields Using Linq", + "filename": "filter-pdf-form-textbox-fields-using-linq.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "flatten-pdf-form-fields": { "title": "Flatten PDF Form Fields to Static Content", "filename": "flatten-pdf-form-fields.cs", @@ -3121,483 +3712,573 @@ "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "copy-form-fields-to-another-pdf": { - "title": "Copy Form Fields from One PDF to Another", - "filename": "copy-form-fields-to-another-pdf.cs", - "description": "Demonstrates how to load two PDFs, clone form fields from a source document, and add them to a destination document on a chosen page using Aspose.Pdf.", + "flatten-pdf-form-fields__v2": { + "title": "Flatten Pdf Form Fields__V2", + "filename": "flatten-pdf-form-fields__v2.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "flatten-pdf-remove-form-fields": { + "title": "Flatten PDF to Remove All Form Fields", + "filename": "flatten-pdf-remove-form-fields.cs", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, flatten it to delete all interactive form fields, and save the resulting plain PDF.", "tags": [ "pdf", - "form-fields", - "copy", + "forms", + "flatten", "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.Field.Clone", - "Aspose.Pdf.Forms.Form.Add", + "Aspose.Pdf.Document.Flatten", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "create-pdf-country-dropdown": { - "title": "Create a PDF Country Dropdown List", - "filename": "create-pdf-country-dropdown.cs", - "description": "Shows how to add a ComboBox form field named 'Country' to a PDF and fill it with a predefined array of country names using Aspose.Pdf.", + "generate-csv-summary-of-pdf-form-fields": { + "title": "Generate CSV Summary of PDF Form Fields", + "filename": "generate-csv-summary-of-pdf-form-fields.cs", + "description": "The example loads all PDF files in a folder, extracts each form field's name and value, and writes a CSV report summarizing the filled fields across the documents.", "tags": [ "pdf", - "dropdown", - "form", - "combobox", - "aspose-pdf" + "forms", + "csv", + "aspose", + "field-extraction" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.ComboBoxField", - "Aspose.Pdf.Document.Form.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Forms.Form.Fields" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "set-default-selected-country-in-pdf-combo-box": { - "title": "Set Default Selected Country in PDF Combo Box", - "filename": "set-default-selected-country-in-pdf-combo-box.cs", - "description": "Shows how to set the default selected item of the 'Country' combo box to \"United States\" in a PDF using Aspose.Pdf FormEditor.", + "generate-form-fields-report": { + "title": "Generate Form Fields Report", + "filename": "generate-form-fields-report.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "generate-invoice-pdf-with-xml-discounts": { + "title": "Generate Invoice Pdf With Xml Discounts", + "filename": "generate-invoice-pdf-with-xml-discounts.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "generate-pdf-discount-from-xml": { + "title": "Generate PDF with Discounted Price from XML", + "filename": "generate-pdf-discount-from-xml.cs", + "description": "Loads discount rates from an XML file, calculates the final price, and creates a PDF displaying the base price, total discount, and final price using Aspose.Pdf.", "tags": [ + "xml", "pdf", - "combobox", - "form", + "discount", "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.ComboBoxField", - "Aspose.Pdf.Forms.ComboBoxField.Value", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.FontRepository.FindFont", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Color", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "validate-age-numberfield-non-numeric-input": { - "title": "Validate Age NumberField Rejects Alphabetic Input", - "filename": "validate-age-numberfield-non-numeric-input.cs", - "description": "Shows how to create a numeric field in a PDF with Aspose.Pdf, set allowed characters, and confirm that assigning alphabetic characters throws an InvalidValueFormatException.", + "generate-pdf-form-fields-from-json": { + "title": "Generate PDF Form Fields from JSON Schema", + "filename": "generate-pdf-form-fields-from-json.cs", + "description": "Demonstrates how to read a JSON schema describing form fields and create corresponding AcroForm fields in a new PDF using Aspose.Pdf.", "tags": [ "pdf", - "form", - "numberfield", - "validation", - "aspose.pdf" + "forms", + "json", + "acroform", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.NumberField", - "Aspose.Pdf.Forms.InvalidValueFormatException" + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.CheckboxField", + "Aspose.Pdf.Forms.RadioButtonOptionField", + "Aspose.Pdf.Forms.ComboBoxField", + "Aspose.Pdf.Forms.Form" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "add-calculation-button-to-pdf-form": { - "title": "Add Calculation Button to PDF Form", - "filename": "add-calculation-button-to-pdf-form.cs", - "description": "Shows how to create a push‑button in an existing PDF form and attach JavaScript that reads Quantity and UnitPrice fields, computes the total, and writes the result back to the Total field.", + "get-address-field-character-limit": { + "title": "Get Address Field Character Limit", + "filename": "get-address-field-character-limit.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "hide-pdf-form-field": { + "title": "Hide PDF Form Field Using Aspose.Pdf", + "filename": "hide-pdf-form-field.cs", + "description": "Demonstrates how to hide a specific form field in a PDF by setting the Hidden flag on its widget annotation and saving the updated document.", "tags": [ "pdf", - "form", - "javascript", - "button", - "calculation" + "form-field", + "visibility", + "annotation", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.ButtonField", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Forms.Form.Add", + "Aspose.Pdf.Annotations.WidgetAnnotation", + "Aspose.Pdf.Annotations.AnnotationFlags", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "remove-javascript-actions-from-pdf-form-fields": { - "title": "Remove JavaScript Actions from PDF Form Fields", - "filename": "remove-javascript-actions-from-pdf-form-fields.cs", - "description": "The example loads a PDF, iterates through all form fields, clears any JavaScript actions attached to the fields, and saves the cleaned document.", + "highlight-mandatory-text-field-border-red": { + "title": "Highlight Mandatory Text Fields by Setting Border Color to Red", + "filename": "highlight-mandatory-text-field-border-red.cs", + "description": "Loads a PDF, iterates through its form fields, and changes the border color of all text box fields to red to indicate mandatory information, then saves the updated document.", "tags": [ "pdf", - "javascript", "form-fields", - "security", - "aspose-pdf" + "border-color", + "mandatory", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.Field.Actions", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Color", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "export-form-field-appearances": { - "title": "Export Form Field Appearances to Separate PDF Files", - "filename": "export-form-field-appearances.cs", - "description": "Loads a PDF containing form fields, extracts each field's visual appearance stream, and saves each appearance as an individual PDF file for visual inspection.", + "highlight-required-form-fields": { + "title": "Highlight Required Form Fields in PDF", + "filename": "highlight-required-form-fields.cs", + "description": "Shows how to load a PDF, locate required form fields, and change their color (and border width) to highlight them before saving the document.", "tags": [ - "form-fields", - "appearance", - "export", "pdf", - "aspose-pdf" + "form", + "highlight", + "required", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.Form", "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.Form.AddFieldAppearance", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Color", + "Aspose.Pdf.Forms.Border" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "batch-convert-pdfs-to-xml": { - "title": "Batch Convert PDFs to XML Files", - "filename": "batch-convert-pdfs-to-xml.cs", - "description": "Demonstrates how to iterate through a folder of PDF documents, load each with Aspose.Pdf, and save it as an XML form data file while preserving the original file name.", + "import-acroform-data-from-xfdf-xml": { + "title": "Import Acroform Data From Xfdf Xml", + "filename": "import-acroform-data-from-xfdf-xml.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "import-acroform-data-from-xml": { + "title": "Import AcroForm Data from XML into PDF", + "filename": "import-acroform-data-from-xml.cs", + "description": "Demonstrates loading a PDF, reading field values from an XML file, and populating the PDF's AcroForm fields using Aspose.Pdf.", "tags": [ - "pdf", + "acroform", "xml", - "batch", - "conversion", - "aspose-pdf" + "import", + "pdf", + "forms" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.XmlSaveOptions", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.SaveOptions", - "Aspose.Pdf.Document.Dispose" + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.Form" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "synchronize-pdf-form-data-using-xfdf": { - "title": "Synchronize PDF Form Data Using XFDF", - "filename": "synchronize-pdf-form-data-using-xfdf.cs", - "description": "Demonstrates exporting form fields from a source PDF to an XFDF file and importing that data into a target PDF to keep form values synchronized.", + "import-acroform-fields-from-json": { + "title": "Import AcroForm Fields from JSON into PDF", + "filename": "import-acroform-fields-from-json.cs", + "description": "Demonstrates how to load a JSON schema that defines AcroForm fields and import them into a newly created PDF document using Aspose.Pdf.", "tags": [ "pdf", - "forms", - "xfdf", - "export", - "import" + "acroform", + "json", + "import", + "forms" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Annotations.XfdfReader.ReadFields", - "Aspose.Pdf.Document.ExportAnnotationsToXfdf", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Form.ImportFromJson", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Pages.Add" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "replace-xfa-with-acroform-xml-template": { - "title": "Replace XFA Form with AcroForm Using XML Template", - "filename": "replace-xfa-with-acroform-xml-template.cs", - "description": "Shows how to load a PDF containing an XFA form, assign new XFA data from an XML template, convert the form to a standard AcroForm, and save the updated PDF.", + "import-acroform-fields-from-json__v2": { + "title": "Import Acroform Fields From Json__V2", + "filename": "import-acroform-fields-from-json__v2.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "import-annotation-visibility-from-xml": { + "title": "Import Annotation Visibility From Xml", + "filename": "import-annotation-visibility-from-xml.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "import-encrypted-xfa-form-data-into-pdf": { + "title": "Import Encrypted Xfa Form Data Into Pdf", + "filename": "import-encrypted-xfa-form-data-into-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "import-encrypted-xfdf-form-data": { + "title": "Import Encrypted XFDF Form Data into PDF", + "filename": "import-encrypted-xfdf-form-data.cs", + "description": "Shows how to create a PDF form, encrypt XFDF data with AES‑CBC, decrypt it at runtime, and import the field values into the PDF using Aspose.Pdf.", "tags": [ - "XFA", - "AcroForm", - "Aspose.Pdf", - "XML", - "form-conversion" + "xfdf", + "form", + "encryption", + "pdf", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Form.AssignXfa", - "Aspose.Pdf.Forms.Form.HasXfa", - "Aspose.Pdf.Forms.Form.Type", - "Aspose.Pdf.Forms.FormType.Standard", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Xfdf.XfdfReader.ReadFields" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "set-tooltip-for-pdf-email-field": { - "title": "Set Tooltip for PDF Email Form Field", - "filename": "set-tooltip-for-pdf-email-field.cs", - "description": "The example loads a PDF, finds the TextBox form field named \"Email\", sets its tooltip (alternate name) to show the required email format, and saves the updated document.", + "import-form-appearance-from-json": { + "title": "Import Form Appearance From Json", + "filename": "import-form-appearance-from-json.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "import-form-appearances-from-json": { + "title": "Import Form Field Appearances from JSON into PDF", + "filename": "import-form-appearances-from-json.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, import form field appearance settings from a JSON file, and save the updated document.", "tags": [ "pdf", "form", - "tooltip", - "textboxfield", - "aspose-pdf" + "json", + "appearance", + "import" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Form" + "Aspose.Pdf.Form", + "Aspose.Pdf.Form.ImportFromJson", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "highlight-mandatory-text-field-border-red": { - "title": "Highlight Mandatory Text Fields by Setting Border Color to Red", - "filename": "highlight-mandatory-text-field-border-red.cs", - "description": "Loads a PDF, iterates through its form fields, and changes the border color of all text box fields to red to indicate mandatory information, then saves the updated document.", + "import-form-data-from-compressed-json": { + "title": "Import Form Data from Compressed JSON into PDF", + "filename": "import-form-data-from-compressed-json.cs", + "description": "Shows how to load a PDF, decompress a GZIP‑compressed JSON payload on the fly, import the form field values using Form.ImportFromJson, and save the updated document.", "tags": [ - "pdf", - "form-fields", - "border-color", - "mandatory", - "Aspose.Pdf" + "form", + "json", + "gzip", + "import", + "aspose.pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Color", + "Aspose.Pdf.Form", + "Aspose.Pdf.Form.ImportFromJson", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "add-signature-field-with-image-stamp": { - "title": "Add Signature Field with Image Stamp to PDF", - "filename": "add-signature-field-with-image-stamp.cs", - "description": "Shows how to create a signature form field named 'ClientSignature' in a PDF and set its visual appearance using a predefined image stamp with Aspose.Pdf.", + "import-form-data-from-json-api": { + "title": "Import Form Data From Json Api", + "filename": "import-form-data-from-json-api.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "import-form-data-from-json-via-rest-api": { + "title": "Import Form Data from JSON via REST API", + "filename": "import-form-data-from-json-via-rest-api.cs", + "description": "Demonstrates downloading JSON form data from a REST endpoint and populating an existing PDF form using Aspose.Pdf's ImportFromJson method.", "tags": [ - "signature", - "form-field", - "image-stamp", - "pdf", - "aspose" + "form", + "json", + "rest", + "aspose.pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.ImageStamp", - "Aspose.Pdf.Page.Annotations.Add", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Form.ImportFromJson", + "Aspose.Pdf.Forms.Form.ExportToJson" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "sign-pdf-and-lock-signature-field": { - "title": "Sign PDF and Lock Signature Field", - "filename": "sign-pdf-and-lock-signature-field.cs", - "description": "Shows how to sign a PDF signature field with a PKCS#7 certificate using Aspose.Pdf and then lock the field to prevent further modifications during document review.", + "import-form-data-from-json": { + "title": "Import Form Data from JSON into PDF", + "filename": "import-form-data-from-json.cs", + "description": "Demonstrates how to bulk import form field values from a JSON file into an existing PDF document using Aspose.Pdf's Form.ImportFromJson method and then save the updated PDF.", "tags": [ - "pdf-signature", - "field-lock", - "digital-signature", - "incremental-update", - "aspose-pdf" + "form", + "json", + "import", + "pdf", + "bulk-update" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.PKCS7", - "Aspose.Pdf.Forms.SignatureField.Sign", - "Aspose.Pdf.Forms.SignatureField.ReadOnly", - "Aspose.Pdf.Forms.Form.SignaturesAppendOnly" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Form.ImportFromJson" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "create-hidden-calculation-field": { - "title": "Create Hidden Calculation Field in PDF with JavaScript", - "filename": "create-hidden-calculation-field.cs", - "description": "Shows how to add visible text fields and a hidden read‑only calculation field to a PDF using Aspose.Pdf, then attach JavaScript that sums the numeric values of two fields.", + "import-form-data-from-json__v2": { + "title": "Import Form Data From Json__V2", + "filename": "import-form-data-from-json__v2.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "import-form-data-from-xml-with-error-handling": { + "title": "Import Form Data From Xml With Error Handling", + "filename": "import-form-data-from-xml-with-error-handling.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "import-form-fields-from-csv": { + "title": "Import Form Fields from CSV into PDF", + "filename": "import-form-fields-from-csv.cs", + "description": "Demonstrates reading a CSV file that defines form‑field metadata and programmatically adding the corresponding fields to a PDF using Aspose.Pdf.", "tags": [ "pdf", "form", - "calculation", - "javascript", - "aspose" + "csv", + "aspose", + "field-creation" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.Form.Add", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.JavascriptAction", - "Aspose.Pdf.Annotations.AnnotationFlags" + "Aspose.Pdf.Forms.CheckboxField", + "Aspose.Pdf.Forms.RadioButtonField", + "Aspose.Pdf.Forms.ListBoxField" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "export-selected-form-fields-to-xml": { - "title": "Export Selected Form Fields to XML", - "filename": "export-selected-form-fields-to-xml.cs", - "description": "Demonstrates how to load a PDF, pick specific form fields by name, and write their values to a custom XML file using Aspose.Pdf.", + "import-json-form-data-into-pdf": { + "title": "Import JSON Form Data into PDF", + "filename": "import-json-form-data-into-pdf.cs", + "description": "Shows how to load a PDF, import form field values from a JSON string using Aspose.Pdf's ImportFromJson method, and save the updated document.", "tags": [ + "json", + "form", + "import", "pdf", - "forms", - "export", - "xml", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.FieldCollection", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.Field.PartialName", - "Aspose.Pdf.Forms.Field.Value" + "Aspose.Pdf.Form", + "Aspose.Pdf.Form.ImportFromJson", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "import-xml-update-pdf-form-fields": { - "title": "Import XML Data and Update PDF Form Fields", - "filename": "import-xml-update-pdf-form-fields.cs", - "description": "Shows how to load a PDF with form fields, read an XML file containing a subset of field values, update matching fields in the PDF, and save the result.", + "import-signature-from-xml": { + "title": "Import Signature Data from XML and Apply to PDF Field", + "filename": "import-signature-from-xml.cs", + "description": "Demonstrates loading a PDF, reading signature details from an XML file, locating the corresponding signature field, and applying a PKCS#7 digital signature using a PFX certificate.", "tags": [ - "pdf-forms", + "digital-signature", + "pdf", "xml", - "field-update", - "aspose-pdf", - "csharp" + "signature-field", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Forms.PKCS7", "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Document.Form.HasField", - "Aspose.Pdf.Forms.Field" + "Aspose.Pdf.Forms.SignatureField.Sign" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "create-pdf-date-field-validation": { - "title": "Create PDF with Date Field Validated by Regex", - "filename": "create-pdf-date-field-validation.cs", - "description": "Demonstrates how to add a date form field to a PDF and attach JavaScript that validates the input against an MM/DD/YYYY regular expression.", + "import-tax-rate-from-xml": { + "title": "Import Tax Rate From Xml", + "filename": "import-tax-rate-from-xml.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "import-tax-rate-xml-pdf-hidden-field": { + "title": "Import Tax Rate from XML into PDF Hidden Field", + "filename": "import-tax-rate-xml-pdf-hidden-field.cs", + "description": "Shows how to read a tax rate from an XML file and set the value of a hidden form field in a PDF using Aspose.Pdf.", "tags": [ - "pdf", - "date-field", - "validation", - "javascript", - "regex" + "xml", + "pdf-form", + "hidden-field", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.DateField", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Forms.DateField.ExecuteFieldJavaScript", - "Aspose.Pdf.Document.Form.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.Field.Value" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "set-password-field-max-length": { - "title": "Set Maximum Length for PDF Password Field", - "filename": "set-password-field-max-length.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, locate a password box field, set its maximum character length to 20, and save the updated document.", + "import-xfa-data-from-xml": { + "title": "Import XFA Form Data from XML into PDF", + "filename": "import-xfa-data-from-xml.cs", + "description": "Shows how to load XFA data from an XML file and assign it to an existing XFA form in a PDF using Aspose.Pdf, then save the updated document.", "tags": [ + "xfa", + "xml", "pdf", - "password-field", - "max-length", - "aspose-pdf", - "forms" + "import", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.PasswordBoxField", - "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Form", + "Aspose.Pdf.Form.HasXfa", + "Aspose.Pdf.Form.AssignXfa", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "create-pdf-form-template-fill-from-json": { - "title": "Create PDF Form Template and Fill It from JSON", - "filename": "create-pdf-form-template-fill-from-json.cs", - "description": "Shows how to build a PDF form with placeholder fields using Aspose.Pdf, serialize matching data to a JSON file, and populate the form fields from that JSON source.", - "tags": [ - "pdf-form", - "json", - "aspose-pdf", - "csharp", - "form-filling" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.CheckboxField", - "Aspose.Pdf.Text.DefaultAppearance", - "Aspose.Pdf.Forms.Form.ImportFromJson" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:40:37Z", - "status": "verified" - }, - "batch-fill-pdf-forms-from-csv": { - "title": "Batch Fill PDF Forms from CSV Data", - "filename": "batch-fill-pdf-forms-from-csv.cs", - "description": "Shows how to read a CSV file, map each row to form fields, fill a PDF template for every record, and save the resulting PDFs to a designated folder.", + "import-xfa-form-data-from-xml-string": { + "title": "Import XFA Form Data from XML String into PDF", + "filename": "import-xfa-form-data-from-xml-string.cs", + "description": "Demonstrates how to load an XML string containing XFA form field values and import it into a PDF document using Aspose.Pdf, then save the updated PDF.", "tags": [ - "pdf", - "forms", - "csv", - "batch", - "aspose" + "xfa", + "form", + "import", + "xml", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.Field.Value" + "Aspose.Pdf.Form.AssignXfa", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, @@ -3622,277 +4303,246 @@ "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "set-form-field-visibility-based-on-another-field": { - "title": "Set Form Field Visibility Based on Another Field", - "filename": "set-form-field-visibility-based-on-another-field.cs", - "description": "Shows how to programmatically toggle the visibility of a PDF form field by attaching JavaScript to a source field using Aspose.Pdf.", + "import-xfdf-data-into-pdf": { + "title": "Import Xfdf Data Into Pdf", + "filename": "import-xfdf-data-into-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "import-xfdf-form-data-into-pdf": { + "title": "Import XFDF Form Data into a PDF", + "filename": "import-xfdf-form-data-into-pdf.cs", + "description": "Shows how to load a PDF document, read field values from an XFDF (XML) file, and automatically populate matching form fields using Aspose.Pdf.", "tags": [ + "xfdf", + "form-fields", "pdf", - "form", - "visibility", - "javascript", + "import", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.JavascriptAction", - "Aspose.Pdf.Forms.HideAction", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Annotations.XfdfReader", + "Aspose.Pdf.Annotations.XfdfReader.ReadFields" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "create-multi-page-pdf-unique-form-fields": { - "title": "Create Multi‑Page PDF with Unique Form Fields", - "filename": "create-multi-page-pdf-unique-form-fields.cs", - "description": "Demonstrates how to generate a PDF with multiple pages and add a separate TextBoxField to each page, giving each field a distinct name and value.", + "import-xfdf-interaction-log-into-pdf": { + "title": "Import XFDF Interaction Log into PDF", + "filename": "import-xfdf-interaction-log-into-pdf.cs", + "description": "Demonstrates loading a base PDF, importing user interaction annotations from an XFDF (XML) log, and saving the reconstructed PDF using Aspose.Pdf.", "tags": [ + "xfdf", + "annotations", "pdf", - "forms", - "multpage", - "textboxfield", - "aspose" + "import", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.Form.Add", + "Aspose.Pdf.Document.ImportAnnotationsFromXfdf", + "Aspose.Pdf.Annotations.XfdfReader.ReadAnnotations", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "export-pdf-form-fields-to-json__v3": { - "title": "Export PDF Form Fields to JSON Schema", - "filename": "export-pdf-form-fields-to-json__v3.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, configure JSON export options, and export all form fields to a JSON schema file.", + "import-xfdf-interaction-logs-into-pdf": { + "title": "Import Xfdf Interaction Logs Into Pdf", + "filename": "import-xfdf-interaction-logs-into-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "import-xml-form-data-into-multiple-pdfs": { + "title": "Import XML Form Data into Multiple PDFs in Parallel", + "filename": "import-xml-form-data-into-multiple-pdfs.cs", + "description": "Shows how to load PDF files, bind XML form data (XFA or AcroForm) to each document, and save the synchronized PDFs concurrently using Aspose.Pdf.", "tags": [ + "xml", + "form-data", "pdf", - "form", - "json", - "export", - "aspose" + "parallel", + "aspose.pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.ExportFieldsToJsonOptions", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Form.ExportToJson", - "Aspose.Pdf.Forms.ExportFieldsToJsonOptions.WriteIndented" + "Aspose.Pdf.Document.BindXml", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "generate-pdf-form-fields-from-json": { - "title": "Generate PDF Form Fields from JSON Schema", - "filename": "generate-pdf-form-fields-from-json.cs", - "description": "Demonstrates how to read a JSON schema describing form fields and create corresponding AcroForm fields in a new PDF using Aspose.Pdf.", + "import-xml-form-data-into-pdf": { + "title": "Import XML Form Data from Network Stream into PDF", + "filename": "import-xml-form-data-into-pdf.cs", + "description": "Shows how to download XML form data via HTTP, load it into an XmlDocument, and import it into a PDF form using Aspose.Pdf's AssignXfa method.", "tags": [ + "xml", "pdf", - "forms", - "json", - "acroform", - "aspose" + "form", + "http", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.CheckboxField", - "Aspose.Pdf.Forms.RadioButtonOptionField", - "Aspose.Pdf.Forms.ComboBoxField", - "Aspose.Pdf.Forms.Form" + "Aspose.Pdf.Form", + "Aspose.Pdf.Form.AssignXfa", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "set-checkbox-default-checked": { - "title": "Set Checkbox Default State to Checked in PDF", - "filename": "set-checkbox-default-checked.cs", - "description": "Demonstrates how to programmatically set a checkbox form field to be checked by default when generating a PDF with Aspose.Pdf.", - "tags": [ - "checkbox", - "form", - "pdf", - "aspose-pdf", - "default-checked" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.CheckboxField", - "Aspose.Pdf.Form.Add", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T08:40:37Z", + "import-xml-signature-data-and-sign-pdf": { + "title": "Import Xml Signature Data And Sign Pdf", + "filename": "import-xml-signature-data-and-sign-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "create-pdf-form-with-submit-button": { - "title": "Create PDF Form with Submit Button", - "filename": "create-pdf-form-with-submit-button.cs", - "description": "Shows how to build a PDF form containing a text box and a submit button that automatically posts the form data to a REST endpoint using Aspose.Pdf.", + "import-xml-update-pdf-form-fields": { + "title": "Import XML Data and Update PDF Form Fields", + "filename": "import-xml-update-pdf-form-fields.cs", + "description": "Shows how to load a PDF with form fields, read an XML file containing a subset of field values, update matching fields in the PDF, and save the result.", "tags": [ - "pdf", - "form", - "submit", - "button", - "aspose-pdf" + "pdf-forms", + "xml", + "field-update", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.ButtonField", - "Aspose.Pdf.Forms.SubmitFormAction", - "Aspose.Pdf.FileSpecification" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Document.Form.HasField", + "Aspose.Pdf.Forms.Field" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "add-submit-button-http-post-pdf-form": { - "title": "Add Submit Button with HTTP POST to PDF Form", - "filename": "add-submit-button-http-post-pdf-form.cs", - "description": "Demonstrates how to create a push‑button field in a PDF, configure it to submit form data via HTTP POST in URL‑encoded format, and save the updated document using Aspose.Pdf.", - "tags": [ - "pdf", - "form", - "submit-button", - "post", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.ButtonField", - "Aspose.Pdf.Forms.SubmitFormAction", - "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Rectangle" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:40:37Z", + "incremental-update-pdf-form": { + "title": "Incremental Update Pdf Form", + "filename": "incremental-update-pdf-form.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "add-reset-button-to-pdf-form__v2": { - "title": "Add Reset Button to PDF Form", - "filename": "add-reset-button-to-pdf-form__v2.cs", - "description": "Shows how to place a push button on an existing PDF that clears all form fields by attaching a JavaScript reset action.", + "insert-form-field-at-specific-index": { + "title": "Insert Form Field at Specific Index in PDF", + "filename": "insert-form-field-at-specific-index.cs", + "description": "Demonstrates how to add a TextBox form field to a PDF at a given page index using Aspose.Pdf, preserving the ordered layout of form fields.", "tags": [ "pdf", "form", - "reset-button", - "javascript", - "aspose-pdf" + "textfield", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.ButtonField", - "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Forms.TextBoxField", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.Form" + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Form.Add" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "set-export-value-radio-button-option": { - "title": "Set Export Value for Radio Button Option in PDF", - "filename": "set-export-value-radio-button-option.cs", - "description": "Demonstrates how to load a PDF, locate a radio button field, set the export value of a specific option, and save the updated document using Aspose.Pdf.", + "limit-textboxfield-input-length": { + "title": "Limit TextBoxField Input Length in PDF Form", + "filename": "limit-textboxfield-input-length.cs", + "description": "Demonstrates setting a maximum character length on a PDF form TextBoxField, assigning a longer string, and verifying that the value is truncated to the defined limit.", "tags": [ "pdf", - "forms", - "radiobutton", - "export-value", + "form", + "textbox", + "maxlength", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.RadioButtonField", - "Aspose.Pdf.Forms.Option", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Forms.TextBoxField.MaxLen", + "Aspose.Pdf.Forms.TextBoxField.Value", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "create-pdf-with-hidden-guid-tracking-field": { - "title": "Create PDF with Hidden GUID Tracking Field", - "filename": "create-pdf-with-hidden-guid-tracking-field.cs", - "description": "Demonstrates generating a GUID at runtime and storing it in a hidden text box form field inside a PDF using Aspose.Pdf.", - "tags": [ - "pdf", - "form", - "guid", - "hidden-field", - "aspose.pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Form.Add", - "Aspose.Pdf.Document.Pages.Add" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T08:40:37Z", + "list-filled-form-fields-in-pdfs": { + "title": "List Filled Form Fields In Pdfs", + "filename": "list-filled-form-fields-in-pdfs.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "extract-transform-import-pdf-form-data": { - "title": "Extract, Transform, and Import PDF Form Data via JSON", - "filename": "extract-transform-import-pdf-form-data.cs", - "description": "Shows how to export form fields from a PDF to JSON, modify the field names, and import the transformed data into another PDF using Aspose.Pdf.", + "list-form-field-names-types-char-limits": { + "title": "List Form Field Names, Types, and Character Limits in PDFs", + "filename": "list-form-field-names-types-char-limits.cs", + "description": "The example scans PDF files in a folder, opens each document, and enumerates its form fields, outputting each field's name, concrete type, and maximum character length when applicable.", "tags": [ - "pdf-forms", - "json", - "data-transformation", + "pdf", + "forms", + "field-info", "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form.ExportToJson", - "Aspose.Pdf.Forms.Form.ImportFromJson", + "Aspose.Pdf.Forms.WidgetAnnotation", + "Aspose.Pdf.Forms.Field", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Forms.FileSelectBoxField" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "set-initial-zoom-level-for-pdf-form": { - "title": "Set Initial Zoom Level for PDF Form", - "filename": "set-initial-zoom-level-for-pdf-form.cs", - "description": "Shows how to define an initial zoom factor for a PDF form by creating an XYZExplicitDestination, assigning it to the document's OpenAction, and optionally fitting the viewer window.", + "list-pdf-form-field-names": { + "title": "List All PDF Form Field Names", + "filename": "list-pdf-form-field-names.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, detect AcroForm and XFA forms, and enumerate the names of all form fields present.", "tags": [ "pdf", - "zoom", - "openaction", - "form", - "aspose-pdf" + "forms", + "field-names", + "enumeration", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.XYZExplicitDestination", - "Aspose.Pdf.Annotations.GoToAction", - "Aspose.Pdf.Document.OpenAction", - "Aspose.Pdf.Document.FitWindow", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.XfaForm" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, @@ -3918,386 +4568,548 @@ "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "create-pdf-form-with-barcode-field__v2": { - "title": "Create PDF Form with Barcode Field", - "filename": "create-pdf-form-with-barcode-field__v2.cs", - "description": "Shows how to generate a PDF form that contains a Code128 barcode field derived from a numeric identifier using Aspose.Pdf.", + "log-form-field-modifications": { + "title": "Log PDF Form Field Modifications", + "filename": "log-form-field-modifications.cs", + "description": "Shows how to iterate through PDF form fields, change their values and read‑only status, and write each change to a log file for audit and troubleshooting.", "tags": [ "pdf", - "barcode", - "form", - "code128", + "forms", + "audit", + "logging", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.BarcodeField", - "Aspose.Pdf.Forms.BarcodeField.AddBarcode", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.Field.Value", + "Aspose.Pdf.Forms.Field.ReadOnly" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "set-file-attachment-size-limit": { - "title": "Set File Attachment Size Limit for PDF Form Fields", - "filename": "set-file-attachment-size-limit.cs", - "description": "Shows how to restrict the maximum file size for a file‑select (attachment) form field to 2 MB by configuring Aspose.Pdf's Document.FileSizeLimitToMemoryLoading property.", + "log-pdf-form-field-modifications": { + "title": "Log Pdf Form Field Modifications", + "filename": "log-pdf-form-field-modifications.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "mark-pdf-form-field-as-required": { + "title": "Mark PDF Form Field as Required", + "filename": "mark-pdf-form-field-as-required.cs", + "description": "Shows how to set the Required property on an existing PDF form field using Aspose.Pdf, and how to create a new required TextBoxField when the field is missing.", "tags": [ - "file-attachment", - "form-field", - "size-limit", - "Aspose.Pdf", - "C#" + "pdf", + "form", + "required", + "aspose.pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.FileSizeLimitToMemoryLoading", - "Aspose.Pdf.Forms.FileSelectBoxField", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.TextBoxField", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Form" + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "export-pdf-form-field-metadata-to-csv": { - "title": "Export PDF Form Field Metadata to CSV", - "filename": "export-pdf-form-field-metadata-to-csv.cs", - "description": "Loads a PDF, iterates through all form fields, extracts each field's name, type, and default value, and writes the information to a CSV file for auditing.", + "mark-pdf-form-field-required": { + "title": "Mark Pdf Form Field Required", + "filename": "mark-pdf-form-field-required.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "merge-pdfs-unique-acroform-field-names": { + "title": "Merge PDFs while Ensuring Unique AcroForm Field Names", + "filename": "merge-pdfs-unique-acroform-field-names.cs", + "description": "Demonstrates how to merge two PDF documents that contain AcroForm fields, renaming duplicate field names to avoid conflicts before appending pages.", "tags": [ - "pdf", - "forms", - "export", - "csv", - "audit" + "pdf-merge", + "acroform", + "field-renaming", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.Field.FullName", - "Aspose.Pdf.Forms.Field.Value" + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.Document.Pages.Add", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "import-form-fields-from-csv": { - "title": "Import Form Fields from CSV into PDF", - "filename": "import-form-fields-from-csv.cs", - "description": "Demonstrates reading a CSV file that defines form‑field metadata and programmatically adding the corresponding fields to a PDF using Aspose.Pdf.", + "merge-pdfs-with-acroform-field-renaming": { + "title": "Merge Pdfs With Acroform Field Renaming", + "filename": "merge-pdfs-with-acroform-field-renaming.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "modify-and-flatten-pdf-form-fields": { + "title": "Modify And Flatten Pdf Form Fields", + "filename": "modify-and-flatten-pdf-form-fields.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "modify-pdf-form-field": { + "title": "Modify Pdf Form Field", + "filename": "modify-pdf-form-field.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "parallel-batch-fill-pdf-form-fields": { + "title": "Parallel Batch Fill Pdf Form Fields", + "filename": "parallel-batch-fill-pdf-form-fields.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "parallel-fill-pdf-form-fields": { + "title": "Parallel Fill PDF Form Fields", + "filename": "parallel-fill-pdf-form-fields.cs", + "description": "Demonstrates how to use Aspose.Pdf to load multiple PDFs, fill text box form fields, and save the results concurrently with Parallel.ForEach for faster batch processing.", "tags": [ "pdf", - "form", - "csv", - "aspose", - "field-creation" + "forms", + "parallel", + "batch", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.Form.Add", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.CheckboxField", - "Aspose.Pdf.Forms.RadioButtonField", - "Aspose.Pdf.Forms.ListBoxField" + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "add-date-picker-field-current-date": { - "title": "Add Date Picker Field with Current Date to PDF", - "filename": "add-date-picker-field-current-date.cs", - "description": "Shows how to insert a date picker form field into a PDF and set its default value to the current system date using Aspose.Pdf.", + "pdf-form-language-dependent-labels": { + "title": "Pdf Form Language Dependent Labels", + "filename": "pdf-form-language-dependent-labels.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "pdf-form-pdf-only-attachment-field": { + "title": "Create PDF Form with PDF‑Only File Attachment Field", + "filename": "pdf-form-pdf-only-attachment-field.cs", + "description": "Demonstrates how to create a PDF form using Aspose.Pdf, add a text box field that acts as a file selector, and apply JavaScript validation to restrict the selected file to PDF format only.", "tags": [ - "datefield", "pdf-form", - "aspose-pdf", - "csharp", - "default-value" + "file-attachment", + "javascript", + "validation", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.DateField", - "Document.Save", - "Document.Form.Add", - "DateField.Init" + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Annotations.JavascriptAction", + "Aspose.Pdf.Form.Add", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "add-date-field-validation": { - "title": "Add Date Field with Validation to PDF", - "filename": "add-date-field-validation.cs", - "description": "Creates a PDF with a date form field and attaches JavaScript that blocks dates earlier than January 1, 2000.", + "populate-combobox-from-database": { + "title": "Populate Combobox From Database", + "filename": "populate-combobox-from-database.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "populate-combobox-from-datatable": { + "title": "Populate PDF ComboBox Field from DataTable", + "filename": "populate-combobox-from-datatable.cs", + "description": "Demonstrates how to create a PDF template with a ComboBox field, load it, and programmatically fill the combo box options using data from a DataTable, then save the updated PDF.", "tags": [ "pdf", - "datefield", - "validation", - "javascript", - "forms" + "combobox", + "form-fields", + "aspose-pdf", + "data-binding" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.ComboBoxField", + "Aspose.Pdf.Forms.Form", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.DateField", - "Aspose.Pdf.Forms.JavascriptAction", - "Aspose.Pdf.Forms.FieldActions" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Forms.ComboBoxField.AddOption" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "create-pdf-form-with-dynamic-list-box": { - "title": "Create PDF Form with Dynamic List Box", - "filename": "create-pdf-form-with-dynamic-list-box.cs", - "description": "Shows how to generate a PDF document, add an AcroForm ListBox field with initial options, and save the file using Aspose.Pdf.", + "populate-currency-value-in-pdf-form": { + "title": "Populate Currency Value in PDF Form Field", + "filename": "populate-currency-value-in-pdf-form.cs", + "description": "Shows how to create a RichTextBox form field in a PDF and fill it with a formatted currency string that includes the currency symbol and thousand separators using Aspose.Pdf.", "tags": [ "pdf", "form", - "listbox", - "aspnet", - "acroform" + "currency", + "aspose.pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.ListBoxField", - "Aspose.Pdf.Form.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.RichTextBoxField", + "Aspose.Pdf.Form" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "duplicate-pdf-form-field": { - "title": "Duplicate PDF Form Field and Rename", - "filename": "duplicate-pdf-form-field.cs", - "description": "Shows how to programmatically copy an existing PDF form field, give each copy a unique name, optionally reposition them, and save the updated document using Aspose.Pdf.", + "populate-pdf-form-fields-from-csv": { + "title": "Populate Pdf Form Fields From Csv", + "filename": "populate-pdf-form-fields-from-csv.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "populate-pdf-form-fields-from-dictionary": { + "title": "Populate PDF Form Fields from Dictionary", + "filename": "populate-pdf-form-fields-from-dictionary.cs", + "description": "Shows how to load a PDF, iterate over its form fields, assign values from a dictionary of field names, and save the updated document.", "tags": [ "pdf", "form", - "duplicate-field", - "aspose-pdf", - "csharp" + "fill", + "dictionary", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.Form", "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.Form.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Forms.Field.FullName", + "Aspose.Pdf.Forms.Field.Value" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "add-javascript-email-validation-to-pdf-form-field": { - "title": "Add JavaScript Email Validation to PDF Form Field", - "filename": "add-javascript-email-validation-to-pdf-form-field.cs", - "description": "Shows how to load a PDF, locate the 'Email' form field, attach a JavaScript OnValidate action that checks for an '@' character, and save the updated document.", + "populate-pdf-form-fields-using-xslt": { + "title": "Populate PDF Form Fields Using XSLT Transformation", + "filename": "populate-pdf-form-fields-using-xslt.cs", + "description": "Shows how to load a PDF template, transform XML data with an XSLT stylesheet using BindXml, and save the resulting PDF with populated form fields.", "tags": [ "pdf", - "form", - "javascript", - "validation", - "email" + "form-fields", + "xslt", + "xml", + "aspose.pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.FieldActions", + "Aspose.Pdf.Document.BindXml", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "create-pdf-form-tax-calculation": { - "title": "Create PDF Form with Tax Calculation Using JavaScript", - "filename": "create-pdf-form-tax-calculation.cs", - "description": "Demonstrates how to build a PDF form with subtotal, tax rate, and calculated tax amount fields, using Aspose.Pdf and JavaScript for automatic tax computation.", + "populate-pdf-form-from-csv": { + "title": "Populate PDF Form Fields from CSV", + "filename": "populate-pdf-form-from-csv.cs", + "description": "Shows how to load a PDF form, read a CSV file with header and data rows, map each column to a matching form field, set values for various field types, and save the filled PDF.", "tags": [ - "pdf-form", - "javascript", - "tax-calculation", - "aspose-pdf", - "numberfield" + "pdf", + "form", + "csv", + "field-mapping", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.NumberField", - "Aspose.Pdf.Forms.Border", - "Aspose.Pdf.Forms.JavascriptAction", - "Aspose.Pdf.Document.Form" + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.CheckboxField", + "Aspose.Pdf.Forms.ComboBoxField", + "Aspose.Pdf.Forms.ListBoxField", + "Aspose.Pdf.Forms.RadioButtonField", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "export-pdf-form-data-to-xml__v3": { - "title": "Export PDF Form Data to XML", - "filename": "export-pdf-form-data-to-xml__v3.cs", - "description": "Shows how to load a PDF form, access the calculated tax field values, and export the entire form data to an XML file using Aspose.Pdf.", + "populate-pdf-form-from-xml-xslt": { + "title": "Populate Pdf Form From Xml Xslt", + "filename": "populate-pdf-form-from-xml-xslt.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "read-pdf-form-field-value": { + "title": "Read PDF Form Field Value", + "filename": "read-pdf-form-field-value.cs", + "description": "Loads a PDF document, finds a form field by its name, extracts the field's value, and prints it to the console.", "tags": [ "pdf", "form", - "xml", - "export", - "aspose-pdf" + "field", + "aspose", + "read" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.XmlSaveOptions", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Field" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "import-tax-rate-xml-pdf-hidden-field": { - "title": "Import Tax Rate from XML into PDF Hidden Field", - "filename": "import-tax-rate-xml-pdf-hidden-field.cs", - "description": "Shows how to read a tax rate from an XML file and set the value of a hidden form field in a PDF using Aspose.Pdf.", + "remove-form-field-from-pdf": { + "title": "Remove a Form Field from a PDF", + "filename": "remove-form-field-from-pdf.cs", + "description": "Shows how to verify the existence of a form field in a PDF and delete it using Aspose.Pdf, then save the modified document.", "tags": [ - "xml", - "pdf-form", - "hidden-field", - "aspose-pdf", + "pdf", + "form", + "delete", + "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save", "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.Field.Value" + "Aspose.Pdf.Forms.Form.HasField", + "Aspose.Pdf.Forms.Form.Delete", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "set-noexport-flag-for-sensitive-pdf-form-fields": { - "title": "Set NoExport Flag for Sensitive PDF Form Fields", - "filename": "set-noexport-flag-for-sensitive-pdf-form-fields.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, iterate over its form fields, and mark fields containing a specific keyword as non‑exportable (NoExport) before saving.", + "remove-form-fields-first-page": { + "title": "Remove Form Fields from First PDF Page", + "filename": "remove-form-fields-first-page.cs", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, flatten (remove) all form fields on the first page, and save the cleaned template page.", "tags": [ "pdf", - "form-fields", - "noexport", - "aspose-pdf", + "forms", + "flatten", + "aspose.pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Form.Fields", + "Aspose.Pdf.Page.Flatten", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "validate-required-pdf-form-field": { - "title": "Validate Required PDF Form Field and Highlight Empty with Red Border", - "filename": "validate-required-pdf-form-field.cs", - "description": "Shows how to mark a PDF form field as required, check its value after a simulated submission, and apply a red border to empty required fields using Aspose.Pdf.", + "remove-javascript-actions-from-pdf-form-fields": { + "title": "Remove JavaScript Actions from PDF Form Fields", + "filename": "remove-javascript-actions-from-pdf-form-fields.cs", + "description": "The example loads a PDF, iterates through all form fields, clears any JavaScript actions attached to the fields, and saves the cleaned document.", "tags": [ "pdf", - "form", - "validation", - "required-field", - "border" + "javascript", + "form-fields", + "security", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Forms.Form", "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.Border", - "Aspose.Pdf.Color" + "Aspose.Pdf.Forms.Field.Actions", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "create-pdf-form-with-qr-code": { - "title": "Create PDF Form with QR Code Field", - "filename": "create-pdf-form-with-qr-code.cs", - "description": "Shows how to generate a PDF form that contains a QR code field using Aspose.Pdf's BarcodeField class.", + "remove-signature-form-fields": { + "title": "Remove Signature Form Fields from PDF", + "filename": "remove-signature-form-fields.cs", + "description": "Demonstrates how to iterate through a PDF's form collection and delete all fields of the Signature subtype using Aspose.Pdf.", "tags": [ "pdf", - "qr-code", - "form", - "barcode", + "forms", + "signature", + "remove", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.BarcodeField", - "Aspose.Pdf.Document.Form.Add", + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Forms.Form.Delete", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "auto-update-qr-code-from-text-field": { - "title": "Auto‑Update QR Code from Text Field in PDF", - "filename": "auto-update-qr-code-from-text-field.cs", - "description": "Demonstrates how to attach JavaScript to a PDF text box so that a QR‑code barcode field updates automatically when the text changes, using Aspose.Pdf form features.", + "remove-typewriter-form-fields-page-3": { + "title": "Remove Typewriter Form Fields from Page 3", + "filename": "remove-typewriter-form-fields-page-3.cs", + "description": "Demonstrates how to use TextFragmentAbsorber to locate and delete Typewriter form XObjects (subtype \"Form\") on the third page of a PDF document.", "tags": [ - "pdf", "forms", - "barcode", - "javascript", - "autocalculate" + "textfragmentabsorber", + "pdf", + "remove", + "page3" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.BarcodeField", - "Aspose.Pdf.Forms.JavascriptAction", - "Aspose.Pdf.Forms.FieldActions" + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragmentAbsorber", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.XForm" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "export-pdf-form-data-to-xml-and-transform": { - "title": "Export PDF Form Data to XML and Transform to Custom Report", - "filename": "export-pdf-form-data-to-xml-and-transform.cs", - "description": "Demonstrates extracting PDF form fields to XML with Aspose.Pdf and then applying an XSLT stylesheet to generate a custom HTML report.", + "remove-typewriter-forms-page-3": { + "title": "Remove Typewriter Forms Page 3", + "filename": "remove-typewriter-forms-page-3.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "rename-pdf-form-field": { + "title": "Rename PDF Form Field Programmatically", + "filename": "rename-pdf-form-field.cs", + "description": "Shows how to load a PDF, locate a specific form field, rename its Name, PartialName, and MappingName, and save the updated document.", "tags": [ "pdf", - "form-data", - "xml", - "xslt", - "report" + "form", + "rename", + "field", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.XmlSaveOptions", + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Forms.Form.HasField" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T08:40:37Z", + "status": "verified" + }, + "replace-placeholder-with-current-date": { + "title": "Replace Placeholder with Current Date in PDF Form", + "filename": "replace-placeholder-with-current-date.cs", + "description": "Shows how to load a PDF, locate a text box form field, generate a formatted current date, and replace the placeholder text with that date using Aspose.Pdf.", + "tags": [ + "pdf", + "form-field", + "date-replacement", + "aspose.pdf", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.PageDate", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Form" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:40:37Z", + "status": "verified" + }, + "replace-xfa-with-acroform-xml-template": { + "title": "Replace XFA Form with AcroForm Using XML Template", + "filename": "replace-xfa-with-acroform-xml-template.cs", + "description": "Shows how to load a PDF containing an XFA form, assign new XFA data from an XML template, convert the form to a standard AcroForm, and save the updated PDF.", + "tags": [ + "XFA", + "AcroForm", + "Aspose.Pdf", + "XML", + "form-conversion" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Form.AssignXfa", + "Aspose.Pdf.Forms.Form.HasXfa", + "Aspose.Pdf.Forms.Form.Type", + "Aspose.Pdf.Forms.FormType.Standard", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, + "replace-xfa-with-acroform": { + "title": "Replace Xfa With Acroform", + "filename": "replace-xfa-with-acroform.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "repopulate-pdf-form-fields-from-xml": { "title": "Repopulate PDF Form Fields from XML (XFA)", "filename": "repopulate-pdf-form-fields-from-xml.cs", @@ -4319,860 +5131,1308 @@ "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "create-pdf-multi-select-list-box": { - "title": "Create PDF with Multi‑Select List Box", - "filename": "create-pdf-multi-select-list-box.cs", - "description": "Shows how to add a multi‑select list box form field to a PDF document using Aspose.Pdf.", + "require-signature-field-lock-pdf": { + "title": "Require Signature Field and Lock PDF After Signing", + "filename": "require-signature-field-lock-pdf.cs", + "description": "Demonstrates how to add a required digital signature field to a PDF, apply a PKCS#7 signature, and lock the document using an MDP signature to prevent further changes.", "tags": [ - "listbox", - "multiselect", - "pdf-form", - "aspose-pdf", - "csharp" + "signature", + "pdf", + "locking", + "required-field", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.ListBoxField", - "Aspose.Pdf.Forms.ListBoxField.AddOption", - "Aspose.Pdf.Forms.ListBoxField.MultiSelect", - "Aspose.Pdf.Form.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Forms.PKCS7", + "Aspose.Pdf.Forms.DocMDPSignature", + "Aspose.Pdf.Forms.DocMDPAccessPermissions" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "add-multi-select-list-box-max-3": { - "title": "Add Multi-Select List Box with Max 3 Selections to PDF", - "filename": "add-multi-select-list-box-max-3.cs", - "description": "Demonstrates creating a ListBoxField in a PDF, enabling multi‑selection, adding options, and limiting the selected items to three using Aspose.Pdf.", + "restore-editability-of-flattened-pdf-form-fields": { + "title": "Restore Editability of Flattened PDF Form Fields", + "filename": "restore-editability-of-flattened-pdf-form-fields.cs", + "description": "Shows how to detect a flattened PDF, enable automatic form restoration, make form annotations independent, and save the document to regain editability where possible.", "tags": [ - "listbox", - "multiselect", "pdf", - "forms", - "aspose-pdf" + "form", + "flatten", + "restore", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.ListBoxField", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.ListBoxField.AddOption", - "Aspose.Pdf.Forms.ListBoxField.SelectedItems", - "Aspose.Pdf.Forms.ListBoxField.MultiSelect", - "Aspose.Pdf.Page.Annotations.Add", + "Aspose.Pdf.Form", + "Aspose.Pdf.Form.AutoRestoreForm", + "Aspose.Pdf.Form.MakeFormAnnotationsIndependent", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "add-hidden-ip-field-to-pdf": { - "title": "Add Hidden IP Address Field to PDF with JavaScript", - "filename": "add-hidden-ip-field-to-pdf.cs", - "description": "Shows how to insert a hidden text box field into a PDF and attach JavaScript that captures the user's IP address when the document is opened.", + "rotate-form-field-label": { + "title": "Rotate PDF Form Field Label", + "filename": "rotate-form-field-label.cs", + "description": "Shows how to rotate a form field label in a PDF document by 45 degrees using Aspose.Pdf.", "tags": [ "pdf", - "form", - "hidden-field", - "javascript", - "ip-address" + "form-field", + "rotation", + "label", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.Field", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Forms.TextBoxField.ExecuteFieldJavaScript", - "Aspose.Pdf.Forms.Form.Add", - "Aspose.Pdf.Forms.Form.AddFieldAppearance" + "Aspose.Pdf.Rectangle.Rotate", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "validate-ipv4-address-in-pdf-form-field": { - "title": "Validate IPv4 Address in PDF Form Field", - "filename": "validate-ipv4-address-in-pdf-form-field.cs", - "description": "Shows how to load a PDF, access a text box form field, validate its content against an IPv4 regular expression, and save the document.", + "save-pdf-incremental-updates": { + "title": "Save PDF with Incremental Updates to Preserve Form Data", + "filename": "save-pdf-incremental-updates.cs", + "description": "Demonstrates opening a PDF with a writable stream, updating a form field, and saving the document using incremental updates so previous revisions remain intact.", "tags": [ "pdf", - "form", - "validation", - "ipv4", - "regex" + "incremental-save", + "form-fields", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.ComboBoxField", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Color" + "Aspose.Pdf.Document.HasIncrementalUpdate" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "create-pdf-form-digital-signature": { - "title": "Create PDF Form with Digital Signature Field and Certificate Validation", - "filename": "create-pdf-form-digital-signature.cs", - "description": "Demonstrates how to add a signature field to a PDF form, sign it using a PFX certificate with Aspose.Pdf, and save the signed document.", + "select-listbox-item-in-pdf-form": { + "title": "Select Listbox Item In Pdf Form", + "filename": "select-listbox-item-in-pdf-form.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "select-listbox-option-in-pdf-form": { + "title": "Select ListBox Option in PDF Form", + "filename": "select-listbox-option-in-pdf-form.cs", + "description": "Shows how to load a PDF, locate a ListBox form field, set its selected option by index, and save the modified document.", "tags": [ "pdf", - "digital-signature", + "listbox", "form", - "certificate", - "aspnet" + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Security.PKCS7" + "Aspose.Pdf.Forms.ListBoxField", + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Forms.ListBoxField.Options", + "Aspose.Pdf.Forms.ListBoxField.Selected", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "require-signature-field-lock-pdf": { - "title": "Require Signature Field and Lock PDF After Signing", - "filename": "require-signature-field-lock-pdf.cs", - "description": "Demonstrates how to add a required digital signature field to a PDF, apply a PKCS#7 signature, and lock the document using an MDP signature to prevent further changes.", - "tags": [ - "signature", - "pdf", - "locking", - "required-field", - "Aspose.Pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.PKCS7", - "Aspose.Pdf.Forms.DocMDPSignature", - "Aspose.Pdf.Forms.DocMDPAccessPermissions" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:40:37Z", + "select-radio-button-in-pdf-form": { + "title": "Select Radio Button In Pdf Form", + "filename": "select-radio-button-in-pdf-form.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "export-pdf-digital-signature-to-xml": { - "title": "Export PDF Digital Signature Information to XML", - "filename": "export-pdf-digital-signature-to-xml.cs", - "description": "Shows how to load a signed PDF with Aspose.Pdf and export its digital signature data to an XML file for audit logging.", + "select-radio-button-option-in-pdf-form": { + "title": "Select Radio Button Option in PDF Form", + "filename": "select-radio-button-option-in-pdf-form.cs", + "description": "Demonstrates how to load an existing PDF, locate a radio button field, set a specific option, and save the updated document using Aspose.Pdf.", "tags": [ "pdf", - "digital-signature", - "xml", - "audit", - "export" + "form", + "radiobutton", + "aspose.pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.SaveXml" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Forms.RadioButtonField", + "Aspose.Pdf.Forms.RadioButtonField.Selected", + "Aspose.Pdf.Forms.RadioButtonField.Count" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "import-signature-from-xml": { - "title": "Import Signature Data from XML and Apply to PDF Field", - "filename": "import-signature-from-xml.cs", - "description": "Demonstrates loading a PDF, reading signature details from an XML file, locating the corresponding signature field, and applying a PKCS#7 digital signature using a PFX certificate.", + "set-beveled-border-on-pdf-form-field": { + "title": "Set Beveled Border on PDF Form Field", + "filename": "set-beveled-border-on-pdf-form-field.cs", + "description": "Demonstrates how to load a PDF, locate a form field, and apply a beveled border style with a specified color, then save the document.", "tags": [ - "digital-signature", "pdf", - "xml", - "signature-field", + "form", + "border", + "beveled", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.SignatureField", - "Aspose.Pdf.Forms.PKCS7", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Forms.SignatureField.Sign" + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.Border", + "Aspose.Pdf.Forms.BorderStyle", + "Aspose.Pdf.Color" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "create-pdf-form-with-password-protection": { - "title": "Create PDF Form with Password Protection", - "filename": "create-pdf-form-with-password-protection.cs", - "description": "Demonstrates adding a text box form field to a PDF and securing the document with user and owner passwords, using permissions to prevent form editing for the user password.", + "set-beveled-border-style-for-pdf-form-field": { + "title": "Set Beveled Border Style For Pdf Form Field", + "filename": "set-beveled-border-style-for-pdf-form-field.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-calculation-order-for-pdf-form-fields": { + "title": "Set Calculation Order For Pdf Form Fields", + "filename": "set-calculation-order-for-pdf-form-fields.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-character-limit-for-pdf-form-field": { + "title": "Set Character Limit For Pdf Form Field", + "filename": "set-character-limit-for-pdf-form-field.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-checkbox-default-checked": { + "title": "Set Checkbox Default State to Checked in PDF", + "filename": "set-checkbox-default-checked.cs", + "description": "Demonstrates how to programmatically set a checkbox form field to be checked by default when generating a PDF with Aspose.Pdf.", "tags": [ - "pdf", + "checkbox", "form", - "encryption", - "password", - "permissions" + "pdf", + "aspose-pdf", + "default-checked" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.DefaultAppearance", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.CheckboxField", + "Aspose.Pdf.Form.Add", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "add-password-textbox-field-to-pdf": { - "title": "Add Password TextBox Field to PDF", - "filename": "add-password-textbox-field-to-pdf.cs", - "description": "Shows how to create a read‑only text box form field in a PDF, set its value as a password, and save the document using Aspose.Pdf.", + "set-checkbox-field-in-pdf": { + "title": "Set Checkbox Field Value in PDF", + "filename": "set-checkbox-field-in-pdf.cs", + "description": "Loads an existing PDF, locates a checkbox form field, sets its checked state based on a command‑line argument, and saves the modified document.", "tags": [ "pdf", "form", - "password", - "textbox", - "aspose" + "checkbox", + "aspose.pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Color" + "Aspose.Pdf.Forms.CheckboxField", + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "validate-incorrect-password-prevents-access": { - "title": "Validate Incorrect Password Prevents Access to Encrypted PDF Form Field", - "filename": "validate-incorrect-password-prevents-access.cs", - "description": "Demonstrates creating a PDF with a form field, encrypting it with user/owner passwords, and verifying that an incorrect password throws an InvalidPasswordException while the correct password allows field access.", + "set-current-date-in-pdf-form-field": { + "title": "Set Current Date In Pdf Form Field", + "filename": "set-current-date-in-pdf-form-field.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-custom-font-for-signature-field": { + "title": "Set Custom TrueType Font for PDF Signature Field", + "filename": "set-custom-font-for-signature-field.cs", + "description": "Demonstrates how to register a custom TrueType font and assign it to a signature form field using the DefaultAppearance property in Aspose.Pdf.", "tags": [ - "pdf-encryption", - "form-fields", - "password-protection", - "invalid-password", - "aspose-pdf" + "signature", + "custom-font", + "pdf-forms", + "default-appearance", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm" + "Aspose.Pdf.FontRepository", + "Aspose.Pdf.FontRepository.Sources.Add", + "Aspose.Pdf.FontRepository.OpenFont", + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Annotations.DefaultAppearance" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "create-pdf-form-with-automatic-backup": { - "title": "Create PDF Form with Automatic Backup on Field Blur", - "filename": "create-pdf-form-with-automatic-backup.cs", - "description": "Shows how to add a text box to a PDF form and attach a JavaScript action that saves a backup PDF when the field loses focus.", + "set-dashed-border-for-pdf-form-field": { + "title": "Set Dashed Border for PDF Form Field", + "filename": "set-dashed-border-for-pdf-form-field.cs", + "description": "Loads a PDF, locates a specific form field, and applies a dashed border style to visually mark it as optional, then saves the updated document.", "tags": [ - "pdf-form", - "javascript", - "autosave", - "field-event", + "pdf", + "form", + "border", + "dashed", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Annotations.Annotation", + "Aspose.Pdf.Annotations.Border", + "Aspose.Pdf.Annotations.BorderStyle" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "add-javascript-listener-to-pdf-form-field": { - "title": "Add JavaScript Listener to PDF Form Field", - "filename": "add-javascript-listener-to-pdf-form-field.cs", - "description": "Shows how to attach a JavaScript action to a PDF form field using Aspose.Pdf so the script runs when the field value changes.", + "set-dashed-border-on-pdf-form-field": { + "title": "Set Dashed Border On Pdf Form Field", + "filename": "set-dashed-border-on-pdf-form-field.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-datefield-default-time": { + "title": "Set Datefield Default Time", + "filename": "set-datefield-default-time.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-default-appearance-for-pdf-form-field": { + "title": "Set Default Appearance For Pdf Form Field", + "filename": "set-default-appearance-for-pdf-form-field.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-default-appearance-for-pdf-text-field": { + "title": "Set Default Appearance for PDF Text Field", + "filename": "set-default-appearance-for-pdf-text-field.cs", + "description": "Shows how to load a PDF, locate a TextBoxField, and assign a DefaultAppearance (font, size, and color) to define the field's default appearance.", "tags": [ "pdf", - "javascript", - "form-field", - "validation", + "form", + "default-appearance", + "textboxfield", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.JavascriptAction", - "Aspose.Pdf.Forms.FieldActions", + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Annotations.DefaultAppearance", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "export-pdf-form-appearance-to-json": { - "title": "Export PDF Form Field Appearance Settings to JSON", - "filename": "export-pdf-form-appearance-to-json.cs", - "description": "Demonstrates how to export all form fields, including their appearance settings, from a PDF document to a formatted JSON file using Aspose.Pdf.", + "set-default-combobox-selection": { + "title": "Set Default Combobox Selection", + "filename": "set-default-combobox-selection.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-default-selected-country-in-pdf-combo-box": { + "title": "Set Default Selected Country in PDF Combo Box", + "filename": "set-default-selected-country-in-pdf-combo-box.cs", + "description": "Shows how to set the default selected item of the 'Country' combo box to \"United States\" in a PDF using Aspose.Pdf FormEditor.", "tags": [ "pdf", - "forms", - "export", - "json", - "appearance" + "combobox", + "form", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.ExportFieldsToJsonOptions", - "Aspose.Pdf.Forms.Form.ExportToJson" + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.ComboBoxField", + "Aspose.Pdf.Forms.ComboBoxField.Value", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "import-form-appearances-from-json": { - "title": "Import Form Field Appearances from JSON into PDF", - "filename": "import-form-appearances-from-json.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, import form field appearance settings from a JSON file, and save the updated document.", + "set-default-selected-radio-button-value": { + "title": "Set Default Selected Radio Button Value in PDF Form", + "filename": "set-default-selected-radio-button-value.cs", + "description": "Demonstrates how to programmatically set the default selected option of a radio button field in a PDF form using Aspose.Pdf for .NET.", "tags": [ "pdf", "form", - "json", - "appearance", - "import" + "radiobutton", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Form", - "Aspose.Pdf.Form.ImportFromJson", + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.RadioButtonField", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "create-collapsible-section-pdf-form": { - "title": "Create Collapsible Section in PDF Form", - "filename": "create-collapsible-section-pdf-form.cs", - "description": "Shows how to add a checkbox that toggles the visibility of a text box using JavaScript, creating a collapsible section in an Aspose.Pdf form.", + "set-default-value-for-pdf-form-field": { + "title": "Set Default Value For Pdf Form Field", + "filename": "set-default-value-for-pdf-form-field.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-default-value-for-pdf-form-textbox": { + "title": "Set Default Value for PDF Form TextBox", + "filename": "set-default-value-for-pdf-form-textbox.cs", + "description": "Shows how to create a PDF document, add a TextBox form field, set its default appearance, and define a default value that appears when the PDF is opened.", "tags": [ - "pdf", - "form", - "collapsible", - "checkbox", - "javascript" + "pdf-form", + "default-value", + "textbox", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Forms.CheckboxField", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Annotations.AnnotationFlags", - "Aspose.Pdf.Forms.Border" + "Aspose.Pdf.Forms.DefaultAppearance", + "Aspose.Pdf.Form", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "collapse-pdf-outline-section": { - "title": "Collapse PDF Outline Section", - "filename": "collapse-pdf-outline-section.cs", - "description": "Shows how to set the initial expand/collapse state of a PDF outline (bookmark) to collapsed using Aspose.Pdf.", + "set-export-value-radio-button-option": { + "title": "Set Export Value for Radio Button Option in PDF", + "filename": "set-export-value-radio-button-option.cs", + "description": "Demonstrates how to load a PDF, locate a radio button field, set the export value of a specific option, and save the updated document using Aspose.Pdf.", "tags": [ - "outline", - "bookmark", - "collapse", "pdf", - "Aspose.Pdf" + "forms", + "radiobutton", + "export-value", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Outlines", - "Aspose.Pdf.OutlineItemCollection", - "Aspose.Pdf.OutlineItemCollection.Open", + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.RadioButtonField", + "Aspose.Pdf.Forms.Option", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "add-calculated-total-price-field-to-pdf-form": { - "title": "Add Calculated Total Price Field to PDF Form", - "filename": "add-calculated-total-price-field-to-pdf-form.cs", - "description": "Demonstrates how to add quantity, unit price, and a read‑only calculated total price field to a PDF using Aspose.Pdf, with JavaScript for automatic calculation.", + "set-field-visibility-based-on-other-field": { + "title": "Set Field Visibility Based On Other Field", + "filename": "set-field-visibility-based-on-other-field.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-file-attachment-size-limit": { + "title": "Set File Attachment Size Limit for PDF Form Fields", + "filename": "set-file-attachment-size-limit.cs", + "description": "Shows how to restrict the maximum file size for a file‑select (attachment) form field to 2 MB by configuring Aspose.Pdf's Document.FileSizeLimitToMemoryLoading property.", "tags": [ - "pdf", - "form", - "calculated-field", - "javascript", - "aspose-pdf" + "file-attachment", + "form-field", + "size-limit", + "Aspose.Pdf", + "C#" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.NumberField", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Document.FileSizeLimitToMemoryLoading", + "Aspose.Pdf.Forms.FileSelectBoxField", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Form" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "export-total-price-to-xml": { - "title": "Export Total Price to XML from Tagged PDF", - "filename": "export-total-price-to-xml.cs", - "description": "Calculates a total price, creates a minimal tagged PDF with the price displayed, and saves the document as XML for integration with an external invoicing system.", + "set-font-size-style-pdf-text-field": { + "title": "Set Font Size Style Pdf Text Field", + "filename": "set-font-size-style-pdf-text-field.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-font-size-style-pdf-textbox-field": { + "title": "Set Font Size and Style for PDF TextBox Field", + "filename": "set-font-size-style-pdf-textbox-field.cs", + "description": "Shows how to adjust minimum/maximum font sizes, define a default appearance, and apply rich‑text styling to a TextBox form field in a PDF using Aspose.Pdf.", "tags": [ "pdf", - "xml", - "tagged-pdf", - "export", - "aspose-pdf" + "form", + "font", + "appearance", + "rich-text" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.TaggedContent", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.FontRepository", - "Aspose.Pdf.XmlSaveOptions" + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Text.DefaultAppearance", + "Aspose.Pdf.Forms.RichTextBoxField", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "generate-pdf-discount-from-xml": { - "title": "Generate PDF with Discounted Price from XML", - "filename": "generate-pdf-discount-from-xml.cs", - "description": "Loads discount rates from an XML file, calculates the final price, and creates a PDF displaying the base price, total discount, and final price using Aspose.Pdf.", + "set-form-field-appearance-custom-font": { + "title": "Set Form Field Appearance with a Custom Font", + "filename": "set-form-field-appearance-custom-font.cs", + "description": "Demonstrates how to load an external TrueType font and apply it to a PDF form text box field using the DefaultAppearance property.", "tags": [ - "xml", - "pdf", - "discount", - "aspose-pdf", - "csharp" + "forms", + "custom-font", + "default-appearance", + "textbox", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.FontRepository.FindFont", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Color", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Text.FontRepository.OpenFont", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Annotations.DefaultAppearance", + "Aspose.Pdf.Forms.Form.Add", + "Aspose.Pdf.Forms.Form.AddFieldAppearance", + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "pdf-form-pdf-only-attachment-field": { - "title": "Create PDF Form with PDF‑Only File Attachment Field", - "filename": "pdf-form-pdf-only-attachment-field.cs", - "description": "Demonstrates how to create a PDF form using Aspose.Pdf, add a text box field that acts as a file selector, and apply JavaScript validation to restrict the selected file to PDF format only.", + "set-form-field-border-color-width": { + "title": "Set Form Field Border Color and Width", + "filename": "set-form-field-border-color-width.cs", + "description": "Shows how to load a PDF, locate a form field, and apply a corporate‑style solid blue border with a specific width using Aspose.Pdf.", "tags": [ - "pdf-form", - "file-attachment", - "javascript", - "validation", - "aspose-pdf" + "form", + "border", + "style", + "pdf", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Form.Add", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Annotations.Border", + "Aspose.Pdf.Color", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "validate-file-attachment-size-in-pdf-form": { - "title": "Validate File Attachment Size in PDF Form", - "filename": "validate-file-attachment-size-in-pdf-form.cs", - "description": "The example loads a PDF form, checks the size of a selected file in a FileSelectBoxField, and either adds a warning annotation or enables a submit button if the file is within a 5 MB limit.", + "set-form-field-visibility-based-on-another-field": { + "title": "Set Form Field Visibility Based on Another Field", + "filename": "set-form-field-visibility-based-on-another-field.cs", + "description": "Shows how to programmatically toggle the visibility of a PDF form field by attaching JavaScript to a source field using Aspose.Pdf.", "tags": [ "pdf", "form", - "validation", - "file-size", + "visibility", + "javascript", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.FileSelectBoxField", - "Aspose.Pdf.Annotations.TextAnnotation", - "Aspose.Pdf.Forms.ButtonField", - "Aspose.Pdf.Forms.SubmitFormAction", - "Aspose.Pdf.FileSpecification" + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.JavascriptAction", + "Aspose.Pdf.Forms.HideAction", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "add-progress-bar-field-to-pdf-form": { - "title": "Add Progress Bar Field to PDF Form", - "filename": "add-progress-bar-field-to-pdf-form.cs", - "description": "Shows how to insert a TextBoxField that works as a progress bar into a PDF form and update its value as the user completes sections.", + "set-form-field-visible-non-printable": { + "title": "Set Form Field Visibility to Non‑Printable", + "filename": "set-form-field-visible-non-printable.cs", + "description": "Shows how to make a PDF form field visible on screen but omitted from printing by clearing the Print flag and ensuring it is not hidden.", "tags": [ "pdf", - "form", - "progress", - "textbox", - "aspose" + "form-field", + "visibility", + "non-printable", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.Form.Add", - "Aspose.Pdf.Forms.Form.AddFieldAppearance", + "Aspose.Pdf.Forms.WidgetAnnotation", + "Aspose.Pdf.Annotations.AnnotationFlags", + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:40:37Z", + "status": "verified" + }, + "set-initial-zoom-level-for-pdf-form": { + "title": "Set Initial Zoom Level for PDF Form", + "filename": "set-initial-zoom-level-for-pdf-form.cs", + "description": "Shows how to define an initial zoom factor for a PDF form by creating an XYZExplicitDestination, assigning it to the document's OpenAction, and optionally fitting the viewer window.", + "tags": [ + "pdf", + "zoom", + "openaction", + "form", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.XYZExplicitDestination", + "Aspose.Pdf.Annotations.GoToAction", + "Aspose.Pdf.Document.OpenAction", + "Aspose.Pdf.Document.FitWindow", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "export-pdf-conversion-progress-to-xml": { - "title": "Export PDF Conversion Progress to XML", - "filename": "export-pdf-conversion-progress-to-xml.cs", - "description": "Demonstrates attaching a custom progress handler to HtmlSaveOptions during PDF‑to‑HTML conversion with Aspose.Pdf, capturing each progress event and persisting the data to an XML file.", + "set-max-file-size-for-pdf-form-attachment": { + "title": "Set Max File Size For Pdf Form Attachment", + "filename": "set-max-file-size-for-pdf-form-attachment.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-max-length-for-pdf-text-field": { + "title": "Set Maximum Length for PDF Text Field", + "filename": "set-max-length-for-pdf-text-field.cs", + "description": "Shows how to open a PDF, locate the 'CustomerName' TextBoxField, and limit its input to 50 characters using Aspose.Pdf.", "tags": [ - "pdf-conversion", - "progress-events", - "xml", + "pdf", + "form", + "textfield", + "maxlength", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.TextBoxField.MaxLen", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:40:37Z", + "status": "verified" + }, + "set-max-length-pdf-text-form-field": { + "title": "Set Max Length Pdf Text Form Field", + "filename": "set-max-length-pdf-text-form-field.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-max-length-pdf-textbox-field": { + "title": "Set Maximum Length for PDF TextBox Form Field", + "filename": "set-max-length-pdf-textbox-field.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, locate a text box form field, set its MaxLen property to restrict user input, and save the modified document.", + "tags": [ + "pdf", + "form-field", + "maxlength", + "aspose.pdf", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Forms.TextBoxField.MaxLen", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:40:37Z", + "status": "verified" + }, + "set-noexport-flag-for-sensitive-pdf-form-fields": { + "title": "Set NoExport Flag for Sensitive PDF Form Fields", + "filename": "set-noexport-flag-for-sensitive-pdf-form-fields.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, iterate over its form fields, and mark fields containing a specific keyword as non‑exportable (NoExport) before saving.", + "tags": [ + "pdf", + "form-fields", + "noexport", "aspose-pdf", - "html-export" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.HtmlSaveOptions", - "Aspose.Pdf.HtmlSaveOptions.ConversionProgressEventHandler", - "Aspose.Pdf.HtmlSaveOptions.ProgressEventHandlerInfo", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Form.Fields", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "create-localized-pdf-form": { - "title": "Create Localized PDF Form with Dynamic Label", - "filename": "create-localized-pdf-form.cs", - "description": "Demonstrates how to build a PDF form that changes a label's text based on the selected locale using a combo box and JavaScript.", + "set-password-field-max-length": { + "title": "Set Maximum Length for PDF Password Field", + "filename": "set-password-field-max-length.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, locate a password box field, set its maximum character length to 20, and save the updated document.", "tags": [ - "pdf-form", - "localization", - "javascript", - "combo-box", - "aspose-pdf" + "pdf", + "password-field", + "max-length", + "aspose-pdf", + "forms" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", + "Aspose.Pdf.Forms.PasswordBoxField", + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:40:37Z", + "status": "verified" + }, + "set-pdf-checkbox-field": { + "title": "Set Pdf Checkbox Field", + "filename": "set-pdf-checkbox-field.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-pdf-form-field-read-only": { + "title": "Set PDF Form Field to Read‑Only", + "filename": "set-pdf-form-field-read-only.cs", + "description": "Shows how to load a PDF, locate a text box form field, mark it as read‑only, and save the updated document.", + "tags": [ + "pdf", + "form", + "readonly", + "aspose-pdf", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.Form", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.ComboBoxField", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Tagged.ITaggedContent" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Form" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "add-javascript-localization-to-pdf-form": { - "title": "Add JavaScript Localization to PDF Form", - "filename": "add-javascript-localization-to-pdf-form.cs", - "description": "Demonstrates embedding a JavaScript dictionary of translations into a PDF and updating a form field based on the selected locale using Aspose.Pdf.", + "set-pdf-form-field-read-only__v2": { + "title": "Set PDF Form Field to Read‑Only", + "filename": "set-pdf-form-field-read-only__v2.cs", + "description": "Shows how to load a PDF, locate the \"EmployeeID\" form field, mark it as read‑only to prevent user modifications, and save the updated document.", "tags": [ - "javascript", "pdf", - "localization", "form", - "aspose-pdf" + "readonly", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Forms.Field.ReadOnly" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:40:37Z", + "status": "verified" + }, + "set-pdf-form-fields-read-only": { + "title": "Set Pdf Form Fields Read Only", + "filename": "set-pdf-form-fields-read-only.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-pdf-metadata-after-form-filling": { + "title": "Set Pdf Metadata After Form Filling", + "filename": "set-pdf-metadata-after-form-filling.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-pdf-metadata-after-form-processing": { + "title": "Set PDF Metadata After Form Processing", + "filename": "set-pdf-metadata-after-form-processing.cs", + "description": "Demonstrates loading a PDF with form fields, filling a text box, and updating the document's metadata such as author, title, subject, and keywords before saving.", + "tags": [ + "pdf", + "metadata", + "forms", + "aspose-pdf", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.DocumentInfo", + "Aspose.Pdf.Forms.Form", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.JavaScriptCollection", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "create-pdf-form-with-required-field-validation": { - "title": "Create PDF Form with Required Field Validation", - "filename": "create-pdf-form-with-required-field-validation.cs", - "description": "Shows how to build a PDF form with required text fields and attach JavaScript to a submit button that validates those fields before submitting the form.", + "set-rich-text-field-html": { + "title": "Set Rich Text Field Value with HTML in PDF", + "filename": "set-rich-text-field-html.cs", + "description": "Demonstrates how to load a PDF, locate a RichTextBox form field, and assign HTML markup to its FormattedValue to display formatted text.", "tags": [ + "rich-text", "pdf-form", - "javascript-validation", + "html", "aspose-pdf", - "required-fields", - "submit-button" + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.RichTextBoxField", + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Forms.FormField" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:40:37Z", + "status": "verified" + }, + "set-tooltip-for-pdf-email-field": { + "title": "Set Tooltip for PDF Email Form Field", + "filename": "set-tooltip-for-pdf-email-field.cs", + "description": "The example loads a PDF, finds the TextBox form field named \"Email\", sets its tooltip (alternate name) to show the required email format, and saves the updated document.", + "tags": [ + "pdf", + "form", + "tooltip", + "textboxfield", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.ButtonField", - "Aspose.Pdf.Annotations.JavascriptAction" + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Form" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:40:37Z", + "status": "verified" + }, + "sign-pdf-and-lock-signature-field": { + "title": "Sign PDF and Lock Signature Field", + "filename": "sign-pdf-and-lock-signature-field.cs", + "description": "Shows how to sign a PDF signature field with a PKCS#7 certificate using Aspose.Pdf and then lock the field to prevent further modifications during document review.", + "tags": [ + "pdf-signature", + "field-lock", + "digital-signature", + "incremental-update", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Forms.SignatureField", + "Aspose.Pdf.Forms.PKCS7", + "Aspose.Pdf.Forms.SignatureField.Sign", + "Aspose.Pdf.Forms.SignatureField.ReadOnly", + "Aspose.Pdf.Forms.Form.SignaturesAppendOnly" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "create-pdf-form-with-analytics": { - "title": "Create PDF Form with Interaction Logging", - "filename": "create-pdf-form-with-analytics.cs", - "description": "Demonstrates how to build a PDF form, add a hidden log field, and attach JavaScript actions to form fields so that each interaction is recorded for analytics.", + "style-pdf-form-field-border": { + "title": "Style Pdf Form Field Border", + "filename": "style-pdf-form-field-border.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "synchronize-pdf-form-data-using-xfdf": { + "title": "Synchronize PDF Form Data Using XFDF", + "filename": "synchronize-pdf-form-data-using-xfdf.cs", + "description": "Demonstrates exporting form fields from a source PDF to an XFDF file and importing that data into a target PDF to keep form values synchronized.", "tags": [ - "pdf-form", - "javascript", - "analytics", - "aspose-pdf", - "field-logging" + "pdf", + "forms", + "xfdf", + "export", + "import" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.CheckboxField", - "Aspose.Pdf.Forms.ComboBoxField", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Annotations.AnnotationFlags" + "Aspose.Pdf.Annotations.XfdfReader.ReadFields", + "Aspose.Pdf.Document.ExportAnnotationsToXfdf", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "add-submit-button-export-interaction-log": { - "title": "Add Submit Button and Export Interaction Log to XFDF", - "filename": "add-submit-button-export-interaction-log.cs", - "description": "Demonstrates how to add a PDF form submit button that posts XFDF data and then export the form's interaction log (annotations) to an XML‑based XFDF file for server‑side analysis.", + "synchronize-pdf-form-data-xfdf": { + "title": "Synchronize Pdf Form Data Xfdf", + "filename": "synchronize-pdf-form-data-xfdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "synchronize-xfdf-form-data-across-multiple-pdfs": { + "title": "Synchronize Xfdf Form Data Across Multiple Pdfs", + "filename": "synchronize-xfdf-form-data-across-multiple-pdfs.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "transform-import-pdf-form-data-json": { + "title": "Transform Import Pdf Form Data Json", + "filename": "transform-import-pdf-form-data-json.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "truncate-textboxfield-input-to-max-length": { + "title": "Truncate Textboxfield Input To Max Length", + "filename": "truncate-textboxfield-input-to-max-length.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "update-pdf-form-fields-from-xml": { + "title": "Update Pdf Form Fields From Xml", + "filename": "update-pdf-form-fields-from-xml.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "update-pdf-form-fields": { + "title": "Update PDF Form Fields without Full Document Load", + "filename": "update-pdf-form-fields.cs", + "description": "Shows how to modify text fields in a PDF form using Aspose.Pdf's core API, avoiding the heavy Facades layer and loading the entire document into memory.", + "tags": [ + "pdf", + "form", + "fields", + "update", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.CheckBoxField" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:40:37Z", + "status": "verified" + }, + "validate-age-numberfield-non-numeric-input": { + "title": "Validate Age NumberField Rejects Alphabetic Input", + "filename": "validate-age-numberfield-non-numeric-input.cs", + "description": "Shows how to create a numeric field in a PDF with Aspose.Pdf, set allowed characters, and confirm that assigning alphabetic characters throws an InvalidValueFormatException.", "tags": [ "pdf", "form", - "xfdf", - "submit-button", - "annotations" + "numberfield", + "validation", + "aspose.pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.ButtonField", - "Aspose.Pdf.Forms.SubmitFormAction", - "Aspose.Pdf.FileSpecification", - "Aspose.Pdf.Document.ExportAnnotationsToXfdf" + "Aspose.Pdf.Forms.NumberField", + "Aspose.Pdf.Forms.InvalidValueFormatException" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "import-xfdf-interaction-log-into-pdf": { - "title": "Import XFDF Interaction Log into PDF", - "filename": "import-xfdf-interaction-log-into-pdf.cs", - "description": "Demonstrates loading a base PDF, importing user interaction annotations from an XFDF (XML) log, and saving the reconstructed PDF using Aspose.Pdf.", + "validate-date-field-minimum-date": { + "title": "Validate Date Field Minimum Date", + "filename": "validate-date-field-minimum-date.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "validate-email-field-before-saving-pdf": { + "title": "Validate Email Field Before Saving Pdf", + "filename": "validate-email-field-before-saving-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "validate-email-form-field": { + "title": "Validate Email Form Field Before Saving PDF", + "filename": "validate-email-form-field.cs", + "description": "Demonstrates how to load a PDF, retrieve a form field, validate that the email contains an '@' character, and save the document only if validation passes.", "tags": [ - "xfdf", - "annotations", "pdf", - "import", + "form", + "validation", + "email", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.ImportAnnotationsFromXfdf", - "Aspose.Pdf.Annotations.XfdfReader.ReadAnnotations", + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Forms.Field", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "add-auto-updating-datetime-field-to-pdf": { - "title": "Add Auto‑Updating Date/Time Field to PDF", - "filename": "add-auto-updating-datetime-field-to-pdf.cs", - "description": "Demonstrates inserting a DateField into a PDF and attaching a JavaScript OpenAction that refreshes the field with the viewer's current date and time each time the document is opened.", + "validate-file-attachment-size-in-pdf-form": { + "title": "Validate File Attachment Size in PDF Form", + "filename": "validate-file-attachment-size-in-pdf-form.cs", + "description": "The example loads a PDF form, checks the size of a selected file in a FileSelectBoxField, and either adds a warning annotation or enables a submit button if the file is within a 5 MB limit.", "tags": [ "pdf", - "datefield", - "javascript", "form", - "aspose" + "validation", + "file-size", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.DateField", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Document.OpenAction" + "Aspose.Pdf.Forms.FileSelectBoxField", + "Aspose.Pdf.Annotations.TextAnnotation", + "Aspose.Pdf.Forms.ButtonField", + "Aspose.Pdf.Forms.SubmitFormAction", + "Aspose.Pdf.FileSpecification" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "add-read-only-date-field-to-pdf": { - "title": "Add Read‑Only Date Field to PDF", - "filename": "add-read-only-date-field-to-pdf.cs", - "description": "Demonstrates creating a date field in a PDF, populating it with the current date/time, and setting it to read‑only using Aspose.Pdf.", + "validate-incorrect-password-prevents-access": { + "title": "Validate Incorrect Password Prevents Access to Encrypted PDF Form Field", + "filename": "validate-incorrect-password-prevents-access.cs", + "description": "Demonstrates creating a PDF with a form field, encrypting it with user/owner passwords, and verifying that an incorrect password throws an InvalidPasswordException while the correct password allows field access.", "tags": [ - "datefield", - "readonly", - "pdf-form", - "aspose-pdf", - "csharp" + "pdf-encryption", + "form-fields", + "password-protection", + "invalid-password", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.DateField", - "Aspose.Pdf.Forms.Form.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Permissions", + "Aspose.Pdf.CryptoAlgorithm" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "conditional-pdf-section-checkbox": { - "title": "Conditional PDF Section Controlled by a Checkbox", - "filename": "conditional-pdf-section-checkbox.cs", - "description": "Demonstrates how to add a checkbox to a PDF form and use JavaScript to show or hide a dependent text field based on the checkbox state.", + "validate-ipv4-address-in-pdf-form-field": { + "title": "Validate IPv4 Address in PDF Form Field", + "filename": "validate-ipv4-address-in-pdf-form-field.cs", + "description": "Shows how to load a PDF, access a text box form field, validate its content against an IPv4 regular expression, and save the document.", "tags": [ "pdf", - "forms", - "checkbox", - "conditional", - "javascript" + "form", + "validation", + "ipv4", + "regex" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Forms.CheckboxField", + "Aspose.Pdf.Forms.Form", "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Annotations.AnnotationFlags" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Color" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "export-pdf-model-to-xml": { - "title": "Export PDF Document Model to XML Preserving Visibility", - "filename": "export-pdf-model-to-xml.cs", - "description": "Loads a PDF, optionally toggles the visibility of 3‑D cross‑section annotations, and saves the entire document model to an XML file to retain user preferences across sessions.", + "validate-numeric-age-field-rejects-non-numeric-input": { + "title": "Validate Numeric Age Field Rejects Non Numeric Input", + "filename": "validate-numeric-age-field-rejects-non-numeric-input.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "validate-pdf-file-size": { + "title": "Validate Pdf File Size", + "filename": "validate-pdf-file-size.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "validate-required-form-fields": { + "title": "Validate Required Form Fields", + "filename": "validate-required-form-fields.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "validate-required-pdf-form-field": { + "title": "Validate Required PDF Form Field and Highlight Empty with Red Border", + "filename": "validate-required-pdf-form-field.cs", + "description": "Shows how to mark a PDF form field as required, check its value after a simulated submission, and apply a red border to empty required fields using Aspose.Pdf.", "tags": [ "pdf", - "xml", - "visibility", - "annotations", - "export" + "form", + "validation", + "required-field", + "border" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.XmlSaveOptions", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Annotations.Pdf3DCrossSection", - "Aspose.Pdf.Page" + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.Border", + "Aspose.Pdf.Color" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "apply-xml-visibility-to-pdf-annotations": { - "title": "Apply XML-Defined Visibility to PDF Annotations", - "filename": "apply-xml-visibility-to-pdf-annotations.cs", - "description": "Loads visibility settings from an XML file and updates the Hidden flag of each PDF annotation accordingly, then saves the modified document.", + "validate-required-pdf-form-fields-before-export": { + "title": "Validate Required PDF Form Fields Before Exporting to JSON", + "filename": "validate-required-pdf-form-fields-before-export.cs", + "description": "The example loads a PDF, checks that all fields marked as required contain a value, and only then exports the form data to a JSON file. It aborts the export if any required field is empty.", "tags": [ "pdf", - "annotations", - "visibility", - "xml", - "aspose-pdf" + "form-validation", + "json-export", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.Annotation", - "Aspose.Pdf.Annotations.AnnotationFlags", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Form.ExportToJson", + "Aspose.Pdf.Forms.Field.Required" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "create-pdf-form-with-concatenated-barcode": { - "title": "Create PDF Form with Concatenated Barcode Field", - "filename": "create-pdf-form-with-concatenated-barcode.cs", - "description": "Shows how to add text box fields to a PDF form and generate a Code128 barcode from the concatenated values of those fields using Aspose.Pdf.", + "validate-required-pdf-form-fields-export-json": { + "title": "Validate Required Pdf Form Fields Export Json", + "filename": "validate-required-pdf-form-fields-export-json.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "validate-required-pdf-form-fields": { + "title": "Validate Required PDF Form Fields Before Saving", + "filename": "validate-required-pdf-form-fields.cs", + "description": "Shows how to iterate through a PDF's form fields with Aspose.Pdf, check that every required field has a value, and abort the save if any are empty.", "tags": [ - "pdf-form", - "barcode", - "code128", - "text-field", - "aspose-pdf" + "pdf", + "form-validation", + "required-fields", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.BarcodeField", - "Aspose.Pdf.Forms.BarcodeField.AddBarcode", - "Aspose.Pdf.Form" + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Forms.Field.Required", + "Aspose.Pdf.Forms.Field.Value", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "add-dynamic-code128-barcode-to-pdf": { - "title": "Add Dynamic Code128 Barcode Linked to a Text Field", - "filename": "add-dynamic-code128-barcode-to-pdf.cs", - "description": "Shows how to insert a Code128 barcode field into a PDF and keep it updated automatically when a source text field changes, using JavaScript actions.", + "validate-xml-xsd-fill-xfa-pdf": { + "title": "Validate XML with XSD and Fill XFA PDF Form", + "filename": "validate-xml-xsd-fill-xfa-pdf.cs", + "description": "The example validates an XML file against an XSD schema and, if successful, imports the data into an XFA PDF form using Aspose.Pdf.", "tags": [ - "barcode", - "form", - "javascript", - "code128", + "xml-validation", + "xsd", + "xfa", + "pdf-form", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.BarcodeField", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Forms.BarcodeField.AddBarcode" + "Aspose.Pdf.Form", + "Aspose.Pdf.Form.HasXfa", + "Aspose.Pdf.Form.AssignXfa", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:40:37Z", "status": "verified" }, - "export-barcode-fields-to-xml": { - "title": "Export Barcode Form Fields to XML", - "filename": "export-barcode-fields-to-xml.cs", - "description": "Shows how to iterate through a PDF's form fields, extract barcode field names and values, and write them to an XML file for inventory system integration.", + "validate-xml-xsd-import-pdf-xfa": { + "title": "Validate Xml Xsd Import Pdf Xfa", + "filename": "validate-xml-xsd-import-pdf-xfa.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "verify-pdf-form-field-count": { + "title": "Verify PDF Form Field Count with Aspose.Pdf", + "filename": "verify-pdf-form-field-count.cs", + "description": "Loads a PDF document, checks the number of form fields using Document.Form.Count, and proceeds only when the count matches the expected value.", "tags": [ - "barcode", "pdf", - "xml", - "forms", - "export" + "form", + "field-count", + "validation", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Forms.BarcodeField", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Document.Form.Fields" + "Aspose.Pdf.Form", + "Aspose.Pdf.Form.Count" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:40:37Z", diff --git a/working-with-graphs/AGENTS.md b/working-with-graphs/AGENTS.md index ae040c2ae..62f79a739 100644 --- a/working-with-graphs/AGENTS.md +++ b/working-with-graphs/AGENTS.md @@ -8,7 +8,7 @@ parent: ../agents.md # AGENTS - working-with-graphs -> **Working with graphs** in PDF using C# / .NET -- **72** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. +> **Working with graphs** in PDF using C# / .NET -- **129** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. ## Persona @@ -23,17 +23,17 @@ See the root [agents.md](../agents.md) for repository-wide conventions and bound ## Required Namespaces -- `using Aspose.Pdf;` (72/72 files) ← category-specific -- `using Aspose.Pdf.Drawing;` (69/72 files) ← category-specific -- `using Aspose.Pdf.Text;` (7/72 files) -- `using Aspose.Pdf.Annotations;` (1/72 files) -- `using Aspose.Pdf.Operators;` (1/72 files) -- `using System;` (72/72 files) -- `using System.IO;` (30/72 files) -- `using System.Collections.Generic;` (6/72 files) -- `using NUnit.Framework;` (1/72 files) -- `using System.Text.Json;` (1/72 files) -- `using System.Threading.Tasks;` (1/72 files) +- `using Aspose.Pdf;` (72/129 files) ← category-specific +- `using Aspose.Pdf.Drawing;` (69/129 files) ← category-specific +- `using Aspose.Pdf.Text;` (7/129 files) +- `using Aspose.Pdf.Annotations;` (1/129 files) +- `using Aspose.Pdf.Operators;` (1/129 files) +- `using System;` (72/129 files) +- `using System.IO;` (30/129 files) +- `using System.Collections.Generic;` (6/129 files) +- `using NUnit.Framework;` (1/129 files) +- `using System.Text.Json;` (1/129 files) +- `using System.Threading.Tasks;` (1/129 files) ## Common Code Pattern @@ -53,38 +53,38 @@ using (Document doc = new Document("input.pdf")) |------|-------|----------|-------------| | [add-background-image-and-graph-to-pdf](./add-background-image-and-graph-to-pdf.cs) | Add Background Image to PDF and Draw Graph Shapes on Top | `Document`, `Page`, `Artifact` | Demonstrates how to place a background image on a PDF page using an Artifact and then draw a Grap... | | [add-centered-graph-to-pdf-page](./add-centered-graph-to-pdf-page.cs) | Add Centered Graph to PDF Page | `Document`, `Page`, `Graph` | Shows how to create a Graph, center it horizontally and vertically on a PDF page, add it to the p... | +| [add-colored-line-segments-to-pdf-graph](./add-colored-line-segments-to-pdf-graph.cs) | Add colored line segments to pdf graph | | Add colored line segments to pdf graph | | [add-dashed-rectangle-to-graph](./add-dashed-rectangle-to-graph.cs) | Add Dashed Rectangle to Graph in PDF | `Document`, `Page`, `Graph` | Creates a PDF document, adds a Graph container, draws a rectangle with a 2‑point black dashed bor... | +| [add-dashed-rectangle-to-pdf-graph](./add-dashed-rectangle-to-pdf-graph.cs) | Add dashed rectangle to pdf graph | | Add dashed rectangle to pdf graph | | [add-ellipse-to-pdf-page](./add-ellipse-to-pdf-page.cs) | Add Ellipse to PDF Page with Specified Radii and Stroke Colo... | `Document`, `Page`, `Graph` | Demonstrates how to open an existing PDF, create a Graph container, draw an ellipse with given ho... | +| [add-ellipse-with-border-and-centered-text](./add-ellipse-with-border-and-centered-text.cs) | Add ellipse with border and centered text | | Add ellipse with border and centered text | | [add-filled-arc-to-pdf-graph](./add-filled-arc-to-pdf-graph.cs) | Add Filled Arc to PDF Graph | `Document`, `Page`, `Graph` | Demonstrates how to create a PDF document, add a graph, and draw a filled arc with a custom color... | | [add-filled-arc-with-radial-gradient](./add-filled-arc-with-radial-gradient.cs) | Add Filled Arc with Radial Gradient to PDF | `Document`, `Page`, `Graph` | Creates a PDF document, adds a graph containing an arc shape, and demonstrates how to apply a rad... | | [add-filled-circle-to-pdf-graph](./add-filled-circle-to-pdf-graph.cs) | Add Filled Circle to PDF Using Aspose.Pdf Graph | `Document`, `Page`, `Graph` | Demonstrates how to create a PDF document, add a Graph container, draw a filled circle with a bor... | +| [add-filled-circle-to-pdf](./add-filled-circle-to-pdf.cs) | Add filled circle to pdf | | Add filled circle to pdf | +| [add-filled-curve-to-pdf-graph](./add-filled-curve-to-pdf-graph.cs) | Add filled curve to pdf graph | | Add filled curve to pdf graph | | [add-filled-curve-with-opacity-and-border](./add-filled-curve-with-opacity-and-border.cs) | Add Filled Curve with Opacity and Border to PDF | `Document`, `Page`, `Graph` | Demonstrates how to draw a filled Bézier curve in a PDF using Aspose.Pdf, setting fill opacity an... | +| [add-filled-rectangle-dashed-border-to-pdf-graph](./add-filled-rectangle-dashed-border-to-pdf-graph.cs) | Add filled rectangle dashed border to pdf graph | | Add filled rectangle dashed border to pdf graph | | [add-filled-rectangle-with-dashed-border](./add-filled-rectangle-with-dashed-border.cs) | Add Filled Rectangle with Dashed Border to PDF Graph | `Document`, `Page`, `Graph` | Demonstrates how to draw a filled rectangle with a custom dashed border inside a Graph container ... | | [add-full-size-graph-to-pdf-page](./add-full-size-graph-to-pdf-page.cs) | Add Full-Size Graph to PDF Page | `Document`, `Page`, `Graph` | Shows how to create a Graph object that matches the page dimensions of a PDF, add a rectangle sha... | | [add-gradient-ellipse-graphs-to-pdfs](./add-gradient-ellipse-graphs-to-pdfs.cs) | Add Gradient Ellipse Graphs to PDFs in Parallel | `Document`, `Page`, `Graph` | Demonstrates processing multiple PDF files concurrently and adding a graph with gradient‑filled e... | +| [add-graph-matching-page-size](./add-graph-matching-page-size.cs) | Add graph matching page size | | Add graph matching page size | | [add-graph-rectangle-watermark-to-pdf](./add-graph-rectangle-watermark-to-pdf.cs) | Add Graph Rectangle Watermark to PDF Pages | `Document`, `Page`, `Graph` | The example loads each PDF from an input folder, creates a Graph that matches the page size, adds... | | [add-graph-to-pdf](./add-graph-to-pdf.cs) | Add Graph to PDF Document | `Document`, `Page`, `Graph` | Shows how to load a PDF, create a Graph with shapes such as a rectangle and line, place it on a p... | +| [add-graph-watermark-to-pdf-pages](./add-graph-watermark-to-pdf-pages.cs) | Add graph watermark to pdf pages | | Add graph watermark to pdf pages | | [add-graph-with-shapes-to-pdf](./add-graph-with-shapes-to-pdf.cs) | Add Graph with Shapes to a PDF Page | `Document`, `Page`, `Graph` | Loads an existing PDF, adds a new page, creates a Graph container, draws a rectangle, ellipse, an... | +| [add-line-to-pdf-graph](./add-line-to-pdf-graph.cs) | Add line to pdf graph | | Add line to pdf graph | | [add-multi-colored-line-segments-to-pdf-graph](./add-multi-colored-line-segments-to-pdf-graph.cs) | Create a Multi‑Color Line Graph in PDF | `Document`, `Page`, `Graph` | Demonstrates how to build a PDF document, add a Graph container, and draw multiple line segments ... | | [add-non-overlapping-rectangles-to-pdf-graph](./add-non-overlapping-rectangles-to-pdf-graph.cs) | Add Non-Overlapping Rectangles to a PDF Graph | `Document`, `Page`, `Graph` | Demonstrates placing multiple rectangles of varying sizes on a PDF graph while preventing overlap... | +| [add-polygon-annotation-with-dashed-outline](./add-polygon-annotation-with-dashed-outline.cs) | Add polygon annotation with dashed outline | | Add polygon annotation with dashed outline | +| [add-rectangle-ellipse-graph-to-pdf](./add-rectangle-ellipse-graph-to-pdf.cs) | Add rectangle ellipse graph to pdf | | Add rectangle ellipse graph to pdf | +| [add-rectangle-radial-gradient-pdf](./add-rectangle-radial-gradient-pdf.cs) | Add rectangle radial gradient pdf | | Add rectangle radial gradient pdf | | [add-rectangle-solid-red-fill-to-pdf-graph](./add-rectangle-solid-red-fill-to-pdf-graph.cs) | Add Rectangle with Solid Red Fill to PDF Graph | `Document`, `Page`, `Graph` | Shows how to create a PDF, add a Graph container, define a rectangle using absolute coordinates, ... | -| [add-rectangle-with-shadow-to-pdf](./add-rectangle-with-shadow-to-pdf.cs) | Add Rectangle with Shadow to PDF | `Document`, `Page`, `Graph` | Shows how to draw a rectangle with a semi‑transparent offset shadow in a PDF using Aspose.Pdf's G... | -| [add-regular-hexagon-to-pdf-graph](./add-regular-hexagon-to-pdf-graph.cs) | Add Regular Hexagon to PDF Graph | `Document`, `Page`, `Graph` | Demonstrates how to draw a regular six‑sided polygon (hexagon) on a PDF page using Aspose.Pdf's G... | -| [add-rounded-rectangle-with-fill-to-pdf-graph](./add-rounded-rectangle-with-fill-to-pdf-graph.cs) | Add Rounded Rectangle with Fill to PDF Graph | `Document`, `Page`, `Graph` | Creates a PDF document, adds a Graph container, and draws a rounded rectangle with a solid fill a... | -| [add-rounded-rectangle-with-fill](./add-rounded-rectangle-with-fill.cs) | Add Rounded Rectangle with Fill to PDF | `Document`, `Page`, `Graph` | Shows how to draw a rectangle with rounded corners, set a corner radius, and apply a solid fill u... | -| [add-semi-transparent-rectangle-using-transparency-...](./add-semi-transparent-rectangle-using-transparency-layer.cs) | Add Semi-Transparent Rectangle via Transparency Layer | `Document`, `Page`, `Graph` | The example opens an existing PDF, creates a Graph as a transparency layer, draws a semi‑transpar... | -| [add-semi-transparent-rectangle](./add-semi-transparent-rectangle.cs) | Add Semi-Transparent Rectangle Using Alpha Channel | `Document`, `Page`, `Graph` | Creates a PDF containing a rectangle filled with a semi‑transparent color to demonstrate alpha‑ch... | -| [add-shadow-effect-to-filled-rectangle](./add-shadow-effect-to-filled-rectangle.cs) | Add Shadow Effect to a Filled Rectangle in PDF | `Document`, `Page`, `Graph` | Shows how to draw a filled rectangle with a simulated shadow by adding an offset semi‑transparent... | -| [add-shapes-with-bounds-checking](./add-shapes-with-bounds-checking.cs) | Add Shapes to PDF with Bounds Checking | `Document`, `Page`, `Graph` | Demonstrates loading a PDF, creating a Graph that spans the page, enabling bounds‑checking, addin... | -| [add-text-inside-graph](./add-text-inside-graph.cs) | Add Text Inside a Graph with Custom Font and Position | `Document`, `Page`, `Graph` | Demonstrates how to insert a Graph into a PDF page and place a formatted TextFragment inside it a... | -| [add-unfilled-arc-with-custom-stroke](./add-unfilled-arc-with-custom-stroke.cs) | Add Unfilled Arc with Custom Stroke to PDF | `Document`, `Page`, `Graph` | Demonstrates creating a PDF, adding a Graph container, drawing an unfilled arc, and customizing i... | -| [align-graph-to-left-margin-pdf](./align-graph-to-left-margin-pdf.cs) | Align Graph to Left Margin in PDF | `Document`, `Page`, `Graph` | Demonstrates creating a Graph, positioning it with a left offset and top margin, adding a shape, ... | -| [batch-insert-company-logo-graph-into-pdfs](./batch-insert-company-logo-graph-into-pdfs.cs) | Batch Insert Company Logo Graph into PDFs | `Document`, `Page`, `Graph` | Shows how to process all PDF files in a folder, load each with Aspose.Pdf, add a predefined Graph... | -| [build-reusable-graph-for-pdf-pages](./build-reusable-graph-for-pdf-pages.cs) | Create Reusable Graph with Shapes for PDF Pages | `Document`, `Page`, `Graph` | Demonstrates how to build a predefined Graph containing a rectangle, ellipse, and line, and add i... | -| ... | | | *and 42 more files* | +| [add-rectangle-with-bounds-checking](./add-rectangle-with-bounds-checking.cs) | Add rectangle with bounds checking | | Add rectangle with bounds checking | +| ... | | | *and 99 more files* | ## Category Statistics -- Total examples: 72 +- Total examples: 129 ## Category-Specific Tips @@ -128,5 +128,5 @@ using (Document doc = new Document("input.pdf")) - Review code examples in this folder for working-with-graphs patterns -Updated: 2026-08-20 | Run: `20260820_001147_12d7b3` +Updated: 2026-09-10 | Run: `20260910_054408_87a7f4` diff --git a/working-with-graphs/README.md b/working-with-graphs/README.md new file mode 100644 index 000000000..741b92f32 --- /dev/null +++ b/working-with-graphs/README.md @@ -0,0 +1,148 @@ +# Working with graphs + +> **Working with graphs** in PDF using C# / .NET -- **129** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. + +- Category: `working-with-graphs` +- Examples: 129 +- NuGet: `Aspose.PDF 26.8.0` -- target `net10.0` + +## Examples + +- [`add-background-image-and-graph-to-pdf.cs`](./add-background-image-and-graph-to-pdf.cs) -- Add background image and graph to pdf +- [`add-centered-graph-to-pdf-page.cs`](./add-centered-graph-to-pdf-page.cs) -- Add centered graph to pdf page +- [`add-colored-line-segments-to-pdf-graph.cs`](./add-colored-line-segments-to-pdf-graph.cs) -- Add colored line segments to pdf graph +- [`add-dashed-rectangle-to-graph.cs`](./add-dashed-rectangle-to-graph.cs) -- Add dashed rectangle to graph +- [`add-dashed-rectangle-to-pdf-graph.cs`](./add-dashed-rectangle-to-pdf-graph.cs) -- Add dashed rectangle to pdf graph +- [`add-ellipse-to-pdf-page.cs`](./add-ellipse-to-pdf-page.cs) -- Add ellipse to pdf page +- [`add-ellipse-with-border-and-centered-text.cs`](./add-ellipse-with-border-and-centered-text.cs) -- Add ellipse with border and centered text +- [`add-filled-arc-to-pdf-graph.cs`](./add-filled-arc-to-pdf-graph.cs) -- Add filled arc to pdf graph +- [`add-filled-arc-with-radial-gradient.cs`](./add-filled-arc-with-radial-gradient.cs) -- Add filled arc with radial gradient +- [`add-filled-circle-to-pdf-graph.cs`](./add-filled-circle-to-pdf-graph.cs) -- Add filled circle to pdf graph +- [`add-filled-circle-to-pdf.cs`](./add-filled-circle-to-pdf.cs) -- Add filled circle to pdf +- [`add-filled-curve-to-pdf-graph.cs`](./add-filled-curve-to-pdf-graph.cs) -- Add filled curve to pdf graph +- [`add-filled-curve-with-opacity-and-border.cs`](./add-filled-curve-with-opacity-and-border.cs) -- Add filled curve with opacity and border +- [`add-filled-rectangle-dashed-border-to-pdf-graph.cs`](./add-filled-rectangle-dashed-border-to-pdf-graph.cs) -- Add filled rectangle dashed border to pdf graph +- [`add-filled-rectangle-with-dashed-border.cs`](./add-filled-rectangle-with-dashed-border.cs) -- Add filled rectangle with dashed border +- [`add-full-size-graph-to-pdf-page.cs`](./add-full-size-graph-to-pdf-page.cs) -- Add full size graph to pdf page +- [`add-gradient-ellipse-graphs-to-pdfs.cs`](./add-gradient-ellipse-graphs-to-pdfs.cs) -- Add gradient ellipse graphs to pdfs +- [`add-graph-matching-page-size.cs`](./add-graph-matching-page-size.cs) -- Add graph matching page size +- [`add-graph-rectangle-watermark-to-pdf.cs`](./add-graph-rectangle-watermark-to-pdf.cs) -- Add graph rectangle watermark to pdf +- [`add-graph-to-pdf.cs`](./add-graph-to-pdf.cs) -- Add graph to pdf +- [`add-graph-watermark-to-pdf-pages.cs`](./add-graph-watermark-to-pdf-pages.cs) -- Add graph watermark to pdf pages +- [`add-graph-with-shapes-to-pdf.cs`](./add-graph-with-shapes-to-pdf.cs) -- Add graph with shapes to pdf +- [`add-line-to-pdf-graph.cs`](./add-line-to-pdf-graph.cs) -- Add line to pdf graph +- [`add-multi-colored-line-segments-to-pdf-graph.cs`](./add-multi-colored-line-segments-to-pdf-graph.cs) -- Add multi colored line segments to pdf graph +- [`add-non-overlapping-rectangles-to-pdf-graph.cs`](./add-non-overlapping-rectangles-to-pdf-graph.cs) -- Add non overlapping rectangles to pdf graph +- [`add-polygon-annotation-with-dashed-outline.cs`](./add-polygon-annotation-with-dashed-outline.cs) -- Add polygon annotation with dashed outline +- [`add-rectangle-ellipse-graph-to-pdf.cs`](./add-rectangle-ellipse-graph-to-pdf.cs) -- Add rectangle ellipse graph to pdf +- [`add-rectangle-radial-gradient-pdf.cs`](./add-rectangle-radial-gradient-pdf.cs) -- Add rectangle radial gradient pdf +- [`add-rectangle-solid-red-fill-to-pdf-graph.cs`](./add-rectangle-solid-red-fill-to-pdf-graph.cs) -- Add rectangle solid red fill to pdf graph +- [`add-rectangle-with-bounds-checking.cs`](./add-rectangle-with-bounds-checking.cs) -- Add rectangle with bounds checking +- [`add-rectangle-with-drop-shadow-to-pdf.cs`](./add-rectangle-with-drop-shadow-to-pdf.cs) -- Add rectangle with drop shadow to pdf +- [`add-rectangle-with-shadow-to-pdf.cs`](./add-rectangle-with-shadow-to-pdf.cs) -- Add rectangle with shadow to pdf +- [`add-regular-hexagon-to-pdf-graph.cs`](./add-regular-hexagon-to-pdf-graph.cs) -- Add regular hexagon to pdf graph +- [`add-rotated-ellipse-to-pdf.cs`](./add-rotated-ellipse-to-pdf.cs) -- Add rotated ellipse to pdf +- [`add-rounded-rectangle-with-fill-to-pdf-graph.cs`](./add-rounded-rectangle-with-fill-to-pdf-graph.cs) -- Add rounded rectangle with fill to pdf graph +- [`add-rounded-rectangle-with-fill.cs`](./add-rounded-rectangle-with-fill.cs) -- Add rounded rectangle with fill +- [`add-semi-transparent-rectangle-using-transparency-layer.cs`](./add-semi-transparent-rectangle-using-transparency-layer.cs) -- Add semi transparent rectangle using transparency layer +- [`add-semi-transparent-rectangle.cs`](./add-semi-transparent-rectangle.cs) -- Add semi transparent rectangle +- [`add-shadow-effect-to-filled-rectangle.cs`](./add-shadow-effect-to-filled-rectangle.cs) -- Add shadow effect to filled rectangle +- [`add-shapes-with-bounds-checking.cs`](./add-shapes-with-bounds-checking.cs) -- Add shapes with bounds checking +- [`add-solid-red-rectangle-to-pdf-graph.cs`](./add-solid-red-rectangle-to-pdf-graph.cs) -- Add solid red rectangle to pdf graph +- [`add-text-inside-graph-pdf.cs`](./add-text-inside-graph-pdf.cs) -- Add text inside graph pdf +- [`add-text-inside-graph.cs`](./add-text-inside-graph.cs) -- Add text inside graph +- [`add-unfilled-arc-with-custom-stroke.cs`](./add-unfilled-arc-with-custom-stroke.cs) -- Add unfilled arc with custom stroke +- [`add-unfilled-arc-with-line-width-and-dash-style.cs`](./add-unfilled-arc-with-line-width-and-dash-style.cs) -- Add unfilled arc with line width and dash style +- [`adjust-rectangle-bounds-in-pdf.cs`](./adjust-rectangle-bounds-in-pdf.cs) -- Adjust rectangle bounds in pdf +- [`align-graph-to-left-margin-pdf.cs`](./align-graph-to-left-margin-pdf.cs) -- Align graph to left margin pdf +- [`apply-background-image-to-pdf-graph.cs`](./apply-background-image-to-pdf-graph.cs) -- Apply background image to pdf graph +- [`apply-clipping-region-to-graph.cs`](./apply-clipping-region-to-graph.cs) -- Apply clipping region to graph +- [`batch-insert-company-logo-graph-into-pdfs.cs`](./batch-insert-company-logo-graph-into-pdfs.cs) -- Batch insert company logo graph into pdfs +- [`batch-insert-logo-graph-into-pdfs.cs`](./batch-insert-logo-graph-into-pdfs.cs) -- Batch insert logo graph into pdfs +- [`build-reusable-graph-for-pdf-pages.cs`](./build-reusable-graph-for-pdf-pages.cs) -- Build reusable graph for pdf pages +- [`center-text-in-rectangle-pdf.cs`](./center-text-in-rectangle-pdf.cs) -- Center text in rectangle pdf +- [`check-adjust-shape-bounds-pdf.cs`](./check-adjust-shape-bounds-pdf.cs) -- Check adjust shape bounds pdf +- [`clip-graph-to-rectangle-pdf.cs`](./clip-graph-to-rectangle-pdf.cs) -- Clip graph to rectangle pdf +- [`clip-shapes-within-graph-region.cs`](./clip-shapes-within-graph-region.cs) -- Clip shapes within graph region +- [`combine-multiple-graphs-pdf-collage.cs`](./combine-multiple-graphs-pdf-collage.cs) -- Combine multiple graphs pdf collage +- [`configure-graph-border-add-rectangle.cs`](./configure-graph-border-add-rectangle.cs) -- Configure graph border add rectangle +- [`configure-graph-border-rectangle-dash-style.cs`](./configure-graph-border-rectangle-dash-style.cs) -- Configure graph border rectangle dash style +- [`configure-shape-fill-colors-json-pdf-graph.cs`](./configure-shape-fill-colors-json-pdf-graph.cs) -- Configure shape fill colors json pdf graph +- [`configure-shape-fill-colors-pdf-graph.cs`](./configure-shape-fill-colors-pdf-graph.cs) -- Configure shape fill colors pdf graph +- [`create-bar-graph-with-legend.cs`](./create-bar-graph-with-legend.cs) -- Create bar graph with legend +- [`create-bezier-curve-in-pdf-graph.cs`](./create-bezier-curve-in-pdf-graph.cs) -- Create bezier curve in pdf graph +- [`create-custom-star-shape-pdf.cs`](./create-custom-star-shape-pdf.cs) -- Create custom star shape pdf +- [`create-dimension-line-in-pdf-graph.cs`](./create-dimension-line-in-pdf-graph.cs) -- Create dimension line in pdf graph +- [`create-dimension-specific-rectangle-pdf.cs`](./create-dimension-specific-rectangle-pdf.cs) -- Create dimension specific rectangle pdf +- [`create-dimension-specific-rectangle.cs`](./create-dimension-specific-rectangle.cs) -- Create dimension specific rectangle +- [`create-ellipse-pdf-graph.cs`](./create-ellipse-pdf-graph.cs) -- Create ellipse pdf graph +- [`create-graph-with-rectangle-and-ellipse.cs`](./create-graph-with-rectangle-and-ellipse.cs) -- Create graph with rectangle and ellipse +- [`create-horizontal-bar-chart-pdf.cs`](./create-horizontal-bar-chart-pdf.cs) -- Create horizontal bar chart pdf +- [`create-layered-shapes-in-pdf.cs`](./create-layered-shapes-in-pdf.cs) -- Create layered shapes in pdf +- [`create-multi-page-pdf-with-full-page-graphs.cs`](./create-multi-page-pdf-with-full-page-graphs.cs) -- Create multi page pdf with full page graphs +- [`create-new-pdf-single-page.cs`](./create-new-pdf-single-page.cs) -- Create new pdf single page +- [`create-pdf-collage-multiple-graphs.cs`](./create-pdf-collage-multiple-graphs.cs) -- Create pdf collage multiple graphs +- [`create-pdf-graph-border-colors.cs`](./create-pdf-graph-border-colors.cs) -- Create pdf graph border colors +- [`create-pdf-graph-filled-outline-shapes.cs`](./create-pdf-graph-filled-outline-shapes.cs) -- Create pdf graph filled outline shapes +- [`create-pdf-graph-styled-text.cs`](./create-pdf-graph-styled-text.cs) -- Create pdf graph styled text +- [`create-pdf-graph-with-border-colors.cs`](./create-pdf-graph-with-border-colors.cs) -- Create pdf graph with border colors +- [`create-pdf-pages-with-proportional-graph-shapes.cs`](./create-pdf-pages-with-proportional-graph-shapes.cs) -- Create pdf pages with proportional graph shapes +- [`create-pdf-with-filled-arc-graph.cs`](./create-pdf-with-filled-arc-graph.cs) -- Create pdf with filled arc graph +- [`create-pdf-with-graph.cs`](./create-pdf-with-graph.cs) -- Create pdf with graph +- [`create-pdf-with-single-default-page.cs`](./create-pdf-with-single-default-page.cs) -- Create pdf with single default page +- [`create-proportional-graphs-pdf.cs`](./create-proportional-graphs-pdf.cs) -- Create proportional graphs pdf +- [`create-rotate-ellipse-pdf-graph.cs`](./create-rotate-ellipse-pdf-graph.cs) -- Create rotate ellipse pdf graph +- [`create-sample-graph-pdf.cs`](./create-sample-graph-pdf.cs) -- Create sample graph pdf +- [`create-semi-transparent-ellipse-fill.cs`](./create-semi-transparent-ellipse-fill.cs) -- Create semi transparent ellipse fill +- [`create-semi-transparent-shape-graph.cs`](./create-semi-transparent-shape-graph.cs) -- Create semi transparent shape graph +- [`create-star-shape-pdf.cs`](./create-star-shape-pdf.cs) -- Create star shape pdf +- [`deserialize-pdf-add-graph-label.cs`](./deserialize-pdf-add-graph-label.cs) -- Deserialize pdf add graph label +- [`draw-straight-line-in-pdf-graph.cs`](./draw-straight-line-in-pdf-graph.cs) -- Draw straight line in pdf graph +- [`draw-straight-line-with-custom-cap.cs`](./draw-straight-line-with-custom-cap.cs) -- Draw straight line with custom cap +- [`ellipse-with-transparent-fill-and-centered-text.cs`](./ellipse-with-transparent-fill-and-centered-text.cs) -- Ellipse with transparent fill and centered text +- [`enable-bounds-check-mode-graph.cs`](./enable-bounds-check-mode-graph.cs) -- Enable bounds check mode graph +- [`enable-boundscheckmode-validate-graph-shape.cs`](./enable-boundscheckmode-validate-graph-shape.cs) -- Enable boundscheckmode validate graph shape +- [`export-graph-to-pdf.cs`](./export-graph-to-pdf.cs) -- Export graph to pdf +- [`export-pdf-to-memory-stream-and-save.cs`](./export-pdf-to-memory-stream-and-save.cs) -- Export pdf to memory stream and save +- [`export-pdf-to-memorystream-and-save-to-file.cs`](./export-pdf-to-memorystream-and-save-to-file.cs) -- Export pdf to memorystream and save to file +- [`graph-filled-and-outline-shapes.cs`](./graph-filled-and-outline-shapes.cs) -- Graph filled and outline shapes +- [`handle-shape-bounds-exceptions.cs`](./handle-shape-bounds-exceptions.cs) -- Handle shape bounds exceptions +- [`insert-centered-textfragment-rectangle.cs`](./insert-centered-textfragment-rectangle.cs) -- Insert centered textfragment rectangle +- [`insert-dashed-polyline-annotation.cs`](./insert-dashed-polyline-annotation.cs) -- Insert dashed polyline annotation +- [`insert-graph-into-pdf-footer.cs`](./insert-graph-into-pdf-footer.cs) -- Insert graph into pdf footer +- [`insert-rotate-scaled-image-pdf.cs`](./insert-rotate-scaled-image-pdf.cs) -- Insert rotate scaled image pdf +- [`insert-rounded-rectangle-into-pdf-graph.cs`](./insert-rounded-rectangle-into-pdf-graph.cs) -- Insert rounded rectangle into pdf graph +- [`insert-scaled-rotated-image-into-pdf.cs`](./insert-scaled-rotated-image-into-pdf.cs) -- Insert scaled rotated image into pdf +- [`iterate-graph-shapes-bounding-boxes.cs`](./iterate-graph-shapes-bounding-boxes.cs) -- Iterate graph shapes bounding boxes +- [`log-graph-shapes-bounding-boxes.cs`](./log-graph-shapes-bounding-boxes.cs) -- Log graph shapes bounding boxes +- [`map-shape-colors-to-pdf-graph.cs`](./map-shape-colors-to-pdf-graph.cs) -- Map shape colors to pdf graph +- [`map-shape-identifiers-to-fill-colors.cs`](./map-shape-identifiers-to-fill-colors.cs) -- Map shape identifiers to fill colors +- [`measure-ellipse-bounding-box.cs`](./measure-ellipse-bounding-box.cs) -- Measure ellipse bounding box +- [`non-uniform-graph-scaling.cs`](./non-uniform-graph-scaling.cs) -- Non uniform graph scaling +- [`non-uniform-scale-graph.cs`](./non-uniform-scale-graph.cs) -- Non uniform scale graph +- [`out-of-bounds-rectangle-throws-exception.cs`](./out-of-bounds-rectangle-throws-exception.cs) -- Out of bounds rectangle throws exception +- [`parallel-gradient-ellipse-pdf.cs`](./parallel-gradient-ellipse-pdf.cs) -- Parallel gradient ellipse pdf +- [`pdf-report-with-colored-bar-graph.cs`](./pdf-report-with-colored-bar-graph.cs) -- Pdf report with colored bar graph +- [`place-graph-left-margin-offset.cs`](./place-graph-left-margin-offset.cs) -- Place graph left margin offset +- [`rotate-graph-in-pdf.cs`](./rotate-graph-in-pdf.cs) -- Rotate graph in pdf +- [`scale-graph-shapes-150-percent.cs`](./scale-graph-shapes-150-percent.cs) -- Scale graph shapes 150 percent +- [`semi-transparent-ellipse-pdf.cs`](./semi-transparent-ellipse-pdf.cs) -- Semi transparent ellipse pdf +- [`serialize-pdf-graph-to-byte-array.cs`](./serialize-pdf-graph-to-byte-array.cs) -- Serialize pdf graph to byte array +- [`serialize-pdf-to-byte-array.cs`](./serialize-pdf-to-byte-array.cs) -- Serialize pdf to byte array +- [`set-graph-dimensions-pdf.cs`](./set-graph-dimensions-pdf.cs) -- Set graph dimensions pdf +- [`set-rectangle-fill-opacity-50-argb.cs`](./set-rectangle-fill-opacity-50-argb.cs) -- Set rectangle fill opacity 50 argb +- [`skew-graph-x-axis.cs`](./skew-graph-x-axis.cs) -- Skew graph x axis +- [`test-out-of-bounds-rectangle-throws-exception.cs`](./test-out-of-bounds-rectangle-throws-exception.cs) -- Test out of bounds rectangle throws exception +- [`toggle-graph-bounds-check-mode.cs`](./toggle-graph-bounds-check-mode.cs) -- Toggle graph bounds check mode +- [`toggle-graph-boundscheckmode.cs`](./toggle-graph-boundscheckmode.cs) -- Toggle graph boundscheckmode +- [`translate-graph-position-in-pdf.cs`](./translate-graph-position-in-pdf.cs) -- Translate graph position in pdf +- [`translate-graph-rectangle.cs`](./translate-graph-rectangle.cs) -- Translate graph rectangle + +## See Also + +- [`AGENTS.md`](./AGENTS.md) -- category-specific anti-patterns, API surface, and conventions for AI coding agents +- [`../AGENTS.md`](../AGENTS.md) -- repository-wide agent guide +- [`../README.md`](../README.md) -- full category index and project overview +- [Aspose.PDF for .NET docs](https://docs.aspose.com/pdf/net/) + +> Each `.cs` file is a standalone, build-validated console example. Drop into a fresh `dotnet new console` project, add the `Aspose.PDF` NuGet (version above), and run. diff --git a/working-with-graphs/index.json b/working-with-graphs/index.json index 37334a498..5b58abf86 100644 --- a/working-with-graphs/index.json +++ b/working-with-graphs/index.json @@ -1,192 +1,253 @@ { "category": "working-with-graphs", "nuget_version": "26.8.0", - "last_updated": "2026-08-20T08:49:46Z", + "last_updated": "2026-09-10T12:45:08Z", "examples": { - "add-filled-arc-to-pdf-graph": { - "title": "Add Filled Arc to PDF Graph", - "filename": "add-filled-arc-to-pdf-graph.cs", - "description": "Demonstrates how to create a PDF document, add a graph, and draw a filled arc with a custom color using Aspose.Pdf.", + "add-background-image-and-graph-to-pdf": { + "title": "Add Background Image to PDF and Draw Graph Shapes on Top", + "filename": "add-background-image-and-graph-to-pdf.cs", + "description": "Demonstrates how to place a background image on a PDF page using an Artifact and then draw a Graph with shapes that appear above the image.", "tags": [ - "pdf", + "background-image", "graph", - "arc", - "filled-shape", - "aspose-pdf" + "shapes", + "Aspose.Pdf", + "PDF" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.Artifact", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Arc", - "Aspose.Pdf.Drawing.GraphInfo" + "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Drawing.Line", + "Aspose.Pdf.GraphInfo", + "Aspose.Pdf.Color" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "add-unfilled-arc-with-custom-stroke": { - "title": "Add Unfilled Arc with Custom Stroke to PDF", - "filename": "add-unfilled-arc-with-custom-stroke.cs", - "description": "Demonstrates creating a PDF, adding a Graph container, drawing an unfilled arc, and customizing its line width and dash pattern.", + "add-centered-graph-to-pdf-page": { + "title": "Add Centered Graph to PDF Page", + "filename": "add-centered-graph-to-pdf-page.cs", + "description": "Shows how to create a Graph, center it horizontally and vertically on a PDF page, add it to the page's Paragraphs collection, and save the document using Aspose.Pdf.", "tags": [ - "pdf", - "arc", "graph", - "stroke", - "aspose.pdf" + "center", + "pdf", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Arc", "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Page.Paragraphs.Add", - "Aspose.Pdf.Drawing.Graph.Shapes.Add" + "Aspose.Pdf.Drawing.HorizontalAlignment", + "Aspose.Pdf.Drawing.VerticalAlignment", + "Aspose.Pdf.Drawing.Color" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "add-filled-circle-to-pdf-graph": { - "title": "Add Filled Circle to PDF Using Aspose.Pdf Graph", - "filename": "add-filled-circle-to-pdf-graph.cs", - "description": "Demonstrates how to create a PDF document, add a Graph container, draw a filled circle with a border, and save the result using Aspose.Pdf.", + "add-colored-line-segments-to-pdf-graph": { + "title": "Add Colored Line Segments To Pdf Graph", + "filename": "add-colored-line-segments-to-pdf-graph.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-dashed-rectangle-to-graph": { + "title": "Add Dashed Rectangle to Graph in PDF", + "filename": "add-dashed-rectangle-to-graph.cs", + "description": "Creates a PDF document, adds a Graph container, draws a rectangle with a 2‑point black dashed border, and saves the file.", "tags": [ "pdf", - "circle", "graph", - "drawing", - "aspose-pdf" + "rectangle", + "border", + "dash" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Circle", + "Aspose.Pdf.Drawing.Rectangle", "Aspose.Pdf.Drawing.GraphInfo" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "create-bezier-curve-in-pdf-graph": { - "title": "Create Bezier Curve in PDF Graph", - "filename": "create-bezier-curve-in-pdf-graph.cs", - "description": "Demonstrates how to draw a Bezier curve using four control points inside a Graph object in a PDF document and set its stroke color and line width.", + "add-dashed-rectangle-to-pdf-graph": { + "title": "Add Dashed Rectangle To Pdf Graph", + "filename": "add-dashed-rectangle-to-pdf-graph.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-ellipse-to-pdf-page": { + "title": "Add Ellipse to PDF Page with Specified Radii and Stroke Color", + "filename": "add-ellipse-to-pdf-page.cs", + "description": "Demonstrates how to open an existing PDF, create a Graph container, draw an ellipse with given horizontal and vertical radii, set its stroke color, and save the modified document.", "tags": [ - "bezier", - "graph", + "ellipse", "pdf", + "graph", "aspose", - "curve" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Curve", - "Aspose.Pdf.Drawing.GraphInfo" + "Aspose.Pdf.Drawing.Ellipse", + "Aspose.Pdf.Drawing.GraphInfo", + "Aspose.Pdf.Color" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "add-filled-curve-with-opacity-and-border": { - "title": "Add Filled Curve with Opacity and Border to PDF", - "filename": "add-filled-curve-with-opacity-and-border.cs", - "description": "Demonstrates how to draw a filled Bézier curve in a PDF using Aspose.Pdf, setting fill opacity and border thickness.", + "add-ellipse-with-border-and-centered-text": { + "title": "Add Ellipse With Border And Centered Text", + "filename": "add-ellipse-with-border-and-centered-text.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-filled-arc-to-pdf-graph": { + "title": "Add Filled Arc to PDF Graph", + "filename": "add-filled-arc-to-pdf-graph.cs", + "description": "Demonstrates how to create a PDF document, add a graph, and draw a filled arc with a custom color using Aspose.Pdf.", "tags": [ "pdf", "graph", - "filled-curve", - "opacity", - "border" + "arc", + "filled-shape", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Curve", - "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Drawing.Color" + "Aspose.Pdf.Drawing.Arc", + "Aspose.Pdf.Drawing.GraphInfo" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "draw-straight-line-in-pdf-graph": { - "title": "Draw a Straight Line in a PDF Graph", - "filename": "draw-straight-line-in-pdf-graph.cs", - "description": "Demonstrates how to create a PDF document with Aspose.Pdf, add a Graph container, draw a line between two points, configure its color and thickness, and save the result.", + "add-filled-arc-with-radial-gradient": { + "title": "Add Filled Arc with Radial Gradient to PDF", + "filename": "add-filled-arc-with-radial-gradient.cs", + "description": "Creates a PDF document, adds a graph containing an arc shape, and demonstrates how to apply a radial gradient fill (fallback to a solid color) using GraphInfo.", "tags": [ - "pdf", + "arc", + "radial-gradient", "graph", - "line", - "drawing", - "aspose-pdf" + "pdf", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Line", + "Aspose.Pdf.Drawing.Arc", + "Aspose.Pdf.Drawing.GradientRadialShading", "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Drawing.Color", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Color" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "add-multi-colored-line-segments-to-pdf-graph": { - "title": "Create a Multi‑Color Line Graph in PDF", - "filename": "add-multi-colored-line-segments-to-pdf-graph.cs", - "description": "Demonstrates how to build a PDF document, add a Graph container, and draw multiple line segments with different colors to represent a continuous data series.", + "add-filled-circle-to-pdf-graph": { + "title": "Add Filled Circle to PDF Using Aspose.Pdf Graph", + "filename": "add-filled-circle-to-pdf-graph.cs", + "description": "Demonstrates how to create a PDF document, add a Graph container, draw a filled circle with a border, and save the result using Aspose.Pdf.", "tags": [ - "graph", - "line", - "color", "pdf", + "circle", + "graph", + "drawing", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Line", - "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Drawing.Circle", + "Aspose.Pdf.Drawing.GraphInfo" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "add-rounded-rectangle-with-fill-to-pdf-graph": { - "title": "Add Rounded Rectangle with Fill to PDF Graph", - "filename": "add-rounded-rectangle-with-fill-to-pdf-graph.cs", - "description": "Creates a PDF document, adds a Graph container, and draws a rounded rectangle with a solid fill and border color.", + "add-filled-circle-to-pdf": { + "title": "Add Filled Circle To Pdf", + "filename": "add-filled-circle-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-filled-curve-to-pdf-graph": { + "title": "Add Filled Curve To Pdf Graph", + "filename": "add-filled-curve-to-pdf-graph.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-filled-curve-with-opacity-and-border": { + "title": "Add Filled Curve with Opacity and Border to PDF", + "filename": "add-filled-curve-with-opacity-and-border.cs", + "description": "Demonstrates how to draw a filled Bézier curve in a PDF using Aspose.Pdf, setting fill opacity and border thickness.", "tags": [ "pdf", - "rectangle", "graph", - "rounded-corner", - "fill-color" + "filled-curve", + "opacity", + "border" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Drawing.Curve", "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Color" + "Aspose.Pdf.Drawing.Color" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, + "add-filled-rectangle-dashed-border-to-pdf-graph": { + "title": "Add Filled Rectangle Dashed Border To Pdf Graph", + "filename": "add-filled-rectangle-dashed-border-to-pdf-graph.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "add-filled-rectangle-with-dashed-border": { "title": "Add Filled Rectangle with Dashed Border to PDF Graph", "filename": "add-filled-rectangle-with-dashed-border.cs", @@ -210,225 +271,287 @@ "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "add-ellipse-to-pdf-page": { - "title": "Add Ellipse to PDF Page with Specified Radii and Stroke Color", - "filename": "add-ellipse-to-pdf-page.cs", - "description": "Demonstrates how to open an existing PDF, create a Graph container, draw an ellipse with given horizontal and vertical radii, set its stroke color, and save the modified document.", + "add-full-size-graph-to-pdf-page": { + "title": "Add Full-Size Graph to PDF Page", + "filename": "add-full-size-graph-to-pdf-page.cs", + "description": "Shows how to create a Graph object that matches the page dimensions of a PDF, add a rectangle shape, and embed the graph into the page using Aspose.Pdf.", "tags": [ - "ellipse", - "pdf", "graph", + "pdf", "aspose", - "csharp" + "page-size", + "drawing" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Ellipse", + "Aspose.Pdf.Drawing.Rectangle", "Aspose.Pdf.Drawing.GraphInfo", "Aspose.Pdf.Color" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "add-centered-graph-to-pdf-page": { - "title": "Add Centered Graph to PDF Page", - "filename": "add-centered-graph-to-pdf-page.cs", - "description": "Shows how to create a Graph, center it horizontally and vertically on a PDF page, add it to the page's Paragraphs collection, and save the document using Aspose.Pdf.", + "add-gradient-ellipse-graphs-to-pdfs": { + "title": "Add Gradient Ellipse Graphs to PDFs in Parallel", + "filename": "add-gradient-ellipse-graphs-to-pdfs.cs", + "description": "Demonstrates processing multiple PDF files concurrently and adding a graph with gradient‑filled ellipses to each page using Aspose.Pdf.", "tags": [ - "graph", - "center", "pdf", - "aspose", - "csharp" + "parallel", + "graph", + "ellipse", + "gradient" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Drawing.Ellipse", "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Drawing.HorizontalAlignment", - "Aspose.Pdf.Drawing.VerticalAlignment", - "Aspose.Pdf.Drawing.Color" + "Aspose.Pdf.Color.FromRgb", + "Aspose.Pdf.Page.Paragraphs.Add", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "align-graph-to-left-margin-pdf": { - "title": "Align Graph to Left Margin in PDF", - "filename": "align-graph-to-left-margin-pdf.cs", - "description": "Demonstrates creating a Graph, positioning it with a left offset and top margin, adding a shape, and inserting it into a PDF page using Aspose.Pdf.", + "add-graph-matching-page-size": { + "title": "Add Graph Matching Page Size", + "filename": "add-graph-matching-page-size.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-graph-rectangle-watermark-to-pdf": { + "title": "Add Graph Rectangle Watermark to PDF Pages", + "filename": "add-graph-rectangle-watermark-to-pdf.cs", + "description": "The example loads each PDF from an input folder, creates a Graph that matches the page size, adds a light‑gray rectangle as a watermark, and saves the modified documents to an output folder.", "tags": [ - "graph", "pdf", - "alignment", - "aspose-pdf", - "csharp" + "watermark", + "graph", + "batch", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.GraphInfo" + "Aspose.Pdf.Drawing.GraphInfo", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "set-graph-dimensions-pdf": { - "title": "Set Graph Dimensions in PDF", - "filename": "set-graph-dimensions-pdf.cs", - "description": "Demonstrates how to create a Graph with specific width and height, add a rectangle shape that fills the graph area, and save the result as a PDF using Aspose.Pdf.", + "add-graph-to-pdf": { + "title": "Add Graph to PDF Document", + "filename": "add-graph-to-pdf.cs", + "description": "Shows how to load a PDF, create a Graph with shapes such as a rectangle and line, place it on a page, and save the updated file using Aspose.Pdf.", "tags": [ - "graph", "pdf", - "dimensions", + "graph", "aspose-pdf", - "rectangle" + "shapes", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.GraphInfo" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T08:49:46Z", - "status": "verified" - }, - "create-dimension-line-in-pdf-graph": { - "title": "Create Dimension Line in PDF Graph", - "filename": "create-dimension-line-in-pdf-graph.cs", - "description": "Shows how to use Aspose.Pdf.Drawing.Graph to add a dimension‑specific line shape to a PDF document and style it with GraphInfo.", - "tags": [ - "graph", - "line", - "pdf", - "aspose", - "drawing" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Drawing.Graph", "Aspose.Pdf.Drawing.Line", "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Text.TextFragment" + "Aspose.Pdf.Color" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "create-dimension-specific-rectangle-pdf": { - "title": "Create Dimension-Specific Rectangle in PDF", - "filename": "create-dimension-specific-rectangle-pdf.cs", - "description": "Demonstrates how to add a rectangle with explicit dimensions to a PDF using Aspose.Pdf's Graph container and set its visual style.", + "add-graph-watermark-to-pdf-pages": { + "title": "Add Graph Watermark To Pdf Pages", + "filename": "add-graph-watermark-to-pdf-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-graph-with-shapes-to-pdf": { + "title": "Add Graph with Shapes to a PDF Page", + "filename": "add-graph-with-shapes-to-pdf.cs", + "description": "Loads an existing PDF, adds a new page, creates a Graph container, draws a rectangle, ellipse, and line, and saves the modified document.", "tags": [ "pdf", - "rectangle", "graph", - "drawing", - "aspose" + "shapes", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Color" + "Aspose.Pdf.Drawing.Ellipse", + "Aspose.Pdf.Drawing.Line", + "Aspose.Pdf.Drawing.GraphInfo" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "check-adjust-shape-bounds-pdf": { - "title": "Check and Adjust Shape Bounds in a PDF", - "filename": "check-adjust-shape-bounds-pdf.cs", - "description": "Demonstrates loading a PDF, creating a rectangle shape inside a Graph, checking whether the shape fits the page bounds, and repositioning it if necessary before saving the document.", + "add-line-to-pdf-graph": { + "title": "Add Line To Pdf Graph", + "filename": "add-line-to-pdf-graph.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-multi-colored-line-segments-to-pdf-graph": { + "title": "Create a Multi‑Color Line Graph in PDF", + "filename": "add-multi-colored-line-segments-to-pdf-graph.cs", + "description": "Demonstrates how to build a PDF document, add a Graph container, and draw multiple line segments with different colors to represent a continuous data series.", "tags": [ + "graph", + "line", + "color", "pdf", - "shape", - "bounds", - "aspose", - "graph" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.Rectangle.CheckBounds", + "Aspose.Pdf.Drawing.Line", "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Color", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "iterate-graph-shapes-bounding-boxes": { - "title": "Iterate Graph Shapes and Log Bounding Boxes", - "filename": "iterate-graph-shapes-bounding-boxes.cs", - "description": "Demonstrates creating a PDF graph, adding rectangle and ellipse shapes, and iterating through all shapes to log their bounding box coordinates.", + "add-non-overlapping-rectangles-to-pdf-graph": { + "title": "Add Non-Overlapping Rectangles to a PDF Graph", + "filename": "add-non-overlapping-rectangles-to-pdf-graph.cs", + "description": "Demonstrates placing multiple rectangles of varying sizes on a PDF graph while preventing overlap using bounds checking.", "tags": [ + "pdf", "graph", - "shapes", - "bounding-box", - "Aspose.Pdf", - "iteration" + "rectangle", + "overlap", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Graph", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.Ellipse", "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Drawing.Shape" + "Aspose.Pdf.Rectangle.IsIntersect", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "rotate-graph-in-pdf": { - "title": "Rotate a Graph in a PDF", - "filename": "rotate-graph-in-pdf.cs", - "description": "Demonstrates how to create a Graph object, set its rotation angle in degrees, add a shape, and save the result to a PDF using Aspose.Pdf.", + "add-polygon-annotation-with-dashed-outline": { + "title": "Add Polygon Annotation With Dashed Outline", + "filename": "add-polygon-annotation-with-dashed-outline.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-rectangle-ellipse-graph-to-pdf": { + "title": "Add Rectangle Ellipse Graph To Pdf", + "filename": "add-rectangle-ellipse-graph-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-rectangle-radial-gradient-pdf": { + "title": "Add Rectangle Radial Gradient Pdf", + "filename": "add-rectangle-radial-gradient-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-rectangle-solid-red-fill-to-pdf-graph": { + "title": "Add Rectangle with Solid Red Fill to PDF Graph", + "filename": "add-rectangle-solid-red-fill-to-pdf-graph.cs", + "description": "Shows how to create a PDF, add a Graph container, define a rectangle using absolute coordinates, apply a solid red fill, and save the document.", "tags": [ - "graph", - "rotation", "pdf", - "aspose-pdf", - "csharp" + "rectangle", + "graph", + "fill", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.GraphInfo", "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Drawing.GraphInfo", + "Aspose.Pdf.Color", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "translate-graph-position-in-pdf": { - "title": "Translate Graph Position Horizontally and Vertically", - "filename": "translate-graph-position-in-pdf.cs", - "description": "Demonstrates creating a Graph with a rectangle shape in a PDF, adding it to a page, and moving the entire graph by adjusting its Left and Top properties.", + "add-rectangle-with-bounds-checking": { + "title": "Add Rectangle With Bounds Checking", + "filename": "add-rectangle-with-bounds-checking.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-rectangle-with-drop-shadow-to-pdf": { + "title": "Add Rectangle With Drop Shadow To Pdf", + "filename": "add-rectangle-with-drop-shadow-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-rectangle-with-shadow-to-pdf": { + "title": "Add Rectangle with Shadow to PDF", + "filename": "add-rectangle-with-shadow-to-pdf.cs", + "description": "Shows how to draw a rectangle with a semi‑transparent offset shadow in a PDF using Aspose.Pdf's Graph and Rectangle objects.", "tags": [ - "graph", - "translation", "pdf", - "aspose-pdf", - "position" + "rectangle", + "shadow", + "graph", + "drawing" ], "apis_used": [ "Aspose.Pdf.Document", @@ -436,78 +559,87 @@ "Aspose.Pdf.Drawing.Graph", "Aspose.Pdf.Drawing.Rectangle", "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Color" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "non-uniform-scale-graph": { - "title": "Non‑Uniformly Scale Graph in PDF", - "filename": "non-uniform-scale-graph.cs", - "description": "Shows how to create a Graph with a rectangle shape, apply different scaling rates on the X and Y axes to change its aspect ratio, and save the result as a PDF.", + "add-regular-hexagon-to-pdf-graph": { + "title": "Add Regular Hexagon to PDF Graph", + "filename": "add-regular-hexagon-to-pdf-graph.cs", + "description": "Demonstrates how to draw a regular six‑sided polygon (hexagon) on a PDF page using Aspose.Pdf's Graph container and set its border color and thickness.", "tags": [ - "graph", - "scaling", "pdf", - "aspose", - "non-uniform" + "graph", + "hexagon", + "shape", + "border" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Drawing.Line", "Aspose.Pdf.Drawing.GraphInfo", "Aspose.Pdf.Color" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "skew-graph-x-axis": { - "title": "Skew Graph on X Axis in PDF", - "filename": "skew-graph-x-axis.cs", - "description": "Demonstrates applying a skew transformation to a Graph container on the X‑axis and adding a rectangle shape to visualize the effect in a PDF document using Aspose.Pdf.", + "add-rotated-ellipse-to-pdf": { + "title": "Add Rotated Ellipse To Pdf", + "filename": "add-rotated-ellipse-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-rounded-rectangle-with-fill-to-pdf-graph": { + "title": "Add Rounded Rectangle with Fill to PDF Graph", + "filename": "add-rounded-rectangle-with-fill-to-pdf-graph.cs", + "description": "Creates a PDF document, adds a Graph container, and draws a rounded rectangle with a solid fill and border color.", "tags": [ - "graph", - "skew", "pdf", - "aspose", - "transformation" + "rectangle", + "graph", + "rounded-corner", + "fill-color" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.GraphInfo", "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.Color" + "Aspose.Pdf.Drawing.GraphInfo", + "Aspose.Pdf.Color" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "clip-graph-to-rectangle-pdf": { - "title": "Clip Graph Shapes to a Rectangle in PDF", - "filename": "clip-graph-to-rectangle-pdf.cs", - "description": "Demonstrates how to define a clipping region using PDF operators and render a Graph so that its shapes are visible only within that rectangle.", + "add-rounded-rectangle-with-fill": { + "title": "Add Rounded Rectangle with Fill to PDF", + "filename": "add-rounded-rectangle-with-fill.cs", + "description": "Shows how to draw a rectangle with rounded corners, set a corner radius, and apply a solid fill using Aspose.Pdf's Graph and Rectangle classes.", "tags": [ - "clipping", + "rounded-rectangle", "graph", - "shapes", + "fill", "pdf", - "aspose-pdf" + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Operators.MoveTo", - "Aspose.Pdf.Operators.LineTo", - "Aspose.Pdf.Operators.Clip", "Aspose.Pdf.Drawing.Graph", "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.Ellipse" + "Aspose.Pdf.Drawing.GraphInfo", + "Aspose.Pdf.Color", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:49:46Z", @@ -538,6 +670,29 @@ "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, + "add-semi-transparent-rectangle": { + "title": "Add Semi-Transparent Rectangle Using Alpha Channel", + "filename": "add-semi-transparent-rectangle.cs", + "description": "Creates a PDF containing a rectangle filled with a semi‑transparent color to demonstrate alpha‑channel usage (simulated linear gradient).", + "tags": [ + "alpha", + "gradient", + "rectangle", + "pdf", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Drawing.GraphInfo", + "Aspose.Pdf.Color" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:49:46Z", + "status": "verified" + }, "add-shadow-effect-to-filled-rectangle": { "title": "Add Shadow Effect to a Filled Rectangle in PDF", "filename": "add-shadow-effect-to-filled-rectangle.cs", @@ -561,115 +716,176 @@ "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "create-custom-star-shape-pdf": { - "title": "Create a Custom Star Shape in a PDF using Aspose.Pdf", - "filename": "create-custom-star-shape-pdf.cs", - "description": "Demonstrates how to generate a star polygon with a configurable number of points, fill color, and outline, and embed it in a PDF using Aspose.Pdf's Graph and Path objects.", + "add-shapes-with-bounds-checking": { + "title": "Add Shapes to PDF with Bounds Checking", + "filename": "add-shapes-with-bounds-checking.cs", + "description": "Demonstrates loading a PDF, creating a Graph that spans the page, enabling bounds‑checking, adding various shapes with exception handling, and saving the result.", "tags": [ - "star", - "shape", - "graph", "pdf", - "aspose" + "graph", + "shapes", + "bounds-checking", + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Path", + "Aspose.Pdf.Drawing.Graph.Shapes.UpdateBoundsCheckMode", + "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Drawing.Ellipse", "Aspose.Pdf.Drawing.Line", - "Aspose.Pdf.Drawing.GraphInfo" + "Aspose.Pdf.BoundsOutOfRangeException" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "add-regular-hexagon-to-pdf-graph": { - "title": "Add Regular Hexagon to PDF Graph", - "filename": "add-regular-hexagon-to-pdf-graph.cs", - "description": "Demonstrates how to draw a regular six‑sided polygon (hexagon) on a PDF page using Aspose.Pdf's Graph container and set its border color and thickness.", + "add-solid-red-rectangle-to-pdf-graph": { + "title": "Add Solid Red Rectangle To Pdf Graph", + "filename": "add-solid-red-rectangle-to-pdf-graph.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-text-inside-graph-pdf": { + "title": "Add Text Inside Graph Pdf", + "filename": "add-text-inside-graph-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-text-inside-graph": { + "title": "Add Text Inside a Graph with Custom Font and Position", + "filename": "add-text-inside-graph.cs", + "description": "Demonstrates how to insert a Graph into a PDF page and place a formatted TextFragment inside it at specific coordinates using Aspose.Pdf.", "tags": [ - "pdf", "graph", - "hexagon", - "shape", - "border" + "text", + "pdf", + "aspose", + "position" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Line", "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Color" + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.FontRepository", + "Aspose.Pdf.Text.Position" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "insert-dashed-polyline-annotation": { - "title": "Insert Dashed Polyline Annotation into PDF", - "filename": "insert-dashed-polyline-annotation.cs", - "description": "Demonstrates how to add a polyline annotation with multiple vertices and a custom dashed border to a PDF page using Aspose.Pdf.", + "add-unfilled-arc-with-custom-stroke": { + "title": "Add Unfilled Arc with Custom Stroke to PDF", + "filename": "add-unfilled-arc-with-custom-stroke.cs", + "description": "Demonstrates creating a PDF, adding a Graph container, drawing an unfilled arc, and customizing its line width and dash pattern.", "tags": [ - "polyline", - "annotation", - "border", - "dash", - "Aspose.Pdf" + "pdf", + "arc", + "graph", + "stroke", + "aspose.pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Point", - "Aspose.Pdf.Annotations.PolylineAnnotation", - "Aspose.Pdf.Annotations.Border", - "Aspose.Pdf.Annotations.Dash" + "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Drawing.Arc", + "Aspose.Pdf.Drawing.GraphInfo", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Page.Paragraphs.Add", + "Aspose.Pdf.Drawing.Graph.Shapes.Add" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "add-text-inside-graph": { - "title": "Add Text Inside a Graph with Custom Font and Position", - "filename": "add-text-inside-graph.cs", - "description": "Demonstrates how to insert a Graph into a PDF page and place a formatted TextFragment inside it at specific coordinates using Aspose.Pdf.", + "add-unfilled-arc-with-line-width-and-dash-style": { + "title": "Add Unfilled Arc With Line Width And Dash Style", + "filename": "add-unfilled-arc-with-line-width-and-dash-style.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "adjust-rectangle-bounds-in-pdf": { + "title": "Adjust Rectangle Bounds In Pdf", + "filename": "adjust-rectangle-bounds-in-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "align-graph-to-left-margin-pdf": { + "title": "Align Graph to Left Margin in PDF", + "filename": "align-graph-to-left-margin-pdf.cs", + "description": "Demonstrates creating a Graph, positioning it with a left offset and top margin, adding a shape, and inserting it into a PDF page using Aspose.Pdf.", "tags": [ "graph", - "text", "pdf", - "aspose", - "position" + "alignment", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.FontRepository", - "Aspose.Pdf.Text.Position" + "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Drawing.GraphInfo" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "add-background-image-and-graph-to-pdf": { - "title": "Add Background Image to PDF and Draw Graph Shapes on Top", - "filename": "add-background-image-and-graph-to-pdf.cs", - "description": "Demonstrates how to place a background image on a PDF page using an Artifact and then draw a Graph with shapes that appear above the image.", + "apply-background-image-to-pdf-graph": { + "title": "Apply Background Image To Pdf Graph", + "filename": "apply-background-image-to-pdf-graph.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "apply-clipping-region-to-graph": { + "title": "Apply Clipping Region To Graph", + "filename": "apply-clipping-region-to-graph.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "batch-insert-company-logo-graph-into-pdfs": { + "title": "Batch Insert Company Logo Graph into PDFs", + "filename": "batch-insert-company-logo-graph-into-pdfs.cs", + "description": "Shows how to process all PDF files in a folder, load each with Aspose.Pdf, add a predefined Graph containing a rectangle logo (and an optional line) to every page, and save the updated documents.", "tags": [ - "background-image", + "pdf", "graph", - "shapes", - "Aspose.Pdf", - "PDF" + "batch-processing", + "logo", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Artifact", "Aspose.Pdf.Drawing.Graph", "Aspose.Pdf.Drawing.Rectangle", "Aspose.Pdf.Drawing.Line", @@ -680,109 +896,145 @@ "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "insert-scaled-rotated-image-into-pdf": { - "title": "Insert Scaled and Rotated Image into PDF", - "filename": "insert-scaled-rotated-image-into-pdf.cs", - "description": "Shows how to load an external image, scale it proportionally to a target width, rotate it by a given angle, and place it on a PDF page using a Graph container with Aspose.Pdf.", + "batch-insert-logo-graph-into-pdfs": { + "title": "Batch Insert Logo Graph Into Pdfs", + "filename": "batch-insert-logo-graph-into-pdfs.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "build-reusable-graph-for-pdf-pages": { + "title": "Create Reusable Graph with Shapes for PDF Pages", + "filename": "build-reusable-graph-for-pdf-pages.cs", + "description": "Demonstrates how to build a predefined Graph containing a rectangle, ellipse, and line, and add it to any PDF page using Aspose.Pdf.", "tags": [ + "graph", + "shapes", "pdf", - "image", - "scaling", - "rotation", - "Aspose.Pdf" + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.ImageStamp", - "Aspose.Pdf.Page.Resources.Images.Add", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Graph", + "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Drawing.Ellipse", + "Aspose.Pdf.Drawing.Line", + "Aspose.Pdf.Drawing.GraphInfo", + "Aspose.Pdf.Color" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "add-filled-arc-with-radial-gradient": { - "title": "Add Filled Arc with Radial Gradient to PDF", - "filename": "add-filled-arc-with-radial-gradient.cs", - "description": "Creates a PDF document, adds a graph containing an arc shape, and demonstrates how to apply a radial gradient fill (fallback to a solid color) using GraphInfo.", + "center-text-in-rectangle-pdf": { + "title": "Center Text In Rectangle Pdf", + "filename": "center-text-in-rectangle-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "check-adjust-shape-bounds-pdf": { + "title": "Check and Adjust Shape Bounds in a PDF", + "filename": "check-adjust-shape-bounds-pdf.cs", + "description": "Demonstrates loading a PDF, creating a rectangle shape inside a Graph, checking whether the shape fits the page bounds, and repositioning it if necessary before saving the document.", "tags": [ - "arc", - "radial-gradient", - "graph", "pdf", - "Aspose.Pdf" + "shape", + "bounds", + "aspose", + "graph" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Arc", - "Aspose.Pdf.Drawing.GradientRadialShading", + "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Drawing.Rectangle.CheckBounds", "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Color" + "Aspose.Pdf.Color", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "create-new-pdf-single-page": { - "title": "Create a New PDF with a Single Page", - "filename": "create-new-pdf-single-page.cs", - "description": "Demonstrates how to create an empty PDF document, add a default‑size page, and save it using Aspose.Pdf.", + "clip-graph-to-rectangle-pdf": { + "title": "Clip Graph Shapes to a Rectangle in PDF", + "filename": "clip-graph-to-rectangle-pdf.cs", + "description": "Demonstrates how to define a clipping region using PDF operators and render a Graph so that its shapes are visible only within that rectangle.", "tags": [ + "clipping", + "graph", + "shapes", "pdf", - "creation", - "documentfactory", - "pages", "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.DocumentFactory", "Aspose.Pdf.Document", - "Aspose.Pdf.DocumentFactory.CreateDocument", - "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page", + "Aspose.Pdf.Operators.MoveTo", + "Aspose.Pdf.Operators.LineTo", + "Aspose.Pdf.Operators.Clip", + "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Drawing.Ellipse" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "add-full-size-graph-to-pdf-page": { - "title": "Add Full-Size Graph to PDF Page", - "filename": "add-full-size-graph-to-pdf-page.cs", - "description": "Shows how to create a Graph object that matches the page dimensions of a PDF, add a rectangle shape, and embed the graph into the page using Aspose.Pdf.", + "clip-shapes-within-graph-region": { + "title": "Clip Shapes Within Graph Region", + "filename": "clip-shapes-within-graph-region.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "combine-multiple-graphs-pdf-collage": { + "title": "Combine Multiple Graphs on a Single PDF Page", + "filename": "combine-multiple-graphs-pdf-collage.cs", + "description": "Shows how to create several Aspose.Pdf Graph objects (rectangle, ellipse, line) and position them at different coordinates on one PDF page to form a collage.", "tags": [ - "graph", + "graphs", "pdf", + "collage", "aspose", - "page-size", - "drawing" + "positioning" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Color" + "Aspose.Pdf.Drawing.Ellipse", + "Aspose.Pdf.Drawing.Line", + "Aspose.Pdf.Drawing.GraphInfo" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "add-rectangle-solid-red-fill-to-pdf-graph": { - "title": "Add Rectangle with Solid Red Fill to PDF Graph", - "filename": "add-rectangle-solid-red-fill-to-pdf-graph.cs", - "description": "Shows how to create a PDF, add a Graph container, define a rectangle using absolute coordinates, apply a solid red fill, and save the document.", + "configure-graph-border-add-rectangle": { + "title": "Configure Graph Border and Add Rectangle with Custom Style", + "filename": "configure-graph-border-add-rectangle.cs", + "description": "Demonstrates how to set a Graph's line width and dash pattern, which are inherited by shapes, and then add a rectangle with custom border and fill colors.", "tags": [ - "pdf", - "rectangle", "graph", - "fill", - "Aspose.Pdf" + "border", + "rectangle", + "dash-style", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", @@ -790,44 +1042,66 @@ "Aspose.Pdf.Drawing.Graph", "Aspose.Pdf.Drawing.Rectangle", "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Color", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Color" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "create-semi-transparent-ellipse-fill": { - "title": "Create Semi-Transparent Ellipse Fill in PDF", - "filename": "create-semi-transparent-ellipse-fill.cs", - "description": "Demonstrates adding a graph with an ellipse to a PDF and setting its fill color using an alpha channel to achieve semi-transparency.", + "configure-graph-border-rectangle-dash-style": { + "title": "Configure Graph Border Rectangle Dash Style", + "filename": "configure-graph-border-rectangle-dash-style.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "configure-shape-fill-colors-json-pdf-graph": { + "title": "Configure Shape Fill Colors via JSON and Create PDF Graph", + "filename": "configure-shape-fill-colors-json-pdf-graph.cs", + "description": "The example reads a JSON configuration file that maps shape types to color names, converts those names to Aspose.Pdf.Color, and applies the colors while building a Graph with rectangles, ellipses, and lines in a PDF document.", "tags": [ - "ellipse", - "transparent", - "graph", + "json", "pdf", - "color" + "graph", + "shapes", + "configuration" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Drawing.Rectangle", "Aspose.Pdf.Drawing.Ellipse", - "Aspose.Pdf.Drawing.Color", - "Aspose.Pdf.Drawing.GraphInfo" + "Aspose.Pdf.Drawing.Line", + "Aspose.Pdf.Drawing.GraphInfo", + "Aspose.Pdf.Color" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "insert-centered-textfragment-rectangle": { - "title": "Insert Centered TextFragment Inside a Rectangle", - "filename": "insert-centered-textfragment-rectangle.cs", - "description": "Shows how to draw a rectangle on a PDF page using Aspose.Pdf Graph and place a TextFragment centered within that rectangle.", + "configure-shape-fill-colors-pdf-graph": { + "title": "Configure Shape Fill Colors Pdf Graph", + "filename": "configure-shape-fill-colors-pdf-graph.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-bar-graph-with-legend": { + "title": "Create Bar Graph with Legend in PDF", + "filename": "create-bar-graph-with-legend.cs", + "description": "Shows how to generate a PDF report containing a simple bar graph using colored rectangles and a legend with Aspose.Pdf.", "tags": [ "pdf", - "rectangle", - "textfragment", "graph", + "legend", + "bars", "aspose-pdf" ], "apis_used": [ @@ -835,140 +1109,135 @@ "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Drawing.GraphInfo", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextBuilder" + "Aspose.Pdf.Text.Position" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "enable-bounds-check-mode-graph": { - "title": "Enable Bounds Check Mode for Graph Shape Placement", - "filename": "enable-bounds-check-mode-graph.cs", - "description": "Shows how to activate BoundsCheckMode.ThrowExceptionIfDoesNotFit on a Graph to ensure shapes fit within its area, handling out‑of‑bounds shapes with exceptions.", + "create-bezier-curve-in-pdf-graph": { + "title": "Create Bezier Curve in PDF Graph", + "filename": "create-bezier-curve-in-pdf-graph.cs", + "description": "Demonstrates how to draw a Bezier curve using four control points inside a Graph object in a PDF document and set its stroke color and line width.", "tags": [ + "bezier", "graph", - "bounds-check", - "shape", - "exception", - "aspose-pdf" + "pdf", + "aspose", + "curve" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.BorderInfo", - "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Drawing.BoundsCheckMode" + "Aspose.Pdf.Drawing.Curve", + "Aspose.Pdf.Drawing.GraphInfo" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "add-shapes-with-bounds-checking": { - "title": "Add Shapes to PDF with Bounds Checking", - "filename": "add-shapes-with-bounds-checking.cs", - "description": "Demonstrates loading a PDF, creating a Graph that spans the page, enabling bounds‑checking, adding various shapes with exception handling, and saving the result.", + "create-custom-star-shape-pdf": { + "title": "Create a Custom Star Shape in a PDF using Aspose.Pdf", + "filename": "create-custom-star-shape-pdf.cs", + "description": "Demonstrates how to generate a star polygon with a configurable number of points, fill color, and outline, and embed it in a PDF using Aspose.Pdf's Graph and Path objects.", "tags": [ - "pdf", + "star", + "shape", "graph", - "shapes", - "bounds-checking", - "aspnet" + "pdf", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Graph.Shapes.UpdateBoundsCheckMode", - "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.Ellipse", + "Aspose.Pdf.Drawing.Path", "Aspose.Pdf.Drawing.Line", - "Aspose.Pdf.BoundsOutOfRangeException" + "Aspose.Pdf.Drawing.GraphInfo" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "add-non-overlapping-rectangles-to-pdf-graph": { - "title": "Add Non-Overlapping Rectangles to a PDF Graph", - "filename": "add-non-overlapping-rectangles-to-pdf-graph.cs", - "description": "Demonstrates placing multiple rectangles of varying sizes on a PDF graph while preventing overlap using bounds checking.", + "create-dimension-line-in-pdf-graph": { + "title": "Create Dimension Line in PDF Graph", + "filename": "create-dimension-line-in-pdf-graph.cs", + "description": "Shows how to use Aspose.Pdf.Drawing.Graph to add a dimension‑specific line shape to a PDF document and style it with GraphInfo.", "tags": [ - "pdf", "graph", - "rectangle", - "overlap", - "aspose-pdf" + "line", + "pdf", + "aspose", + "drawing" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Graph", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Drawing.Line", "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Rectangle.IsIntersect", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Text.TextFragment" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "create-graph-with-rectangle-and-ellipse": { - "title": "Create Graph with Rectangle and Ellipse Shapes in PDF", - "filename": "create-graph-with-rectangle-and-ellipse.cs", - "description": "The example demonstrates how to create a Graph object, add rectangle and ellipse shapes with distinct fill and border styles, and embed the graph into a PDF page using Aspose.Pdf.", + "create-dimension-specific-rectangle-pdf": { + "title": "Create Dimension-Specific Rectangle in PDF", + "filename": "create-dimension-specific-rectangle-pdf.cs", + "description": "Demonstrates how to add a rectangle with explicit dimensions to a PDF using Aspose.Pdf's Graph container and set its visual style.", "tags": [ - "graph", - "shapes", + "pdf", "rectangle", - "ellipse", - "pdf" + "graph", + "drawing", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.Ellipse", "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Drawing.Color" + "Aspose.Pdf.Color" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "export-pdf-to-memorystream-and-save-to-file": { - "title": "Export PDF to MemoryStream and Save to File", - "filename": "export-pdf-to-memorystream-and-save-to-file.cs", - "description": "Demonstrates loading a PDF with Aspose.Pdf, saving it into a MemoryStream, and then writing the stream contents to a new file on disk.", - "tags": [ - "pdf", - "memorystream", - "file-output", - "aspose-pdf", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T08:49:46Z", + "create-dimension-specific-rectangle": { + "title": "Create Dimension Specific Rectangle", + "filename": "create-dimension-specific-rectangle.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "add-graph-with-shapes-to-pdf": { - "title": "Add Graph with Shapes to a PDF Page", - "filename": "add-graph-with-shapes-to-pdf.cs", - "description": "Loads an existing PDF, adds a new page, creates a Graph container, draws a rectangle, ellipse, and line, and saves the modified document.", + "create-ellipse-pdf-graph": { + "title": "Create Ellipse Pdf Graph", + "filename": "create-ellipse-pdf-graph.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-graph-with-rectangle-and-ellipse": { + "title": "Create Graph with Rectangle and Ellipse Shapes in PDF", + "filename": "create-graph-with-rectangle-and-ellipse.cs", + "description": "The example demonstrates how to create a Graph object, add rectangle and ellipse shapes with distinct fill and border styles, and embed the graph into a PDF page using Aspose.Pdf.", "tags": [ - "pdf", "graph", "shapes", - "aspose-pdf", - "csharp" + "rectangle", + "ellipse", + "pdf" ], "apis_used": [ "Aspose.Pdf.Document", @@ -976,54 +1245,64 @@ "Aspose.Pdf.Drawing.Graph", "Aspose.Pdf.Drawing.Rectangle", "Aspose.Pdf.Drawing.Ellipse", - "Aspose.Pdf.Drawing.Line", - "Aspose.Pdf.Drawing.GraphInfo" + "Aspose.Pdf.Drawing.GraphInfo", + "Aspose.Pdf.Drawing.Color" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "add-graph-rectangle-watermark-to-pdf": { - "title": "Add Graph Rectangle Watermark to PDF Pages", - "filename": "add-graph-rectangle-watermark-to-pdf.cs", - "description": "The example loads each PDF from an input folder, creates a Graph that matches the page size, adds a light‑gray rectangle as a watermark, and saves the modified documents to an output folder.", + "create-horizontal-bar-chart-pdf": { + "title": "Create Horizontal Bar Chart in PDF with Aspose.Pdf", + "filename": "create-horizontal-bar-chart-pdf.cs", + "description": "Demonstrates how to generate a simple horizontal bar chart in a PDF by adding rectangle shapes to an Aspose.Pdf Graph within a loop.", "tags": [ "pdf", - "watermark", + "barchart", "graph", - "batch", + "rectangle", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Graph", "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.GraphInfo", + "Aspose.Pdf.GraphInfo", + "Aspose.Pdf.Color.FromRgb", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "add-gradient-ellipse-graphs-to-pdfs": { - "title": "Add Gradient Ellipse Graphs to PDFs in Parallel", - "filename": "add-gradient-ellipse-graphs-to-pdfs.cs", - "description": "Demonstrates processing multiple PDF files concurrently and adding a graph with gradient‑filled ellipses to each page using Aspose.Pdf.", + "create-layered-shapes-in-pdf": { + "title": "Create Layered Shapes In Pdf", + "filename": "create-layered-shapes-in-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-multi-page-pdf-with-full-page-graphs": { + "title": "Create Multi-Page PDF with Full-Page Graphs", + "filename": "create-multi-page-pdf-with-full-page-graphs.cs", + "description": "Demonstrates how to generate a PDF containing multiple pages, each page holding a Graph that exactly matches the page's dimensions.", "tags": [ "pdf", - "parallel", "graph", - "ellipse", - "gradient" + "multipage", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Ellipse", "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Color.FromRgb", + "Aspose.Pdf.Color", "Aspose.Pdf.Page.Paragraphs.Add", "Aspose.Pdf.Document.Save" ], @@ -1031,111 +1310,151 @@ "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "configure-graph-border-add-rectangle": { - "title": "Configure Graph Border and Add Rectangle with Custom Style", - "filename": "configure-graph-border-add-rectangle.cs", - "description": "Demonstrates how to set a Graph's line width and dash pattern, which are inherited by shapes, and then add a rectangle with custom border and fill colors.", + "create-new-pdf-single-page": { + "title": "Create a New PDF with a Single Page", + "filename": "create-new-pdf-single-page.cs", + "description": "Demonstrates how to create an empty PDF document, add a default‑size page, and save it using Aspose.Pdf.", "tags": [ - "graph", - "border", - "rectangle", - "dash-style", + "pdf", + "creation", + "documentfactory", + "pages", "aspose-pdf" ], "apis_used": [ + "Aspose.Pdf.DocumentFactory", "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Color" + "Aspose.Pdf.DocumentFactory.CreateDocument", + "Aspose.Pdf.Document.Pages.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "build-reusable-graph-for-pdf-pages": { - "title": "Create Reusable Graph with Shapes for PDF Pages", - "filename": "build-reusable-graph-for-pdf-pages.cs", - "description": "Demonstrates how to build a predefined Graph containing a rectangle, ellipse, and line, and add it to any PDF page using Aspose.Pdf.", + "create-pdf-collage-multiple-graphs": { + "title": "Create Pdf Collage Multiple Graphs", + "filename": "create-pdf-collage-multiple-graphs.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-pdf-graph-border-colors": { + "title": "Create PDF Graph with Shape Border Colors from Lookup Table", + "filename": "create-pdf-graph-border-colors.cs", + "description": "Demonstrates generating a PDF that contains a graph where each shape's border color is assigned using a lookup dictionary.", "tags": [ + "pdf", "graph", "shapes", - "pdf", - "aspose", - "csharp" + "border-color", + "lookup-table" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Graph", + "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Drawing.GraphInfo", "Aspose.Pdf.Drawing.Rectangle", "Aspose.Pdf.Drawing.Ellipse", - "Aspose.Pdf.Drawing.Line", - "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Color" + "Aspose.Pdf.Drawing.Line" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "serialize-pdf-graph-to-byte-array": { - "title": "Serialize PDF with Graph to Byte Array", - "filename": "serialize-pdf-graph-to-byte-array.cs", - "description": "Creates a PDF containing a simple line graph using Aspose.Pdf and serializes the document to a byte array for network transmission.", + "create-pdf-graph-filled-outline-shapes": { + "title": "Create PDF Graph with Filled and Outline Shapes", + "filename": "create-pdf-graph-filled-outline-shapes.cs", + "description": "Demonstrates adding a Graph to a PDF and drawing shapes with both fill and stroke, illustrating stroke‑only rendering for outlines.", "tags": [ "pdf", "graph", - "serialization", - "byte-array", - "aspose-pdf" + "shapes", + "stroke", + "fill" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Drawing.Ellipse", "Aspose.Pdf.Drawing.Line", - "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Drawing.GraphInfo" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "toggle-graph-bounds-check-mode": { - "title": "Toggle Graph Bounds Check Mode in PDF", - "filename": "toggle-graph-bounds-check-mode.cs", - "description": "Demonstrates how to switch the Graph.BoundsCheckMode between throwing an exception for out‑of‑bounds shapes and ignoring bounds, using Aspose.Pdf.", + "create-pdf-graph-styled-text": { + "title": "Create PDF with Graph Shapes and Styled Text", + "filename": "create-pdf-graph-styled-text.cs", + "description": "Shows how to add a Graph containing rectangle, ellipse, and line shapes to a PDF and place TextFragment objects with different fonts and sizes inside each shape.", "tags": [ "graph", - "bounds", - "pdf", - "aspose", - "shapes" + "shapes", + "text", + "fonts", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Graph.Shapes.UpdateBoundsCheckMode", - "Aspose.Pdf.Drawing.Rectangle", "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Color" + "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Drawing.Ellipse", + "Aspose.Pdf.Drawing.Line", + "Aspose.Pdf.Text.TextBuilder", + "Aspose.Pdf.Text.TextFragment" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "create-bar-graph-with-legend": { - "title": "Create Bar Graph with Legend in PDF", - "filename": "create-bar-graph-with-legend.cs", - "description": "Shows how to generate a PDF report containing a simple bar graph using colored rectangles and a legend with Aspose.Pdf.", + "create-pdf-graph-with-border-colors": { + "title": "Create Pdf Graph With Border Colors", + "filename": "create-pdf-graph-with-border-colors.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-pdf-pages-with-proportional-graph-shapes": { + "title": "Create Pdf Pages With Proportional Graph Shapes", + "filename": "create-pdf-pages-with-proportional-graph-shapes.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-pdf-with-filled-arc-graph": { + "title": "Create Pdf With Filled Arc Graph", + "filename": "create-pdf-with-filled-arc-graph.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-pdf-with-graph": { + "title": "Create PDF with Graph in Memory", + "filename": "create-pdf-with-graph.cs", + "description": "Demonstrates generating a PDF document in memory, adding a simple graph (a rectangle) using Aspose.Pdf's Graph API, and returning the PDF as a byte array.", "tags": [ "pdf", "graph", - "legend", - "bars", - "aspose-pdf" + "memorystream", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", @@ -1143,32 +1462,41 @@ "Aspose.Pdf.Drawing.Graph", "Aspose.Pdf.Drawing.Rectangle", "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.Position" + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "add-rounded-rectangle-with-fill": { - "title": "Add Rounded Rectangle with Fill to PDF", - "filename": "add-rounded-rectangle-with-fill.cs", - "description": "Shows how to draw a rectangle with rounded corners, set a corner radius, and apply a solid fill using Aspose.Pdf's Graph and Rectangle classes.", + "create-pdf-with-single-default-page": { + "title": "Create Pdf With Single Default Page", + "filename": "create-pdf-with-single-default-page.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-proportional-graphs-pdf": { + "title": "Create Proportional Graphs on PDF Pages", + "filename": "create-proportional-graphs-pdf.cs", + "description": "Demonstrates how to generate a PDF where each page contains a graph with shapes sized proportionally to the page dimensions using Aspose.Pdf.", "tags": [ - "rounded-rectangle", - "graph", - "fill", "pdf", - "Aspose.Pdf" + "graph", + "shapes", + "aspose", + "proportional" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Graph", "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Color", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Drawing.Ellipse", + "Aspose.Pdf.Drawing.Line", + "Aspose.Pdf.Drawing.GraphInfo" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:49:46Z", @@ -1198,267 +1526,391 @@ "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "combine-multiple-graphs-pdf-collage": { - "title": "Combine Multiple Graphs on a Single PDF Page", - "filename": "combine-multiple-graphs-pdf-collage.cs", - "description": "Shows how to create several Aspose.Pdf Graph objects (rectangle, ellipse, line) and position them at different coordinates on one PDF page to form a collage.", + "create-sample-graph-pdf": { + "title": "Create Sample Graph Pdf", + "filename": "create-sample-graph-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-semi-transparent-ellipse-fill": { + "title": "Create Semi-Transparent Ellipse Fill in PDF", + "filename": "create-semi-transparent-ellipse-fill.cs", + "description": "Demonstrates adding a graph with an ellipse to a PDF and setting its fill color using an alpha channel to achieve semi-transparency.", "tags": [ - "graphs", + "ellipse", + "transparent", + "graph", "pdf", - "collage", - "aspose", - "positioning" + "color" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Rectangle", "Aspose.Pdf.Drawing.Ellipse", - "Aspose.Pdf.Drawing.Line", + "Aspose.Pdf.Drawing.Color", "Aspose.Pdf.Drawing.GraphInfo" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "add-semi-transparent-rectangle": { - "title": "Add Semi-Transparent Rectangle Using Alpha Channel", - "filename": "add-semi-transparent-rectangle.cs", - "description": "Creates a PDF containing a rectangle filled with a semi‑transparent color to demonstrate alpha‑channel usage (simulated linear gradient).", + "create-semi-transparent-shape-graph": { + "title": "Create Semi Transparent Shape Graph", + "filename": "create-semi-transparent-shape-graph.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-star-shape-pdf": { + "title": "Create Star Shape Pdf", + "filename": "create-star-shape-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "deserialize-pdf-add-graph-label": { + "title": "Deserialize Pdf Add Graph Label", + "filename": "deserialize-pdf-add-graph-label.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "draw-straight-line-in-pdf-graph": { + "title": "Draw a Straight Line in a PDF Graph", + "filename": "draw-straight-line-in-pdf-graph.cs", + "description": "Demonstrates how to create a PDF document with Aspose.Pdf, add a Graph container, draw a line between two points, configure its color and thickness, and save the result.", "tags": [ - "alpha", - "gradient", - "rectangle", "pdf", - "aspose" + "graph", + "line", + "drawing", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Drawing.Line", "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Color" + "Aspose.Pdf.Drawing.Color", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "measure-ellipse-bounding-box": { - "title": "Measure Ellipse Bounding Box with Gradient Fill", - "filename": "measure-ellipse-bounding-box.cs", - "description": "Shows how to draw an ellipse with a gradient (or solid) fill using Aspose.Pdf, compute its bounding box coordinates programmatically, and save the result to a PDF file.", + "draw-straight-line-with-custom-cap": { + "title": "Draw Straight Line With Custom Cap", + "filename": "draw-straight-line-with-custom-cap.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "ellipse-with-transparent-fill-and-centered-text": { + "title": "Add Ellipse with Transparent Fill and Centered Text to PDF", + "filename": "ellipse-with-transparent-fill-and-centered-text.cs", + "description": "Demonstrates how to draw an ellipse with a semi‑transparent fill and a thick border, then place a centered TextFragment inside it using Aspose.Pdf.", "tags": [ "ellipse", - "gradient", - "bounding-box", - "pdf", - "Aspose.Pdf" + "transparent", + "text", + "graph", + "pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Drawing.Graph", "Aspose.Pdf.Drawing.Ellipse", "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Color" + "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.TextBuilder" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "create-multi-page-pdf-with-full-page-graphs": { - "title": "Create Multi-Page PDF with Full-Page Graphs", - "filename": "create-multi-page-pdf-with-full-page-graphs.cs", - "description": "Demonstrates how to generate a PDF containing multiple pages, each page holding a Graph that exactly matches the page's dimensions.", + "enable-bounds-check-mode-graph": { + "title": "Enable Bounds Check Mode for Graph Shape Placement", + "filename": "enable-bounds-check-mode-graph.cs", + "description": "Shows how to activate BoundsCheckMode.ThrowExceptionIfDoesNotFit on a Graph to ensure shapes fit within its area, handling out‑of‑bounds shapes with exceptions.", "tags": [ - "pdf", "graph", - "multipage", - "aspose", - "csharp" + "bounds-check", + "shape", + "exception", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Drawing.BorderInfo", + "Aspose.Pdf.Drawing.Rectangle", "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Color", - "Aspose.Pdf.Page.Paragraphs.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Drawing.BoundsCheckMode" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "configure-shape-fill-colors-json-pdf-graph": { - "title": "Configure Shape Fill Colors via JSON and Create PDF Graph", - "filename": "configure-shape-fill-colors-json-pdf-graph.cs", - "description": "The example reads a JSON configuration file that maps shape types to color names, converts those names to Aspose.Pdf.Color, and applies the colors while building a Graph with rectangles, ellipses, and lines in a PDF document.", + "enable-boundscheckmode-validate-graph-shape": { + "title": "Enable Boundscheckmode Validate Graph Shape", + "filename": "enable-boundscheckmode-validate-graph-shape.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "export-graph-to-pdf": { + "title": "Export Graph to PDF", + "filename": "export-graph-to-pdf.cs", + "description": "Creates a PDF document, adds a Graph with a rectangle shape and a title, and saves the result as a PDF file.", "tags": [ - "json", - "pdf", "graph", - "shapes", - "configuration" + "pdf", + "export", + "aspose", + "drawing" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Graph", "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.Ellipse", - "Aspose.Pdf.Drawing.Line", "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Color" + "Aspose.Pdf.Text.TextFragment" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "add-dashed-rectangle-to-graph": { - "title": "Add Dashed Rectangle to Graph in PDF", - "filename": "add-dashed-rectangle-to-graph.cs", - "description": "Creates a PDF document, adds a Graph container, draws a rectangle with a 2‑point black dashed border, and saves the file.", + "export-pdf-to-memory-stream-and-save": { + "title": "Export Pdf To Memory Stream And Save", + "filename": "export-pdf-to-memory-stream-and-save.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "export-pdf-to-memorystream-and-save-to-file": { + "title": "Export PDF to MemoryStream and Save to File", + "filename": "export-pdf-to-memorystream-and-save-to-file.cs", + "description": "Demonstrates loading a PDF with Aspose.Pdf, saving it into a MemoryStream, and then writing the stream contents to a new file on disk.", "tags": [ "pdf", - "graph", - "rectangle", - "border", - "dash" + "memorystream", + "file-output", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.GraphInfo" + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "test-out-of-bounds-rectangle-throws-exception": { - "title": "Test Out‑of‑Bounds Rectangle Throws Exception", - "filename": "test-out-of-bounds-rectangle-throws-exception.cs", - "description": "Demonstrates configuring a Graph for bounds checking and writing an NUnit test that verifies adding a rectangle outside the page limits raises a BoundsOutOfRangeException.", + "graph-filled-and-outline-shapes": { + "title": "Graph Filled And Outline Shapes", + "filename": "graph-filled-and-outline-shapes.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "handle-shape-bounds-exceptions": { + "title": "Handle Shape Bounds Exceptions", + "filename": "handle-shape-bounds-exceptions.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "insert-centered-textfragment-rectangle": { + "title": "Insert Centered TextFragment Inside a Rectangle", + "filename": "insert-centered-textfragment-rectangle.cs", + "description": "Shows how to draw a rectangle on a PDF page using Aspose.Pdf Graph and place a TextFragment centered within that rectangle.", "tags": [ + "pdf", + "rectangle", + "textfragment", "graph", - "bounds", - "unit-test", - "exception", - "Aspose.Pdf" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Graph.Shapes.UpdateBoundsCheckMode", - "Aspose.Pdf.Drawing.BoundsCheckMode", "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.BoundsOutOfRangeException" + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.TextBuilder" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "batch-insert-company-logo-graph-into-pdfs": { - "title": "Batch Insert Company Logo Graph into PDFs", - "filename": "batch-insert-company-logo-graph-into-pdfs.cs", - "description": "Shows how to process all PDF files in a folder, load each with Aspose.Pdf, add a predefined Graph containing a rectangle logo (and an optional line) to every page, and save the updated documents.", + "insert-dashed-polyline-annotation": { + "title": "Insert Dashed Polyline Annotation into PDF", + "filename": "insert-dashed-polyline-annotation.cs", + "description": "Demonstrates how to add a polyline annotation with multiple vertices and a custom dashed border to a PDF page using Aspose.Pdf.", "tags": [ - "pdf", - "graph", - "batch-processing", - "logo", - "aspose-pdf" + "polyline", + "annotation", + "border", + "dash", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.Line", - "Aspose.Pdf.GraphInfo", - "Aspose.Pdf.Color" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Point", + "Aspose.Pdf.Annotations.PolylineAnnotation", + "Aspose.Pdf.Annotations.Border", + "Aspose.Pdf.Annotations.Dash" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "create-pdf-with-graph": { - "title": "Create PDF with Graph in Memory", - "filename": "create-pdf-with-graph.cs", - "description": "Demonstrates generating a PDF document in memory, adding a simple graph (a rectangle) using Aspose.Pdf's Graph API, and returning the PDF as a byte array.", + "insert-graph-into-pdf-footer": { + "title": "Insert Graph into PDF Footer", + "filename": "insert-graph-into-pdf-footer.cs", + "description": "Demonstrates how to create a Graph object, style it, and place it in the page footer with custom margins using Aspose.Pdf.", "tags": [ - "pdf", "graph", - "memorystream", - "aspose", - "csharp" + "footer", + "pdf", + "aspose-pdf", + "margin" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.HeaderFooter", + "Aspose.Pdf.MarginInfo", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Rectangle", "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Drawing.Rectangle" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "add-graph-to-pdf": { - "title": "Add Graph to PDF Document", - "filename": "add-graph-to-pdf.cs", - "description": "Shows how to load a PDF, create a Graph with shapes such as a rectangle and line, place it on a page, and save the updated file using Aspose.Pdf.", - "tags": [ - "pdf", - "graph", - "aspose-pdf", - "shapes", - "csharp" + "insert-rotate-scaled-image-pdf": { + "title": "Insert Rotate Scaled Image Pdf", + "filename": "insert-rotate-scaled-image-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "insert-rounded-rectangle-into-pdf-graph": { + "title": "Insert Rounded Rectangle Into Pdf Graph", + "filename": "insert-rounded-rectangle-into-pdf-graph.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "insert-scaled-rotated-image-into-pdf": { + "title": "Insert Scaled and Rotated Image into PDF", + "filename": "insert-scaled-rotated-image-into-pdf.cs", + "description": "Shows how to load an external image, scale it proportionally to a target width, rotate it by a given angle, and place it on a PDF page using a Graph container with Aspose.Pdf.", + "tags": [ + "pdf", + "image", + "scaling", + "rotation", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.Line", - "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Color" + "Aspose.Pdf.Drawing.ImageStamp", + "Aspose.Pdf.Page.Resources.Images.Add", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "create-proportional-graphs-pdf": { - "title": "Create Proportional Graphs on PDF Pages", - "filename": "create-proportional-graphs-pdf.cs", - "description": "Demonstrates how to generate a PDF where each page contains a graph with shapes sized proportionally to the page dimensions using Aspose.Pdf.", + "iterate-graph-shapes-bounding-boxes": { + "title": "Iterate Graph Shapes and Log Bounding Boxes", + "filename": "iterate-graph-shapes-bounding-boxes.cs", + "description": "Demonstrates creating a PDF graph, adding rectangle and ellipse shapes, and iterating through all shapes to log their bounding box coordinates.", "tags": [ - "pdf", "graph", "shapes", - "aspose", - "proportional" + "bounding-box", + "Aspose.Pdf", + "iteration" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Graph", + "Aspose.Pdf.Drawing.Graph", "Aspose.Pdf.Drawing.Rectangle", "Aspose.Pdf.Drawing.Ellipse", - "Aspose.Pdf.Drawing.Line", - "Aspose.Pdf.Drawing.GraphInfo" + "Aspose.Pdf.Drawing.GraphInfo", + "Aspose.Pdf.Drawing.Shape" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, + "log-graph-shapes-bounding-boxes": { + "title": "Log Graph Shapes Bounding Boxes", + "filename": "log-graph-shapes-bounding-boxes.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "map-shape-colors-to-pdf-graph": { + "title": "Map Shape Colors To Pdf Graph", + "filename": "map-shape-colors-to-pdf-graph.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "map-shape-identifiers-to-fill-colors": { "title": "Map Shape Identifiers to Fill Colors in PDF Graph", "filename": "map-shape-identifiers-to-fill-colors.cs", @@ -1482,52 +1934,123 @@ "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "ellipse-with-transparent-fill-and-centered-text": { - "title": "Add Ellipse with Transparent Fill and Centered Text to PDF", - "filename": "ellipse-with-transparent-fill-and-centered-text.cs", - "description": "Demonstrates how to draw an ellipse with a semi‑transparent fill and a thick border, then place a centered TextFragment inside it using Aspose.Pdf.", + "measure-ellipse-bounding-box": { + "title": "Measure Ellipse Bounding Box with Gradient Fill", + "filename": "measure-ellipse-bounding-box.cs", + "description": "Shows how to draw an ellipse with a gradient (or solid) fill using Aspose.Pdf, compute its bounding box coordinates programmatically, and save the result to a PDF file.", "tags": [ "ellipse", - "transparent", - "text", - "graph", - "pdf" + "gradient", + "bounding-box", + "pdf", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.Drawing.Graph", "Aspose.Pdf.Drawing.Ellipse", "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextBuilder" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Color" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "create-pdf-graph-styled-text": { - "title": "Create PDF with Graph Shapes and Styled Text", - "filename": "create-pdf-graph-styled-text.cs", - "description": "Shows how to add a Graph containing rectangle, ellipse, and line shapes to a PDF and place TextFragment objects with different fonts and sizes inside each shape.", + "non-uniform-graph-scaling": { + "title": "Non Uniform Graph Scaling", + "filename": "non-uniform-graph-scaling.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "non-uniform-scale-graph": { + "title": "Non‑Uniformly Scale Graph in PDF", + "filename": "non-uniform-scale-graph.cs", + "description": "Shows how to create a Graph with a rectangle shape, apply different scaling rates on the X and Y axes to change its aspect ratio, and save the result as a PDF.", "tags": [ "graph", - "shapes", - "text", - "fonts", - "Aspose.Pdf" + "scaling", + "pdf", + "aspose", + "non-uniform" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Drawing.GraphInfo", + "Aspose.Pdf.Color" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:49:46Z", + "status": "verified" + }, + "out-of-bounds-rectangle-throws-exception": { + "title": "Out Of Bounds Rectangle Throws Exception", + "filename": "out-of-bounds-rectangle-throws-exception.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "parallel-gradient-ellipse-pdf": { + "title": "Parallel Gradient Ellipse Pdf", + "filename": "parallel-gradient-ellipse-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "pdf-report-with-colored-bar-graph": { + "title": "Pdf Report With Colored Bar Graph", + "filename": "pdf-report-with-colored-bar-graph.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "place-graph-left-margin-offset": { + "title": "Place Graph Left Margin Offset", + "filename": "place-graph-left-margin-offset.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "rotate-graph-in-pdf": { + "title": "Rotate a Graph in a PDF", + "filename": "rotate-graph-in-pdf.cs", + "description": "Demonstrates how to create a Graph object, set its rotation angle in degrees, add a shape, and save the result to a PDF using Aspose.Pdf.", + "tags": [ + "graph", + "rotation", + "pdf", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", "Aspose.Pdf.Drawing.GraphInfo", "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.Ellipse", - "Aspose.Pdf.Drawing.Line", - "Aspose.Pdf.Text.TextBuilder", - "Aspose.Pdf.Text.TextFragment" + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, @@ -1555,147 +2078,194 @@ "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "add-rectangle-with-shadow-to-pdf": { - "title": "Add Rectangle with Shadow to PDF", - "filename": "add-rectangle-with-shadow-to-pdf.cs", - "description": "Shows how to draw a rectangle with a semi‑transparent offset shadow in a PDF using Aspose.Pdf's Graph and Rectangle objects.", + "semi-transparent-ellipse-pdf": { + "title": "Semi Transparent Ellipse Pdf", + "filename": "semi-transparent-ellipse-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "serialize-pdf-graph-to-byte-array": { + "title": "Serialize PDF with Graph to Byte Array", + "filename": "serialize-pdf-graph-to-byte-array.cs", + "description": "Creates a PDF containing a simple line graph using Aspose.Pdf and serializes the document to a byte array for network transmission.", "tags": [ "pdf", - "rectangle", - "shadow", "graph", - "drawing" + "serialization", + "byte-array", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Drawing.Line", "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Color" + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "create-pdf-graph-border-colors": { - "title": "Create PDF Graph with Shape Border Colors from Lookup Table", - "filename": "create-pdf-graph-border-colors.cs", - "description": "Demonstrates generating a PDF that contains a graph where each shape's border color is assigned using a lookup dictionary.", + "serialize-pdf-to-byte-array": { + "title": "Serialize Pdf To Byte Array", + "filename": "serialize-pdf-to-byte-array.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-graph-dimensions-pdf": { + "title": "Set Graph Dimensions in PDF", + "filename": "set-graph-dimensions-pdf.cs", + "description": "Demonstrates how to create a Graph with specific width and height, add a rectangle shape that fills the graph area, and save the result as a PDF using Aspose.Pdf.", "tags": [ - "pdf", "graph", - "shapes", - "border-color", - "lookup-table" + "pdf", + "dimensions", + "aspose-pdf", + "rectangle" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.GraphInfo", "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.Ellipse", - "Aspose.Pdf.Drawing.Line" + "Aspose.Pdf.Drawing.GraphInfo" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "insert-graph-into-pdf-footer": { - "title": "Insert Graph into PDF Footer", - "filename": "insert-graph-into-pdf-footer.cs", - "description": "Demonstrates how to create a Graph object, style it, and place it in the page footer with custom margins using Aspose.Pdf.", + "set-rectangle-fill-opacity-50-argb": { + "title": "Set Rectangle Fill Opacity 50 Argb", + "filename": "set-rectangle-fill-opacity-50-argb.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "skew-graph-x-axis": { + "title": "Skew Graph on X Axis in PDF", + "filename": "skew-graph-x-axis.cs", + "description": "Demonstrates applying a skew transformation to a Graph container on the X‑axis and adding a rectangle shape to visualize the effect in a PDF document using Aspose.Pdf.", "tags": [ "graph", - "footer", + "skew", "pdf", - "aspose-pdf", - "margin" + "aspose", + "transformation" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.HeaderFooter", - "Aspose.Pdf.MarginInfo", "Aspose.Pdf.Drawing.Graph", "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Drawing.Rectangle" + "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Drawing.Color" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "create-horizontal-bar-chart-pdf": { - "title": "Create Horizontal Bar Chart in PDF with Aspose.Pdf", - "filename": "create-horizontal-bar-chart-pdf.cs", - "description": "Demonstrates how to generate a simple horizontal bar chart in a PDF by adding rectangle shapes to an Aspose.Pdf Graph within a loop.", + "test-out-of-bounds-rectangle-throws-exception": { + "title": "Test Out‑of‑Bounds Rectangle Throws Exception", + "filename": "test-out-of-bounds-rectangle-throws-exception.cs", + "description": "Demonstrates configuring a Graph for bounds checking and writing an NUnit test that verifies adding a rectangle outside the page limits raises a BoundsOutOfRangeException.", "tags": [ - "pdf", - "barchart", "graph", - "rectangle", - "aspose-pdf" + "bounds", + "unit-test", + "exception", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Graph", + "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Drawing.Graph.Shapes.UpdateBoundsCheckMode", + "Aspose.Pdf.Drawing.BoundsCheckMode", "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.GraphInfo", - "Aspose.Pdf.Color.FromRgb", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Drawing.BoundsOutOfRangeException" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "create-pdf-graph-filled-outline-shapes": { - "title": "Create PDF Graph with Filled and Outline Shapes", - "filename": "create-pdf-graph-filled-outline-shapes.cs", - "description": "Demonstrates adding a Graph to a PDF and drawing shapes with both fill and stroke, illustrating stroke‑only rendering for outlines.", + "toggle-graph-bounds-check-mode": { + "title": "Toggle Graph Bounds Check Mode in PDF", + "filename": "toggle-graph-bounds-check-mode.cs", + "description": "Demonstrates how to switch the Graph.BoundsCheckMode between throwing an exception for out‑of‑bounds shapes and ignoring bounds, using Aspose.Pdf.", "tags": [ - "pdf", "graph", - "shapes", - "stroke", - "fill" + "bounds", + "pdf", + "aspose", + "shapes" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Drawing.Graph.Shapes.UpdateBoundsCheckMode", "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.Ellipse", - "Aspose.Pdf.Drawing.Line", - "Aspose.Pdf.Drawing.GraphInfo" + "Aspose.Pdf.Drawing.GraphInfo", + "Aspose.Pdf.Color" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" }, - "export-graph-to-pdf": { - "title": "Export Graph to PDF", - "filename": "export-graph-to-pdf.cs", - "description": "Creates a PDF document, adds a Graph with a rectangle shape and a title, and saves the result as a PDF file.", + "toggle-graph-boundscheckmode": { + "title": "Toggle Graph Boundscheckmode", + "filename": "toggle-graph-boundscheckmode.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "translate-graph-position-in-pdf": { + "title": "Translate Graph Position Horizontally and Vertically", + "filename": "translate-graph-position-in-pdf.cs", + "description": "Demonstrates creating a Graph with a rectangle shape in a PDF, adding it to a page, and moving the entire graph by adjusting its Left and Top properties.", "tags": [ "graph", + "translation", "pdf", - "export", - "aspose", - "drawing" + "aspose-pdf", + "position" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Graph", + "Aspose.Pdf.Drawing.Graph", "Aspose.Pdf.Drawing.Rectangle", "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Text.TextFragment" + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:49:46Z", "status": "verified" + }, + "translate-graph-rectangle": { + "title": "Translate Graph Rectangle", + "filename": "translate-graph-rectangle.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" } } } \ No newline at end of file diff --git a/working-with-images/AGENTS.md b/working-with-images/AGENTS.md index 8b043b5fe..f6d7cb603 100644 --- a/working-with-images/AGENTS.md +++ b/working-with-images/AGENTS.md @@ -8,7 +8,7 @@ parent: ../agents.md # AGENTS - working-with-images -> **Working with images** in PDF using C# / .NET -- **72** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. +> **Working with images** in PDF using C# / .NET -- **105** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. ## Persona @@ -23,22 +23,22 @@ See the root [agents.md](../agents.md) for repository-wide conventions and bound ## Required Namespaces -- `using Aspose.Pdf;` (72/72 files) ← category-specific -- `using Aspose.Pdf.Devices;` (10/72 files) -- `using Aspose.Pdf.Facades;` (6/72 files) -- `using Aspose.Pdf.Vector;` (6/72 files) -- `using Aspose.Pdf.Text;` (5/72 files) -- `using Aspose.Pdf.Drawing;` (4/72 files) -- `using Aspose.Pdf.Annotations;` (3/72 files) -- `using Aspose.Pdf.Optimization;` (2/72 files) -- `using System;` (72/72 files) -- `using System.IO;` (72/72 files) -- `using System.Collections.Generic;` (5/72 files) -- `using System.Text.Json;` (3/72 files) -- `using System.Drawing.Imaging;` (2/72 files) -- `using System.Drawing;` (1/72 files) -- `using System.Linq;` (1/72 files) -- `using System.Security.Cryptography;` (1/72 files) +- `using Aspose.Pdf;` (72/105 files) ← category-specific +- `using Aspose.Pdf.Devices;` (10/105 files) +- `using Aspose.Pdf.Facades;` (6/105 files) +- `using Aspose.Pdf.Vector;` (6/105 files) +- `using Aspose.Pdf.Text;` (5/105 files) +- `using Aspose.Pdf.Drawing;` (4/105 files) +- `using Aspose.Pdf.Annotations;` (3/105 files) +- `using Aspose.Pdf.Optimization;` (2/105 files) +- `using System;` (72/105 files) +- `using System.IO;` (72/105 files) +- `using System.Collections.Generic;` (5/105 files) +- `using System.Text.Json;` (3/105 files) +- `using System.Drawing.Imaging;` (2/105 files) +- `using System.Drawing;` (1/105 files) +- `using System.Linq;` (1/105 files) +- `using System.Security.Cryptography;` (1/105 files) ## Common Code Pattern @@ -60,36 +60,36 @@ using (Document doc = new Document("input.pdf")) | [add-background-image-to-pdf-pages](./add-background-image-to-pdf-pages.cs) | Add Background Image to PDF Pages with Opacity | `Document`, `ImageStamp`, `AddStamp` | Shows how to place a semi‑transparent background image on every page of a PDF using Aspose.Pdf's ... | | [add-background-image-to-pdf](./add-background-image-to-pdf.cs) | Add Background Image to PDF Pages | `Document`, `Page`, `BackgroundArtifact` | Shows how to place a background image on each page of an existing PDF using Aspose.Pdf, configuri... | | [add-background-pattern-image-to-pdf-pages](./add-background-pattern-image-to-pdf-pages.cs) | Add Background Pattern Image to PDF Pages | `Document`, `Page`, `BackgroundArtifact` | Shows how to place a semi‑transparent background pattern image on each page of a PDF document usi... | +| [add-background-pattern-image-to-pdf-pages__v2](./add-background-pattern-image-to-pdf-pages__v2.cs) | Add background pattern image to pdf pages__v2 | | Add background pattern image to pdf pages__v2 | +| [add-background-texture-overlay-to-pdf-pages](./add-background-texture-overlay-to-pdf-pages.cs) | Add background texture overlay to pdf pages | | Add background texture overlay to pdf pages | | [add-centered-logo-to-first-pdf-page](./add-centered-logo-to-first-pdf-page.cs) | Add Centered Logo to First PDF Page | `Document`, `Page`, `ImageStamp` | Shows how to load a PDF, create an ImageStamp for a logo, center it on the first page, and save t... | +| [add-company-logo-to-first-page](./add-company-logo-to-first-page.cs) | Add company logo to first page | | Add company logo to first page | | [add-decorative-footer-image-to-pdf-pages](./add-decorative-footer-image-to-pdf-pages.cs) | Add Decorative Footer Image to PDF Pages | `Document`, `Page`, `Rectangle` | Shows how to insert a footer image on every page of a PDF, scaling it proportionally to the page ... | +| [add-decorative-header-image-to-pdf-pages](./add-decorative-header-image-to-pdf-pages.cs) | Add decorative header image to pdf pages | | Add decorative header image to pdf pages | | [add-diagonal-image-watermark-to-pdf](./add-diagonal-image-watermark-to-pdf.cs) | Add Diagonal Image Watermark to PDF | `Document`, `ImageStamp`, `AddStamp` | Shows how to load a PDF, create an ImageStamp with a 45° rotation and semi‑transparent opacity, a... | | [add-dicom-image-to-pdf-page](./add-dicom-image-to-pdf-page.cs) | Add DICOM Image to PDF Page using FileStream | `Document`, `Page`, `Image` | Shows how to load an existing PDF, read a DICOM image via a FileStream, and place the image on a ... | +| [add-dicom-image-to-pdf-using-filestream](./add-dicom-image-to-pdf-using-filestream.cs) | Add dicom image to pdf using filestream | | Add dicom image to pdf using filestream | | [add-header-image-to-pdf-pages](./add-header-image-to-pdf-pages.cs) | Add Header Image to Each PDF Page | `Document`, `Page`, `Rectangle` | Shows how to place a decorative header image at the top of every page in a PDF using Aspose.Pdf, ... | | [add-image-with-alt-text-to-pdf](./add-image-with-alt-text-to-pdf.cs) | Add Image with Alternative Text to PDF | `Document`, `Page`, `Rectangle` | Shows how to insert an image into an existing PDF document and assign alternative (alt) text for ... | | [add-png-logo-to-first-page](./add-png-logo-to-first-page.cs) | Add PNG Logo to First Page of PDF | `Document`, `Page`, `Rectangle` | Shows how to load a PDF with Aspose.Pdf, place a PNG logo at specific coordinates on the first pa... | | [add-raster-image-to-pdf-page](./add-raster-image-to-pdf-page.cs) | Add Raster Image to PDF Page | `Document`, `Image`, `Add` | Demonstrates how to insert a raster image (PNG, JPEG, etc.) onto a newly created PDF page using A... | +| [add-scalable-footer-image-to-pdf-pages](./add-scalable-footer-image-to-pdf-pages.cs) | Add scalable footer image to pdf pages | | Add scalable footer image to pdf pages | | [add-semi-transparent-image-watermark-to-pdf-pages](./add-semi-transparent-image-watermark-to-pdf-pages.cs) | Add Semi-Transparent Image Watermark to PDF Pages | `Document`, `Page`, `ImageStamp` | Demonstrates how to overlay a semi-transparent PNG watermark on every page of a PDF using Aspose.... | | [add-semi-transparent-overlay-image-to-pdf](./add-semi-transparent-overlay-image-to-pdf.cs) | Add Semi-Transparent Overlay Image to PDF | `Document`, `ImageStamp`, `Page` | Demonstrates how to apply a semi‑transparent PNG overlay to every page of a PDF using Aspose.Pdf,... | | [add-semi-transparent-overlay-to-pdf-pages](./add-semi-transparent-overlay-to-pdf-pages.cs) | Add Semi-Transparent Overlay to PDF Pages from Theme Config | `Document`, `Page`, `Graph` | Shows how to read a JSON theme file, parse a hex color with opacity, and draw a full‑page semi‑tr... | | [add-subtle-background-pattern-to-pdf-pages](./add-subtle-background-pattern-to-pdf-pages.cs) | Add Subtle Background Pattern to PDF Pages | `Document`, `Page`, `BackgroundArtifact` | Demonstrates how to apply a low‑opacity pattern image as a background artifact on every page of a... | | [add-texture-background-image-to-pdf-pages](./add-texture-background-image-to-pdf-pages.cs) | Add Texture Background Image to PDF Pages | `Document`, `Page`, `BackgroundArtifact` | Shows how to place a subtle texture image as a background on every page of a PDF using Aspose.Pdf... | | [add-transparent-png-overlay-to-pdf-pages](./add-transparent-png-overlay-to-pdf-pages.cs) | Add Transparent PNG Overlay to PDF Pages | `Document`, `Page`, `Rectangle` | Shows how to load a PDF, iterate through each page, and place a full‑page transparent PNG overlay... | +| [add-vector-graphics-collection-to-pdf-page](./add-vector-graphics-collection-to-pdf-page.cs) | Add vector graphics collection to pdf page | | Add vector graphics collection to pdf page | | [add-vector-graphics-to-pdf-page](./add-vector-graphics-to-pdf-page.cs) | Add Vector Graphics to a PDF Page | `Document`, `Page`, `Graph` | Shows how to create a new PDF page, build a Graph with rectangle, ellipse, and line shapes, and a... | +| [batch-extract-images-from-pdfs](./batch-extract-images-from-pdfs.cs) | Batch extract images from pdfs | | Batch extract images from pdfs | | [batch-extract-vector-graphics-from-pdfs](./batch-extract-vector-graphics-from-pdfs.cs) | Batch Extract Vector Graphics from PDFs | `Document`, `Page`, `SvgExtractor` | Loads all PDF files from a specified input folder, iterates through each page, and extracts any v... | | [collect-image-resolution-metadata](./collect-image-resolution-metadata.cs) | Collect Image Resolution Metadata from PDF Pages | `Document`, `Page`, `ImagePlacementAbsorber` | Loads a PDF, iterates through each page, finds all images using ImagePlacementAbsorber, and repor... | | [compress-large-images-in-pdf](./compress-large-images-in-pdf.cs) | Compress Large Images in PDF | `Document`, `OptimizationOptions`, `ImageCompressionOptions` | Shows how to load a PDF, configure image compression to replace images larger than 2 MB with comp... | -| [compress-pdf-images-using-optimization](./compress-pdf-images-using-optimization.cs) | Compress Images in PDF Using Aspose.Pdf Optimization | `Document`, `OptimizationOptions`, `ImageCompressionOptions` | The example loads a PDF, configures image compression options (quality and resolution), applies r... | -| [convert-even-pdf-pages-to-grayscale](./convert-even-pdf-pages-to-grayscale.cs) | Convert Even PDF Pages to Grayscale | `Document`, `PageCollection`, `Page` | Shows how to load a PDF, iterate through its pages, apply a grayscale conversion only to even-num... | -| [convert-pdf-images-to-monochrome](./convert-pdf-images-to-monochrome.cs) | Convert PDF Images to Monochrome | `Document`, `Page`, `XImageCollection` | Shows how to open a PDF, iterate through each page's images, and replace them with a black‑and‑wh... | -| [convert-pdf-pages-to-png-with-default-font](./convert-pdf-pages-to-png-with-default-font.cs) | Convert PDF Pages to PNG with Default Font | `Document`, `Page`, `RenderingOptions` | Shows how to load a PDF, set RenderingOptions.DefaultFontName to Arial, and convert each page to ... | -| [convert-pdf-pages-to-png-with-default-font__v2](./convert-pdf-pages-to-png-with-default-font__v2.cs) | Convert PDF Pages to PNG with Default Font Override | `Document`, `Resolution`, `PngDevice` | Demonstrates how to set RenderingOptions.DefaultFontName to "Times New Roman" and convert each pa... | -| [convert-pdf-to-multi-page-tiff-default-font](./convert-pdf-to-multi-page-tiff-default-font.cs) | Convert PDF to Multi-Page TIFF with Default Font | `Document`, `Resolution`, `TiffSettings` | Demonstrates converting an entire PDF document into a multi‑page TIFF file using Aspose.Pdf, sett... | -| [copy-vector-graphics-between-pdf-pages](./copy-vector-graphics-between-pdf-pages.cs) | Copy Vector Graphics Between PDF Pages | `Document`, `Page`, `GraphicsAbsorber` | Demonstrates how to extract vector graphic objects from a source PDF page using GraphicsAbsorber ... | -| [correct-pdf-image-orientation](./correct-pdf-image-orientation.cs) | Correct PDF Image Orientation Using EXIF Data | `Document`, `Page`, `XImageCollection` | Loads a PDF, reads each embedded image's EXIF orientation, rotates or flips the image accordingly... | -| ... | | | *and 42 more files* | +| ... | | | *and 75 more files* | ## Category Statistics -- Total examples: 72 +- Total examples: 105 ## Category-Specific Tips @@ -133,5 +133,5 @@ using (Document doc = new Document("input.pdf")) - Review code examples in this folder for working-with-images patterns -Updated: 2026-08-20 | Run: `20260820_001147_12d7b3` +Updated: 2026-09-10 | Run: `20260910_054408_87a7f4` diff --git a/working-with-images/README.md b/working-with-images/README.md new file mode 100644 index 000000000..3faab9bd6 --- /dev/null +++ b/working-with-images/README.md @@ -0,0 +1,124 @@ +# Working with images + +> **Working with images** in PDF using C# / .NET -- **105** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. + +- Category: `working-with-images` +- Examples: 105 +- NuGet: `Aspose.PDF 26.8.0` -- target `net10.0` + +## Examples + +- [`add-alternative-text-to-pdf-images.cs`](./add-alternative-text-to-pdf-images.cs) -- Add alternative text to pdf images +- [`add-background-image-to-pdf-pages.cs`](./add-background-image-to-pdf-pages.cs) -- Add background image to pdf pages +- [`add-background-image-to-pdf.cs`](./add-background-image-to-pdf.cs) -- Add background image to pdf +- [`add-background-pattern-image-to-pdf-pages.cs`](./add-background-pattern-image-to-pdf-pages.cs) -- Add background pattern image to pdf pages +- [`add-background-pattern-image-to-pdf-pages__v2.cs`](./add-background-pattern-image-to-pdf-pages__v2.cs) -- Add background pattern image to pdf pages v2 +- [`add-background-texture-overlay-to-pdf-pages.cs`](./add-background-texture-overlay-to-pdf-pages.cs) -- Add background texture overlay to pdf pages +- [`add-centered-logo-to-first-pdf-page.cs`](./add-centered-logo-to-first-pdf-page.cs) -- Add centered logo to first pdf page +- [`add-company-logo-to-first-page.cs`](./add-company-logo-to-first-page.cs) -- Add company logo to first page +- [`add-decorative-footer-image-to-pdf-pages.cs`](./add-decorative-footer-image-to-pdf-pages.cs) -- Add decorative footer image to pdf pages +- [`add-decorative-header-image-to-pdf-pages.cs`](./add-decorative-header-image-to-pdf-pages.cs) -- Add decorative header image to pdf pages +- [`add-diagonal-image-watermark-to-pdf.cs`](./add-diagonal-image-watermark-to-pdf.cs) -- Add diagonal image watermark to pdf +- [`add-dicom-image-to-pdf-page.cs`](./add-dicom-image-to-pdf-page.cs) -- Add dicom image to pdf page +- [`add-dicom-image-to-pdf-using-filestream.cs`](./add-dicom-image-to-pdf-using-filestream.cs) -- Add dicom image to pdf using filestream +- [`add-header-image-to-pdf-pages.cs`](./add-header-image-to-pdf-pages.cs) -- Add header image to pdf pages +- [`add-image-with-alt-text-to-pdf.cs`](./add-image-with-alt-text-to-pdf.cs) -- Add image with alt text to pdf +- [`add-png-logo-to-first-page.cs`](./add-png-logo-to-first-page.cs) -- Add png logo to first page +- [`add-raster-image-to-pdf-page.cs`](./add-raster-image-to-pdf-page.cs) -- Add raster image to pdf page +- [`add-scalable-footer-image-to-pdf-pages.cs`](./add-scalable-footer-image-to-pdf-pages.cs) -- Add scalable footer image to pdf pages +- [`add-semi-transparent-image-watermark-to-pdf-pages.cs`](./add-semi-transparent-image-watermark-to-pdf-pages.cs) -- Add semi transparent image watermark to pdf pages +- [`add-semi-transparent-overlay-image-to-pdf.cs`](./add-semi-transparent-overlay-image-to-pdf.cs) -- Add semi transparent overlay image to pdf +- [`add-semi-transparent-overlay-to-pdf-pages.cs`](./add-semi-transparent-overlay-to-pdf-pages.cs) -- Add semi transparent overlay to pdf pages +- [`add-subtle-background-pattern-to-pdf-pages.cs`](./add-subtle-background-pattern-to-pdf-pages.cs) -- Add subtle background pattern to pdf pages +- [`add-texture-background-image-to-pdf-pages.cs`](./add-texture-background-image-to-pdf-pages.cs) -- Add texture background image to pdf pages +- [`add-transparent-png-overlay-to-pdf-pages.cs`](./add-transparent-png-overlay-to-pdf-pages.cs) -- Add transparent png overlay to pdf pages +- [`add-vector-graphics-collection-to-pdf-page.cs`](./add-vector-graphics-collection-to-pdf-page.cs) -- Add vector graphics collection to pdf page +- [`add-vector-graphics-to-pdf-page.cs`](./add-vector-graphics-to-pdf-page.cs) -- Add vector graphics to pdf page +- [`batch-extract-images-from-pdfs.cs`](./batch-extract-images-from-pdfs.cs) -- Batch extract images from pdfs +- [`batch-extract-vector-graphics-from-pdfs.cs`](./batch-extract-vector-graphics-from-pdfs.cs) -- Batch extract vector graphics from pdfs +- [`collect-image-resolution-metadata.cs`](./collect-image-resolution-metadata.cs) -- Collect image resolution metadata +- [`compress-large-images-in-pdf.cs`](./compress-large-images-in-pdf.cs) -- Compress large images in pdf +- [`compress-large-images-in-pdf__v2.cs`](./compress-large-images-in-pdf__v2.cs) -- Compress large images in pdf v2 +- [`compress-pdf-images-using-optimization.cs`](./compress-pdf-images-using-optimization.cs) -- Compress pdf images using optimization +- [`convert-even-pdf-pages-to-grayscale.cs`](./convert-even-pdf-pages-to-grayscale.cs) -- Convert even pdf pages to grayscale +- [`convert-pdf-images-to-monochrome.cs`](./convert-pdf-images-to-monochrome.cs) -- Convert pdf images to monochrome +- [`convert-pdf-pages-to-png-with-default-font.cs`](./convert-pdf-pages-to-png-with-default-font.cs) -- Convert pdf pages to png with default font +- [`convert-pdf-pages-to-png-with-default-font__v2.cs`](./convert-pdf-pages-to-png-with-default-font__v2.cs) -- Convert pdf pages to png with default font v2 +- [`convert-pdf-to-multi-page-tiff-default-font.cs`](./convert-pdf-to-multi-page-tiff-default-font.cs) -- Convert pdf to multi page tiff default font +- [`convert-pdf-to-png-with-default-font.cs`](./convert-pdf-to-png-with-default-font.cs) -- Convert pdf to png with default font +- [`copy-vector-graphics-between-pdf-pages.cs`](./copy-vector-graphics-between-pdf-pages.cs) -- Copy vector graphics between pdf pages +- [`correct-exif-orientation-in-pdf.cs`](./correct-exif-orientation-in-pdf.cs) -- Correct exif orientation in pdf +- [`correct-pdf-image-orientation.cs`](./correct-pdf-image-orientation.cs) -- Correct pdf image orientation +- [`delete-raster-image-from-pdf-page.cs`](./delete-raster-image-from-pdf-page.cs) -- Delete raster image from pdf page +- [`delete-specific-raster-image-from-pdf-page.cs`](./delete-specific-raster-image-from-pdf-page.cs) -- Delete specific raster image from pdf page +- [`export-pdf-pages-to-bmp-300-dpi.cs`](./export-pdf-pages-to-bmp-300-dpi.cs) -- Export pdf pages to bmp 300 dpi +- [`extract-image-resolution-metadata.cs`](./extract-image-resolution-metadata.cs) -- Extract image resolution metadata +- [`extract-images-from-multiple-pdfs.cs`](./extract-images-from-multiple-pdfs.cs) -- Extract images from multiple pdfs +- [`extract-images-from-pdf-preserve-format.cs`](./extract-images-from-pdf-preserve-format.cs) -- Extract images from pdf preserve format +- [`extract-raster-images-from-pdf.cs`](./extract-raster-images-from-pdf.cs) -- Extract raster images from pdf +- [`extract-raster-images-from-pdf__v2.cs`](./extract-raster-images-from-pdf__v2.cs) -- Extract raster images from pdf v2 +- [`extract-vector-graphics-to-svg.cs`](./extract-vector-graphics-to-svg.cs) -- Extract vector graphics to svg +- [`generate-png-thumbnails-for-pdf-pages.cs`](./generate-png-thumbnails-for-pdf-pages.cs) -- Generate png thumbnails for pdf pages +- [`insert-dicom-image-with-custom-size.cs`](./insert-dicom-image-with-custom-size.cs) -- Insert dicom image with custom size +- [`insert-raster-image-into-pdf-page.cs`](./insert-raster-image-into-pdf-page.cs) -- Insert raster image into pdf page +- [`insert-raster-image-into-pdf.cs`](./insert-raster-image-into-pdf.cs) -- Insert raster image into pdf +- [`move-vector-graphic-on-pdf-page.cs`](./move-vector-graphic-on-pdf-page.cs) -- Move vector graphic on pdf page +- [`move-vector-graphic-position.cs`](./move-vector-graphic-position.cs) -- Move vector graphic position +- [`remove-all-images-from-pdf.cs`](./remove-all-images-from-pdf.cs) -- Remove all images from pdf +- [`remove-duplicate-images-from-pdf.cs`](./remove-duplicate-images-from-pdf.cs) -- Remove duplicate images from pdf +- [`remove-duplicate-images-pdf.cs`](./remove-duplicate-images-pdf.cs) -- Remove duplicate images pdf +- [`remove-low-resolution-images-from-pdf.cs`](./remove-low-resolution-images-from-pdf.cs) -- Remove low resolution images from pdf +- [`remove-low-resolution-images-from-pdf__v2.cs`](./remove-low-resolution-images-from-pdf__v2.cs) -- Remove low resolution images from pdf v2 +- [`remove-vector-graphic-from-pdf-page.cs`](./remove-vector-graphic-from-pdf-page.cs) -- Remove vector graphic from pdf page +- [`render-pdf-page-to-png-with-fallback-font.cs`](./render-pdf-page-to-png-with-fallback-font.cs) -- Render pdf page to png with fallback font +- [`render-pdf-pages-to-jpeg-with-default-font.cs`](./render-pdf-pages-to-jpeg-with-default-font.cs) -- Render pdf pages to jpeg with default font +- [`render-pdf-pages-to-png-300-dpi.cs`](./render-pdf-pages-to-png-300-dpi.cs) -- Render pdf pages to png 300 dpi +- [`render-pdf-to-multi-page-tiff-lzw-fallback.cs`](./render-pdf-to-multi-page-tiff-lzw-fallback.cs) -- Render pdf to multi page tiff lzw fallback +- [`render-pdf-to-png-300-dpi-default-font.cs`](./render-pdf-to-png-300-dpi-default-font.cs) -- Render pdf to png 300 dpi default font +- [`render-pdf-to-tiff-with-lzw-and-font-fallback.cs`](./render-pdf-to-tiff-with-lzw-and-font-fallback.cs) -- Render pdf to tiff with lzw and font fallback +- [`replace-appendix-images-with-placeholder.cs`](./replace-appendix-images-with-placeholder.cs) -- Replace appendix images with placeholder +- [`replace-image-in-pdf-page.cs`](./replace-image-in-pdf-page.cs) -- Replace image in pdf page +- [`replace-image-on-pdf-page-with-png.cs`](./replace-image-on-pdf-page-with-png.cs) -- Replace image on pdf page with png +- [`replace-image-on-pdf-page.cs`](./replace-image-on-pdf-page.cs) -- Replace image on pdf page +- [`replace-images-last-page-with-banner.cs`](./replace-images-last-page-with-banner.cs) -- Replace images last page with banner +- [`replace-images-odd-pages-placeholder.cs`](./replace-images-odd-pages-placeholder.cs) -- Replace images odd pages placeholder +- [`replace-images-odd-pages-qr-placeholder.cs`](./replace-images-odd-pages-qr-placeholder.cs) -- Replace images odd pages qr placeholder +- [`replace-images-on-odd-pages-with-placeholder.cs`](./replace-images-on-odd-pages-with-placeholder.cs) -- Replace images on odd pages with placeholder +- [`replace-images-on-pdf-page.cs`](./replace-images-on-pdf-page.cs) -- Replace images on pdf page +- [`replace-images-with-logo.cs`](./replace-images-with-logo.cs) -- Replace images with logo +- [`replace-index-page-images-with-banner.cs`](./replace-index-page-images-with-banner.cs) -- Replace index page images with banner +- [`replace-jpeg-with-png-in-pdf.cs`](./replace-jpeg-with-png-in-pdf.cs) -- Replace jpeg with png in pdf +- [`replace-jpeg-with-png-on-pdf-page.cs`](./replace-jpeg-with-png-on-pdf-page.cs) -- Replace jpeg with png on pdf page +- [`replace-odd-page-images-with-qr-placeholder.cs`](./replace-odd-page-images-with-qr-placeholder.cs) -- Replace odd page images with qr placeholder +- [`replace-pdf-images-with-icc-profile-jpegs.cs`](./replace-pdf-images-with-icc-profile-jpegs.cs) -- Replace pdf images with icc profile jpegs +- [`replace-pdf-images-with-icc-profile.cs`](./replace-pdf-images-with-icc-profile.cs) -- Replace pdf images with icc profile +- [`replace-pdf-images-with-placeholder.cs`](./replace-pdf-images-with-placeholder.cs) -- Replace pdf images with placeholder +- [`replace-pdf-images-with-placeholder__v2.cs`](./replace-pdf-images-with-placeholder__v2.cs) -- Replace pdf images with placeholder v2 +- [`replace-pdf-images-with-placeholders.cs`](./replace-pdf-images-with-placeholders.cs) -- Replace pdf images with placeholders +- [`replace-pdf-images-with-qr-placeholder.cs`](./replace-pdf-images-with-qr-placeholder.cs) -- Replace pdf images with qr placeholder +- [`replace-raster-with-vector.cs`](./replace-raster-with-vector.cs) -- Replace raster with vector +- [`replace-specific-images-on-pdf-page.cs`](./replace-specific-images-on-pdf-page.cs) -- Replace specific images on pdf page +- [`replace-title-page-banner.cs`](./replace-title-page-banner.cs) -- Replace title page banner +- [`replace-title-page-images-with-banner.cs`](./replace-title-page-images-with-banner.cs) -- Replace title page images with banner +- [`replace-vector-graphic-with-raster-image.cs`](./replace-vector-graphic-with-raster-image.cs) -- Replace vector graphic with raster image +- [`replace-vector-with-raster-image.cs`](./replace-vector-with-raster-image.cs) -- Replace vector with raster image +- [`resize-embedded-raster-image.cs`](./resize-embedded-raster-image.cs) -- Resize embedded raster image +- [`resize-images-half-size.cs`](./resize-images-half-size.cs) -- Resize images half size +- [`resize-images-on-pdf-pages.cs`](./resize-images-on-pdf-pages.cs) -- Resize images on pdf pages +- [`resize-pdf-images-using-config-scale-factor.cs`](./resize-pdf-images-using-config-scale-factor.cs) -- Resize pdf images using config scale factor +- [`resize-pdf-images-using-config-scale.cs`](./resize-pdf-images-using-config-scale.cs) -- Resize pdf images using config scale +- [`resize-pdf-images-using-config.cs`](./resize-pdf-images-using-config.cs) -- Resize pdf images using config +- [`resize-pdf-images-using-configurable-scale.cs`](./resize-pdf-images-using-configurable-scale.cs) -- Resize pdf images using configurable scale +- [`retrieve-image-alt-text.cs`](./retrieve-image-alt-text.cs) -- Retrieve image alt text +- [`transfer-vector-graphic-between-pdf-pages.cs`](./transfer-vector-graphic-between-pdf-pages.cs) -- Transfer vector graphic between pdf pages +- [`transfer-vector-graphic-to-another-pdf-page.cs`](./transfer-vector-graphic-to-another-pdf-page.cs) -- Transfer vector graphic to another pdf page +- [`vectorize-pdf-replace-raster-with-svg.cs`](./vectorize-pdf-replace-raster-with-svg.cs) -- Vectorize pdf replace raster with svg + +## See Also + +- [`AGENTS.md`](./AGENTS.md) -- category-specific anti-patterns, API surface, and conventions for AI coding agents +- [`../AGENTS.md`](../AGENTS.md) -- repository-wide agent guide +- [`../README.md`](../README.md) -- full category index and project overview +- [Aspose.PDF for .NET docs](https://docs.aspose.com/pdf/net/) + +> Each `.cs` file is a standalone, build-validated console example. Drop into a fresh `dotnet new console` project, add the `Aspose.PDF` NuGet (version above), and run. diff --git a/working-with-images/index.json b/working-with-images/index.json index db851bb0c..e45136d7c 100644 --- a/working-with-images/index.json +++ b/working-with-images/index.json @@ -1,24 +1,24 @@ { "category": "working-with-images", "nuget_version": "26.8.0", - "last_updated": "2026-08-20T08:52:39Z", + "last_updated": "2026-09-10T12:45:08Z", "examples": { - "add-png-logo-to-first-page": { - "title": "Add PNG Logo to First Page of PDF", - "filename": "add-png-logo-to-first-page.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, place a PNG logo at specific coordinates on the first page, and save the modified document.", + "add-alternative-text-to-pdf-images": { + "title": "Add Alternative Text to PDF Images", + "filename": "add-alternative-text-to-pdf-images.cs", + "description": "Demonstrates how to load a PDF, iterate through its pages and images, set alternative text for each image to improve accessibility, and save the updated document.", "tags": [ "pdf", + "accessibility", "image", - "logo", - "aspose-pdf", - "csharp" + "alt-text", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Page.AddImage", + "Aspose.Pdf.XImage", + "Aspose.Pdf.XImage.TrySetAlternativeText", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", @@ -47,49 +47,74 @@ "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "add-transparent-png-overlay-to-pdf-pages": { - "title": "Add Transparent PNG Overlay to PDF Pages", - "filename": "add-transparent-png-overlay-to-pdf-pages.cs", - "description": "Shows how to load a PDF, iterate through each page, and place a full‑page transparent PNG overlay above existing content before saving the document.", + "add-background-image-to-pdf": { + "title": "Add Background Image to PDF Pages", + "filename": "add-background-image-to-pdf.cs", + "description": "Shows how to place a background image on each page of an existing PDF using Aspose.Pdf, configuring it as a background artifact with adjustable opacity for a subtle shading effect.", "tags": [ "pdf", - "overlay", - "png", - "aspose", - "z-order" + "background", + "image", + "artifact", + "opacity" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Page.AddImage", + "Aspose.Pdf.BackgroundArtifact", + "Aspose.Pdf.BackgroundArtifact.SetImage", + "Aspose.Pdf.Page.Artifacts.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "add-diagonal-image-watermark-to-pdf": { - "title": "Add Diagonal Image Watermark to PDF", - "filename": "add-diagonal-image-watermark-to-pdf.cs", - "description": "Shows how to load a PDF, create an ImageStamp with a 45° rotation and semi‑transparent opacity, apply it to each page as a background watermark, and save the modified document.", + "add-background-pattern-image-to-pdf-pages": { + "title": "Add Background Pattern Image to PDF Pages", + "filename": "add-background-pattern-image-to-pdf-pages.cs", + "description": "Shows how to place a semi‑transparent background pattern image on each page of a PDF document using Aspose.Pdf.", "tags": [ - "pdf", - "watermark", + "background", "image", - "rotation", - "aspose" + "opacity", + "pdf", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.ImageStamp", - "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Page", + "Aspose.Pdf.BackgroundArtifact", + "Aspose.Pdf.BackgroundArtifact.SetImage", + "Aspose.Pdf.BackgroundArtifact.Opacity", + "Aspose.Pdf.BackgroundArtifact.IsBackground", + "Aspose.Pdf.Page.Artifacts.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, + "add-background-pattern-image-to-pdf-pages__v2": { + "title": "Add Background Pattern Image To Pdf Pages__V2", + "filename": "add-background-pattern-image-to-pdf-pages__v2.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-background-texture-overlay-to-pdf-pages": { + "title": "Add Background Texture Overlay To Pdf Pages", + "filename": "add-background-texture-overlay-to-pdf-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "add-centered-logo-to-first-pdf-page": { "title": "Add Centered Logo to First PDF Page", "filename": "add-centered-logo-to-first-pdf-page.cs", @@ -114,6 +139,101 @@ "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, + "add-company-logo-to-first-page": { + "title": "Add Company Logo To First Page", + "filename": "add-company-logo-to-first-page.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-decorative-footer-image-to-pdf-pages": { + "title": "Add Decorative Footer Image to PDF Pages", + "filename": "add-decorative-footer-image-to-pdf-pages.cs", + "description": "Shows how to insert a footer image on every page of a PDF, scaling it proportionally to the page width using Aspose.Pdf.", + "tags": [ + "footer", + "image", + "pdf", + "Aspose.Pdf", + "scaling" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Page.AddImage", + "Aspose.Pdf.PageInfo" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T08:52:39Z", + "status": "verified" + }, + "add-decorative-header-image-to-pdf-pages": { + "title": "Add Decorative Header Image To Pdf Pages", + "filename": "add-decorative-header-image-to-pdf-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-diagonal-image-watermark-to-pdf": { + "title": "Add Diagonal Image Watermark to PDF", + "filename": "add-diagonal-image-watermark-to-pdf.cs", + "description": "Shows how to load a PDF, create an ImageStamp with a 45° rotation and semi‑transparent opacity, apply it to each page as a background watermark, and save the modified document.", + "tags": [ + "pdf", + "watermark", + "image", + "rotation", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.ImageStamp", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:52:39Z", + "status": "verified" + }, + "add-dicom-image-to-pdf-page": { + "title": "Add DICOM Image to PDF Page using FileStream", + "filename": "add-dicom-image-to-pdf-page.cs", + "description": "Shows how to load an existing PDF, read a DICOM image via a FileStream, and place the image on a page at a defined rectangle using Aspose.Pdf.", + "tags": [ + "dicom", + "pdf", + "image", + "aspose-pdf", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Image", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Page.AddImage" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T08:52:39Z", + "status": "verified" + }, + "add-dicom-image-to-pdf-using-filestream": { + "title": "Add Dicom Image To Pdf Using Filestream", + "filename": "add-dicom-image-to-pdf-using-filestream.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "add-header-image-to-pdf-pages": { "title": "Add Header Image to Each PDF Page", "filename": "add-header-image-to-pdf-pages.cs", @@ -138,117 +258,99 @@ "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "add-decorative-footer-image-to-pdf-pages": { - "title": "Add Decorative Footer Image to PDF Pages", - "filename": "add-decorative-footer-image-to-pdf-pages.cs", - "description": "Shows how to insert a footer image on every page of a PDF, scaling it proportionally to the page width using Aspose.Pdf.", + "add-image-with-alt-text-to-pdf": { + "title": "Add Image with Alternative Text to PDF", + "filename": "add-image-with-alt-text-to-pdf.cs", + "description": "Shows how to insert an image into an existing PDF document and assign alternative (alt) text for accessibility using Aspose.Pdf.", "tags": [ - "footer", - "image", "pdf", - "Aspose.Pdf", - "scaling" + "image", + "alt-text", + "accessibility", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Rectangle", "Aspose.Pdf.Page.AddImage", - "Aspose.Pdf.PageInfo" + "Aspose.Pdf.XImage", + "Aspose.Pdf.XImage.TrySetAlternativeText" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "add-background-pattern-image-to-pdf-pages": { - "title": "Add Background Pattern Image to PDF Pages", - "filename": "add-background-pattern-image-to-pdf-pages.cs", - "description": "Shows how to place a semi‑transparent background pattern image on each page of a PDF document using Aspose.Pdf.", + "add-png-logo-to-first-page": { + "title": "Add PNG Logo to First Page of PDF", + "filename": "add-png-logo-to-first-page.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, place a PNG logo at specific coordinates on the first page, and save the modified document.", "tags": [ - "background", - "image", - "opacity", "pdf", - "Aspose.Pdf" + "image", + "logo", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.BackgroundArtifact", - "Aspose.Pdf.BackgroundArtifact.SetImage", - "Aspose.Pdf.BackgroundArtifact.Opacity", - "Aspose.Pdf.BackgroundArtifact.IsBackground", - "Aspose.Pdf.Page.Artifacts.Add", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Page.AddImage", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "add-subtle-background-pattern-to-pdf-pages": { - "title": "Add Subtle Background Pattern to PDF Pages", - "filename": "add-subtle-background-pattern-to-pdf-pages.cs", - "description": "Demonstrates how to apply a low‑opacity pattern image as a background artifact on every page of a PDF using Aspose.Pdf.", + "add-raster-image-to-pdf-page": { + "title": "Add Raster Image to PDF Page", + "filename": "add-raster-image-to-pdf-page.cs", + "description": "Demonstrates how to insert a raster image (PNG, JPEG, etc.) onto a newly created PDF page using Aspose.Pdf's Image class and the Paragraphs collection.", "tags": [ - "background", - "pattern", - "opacity", + "image", "pdf", - "aspose" + "aspose", + "raster", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.BackgroundArtifact", - "Aspose.Pdf.BackgroundArtifact.SetImage", - "Aspose.Pdf.BackgroundArtifact.Opacity", - "Aspose.Pdf.Page.Artifacts.Add", + "Aspose.Pdf.Image", + "Aspose.Pdf.PageCollection.Add", + "Aspose.Pdf.Page.Paragraphs.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "add-background-image-to-pdf": { - "title": "Add Background Image to PDF Pages", - "filename": "add-background-image-to-pdf.cs", - "description": "Shows how to place a background image on each page of an existing PDF using Aspose.Pdf, configuring it as a background artifact with adjustable opacity for a subtle shading effect.", - "tags": [ - "pdf", - "background", - "image", - "artifact", - "opacity" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.BackgroundArtifact", - "Aspose.Pdf.BackgroundArtifact.SetImage", - "Aspose.Pdf.Page.Artifacts.Add", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T08:52:39Z", + "add-scalable-footer-image-to-pdf-pages": { + "title": "Add Scalable Footer Image To Pdf Pages", + "filename": "add-scalable-footer-image-to-pdf-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "add-texture-background-image-to-pdf-pages": { - "title": "Add Texture Background Image to PDF Pages", - "filename": "add-texture-background-image-to-pdf-pages.cs", - "description": "Shows how to place a subtle texture image as a background on every page of a PDF using Aspose.Pdf's BackgroundArtifact and adjust its opacity.", + "add-semi-transparent-image-watermark-to-pdf-pages": { + "title": "Add Semi-Transparent Image Watermark to PDF Pages", + "filename": "add-semi-transparent-image-watermark-to-pdf-pages.cs", + "description": "Demonstrates how to overlay a semi-transparent PNG watermark on every page of a PDF using Aspose.Pdf, with opacity configurable via a setting.", "tags": [ + "watermark", "pdf", - "background", "image", - "texture", - "aspose" + "opacity", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.BackgroundArtifact", - "Aspose.Pdf.BackgroundArtifact.SetImage", - "Aspose.Pdf.Page.Artifacts", + "Aspose.Pdf.ImageStamp", + "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", @@ -302,186 +404,196 @@ "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "add-semi-transparent-image-watermark-to-pdf-pages": { - "title": "Add Semi-Transparent Image Watermark to PDF Pages", - "filename": "add-semi-transparent-image-watermark-to-pdf-pages.cs", - "description": "Demonstrates how to overlay a semi-transparent PNG watermark on every page of a PDF using Aspose.Pdf, with opacity configurable via a setting.", + "add-subtle-background-pattern-to-pdf-pages": { + "title": "Add Subtle Background Pattern to PDF Pages", + "filename": "add-subtle-background-pattern-to-pdf-pages.cs", + "description": "Demonstrates how to apply a low‑opacity pattern image as a background artifact on every page of a PDF using Aspose.Pdf.", "tags": [ - "watermark", + "background", + "pattern", + "opacity", "pdf", - "image", - "opacity", - "Aspose.Pdf" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.ImageStamp", - "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.BackgroundArtifact", + "Aspose.Pdf.BackgroundArtifact.SetImage", + "Aspose.Pdf.BackgroundArtifact.Opacity", + "Aspose.Pdf.Page.Artifacts.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "replace-jpeg-with-png-on-pdf-page": { - "title": "Replace JPEG with High‑Resolution PNG on PDF Page", - "filename": "replace-jpeg-with-png-on-pdf-page.cs", - "description": "Shows how to replace an existing JPEG image on the third page of a PDF with a higher‑resolution PNG using Aspose.Pdf's Resources.Images collection.", + "add-texture-background-image-to-pdf-pages": { + "title": "Add Texture Background Image to PDF Pages", + "filename": "add-texture-background-image-to-pdf-pages.cs", + "description": "Shows how to place a subtle texture image as a background on every page of a PDF using Aspose.Pdf's BackgroundArtifact and adjust its opacity.", "tags": [ "pdf", - "image-replacement", - "aspose-pdf", - "resources", - "csharp" + "background", + "image", + "texture", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.XImageCollection", - "Aspose.Pdf.XImageCollection.Replace", + "Aspose.Pdf.BackgroundArtifact", + "Aspose.Pdf.BackgroundArtifact.SetImage", + "Aspose.Pdf.Page.Artifacts", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "replace-jpeg-with-png-in-pdf": { - "title": "Replace JPEG Images with PNG in PDF", - "filename": "replace-jpeg-with-png-in-pdf.cs", - "description": "Demonstrates how to load a PDF with Aspose.Pdf, iterate through each page and image resource, and replace every JPEG image with a PNG file while preserving the original layout.", + "add-transparent-png-overlay-to-pdf-pages": { + "title": "Add Transparent PNG Overlay to PDF Pages", + "filename": "add-transparent-png-overlay-to-pdf-pages.cs", + "description": "Shows how to load a PDF, iterate through each page, and place a full‑page transparent PNG overlay above existing content before saving the document.", "tags": [ "pdf", - "image-replacement", - "aspose-pdf", - "jpeg", - "png" + "overlay", + "png", + "aspose", + "z-order" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.XImageCollection", - "Aspose.Pdf.ImageCollection.Replace", - "Aspose.Pdf.Resources" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Page.AddImage", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "vectorize-pdf-replace-raster-with-svg": { - "title": "Vectorize PDF Pages by Replacing Raster Images with SVG", - "filename": "vectorize-pdf-replace-raster-with-svg.cs", - "description": "Shows how to extract vector graphics from each PDF page as SVG, substitute raster pages with the SVG version when possible, and rebuild the PDF using Aspose.Pdf.", - "tags": [ - "pdf", - "vectorization", - "svg", - "aspose-pdf", - "image-replacement" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page.TrySaveVectorGraphics", - "Aspose.Pdf.SvgLoadOptions", - "Aspose.Pdf.Document.Pages.Add", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:52:39Z", + "add-vector-graphics-collection-to-pdf-page": { + "title": "Add Vector Graphics Collection To Pdf Page", + "filename": "add-vector-graphics-collection-to-pdf-page.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "replace-images-on-odd-pages-with-placeholder": { - "title": "Replace Images on Odd PDF Pages with Placeholder", - "filename": "replace-images-on-odd-pages-with-placeholder.cs", - "description": "Shows how to iterate through a PDF, locate image placements on odd‑numbered pages, and replace each image with a placeholder graphic while keeping the original dimensions and positioning.", + "add-vector-graphics-to-pdf-page": { + "title": "Add Vector Graphics to a PDF Page", + "filename": "add-vector-graphics-to-pdf-page.cs", + "description": "Shows how to create a new PDF page, build a Graph with rectangle, ellipse, and line shapes, and add the vector graphics to the document using Aspose.Pdf.", "tags": [ "pdf", - "image-replacement", - "odd-pages", - "placeholder", + "vector-graphics", + "shapes", + "graph", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.ImagePlacementAbsorber", - "Aspose.Pdf.ImagePlacement", - "Aspose.Pdf.ImagePlacement.Replace", - "Aspose.Pdf.Page.Accept" + "Aspose.Pdf.Page", + "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Drawing.Ellipse", + "Aspose.Pdf.Drawing.Line", + "Aspose.Pdf.Drawing.GraphInfo", + "Aspose.Pdf.Color" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "replace-images-odd-pages-qr-placeholder": { - "title": "Replace Images on Odd Pages with QR Code Placeholder", - "filename": "replace-images-odd-pages-qr-placeholder.cs", - "description": "Demonstrates how to iterate through odd‑numbered PDF pages, locate each image, and replace it with a QR‑code placeholder while preserving a reference to the original image.", + "batch-extract-images-from-pdfs": { + "title": "Batch Extract Images From Pdfs", + "filename": "batch-extract-images-from-pdfs.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "batch-extract-vector-graphics-from-pdfs": { + "title": "Batch Extract Vector Graphics from PDFs", + "filename": "batch-extract-vector-graphics-from-pdfs.cs", + "description": "Loads all PDF files from a specified input folder, iterates through each page, and extracts any vector graphics as SVG files, storing them in separate subfolders per document and page.", "tags": [ "pdf", - "image-replacement", - "qr-code", - "odd-pages", - "aspose-pdf" + "vector", + "svg", + "batch", + "extraction" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Text.ImagePlacementAbsorber", - "Aspose.Pdf.Text.ImagePlacement", - "Aspose.Pdf.XImage", - "Aspose.Pdf.Resources.Images.Replace", - "Aspose.Pdf.XImage.TrySetAlternativeText" + "Aspose.Pdf.Vector.SvgExtractor", + "Aspose.Pdf.Page.HasVectorGraphics", + "Aspose.Pdf.Document.Pages" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "convert-even-pdf-pages-to-grayscale": { - "title": "Convert Even PDF Pages to Grayscale", - "filename": "convert-even-pdf-pages-to-grayscale.cs", - "description": "Shows how to load a PDF, iterate through its pages, apply a grayscale conversion only to even-numbered pages, and save the modified document.", + "collect-image-resolution-metadata": { + "title": "Collect Image Resolution Metadata from PDF Pages", + "filename": "collect-image-resolution-metadata.cs", + "description": "Loads a PDF, iterates through each page, finds all images using ImagePlacementAbsorber, and reports their DPI resolution and visible size.", "tags": [ "pdf", - "grayscale", - "even-pages", - "image-processing", - "aspose-pdf" + "image", + "resolution", + "aspose-pdf", + "metadata" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PageCollection", "Aspose.Pdf.Page", - "Aspose.Pdf.Page.MakeGrayscale", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.ImagePlacementAbsorber", + "Aspose.Pdf.ImagePlacement", + "Aspose.Pdf.Page.Accept" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "replace-images-last-page-with-banner": { - "title": "Replace Images on Last PDF Page with Full-Width Banner", - "filename": "replace-images-last-page-with-banner.cs", - "description": "Demonstrates how to hide all existing images on the final page of a PDF and insert a banner image that spans the page width using Aspose.Pdf.", + "compress-large-images-in-pdf": { + "title": "Compress Large Images in PDF", + "filename": "compress-large-images-in-pdf.cs", + "description": "Shows how to load a PDF, configure image compression to replace images larger than 2 MB with compressed JPEGs, and save the optimized document.", "tags": [ "pdf", - "image", - "banner", - "aspose", + "image-compression", + "optimization", + "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.ImagePlacementAbsorber", - "Aspose.Pdf.ImagePlacement", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Page.AddImage", + "Aspose.Pdf.Optimization.OptimizationOptions", + "Aspose.Pdf.Optimization.ImageCompressionOptions", + "Aspose.Pdf.Document.OptimizeResources", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, + "compress-large-images-in-pdf__v2": { + "title": "Compress Large Images In Pdf__V2", + "filename": "compress-large-images-in-pdf__v2.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "compress-pdf-images-using-optimization": { "title": "Compress Images in PDF Using Aspose.Pdf Optimization", "filename": "compress-pdf-images-using-optimization.cs", @@ -505,27 +617,25 @@ "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "replace-pdf-images-with-placeholder": { - "title": "Replace PDF Images with Placeholder and Add Hyperlink", - "filename": "replace-pdf-images-with-placeholder.cs", - "description": "Shows how to replace each image in a PDF with a small placeholder PNG and overlay a link annotation that points to the original image location.", + "convert-even-pdf-pages-to-grayscale": { + "title": "Convert Even PDF Pages to Grayscale", + "filename": "convert-even-pdf-pages-to-grayscale.cs", + "description": "Shows how to load a PDF, iterate through its pages, apply a grayscale conversion only to even-numbered pages, and save the modified document.", "tags": [ "pdf", - "image-replacement", - "link-annotation", - "aspose-pdf", - "csharp" + "grayscale", + "even-pages", + "image-processing", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.ImagePlacementAbsorber", - "Aspose.Pdf.ImagePlacement", - "Aspose.Pdf.XImage", - "Aspose.Pdf.Page.Resources.Images.Replace", - "Aspose.Pdf.Annotations.LinkAnnotation", - "Aspose.Pdf.Annotations.GoToURIAction" + "Aspose.Pdf.PageCollection", + "Aspose.Pdf.Page", + "Aspose.Pdf.Page.MakeGrayscale", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, @@ -551,110 +661,131 @@ "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "correct-pdf-image-orientation": { - "title": "Correct PDF Image Orientation Using EXIF Data", - "filename": "correct-pdf-image-orientation.cs", - "description": "Loads a PDF, reads each embedded image's EXIF orientation, rotates or flips the image accordingly, and replaces it in the PDF to ensure proper display.", + "convert-pdf-pages-to-png-with-default-font": { + "title": "Convert PDF Pages to PNG with Default Font", + "filename": "convert-pdf-pages-to-png-with-default-font.cs", + "description": "Shows how to load a PDF, set RenderingOptions.DefaultFontName to Arial, and convert each page to a PNG image using Aspose.Pdf.", "tags": [ "pdf", - "exif", - "image-rotation", - "aspose-pdf", - "csharp" + "image-conversion", + "default-font", + "png", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.XImageCollection", - "Aspose.Pdf.XImage", - "Aspose.Pdf.XImageCollection.Replace", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Devices.RenderingOptions", + "Aspose.Pdf.Devices.PngDevice", + "Aspose.Pdf.Devices.PngDevice.Process" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "compress-large-images-in-pdf": { - "title": "Compress Large Images in PDF", - "filename": "compress-large-images-in-pdf.cs", - "description": "Shows how to load a PDF, configure image compression to replace images larger than 2 MB with compressed JPEGs, and save the optimized document.", + "convert-pdf-pages-to-png-with-default-font__v2": { + "title": "Convert PDF Pages to PNG with Default Font Override", + "filename": "convert-pdf-pages-to-png-with-default-font__v2.cs", + "description": "Demonstrates how to set RenderingOptions.DefaultFontName to \"Times New Roman\" and convert each page of a PDF document to PNG images using Aspose.Pdf.", "tags": [ "pdf", - "image-compression", - "optimization", - "aspose-pdf", - "csharp" + "image-conversion", + "default-font", + "png", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Optimization.OptimizationOptions", - "Aspose.Pdf.Optimization.ImageCompressionOptions", - "Aspose.Pdf.Document.OptimizeResources", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.Devices.PngDevice", + "Aspose.Pdf.Devices.RenderingOptions", + "Aspose.Pdf.Devices.PngDevice.Process" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "replace-pdf-images-with-qr-placeholder": { - "title": "Replace PDF Images with QR Code Placeholder", - "filename": "replace-pdf-images-with-qr-placeholder.cs", - "description": "Shows how to iterate through a PDF, replace each embedded image with a QR‑code placeholder image, and store the original image name as alternative text using Aspose.Pdf.", + "convert-pdf-to-multi-page-tiff-default-font": { + "title": "Convert PDF to Multi-Page TIFF with Default Font", + "filename": "convert-pdf-to-multi-page-tiff-default-font.cs", + "description": "Demonstrates converting an entire PDF document into a multi‑page TIFF file using Aspose.Pdf, setting resolution, TIFF options, and applying a default font for rendering missing fonts.", "tags": [ "pdf", - "image-replacement", - "qr-code", - "aspose-pdf" + "tiff", + "conversion", + "default-font", + "resolution" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.ImageCollection", - "Aspose.Pdf.XImage", - "Aspose.Pdf.ImageCollection.Replace", - "Aspose.Pdf.XImage.TrySetAlternativeText" + "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.Devices.TiffSettings", + "Aspose.Pdf.Devices.TiffDevice", + "Aspose.Pdf.Devices.TiffDevice.RenderingOptions", + "Aspose.Pdf.Devices.TiffDevice.Process" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "replace-images-on-pdf-page": { - "title": "Replace Images on a PDF Page Using a Dictionary", - "filename": "replace-images-on-pdf-page.cs", - "description": "Demonstrates how to replace specific images on a given PDF page by mapping image indices to new image files using Aspose.Pdf.", + "convert-pdf-to-png-with-default-font": { + "title": "Convert Pdf To Png With Default Font", + "filename": "convert-pdf-to-png-with-default-font.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "copy-vector-graphics-between-pdf-pages": { + "title": "Copy Vector Graphics Between PDF Pages", + "filename": "copy-vector-graphics-between-pdf-pages.cs", + "description": "Demonstrates how to extract vector graphic objects from a source PDF page using GraphicsAbsorber and insert each graphic individually onto a target PDF page.", "tags": [ + "vector-graphics", "pdf", - "image-replacement", - "dictionary", "aspnet", - "Aspose.Pdf" + "graphics-absorber", + "page-manipulation" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.XImageCollection", - "Aspose.Pdf.XImageCollection.Replace", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Vector.GraphicsAbsorber", + "Aspose.Pdf.Vector.GraphicsAbsorber.Visit", + "Aspose.Pdf.Vector.GraphicObject.AddOnPage" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "replace-pdf-images-with-icc-profile-jpegs": { - "title": "Replace PDF Images with ICC‑Profile JPEGs", - "filename": "replace-pdf-images-with-icc-profile-jpegs.cs", - "description": "Shows how to iterate through each page of a PDF and replace all embedded images with a JPEG that contains an embedded ICC color profile using Aspose.Pdf.", + "correct-exif-orientation-in-pdf": { + "title": "Correct Exif Orientation In Pdf", + "filename": "correct-exif-orientation-in-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "correct-pdf-image-orientation": { + "title": "Correct PDF Image Orientation Using EXIF Data", + "filename": "correct-pdf-image-orientation.cs", + "description": "Loads a PDF, reads each embedded image's EXIF orientation, rotates or flips the image accordingly, and replaces it in the PDF to ensure proper display.", "tags": [ "pdf", - "image-replacement", - "icc", - "color-management", - "aspose-pdf" + "exif", + "image-rotation", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.XImageCollection", + "Aspose.Pdf.XImage", "Aspose.Pdf.XImageCollection.Replace", "Aspose.Pdf.Document.Save" ], @@ -662,861 +793,1098 @@ "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "replace-images-with-logo": { - "title": "Replace Images on PDF Page with New Logo", - "filename": "replace-images-with-logo.cs", - "description": "Creates a sample PDF containing an image, then uses ImagePlacementAbsorber to locate all image placements and replaces each with a new in‑memory logo image.", + "delete-raster-image-from-pdf-page": { + "title": "Delete Raster Image from PDF Page", + "filename": "delete-raster-image-from-pdf-page.cs", + "description": "Shows how to remove a specific raster image from a PDF page by deleting its reference in the page resources using Aspose.Pdf.", "tags": [ - "image-replacement", "pdf", - "aspose-pdf", - "image-absorber", - "logo" + "image", + "delete", + "Aspose.Pdf", + "page" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Drawing.Image", - "Aspose.Pdf.ImagePlacementAbsorber", - "Aspose.Pdf.ImagePlacement" + "Aspose.Pdf.Page.Resources", + "Aspose.Pdf.Page.Resources.Images", + "Aspose.Pdf.Page.Resources.Images.Delete", + "Aspose.Pdf.ImageDeleteAction" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "replace-title-page-banner": { - "title": "Replace Title Page Images with High‑Resolution Banner", - "filename": "replace-title-page-banner.cs", - "description": "Demonstrates how to load a PDF, locate the title page, and replace all existing images on that page with a high‑resolution banner image while preserving the original text layout.", + "delete-specific-raster-image-from-pdf-page": { + "title": "Delete Specific Raster Image From Pdf Page", + "filename": "delete-specific-raster-image-from-pdf-page.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "export-pdf-pages-to-bmp-300-dpi": { + "title": "Export PDF Pages to BMP Images at 300 DPI", + "filename": "export-pdf-pages-to-bmp-300-dpi.cs", + "description": "Shows how to convert each page of a PDF into a 300‑DPI BMP image using Aspose.Pdf's BmpDevice with a custom resolution.", "tags": [ "pdf", - "image-replacement", - "banner", - "aspose-pdf", - "csharp" + "bmp", + "export", + "300dpi", + "rendering" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Page.Resources", - "Aspose.Pdf.ImageCollection", - "Aspose.Pdf.ImageCollection.Replace", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Resolution", + "Aspose.Pdf.Devices.BmpDevice", + "Aspose.Pdf.Devices.BmpDevice.Process", + "Aspose.Pdf.Page" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "replace-index-page-images-with-banner": { - "title": "Replace Index Page Images with a Banner Image", - "filename": "replace-index-page-images-with-banner.cs", - "description": "Shows how to replace every image on the first (index) page of a PDF with a single banner image using Aspose.Pdf.", + "extract-image-resolution-metadata": { + "title": "Extract Image Resolution Metadata", + "filename": "extract-image-resolution-metadata.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-images-from-multiple-pdfs": { + "title": "Extract Images from Multiple PDFs", + "filename": "extract-images-from-multiple-pdfs.cs", + "description": "Demonstrates how to batch‑process PDF files in a folder and extract every embedded image, saving them as PNG files with unique names.", "tags": [ "pdf", - "image-replacement", - "branding", - "aspose.pdf", + "image-extraction", + "batch", + "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.XImageCollection", - "Aspose.Pdf.XImageCollection.Replace", - "Aspose.Pdf.Page.Resources" + "Aspose.Pdf.XImage", + "Aspose.Pdf.Page.Resources.Images", + "Aspose.Pdf.XImage.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "replace-pdf-images-with-placeholder__v2": { - "title": "Replace All PDF Images with a Placeholder", - "filename": "replace-pdf-images-with-placeholder__v2.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, iterate through each page, replace every embedded image with a low‑resolution placeholder image, and save the modified document.", + "extract-images-from-pdf-preserve-format": { + "title": "Extract Images from PDF Preserving Original Format", + "filename": "extract-images-from-pdf-preserve-format.cs", + "description": "Shows how to iterate through PDF pages using Aspose.Pdf, extract each embedded raster image, detect its original format from header bytes, and save the image to disk without conversion.", "tags": [ "pdf", - "image-replacement", - "placeholder", + "image-extraction", "aspose-pdf", - "csharp" + "raster", + "file-format" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.XImageCollection", - "Aspose.Pdf.XImageCollection.Replace" + "Aspose.Pdf.XImage", + "Aspose.Pdf.Page.Resources", + "Aspose.Pdf.XImage.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "remove-all-images-from-pdf": { - "title": "Remove All Images from PDF Pages", - "filename": "remove-all-images-from-pdf.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, iterate through each page, delete all images from the page resources, and save the cleaned document.", + "extract-raster-images-from-pdf": { + "title": "Extract Raster Images from PDF and Save as PNG", + "filename": "extract-raster-images-from-pdf.cs", + "description": "Loads a PDF document, iterates through each page's image resources, and saves every raster image as an individual PNG file.", "tags": [ "pdf", - "images", - "remove", - "aspose", + "image-extraction", + "png", + "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Page.Resources", - "Aspose.Pdf.XImageCollection", - "Aspose.Pdf.XImageCollection.Delete", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.XImage", + "Aspose.Pdf.ImageCollection", + "Aspose.Pdf.XImage.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "remove-low-resolution-images-from-pdf": { - "title": "Remove Low-Resolution Images from PDF", - "filename": "remove-low-resolution-images-from-pdf.cs", - "description": "Shows how to scan each page of a PDF, use ImagePlacementAbsorber to find images, hide those with DPI lower than 72, optimize resources, and save the result.", + "extract-raster-images-from-pdf__v2": { + "title": "Extract Raster Images From Pdf__V2", + "filename": "extract-raster-images-from-pdf__v2.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-vector-graphics-to-svg": { + "title": "Extract Vector Graphics from PDF Page to SVG", + "filename": "extract-vector-graphics-to-svg.cs", + "description": "Demonstrates using GraphicsAbsorber to collect vector graphics from a specific PDF page and converting them to an SVG file for further manipulation.", "tags": [ "pdf", - "image", - "dpi", - "optimization", - "aspnet" + "vector-graphics", + "svg", + "extraction", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.ImagePlacementAbsorber", - "Aspose.Pdf.ImagePlacement", - "Aspose.Pdf.Document.OptimizeResources", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page", + "Aspose.Pdf.Page.HasVectorGraphics", + "Aspose.Pdf.Vector.GraphicsAbsorber", + "Aspose.Pdf.Vector.GraphicsAbsorber.Visit", + "Aspose.Pdf.Vector.SvgExtractor", + "Aspose.Pdf.Vector.SvgExtractor.Extract" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "remove-low-resolution-images-from-pdf__v2": { - "title": "Remove Low-Resolution Images from PDF", - "filename": "remove-low-resolution-images-from-pdf__v2.cs", - "description": "Shows how to delete images with a DPI lower than 72 using ImagePlacementAbsorber, hide the low‑resolution images, optimize resources, and save the updated PDF.", + "generate-png-thumbnails-for-pdf-pages": { + "title": "Generate PNG Thumbnails for PDF Pages", + "filename": "generate-png-thumbnails-for-pdf-pages.cs", + "description": "Creates 150x200 pixel PNG thumbnail images for each page of a PDF document using Aspose.Pdf's ThumbnailDevice.", "tags": [ "pdf", - "image", - "dpi", - "aspose.pdf", - "optimization" + "thumbnail", + "png", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.ImagePlacementAbsorber", - "Aspose.Pdf.ImagePlacement", - "Aspose.Pdf.ImagePlacement.Hide", - "Aspose.Pdf.Document.OptimizeResources", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Devices.ThumbnailDevice", + "Aspose.Pdf.Devices.ThumbnailDevice.Process", + "Aspose.Pdf.PageCollection", + "Aspose.Pdf.Page" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "remove-duplicate-images-from-pdf": { - "title": "Remove Duplicate Images from PDF", - "filename": "remove-duplicate-images-from-pdf.cs", - "description": "Demonstrates how to iterate through PDF pages, compute a hash of each image's raw bytes, and delete duplicate images using Aspose.Pdf APIs, then re‑optimize the document.", + "insert-dicom-image-with-custom-size": { + "title": "Insert DICOM Image with Custom Size into PDF", + "filename": "insert-dicom-image-with-custom-size.cs", + "description": "Shows how to add a DICOM image to a PDF document and control its resolution by setting explicit Width and Height on an ImageStamp before stamping.", "tags": [ + "dicom", + "image", "pdf", - "duplicate-images", - "image-hash", - "optimization", - "Aspose.Pdf" + "custom-size", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page.Resources.Images", - "Aspose.Pdf.XImage", - "Aspose.Pdf.XImage.Save", - "Aspose.Pdf.ImageDeleteAction.ForceDelete", - "Aspose.Pdf.Document.OptimizeResources", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.ImageStamp", + "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.PageCollection" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "collect-image-resolution-metadata": { - "title": "Collect Image Resolution Metadata from PDF Pages", - "filename": "collect-image-resolution-metadata.cs", - "description": "Loads a PDF, iterates through each page, finds all images using ImagePlacementAbsorber, and reports their DPI resolution and visible size.", + "insert-raster-image-into-pdf-page": { + "title": "Insert Raster Image into PDF Page", + "filename": "insert-raster-image-into-pdf-page.cs", + "description": "Shows how to load an existing PDF, define an absolute rectangle, and insert a raster image onto a specific page using Aspose.Pdf.", "tags": [ "pdf", "image", - "resolution", - "aspose-pdf", - "metadata" + "insert", + "rectangle", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.ImagePlacementAbsorber", - "Aspose.Pdf.ImagePlacement", - "Aspose.Pdf.Page.Accept" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Page.AddImage", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "resize-images-half-size": { - "title": "Resize Images on PDF Pages to Half Size", - "filename": "resize-images-half-size.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, iterate through each page and its paragraphs, detect Image objects, scale them to 50 % of their original dimensions, and save the modified document.", + "insert-raster-image-into-pdf": { + "title": "Insert Raster Image Into Pdf", + "filename": "insert-raster-image-into-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "move-vector-graphic-on-pdf-page": { + "title": "Move Vector Graphic On Pdf Page", + "filename": "move-vector-graphic-on-pdf-page.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "move-vector-graphic-position": { + "title": "Move Vector Graphic to New Position Using Matrix", + "filename": "move-vector-graphic-position.cs", + "description": "Demonstrates how to shift a vector graphic on a PDF page by updating its Position or applying a translation matrix with Aspose.Pdf.", "tags": [ - "pdf", - "image", - "resize", - "aspose-pdf", - "csharp" + "vector-graphics", + "matrix", + "pdf-manipulation", + "positioning", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Image", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Image.ImageScale" + "Aspose.Pdf.Page.HasVectorGraphics", + "Aspose.Pdf.Vector.Matrix", + "Aspose.Pdf.Vector.Matrix.Translate", + "Aspose.Pdf.Text.Point", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "resize-pdf-images-using-config-scale-factor": { - "title": "Resize Images in PDF Using Configurable Scale Factor", - "filename": "resize-pdf-images-using-config-scale-factor.cs", - "description": "The example reads a scaling factor from a configuration file and applies it to all images in a PDF, resizing them before saving the document.", + "remove-all-images-from-pdf": { + "title": "Remove All Images from PDF Pages", + "filename": "remove-all-images-from-pdf.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, iterate through each page, delete all images from the page resources, and save the cleaned document.", "tags": [ "pdf", - "image-scaling", - "configuration", - "aspose-pdf", + "images", + "remove", + "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Image", - "Aspose.Pdf.Page.Paragraphs", - "Aspose.Pdf.Image.ImageScale", + "Aspose.Pdf.Page.Resources", + "Aspose.Pdf.XImageCollection", + "Aspose.Pdf.XImageCollection.Delete", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "resize-pdf-images-using-config-scale": { - "title": "Resize Images in PDF Using Configurable Scale Factor", - "filename": "resize-pdf-images-using-config-scale.cs", - "description": "Demonstrates loading a scaling factor from appsettings.json and applying it to all image objects in a PDF using Aspose.Pdf, then saving the modified document.", + "remove-duplicate-images-from-pdf": { + "title": "Remove Duplicate Images from PDF", + "filename": "remove-duplicate-images-from-pdf.cs", + "description": "Demonstrates how to iterate through PDF pages, compute a hash of each image's raw bytes, and delete duplicate images using Aspose.Pdf APIs, then re‑optimize the document.", "tags": [ "pdf", - "image-scaling", - "aspose-pdf", - "configuration", - "csharp" + "duplicate-images", + "image-hash", + "optimization", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Image", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Page.Paragraphs" + "Aspose.Pdf.Page.Resources.Images", + "Aspose.Pdf.XImage", + "Aspose.Pdf.XImage.Save", + "Aspose.Pdf.ImageDeleteAction.ForceDelete", + "Aspose.Pdf.Document.OptimizeResources", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "resize-images-on-pdf-pages": { - "title": "Resize Images on PDF Pages Using a Config File", - "filename": "resize-images-on-pdf-pages.cs", - "description": "Demonstrates how to read a JSON configuration that defines target dimensions per page, extract each image with ImagePlacementAbsorber, hide the original, and re‑add it with the new size in an Aspose.Pdf document.", + "remove-duplicate-images-pdf": { + "title": "Remove Duplicate Images Pdf", + "filename": "remove-duplicate-images-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "remove-low-resolution-images-from-pdf": { + "title": "Remove Low-Resolution Images from PDF", + "filename": "remove-low-resolution-images-from-pdf.cs", + "description": "Shows how to scan each page of a PDF, use ImagePlacementAbsorber to find images, hide those with DPI lower than 72, optimize resources, and save the result.", "tags": [ "pdf", - "image-resize", - "aspose-pdf", - "json-config", - "csharp" + "image", + "dpi", + "optimization", + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Devices.ImagePlacementAbsorber", + "Aspose.Pdf.ImagePlacementAbsorber", "Aspose.Pdf.ImagePlacement", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Page.AddImage" + "Aspose.Pdf.Document.OptimizeResources", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "add-raster-image-to-pdf-page": { - "title": "Add Raster Image to PDF Page", - "filename": "add-raster-image-to-pdf-page.cs", - "description": "Demonstrates how to insert a raster image (PNG, JPEG, etc.) onto a newly created PDF page using Aspose.Pdf's Image class and the Paragraphs collection.", + "remove-low-resolution-images-from-pdf__v2": { + "title": "Remove Low-Resolution Images from PDF", + "filename": "remove-low-resolution-images-from-pdf__v2.cs", + "description": "Shows how to delete images with a DPI lower than 72 using ImagePlacementAbsorber, hide the low‑resolution images, optimize resources, and save the updated PDF.", "tags": [ - "image", "pdf", - "aspose", - "raster", - "csharp" + "image", + "dpi", + "aspose.pdf", + "optimization" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Image", - "Aspose.Pdf.PageCollection.Add", - "Aspose.Pdf.Page.Paragraphs.Add", + "Aspose.Pdf.Page", + "Aspose.Pdf.ImagePlacementAbsorber", + "Aspose.Pdf.ImagePlacement", + "Aspose.Pdf.ImagePlacement.Hide", + "Aspose.Pdf.Document.OptimizeResources", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "insert-raster-image-into-pdf-page": { - "title": "Insert Raster Image into PDF Page", - "filename": "insert-raster-image-into-pdf-page.cs", - "description": "Shows how to load an existing PDF, define an absolute rectangle, and insert a raster image onto a specific page using Aspose.Pdf.", + "remove-vector-graphic-from-pdf-page": { + "title": "Remove Vector Graphic from PDF Page", + "filename": "remove-vector-graphic-from-pdf-page.cs", + "description": "Demonstrates how to locate vector graphics on a PDF page using GraphicsAbsorber and delete a selected graphic, then save the modified document.", "tags": [ "pdf", - "image", - "insert", - "rectangle", - "Aspose.Pdf" + "vector-graphics", + "graphics-absorber", + "aspose-pdf", + "remove" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Page.AddImage", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Vector.GraphicsAbsorber", + "Aspose.Pdf.Vector.GraphicsAbsorber.Visit", + "Aspose.Pdf.Vector.Graphic.Remove" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "resize-embedded-raster-image": { - "title": "Resize Embedded Raster Image in PDF", - "filename": "resize-embedded-raster-image.cs", - "description": "Demonstrates how to load a PDF, define a rectangle with new dimensions, and replace an embedded raster image by adding it with the specified width and height before saving the document.", + "render-pdf-page-to-png-with-fallback-font": { + "title": "Render PDF Page to PNG with Fallback Font", + "filename": "render-pdf-page-to-png-with-fallback-font.cs", + "description": "Demonstrates how to render the first page of a PDF to a PNG image while specifying a default fallback font using Aspose.Pdf rendering options.", "tags": [ "pdf", - "image", - "resize", - "aspose", - "csharp" + "png", + "rendering", + "fallback-font", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Page.AddImage", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Devices.PngDevice", + "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.Devices.RenderingOptions", + "Aspose.Pdf.Devices.PngDevice.Process" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "replace-image-on-pdf-page": { - "title": "Replace Image on PDF Page", - "filename": "replace-image-on-pdf-page.cs", - "description": "Shows how to locate image placements on a specific PDF page and replace each with a new image loaded from a file stream using Aspose.Pdf.", + "render-pdf-pages-to-jpeg-with-default-font": { + "title": "Render PDF Pages to JPEG with Default Font", + "filename": "render-pdf-pages-to-jpeg-with-default-font.cs", + "description": "Demonstrates how to convert each page of a PDF document to a JPEG image while specifying a default font for missing glyphs using Aspose.Pdf.", "tags": [ - "image-replacement", "pdf", - "aspose-pdf", - "csharp", - "page" + "jpeg", + "rendering", + "default-font", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.ImagePlacementAbsorber", - "Aspose.Pdf.ImagePlacement", - "Aspose.Pdf.ImagePlacement.Replace", - "Aspose.Pdf.Page" + "Aspose.Pdf.Resolution", + "Aspose.Pdf.Devices.JpegDevice", + "Aspose.Pdf.Devices.JpegDevice.RenderingOptions", + "Aspose.Pdf.Devices.JpegDevice.Process" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "delete-raster-image-from-pdf-page": { - "title": "Delete Raster Image from PDF Page", - "filename": "delete-raster-image-from-pdf-page.cs", - "description": "Shows how to remove a specific raster image from a PDF page by deleting its reference in the page resources using Aspose.Pdf.", + "render-pdf-pages-to-png-300-dpi": { + "title": "Render Pdf Pages To Png 300 Dpi", + "filename": "render-pdf-pages-to-png-300-dpi.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "render-pdf-to-multi-page-tiff-lzw-fallback": { + "title": "Render Pdf To Multi Page Tiff Lzw Fallback", + "filename": "render-pdf-to-multi-page-tiff-lzw-fallback.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "render-pdf-to-png-300-dpi-default-font": { + "title": "Render PDF Pages to PNG at 300 DPI with Default Font", + "filename": "render-pdf-to-png-300-dpi-default-font.cs", + "description": "The example loads a PDF, configures a font substitution to use Arial for missing fonts, and renders each page to a PNG image at 300 DPI.", "tags": [ "pdf", - "image", - "delete", - "Aspose.Pdf", - "page" + "png", + "render", + "dpi", + "font-substitution" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Page.Resources", - "Aspose.Pdf.Page.Resources.Images", - "Aspose.Pdf.Page.Resources.Images.Delete", - "Aspose.Pdf.ImageDeleteAction" + "Aspose.Pdf.Devices.PngDevice", + "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.Text.FontRepository", + "Aspose.Pdf.Text.SimpleFontSubstitution" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "extract-raster-images-from-pdf": { - "title": "Extract Raster Images from PDF and Save as PNG", - "filename": "extract-raster-images-from-pdf.cs", - "description": "Loads a PDF document, iterates through each page's image resources, and saves every raster image as an individual PNG file.", + "render-pdf-to-tiff-with-lzw-and-font-fallback": { + "title": "Render PDF to Multi-Page TIFF with LZW Compression and Font Fallback", + "filename": "render-pdf-to-tiff-with-lzw-and-font-fallback.cs", + "description": "The example loads a PDF, applies a default font fallback for missing characters, and renders all pages to a single multi-page TIFF file using LZW compression at 300 DPI.", "tags": [ "pdf", - "image-extraction", - "png", - "aspose-pdf", - "csharp" + "tiff", + "lzw", + "font-fallback", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.XImage", - "Aspose.Pdf.ImageCollection", - "Aspose.Pdf.XImage.Save" + "Aspose.Pdf.PdfSaveOptions", + "Aspose.Pdf.Devices.TiffDevice", + "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.Devices.TiffSettings", + "Aspose.Pdf.Devices.CompressionType", + "Aspose.Pdf.Devices.ColorDepth", + "Aspose.Pdf.Devices.ShapeType" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "extract-images-from-pdf-preserve-format": { - "title": "Extract Images from PDF Preserving Original Format", - "filename": "extract-images-from-pdf-preserve-format.cs", - "description": "Shows how to iterate through PDF pages using Aspose.Pdf, extract each embedded raster image, detect its original format from header bytes, and save the image to disk without conversion.", + "replace-appendix-images-with-placeholder": { + "title": "Replace Appendix Images With Placeholder", + "filename": "replace-appendix-images-with-placeholder.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "replace-image-in-pdf-page": { + "title": "Replace Image In Pdf Page", + "filename": "replace-image-in-pdf-page.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "replace-image-on-pdf-page-with-png": { + "title": "Replace Image On Pdf Page With Png", + "filename": "replace-image-on-pdf-page-with-png.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "replace-image-on-pdf-page": { + "title": "Replace Image on PDF Page", + "filename": "replace-image-on-pdf-page.cs", + "description": "Shows how to locate image placements on a specific PDF page and replace each with a new image loaded from a file stream using Aspose.Pdf.", "tags": [ + "image-replacement", "pdf", - "image-extraction", "aspose-pdf", - "raster", - "file-format" + "csharp", + "page" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.XImage", - "Aspose.Pdf.Page.Resources", - "Aspose.Pdf.XImage.Save" + "Aspose.Pdf.ImagePlacementAbsorber", + "Aspose.Pdf.ImagePlacement", + "Aspose.Pdf.ImagePlacement.Replace", + "Aspose.Pdf.Page" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "extract-images-from-multiple-pdfs": { - "title": "Extract Images from Multiple PDFs", - "filename": "extract-images-from-multiple-pdfs.cs", - "description": "Demonstrates how to batch‑process PDF files in a folder and extract every embedded image, saving them as PNG files with unique names.", + "replace-images-last-page-with-banner": { + "title": "Replace Images on Last PDF Page with Full-Width Banner", + "filename": "replace-images-last-page-with-banner.cs", + "description": "Demonstrates how to hide all existing images on the final page of a PDF and insert a banner image that spans the page width using Aspose.Pdf.", "tags": [ "pdf", - "image-extraction", - "batch", + "image", + "banner", "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.XImage", - "Aspose.Pdf.Page.Resources.Images", - "Aspose.Pdf.XImage.Save" + "Aspose.Pdf.ImagePlacementAbsorber", + "Aspose.Pdf.ImagePlacement", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Page.AddImage", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "add-dicom-image-to-pdf-page": { - "title": "Add DICOM Image to PDF Page using FileStream", - "filename": "add-dicom-image-to-pdf-page.cs", - "description": "Shows how to load an existing PDF, read a DICOM image via a FileStream, and place the image on a page at a defined rectangle using Aspose.Pdf.", + "replace-images-odd-pages-placeholder": { + "title": "Replace Images Odd Pages Placeholder", + "filename": "replace-images-odd-pages-placeholder.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "replace-images-odd-pages-qr-placeholder": { + "title": "Replace Images on Odd Pages with QR Code Placeholder", + "filename": "replace-images-odd-pages-qr-placeholder.cs", + "description": "Demonstrates how to iterate through odd‑numbered PDF pages, locate each image, and replace it with a QR‑code placeholder while preserving a reference to the original image.", "tags": [ - "dicom", "pdf", - "image", - "aspose-pdf", - "csharp" + "image-replacement", + "qr-code", + "odd-pages", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Image", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Page.AddImage" + "Aspose.Pdf.Text.ImagePlacementAbsorber", + "Aspose.Pdf.Text.ImagePlacement", + "Aspose.Pdf.XImage", + "Aspose.Pdf.Resources.Images.Replace", + "Aspose.Pdf.XImage.TrySetAlternativeText" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "insert-dicom-image-with-custom-size": { - "title": "Insert DICOM Image with Custom Size into PDF", - "filename": "insert-dicom-image-with-custom-size.cs", - "description": "Shows how to add a DICOM image to a PDF document and control its resolution by setting explicit Width and Height on an ImageStamp before stamping.", + "replace-images-on-odd-pages-with-placeholder": { + "title": "Replace Images on Odd PDF Pages with Placeholder", + "filename": "replace-images-on-odd-pages-with-placeholder.cs", + "description": "Shows how to iterate through a PDF, locate image placements on odd‑numbered pages, and replace each image with a placeholder graphic while keeping the original dimensions and positioning.", "tags": [ - "dicom", - "image", "pdf", - "custom-size", - "aspose-pdf" + "image-replacement", + "odd-pages", + "placeholder", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.ImageStamp", - "Aspose.Pdf.Page.AddStamp", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.PageCollection" + "Aspose.Pdf.ImagePlacementAbsorber", + "Aspose.Pdf.ImagePlacement", + "Aspose.Pdf.ImagePlacement.Replace", + "Aspose.Pdf.Page.Accept" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "render-pdf-page-to-png-with-fallback-font": { - "title": "Render PDF Page to PNG with Fallback Font", - "filename": "render-pdf-page-to-png-with-fallback-font.cs", - "description": "Demonstrates how to render the first page of a PDF to a PNG image while specifying a default fallback font using Aspose.Pdf rendering options.", + "replace-images-on-pdf-page": { + "title": "Replace Images on a PDF Page Using a Dictionary", + "filename": "replace-images-on-pdf-page.cs", + "description": "Demonstrates how to replace specific images on a given PDF page by mapping image indices to new image files using Aspose.Pdf.", "tags": [ "pdf", - "png", - "rendering", - "fallback-font", - "aspose-pdf" + "image-replacement", + "dictionary", + "aspnet", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Devices.PngDevice", - "Aspose.Pdf.Devices.Resolution", - "Aspose.Pdf.Devices.RenderingOptions", - "Aspose.Pdf.Devices.PngDevice.Process" + "Aspose.Pdf.Page", + "Aspose.Pdf.XImageCollection", + "Aspose.Pdf.XImageCollection.Replace", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "render-pdf-pages-to-jpeg-with-default-font": { - "title": "Render PDF Pages to JPEG with Default Font", - "filename": "render-pdf-pages-to-jpeg-with-default-font.cs", - "description": "Demonstrates how to convert each page of a PDF document to a JPEG image while specifying a default font for missing glyphs using Aspose.Pdf.", + "replace-images-with-logo": { + "title": "Replace Images on PDF Page with New Logo", + "filename": "replace-images-with-logo.cs", + "description": "Creates a sample PDF containing an image, then uses ImagePlacementAbsorber to locate all image placements and replaces each with a new in‑memory logo image.", "tags": [ + "image-replacement", "pdf", - "jpeg", - "rendering", - "default-font", - "aspose" + "aspose-pdf", + "image-absorber", + "logo" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Resolution", - "Aspose.Pdf.Devices.JpegDevice", - "Aspose.Pdf.Devices.JpegDevice.RenderingOptions", - "Aspose.Pdf.Devices.JpegDevice.Process" + "Aspose.Pdf.Page", + "Aspose.Pdf.Drawing.Image", + "Aspose.Pdf.ImagePlacementAbsorber", + "Aspose.Pdf.ImagePlacement" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "generate-png-thumbnails-for-pdf-pages": { - "title": "Generate PNG Thumbnails for PDF Pages", - "filename": "generate-png-thumbnails-for-pdf-pages.cs", - "description": "Creates 150x200 pixel PNG thumbnail images for each page of a PDF document using Aspose.Pdf's ThumbnailDevice.", + "replace-index-page-images-with-banner": { + "title": "Replace Index Page Images with a Banner Image", + "filename": "replace-index-page-images-with-banner.cs", + "description": "Shows how to replace every image on the first (index) page of a PDF with a single banner image using Aspose.Pdf.", "tags": [ "pdf", - "thumbnail", - "png", - "aspose", + "image-replacement", + "branding", + "aspose.pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Devices.ThumbnailDevice", - "Aspose.Pdf.Devices.ThumbnailDevice.Process", - "Aspose.Pdf.PageCollection", - "Aspose.Pdf.Page" + "Aspose.Pdf.Page", + "Aspose.Pdf.XImageCollection", + "Aspose.Pdf.XImageCollection.Replace", + "Aspose.Pdf.Page.Resources" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "convert-pdf-pages-to-png-with-default-font": { - "title": "Convert PDF Pages to PNG with Default Font", - "filename": "convert-pdf-pages-to-png-with-default-font.cs", - "description": "Shows how to load a PDF, set RenderingOptions.DefaultFontName to Arial, and convert each page to a PNG image using Aspose.Pdf.", + "replace-jpeg-with-png-in-pdf": { + "title": "Replace JPEG Images with PNG in PDF", + "filename": "replace-jpeg-with-png-in-pdf.cs", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, iterate through each page and image resource, and replace every JPEG image with a PNG file while preserving the original layout.", "tags": [ "pdf", - "image-conversion", - "default-font", - "png", - "aspose-pdf" + "image-replacement", + "aspose-pdf", + "jpeg", + "png" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Devices.RenderingOptions", - "Aspose.Pdf.Devices.PngDevice", - "Aspose.Pdf.Devices.PngDevice.Process" + "Aspose.Pdf.XImageCollection", + "Aspose.Pdf.ImageCollection.Replace", + "Aspose.Pdf.Resources" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "render-pdf-to-tiff-with-lzw-and-font-fallback": { - "title": "Render PDF to Multi-Page TIFF with LZW Compression and Font Fallback", - "filename": "render-pdf-to-tiff-with-lzw-and-font-fallback.cs", - "description": "The example loads a PDF, applies a default font fallback for missing characters, and renders all pages to a single multi-page TIFF file using LZW compression at 300 DPI.", + "replace-jpeg-with-png-on-pdf-page": { + "title": "Replace JPEG with High‑Resolution PNG on PDF Page", + "filename": "replace-jpeg-with-png-on-pdf-page.cs", + "description": "Shows how to replace an existing JPEG image on the third page of a PDF with a higher‑resolution PNG using Aspose.Pdf's Resources.Images collection.", "tags": [ "pdf", - "tiff", - "lzw", - "font-fallback", + "image-replacement", + "aspose-pdf", + "resources", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.XImageCollection", + "Aspose.Pdf.XImageCollection.Replace", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:52:39Z", + "status": "verified" + }, + "replace-odd-page-images-with-qr-placeholder": { + "title": "Replace Odd Page Images With Qr Placeholder", + "filename": "replace-odd-page-images-with-qr-placeholder.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "replace-pdf-images-with-icc-profile-jpegs": { + "title": "Replace PDF Images with ICC‑Profile JPEGs", + "filename": "replace-pdf-images-with-icc-profile-jpegs.cs", + "description": "Shows how to iterate through each page of a PDF and replace all embedded images with a JPEG that contains an embedded ICC color profile using Aspose.Pdf.", + "tags": [ + "pdf", + "image-replacement", + "icc", + "color-management", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PdfSaveOptions", - "Aspose.Pdf.Devices.TiffDevice", - "Aspose.Pdf.Devices.Resolution", - "Aspose.Pdf.Devices.TiffSettings", - "Aspose.Pdf.Devices.CompressionType", - "Aspose.Pdf.Devices.ColorDepth", - "Aspose.Pdf.Devices.ShapeType" + "Aspose.Pdf.Page", + "Aspose.Pdf.XImageCollection", + "Aspose.Pdf.XImageCollection.Replace", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "export-pdf-pages-to-bmp-300-dpi": { - "title": "Export PDF Pages to BMP Images at 300 DPI", - "filename": "export-pdf-pages-to-bmp-300-dpi.cs", - "description": "Shows how to convert each page of a PDF into a 300‑DPI BMP image using Aspose.Pdf's BmpDevice with a custom resolution.", + "replace-pdf-images-with-icc-profile": { + "title": "Replace Pdf Images With Icc Profile", + "filename": "replace-pdf-images-with-icc-profile.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "replace-pdf-images-with-placeholder": { + "title": "Replace PDF Images with Placeholder and Add Hyperlink", + "filename": "replace-pdf-images-with-placeholder.cs", + "description": "Shows how to replace each image in a PDF with a small placeholder PNG and overlay a link annotation that points to the original image location.", "tags": [ "pdf", - "bmp", - "export", - "300dpi", - "rendering" + "image-replacement", + "link-annotation", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Resolution", - "Aspose.Pdf.Devices.BmpDevice", - "Aspose.Pdf.Devices.BmpDevice.Process", - "Aspose.Pdf.Page" + "Aspose.Pdf.ImagePlacementAbsorber", + "Aspose.Pdf.ImagePlacement", + "Aspose.Pdf.XImage", + "Aspose.Pdf.Page.Resources.Images.Replace", + "Aspose.Pdf.Annotations.LinkAnnotation", + "Aspose.Pdf.Annotations.GoToURIAction" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "convert-pdf-to-multi-page-tiff-default-font": { - "title": "Convert PDF to Multi-Page TIFF with Default Font", - "filename": "convert-pdf-to-multi-page-tiff-default-font.cs", - "description": "Demonstrates converting an entire PDF document into a multi‑page TIFF file using Aspose.Pdf, setting resolution, TIFF options, and applying a default font for rendering missing fonts.", + "replace-pdf-images-with-placeholder__v2": { + "title": "Replace All PDF Images with a Placeholder", + "filename": "replace-pdf-images-with-placeholder__v2.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, iterate through each page, replace every embedded image with a low‑resolution placeholder image, and save the modified document.", "tags": [ "pdf", - "tiff", - "conversion", - "default-font", - "resolution" + "image-replacement", + "placeholder", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Devices.Resolution", - "Aspose.Pdf.Devices.TiffSettings", - "Aspose.Pdf.Devices.TiffDevice", - "Aspose.Pdf.Devices.TiffDevice.RenderingOptions", - "Aspose.Pdf.Devices.TiffDevice.Process" + "Aspose.Pdf.Page", + "Aspose.Pdf.XImageCollection", + "Aspose.Pdf.XImageCollection.Replace" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "extract-vector-graphics-to-svg": { - "title": "Extract Vector Graphics from PDF Page to SVG", - "filename": "extract-vector-graphics-to-svg.cs", - "description": "Demonstrates using GraphicsAbsorber to collect vector graphics from a specific PDF page and converting them to an SVG file for further manipulation.", + "replace-pdf-images-with-placeholders": { + "title": "Replace Pdf Images With Placeholders", + "filename": "replace-pdf-images-with-placeholders.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "replace-pdf-images-with-qr-placeholder": { + "title": "Replace PDF Images with QR Code Placeholder", + "filename": "replace-pdf-images-with-qr-placeholder.cs", + "description": "Shows how to iterate through a PDF, replace each embedded image with a QR‑code placeholder image, and store the original image name as alternative text using Aspose.Pdf.", "tags": [ "pdf", - "vector-graphics", - "svg", - "extraction", + "image-replacement", + "qr-code", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Page.HasVectorGraphics", - "Aspose.Pdf.Vector.GraphicsAbsorber", - "Aspose.Pdf.Vector.GraphicsAbsorber.Visit", - "Aspose.Pdf.Vector.SvgExtractor", - "Aspose.Pdf.Vector.SvgExtractor.Extract" + "Aspose.Pdf.ImageCollection", + "Aspose.Pdf.XImage", + "Aspose.Pdf.ImageCollection.Replace", + "Aspose.Pdf.XImage.TrySetAlternativeText" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "move-vector-graphic-position": { - "title": "Move Vector Graphic to New Position Using Matrix", - "filename": "move-vector-graphic-position.cs", - "description": "Demonstrates how to shift a vector graphic on a PDF page by updating its Position or applying a translation matrix with Aspose.Pdf.", + "replace-raster-with-vector": { + "title": "Replace Raster With Vector", + "filename": "replace-raster-with-vector.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "replace-specific-images-on-pdf-page": { + "title": "Replace Specific Images On Pdf Page", + "filename": "replace-specific-images-on-pdf-page.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "replace-title-page-banner": { + "title": "Replace Title Page Images with High‑Resolution Banner", + "filename": "replace-title-page-banner.cs", + "description": "Demonstrates how to load a PDF, locate the title page, and replace all existing images on that page with a high‑resolution banner image while preserving the original text layout.", "tags": [ - "vector-graphics", - "matrix", - "pdf-manipulation", - "positioning", - "aspose-pdf" + "pdf", + "image-replacement", + "banner", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Page.HasVectorGraphics", - "Aspose.Pdf.Vector.Matrix", - "Aspose.Pdf.Vector.Matrix.Translate", - "Aspose.Pdf.Text.Point", + "Aspose.Pdf.Page.Resources", + "Aspose.Pdf.ImageCollection", + "Aspose.Pdf.ImageCollection.Replace", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "transfer-vector-graphic-between-pdf-pages": { - "title": "Transfer Vector Graphic Between PDF Pages", - "filename": "transfer-vector-graphic-between-pdf-pages.cs", - "description": "Demonstrates extracting vector graphics from a source PDF page with GraphicsAbsorber, repositioning them, and adding them to another PDF page.", + "replace-title-page-images-with-banner": { + "title": "Replace Title Page Images With Banner", + "filename": "replace-title-page-images-with-banner.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "replace-vector-graphic-with-raster-image": { + "title": "Replace Vector Graphic with Raster Image in PDF", + "filename": "replace-vector-graphic-with-raster-image.cs", + "description": "Demonstrates loading a PDF, detecting pages with vector graphics, and overlaying a raster PNG in the same location while preserving layout, then flattening transparency and saving the result.", "tags": [ - "vector-graphic", "pdf", - "page-transfer", - "position", - "aspose-pdf" + "vector-graphics", + "raster-image", + "aspose-pdf", + "image-replace" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Vector.GraphicsAbsorber", - "Aspose.Pdf.Vector.GraphicElement", - "Aspose.Pdf.Point" + "Aspose.Pdf.Page.HasVectorGraphics", + "Aspose.Pdf.Page.AddImage", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Document.FlattenTransparency", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "remove-vector-graphic-from-pdf-page": { - "title": "Remove Vector Graphic from PDF Page", - "filename": "remove-vector-graphic-from-pdf-page.cs", - "description": "Demonstrates how to locate vector graphics on a PDF page using GraphicsAbsorber and delete a selected graphic, then save the modified document.", + "replace-vector-with-raster-image": { + "title": "Replace Vector With Raster Image", + "filename": "replace-vector-with-raster-image.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "resize-embedded-raster-image": { + "title": "Resize Embedded Raster Image in PDF", + "filename": "resize-embedded-raster-image.cs", + "description": "Demonstrates how to load a PDF, define a rectangle with new dimensions, and replace an embedded raster image by adding it with the specified width and height before saving the document.", "tags": [ "pdf", - "vector-graphics", - "graphics-absorber", - "aspose-pdf", - "remove" + "image", + "resize", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Vector.GraphicsAbsorber", - "Aspose.Pdf.Vector.GraphicsAbsorber.Visit", - "Aspose.Pdf.Vector.Graphic.Remove" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Page.AddImage", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "copy-vector-graphics-between-pdf-pages": { - "title": "Copy Vector Graphics Between PDF Pages", - "filename": "copy-vector-graphics-between-pdf-pages.cs", - "description": "Demonstrates how to extract vector graphic objects from a source PDF page using GraphicsAbsorber and insert each graphic individually onto a target PDF page.", + "resize-images-half-size": { + "title": "Resize Images on PDF Pages to Half Size", + "filename": "resize-images-half-size.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, iterate through each page and its paragraphs, detect Image objects, scale them to 50 % of their original dimensions, and save the modified document.", "tags": [ - "vector-graphics", "pdf", - "aspnet", - "graphics-absorber", - "page-manipulation" + "image", + "resize", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Vector.GraphicsAbsorber", - "Aspose.Pdf.Vector.GraphicsAbsorber.Visit", - "Aspose.Pdf.Vector.GraphicObject.AddOnPage" + "Aspose.Pdf.Image", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Image.ImageScale" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "add-vector-graphics-to-pdf-page": { - "title": "Add Vector Graphics to a PDF Page", - "filename": "add-vector-graphics-to-pdf-page.cs", - "description": "Shows how to create a new PDF page, build a Graph with rectangle, ellipse, and line shapes, and add the vector graphics to the document using Aspose.Pdf.", + "resize-images-on-pdf-pages": { + "title": "Resize Images on PDF Pages Using a Config File", + "filename": "resize-images-on-pdf-pages.cs", + "description": "Demonstrates how to read a JSON configuration that defines target dimensions per page, extract each image with ImagePlacementAbsorber, hide the original, and re‑add it with the new size in an Aspose.Pdf document.", "tags": [ "pdf", - "vector-graphics", - "shapes", - "graph", - "aspose" + "image-resize", + "aspose-pdf", + "json-config", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.Ellipse", - "Aspose.Pdf.Drawing.Line", - "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Color" + "Aspose.Pdf.Devices.ImagePlacementAbsorber", + "Aspose.Pdf.ImagePlacement", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Page.AddImage" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "batch-extract-vector-graphics-from-pdfs": { - "title": "Batch Extract Vector Graphics from PDFs", - "filename": "batch-extract-vector-graphics-from-pdfs.cs", - "description": "Loads all PDF files from a specified input folder, iterates through each page, and extracts any vector graphics as SVG files, storing them in separate subfolders per document and page.", + "resize-pdf-images-using-config-scale-factor": { + "title": "Resize Images in PDF Using Configurable Scale Factor", + "filename": "resize-pdf-images-using-config-scale-factor.cs", + "description": "The example reads a scaling factor from a configuration file and applies it to all images in a PDF, resizing them before saving the document.", "tags": [ "pdf", - "vector", - "svg", - "batch", - "extraction" + "image-scaling", + "configuration", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Vector.SvgExtractor", - "Aspose.Pdf.Page.HasVectorGraphics", - "Aspose.Pdf.Document.Pages" + "Aspose.Pdf.Image", + "Aspose.Pdf.Page.Paragraphs", + "Aspose.Pdf.Image.ImageScale", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "add-alternative-text-to-pdf-images": { - "title": "Add Alternative Text to PDF Images", - "filename": "add-alternative-text-to-pdf-images.cs", - "description": "Demonstrates how to load a PDF, iterate through its pages and images, set alternative text for each image to improve accessibility, and save the updated document.", + "resize-pdf-images-using-config-scale": { + "title": "Resize Images in PDF Using Configurable Scale Factor", + "filename": "resize-pdf-images-using-config-scale.cs", + "description": "Demonstrates loading a scaling factor from appsettings.json and applying it to all image objects in a PDF using Aspose.Pdf, then saving the modified document.", "tags": [ "pdf", - "accessibility", - "image", - "alt-text", - "aspose-pdf" + "image-scaling", + "aspose-pdf", + "configuration", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.XImage", - "Aspose.Pdf.XImage.TrySetAlternativeText", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Image", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Page.Paragraphs" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, + "resize-pdf-images-using-config": { + "title": "Resize Pdf Images Using Config", + "filename": "resize-pdf-images-using-config.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "resize-pdf-images-using-configurable-scale": { + "title": "Resize Pdf Images Using Configurable Scale", + "filename": "resize-pdf-images-using-configurable-scale.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "retrieve-image-alt-text": { "title": "Retrieve Alternative Text from PDF Images", "filename": "retrieve-image-alt-text.cs", @@ -1539,92 +1907,54 @@ "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "add-image-with-alt-text-to-pdf": { - "title": "Add Image with Alternative Text to PDF", - "filename": "add-image-with-alt-text-to-pdf.cs", - "description": "Shows how to insert an image into an existing PDF document and assign alternative (alt) text for accessibility using Aspose.Pdf.", + "transfer-vector-graphic-between-pdf-pages": { + "title": "Transfer Vector Graphic Between PDF Pages", + "filename": "transfer-vector-graphic-between-pdf-pages.cs", + "description": "Demonstrates extracting vector graphics from a source PDF page with GraphicsAbsorber, repositioning them, and adding them to another PDF page.", "tags": [ + "vector-graphic", "pdf", - "image", - "alt-text", - "accessibility", + "page-transfer", + "position", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Page.AddImage", - "Aspose.Pdf.XImage", - "Aspose.Pdf.XImage.TrySetAlternativeText" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:52:39Z", - "status": "verified" - }, - "render-pdf-to-png-300-dpi-default-font": { - "title": "Render PDF Pages to PNG at 300 DPI with Default Font", - "filename": "render-pdf-to-png-300-dpi-default-font.cs", - "description": "The example loads a PDF, configures a font substitution to use Arial for missing fonts, and renders each page to a PNG image at 300 DPI.", - "tags": [ - "pdf", - "png", - "render", - "dpi", - "font-substitution" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Devices.PngDevice", - "Aspose.Pdf.Devices.Resolution", - "Aspose.Pdf.Text.FontRepository", - "Aspose.Pdf.Text.SimpleFontSubstitution" + "Aspose.Pdf.Vector.GraphicsAbsorber", + "Aspose.Pdf.Vector.GraphicElement", + "Aspose.Pdf.Point" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:52:39Z", "status": "verified" }, - "convert-pdf-pages-to-png-with-default-font__v2": { - "title": "Convert PDF Pages to PNG with Default Font Override", - "filename": "convert-pdf-pages-to-png-with-default-font__v2.cs", - "description": "Demonstrates how to set RenderingOptions.DefaultFontName to \"Times New Roman\" and convert each page of a PDF document to PNG images using Aspose.Pdf.", - "tags": [ - "pdf", - "image-conversion", - "default-font", - "png", - "aspose" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Devices.Resolution", - "Aspose.Pdf.Devices.PngDevice", - "Aspose.Pdf.Devices.RenderingOptions", - "Aspose.Pdf.Devices.PngDevice.Process" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:52:39Z", + "transfer-vector-graphic-to-another-pdf-page": { + "title": "Transfer Vector Graphic To Another Pdf Page", + "filename": "transfer-vector-graphic-to-another-pdf-page.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "replace-vector-graphic-with-raster-image": { - "title": "Replace Vector Graphic with Raster Image in PDF", - "filename": "replace-vector-graphic-with-raster-image.cs", - "description": "Demonstrates loading a PDF, detecting pages with vector graphics, and overlaying a raster PNG in the same location while preserving layout, then flattening transparency and saving the result.", + "vectorize-pdf-replace-raster-with-svg": { + "title": "Vectorize PDF Pages by Replacing Raster Images with SVG", + "filename": "vectorize-pdf-replace-raster-with-svg.cs", + "description": "Shows how to extract vector graphics from each PDF page as SVG, substitute raster pages with the SVG version when possible, and rebuild the PDF using Aspose.Pdf.", "tags": [ "pdf", - "vector-graphics", - "raster-image", + "vectorization", + "svg", "aspose-pdf", - "image-replace" + "image-replacement" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Page.HasVectorGraphics", - "Aspose.Pdf.Page.AddImage", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Document.FlattenTransparency", + "Aspose.Pdf.Page.TrySaveVectorGraphics", + "Aspose.Pdf.SvgLoadOptions", + "Aspose.Pdf.Document.Pages.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", diff --git a/working-with-tables/AGENTS.md b/working-with-tables/AGENTS.md index 42b35746c..3c08776b1 100644 --- a/working-with-tables/AGENTS.md +++ b/working-with-tables/AGENTS.md @@ -8,7 +8,7 @@ parent: ../agents.md # AGENTS - working-with-tables -> **Working with tables** in PDF using C# / .NET -- **96** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. +> **Working with tables** in PDF using C# / .NET -- **153** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. ## Persona @@ -23,23 +23,23 @@ See the root [agents.md](../agents.md) for repository-wide conventions and bound ## Required Namespaces -- `using Aspose.Pdf;` (96/96 files) ← category-specific -- `using Aspose.Pdf.Text;` (70/96 files) ← category-specific -- `using Aspose.Pdf.Drawing;` (14/96 files) -- `using Aspose.Pdf.LogicalStructure;` (4/96 files) -- `using Aspose.Pdf.Tagged;` (4/96 files) -- `using Aspose.Pdf.Forms;` (2/96 files) -- `using Aspose.Pdf.Annotations;` (1/96 files) -- `using Aspose.Pdf.Devices;` (1/96 files) -- `using System;` (96/96 files) -- `using System.IO;` (72/96 files) -- `using System.Data;` (13/96 files) -- `using System.Collections.Generic;` (8/96 files) -- `using System.Linq;` (8/96 files) -- `using System.Xml.Linq;` (2/96 files) -- `using System.Globalization;` (1/96 files) -- `using System.Text;` (1/96 files) -- `using System.Text.Json;` (1/96 files) +- `using Aspose.Pdf;` (96/153 files) ← category-specific +- `using Aspose.Pdf.Text;` (70/153 files) +- `using Aspose.Pdf.Drawing;` (14/153 files) +- `using Aspose.Pdf.LogicalStructure;` (4/153 files) +- `using Aspose.Pdf.Tagged;` (4/153 files) +- `using Aspose.Pdf.Forms;` (2/153 files) +- `using Aspose.Pdf.Annotations;` (1/153 files) +- `using Aspose.Pdf.Devices;` (1/153 files) +- `using System;` (96/153 files) +- `using System.IO;` (72/153 files) +- `using System.Data;` (13/153 files) +- `using System.Collections.Generic;` (8/153 files) +- `using System.Linq;` (8/153 files) +- `using System.Xml.Linq;` (2/153 files) +- `using System.Globalization;` (1/153 files) +- `using System.Text;` (1/153 files) +- `using System.Text.Json;` (1/153 files) ## Common Code Pattern @@ -58,39 +58,39 @@ using (Document doc = new Document("input.pdf")) | File | Title | Key APIs | Description | |------|-------|----------|-------------| | [add-auto-numbered-column-to-pdf-table](./add-auto-numbered-column-to-pdf-table.cs) | Add Auto‑Numbered Column to PDF Table | `Document`, `Page`, `Table` | Shows how to create a PDF table with Aspose.Pdf and fill the first column with sequential numbers... | +| [add-background-color-to-table-cell](./add-background-color-to-table-cell.cs) | Add background color to table cell | | Add background color to table cell | | [add-centered-paragraph-to-table-cell](./add-centered-paragraph-to-table-cell.cs) | Add Centered Paragraph to Table Cell | `Document`, `Page`, `Table` | Demonstrates how to create a PDF table with Aspose.Pdf and insert a paragraph into a cell with ho... | | [add-checkbox-form-field-in-table-cell](./add-checkbox-form-field-in-table-cell.cs) | Add Checkbox Form Field Inside Table Cell | `Document`, `Page`, `Table` | Shows how to create a PDF with a table and place a checkbox form field inside one of the table's ... | +| [add-checkbox-in-table-cell](./add-checkbox-in-table-cell.cs) | Add checkbox in table cell | | Add checkbox in table cell | +| [add-footer-row-to-pdf-table](./add-footer-row-to-pdf-table.cs) | Add footer row to pdf table | | Add footer row to pdf table | +| [add-footnote-references-in-pdf-table](./add-footnote-references-in-pdf-table.cs) | Add footnote references in pdf table | | Add footnote references in pdf table | | [add-footnote-references-to-table-cells](./add-footnote-references-to-table-cells.cs) | Add Footnote References to Table Cells in PDF | `Document`, `Page`, `Table` | Shows how to insert superscript footnote markers inside table cells, attach Aspose.Pdf footnote n... | +| [add-gradient-background-behind-table](./add-gradient-background-behind-table.cs) | Add gradient background behind table | | Add gradient background behind table | +| [add-hyperlink-to-table-cell](./add-hyperlink-to-table-cell.cs) | Add hyperlink to table cell | | Add hyperlink to table cell | | [add-list-items-in-table-cell](./add-list-items-in-table-cell.cs) | Add List Items Inside a Table Cell | `Document`, `Page`, `Table` | Shows how to create a bullet list within a PDF table cell by adding TextFragment paragraphs with ... | | [add-multiline-text-to-table-cell](./add-multiline-text-to-table-cell.cs) | Add Multiline Text to Table Cell in PDF | `Document`, `Page`, `Table` | Demonstrates how to insert multiline text into a PDF table cell by adding separate TextFragment o... | +| [add-numbered-list-in-table-cell](./add-numbered-list-in-table-cell.cs) | Add numbered list in table cell | | Add numbered list in table cell | | [add-radio-button-group-in-table-cell](./add-radio-button-group-in-table-cell.cs) | Add Radio Button Group Inside a Table Cell | `Document`, `Page`, `Table` | Demonstrates how to place a group of radio buttons inside a table cell by creating a RadioButtonF... | | [add-solid-border-to-pdf-table](./add-solid-border-to-pdf-table.cs) | Add Solid Border to PDF Table | `Document`, `Table`, `BorderInfo` | Demonstrates how to load an existing PDF, create a table, apply a solid black border to the entir... | +| [add-styled-text-to-table-cell](./add-styled-text-to-table-cell.cs) | Add styled text to table cell | | Add styled text to table cell | | [add-table-footer-to-pdf](./add-table-footer-to-pdf.cs) | Add Table Footer Row Repeated on Each PDF Page | `Document`, `Table`, `ITaggedContent` | Demonstrates how to add a visual table with a footer row that repeats at the bottom of each page ... | | [add-table-to-specific-pdf-page](./add-table-to-specific-pdf-page.cs) | Add Table to Specific PDF Page | `Document`, `Page`, `Table` | Shows how to insert a formatted table onto a chosen page of a PDF document using Aspose.Pdf, incl... | | [add-table-with-background-color](./add-table-with-background-color.cs) | Add Table with Background Color to PDF | `Document`, `Page`, `Table` | Demonstrates creating a PDF, inserting a table, and applying a solid background color while notin... | | [add-table-with-semi-transparent-background](./add-table-with-semi-transparent-background.cs) | Add Table with Semi-Transparent Background to PDF | `Document`, `Page`, `Table` | Demonstrates how to create a PDF, add a table, and set the table's background color with opacity ... | | [add-text-fragment-to-table-cell](./add-text-fragment-to-table-cell.cs) | Add TextFragment with Font and Size to a PDF Table Cell | `Document`, `Table`, `Row` | Demonstrates how to insert text with a specific font and size into a table cell by creating a Tex... | | [adjust-table-column-widths-proportionally](./adjust-table-column-widths-proportionally.cs) | Adjust Table Column Widths Proportionally in PDF | `Document`, `Page`, `Table` | Shows how to compute the total width of a table's columns, convert each width to a percentage of ... | +| [adjust-table-column-widths](./adjust-table-column-widths.cs) | Adjust table column widths | | Adjust table column widths | +| [alternating-row-colors-pdf-table](./alternating-row-colors-pdf-table.cs) | Alternating row colors pdf table | | Alternating row colors pdf table | +| [apply-different-autofit-behavior-to-tables](./apply-different-autofit-behavior-to-tables.cs) | Apply different autofit behavior to tables | | Apply different autofit behavior to tables | | [apply-different-autofit-behaviors-to-tables](./apply-different-autofit-behaviors-to-tables.cs) | Apply Different AutoFit Behaviors to Tables in a PDF | `Document`, `Page`, `Table` | Demonstrates how to add multiple tables to a PDF and set distinct ColumnAdjustment (AutoFitToCont... | | [apply-double-border-to-pdf-table](./apply-double-border-to-pdf-table.cs) | Apply Double Border to PDF Table | `Document`, `Page`, `Table` | Creates a PDF with a 3x3 table and sets a double‑border effect by configuring BorderInfo with wid... | +| [apply-solid-border-to-pdf-table](./apply-solid-border-to-pdf-table.cs) | Apply solid border to pdf table | | Apply solid border to pdf table | | [auto-fit-table-columns-to-content](./auto-fit-table-columns-to-content.cs) | Auto‑Fit Table Columns to Content in PDF | `Document`, `Page`, `Table` | Loads an existing PDF, creates a table, sets ColumnAdjustment to AutoFitToContent so columns resi... | | [auto-fit-table-row-height](./auto-fit-table-row-height.cs) | Auto‑Fit Table Row Height in PDF | `Document`, `Page`, `Table` | Demonstrates how to let a table row automatically adjust its height to fit wrapped cell content b... | -| [batch-add-table-with-logo-to-pdfs](./batch-add-table-with-logo-to-pdfs.cs) | Batch Add Table with Company Logo to PDFs | `Document`, `Table`, `Image` | Demonstrates how to iterate through a folder of PDF files, insert a two‑column table containing a... | -| [batch-replace-tables-in-multiple-pdfs](./batch-replace-tables-in-multiple-pdfs.cs) | Batch Replace Tables in Multiple PDFs | `Document`, `TableAbsorber`, `Visit` | Demonstrates how to iterate over PDF files, locate each table with TableAbsorber, create a replac... | -| [calculate-remaining-page-space-add-table](./calculate-remaining-page-space-add-table.cs) | Calculate Remaining Page Space and Add Table to PDF | `Document`, `Page`, `CalculateContentBBox` | Demonstrates how to compute the usable vertical space on a PDF page by subtracting margins and ex... | -| [center-table-horizontally](./center-table-horizontally.cs) | Center Table Horizontally in PDF | `Document`, `Page`, `Table` | Shows how to create a table, set its HorizontalAlignment to Center, and add it to a PDF page usin... | -| [check-table-break-across-pages](./check-table-break-across-pages.cs) | Check Table Break Across Pages | `Document`, `Page`, `Table` | Creates a PDF with a simple two‑column table, adds it to a page, and reads the Table.IsBroken pro... | -| [conditional-formatting-table-cells](./conditional-formatting-table-cells.cs) | Conditional Formatting of Table Cells in PDF | `Document`, `Page`, `Table` | Demonstrates how to create a PDF table with Aspose.Pdf, add data rows, and apply background color... | -| [count-tables-in-pdf](./count-tables-in-pdf.cs) | Count Tables in PDF using TableAbsorber | `Document`, `TableAbsorber`, `Visit` | Shows how to use Aspose.Pdf's TableAbsorber to locate and count tables in a PDF document. | -| [create-fixed-width-table-pdf](./create-fixed-width-table-pdf.cs) | Create Fixed-Width Table in PDF | `Document`, `Page`, `Table` | Shows how to set a table's total width to 500 points, add content, and save it as a PDF using Asp... | -| [create-pdf-report-multiple-tables](./create-pdf-report-multiple-tables.cs) | Create PDF Report with Multiple Tables | `Document`, `Page`, `TextFragment` | Demonstrates building a PDF document that contains several tables, each imported from a DataTable... | -| [create-pdf-table-alternating-row-colors](./create-pdf-table-alternating-row-colors.cs) | Create PDF Table with Alternating Row Colors | `Document`, `Page`, `Table` | Shows how to generate a PDF table using Aspose.Pdf and apply alternating background colors to eac... | -| [create-pdf-table-dynamic-row-count](./create-pdf-table-dynamic-row-count.cs) | Create PDF Table with Dynamic Row Count | `Document`, `Page`, `Table` | Demonstrates building a DataTable at runtime, importing it into an Aspose.Pdf.Table, and saving t... | -| [create-pdf-table-from-datatable](./create-pdf-table-from-datatable.cs) | Create PDF Table from a DataTable with Aspose.Pdf | `Document`, `Page`, `Table` | Demonstrates how to fill an in‑memory DataTable, import it into an Aspose.Pdf Table, and save the... | -| ... | | | *and 66 more files* | +| ... | | | *and 123 more files* | ## Category Statistics -- Total examples: 96 +- Total examples: 153 ## Category-Specific Tips @@ -134,5 +134,5 @@ using (Document doc = new Document("input.pdf")) - Review code examples in this folder for working-with-tables patterns -Updated: 2026-08-20 | Run: `20260820_001147_12d7b3` +Updated: 2026-09-10 | Run: `20260910_054408_87a7f4` diff --git a/working-with-tables/README.md b/working-with-tables/README.md new file mode 100644 index 000000000..3217c2267 --- /dev/null +++ b/working-with-tables/README.md @@ -0,0 +1,172 @@ +# Working with tables + +> **Working with tables** in PDF using C# / .NET -- **153** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. + +- Category: `working-with-tables` +- Examples: 153 +- NuGet: `Aspose.PDF 26.8.0` -- target `net10.0` + +## Examples + +- [`add-auto-numbered-column-to-pdf-table.cs`](./add-auto-numbered-column-to-pdf-table.cs) -- Add auto numbered column to pdf table +- [`add-background-color-to-table-cell.cs`](./add-background-color-to-table-cell.cs) -- Add background color to table cell +- [`add-centered-paragraph-to-table-cell.cs`](./add-centered-paragraph-to-table-cell.cs) -- Add centered paragraph to table cell +- [`add-checkbox-form-field-in-table-cell.cs`](./add-checkbox-form-field-in-table-cell.cs) -- Add checkbox form field in table cell +- [`add-checkbox-in-table-cell.cs`](./add-checkbox-in-table-cell.cs) -- Add checkbox in table cell +- [`add-footer-row-to-pdf-table.cs`](./add-footer-row-to-pdf-table.cs) -- Add footer row to pdf table +- [`add-footnote-references-in-pdf-table.cs`](./add-footnote-references-in-pdf-table.cs) -- Add footnote references in pdf table +- [`add-footnote-references-to-table-cells.cs`](./add-footnote-references-to-table-cells.cs) -- Add footnote references to table cells +- [`add-gradient-background-behind-table.cs`](./add-gradient-background-behind-table.cs) -- Add gradient background behind table +- [`add-hyperlink-to-table-cell.cs`](./add-hyperlink-to-table-cell.cs) -- Add hyperlink to table cell +- [`add-list-items-in-table-cell.cs`](./add-list-items-in-table-cell.cs) -- Add list items in table cell +- [`add-multiline-text-to-table-cell.cs`](./add-multiline-text-to-table-cell.cs) -- Add multiline text to table cell +- [`add-numbered-list-in-table-cell.cs`](./add-numbered-list-in-table-cell.cs) -- Add numbered list in table cell +- [`add-radio-button-group-in-table-cell.cs`](./add-radio-button-group-in-table-cell.cs) -- Add radio button group in table cell +- [`add-solid-border-to-pdf-table.cs`](./add-solid-border-to-pdf-table.cs) -- Add solid border to pdf table +- [`add-styled-text-to-table-cell.cs`](./add-styled-text-to-table-cell.cs) -- Add styled text to table cell +- [`add-table-footer-to-pdf.cs`](./add-table-footer-to-pdf.cs) -- Add table footer to pdf +- [`add-table-to-specific-pdf-page.cs`](./add-table-to-specific-pdf-page.cs) -- Add table to specific pdf page +- [`add-table-with-background-color.cs`](./add-table-with-background-color.cs) -- Add table with background color +- [`add-table-with-semi-transparent-background.cs`](./add-table-with-semi-transparent-background.cs) -- Add table with semi transparent background +- [`add-text-fragment-to-table-cell.cs`](./add-text-fragment-to-table-cell.cs) -- Add text fragment to table cell +- [`adjust-table-column-widths-proportionally.cs`](./adjust-table-column-widths-proportionally.cs) -- Adjust table column widths proportionally +- [`adjust-table-column-widths.cs`](./adjust-table-column-widths.cs) -- Adjust table column widths +- [`alternating-row-colors-pdf-table.cs`](./alternating-row-colors-pdf-table.cs) -- Alternating row colors pdf table +- [`apply-different-autofit-behavior-to-tables.cs`](./apply-different-autofit-behavior-to-tables.cs) -- Apply different autofit behavior to tables +- [`apply-different-autofit-behaviors-to-tables.cs`](./apply-different-autofit-behaviors-to-tables.cs) -- Apply different autofit behaviors to tables +- [`apply-double-border-to-pdf-table.cs`](./apply-double-border-to-pdf-table.cs) -- Apply double border to pdf table +- [`apply-solid-border-to-pdf-table.cs`](./apply-solid-border-to-pdf-table.cs) -- Apply solid border to pdf table +- [`auto-fit-table-columns-to-content.cs`](./auto-fit-table-columns-to-content.cs) -- Auto fit table columns to content +- [`auto-fit-table-row-height.cs`](./auto-fit-table-row-height.cs) -- Auto fit table row height +- [`auto-fit-table-to-page-width.cs`](./auto-fit-table-to-page-width.cs) -- Auto fit table to page width +- [`batch-add-table-with-logo-to-pdfs.cs`](./batch-add-table-with-logo-to-pdfs.cs) -- Batch add table with logo to pdfs +- [`batch-replace-tables-in-multiple-pdfs.cs`](./batch-replace-tables-in-multiple-pdfs.cs) -- Batch replace tables in multiple pdfs +- [`batch-replace-tables-in-pdfs.cs`](./batch-replace-tables-in-pdfs.cs) -- Batch replace tables in pdfs +- [`calculate-remaining-page-height-add-table.cs`](./calculate-remaining-page-height-add-table.cs) -- Calculate remaining page height add table +- [`calculate-remaining-page-space-add-table.cs`](./calculate-remaining-page-space-add-table.cs) -- Calculate remaining page space add table +- [`center-align-table.cs`](./center-align-table.cs) -- Center align table +- [`center-table-horizontally.cs`](./center-table-horizontally.cs) -- Center table horizontally +- [`check-table-break-across-pages.cs`](./check-table-break-across-pages.cs) -- Check table break across pages +- [`conditional-formatting-table-cells.cs`](./conditional-formatting-table-cells.cs) -- Conditional formatting table cells +- [`count-tables-in-pdf-using-tableabsorber.cs`](./count-tables-in-pdf-using-tableabsorber.cs) -- Count tables in pdf using tableabsorber +- [`count-tables-in-pdf.cs`](./count-tables-in-pdf.cs) -- Count tables in pdf +- [`create-fixed-width-table-pdf.cs`](./create-fixed-width-table-pdf.cs) -- Create fixed width table pdf +- [`create-pdf-report-multiple-tables.cs`](./create-pdf-report-multiple-tables.cs) -- Create pdf report multiple tables +- [`create-pdf-table-alternating-row-colors.cs`](./create-pdf-table-alternating-row-colors.cs) -- Create pdf table alternating row colors +- [`create-pdf-table-dynamic-row-count.cs`](./create-pdf-table-dynamic-row-count.cs) -- Create pdf table dynamic row count +- [`create-pdf-table-from-datatable.cs`](./create-pdf-table-from-datatable.cs) -- Create pdf table from datatable +- [`create-pdf-table-from-datatable__v2.cs`](./create-pdf-table-from-datatable__v2.cs) -- Create pdf table from datatable v2 +- [`create-pdf-table-from-filtered-dataview.cs`](./create-pdf-table-from-filtered-dataview.cs) -- Create pdf table from filtered dataview +- [`create-repeating-table-header.cs`](./create-repeating-table-header.cs) -- Create repeating table header +- [`create-table-double-border.cs`](./create-table-double-border.cs) -- Create table double border +- [`create-table-on-new-pdf-page.cs`](./create-table-on-new-pdf-page.cs) -- Create table on new pdf page +- [`create-table-with-header-and-data-rows.cs`](./create-table-with-header-and-data-rows.cs) -- Create table with header and data rows +- [`create-table-with-repeating-header.cs`](./create-table-with-repeating-header.cs) -- Create table with repeating header +- [`create-table-with-rows-and-cells.cs`](./create-table-with-rows-and-cells.cs) -- Create table with rows and cells +- [`detect-extract-tables-rotated-pages.cs`](./detect-extract-tables-rotated-pages.cs) -- Detect extract tables rotated pages +- [`detect-merged-cells-in-pdf-tables.cs`](./detect-merged-cells-in-pdf-tables.cs) -- Detect merged cells in pdf tables +- [`determine-table-page-break-isbroken.cs`](./determine-table-page-break-isbroken.cs) -- Determine table page break isbroken +- [`embed-html-fragment-in-table-cell.cs`](./embed-html-fragment-in-table-cell.cs) -- Embed html fragment in table cell +- [`embed-html-in-table-cell.cs`](./embed-html-in-table-cell.cs) -- Embed html in table cell +- [`enable-table-splitting-across-pdf-pages.cs`](./enable-table-splitting-across-pdf-pages.cs) -- Enable table splitting across pdf pages +- [`export-pdf-table-structure-to-json.cs`](./export-pdf-table-structure-to-json.cs) -- Export pdf table structure to json +- [`export-pdf-table-to-csv.cs`](./export-pdf-table-to-csv.cs) -- Export pdf table to csv +- [`export-pdf-to-csv.cs`](./export-pdf-to-csv.cs) -- Export pdf to csv +- [`extract-pdf-tables-to-csv.cs`](./extract-pdf-tables-to-csv.cs) -- Extract pdf tables to csv +- [`extract-pdf-tables-to-datatable.cs`](./extract-pdf-tables-to-datatable.cs) -- Extract pdf tables to datatable +- [`extract-table-coordinates-from-pdf.cs`](./extract-table-coordinates-from-pdf.cs) -- Extract table coordinates from pdf +- [`extract-tables-from-pdf.cs`](./extract-tables-from-pdf.cs) -- Extract tables from pdf +- [`extract-tables-from-rotated-pdf-pages.cs`](./extract-tables-from-rotated-pdf-pages.cs) -- Extract tables from rotated pdf pages +- [`extract-text-from-pdf-tables.cs`](./extract-text-from-pdf-tables.cs) -- Extract text from pdf tables +- [`generate-pdf-report-multiple-tables.cs`](./generate-pdf-report-multiple-tables.cs) -- Generate pdf report multiple tables +- [`get-rendered-table-width-after-layout.cs`](./get-rendered-table-width-after-layout.cs) -- Get rendered table width after layout +- [`get-rendered-table-width.cs`](./get-rendered-table-width.cs) -- Get rendered table width +- [`import-datatable-images-into-pdf-table.cs`](./import-datatable-images-into-pdf-table.cs) -- Import datatable images into pdf table +- [`import-datatable-into-pdf-table.cs`](./import-datatable-into-pdf-table.cs) -- Import datatable into pdf table +- [`import-dataview-into-pdf-table.cs`](./import-dataview-into-pdf-table.cs) -- Import dataview into pdf table +- [`import-filtered-dataview-into-pdf-table.cs`](./import-filtered-dataview-into-pdf-table.cs) -- Import filtered dataview into pdf table +- [`import-images-from-datatable-into-pdf-table.cs`](./import-images-from-datatable-into-pdf-table.cs) -- Import images from datatable into pdf table +- [`insert-column-into-pdf-table.cs`](./insert-column-into-pdf-table.cs) -- Insert column into pdf table +- [`insert-external-image-into-pdf-table-cell.cs`](./insert-external-image-into-pdf-table-cell.cs) -- Insert external image into pdf table cell +- [`insert-hyperlink-into-table-cell.cs`](./insert-hyperlink-into-table-cell.cs) -- Insert hyperlink into table cell +- [`insert-image-into-pdf-table-cell.cs`](./insert-image-into-pdf-table-cell.cs) -- Insert image into pdf table cell +- [`insert-image-into-table-cell.cs`](./insert-image-into-table-cell.cs) -- Insert image into table cell +- [`insert-new-column-into-pdf-table.cs`](./insert-new-column-into-pdf-table.cs) -- Insert new column into pdf table +- [`insert-page-break-after-table-row.cs`](./insert-page-break-after-table-row.cs) -- Insert page break after table row +- [`insert-svg-image-into-pdf-table-cell.cs`](./insert-svg-image-into-pdf-table-cell.cs) -- Insert svg image into pdf table cell +- [`insert-svg-image-into-table-cell.cs`](./insert-svg-image-into-table-cell.cs) -- Insert svg image into table cell +- [`insert-table-after-paragraph.cs`](./insert-table-after-paragraph.cs) -- Insert table after paragraph +- [`insert-table-after-paragraph__v2.cs`](./insert-table-after-paragraph__v2.cs) -- Insert table after paragraph v2 +- [`insert-table-at-specific-position.cs`](./insert-table-at-specific-position.cs) -- Insert table at specific position +- [`insert-table-before-first-image.cs`](./insert-table-before-first-image.cs) -- Insert table before first image +- [`insert-table-before-image.cs`](./insert-table-before-image.cs) -- Insert table before image +- [`insert-table-into-paragraph-collection.cs`](./insert-table-into-paragraph-collection.cs) -- Insert table into paragraph collection +- [`insert-table-into-pdf-page.cs`](./insert-table-into-pdf-page.cs) -- Insert table into pdf page +- [`insert-table-into-pdf.cs`](./insert-table-into-pdf.cs) -- Insert table into pdf +- [`insert-table-into-textbox-field.cs`](./insert-table-into-textbox-field.cs) -- Insert table into textbox field +- [`landscape-pdf-with-wide-table.cs`](./landscape-pdf-with-wide-table.cs) -- Landscape pdf with wide table +- [`map-datatable-columns-to-pdf-table.cs`](./map-datatable-columns-to-pdf-table.cs) -- Map datatable columns to pdf table +- [`mark-table-header-enable-column-repeat.cs`](./mark-table-header-enable-column-repeat.cs) -- Mark table header enable column repeat +- [`merge-table-cells-colspan.cs`](./merge-table-cells-colspan.cs) -- Merge table cells colspan +- [`merge-table-cells-vertically-rowspan.cs`](./merge-table-cells-vertically-rowspan.cs) -- Merge table cells vertically rowspan +- [`merge-table-columns-using-cell-colspan.cs`](./merge-table-columns-using-cell-colspan.cs) -- Merge table columns using cell colspan +- [`offset-table-left-margin.cs`](./offset-table-left-margin.cs) -- Offset table left margin +- [`populate-pdf-table-from-linq-data.cs`](./populate-pdf-table-from-linq-data.cs) -- Populate pdf table from linq data +- [`populate-pdf-table-from-linq-query.cs`](./populate-pdf-table-from-linq-query.cs) -- Populate pdf table from linq query +- [`prevent-table-splitting.cs`](./prevent-table-splitting.cs) -- Prevent table splitting +- [`remove-all-tables-from-pdf.cs`](./remove-all-tables-from-pdf.cs) -- Remove all tables from pdf +- [`remove-column-from-pdf-table.cs`](./remove-column-from-pdf-table.cs) -- Remove column from pdf table +- [`remove-first-table-from-pdf.cs`](./remove-first-table-from-pdf.cs) -- Remove first table from pdf +- [`remove-table-from-pdf.cs`](./remove-table-from-pdf.cs) -- Remove table from pdf +- [`remove-tables-containing-keyword.cs`](./remove-tables-containing-keyword.cs) -- Remove tables containing keyword +- [`render-rotated-table-pdf.cs`](./render-rotated-table-pdf.cs) -- Render rotated table pdf +- [`render-table-from-xml-to-pdf.cs`](./render-table-from-xml-to-pdf.cs) -- Render table from xml to pdf +- [`render-table-high-dpi-images.cs`](./render-table-high-dpi-images.cs) -- Render table high dpi images +- [`render-table-on-new-pdf-page.cs`](./render-table-on-new-pdf-page.cs) -- Render table on new pdf page +- [`render-wide-table-landscape.cs`](./render-wide-table-landscape.cs) -- Render wide table landscape +- [`render-xml-table-to-pdf.cs`](./render-xml-table-to-pdf.cs) -- Render xml table to pdf +- [`reorder-pdf-table-columns.cs`](./reorder-pdf-table-columns.cs) -- Reorder pdf table columns +- [`reorder-table-columns-in-pdf.cs`](./reorder-table-columns-in-pdf.cs) -- Reorder table columns in pdf +- [`replace-merged-table-cells.cs`](./replace-merged-table-cells.cs) -- Replace merged table cells +- [`replace-table-cell-text-by-keyword.cs`](./replace-table-cell-text-by-keyword.cs) -- Replace table cell text by keyword +- [`replace-table-in-pdf.cs`](./replace-table-in-pdf.cs) -- Replace table in pdf +- [`replace-text-in-pdf-table-cells.cs`](./replace-text-in-pdf-table-cells.cs) -- Replace text in pdf table cells +- [`right-align-table-pdf.cs`](./right-align-table-pdf.cs) -- Right align table pdf +- [`rotate-page-add-table.cs`](./rotate-page-add-table.cs) -- Rotate page add table +- [`rotate-table-90-degrees-pdf.cs`](./rotate-table-90-degrees-pdf.cs) -- Rotate table 90 degrees pdf +- [`rotate-text-in-table-cell.cs`](./rotate-text-in-table-cell.cs) -- Rotate text in table cell +- [`serialize-pdf-table-to-xml.cs`](./serialize-pdf-table-to-xml.cs) -- Serialize pdf table to xml +- [`serialize-table-to-xml.cs`](./serialize-table-to-xml.cs) -- Serialize table to xml +- [`set-cell-background-color-in-pdf-table.cs`](./set-cell-background-color-in-pdf-table.cs) -- Set cell background color in pdf table +- [`set-cell-vertical-alignment-middle.cs`](./set-cell-vertical-alignment-middle.cs) -- Set cell vertical alignment middle +- [`set-custom-cell-margins-in-pdf-table.cs`](./set-custom-cell-margins-in-pdf-table.cs) -- Set custom cell margins in pdf table +- [`set-custom-row-height-in-pdf-table.cs`](./set-custom-row-height-in-pdf-table.cs) -- Set custom row height in pdf table +- [`set-default-cell-padding-for-pdf-table.cs`](./set-default-cell-padding-for-pdf-table.cs) -- Set default cell padding for pdf table +- [`set-fixed-row-height-for-pdf-table-rows.cs`](./set-fixed-row-height-for-pdf-table-rows.cs) -- Set fixed row height for pdf table rows +- [`set-fixed-row-height-table-rows.cs`](./set-fixed-row-height-table-rows.cs) -- Set fixed row height table rows +- [`set-maximum-column-widths-for-pdf-table.cs`](./set-maximum-column-widths-for-pdf-table.cs) -- Set maximum column widths for pdf table +- [`set-maximum-table-column-width.cs`](./set-maximum-table-column-width.cs) -- Set maximum table column width +- [`set-minimum-column-width-for-pdf-tables.cs`](./set-minimum-column-width-for-pdf-tables.cs) -- Set minimum column width for pdf tables +- [`set-minimum-column-width.cs`](./set-minimum-column-width.cs) -- Set minimum column width +- [`set-table-background-color.cs`](./set-table-background-color.cs) -- Set table background color +- [`set-table-border-thickness-2-points.cs`](./set-table-border-thickness-2-points.cs) -- Set table border thickness 2 points +- [`set-table-border-thickness.cs`](./set-table-border-thickness.cs) -- Set table border thickness +- [`set-table-width-80-percent.cs`](./set-table-width-80-percent.cs) -- Set table width 80 percent +- [`set-table-width-percentage.cs`](./set-table-width-percentage.cs) -- Set table width percentage +- [`set-table-z-index-pdf.cs`](./set-table-z-index-pdf.cs) -- Set table z index pdf +- [`set-table-z-index.cs`](./set-table-z-index.cs) -- Set table z index +- [`split-merged-table-cells.cs`](./split-merged-table-cells.cs) -- Split merged table cells +- [`split-table-across-pdf-pages.cs`](./split-table-across-pdf-pages.cs) -- Split table across pdf pages +- [`stretch-table-to-page-width.cs`](./stretch-table-to-page-width.cs) -- Stretch table to page width +- [`style-table-header-row-pdf.cs`](./style-table-header-row-pdf.cs) -- Style table header row pdf +- [`style-table-header-row.cs`](./style-table-header-row.cs) -- Style table header row +- [`table-with-repeating-header-and-column.cs`](./table-with-repeating-header-and-column.cs) -- Table with repeating header and column + +## See Also + +- [`AGENTS.md`](./AGENTS.md) -- category-specific anti-patterns, API surface, and conventions for AI coding agents +- [`../AGENTS.md`](../AGENTS.md) -- repository-wide agent guide +- [`../README.md`](../README.md) -- full category index and project overview +- [Aspose.PDF for .NET docs](https://docs.aspose.com/pdf/net/) + +> Each `.cs` file is a standalone, build-validated console example. Drop into a fresh `dotnet new console` project, add the `Aspose.PDF` NuGet (version above), and run. diff --git a/working-with-tables/index.json b/working-with-tables/index.json index 0273471b9..5dfc389c2 100644 --- a/working-with-tables/index.json +++ b/working-with-tables/index.json @@ -1,42 +1,52 @@ { "category": "working-with-tables", "nuget_version": "26.8.0", - "last_updated": "2026-08-20T08:55:30Z", + "last_updated": "2026-09-10T12:45:08Z", "examples": { - "create-table-with-header-and-data-rows": { - "title": "Create Table with Header and Data Rows in PDF", - "filename": "create-table-with-header-and-data-rows.cs", - "description": "Demonstrates how to programmatically create a PDF, add a table with a styled header row, populate it with data rows, and save the document using Aspose.Pdf for .NET.", + "add-auto-numbered-column-to-pdf-table": { + "title": "Add Auto‑Numbered Column to PDF Table", + "filename": "add-auto-numbered-column-to-pdf-table.cs", + "description": "Shows how to create a PDF table with Aspose.Pdf and fill the first column with sequential numbers using the Table.ImportArray method.", "tags": [ - "table", "pdf", - "aspose-pdf", - "csharp", - "styling" + "table", + "autonumber", + "importarray", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", "Aspose.Pdf.Row", - "Aspose.Pdf.Cell", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.FontRepository.FindFont" + "Aspose.Pdf.BorderInfo", + "Aspose.Pdf.MarginInfo", + "Aspose.Pdf.Text.TextState" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "insert-table-into-pdf": { - "title": "Insert Table into Existing PDF Page", - "filename": "insert-table-into-pdf.cs", - "description": "Shows how to load an existing PDF with Aspose.Pdf, create and style a Table, position it on a specific page, and save the updated document.", + "add-background-color-to-table-cell": { + "title": "Add Background Color To Table Cell", + "filename": "add-background-color-to-table-cell.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-centered-paragraph-to-table-cell": { + "title": "Add Centered Paragraph to Table Cell", + "filename": "add-centered-paragraph-to-table-cell.cs", + "description": "Demonstrates how to create a PDF table with Aspose.Pdf and insert a paragraph into a cell with horizontal center alignment.", "tags": [ "table", + "paragraph", + "center-alignment", "pdf", - "aspose.pdf", - "insert", - "c#" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", @@ -44,44 +54,72 @@ "Aspose.Pdf.Table", "Aspose.Pdf.Row", "Aspose.Pdf.Cell", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Text.FontRepository.FindFont", - "Aspose.Pdf.BorderInfo" + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.HorizontalAlignment" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "auto-fit-table-columns-to-content": { - "title": "Auto‑Fit Table Columns to Content in PDF", - "filename": "auto-fit-table-columns-to-content.cs", - "description": "Loads an existing PDF, creates a table, sets ColumnAdjustment to AutoFitToContent so columns resize to their cell contents, adds sample rows, and saves the modified document.", + "add-checkbox-form-field-in-table-cell": { + "title": "Add Checkbox Form Field Inside Table Cell", + "filename": "add-checkbox-form-field-in-table-cell.cs", + "description": "Shows how to create a PDF with a table and place a checkbox form field inside one of the table's cells using Aspose.Pdf.", "tags": [ - "table", - "autofit", "pdf", - "aspose", - "csharp" + "table", + "checkbox", + "form", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", - "Aspose.Pdf.Row", - "Aspose.Pdf.BorderInfo", - "Aspose.Pdf.Color" + "Aspose.Pdf.Forms.CheckboxField", + "Aspose.Pdf.Rectangle" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "stretch-table-to-page-width": { - "title": "Stretch Table Across Page Width", - "filename": "stretch-table-to-page-width.cs", - "description": "Creates a PDF document, adds a table, and configures it to automatically fit the page width before saving the file.", + "add-checkbox-in-table-cell": { + "title": "Add Checkbox In Table Cell", + "filename": "add-checkbox-in-table-cell.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-footer-row-to-pdf-table": { + "title": "Add Footer Row To Pdf Table", + "filename": "add-footer-row-to-pdf-table.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-footnote-references-in-pdf-table": { + "title": "Add Footnote References In Pdf Table", + "filename": "add-footnote-references-in-pdf-table.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-footnote-references-to-table-cells": { + "title": "Add Footnote References to Table Cells in PDF", + "filename": "add-footnote-references-to-table-cells.cs", + "description": "Shows how to insert superscript footnote markers inside table cells, attach Aspose.Pdf footnote notes, and save the updated PDF.", "tags": [ "table", - "autofit", + "footnote", "pdf", "aspose", "csharp" @@ -91,22 +129,44 @@ "Aspose.Pdf.Page", "Aspose.Pdf.Table", "Aspose.Pdf.Row", - "Aspose.Pdf.ColumnAdjustment" + "Aspose.Pdf.Cell", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.Note" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "insert-svg-image-into-table-cell": { - "title": "Insert SVG Image into Table Cell", - "filename": "insert-svg-image-into-table-cell.cs", - "description": "Demonstrates how to embed an SVG file into a PDF by creating an Image object, adding it to a Table cell, and saving the document.", + "add-gradient-background-behind-table": { + "title": "Add Gradient Background Behind Table", + "filename": "add-gradient-background-behind-table.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-hyperlink-to-table-cell": { + "title": "Add Hyperlink To Table Cell", + "filename": "add-hyperlink-to-table-cell.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-list-items-in-table-cell": { + "title": "Add List Items Inside a Table Cell", + "filename": "add-list-items-in-table-cell.cs", + "description": "Shows how to create a bullet list within a PDF table cell by adding TextFragment paragraphs with list markers.", "tags": [ - "svg", "table", - "image", + "list", + "cell", "pdf", - "aspose-pdf" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", @@ -114,20 +174,21 @@ "Aspose.Pdf.Table", "Aspose.Pdf.Row", "Aspose.Pdf.Cell", - "Aspose.Pdf.Drawing.Image" + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.FontRepository" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "embed-html-in-table-cell": { - "title": "Embed HTML in Table Cell using HtmlFragment", - "filename": "embed-html-in-table-cell.cs", - "description": "Demonstrates how to insert HTML markup into a PDF table cell by adding an HtmlFragment to the cell's paragraph collection.", + "add-multiline-text-to-table-cell": { + "title": "Add Multiline Text to Table Cell in PDF", + "filename": "add-multiline-text-to-table-cell.cs", + "description": "Demonstrates how to insert multiline text into a PDF table cell by adding separate TextFragment objects and a line‑break fragment.", "tags": [ - "html", "table", - "cell", + "multiline", + "textfragment", "pdf", "aspose" ], @@ -137,96 +198,114 @@ "Aspose.Pdf.Table", "Aspose.Pdf.Row", "Aspose.Pdf.Cell", - "Aspose.Pdf.Text.HtmlFragment", - "Aspose.Pdf.BorderInfo", - "Aspose.Pdf.Color" + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.FontRepository.FindFont" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "insert-page-break-after-table-row": { - "title": "Insert Page Break After Specific Table Row", - "filename": "insert-page-break-after-table-row.cs", - "description": "Demonstrates how to create a page break within a PDF table by setting the IsInNewPage property on a row, causing subsequent rows to start on a new page.", + "add-numbered-list-in-table-cell": { + "title": "Add Numbered List In Table Cell", + "filename": "add-numbered-list-in-table-cell.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-radio-button-group-in-table-cell": { + "title": "Add Radio Button Group Inside a Table Cell", + "filename": "add-radio-button-group-in-table-cell.cs", + "description": "Demonstrates how to place a group of radio buttons inside a table cell by creating a RadioButtonField, adding options, and attaching it to the PDF form.", "tags": [ + "radio-button", "table", - "page-break", - "Aspose.Pdf", - "row", + "form", + "aspdf", "pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", - "Aspose.Pdf.Row", - "Aspose.Pdf.Cell", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.BorderInfo" + "Aspose.Pdf.Forms.RadioButtonField", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Document.Form.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "render-table-on-new-pdf-page": { - "title": "Render Table on a New PDF Page", - "filename": "render-table-on-new-pdf-page.cs", - "description": "Shows how to create a PDF document with Aspose.Pdf, add a new page, build a table with header and data rows, and save the result.", + "add-solid-border-to-pdf-table": { + "title": "Add Solid Border to PDF Table", + "filename": "add-solid-border-to-pdf-table.cs", + "description": "Demonstrates how to load an existing PDF, create a table, apply a solid black border to the entire table, and save the modified document using Aspose.Pdf.", "tags": [ - "pdf", "table", + "border", + "pdf", "aspose-pdf", - "csharp", - "document" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.Table", - "Aspose.Pdf.Row", "Aspose.Pdf.BorderInfo", + "Aspose.Pdf.Row", + "Aspose.Pdf.Page", "Aspose.Pdf.MarginInfo" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "merge-table-cells-colspan": { - "title": "Merge Table Cells Across Multiple Columns", - "filename": "merge-table-cells-colspan.cs", - "description": "Demonstrates how to merge three adjacent columns in an Aspose.Pdf table by setting the Cell.ColSpan property.", + "add-styled-text-to-table-cell": { + "title": "Add Styled Text To Table Cell", + "filename": "add-styled-text-to-table-cell.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-table-footer-to-pdf": { + "title": "Add Table Footer Row Repeated on Each PDF Page", + "filename": "add-table-footer-to-pdf.cs", + "description": "Demonstrates how to add a visual table with a footer row that repeats at the bottom of each page and how to create the corresponding logical (tagged) structure using Aspose.Pdf.", "tags": [ "table", - "colspan", - "pdf", + "footer", + "tagged-pdf", "aspose-pdf", - "cell-merge" + "pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.Table", - "Aspose.Pdf.Row", - "Aspose.Pdf.Cell", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.FontRepository", - "Aspose.Pdf.Color" + "Aspose.Pdf.Tagged.ITaggedContent", + "Aspose.Pdf.Tagged.TableElement", + "Aspose.Pdf.Tagged.TableTFootElement", + "Aspose.Pdf.Tagged.TableTRElement", + "Aspose.Pdf.Tagged.TableTDElement" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "merge-table-cells-vertically-rowspan": { - "title": "Merge Table Cells Vertically Using RowSpan", - "filename": "merge-table-cells-vertically-rowspan.cs", - "description": "Shows how to merge a table cell with the cell directly below by setting the Cell.RowSpan property in an Aspose.Pdf table.", + "add-table-to-specific-pdf-page": { + "title": "Add Table to Specific PDF Page", + "filename": "add-table-to-specific-pdf-page.cs", + "description": "Shows how to insert a formatted table onto a chosen page of a PDF document using Aspose.Pdf, including page validation, table construction, cell population, positioning, and saving.", "tags": [ - "table", - "rowspan", - "cell-merge", "pdf", - "aspose" + "table", + "aspose.pdf", + "page", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", @@ -234,283 +313,248 @@ "Aspose.Pdf.Table", "Aspose.Pdf.Row", "Aspose.Pdf.Cell", - "Aspose.Pdf.BorderInfo" + "Aspose.Pdf.Text.TextFragment" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "set-custom-cell-margins-in-pdf-table": { - "title": "Set Custom Cell Margins in a PDF Table", - "filename": "set-custom-cell-margins-in-pdf-table.cs", - "description": "Demonstrates how to configure margins for a table cell using MarginInfo and assign it to the cell's Margin property in Aspose.Pdf.", + "add-table-with-background-color": { + "title": "Add Table with Background Color to PDF", + "filename": "add-table-with-background-color.cs", + "description": "Demonstrates creating a PDF, inserting a table, and applying a solid background color while noting that gradient backgrounds are not supported via the Table.BackgroundColor property.", "tags": [ "table", - "cell-margins", + "background-color", "pdf", "aspose-pdf", - "margininfo" + "gradient-limitations" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", "Aspose.Pdf.Row", - "Aspose.Pdf.Cell", - "Aspose.Pdf.MarginInfo" + "Aspose.Pdf.Color" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "set-default-cell-padding-for-pdf-table": { - "title": "Set Default Cell Padding for a PDF Table", - "filename": "set-default-cell-padding-for-pdf-table.cs", - "description": "Creates a PDF document, adds a table, and applies uniform cell padding to all cells by setting Table.DefaultCellPadding with a MarginInfo instance.", + "add-table-with-semi-transparent-background": { + "title": "Add Table with Semi-Transparent Background to PDF", + "filename": "add-table-with-semi-transparent-background.cs", + "description": "Demonstrates how to create a PDF, add a table, and set the table's background color with opacity using Aspose.Pdf.", "tags": [ "table", - "padding", - "margininfo", - "aspose-pdf", - "csharp" + "background-color", + "opacity", + "pdf", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", - "Aspose.Pdf.MarginInfo", - "Aspose.Pdf.Row" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T08:55:30Z", - "status": "verified" - }, - "get-rendered-table-width-after-layout": { - "title": "Get Rendered Table Width After Layout", - "filename": "get-rendered-table-width-after-layout.cs", - "description": "Loads a PDF, inserts a table, and shows how to read the calculated width of the rendered table after layout using Aspose.Pdf.", - "tags": [ - "table", - "width", - "layout", - "aspose-pdf", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Table", "Aspose.Pdf.Row", - "Aspose.Pdf.Page", - "Aspose.Pdf.Table.GetWidth" + "Aspose.Pdf.Color", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Page.Paragraphs.Add" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "import-datatable-into-pdf-table": { - "title": "Import DataTable into PDF Table", - "filename": "import-datatable-into-pdf-table.cs", - "description": "Shows how to import an in‑memory DataTable into an Aspose.Pdf Table and save it as a PDF document.", + "add-text-fragment-to-table-cell": { + "title": "Add TextFragment with Font and Size to a PDF Table Cell", + "filename": "add-text-fragment-to-table-cell.cs", + "description": "Demonstrates how to insert text with a specific font and size into a table cell by creating a TextFragment, configuring its TextState, and adding it to the cell's paragraphs.", "tags": [ - "datatable", - "pdf", "table", - "import", + "textfragment", + "font", + "pdf", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.Table", - "Aspose.Pdf.Table.ImportDataTable", - "Aspose.Pdf.Page.Paragraphs.Add" + "Aspose.Pdf.Row", + "Aspose.Pdf.Cell", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.FontRepository.FindFont", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Page" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "import-filtered-dataview-into-pdf-table": { - "title": "Import Filtered DataView into PDF Table", - "filename": "import-filtered-dataview-into-pdf-table.cs", - "description": "Shows how to filter a DataTable with a DataView and import the filtered rows into an Aspose.Pdf Table, then save the result as a PDF document.", + "adjust-table-column-widths-proportionally": { + "title": "Adjust Table Column Widths Proportionally in PDF", + "filename": "adjust-table-column-widths-proportionally.cs", + "description": "Shows how to compute the total width of a table's columns, convert each width to a percentage of that total, and apply the proportional widths to a PDF table using Aspose.Pdf.", "tags": [ - "dataview", "table", - "import", + "column-width", + "percentage", "pdf", - "aspose" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", - "Aspose.Pdf.Table.ImportDataView", - "Aspose.Pdf.Page.Paragraphs.Add" + "Aspose.Pdf.Row", + "Aspose.Pdf.BorderInfo", + "Aspose.Pdf.ColumnAdjustment" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "create-pdf-table-from-datatable": { - "title": "Create PDF Table from a DataTable with Aspose.Pdf", - "filename": "create-pdf-table-from-datatable.cs", - "description": "Demonstrates how to fill an in‑memory DataTable, import it into an Aspose.Pdf Table, and save the result as a PDF document.", + "adjust-table-column-widths": { + "title": "Adjust Table Column Widths", + "filename": "adjust-table-column-widths.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "alternating-row-colors-pdf-table": { + "title": "Alternating Row Colors Pdf Table", + "filename": "alternating-row-colors-pdf-table.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "apply-different-autofit-behavior-to-tables": { + "title": "Apply Different Autofit Behavior To Tables", + "filename": "apply-different-autofit-behavior-to-tables.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "apply-different-autofit-behaviors-to-tables": { + "title": "Apply Different AutoFit Behaviors to Tables in a PDF", + "filename": "apply-different-autofit-behaviors-to-tables.cs", + "description": "Demonstrates how to add multiple tables to a PDF and set distinct ColumnAdjustment (AutoFitToContent and AutoFitToWindow) for each, showing varied column sizing behavior.", "tags": [ + "autofit", + "tables", "pdf", - "datatable", "aspose", - "table", - "csharp" + "columnadjustment" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", - "Aspose.Pdf.Table.ImportDataTable", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.ColumnAdjustment", + "Aspose.Pdf.Row", + "Aspose.Pdf.Cell", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Drawing.BorderInfo" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "check-table-break-across-pages": { - "title": "Check Table Break Across Pages", - "filename": "check-table-break-across-pages.cs", - "description": "Creates a PDF with a simple two‑column table, adds it to a page, and reads the Table.IsBroken property to determine whether the table would split across pages.", + "apply-double-border-to-pdf-table": { + "title": "Apply Double Border to PDF Table", + "filename": "apply-double-border-to-pdf-table.cs", + "description": "Creates a PDF with a 3x3 table and sets a double‑border effect by configuring BorderInfo with width and color.", "tags": [ "table", - "isbroken", + "border", "pdf", - "aspose", - "page-break" + "Aspose.Pdf", + "double-border" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", - "Aspose.Pdf.Table.IsBroken", - "Aspose.Pdf.Page.Paragraphs.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Row", + "Aspose.Pdf.Drawing.BorderInfo", + "Aspose.Pdf.Drawing.Color" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "mark-table-header-enable-column-repeat": { - "title": "Mark Table Header and Enable Column Repeat", - "filename": "mark-table-header-enable-column-repeat.cs", - "description": "Shows how to mark a table column as a header and enable column repeat so the header appears on each new page, using both visual Table and tagged PDF structure for accessibility.", - "tags": [ - "table", - "header", - "column-repeat", - "tagged-pdf", - "accessibility" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Table", - "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.TableElement", - "Aspose.Pdf.Tagged.TableTHeadElement", - "Aspose.Pdf.Tagged.TableTHElement", - "Aspose.Pdf.Tagged.TableTBodyElement" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:55:30Z", - "status": "verified" - }, - "extract-tables-from-pdf": { - "title": "Extract Tables from PDF Using TableAbsorber", - "filename": "extract-tables-from-pdf.cs", - "description": "Demonstrates how to load a PDF, use Aspose.Pdf's TableAbsorber to detect tables, iterate through rows, cells, and text fragments, and save the document.", - "tags": [ - "tables", - "pdf", - "extraction", - "aspose-pdf", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.TableAbsorber", - "Aspose.Pdf.TableAbsorber.Visit", - "Aspose.Pdf.TableAbsorber.TableList", - "Aspose.Pdf.AbsorbedTable", - "Aspose.Pdf.AbsorbedRow", - "Aspose.Pdf.AbsorbedCell", - "Aspose.Pdf.Text.TextFragment" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:55:30Z", + "apply-solid-border-to-pdf-table": { + "title": "Apply Solid Border To Pdf Table", + "filename": "apply-solid-border-to-pdf-table.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "replace-table-in-pdf": { - "title": "Replace Table in PDF Using Aspose.Pdf", - "filename": "replace-table-in-pdf.cs", - "description": "Shows how to locate tables on each PDF page with TableAbsorber, create a new Table, and replace the original table while keeping its position.", + "auto-fit-table-columns-to-content": { + "title": "Auto‑Fit Table Columns to Content in PDF", + "filename": "auto-fit-table-columns-to-content.cs", + "description": "Loads an existing PDF, creates a table, sets ColumnAdjustment to AutoFitToContent so columns resize to their cell contents, adds sample rows, and saves the modified document.", "tags": [ "table", - "replace", + "autofit", "pdf", - "aspose-pdf", + "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.TableAbsorber", "Aspose.Pdf.Table", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.TableAbsorber.Replace" + "Aspose.Pdf.Row", + "Aspose.Pdf.BorderInfo", + "Aspose.Pdf.Color" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "remove-first-table-from-pdf": { - "title": "Remove First Table from PDF using TableAbsorber", - "filename": "remove-first-table-from-pdf.cs", - "description": "Shows how to locate tables in a PDF with TableAbsorber and delete the first detected table.", + "auto-fit-table-row-height": { + "title": "Auto‑Fit Table Row Height in PDF", + "filename": "auto-fit-table-row-height.cs", + "description": "Demonstrates how to let a table row automatically adjust its height to fit wrapped cell content by leaving FixedRowHeight unset and setting MinRowHeight to zero.", "tags": [ "table", - "remove", + "autofit", + "row-height", "pdf", - "aspose-pdf", - "tableabsorber" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.TableAbsorber", - "Aspose.Pdf.TableAbsorber.Visit", - "Aspose.Pdf.TableAbsorber.Remove", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page", + "Aspose.Pdf.Table", + "Aspose.Pdf.Row", + "Aspose.Pdf.Cell", + "Aspose.Pdf.Text.TextFragment" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "remove-all-tables-from-pdf": { - "title": "Remove All Tables from a PDF Document", - "filename": "remove-all-tables-from-pdf.cs", - "description": "Shows how to locate tables in a PDF using TableAbsorber and delete each absorbed table from the document.", - "tags": [ - "pdf", - "tables", - "remove", - "aspose.pdf", - "c#" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.TableAbsorber", - "Aspose.Pdf.TableAbsorber.Visit", - "Aspose.Pdf.TableAbsorber.TableList", - "Aspose.Pdf.TableAbsorber.Remove", - "Aspose.Pdf.AbsorbedTable" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:55:30Z", + "auto-fit-table-to-page-width": { + "title": "Auto Fit Table To Page Width", + "filename": "auto-fit-table-to-page-width.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, "batch-add-table-with-logo-to-pdfs": { @@ -561,41 +605,71 @@ "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "apply-different-autofit-behaviors-to-tables": { - "title": "Apply Different AutoFit Behaviors to Tables in a PDF", - "filename": "apply-different-autofit-behaviors-to-tables.cs", - "description": "Demonstrates how to add multiple tables to a PDF and set distinct ColumnAdjustment (AutoFitToContent and AutoFitToWindow) for each, showing varied column sizing behavior.", + "batch-replace-tables-in-pdfs": { + "title": "Batch Replace Tables In Pdfs", + "filename": "batch-replace-tables-in-pdfs.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "calculate-remaining-page-height-add-table": { + "title": "Calculate Remaining Page Height Add Table", + "filename": "calculate-remaining-page-height-add-table.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "calculate-remaining-page-space-add-table": { + "title": "Calculate Remaining Page Space and Add Table to PDF", + "filename": "calculate-remaining-page-space-add-table.cs", + "description": "Demonstrates how to compute the usable vertical space on a PDF page by subtracting margins and existing content, then conditionally place a table based on the remaining space.", "tags": [ - "autofit", - "tables", "pdf", - "aspose", - "columnadjustment" + "table", + "space", + "margin", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.Page.CalculateContentBBox", + "Aspose.Pdf.PageInfo.PureHeight", "Aspose.Pdf.Table", - "Aspose.Pdf.ColumnAdjustment", - "Aspose.Pdf.Row", - "Aspose.Pdf.Cell", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Drawing.BorderInfo" + "Aspose.Pdf.Table.GetHeight", + "Aspose.Pdf.Page.Paragraphs.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "set-cell-background-color-in-pdf-table": { - "title": "Set Cell Background Color in PDF Table", - "filename": "set-cell-background-color-in-pdf-table.cs", - "description": "Creates a PDF document, adds a table, and sets the background color of a specific cell to light gray.", + "center-align-table": { + "title": "Center Align Table", + "filename": "center-align-table.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "center-table-horizontally": { + "title": "Center Table Horizontally in PDF", + "filename": "center-table-horizontally.cs", + "description": "Shows how to create a table, set its HorizontalAlignment to Center, and add it to a PDF page using Aspose.Pdf.", "tags": [ - "pdf", "table", - "cell", - "background-color", - "aspose-pdf" + "alignment", + "pdf", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", @@ -603,118 +677,100 @@ "Aspose.Pdf.Table", "Aspose.Pdf.Row", "Aspose.Pdf.Cell", - "Aspose.Pdf.Color", + "Aspose.Pdf.Text.TextState", "Aspose.Pdf.Text.TextFragment" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "add-solid-border-to-pdf-table": { - "title": "Add Solid Border to PDF Table", - "filename": "add-solid-border-to-pdf-table.cs", - "description": "Demonstrates how to load an existing PDF, create a table, apply a solid black border to the entire table, and save the modified document using Aspose.Pdf.", + "check-table-break-across-pages": { + "title": "Check Table Break Across Pages", + "filename": "check-table-break-across-pages.cs", + "description": "Creates a PDF with a simple two‑column table, adds it to a page, and reads the Table.IsBroken property to determine whether the table would split across pages.", "tags": [ "table", - "border", + "isbroken", "pdf", - "aspose-pdf", - "csharp" + "aspose", + "page-break" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Table", - "Aspose.Pdf.BorderInfo", - "Aspose.Pdf.Row", "Aspose.Pdf.Page", - "Aspose.Pdf.MarginInfo" + "Aspose.Pdf.Table", + "Aspose.Pdf.Table.IsBroken", + "Aspose.Pdf.Page.Paragraphs.Add", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "insert-image-into-table-cell": { - "title": "Insert Image into a PDF Table Cell", - "filename": "insert-image-into-table-cell.cs", - "description": "Demonstrates how to create a PDF document, add a table, and place an external image file inside a table cell using Aspose.Pdf.", + "conditional-formatting-table-cells": { + "title": "Conditional Formatting of Table Cells in PDF", + "filename": "conditional-formatting-table-cells.cs", + "description": "Demonstrates how to create a PDF table with Aspose.Pdf, add data rows, and apply background colors to cells when numeric values exceed defined thresholds.", "tags": [ "pdf", "table", - "image", - "aspose-pdf", - "csharp" + "conditional-formatting", + "color", + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", - "Aspose.Pdf.Row", - "Aspose.Pdf.Cell", - "Aspose.Pdf.Image", - "Aspose.Pdf.Text.TextFragment" + "Aspose.Pdf.TableRow", + "Aspose.Pdf.TableCell", + "Aspose.Pdf.Drawing.Color" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "insert-image-into-pdf-table-cell": { - "title": "Insert Image from Memory Stream into PDF Table Cell", - "filename": "insert-image-into-pdf-table-cell.cs", - "description": "Shows how to load an image into a memory stream and embed it into a table cell of an existing PDF document using Aspose.Pdf.", - "tags": [ - "pdf", - "table", - "image", - "memory-stream", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Table", - "Aspose.Pdf.Row", - "Aspose.Pdf.Cell", - "Aspose.Pdf.Image" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:55:30Z", + "count-tables-in-pdf-using-tableabsorber": { + "title": "Count Tables In Pdf Using Tableabsorber", + "filename": "count-tables-in-pdf-using-tableabsorber.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "add-text-fragment-to-table-cell": { - "title": "Add TextFragment with Font and Size to a PDF Table Cell", - "filename": "add-text-fragment-to-table-cell.cs", - "description": "Demonstrates how to insert text with a specific font and size into a table cell by creating a TextFragment, configuring its TextState, and adding it to the cell's paragraphs.", + "count-tables-in-pdf": { + "title": "Count Tables in PDF using TableAbsorber", + "filename": "count-tables-in-pdf.cs", + "description": "Shows how to use Aspose.Pdf's TableAbsorber to locate and count tables in a PDF document.", "tags": [ "table", - "textfragment", - "font", "pdf", - "aspose-pdf" + "aspose-pdf", + "csharp", + "count" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Table", - "Aspose.Pdf.Row", - "Aspose.Pdf.Cell", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.FontRepository.FindFont", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Page" + "Aspose.Pdf.TableAbsorber", + "Aspose.Pdf.TableAbsorber.Visit", + "Aspose.Pdf.TableAbsorber.TableList" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "add-centered-paragraph-to-table-cell": { - "title": "Add Centered Paragraph to Table Cell", - "filename": "add-centered-paragraph-to-table-cell.cs", - "description": "Demonstrates how to create a PDF table with Aspose.Pdf and insert a paragraph into a cell with horizontal center alignment.", + "create-fixed-width-table-pdf": { + "title": "Create Fixed-Width Table in PDF", + "filename": "create-fixed-width-table-pdf.cs", + "description": "Shows how to set a table's total width to 500 points, add content, and save it as a PDF using Aspose.Pdf.", "tags": [ "table", - "paragraph", - "center-alignment", + "fixed-width", "pdf", - "aspose" + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", @@ -729,157 +785,188 @@ "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "set-cell-vertical-alignment-middle": { - "title": "Set Cell Vertical Alignment to Middle in PDF Table", - "filename": "set-cell-vertical-alignment-middle.cs", - "description": "Demonstrates how to create a PDF table with Aspose.Pdf, add a cell containing text, and set the cell's vertical alignment to middle using the VerticalAlignment property.", + "create-pdf-report-multiple-tables": { + "title": "Create PDF Report with Multiple Tables", + "filename": "create-pdf-report-multiple-tables.cs", + "description": "Demonstrates building a PDF document that contains several tables, each imported from a DataTable representing data from different databases.", "tags": [ - "table", - "cell-alignment", "pdf", - "aspose-pdf", - "vertical-alignment" + "tables", + "aspose", + "datatable", + "report" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Table", - "Aspose.Pdf.Row", - "Aspose.Pdf.Cell", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.VerticalAlignment" + "Aspose.Pdf.Text.FontRepository", + "Aspose.Pdf.Table", + "Aspose.Pdf.BorderInfo", + "Aspose.Pdf.MarginInfo", + "Aspose.Pdf.Position" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "center-table-horizontally": { - "title": "Center Table Horizontally in PDF", - "filename": "center-table-horizontally.cs", - "description": "Shows how to create a table, set its HorizontalAlignment to Center, and add it to a PDF page using Aspose.Pdf.", + "create-pdf-table-alternating-row-colors": { + "title": "Create PDF Table with Alternating Row Colors", + "filename": "create-pdf-table-alternating-row-colors.cs", + "description": "Shows how to generate a PDF table using Aspose.Pdf and apply alternating background colors to each data row.", "tags": [ - "table", - "alignment", "pdf", - "aspose", - "csharp" + "table", + "alternating-rows", + "background-color", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", "Aspose.Pdf.Row", - "Aspose.Pdf.Cell", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Text.TextFragment" + "Aspose.Pdf.BorderInfo", + "Aspose.Pdf.Color", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "offset-table-left-margin": { - "title": "Offset Table from Left Margin in PDF", - "filename": "offset-table-left-margin.cs", - "description": "Demonstrates how to shift a table away from the left page margin by setting Table.Margin.Left using MarginInfo, and adds a simple two‑column table to a PDF page.", + "create-pdf-table-dynamic-row-count": { + "title": "Create PDF Table with Dynamic Row Count", + "filename": "create-pdf-table-dynamic-row-count.cs", + "description": "Demonstrates building a DataTable at runtime, importing it into an Aspose.Pdf.Table, and saving the PDF with a dynamically sized table.", "tags": [ - "table", - "margin", - "offset", "pdf", - "aspose" + "table", + "dynamic", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", - "Aspose.Pdf.MarginInfo", - "Aspose.Pdf.Row" + "Aspose.Pdf.BorderInfo", + "Aspose.Pdf.Table.ImportDataTable" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "split-table-across-pdf-pages": { - "title": "Split Table Across PDF Pages with Aspose.Pdf", - "filename": "split-table-across-pdf-pages.cs", - "description": "Demonstrates enabling table breaking so a large table automatically continues onto subsequent pages in a PDF document using Aspose.Pdf.", + "create-pdf-table-from-datatable": { + "title": "Create PDF Table from a DataTable with Aspose.Pdf", + "filename": "create-pdf-table-from-datatable.cs", + "description": "Demonstrates how to fill an in‑memory DataTable, import it into an Aspose.Pdf Table, and save the result as a PDF document.", "tags": [ - "table", - "page-splitting", "pdf", - "aspose-pdf", + "datatable", + "aspose", + "table", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", - "Aspose.Pdf.Row", - "Aspose.Pdf.BorderInfo", - "Aspose.Pdf.MarginInfo" + "Aspose.Pdf.Table.ImportDataTable", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "prevent-table-splitting": { - "title": "Prevent Table Splitting Across PDF Pages", - "filename": "prevent-table-splitting.cs", - "description": "Shows how to keep an Aspose.Pdf table on a single page by setting Table.IsBroken to false and adding the table to a PDF document.", + "create-pdf-table-from-datatable__v2": { + "title": "Create Pdf Table From Datatable__V2", + "filename": "create-pdf-table-from-datatable__v2.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-pdf-table-from-filtered-dataview": { + "title": "Create PDF Table from Filtered DataView", + "filename": "create-pdf-table-from-filtered-dataview.cs", + "description": "Demonstrates filtering a DataView and manually populating an Aspose.Pdf Table to generate a PDF, avoiding the ImportDataView bug.", "tags": [ - "table", - "pdf", - "aspose", - "csharp", - "nosplit" + "DataView", + "Table", + "PDF", + "Filtering", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.Table", "Aspose.Pdf.Row", - "Aspose.Pdf.BorderInfo", - "Aspose.Pdf.Page", - "Aspose.Pdf.Color" + "Aspose.Pdf.Cell", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Drawing.ColumnAdjustment" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "calculate-remaining-page-space-add-table": { - "title": "Calculate Remaining Page Space and Add Table to PDF", - "filename": "calculate-remaining-page-space-add-table.cs", - "description": "Demonstrates how to compute the usable vertical space on a PDF page by subtracting margins and existing content, then conditionally place a table based on the remaining space.", + "create-repeating-table-header": { + "title": "Create Repeating Table Header in PDF", + "filename": "create-repeating-table-header.cs", + "description": "Shows how to add a table with a header row that repeats on each new page using Aspose.Pdf's tagged content API.", "tags": [ - "pdf", "table", - "space", - "margin", - "aspose" - ], + "header", + "repeat", + "tagged-content", + "pdf" + ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Page.CalculateContentBBox", - "Aspose.Pdf.PageInfo.PureHeight", - "Aspose.Pdf.Table", - "Aspose.Pdf.Table.GetHeight", - "Aspose.Pdf.Page.Paragraphs.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Tagged.ITaggedContent", + "Aspose.Pdf.Tagged.TableElement", + "Aspose.Pdf.Tagged.TableTHeadElement", + "Aspose.Pdf.Tagged.TableTRElement", + "Aspose.Pdf.Tagged.TableTHElement", + "Aspose.Pdf.Tagged.TableTBodyElement", + "Aspose.Pdf.Tagged.TableTDElement" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "create-fixed-width-table-pdf": { - "title": "Create Fixed-Width Table in PDF", - "filename": "create-fixed-width-table-pdf.cs", - "description": "Shows how to set a table's total width to 500 points, add content, and save it as a PDF using Aspose.Pdf.", + "create-table-double-border": { + "title": "Create Table Double Border", + "filename": "create-table-double-border.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-table-on-new-pdf-page": { + "title": "Create Table On New Pdf Page", + "filename": "create-table-on-new-pdf-page.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-table-with-header-and-data-rows": { + "title": "Create Table with Header and Data Rows in PDF", + "filename": "create-table-with-header-and-data-rows.cs", + "description": "Demonstrates how to programmatically create a PDF, add a table with a styled header row, populate it with data rows, and save the document using Aspose.Pdf for .NET.", "tags": [ "table", - "fixed-width", "pdf", - "aspose", - "csharp" + "aspose-pdf", + "csharp", + "styling" ], "apis_used": [ "Aspose.Pdf.Document", @@ -887,68 +974,112 @@ "Aspose.Pdf.Table", "Aspose.Pdf.Row", "Aspose.Pdf.Cell", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.HorizontalAlignment" + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.FontRepository.FindFont" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "set-table-width-percentage": { - "title": "Set Table Width as Percentage of Page Width", - "filename": "set-table-width-percentage.cs", - "description": "Shows how to define a table's width as a percentage of the page width using Aspose.Pdf and optionally center the table on the page.", + "create-table-with-repeating-header": { + "title": "Create Table With Repeating Header", + "filename": "create-table-with-repeating-header.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-table-with-rows-and-cells": { + "title": "Create Table With Rows And Cells", + "filename": "create-table-with-rows-and-cells.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "detect-extract-tables-rotated-pages": { + "title": "Detect and Extract Tables on Rotated PDF Pages", + "filename": "detect-extract-tables-rotated-pages.cs", + "description": "Demonstrates checking each page's rotation angle and using TableAbsorber to locate and enumerate tables on rotated PDF pages.", "tags": [ - "table", - "percentage-width", + "table extraction", + "rotation", "pdf", - "alignment", - "aspose-pdf" + "Aspose.Pdf", + "TableAbsorber" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Table", - "Aspose.Pdf.Row", - "Aspose.Pdf.Cell", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.HorizontalAlignment" + "Aspose.Pdf.Rotation", + "Aspose.Pdf.Text.TableAbsorber", + "Aspose.Pdf.Text.TableAbsorber.Visit", + "Aspose.Pdf.Text.TableAbsorber.TableList", + "Aspose.Pdf.Text.Table.RowList", + "Aspose.Pdf.Text.Row.CellList" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "map-datatable-columns-to-pdf-table": { - "title": "Map DataTable Columns to PDF Table Using ImportDataTable", - "filename": "map-datatable-columns-to-pdf-table.cs", - "description": "Shows how to map selected DataTable columns to specific PDF table columns by building a column‑mapping dictionary and using Table.ImportDataTable.", + "detect-merged-cells-in-pdf-tables": { + "title": "Detect Merged Cells in PDF Tables Using TableAbsorber", + "filename": "detect-merged-cells-in-pdf-tables.cs", + "description": "Shows how to use Aspose.Pdf's TableAbsorber with the FlowEngine to find tables that contain merged cells by examining each cell's ColSpan and RowSpan values.", "tags": [ - "datatable", - "column-mapping", - "pdf-table", - "aspose-pdf", - "import" + "table", + "merged-cells", + "aspose.pdf", + "tableabsorber", + "c#" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Table", - "Aspose.Pdf.Table.ImportDataTable" + "Aspose.Pdf.TableAbsorber", + "Aspose.Pdf.TableAbsorber.Visit", + "Aspose.Pdf.TableAbsorber.TableList", + "Aspose.Pdf.Table.RowList", + "Aspose.Pdf.Row.CellList", + "Aspose.Pdf.Cell.ColSpan" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "create-pdf-table-from-filtered-dataview": { - "title": "Create PDF Table from Filtered DataView", - "filename": "create-pdf-table-from-filtered-dataview.cs", - "description": "Demonstrates filtering a DataView and manually populating an Aspose.Pdf Table to generate a PDF, avoiding the ImportDataView bug.", + "determine-table-page-break-isbroken": { + "title": "Determine Table Page Break Isbroken", + "filename": "determine-table-page-break-isbroken.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "embed-html-fragment-in-table-cell": { + "title": "Embed Html Fragment In Table Cell", + "filename": "embed-html-fragment-in-table-cell.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "embed-html-in-table-cell": { + "title": "Embed HTML in Table Cell using HtmlFragment", + "filename": "embed-html-in-table-cell.cs", + "description": "Demonstrates how to insert HTML markup into a PDF table cell by adding an HtmlFragment to the cell's paragraph collection.", "tags": [ - "DataView", - "Table", - "PDF", - "Filtering", - "Aspose.Pdf" + "html", + "table", + "cell", + "pdf", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", @@ -956,202 +1087,353 @@ "Aspose.Pdf.Table", "Aspose.Pdf.Row", "Aspose.Pdf.Cell", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Drawing.ColumnAdjustment" + "Aspose.Pdf.Text.HtmlFragment", + "Aspose.Pdf.BorderInfo", + "Aspose.Pdf.Color" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "populate-pdf-table-from-linq-data": { - "title": "Populate PDF Table from LINQ Query via DataTable", - "filename": "populate-pdf-table-from-linq-data.cs", - "description": "Demonstrates converting a LINQ query result to a DataTable, importing it into an Aspose.Pdf Table, and saving the table in a PDF document.", + "enable-table-splitting-across-pdf-pages": { + "title": "Enable Table Splitting Across Pdf Pages", + "filename": "enable-table-splitting-across-pdf-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "export-pdf-table-structure-to-json": { + "title": "Export PDF Table Structure to JSON", + "filename": "export-pdf-table-structure-to-json.cs", + "description": "Shows how to extract the logical table structure from a tagged PDF using Aspose.Pdf, iterate rows and cells, and serialize their properties into a JSON file.", "tags": [ - "linq", - "datatable", "pdf", "table", - "aspose-pdf" + "json", + "export", + "tagged-content" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Table", - "Aspose.Pdf.BorderInfo", - "Aspose.Pdf.Color" + "Aspose.Pdf.Tagged.ITaggedContent", + "Aspose.Pdf.Tagged.StructureElement", + "Aspose.Pdf.Tagged.TableElement", + "Aspose.Pdf.Tagged.TableTRElement", + "Aspose.Pdf.Tagged.TableTDElement" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "add-table-to-specific-pdf-page": { - "title": "Add Table to Specific PDF Page", - "filename": "add-table-to-specific-pdf-page.cs", - "description": "Shows how to insert a formatted table onto a chosen page of a PDF document using Aspose.Pdf, including page validation, table construction, cell population, positioning, and saving.", + "export-pdf-table-to-csv": { + "title": "Export PDF Table Data to CSV", + "filename": "export-pdf-table-to-csv.cs", + "description": "Shows how to extract tables from a PDF using Aspose.Pdf's TableAbsorber and write each cell's text to a CSV file with proper escaping.", "tags": [ "pdf", "table", - "aspose.pdf", - "page", - "csharp" + "csv", + "aspose-pdf", + "export" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.TableAbsorber", + "Aspose.Pdf.TableAbsorber.Visit", + "Aspose.Pdf.TableAbsorber.TableList", + "Aspose.Pdf.Table.RowList", + "Aspose.Pdf.TableCell.TextFragments" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T08:55:30Z", + "status": "verified" + }, + "export-pdf-to-csv": { + "title": "Export Pdf To Csv", + "filename": "export-pdf-to-csv.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-pdf-tables-to-csv": { + "title": "Extract PDF Tables to CSV using TableAbsorber", + "filename": "extract-pdf-tables-to-csv.cs", + "description": "Demonstrates how to locate tables in a PDF with Aspose.Pdf's TableAbsorber and export each table to a separate CSV file, handling cell text and proper CSV escaping.", + "tags": [ + "table extraction", + "csv", + "aspose pdf", + "tableabsorber", + "pdf processing" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Table", - "Aspose.Pdf.Row", - "Aspose.Pdf.Cell", + "Aspose.Pdf.TableAbsorber", + "Aspose.Pdf.TableAbsorber.Visit", + "Aspose.Pdf.TableAbsorber.TableList", "Aspose.Pdf.Text.TextFragment" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "insert-table-after-paragraph": { - "title": "Insert Table After Specific Paragraph in PDF", - "filename": "insert-table-after-paragraph.cs", - "description": "Demonstrates how to locate a paragraph by its text, create a simple 2x2 table, and insert the table immediately after the found paragraph in a PDF document using Aspose.Pdf.", + "extract-pdf-tables-to-datatable": { + "title": "Extract PDF Tables into DataTable with TableAbsorber", + "filename": "extract-pdf-tables-to-datatable.cs", + "description": "Demonstrates how to use Aspose.Pdf's TableAbsorber to read tables from a PDF and populate them into .NET DataTable objects, including creating a sample PDF if needed.", "tags": [ + "table-extraction", "pdf", - "table", - "search", - "insert", - "aspnet" + "aspose", + "datatable", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Table", - "Aspose.Pdf.Row", - "Aspose.Pdf.Cell" + "Aspose.Pdf.TableAbsorber", + "Aspose.Pdf.TableAbsorber.Visit", + "Aspose.Pdf.TableAbsorber.TableList" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "insert-table-before-first-image": { - "title": "Insert Table Before First Image in PDF", - "filename": "insert-table-before-first-image.cs", - "description": "Demonstrates how to locate the first image on each PDF page, create a simple 2x2 table, and insert the table before the image using Aspose.Pdf.", + "extract-table-coordinates-from-pdf": { + "title": "Extract Table Coordinates from PDF", + "filename": "extract-table-coordinates-from-pdf.cs", + "description": "Demonstrates how to locate tables in a PDF and retrieve their bounding rectangle coordinates using Aspose.Pdf's TableAbsorber.", "tags": [ - "pdf", "table", - "image", + "coordinates", + "pdf", + "aspose", + "extraction" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.TableAbsorber", + "Aspose.Pdf.TableAbsorber.Visit", + "Aspose.Pdf.AbsorbedTable", + "Aspose.Pdf.Rectangle" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:55:30Z", + "status": "verified" + }, + "extract-tables-from-pdf": { + "title": "Extract Tables from PDF Using TableAbsorber", + "filename": "extract-tables-from-pdf.cs", + "description": "Demonstrates how to load a PDF, use Aspose.Pdf's TableAbsorber to detect tables, iterate through rows, cells, and text fragments, and save the document.", + "tags": [ + "tables", + "pdf", + "extraction", "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Image", - "Aspose.Pdf.Table", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.BorderInfo", - "Aspose.Pdf.MarginInfo" + "Aspose.Pdf.TableAbsorber", + "Aspose.Pdf.TableAbsorber.Visit", + "Aspose.Pdf.TableAbsorber.TableList", + "Aspose.Pdf.AbsorbedTable", + "Aspose.Pdf.AbsorbedRow", + "Aspose.Pdf.AbsorbedCell", + "Aspose.Pdf.Text.TextFragment" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "create-repeating-table-header": { - "title": "Create Repeating Table Header in PDF", - "filename": "create-repeating-table-header.cs", - "description": "Shows how to add a table with a header row that repeats on each new page using Aspose.Pdf's tagged content API.", + "extract-tables-from-rotated-pdf-pages": { + "title": "Extract Tables From Rotated Pdf Pages", + "filename": "extract-tables-from-rotated-pdf-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-text-from-pdf-tables": { + "title": "Extract Text from PDF Tables Using TableAbsorber", + "filename": "extract-text-from-pdf-tables.cs", + "description": "Demonstrates how to load a PDF, locate tables with TableAbsorber, iterate through rows and cells, and concatenate the text fragments inside each cell.", "tags": [ + "pdf", "table", - "header", - "repeat", - "tagged-content", - "pdf" + "text-extraction", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.TableElement", - "Aspose.Pdf.Tagged.TableTHeadElement", - "Aspose.Pdf.Tagged.TableTRElement", - "Aspose.Pdf.Tagged.TableTHElement", - "Aspose.Pdf.Tagged.TableTBodyElement", - "Aspose.Pdf.Tagged.TableTDElement" + "Aspose.Pdf.TableAbsorber", + "Aspose.Pdf.TableAbsorber.TableAbsorbed", + "Aspose.Pdf.TableAbsorber.TableAbsorbed.Row", + "Aspose.Pdf.TableAbsorber.TableAbsorbed.Cell", + "Aspose.Pdf.Text.TextFragment" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "style-table-header-row-pdf": { - "title": "Style Table Header Row in PDF with Aspose.Pdf", - "filename": "style-table-header-row-pdf.cs", - "description": "Creates a PDF document containing a table whose header row is styled with a background color and bold font using Aspose.Pdf.", + "generate-pdf-report-multiple-tables": { + "title": "Generate Pdf Report Multiple Tables", + "filename": "generate-pdf-report-multiple-tables.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "get-rendered-table-width-after-layout": { + "title": "Get Rendered Table Width After Layout", + "filename": "get-rendered-table-width-after-layout.cs", + "description": "Loads a PDF, inserts a table, and shows how to read the calculated width of the rendered table after layout using Aspose.Pdf.", "tags": [ "table", - "header", - "styling", + "width", + "layout", + "aspose-pdf", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Table", + "Aspose.Pdf.Row", + "Aspose.Pdf.Page", + "Aspose.Pdf.Table.GetWidth" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:55:30Z", + "status": "verified" + }, + "get-rendered-table-width": { + "title": "Get Rendered Table Width", + "filename": "get-rendered-table-width.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "import-datatable-images-into-pdf-table": { + "title": "Import Datatable Images Into Pdf Table", + "filename": "import-datatable-images-into-pdf-table.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "import-datatable-into-pdf-table": { + "title": "Import DataTable into PDF Table", + "filename": "import-datatable-into-pdf-table.cs", + "description": "Shows how to import an in‑memory DataTable into an Aspose.Pdf Table and save it as a PDF document.", + "tags": [ + "datatable", "pdf", + "table", + "import", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", - "Aspose.Pdf.Row", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Text.FontRepository", - "Aspose.Pdf.Color" + "Aspose.Pdf.Table.ImportDataTable", + "Aspose.Pdf.Page.Paragraphs.Add" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "add-table-footer-to-pdf": { - "title": "Add Table Footer Row Repeated on Each PDF Page", - "filename": "add-table-footer-to-pdf.cs", - "description": "Demonstrates how to add a visual table with a footer row that repeats at the bottom of each page and how to create the corresponding logical (tagged) structure using Aspose.Pdf.", + "import-dataview-into-pdf-table": { + "title": "Import Dataview Into Pdf Table", + "filename": "import-dataview-into-pdf-table.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "import-filtered-dataview-into-pdf-table": { + "title": "Import Filtered DataView into PDF Table", + "filename": "import-filtered-dataview-into-pdf-table.cs", + "description": "Shows how to filter a DataTable with a DataView and import the filtered rows into an Aspose.Pdf Table, then save the result as a PDF document.", "tags": [ + "dataview", "table", - "footer", - "tagged-pdf", - "aspose-pdf", - "pdf" + "import", + "pdf", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.Table", - "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.TableElement", - "Aspose.Pdf.Tagged.TableTFootElement", - "Aspose.Pdf.Tagged.TableTRElement", - "Aspose.Pdf.Tagged.TableTDElement" + "Aspose.Pdf.Table.ImportDataView", + "Aspose.Pdf.Page.Paragraphs.Add" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "create-pdf-table-alternating-row-colors": { - "title": "Create PDF Table with Alternating Row Colors", - "filename": "create-pdf-table-alternating-row-colors.cs", - "description": "Shows how to generate a PDF table using Aspose.Pdf and apply alternating background colors to each data row.", + "import-images-from-datatable-into-pdf-table": { + "title": "Import Images from DataTable into a PDF Table", + "filename": "import-images-from-datatable-into-pdf-table.cs", + "description": "Demonstrates how to load image byte arrays from a DataTable, create Image objects, and place them into cells of an Aspose.Pdf Table, then save the result as a PDF.", "tags": [ "pdf", + "image", + "datatable", "table", - "alternating-rows", - "background-color", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.Table", - "Aspose.Pdf.Row", - "Aspose.Pdf.BorderInfo", - "Aspose.Pdf.Color", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Drawing.Image", + "Aspose.Pdf.Page", + "Aspose.Pdf.Paragraphs.Add" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, + "insert-column-into-pdf-table": { + "title": "Insert Column Into Pdf Table", + "filename": "insert-column-into-pdf-table.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "insert-external-image-into-pdf-table-cell": { + "title": "Insert External Image Into Pdf Table Cell", + "filename": "insert-external-image-into-pdf-table-cell.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "insert-hyperlink-into-table-cell": { "title": "Insert Hyperlink into a Table Cell with LinkAnnotation", "filename": "insert-hyperlink-into-table-cell.cs", @@ -1177,108 +1459,85 @@ "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "add-checkbox-form-field-in-table-cell": { - "title": "Add Checkbox Form Field Inside Table Cell", - "filename": "add-checkbox-form-field-in-table-cell.cs", - "description": "Shows how to create a PDF with a table and place a checkbox form field inside one of the table's cells using Aspose.Pdf.", + "insert-image-into-pdf-table-cell": { + "title": "Insert Image from Memory Stream into PDF Table Cell", + "filename": "insert-image-into-pdf-table-cell.cs", + "description": "Shows how to load an image into a memory stream and embed it into a table cell of an existing PDF document using Aspose.Pdf.", "tags": [ "pdf", "table", - "checkbox", - "form", + "image", + "memory-stream", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", - "Aspose.Pdf.Forms.CheckboxField", - "Aspose.Pdf.Rectangle" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:55:30Z", - "status": "verified" - }, - "add-radio-button-group-in-table-cell": { - "title": "Add Radio Button Group Inside a Table Cell", - "filename": "add-radio-button-group-in-table-cell.cs", - "description": "Demonstrates how to place a group of radio buttons inside a table cell by creating a RadioButtonField, adding options, and attaching it to the PDF form.", - "tags": [ - "radio-button", - "table", - "form", - "aspdf", - "pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Table", - "Aspose.Pdf.Forms.RadioButtonField", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Document.Form.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Row", + "Aspose.Pdf.Cell", + "Aspose.Pdf.Image" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "export-pdf-table-structure-to-json": { - "title": "Export PDF Table Structure to JSON", - "filename": "export-pdf-table-structure-to-json.cs", - "description": "Shows how to extract the logical table structure from a tagged PDF using Aspose.Pdf, iterate rows and cells, and serialize their properties into a JSON file.", + "insert-image-into-table-cell": { + "title": "Insert Image into a PDF Table Cell", + "filename": "insert-image-into-table-cell.cs", + "description": "Demonstrates how to create a PDF document, add a table, and place an external image file inside a table cell using Aspose.Pdf.", "tags": [ "pdf", "table", - "json", - "export", - "tagged-content" + "image", + "aspose-pdf", + "csharp" ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.StructureElement", - "Aspose.Pdf.Tagged.TableElement", - "Aspose.Pdf.Tagged.TableTRElement", - "Aspose.Pdf.Tagged.TableTDElement" + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Table", + "Aspose.Pdf.Row", + "Aspose.Pdf.Cell", + "Aspose.Pdf.Image", + "Aspose.Pdf.Text.TextFragment" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "export-pdf-table-to-csv": { - "title": "Export PDF Table Data to CSV", - "filename": "export-pdf-table-to-csv.cs", - "description": "Shows how to extract tables from a PDF using Aspose.Pdf's TableAbsorber and write each cell's text to a CSV file with proper escaping.", + "insert-new-column-into-pdf-table": { + "title": "Insert New Column into PDF Table", + "filename": "insert-new-column-into-pdf-table.cs", + "description": "Shows how to add a new column to each row of a table in a PDF by inserting a Cell at a specified zero‑based index using Aspose.Pdf.", "tags": [ "pdf", "table", - "csv", + "column", "aspose-pdf", - "export" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.TableAbsorber", - "Aspose.Pdf.TableAbsorber.Visit", - "Aspose.Pdf.TableAbsorber.TableList", - "Aspose.Pdf.Table.RowList", - "Aspose.Pdf.TableCell.TextFragments" + "Aspose.Pdf.Page", + "Aspose.Pdf.Table", + "Aspose.Pdf.Row", + "Aspose.Pdf.Cell" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "serialize-pdf-table-to-xml": { - "title": "Serialize PDF Table to XML", - "filename": "serialize-pdf-table-to-xml.cs", - "description": "Shows how to create a PDF table from a DataTable, save the PDF, then read the table back and serialize its rows and cells into an XML document.", + "insert-page-break-after-table-row": { + "title": "Insert Page Break After Specific Table Row", + "filename": "insert-page-break-after-table-row.cs", + "description": "Demonstrates how to create a page break within a PDF table by setting the IsInNewPage property on a row, causing subsequent rows to start on a new page.", "tags": [ - "pdf", "table", - "xml", - "serialization", - "aspose-pdf" + "page-break", + "Aspose.Pdf", + "row", + "pdf" ], "apis_used": [ "Aspose.Pdf.Document", @@ -1287,401 +1546,515 @@ "Aspose.Pdf.Row", "Aspose.Pdf.Cell", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Table.ImportDataTable" + "Aspose.Pdf.BorderInfo" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "render-xml-table-to-pdf": { - "title": "Render XML-defined Table to PDF", - "filename": "render-xml-table-to-pdf.cs", - "description": "The example reads a table layout from an XML file, builds a DataTable, and uses Aspose.Pdf to create a PDF document with the table rendered on a page.", + "insert-svg-image-into-pdf-table-cell": { + "title": "Insert Svg Image Into Pdf Table Cell", + "filename": "insert-svg-image-into-pdf-table-cell.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "insert-svg-image-into-table-cell": { + "title": "Insert SVG Image into Table Cell", + "filename": "insert-svg-image-into-table-cell.cs", + "description": "Demonstrates how to embed an SVG file into a PDF by creating an Image object, adding it to a Table cell, and saving the document.", "tags": [ - "xml", - "datatable", + "svg", + "table", + "image", "pdf", - "aspose-pdf", - "table" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", - "Aspose.Pdf.BorderInfo", - "Aspose.Pdf.Color", - "Aspose.Pdf.Table.ImportDataTable" + "Aspose.Pdf.Row", + "Aspose.Pdf.Cell", + "Aspose.Pdf.Drawing.Image" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "count-tables-in-pdf": { - "title": "Count Tables in PDF using TableAbsorber", - "filename": "count-tables-in-pdf.cs", - "description": "Shows how to use Aspose.Pdf's TableAbsorber to locate and count tables in a PDF document.", + "insert-table-after-paragraph": { + "title": "Insert Table After Specific Paragraph in PDF", + "filename": "insert-table-after-paragraph.cs", + "description": "Demonstrates how to locate a paragraph by its text, create a simple 2x2 table, and insert the table immediately after the found paragraph in a PDF document using Aspose.Pdf.", "tags": [ - "table", "pdf", - "aspose-pdf", - "csharp", - "count" + "table", + "search", + "insert", + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.TableAbsorber", - "Aspose.Pdf.TableAbsorber.Visit", - "Aspose.Pdf.TableAbsorber.TableList" + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Table", + "Aspose.Pdf.Row", + "Aspose.Pdf.Cell" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "extract-table-coordinates-from-pdf": { - "title": "Extract Table Coordinates from PDF", - "filename": "extract-table-coordinates-from-pdf.cs", - "description": "Demonstrates how to locate tables in a PDF and retrieve their bounding rectangle coordinates using Aspose.Pdf's TableAbsorber.", + "insert-table-after-paragraph__v2": { + "title": "Insert Table After Paragraph__V2", + "filename": "insert-table-after-paragraph__v2.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "insert-table-at-specific-position": { + "title": "Insert Table at Specific Position in PDF", + "filename": "insert-table-at-specific-position.cs", + "description": "Demonstrates how to add an Aspose.Pdf.Table to an existing PDF page and position it at exact X/Y coordinates using MarginInfo.", "tags": [ "table", - "coordinates", + "position", "pdf", "aspose", - "extraction" + "margininfo" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.TableAbsorber", - "Aspose.Pdf.TableAbsorber.Visit", - "Aspose.Pdf.AbsorbedTable", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.Page", + "Aspose.Pdf.Table", + "Aspose.Pdf.MarginInfo", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Text.FontRepository", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "extract-text-from-pdf-tables": { - "title": "Extract Text from PDF Tables Using TableAbsorber", - "filename": "extract-text-from-pdf-tables.cs", - "description": "Demonstrates how to load a PDF, locate tables with TableAbsorber, iterate through rows and cells, and concatenate the text fragments inside each cell.", + "insert-table-before-first-image": { + "title": "Insert Table Before First Image in PDF", + "filename": "insert-table-before-first-image.cs", + "description": "Demonstrates how to locate the first image on each PDF page, create a simple 2x2 table, and insert the table before the image using Aspose.Pdf.", "tags": [ "pdf", "table", - "text-extraction", + "image", "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.TableAbsorber", - "Aspose.Pdf.TableAbsorber.TableAbsorbed", - "Aspose.Pdf.TableAbsorber.TableAbsorbed.Row", - "Aspose.Pdf.TableAbsorber.TableAbsorbed.Cell", - "Aspose.Pdf.Text.TextFragment" + "Aspose.Pdf.Page", + "Aspose.Pdf.Image", + "Aspose.Pdf.Table", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.BorderInfo", + "Aspose.Pdf.MarginInfo" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "replace-text-in-pdf-table-cells": { - "title": "Replace Text in PDF Table Cells", - "filename": "replace-text-in-pdf-table-cells.cs", - "description": "Shows how to locate tables in a PDF, find cells that contain a specific keyword, and replace the cell text using Aspose.Pdf's TableAbsorber and TextFragment classes.", + "insert-table-before-image": { + "title": "Insert Table Before Image", + "filename": "insert-table-before-image.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "insert-table-into-paragraph-collection": { + "title": "Insert Table into Paragraph Collection in PDF", + "filename": "insert-table-into-paragraph-collection.cs", + "description": "Shows how to add a TextFragment and then insert a Table as a paragraph into a PDF page using Aspose.Pdf.", "tags": [ "table", - "text-replacement", + "paragraph", "pdf", "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.TableAbsorber", + "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.TableAbsorber.Visit", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Drawing.Position", + "Aspose.Pdf.Table", + "Aspose.Pdf.Row", + "Aspose.Pdf.Cell", + "Aspose.Pdf.ParagraphCollection.Insert" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "remove-column-from-pdf-table": { - "title": "Remove a Column from a PDF Table", - "filename": "remove-column-from-pdf-table.cs", - "description": "Shows how to delete a specific column from a table in a PDF by removing the corresponding Cell objects from each Row using Aspose.Pdf.", + "insert-table-into-pdf-page": { + "title": "Insert Table Into Pdf Page", + "filename": "insert-table-into-pdf-page.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "insert-table-into-pdf": { + "title": "Insert Table into Existing PDF Page", + "filename": "insert-table-into-pdf.cs", + "description": "Shows how to load an existing PDF with Aspose.Pdf, create and style a Table, position it on a specific page, and save the updated document.", "tags": [ - "pdf", "table", - "column", - "aspose-pdf", - "csharp" + "pdf", + "aspose.pdf", + "insert", + "c#" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", "Aspose.Pdf.Row", - "Aspose.Pdf.Cell" + "Aspose.Pdf.Cell", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Text.FontRepository.FindFont", + "Aspose.Pdf.BorderInfo" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "insert-new-column-into-pdf-table": { - "title": "Insert New Column into PDF Table", - "filename": "insert-new-column-into-pdf-table.cs", - "description": "Shows how to add a new column to each row of a table in a PDF by inserting a Cell at a specified zero‑based index using Aspose.Pdf.", + "insert-table-into-textbox-field": { + "title": "Insert Table Into Textbox Field", + "filename": "insert-table-into-textbox-field.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "landscape-pdf-with-wide-table": { + "title": "Landscape Pdf With Wide Table", + "filename": "landscape-pdf-with-wide-table.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "map-datatable-columns-to-pdf-table": { + "title": "Map DataTable Columns to PDF Table Using ImportDataTable", + "filename": "map-datatable-columns-to-pdf-table.cs", + "description": "Shows how to map selected DataTable columns to specific PDF table columns by building a column‑mapping dictionary and using Table.ImportDataTable.", "tags": [ - "pdf", - "table", - "column", + "datatable", + "column-mapping", + "pdf-table", "aspose-pdf", - "csharp" + "import" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", - "Aspose.Pdf.Row", - "Aspose.Pdf.Cell" + "Aspose.Pdf.Table.ImportDataTable" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "reorder-pdf-table-columns": { - "title": "Reorder PDF Table Columns", - "filename": "reorder-pdf-table-columns.cs", - "description": "Demonstrates extracting a table from a PDF, rebuilding it with a custom column order, and replacing the original table using Aspose.Pdf.", + "mark-table-header-enable-column-repeat": { + "title": "Mark Table Header and Enable Column Repeat", + "filename": "mark-table-header-enable-column-repeat.cs", + "description": "Shows how to mark a table column as a header and enable column repeat so the header appears on each new page, using both visual Table and tagged PDF structure for accessibility.", "tags": [ - "pdf", "table", - "column-reorder", - "aspose-pdf", - "csharp" + "header", + "column-repeat", + "tagged-pdf", + "accessibility" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.TableAbsorber", - "Aspose.Pdf.AbsorbedTable", "Aspose.Pdf.Table", - "Aspose.Pdf.Row", - "Aspose.Pdf.Cell", - "Aspose.Pdf.Text.TextFragment" + "Aspose.Pdf.Tagged.ITaggedContent", + "Aspose.Pdf.Tagged.TableElement", + "Aspose.Pdf.Tagged.TableTHeadElement", + "Aspose.Pdf.Tagged.TableTHElement", + "Aspose.Pdf.Tagged.TableTBodyElement" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "adjust-table-column-widths-proportionally": { - "title": "Adjust Table Column Widths Proportionally in PDF", - "filename": "adjust-table-column-widths-proportionally.cs", - "description": "Shows how to compute the total width of a table's columns, convert each width to a percentage of that total, and apply the proportional widths to a PDF table using Aspose.Pdf.", + "merge-table-cells-colspan": { + "title": "Merge Table Cells Across Multiple Columns", + "filename": "merge-table-cells-colspan.cs", + "description": "Demonstrates how to merge three adjacent columns in an Aspose.Pdf table by setting the Cell.ColSpan property.", "tags": [ "table", - "column-width", - "percentage", + "colspan", "pdf", - "aspose-pdf" + "aspose-pdf", + "cell-merge" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", - "Aspose.Pdf.Row", - "Aspose.Pdf.BorderInfo", - "Aspose.Pdf.ColumnAdjustment" + "Aspose.Pdf.Row", + "Aspose.Pdf.Cell", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.FontRepository", + "Aspose.Pdf.Color" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "set-minimum-column-width": { - "title": "Set Minimum Column Width for PDF Table", - "filename": "set-minimum-column-width.cs", - "description": "Demonstrates how to enforce a minimum column width in a PDF table by using the Table.DefaultColumnWidth property and optionally defining explicit column widths with Aspose.Pdf.", + "merge-table-cells-vertically-rowspan": { + "title": "Merge Table Cells Vertically Using RowSpan", + "filename": "merge-table-cells-vertically-rowspan.cs", + "description": "Shows how to merge a table cell with the cell directly below by setting the Cell.RowSpan property in an Aspose.Pdf table.", "tags": [ "table", - "column-width", + "rowspan", + "cell-merge", "pdf", - "aspose-pdf", - "default-column-width" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", - "Aspose.Pdf.BorderInfo", "Aspose.Pdf.Row", - "Aspose.Pdf.Cell" + "Aspose.Pdf.Cell", + "Aspose.Pdf.BorderInfo" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "set-maximum-table-column-width": { - "title": "Limit Table Column Widths in PDF", - "filename": "set-maximum-table-column-width.cs", - "description": "Demonstrates how to set a default column width and explicit column widths to prevent table columns from expanding beyond a specified point measurement in a PDF using Aspose.Pdf.", + "merge-table-columns-using-cell-colspan": { + "title": "Merge Table Columns Using Cell Colspan", + "filename": "merge-table-columns-using-cell-colspan.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "offset-table-left-margin": { + "title": "Offset Table from Left Margin in PDF", + "filename": "offset-table-left-margin.cs", + "description": "Demonstrates how to shift a table away from the left page margin by setting Table.Margin.Left using MarginInfo, and adds a simple two‑column table to a PDF page.", "tags": [ - "pdf", "table", - "column-width", - "aspose-pdf", - "csharp" + "margin", + "offset", + "pdf", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", - "Aspose.Pdf.Row", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.MarginInfo", + "Aspose.Pdf.Row" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "add-auto-numbered-column-to-pdf-table": { - "title": "Add Auto‑Numbered Column to PDF Table", - "filename": "add-auto-numbered-column-to-pdf-table.cs", - "description": "Shows how to create a PDF table with Aspose.Pdf and fill the first column with sequential numbers using the Table.ImportArray method.", + "populate-pdf-table-from-linq-data": { + "title": "Populate PDF Table from LINQ Query via DataTable", + "filename": "populate-pdf-table-from-linq-data.cs", + "description": "Demonstrates converting a LINQ query result to a DataTable, importing it into an Aspose.Pdf Table, and saving the table in a PDF document.", "tags": [ + "linq", + "datatable", "pdf", "table", - "autonumber", - "importarray", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", - "Aspose.Pdf.Row", "Aspose.Pdf.BorderInfo", - "Aspose.Pdf.MarginInfo", - "Aspose.Pdf.Text.TextState" + "Aspose.Pdf.Color" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "add-table-with-semi-transparent-background": { - "title": "Add Table with Semi-Transparent Background to PDF", - "filename": "add-table-with-semi-transparent-background.cs", - "description": "Demonstrates how to create a PDF, add a table, and set the table's background color with opacity using Aspose.Pdf.", + "populate-pdf-table-from-linq-query": { + "title": "Populate Pdf Table From Linq Query", + "filename": "populate-pdf-table-from-linq-query.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "prevent-table-splitting": { + "title": "Prevent Table Splitting Across PDF Pages", + "filename": "prevent-table-splitting.cs", + "description": "Shows how to keep an Aspose.Pdf table on a single page by setting Table.IsBroken to false and adding the table to a PDF document.", "tags": [ "table", - "background-color", - "opacity", "pdf", - "aspose-pdf" + "aspose", + "csharp", + "nosplit" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", "Aspose.Pdf.Table", "Aspose.Pdf.Row", - "Aspose.Pdf.Color", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Page.Paragraphs.Add" + "Aspose.Pdf.BorderInfo", + "Aspose.Pdf.Page", + "Aspose.Pdf.Color" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "add-table-with-background-color": { - "title": "Add Table with Background Color to PDF", - "filename": "add-table-with-background-color.cs", - "description": "Demonstrates creating a PDF, inserting a table, and applying a solid background color while noting that gradient backgrounds are not supported via the Table.BackgroundColor property.", + "remove-all-tables-from-pdf": { + "title": "Remove All Tables from a PDF Document", + "filename": "remove-all-tables-from-pdf.cs", + "description": "Shows how to locate tables in a PDF using TableAbsorber and delete each absorbed table from the document.", "tags": [ - "table", - "background-color", "pdf", - "aspose-pdf", - "gradient-limitations" + "tables", + "remove", + "aspose.pdf", + "c#" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Table", - "Aspose.Pdf.Row", - "Aspose.Pdf.Color" + "Aspose.Pdf.TableAbsorber", + "Aspose.Pdf.TableAbsorber.Visit", + "Aspose.Pdf.TableAbsorber.TableList", + "Aspose.Pdf.TableAbsorber.Remove", + "Aspose.Pdf.AbsorbedTable" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "set-table-z-index": { - "title": "Set Table Z-Index to Control Overlap in PDF", - "filename": "set-table-z-index.cs", - "description": "Demonstrates how to assign a ZIndex value to a Table so it renders above other page elements such as a background rectangle in an Aspose.Pdf document.", + "remove-column-from-pdf-table": { + "title": "Remove a Column from a PDF Table", + "filename": "remove-column-from-pdf-table.cs", + "description": "Shows how to delete a specific column from a table in a PDF by removing the corresponding Cell objects from each Row using Aspose.Pdf.", "tags": [ - "z-index", - "table", "pdf", + "table", + "column", "aspose-pdf", - "overlap" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Rectangle", "Aspose.Pdf.Table", "Aspose.Pdf.Row", - "Aspose.Pdf.Cell", - "Aspose.Pdf.BorderInfo" + "Aspose.Pdf.Cell" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "insert-table-into-paragraph-collection": { - "title": "Insert Table into Paragraph Collection in PDF", - "filename": "insert-table-into-paragraph-collection.cs", - "description": "Shows how to add a TextFragment and then insert a Table as a paragraph into a PDF page using Aspose.Pdf.", + "remove-first-table-from-pdf": { + "title": "Remove First Table from PDF using TableAbsorber", + "filename": "remove-first-table-from-pdf.cs", + "description": "Shows how to locate tables in a PDF with TableAbsorber and delete the first detected table.", "tags": [ "table", - "paragraph", + "remove", "pdf", - "aspose", - "csharp" + "aspose-pdf", + "tableabsorber" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Drawing.Position", - "Aspose.Pdf.Table", - "Aspose.Pdf.Row", - "Aspose.Pdf.Cell", - "Aspose.Pdf.ParagraphCollection.Insert" + "Aspose.Pdf.TableAbsorber", + "Aspose.Pdf.TableAbsorber.Visit", + "Aspose.Pdf.TableAbsorber.Remove", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "import-images-from-datatable-into-pdf-table": { - "title": "Import Images from DataTable into a PDF Table", - "filename": "import-images-from-datatable-into-pdf-table.cs", - "description": "Demonstrates how to load image byte arrays from a DataTable, create Image objects, and place them into cells of an Aspose.Pdf Table, then save the result as a PDF.", + "remove-table-from-pdf": { + "title": "Remove Table From Pdf", + "filename": "remove-table-from-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "remove-tables-containing-keyword": { + "title": "Remove Tables Containing a Keyword from a PDF", + "filename": "remove-tables-containing-keyword.cs", + "description": "Demonstrates how to locate tables in a PDF using Aspose.Pdf's TableAbsorber, scan each cell for a specific keyword, and delete the matching tables before saving the document.", "tags": [ + "tables", + "keyword", "pdf", - "image", - "datatable", - "table", - "aspose-pdf" + "removal", + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Table", - "Aspose.Pdf.Drawing.Image", - "Aspose.Pdf.Page", - "Aspose.Pdf.Paragraphs.Add" + "Aspose.Pdf.TableAbsorber", + "Aspose.Pdf.AbsorbedTable", + "Aspose.Pdf.TableAbsorber.Visit", + "Aspose.Pdf.TableAbsorber.Remove" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, + "render-rotated-table-pdf": { + "title": "Render Rotated Table Pdf", + "filename": "render-rotated-table-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "render-table-from-xml-to-pdf": { + "title": "Render Table From Xml To Pdf", + "filename": "render-table-from-xml-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "render-table-high-dpi-images": { "title": "Render Table with High‑DPI Images", "filename": "render-table-high-dpi-images.cs", @@ -1705,149 +2078,111 @@ "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "create-pdf-report-multiple-tables": { - "title": "Create PDF Report with Multiple Tables", - "filename": "create-pdf-report-multiple-tables.cs", - "description": "Demonstrates building a PDF document that contains several tables, each imported from a DataTable representing data from different databases.", - "tags": [ - "pdf", - "tables", - "aspose", - "datatable", - "report" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.FontRepository", - "Aspose.Pdf.Table", - "Aspose.Pdf.BorderInfo", - "Aspose.Pdf.MarginInfo", - "Aspose.Pdf.Position" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:55:30Z", - "status": "verified" - }, - "create-pdf-table-dynamic-row-count": { - "title": "Create PDF Table with Dynamic Row Count", - "filename": "create-pdf-table-dynamic-row-count.cs", - "description": "Demonstrates building a DataTable at runtime, importing it into an Aspose.Pdf.Table, and saving the PDF with a dynamically sized table.", + "render-table-on-new-pdf-page": { + "title": "Render Table on a New PDF Page", + "filename": "render-table-on-new-pdf-page.cs", + "description": "Shows how to create a PDF document with Aspose.Pdf, add a new page, build a table with header and data rows, and save the result.", "tags": [ "pdf", "table", - "dynamic", - "aspose", - "csharp" + "aspose-pdf", + "csharp", + "document" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", + "Aspose.Pdf.Row", "Aspose.Pdf.BorderInfo", - "Aspose.Pdf.Table.ImportDataTable" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:55:30Z", - "status": "verified" - }, - "conditional-formatting-table-cells": { - "title": "Conditional Formatting of Table Cells in PDF", - "filename": "conditional-formatting-table-cells.cs", - "description": "Demonstrates how to create a PDF table with Aspose.Pdf, add data rows, and apply background colors to cells when numeric values exceed defined thresholds.", - "tags": [ - "pdf", - "table", - "conditional-formatting", - "color", - "aspnet" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Table", - "Aspose.Pdf.TableRow", - "Aspose.Pdf.TableCell", - "Aspose.Pdf.Drawing.Color" + "Aspose.Pdf.MarginInfo" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "rotate-text-in-table-cell": { - "title": "Rotate Text Inside a Table Cell", - "filename": "rotate-text-in-table-cell.cs", - "description": "Creates a PDF, adds a table with a single cell, and rotates the text inside that cell by setting the TextFragment's TextState.Rotation property.", + "render-wide-table-landscape": { + "title": "Render Wide Table in Landscape Orientation", + "filename": "render-wide-table-landscape.cs", + "description": "Demonstrates setting a PDF page to landscape orientation and adding a wide table that fits the page using Aspose.Pdf.", "tags": [ - "text-rotation", + "landscape", "table", "pdf", - "aspose-pdf", - "csharp" + "aspose", + "orientation" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.PageInfo.IsLandscape", + "Aspose.Pdf.Page.SetPageSize", "Aspose.Pdf.Table", "Aspose.Pdf.Row", - "Aspose.Pdf.Cell", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextState.Rotation" + "Aspose.Pdf.BorderInfo", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "rotate-table-90-degrees-pdf": { - "title": "Render a 90° Rotated Table in a PDF", - "filename": "rotate-table-90-degrees-pdf.cs", - "description": "Demonstrates creating a table from a DataTable, adding it to a PDF page, and rotating the entire page (including the table) by 90 degrees using Aspose.Pdf.", + "render-xml-table-to-pdf": { + "title": "Render XML-defined Table to PDF", + "filename": "render-xml-table-to-pdf.cs", + "description": "The example reads a table layout from an XML file, builds a DataTable, and uses Aspose.Pdf to create a PDF document with the table rendered on a page.", "tags": [ - "table", - "rotation", + "xml", + "datatable", "pdf", - "aspose.pdf", - "c#" + "aspose-pdf", + "table" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", "Aspose.Pdf.BorderInfo", - "Aspose.Pdf.Rotation", - "Aspose.Pdf.Table.ImportDataTable", - "Aspose.Pdf.Page.Paragraphs.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Color", + "Aspose.Pdf.Table.ImportDataTable" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "detect-merged-cells-in-pdf-tables": { - "title": "Detect Merged Cells in PDF Tables Using TableAbsorber", - "filename": "detect-merged-cells-in-pdf-tables.cs", - "description": "Shows how to use Aspose.Pdf's TableAbsorber with the FlowEngine to find tables that contain merged cells by examining each cell's ColSpan and RowSpan values.", + "reorder-pdf-table-columns": { + "title": "Reorder PDF Table Columns", + "filename": "reorder-pdf-table-columns.cs", + "description": "Demonstrates extracting a table from a PDF, rebuilding it with a custom column order, and replacing the original table using Aspose.Pdf.", "tags": [ + "pdf", "table", - "merged-cells", - "aspose.pdf", - "tableabsorber", - "c#" + "column-reorder", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.TableAbsorber", - "Aspose.Pdf.TableAbsorber.Visit", - "Aspose.Pdf.TableAbsorber.TableList", - "Aspose.Pdf.Table.RowList", - "Aspose.Pdf.Row.CellList", - "Aspose.Pdf.Cell.ColSpan" + "Aspose.Pdf.AbsorbedTable", + "Aspose.Pdf.Table", + "Aspose.Pdf.Row", + "Aspose.Pdf.Cell", + "Aspose.Pdf.Text.TextFragment" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, + "reorder-table-columns-in-pdf": { + "title": "Reorder Table Columns In Pdf", + "filename": "reorder-table-columns-in-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "replace-merged-table-cells": { "title": "Replace Merged Table Cells with Separate Cells", "filename": "replace-merged-table-cells.cs", @@ -1873,48 +2208,55 @@ "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "add-footnote-references-to-table-cells": { - "title": "Add Footnote References to Table Cells in PDF", - "filename": "add-footnote-references-to-table-cells.cs", - "description": "Shows how to insert superscript footnote markers inside table cells, attach Aspose.Pdf footnote notes, and save the updated PDF.", + "replace-table-cell-text-by-keyword": { + "title": "Replace Table Cell Text By Keyword", + "filename": "replace-table-cell-text-by-keyword.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "replace-table-in-pdf": { + "title": "Replace Table in PDF Using Aspose.Pdf", + "filename": "replace-table-in-pdf.cs", + "description": "Shows how to locate tables on each PDF page with TableAbsorber, create a new Table, and replace the original table while keeping its position.", "tags": [ "table", - "footnote", + "replace", "pdf", - "aspose", + "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.TableAbsorber", "Aspose.Pdf.Table", - "Aspose.Pdf.Row", - "Aspose.Pdf.Cell", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.Note" + "Aspose.Pdf.TableAbsorber.Replace" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "insert-table-at-specific-position": { - "title": "Insert Table at Specific Position in PDF", - "filename": "insert-table-at-specific-position.cs", - "description": "Demonstrates how to add an Aspose.Pdf.Table to an existing PDF page and position it at exact X/Y coordinates using MarginInfo.", + "replace-text-in-pdf-table-cells": { + "title": "Replace Text in PDF Table Cells", + "filename": "replace-text-in-pdf-table-cells.cs", + "description": "Shows how to locate tables in a PDF, find cells that contain a specific keyword, and replace the cell text using Aspose.Pdf's TableAbsorber and TextFragment classes.", "tags": [ "table", - "position", + "text-replacement", "pdf", "aspose", - "margininfo" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Table", - "Aspose.Pdf.MarginInfo", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Text.FontRepository", + "Aspose.Pdf.TableAbsorber", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.TableAbsorber.Visit", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", @@ -1944,62 +2286,145 @@ "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "set-table-border-thickness": { - "title": "Set Table Border Thickness in PDF", - "filename": "set-table-border-thickness.cs", - "description": "Shows how to create a PDF table with a 2‑point border using Aspose.Pdf, including column widths, cell padding, and adding header and data rows.", + "rotate-page-add-table": { + "title": "Rotate PDF Page and Add Table", + "filename": "rotate-page-add-table.cs", + "description": "Shows how to rotate a PDF page 90 degrees clockwise and insert a simple two‑column table onto the rotated page using Aspose.Pdf.", "tags": [ + "rotation", "table", - "border", "pdf", "aspose", - "csharp" + "page" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rotation", + "Aspose.Pdf.Table", + "Aspose.Pdf.Row" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T08:55:30Z", + "status": "verified" + }, + "rotate-table-90-degrees-pdf": { + "title": "Render a 90° Rotated Table in a PDF", + "filename": "rotate-table-90-degrees-pdf.cs", + "description": "Demonstrates creating a table from a DataTable, adding it to a PDF page, and rotating the entire page (including the table) by 90 degrees using Aspose.Pdf.", + "tags": [ + "table", + "rotation", + "pdf", + "aspose.pdf", + "c#" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", "Aspose.Pdf.BorderInfo", + "Aspose.Pdf.Rotation", + "Aspose.Pdf.Table.ImportDataTable", + "Aspose.Pdf.Page.Paragraphs.Add", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T08:55:30Z", + "status": "verified" + }, + "rotate-text-in-table-cell": { + "title": "Rotate Text Inside a Table Cell", + "filename": "rotate-text-in-table-cell.cs", + "description": "Creates a PDF, adds a table with a single cell, and rotates the text inside that cell by setting the TextFragment's TextState.Rotation property.", + "tags": [ + "text-rotation", + "table", + "pdf", + "aspose-pdf", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Table", "Aspose.Pdf.Row", - "Aspose.Pdf.MarginInfo" + "Aspose.Pdf.Cell", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.TextState.Rotation" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "apply-double-border-to-pdf-table": { - "title": "Apply Double Border to PDF Table", - "filename": "apply-double-border-to-pdf-table.cs", - "description": "Creates a PDF with a 3x3 table and sets a double‑border effect by configuring BorderInfo with width and color.", + "serialize-pdf-table-to-xml": { + "title": "Serialize PDF Table to XML", + "filename": "serialize-pdf-table-to-xml.cs", + "description": "Shows how to create a PDF table from a DataTable, save the PDF, then read the table back and serialize its rows and cells into an XML document.", "tags": [ + "pdf", "table", - "border", + "xml", + "serialization", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Table", + "Aspose.Pdf.Row", + "Aspose.Pdf.Cell", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Table.ImportDataTable" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T08:55:30Z", + "status": "verified" + }, + "serialize-table-to-xml": { + "title": "Serialize Table To Xml", + "filename": "serialize-table-to-xml.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-cell-background-color-in-pdf-table": { + "title": "Set Cell Background Color in PDF Table", + "filename": "set-cell-background-color-in-pdf-table.cs", + "description": "Creates a PDF document, adds a table, and sets the background color of a specific cell to light gray.", + "tags": [ "pdf", - "Aspose.Pdf", - "double-border" + "table", + "cell", + "background-color", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", "Aspose.Pdf.Row", - "Aspose.Pdf.Drawing.BorderInfo", - "Aspose.Pdf.Drawing.Color" + "Aspose.Pdf.Cell", + "Aspose.Pdf.Color", + "Aspose.Pdf.Text.TextFragment" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "add-multiline-text-to-table-cell": { - "title": "Add Multiline Text to Table Cell in PDF", - "filename": "add-multiline-text-to-table-cell.cs", - "description": "Demonstrates how to insert multiline text into a PDF table cell by adding separate TextFragment objects and a line‑break fragment.", + "set-cell-vertical-alignment-middle": { + "title": "Set Cell Vertical Alignment to Middle in PDF Table", + "filename": "set-cell-vertical-alignment-middle.cs", + "description": "Demonstrates how to create a PDF table with Aspose.Pdf, add a cell containing text, and set the cell's vertical alignment to middle using the VerticalAlignment property.", "tags": [ "table", - "multiline", - "textfragment", + "cell-alignment", "pdf", - "aspose" + "aspose-pdf", + "vertical-alignment" ], "apis_used": [ "Aspose.Pdf.Document", @@ -2008,90 +2433,131 @@ "Aspose.Pdf.Row", "Aspose.Pdf.Cell", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.FontRepository.FindFont" + "Aspose.Pdf.VerticalAlignment" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:55:30Z", + "status": "verified" + }, + "set-custom-cell-margins-in-pdf-table": { + "title": "Set Custom Cell Margins in a PDF Table", + "filename": "set-custom-cell-margins-in-pdf-table.cs", + "description": "Demonstrates how to configure margins for a table cell using MarginInfo and assign it to the cell's Margin property in Aspose.Pdf.", + "tags": [ + "table", + "cell-margins", + "pdf", + "aspose-pdf", + "margininfo" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Table", + "Aspose.Pdf.Row", + "Aspose.Pdf.Cell", + "Aspose.Pdf.MarginInfo" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "add-list-items-in-table-cell": { - "title": "Add List Items Inside a Table Cell", - "filename": "add-list-items-in-table-cell.cs", - "description": "Shows how to create a bullet list within a PDF table cell by adding TextFragment paragraphs with list markers.", + "set-custom-row-height-in-pdf-table": { + "title": "Set Custom Row Height in PDF Table", + "filename": "set-custom-row-height-in-pdf-table.cs", + "description": "Shows how to create a PDF document with a table and assign a fixed height to a specific row using Aspose.Pdf for .NET.", "tags": [ "table", - "list", - "cell", + "row-height", "pdf", - "aspose" + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", "Aspose.Pdf.Row", - "Aspose.Pdf.Cell", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.FontRepository" + "Aspose.Pdf.Page.Paragraphs.Add", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "extract-pdf-tables-to-csv": { - "title": "Extract PDF Tables to CSV using TableAbsorber", - "filename": "extract-pdf-tables-to-csv.cs", - "description": "Demonstrates how to locate tables in a PDF with Aspose.Pdf's TableAbsorber and export each table to a separate CSV file, handling cell text and proper CSV escaping.", + "set-default-cell-padding-for-pdf-table": { + "title": "Set Default Cell Padding for a PDF Table", + "filename": "set-default-cell-padding-for-pdf-table.cs", + "description": "Creates a PDF document, adds a table, and applies uniform cell padding to all cells by setting Table.DefaultCellPadding with a MarginInfo instance.", "tags": [ - "table extraction", - "csv", - "aspose pdf", - "tableabsorber", - "pdf processing" + "table", + "padding", + "margininfo", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.TableAbsorber", - "Aspose.Pdf.TableAbsorber.Visit", - "Aspose.Pdf.TableAbsorber.TableList", - "Aspose.Pdf.Text.TextFragment" + "Aspose.Pdf.Table", + "Aspose.Pdf.MarginInfo", + "Aspose.Pdf.Row" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "extract-pdf-tables-to-datatable": { - "title": "Extract PDF Tables into DataTable with TableAbsorber", - "filename": "extract-pdf-tables-to-datatable.cs", - "description": "Demonstrates how to use Aspose.Pdf's TableAbsorber to read tables from a PDF and populate them into .NET DataTable objects, including creating a sample PDF if needed.", + "set-fixed-row-height-for-pdf-table-rows": { + "title": "Set Fixed Row Height for PDF Table Rows", + "filename": "set-fixed-row-height-for-pdf-table-rows.cs", + "description": "Shows how to create a PDF table and enforce a fixed height for each row using Aspose.Pdf in C#.", "tags": [ - "table-extraction", "pdf", + "table", + "row-height", "aspose", - "datatable", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.Table", - "Aspose.Pdf.TableAbsorber", - "Aspose.Pdf.TableAbsorber.Visit", - "Aspose.Pdf.TableAbsorber.TableList" + "Aspose.Pdf.Row", + "Aspose.Pdf.Text.TextFragment" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "set-custom-row-height-in-pdf-table": { - "title": "Set Custom Row Height in PDF Table", - "filename": "set-custom-row-height-in-pdf-table.cs", - "description": "Shows how to create a PDF document with a table and assign a fixed height to a specific row using Aspose.Pdf for .NET.", + "set-fixed-row-height-table-rows": { + "title": "Set Fixed Row Height Table Rows", + "filename": "set-fixed-row-height-table-rows.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-maximum-column-widths-for-pdf-table": { + "title": "Set Maximum Column Widths For Pdf Table", + "filename": "set-maximum-column-widths-for-pdf-table.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-maximum-table-column-width": { + "title": "Limit Table Column Widths in PDF", + "filename": "set-maximum-table-column-width.cs", + "description": "Demonstrates how to set a default column width and explicit column widths to prevent table columns from expanding beyond a specified point measurement in a PDF using Aspose.Pdf.", "tags": [ - "table", - "row-height", "pdf", - "aspose", + "table", + "column-width", + "aspose-pdf", "csharp" ], "apis_used": [ @@ -2099,44 +2565,73 @@ "Aspose.Pdf.Page", "Aspose.Pdf.Table", "Aspose.Pdf.Row", - "Aspose.Pdf.Page.Paragraphs.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "auto-fit-table-row-height": { - "title": "Auto‑Fit Table Row Height in PDF", - "filename": "auto-fit-table-row-height.cs", - "description": "Demonstrates how to let a table row automatically adjust its height to fit wrapped cell content by leaving FixedRowHeight unset and setting MinRowHeight to zero.", + "set-minimum-column-width-for-pdf-tables": { + "title": "Set Minimum Column Width For Pdf Tables", + "filename": "set-minimum-column-width-for-pdf-tables.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-minimum-column-width": { + "title": "Set Minimum Column Width for PDF Table", + "filename": "set-minimum-column-width.cs", + "description": "Demonstrates how to enforce a minimum column width in a PDF table by using the Table.DefaultColumnWidth property and optionally defining explicit column widths with Aspose.Pdf.", "tags": [ "table", - "autofit", - "row-height", + "column-width", "pdf", - "aspose" + "aspose-pdf", + "default-column-width" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", + "Aspose.Pdf.BorderInfo", "Aspose.Pdf.Row", - "Aspose.Pdf.Cell", - "Aspose.Pdf.Text.TextFragment" + "Aspose.Pdf.Cell" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "set-fixed-row-height-for-pdf-table-rows": { - "title": "Set Fixed Row Height for PDF Table Rows", - "filename": "set-fixed-row-height-for-pdf-table-rows.cs", - "description": "Shows how to create a PDF table and enforce a fixed height for each row using Aspose.Pdf in C#.", + "set-table-background-color": { + "title": "Set Table Background Color", + "filename": "set-table-background-color.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-table-border-thickness-2-points": { + "title": "Set Table Border Thickness 2 Points", + "filename": "set-table-border-thickness-2-points.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-table-border-thickness": { + "title": "Set Table Border Thickness in PDF", + "filename": "set-table-border-thickness.cs", + "description": "Shows how to create a PDF table with a 2‑point border using Aspose.Pdf, including column widths, cell padding, and adding header and data rows.", "tags": [ - "pdf", "table", - "row-height", + "border", + "pdf", "aspose", "csharp" ], @@ -2144,106 +2639,181 @@ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Table", + "Aspose.Pdf.BorderInfo", "Aspose.Pdf.Row", - "Aspose.Pdf.Text.TextFragment" + "Aspose.Pdf.MarginInfo" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "render-wide-table-landscape": { - "title": "Render Wide Table in Landscape Orientation", - "filename": "render-wide-table-landscape.cs", - "description": "Demonstrates setting a PDF page to landscape orientation and adding a wide table that fits the page using Aspose.Pdf.", + "set-table-width-80-percent": { + "title": "Set Table Width 80 Percent", + "filename": "set-table-width-80-percent.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-table-width-percentage": { + "title": "Set Table Width as Percentage of Page Width", + "filename": "set-table-width-percentage.cs", + "description": "Shows how to define a table's width as a percentage of the page width using Aspose.Pdf and optionally center the table on the page.", "tags": [ - "landscape", "table", + "percentage-width", "pdf", - "aspose", - "orientation" + "alignment", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.PageInfo.IsLandscape", - "Aspose.Pdf.Page.SetPageSize", "Aspose.Pdf.Table", "Aspose.Pdf.Row", - "Aspose.Pdf.BorderInfo", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Cell", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.HorizontalAlignment" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "rotate-page-add-table": { - "title": "Rotate PDF Page and Add Table", - "filename": "rotate-page-add-table.cs", - "description": "Shows how to rotate a PDF page 90 degrees clockwise and insert a simple two‑column table onto the rotated page using Aspose.Pdf.", + "set-table-z-index-pdf": { + "title": "Set Table Z Index Pdf", + "filename": "set-table-z-index-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-table-z-index": { + "title": "Set Table Z-Index to Control Overlap in PDF", + "filename": "set-table-z-index.cs", + "description": "Demonstrates how to assign a ZIndex value to a Table so it renders above other page elements such as a background rectangle in an Aspose.Pdf document.", "tags": [ - "rotation", + "z-index", "table", "pdf", - "aspose", - "page" + "aspose-pdf", + "overlap" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rotation", + "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Drawing.Rectangle", "Aspose.Pdf.Table", - "Aspose.Pdf.Row" + "Aspose.Pdf.Row", + "Aspose.Pdf.Cell", + "Aspose.Pdf.BorderInfo" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "detect-extract-tables-rotated-pages": { - "title": "Detect and Extract Tables on Rotated PDF Pages", - "filename": "detect-extract-tables-rotated-pages.cs", - "description": "Demonstrates checking each page's rotation angle and using TableAbsorber to locate and enumerate tables on rotated PDF pages.", + "split-merged-table-cells": { + "title": "Split Merged Table Cells", + "filename": "split-merged-table-cells.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "split-table-across-pdf-pages": { + "title": "Split Table Across PDF Pages with Aspose.Pdf", + "filename": "split-table-across-pdf-pages.cs", + "description": "Demonstrates enabling table breaking so a large table automatically continues onto subsequent pages in a PDF document using Aspose.Pdf.", "tags": [ - "table extraction", - "rotation", + "table", + "page-splitting", "pdf", - "Aspose.Pdf", - "TableAbsorber" + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Rotation", - "Aspose.Pdf.Text.TableAbsorber", - "Aspose.Pdf.Text.TableAbsorber.Visit", - "Aspose.Pdf.Text.TableAbsorber.TableList", - "Aspose.Pdf.Text.Table.RowList", - "Aspose.Pdf.Text.Row.CellList" + "Aspose.Pdf.Table", + "Aspose.Pdf.Row", + "Aspose.Pdf.BorderInfo", + "Aspose.Pdf.MarginInfo" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" }, - "remove-tables-containing-keyword": { - "title": "Remove Tables Containing a Keyword from a PDF", - "filename": "remove-tables-containing-keyword.cs", - "description": "Demonstrates how to locate tables in a PDF using Aspose.Pdf's TableAbsorber, scan each cell for a specific keyword, and delete the matching tables before saving the document.", + "stretch-table-to-page-width": { + "title": "Stretch Table Across Page Width", + "filename": "stretch-table-to-page-width.cs", + "description": "Creates a PDF document, adds a table, and configures it to automatically fit the page width before saving the file.", "tags": [ - "tables", - "keyword", + "table", + "autofit", "pdf", - "removal", - "Aspose.Pdf" + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.TableAbsorber", - "Aspose.Pdf.AbsorbedTable", - "Aspose.Pdf.TableAbsorber.Visit", - "Aspose.Pdf.TableAbsorber.Remove" + "Aspose.Pdf.Page", + "Aspose.Pdf.Table", + "Aspose.Pdf.Row", + "Aspose.Pdf.ColumnAdjustment" ], - "difficulty": "intermediate", + "difficulty": "beginner", + "generated_at": "2026-08-20T08:55:30Z", + "status": "verified" + }, + "style-table-header-row-pdf": { + "title": "Style Table Header Row in PDF with Aspose.Pdf", + "filename": "style-table-header-row-pdf.cs", + "description": "Creates a PDF document containing a table whose header row is styled with a background color and bold font using Aspose.Pdf.", + "tags": [ + "table", + "header", + "styling", + "pdf", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Table", + "Aspose.Pdf.Row", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Text.FontRepository", + "Aspose.Pdf.Color" + ], + "difficulty": "beginner", "generated_at": "2026-08-20T08:55:30Z", "status": "verified" + }, + "style-table-header-row": { + "title": "Style Table Header Row", + "filename": "style-table-header-row.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "table-with-repeating-header-and-column": { + "title": "Table With Repeating Header And Column", + "filename": "table-with-repeating-header-and-column.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" } } } \ No newline at end of file diff --git a/working-with-text/AGENTS.md b/working-with-text/AGENTS.md index ee115a43e..f8fa702ef 100644 --- a/working-with-text/AGENTS.md +++ b/working-with-text/AGENTS.md @@ -8,7 +8,7 @@ parent: ../agents.md # AGENTS - working-with-text -> **Working with text** in PDF using C# / .NET -- **73** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. +> **Working with text** in PDF using C# / .NET -- **114** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. ## Persona @@ -23,19 +23,19 @@ See the root [agents.md](../agents.md) for repository-wide conventions and bound ## Required Namespaces -- `using Aspose.Pdf;` (73/73 files) ← category-specific -- `using Aspose.Pdf.Text;` (71/73 files) ← category-specific -- `using Aspose.Pdf.Annotations;` (5/73 files) -- `using Aspose.Pdf.Drawing;` (3/73 files) -- `using Aspose.Pdf.Forms;` (2/73 files) -- `using Aspose.Pdf.Facades;` (1/73 files) -- `using System;` (73/73 files) -- `using System.IO;` (65/73 files) -- `using System.Collections.Generic;` (5/73 files) -- `using System.Text.RegularExpressions;` (5/73 files) -- `using System.Linq;` (1/73 files) -- `using System.Text;` (1/73 files) -- `using System.Text.Json;` (1/73 files) +- `using Aspose.Pdf;` (73/114 files) ← category-specific +- `using Aspose.Pdf.Text;` (71/114 files) ← category-specific +- `using Aspose.Pdf.Annotations;` (5/114 files) +- `using Aspose.Pdf.Drawing;` (3/114 files) +- `using Aspose.Pdf.Forms;` (2/114 files) +- `using Aspose.Pdf.Facades;` (1/114 files) +- `using System;` (73/114 files) +- `using System.IO;` (65/114 files) +- `using System.Collections.Generic;` (5/114 files) +- `using System.Text.RegularExpressions;` (5/114 files) +- `using System.Linq;` (1/114 files) +- `using System.Text;` (1/114 files) +- `using System.Text.Json;` (1/114 files) ## Common Code Pattern @@ -55,38 +55,38 @@ using (Document doc = new Document("input.pdf")) |------|-------|----------|-------------| | [add-arabic-bidi-text-to-pdf](./add-arabic-bidi-text-to-pdf.cs) | Add Arabic Bidirectional Text to PDF | `Document`, `Page`, `TextFragment` | Demonstrates how to open an existing PDF, create a TextFragment with Arabic Unicode characters, c... | | [add-clickable-hyperlink-text-to-pdf](./add-clickable-hyperlink-text-to-pdf.cs) | Add Clickable Hyperlink Text to PDF | `Document`, `Page`, `TextFragment` | Shows how to create a TextSegment with a WebHyperlink and append it to a PDF page using Aspose.Pdf. | +| [add-clickable-hyperlink-to-pdf-text](./add-clickable-hyperlink-to-pdf-text.cs) | Add clickable hyperlink to pdf text | | Add clickable hyperlink to pdf text | | [add-endnote-bold-italic](./add-endnote-bold-italic.cs) | Add Endnote with Bold and Italic Formatting to PDF | `Document`, `TextFragment`, `Note` | Demonstrates how to insert an endnote into a PDF and apply bold and italic formatting using TextS... | | [add-footer-page-numbers-to-pdf](./add-footer-page-numbers-to-pdf.cs) | Add Footer Page Numbers to PDF | `Document`, `PageNumberStamp`, `AddStamp` | Shows how to insert a footer with automatic page numbers on every page of an existing PDF using A... | | [add-footnote-with-image-to-pdf](./add-footnote-with-image-to-pdf.cs) | Add Footnote with Image to PDF | `Document`, `Page`, `TextFragment` | Shows how to create a footnote (Note) for a TextFragment, insert an image into the footnote's Par... | +| [add-header-to-all-pdf-pages](./add-header-to-all-pdf-pages.cs) | Add header to all pdf pages | | Add header to all pdf pages | | [add-header-to-pdf-pages](./add-header-to-pdf-pages.cs) | Add Header to PDF Pages | `Document`, `Page`, `TextStamp` | Shows how to loop through a PDF's Pages collection and add a repeated header string to each page ... | +| [add-html-fragment-to-pdf](./add-html-fragment-to-pdf.cs) | Add html fragment to pdf | | Add html fragment to pdf | | [add-invisible-tooltip-button-over-text](./add-invisible-tooltip-button-over-text.cs) | Add Invisible Tooltip Button Over Text in PDF | `Document`, `TextFragmentAbsorber`, `TextFragment` | Shows how to locate a specific text fragment in a PDF and overlay an invisible button field that ... | | [add-multi-line-text-paragraph](./add-multi-line-text-paragraph.cs) | Add Multi‑Line Text Paragraph to PDF Page | `Document`, `Page`, `TextParagraph` | Demonstrates creating a TextParagraph, setting its rectangle and word‑wrap options, appending mul... | | [add-rotated-text-bottom-right-last-page](./add-rotated-text-bottom-right-last-page.cs) | Add Rotated Text to Bottom‑Right of Last PDF Page | `Document`, `Page`, `TextFragment` | Demonstrates how to use Aspose.Pdf's TextBuilder to place a rotated text fragment at the bottom‑r... | | [add-rotated-text-watermark-to-pdf-pages](./add-rotated-text-watermark-to-pdf-pages.cs) | Add Rotated Text Watermark to PDF Pages | `Document`, `Page`, `TextBuilder` | Shows how to use Aspose.Pdf's TextBuilder and TextFragment to place a rotated "CONFIDENTIAL" wate... | | [add-semi-transparent-text-watermark](./add-semi-transparent-text-watermark.cs) | Add Semi-Transparent Text Watermark to PDF Pages | `Document`, `Page`, `TextState` | Demonstrates how to overlay a semi-transparent watermark text on each page of a PDF using Aspose.... | | [add-styled-html-fragment-to-pdf-page](./add-styled-html-fragment-to-pdf-page.cs) | Add Styled HTML Fragment to PDF Page | `Document`, `HtmlFragment`, `TextState` | Shows how to insert a styled HTML fragment into an existing PDF document using Aspose.Pdf's HtmlF... | +| [add-table-to-footnote-in-pdf](./add-table-to-footnote-in-pdf.cs) | Add table to footnote in pdf | | Add table to footnote in pdf | | [add-table-to-pdf-footnote](./add-table-to-pdf-footnote.cs) | Insert a Table into a PDF Footnote | `Document`, `Page`, `TextFragment` | Demonstrates how to create a footnote for a text fragment and populate it with a table, then add ... | | [add-text-and-encrypt-pdf](./add-text-and-encrypt-pdf.cs) | Add Text and Encrypt PDF with Password | `Document`, `Page`, `TextFragment` | Loads an existing PDF, adds a red text fragment to the first page, then encrypts the document wit... | | [add-text-to-pdf-from-memory-stream](./add-text-to-pdf-from-memory-stream.cs) | Add Text to PDF from Memory Stream | `Document`, `Page`, `TextFragment` | Shows how to load a PDF from a Stream, insert a text fragment on the first page, and write the up... | | [add-text-to-pdf-page-at-specific-coordinates](./add-text-to-pdf-page-at-specific-coordinates.cs) | Add Text to PDF Page at Specific Coordinates | `Document`, `Page`, `TextFragment` | Shows how to load a PDF, create a TextFragment, set its position using X/Y coordinates, and save ... | +| [add-text-with-font-settings-to-pdf](./add-text-with-font-settings-to-pdf.cs) | Add text with font settings to pdf | | Add text with font settings to pdf | | [add-underlined-text-to-pdf](./add-underlined-text-to-pdf.cs) | Add Underlined Text to PDF | `Document`, `Page`, `TextFragment` | Creates a PDF document, adds a page, and inserts a text fragment with underlining by setting Text... | | [adjust-word-spacing-in-pdf](./adjust-word-spacing-in-pdf.cs) | Adjust Word Spacing for Inserted Text in PDF | `Document`, `TextFragment`, `TextState` | Demonstrates how to load an existing PDF, create a TextFragment, set its WordSpacing property, an... | +| [adjust-word-spacing-inserted-text](./adjust-word-spacing-inserted-text.cs) | Adjust word spacing inserted text | | Adjust word spacing inserted text | | [append-a-multi-line-textfragment-to-a-page-and-ret...](./append-a-multi-line-textfragment-to-a-page-and-retrieve-its-line-break-information-for-custom-rendering.cs) | Append A Multi Line Textfragment To A Page And Retrieve Its ... | `TextFragment`, `TextBuilder` | Append A Multi Line Textfragment To A Page And Retrieve Its Line Break Information For Custom Ren... | | [append-disclaimer-to-first-pdf-page](./append-disclaimer-to-first-pdf-page.cs) | Append Disclaimer Text to First PDF Page | `Document`, `Page`, `TextFragment` | Shows how to load a PDF, create a formatted TextFragment, and add it to the end of the first page... | +| [append-multiline-textfragment-line-break-info](./append-multiline-textfragment-line-break-info.cs) | Append multiline textfragment line break info | | Append multiline textfragment line break info | | [apply-background-color-to-text](./apply-background-color-to-text.cs) | Apply Background Color to Text in PDF | `Document`, `Page`, `TextFragment` | Demonstrates how to set a background color for a text fragment in a PDF using Aspose.Pdf by confi... | +| [apply-custom-otf-font-to-textfragment](./apply-custom-otf-font-to-textfragment.cs) | Apply custom otf font to textfragment | | Apply custom otf font to textfragment | | [apply-opentype-font-to-textfragment](./apply-opentype-font-to-textfragment.cs) | Apply OpenType Font to TextFragment in PDF | `Document`, `Page`, `TextFragment` | Demonstrates loading an OpenType (OTF) font, embedding it, and applying it to a TextFragment to c... | -| [batch-replace-keywords-in-pdf](./batch-replace-keywords-in-pdf.cs) | Batch Replace Keywords in PDF Using a Configuration File | `Document`, `TextFragmentAbsorber`, `TextFragment` | Demonstrates how to read a mapping file and perform batch text replacements in a PDF document usi... | -| [batch-replace-multiple-strings-in-pdf](./batch-replace-multiple-strings-in-pdf.cs) | Batch Replace Multiple Strings in PDF | `Document`, `TextFragmentAbsorber`, `TextReplaceOptions` | Shows how to replace several text strings in a PDF by iterating a dictionary of old‑new pairs usi... | -| [center-text-horizontally-in-pdf](./center-text-horizontally-in-pdf.cs) | Center Text Horizontally in PDF | `Document`, `Page`, `TextFragment` | Demonstrates how to place a text fragment at the horizontal center of a PDF page using Aspose.Pdf... | -| [convert-modified-pdf-to-byte-array](./convert-modified-pdf-to-byte-array.cs) | Convert Modified PDF to Byte Array | `Document`, `Save`, `Pages` | Loads a PDF, adds a blank page, and returns the modified document as a byte array using a MemoryS... | -| [create-pdf-launch-action-open-external-file](./create-pdf-launch-action-open-external-file.cs) | Create PDF with Launch Action to Open External File | `Document`, `Page`, `TextFragment` | Demonstrates how to add clickable text in a PDF that launches an external file using Aspose.Pdf's... | -| [create-rotated-text-paragraph](./create-rotated-text-paragraph.cs) | Create Rotated Text Paragraph in PDF | `Document`, `Page`, `TextParagraph` | Demonstrates how to build a TextParagraph with multiple TextFragments, set its bounding rectangle... | -| [create-strikethrough-text-pdf](./create-strikethrough-text-pdf.cs) | Create Strikethrough Text in PDF | `Document`, `Page`, `TextFragment` | Shows how to apply strikeout formatting to a TextFragment by setting TextState.StrikeOut and addi... | -| [create-text-link-goto-action](./create-text-link-goto-action.cs) | Create Text Link with GoTo Action in PDF | `Document`, `Page`, `TextFragment` | Shows how to add a clickable text fragment that jumps to another page by using a LinkAnnotation w... | -| ... | | | *and 43 more files* | +| ... | | | *and 84 more files* | ## Category Statistics -- Total examples: 73 +- Total examples: 114 ## Category-Specific Tips @@ -130,5 +130,5 @@ using (Document doc = new Document("input.pdf")) - Review code examples in this folder for working-with-text patterns -Updated: 2026-08-20 | Run: `20260820_001147_12d7b3` +Updated: 2026-09-10 | Run: `20260910_054408_87a7f4` diff --git a/working-with-text/README.md b/working-with-text/README.md new file mode 100644 index 000000000..fff6432b2 --- /dev/null +++ b/working-with-text/README.md @@ -0,0 +1,133 @@ +# Working with text + +> **Working with text** in PDF using C# / .NET -- **114** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. + +- Category: `working-with-text` +- Examples: 114 +- NuGet: `Aspose.PDF 26.8.0` -- target `net10.0` + +## Examples + +- [`add-arabic-bidi-text-to-pdf.cs`](./add-arabic-bidi-text-to-pdf.cs) -- Add arabic bidi text to pdf +- [`add-clickable-hyperlink-text-to-pdf.cs`](./add-clickable-hyperlink-text-to-pdf.cs) -- Add clickable hyperlink text to pdf +- [`add-clickable-hyperlink-to-pdf-text.cs`](./add-clickable-hyperlink-to-pdf-text.cs) -- Add clickable hyperlink to pdf text +- [`add-endnote-bold-italic.cs`](./add-endnote-bold-italic.cs) -- Add endnote bold italic +- [`add-footer-page-numbers-to-pdf.cs`](./add-footer-page-numbers-to-pdf.cs) -- Add footer page numbers to pdf +- [`add-footnote-with-image-to-pdf.cs`](./add-footnote-with-image-to-pdf.cs) -- Add footnote with image to pdf +- [`add-header-to-all-pdf-pages.cs`](./add-header-to-all-pdf-pages.cs) -- Add header to all pdf pages +- [`add-header-to-pdf-pages.cs`](./add-header-to-pdf-pages.cs) -- Add header to pdf pages +- [`add-html-fragment-to-pdf.cs`](./add-html-fragment-to-pdf.cs) -- Add html fragment to pdf +- [`add-invisible-tooltip-button-over-text.cs`](./add-invisible-tooltip-button-over-text.cs) -- Add invisible tooltip button over text +- [`add-multi-line-text-paragraph.cs`](./add-multi-line-text-paragraph.cs) -- Add multi line text paragraph +- [`add-rotated-text-bottom-right-last-page.cs`](./add-rotated-text-bottom-right-last-page.cs) -- Add rotated text bottom right last page +- [`add-rotated-text-watermark-to-pdf-pages.cs`](./add-rotated-text-watermark-to-pdf-pages.cs) -- Add rotated text watermark to pdf pages +- [`add-semi-transparent-text-watermark.cs`](./add-semi-transparent-text-watermark.cs) -- Add semi transparent text watermark +- [`add-styled-html-fragment-to-pdf-page.cs`](./add-styled-html-fragment-to-pdf-page.cs) -- Add styled html fragment to pdf page +- [`add-table-to-footnote-in-pdf.cs`](./add-table-to-footnote-in-pdf.cs) -- Add table to footnote in pdf +- [`add-table-to-pdf-footnote.cs`](./add-table-to-pdf-footnote.cs) -- Add table to pdf footnote +- [`add-text-and-encrypt-pdf.cs`](./add-text-and-encrypt-pdf.cs) -- Add text and encrypt pdf +- [`add-text-to-pdf-from-memory-stream.cs`](./add-text-to-pdf-from-memory-stream.cs) -- Add text to pdf from memory stream +- [`add-text-to-pdf-page-at-specific-coordinates.cs`](./add-text-to-pdf-page-at-specific-coordinates.cs) -- Add text to pdf page at specific coordinates +- [`add-text-with-font-settings-to-pdf.cs`](./add-text-with-font-settings-to-pdf.cs) -- Add text with font settings to pdf +- [`add-underlined-text-to-pdf.cs`](./add-underlined-text-to-pdf.cs) -- Add underlined text to pdf +- [`adjust-word-spacing-in-pdf.cs`](./adjust-word-spacing-in-pdf.cs) -- Adjust word spacing in pdf +- [`adjust-word-spacing-inserted-text.cs`](./adjust-word-spacing-inserted-text.cs) -- Adjust word spacing inserted text +- [`append-a-multi-line-textfragment-to-a-page-and-retrieve-its-line-break-information-for-custom-rendering.cs`](./append-a-multi-line-textfragment-to-a-page-and-retrieve-its-line-break-information-for-custom-rendering.cs) -- Append a multi line textfragment to a page and retrieve its line break information for custom rendering +- [`append-disclaimer-to-first-pdf-page.cs`](./append-disclaimer-to-first-pdf-page.cs) -- Append disclaimer to first pdf page +- [`append-multiline-textfragment-line-break-info.cs`](./append-multiline-textfragment-line-break-info.cs) -- Append multiline textfragment line break info +- [`apply-background-color-to-text.cs`](./apply-background-color-to-text.cs) -- Apply background color to text +- [`apply-custom-otf-font-to-textfragment.cs`](./apply-custom-otf-font-to-textfragment.cs) -- Apply custom otf font to textfragment +- [`apply-opentype-font-to-textfragment.cs`](./apply-opentype-font-to-textfragment.cs) -- Apply opentype font to textfragment +- [`batch-replace-keywords-in-pdf.cs`](./batch-replace-keywords-in-pdf.cs) -- Batch replace keywords in pdf +- [`batch-replace-multiple-strings-in-pdf.cs`](./batch-replace-multiple-strings-in-pdf.cs) -- Batch replace multiple strings in pdf +- [`batch-replace-text-in-pdfs.cs`](./batch-replace-text-in-pdfs.cs) -- Batch replace text in pdfs +- [`batch-replace-text-pdf-config.cs`](./batch-replace-text-pdf-config.cs) -- Batch replace text pdf config +- [`center-text-horizontally-in-pdf.cs`](./center-text-horizontally-in-pdf.cs) -- Center text horizontally in pdf +- [`center-text-on-pdf-page.cs`](./center-text-on-pdf-page.cs) -- Center text on pdf page +- [`convert-modified-pdf-to-byte-array.cs`](./convert-modified-pdf-to-byte-array.cs) -- Convert modified pdf to byte array +- [`create-endnote-bold-italic.cs`](./create-endnote-bold-italic.cs) -- Create endnote bold italic +- [`create-footnote-with-image.cs`](./create-footnote-with-image.cs) -- Create footnote with image +- [`create-internal-text-link-to-page.cs`](./create-internal-text-link-to-page.cs) -- Create internal text link to page +- [`create-pdf-launch-action-open-external-file.cs`](./create-pdf-launch-action-open-external-file.cs) -- Create pdf launch action open external file +- [`create-rotated-text-paragraph.cs`](./create-rotated-text-paragraph.cs) -- Create rotated text paragraph +- [`create-strikethrough-text-pdf.cs`](./create-strikethrough-text-pdf.cs) -- Create strikethrough text pdf +- [`create-strikethrough-text.cs`](./create-strikethrough-text.cs) -- Create strikethrough text +- [`create-text-link-goto-action.cs`](./create-text-link-goto-action.cs) -- Create text link goto action +- [`detect-manual-line-breaks-in-textfragment.cs`](./detect-manual-line-breaks-in-textfragment.cs) -- Detect manual line breaks in textfragment +- [`embed-css-in-htmlfragment.cs`](./embed-css-in-htmlfragment.cs) -- Embed css in htmlfragment +- [`emulate-kerning-in-pdf-text.cs`](./emulate-kerning-in-pdf-text.cs) -- Emulate kerning in pdf text +- [`enable-automatic-hyphenation.cs`](./enable-automatic-hyphenation.cs) -- Enable automatic hyphenation +- [`enable-hyphenation-long-words-pdf.cs`](./enable-hyphenation-long-words-pdf.cs) -- Enable hyphenation long words pdf +- [`enable-rtl-text-direction.cs`](./enable-rtl-text-direction.cs) -- Enable rtl text direction +- [`extract-email-addresses-from-pdf.cs`](./extract-email-addresses-from-pdf.cs) -- Extract email addresses from pdf +- [`extract-line-break-positions-from-pdf.cs`](./extract-line-break-positions-from-pdf.cs) -- Extract line break positions from pdf +- [`extract-line-break-positions-pdf.cs`](./extract-line-break-positions-pdf.cs) -- Extract line break positions pdf +- [`extract-page-word-count-to-csv.cs`](./extract-page-word-count-to-csv.cs) -- Extract page word count to csv +- [`extract-pdf-text-sentences-per-page.cs`](./extract-pdf-text-sentences-per-page.cs) -- Extract pdf text sentences per page +- [`extract-pdf-text-sentences-to-pages.cs`](./extract-pdf-text-sentences-to-pages.cs) -- Extract pdf text sentences to pages +- [`extract-pdf-text-to-utf8-file.cs`](./extract-pdf-text-to-utf8-file.cs) -- Extract pdf text to utf8 file +- [`extract-text-fragments-and-positions.cs`](./extract-text-fragments-and-positions.cs) -- Extract text fragments and positions +- [`extract-text-from-pdf-to-utf8-file.cs`](./extract-text-from-pdf-to-utf8-file.cs) -- Extract text from pdf to utf8 file +- [`extract-text-word-count-per-pdf-page.cs`](./extract-text-word-count-per-pdf-page.cs) -- Extract text word count per pdf page +- [`find-approximate-text-matches-pdf.cs`](./find-approximate-text-matches-pdf.cs) -- Find approximate text matches pdf +- [`find-dates-in-pdf-using-regex.cs`](./find-dates-in-pdf-using-regex.cs) -- Find dates in pdf using regex +- [`find-dates-using-regex-in-pdf.cs`](./find-dates-using-regex-in-pdf.cs) -- Find dates using regex in pdf +- [`find-phrase-occurrences-with-textabsorber.cs`](./find-phrase-occurrences-with-textabsorber.cs) -- Find phrase occurrences with textabsorber +- [`find-specific-phrase-in-pdf.cs`](./find-specific-phrase-in-pdf.cs) -- Find specific phrase in pdf +- [`highlight-keyword-in-pdf.cs`](./highlight-keyword-in-pdf.cs) -- Highlight keyword in pdf +- [`highlight-keyword-occurrences-pdf.cs`](./highlight-keyword-occurrences-pdf.cs) -- Highlight keyword occurrences pdf +- [`identify-forced-line-breaks-in-textfragment.cs`](./identify-forced-line-breaks-in-textfragment.cs) -- Identify forced line breaks in textfragment +- [`inline-text-image-paragraph.cs`](./inline-text-image-paragraph.cs) -- Inline text image paragraph +- [`insert-hyperlink-into-pdf-text-segment.cs`](./insert-hyperlink-into-pdf-text-segment.cs) -- Insert hyperlink into pdf text segment +- [`insert-identical-text-on-all-pdf-pages.cs`](./insert-identical-text-on-all-pdf-pages.cs) -- Insert identical text on all pdf pages +- [`insert-rotated-mixed-style-text-paragraph.cs`](./insert-rotated-mixed-style-text-paragraph.cs) -- Insert rotated mixed style text paragraph +- [`insert-rotated-text-second-page.cs`](./insert-rotated-text-second-page.cs) -- Insert rotated text second page +- [`insert-same-text-on-all-pdf-pages.cs`](./insert-same-text-on-all-pdf-pages.cs) -- Insert same text on all pdf pages +- [`justify-text-in-pdf.cs`](./justify-text-in-pdf.cs) -- Justify text in pdf +- [`launch-action-open-external-file.cs`](./launch-action-open-external-file.cs) -- Launch action open external file +- [`left-align-text-in-pdf.cs`](./left-align-text-in-pdf.cs) -- Left align text in pdf +- [`left-align-text-pdf.cs`](./left-align-text-pdf.cs) -- Left align text pdf +- [`load-custom-ttf-font-and-apply-to-text.cs`](./load-custom-ttf-font-and-apply-to-text.cs) -- Load custom ttf font and apply to text +- [`load-custom-ttf-font-from-memory.cs`](./load-custom-ttf-font-from-memory.cs) -- Load custom ttf font from memory +- [`render-subscript-text.cs`](./render-subscript-text.cs) -- Render subscript text +- [`render-superscript-text.cs`](./render-superscript-text.cs) -- Render superscript text +- [`render-text-with-ligatures.cs`](./render-text-with-ligatures.cs) -- Render text with ligatures +- [`replace-confidential-with-public-in-pdf.cs`](./replace-confidential-with-public-in-pdf.cs) -- Replace confidential with public in pdf +- [`replace-phrase-preserve-formatting.cs`](./replace-phrase-preserve-formatting.cs) -- Replace phrase preserve formatting +- [`replace-text-in-pdf-using-fuzzy-regex.cs`](./replace-text-in-pdf-using-fuzzy-regex.cs) -- Replace text in pdf using fuzzy regex +- [`replace-text-on-specific-pdf-pages.cs`](./replace-text-on-specific-pdf-pages.cs) -- Replace text on specific pdf pages +- [`replace-text-rotate-page-save-memory-stream.cs`](./replace-text-rotate-page-save-memory-stream.cs) -- Replace text rotate page save memory stream +- [`replace-text-rotate-pdf-pages-save-memory.cs`](./replace-text-rotate-pdf-pages-save-memory.cs) -- Replace text rotate pdf pages save memory +- [`replace-text-with-clickable-hyperlink.cs`](./replace-text-with-clickable-hyperlink.cs) -- Replace text with clickable hyperlink +- [`retrieve-line-break-info-from-text-fragments.cs`](./retrieve-line-break-info-from-text-fragments.cs) -- Retrieve line break info from text fragments +- [`right-align-text-in-pdf.cs`](./right-align-text-in-pdf.cs) -- Right align text in pdf +- [`right-align-text-pdf.cs`](./right-align-text-pdf.cs) -- Right align text pdf +- [`rotate-added-text-in-pdf.cs`](./rotate-added-text-in-pdf.cs) -- Rotate added text in pdf +- [`rotate-draft-text-fragments.cs`](./rotate-draft-text-fragments.cs) -- Rotate draft text fragments +- [`rotate-header-text-pdf.cs`](./rotate-header-text-pdf.cs) -- Rotate header text pdf +- [`rotate-pdf-title-text-45-degrees.cs`](./rotate-pdf-title-text-45-degrees.cs) -- Rotate pdf title text 45 degrees +- [`rotate-specific-text-fragment.cs`](./rotate-specific-text-fragment.cs) -- Rotate specific text fragment +- [`rotate-table-cell-text.cs`](./rotate-table-cell-text.cs) -- Rotate table cell text +- [`rotate-text-box-form-field.cs`](./rotate-text-box-form-field.cs) -- Rotate text box form field +- [`rotate-text-field-appearance.cs`](./rotate-text-field-appearance.cs) -- Rotate text field appearance +- [`rotate-text-in-pdf-table-cell.cs`](./rotate-text-in-pdf-table-cell.cs) -- Rotate text in pdf table cell +- [`rotate-text-in-pdf.cs`](./rotate-text-in-pdf.cs) -- Rotate text in pdf +- [`save-pdf-to-byte-array.cs`](./save-pdf-to-byte-array.cs) -- Save pdf to byte array +- [`search-pdf-text-log.cs`](./search-pdf-text-log.cs) -- Search pdf text log +- [`search-replace-text-with-hyperlink.cs`](./search-replace-text-with-hyperlink.cs) -- Search replace text with hyperlink +- [`search-text-pdf-with-logging.cs`](./search-text-pdf-with-logging.cs) -- Search text pdf with logging +- [`set-character-spacing-pdf.cs`](./set-character-spacing-pdf.cs) -- Set character spacing pdf +- [`set-custom-line-height-pdf-text.cs`](./set-custom-line-height-pdf-text.cs) -- Set custom line height pdf text +- [`set-custom-line-spacing-pdf.cs`](./set-custom-line-spacing-pdf.cs) -- Set custom line spacing pdf +- [`set-font-size-color-textfragment.cs`](./set-font-size-color-textfragment.cs) -- Set font size color textfragment +- [`show-floating-box-on-button-hover.cs`](./show-floating-box-on-button-hover.cs) -- Show floating box on button hover +- [`style-textfragment-font-size-color.cs`](./style-textfragment-font-size-color.cs) -- Style textfragment font size color + +## See Also + +- [`AGENTS.md`](./AGENTS.md) -- category-specific anti-patterns, API surface, and conventions for AI coding agents +- [`../AGENTS.md`](../AGENTS.md) -- repository-wide agent guide +- [`../README.md`](../README.md) -- full category index and project overview +- [Aspose.PDF for .NET docs](https://docs.aspose.com/pdf/net/) + +> Each `.cs` file is a standalone, build-validated console example. Drop into a fresh `dotnet new console` project, add the `Aspose.PDF` NuGet (version above), and run. diff --git a/working-with-text/index.json b/working-with-text/index.json index 086fa63f1..d47656151 100644 --- a/working-with-text/index.json +++ b/working-with-text/index.json @@ -1,191 +1,195 @@ { "category": "working-with-text", "nuget_version": "26.8.0", - "last_updated": "2026-08-20T08:59:26Z", + "last_updated": "2026-09-10T12:45:08Z", "examples": { - "add-text-to-pdf-page-at-specific-coordinates": { - "title": "Add Text to PDF Page at Specific Coordinates", - "filename": "add-text-to-pdf-page-at-specific-coordinates.cs", - "description": "Shows how to load a PDF, create a TextFragment, set its position using X/Y coordinates, and save the modified document.", + "add-arabic-bidi-text-to-pdf": { + "title": "Add Arabic Bidirectional Text to PDF", + "filename": "add-arabic-bidi-text-to-pdf.cs", + "description": "Demonstrates how to open an existing PDF, create a TextFragment with Arabic Unicode characters, configure its TextState, and save the document, enabling proper bidirectional rendering.", "tags": [ - "text", + "bidi", + "arabic", + "textfragment", "pdf", - "coordinates", - "aspose", - "csharp" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Text.Position", - "Aspose.Pdf.Text.TextBuilder", - "Aspose.Pdf.Text.FontRepository.FindFont" + "Aspose.Pdf.Text.FontRepository.FindFont", + "Aspose.Pdf.Color" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "insert-identical-text-on-all-pdf-pages": { - "title": "Insert Identical Text on All PDF Pages", - "filename": "insert-identical-text-on-all-pdf-pages.cs", - "description": "Shows how to add the same plain text to every page of a PDF by creating a TextFragment, setting its appearance, and adding it to each page's Paragraphs collection.", + "add-clickable-hyperlink-text-to-pdf": { + "title": "Add Clickable Hyperlink Text to PDF", + "filename": "add-clickable-hyperlink-text-to-pdf.cs", + "description": "Shows how to create a TextSegment with a WebHyperlink and append it to a PDF page using Aspose.Pdf.", "tags": [ + "hyperlink", + "textsegment", "pdf", - "text", - "aspose-pdf", - "paragraphs", - "iteration" + "aspose", + "clickable" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.Position", - "Aspose.Pdf.FontRepository.FindFont" + "Aspose.Pdf.Text.TextSegment", + "Aspose.Pdf.Text.WebHyperlink", + "Aspose.Pdf.Text.TextBuilder", + "Aspose.Pdf.Position", + "Aspose.Pdf.Color" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "load-custom-ttf-font-and-apply-to-text": { - "title": "Load Custom TrueType Font and Apply to PDF Text", - "filename": "load-custom-ttf-font-and-apply-to-text.cs", - "description": "Shows how to retrieve a TrueType font from the Aspose.Pdf font repository, embed it, and assign it to a TextFragment's TextState for rendering in a PDF document.", + "add-clickable-hyperlink-to-pdf-text": { + "title": "Add Clickable Hyperlink To Pdf Text", + "filename": "add-clickable-hyperlink-to-pdf-text.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-endnote-bold-italic": { + "title": "Add Endnote with Bold and Italic Formatting to PDF", + "filename": "add-endnote-bold-italic.cs", + "description": "Demonstrates how to insert an endnote into a PDF and apply bold and italic formatting using TextState settings.", "tags": [ - "font", - "text", - "pdf", - "custom-font", - "embedding" + "endnote", + "bold", + "italic", + "textstate", + "pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.FontRepository.FindFont", - "Aspose.Pdf.Font", "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.Note", "Aspose.Pdf.Text.TextState", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "apply-opentype-font-to-textfragment": { - "title": "Apply OpenType Font to TextFragment in PDF", - "filename": "apply-opentype-font-to-textfragment.cs", - "description": "Demonstrates loading an OpenType (OTF) font, embedding it, and applying it to a TextFragment to create a styled PDF document.", + "add-footer-page-numbers-to-pdf": { + "title": "Add Footer Page Numbers to PDF", + "filename": "add-footer-page-numbers-to-pdf.cs", + "description": "Shows how to insert a footer with automatic page numbers on every page of an existing PDF using Aspose.Pdf's PageNumberStamp.", "tags": [ - "otf", - "font", - "textfragment", + "footer", + "page-number", + "stamp", "pdf", - "aspose-pdf" + "Aspose.Pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.FontRepository", - "Aspose.Pdf.Text.Font", + "Aspose.Pdf.Facades.PageNumberStamp", + "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Color" + "Aspose.Pdf.FontRepository" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "set-character-spacing-pdf": { - "title": "Set Character Spacing for PDF Text", - "filename": "set-character-spacing-pdf.cs", - "description": "Demonstrates how to adjust the CharacterSpacing property of a TextState to control inter‑character gaps before adding a TextFragment to a PDF page using Aspose.Pdf.", + "add-footnote-with-image-to-pdf": { + "title": "Add Footnote with Image to PDF", + "filename": "add-footnote-with-image-to-pdf.cs", + "description": "Shows how to create a footnote (Note) for a TextFragment, insert an image into the footnote's Paragraphs collection, and save the modified PDF using Aspose.Pdf.", "tags": [ - "character-spacing", - "text-state", + "footnote", + "image", "pdf", "aspose-pdf", - "csharp" + "textfragment" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.Position", - "Aspose.Pdf.FontRepository", - "Aspose.Pdf.Text.TextState" + "Aspose.Pdf.Text.Note", + "Aspose.Pdf.Image", + "Aspose.Pdf.Text.Position" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "left-align-text-pdf": { - "title": "Left Align Text in PDF using Aspose.Pdf", - "filename": "left-align-text-pdf.cs", - "description": "Shows how to create a PDF, add a TextFragment, and set its HorizontalAlignment to Left for left‑aligned text.", - "tags": [ - "text-alignment", - "pdf", - "aspose-pdf", - "textfragment", - "horizontal-alignment" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Text.HorizontalAlignment", - "Aspose.Pdf.Position", - "Aspose.Pdf.Page.Paragraphs.Add", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T08:59:26Z", + "add-header-to-all-pdf-pages": { + "title": "Add Header To All Pdf Pages", + "filename": "add-header-to-all-pdf-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "center-text-horizontally-in-pdf": { - "title": "Center Text Horizontally in PDF", - "filename": "center-text-horizontally-in-pdf.cs", - "description": "Demonstrates how to place a text fragment at the horizontal center of a PDF page using Aspose.Pdf's TextFragment and HorizontalAlignment properties.", + "add-header-to-pdf-pages": { + "title": "Add Header to PDF Pages", + "filename": "add-header-to-pdf-pages.cs", + "description": "Shows how to loop through a PDF's Pages collection and add a repeated header string to each page using a TextStamp.", "tags": [ - "text-alignment", "pdf", - "aspose-pdf", - "csharp", - "horizontal-center" + "header", + "textstamp", + "pages", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.FontRepository.FindFont", - "Aspose.Pdf.Text.HorizontalAlignment", + "Aspose.Pdf.Text.TextStamp", + "Aspose.Pdf.Text.FontRepository.FindFont", + "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "right-align-text-in-pdf": { - "title": "Right Align Text in PDF", - "filename": "right-align-text-in-pdf.cs", - "description": "Shows how to right‑align a text fragment on a PDF page by setting TextState.HorizontalAlignment to Right using Aspose.Pdf.", + "add-html-fragment-to-pdf": { + "title": "Add Html Fragment To Pdf", + "filename": "add-html-fragment-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-invisible-tooltip-button-over-text": { + "title": "Add Invisible Tooltip Button Over Text in PDF", + "filename": "add-invisible-tooltip-button-over-text.cs", + "description": "Shows how to locate a specific text fragment in a PDF and overlay an invisible button field that displays a tooltip via JavaScript when the mouse enters the area.", "tags": [ - "right-alignment", - "text-fragment", - "pdf", - "aspose-pdf", - "horizontal-alignment" + "tooltip", + "buttonfield", + "textsearch", + "javascript", + "pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragmentAbsorber", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Text.HorizontalAlignment", - "Aspose.Pdf.Position" + "Aspose.Pdf.Forms.ButtonField", + "Aspose.Pdf.Annotations.JavascriptAction" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, @@ -212,76 +216,112 @@ "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "insert-hyperlink-into-pdf-text-segment": { - "title": "Insert Hyperlink into PDF Text Segment", - "filename": "insert-hyperlink-into-pdf-text-segment.cs", - "description": "Shows how to create a clickable hyperlink by assigning a WebHyperlink to a TextSegment and adding it to a TextFragment in a PDF document.", + "add-rotated-text-bottom-right-last-page": { + "title": "Add Rotated Text to Bottom‑Right of Last PDF Page", + "filename": "add-rotated-text-bottom-right-last-page.cs", + "description": "Demonstrates how to use Aspose.Pdf's TextBuilder to place a rotated text fragment at the bottom‑right corner of the last page of a PDF document.", "tags": [ - "hyperlink", - "textsegment", + "text", + "rotation", "pdf", - "aspose", - "csharp" + "textbuilder", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextSegment", - "Aspose.Pdf.Text.WebHyperlink", "Aspose.Pdf.Text.TextBuilder", - "Aspose.Pdf.Text.FontRepository" + "Aspose.Pdf.Text.Position", + "Aspose.Pdf.Text.FontRepository", + "Aspose.Pdf.Color" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "add-styled-html-fragment-to-pdf-page": { - "title": "Add Styled HTML Fragment to PDF Page", - "filename": "add-styled-html-fragment-to-pdf-page.cs", - "description": "Shows how to insert a styled HTML fragment into an existing PDF document using Aspose.Pdf's HtmlFragment and optional TextState for formatting.", + "add-rotated-text-watermark-to-pdf-pages": { + "title": "Add Rotated Text Watermark to PDF Pages", + "filename": "add-rotated-text-watermark-to-pdf-pages.cs", + "description": "Shows how to use Aspose.Pdf's TextBuilder and TextFragment to place a rotated \"CONFIDENTIAL\" watermark on every page of a PDF document.", "tags": [ - "html", + "watermark", + "text", "pdf", - "textstate", - "fragment", - "aspose" + "rotation", + "Aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.HtmlFragment", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.FontRepository.FindFont", "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextBuilder", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.FontRepository.FindFont", + "Aspose.Pdf.Color", + "Aspose.Pdf.Text.TextBuilder.AppendText", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "add-footnote-with-image-to-pdf": { - "title": "Add Footnote with Image to PDF", - "filename": "add-footnote-with-image-to-pdf.cs", - "description": "Shows how to create a footnote (Note) for a TextFragment, insert an image into the footnote's Paragraphs collection, and save the modified PDF using Aspose.Pdf.", + "add-semi-transparent-text-watermark": { + "title": "Add Semi-Transparent Text Watermark to PDF Pages", + "filename": "add-semi-transparent-text-watermark.cs", + "description": "Demonstrates how to overlay a semi-transparent watermark text on each page of a PDF using Aspose.Pdf's TextState and WatermarkAnnotation.", "tags": [ - "footnote", - "image", + "watermark", + "text", + "opacity", + "annotation", + "pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Annotations.WatermarkAnnotation", + "Aspose.Pdf.Annotations.WatermarkAnnotation.SetTextAndState", + "Aspose.Pdf.Color.FromRgb", + "Aspose.Pdf.FontRepository.FindFont" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T08:59:26Z", + "status": "verified" + }, + "add-styled-html-fragment-to-pdf-page": { + "title": "Add Styled HTML Fragment to PDF Page", + "filename": "add-styled-html-fragment-to-pdf-page.cs", + "description": "Shows how to insert a styled HTML fragment into an existing PDF document using Aspose.Pdf's HtmlFragment and optional TextState for formatting.", + "tags": [ + "html", "pdf", - "aspose-pdf", - "textfragment" + "textstate", + "fragment", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.HtmlFragment", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.FontRepository.FindFont", "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.Note", - "Aspose.Pdf.Image", - "Aspose.Pdf.Text.Position" + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, + "add-table-to-footnote-in-pdf": { + "title": "Add Table To Footnote In Pdf", + "filename": "add-table-to-footnote-in-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "add-table-to-pdf-footnote": { "title": "Insert a Table into a PDF Footnote", "filename": "add-table-to-pdf-footnote.cs", @@ -305,279 +345,345 @@ "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "add-endnote-bold-italic": { - "title": "Add Endnote with Bold and Italic Formatting to PDF", - "filename": "add-endnote-bold-italic.cs", - "description": "Demonstrates how to insert an endnote into a PDF and apply bold and italic formatting using TextState settings.", + "add-text-and-encrypt-pdf": { + "title": "Add Text and Encrypt PDF with Password", + "filename": "add-text-and-encrypt-pdf.cs", + "description": "Loads an existing PDF, adds a red text fragment to the first page, then encrypts the document with user and owner passwords and specific permissions before saving.", "tags": [ - "endnote", - "bold", - "italic", - "textstate", - "pdf" + "pdf", + "encryption", + "text", + "aspose-pdf", + "permissions" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.Note", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Text.Position", + "Aspose.Pdf.FontRepository.FindFont", + "Aspose.Pdf.Permissions", + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.CryptoAlgorithm" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "inline-text-image-paragraph": { - "title": "Create Inline Text and Image in PDF Paragraph", - "filename": "inline-text-image-paragraph.cs", - "description": "Shows how to combine a TextFragment and an Image fragment inline within a single paragraph of a PDF document using Aspose.Pdf.", + "add-text-to-pdf-from-memory-stream": { + "title": "Add Text to PDF from Memory Stream", + "filename": "add-text-to-pdf-from-memory-stream.cs", + "description": "Shows how to load a PDF from a Stream, insert a text fragment on the first page, and write the updated PDF back to another Stream using Aspose.Pdf.", "tags": [ - "inline", - "text", - "image", "pdf", - "aspose" + "text", + "memory-stream", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Image", - "Aspose.Pdf.FontRepository", - "Aspose.Pdf.Color" + "Aspose.Pdf.Text.Position", + "Aspose.Pdf.Text.TextBuilder", + "Aspose.Pdf.Text.FontRepository.FindFont", + "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "add-invisible-tooltip-button-over-text": { - "title": "Add Invisible Tooltip Button Over Text in PDF", - "filename": "add-invisible-tooltip-button-over-text.cs", - "description": "Shows how to locate a specific text fragment in a PDF and overlay an invisible button field that displays a tooltip via JavaScript when the mouse enters the area.", + "add-text-to-pdf-page-at-specific-coordinates": { + "title": "Add Text to PDF Page at Specific Coordinates", + "filename": "add-text-to-pdf-page-at-specific-coordinates.cs", + "description": "Shows how to load a PDF, create a TextFragment, set its position using X/Y coordinates, and save the modified document.", "tags": [ - "tooltip", - "buttonfield", - "textsearch", - "javascript", - "pdf" + "text", + "pdf", + "coordinates", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextFragmentAbsorber", + "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Forms.ButtonField", - "Aspose.Pdf.Annotations.JavascriptAction" + "Aspose.Pdf.Text.Position", + "Aspose.Pdf.Text.TextBuilder", + "Aspose.Pdf.Text.FontRepository.FindFont" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "find-phrase-occurrences-with-textabsorber": { - "title": "Find All Occurrences of a Phrase Using TextAbsorber", - "filename": "find-phrase-occurrences-with-textabsorber.cs", - "description": "Demonstrates how to extract the full text of a PDF with TextAbsorber and locate every case‑insensitive occurrence of a specified phrase, reporting its character positions.", + "add-text-with-font-settings-to-pdf": { + "title": "Add Text With Font Settings To Pdf", + "filename": "add-text-with-font-settings-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "add-underlined-text-to-pdf": { + "title": "Add Underlined Text to PDF", + "filename": "add-underlined-text-to-pdf.cs", + "description": "Creates a PDF document, adds a page, and inserts a text fragment with underlining by setting TextState.Underline to true.", "tags": [ - "textabsorption", - "phrase-search", - "pdf", - "aspose-pdf", - "csharp" + "underlined-text", + "Aspose.Pdf", + "TextFragment", + "PDF-generation", + "C#" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextAbsorber", - "Aspose.Pdf.PageCollection", - "Aspose.Pdf.PageCollection.Accept" + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Text.TextBuilder", + "Aspose.Pdf.Text.Position", + "Aspose.Pdf.FontRepository.FindFont" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "replace-phrase-preserve-formatting": { - "title": "Replace Phrase While Preserving Formatting in PDF", - "filename": "replace-phrase-preserve-formatting.cs", - "description": "Demonstrates how to search for a specific text phrase in a PDF, replace it with new text, and retain the original font, size, color, and other formatting using Aspose.Pdf.", + "adjust-word-spacing-in-pdf": { + "title": "Adjust Word Spacing for Inserted Text in PDF", + "filename": "adjust-word-spacing-in-pdf.cs", + "description": "Demonstrates how to load an existing PDF, create a TextFragment, set its WordSpacing property, and place it on a page using Aspose.Pdf.", "tags": [ - "pdf", - "text-replacement", - "formatting", - "aspose", + "word-spacing", + "text-fragment", + "pdf-modification", + "aspose-pdf", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page.Accept", - "Aspose.Pdf.Text.TextFragmentAbsorber", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextState" + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.FontRepository.FindFont", + "Aspose.Pdf.Position", + "Aspose.Pdf.Page" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "add-header-to-pdf-pages": { - "title": "Add Header to PDF Pages", - "filename": "add-header-to-pdf-pages.cs", - "description": "Shows how to loop through a PDF's Pages collection and add a repeated header string to each page using a TextStamp.", + "adjust-word-spacing-inserted-text": { + "title": "Adjust Word Spacing Inserted Text", + "filename": "adjust-word-spacing-inserted-text.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "append-a-multi-line-textfragment-to-a-page-and-retrieve-its-line-break-information-for-custom-rendering": { + "title": "Append A Multi Line Textfragment To A Page And Retrieve Its Line Break Information For Custom Rendering", + "filename": "append-a-multi-line-textfragment-to-a-page-and-retrieve-its-line-break-information-for-custom-rendering.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-08-20T08:59:26Z", + "status": "verified" + }, + "append-disclaimer-to-first-pdf-page": { + "title": "Append Disclaimer Text to First PDF Page", + "filename": "append-disclaimer-to-first-pdf-page.cs", + "description": "Shows how to load a PDF, create a formatted TextFragment, and add it to the end of the first page's paragraph collection as a disclaimer.", "tags": [ "pdf", - "header", - "textstamp", - "pages", - "aspose-pdf" + "textfragment", + "disclaimer", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextStamp", - "Aspose.Pdf.Text.FontRepository.FindFont", - "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.FontRepository.FindFont", + "Aspose.Pdf.Color.Gray", + "Aspose.Pdf.Page.Paragraphs.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "add-footer-page-numbers-to-pdf": { - "title": "Add Footer Page Numbers to PDF", - "filename": "add-footer-page-numbers-to-pdf.cs", - "description": "Shows how to insert a footer with automatic page numbers on every page of an existing PDF using Aspose.Pdf's PageNumberStamp.", + "append-multiline-textfragment-line-break-info": { + "title": "Append Multiline Textfragment Line Break Info", + "filename": "append-multiline-textfragment-line-break-info.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "apply-background-color-to-text": { + "title": "Apply Background Color to Text in PDF", + "filename": "apply-background-color-to-text.cs", + "description": "Demonstrates how to set a background color for a text fragment in a PDF using Aspose.Pdf by configuring the TextState.BackgroundColor property before adding the fragment to a page.", "tags": [ - "footer", - "page-number", - "stamp", + "text", + "background", "pdf", - "Aspose.Pdf" + "aspose-pdf", + "textfragment" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Facades.PageNumberStamp", - "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.FontRepository" + "Aspose.Pdf.Text.Position", + "Aspose.Pdf.Page.Paragraphs.Add", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "add-semi-transparent-text-watermark": { - "title": "Add Semi-Transparent Text Watermark to PDF Pages", - "filename": "add-semi-transparent-text-watermark.cs", - "description": "Demonstrates how to overlay a semi-transparent watermark text on each page of a PDF using Aspose.Pdf's TextState and WatermarkAnnotation.", - "tags": [ - "watermark", - "text", - "opacity", - "annotation", - "pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Annotations.WatermarkAnnotation", - "Aspose.Pdf.Annotations.WatermarkAnnotation.SetTextAndState", - "Aspose.Pdf.Color.FromRgb", - "Aspose.Pdf.FontRepository.FindFont" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:59:26Z", + "apply-custom-otf-font-to-textfragment": { + "title": "Apply Custom Otf Font To Textfragment", + "filename": "apply-custom-otf-font-to-textfragment.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "rotate-added-text-in-pdf": { - "title": "Rotate Added Text in PDF", - "filename": "rotate-added-text-in-pdf.cs", - "description": "Demonstrates how to rotate a text fragment by setting the TextState.Rotation property before placing it on a PDF page.", + "apply-opentype-font-to-textfragment": { + "title": "Apply OpenType Font to TextFragment in PDF", + "filename": "apply-opentype-font-to-textfragment.cs", + "description": "Demonstrates loading an OpenType (OTF) font, embedding it, and applying it to a TextFragment to create a styled PDF document.", "tags": [ - "text-rotation", + "otf", + "font", "textfragment", "pdf", - "aspose-pdf", - "csharp" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.Position", + "Aspose.Pdf.Text.FontRepository", + "Aspose.Pdf.Text.Font", "Aspose.Pdf.Text.TextState", "Aspose.Pdf.Color" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "apply-background-color-to-text": { - "title": "Apply Background Color to Text in PDF", - "filename": "apply-background-color-to-text.cs", - "description": "Demonstrates how to set a background color for a text fragment in a PDF using Aspose.Pdf by configuring the TextState.BackgroundColor property before adding the fragment to a page.", + "batch-replace-keywords-in-pdf": { + "title": "Batch Replace Keywords in PDF Using a Configuration File", + "filename": "batch-replace-keywords-in-pdf.cs", + "description": "Demonstrates how to read a mapping file and perform batch text replacements in a PDF document using Aspose.Pdf's text absorber and fragment classes.", "tags": [ - "text", - "background", "pdf", - "aspose-pdf", - "textfragment" + "text-replacement", + "batch-processing", + "configuration-file", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragmentAbsorber", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Text.Position", - "Aspose.Pdf.Page.Paragraphs.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.PageCollection.Accept" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "set-font-size-color-textfragment": { - "title": "Set Font Size and Color for a TextFragment", - "filename": "set-font-size-color-textfragment.cs", - "description": "Demonstrates how to define font size, color, and font family using a TextState and apply it to a TextFragment for styled PDF output.", + "batch-replace-multiple-strings-in-pdf": { + "title": "Batch Replace Multiple Strings in PDF", + "filename": "batch-replace-multiple-strings-in-pdf.cs", + "description": "Shows how to replace several text strings in a PDF by iterating a dictionary of old‑new pairs using Aspose.Pdf's TextFragmentAbsorber and TextReplaceOptions.", "tags": [ - "textfragment", - "font", - "color", - "styling", - "pdf" + "pdf", + "text-replacement", + "batch-processing", + "dictionary", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragmentAbsorber", + "Aspose.Pdf.Text.TextReplaceOptions", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Text.FontRepository.FindFont", - "Aspose.Pdf.Color" + "Aspose.Pdf.PageCollection.Accept", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "add-text-to-pdf-from-memory-stream": { - "title": "Add Text to PDF from Memory Stream", - "filename": "add-text-to-pdf-from-memory-stream.cs", - "description": "Shows how to load a PDF from a Stream, insert a text fragment on the first page, and write the updated PDF back to another Stream using Aspose.Pdf.", + "batch-replace-text-in-pdfs": { + "title": "Batch Replace Text In Pdfs", + "filename": "batch-replace-text-in-pdfs.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "batch-replace-text-pdf-config": { + "title": "Batch Replace Text Pdf Config", + "filename": "batch-replace-text-pdf-config.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "center-text-horizontally-in-pdf": { + "title": "Center Text Horizontally in PDF", + "filename": "center-text-horizontally-in-pdf.cs", + "description": "Demonstrates how to place a text fragment at the horizontal center of a PDF page using Aspose.Pdf's TextFragment and HorizontalAlignment properties.", "tags": [ + "text-alignment", "pdf", - "text", - "memory-stream", - "aspose", - "csharp" + "aspose-pdf", + "csharp", + "horizontal-center" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.Position", - "Aspose.Pdf.Text.TextBuilder", - "Aspose.Pdf.Text.FontRepository.FindFont", + "Aspose.Pdf.FontRepository.FindFont", + "Aspose.Pdf.Text.HorizontalAlignment", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, + "center-text-on-pdf-page": { + "title": "Center Text On Pdf Page", + "filename": "center-text-on-pdf-page.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "convert-modified-pdf-to-byte-array": { "title": "Convert Modified PDF to Byte Array", "filename": "convert-modified-pdf-to-byte-array.cs", @@ -599,52 +705,82 @@ "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "add-text-and-encrypt-pdf": { - "title": "Add Text and Encrypt PDF with Password", - "filename": "add-text-and-encrypt-pdf.cs", - "description": "Loads an existing PDF, adds a red text fragment to the first page, then encrypts the document with user and owner passwords and specific permissions before saving.", + "create-endnote-bold-italic": { + "title": "Create Endnote Bold Italic", + "filename": "create-endnote-bold-italic.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-footnote-with-image": { + "title": "Create Footnote With Image", + "filename": "create-footnote-with-image.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-internal-text-link-to-page": { + "title": "Create Internal Text Link To Page", + "filename": "create-internal-text-link-to-page.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-pdf-launch-action-open-external-file": { + "title": "Create PDF with Launch Action to Open External File", + "filename": "create-pdf-launch-action-open-external-file.cs", + "description": "Demonstrates how to add clickable text in a PDF that launches an external file using Aspose.Pdf's LaunchAction.", "tags": [ "pdf", - "encryption", - "text", - "aspose-pdf", - "permissions" + "launch-action", + "link-annotation", + "clickable-text", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.Position", - "Aspose.Pdf.FontRepository.FindFont", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.CryptoAlgorithm" + "Aspose.Pdf.Annotations.LinkAnnotation", + "Aspose.Pdf.Annotations.LaunchAction", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Color" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "add-underlined-text-to-pdf": { - "title": "Add Underlined Text to PDF", - "filename": "add-underlined-text-to-pdf.cs", - "description": "Creates a PDF document, adds a page, and inserts a text fragment with underlining by setting TextState.Underline to true.", + "create-rotated-text-paragraph": { + "title": "Create Rotated Text Paragraph in PDF", + "filename": "create-rotated-text-paragraph.cs", + "description": "Demonstrates how to build a TextParagraph with multiple TextFragments, set its bounding rectangle, apply a 30‑degree rotation, and add it to a PDF page using Aspose.Pdf.", "tags": [ - "underlined-text", - "Aspose.Pdf", - "TextFragment", - "PDF-generation", - "C#" + "text", + "rotation", + "paragraph", + "pdf", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextParagraph", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextState", "Aspose.Pdf.Text.TextBuilder", - "Aspose.Pdf.Text.Position", - "Aspose.Pdf.FontRepository.FindFont" + "Aspose.Pdf.Text.FontRepository", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Color" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, @@ -672,92 +808,99 @@ "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "render-superscript-text": { - "title": "Render Superscript Text in PDF", - "filename": "render-superscript-text.cs", - "description": "Loads an existing PDF, adds a normal text fragment and a superscript fragment by adjusting its position and font size, then saves the modified document.", + "create-strikethrough-text": { + "title": "Create Strikethrough Text", + "filename": "create-strikethrough-text.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-text-link-goto-action": { + "title": "Create Text Link with GoTo Action in PDF", + "filename": "create-text-link-goto-action.cs", + "description": "Shows how to add a clickable text fragment that jumps to another page by using a LinkAnnotation with a GoToAction in Aspose.Pdf.", "tags": [ - "superscript", - "textfragment", + "text-link", + "goto-action", + "annotation", "pdf", - "aspose-pdf", - "positioning" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.Position", - "Aspose.Pdf.Text.TextState" + "Aspose.Pdf.Annotations.LinkAnnotation", + "Aspose.Pdf.Annotations.GoToAction", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Border" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "render-subscript-text": { - "title": "Render Subscript Text in PDF", - "filename": "render-subscript-text.cs", - "description": "Shows how to create subscript characters in a PDF by setting the Subscript flag (negative rise) on a TextFragment before adding it to a page.", + "detect-manual-line-breaks-in-textfragment": { + "title": "Detect Manual Line Breaks in TextFragment Content", + "filename": "detect-manual-line-breaks-in-textfragment.cs", + "description": "Shows how to load a PDF, iterate through pages and TextFragment objects, split the fragment text into logical lines, and determine whether each line ends with a manual line‑break for custom layout handling.", "tags": [ - "subscript", - "text", "pdf", + "textfragment", + "line-break", "aspose-pdf", - "textfragment" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.FontRepository.FindFont", - "Aspose.Pdf.Text.TextState.Subscript", - "Aspose.Pdf.Page.Paragraphs.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Page.Paragraphs" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "set-custom-line-spacing-pdf": { - "title": "Set Custom Line Spacing for Added Text in PDF", - "filename": "set-custom-line-spacing-pdf.cs", - "description": "Shows how to add text to a PDF with a specific leading (line spacing) by using Aspose.Pdf's TextParagraph, TextState, and TextBuilder.", + "embed-css-in-htmlfragment": { + "title": "Embed CSS in HtmlFragment to Style PDF Text", + "filename": "embed-css-in-htmlfragment.cs", + "description": "Demonstrates embedding CSS rules within an HtmlFragment to control font, color, and spacing, and adding the fragment to a PDF page using Aspose.Pdf.", "tags": [ - "line-spacing", - "text-paragraph", - "aspose-pdf", - "pdf-modification", - "textstate" + "css", + "htmlfragment", + "pdf", + "styling", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextParagraph", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Text.TextBuilder", - "Aspose.Pdf.Text.TextFormattingOptions", - "Aspose.Pdf.FontRepository" + "Aspose.Pdf.HtmlFragment", + "Aspose.Pdf.Page.Paragraphs.Add", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "adjust-word-spacing-in-pdf": { - "title": "Adjust Word Spacing for Inserted Text in PDF", - "filename": "adjust-word-spacing-in-pdf.cs", - "description": "Demonstrates how to load an existing PDF, create a TextFragment, set its WordSpacing property, and place it on a page using Aspose.Pdf.", + "emulate-kerning-in-pdf-text": { + "title": "Emulate Kerning in PDF Text Using Aspose.Pdf", + "filename": "emulate-kerning-in-pdf-text.cs", + "description": "Shows how to add a TextFragment to a PDF and emulate kerning by setting the CharacterSpacing property on its TextState.", "tags": [ - "word-spacing", - "text-fragment", - "pdf-modification", - "aspose-pdf", - "csharp" + "kerning", + "textfragment", + "character-spacing", + "pdf", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.FontRepository.FindFont", "Aspose.Pdf.Position", "Aspose.Pdf.Page" ], @@ -765,200 +908,372 @@ "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "justify-text-in-pdf": { - "title": "Justify Text in PDF with TextFragment", - "filename": "justify-text-in-pdf.cs", - "description": "Demonstrates how to create a PDF, add a TextFragment, and set its TextState.HorizontalAlignment to Justify so the text spans the full page width.", + "enable-automatic-hyphenation": { + "title": "Enable Automatic Hyphenation", + "filename": "enable-automatic-hyphenation.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "enable-hyphenation-long-words-pdf": { + "title": "Enable Hyphenation for Long Words in PDF", + "filename": "enable-hyphenation-long-words-pdf.cs", + "description": "Demonstrates how to enable automatic hyphenation for long words when inserting text into a PDF using Aspose.Pdf. The example creates a TextFragment, configures hyphenation options, and appends it to a page.", "tags": [ - "justify", + "hyphenation", "textfragment", + "pdf", "aspose-pdf", - "horizontal-alignment", - "pdf" + "textbuilder" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Text.HorizontalAlignment", + "Aspose.Pdf.Text.TextBuilder", + "Aspose.Pdf.Text.TextFormattingOptions", + "Aspose.Pdf.Text.FontRepository", "Aspose.Pdf.Color" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "add-arabic-bidi-text-to-pdf": { - "title": "Add Arabic Bidirectional Text to PDF", - "filename": "add-arabic-bidi-text-to-pdf.cs", - "description": "Demonstrates how to open an existing PDF, create a TextFragment with Arabic Unicode characters, configure its TextState, and save the document, enabling proper bidirectional rendering.", + "enable-rtl-text-direction": { + "title": "Enable Rtl Text Direction", + "filename": "enable-rtl-text-direction.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-email-addresses-from-pdf": { + "title": "Extract Email Addresses from PDF Pages using Regex", + "filename": "extract-email-addresses-from-pdf.cs", + "description": "Shows how to load a PDF with Aspose.Pdf, search each page for email addresses using a regular expression, and print the matches together with their page numbers.", "tags": [ - "bidi", - "arabic", - "textfragment", "pdf", - "aspose" + "regex", + "email", + "text-search", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.Position", - "Aspose.Pdf.Text.FontRepository.FindFont", - "Aspose.Pdf.Color" + "Aspose.Pdf.Page.Accept", + "Aspose.Pdf.Text.TextFragmentAbsorber", + "Aspose.Pdf.Text.TextSearchOptions", + "Aspose.Pdf.Text.TextFragment" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "set-custom-line-height-pdf-text": { - "title": "Set Custom Line Height for PDF Text", - "filename": "set-custom-line-height-pdf-text.cs", - "description": "Loads an existing PDF, adds a multi‑line TextFragment, sets a custom line height via the TextState.LineSpacing property, and saves the document.", + "extract-line-break-positions-from-pdf": { + "title": "Extract Line-Break Positions from PDF Text Fragments", + "filename": "extract-line-break-positions-from-pdf.cs", + "description": "Demonstrates how to load a PDF, absorb its text fragments, and determine the Y‑coordinates where each line starts, outputting the positions as JSON.", "tags": [ - "line-height", - "text-fragment", "pdf", + "text-extraction", + "line-break", "aspose-pdf", - "text-formatting" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragmentAbsorber", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextState.LineSpacing", - "Aspose.Pdf.Page.Paragraphs.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Text.TextSegment", + "Aspose.Pdf.Text.Position" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "emulate-kerning-in-pdf-text": { - "title": "Emulate Kerning in PDF Text Using Aspose.Pdf", - "filename": "emulate-kerning-in-pdf-text.cs", - "description": "Shows how to add a TextFragment to a PDF and emulate kerning by setting the CharacterSpacing property on its TextState.", + "extract-line-break-positions-pdf": { + "title": "Extract Line Break Positions Pdf", + "filename": "extract-line-break-positions-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-page-word-count-to-csv": { + "title": "Extract Text from PDF Pages and Count Words to CSV", + "filename": "extract-page-word-count-to-csv.cs", + "description": "The example opens a PDF, extracts the text of each page using Aspose.Pdf, counts the words, and writes the page number and word count to a CSV file.", "tags": [ - "kerning", - "textfragment", - "character-spacing", "pdf", + "text-extraction", + "word-count", + "csv", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Position", - "Aspose.Pdf.Page" + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextAbsorber", + "Aspose.Pdf.Page.Accept", + "Aspose.Pdf.Document.Pages" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "render-text-with-ligatures": { - "title": "Render Text with Ligatures in PDF", - "filename": "render-text-with-ligatures.cs", - "description": "Creates a PDF document, adds a TextFragment containing Unicode ligature characters, and demonstrates that ligatures are rendered automatically.", + "extract-pdf-text-sentences-per-page": { + "title": "Extract PDF Text and Save Each Sentence on Separate Pages", + "filename": "extract-pdf-text-sentences-per-page.cs", + "description": "The example extracts all text from an input PDF, splits it into individual sentences, and writes each sentence to its own page in a new PDF using TextFragment objects.", "tags": [ - "ligatures", - "text", "pdf", - "aspose-pdf", - "textfragment" + "text-extraction", + "sentence-splitting", + "textfragment", + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextAbsorber", "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.TextBuilder", + "Aspose.Pdf.Text.Position", "Aspose.Pdf.Text.FontRepository", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Position" + "Aspose.Pdf.Color" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "enable-hyphenation-long-words-pdf": { - "title": "Enable Hyphenation for Long Words in PDF", - "filename": "enable-hyphenation-long-words-pdf.cs", - "description": "Demonstrates how to enable automatic hyphenation for long words when inserting text into a PDF using Aspose.Pdf. The example creates a TextFragment, configures hyphenation options, and appends it to a page.", + "extract-pdf-text-sentences-to-pages": { + "title": "Extract Pdf Text Sentences To Pages", + "filename": "extract-pdf-text-sentences-to-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-pdf-text-to-utf8-file": { + "title": "Extract Pdf Text To Utf8 File", + "filename": "extract-pdf-text-to-utf8-file.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "extract-text-fragments-and-positions": { + "title": "Extract Text Fragments and Positions from PDF", + "filename": "extract-text-fragments-and-positions.cs", + "description": "Loads a PDF document, uses TextFragmentAbsorber to retrieve all text fragments on each page, and logs each fragment's text, coordinates, rectangle bounds, and segment details.", "tags": [ - "hyphenation", - "textfragment", "pdf", - "aspose-pdf", - "textbuilder" + "text-extraction", + "positions", + "text-fragment", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragmentAbsorber", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextBuilder", - "Aspose.Pdf.Text.TextFormattingOptions", - "Aspose.Pdf.Text.FontRepository", - "Aspose.Pdf.Color" + "Aspose.Pdf.Text.TextSegment" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "embed-css-in-htmlfragment": { - "title": "Embed CSS in HtmlFragment to Style PDF Text", - "filename": "embed-css-in-htmlfragment.cs", - "description": "Demonstrates embedding CSS rules within an HtmlFragment to control font, color, and spacing, and adding the fragment to a PDF page using Aspose.Pdf.", + "extract-text-from-pdf-to-utf8-file": { + "title": "Extract Text from PDF and Save as UTF-8 File", + "filename": "extract-text-from-pdf-to-utf8-file.cs", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, extract all page text using a TextAbsorber, and write the concatenated result to a UTF‑8 encoded text file.", "tags": [ - "css", - "htmlfragment", "pdf", - "styling", + "text-extraction", + "utf-8", + "file-io", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.HtmlFragment", - "Aspose.Pdf.Page.Paragraphs.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Text.TextAbsorber", + "Aspose.Pdf.PageCollection.Accept", + "Aspose.Pdf.Text.TextAbsorber.Text" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "create-text-link-goto-action": { - "title": "Create Text Link with GoTo Action in PDF", - "filename": "create-text-link-goto-action.cs", - "description": "Shows how to add a clickable text fragment that jumps to another page by using a LinkAnnotation with a GoToAction in Aspose.Pdf.", + "extract-text-word-count-per-pdf-page": { + "title": "Extract Text Word Count Per Pdf Page", + "filename": "extract-text-word-count-per-pdf-page.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "find-approximate-text-matches-pdf": { + "title": "Find Approximate Text Matches Pdf", + "filename": "find-approximate-text-matches-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "find-dates-in-pdf-using-regex": { + "title": "Find Dates in PDF Using Regex", + "filename": "find-dates-in-pdf-using-regex.cs", + "description": "Shows how to locate all dates in MM/DD/YYYY format within a PDF by applying a regular expression with TextFragmentAbsorber and output the matches.", "tags": [ - "text-link", - "goto-action", - "annotation", + "date extraction", + "regex", + "text search", "pdf", - "aspose" + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragmentAbsorber", + "Aspose.Pdf.Text.TextSearchOptions", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Annotations.LinkAnnotation", - "Aspose.Pdf.Annotations.GoToAction", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Border" + "Aspose.Pdf.PageCollection.Accept" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T08:59:26Z", + "status": "verified" + }, + "find-dates-using-regex-in-pdf": { + "title": "Find Dates Using Regex In Pdf", + "filename": "find-dates-using-regex-in-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "find-phrase-occurrences-with-textabsorber": { + "title": "Find All Occurrences of a Phrase Using TextAbsorber", + "filename": "find-phrase-occurrences-with-textabsorber.cs", + "description": "Demonstrates how to extract the full text of a PDF with TextAbsorber and locate every case‑insensitive occurrence of a specified phrase, reporting its character positions.", + "tags": [ + "textabsorption", + "phrase-search", + "pdf", + "aspose-pdf", + "csharp" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Text.TextAbsorber", + "Aspose.Pdf.PageCollection", + "Aspose.Pdf.PageCollection.Accept" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:59:26Z", + "status": "verified" + }, + "find-specific-phrase-in-pdf": { + "title": "Find Specific Phrase In Pdf", + "filename": "find-specific-phrase-in-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "highlight-keyword-in-pdf": { + "title": "Highlight Keyword In Pdf", + "filename": "highlight-keyword-in-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "highlight-keyword-occurrences-pdf": { + "title": "Highlight Keyword Occurrences in PDF (Case‑Insensitive)", + "filename": "highlight-keyword-occurrences-pdf.cs", + "description": "Shows how to search a PDF for a case‑insensitive keyword using a regular expression and highlight each found instance with a colored background.", + "tags": [ + "pdf", + "highlight", + "search", + "regex", + "textfragment" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Text.TextFragmentAbsorber", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Color", + "Aspose.Pdf.PageCollection.Accept" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T08:59:26Z", + "status": "verified" + }, + "identify-forced-line-breaks-in-textfragment": { + "title": "Identify Forced Line Breaks In Textfragment", + "filename": "identify-forced-line-breaks-in-textfragment.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "inline-text-image-paragraph": { + "title": "Create Inline Text and Image in PDF Paragraph", + "filename": "inline-text-image-paragraph.cs", + "description": "Shows how to combine a TextFragment and an Image fragment inline within a single paragraph of a PDF document using Aspose.Pdf.", + "tags": [ + "inline", + "text", + "image", + "pdf", + "aspose" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Image", + "Aspose.Pdf.FontRepository", + "Aspose.Pdf.Color" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "add-clickable-hyperlink-text-to-pdf": { - "title": "Add Clickable Hyperlink Text to PDF", - "filename": "add-clickable-hyperlink-text-to-pdf.cs", - "description": "Shows how to create a TextSegment with a WebHyperlink and append it to a PDF page using Aspose.Pdf.", + "insert-hyperlink-into-pdf-text-segment": { + "title": "Insert Hyperlink into PDF Text Segment", + "filename": "insert-hyperlink-into-pdf-text-segment.cs", + "description": "Shows how to create a clickable hyperlink by assigning a WebHyperlink to a TextSegment and adding it to a TextFragment in a PDF document.", "tags": [ "hyperlink", "textsegment", "pdf", "aspose", - "clickable" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", @@ -967,54 +1282,53 @@ "Aspose.Pdf.Text.TextSegment", "Aspose.Pdf.Text.WebHyperlink", "Aspose.Pdf.Text.TextBuilder", - "Aspose.Pdf.Position", - "Aspose.Pdf.Color" + "Aspose.Pdf.Text.FontRepository" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "create-pdf-launch-action-open-external-file": { - "title": "Create PDF with Launch Action to Open External File", - "filename": "create-pdf-launch-action-open-external-file.cs", - "description": "Demonstrates how to add clickable text in a PDF that launches an external file using Aspose.Pdf's LaunchAction.", + "insert-identical-text-on-all-pdf-pages": { + "title": "Insert Identical Text on All PDF Pages", + "filename": "insert-identical-text-on-all-pdf-pages.cs", + "description": "Shows how to add the same plain text to every page of a PDF by creating a TextFragment, setting its appearance, and adding it to each page's Paragraphs collection.", "tags": [ "pdf", - "launch-action", - "link-annotation", - "clickable-text", - "aspose-pdf" + "text", + "aspose-pdf", + "paragraphs", + "iteration" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Annotations.LinkAnnotation", - "Aspose.Pdf.Annotations.LaunchAction", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Color" + "Aspose.Pdf.Text.Position", + "Aspose.Pdf.FontRepository.FindFont" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "rotate-specific-text-fragment": { - "title": "Rotate Specific Text Fragment in PDF", - "filename": "rotate-specific-text-fragment.cs", - "description": "Shows how to load a PDF, locate a text fragment using TextFragmentAbsorber, rotate that fragment by 45 degrees, and save the modified document.", + "insert-rotated-mixed-style-text-paragraph": { + "title": "Insert Rotated Mixed-Style Text Paragraph on Third PDF Page", + "filename": "insert-rotated-mixed-style-text-paragraph.cs", + "description": "Loads an existing PDF, creates a TextParagraph with bold and italic font styles, rotates it 45 degrees, and inserts it onto the third page of the document.", "tags": [ + "text", + "rotation", + "font-style", "pdf", - "text-rotation", - "search", - "aspose-pdf", - "csharp" + "aspdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextFragmentAbsorber", - "Aspose.Pdf.Page.Accept", - "Aspose.Pdf.Text.TextState.Rotation", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextParagraph", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Text.TextBuilder", + "Aspose.Pdf.FontRepository.FindFont", + "Aspose.Pdf.Color" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:59:26Z", @@ -1042,137 +1356,134 @@ "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "create-rotated-text-paragraph": { - "title": "Create Rotated Text Paragraph in PDF", - "filename": "create-rotated-text-paragraph.cs", - "description": "Demonstrates how to build a TextParagraph with multiple TextFragments, set its bounding rectangle, apply a 30‑degree rotation, and add it to a PDF page using Aspose.Pdf.", - "tags": [ - "text", - "rotation", - "paragraph", - "pdf", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextParagraph", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextBuilder", - "Aspose.Pdf.Text.FontRepository", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Color" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:59:26Z", + "insert-same-text-on-all-pdf-pages": { + "title": "Insert Same Text On All Pdf Pages", + "filename": "insert-same-text-on-all-pdf-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "replace-confidential-with-public-in-pdf": { - "title": "Replace Confidential with Public in PDF", - "filename": "replace-confidential-with-public-in-pdf.cs", - "description": "Demonstrates how to locate all occurrences of a specific phrase in a PDF and replace it with another phrase using Aspose.Pdf's text absorption and replacement features.", + "justify-text-in-pdf": { + "title": "Justify Text in PDF with TextFragment", + "filename": "justify-text-in-pdf.cs", + "description": "Demonstrates how to create a PDF, add a TextFragment, and set its TextState.HorizontalAlignment to Justify so the text spans the full page width.", "tags": [ - "text-replacement", - "pdf", + "justify", + "textfragment", "aspose-pdf", - "search", - "replace" + "horizontal-alignment", + "pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextFragmentAbsorber", - "Aspose.Pdf.Text.TextSearchOptions", + "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.PageCollection.Accept" + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Text.HorizontalAlignment", + "Aspose.Pdf.Color" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "extract-email-addresses-from-pdf": { - "title": "Extract Email Addresses from PDF Pages using Regex", - "filename": "extract-email-addresses-from-pdf.cs", - "description": "Shows how to load a PDF with Aspose.Pdf, search each page for email addresses using a regular expression, and print the matches together with their page numbers.", - "tags": [ - "pdf", - "regex", - "email", - "text-search", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page.Accept", - "Aspose.Pdf.Text.TextFragmentAbsorber", - "Aspose.Pdf.Text.TextSearchOptions", - "Aspose.Pdf.Text.TextFragment" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:59:26Z", + "launch-action-open-external-file": { + "title": "Launch Action Open External File", + "filename": "launch-action-open-external-file.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "detect-manual-line-breaks-in-textfragment": { - "title": "Detect Manual Line Breaks in TextFragment Content", - "filename": "detect-manual-line-breaks-in-textfragment.cs", - "description": "Shows how to load a PDF, iterate through pages and TextFragment objects, split the fragment text into logical lines, and determine whether each line ends with a manual line‑break for custom layout handling.", + "left-align-text-in-pdf": { + "title": "Left Align Text In Pdf", + "filename": "left-align-text-in-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "left-align-text-pdf": { + "title": "Left Align Text in PDF using Aspose.Pdf", + "filename": "left-align-text-pdf.cs", + "description": "Shows how to create a PDF, add a TextFragment, and set its HorizontalAlignment to Left for left‑aligned text.", "tags": [ + "text-alignment", "pdf", - "textfragment", - "line-break", "aspose-pdf", - "csharp" + "textfragment", + "horizontal-alignment" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Page.Paragraphs" + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Text.HorizontalAlignment", + "Aspose.Pdf.Position", + "Aspose.Pdf.Page.Paragraphs.Add", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "extract-text-fragments-and-positions": { - "title": "Extract Text Fragments and Positions from PDF", - "filename": "extract-text-fragments-and-positions.cs", - "description": "Loads a PDF document, uses TextFragmentAbsorber to retrieve all text fragments on each page, and logs each fragment's text, coordinates, rectangle bounds, and segment details.", + "load-custom-ttf-font-and-apply-to-text": { + "title": "Load Custom TrueType Font and Apply to PDF Text", + "filename": "load-custom-ttf-font-and-apply-to-text.cs", + "description": "Shows how to retrieve a TrueType font from the Aspose.Pdf font repository, embed it, and assign it to a TextFragment's TextState for rendering in a PDF document.", "tags": [ + "font", + "text", "pdf", - "text-extraction", - "positions", - "text-fragment", - "aspose" + "custom-font", + "embedding" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragmentAbsorber", + "Aspose.Pdf.FontRepository.FindFont", + "Aspose.Pdf.Font", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextSegment" + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "append-disclaimer-to-first-pdf-page": { - "title": "Append Disclaimer Text to First PDF Page", - "filename": "append-disclaimer-to-first-pdf-page.cs", - "description": "Shows how to load a PDF, create a formatted TextFragment, and add it to the end of the first page's paragraph collection as a disclaimer.", + "load-custom-ttf-font-from-memory": { + "title": "Load Custom Ttf Font From Memory", + "filename": "load-custom-ttf-font-from-memory.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "render-subscript-text": { + "title": "Render Subscript Text in PDF", + "filename": "render-subscript-text.cs", + "description": "Shows how to create subscript characters in a PDF by setting the Subscript flag (negative rise) on a TextFragment before adding it to a page.", "tags": [ + "subscript", + "text", "pdf", - "textfragment", - "disclaimer", "aspose-pdf", - "csharp" + "textfragment" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.FontRepository.FindFont", - "Aspose.Pdf.Color.Gray", + "Aspose.Pdf.Text.FontRepository.FindFont", + "Aspose.Pdf.Text.TextState.Subscript", "Aspose.Pdf.Page.Paragraphs.Add", "Aspose.Pdf.Document.Save" ], @@ -1180,135 +1491,113 @@ "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "rotate-header-text-pdf": { - "title": "Rotate Header Text in PDFs by 90 Degrees", - "filename": "rotate-header-text-pdf.cs", - "description": "Processes all PDF files in a folder, detects header-like text fragments based on font size, and rotates those fragments 90 degrees using Aspose.Pdf.", - "tags": [ - "pdf", - "text-rotation", - "header-detection", - "batch-processing", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextFragmentAbsorber", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:59:26Z", - "status": "verified" - }, - "replace-text-rotate-page-save-memory-stream": { - "title": "Replace Text and Rotate PDF Page, Save to MemoryStream", - "filename": "replace-text-rotate-page-save-memory-stream.cs", - "description": "The example creates a PDF in memory, replaces a specific text string, rotates the first page, and saves the modified document to a MemoryStream.", + "render-superscript-text": { + "title": "Render Superscript Text in PDF", + "filename": "render-superscript-text.cs", + "description": "Loads an existing PDF, adds a normal text fragment and a superscript fragment by adjusting its position and font size, then saves the modified document.", "tags": [ - "text-replacement", - "page-rotation", - "memory-stream", - "pdf-modification", - "aspose-pdf" + "superscript", + "textfragment", + "pdf", + "aspose-pdf", + "positioning" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextFragmentAbsorber", - "Aspose.Pdf.Rotation", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Text.Position", + "Aspose.Pdf.Text.TextState" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "search-text-pdf-with-logging": { - "title": "Search Text in PDF with Logging", - "filename": "search-text-pdf-with-logging.cs", - "description": "Demonstrates how to enable logging while searching for a phrase in a PDF using Aspose.Pdf, and records the number of matches and any extraction errors to a log file.", + "render-text-with-ligatures": { + "title": "Render Text with Ligatures in PDF", + "filename": "render-text-with-ligatures.cs", + "description": "Creates a PDF document, adds a TextFragment containing Unicode ligature characters, and demonstrates that ligatures are rendered automatically.", "tags": [ + "ligatures", + "text", "pdf", - "text-search", - "logging", - "aspose", - "csharp" + "aspose-pdf", + "textfragment" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextSearchOptions", - "Aspose.Pdf.Text.TextFragmentAbsorber", - "Aspose.Pdf.Text.TextFragmentAbsorber.Visit", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.FontRepository", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Position" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "extract-text-from-pdf-to-utf8-file": { - "title": "Extract Text from PDF and Save as UTF-8 File", - "filename": "extract-text-from-pdf-to-utf8-file.cs", - "description": "Demonstrates how to load a PDF with Aspose.Pdf, extract all page text using a TextAbsorber, and write the concatenated result to a UTF‑8 encoded text file.", + "replace-confidential-with-public-in-pdf": { + "title": "Replace Confidential with Public in PDF", + "filename": "replace-confidential-with-public-in-pdf.cs", + "description": "Demonstrates how to locate all occurrences of a specific phrase in a PDF and replace it with another phrase using Aspose.Pdf's text absorption and replacement features.", "tags": [ + "text-replacement", "pdf", - "text-extraction", - "utf-8", - "file-io", - "aspose-pdf" + "aspose-pdf", + "search", + "replace" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextAbsorber", - "Aspose.Pdf.PageCollection.Accept", - "Aspose.Pdf.Text.TextAbsorber.Text" + "Aspose.Pdf.Text.TextFragmentAbsorber", + "Aspose.Pdf.Text.TextSearchOptions", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.PageCollection.Accept" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "extract-line-break-positions-from-pdf": { - "title": "Extract Line-Break Positions from PDF Text Fragments", - "filename": "extract-line-break-positions-from-pdf.cs", - "description": "Demonstrates how to load a PDF, absorb its text fragments, and determine the Y‑coordinates where each line starts, outputting the positions as JSON.", + "replace-phrase-preserve-formatting": { + "title": "Replace Phrase While Preserving Formatting in PDF", + "filename": "replace-phrase-preserve-formatting.cs", + "description": "Demonstrates how to search for a specific text phrase in a PDF, replace it with new text, and retain the original font, size, color, and other formatting using Aspose.Pdf.", "tags": [ "pdf", - "text-extraction", - "line-break", - "aspose-pdf", + "text-replacement", + "formatting", + "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Page.Accept", "Aspose.Pdf.Text.TextFragmentAbsorber", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextSegment", - "Aspose.Pdf.Text.Position" + "Aspose.Pdf.Text.TextState" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "add-rotated-text-watermark-to-pdf-pages": { - "title": "Add Rotated Text Watermark to PDF Pages", - "filename": "add-rotated-text-watermark-to-pdf-pages.cs", - "description": "Shows how to use Aspose.Pdf's TextBuilder and TextFragment to place a rotated \"CONFIDENTIAL\" watermark on every page of a PDF document.", + "replace-text-in-pdf-using-fuzzy-regex": { + "title": "Replace Text in PDF Using Fuzzy Regex Search", + "filename": "replace-text-in-pdf-using-fuzzy-regex.cs", + "description": "Demonstrates how to locate approximate text matches in a PDF using a regular‑expression (fuzzy) search with Aspose.Pdf and replace the found fragments with new content.", "tags": [ - "watermark", - "text", "pdf", - "rotation", - "Aspose" + "text-replacement", + "regex", + "fuzzy-search", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextBuilder", + "Aspose.Pdf.Text.TextFragmentAbsorber", + "Aspose.Pdf.Text.TextSearchOptions", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.FontRepository.FindFont", - "Aspose.Pdf.Color", - "Aspose.Pdf.Text.TextBuilder.AppendText", + "Aspose.Pdf.Document.Pages.Accept", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", @@ -1338,93 +1627,122 @@ "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "highlight-keyword-occurrences-pdf": { - "title": "Highlight Keyword Occurrences in PDF (Case‑Insensitive)", - "filename": "highlight-keyword-occurrences-pdf.cs", - "description": "Shows how to search a PDF for a case‑insensitive keyword using a regular expression and highlight each found instance with a colored background.", + "replace-text-rotate-page-save-memory-stream": { + "title": "Replace Text and Rotate PDF Page, Save to MemoryStream", + "filename": "replace-text-rotate-page-save-memory-stream.cs", + "description": "The example creates a PDF in memory, replaces a specific text string, rotates the first page, and saves the modified document to a MemoryStream.", "tags": [ - "pdf", - "highlight", - "search", - "regex", - "textfragment" + "text-replacement", + "page-rotation", + "memory-stream", + "pdf-modification", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextFragmentAbsorber", + "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Color", - "Aspose.Pdf.PageCollection.Accept" + "Aspose.Pdf.Text.TextFragmentAbsorber", + "Aspose.Pdf.Rotation", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "insert-rotated-mixed-style-text-paragraph": { - "title": "Insert Rotated Mixed-Style Text Paragraph on Third PDF Page", - "filename": "insert-rotated-mixed-style-text-paragraph.cs", - "description": "Loads an existing PDF, creates a TextParagraph with bold and italic font styles, rotates it 45 degrees, and inserts it onto the third page of the document.", + "replace-text-rotate-pdf-pages-save-memory": { + "title": "Replace Text Rotate Pdf Pages Save Memory", + "filename": "replace-text-rotate-pdf-pages-save-memory.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "replace-text-with-clickable-hyperlink": { + "title": "Replace Text with Clickable Hyperlink in PDF", + "filename": "replace-text-with-clickable-hyperlink.cs", + "description": "Shows how to locate a phrase in a PDF, replace it with new text, and attach a clickable hyperlink annotation using Aspose.Pdf.", "tags": [ - "text", - "rotation", - "font-style", "pdf", - "aspdf" + "text-replacement", + "hyperlink", + "annotation", + "search" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextParagraph", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.Text.TextBuilder", - "Aspose.Pdf.FontRepository.FindFont", - "Aspose.Pdf.Color" + "Aspose.Pdf.Text.TextFragmentAbsorber", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Annotations.LinkAnnotation", + "Aspose.Pdf.Annotations.GoToURIAction" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "batch-replace-multiple-strings-in-pdf": { - "title": "Batch Replace Multiple Strings in PDF", - "filename": "batch-replace-multiple-strings-in-pdf.cs", - "description": "Shows how to replace several text strings in a PDF by iterating a dictionary of old‑new pairs using Aspose.Pdf's TextFragmentAbsorber and TextReplaceOptions.", + "retrieve-line-break-info-from-text-fragments": { + "title": "Retrieve Line Break Info From Text Fragments", + "filename": "retrieve-line-break-info-from-text-fragments.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "right-align-text-in-pdf": { + "title": "Right Align Text in PDF", + "filename": "right-align-text-in-pdf.cs", + "description": "Shows how to right‑align a text fragment on a PDF page by setting TextState.HorizontalAlignment to Right using Aspose.Pdf.", "tags": [ + "right-alignment", + "text-fragment", "pdf", - "text-replacement", - "batch-processing", - "dictionary", - "aspose-pdf" + "aspose-pdf", + "horizontal-alignment" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextFragmentAbsorber", - "Aspose.Pdf.Text.TextReplaceOptions", + "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.PageCollection.Accept", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Text.HorizontalAlignment", + "Aspose.Pdf.Position" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "extract-page-word-count-to-csv": { - "title": "Extract Text from PDF Pages and Count Words to CSV", - "filename": "extract-page-word-count-to-csv.cs", - "description": "The example opens a PDF, extracts the text of each page using Aspose.Pdf, counts the words, and writes the page number and word count to a CSV file.", + "right-align-text-pdf": { + "title": "Right Align Text Pdf", + "filename": "right-align-text-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "rotate-added-text-in-pdf": { + "title": "Rotate Added Text in PDF", + "filename": "rotate-added-text-in-pdf.cs", + "description": "Demonstrates how to rotate a text fragment by setting the TextState.Rotation property before placing it on a PDF page.", "tags": [ + "text-rotation", + "textfragment", "pdf", - "text-extraction", - "word-count", - "csv", - "aspose-pdf" + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextAbsorber", - "Aspose.Pdf.Page.Accept", - "Aspose.Pdf.Document.Pages" + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.Position", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Color" ], "difficulty": "beginner", "generated_at": "2026-08-20T08:59:26Z", @@ -1447,60 +1765,27 @@ "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Text.TextState", "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T08:59:26Z", - "status": "verified" - }, - "find-dates-in-pdf-using-regex": { - "title": "Find Dates in PDF Using Regex", - "filename": "find-dates-in-pdf-using-regex.cs", - "description": "Shows how to locate all dates in MM/DD/YYYY format within a PDF by applying a regular expression with TextFragmentAbsorber and output the matches.", - "tags": [ - "date extraction", - "regex", - "text search", - "pdf", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextFragmentAbsorber", - "Aspose.Pdf.Text.TextSearchOptions", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.PageCollection.Accept" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:59:26Z", - "status": "verified" - }, - "append-a-multi-line-textfragment-to-a-page-and-retrieve-its-line-break-information-for-custom-rendering": { - "title": "Append A Multi Line Textfragment To A Page And Retrieve Its Line Break Information For Custom Rendering", - "filename": "append-a-multi-line-textfragment-to-a-page-and-retrieve-its-line-break-information-for-custom-rendering.cs", - "description": "", - "tags": [], - "apis_used": [], - "difficulty": "", + ], + "difficulty": "beginner", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "rotate-table-cell-text": { - "title": "Rotate Table Cell Text by 60 Degrees", - "filename": "rotate-table-cell-text.cs", - "description": "Shows how to locate a table cell in a PDF and rotate its text fragments by 60 degrees using Aspose.Pdf.", + "rotate-header-text-pdf": { + "title": "Rotate Header Text in PDFs by 90 Degrees", + "filename": "rotate-header-text-pdf.cs", + "description": "Processes all PDF files in a folder, detects header-like text fragments based on font size, and rotates those fragments 90 degrees using Aspose.Pdf.", "tags": [ - "table", - "text-rotation", "pdf", - "aspose-pdf", - "csharp" + "text-rotation", + "header-detection", + "batch-processing", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.TableAbsorber", - "Aspose.Pdf.TableAbsorber.Visit", + "Aspose.Pdf.Text.TextFragmentAbsorber", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextState.Rotation", + "Aspose.Pdf.Text.TextState", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", @@ -1530,71 +1815,46 @@ "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "add-rotated-text-bottom-right-last-page": { - "title": "Add Rotated Text to Bottom‑Right of Last PDF Page", - "filename": "add-rotated-text-bottom-right-last-page.cs", - "description": "Demonstrates how to use Aspose.Pdf's TextBuilder to place a rotated text fragment at the bottom‑right corner of the last page of a PDF document.", - "tags": [ - "text", - "rotation", - "pdf", - "textbuilder", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextBuilder", - "Aspose.Pdf.Text.Position", - "Aspose.Pdf.Text.FontRepository", - "Aspose.Pdf.Color" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T08:59:26Z", - "status": "verified" - }, - "replace-text-with-clickable-hyperlink": { - "title": "Replace Text with Clickable Hyperlink in PDF", - "filename": "replace-text-with-clickable-hyperlink.cs", - "description": "Shows how to locate a phrase in a PDF, replace it with new text, and attach a clickable hyperlink annotation using Aspose.Pdf.", + "rotate-specific-text-fragment": { + "title": "Rotate Specific Text Fragment in PDF", + "filename": "rotate-specific-text-fragment.cs", + "description": "Shows how to load a PDF, locate a text fragment using TextFragmentAbsorber, rotate that fragment by 45 degrees, and save the modified document.", "tags": [ "pdf", - "text-replacement", - "hyperlink", - "annotation", - "search" + "text-rotation", + "search", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Text.TextFragmentAbsorber", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Annotations.LinkAnnotation", - "Aspose.Pdf.Annotations.GoToURIAction" + "Aspose.Pdf.Page.Accept", + "Aspose.Pdf.Text.TextState.Rotation", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "extract-pdf-text-sentences-per-page": { - "title": "Extract PDF Text and Save Each Sentence on Separate Pages", - "filename": "extract-pdf-text-sentences-per-page.cs", - "description": "The example extracts all text from an input PDF, splits it into individual sentences, and writes each sentence to its own page in a new PDF using TextFragment objects.", + "rotate-table-cell-text": { + "title": "Rotate Table Cell Text by 60 Degrees", + "filename": "rotate-table-cell-text.cs", + "description": "Shows how to locate a table cell in a PDF and rotate its text fragments by 60 degrees using Aspose.Pdf.", "tags": [ + "table", + "text-rotation", "pdf", - "text-extraction", - "sentence-splitting", - "textfragment", - "aspnet" + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextAbsorber", + "Aspose.Pdf.TableAbsorber", + "Aspose.Pdf.TableAbsorber.Visit", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextBuilder", - "Aspose.Pdf.Text.Position", - "Aspose.Pdf.Text.FontRepository", - "Aspose.Pdf.Color" + "Aspose.Pdf.Text.TextState.Rotation", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:59:26Z", @@ -1623,50 +1883,200 @@ "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "batch-replace-keywords-in-pdf": { - "title": "Batch Replace Keywords in PDF Using a Configuration File", - "filename": "batch-replace-keywords-in-pdf.cs", - "description": "Demonstrates how to read a mapping file and perform batch text replacements in a PDF document using Aspose.Pdf's text absorber and fragment classes.", + "rotate-text-field-appearance": { + "title": "Rotate Text Field Appearance", + "filename": "rotate-text-field-appearance.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "rotate-text-in-pdf-table-cell": { + "title": "Rotate Text In Pdf Table Cell", + "filename": "rotate-text-in-pdf-table-cell.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "rotate-text-in-pdf": { + "title": "Rotate Text In Pdf", + "filename": "rotate-text-in-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "save-pdf-to-byte-array": { + "title": "Save Pdf To Byte Array", + "filename": "save-pdf-to-byte-array.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "search-pdf-text-log": { + "title": "Search Pdf Text Log", + "filename": "search-pdf-text-log.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "search-replace-text-with-hyperlink": { + "title": "Search Replace Text With Hyperlink", + "filename": "search-replace-text-with-hyperlink.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "search-text-pdf-with-logging": { + "title": "Search Text in PDF with Logging", + "filename": "search-text-pdf-with-logging.cs", + "description": "Demonstrates how to enable logging while searching for a phrase in a PDF using Aspose.Pdf, and records the number of matches and any extraction errors to a log file.", "tags": [ "pdf", - "text-replacement", - "batch-processing", - "configuration-file", - "aspose-pdf" + "text-search", + "logging", + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Text.TextSearchOptions", "Aspose.Pdf.Text.TextFragmentAbsorber", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.PageCollection.Accept" + "Aspose.Pdf.Text.TextFragmentAbsorber.Visit", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" }, - "replace-text-in-pdf-using-fuzzy-regex": { - "title": "Replace Text in PDF Using Fuzzy Regex Search", - "filename": "replace-text-in-pdf-using-fuzzy-regex.cs", - "description": "Demonstrates how to locate approximate text matches in a PDF using a regular‑expression (fuzzy) search with Aspose.Pdf and replace the found fragments with new content.", + "set-character-spacing-pdf": { + "title": "Set Character Spacing for PDF Text", + "filename": "set-character-spacing-pdf.cs", + "description": "Demonstrates how to adjust the CharacterSpacing property of a TextState to control inter‑character gaps before adding a TextFragment to a PDF page using Aspose.Pdf.", "tags": [ + "character-spacing", + "text-state", "pdf", - "text-replacement", - "regex", - "fuzzy-search", - "aspose-pdf" + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextFragmentAbsorber", - "Aspose.Pdf.Text.TextSearchOptions", + "Aspose.Pdf.Page", "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Document.Pages.Accept", + "Aspose.Pdf.Text.Position", + "Aspose.Pdf.FontRepository", + "Aspose.Pdf.Text.TextState" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:59:26Z", + "status": "verified" + }, + "set-custom-line-height-pdf-text": { + "title": "Set Custom Line Height for PDF Text", + "filename": "set-custom-line-height-pdf-text.cs", + "description": "Loads an existing PDF, adds a multi‑line TextFragment, sets a custom line height via the TextState.LineSpacing property, and saves the document.", + "tags": [ + "line-height", + "text-fragment", + "pdf", + "aspose-pdf", + "text-formatting" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.TextState.LineSpacing", + "Aspose.Pdf.Page.Paragraphs.Add", "Aspose.Pdf.Document.Save" ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:59:26Z", + "status": "verified" + }, + "set-custom-line-spacing-pdf": { + "title": "Set Custom Line Spacing for Added Text in PDF", + "filename": "set-custom-line-spacing-pdf.cs", + "description": "Shows how to add text to a PDF with a specific leading (line spacing) by using Aspose.Pdf's TextParagraph, TextState, and TextBuilder.", + "tags": [ + "line-spacing", + "text-paragraph", + "aspose-pdf", + "pdf-modification", + "textstate" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextParagraph", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Text.TextBuilder", + "Aspose.Pdf.Text.TextFormattingOptions", + "Aspose.Pdf.FontRepository" + ], "difficulty": "intermediate", "generated_at": "2026-08-20T08:59:26Z", "status": "verified" + }, + "set-font-size-color-textfragment": { + "title": "Set Font Size and Color for a TextFragment", + "filename": "set-font-size-color-textfragment.cs", + "description": "Demonstrates how to define font size, color, and font family using a TextState and apply it to a TextFragment for styled PDF output.", + "tags": [ + "textfragment", + "font", + "color", + "styling", + "pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.Text.FontRepository.FindFont", + "Aspose.Pdf.Color" + ], + "difficulty": "beginner", + "generated_at": "2026-08-20T08:59:26Z", + "status": "verified" + }, + "show-floating-box-on-button-hover": { + "title": "Show Floating Box On Button Hover", + "filename": "show-floating-box-on-button-hover.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "style-textfragment-font-size-color": { + "title": "Style Textfragment Font Size Color", + "filename": "style-textfragment-font-size-color.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" } } } \ No newline at end of file diff --git a/working-with-xml/AGENTS.md b/working-with-xml/AGENTS.md index 4467a5599..7df5d7188 100644 --- a/working-with-xml/AGENTS.md +++ b/working-with-xml/AGENTS.md @@ -8,7 +8,7 @@ parent: ../agents.md # AGENTS - working-with-xml -> **Working with XML** in PDF using C# / .NET -- **72** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. +> **Working with XML** in PDF using C# / .NET -- **121** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. ## Persona @@ -23,39 +23,38 @@ See the root [agents.md](../agents.md) for repository-wide conventions and bound ## Required Namespaces -- `using Aspose.Pdf;` (70/72 files) ← category-specific -- `using Aspose.Pdf.Text;` (17/72 files) -- `using Aspose.Pdf.Annotations;` (7/72 files) -- `using Aspose.Pdf.Devices;` (4/72 files) -- `using Aspose.Pdf.Forms;` (4/72 files) -- `using Aspose.Pdf.Optimization;` (4/72 files) -- `using Aspose.Pdf.Drawing;` (2/72 files) -- `using Aspose.Pdf.Comparison;` (1/72 files) -- `using Aspose.Pdf.Facades;` (1/72 files) -- `using Aspose.Pdf.LogicalStructure;` (1/72 files) -- `using Aspose.Pdf.Tagged;` (1/72 files) -- `using System;` (72/72 files) -- `using System.IO;` (70/72 files) -- `using System.Xml.Linq;` (15/72 files) -- `using System.Xml;` (10/72 files) -- `using System.Collections.Generic;` (4/72 files) -- `using System.Data;` (2/72 files) -- `using System.Linq;` (2/72 files) -- `using System.Text;` (2/72 files) -- `using Microsoft.Extensions.DependencyInjection;` (1/72 files) -- `using System.Diagnostics;` (1/72 files) -- `using System.Globalization;` (1/72 files) -- `using System.Text.Json;` (1/72 files) -- `using System.Threading;` (1/72 files) -- `using System.Threading.Tasks;` (1/72 files) +- `using Aspose.Pdf;` (70/121 files) ← category-specific +- `using Aspose.Pdf.Text;` (17/121 files) +- `using Aspose.Pdf.Annotations;` (7/121 files) +- `using Aspose.Pdf.Devices;` (4/121 files) +- `using Aspose.Pdf.Forms;` (4/121 files) +- `using Aspose.Pdf.Optimization;` (4/121 files) +- `using Aspose.Pdf.Drawing;` (2/121 files) +- `using Aspose.Pdf.Comparison;` (1/121 files) +- `using Aspose.Pdf.Facades;` (1/121 files) +- `using Aspose.Pdf.LogicalStructure;` (1/121 files) +- `using Aspose.Pdf.Tagged;` (1/121 files) +- `using System;` (72/121 files) +- `using System.IO;` (70/121 files) +- `using System.Xml.Linq;` (15/121 files) +- `using System.Xml;` (10/121 files) +- `using System.Collections.Generic;` (4/121 files) +- `using System.Data;` (2/121 files) +- `using System.Linq;` (2/121 files) +- `using System.Text;` (2/121 files) +- `using Microsoft.Extensions.DependencyInjection;` (1/121 files) +- `using System.Diagnostics;` (1/121 files) +- `using System.Globalization;` (1/121 files) +- `using System.Text.Json;` (1/121 files) +- `using System.Threading;` (1/121 files) +- `using System.Threading.Tasks;` (1/121 files) ## Common Code Pattern -Most files in this category load documents with `XmlLoadOptions`: +Most files follow this pattern: ```csharp -XmlLoadOptions options = new XmlLoadOptions(); -using (Document doc = new Document("input.pdf", options)) +using (Document doc = new Document("input.pdf")) { // ... operations ... doc.Save("output.pdf"); @@ -66,40 +65,40 @@ using (Document doc = new Document("input.pdf", options)) | File | Title | Key APIs | Description | |------|-------|----------|-------------| +| [add-automatic-page-numbers-to-pdf](./add-automatic-page-numbers-to-pdf.cs) | Add automatic page numbers to pdf | | Add automatic page numbers to pdf | | [add-background-images-to-pdf-pages](./add-background-images-to-pdf-pages.cs) | Add Background Images to PDF Pages from XML | `Document`, `Page`, `BackgroundArtifact` | Demonstrates loading an XML file that maps page numbers to image files and applying those images ... | | [add-custom-page-borders-to-pdf](./add-custom-page-borders-to-pdf.cs) | Add Custom Page Borders to PDF Using Graphs | `Document`, `Page`, `Graph` | Shows how to draw a rectangular border on each page of a PDF by creating a Graph container, addin... | +| [add-header-footer-to-pdf-from-xml](./add-header-footer-to-pdf-from-xml.cs) | Add header footer to pdf from xml | | Add header footer to pdf from xml | | [add-header-footer-to-pdf-using-xml-templates](./add-header-footer-to-pdf-using-xml-templates.cs) | Add Header and Footer to PDF Using XML Templates | `Document`, `Page`, `HeaderFooter` | Demonstrates loading header and footer text from XML files, inserting page numbers, and applying ... | | [add-javascript-actions-to-pdf-from-xml](./add-javascript-actions-to-pdf-from-xml.cs) | Add JavaScript Actions to PDF from XML | `Document`, `XmlLoadOptions`, `TextBoxField` | Demonstrates loading an XML file into a PDF, adding a document‑level JavaScript alert, creating a... | | [add-page-transitions-to-pdf-from-xml](./add-page-transitions-to-pdf-from-xml.cs) | Add Page Transition Effects to PDF Generated from XML | `Document`, `XmlLoadOptions`, `Page` | Loads an XML file into a PDF document using Aspose.Pdf, attaches JavaScript actions to each page ... | | [apply-css-from-xml-to-pdf](./apply-css-from-xml-to-pdf.cs) | Apply CSS from XML/XSL to Generate Styled PDF | `Document`, `XmlLoadOptions`, `Save` | Demonstrates how to load an XML document with an XSL stylesheet that references external CSS file... | +| [apply-custom-background-color-to-pdf-pages](./apply-custom-background-color-to-pdf-pages.cs) | Apply custom background color to pdf pages | | Apply custom background color to pdf pages | +| [apply-custom-colour-scheme-xml-xsl](./apply-custom-colour-scheme-xml-xsl.cs) | Apply custom colour scheme xml xsl | | Apply custom colour scheme xml xsl | | [apply-custom-font-to-xml-elements](./apply-custom-font-to-xml-elements.cs) | Apply Custom Font to Specific XML Elements in PDF | `Document`, `XmlLoadOptions`, `OpenFont` | Demonstrates loading an XML file into a PDF, extracting text fragments, and applying a custom Tru... | +| [apply-section-based-page-margins](./apply-section-based-page-margins.cs) | Apply section based page margins | | Apply section based page margins | | [apply-section-specific-page-margins](./apply-section-specific-page-margins.cs) | Apply Section-Specific Page Margins Using XML | `Document`, `MarginInfo`, `Margin` | Shows how to load margin definitions from an XML file and apply different margins to defined page... | | [apply-xml-color-to-pdf-page-background](./apply-xml-color-to-pdf-page-background.cs) | Set PDF Page Background Color from XML Value | `Document`, `Save`, `Parse` | Loads a PDF, parses an XML color string (hex or rgb) into an Aspose.Pdf.Color, and applies that c... | | [batch-convert-xml-to-pdf](./batch-convert-xml-to-pdf.cs) | Batch Convert XML Files to PDF | `Document`, `XmlLoadOptions`, `Save` | Shows how to load all XML files in a folder and convert each one to a PDF document using Aspose.P... | | [batch-xml-to-pdf-conversion-profiling](./batch-xml-to-pdf-conversion-profiling.cs) | Batch XML to PDF Conversion with Performance Profiling | `Document`, `XmlLoadOptions`, `Save` | Demonstrates how to convert multiple XML files to PDF using Aspose.Pdf while measuring load, save... | +| [compress-pdf-flate-after-xml-conversion](./compress-pdf-flate-after-xml-conversion.cs) | Compress pdf flate after xml conversion | | Compress pdf flate after xml conversion | | [compress-pdf-streams-using-aspose-pdf](./compress-pdf-streams-using-aspose-pdf.cs) | Compress PDF Streams Using Aspose.Pdf Optimization | `Document`, `OptimizationOptions`, `OptimizeResources` | Shows how to load a PDF (e.g., generated from XML), apply resource optimization to compress strea... | | [compress-pdf-text-objects-from-xml](./compress-pdf-text-objects-from-xml.cs) | Compress PDF Text Objects from XML | `Document`, `XmlLoadOptions`, `OptimizationOptions` | Demonstrates converting an XML file to a PDF with Aspose.Pdf and applying stream compression to t... | | [compress-pdf-text-streams-flate-xml](./compress-pdf-text-streams-flate-xml.cs) | Compress PDF Text Streams with Flate via XML Conversion | `Document`, `XmlSaveOptions`, `XmlLoadOptions` | The example converts a PDF to XML, reloads it, applies Flate compression to all objects (includin... | | [concurrent-xml-to-pdf-conversion](./concurrent-xml-to-pdf-conversion.cs) | Concurrent XML to PDF Conversion with Aspose.Pdf | `Document`, `XmlLoadOptions`, `Save` | Demonstrates how to safely convert multiple XML files to PDF in parallel using Aspose.Pdf's XmlLo... | +| [convert-pdf-pages-to-high-resolution-png-thumbnail...](./convert-pdf-pages-to-high-resolution-png-thumbnails.cs) | Convert pdf pages to high resolution png thumbnails | | Convert pdf pages to high resolution png thumbnails | | [convert-pdf-pages-to-png-thumbnails](./convert-pdf-pages-to-png-thumbnails.cs) | Convert PDF Pages to High-Resolution PNG Thumbnails | `Document`, `Resolution`, `PngDevice` | Demonstrates how to load a PDF with Aspose.Pdf, set a high DPI resolution, and render each page a... | | [convert-styled-html-to-pdf-with-custom-colors](./convert-styled-html-to-pdf-with-custom-colors.cs) | Convert Styled HTML to PDF with Custom Colors | `Document`, `HtmlLoadOptions`, `Save` | Demonstrates how to embed inline CSS in an HTML file and use Aspose.Pdf to convert it into a PDF ... | +| [convert-xml-multiple-namespaces-to-pdf](./convert-xml-multiple-namespaces-to-pdf.cs) | Convert xml multiple namespaces to pdf | | Convert xml multiple namespaces to pdf | +| [convert-xml-to-html-preview](./convert-xml-to-html-preview.cs) | Convert xml to html preview | | Convert xml to html preview | +| [convert-xml-to-pdf-version-1-7](./convert-xml-to-pdf-version-1-7.cs) | Convert xml to pdf version 1 7 | | Convert xml to pdf version 1 7 | | [convert-xml-to-pdf-with-logging](./convert-xml-to-pdf-with-logging.cs) | Convert XML Files to PDF with Detailed Logging | `Document`, `XmlLoadOptions`, `PdfException` | Reads XML files from a directory, converts each to a PDF using Aspose.Pdf, and records detailed p... | | [convert-xml-to-pdf-with-xslt](./convert-xml-to-pdf-with-xslt.cs) | Convert XML to PDF with XSLT Transformation | `XmlLoadOptions`, `ctor`, `Document` | Demonstrates loading an XML file, applying an XSLT stylesheet during loading with Aspose.Pdf, and... | | [convert-xml-to-pdf](./convert-xml-to-pdf.cs) | Convert XML to PDF using Aspose.Pdf | `Document`, `XmlLoadOptions`, `Save` | Demonstrates loading an XML file and converting it to a PDF with Aspose.Pdf's default XSLT transf... | -| [convert-xml-to-pdfa-2b-and-validate](./convert-xml-to-pdfa-2b-and-validate.cs) | Convert XML to PDF/A‑2b and Validate Compliance | `Document`, `XmlLoadOptions`, `PdfFormat` | Shows how to load an XML file, convert it to PDF/A‑2b format, save the PDF, and validate the outp... | -| [create-barcodes-pdf-from-xml](./create-barcodes-pdf-from-xml.cs) | Create Barcodes in PDF from XML Fields | `Document`, `XmlLoadOptions`, `Page` | Shows how to load an XML file as a PDF, read barcode field definitions, generate Code128 barcodes... | -| [create-hierarchical-pdf-outline-from-xml](./create-hierarchical-pdf-outline-from-xml.cs) | Create Hierarchical PDF Outline from XML | `Document`, `OutlineItemCollection`, `XYZExplicitDestination` | Shows how to load an XML file and generate a PDF with a nested bookmark outline that mirrors the ... | -| [create-pdf-from-xsl-fo-memory-stream](./create-pdf-from-xsl-fo-memory-stream.cs) | Create PDF from XSL‑FO Using a MemoryStream | `Document`, `XslFoLoadOptions`, `Save` | Demonstrates loading XSL‑FO XML from a MemoryStream and generating a PDF document with default se... | -| [create-pdf-outline-from-xml](./create-pdf-outline-from-xml.cs) | Create PDF Outline Hierarchy from XML Nesting | `Document`, `XmlLoadOptions`, `OutlineItemCollection` | Demonstrates loading an XML file with Aspose.Pdf, then generating a PDF outline whose hierarchy m... | -| [create-pdf-outlines-from-xml-section-titles](./create-pdf-outlines-from-xml-section-titles.cs) | Create PDF Outlines from XML Section Titles | `Document`, `Page`, `TextFragment` | Reads section titles from an XML file, generates a PDF page for each title, and adds outline (boo... | -| [create-pdf-toc-from-xml](./create-pdf-toc-from-xml.cs) | Create PDF Table of Contents from XML Headings | `Document`, `ITaggedContent`, `TOCElement` | Shows how to build a hierarchical Table of Contents in a PDF by reading heading data from an XML ... | -| [create-pdf-xfa-form-from-xml](./create-pdf-xfa-form-from-xml.cs) | Create PDF XFA Form Fields from XML and Set Default Values | `Document`, `Form`, `AssignXfa` | Shows how to load or create a PDF, assign an XFA form definition from an XML file, set default fi... | -| [create-png-thumbnail-from-xml](./create-png-thumbnail-from-xml.cs) | Create PNG Thumbnail of First PDF Page from XML | `Document`, `XmlLoadOptions`, `Page` | The example loads an XML file, converts it to a PDF using Aspose.Pdf, and generates a PNG thumbna... | -| [downsample-images-from-xml](./downsample-images-from-xml.cs) | Downsample Images from XML to PDF using Aspose.Pdf | `Document`, `BindXml`, `OptimizationOptions` | Shows how to load an XML file, convert it to a PDF, and down‑sample high‑resolution images by con... | -| ... | | | *and 42 more files* | +| ... | | | *and 91 more files* | ## Category Statistics -- Total examples: 72 +- Total examples: 121 ## Category-Specific Tips @@ -135,5 +134,5 @@ using (Document doc = new Document("input.pdf", options)) - Review code examples in this folder for working-with-xml patterns -Updated: 2026-08-20 | Run: `20260820_001147_12d7b3` +Updated: 2026-09-10 | Run: `20260910_054408_87a7f4` diff --git a/working-with-xml/README.md b/working-with-xml/README.md new file mode 100644 index 000000000..0ff6a55f9 --- /dev/null +++ b/working-with-xml/README.md @@ -0,0 +1,140 @@ +# Working with XML + +> **Working with XML** in PDF using C# / .NET -- **121** verified, compile-tested examples for **Aspose.PDF for .NET** 26.8.0. Each `.cs` file is a standalone, build-validated console example, generated and runtime-checked by an AI agent before publishing. + +- Category: `working-with-xml` +- Examples: 121 +- NuGet: `Aspose.PDF 26.8.0` -- target `net10.0` + +## Examples + +- [`add-automatic-page-numbers-to-pdf.cs`](./add-automatic-page-numbers-to-pdf.cs) -- Add automatic page numbers to pdf +- [`add-background-images-to-pdf-pages.cs`](./add-background-images-to-pdf-pages.cs) -- Add background images to pdf pages +- [`add-custom-page-borders-to-pdf.cs`](./add-custom-page-borders-to-pdf.cs) -- Add custom page borders to pdf +- [`add-header-footer-to-pdf-from-xml.cs`](./add-header-footer-to-pdf-from-xml.cs) -- Add header footer to pdf from xml +- [`add-header-footer-to-pdf-using-xml-templates.cs`](./add-header-footer-to-pdf-using-xml-templates.cs) -- Add header footer to pdf using xml templates +- [`add-javascript-actions-to-pdf-from-xml.cs`](./add-javascript-actions-to-pdf-from-xml.cs) -- Add javascript actions to pdf from xml +- [`add-page-transitions-to-pdf-from-xml.cs`](./add-page-transitions-to-pdf-from-xml.cs) -- Add page transitions to pdf from xml +- [`apply-css-from-xml-to-pdf.cs`](./apply-css-from-xml-to-pdf.cs) -- Apply css from xml to pdf +- [`apply-custom-background-color-to-pdf-pages.cs`](./apply-custom-background-color-to-pdf-pages.cs) -- Apply custom background color to pdf pages +- [`apply-custom-colour-scheme-xml-xsl.cs`](./apply-custom-colour-scheme-xml-xsl.cs) -- Apply custom colour scheme xml xsl +- [`apply-custom-font-to-xml-elements.cs`](./apply-custom-font-to-xml-elements.cs) -- Apply custom font to xml elements +- [`apply-section-based-page-margins.cs`](./apply-section-based-page-margins.cs) -- Apply section based page margins +- [`apply-section-specific-page-margins.cs`](./apply-section-specific-page-margins.cs) -- Apply section specific page margins +- [`apply-xml-color-to-pdf-page-background.cs`](./apply-xml-color-to-pdf-page-background.cs) -- Apply xml color to pdf page background +- [`batch-convert-xml-to-pdf.cs`](./batch-convert-xml-to-pdf.cs) -- Batch convert xml to pdf +- [`batch-xml-to-pdf-conversion-profiling.cs`](./batch-xml-to-pdf-conversion-profiling.cs) -- Batch xml to pdf conversion profiling +- [`compress-pdf-flate-after-xml-conversion.cs`](./compress-pdf-flate-after-xml-conversion.cs) -- Compress pdf flate after xml conversion +- [`compress-pdf-streams-using-aspose-pdf.cs`](./compress-pdf-streams-using-aspose-pdf.cs) -- Compress pdf streams using aspose pdf +- [`compress-pdf-text-objects-from-xml.cs`](./compress-pdf-text-objects-from-xml.cs) -- Compress pdf text objects from xml +- [`compress-pdf-text-streams-flate-xml.cs`](./compress-pdf-text-streams-flate-xml.cs) -- Compress pdf text streams flate xml +- [`concurrent-xml-to-pdf-conversion.cs`](./concurrent-xml-to-pdf-conversion.cs) -- Concurrent xml to pdf conversion +- [`convert-pdf-pages-to-high-resolution-png-thumbnails.cs`](./convert-pdf-pages-to-high-resolution-png-thumbnails.cs) -- Convert pdf pages to high resolution png thumbnails +- [`convert-pdf-pages-to-png-thumbnails.cs`](./convert-pdf-pages-to-png-thumbnails.cs) -- Convert pdf pages to png thumbnails +- [`convert-styled-html-to-pdf-with-custom-colors.cs`](./convert-styled-html-to-pdf-with-custom-colors.cs) -- Convert styled html to pdf with custom colors +- [`convert-xml-multiple-namespaces-to-pdf.cs`](./convert-xml-multiple-namespaces-to-pdf.cs) -- Convert xml multiple namespaces to pdf +- [`convert-xml-to-html-preview.cs`](./convert-xml-to-html-preview.cs) -- Convert xml to html preview +- [`convert-xml-to-pdf-version-1-7.cs`](./convert-xml-to-pdf-version-1-7.cs) -- Convert xml to pdf version 1 7 +- [`convert-xml-to-pdf-with-logging.cs`](./convert-xml-to-pdf-with-logging.cs) -- Convert xml to pdf with logging +- [`convert-xml-to-pdf-with-xslt.cs`](./convert-xml-to-pdf-with-xslt.cs) -- Convert xml to pdf with xslt +- [`convert-xml-to-pdf.cs`](./convert-xml-to-pdf.cs) -- Convert xml to pdf +- [`convert-xml-to-pdfa-2b-and-validate.cs`](./convert-xml-to-pdfa-2b-and-validate.cs) -- Convert xml to pdfa 2b and validate +- [`create-barcodes-pdf-from-xml.cs`](./create-barcodes-pdf-from-xml.cs) -- Create barcodes pdf from xml +- [`create-hierarchical-pdf-outline-from-xml.cs`](./create-hierarchical-pdf-outline-from-xml.cs) -- Create hierarchical pdf outline from xml +- [`create-pdf-bookmarks-from-xml.cs`](./create-pdf-bookmarks-from-xml.cs) -- Create pdf bookmarks from xml +- [`create-pdf-form-fields-from-xml.cs`](./create-pdf-form-fields-from-xml.cs) -- Create pdf form fields from xml +- [`create-pdf-from-xsl-fo-memory-stream.cs`](./create-pdf-from-xsl-fo-memory-stream.cs) -- Create pdf from xsl fo memory stream +- [`create-pdf-outline-from-xml.cs`](./create-pdf-outline-from-xml.cs) -- Create pdf outline from xml +- [`create-pdf-outlines-from-xml-section-titles.cs`](./create-pdf-outlines-from-xml-section-titles.cs) -- Create pdf outlines from xml section titles +- [`create-pdf-toc-from-xml-headings.cs`](./create-pdf-toc-from-xml-headings.cs) -- Create pdf toc from xml headings +- [`create-pdf-toc-from-xml.cs`](./create-pdf-toc-from-xml.cs) -- Create pdf toc from xml +- [`create-pdf-xfa-form-from-xml.cs`](./create-pdf-xfa-form-from-xml.cs) -- Create pdf xfa form from xml +- [`create-png-thumbnail-from-xml.cs`](./create-png-thumbnail-from-xml.cs) -- Create png thumbnail from xml +- [`decode-base64-images-xml-to-pdf.cs`](./decode-base64-images-xml-to-pdf.cs) -- Decode base64 images xml to pdf +- [`downsample-images-from-xml.cs`](./downsample-images-from-xml.cs) -- Downsample images from xml +- [`embed-3d-models-from-xml.cs`](./embed-3d-models-from-xml.cs) -- Embed 3d models from xml +- [`embed-audio-annotations-from-xml.cs`](./embed-audio-annotations-from-xml.cs) -- Embed audio annotations from xml +- [`embed-custom-truetype-font-into-pdf.cs`](./embed-custom-truetype-font-into-pdf.cs) -- Embed custom truetype font into pdf +- [`embed-custom-ttf-font-into-pdf-from-xml.cs`](./embed-custom-ttf-font-into-pdf-from-xml.cs) -- Embed custom ttf font into pdf from xml +- [`embed-javascript-actions-in-pdf-from-xml.cs`](./embed-javascript-actions-in-pdf-from-xml.cs) -- Embed javascript actions in pdf from xml +- [`embed-video-annotations-from-xml.cs`](./embed-video-annotations-from-xml.cs) -- Embed video annotations from xml +- [`embed-videos-from-xml-into-pdf.cs`](./embed-videos-from-xml-into-pdf.cs) -- Embed videos from xml into pdf +- [`encrypt-pdf-from-xml-aes256.cs`](./encrypt-pdf-from-xml-aes256.cs) -- Encrypt pdf from xml aes256 +- [`encrypt-pdf-from-xml-drm.cs`](./encrypt-pdf-from-xml-drm.cs) -- Encrypt pdf from xml drm +- [`encrypt-pdf-from-xml.cs`](./encrypt-pdf-from-xml.cs) -- Encrypt pdf from xml +- [`encrypt-pdf-from-xml__v2.cs`](./encrypt-pdf-from-xml__v2.cs) -- Encrypt pdf from xml v2 +- [`encrypt-xml-derived-pdf-with-custom-permissions.cs`](./encrypt-xml-derived-pdf-with-custom-permissions.cs) -- Encrypt xml derived pdf with custom permissions +- [`export-pdf-pages-high-resolution-png.cs`](./export-pdf-pages-high-resolution-png.cs) -- Export pdf pages high resolution png +- [`export-pdf-pages-to-bmp-images.cs`](./export-pdf-pages-to-bmp-images.cs) -- Export pdf pages to bmp images +- [`export-pdf-pages-to-png-with-custom-resolution.cs`](./export-pdf-pages-to-png-with-custom-resolution.cs) -- Export pdf pages to png with custom resolution +- [`extract-base64-images-from-xml-to-pdf.cs`](./extract-base64-images-from-xml-to-pdf.cs) -- Extract base64 images from xml to pdf +- [`extract-pdf-xml-representation.cs`](./extract-pdf-xml-representation.cs) -- Extract pdf xml representation +- [`extract-plain-text-from-pdf.cs`](./extract-plain-text-from-pdf.cs) -- Extract plain text from pdf +- [`generate-barcode-from-xml-to-pdf.cs`](./generate-barcode-from-xml-to-pdf.cs) -- Generate barcode from xml to pdf +- [`generate-html-preview-from-xml.cs`](./generate-html-preview-from-xml.cs) -- Generate html preview from xml +- [`generate-pdf-from-xml-custom-page-size.cs`](./generate-pdf-from-xml-custom-page-size.cs) -- Generate pdf from xml custom page size +- [`generate-pdf-from-xml-fullscreen.cs`](./generate-pdf-from-xml-fullscreen.cs) -- Generate pdf from xml fullscreen +- [`generate-pdf-from-xml-pdf-1-7.cs`](./generate-pdf-from-xml-pdf-1-7.cs) -- Generate pdf from xml pdf 1 7 +- [`generate-pdf-from-xml-using-memorystream.cs`](./generate-pdf-from-xml-using-memorystream.cs) -- Generate pdf from xml using memorystream +- [`generate-pdf-from-xml-using-xslt-config.cs`](./generate-pdf-from-xml-using-xslt-config.cs) -- Generate pdf from xml using xslt config +- [`generate-pdf-from-xml-with-xsl.cs`](./generate-pdf-from-xml-with-xsl.cs) -- Generate pdf from xml with xsl +- [`generate-pdf-from-xsl-fo-and-xml.cs`](./generate-pdf-from-xsl-fo-and-xml.cs) -- Generate pdf from xsl fo and xml +- [`generate-pdf-from-xsl-fo-with-optional-xslt.cs`](./generate-pdf-from-xsl-fo-with-optional-xslt.cs) -- Generate pdf from xsl fo with optional xslt +- [`generate-pdf-from-xsl-fo.cs`](./generate-pdf-from-xsl-fo.cs) -- Generate pdf from xsl fo +- [`generate-pdf-fullscreen-viewer-mode.cs`](./generate-pdf-fullscreen-viewer-mode.cs) -- Generate pdf fullscreen viewer mode +- [`generate-pdf-table-from-xml.cs`](./generate-pdf-table-from-xml.cs) -- Generate pdf table from xml +- [`generate-pdf-thumbnail-from-xml.cs`](./generate-pdf-thumbnail-from-xml.cs) -- Generate pdf thumbnail from xml +- [`generate-pdf-with-retry-logic.cs`](./generate-pdf-with-retry-logic.cs) -- Generate pdf with retry logic +- [`handle-malformed-xml-pdf-conversion.cs`](./handle-malformed-xml-pdf-conversion.cs) -- Handle malformed xml pdf conversion +- [`handle-xslfo-parsing-errors-during-pdf-generation.cs`](./handle-xslfo-parsing-errors-during-pdf-generation.cs) -- Handle xslfo parsing errors during pdf generation +- [`handle-xslfo-parsing-errors-pdf-generation.cs`](./handle-xslfo-parsing-errors-pdf-generation.cs) -- Handle xslfo parsing errors pdf generation +- [`insert-automatic-page-numbers-pdf-xslt.cs`](./insert-automatic-page-numbers-pdf-xslt.cs) -- Insert automatic page numbers pdf xslt +- [`insert-conditional-page-breaks-based-on-xml-length.cs`](./insert-conditional-page-breaks-based-on-xml-length.cs) -- Insert conditional page breaks based on xml length +- [`insert-conditional-page-breaks-based-on-xml-text-length.cs`](./insert-conditional-page-breaks-based-on-xml-text-length.cs) -- Insert conditional page breaks based on xml text length +- [`insert-dynamic-headers-from-xml.cs`](./insert-dynamic-headers-from-xml.cs) -- Insert dynamic headers from xml +- [`insert-dynamic-page-headers-from-xml.cs`](./insert-dynamic-page-headers-from-xml.cs) -- Insert dynamic page headers from xml +- [`insert-footnotes-from-xml.cs`](./insert-footnotes-from-xml.cs) -- Insert footnotes from xml +- [`insert-footnotes-into-pdf-from-xml.cs`](./insert-footnotes-into-pdf-from-xml.cs) -- Insert footnotes into pdf from xml +- [`merge-multiple-xml-pdfs.cs`](./merge-multiple-xml-pdfs.cs) -- Merge multiple xml pdfs +- [`merge-multiple-xml-to-pdf-documents.cs`](./merge-multiple-xml-to-pdf-documents.cs) -- Merge multiple xml to pdf documents +- [`paginate-xml-to-multiple-pdfs.cs`](./paginate-xml-to-multiple-pdfs.cs) -- Paginate xml to multiple pdfs +- [`pdf-generation-with-retry-logic.cs`](./pdf-generation-with-retry-logic.cs) -- Pdf generation with retry logic +- [`populate-pdf-form-from-xml.cs`](./populate-pdf-form-from-xml.cs) -- Populate pdf form from xml +- [`preserve-cdata-to-pdf.cs`](./preserve-cdata-to-pdf.cs) -- Preserve cdata to pdf +- [`profile-batch-xml-to-pdf-conversion.cs`](./profile-batch-xml-to-pdf-conversion.cs) -- Profile batch xml to pdf conversion +- [`register-aspose-pdf-generation-di.cs`](./register-aspose-pdf-generation-di.cs) -- Register aspose pdf generation di +- [`register-pdfoutputgenerator-di.cs`](./register-pdfoutputgenerator-di.cs) -- Register pdfoutputgenerator di +- [`render-cdata-html-to-pdf.cs`](./render-cdata-html-to-pdf.cs) -- Render cdata html to pdf +- [`render-embedded-svg-from-xml-to-pdf.cs`](./render-embedded-svg-from-xml-to-pdf.cs) -- Render embedded svg from xml to pdf +- [`render-html-cdata-to-pdf.cs`](./render-html-cdata-to-pdf.cs) -- Render html cdata to pdf +- [`render-svg-from-xml-to-pdf.cs`](./render-svg-from-xml-to-pdf.cs) -- Render svg from xml to pdf +- [`repeat-table-header-on-each-pdf-page.cs`](./repeat-table-header-on-each-pdf-page.cs) -- Repeat table header on each pdf page +- [`repeat-table-header-rows.cs`](./repeat-table-header-rows.cs) -- Repeat table header rows +- [`set-custom-page-margins-from-xml.cs`](./set-custom-page-margins-from-xml.cs) -- Set custom page margins from xml +- [`set-pdf-page-duration-from-xml.cs`](./set-pdf-page-duration-from-xml.cs) -- Set pdf page duration from xml +- [`set-pdf-page-durations-from-xml.cs`](./set-pdf-page-durations-from-xml.cs) -- Set pdf page durations from xml +- [`set-pdf-page-orientation-from-xml.cs`](./set-pdf-page-orientation-from-xml.cs) -- Set pdf page orientation from xml +- [`set-pdf-page-size-from-xml.cs`](./set-pdf-page-size-from-xml.cs) -- Set pdf page size from xml +- [`set-pdf-page-size-via-xml-processing-instruction.cs`](./set-pdf-page-size-via-xml-processing-instruction.cs) -- Set pdf page size via xml processing instruction +- [`set-pdf-permissions-and-encrypt-xml-pdf.cs`](./set-pdf-permissions-and-encrypt-xml-pdf.cs) -- Set pdf permissions and encrypt xml pdf +- [`set-pdf-viewer-preferences-from-xml.cs`](./set-pdf-viewer-preferences-from-xml.cs) -- Set pdf viewer preferences from xml +- [`set-pdf-viewer-preferences-xml-to-pdf.cs`](./set-pdf-viewer-preferences-xml-to-pdf.cs) -- Set pdf viewer preferences xml to pdf +- [`sign-pdf-from-xml-with-certificate.cs`](./sign-pdf-from-xml-with-certificate.cs) -- Sign pdf from xml with certificate +- [`split-pdf-into-chapters.cs`](./split-pdf-into-chapters.cs) -- Split pdf into chapters +- [`split-xml-pdf-into-multiple-files.cs`](./split-xml-pdf-into-multiple-files.cs) -- Split xml pdf into multiple files +- [`thread-safe-xml-to-pdf-conversion.cs`](./thread-safe-xml-to-pdf-conversion.cs) -- Thread safe xml to pdf conversion +- [`transform-xml-xsl-to-pdf-multiple-namespaces.cs`](./transform-xml-xsl-to-pdf-multiple-namespaces.cs) -- Transform xml xsl to pdf multiple namespaces +- [`validate-pdfa-2b-compliance-xml-to-pdf.cs`](./validate-pdfa-2b-compliance-xml-to-pdf.cs) -- Validate pdfa 2b compliance xml to pdf +- [`validate-xml-xsd-before-pdf-generation.cs`](./validate-xml-xsd-before-pdf-generation.cs) -- Validate xml xsd before pdf generation +- [`validate-xml-xsd-generate-pdf.cs`](./validate-xml-xsd-generate-pdf.cs) -- Validate xml xsd generate pdf +- [`xml-to-pdf-conversion-with-xslt-tests.cs`](./xml-to-pdf-conversion-with-xslt-tests.cs) -- Xml to pdf conversion with xslt tests +- [`xml-to-pdf-validation-with-logging.cs`](./xml-to-pdf-validation-with-logging.cs) -- Xml to pdf validation with logging + +## See Also + +- [`AGENTS.md`](./AGENTS.md) -- category-specific anti-patterns, API surface, and conventions for AI coding agents +- [`../AGENTS.md`](../AGENTS.md) -- repository-wide agent guide +- [`../README.md`](../README.md) -- full category index and project overview +- [Aspose.PDF for .NET docs](https://docs.aspose.com/pdf/net/) + +> Each `.cs` file is a standalone, build-validated console example. Drop into a fresh `dotnet new console` project, add the `Aspose.PDF` NuGet (version above), and run. diff --git a/working-with-xml/index.json b/working-with-xml/index.json index adb7a535c..723b5f96a 100644 --- a/working-with-xml/index.json +++ b/working-with-xml/index.json @@ -1,225 +1,179 @@ { "category": "working-with-xml", "nuget_version": "26.8.0", - "last_updated": "2026-08-20T09:02:42Z", + "last_updated": "2026-09-10T12:45:08Z", "examples": { - "convert-xml-to-pdf": { - "title": "Convert XML to PDF using Aspose.Pdf", - "filename": "convert-xml-to-pdf.cs", - "description": "Demonstrates loading an XML file and converting it to a PDF with Aspose.Pdf's default XSLT transformation.", - "tags": [ - "xml", - "pdf", - "aspose.pdf", - "conversion", - "xslt" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "beginner", - "generated_at": "2026-08-20T09:02:42Z", + "add-automatic-page-numbers-to-pdf": { + "title": "Add Automatic Page Numbers To Pdf", + "filename": "add-automatic-page-numbers-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "create-pdf-from-xsl-fo-memory-stream": { - "title": "Create PDF from XSL‑FO Using a MemoryStream", - "filename": "create-pdf-from-xsl-fo-memory-stream.cs", - "description": "Demonstrates loading XSL‑FO XML from a MemoryStream and generating a PDF document with default settings using Aspose.Pdf.", + "add-background-images-to-pdf-pages": { + "title": "Add Background Images to PDF Pages from XML", + "filename": "add-background-images-to-pdf-pages.cs", + "description": "Demonstrates loading an XML file that maps page numbers to image files and applying those images as background artifacts to the corresponding pages of a PDF using Aspose.Pdf.", "tags": [ "pdf", - "xsl-fo", - "memorystream", - "aspose.pdf", - "csharp" + "background", + "xml", + "branding", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.XslFoLoadOptions", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page", + "Aspose.Pdf.Facades.BackgroundArtifact", + "Aspose.Pdf.Page.Artifacts", + "Aspose.Pdf.Facades.BackgroundArtifact.SetImage" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "convert-xml-to-pdf-with-xslt": { - "title": "Convert XML to PDF with XSLT Transformation", - "filename": "convert-xml-to-pdf-with-xslt.cs", - "description": "Demonstrates loading an XML file, applying an XSLT stylesheet during loading with Aspose.Pdf, and saving the transformed content as a PDF document.", + "add-custom-page-borders-to-pdf": { + "title": "Add Custom Page Borders to PDF Using Graphs", + "filename": "add-custom-page-borders-to-pdf.cs", + "description": "Shows how to draw a rectangular border on each page of a PDF by creating a Graph container, adding a Rectangle shape with GraphInfo, and saving the modified document.", "tags": [ - "xml", - "xslt", "pdf", - "aspose.pdf", - "conversion" + "border", + "graph", + "drawing", + "aspose" ], "apis_used": [ - "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.XmlLoadOptions..ctor", "Aspose.Pdf.Document", - "Aspose.Pdf.Document..ctor", + "Aspose.Pdf.Page", + "Aspose.Pdf.Drawing.Graph", + "Aspose.Pdf.Drawing.Rectangle", + "Aspose.Pdf.Drawing.GraphInfo", + "Aspose.Pdf.Page.Paragraphs.Add", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "validate-xml-xsd-before-pdf-generation": { - "title": "Validate XML against XSD before Generating PDF with Aspose.Pdf", - "filename": "validate-xml-xsd-before-pdf-generation.cs", - "description": "The example validates an XML file against an XSD schema and, if validation succeeds, loads the XML into an Aspose.Pdf Document and saves it as a PDF.", - "tags": [ - "xml-validation", - "xsd", - "pdf-generation", - "aspose-pdf", - "csharp" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.Document..ctor", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T09:02:42Z", + "add-header-footer-to-pdf-from-xml": { + "title": "Add Header Footer To Pdf From Xml", + "filename": "add-header-footer-to-pdf-from-xml.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "set-pdf-page-size-from-xml": { - "title": "Set PDF Page Size from XML", - "filename": "set-pdf-page-size-from-xml.cs", - "description": "Shows how to read page width and height from an XML file and apply those dimensions to every page of a PDF using Aspose.Pdf.", + "add-header-footer-to-pdf-using-xml-templates": { + "title": "Add Header and Footer to PDF Using XML Templates", + "filename": "add-header-footer-to-pdf-using-xml-templates.cs", + "description": "Demonstrates loading header and footer text from XML files, inserting page numbers, and applying them to each page of a PDF using Aspose.Pdf.", "tags": [ "pdf", + "header", + "footer", "xml", - "pagesize", - "aspose-pdf", - "csharp" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Pages", "Aspose.Pdf.Page", - "Aspose.Pdf.Page.SetPageSize", + "Aspose.Pdf.HeaderFooter", + "Aspose.Pdf.Text.TextFragment", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "set-pdf-page-orientation-from-xml": { - "title": "Set PDF Page Orientation from XML", - "filename": "set-pdf-page-orientation-from-xml.cs", - "description": "Loads a PDF, reads an XML layout file, and sets each page's orientation to landscape or portrait based on XML attributes before saving the modified document.", + "add-javascript-actions-to-pdf-from-xml": { + "title": "Add JavaScript Actions to PDF from XML", + "filename": "add-javascript-actions-to-pdf-from-xml.cs", + "description": "Demonstrates loading an XML file into a PDF, adding a document‑level JavaScript alert, creating a text box form field, and attaching a JavaScript validation action to the field.", "tags": [ + "javascript", "pdf", - "orientation", - "xml", - "aspose.pdf", - "page-layout" + "form", + "validation", + "xml" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.PageCollection", - "Aspose.Pdf.PageInfo", - "Aspose.Pdf.PageInfo.IsLandscape", + "Aspose.Pdf.XmlLoadOptions", + "Aspose.Pdf.Forms.TextBoxField", + "Aspose.Pdf.Forms.JavascriptAction", + "Aspose.Pdf.Rectangle", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "set-custom-page-margins-from-xml": { - "title": "Set Custom Page Margins from XML per Section", - "filename": "set-custom-page-margins-from-xml.cs", - "description": "Demonstrates loading margin definitions from an XML file and applying them to specific page ranges in a PDF using Aspose.Pdf.", + "add-page-transitions-to-pdf-from-xml": { + "title": "Add Page Transition Effects to PDF Generated from XML", + "filename": "add-page-transitions-to-pdf-from-xml.cs", + "description": "Loads an XML file into a PDF document using Aspose.Pdf, attaches JavaScript actions to each page to set a fade transition and display duration, and saves the PDF with the applied transitions.", "tags": [ "pdf", - "margins", "xml", - "aspose-pdf", - "page-layout" + "page-transition", + "javascript", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.XmlLoadOptions", "Aspose.Pdf.Page", - "Aspose.Pdf.PageInfo", - "Aspose.Pdf.MarginInfo", + "Aspose.Pdf.Annotations.JavascriptAction", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "insert-automatic-page-numbers-pdf-xslt": { - "title": "Insert Automatic Page Numbers into PDF using XSLT", - "filename": "insert-automatic-page-numbers-pdf-xslt.cs", - "description": "Shows how to load an XML file, apply an XSLT stylesheet with Aspose.Pdf to create a PDF, automatically update pagination (page numbers) across all pages, and save the result.", + "apply-css-from-xml-to-pdf": { + "title": "Apply CSS from XML/XSL to Generate Styled PDF", + "filename": "apply-css-from-xml-to-pdf.cs", + "description": "Demonstrates how to load an XML document with an XSL stylesheet that references external CSS files and convert it to a PDF with the styles applied using Aspose.Pdf.", "tags": [ + "xml", + "xsl", + "css", "pdf", - "xslt", - "pagination", - "aspose", - "csharp" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.BindXml", - "Aspose.Pdf.Document.Pages", - "Aspose.Pdf.PageCollection.UpdatePagination", + "Aspose.Pdf.XmlLoadOptions", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "generate-pdf-table-from-xml": { - "title": "Generate PDF Table from XML Data", - "filename": "generate-pdf-table-from-xml.cs", - "description": "Demonstrates loading tabular data from an XML file into a DataSet and exporting it as a formatted table in a PDF using Aspose.Pdf.", - "tags": [ - "xml", - "pdf", - "table", - "aspose", - "report" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Table", - "Aspose.Pdf.BorderInfo", - "Aspose.Pdf.MarginInfo", - "Aspose.Pdf.Color", - "Aspose.Pdf.Table.ImportDataTable", - "Aspose.Pdf.Document.Save" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T09:02:42Z", + "apply-custom-background-color-to-pdf-pages": { + "title": "Apply Custom Background Color To Pdf Pages", + "filename": "apply-custom-background-color-to-pdf-pages.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "preserve-cdata-to-pdf": { - "title": "Preserve CDATA Sections from XML to PDF", - "filename": "preserve-cdata-to-pdf.cs", - "description": "Shows how to load an XML document, extract all CDATA sections, and render each section as formatted text in a PDF using Aspose.Pdf.", - "tags": [ - "xml", - "cdata", - "pdf", - "aspose", - "text-rendering" - ], - "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.Position", - "Aspose.Pdf.FontRepository.FindFont", - "Aspose.Pdf.Color" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T09:02:42Z", + "apply-custom-colour-scheme-xml-xsl": { + "title": "Apply Custom Colour Scheme Xml Xsl", + "filename": "apply-custom-colour-scheme-xml-xsl.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, "apply-custom-font-to-xml-elements": { @@ -244,585 +198,815 @@ "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "embed-custom-truetype-font-into-pdf": { - "title": "Embed Custom TrueType Font into PDF from XML", - "filename": "embed-custom-truetype-font-into-pdf.cs", - "description": "Demonstrates loading XML into a PDF with Aspose.Pdf, opening a TrueType font, marking it for embedding, and adding text that uses the font so the font is embedded in the saved PDF.", + "apply-section-based-page-margins": { + "title": "Apply Section Based Page Margins", + "filename": "apply-section-based-page-margins.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "apply-section-specific-page-margins": { + "title": "Apply Section-Specific Page Margins Using XML", + "filename": "apply-section-specific-page-margins.cs", + "description": "Shows how to load margin definitions from an XML file and apply different margins to defined page ranges in a PDF document with Aspose.Pdf.", "tags": [ "pdf", - "truetype", - "font-embedding", + "margins", "xml", - "aspose-pdf" + "section", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.FontRepository.OpenFont", - "Aspose.Pdf.Font.IsEmbedded", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.TextState.Font", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.MarginInfo", + "Aspose.Pdf.PageInfo.Margin", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Pages" ], "difficulty": "intermediate", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "apply-css-from-xml-to-pdf": { - "title": "Apply CSS from XML/XSL to Generate Styled PDF", - "filename": "apply-css-from-xml-to-pdf.cs", - "description": "Demonstrates how to load an XML document with an XSL stylesheet that references external CSS files and convert it to a PDF with the styles applied using Aspose.Pdf.", + "apply-xml-color-to-pdf-page-background": { + "title": "Set PDF Page Background Color from XML Value", + "filename": "apply-xml-color-to-pdf-page-background.cs", + "description": "Loads a PDF, parses an XML color string (hex or rgb) into an Aspose.Pdf.Color, and applies that color as the background for each page before saving the modified document.", "tags": [ - "xml", - "xsl", - "css", "pdf", - "aspose" + "background", + "color", + "xml", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Color.Parse", + "Aspose.Pdf.Page", + "Aspose.Pdf.Page.Background" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "convert-styled-html-to-pdf-with-custom-colors": { - "title": "Convert Styled HTML to PDF with Custom Colors", - "filename": "convert-styled-html-to-pdf-with-custom-colors.cs", - "description": "Demonstrates how to embed inline CSS in an HTML file and use Aspose.Pdf to convert it into a PDF that preserves the custom color styling.", + "batch-convert-xml-to-pdf": { + "title": "Batch Convert XML Files to PDF", + "filename": "batch-convert-xml-to-pdf.cs", + "description": "Shows how to load all XML files in a folder and convert each one to a PDF document using Aspose.Pdf's XmlLoadOptions.", "tags": [ - "html-to-pdf", - "css", - "color", - "aspose-pdf", - "document-conversion" + "xml", + "pdf", + "batch", + "conversion", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.HtmlLoadOptions", + "Aspose.Pdf.XmlLoadOptions", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "apply-xml-color-to-pdf-page-background": { - "title": "Set PDF Page Background Color from XML Value", - "filename": "apply-xml-color-to-pdf-page-background.cs", - "description": "Loads a PDF, parses an XML color string (hex or rgb) into an Aspose.Pdf.Color, and applies that color as the background for each page before saving the modified document.", + "batch-xml-to-pdf-conversion-profiling": { + "title": "Batch XML to PDF Conversion with Performance Profiling", + "filename": "batch-xml-to-pdf-conversion-profiling.cs", + "description": "Demonstrates how to convert multiple XML files to PDF using Aspose.Pdf while measuring load, save, and overall processing times. The example aggregates timing data and suggests parallelization if needed.", "tags": [ - "pdf", - "background", - "color", "xml", - "aspose-pdf" + "pdf", + "conversion", + "profiling", + "batch" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.XmlLoadOptions", "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Color.Parse", - "Aspose.Pdf.Page", - "Aspose.Pdf.Page.Background" + "Aspose.Pdf.LoadOptions", + "Aspose.Pdf.SaveOptions" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "add-header-footer-to-pdf-using-xml-templates": { - "title": "Add Header and Footer to PDF Using XML Templates", - "filename": "add-header-footer-to-pdf-using-xml-templates.cs", - "description": "Demonstrates loading header and footer text from XML files, inserting page numbers, and applying them to each page of a PDF using Aspose.Pdf.", + "compress-pdf-flate-after-xml-conversion": { + "title": "Compress Pdf Flate After Xml Conversion", + "filename": "compress-pdf-flate-after-xml-conversion.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "compress-pdf-streams-using-aspose-pdf": { + "title": "Compress PDF Streams Using Aspose.Pdf Optimization", + "filename": "compress-pdf-streams-using-aspose-pdf.cs", + "description": "Shows how to load a PDF (e.g., generated from XML), apply resource optimization to compress streams and remove unused objects, and save the reduced‑size PDF.", "tags": [ - "pdf", - "header", - "footer", - "xml", - "aspose" + "pdf compression", + "optimization", + "aspose.pdf", + "csharp", + "xml" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.HeaderFooter", - "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Optimization.OptimizationOptions", + "Aspose.Pdf.Document.OptimizeResources", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "add-custom-page-borders-to-pdf": { - "title": "Add Custom Page Borders to PDF Using Graphs", - "filename": "add-custom-page-borders-to-pdf.cs", - "description": "Shows how to draw a rectangular border on each page of a PDF by creating a Graph container, adding a Rectangle shape with GraphInfo, and saving the modified document.", + "compress-pdf-text-objects-from-xml": { + "title": "Compress PDF Text Objects from XML", + "filename": "compress-pdf-text-objects-from-xml.cs", + "description": "Demonstrates converting an XML file to a PDF with Aspose.Pdf and applying stream compression to the PDF text objects using optimization options.", "tags": [ "pdf", - "border", - "graph", - "drawing", + "xml", + "compression", + "optimization", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Drawing.Graph", - "Aspose.Pdf.Drawing.Rectangle", - "Aspose.Pdf.Drawing.GraphInfo", - "Aspose.Pdf.Page.Paragraphs.Add", + "Aspose.Pdf.XmlLoadOptions", + "Aspose.Pdf.Optimization.OptimizationOptions", + "Aspose.Pdf.Document.OptimizeResources", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "add-background-images-to-pdf-pages": { - "title": "Add Background Images to PDF Pages from XML", - "filename": "add-background-images-to-pdf-pages.cs", - "description": "Demonstrates loading an XML file that maps page numbers to image files and applying those images as background artifacts to the corresponding pages of a PDF using Aspose.Pdf.", + "compress-pdf-text-streams-flate-xml": { + "title": "Compress PDF Text Streams with Flate via XML Conversion", + "filename": "compress-pdf-text-streams-flate-xml.cs", + "description": "The example converts a PDF to XML, reloads it, applies Flate compression to all objects (including text streams) using Aspose.Pdf optimization, and saves the reduced‑size PDF.", "tags": [ "pdf", - "background", + "compression", + "flate", "xml", - "branding", - "aspose" + "optimization" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Facades.BackgroundArtifact", - "Aspose.Pdf.Page.Artifacts", - "Aspose.Pdf.Facades.BackgroundArtifact.SetImage" + "Aspose.Pdf.XmlSaveOptions", + "Aspose.Pdf.XmlLoadOptions", + "Aspose.Pdf.Optimization.OptimizationOptions", + "Aspose.Pdf.Document.OptimizeResources" ], "difficulty": "intermediate", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "insert-dynamic-page-headers-from-xml": { - "title": "Insert Dynamic Page Headers from XML into PDF", - "filename": "insert-dynamic-page-headers-from-xml.cs", - "description": "Demonstrates loading a PDF, reading per‑page header text from an XML file, and adding those headers to each page using Aspose.Pdf TextStamp objects.", + "concurrent-xml-to-pdf-conversion": { + "title": "Concurrent XML to PDF Conversion with Aspose.Pdf", + "filename": "concurrent-xml-to-pdf-conversion.cs", + "description": "Demonstrates how to safely convert multiple XML files to PDF in parallel using Aspose.Pdf's XmlLoadOptions and a separate Document instance per thread.", "tags": [ - "pdf", - "header", "xml", + "pdf", + "concurrency", "aspose-pdf", - "textstamp" + "parallel" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextStamp", - "Aspose.Pdf.Text.TextState", - "Aspose.Pdf.FontRepository", - "Aspose.Pdf.Color" + "Aspose.Pdf.XmlLoadOptions", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "insert-footnotes-from-xml": { - "title": "Insert Footnotes into PDF from XML", - "filename": "insert-footnotes-from-xml.cs", - "description": "Demonstrates loading footnote definitions from an XML file and adding them as footnotes to a PDF page using Aspose.Pdf.", + "convert-pdf-pages-to-high-resolution-png-thumbnails": { + "title": "Convert Pdf Pages To High Resolution Png Thumbnails", + "filename": "convert-pdf-pages-to-high-resolution-png-thumbnails.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-pdf-pages-to-png-thumbnails": { + "title": "Convert PDF Pages to High-Resolution PNG Thumbnails", + "filename": "convert-pdf-pages-to-png-thumbnails.cs", + "description": "Demonstrates how to load a PDF with Aspose.Pdf, set a high DPI resolution, and render each page as a PNG image for thumbnail creation.", "tags": [ "pdf", - "footnote", - "xml", - "aspose-pdf", + "png", + "thumbnail", + "aspose", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Text.Note", - "Aspose.Pdf.Text.Position", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.Devices.PngDevice", + "Aspose.Pdf.Devices.PngDevice.Process", + "Aspose.Pdf.Document.Pages" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "insert-conditional-page-breaks-based-on-xml-text-length": { - "title": "Insert Conditional Page Breaks in PDF Based on XML Text Length", - "filename": "insert-conditional-page-breaks-based-on-xml-text-length.cs", - "description": "Shows how to load an XML file into a PDF, evaluate the text length of each page, and insert a blank page when the length exceeds a specified threshold.", + "convert-styled-html-to-pdf-with-custom-colors": { + "title": "Convert Styled HTML to PDF with Custom Colors", + "filename": "convert-styled-html-to-pdf-with-custom-colors.cs", + "description": "Demonstrates how to embed inline CSS in an HTML file and use Aspose.Pdf to convert it into a PDF that preserves the custom color styling.", "tags": [ - "pdf", - "xml", - "page-break", - "text-length", - "aspose-pdf" + "html-to-pdf", + "css", + "color", + "aspose-pdf", + "document-conversion" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.Text.TextAbsorber", - "Aspose.Pdf.Page", - "Aspose.Pdf.Document.Pages.Insert", + "Aspose.Pdf.HtmlLoadOptions", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "create-pdf-toc-from-xml": { - "title": "Create PDF Table of Contents from XML Headings", - "filename": "create-pdf-toc-from-xml.cs", - "description": "Shows how to build a hierarchical Table of Contents in a PDF by reading heading data from an XML file and using Aspose.Pdf's tagged content API.", + "convert-xml-multiple-namespaces-to-pdf": { + "title": "Convert Xml Multiple Namespaces To Pdf", + "filename": "convert-xml-multiple-namespaces-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-xml-to-html-preview": { + "title": "Convert Xml To Html Preview", + "filename": "convert-xml-to-html-preview.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-xml-to-pdf-version-1-7": { + "title": "Convert Xml To Pdf Version 1 7", + "filename": "convert-xml-to-pdf-version-1-7.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "convert-xml-to-pdf-with-logging": { + "title": "Convert XML Files to PDF with Detailed Logging", + "filename": "convert-xml-to-pdf-with-logging.cs", + "description": "Reads XML files from a directory, converts each to a PDF using Aspose.Pdf, and records detailed processing steps and errors in a log file.", "tags": [ - "pdf", - "toc", "xml", - "tagged-content", + "pdf", + "conversion", + "logging", "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Tagged.ITaggedContent", - "Aspose.Pdf.Tagged.TOCElement", - "Aspose.Pdf.Tagged.TOCIElement", - "Aspose.Pdf.Page", - "Aspose.Pdf.Tagged.TocInfo" + "Aspose.Pdf.XmlLoadOptions", + "Aspose.Pdf.PdfException", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document..ctor" ], "difficulty": "intermediate", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "create-hierarchical-pdf-outline-from-xml": { - "title": "Create Hierarchical PDF Outline from XML", - "filename": "create-hierarchical-pdf-outline-from-xml.cs", - "description": "Shows how to load an XML file and generate a PDF with a nested bookmark outline that mirrors the XML element hierarchy using Aspose.Pdf.", + "convert-xml-to-pdf-with-xslt": { + "title": "Convert XML to PDF with XSLT Transformation", + "filename": "convert-xml-to-pdf-with-xslt.cs", + "description": "Demonstrates loading an XML file, applying an XSLT stylesheet during loading with Aspose.Pdf, and saving the transformed content as a PDF document.", "tags": [ - "pdf", - "outline", - "bookmarks", "xml", - "aspose" + "xslt", + "pdf", + "aspose.pdf", + "conversion" ], "apis_used": [ + "Aspose.Pdf.XmlLoadOptions", + "Aspose.Pdf.XmlLoadOptions..ctor", "Aspose.Pdf.Document", - "Aspose.Pdf.OutlineItemCollection", - "Aspose.Pdf.Annotations.XYZExplicitDestination", - "Aspose.Pdf.Document.Pages.Add", + "Aspose.Pdf.Document..ctor", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "create-pdf-outlines-from-xml-section-titles": { - "title": "Create PDF Outlines from XML Section Titles", - "filename": "create-pdf-outlines-from-xml-section-titles.cs", - "description": "Reads section titles from an XML file, generates a PDF page for each title, and adds outline (bookmark) entries that link to the corresponding pages.", + "convert-xml-to-pdf": { + "title": "Convert XML to PDF using Aspose.Pdf", + "filename": "convert-xml-to-pdf.cs", + "description": "Demonstrates loading an XML file and converting it to a PDF with Aspose.Pdf's default XSLT transformation.", "tags": [ + "xml", "pdf", - "outline", - "bookmark", - "xml", - "aspose-pdf" + "aspose.pdf", + "conversion", + "xslt" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Annotations.XYZExplicitDestination", - "Aspose.Pdf.OutlineItemCollection" + "Aspose.Pdf.XmlLoadOptions", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "create-pdf-outline-from-xml": { - "title": "Create PDF Outline Hierarchy from XML Nesting", - "filename": "create-pdf-outline-from-xml.cs", - "description": "Demonstrates loading an XML file with Aspose.Pdf, then generating a PDF outline whose hierarchy mirrors the XML element nesting using recursive outline creation.", + "convert-xml-to-pdfa-2b-and-validate": { + "title": "Convert XML to PDF/A‑2b and Validate Compliance", + "filename": "convert-xml-to-pdfa-2b-and-validate.cs", + "description": "Shows how to load an XML file, convert it to PDF/A‑2b format, save the PDF, and validate the output for PDF/A‑2b compliance using Aspose.Pdf.", "tags": [ - "pdf", - "outline", "xml", - "navigation", - "aspose" + "pdfa-2b", + "conversion", + "validation", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.OutlineItemCollection", - "Aspose.Pdf.Document.Outlines", - "Aspose.Pdf.OutlineItemCollection.Title" + "Aspose.Pdf.PdfFormat", + "Aspose.Pdf.ConvertErrorAction", + "Aspose.Pdf.Document.Convert", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Validate" ], "difficulty": "intermediate", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "add-page-transitions-to-pdf-from-xml": { - "title": "Add Page Transition Effects to PDF Generated from XML", - "filename": "add-page-transitions-to-pdf-from-xml.cs", - "description": "Loads an XML file into a PDF document using Aspose.Pdf, attaches JavaScript actions to each page to set a fade transition and display duration, and saves the PDF with the applied transitions.", + "create-barcodes-pdf-from-xml": { + "title": "Create Barcodes in PDF from XML Fields", + "filename": "create-barcodes-pdf-from-xml.cs", + "description": "Shows how to load an XML file as a PDF, read barcode field definitions, generate Code128 barcodes with Aspose.Pdf, and place them on the PDF pages.", "tags": [ + "barcode", "pdf", "xml", - "page-transition", - "javascript", - "aspose-pdf" + "aspose", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.XmlLoadOptions", "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.JavascriptAction", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Forms.BarcodeField", + "Aspose.Pdf.Color" ], "difficulty": "intermediate", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "set-pdf-page-duration-from-xml": { - "title": "Set PDF Page Transition Duration from XML", - "filename": "set-pdf-page-duration-from-xml.cs", - "description": "Demonstrates loading an XML file that defines per‑page display durations, applying those durations to an Aspose.Pdf document, and saving the updated PDF.", + "create-hierarchical-pdf-outline-from-xml": { + "title": "Create Hierarchical PDF Outline from XML", + "filename": "create-hierarchical-pdf-outline-from-xml.cs", + "description": "Shows how to load an XML file and generate a PDF with a nested bookmark outline that mirrors the XML element hierarchy using Aspose.Pdf.", "tags": [ "pdf", + "outline", + "bookmarks", "xml", - "page-duration", - "aspose", - "csharp" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.PageCollection", - "Aspose.Pdf.Page.Duration", + "Aspose.Pdf.OutlineItemCollection", + "Aspose.Pdf.Annotations.XYZExplicitDestination", + "Aspose.Pdf.Document.Pages.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "generate-pdf-from-xml-fullscreen": { - "title": "Generate PDF from XML with Full‑Screen Viewer Mode", - "filename": "generate-pdf-from-xml-fullscreen.cs", - "description": "Demonstrates loading an XML file into an Aspose.Pdf Document, configuring the viewer to start in full‑screen mode, and saving the result as a PDF.", + "create-pdf-bookmarks-from-xml": { + "title": "Create Pdf Bookmarks From Xml", + "filename": "create-pdf-bookmarks-from-xml.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-pdf-form-fields-from-xml": { + "title": "Create Pdf Form Fields From Xml", + "filename": "create-pdf-form-fields-from-xml.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-pdf-from-xsl-fo-memory-stream": { + "title": "Create PDF from XSL‑FO Using a MemoryStream", + "filename": "create-pdf-from-xsl-fo-memory-stream.cs", + "description": "Demonstrates loading XSL‑FO XML from a MemoryStream and generating a PDF document with default settings using Aspose.Pdf.", "tags": [ "pdf", - "fullscreen", - "xml", - "aspose", - "viewer-mode" + "xsl-fo", + "memorystream", + "aspose.pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.Document.PageMode", - "Aspose.Pdf.Document.NonFullScreenPageMode", - "Aspose.Pdf.Document.FitWindow", + "Aspose.Pdf.XslFoLoadOptions", "Aspose.Pdf.Document.Save" ], "difficulty": "beginner", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "set-pdf-viewer-preferences-xml-to-pdf": { - "title": "Set PDF Viewer Preferences When Converting XML to PDF", - "filename": "set-pdf-viewer-preferences-xml-to-pdf.cs", - "description": "Demonstrates loading an XML file with Aspose.Pdf, configuring viewer preferences such as FitWindow and PageMode, and saving the output as a PDF.", + "create-pdf-outline-from-xml": { + "title": "Create PDF Outline Hierarchy from XML Nesting", + "filename": "create-pdf-outline-from-xml.cs", + "description": "Demonstrates loading an XML file with Aspose.Pdf, then generating a PDF outline whose hierarchy mirrors the XML element nesting using recursive outline creation.", "tags": [ "pdf", - "viewer-preferences", + "outline", "xml", - "aspose-pdf", - "fit-window" + "navigation", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.Document.FitWindow", - "Aspose.Pdf.Document.PageMode", - "Aspose.Pdf.PageMode", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.OutlineItemCollection", + "Aspose.Pdf.Document.Outlines", + "Aspose.Pdf.OutlineItemCollection.Title" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "generate-pdf-from-xml-pdf-1-7": { - "title": "Generate PDF from XML with PDF version 1.7", - "filename": "generate-pdf-from-xml-pdf-1-7.cs", - "description": "Demonstrates loading an XML file into an Aspose.Pdf Document, converting it to PDF version 1.7, and saving the resulting PDF.", + "create-pdf-outlines-from-xml-section-titles": { + "title": "Create PDF Outlines from XML Section Titles", + "filename": "create-pdf-outlines-from-xml-section-titles.cs", + "description": "Reads section titles from an XML file, generates a PDF page for each title, and adds outline (bookmark) entries that link to the corresponding pages.", "tags": [ - "xml", "pdf", - "conversion", - "aspose-pdf", - "pdf-version" + "outline", + "bookmark", + "xml", + "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.XmlLoadOptions", "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Convert", - "Aspose.Pdf.PdfFormat", - "Aspose.Pdf.ConvertErrorAction" + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Annotations.XYZExplicitDestination", + "Aspose.Pdf.OutlineItemCollection" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "set-pdf-permissions-and-encrypt-xml-pdf": { - "title": "Set PDF Permissions and Encrypt XML‑derived PDF", - "filename": "set-pdf-permissions-and-encrypt-xml-pdf.cs", - "description": "Demonstrates loading an XML file into an Aspose.Pdf Document, applying AES‑256 encryption, and restricting printing and content extraction by setting custom permissions.", + "create-pdf-toc-from-xml-headings": { + "title": "Create Pdf Toc From Xml Headings", + "filename": "create-pdf-toc-from-xml-headings.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "create-pdf-toc-from-xml": { + "title": "Create PDF Table of Contents from XML Headings", + "filename": "create-pdf-toc-from-xml.cs", + "description": "Shows how to build a hierarchical Table of Contents in a PDF by reading heading data from an XML file and using Aspose.Pdf's tagged content API.", "tags": [ "pdf", - "encryption", - "permissions", + "toc", "xml", - "aspose.pdf" + "tagged-content", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Tagged.ITaggedContent", + "Aspose.Pdf.Tagged.TOCElement", + "Aspose.Pdf.Tagged.TOCIElement", + "Aspose.Pdf.Page", + "Aspose.Pdf.Tagged.TocInfo" ], "difficulty": "intermediate", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "encrypt-pdf-from-xml": { - "title": "Encrypt PDF from XML with Password Protection", - "filename": "encrypt-pdf-from-xml.cs", - "description": "Demonstrates loading an XML file, converting it to a PDF, and applying password protection using AES‑256 encryption with specific permissions via Aspose.Pdf.", + "create-pdf-xfa-form-from-xml": { + "title": "Create PDF XFA Form Fields from XML and Set Default Values", + "filename": "create-pdf-xfa-form-from-xml.cs", + "description": "Shows how to load or create a PDF, assign an XFA form definition from an XML file, set default field values using XPath, and save the populated PDF.", "tags": [ - "pdf-encryption", - "xml-to-pdf", - "password-protection", - "aes256", - "permissions" + "pdf", + "xfa", + "xml", + "form-fields", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Document.Form", + "Aspose.Pdf.Forms.Form.AssignXfa", + "Aspose.Pdf.PageCollection.Add", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "encrypt-pdf-from-xml__v2": { - "title": "Encrypt PDF Generated from XML", - "filename": "encrypt-pdf-from-xml__v2.cs", - "description": "Demonstrates loading XML content into a PDF using Aspose.Pdf, applying AES‑256 encryption with specific permissions, and saving the secured document.", + "create-png-thumbnail-from-xml": { + "title": "Create PNG Thumbnail of First PDF Page from XML", + "filename": "create-png-thumbnail-from-xml.cs", + "description": "The example loads an XML file, converts it to a PDF using Aspose.Pdf, and generates a PNG thumbnail of the first page. The thumbnail is saved to disk as an image file.", "tags": [ "pdf", - "encryption", + "thumbnail", "xml", - "aspose.pdf", - "permissions" + "aspose-pdf", + "image" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.BindXml", - "Aspose.Pdf.Document.Encrypt", - "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Permissions" + "Aspose.Pdf.XmlLoadOptions", + "Aspose.Pdf.Page", + "Aspose.Pdf.Devices.ThumbnailDevice", + "Aspose.Pdf.Devices.ThumbnailDevice.Process" ], "difficulty": "intermediate", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "compress-pdf-streams-using-aspose-pdf": { - "title": "Compress PDF Streams Using Aspose.Pdf Optimization", - "filename": "compress-pdf-streams-using-aspose-pdf.cs", - "description": "Shows how to load a PDF (e.g., generated from XML), apply resource optimization to compress streams and remove unused objects, and save the reduced‑size PDF.", + "decode-base64-images-xml-to-pdf": { + "title": "Decode Base64 Images Xml To Pdf", + "filename": "decode-base64-images-xml-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "downsample-images-from-xml": { + "title": "Downsample Images from XML to PDF using Aspose.Pdf", + "filename": "downsample-images-from-xml.cs", + "description": "Shows how to load an XML file, convert it to a PDF, and down‑sample high‑resolution images by configuring Aspose.Pdf optimization options.", "tags": [ - "pdf compression", - "optimization", - "aspose.pdf", - "csharp", - "xml" + "xml", + "image-downsampling", + "pdf-optimization", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Document.BindXml", "Aspose.Pdf.Optimization.OptimizationOptions", + "Aspose.Pdf.Optimization.OptimizationOptions.MaxResoultion", "Aspose.Pdf.Document.OptimizeResources", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "compress-pdf-text-streams-flate-xml": { - "title": "Compress PDF Text Streams with Flate via XML Conversion", - "filename": "compress-pdf-text-streams-flate-xml.cs", - "description": "The example converts a PDF to XML, reloads it, applies Flate compression to all objects (including text streams) using Aspose.Pdf optimization, and saves the reduced‑size PDF.", + "embed-3d-models-from-xml": { + "title": "Embed 3D Models from XML into PDF as Annotations", + "filename": "embed-3d-models-from-xml.cs", + "description": "Loads an XML file that lists 3D model files and their placement, then embeds each model into the specified PDF page as an interactive 3D annotation using Aspose.Pdf.", "tags": [ "pdf", - "compression", - "flate", + "3d", "xml", - "optimization" + "annotation", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.XmlSaveOptions", - "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.Optimization.OptimizationOptions", - "Aspose.Pdf.Document.OptimizeResources" + "Aspose.Pdf.Page", + "Aspose.Pdf.Annotations.PDF3DContent", + "Aspose.Pdf.Annotations.PDF3DArtwork", + "Aspose.Pdf.Annotations.PDF3DAnnotation", + "Aspose.Pdf.Rectangle" ], "difficulty": "intermediate", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "compress-pdf-text-objects-from-xml": { - "title": "Compress PDF Text Objects from XML", - "filename": "compress-pdf-text-objects-from-xml.cs", - "description": "Demonstrates converting an XML file to a PDF with Aspose.Pdf and applying stream compression to the PDF text objects using optimization options.", + "embed-audio-annotations-from-xml": { + "title": "Embed Audio Annotations from XML into PDF", + "filename": "embed-audio-annotations-from-xml.cs", + "description": "Demonstrates loading a PDF, parsing an XML file that references audio files, and adding SoundAnnotation objects to the specified pages and locations.", "tags": [ "pdf", + "audio", + "annotation", "xml", - "compression", - "optimization", "aspose" ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.SoundAnnotation", + "Aspose.Pdf.Annotations.AnnotationCollection.Add" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T09:02:42Z", + "status": "verified" + }, + "embed-custom-truetype-font-into-pdf": { + "title": "Embed Custom TrueType Font into PDF from XML", + "filename": "embed-custom-truetype-font-into-pdf.cs", + "description": "Demonstrates loading XML into a PDF with Aspose.Pdf, opening a TrueType font, marking it for embedding, and adding text that uses the font so the font is embedded in the saved PDF.", + "tags": [ + "pdf", + "truetype", + "font-embedding", + "xml", + "aspose-pdf" + ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.Optimization.OptimizationOptions", - "Aspose.Pdf.Document.OptimizeResources", + "Aspose.Pdf.FontRepository.OpenFont", + "Aspose.Pdf.Font.IsEmbedded", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.TextState.Font", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "downsample-images-from-xml": { - "title": "Downsample Images from XML to PDF using Aspose.Pdf", - "filename": "downsample-images-from-xml.cs", - "description": "Shows how to load an XML file, convert it to a PDF, and down‑sample high‑resolution images by configuring Aspose.Pdf optimization options.", + "embed-custom-ttf-font-into-pdf-from-xml": { + "title": "Embed Custom Ttf Font Into Pdf From Xml", + "filename": "embed-custom-ttf-font-into-pdf-from-xml.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "embed-javascript-actions-in-pdf-from-xml": { + "title": "Embed Javascript Actions In Pdf From Xml", + "filename": "embed-javascript-actions-in-pdf-from-xml.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "embed-video-annotations-from-xml": { + "title": "Embed Video Annotations From Xml", + "filename": "embed-video-annotations-from-xml.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "embed-videos-from-xml-into-pdf": { + "title": "Embed Videos from XML into PDF as Rich Media Annotations", + "filename": "embed-videos-from-xml-into-pdf.cs", + "description": "Demonstrates how to read video references from an XML file and add them as RichMedia video annotations to specific pages of a PDF using Aspose.Pdf.", "tags": [ + "pdf", + "video", "xml", - "image-downsampling", - "pdf-optimization", - "aspose-pdf", - "csharp" + "annotation", + "richmedia" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.BindXml", - "Aspose.Pdf.Optimization.OptimizationOptions", - "Aspose.Pdf.Optimization.OptimizationOptions.MaxResoultion", - "Aspose.Pdf.Document.OptimizeResources", + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Annotations.RichMediaAnnotation", + "Aspose.Pdf.Annotations.RichMediaAnnotation.ContentType" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T09:02:42Z", + "status": "verified" + }, + "encrypt-pdf-from-xml-aes256": { + "title": "Encrypt PDF from XML with AES‑256", + "filename": "encrypt-pdf-from-xml-aes256.cs", + "description": "Demonstrates loading an XML file into a PDF document with Aspose.Pdf, applying AES‑256 encryption, setting user and owner passwords and permissions, and saving the protected PDF.", + "tags": [ + "pdf-encryption", + "xml-to-pdf", + "aes256", + "permissions", + "aspose-pdf" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.XmlLoadOptions", + "Aspose.Pdf.Permissions", + "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Document.Save" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T09:02:42Z", + "status": "verified" + }, + "encrypt-pdf-from-xml-drm": { + "title": "Encrypt Pdf From Xml Drm", + "filename": "encrypt-pdf-from-xml-drm.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "encrypt-pdf-from-xml": { + "title": "Encrypt PDF from XML with Password Protection", + "filename": "encrypt-pdf-from-xml.cs", + "description": "Demonstrates loading an XML file, converting it to a PDF, and applying password protection using AES‑256 encryption with specific permissions via Aspose.Pdf.", + "tags": [ + "pdf-encryption", + "xml-to-pdf", + "password-protection", + "aes256", + "permissions" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.XmlLoadOptions", + "Aspose.Pdf.Permissions", + "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.Encrypt", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, + "encrypt-pdf-from-xml__v2": { + "title": "Encrypt PDF Generated from XML", + "filename": "encrypt-pdf-from-xml__v2.cs", + "description": "Demonstrates loading XML content into a PDF using Aspose.Pdf, applying AES‑256 encryption with specific permissions, and saving the secured document.", + "tags": [ + "pdf", + "encryption", + "xml", + "aspose.pdf", + "permissions" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.BindXml", + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Permissions" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T09:02:42Z", + "status": "verified" + }, + "encrypt-xml-derived-pdf-with-custom-permissions": { + "title": "Encrypt Xml Derived Pdf With Custom Permissions", + "filename": "encrypt-xml-derived-pdf-with-custom-permissions.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "export-pdf-pages-high-resolution-png": { "title": "Export PDF Pages as High-Resolution PNG Images from XML", "filename": "export-pdf-pages-high-resolution-png.cs", @@ -846,6 +1030,38 @@ "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, + "export-pdf-pages-to-bmp-images": { + "title": "Export PDF Pages from XML to BMP Images", + "filename": "export-pdf-pages-to-bmp-images.cs", + "description": "Demonstrates how to bind an XML file to an Aspose.Pdf Document, generate a PDF, and export each PDF page as a separate BMP image file.", + "tags": [ + "pdf", + "xml", + "image", + "aspose", + "bmp" + ], + "apis_used": [ + "Aspose.Pdf.Document", + "Aspose.Pdf.Document.BindXml", + "Aspose.Pdf.Devices.Resolution", + "Aspose.Pdf.Devices.BmpDevice", + "Aspose.Pdf.Devices.BmpDevice.Process" + ], + "difficulty": "intermediate", + "generated_at": "2026-08-20T09:02:42Z", + "status": "verified" + }, + "export-pdf-pages-to-png-with-custom-resolution": { + "title": "Export Pdf Pages To Png With Custom Resolution", + "filename": "export-pdf-pages-to-png-with-custom-resolution.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "extract-base64-images-from-xml-to-pdf": { "title": "Extract Base64 Images from XML and Embed in PDF", "filename": "extract-base64-images-from-xml-to-pdf.cs", @@ -868,315 +1084,445 @@ "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "render-svg-from-xml-to-pdf": { - "title": "Render SVG Elements from XML into PDF as Vector Graphics", - "filename": "render-svg-from-xml-to-pdf.cs", - "description": "Loads an XML file, extracts each node, and embeds it on a separate PDF page as a vector graphic using Aspose.Pdf.", + "extract-pdf-xml-representation": { + "title": "Extract PDF Internal XML Representation", + "filename": "extract-pdf-xml-representation.cs", + "description": "Loads a PDF file using Aspose.Pdf and saves its internal XML representation to a separate file for analysis or validation.", "tags": [ - "svg", "pdf", - "aspose-pdf", "xml", - "vector-graphics" + "export", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Page.AddImage", - "Aspose.Pdf.PageInfo" + "Aspose.Pdf.Document.SaveXml" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "render-html-cdata-to-pdf": { - "title": "Render HTML CDATA Sections to PDF", - "filename": "render-html-cdata-to-pdf.cs", - "description": "Shows how to load an XML file, extract HTML fragments stored in CDATA sections, and render those fragments into a PDF document using Aspose.Pdf.", + "extract-plain-text-from-pdf": { + "title": "Extract Plain Text from PDF for Indexing", + "filename": "extract-plain-text-from-pdf.cs", + "description": "Demonstrates loading a PDF generated from XML and extracting its plain text using Aspose.Pdf's TextAbsorber, then saving the result for indexing purposes.", "tags": [ - "xml", - "cdata", - "html", "pdf", - "aspose" + "text-extraction", + "aspose", + "csharp", + "indexing" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Text.HtmlFragment", - "Aspose.Pdf.Page.Paragraphs.Add", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Text.TextExtractionOptions", + "Aspose.Pdf.Text.TextAbsorber", + "Aspose.Pdf.PageCollection.Accept", + "Aspose.Pdf.Text.TextAbsorber.Text" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "create-barcodes-pdf-from-xml": { - "title": "Create Barcodes in PDF from XML Fields", - "filename": "create-barcodes-pdf-from-xml.cs", - "description": "Shows how to load an XML file as a PDF, read barcode field definitions, generate Code128 barcodes with Aspose.Pdf, and place them on the PDF pages.", + "generate-barcode-from-xml-to-pdf": { + "title": "Generate Barcode From Xml To Pdf", + "filename": "generate-barcode-from-xml-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "generate-html-preview-from-xml": { + "title": "Generate HTML preview from XML using Aspose.Pdf", + "filename": "generate-html-preview-from-xml.cs", + "description": "Loads an XML file that defines a PDF, creates the PDF in memory, and saves it as an HTML file for web preview using Aspose.Pdf.", "tags": [ - "barcode", - "pdf", "xml", - "aspose", - "csharp" + "html", + "pdf", + "aspose-pdf", + "preview" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Forms.BarcodeField", - "Aspose.Pdf.Color" + "Aspose.Pdf.HtmlSaveOptions", + "Aspose.Pdf.HtmlSaveOptions.PartsEmbeddingModes", + "Aspose.Pdf.HtmlSaveOptions.RasterImagesSavingModes", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "embed-videos-from-xml-into-pdf": { - "title": "Embed Videos from XML into PDF as Rich Media Annotations", - "filename": "embed-videos-from-xml-into-pdf.cs", - "description": "Demonstrates how to read video references from an XML file and add them as RichMedia video annotations to specific pages of a PDF using Aspose.Pdf.", + "generate-pdf-from-xml-custom-page-size": { + "title": "Generate Pdf From Xml Custom Page Size", + "filename": "generate-pdf-from-xml-custom-page-size.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "generate-pdf-from-xml-fullscreen": { + "title": "Generate PDF from XML with Full‑Screen Viewer Mode", + "filename": "generate-pdf-from-xml-fullscreen.cs", + "description": "Demonstrates loading an XML file into an Aspose.Pdf Document, configuring the viewer to start in full‑screen mode, and saving the result as a PDF.", "tags": [ "pdf", - "video", + "fullscreen", "xml", - "annotation", - "richmedia" + "aspose", + "viewer-mode" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.RichMediaAnnotation", - "Aspose.Pdf.Annotations.RichMediaAnnotation.ContentType" + "Aspose.Pdf.XmlLoadOptions", + "Aspose.Pdf.Document.PageMode", + "Aspose.Pdf.Document.NonFullScreenPageMode", + "Aspose.Pdf.Document.FitWindow", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "embed-audio-annotations-from-xml": { - "title": "Embed Audio Annotations from XML into PDF", - "filename": "embed-audio-annotations-from-xml.cs", - "description": "Demonstrates loading a PDF, parsing an XML file that references audio files, and adding SoundAnnotation objects to the specified pages and locations.", + "generate-pdf-from-xml-pdf-1-7": { + "title": "Generate PDF from XML with PDF version 1.7", + "filename": "generate-pdf-from-xml-pdf-1-7.cs", + "description": "Demonstrates loading an XML file into an Aspose.Pdf Document, converting it to PDF version 1.7, and saving the resulting PDF.", "tags": [ - "pdf", - "audio", - "annotation", "xml", - "aspose" + "pdf", + "conversion", + "aspose-pdf", + "pdf-version" ], "apis_used": [ + "Aspose.Pdf.XmlLoadOptions", "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Rectangle", - "Aspose.Pdf.Annotations.SoundAnnotation", - "Aspose.Pdf.Annotations.AnnotationCollection.Add" + "Aspose.Pdf.Document.Convert", + "Aspose.Pdf.PdfFormat", + "Aspose.Pdf.ConvertErrorAction" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "embed-3d-models-from-xml": { - "title": "Embed 3D Models from XML into PDF as Annotations", - "filename": "embed-3d-models-from-xml.cs", - "description": "Loads an XML file that lists 3D model files and their placement, then embeds each model into the specified PDF page as an interactive 3D annotation using Aspose.Pdf.", + "generate-pdf-from-xml-using-memorystream": { + "title": "Generate Pdf From Xml Using Memorystream", + "filename": "generate-pdf-from-xml-using-memorystream.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "generate-pdf-from-xml-using-xslt-config": { + "title": "Generate PDF from XML using XSLT Configured via appsettings.json", + "filename": "generate-pdf-from-xml-using-xslt-config.cs", + "description": "Demonstrates loading XML and XSLT file paths from a JSON configuration, applying the XSLT during XML‑to‑PDF conversion with Aspose.Pdf, and saving the resulting PDF.", "tags": [ - "pdf", - "3d", "xml", - "annotation", + "xslt", + "pdf", + "configuration", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Annotations.PDF3DContent", - "Aspose.Pdf.Annotations.PDF3DArtwork", - "Aspose.Pdf.Annotations.PDF3DAnnotation", - "Aspose.Pdf.Rectangle" + "Aspose.Pdf.XmlLoadOptions", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "add-javascript-actions-to-pdf-from-xml": { - "title": "Add JavaScript Actions to PDF from XML", - "filename": "add-javascript-actions-to-pdf-from-xml.cs", - "description": "Demonstrates loading an XML file into a PDF, adding a document‑level JavaScript alert, creating a text box form field, and attaching a JavaScript validation action to the field.", + "generate-pdf-from-xml-with-xsl": { + "title": "Generate Pdf From Xml With Xsl", + "filename": "generate-pdf-from-xml-with-xsl.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "generate-pdf-from-xsl-fo-and-xml": { + "title": "Generate Pdf From Xsl Fo And Xml", + "filename": "generate-pdf-from-xsl-fo-and-xml.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "generate-pdf-from-xsl-fo-with-optional-xslt": { + "title": "Generate Pdf From Xsl Fo With Optional Xslt", + "filename": "generate-pdf-from-xsl-fo-with-optional-xslt.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "generate-pdf-from-xsl-fo": { + "title": "Generate PDF from XSL‑FO using Aspose.Pdf", + "filename": "generate-pdf-from-xsl-fo.cs", + "description": "Demonstrates how to load an XSL‑FO template with Aspose.Pdf and convert it directly into a PDF document.", "tags": [ - "javascript", + "xsl-fo", "pdf", - "form", - "validation", - "xml" + "aspose.pdf", + "csharp", + "document-generation" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.Forms.TextBoxField", - "Aspose.Pdf.Forms.JavascriptAction", - "Aspose.Pdf.Rectangle", + "Aspose.Pdf.XslFoLoadOptions", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "create-pdf-xfa-form-from-xml": { - "title": "Create PDF XFA Form Fields from XML and Set Default Values", - "filename": "create-pdf-xfa-form-from-xml.cs", - "description": "Shows how to load or create a PDF, assign an XFA form definition from an XML file, set default field values using XPath, and save the populated PDF.", + "generate-pdf-fullscreen-viewer-mode": { + "title": "Generate Pdf Fullscreen Viewer Mode", + "filename": "generate-pdf-fullscreen-viewer-mode.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "generate-pdf-table-from-xml": { + "title": "Generate PDF Table from XML Data", + "filename": "generate-pdf-table-from-xml.cs", + "description": "Demonstrates loading tabular data from an XML file into a DataSet and exporting it as a formatted table in a PDF using Aspose.Pdf.", "tags": [ - "pdf", - "xfa", "xml", - "form-fields", - "aspose" + "pdf", + "table", + "aspose", + "report" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Document.Form", - "Aspose.Pdf.Forms.Form.AssignXfa", - "Aspose.Pdf.PageCollection.Add", + "Aspose.Pdf.Page", + "Aspose.Pdf.Table", + "Aspose.Pdf.BorderInfo", + "Aspose.Pdf.MarginInfo", + "Aspose.Pdf.Color", + "Aspose.Pdf.Table.ImportDataTable", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "populate-pdf-form-from-xml": { - "title": "Populate PDF Form Fields from XML Records", - "filename": "populate-pdf-form-from-xml.cs", - "description": "Shows how to read multiple elements from an XML file and fill a PDF form (AcroForm or XFA) for each record, saving a separate PDF per record.", + "generate-pdf-thumbnail-from-xml": { + "title": "Generate Pdf Thumbnail From Xml", + "filename": "generate-pdf-thumbnail-from-xml.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "generate-pdf-with-retry-logic": { + "title": "Generate Pdf With Retry Logic", + "filename": "generate-pdf-with-retry-logic.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "handle-malformed-xml-pdf-conversion": { + "title": "Handle Malformed XML During PDF Conversion with Aspose.Pdf", + "filename": "handle-malformed-xml-pdf-conversion.cs", + "description": "Demonstrates how to use a custom warning handler and load options to abort processing when malformed XML is encountered during PDF conversion, with proper exception handling.", "tags": [ - "pdf", "xml", - "form-filling", - "batch", - "aspnet" + "pdf", + "exception-handling", + "warning-callback", + "aspose-pdf" ], "apis_used": [ + "Aspose.Pdf.XmlLoadOptions", + "Aspose.Pdf.IWarningCallback", + "Aspose.Pdf.ReturnAction", + "Aspose.Pdf.WarningInfo", "Aspose.Pdf.Document", - "Aspose.Pdf.Forms.Form", - "Aspose.Pdf.Forms.Field", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Forms.Form.AssignXfa" + "Aspose.Pdf.PdfException" ], "difficulty": "intermediate", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "extract-plain-text-from-pdf": { - "title": "Extract Plain Text from PDF for Indexing", - "filename": "extract-plain-text-from-pdf.cs", - "description": "Demonstrates loading a PDF generated from XML and extracting its plain text using Aspose.Pdf's TextAbsorber, then saving the result for indexing purposes.", + "handle-xslfo-parsing-errors-during-pdf-generation": { + "title": "Handle Xslfo Parsing Errors During Pdf Generation", + "filename": "handle-xslfo-parsing-errors-during-pdf-generation.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "handle-xslfo-parsing-errors-pdf-generation": { + "title": "Handle XSL‑FO Parsing Errors with Custom Warning Callback during PDF Generation", + "filename": "handle-xslfo-parsing-errors-pdf-generation.cs", + "description": "Demonstrates how to configure Aspose.Pdf to invoke a custom warning handler for XSL‑FO parsing errors and generate a PDF with user‑friendly error messages.", "tags": [ - "pdf", - "text-extraction", - "aspose", - "csharp", - "indexing" + "xml", + "parsing-errors", + "pdf-generation", + "warning-callback", + "aspose-pdf" ], "apis_used": [ + "Aspose.Pdf.XslFoLoadOptions", + "Aspose.Pdf.IWarningCallback", + "Aspose.Pdf.ReturnAction", "Aspose.Pdf.Document", - "Aspose.Pdf.Text.TextExtractionOptions", - "Aspose.Pdf.Text.TextAbsorber", - "Aspose.Pdf.PageCollection.Accept", - "Aspose.Pdf.Text.TextAbsorber.Text" + "Aspose.Pdf.PdfException" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "export-pdf-pages-to-bmp-images": { - "title": "Export PDF Pages from XML to BMP Images", - "filename": "export-pdf-pages-to-bmp-images.cs", - "description": "Demonstrates how to bind an XML file to an Aspose.Pdf Document, generate a PDF, and export each PDF page as a separate BMP image file.", + "insert-automatic-page-numbers-pdf-xslt": { + "title": "Insert Automatic Page Numbers into PDF using XSLT", + "filename": "insert-automatic-page-numbers-pdf-xslt.cs", + "description": "Shows how to load an XML file, apply an XSLT stylesheet with Aspose.Pdf to create a PDF, automatically update pagination (page numbers) across all pages, and save the result.", "tags": [ "pdf", - "xml", - "image", + "xslt", + "pagination", "aspose", - "bmp" + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.Document.BindXml", - "Aspose.Pdf.Devices.Resolution", - "Aspose.Pdf.Devices.BmpDevice", - "Aspose.Pdf.Devices.BmpDevice.Process" + "Aspose.Pdf.Document.Pages", + "Aspose.Pdf.PageCollection.UpdatePagination", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "convert-pdf-pages-to-png-thumbnails": { - "title": "Convert PDF Pages to High-Resolution PNG Thumbnails", - "filename": "convert-pdf-pages-to-png-thumbnails.cs", - "description": "Demonstrates how to load a PDF with Aspose.Pdf, set a high DPI resolution, and render each page as a PNG image for thumbnail creation.", + "insert-conditional-page-breaks-based-on-xml-length": { + "title": "Insert Conditional Page Breaks Based On Xml Length", + "filename": "insert-conditional-page-breaks-based-on-xml-length.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "insert-conditional-page-breaks-based-on-xml-text-length": { + "title": "Insert Conditional Page Breaks in PDF Based on XML Text Length", + "filename": "insert-conditional-page-breaks-based-on-xml-text-length.cs", + "description": "Shows how to load an XML file into a PDF, evaluate the text length of each page, and insert a blank page when the length exceeds a specified threshold.", "tags": [ "pdf", - "png", - "thumbnail", - "aspose", - "csharp" + "xml", + "page-break", + "text-length", + "aspose-pdf" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Devices.Resolution", - "Aspose.Pdf.Devices.PngDevice", - "Aspose.Pdf.Devices.PngDevice.Process", - "Aspose.Pdf.Document.Pages" + "Aspose.Pdf.XmlLoadOptions", + "Aspose.Pdf.Text.TextAbsorber", + "Aspose.Pdf.Page", + "Aspose.Pdf.Document.Pages.Insert", + "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "create-png-thumbnail-from-xml": { - "title": "Create PNG Thumbnail of First PDF Page from XML", - "filename": "create-png-thumbnail-from-xml.cs", - "description": "The example loads an XML file, converts it to a PDF using Aspose.Pdf, and generates a PNG thumbnail of the first page. The thumbnail is saved to disk as an image file.", + "insert-dynamic-headers-from-xml": { + "title": "Insert Dynamic Headers From Xml", + "filename": "insert-dynamic-headers-from-xml.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "insert-dynamic-page-headers-from-xml": { + "title": "Insert Dynamic Page Headers from XML into PDF", + "filename": "insert-dynamic-page-headers-from-xml.cs", + "description": "Demonstrates loading a PDF, reading per‑page header text from an XML file, and adding those headers to each page using Aspose.Pdf TextStamp objects.", "tags": [ "pdf", - "thumbnail", + "header", "xml", "aspose-pdf", - "image" + "textstamp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.Page", - "Aspose.Pdf.Devices.ThumbnailDevice", - "Aspose.Pdf.Devices.ThumbnailDevice.Process" + "Aspose.Pdf.Text.TextStamp", + "Aspose.Pdf.Text.TextState", + "Aspose.Pdf.FontRepository", + "Aspose.Pdf.Color" ], "difficulty": "intermediate", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "batch-convert-xml-to-pdf": { - "title": "Batch Convert XML Files to PDF", - "filename": "batch-convert-xml-to-pdf.cs", - "description": "Shows how to load all XML files in a folder and convert each one to a PDF document using Aspose.Pdf's XmlLoadOptions.", + "insert-footnotes-from-xml": { + "title": "Insert Footnotes into PDF from XML", + "filename": "insert-footnotes-from-xml.cs", + "description": "Demonstrates loading footnote definitions from an XML file and adding them as footnotes to a PDF page using Aspose.Pdf.", "tags": [ - "xml", "pdf", - "batch", - "conversion", - "aspose-pdf" + "footnote", + "xml", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.XmlLoadOptions", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.Note", + "Aspose.Pdf.Text.Position", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, + "insert-footnotes-into-pdf-from-xml": { + "title": "Insert Footnotes Into Pdf From Xml", + "filename": "insert-footnotes-into-pdf-from-xml.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, "merge-multiple-xml-pdfs": { "title": "Merge PDFs Created from XML Files", "filename": "merge-multiple-xml-pdfs.cs", @@ -1198,397 +1544,541 @@ "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "split-xml-pdf-into-multiple-files": { - "title": "Split Large XML‑Converted PDF into Multiple Files with Continuous Page Numbers", - "filename": "split-xml-pdf-into-multiple-files.cs", - "description": "Demonstrates loading an XML file as a PDF with Aspose.Pdf, splitting the resulting document into smaller PDFs of a configurable page count, and adding sequential page numbers that continue across all parts.", + "merge-multiple-xml-to-pdf-documents": { + "title": "Merge Multiple Xml To Pdf Documents", + "filename": "merge-multiple-xml-to-pdf-documents.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "paginate-xml-to-multiple-pdfs": { + "title": "Paginate Xml To Multiple Pdfs", + "filename": "paginate-xml-to-multiple-pdfs.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "pdf-generation-with-retry-logic": { + "title": "PDF Generation with Retry Logic for Transient I/O Errors", + "filename": "pdf-generation-with-retry-logic.cs", + "description": "Demonstrates creating a simple PDF using Aspose.Pdf and implementing retry logic to handle transient I/O or PDF exceptions during the save operation.", "tags": [ - "xml", "pdf", - "splitting", - "pagination", - "aspose" + "retry", + "aspose-pdf", + "io-errors", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.Text.PageNumberStamp", - "Aspose.Pdf.FontRepository.FindFont", - "Aspose.Pdf.Page.AddStamp", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Position", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "repeat-table-header-rows": { - "title": "Repeat Table Header Rows on Each PDF Page", - "filename": "repeat-table-header-rows.cs", - "description": "Demonstrates how to create a PDF table with header rows that automatically repeat on every page when the table spans multiple pages using Aspose.Pdf.", + "populate-pdf-form-from-xml": { + "title": "Populate PDF Form Fields from XML Records", + "filename": "populate-pdf-form-from-xml.cs", + "description": "Shows how to read multiple elements from an XML file and fill a PDF form (AcroForm or XFA) for each record, saving a separate PDF per record.", "tags": [ - "table", - "header", "pdf", - "repeating-rows", - "aspose-pdf" + "xml", + "form-filling", + "batch", + "aspnet" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.Page", - "Aspose.Pdf.Table", - "Aspose.Pdf.Row", - "Aspose.Pdf.Cell", - "Aspose.Pdf.Text.TextState" + "Aspose.Pdf.Forms.Form", + "Aspose.Pdf.Forms.Field", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Forms.Form.AssignXfa" ], "difficulty": "intermediate", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "convert-xml-to-pdfa-2b-and-validate": { - "title": "Convert XML to PDF/A‑2b and Validate Compliance", - "filename": "convert-xml-to-pdfa-2b-and-validate.cs", - "description": "Shows how to load an XML file, convert it to PDF/A‑2b format, save the PDF, and validate the output for PDF/A‑2b compliance using Aspose.Pdf.", + "preserve-cdata-to-pdf": { + "title": "Preserve CDATA Sections from XML to PDF", + "filename": "preserve-cdata-to-pdf.cs", + "description": "Shows how to load an XML document, extract all CDATA sections, and render each section as formatted text in a PDF using Aspose.Pdf.", "tags": [ "xml", - "pdfa-2b", - "conversion", - "validation", - "aspose-pdf" + "cdata", + "pdf", + "aspose", + "text-rendering" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.PdfFormat", - "Aspose.Pdf.ConvertErrorAction", - "Aspose.Pdf.Document.Convert", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Validate" + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.TextFragment", + "Aspose.Pdf.Text.Position", + "Aspose.Pdf.FontRepository.FindFont", + "Aspose.Pdf.Color" ], "difficulty": "intermediate", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "extract-pdf-xml-representation": { - "title": "Extract PDF Internal XML Representation", - "filename": "extract-pdf-xml-representation.cs", - "description": "Loads a PDF file using Aspose.Pdf and saves its internal XML representation to a separate file for analysis or validation.", + "profile-batch-xml-to-pdf-conversion": { + "title": "Profile Batch Xml To Pdf Conversion", + "filename": "profile-batch-xml-to-pdf-conversion.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "register-aspose-pdf-generation-di": { + "title": "Register Aspose PDF Generation Service with Dependency Injection", + "filename": "register-aspose-pdf-generation-di.cs", + "description": "Demonstrates how to add Aspose.Pdf Comparison's PdfOutputGenerator to an IServiceCollection as a singleton and resolve it via a simple service provider.", "tags": [ - "pdf", - "xml", - "export", + "dependency-injection", "aspose-pdf", + "pdf-generation", + "singleton", "csharp" ], "apis_used": [ - "Aspose.Pdf.Document", - "Aspose.Pdf.Document.SaveXml" + "PdfOutputGenerator", + "OutputTextStyle", + "PageInfo" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "generate-html-preview-from-xml": { - "title": "Generate HTML preview from XML using Aspose.Pdf", - "filename": "generate-html-preview-from-xml.cs", - "description": "Loads an XML file that defines a PDF, creates the PDF in memory, and saves it as an HTML file for web preview using Aspose.Pdf.", + "register-pdfoutputgenerator-di": { + "title": "Register Pdfoutputgenerator Di", + "filename": "register-pdfoutputgenerator-di.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "render-cdata-html-to-pdf": { + "title": "Render Cdata Html To Pdf", + "filename": "render-cdata-html-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "render-embedded-svg-from-xml-to-pdf": { + "title": "Render Embedded Svg From Xml To Pdf", + "filename": "render-embedded-svg-from-xml-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "render-html-cdata-to-pdf": { + "title": "Render HTML CDATA Sections to PDF", + "filename": "render-html-cdata-to-pdf.cs", + "description": "Shows how to load an XML file, extract HTML fragments stored in CDATA sections, and render those fragments into a PDF document using Aspose.Pdf.", "tags": [ "xml", + "cdata", "html", "pdf", - "aspose-pdf", - "preview" + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.HtmlSaveOptions", - "Aspose.Pdf.HtmlSaveOptions.PartsEmbeddingModes", - "Aspose.Pdf.HtmlSaveOptions.RasterImagesSavingModes", + "Aspose.Pdf.Page", + "Aspose.Pdf.Text.HtmlFragment", + "Aspose.Pdf.Page.Paragraphs.Add", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "convert-xml-to-pdf-with-logging": { - "title": "Convert XML Files to PDF with Detailed Logging", - "filename": "convert-xml-to-pdf-with-logging.cs", - "description": "Reads XML files from a directory, converts each to a PDF using Aspose.Pdf, and records detailed processing steps and errors in a log file.", + "render-svg-from-xml-to-pdf": { + "title": "Render SVG Elements from XML into PDF as Vector Graphics", + "filename": "render-svg-from-xml-to-pdf.cs", + "description": "Loads an XML file, extracts each node, and embeds it on a separate PDF page as a vector graphic using Aspose.Pdf.", "tags": [ - "xml", + "svg", "pdf", - "conversion", - "logging", - "aspose-pdf" + "aspose-pdf", + "xml", + "vector-graphics" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.PdfException", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document..ctor" + "Aspose.Pdf.Page", + "Aspose.Pdf.Rectangle", + "Aspose.Pdf.Page.AddImage", + "Aspose.Pdf.PageInfo" ], "difficulty": "intermediate", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "handle-malformed-xml-pdf-conversion": { - "title": "Handle Malformed XML During PDF Conversion with Aspose.Pdf", - "filename": "handle-malformed-xml-pdf-conversion.cs", - "description": "Demonstrates how to use a custom warning handler and load options to abort processing when malformed XML is encountered during PDF conversion, with proper exception handling.", - "tags": [ - "xml", - "pdf", - "exception-handling", - "warning-callback", - "aspose-pdf" - ], - "apis_used": [ - "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.IWarningCallback", - "Aspose.Pdf.ReturnAction", - "Aspose.Pdf.WarningInfo", - "Aspose.Pdf.Document", - "Aspose.Pdf.PdfException" - ], - "difficulty": "intermediate", - "generated_at": "2026-08-20T09:02:42Z", + "repeat-table-header-on-each-pdf-page": { + "title": "Repeat Table Header On Each Pdf Page", + "filename": "repeat-table-header-on-each-pdf-page.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", "status": "verified" }, - "handle-xslfo-parsing-errors-pdf-generation": { - "title": "Handle XSL‑FO Parsing Errors with Custom Warning Callback during PDF Generation", - "filename": "handle-xslfo-parsing-errors-pdf-generation.cs", - "description": "Demonstrates how to configure Aspose.Pdf to invoke a custom warning handler for XSL‑FO parsing errors and generate a PDF with user‑friendly error messages.", + "repeat-table-header-rows": { + "title": "Repeat Table Header Rows on Each PDF Page", + "filename": "repeat-table-header-rows.cs", + "description": "Demonstrates how to create a PDF table with header rows that automatically repeat on every page when the table spans multiple pages using Aspose.Pdf.", "tags": [ - "xml", - "parsing-errors", - "pdf-generation", - "warning-callback", + "table", + "header", + "pdf", + "repeating-rows", "aspose-pdf" ], "apis_used": [ - "Aspose.Pdf.XslFoLoadOptions", - "Aspose.Pdf.IWarningCallback", - "Aspose.Pdf.ReturnAction", "Aspose.Pdf.Document", - "Aspose.Pdf.PdfException" + "Aspose.Pdf.Page", + "Aspose.Pdf.Table", + "Aspose.Pdf.Row", + "Aspose.Pdf.Cell", + "Aspose.Pdf.Text.TextState" ], "difficulty": "intermediate", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "concurrent-xml-to-pdf-conversion": { - "title": "Concurrent XML to PDF Conversion with Aspose.Pdf", - "filename": "concurrent-xml-to-pdf-conversion.cs", - "description": "Demonstrates how to safely convert multiple XML files to PDF in parallel using Aspose.Pdf's XmlLoadOptions and a separate Document instance per thread.", + "set-custom-page-margins-from-xml": { + "title": "Set Custom Page Margins from XML per Section", + "filename": "set-custom-page-margins-from-xml.cs", + "description": "Demonstrates loading margin definitions from an XML file and applying them to specific page ranges in a PDF using Aspose.Pdf.", "tags": [ - "xml", "pdf", - "concurrency", + "margins", + "xml", "aspose-pdf", - "parallel" + "page-layout" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.XmlLoadOptions", + "Aspose.Pdf.Page", + "Aspose.Pdf.PageInfo", + "Aspose.Pdf.MarginInfo", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "register-aspose-pdf-generation-di": { - "title": "Register Aspose PDF Generation Service with Dependency Injection", - "filename": "register-aspose-pdf-generation-di.cs", - "description": "Demonstrates how to add Aspose.Pdf Comparison's PdfOutputGenerator to an IServiceCollection as a singleton and resolve it via a simple service provider.", + "set-pdf-page-duration-from-xml": { + "title": "Set PDF Page Transition Duration from XML", + "filename": "set-pdf-page-duration-from-xml.cs", + "description": "Demonstrates loading an XML file that defines per‑page display durations, applying those durations to an Aspose.Pdf document, and saving the updated PDF.", "tags": [ - "dependency-injection", - "aspose-pdf", - "pdf-generation", - "singleton", + "pdf", + "xml", + "page-duration", + "aspose", "csharp" ], "apis_used": [ - "PdfOutputGenerator", - "OutputTextStyle", - "PageInfo" + "Aspose.Pdf.Document", + "Aspose.Pdf.XmlLoadOptions", + "Aspose.Pdf.PageCollection", + "Aspose.Pdf.Page.Duration", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "batch-xml-to-pdf-conversion-profiling": { - "title": "Batch XML to PDF Conversion with Performance Profiling", - "filename": "batch-xml-to-pdf-conversion-profiling.cs", - "description": "Demonstrates how to convert multiple XML files to PDF using Aspose.Pdf while measuring load, save, and overall processing times. The example aggregates timing data and suggests parallelization if needed.", + "set-pdf-page-durations-from-xml": { + "title": "Set Pdf Page Durations From Xml", + "filename": "set-pdf-page-durations-from-xml.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-pdf-page-orientation-from-xml": { + "title": "Set PDF Page Orientation from XML", + "filename": "set-pdf-page-orientation-from-xml.cs", + "description": "Loads a PDF, reads an XML layout file, and sets each page's orientation to landscape or portrait based on XML attributes before saving the modified document.", "tags": [ - "xml", "pdf", - "conversion", - "profiling", - "batch" + "orientation", + "xml", + "aspose.pdf", + "page-layout" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.LoadOptions", - "Aspose.Pdf.SaveOptions" + "Aspose.Pdf.PageCollection", + "Aspose.Pdf.PageInfo", + "Aspose.Pdf.PageInfo.IsLandscape", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "pdf-generation-with-retry-logic": { - "title": "PDF Generation with Retry Logic for Transient I/O Errors", - "filename": "pdf-generation-with-retry-logic.cs", - "description": "Demonstrates creating a simple PDF using Aspose.Pdf and implementing retry logic to handle transient I/O or PDF exceptions during the save operation.", + "set-pdf-page-size-from-xml": { + "title": "Set PDF Page Size from XML", + "filename": "set-pdf-page-size-from-xml.cs", + "description": "Shows how to read page width and height from an XML file and apply those dimensions to every page of a PDF using Aspose.Pdf.", "tags": [ "pdf", - "retry", + "xml", + "pagesize", "aspose-pdf", - "io-errors", "csharp" ], "apis_used": [ "Aspose.Pdf.Document", + "Aspose.Pdf.Document.Pages", "Aspose.Pdf.Page", - "Aspose.Pdf.Text.TextFragment", - "Aspose.Pdf.Position", + "Aspose.Pdf.Page.SetPageSize", "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "generate-pdf-from-xml-using-xslt-config": { - "title": "Generate PDF from XML using XSLT Configured via appsettings.json", - "filename": "generate-pdf-from-xml-using-xslt-config.cs", - "description": "Demonstrates loading XML and XSLT file paths from a JSON configuration, applying the XSLT during XML‑to‑PDF conversion with Aspose.Pdf, and saving the resulting PDF.", + "set-pdf-page-size-via-xml-processing-instruction": { + "title": "Set PDF Page Size via XML Processing Instruction", + "filename": "set-pdf-page-size-via-xml-processing-instruction.cs", + "description": "Demonstrates how to read a custom processing instruction from an XML file to determine page dimensions and apply those dimensions to every page of a PDF generated with Aspose.Pdf.", "tags": [ - "xml", - "xslt", "pdf", - "configuration", + "xml", + "processing-instruction", + "page-size", "aspose" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.Document.Save" + "Aspose.Pdf.Page.SetPageSize", + "Aspose.Pdf.Document.Save", + "Aspose.Pdf.Document.Pages" ], "difficulty": "intermediate", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "transform-xml-xsl-to-pdf-multiple-namespaces": { - "title": "Transform XML with XSLT to PDF Handling Multiple Namespaces", - "filename": "transform-xml-xsl-to-pdf-multiple-namespaces.cs", - "description": "Demonstrates how to apply an XSLT stylesheet to an XML file and generate a PDF with Aspose.Pdf while explicitly loading the XSLT stream to avoid namespace conflicts.", + "set-pdf-permissions-and-encrypt-xml-pdf": { + "title": "Set PDF Permissions and Encrypt XML‑derived PDF", + "filename": "set-pdf-permissions-and-encrypt-xml-pdf.cs", + "description": "Demonstrates loading an XML file into an Aspose.Pdf Document, applying AES‑256 encryption, and restricting printing and content extraction by setting custom permissions.", "tags": [ - "xml", - "xslt", "pdf", - "aspose.pdf", - "namespaces" + "encryption", + "permissions", + "xml", + "aspose.pdf" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.Document..ctor(string, XmlLoadOptions)", - "Aspose.Pdf.XmlLoadOptions..ctor(Stream)", - "Aspose.Pdf.Document.Save(string)" + "Aspose.Pdf.Permissions", + "Aspose.Pdf.CryptoAlgorithm", + "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "set-pdf-page-size-via-xml-processing-instruction": { - "title": "Set PDF Page Size via XML Processing Instruction", - "filename": "set-pdf-page-size-via-xml-processing-instruction.cs", - "description": "Demonstrates how to read a custom processing instruction from an XML file to determine page dimensions and apply those dimensions to every page of a PDF generated with Aspose.Pdf.", + "set-pdf-viewer-preferences-from-xml": { + "title": "Set Pdf Viewer Preferences From Xml", + "filename": "set-pdf-viewer-preferences-from-xml.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "set-pdf-viewer-preferences-xml-to-pdf": { + "title": "Set PDF Viewer Preferences When Converting XML to PDF", + "filename": "set-pdf-viewer-preferences-xml-to-pdf.cs", + "description": "Demonstrates loading an XML file with Aspose.Pdf, configuring viewer preferences such as FitWindow and PageMode, and saving the output as a PDF.", "tags": [ "pdf", + "viewer-preferences", "xml", - "processing-instruction", - "page-size", - "aspose" + "aspose-pdf", + "fit-window" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.Page.SetPageSize", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Pages" + "Aspose.Pdf.Document.FitWindow", + "Aspose.Pdf.Document.PageMode", + "Aspose.Pdf.PageMode", + "Aspose.Pdf.Document.Save" ], - "difficulty": "intermediate", + "difficulty": "beginner", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "generate-pdf-from-xsl-fo": { - "title": "Generate PDF from XSL‑FO using Aspose.Pdf", - "filename": "generate-pdf-from-xsl-fo.cs", - "description": "Demonstrates how to load an XSL‑FO template with Aspose.Pdf and convert it directly into a PDF document.", + "sign-pdf-from-xml-with-certificate": { + "title": "Sign Pdf From Xml With Certificate", + "filename": "sign-pdf-from-xml-with-certificate.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "split-pdf-into-chapters": { + "title": "Split Pdf Into Chapters", + "filename": "split-pdf-into-chapters.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "split-xml-pdf-into-multiple-files": { + "title": "Split Large XML‑Converted PDF into Multiple Files with Continuous Page Numbers", + "filename": "split-xml-pdf-into-multiple-files.cs", + "description": "Demonstrates loading an XML file as a PDF with Aspose.Pdf, splitting the resulting document into smaller PDFs of a configurable page count, and adding sequential page numbers that continue across all parts.", "tags": [ - "xsl-fo", + "xml", "pdf", - "aspose.pdf", - "csharp", - "document-generation" + "splitting", + "pagination", + "aspose" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.XslFoLoadOptions", + "Aspose.Pdf.XmlLoadOptions", + "Aspose.Pdf.Text.PageNumberStamp", + "Aspose.Pdf.FontRepository.FindFont", + "Aspose.Pdf.Page.AddStamp", "Aspose.Pdf.Document.Save" ], - "difficulty": "beginner", + "difficulty": "intermediate", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "apply-section-specific-page-margins": { - "title": "Apply Section-Specific Page Margins Using XML", - "filename": "apply-section-specific-page-margins.cs", - "description": "Shows how to load margin definitions from an XML file and apply different margins to defined page ranges in a PDF document with Aspose.Pdf.", + "thread-safe-xml-to-pdf-conversion": { + "title": "Thread Safe Xml To Pdf Conversion", + "filename": "thread-safe-xml-to-pdf-conversion.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "transform-xml-xsl-to-pdf-multiple-namespaces": { + "title": "Transform XML with XSLT to PDF Handling Multiple Namespaces", + "filename": "transform-xml-xsl-to-pdf-multiple-namespaces.cs", + "description": "Demonstrates how to apply an XSLT stylesheet to an XML file and generate a PDF with Aspose.Pdf while explicitly loading the XSLT stream to avoid namespace conflicts.", "tags": [ - "pdf", - "margins", "xml", - "section", - "aspose" + "xslt", + "pdf", + "aspose.pdf", + "namespaces" ], "apis_used": [ "Aspose.Pdf.Document", - "Aspose.Pdf.MarginInfo", - "Aspose.Pdf.PageInfo.Margin", - "Aspose.Pdf.Document.Save", - "Aspose.Pdf.Document.Pages" + "Aspose.Pdf.XmlLoadOptions", + "Aspose.Pdf.Document..ctor(string, XmlLoadOptions)", + "Aspose.Pdf.XmlLoadOptions..ctor(Stream)", + "Aspose.Pdf.Document.Save(string)" ], "difficulty": "intermediate", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" }, - "encrypt-pdf-from-xml-aes256": { - "title": "Encrypt PDF from XML with AES‑256", - "filename": "encrypt-pdf-from-xml-aes256.cs", - "description": "Demonstrates loading an XML file into a PDF document with Aspose.Pdf, applying AES‑256 encryption, setting user and owner passwords and permissions, and saving the protected PDF.", + "validate-pdfa-2b-compliance-xml-to-pdf": { + "title": "Validate Pdfa 2B Compliance Xml To Pdf", + "filename": "validate-pdfa-2b-compliance-xml-to-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "validate-xml-xsd-before-pdf-generation": { + "title": "Validate XML against XSD before Generating PDF with Aspose.Pdf", + "filename": "validate-xml-xsd-before-pdf-generation.cs", + "description": "The example validates an XML file against an XSD schema and, if validation succeeds, loads the XML into an Aspose.Pdf Document and saves it as a PDF.", "tags": [ - "pdf-encryption", - "xml-to-pdf", - "aes256", - "permissions", - "aspose-pdf" + "xml-validation", + "xsd", + "pdf-generation", + "aspose-pdf", + "csharp" ], "apis_used": [ "Aspose.Pdf.Document", "Aspose.Pdf.XmlLoadOptions", - "Aspose.Pdf.Permissions", - "Aspose.Pdf.CryptoAlgorithm", - "Aspose.Pdf.Document.Encrypt", + "Aspose.Pdf.Document..ctor", "Aspose.Pdf.Document.Save" ], "difficulty": "intermediate", "generated_at": "2026-08-20T09:02:42Z", "status": "verified" + }, + "validate-xml-xsd-generate-pdf": { + "title": "Validate Xml Xsd Generate Pdf", + "filename": "validate-xml-xsd-generate-pdf.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "xml-to-pdf-conversion-with-xslt-tests": { + "title": "Xml To Pdf Conversion With Xslt Tests", + "filename": "xml-to-pdf-conversion-with-xslt-tests.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" + }, + "xml-to-pdf-validation-with-logging": { + "title": "Xml To Pdf Validation With Logging", + "filename": "xml-to-pdf-validation-with-logging.cs", + "description": "", + "tags": [], + "apis_used": [], + "difficulty": "", + "generated_at": "2026-09-10T12:45:08Z", + "status": "verified" } } } \ No newline at end of file