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. PDF/UA follows specific guidelines, including support for assistive technologies like screen readers. 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.

Get started with IronPDF

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

First Step:
green arrow pointer



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 populate 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 related to Output

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.