Dear support team,
if I anonymizing this document for example with the Aspose.Pdf.Rectangle(55,56,540,802) the Redact-Method throws an out of range Exception.
Anonymizing Text throws out of Range Exception.pdf (11.5 KB)
Sample Code:
var asposeRect = new Aspose.Pdf.Rectangle(55,56,540,802);
// page is the document I attached
var redactAnnot = new RedactionAnnotation(page, asposeRect)
{
FillColor = Aspose.Pdf.Color.Black,
Color = Aspose.Pdf.Color.Black,
Repeat = true
};
page.Annotations.Add(redactAnnot);
redactAnnot.Redact();
Can you tell me why?