Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Search for Multiple Strings in PDF and Word, Return Page Number(s) Where Strings Appear

(0) ShareShare
ReportReport
Posted on by

Hi all, 

 

Tearing my hair out on this one. I have a list of words (e.g. "Tom", "John" and "Harry") and need to find a streamlined way to extract the page number(s) on which each word appears.

 

The list of words is fixed/can be hardcoded but would ideally be read from a column in Excel and the resulting page numbers (output) would be written to a column in that worksheet, separated by commas and in the row matching the search string.  

 

The files to be searched are most often PDFs (always file created/no need to add OCR) but occasionally include word documents. 

 

Any ideas? I see that @antoinec assisted on something slightly similar but that required OCR and extracting pages themselves. https://powerusers.microsoft.com/t5/AI-Builder/Search-specific-text-on-a-PDF-and-get-the-page-number-it-exists/m-p/1462430?lightbox-message-images-1463051=414173i90FB0B28999BC443#M1182 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1