Free Support Forum - aspose.com

NullReferenceException in TextFragmentAbsorber.Accept()

Hello,

My program analyzes the annotations in the pdf document.
I need to delete text that is contained in an annotation.
When I use object TextFragmentAbsorber and method Accept I get an error.

I attach a sample code in the attachment.
AsposeTest 1.zip (344.4 KB)

@kr75

We were able to notice the issue in our environment while testing the case with Aspose.PDF for .NET 20.12. Hence, have logged an issue as PDFNET-49256 in our issue tracking system for the sake of correction. We will further check it in details and keep you posted with its rectification status. Please give us some time.

Also, we noticed that your PDF contained an image and hidden layer of text. Would you kindly share an expected output PDF as well so that it can be included in the investigation as well.

We apologize for the inconvenience.

In the output document, I expect the text layer (in place of the annotation) will be remove.
Additionally, the rest of the text cannot be moved.

@kr75

We have updated the information of the logged ticket as per your comments and will inform you as soon as we have additional updates regarding its resolution.