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 / Split PDF into multipl...
Power Automate
Suggested Answer

Split PDF into multiple PDF

(1) ShareShare
ReportReport
Posted on by 337

I have created a flow to split the single pdf into multiple single page pdf file.

 

I have a scenario like, the files usually has 50+ pages, each page is an invoice, COA, Waybills, etc., and each invoice, COA, Waybills, etc. should be split into 1 single PDF.

However, sometimes, an invoice, COAs runs to 2nd or 3rd page. So I cannot use a fixed number to do the split. In case like this, on the 2nd and 3rd page, there’s a keyword of “Page of”.

 

How could I configure so the bot knows where to do the split correctly?

I have the same question (0)
  • Suggested answer
    Esbastian Profile Picture
    24 on at
    Hi VDI,
     
    I would do the the following:
     
    1) Create 1 variables, start_page
    1) Create a Loop with the number of pages in the PDF
    2) Within the Loop Use the Extract Text from PDF activity. But Enable the Page to Extract by Range and use the loop index to iterate over every single Page
    3) Create an if statement that using a keyword that you know is going to be present in the first page of every invoice.
        - Within the if statement add that page index to a List.
     
    Now you have a List with the first page of every invoice. Getting the last page of the invoice will be as easy as reducing the following item in the list by 1.
     
    Now you can use that list to iterate over every element with the "Extract PDF file pages to new PDF file" action.
     
    Hope this helps! 

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 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard