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

Javascript to Invoke Command

New Here ,
Oct 19, 2021 Oct 19, 2021

Hi All,

 

I am trying to automate the redaction piece in Adobe Acrobat Pro DC. I have used Annotation methods to find and apply quads to redact text but the solution doesn't fit the complexed requirements.
What I do see is an option "Find Text & Redact" which opens a search window. I can find all the redactable text there and then mark for redact whole/partially.
The challenge I have is I can use "Annots:Tool:Redact:EditMenu" to open the Redact tool bar but I am unable to go one step further to invoke "Find Text & Redact".
I am using Blueprism for automation and Clicking this button will mean using Region mode which is not reliable in Acrobat.
Please help me with the command to invoke the search window.

 

Thanks

TOPICS
Edit and convert PDFs , JavaScript
948
Translate
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 ,
Oct 19, 2021 Oct 19, 2021

You can't invoke this with Acrobat Javascript.

Translate
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
New Here ,
Oct 19, 2021 Oct 19, 2021

Is there any other solution?

As I see another menu item "FindSearch" that gets that window open but without redaction function.

Translate
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 ,
Oct 19, 2021 Oct 19, 2021

Use your first approach.

Translate
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
New Here ,
Oct 19, 2021 Oct 19, 2021

What do you mean by first approach?

Translate
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 ,
Oct 19, 2021 Oct 19, 2021

Search the document's text (using getPageNthWord), find the matches for the text you want to remove (using getPageNthWordQuads), create Redaction annotations over them (using addAnnot), and then apply those redactions (using applyRedactions).

Translate
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 ,
Oct 19, 2021 Oct 19, 2021
LATEST

This:

 I have used Annotation methods to find and apply quads to redact text but the solution doesn't fit the complexed requirements.

Translate
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