How to Export PDF/UA Format Documents in C#

by Chaknith Bin

IronPDF allows you to export PDFs to the PDF/UA standard, ensuring accessibility for individuals with disabilities. By complying with PDF/UA, your PDF documents meet the accessibility requirements set by Section 508 of the Rehabilitation Act.

Beyond accessibility, PDF/UA offers benefits such as text reflow on small screens, improved navigation options, customizable text appearance, enhanced search engine functionality, and efficient text selection and copying.


C# NuGet Library for PDF

Install with NuGet

Install-Package IronPdf
or
Java PDF JAR

Download DLL

Download DLL

Manually install into your project

C# NuGet Library for PDF

Install with NuGet

Install-Package IronPdf
or
Java PDF JAR

Download DLL

Download DLL

Manually install into your project

Start using IronPDF in your project today with a free trial.

First Step:
green arrow pointer

Check out IronPDF on Nuget for quick installation and deployment. With over 8 million downloads, it's transforming PDF with C#.

C# NuGet Library for PDF nuget.org/packages/IronPdf/
Install-Package IronPdf

Consider installing the IronPDF DLL directly. Download and manually install it for your project or GAC form: IronPdf.zip

Manually install into your project

Download DLL

Export PDF/UA Document Example

To export a PDF document in PDF/UA compliance format, you can use the SaveAsPdfUA method. Simply import the PDF document and use this method to export it as a PDF/UA file. You may popluate the naturalLanguages parameter to specify the natural language of the PDf document. Consider the PDF document shown below. You can use the accompanying code to export it as a PDF/UA file.

Input file: "wikipedia.pdf"

Code

:path=/static-assets/pdf/content-code-examples/how-to/pdfua-fromfile.cs
using IronPdf;

// Open PDF File
PdfDocument pdf = PdfDocument.FromFile("wikipedia.pdf");

// Export as PDF/UA compliance PDF
pdf.SaveAsPdfUA("pdf-ua-wikipedia.pdf");
IRON VB CONVERTER ERROR developers@ironsoftware.com
VB   C#

Output

The output file is PDF/UA compliant:

PDF/UA compliant

Output PDF:

Please note
Exporting a newly rendered PDF from an HTML string, file, or web URL is not currently supported.

Chaknith Bin

Software Engineer

Chaknith is the Sherlock Holmes of developers. It first occurred to him he might have a future in software engineering, when he was doing code challenges for fun. His focus is on IronXL and IronBarcode, but he takes pride in helping customers with every product. Chaknith leverages his knowledge from talking directly with customers, to help further improve the products themselves. His anecdotal feedback goes beyond Jira tickets and supports product development, documentation and marketing, to improve customer’s overall experience.When he isn’t in the office, he can be found learning about machine learning, coding and hiking.