PDF Editing Issues

Extract PDF Pages and Page Numbers Based on Signatures

Huda QurayshiHuda Qurayshi Nov 19, 2026 868 views

Question details

Identify PDF pages containing signatures and extract a number from each matching page.

Extract PDF Pages and Page Numbers Based on Signatures
Product
Adobe Acrobat and PDF document analysis tools
Device & OS
not provided
Scenario
A user wants to locate signed pages in a PDF, record their page numbers or other numbers, and extract the matching pages.
Observed behavior
The appropriate detection method depends on whether each signature is selectable text, a form field, a digital signature, or an image.
Before you start

Open the PDF and check whether you can select the signature text, or whether the signature appears as a field or image. Also identify the number to capture and whether it is printed on the page or refers to the page's position in the PDF.

Solution 1Recommended

Use Acrobat JavaScript to Find Selectable Signature Text

Use this approach when a known signer name or signature label is selectable text and the target number is also readable as text.

A text match identifies a page containing the specified words; it does not prove that the page has a valid signature. Digital signature fields require separate field inspection and validation.

1
Check the page text

Open the PDF in Acrobat and try selecting and copying the signer name and printed page number. If they cannot be selected, use an image-analysis or manual-review method instead.

2
Open the JavaScript console

In desktop Acrobat, open the JavaScript console with Ctrl+J on Windows or Command+J on Mac. Enable the console in Acrobat's JavaScript preferences if necessary.

3
Search and report matching pages

Enter and run this example in the console, replacing Jane Doe with the text to find: var needle = 'Jane Doe'.toLowerCase(); for (var p = 0; p < this.numPages; p++) { var text = ''; for (var w = 0; w < this.getPageNumWords(p); w++) text += this.getPageNthWord(p, w, false) + ' '; if (text.toLowerCase().indexOf(needle) >= 0) { var match = text.match(/\bpage\s+(\d+)\b/i); console.println('PDF page ' + (p + 1) + ': ' + (match ? match[1] : 'printed number not found')); } }

4
Extract the reported pages

Review the console results, then use Acrobat's Organize Pages tool and Extract to save the matching PDF pages. Adjust the script's number pattern if the printed number does not follow the word Page.

Use Acrobat JavaScript to Find Selectable Signature Text
PDF position versus printed number: The example reports the one-based PDF page position separately from a number written as Page followed by digits. These values may differ.
Manual PDF review

Review and Extract Signed PDF Pages in WPS Office

For a manageable document, use WPS PDF to visually identify signature marks, record the numbers on those pages, and extract the matching pages. This manual workflow does not automatically detect or validate signatures.

  1. 1. Open the PDF: Launch WPS Office and use Open to select the PDF in WPS PDF.
  2. 2. Find signed pages: Scroll through the document or use the page thumbnails to find pages with visible signature marks. Record each matching PDF page position.
  3. 3. Record the numbers: Read the required number on each matching page and enter it alongside the PDF page position in a document or spreadsheet.
  4. 4. Extract the pages: Open the Page or Organize Pages tools, choose Extract, select the matching page positions, and save the extracted PDF. Tool names and availability may vary by version or plan.
Review visible signature marks and page numbers in one PDF viewerExtract selected pages into a separate PDFOpen and edit compatible Microsoft Office formats, including DOCX and XLSXUse a familiar interface for everyday document tasks
microsoft office alternative - wps office

Frequently Asked Questions

Can Acrobat find signatures that are images?

Selectable-text searches and text-based JavaScript do not reliably identify image signatures. Use an external image-analysis workflow or review the pages visually.

How do I check whether a PDF signature is digital?

Open the PDF in Acrobat and inspect its signature panel or fields in Prepare a Form. A digital signature field should be checked for signing and validation status, not just presence.

Why does the printed page number differ from the PDF page number?

The printed number is part of the page content, while the PDF page position counts pages from the start of the file. Covers and unnumbered pages can make them different.

Can OCR identify a handwritten signature?

OCR is intended to recognize text and may not reliably identify a handwritten signature. Use signature-specific image analysis and review the flagged pages.

Can WPS PDF automatically detect and validate every signature?

The WPS workflow described here relies on visual review and does not automatically detect or validate signatures. Use Acrobat's signature panel for digital signature status or an external analysis tool for image detection.