Skip to content

Accessibility and tagged PDFs: 44 verified C# examples for Aspose.PDF for .NET 26.9.0 - #428

Merged
fahadadeel merged 3 commits into
release/26.9.0from
examples/3585b052-accessibility-and-tagged-pdfs
Sep 25, 2026
Merged

fahadadeel merged 3 commits into
release/26.9.0from
examples/3585b052-accessibility-and-tagged-pdfs

Conversation

@agent-aspose-pdf-examples

Copy link
Copy Markdown
Collaborator

accessibility-and-tagged-pdfs

44 code example(s) for the accessibility-and-tagged-pdfs category.
Target: Aspose.PDF for .NET 26.9.0

Examples

# Example Difficulty
1 Enable Automatic Tagging for PDF/UA Conversion beginner
2 Create Tagged PDF with Heading and Language intermediate
3 Set Document Title in Tagged PDF beginner
4 Create Tagged PDF with Table of Contents intermediate
5 Add Paragraph under TOCI with ActualText in Tagged PDF intermediate
6 Add Custom Tag to Paragraph in Tagged PDF beginner
7 Add External Link with Title to Tagged PDF intermediate
8 Create Internal /Link Element in a Tagged PDF intermediate
9 Add Note Element to Paragraph in Tagged PDF intermediate
10 Add Caption to Figure Using Note Element in Tagged PDF intermediate
11 Add ActualText Attribute to Image Figure in Tagged PDF intermediate
12 Set Hidden Pronunciation Text with ActualText on a Span beginner
13 Update Language of a Tagged PDF Paragraph to French intermediate
14 Set Primary Language for Tagged PDF beginner
15 Propagate Language Attribute to All Tagged PDF Elements beginner
16 Add Tagged Table to PDF for Accessibility intermediate
17 Create Tagged Table with Header Cells in PDF intermediate
18 Style Table Cells with Background, Border, and Padding beginner
19 Apply Custom Borders to Table Cells by Row Index intermediate
20 Tag Table Cells with Data Types and Validate PDF/UA Compliance intermediate
21 Create Nested Table Inside Paragraph in Tagged PDF intermediate
22 Create Tagged PDF with Bullet and Numbered Lists intermediate
23 Create a Form Field and Associate It with a Tagged /Form Element intermediate
24 Add Text Box Form Field with Placeholder to PDF beginner
25 Add Page Break Element to Tagged PDF intermediate
26 Update Paragraph ActualText in a Tagged PDF intermediate
27 Replace Existing PDF Note Annotation with Updated Text intermediate
28 Log Tagged PDF Structure Elements intermediate
29 Set Paragraph Title for PDF Accessibility beginner
30 Set Figure Title (Alternative Text) in a Tagged PDF intermediate
31 Check PDF/UA Compliance and Log Result beginner
32 Parse XML Validation Report for Error Summary intermediate
33 Find Images Missing Alt Text in Validation XML beginner
34 Extract Text from a Tagged PDF via Structure Tree Traversal intermediate
35 Export PDF Structure Tree to XML and Generate HTML Report via XSLT intermediate
36 Export PDF Structure Tree to JSON intermediate
37 Export Tagged PDF Structure to JSON intermediate
38 Extract PDF Note Annotations to Text File beginner
39 Extract PDF Links to CSV intermediate
40 Batch Tag PDFs for Accessibility intermediate
41 Batch Auto‑Tag PDFs and Save Tagged Versions intermediate
42 Batch Validate PDFs and Generate XML Logs with Summary CSV intermediate
43 Batch Validate PDFs for PDF/UA Compliance and Show Dashboard intermediate
44 Set Default Language for PDF Structure Elements intermediate

Key APIs Used

Aspose.Pdf.Annotations.Annotation, Aspose.Pdf.Annotations.Border, Aspose.Pdf.Annotations.GoToAction, Aspose.Pdf.Annotations.GoToURIAction, Aspose.Pdf.Annotations.LinkAnnotation, Aspose.Pdf.Annotations.TextAnnotation, Aspose.Pdf.BorderInfo, Aspose.Pdf.Cell, Aspose.Pdf.Color, Aspose.Pdf.Document, Aspose.Pdf.Document.Dispose, Aspose.Pdf.Document.Form, Aspose.Pdf.Document.Pages, Aspose.Pdf.Document.Pages.Accept, Aspose.Pdf.Document.Save, Aspose.Pdf.Document.TaggedContent, Aspose.Pdf.Document.Validate, Aspose.Pdf.Forms.TextBoxField, Aspose.Pdf.ITaggedContent, Aspose.Pdf.LogicalStructure, Aspose.Pdf.LogicalStructure.Element, Aspose.Pdf.LogicalStructure.StructureElement, Aspose.Pdf.LogicalStructure.StructureElement.FindElements, Aspose.Pdf.LogicalStructure.StructureElement.Language, Aspose.Pdf.MarginInfo, Aspose.Pdf.Page, Aspose.Pdf.PdfFormat, Aspose.Pdf.PdfFormat.PDF_UA_1, Aspose.Pdf.Rectangle, Aspose.Pdf.Row
(+48 more)

Tags

Aspose.Pdf GoToAction PDF/UA accessibility acroform actualtext alt-text alternative-text annotation annotations aspdf aspnet aspose aspose-pdf auto-tagging batch batch-validation borders caption csharp

Difficulty Distribution

  • beginner: 12 example(s)
  • intermediate: 32 example(s)

Pipeline Stages

  • Baseline (1st try): 19
  • LLM Fix: 19
  • Regen with KB: 5
  • Final LLM Recovery: 1

Generated by Examples Generator

The generation run for this category writes in "replace" mode, which
rmtree's the category directory before emitting the new batch. Any
example not reproduced by that batch disappears, taking its published
documentation URL with it. Twenty-six files were removed this way,
failing the "URL stability (no .cs deletes)" check.

Restore all 26 from the base branch at their original content, so the
branch now adds 44 new examples without removing anything. Diff against
release/26.9.0 carries zero .cs deletions.

Sidecars follow the restored file set: the per-category index.json gets
back the one restored stem that had metadata on base, and AGENTS.md is
regenerated against the full 70-file listing. Its "Total examples" line
now reads 70 and matches the directory for the first time -- base
claimed 45 while carrying 70 files.

Note: 25 of the restored files had no index.json entry on the base
branch either. That gap predates this branch and is left untouched
rather than filled with synthesised metadata.

🤖 AI-assisted development
The previous commit regenerated AGENTS.md from every .cs file in the
folder, which counted the 25 URL-stability stubs as examples and put
"Total examples: 70" on the page. Stubs are not examples -- they are
empty Main() placeholders that keep an old blob URL returning 200.

Regenerate from real examples only, detected with url_stubs.is_stub_cs.
The count is back to 45 and now agrees with the 45 entries in the
category index.json, which excluded stubs all along.

🤖 AI-assisted development
@fahadadeel
fahadadeel merged commit c93ec33 into release/26.9.0 Sep 25, 2026
2 checks passed
@fahadadeel
fahadadeel deleted the examples/3585b052-accessibility-and-tagged-pdfs branch September 25, 2026 05:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants