โ PDF/UA Full Compliance
Comprehensive example meeting all PDF/UA requirements: figures, tables, links, abbreviations, validation.
C# โ PDF/UA Compliance
doc.Language = "en-US";
doc.Info.Title = "PDF/UA Compliant";
doc.DisplayDocTitle = true;
doc.PdfUaConformance =
PdfUaConformanceLevel.PdfUA1;
var root = doc.EnableTaggedPdf();
// Figure with alt text + BBox (ยง7.3)
var fig = sect.AddChild(StructureType.Figure,
"Bar chart showing Q1-Q4 growth");
fig.BBox = new[] { 72.0, 480.0, 350.0, 640.0 };
page.BeginTaggedContent(fig);
// ... draw chart ...
page.EndTaggedContent();
// Abbreviation with expansion (WCAG 3.1.4)
var abbr = sect.AddChild(StructureType.Span);
abbr.Expansion =
"Web Content Accessibility Guidelines";
page.AddTaggedText(abbr, "WCAG", 215, 425);
// Accessible link
var linkSE = para.AddChild(StructureType.Link);
page.AddTaggedLink(linkSE,
"https://w3.org/WAI/", "Learn about WCAG",
72, 395, 140, 14);
// Validate!
var report = new PdfAccessibilityChecker()
.Check(doc);
// report.IsFullyCompliant == true โ
You should see a dark blue header bar, a bold "PDF/UA Compliance Guide" H1, an introduction paragraph, a "Figure with Alt Text" H2 above a placeholder bar chart (four blue bars of increasing height), an "Abbreviation Expansion" H2 with the word "WCAG" in bold (expansion: "Web Content Accessibility Guidelines"), a blue "Learn more about WCAG" hyperlink, and a centred "Page 1" footer.
File: 16_pdfua_compliance.pdf