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 Automate
Answered

Split PDF to Images

(0) ShareShare
ReportReport
Posted on by 136

Greetings, I would like to ask for assistance and suggestion on this matter. I have this one page PDF that when I use 'Extract Images from PDF' action, all of the tables, stamps and barcode on the PDF are saved individually as images so i cant really use that function anymore. Are there any suggestions on how to proceed ?

I have the same question (0)
  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    I am not quite sure what your issue here is. Do you want to have a single image per page instead?

  • RookAils1 Profile Picture
    136 on at

    Sorry for the confusion. Basically what I need to do is extract image from PDF then OCR a certain number from the PDFs, rename the image based on the extracted number and have the image to be converted to Base64 to be uploaded.

     

    I knew that the OCR can only be done thru 'Extract Images from PDF' action but the issue is the PDF contains several images in one page which disrupts the alignment of the form. 

  • RookAils1 Profile Picture
    136 on at

    In short, yes. single image per page.

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    You'll need a converter then. There are several paid service providers that can convert a PDF to an image. Some have connectors for Power Automate cloud flows. 

    There are also some free providers that do it via a web UI, which is not very efficient, but would be free.

    Adobe Acrobat Pro can also do it and if you had it, you could use VBscript to call the required function without automating the UI. But Pro is paid, too.

    I suggest trying something like that out. 

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

  • RookAils1 Profile Picture
    136 on at

    I see. In short, its definitely not doable thru PAD only ?

  • Verified answer
    Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Not natively. Might be possible via a Python script, though. See this for reference: https://www.geeksforgeeks.org/convert-pdf-to-image-using-python/

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

  • RookAils1 Profile Picture
    136 on at

    I spent a day doing this but I cant get this to work. Could you help me on this one ? I am not really familiar with python and i cant really figure out the errors. These are the python lines :

     

     poppler_path = r”C:\*****\*****\*****\Release-23.08.0-0.zip\poppler-23.08.0\Library\bin”

    # import module
    from pdf2image import convert_from_path
     
    # Store Pdf with convert_from_path function
    images = convert_from_path('poppler_path')
     
    for i in range(len(images)):
       
          # Save pages as images in the pdf
        images[i].save('page'+ str(i) +'.png', 'PNG')

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    What's the error that you get?

  • RookAils1 Profile Picture
    136 on at

    File "", line 1
    poppler_path = r”C:\*****\****\******\Release-23.08.0-0.zip\poppler-23.08.0\Library\bin”
    ^
    SyntaxError: invalid syntax

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Put the poppler module into a general modules path for all Python modules on your machine. Then provide the path to that modules folder here in your Run Python script action:

    Agnius_0-1696489362909.png

     

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