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 / PDF - Extract text fro...
Power Automate
Unanswered

PDF - Extract text from PDF - Alternative Options

(0) ShareShare
ReportReport
Posted on by 65

Hey everyone!  First post here, just starting to play with Power Automate Desktop.  In an effort to move off of a larger more expensive RPA platform, I am putting together some POC's and doing some feasibility planning with Power Automate to show that it will be sufficient to replace our existing platform.  One of our larger existing solutions on our current platform involves parsing a lot of data from insurance applications that we receive as PDF files.  I am running into an issue with the built in PDF - Extract text from PDF function in that it is returning the text in a different way than expected, to the point that we would not reasonably be able to consume it.

 

Here is a mocked up version of one page of an application...
Mocked_Life_Ins_App.png

 

When using the PDF - Extract text from PDF action in PAD, this is how the content is returned...

BI_RPA_Andy_0-1633637358131.png

This makes it nearly impossible to confidently ascertain which data should belong to which fields.

 

If I open the PDF file in Adobe Reader DC and use the built in 'Export PDF' tool and export it to a .txt file, the content gets rendered like this...

BI_RPA_Andy_1-1633637519401.png

The field values come over adjacent to the field names making it consumable.  This also happens to be the way the content is returned in our existing platform with its built-in 'Extract Text From PDF' command.

 

Conclusion:  I need to find an alternative method that will extract the text from these files in a format that will be consumable.  Worst case scenario is I would just automate the interaction with Adobe Reader DC but I was hoping there might be a better alternative.  Thanks!

I have the same question (0)
  • Pstork1 Profile Picture
    69,125 Most Valuable Professional on at

    I can think of two different approaches to this.

     

    1) If the format of the PDF is predictable you might want to look into Power Apps AI Builder.  You can use that to map the fields in the PDF and extract the values directly.  Use AI Builder in Power Automate - Power Automate | Microsoft Docs

    2) If you can't use AI Builder because the fields will change position then you could use Power Automate Desktop (RPA) to convert the PDF to text using Adobe Acrobat.

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    Might sound stupid, but how about:

     

    Send Keys, Control A

    Send Keys, Control C

    Open New Excel

    Send Keys, Paste clipboard content to A1

    Use Excel UI to Set Text to Columns delimited by ":"

     

    This will result in your row titles in column A and your populations in column B

  • BI_RPA_Andy Profile Picture
    65 on at

    Good idea.  Tried it manually and unfortunately it produces the same undesired output.

  • BI_RPA_Andy Profile Picture
    65 on at

    Thanks for the suggestions!

    1. Played around with this already and unfortunately not all of the pages on the PDF file are standardized.  The sample I showed you was just the first page, but they can be upwards of 70 pages with additional documentation.  Some of them are standard forms but it's not consistent enough.  I would have to basically pull apart every page and examine them individually which seemed like not the easiest solution.

    2.  This is the route I am probably going to end up going.

  • BI_RPA_Andy Profile Picture
    65 on at

    I have also attempted to use the Power Automate Adobe PDF Services connector which has the Export PDF function available, but I'm struggling to figure out how to use it.  I have the connection set up, it's the Actions I am struggling with.

     

    Here is the documentation for it .... https://docs.microsoft.com/en-us/connectors/adobepdftools/ ...

     

    Here is the section for the Export PDF Action (https://docs.microsoft.com/en-us/connectors/adobepdftools/#export-pdf-(preview)) 

    BI_RPA_Andy_0-1633643547976.png

     

    What I am confused about is the required input parameter 'File Content' which is described as 'The content of the source file'.  This seems particularly odd given the purpose of exporting the PDF to another file type is so that I can get the content.  So I'm not sure where to go from there.

  • vanderben Profile Picture
    50 on at

    File Content is which file you are wanting to convert. You might store this in Microsoft SharePoint, OneDrive, etc. and access it from one of those connectors. One of the examples would be this template: https://us.flow.microsoft.com/en-us/galleries/public/templates/15eb05ba02924398a22edb0091896add/convert-newly-added-pdf-files-to-microsoft-word-in-onedrive-for-business/

     

     

  • Geezer Profile Picture
    68 on at

    Hi @BI_RPA_Andy  I tried this early on and found absolutely no workaround to extracting from PDF. The various connectors will be able to create Excel files, which will show the same indiscriminate splitting/combining of info into adjacent cells.  Even the AI Builder, I was recently told, can require 1000+ training documents to get 99% accuracy, but will not guarantee 100% results. As a consumer of insurance products, I would find that unacceptable from an insurance provider. 

     

    What is beginning to take shape for me, at least, is to bypass the PDF step altogether and extract the data from upstream--the process which would generate the PDF.  In our case, this is to use attended RPA from PAD ( "web recorder") to extract the data from the web site screen itself. The HTML grouping and formatting is much more predictable than the PDF extraction.

     

    There is a MySQL connector as well, which I'm told could be used to query the web site's database directly. But I'm personally too lazy to learn yet another programming language at this point 🙂

  • BI_RPA_Andy Profile Picture
    65 on at

    Thanks everyone.

     

    I went ahead and just created a PAD flow to open the file directly in Adobe Acrobat Pro DC and used UI control/image recognition to do all the clicks necessary to use the 'Export PDF' tool to convert the file to .txt, read the text file and return the contents as an output variable.  It's not as slick as I was hoping for but it achieves what I need it to for this specific process.

  • Ricardo111 Profile Picture
    52 on at

    useful, pdf text exactration via browser pdf viewers does not work on browser automation.

  • takolota1 Profile Picture
    4,980 Moderator on at

    You can now also try this template for extracting data from PDFs or Images with GPT in a cloud flow: https://powerusers.microsoft.com/t5/Power-Automate-Cookbook/Extract-Data-From-PDFs-and-Images-With-GPT/td-p/2201345

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!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 589

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 284 Super User 2026 Season 1

Last 30 days Overall leaderboard