We’ve been encountering issues with those methods that we really had troubles to diagnostic and I think there’s a few thing you should that could prevent some of your users huge troubles.
When using PdfFileEditor.Concatenate And/Or PdfFileEditor.Extract some temp files are generated using System.IO.Path.GetTempFileName()
1 - That method has limitations : when more than a certain number of temp files already exist in Windows temp folder, this method fails (https://docs.microsoft.com/en-us/dotnet/api/system.io.path.gettempfilename) “The GetTempFileName method
will raise an IOException
if it is used to create more than 65535 files without deleting previous
When this happens an exception is raised in pdf kit saying “invalid pdf header” which is wrong, and the real exception is not shown in the raised exception’s stack.
2 - Those temp files are never deleted
Could you please fix those troubles in a later version ?