We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Syncfusion Feedback

Syncfusion is trusted by the world’s leading companies

Syncfusion Trusted Companies

Overview

The Syncfusion .NET PDF Library provides a feature to create an accessible PDF document compatible with the Web Content Accessibility Guidelines (WCAG) 2.0 (ISO/IEC 40500:2012) and the PDF/UA (ISO 14289-1) standard. An accessible or tagged PDF contains instructions defining the reading order and significance of key elements like figures, images, lists, and tables. This ensures content accessibility for users dependent on assistive technology.

This feature works seamlessly across platforms, including Windows, macOS, Linux, Android, and iOS, through any .NET-based application, such as ASP.NET Core, ASP.NET MVC, Blazor, .NET MAUI, Xamarin, WinForms, WPF, and WinUI.

How to create accessible PDF document in C#

Create PDF document with accessible tags using C#, as demonstrated in the following code.

using Syncfusion.Drawing;
using Syncfusion.Pdf;
using Syncfusion.Pdf.Graphics;

// Create new PDF document
using (PdfDocument document = new PdfDocument())
{
    // Set the document title
    document.DocumentInformation.Title = "PdfTextElement";
    // Create a new page
    PdfPage page = document.Pages.Add();
    // Initialize the structure element with tag type paragraph
    PdfStructureElement paragraphStructure = new PdfStructureElement(PdfTagType.Paragraph);
    // Represents the text that is the exact replacement for PdfTextElement
    paragraphStructure.ActualText = "Simple paragraph element";
    string paragraphText = "Adventure Works Cycles, the fictitious company on which the AdventureWorks sample databases are based, is a large, multinational manufacturing company. The company manufactures and sells metal and composite bicycles to North American, European, and Asian commercial markets. While its base operation is located in Washington with 290 employees, several regional sales teams are located throughout their market base.";
    // Initialize the PDF text element
    PdfTextElement textElement = new PdfTextElement(paragraphText);
    // Adding tag to the text element
    textElement.PdfTag = paragraphStructure;
    // Create font for the text element
    textElement.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12);
    textElement.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93));
    // Draw text element with tag
    textElement.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width, 200));
    using (FileStream outputFile = new FileStream("TaggedPDF.pdf", FileMode.Create))
    {
        // Save the document
        document.Save(outputFile);
    }
}

Key features for PDF accessibility

Discover how accessibility features create a PDF/UA standard document with various options.

Auto Tag in accessible PDF C#.

Auto-tag a PDF document

The Syncfusion PDF .NET library is capable of automatically tagging each PDF element based on the creation order to create accessible PDF.

Reading order in accessible PDF .NET.

Reading order

This feature dictates how content is presented by assistive technologies like screen readers in a PDF. Essentially, the element that appears first is given priority in the reading sequence. You can modify the order of tagged elements in a document using this functionality.

Custom tag in accessible PDF C#.

Custom tag

When creating PDF documents from scratch, Syncfusion PDF Library allows you to apply custom tags to elements, ensuring they meet accessibility standards. This feature gives you control over the tagging process, enabling precise structure and improved user accessibility.

Artifact in accessible PDF C#.

Artifact

In PDFs, artifacts are decorative elements like headers, footers, page numbers, and images, which don’t affect the document’s content. According to PDF/UA, all page content is either part of the logical structure or labeled as an artifact.

Extract accessible tags in .NET PDF.

Extract accessible tags

This feature allows you to extract accessible tags from existing PDF documents.

Convert word to PDF/UA in .NET.

Convert word to PDF/UA

Convert any Word document to a PDF with accessible tags. The conversion preserves the exact layout and appearance of the Word document.

Convert Excel to PDF/UA in .NET.

Convert Excel to PDF/UA

Convert any Excel spreadsheet to a PDF with accessible tags. It maintains the Excel file’s original structure, formatting, and data layout.

Convert PPT to PDF/UA in .NET.

Convert PPT to PDF/UA

Convert any PowerPoint presentation to a PDF with accessible tags. This process ensures that the presentation’s original design, formatting, and content are preserved in PDF format.

Convert HTML to Accessible PDF in .NET.

Convert HTML to Accessible PDF

Convert any HTML document to a PDF file with accessible tags. This retains the original formatting, layout, and visual elements of the HTML content, ensuring accessibility in PDF format.

Maintain Accessibility Tags When Splitting and Merging PDFs in .NET.

Maintain Accessibility Tags When Splitting and Merging PDFs

Ensure that accessibility tags are preserved during the splitting and merging of PDF documents. This functionality guarantees that the accessibility features remain intact, allowing users to navigate and interact with the content effectively.

Explore resources for accessible PDFs

Discover valuable resources from our blog and knowledge base on creating accessible PDF documents.

Create accessible PDF documents using C

Blog

Create Accessible PDF Documents Using C#

Add tags to form fields using C

Documentation

Add tags to form fields using C#

How to add alternative text to images in a tagged PDF using C# and VB.NET

Knowledge base

How to add alternative text to images in a tagged PDF using C# and VB.NET

Syncfusion .NET PDF Library Resources

Explore these resources for comprehensive guides, knowledge base articles, insightful blogs, and ebooks.

Struggling to decide on the right product?

Our comprehensive competitor comparison of PDF framework will guide you to the perfect choice.

tick-mark 20+ Conversions support
tick-mark 50+ interactive demos
tick-mark 1.7M+ downloads
competitive-banner-FT-image

Frequently Asked Questions

An accessible or tagged PDF contains structural instructions defining the reading order and significance of key elements like figures, images, lists, and tables. This ensures content accessibility for users dependent on assistive technology.

Key elements include proper document structure using headings, alternative text for images, logical reading order, and navigational aids like bookmarks and hyperlinks.

Creating accessible PDFs ensures inclusiveness, allowing people with disabilities to access information and services online, promoting equal opportunity, and complying with accessibility regulations.

The PDF/UA standard outlines specific criteria to ensure a PDF is compatible with assistive technology, thereby enabling disabled users to access the document’s information effectively.

Our Customers Love Us

Having an excellent set of tools and a great support team, Syncfusion reduces customers’ development time.
Here are some of their experiences.

Rated by users across the globe

Want to create, view, and edit PDF files in C# or VB.NET?

Start a free 30-day evaluation today!
DOWNLOAD FREE TRIAL

No credit card required.

Mobile Free Evaluation Section

Awards

Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.

Scroll up icon