I am trying to redact my pdf using the following method,
It can successfully white out the area that I want it to be redacted. But I wonder, is there any properties that can be used to color the area instead of white it out? Or can someone please share the related API document?
Warning: That doesn’t remove anything - it isn’t (yet) redaction and can easily be removed, showing you “hidden” text. Unless you also use applyRedactions. Do you use applyRedactions?
You can try "fillColor:["RGB",x,y,z] to set the color property, also as mentioned by Test_Screen_Name correctly, are you using applyRedactions as well to redact the marks you are creating?
Yes, you need to use the "doc.applyRedactions()" function;
But there are also a number of special properties for the "Redact" annot that povide the appearnce of the redacted area.
Look it up here: