I am using the Aspose.Pdf for .NET library and want to concatenate merge documents in memory. I have the following scenario -
1. Create a new instance of the Aspose.Pdf.Generator.Pdf object
2. Load an existing PDF from the file system
3. Add it to the new Pdf object
4. Repeat step 3 and 4
5. Output the Pdf object as a byte array.
Please can you advise. At the moment I can find examples of loading concatenating Pdf documents on the file system and writing to the file system but I cannot find any examples of how to iterate over existing Pdf documents and add them to a Aspose.Pdf.Generator.Pdf object.