---
title: "Converting PDF documents to PDF/UA format | Nutrient Python SDK"
canonical_url: "https://www.nutrient.io/guides/python/conversion/pdf-to-pdf-ua/"
md_url: "https://www.nutrient.io/guides/python/conversion/pdf-to-pdf-ua.md"
last_updated: "2026-05-30T02:20:01.349Z"
description: "Convert PDF documents to PDF/UA format using Nutrient Python SDK."
---

# Converting PDF documents to PDF/UA format

PDF/UA (universal accessibility) is an ISO standard (ISO 14289) that defines requirements for universally accessible PDF documents. It ensures PDFs are fully accessible to users with disabilities, including those using assistive technologies like screen readers.

This sample demonstrates how to convert a standard PDF document to PDF/UA format using Nutrient Python SDK. Compliance is essential for organizations committed to digital inclusion and legal compliance with accessibility regulations such as:

- Americans with Disabilities Act (ADA)

- Section 508

- Web Content Accessibility Guidelines (WCAG)

The conversion process automatically handles document structure tagging, heading hierarchy establishment, reading order optimization, and other enhancements required for full compliance.

## Streamlining document workflows with our Python SDK

Developers can implement this feature by adding a few lines of code to their applications. The SDK integrates PDF-to-PDF/UA conversion directly, which removes the requirement for external tools or complex setups. Our SDK provides a reliable solution for building accessible document systems or adding compliance functionality to an existing platform.

## Preparing the project

Import Nutrient Python SDK to get started:

```python

from nutrient_sdk import Document
from nutrient_sdk import PdfConformance
from nutrient_sdk import NutrientException

```

## Loading the PDF document

This guide focuses on the `Document` class. Use Python’s [context manager](https://docs.python.org/3/reference/datamodel.html#context-managers) to ensure proper lifecycle management of the document instance.

The SDK supports multiple integration methods to provide flexibility when connecting with your application. You can specify the source file via a file path or a stream. This guide uses a file path as the source:

```python

def main():
    try:
        with Document.open("input.pdf") as document:

```

This path can be either absolute or relative. In this example, the file is loaded from the application’s working directory.

## Converting to PDF/UA format

Configure the PDF settings to target PDF/UA-1 conformance level. Then export the document:

```python

            pdf_settings = document.settings.pdf_settings
            pdf_settings.conformance = PdfConformance.PDF_UA_1

            document.export_as_pdf("output.pdf")
            print("Successfully converted to PDF/UA")
    except NutrientException as e:
        print(f"Error: {e}")

if __name__ == "__main__":
    main()

```

The `set_conformance` method configures the output to meet PDF/UA-1 standards, ensuring the document is fully accessible to users with disabilities. The `export_as_pdf` method then generates a compliant PDF/UA document.

The conversion process automatically performs these actions:

- Analyzes document structure and creates appropriate tags.

- Ensures proper reading order for screen readers.

- Adds alternative text for images and graphics.

- Validates color contrast and text accessibility.

- Generates a PDF/UA-compliant document for full assistive technology support.

## PDF/UA requirements

The PDF/UA conversion automatically implements several key accessibility requirements:

- **Document structure** — Creates a logical document structure with a proper heading hierarchy.

- **Tagged content** — Tags all content elements for assistive technology interpretation.

- **Alternative text** — Ensures images and non-text elements have appropriate descriptions.

- **Font embedding** — Embeds all fonts to ensure consistent text rendering.

- **Reading order** — Establishes a logical reading sequence for document navigation.

## Accessibility features

PDF/UA documents provide enhanced accessibility through:

- **Screen reader support** — Structured content enables accurate text-to-speech conversion.

- **Keyboard navigation** — Proper tab order and navigation structure for users who cannot use a mouse.

- **Zoom compatibility** — Text and layout scale appropriately for users with visual impairments.

- **Language identification** — Proper language tagging for multilingual content.

## Error handling

Nutrient Python SDK handles errors with exception handling. The methods presented in this guide raise a `NutrientException` if a failure occurs. This helps with troubleshooting and implementing error handling logic.

## Conclusion

That’s all it takes to convert a PDF document into an accessible PDF/UA file. The resulting document complies with international accessibility standards and enables universal access for users with disabilities. You can also download [this ready-to-use sample package](https://www.nutrient.io/downloads/samples/python/pdf-to-pdf-ua.zip), which is fully configured to help you explore the Python SDK and its seamless accessibility conversion capabilities.
---

## Related pages

- [Converting a document from Markdown to PDF format](/guides/python/conversion/markdown-to-pdf.md)
- [Converting email files (MSG/EML) to PDF format](/guides/python/conversion/email-to-pdf.md)
- [Converting a document from XLSX to PDF format](/guides/python/conversion/excel-document-to-pdf.md)
- [Converting CAD files (DWG/DXF) to PDF format](/guides/python/conversion/cad-to-pdf.md)
- [Nutrient Python SDK conversion guides](/guides/python/conversion.md)
- [Converting PDF documents to Excel format for data analysis](/guides/python/conversion/pdf-to-excel-document.md)
- [Converting PDF documents to image format](/guides/python/conversion/pdf-to-image.md)
- [Converting PDF documents to PDF/A format](/guides/python/conversion/pdf-to-pdf-a.md)
- [Converting PDF documents to Markdown format](/guides/python/conversion/pdf-to-markdown.md)
- [Converting PDF documents to HTML format for web publishing](/guides/python/conversion/pdf-to-html.md)
- [Converting a document from PDF to DOCX format](/guides/python/conversion/pdf-to-word-document.md)
- [Converting PDF documents to PowerPoint presentations](/guides/python/conversion/pdf-to-powerpoint-document.md)
- [Converting a document from DOCX to PDF format](/guides/python/conversion/word-document-to-pdf.md)
- [Converting a Word document to PDF while preserving comments](/guides/python/conversion/word-document-to-pdf-including-comments.md)
- [Converting a document from PPTX to PDF format](/guides/python/conversion/powerpoint-document-to-pdf.md)
- [Converting a document from DOCX to PDF/UA format](/guides/python/conversion/word-document-to-pdf-ua.md)

