Document.Save`(filename)
PdfFileEditor.Insert (args)
Document.Pages.Delete(num)
any one of the method randomly throws an exception.
our app processes multiple PDFs sequentially. The issue happens with random files. This issue can be replicate when we process 100 documents. out of 100, 2 -4 documents failing with that error (i.e. The requested operation…). Randomly one above mentioned method failed with this error.
Yes. We are inserting the attachments to PDF then deleting some pages and then trying to save that PDF at this point of time it’s failing any one of the above-mentioned methods randomly.
We could not use your code snippet as it has some missing definitions and variables. Therefore, we tried to access multiple PDF files in a directory and manipulate them. We could not replicate this issue.
Can you please make sure that the file is not accessed by any other program or code snippet in your routine while Aspose.PDF is processing it? Also, please try using the latest version of the API. In case issue still persists, we request you please share a sample console application that we can use to reproduce the issue and address it accordingly.