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 / 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

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 557

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 264 Super User 2026 Season 1

Last 30 days Overall leaderboard