Copy link to clipboard
Copied
Hi community,
I am trying to redact my pdf using the following method,
this.addAnnot({
type: "Redact",
page: myPage,
quads: myQuads
});
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?
Thanks:-)
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
Hi,
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?
Thanks,
Charu Karwa
Copy link to clipboard
Copied
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: