pdf redaction using Acrobat Javascript

Community Beginner ,
May 13, 2020

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:-)

 

TOPICS
Acrobat SDK and JavaScript

Views

399

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

pdf redaction using Acrobat Javascript

Community Beginner ,
May 13, 2020

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:-)

 

TOPICS
Acrobat SDK and JavaScript

Views

400

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
May 13, 2020 0
Most Valuable Participant ,
May 14, 2020

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?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 14, 2020 1
Adobe Employee ,
May 14, 2020

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

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 14, 2020 1
Adobe Community Professional ,
May 14, 2020

Copy link to clipboard

Copied

Yes, you need to use the "doc.applyRedactions()" function;

https://help.adobe.com/en_US/acrobat/acrobat_dc_sdk/2015/HTMLHelp/#t=Acro12_MasterBook%2FJS_API_Acro...

 

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:

https://help.adobe.com/en_US/acrobat/acrobat_dc_sdk/2015/HTMLHelp/#t=Acro12_MasterBook%2FJS_API_Acro...

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 14, 2020 0