---
title: "Generating PDF/UA from Word templates | Nutrient .NET SDK"
canonical_url: "https://www.nutrient.io/guides/dotnet/pdf-generation/word-template-to-pdf-ua/"
md_url: "https://www.nutrient.io/guides/dotnet/pdf-generation/word-template-to-pdf-ua.md"
last_updated: "2026-05-28T01:45:39.262Z"
description: "How to generate accessible PDF/UA files from Word templates using Nutrient .NET SDK."
---

# Generating PDF/UA from Word templates

Organizations use template processing to generate consistent documents at scale while meeting accessibility requirements. This guide shows how to process a Word template with dynamic data and convert the result to PDF/UA.

Use this workflow to generate contracts, reports, invoices, or similar standardized documents. The process keeps document structure and branding consistent while producing accessible output.

PDF/UA (Universal Accessibility) supports accessibility requirements for standards and policies such as Section 508, ADA, and EN 301 549.

## Prepare the project

Initialize licensing before you process templates or convert documents:

```csharp

using GdPicture14;

LicenseManager license = new LicenseManager();
license.RegisterKEY(""); // Set your license key

```

## Set up template processing

Create a `GdPictureOfficeTemplater` instance and load the JSON data model:

```csharp

GdPictureOfficeTemplater templater = new GdPictureOfficeTemplater();

templater.SetTemplate(System.IO.File.ReadAllText("input_template_model.json"));

```

The templater uses JSON values to replace placeholders in the Word template.

## Load and process the template document

Process the template in three steps.

### Step 1 — Load the template

```csharp

templater.LoadFromFile(@"input_template.docx");

```

`LoadFromFile` reads the template document into memory.

### Step 2 — Process template markers

```csharp

templater.Process();

```

`Process` resolves placeholders using the JSON model and preserves document formatting and layout.

### Step 3 — Save the processed DOCX

```csharp

templater.SaveToFile(@"output.docx");

```

`SaveToFile` writes the processed result as a new Word document.

## Convert to PDF/UA

Convert the processed DOCX to PDF/UA:

```csharp

using GdPictureDocumentConverter converter = new GdPictureDocumentConverter();

converter.LoadFromFile(@"output.docx");

converter.SaveAsPDF(@"output.pdf", PdfConformance.PDF_UA_1);

```

## Key features

- Template-driven document generation with Word and JSON

- Dynamic placeholder replacement

- PDF/UA output for accessible documents

- Formatting and style preservation from the source template

- Support for high-volume generation workflows

- DOCX input with accessible PDF output

## Conclusion

This guide covers a full workflow for template-driven document generation with accessible output. You process a Word template with JSON data and convert the result to PDF/UA, so generated documents stay consistent and accessibility-ready.

---

## Related pages

- [Create PDFs from byte arrays in C#](/guides/dotnet/pdf-generation/byte-array.md)
- [Generate a PDF from HTML in C#](/guides/dotnet/pdf-generation/from-html.md)
- [Generate PDFs in.NET](/guides/dotnet/pdf-generation.md)
- [Create PDFs from scratch in C#](/guides/dotnet/pdf-generation/from-scratch.md)
- [Create thumbnails from PDFs in C#](/guides/dotnet/pdf-generation/thumbnail-preview.md)
- [Create tagged PDFs in C#](/guides/dotnet/pdf-generation/tagged.md)
- [Generate a PDF from a DOCX template in C#](/guides/dotnet/pdf-generation/from-word-template.md)

