Skip to main content
Participating Frequently
November 22, 2023
Question

addAnnot Type:"Redact" Cannot specify location (defaults to bottom left)

  • November 22, 2023
  • 2 replies
  • 798 views

I am simplying trying to add a basic annotation, type "Redact". But, it doesn't matter whether i specifc points, quads, or rect the location of the redacted annotation box is ALWAYS in the lower left hand corner of the page. Despite numerous posts and online articles that seem to indicates you can specifiy the location, it does not work. I have also tried adding an annotation type "FreeText" (which does allow me to specifiy a location using rect which works fine) and changing the type to "Redact" but it just moves the annotation to the bottom left. Here is the basic code I am using:

 

this.addAnnot({type:"Redact",page:0,rect:[200,600,250,700]})

 

Any insight would be greatly appreciated! 

This topic has been closed for replies.

2 replies

Participant
June 24, 2024

Can u help a casual user-I use to be able to select redact and manually drive-through what I wanted to react. Yes not as good as you. But I can't find the redact option anymore. I have the DC Pro and amuse my iPhone. I used to go online and be able to do it online. Cannot find anymore. Who said something about the text boxes and so forth. To deal with that before. Give me specific directions on how I could find redact command to just draw through what I want to react. No coding. Thank you.

Bernd Alheit
Community Expert
Community Expert
June 24, 2024

Use Acrobat Pro on Windows or Mac.

try67
Community Expert
Community Expert
November 22, 2023

You must use quads for this, not a rect.

Participating Frequently
November 22, 2023

 get the same result, lower left corner:

 

this.addAnnot({type:"Redact",page:0,quad:[200,600,300,600,200,500,300,600]})

Participating Frequently
November 22, 2023

this.addAnnot({type:"Redact",page:0,quads:[200,600,300,600,200,500,300,600]})