Skip to main content

Notifications

Power Automate - Using Connectors
Unanswered

Extracting specific word from a pdf.

(0) ShareShare
ReportReport
Posted on by 2

I have been working on a flow to extract metadata from a structured document through AI Builder using the "Recognize text in an image" feature on MS Power Automate cloud.

The document has multiple pages (30-35) and I wish to extract a specific word from that.

 

For Eg. The required word is "Resistance"

Now, the issue is, "Resistance" occurs randomly on multiple pages, multiple times i.e it can occur 3-4 time on one page and never on another. 

 

I am able to extract the index of the word successfully, but since that word has multiple occurrences on multiple pages, the output is the index of that word on each individual page, which varies from page to page i.e. ( 49 on page 5, 6 on page 17, no occurence on page 1 etc.) 

 

I want the output to be that particular word, returned to me as text, irrespective of its multiple indexes.

 

Currently, I am going like: Recognize text in an image-Compose (All pages) ---Parse JSON-Select all text (This creates and Apply to all loop) ---Insert index---Filter array for first occurrence "Resistance"(But this filters out occurrence on each page individually) and so on.

 

How can I approach this?

 

  • rohansaxena Profile Picture
    rohansaxena 2 on at
    Re: Extracting specific word from a pdf.

    Hi @BJ94 !

    Thankyou for your response.

    But I am using the "Recognize text in an image" feature in a flow.

    I've tried to use the AI Builder template mentioned in the video, it doesn't suit my purpose.

  • BJ94 Profile Picture
    BJ94 264 on at
    Re: Extracting specific word from a pdf.

    Hi @rohansaxena 

    This video is useful for you. 

     

    https://www.youtube.com/watch?v=lVXbBTlKbZM

     

    -------------------------------------------------------------------------------------------

    Regards,

    Bharti

    Community Support Team _ Bharti
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,495

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,822

Leaderboard

Featured topics