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.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.