How to Automatically Highlight Every Occurrence of a Phrase in a PDF
Question details
The user wants to automatically find and highlight specific phrases or text patterns, including associated numbers, across a PDF document.

- Product
- Adobe Acrobat Pro
- Device & OS
- not provided
- Scenario
- Reviewing financial statements and needing to prominently mark multiple specific terms and their subsequent amounts for easy identification.
- Observed behavior
- Needs a way to batch-highlight occurrences of a phrase or pattern rather than manually searching and highlighting each one individually.
Ensure you have the desktop version of your PDF editor installed and that your PDF is text-searchable (not a flat scanned image) before attempting to run automated highlight scripts.
Use the Find and Highlight Words Action
Download and run a pre-made Action to automatically highlight specific words or phrases throughout your document.
Navigate to the Acrobat Actions Exchange online and download the free 'Find and Highlight Words' Action.
Open Adobe Acrobat Pro, go to the Action Wizard, and import the downloaded Action into your software.
Execute the Action on your target financial statement PDF and enter the specific phrase you wish to highlight.
Save the document to apply and keep the printable highlights permanently.

Apply Custom Acrobat JavaScript for Advanced Patterns
Use a custom script to process multiple search terms or identify complex text patterns like a phrase followed by a dollar amount.
Search and Highlight Text Easily with WPS Office
While complex JavaScript requires advanced scripting skills, WPS PDF offers a highly intuitive search and markup tool. You can quickly find specific terms and apply highlights to review financial reports seamlessly.
- 1. Open your PDF: Launch WPS PDF and open the financial statement or document you want to edit.
- 2. Search for the Phrase: Press 'Ctrl + F' to open the Search panel, then type your target phrase to locate all occurrences.
- 3. Select the Highlight Tool: Navigate to the 'Comment' tab on the top ribbon and click the 'Highlight' tool.
- 4. Apply Highlights: Select the located text in the document to instantly apply your preferred highlight color.

Frequently Asked Questions
Can I automatically highlight a list of different words at once?
Yes, using advanced custom JavaScript or dedicated standalone PDF markup tools, you can input a list of search terms and have the software iterate through them, highlighting every match in one go.
Will these automated highlights print with the document?
Yes, as long as the highlights are added as standard PDF annotations. When printing, ensure that your print settings are configured to include 'Document and Markups' or 'Document and Annotations'.
Why isn't the script finding the words in my financial statement?
If the PDF is a scanned document without OCR (Optical Character Recognition) applied, the text is essentially an image. You must run OCR first to make the text readable and searchable by the script.




