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 / How to split pdf from ...
Power Automate
Unanswered

How to split pdf from one scanned document

(0) ShareShare
ReportReport
Posted on by 29

Hi, I have this one compiled PDF file which are scanned documents(images) that contains multiple invoices. The number of pages for each invoices varies, some had 3 pages per invoice, some had only 1.

 

I would like to know, is there a way to split them according to their right number of pages ?

The only indicator to the page number are the word "Page 1 of 1", "Page 1 of 3", "Page 3 of 3", on the right side of the each pages.

 

Any assistance would be appreciated. I would also like to hear if the cloud version have any solution for this. Thank you kindly.

I have the same question (0)
  • Srini007 Profile Picture
    3,490 Super User 2026 Season 1 on at

    Hi @RookAils 

     

    Can you tell me is the  "Page 1 of 1", "Page 1 of 3", "Page 3 of 3", these are a plain text in PDF or that is also included in the image only? If you could share some sample, that will be more clear

     

    If you find this reply helpful, please consider giving it a LIKE AND

    If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION

     

    Thanks,

    Srini

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Have you tried using the Extract images from a PDF file action? For scanned documents it should extract a single image per page. This should technically return as many images as there are pages on the file. You can then use that as a counter to know how many pages you need to split the document into. You can then delete the images afterwards.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • RookAils Profile Picture
    29 on at

    My bad. Those are text in an image. Here's some samples.

    Page 2 of 2.PNG
    Page 1 of 2.PNG
    Page 1 of 1.PNG
  • RookAils Profile Picture
    29 on at

    I did try doing that. However, it does splits the file per image but after that how do I set that certain invoices got 3 pages and some got 1 page ?

     

    For instance, in a pdf file, there's 21 pages, consists from only 6 invoices. Invoice A had 3 pages only, Invoice B had 1 pages only and etc. This is varied value, the PDF cant always be first 3 pages for Invoice A, and 1 for B etc. I'm not clear on how to instruct the PA Desktop to merge the files based on these settings/

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Okay, that is definitely not what I thought you needed to do. I thought you simply needed to split a single PDF file into separate files with one page per file. 

     

    The only way to do this properly would be using Extract text with OCR on those images that you extracted from the PDF. Do it for each image separately and see if you can extract the page number. Then use that to split your PDF.

     

    Extract text with OCR works best when extracting text from files. But it does not work with PDF files, so you do in fact need to use Extract images from a PDF file first and then use those images in Extract text with OCR.

     

    Please note OCR is not 100% accurate and you also need to experiment on it a bit to make sure you use the appropriate height and width multipliers that allow you to extract the text as accurately as possible.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • RookAils Profile Picture
    29 on at

    Yes I did try that and its not really consistent on the output. Perhaps, is there any solutions that could be done on the Cloud version ?

  • CU02080621-5 Profile Picture
    on at

    Hi,

    Did you find a solution for this? I need to do the same thing.

  • VishnuReddy1997 Profile Picture
    2,666 Super User 2026 Season 1 on at

    Hi @Lumina ,

     

    If you want this solution from PAD , I have ready made solution.

    Please let me know if you want the solution in PAD.

     

    Regards,

    Vishnu Reddy

  • CU02080621-5 Profile Picture
    on at

    Sure, show me what you got 🙂 

  • VishnuReddy1997 Profile Picture
    2,666 Super User 2026 Season 1 on at

    Hi @RookAils ,

     

    Can you share the PDF if possible.

     

    Regards,

    Vishnu Reddy

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

#2
11manish Profile Picture

11manish 225

#3
Haque Profile Picture

Haque 181

Last 30 days Overall leaderboard