Insert document (pdf or word) inside other word document

Hi Team,

We use aspose for generating documents where we are provided with a template and XML Data as input.
we use Aspose word and iterate through the template and replace the xpath values with the xml data and generate the final document.

We now have a new requirement where template can have multiple small templates and use one XML data for all the templates
we need to populate every template inside the main template and put that content inside one document and generate one single document.

Is there any ready to use approach that we can make use of from Aspose ?
OR Any suggestions that you can provide us to implement this functionality

Please let us know if you require a call to understand it ?

Thank you,
Kavita Pandit.

@kavita09 There two powerful ways to create dynamic documents using Aspose.Words:

  1. Classic Mail Merge
  2. And more advanced LINQ Reporting Engine

The LINQ Reporting Engine supports the use of XML as a data source, so I would recommend it for your case.

@kavita09 With LINQ Reporting Engine you can insert documents dynamically and instruct the reporting engine using -build flag to check the inserted document against template syntax and populate it with data. Please see our documentation for more information:
https://docs.aspose.com/words/net/inserting-documents-dynamically/

FYI @eduardo.canal