web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Extract line n from a ...
Power Automate
Answered

Extract line n from a PDF file

(0) ShareShare
ReportReport
Posted on by 237

We have contract documents in PDF in this standard format 

 

1    PERSONAL & CONFIDENTIAL
2    7 October 2020
3    David Alex Lee
4    64, Line Avenue, UK, 520856
5    AGREEMENT FOR PROVISION OF SERVICES

 

Line 1 and 5 are part of the contract template that will not change.

 

What is the best approach to extract the contractor's name (Always on line 3) from such PDF files ?

 

 

What is the best approach to extract the name

I have the same question (0)
  • Verified answer
    miketran13 Profile Picture
    720 on at

    Hi,

     

    If you have your PDF format is fixed like that, so it is quite simple by using PDF action: Extract text from PDF, then using Split text with delimiter "New Line". After all, you will have a list of texts line by line. Then you just need to take the text with the index you want from the list (in your case, it should like this: TextList[2], it is line number 3. 

    pdf.png

    I think it is the easiest way to do.

     

    Thanks and hope it can help you. 

    Mike

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

    Did I answer your question? Please consider to Mark my post as a solution! to guide others

  • GanCW Profile Picture
    237 on at

    Hi Mike,

    I agree that is the most straight forward solution.

    I have got it working.

     

    Thanks

    Gan

  • balajinambi Profile Picture
    2 on at

    @miketran13 Is there any way to find a line number from a "text list" based on searching a text?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 862

#2
Valantis Profile Picture

Valantis 738

#3
Haque Profile Picture

Haque 553

Last 30 days Overall leaderboard