We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

PdfFileEditor.Delete always fails, starting from Aspose.PDF 20.4

In Aspose.PDF for .NET 20.3, PdfFileEditor.Delete worked correctly. Starting from 20.4 and still in the latest version, 20.8, PdfFileEditor.Delete always seems to return false and no output PDF is created.

I will attach a sample project to demonstrate the issue.

PdfEditorTest.zip (112.3 KB)

You will need to place a copy of Aspose.PDF.dll in the same directory as PdfFileEditorTest.csproj

image.png (6.2 KB)

image.png (9.1 KB)

image.png (6.5 KB)


We tested in our environment and were able to notice a strange behavior. We were able to replicate the issue using your sample project but when we used same code snippet in one of our sample projects, the issue did not occur. We can confirm that code snippet and .NET Framework version were same. RecentOutput.png (3.0 KB)

Nevertheless, we have logged an investigation ticket as PDFNET-48696 in our issue tracking system for this case. We will analyze it in details and keep you informed with the status of ticket resolution. Please be patient and spare us some time.

We are sorry for the inconvenience.

Thanks for looking into it. We will have to downgrade to Aspose.PDF 20.3 until there is a fix available.


We will surely inform you as soon as the investigation against ticket is done.