How to Merge Pdf files in Power Automate Desktop?

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.

Power Automate Desktop merge pdf files

Step 1: Open Power Automate Desktop, provide the flow name, and click the Create button.

Power Automate Desktop merge selected pdf files 1

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.
How to merge pdf files in Microsoft Power Automate Desktop

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.
How to merge pdf files in Power Automate Desktop

Step 4: Now run the flow by clicking the run button; you can see the Merged files created in the folder.

Microsoft Power Automate Desktop merge pdf files

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.

merge selected pdf files in Power Automate Desktop 1

Step 1: Open Power Automate Desktop, provide the flow name, and click the Create button.

Power Automate Desktop merge selected pdf files

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.
How to merge selected pdf files in Power Automate Desktop

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.
How to merge selected pdf files in Microsoft Power Automate Desktop

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.
merge selected pdf files in Microsoft Power Automate Desktop

Step 5: Now run the flow by clicking on the run button; you can see the Merged files created in the folder.

merge selected pdf files in Power Automate Desktop

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:

>