Skip to main content
madhusudhananc
Known Participant
February 27, 2018
Question

Syntax and Functions for Find & Replace

  • February 27, 2018
  • 1 reply
  • 511 views

Hello guys, I want syntax and functions for find and replace actions. If anyone knows please assist me. Thank you.

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
February 27, 2018

Do you mean Find and Replace static text? If so, there's no such option in JavaScript.

You can redact text and use the Overlay Text option to insert new text, but it's not really the same because it doesn't reflow the document, or match fonts.

madhusudhananc
Known Participant
February 27, 2018

Thanks for the info. Could you please give any reference to functions and syntax for actions you mentioned.

try67
Community Expert
Community Expert
February 27, 2018

The addAnnot method of the Document object can be used to create a Redaction annotation, and the applyRedactions method to apply it.