How to Search Multiple Lines and Select Matching Text in Acrobat PDF
Question details
The user wants to know if it is possible to search for a specific substring across multiple lines in a PDF and automatically select every matching line to copy or delete them.

- Product
- Adobe Acrobat PDF
- Device & OS
- not provided
- Scenario
- Searching for specific text strings within a PDF and extracting or deleting the complete lines where those strings are found.
- Observed behavior
- Acrobat cannot automatically select every complete line containing a searched substring, preventing users from copying or deleting the matching text in bulk directly within the PDF.
Before proceeding, ensure your PDF document contains searchable text rather than being a flattened scanned image, as exporting text requires recognizable characters.
Export PDF to a Word Processor to Search and Edit
Since Acrobat cannot automatically select multi-line search results, exporting the document to a text editor like Microsoft Word provides the advanced text manipulation tools needed to accomplish this.
Standard PDF readers treat text as distinct objects on a page rather than continuous flowing paragraphs. To effectively search for a substring and select or delete the entire line, the document must be converted into a format where text flows naturally.
Open your PDF file in Adobe Acrobat. Navigate to the 'File' menu, select 'Export To', and choose 'Microsoft Word' or 'Rich Text Format' to convert the file.
Launch Microsoft Word (or another compatible word processor) and open the document you just exported.
Press Ctrl+F (or Cmd+F on Mac) to open the Find tool. Enter your target substring to locate all instances within the document.
Scroll through the search results. Because the text is now in an editable format, you can easily click and drag to select the entire line or paragraph containing the substring, then copy it to your clipboard or press Delete to remove it.

Search and Edit PDF Text Seamlessly with WPS Office
While standard PDF readers limit multi-line search and selection, WPS Office offers a built-in PDF to Word converter and a robust Writer tool, allowing you to easily convert, search, extract, and edit matching lines.
- 1. Open your PDF in WPS Office: Launch WPS Office and open your PDF document using the built-in PDF editor.
- 2. Convert PDF to Word: Navigate to the 'Tools' tab on the top ribbon and click on 'PDF to Word' to convert the document into an editable format.
- 3. Open the document in WPS Writer: Once the conversion is complete, open the newly created document in WPS Writer.
- 4. Search and edit matching lines: Press Ctrl+F to open the search pane, locate your specific substrings, and easily highlight the complete lines to copy or delete them.

Frequently Asked Questions
Can Acrobat automatically delete all lines containing a specific word?
No, Acrobat does not have a built-in feature to automatically select and delete lines based on search queries. You must export the text to a word processor to perform bulk line deletions.
How do I select multiple non-adjacent lines of text in a PDF?
In most standard PDF readers, you cannot select non-contiguous text directly. You will need to copy the entire section into a text editor and then select and manage the non-adjacent lines from there.
Why doesn't the search function find text in my PDF?
If the search function cannot locate text, the PDF is likely a scanned document made of images rather than recognizable text layers. You must apply an OCR (Optical Character Recognition) tool to make the document text searchable.




