Processing PDF documents with the RedactionAnnotation class throws IndexOutOfRangeException

I use the RedactionAnnotation class to process PDF documents, but it throw IndexOutOfRangeException.

Version info:

Aspose.PDF for Net 23.6

The demo code

void Main()
{
	var doc = new Aspose.Pdf.Document(@"C:\Users\54390\Downloads\test.pdf");
	foreach (var page in doc.Pages)
	{
		var annot = new RedactionAnnotation(page, new Aspose.Pdf.Rectangle(0, 0, 595, 720));
		annot.FillColor = Aspose.Pdf.Color.White;
		annot.Color = Aspose.Pdf.Color.White;
		page.Annotations.Add(annot);
		annot.Redact();
	}
	doc.Save(@"C:\Users\54390\Desktop\output.pdf");
}

The demo file

test.pdf (521.1 KB)

The screenshot

20230711220705.png (25.0 KB)

@sullivan

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFNET-55027

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

The issues you have found earlier (filed as PDFNET-55027) have been fixed in Aspose.PDF for .NET 23.9.