When I merge 2 pdfs placed on disc I receive following exception:
ArgumentOutOfRangeException
Index was out of range. Must be non-negative and less than the size of the collection.Parameter name: index
Here’s the code snippet:
var filesToMerge = new List() {
@“d:\test\broken1.pdf”,
@“d:\test\broken2.pdf”};
var license = new Aspose.Pdf.License();
license.SetLicense(@“Aspose.Total.lic”);
I attach 2 pdf’s and 2 documents (docx, docm) I used to create pdfs in Word, Aspose. Notice that when you change order of merged file, exception is not thrown (unfortunately we can’t do that).
Your issue has been resolved and its fix will be available in the next version of Aspose.PDF for .NET i.e. 22.8. We will inform you via this forum thread once it is released.