Skip to main content
Participant
August 18, 2023
Question

Looking for script to create lists from clicked text in a PDF file

  • August 18, 2023
  • 1 reply
  • 328 views

I have manuals and parts books for golf carts that are hundreds of pages long that detail every part of a golf cart with schematics, pictures, parts lists, etc.

I want to take these PDF books and make it to where when a user either clicks on a part in a schematic, or clicks parts names in a parts list, it allows them to add it to a list almost like a shopping cart, but with the sole purpose of just building a parts list of things they need that can then be printed out on paper.

I DONT want to use any ecommerce or purchasing functionality just list building based off of clicks that can be printed.

Does anyone have ANY idea how to do something like this within Adobe Acrobat?

This topic has been closed for replies.

1 reply

Thom Parker
Community Expert
Community Expert
August 18, 2023

Yes, you can do this by placing invisible (or somewhat transparent) buttons over the parts on a schematic or in the text where you'd like the person to be alble to click.  Then with some scripting and perhaps a summary page you can collect all the things that were clicked. 

 

There isn't a good way to automate placing the buttons because there is no way to automatically know what is relavant, and the appropiate text or part number. Something that could be automated is placeing buttons over text that is in known format, such as a part number, but that's about as good as you could get. 

 

 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
try67
Community Expert
Community Expert
August 19, 2023

If you have a list of all part numbers (or names) it's possible to search the file for them, and then add the buttons over those texts (if they are indeed text, and not a part of an image).