Concatenating Multiple Word Doucments

Hi,

I am creating multiple word documents using Aspose.words for java version 14.3.0. At the end of generation of these documents I need to concatenate them to create one document. To perfomr this for every document I am saving it to an OutputStream and then converting it to a InputStream to store it in a an array. At the end of generation I iterate through them and create the final document.

I wanted to check if there is anyother way for concatenation and I do not have to save to OutputStream and convert back to Inputstream.

Regards,

Hi Rajeev,

Thanks for your inquiry. Please use Document.appendDocument method to append the specified document to the end of this document. Please read following documentation links for your kind reference and let us know if you have any more queries.
https://docs.aspose.com/words/java/insert-and-append-documents/