This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /guides/dotnet/pdf-generation/word-template-to-pdf-ua.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. Generating PDF/UA from Word templates | Nutrient .NET SDK

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:

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:

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

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

LoadFromFile reads the template document into memory.

Step 2 — Process template markers

templater.Process();

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

Step 3 — Save the processed DOCX

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:

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.