Please see link for sample code:
https://drive.google.com/file/d/1OqP1TlLXmQN7oGxHNBEBgyLaKWKtVXZL/view?usp=sharing
Combining PDFs using the PdfFileEditor.Concatenate() is throwing a stack overflow exception, which is completely crashing our Production applications. This is happening in the most recent version of Aspose.PDF (23.8). For some strange reason, the stack overflow ONLY occurs when the license file is assigned, NOT when using the trial version of Aspose.PDF, so BE SURE to assign a license file before you use the test code!
This is the 3rd stack overflow bug that we have found in Aspose products in the last few years that have crashed our Production applications!!! It is ABSOULTELY CRITICAL that your code NEVER stack overflows, as this exception is NOT catchable and will completely crash any running process when it happens! PLEASE check ALL of your recursive code that could potentially stack overflow so that it will NEVER stack overflow, by using some sort of recursive count in any recursive code!
Please notify us as soon as this showstopper bug has been fixed!
> Starting ...
> Combine file 2 ...
> Combine file 3 ...
> Stack overflow.
> at #=quzdLA3ukfcrDdrxWKkz2JHLXO1H5QInuMSR__47v$6E=.#=zDoDuuQ9BJQqVOpw3Y9Uk8_esO202PZZAcmz_s0nUdNDFiF3dg8b117YYEYfMeLYAS0aaRtGUBUbR()
> at #=qU1aUmTW_gsegxw9W85HGQg56f7QgAWcpXV8ubPjgiDc=.#=z9QBelEqhpN8bAxyW54xl3cQx_VR9WAr4vA==()
> at #=qsDi$hpAYwdc6vpXRF1kcZ1jTjKyzRjJbGz9T19r5tb8=.#=zTEdF$A7ObnL4JUEKUe$0Ss9uiA9e(#=qU1aUmTW_gsegxw9W85HGQg56f7QgAWcpXV8ubPjgiDc=)
> at #=qsDi$hpAYwdc6vpXRF1kcZ1jTjKyzRjJbGz9T19r5tb8=.#=z97VZPkoIUEnaPKyIEbTCTNFasrs5eXvvjJFJdxA=(Int32)
> at #=qsDi$hpAYwdc6vpXRF1kcZ1jTjKyzRjJbGz9T19r5tb8=.#=zE9a8jwfcbvL_ogSpSZNK3HA=(Int32)
> at #=qsDi$hpAYwdc6vpXRF1kcZ1jTjKyzRjJbGz9T19r5tb8=.#=zjA9UKRgnFs4RK$6g1Xayaxjn2VEiK09uWw==(#=qsDi$hpAYwdc6vpXRF1kcZ1jTjKyzRjJbGz9T19r5tb8=, #=qrEA$91818aD0ufGKGRRZrgZX6DwJM7tr0OJXZ_s5ZY4=)
> at #=qsDi$hpAYwdc6vpXRF1kcZ1jTjKyzRjJbGz9T19r5tb8=.#=zLRd_BLKuSnRcCZBAd3w$85ZsjjhW()
> at #=qsDi$hpAYwdc6vpXRF1kcZ1jTjKyzRjJbGz9T19r5tb8=.#=zJo$QC6FbmurYgzHK0_cN9XweuMt1JAxKHQ==(Boolean)
> at #=qsDi$hpAYwdc6vpXRF1kcZ1jTjKyzRjJbGz9T19r5tb8=.#=zQXVkEAqAChh60CIn7HaI9vF7xfDB2Ys4aw7o5AI=()
> at #=qsDi$hpAYwdc6vpXRF1kcZ1jTjKyzRjJbGz9T19r5tb8=.#=zn0s$5hkco$5sfWsch6Gun6boNfFVbdPaQg==(System.Object[], System.Type[], System.Type[], System.Object[])
> at #=qsDi$hpAYwdc6vpXRF1kcZ1jTjKyzRjJbGz9T19r5tb8=.#=zAUFIpYldW$YalGiKPQ==(System.IO.Stream, Int32, System.Object[], System.Type[], System.Type[], System.Object[])
> at #=qsDi$hpAYwdc6vpXRF1kcZ1jTjKyzRjJbGz9T19r5tb8=.#=zOjNPTRT$Q5lK6Si5lK0goC0kz6f08v$1Hg==(Int32, System.Type[], System.Type[], Boolean)
> at #=qsDi$hpAYwdc6vpXRF1kcZ1jTjKyzRjJbGz9T19r5tb8=.#=zeOwrZSnQEWc4V0T_Lf_v0MCoVXg0WZLEu5qUnck=(#=qsDi$hpAYwdc6vpXRF1kcZ1jTjKyzRjJbGz9T19r5tb8=, #=qrEA$91818aD0ufGKGRRZrgZX6DwJM7tr0OJXZ_s5ZY4=)
> at #=qsDi$hpAYwdc6vpXRF1kcZ1jTjKyzRjJbGz9T19r5tb8=.#=zLRd_BLKuSnRcCZBAd3w$85ZsjjhW()
> at #=qsDi$hpAYwdc6vpXRF1kcZ1jTjKyzRjJbGz9T19r5tb8=.#=zJo$QC6FbmurYgzHK0_cN9XweuMt1JAxKHQ==(Boolean)
> at #=qsDi$hpAYwdc6vpXRF1kcZ1jTjKyzRjJbGz9T19r5tb8=.#=zQXVkEAqAChh60CIn7HaI9vF7xfDB2Ys4aw7o5AI=()
> at #=qsDi$hpAYwdc6vpXRF1kcZ1jTjKyzRjJbGz9T19r5tb8=.#=zn0s$5hkco$5sfWsch6Gun6boNfFVbdPaQg==(System.Object[], System.Type[], System.Type[], System.Object[])
> at #=qsDi$hpAYwdc6vpXRF1kcZ1jTjKyzRjJbGz9T19r5tb8=.#=zzeJLP9AY6dKjsJvLU8umNes=(System.IO.Stream, System.String, System.Object[], System.Type[], System.Type[], System.Object[])
> at #=qsDi$hpAYwdc6vpXRF1kcZ1jTjKyzRjJbGz9T19r5tb8=.#=zKH2um3NkPQ0eib4$37ZbYKTi$7EDHcNwtr4Mwz8=(System.IO.Stream, System.String, System.Object[])
> at Aspose.Pdf.OutlineCollection+#=zWTF0WCrQrKFe1RJNag==.MoveNext()
> at Aspose.Pdf.Facades.PdfFileEditor.#=z$T_RbKkZNMzG(Aspose.Pdf.OutlineItemCollection)
> at Aspose.Pdf.Facades.PdfFileEditor.#=z$T_RbKkZNMzG(Aspose.Pdf.OutlineItemCollection)
> at Aspose.Pdf.Facades.PdfFileEditor.#=z$T_RbKkZNMzG(Aspose.Pdf.OutlineItemCollection)
> at Aspose.Pdf.Facades.PdfFileEditor.#=z$T_RbKkZNMzG(Aspose.Pdf.OutlineItemCollection)
> at Aspose.Pdf.Facades.PdfFileEditor.#=z$T_RbKkZNMzG(Aspose.Pdf.OutlineItemCollection)
> at Aspose.Pdf.Facades.PdfFileEditor.#=z$T_RbKkZNMzG(Aspose.Pdf.OutlineItemCollection)
> at Aspose.Pdf.Facades.PdfFileEditor.#=z$T_RbKkZNMzG(Aspose.Pdf.OutlineItemCollection)
> at Aspose.Pdf.Facades.PdfFileEditor.#=z$T_RbKkZNMzG(Aspose.Pdf.OutlineItemCollection)
> at Aspose.Pdf.Facades.PdfFileEditor.#=z$T_RbKkZNMzG(Aspose.Pdf.OutlineItemCollection)
> at Aspose.Pdf.Facades.PdfFileEditor.#=z$T_RbKkZNMzG(Aspose.Pdf.OutlineItemCollection)
> at Aspose.Pdf.Facades.PdfFileEditor.#=z$T_RbKkZNMzG(Aspose.Pdf.OutlineItemCollection)