Skip to main content
madhusudhananc
Known Participant
Feb 27, 2018 10:50 AM UTC
Question

Syntax and Functions for Find & Replace

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

This topic is closed to new replies. Start a new post to keep the conversation going.

3 replies

try67
Community Expert
Community Expert
Feb 27, 2018 10:54 AM UTC

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.

Translate
madhusudhananc
Known Participant
Feb 27, 2018 11:32 AM UTC

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

Translate
try67
Community Expert
Community Expert
Feb 27, 2018 12:27 PM UTC

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

Translate