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 / Batch convert/combine ...
Power Automate
Unanswered

Batch convert/combine images to pdf

(1) ShareShare
ReportReport
Posted on by 2
Hello everyone, 
 
I'm new to PAD, and recently I've been trying to combine scanned images from books into pdf using PAD. 
 
So far, I have had no problem batch renaming. Then I looked up on the internet and was suggested with several manners to convert/combine these jpegs into PDFs. The images are stored in folders according to the chapters and all folders into another folder. I used to combine these images into single PDF using acrobat. My current idea is to use a for each loop to print all the jpegs into PDFs. Then use the merge command to combine.
 
My flow was designed as the following:
1. Set default printer to Microsoft Print to PDF
2. Get subfolders in folder
3. For each subfolder, get files
4. For each file, Print
--------------------------------------------------------
Here's where the problem is: The Print Picture dialog never appeared at the current step, despite long waiting, it only appeared when the loop runs again(I tried to disable all the other additional UI controls to keep the flow simple and got to this conclusion). Also the first image seemed to be skipped for some reason, while the second image was printed twice. These printing dialogs would be spontaneously closed after all the loops were completed. If the UI waiting is enabled, the loop would just send an error after waiting for like 20 seconds since that the printing dialog could only appear after passing the End of the loop where Print was included. I also tried to exit loop but no good. Tried on two computers, Win10 and Win11, got the same result. The folders and files seemed to be retrieved correctly. 
-------------------------------------------------------- 
5. Wait for 5 seconds (some suggested to add this in case the Print Pictures window appears slow, also tried to set the run delay to 700ms)
6. Wait for window (wait for the Print Pictures printing dialog to pop up)
7. Uncheck fit picture to frame
8. Click Print
9. Wait for Save As window to appear
10. Populate the path
11. Populate the file name
 
Many thanks in advance if anyone could help me identify the problem. 
 
Here's a screenshot of my workflow
 
 
Correctly retrieved files
 
Loop also seemed to work
I have the same question (0)
  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at
     
    So the problem is that print dialog box is not appearing for first document, but it is coming for second, third etc. 
     
    Can you test with simple flow whether for a single document - it is appearing ? 
     

    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!

  • CU13040901-0 Profile Picture
    2 on at
    Thanks for the reply. 
     
    This did not work either, the dialog didn't appear. However I got what I wanted by creating a blank HTML document that holds the pictures and printed it via sending hot keys to browsers.
     
    Thanks
     
     

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

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard