PDF Editing Issues

How to Find Colored or Struck-Through Text in a PDF

Elise WilliamsElise Williams Nov 5, 2026 868 views

Question details

The user needs a method to locate specific text based on its formatting, such as font color or strike-through styles, throughout a large PDF document.

How to Find Colored or Struck-Through Text in a PDF
Product
Adobe Acrobat Pro
Device & OS
not provided
Scenario
Reviewing or editing a large PDF where specific text formatting (color or strike-through) needs to be identified quickly.
Observed behavior
Adobe Acrobat Pro does not offer a built-in standard search function to find text based on font color or strike-through formatting, and standard Acrobat JavaScript cannot query these properties.
Before you start

Before attempting to search for formatted text using developer tools, ensure you have the necessary permissions to edit the PDF and consider backing up your document, as advanced inspection methods may alter file structures.

Solution 1Recommended

Develop or Install a Custom C/C++ Plugin

Since Acrobat JavaScript does not support searching by text formatting, utilizing a custom plugin is the most direct way to inspect PDF text properties.

Standard Acrobat scripts cannot access deep text formatting properties like color or strike-through. A custom plugin written in C or C++ interacts directly with the Acrobat SDK to parse the internal PDF structure and locate specific text attributes.

1
Download Acrobat SDK

Obtain the Adobe Acrobat SDK from the official Adobe Developer portal to access the necessary libraries and documentation for plugin development.

2
Write Custom Code

Develop a C or C++ script that iterates through the PDF page content, specifically identifying text objects with the desired color profile or strike-through attributes.

3
Compile and Install

Compile your plugin and place the resulting .api file into the Acrobat plugins directory on your local machine.

4
Run the Plugin

Restart Acrobat Pro, open your PDF document, and execute your custom search tool from the Add-ons or Tools menu to locate the formatted text.

Develop or Install a Custom C/C++ Plugin
Developer Skills Required: Creating a custom Acrobat plugin requires advanced knowledge of C/C++ programming and familiarity with the Adobe Acrobat API.

Convert to Word to Easily Search Formatted Text

Instead of writing complex C++ plugins, you can easily find colored or struck-through text by converting your PDF to a Word document using WPS Office. Once converted, WPS Writer's advanced 'Find and Replace' tool lets you search for any specific text formatting instantly.

  1. 1. Open PDF in WPS Office: Launch WPS Office and open your target PDF document in the PDF viewer.
  2. 2. Convert PDF to Word: Navigate to the 'Tools' tab and select 'PDF to Word' to seamlessly convert your document while keeping the original formatting intact.
  3. 3. Open the Find Dialog: In the newly converted Word document, press 'Ctrl + F' to open the Find and Replace pane, then click 'Advanced Find'.
  4. 4. Search by Format: Click 'Format' at the bottom of the dialog, select 'Font', and choose the specific font color or check the 'Strikethrough' effect. Click 'Find Next' to locate all instances instantly.
Accurate PDF to Word conversion preserving original formatting.Built-in advanced search to find text by color, font, or strike-through.Fully compatible with standard Microsoft Office documents and PDF formats.
QA img-9

Frequently Asked Questions

Can I use JavaScript to find colored text in Adobe Acrobat?

No, standard Acrobat JavaScript does not support querying deep text formatting properties such as font color or strike-through. You will need to use a custom C/C++ plugin or the Preflight tool for this task.

Is there a standard 'Find by Format' feature in Acrobat Pro?

Adobe Acrobat Pro does not include a built-in standard search function to find text based purely on its formatting, color, or style.

How can I easily find formatted text without programming knowledge?

The easiest workaround is to convert your PDF into a Word document. Word processors like WPS Writer or Microsoft Word feature advanced 'Find and Replace' tools that allow you to search specifically for font colors, highlights, and strike-through text.

What is the Preflight tool in Adobe Acrobat?

The Preflight tool is an advanced feature in Acrobat Pro used primarily for print production. It can inspect and analyze the internal structure of a PDF, allowing users to identify objects with specific color profiles or structural characteristics.