In this Power Automate desktop tutorial, I will show you how to merge PDF files in Power Automate Desktop. Also, we will see how to merge selected PDF files in Power Automate Desktop.
Here, we will cover the topics below:
- Merge all PDF files from a folder in Power Automate Desktop
- Selected pdf files from a folder in Power Automate Desktop
How to merge PDF files in Power Automate Desktop
Here, we will see how to merge all PDF files in Power Automate Desktop.
For example, we have 2 pdf files i.e. info1 and info2, in the local desktop folder like below. We will use the ‘Merge pdf files action’ to merge these pdf files, then save these Merged files in the folder Output on the local desktop.
Step 1: Open Power Automate Desktop, provide the flow name, and click the Create button.
Step 2: Now we will get all files in a folder, so expand the Folder section -> drag and drop the Get files in folder action. Then provide the below information:
- Folder: Select the folder by clicking on the folder icon.
Step 3: Now we will merge the pdf files, so expand the pdf section, then drag and drop the Merge Pdf file action. Then, provide the information below.
- PDF files: Click on variable icon {x}, select Files, and click Save.
- Merged PDF paths: Here, provide the folder path to store the Merged file.
Step 4: Now run the flow by clicking the run button; you can see the Merged files created in the folder.
This is how to merge PDF files in Power Automate Desktop.
How to merge selected PDF files in Power Automate Desktop
Here, we will see how to merge selected PDF files in Power Automate Desktop.
For example, in a folder, we have 4 PDF files: info 1. pdf, info 2.pdf, info 3.pdf, and info 4. pdf. From these, 4 files, we will select info 1, info 2, and info 3, then merge this file and save it.
Step 1: Open Power Automate Desktop, provide the flow name, and click the Create button.
Step 2. Now we will select pdf files, which we want to merge, for Expand the Message box section -> then drag and drop the ‘Display select file dialog’ action. Then, provide the information below.
- Dialog title: Provide the title like below.
- Initial folder: Provide the initial folder, from where you want to merge files
- Allow multiple selections: Enable allow multiple selections.
Step 3: Now we want to reverse list, because the output of the list of files we selected in the select files dialog is in the reverse order from where we selected them. We add a Reverse list action to the %SelectedFiles% list to change this behavior.
For this, expand the variable section -> then drag and drop the Reverse list action. Then provide the below information:
- List to reverse: Click on the variable icon {x} -> select the ‘SelectedFiles’ and click on Save.
Step 4: Now we will merge the pdf files, so expand the pdf section, then drag and drop the Merge Pdf file action. Then, provide the information below.
- PDF files: Click on variable icon {x}, select Files, and click Save.
- Merged PDF paths: Here, provide the path of the folder where you store the Merged file.
Step 5: Now run the flow by clicking on the run button; you can see the Merged files created in the folder.
This is how to merge selected PDF files in Power Automate Desktop.
Conclusion
In this Power Automate Desktop tutorial, we saw how to merge PDF files in Power Automate. Also, we saw how to merge selected PDF files in Power Automate Desktop.
You may also like the following tutorials:
- Extract substring from text using Power Automate Desktop
- Power Automate Desktop format date
- Power Automate Desktop loop through Excel rows
- How to get an item from a list using Power Automate Desktop?
I am Bijay a Microsoft MVP (10 times – My MVP Profile) in SharePoint and have more than 17 years of expertise in SharePoint Online Office 365, SharePoint subscription edition, and SharePoint 2019/2016/2013. Currently working in my own venture TSInfo Technologies a SharePoint development, consulting, and training company. I also run the popular SharePoint website EnjoySharePoint.com