How to Find, Export, or Delete PDF Pages with Specific Words
Question details
The user wants to locate specific keywords within a scanned PDF document and subsequently export or delete the pages containing those words.

- Product
- PDF Editor
- Device & OS
- not provided
- Scenario
- Processing large scanned PDFs, such as digitized newspapers, to find and separate pages with targeted content like 'Classifieds'.
- Observed behavior
- Scanned pages lack searchable text, requiring OCR before automated scripts or document processing tools can identify and manage the target pages.
Ensure your document contains searchable text by running Optical Character Recognition (OCR) first, especially if the PDF was created from a scanner or images.
Use Dedicated PDF Software with OCR and Page Extraction
For large files with hundreds of pages, utilizing standalone PDF software with built-in OCR and page management tools is more stable and efficient than relying on complex scripts.
Processing massive scanned documents requires robust software. Standard viewers or script-based solutions in Adobe Acrobat may crash or time out when handling very large files or complex multi-word search terms.
Open your PDF in a specialized PDF editor and select the OCR (Optical Character Recognition) tool to convert scanned images into searchable text.
Use the Advanced Search function (usually accessible via Ctrl+F or the Tools pane) to locate the exact phrases or keywords you need, taking note of the page numbers.
Navigate to the Page Management tab. Enter the specific page numbers you identified, then click 'Extract Pages' to save them as a new file, or 'Delete Pages' to remove them.

Automate with Acrobat Action Scripts
If you are using Adobe Acrobat Pro, you can create custom JavaScript actions to find target words and output the corresponding pages, provided the file size is manageable.
Easily Search, Extract, and Edit PDFs with WPS Office
WPS Office provides an all-in-one PDF editor equipped with highly accurate OCR technology, making it incredibly easy to search for specific words and extract or delete pages from scanned documents.
- 1. Open the PDF: Launch WPS Office and open your scanned PDF document.
- 2. Apply OCR: Go to the 'Tools' tab and click 'OCR' to convert the document into searchable text.
- 3. Find keywords: Press Ctrl+F to open the search bar, type your specific words, and note the pages where they appear.
- 4. Extract or delete: Navigate to the 'Page' tab, select the identified pages, and click 'Extract Page' to save them separately or 'Delete' to remove them.

Frequently Asked Questions
Why can't I search for words in my scanned PDF?
Scanned PDFs are essentially flat images. To search for text, you must first apply Optical Character Recognition (OCR) to convert the image data into selectable, searchable text.
Can I search for exact phrases containing multiple words?
Yes, in most PDF editors, including WPS Office, you can search for exact phrases by typing the words in sequence into the search bar, sometimes requiring quotation marks for strict matching depending on the tool.
Is there a way to extract multiple non-consecutive pages at once?
Yes. Once you locate the pages containing your keywords, you can enter the page range (e.g., 5, 12, 18-20) in the 'Extract Pages' menu to export them all simultaneously into a single new PDF document.




