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

This guide explains how to process a PowerPoint template with JSON data and convert the generated presentation to PDF/UA.

Use this workflow for pitch decks, résumés, reports, and other presentations that share the same slide structure. The template keeps layout and branding in the PowerPoint file, while the JSON model provides the variable content.

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

Download sample

Preparing the project

Initialize licensing before you process templates or convert documents:

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

Setting up template processing

Create a GdPictureOfficeTemplater instance and load the JSON data model:

GdPictureOfficeTemplater templater = new GdPictureOfficeTemplater();
templater.SetTemplate(System.IO.File.ReadAllText("input_presentation_model.json"));

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

Loading and processing the template document

Process the PowerPoint template in three steps.

Step 1 — Loading the template

Load the .pptx template before applying the JSON model:

templater.LoadFromFile(@"input_presentation.pptx");

LoadFromFile reads the presentation into memory and detects the PowerPoint format.

Step 2 — Processing template markers

Apply the data model to resolve placeholders and loop sections:

templater.Process();

Process resolves placeholders using the JSON model, repeats loop sections across slides, and preserves slide formatting and layout.

Step 3 — Saving the processed PPTX

Save the generated presentation as a new .pptx file:

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

SaveToFile writes the processed result as a new PowerPoint presentation.

Converting to PDF/UA

Convert the processed PPTX file to a PDF/UA document:

using GdPictureDocumentConverter converter = new GdPictureDocumentConverter();
converter.LoadFromFile(@"output.pptx");
converter.SaveAsPDF(@"output.pdf", PdfConformance.PDF_UA_1);

The converter loads the generated presentation and writes output.pdf with PDF/UA-1 conformance.

Key features

This workflow covers the following tasks:

  • Generate a presentation from a PowerPoint template and JSON data.
  • Replace placeholders and repeat slide sections.
  • Preserve formatting and styles from the source template.
  • Convert the generated PPTX file to PDF/UA.
  • Produce accessible PDF output from a PowerPoint source file.

Conclusion

You now have a workflow for generating a PowerPoint presentation from JSON data and converting it to PDF/UA. Use this pattern when you have a fixed slide design and variable content that comes from a data model.