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

Word Search Using Dynamic Stamp

Participant ,
Jul 15, 2020 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!

TOPICS
Acrobat SDK and JavaScript

Views

421

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
community guidelines

correct answers 1 Correct answer

Community Expert , Jul 15, 2020 Jul 15, 2020

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?  

 

Votes

Translate

Translate
Community Expert ,
Jul 15, 2020 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?  

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Votes

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
community guidelines
Participant ,
Jul 16, 2020 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

Votes

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
community guidelines
Community Expert ,
Jul 16, 2020 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

 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Votes

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
community guidelines
Participant ,
Jul 17, 2020 Jul 17, 2020

Copy link to clipboard

Copied

LATEST

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

Votes

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
community guidelines