Skip to main content
Participating Frequently
October 3, 2023
Answered

Need help with a Adobe JavaScript function, word searching and saving

  • October 3, 2023
  • 2 replies
  • 721 views

Hello,

 

I need help with a script that allows me to input a word, for example: "France" then the script searches in a very big/ multiple PDF file(s) for all the mentions of the word "France", every page the word: "France" is found on is saved as a combined PDF file.

In that combined PDF, every page needs to have the pagenumber of it's original location in the PDF file. 

For example. I have PDF file with 10.000 pages and I it has 3 mentions of the word France, on page 4, page 346 and page 6.668. The script extracts the pages 4, 346 and 6.668, combines them in one file of 3 pages. The first page was found on page 4 in the 10.000 page file, so that one has "4" bookmarked on it, the second page was found on page 346 so it has "346" bookmarked on it, etc.

Is it even possible to write a script like this for Adobe and if so, can someone help me with this problem?

 

 

 

This topic has been closed for replies.
Correct answer Thom Parker

You'll find free Acrobat Action that can do just that here:

https://acrobatusers.com/actions-exchange/

 

Its  the "Find, highlight, and extract" Action.

 

2 replies

Thom Parker
Community Expert
Thom ParkerCommunity ExpertCorrect answer
Community Expert
October 3, 2023

You'll find free Acrobat Action that can do just that here:

https://acrobatusers.com/actions-exchange/

 

Its  the "Find, highlight, and extract" Action.

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Participating Frequently
October 3, 2023

Thank you, this is exactly what I needed!

Inspiring
October 3, 2023

It's possible, but you will probably have to hire a professional for this job.