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 / Extracting line from e...
Power Automate
Answered

Extracting line from extractedPDFtext not working

(0) ShareShare
ReportReport
Posted on by 46

Hello,

 

I am trying to extract some text from a PDF to send to a webpage. The PDFs are always the same and the text to extract is always from the same field of the PDF.

I can successfully extract all of the text from the PDF into a variable text list, but when i try and return the specific line from the extracted text list i do not get the result i would expect,

 

Screenshot_1.png

 

The text extracted is successful

 

Neil_ODonnell_0-1709110599189.png

 

I then create a variable to return line 16 from the extracted text, i also tried just sending line 16 from the extractedPDF directly and found the same result, (i created the extra variable so i can see what text was being extracted from the PDF text list).

 

Neil_ODonnell_2-1709111002559.png

 

 

I receive the letter 'e' from line 16, where it should be the word 'test'.

 

If i try and extract text from line 15, i get the letter 'r' as my value,

 

any help greatly appreciated,

 

Neil

 

 

 

 

 

I have the same question (0)
  • Verified answer
    eetuRobo Profile Picture
    4,579 Super User 2026 Season 1 on at

    You need to split the text by New line

    eetuRobo_1-1709119643731.png

     

    Then refer to that TextList which Split text -action created same way you tried previously. You cant take line from string variable. If you refer to string varialbe like %VaribleName[15]% It will take the 15th character I think. But when you split in into a list then every line is its own list item.

     

    eetuRobo_0-1709119630814.png

    There you would get the 3nd line since list index starts from 0.

    So first line would be TextList[0]. And for your case when you want to get line 16 the index is 15 so %TextList[15]%

  • Neil_ODonnell Profile Picture
    46 on at

    Thank you very much, this worked perfectly,

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 252 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard