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)
Code:
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);
annotEditor.Save(@"C:\temp\testDocRedacted.pdf");
}
}
Result: TEST_Result.pdf (202.4 KB)
The Redaction is between the words “accumsan” and “Marius” but both words will be redacted.