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

Free Support Forum - aspose.com

Redaction-Method removes text which is not part of redaction

Dear support team,
if I use following code to blacken a section of the following document, the text upper and under the redaction were removed.
Document: TEST.pdf (202.3 KB)

using (var inputStream = new MemoryStream(content))
using (var document = new Document(inputStream))
Page page = document.Pages[1];

                var annotEditor = new PdfAnnotationEditor(document);

                annotEditor.RedactArea(page.Number, new Rectangle(65, 198.9, 116, 211.9), System.Drawing.Color.Red);

Result: TEST_Result.pdf (202.4 KB)

The Redaction is between the words “accumsan” and “Marius” but both words will be redacted.


Thank you for contacting support.

We have been able to reproduce the issue in our environment. A ticket with ID PDFNET-45877 has been logged in our issue management system for further investigation and resolution. The ticket ID has been linked with this thread so that you will receive notification as soon as the ticket is resolved.

We are sorry for the inconvenience.