Hello, I want to know how to erase the contents of a specified rectangular area on a PDF page,I didn’t find the related function in the API docs.
Select a region:
After process:
Thank you!
Hello, I want to know how to erase the contents of a specified rectangular area on a PDF page,I didn’t find the related function in the API docs.
Thank you!
@sullivan
You should use RedactionAnnotation.
like that
var doc = new Document("yourFile.pdf");
var annot = new RedactionAnnotation(doc.Pages[1], new Rectangle(300,300,400,400));
doc.Pages[1].Annotations.Add(annot);
annot.Redact();