Automate PDF Page Extraction by Text and Color in Adobe Acrobat
Question details
Extract PDF pages that contain a specific phrase in a specified text color.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- A user wants to automate page extraction using both a phrase and its text color as matching criteria.
- Observed behavior
- Acrobat actions do not normally extract pages based on both a phrase and text color.
Confirm the exact phrase and target color, and check whether the PDF text is selectable. If the document is scanned, use Acrobat's Scan & OCR tool to recognize the text before searching; verify separately that your chosen detection tool can identify the color.
Use a Plug-in or Automation Tool to Detect Text and Color
Use this approach when you need to process many pages or repeat the extraction.
Standard Acrobat actions do not normally combine phrase and text-color criteria for page extraction. Choose a plug-in or standalone PDF tool that explicitly supports both checks and can report or extract matching pages.
Review the plug-in or automation tool's documentation for phrase matching, text-color detection, and page extraction support.
Open the PDF in the chosen tool and set the target phrase and color using its search or automation settings.
Run the tool and inspect the reported page numbers against the PDF, especially if colors or text formatting vary.
Use the tool's extraction command, or open Acrobat's Organize Pages tool, select the reported pages, and choose Extract.

Mark Matching Pages and Extract Them Manually
Use unique comments or bookmarks when you can identify matching pages while reviewing or editing the PDF.
Work With PDFs and Office Files in WPS Office
WPS Office is a free, lightweight alternative to Microsoft Office with a familiar interface and support for common Office formats, making it easier to move existing files. Its PDF tools can assist with manual page work, but do not assume they automate extraction by both text and color.

Frequently Asked Questions
Can an Acrobat action extract pages based on both a phrase and its color?
Acrobat actions do not normally combine those criteria. Look for a plug-in or standalone automation tool that explicitly supports phrase matching and text-color detection.
How can I extract pages after finding the matches?
In Acrobat, open Organize Pages, select the matching pages, and choose Extract. Check the resulting PDF to confirm that it contains the intended pages.
Can comments or bookmarks identify pages for extraction?
Yes. Add a uniquely worded comment through the Comment tool or a bookmark through the Bookmarks panel on each verified page. Review the markers to record page numbers before using Organize Pages.
What if I cannot select or search the text in my PDF?
The PDF may contain scanned images. Use Acrobat's Scan & OCR tool to recognize text, then test whether your chosen detection tool can also determine the required color.




