Word Search Using Dynamic Stamp

Explorer ,
Jul 15, 2020

Copy link to clipboard

Copied

Hello! Is it possible to use javascript dynamic stamp to search for a word?
I tried adding this code to the Actions of the dynamic stamp template text field

Actions/Mouse Up/Run a JavaScript

 

search.query("Test", "ActiveDoc");

 

But when inserting the Stamp into the document, the script does not work!

Adobe Community Professional
Correct answer by Thom Parker | Adobe Community Professional

The short answer it NO.  

However, there is a way to search the PDF being stamped. It is complicated. Do you have programming skills?

What exactly are you trying to do?  

 

TOPICS
Acrobat SDK and JavaScript, How to, PDF forms

Views

52

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Word Search Using Dynamic Stamp

Explorer ,
Jul 15, 2020

Copy link to clipboard

Copied

Hello! Is it possible to use javascript dynamic stamp to search for a word?
I tried adding this code to the Actions of the dynamic stamp template text field

Actions/Mouse Up/Run a JavaScript

 

search.query("Test", "ActiveDoc");

 

But when inserting the Stamp into the document, the script does not work!

Adobe Community Professional
Correct answer by Thom Parker | Adobe Community Professional

The short answer it NO.  

However, there is a way to search the PDF being stamped. It is complicated. Do you have programming skills?

What exactly are you trying to do?  

 

TOPICS
Acrobat SDK and JavaScript, How to, PDF forms

Views

53

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jul 15, 2020 0
Adobe Community Professional ,
Jul 15, 2020

Copy link to clipboard

Copied

The short answer it NO.  

However, there is a way to search the PDF being stamped. It is complicated. Do you have programming skills?

What exactly are you trying to do?  

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 15, 2020 1
Explorer ,
Jul 16, 2020

Copy link to clipboard

Copied

in the dynamic stamp my signature, I try to find my last name in the document using the code, increase this place and put the signature. The surname appears many times in the document, i.e. it should be an iteration cycle.
1. I select a signature in a dynamic stamp - the search for the surname in the document is in progress
2. I put my signature next to the surname
3. I choose the signature again ... and so on in a loop

 

Do you have programming skills? - little experience on vbs, vba and java

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 16, 2020 0
Adobe Community Professional ,
Jul 16, 2020

Copy link to clipboard

Copied

The Acrobat JavaScript function for finding text on a page is "doc.getPageNthWord()". 

Here's the reference entry:

https://help.adobe.com/en_US/acrobat/acrobat_dc_sdk/2015/HTMLHelp/#t=Acro12_MasterBook%2FJS_API_Acro...

 

Have you seen the info on creating stamp scripts here:

https://www.pdfscripting.com/public/All_About_PDF_Stamps.cfm

 

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 16, 2020 1
Explorer ,
Jul 17, 2020

Copy link to clipboard

Copied

Thank you very much, I will study the articles on your links!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 17, 2020 0