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