Migrating to GroupDocs.Assembly 18.9 or Higher
Leave feedback
Note
This document describes the changes to the GroupDocs.Assembly API from version 18.7 to 18.9 or greater that may be of interest to module/application developers. It includes not only new and updated public methods, added & removed classes etc., but also a description of any changes in the behaviour behind the scenes in GroupDocs.Assembly.
Breaking changes
Removed members of DocumentAssembler were replaced with new ones. Removed members were not marked as obsolete (deprecated) before removal as usual, because this would complicate migration to new members of DocumentAssembler in Java. Thus, we have introduced a breaking change and customers need to migrate their code from removed members of DocumentAssembler to newly added ones when upgrading to the new version of GroupDocs.Assembly.
Newly added types
C#
/// <summary>/// Provides information on a single data source object to be used to assemble a document from a template./// </summary>publicclassDataSourceInfo
C#
/// <summary>/// Specifies the format of a file./// </summary>publicenumFileFormat
C#
/// <summary>/// Specifies additional options for loading and saving of a document to be assembled./// </summary>publicclassLoadSaveOptions
New members of DocumentAssembler
C#
/// <summary>/// Loads a template document from the specified source path, populates the template document with data from/// the specified single or multiple sources, and stores the result document to the target path using default/// <see cref="LoadSaveOptions"/>./// </summary>/// <param name="sourcePath">The path to a template document to be populated with data.</param>/// <param name="targetPath">The path to a result document.</param>/// <param name="dataSourceInfos">Provides information on data source objects to be used.</param>publicvoidAssembleDocument(stringsourcePath,stringtargetPath,paramsDataSourceInfo[]dataSourceInfos)
C#
/// <summary>/// Loads a template document from the specified source path, populates the template document with data from/// the specified single or multiple sources, and stores the result document to the target path using the given/// <see cref="LoadSaveOptions"/>./// </summary>/// <param name="sourcePath">The path to a template document to be populated with data.</param>/// <param name="targetPath">The path to a result document.</param>/// <param name="loadSaveOptions">Specifies additional options for document loading and saving.</param>/// <param name="dataSourceInfos">Provides information on data source objects to be used.</param>publicvoidAssembleDocument(stringsourcePath,stringtargetPath,LoadSaveOptionsloadSaveOptions,paramsDataSourceInfo[]dataSourceInfos)
C#
/// <summary>/// Loads a template document from the specified source stream, populates the template document with data from/// the specified single or multiple sources, and stores the result document to the target stream using default/// <see cref="LoadSaveOptions"/>./// </summary>/// <param name="sourceStream">The stream to read a template document from.</param>/// <param name="targetStream">The stream to write a result document.</param>/// <param name="dataSourceInfos">Provides information on data source objects to be used.</param>publicvoidAssembleDocument(StreamsourceStream,StreamtargetStream,paramsDataSourceInfo[]dataSourceInfos)
C#
/// <summary>/// Loads a template document from the specified source stream, populates the template document with data from/// the specified single or multiple sources, and stores the result document to the target stream using the given/// <see cref="LoadSaveOptions"/>./// </summary>/// <param name="sourceStream">The stream to read a template document from.</param>/// <param name="targetStream">The stream to write a result document.</param>/// <param name="loadSaveOptions">Specifies additional options for document loading and saving.</param>/// <param name="dataSourceInfos">Provides information on data source objects to be used.</param>publicvoidAssembleDocument(StreamsourceStream,StreamtargetStream,LoadSaveOptionsloadSaveOptions,paramsDataSourceInfo[]dataSourceInfos)
assembler.AssembleDocument(sourcePath, targetPath, new DataSourceInfo(dataSource1, dataSourceName1), new DataSourceInfo(dataSource2, dataSourceName2));
assembler.AssembleDocument(sourceStream, targetStream, new DataSourceInfo(dataSource1, dataSourceName1), new DataSourceInfo(dataSource2, dataSourceName2));
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.