Skip to main content

Notifications

Community site session details

Community site session details

Session Id : aKXdF9/6cFlA3gKJ3XhZZ6
Power Automate - Power Automate Desktop
Unanswered

Batch convert/combine images to pdf

Like (2) ShareShare
ReportReport
Posted on 13 Apr 2025 09:33:27 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
Categories:
  • CU13040901-0 Profile Picture
    2 on 18 Apr 2025 at 12:13:24
    Batch convert/combine images to pdf
    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
     
     
  • Nived_Nambiar Profile Picture
    17,585 Super User 2025 Season 1 on 16 Apr 2025 at 03:07:00
    Batch convert/combine images to pdf
     
    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!

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Power Automate Desktop

#1
eetuRobo Profile Picture

eetuRobo 18 Super User 2025 Season 1

#2
Nived_Nambiar Profile Picture

Nived_Nambiar 14 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 6

Overall leaderboard
Loading started