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

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

Explorer ,
Oct 03, 2023 Oct 03, 2023

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?

 

 

 

TOPICS
How to , JavaScript , PDF
553
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
1 ACCEPTED SOLUTION
Community Expert ,
Oct 03, 2023 Oct 03, 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 PDFScripting
Use the Acrobat JavaScript Reference early and often

View solution in original post

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
Enthusiast ,
Oct 03, 2023 Oct 03, 2023

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

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 03, 2023 Oct 03, 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 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
Explorer ,
Oct 03, 2023 Oct 03, 2023
LATEST

Thank you, this is exactly what I needed!

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