Latest Release (November 2026)
GroupDocs.Assembly for .NET 26.11 lets you validate templates against a JSON Schema, puts loading of external resources under your control, adds document preview generation, and removes empty paragraphs in spreadsheet and plain text templates. <<image>> tags resolve relative paths against the template folder, color tags accept hex strings, and date-only values no longer depend on the server time zone. Templates written for typed objects now work on the same data loaded from JSON, XML or CSV, including $id/$ref references and grouping by nested objects. The release adds a .NET Framework 4.8 build, refreshes the document processing engines, and fixes licensing from a stream, metered licensing, the encoding of text reports, barcodes with a missing font and an extra empty paragraph after HTML content.
For the full release notes with examples see GroupDocs.Assembly for .NET 26.11 Release Notes.
Full list of changes in this release
Major Changes
JSON Schema support for JsonDataSource
JsonDataSource accepts a JSON Schema, the same way XmlDataSource accepts an XML Schema. The template is checked against the schema rather than the data, so members declared in the schema can be referenced even if they are null, empty or absent in the data, and value types come from the schema.
JsonDataSource dataSource = new JsonDataSource("Customer.json", "Customer.schema.json");
new DocumentAssembler().AssembleDocument("Json schema.docx", "output.docx", new DataSourceInfo(dataSource, "customer"));
Control of external resources referenced by templates and data
GroupDocs.Assembly tells whether a reference to an external resource comes from the template or from data. By default, resources referenced by the template are loaded as before, and resources whose references come from data are skipped. LoadSaveOptions.SkipExternalResources, TrustTemplateResources, WhitelistedResources and ExternalResourceHandler control this. Local file paths are not affected.
Document preview
DocumentAssembler.GeneratePreview renders pages of a template, an assembled report or any other document of a supported format to PNG, JPEG or BMP images, with PreviewOptions.Resolution, Width, Height and PageNumbers.
Data of JSON, XML and CSV files works like typed objects
Templates written for typed objects work on the same data loaded from files: <<[o.Date.Month]>>, <<if [o.Paid]>>, orders.Where(x => x.Paid) without .Value or == true. GroupBy and Distinct over nested objects merge equal objects, and $id/$ref references written by Json.NET are resolved.
Templates and tags
RemoveEmptyParagraphsworks for spreadsheet and plain text templates.<<image>>tags work in table cells of presentations, and tags in group shapes are processed.- Relative image paths are resolved against the template folder, or
LoadSaveOptions.ResourceLoadBaseUrifor a template loaded from a stream. backColorand chart color tags accept hex strings:"#RRGGBB","#RGB","#AARRGGBB".- An
-htmltag ending its paragraph no longer leaves an empty paragraph after HTML ending with a block element.
Platforms, engines and licensing
- A .NET Framework 4.8 (
net48) build is added. Thenet462build will be removed some months after Microsoft ends support for .NET Framework 4.6.2 on January 12, 2027. - Document generation engines are upgraded to 26.10, and
System.Security.Cryptography.Pkcsis updated to versions that fix CVE-2026-84008 and CVE-2026-70162. License.SetLicense(Stream)reads a seekable stream from its beginning, andMetered.SetMeteredKeyaccepts GroupDocs metered keys.
Backwards incompatible changes
<<image [item.PhotoUrl]>> where PhotoUrl is an http/https URI. Add the hosts to LoadSaveOptions.WhitelistedResources, or set LoadSaveOptions.SkipExternalResources to false to keep the previous behaviour.new JsonDataSource(path, null)is ambiguous at compile time; cast the argument:new JsonDataSource(path, (JsonDataLoadOptions)null).- Reports of ASCII-only text and HTML templates without a byte order mark are in UTF-8 instead of the ANSI code page.
GroupByandDistinctover nested objects of JSON, XML andDataSetdata merge equal objects.- An
-htmltag ending its paragraph no longer leaves an empty paragraph after HTML ending with a block element. To keep a blank line, end the HTML with<p> </p>.
See Public API and Backwards Incompatible Changes for the full list.
Installation
dotnet add package GroupDocs.Assembly --version 26.11.0