Skip to main content
Sonny AR
Inspiring
October 12, 2024
Question

Find Text and Place Button Field in PDF

  • October 12, 2024
  • 2 replies
  • 351 views

Hello Experts,

I’m working with a PDF, and I need to find specific static text across the entire document (2000 pages) and place a button field on top of it.

basically, I want to place two buttons to display a popup image as a tooltip (1 for triger and 1 for image popup).

 

Manually finding the text (using the search option) and placing the buttons is very time-consuming.

Can anyone suggest a faster way to accomplish this?

Thanks!

This topic has been closed for replies.

2 replies

try67
Community Expert
Community Expert
October 12, 2024

If you're interested, I've developed a (paid-for) tool that allows you to do just that:

https://www.try67.com/tool/acrobat-create-popup-images

However, 2000 pages might be pushing it for such a script, but there are ways to make it work with such large documents, using a combination of an Action and a script. Feel free to contact me privately to discuss it further.

PDF Automation Station
Community Expert
Community Expert
October 12, 2024

Download and import the Action "Find and Highlight Words" here: https://acrobatusers.com/actions-exchange/

This action will highlight the words or phrases you specify.  Write a script to add a button where each highlight is, then remove the highlight.  Highlights coordinates are quads.  Butttons are rect.  You will have to do a conversion.  You can add the button actions using the field setAction() method.