• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

pdf redaction using Acrobat Javascript

Community Beginner ,
May 13, 2020 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

2.7K

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
community guidelines
LEGEND ,
May 14, 2020 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?

Votes

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
community guidelines
Adobe Employee ,
May 14, 2020 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

 

Votes

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
community guidelines
Community Expert ,
May 14, 2020 May 14, 2020

Copy link to clipboard

Copied

LATEST

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...

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Votes

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
community guidelines