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

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

New Here ,
Aug 18, 2023 Aug 18, 2023

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?

TOPICS
How to , JavaScript , PDF
265
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 ,
Aug 18, 2023 Aug 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 PDFScripting
Use the Acrobat JavaScript Reference early and often

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 ,
Aug 19, 2023 Aug 19, 2023
LATEST

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).

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