Announcements
I have text I have extracted from a pdf. It is saved in a variable as
how do I get to and save to a new variable the contents of Line 2.
I have it also saved to a text file. But again how to I get to Line 2 and set it to its own variable.
Assuming there is a newline in your strPDFText...
Use Split Text action and split by newline.
This will split into a datatable called TextList.
After splitting, %TextList[1]% will have your 2nd line (because it starts from 0).
Use Set variable to store it in the new variable you want.
Post back if you are facing any challenge.
Thank you, This did the trick.
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 233 Super User 2026 Season 2
David_MA 227 Super User 2026 Season 2
Mohsin Ali 178