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.
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);
}
}
Discover how accessibility features create a PDF/UA standard document with various options.
The Syncfusion PDF .NET library is capable of automatically tagging each PDF element based on the creation order to create accessible PDF.
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.
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.
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.
This feature allows you to extract accessible tags from existing PDF documents.
Convert any Word document to a PDF with accessible tags. The conversion preserves the exact layout and appearance of the Word document.
Convert any Excel spreadsheet to a PDF with accessible tags. It maintains the Excel file’s original structure, formatting, and data layout.
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 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.
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.
Discover valuable resources from our blog and knowledge base on creating accessible PDF documents.
Knowledge base
Explore these resources for comprehensive guides, knowledge base articles, insightful blogs, and ebooks.
Product Updates
Technical Support
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.
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.