Developer integration
Generate documents from your .NET applications.
The Nethouse Document Generator .NET SDK provides a typed integration for generating DOCX and PDF documents from reusable Microsoft Word templates and structured business data. Keep application logic focused on business data and workflows while document layout remains managed in governed Word templates.
A .NET integration for the Document Generator API
From application data to generated document
01
Define your application data
Supply the structured business data your document needs.
02
Select a template
Choose the governed Word template for the document.
03
Generate the document
Request DOCX or PDF output from your existing deployment.
Install the .NET client
dotnet add package Nethouse.DocumentGenerator.Client
Generate a document from your application
var document = await client.For(order) .UsingTemplate("OrderConfirmation", "en-US") .AsPdf() .WithGeneratedFileName($"order-{order.OrderNumber}.pdf") .GenerateAsync(cancellationToken);
Scroll horizontally to view the full code on smaller screens.
Your application supplies the data and selects the template. The template controls the document presentation.
For package versions, supported frameworks, dependencies, and release notes, see the current package information on NuGet.
Common integration patterns
Generate a document
An application sends structured data, selects a governed Word template, and receives DOCX or PDF output.
Process multiple documents
The SDK supports batch or asynchronous workflows for applications that need to process multiple documents.
Use structured or JSON data
Integrations can use typed .NET models or raw JSON, depending on the application architecture.
Business logic in your application. Presentation in Word.
Application teams control
Business data, workflow decisions, template selection, document delivery, and storage.
Templates control
Document layout, formatting, optional sections, repeating content, images, and presentation.
SDK capabilities
Typed model-based document generation
Raw JSON-based document generation
DOCX and PDF output
Individual document requests
Batch and asynchronous processing
Schema and template access
Generated-document retrieval
Archive-related workflows
Reusable shared data for templates
Connect to your existing deployment
The SDK connects to an existing Nethouse Document Generator deployment. Your deployment administrator provides the API endpoint and authentication configuration.
Check NuGet for the current package version, supported frameworks, dependencies, and release notes.
Ready to connect document generation to your application?
Install the client package from NuGet or request a private evaluation to test the SDK with representative templates and business data.



