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 / Problem with Extract t...
Power Automate
Answered

Problem with Extract text from pdf function.

(0) ShareShare
ReportReport
Posted on by 19

Hi, currently I am trying to extract some text from a pdf file and put this data into an excel sheet. My program works fine, until a larger file appears. Although it is in the same format as my other files that I am reading, the extract text function only picks up data from the second page. This is a major problem because I need data from both the first and second pages (2 page document). As a result, I receive a error message stating that the desired variable is not found, due to it only extracting half of the data from the pdf. I am unsure what to do.

 

My code is very similar to the code in this video: https://www.youtube.com/watch?v=kW2D853JqQg. 

 

 

I have the same question (0)
  • Anil_g Profile Picture
    668 Moderator on at

    @KaiHalpin 

     

    Did you happen to select all pages in extract text activity?

     

    cheers

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    Is it possible that page 1 is a table, and not text?

     

  • KaiHalpin Profile Picture
    19 on at

    Yes, but it still doesn't read the first page

  • KaiHalpin Profile Picture
    19 on at

    No, it is text I verified. If I wear to extract a table into excel how would I do that.

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    there is an extract table(s) from PDF action; this will extract all tables from the PDF into a single list, with each item in the list being a separate datatable variable.  DataTables variables can be written to Excel if need be.

  • Verified answer
    Deenuji_Loganathan_ Profile Picture
    6,255 Moderator on at

    @KaiHalpin 

     

    If possible, please share a screenshot of your PDF after concealing all sensitive information, and also share how you've designed your Power Automate desktop. This will enable us to provide you with more in-depth assistance.

     

    Temporary Workaround Steps:

     

    1. If you are attempting to extract a table from a PDF file using the 'Extract table from PDF' action, ensure that your PDF table is in a valid format. If the table format is valid, the 'Extract table from PDF' action should, by default, extract the table from your PDF and store it in a datatable variable.

     

    2. If the 'Extract table from PDF' action fails to extract the table from the PDF, it may be due to the table's format. In such cases, consider using the 'Extract text from PDF' action to see if it retrieves the data from your PDF file. The main challenge here is that it will return the data in a standard string format, not as a datatable. You can employ some regex to format it into a datatable.

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

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 267 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 196

#3
Haque Profile Picture

Haque 182

Last 30 days Overall leaderboard