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

Find Text and Place Button Field in PDF

Explorer ,
Oct 12, 2024 Oct 12, 2024

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!

TOPICS
Create PDFs , How to , JavaScript , Modern Acrobat , PDF , PDF forms , Standards and accessibility
319
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 12, 2024 Oct 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.

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 12, 2024 Oct 12, 2024
LATEST

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.

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