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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Extract Text to PDF ex...
Power Automate
Suggested Answer

Extract Text to PDF extracts text from inexistent pages

(0) ShareShare
ReportReport
Posted on by
Using Power Automate Desktop, I've made a one page PDF from the "Extract PDF file pages to new PDF file". The original PDF had 6 pages. Anyways, when I use the Extract Text from PDF, extracting from a Single Page, it gets extracted any page number. I've tried a lot of random higher than 10 values and in each case the action worked without a clue of why it's working. This is a problem for me because in the rest of the flow, there's a step in which the flow executes again the Extract PDF file pages to new PDF file action, and with this action, it tries to extract this inexistent second page of the PDF (and of course, the program fails). 
First, I thought this was happening because of the logic embedded in the use of the action, as the picture shows. But I also tried loading this action at the very beginning of the flow and this is still happening (second picture).
As you may know, is not that easy to get the number of PDF pages in PAD. Even though, I'm seriously thinking in getting this done by this way, since there isn't actually a big problem in the extraction error, the problem is mainly that the logic afterwards takes the PDF to fail in the Extract PDF file pages to new PDF file action. I've only found tutorials on how to get the number of PDF pages in Power Automate Web, but not in the Desktop version. 
I have the same question (0)
  • Suggested answer
    Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at
    Hi,
     
    one way would be to use PowerShell script which runs against the pdf and gets the total pages count, for that you need to download the required dll and use that to find the total page in pdf file.
     

    Thanks & Regards,
    Nived N

    Stay connected:
    LinkedIn | YouTube | Blogs

    Was this answer helpful?
    If yes, please mark it as the solution by selecting the checkbox in the discussion thread.
    Your feedback motivates me to keep contributing. Thank you!

  • CU31080729-3 Profile Picture
    500 Moderator on at
    Hi,
     
    If you find the pdf page count you can fallow to community trail message its helpful for you 
     
     
     
    thanks & Regards
    Chetan Ninghot
     
    Was this answer helpful?
    If yes, please mark it as the solution by selecting the checkbox in the discussion thread.
    Your feedback motivates me to keep contributing. Thank you!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard