Skip to main content
Participating Frequently
Nov 22, 2023 4:43 PM UTC
Question

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

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 is closed to new replies. Start a new post to keep the conversation going.

7 replies

Participant
Jun 24, 2024 5:52 AM UTC

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.

Translate
Bernd Alheit
Community Expert
Community Expert
Jun 24, 2024 6:14 AM UTC

Use Acrobat Pro on Windows or Mac.

Translate
try67
Community Expert
Community Expert
Nov 22, 2023 4:59 PM UTC

You must use quads for this, not a rect.

Translate
Participating Frequently
Nov 22, 2023 5:04 PM UTC

 get the same result, lower left corner:

 

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

Translate
Participating Frequently
Nov 22, 2023 5:08 PM UTC

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

Translate