MERGE TWO PDFS IN POWER AUTOMATE USING ADOBE SERVICES
Welcome to this blog post, where we will be exploring how to merge two PDFs in Power Automate using Adobe services.
In today's digital age, working with PDF files has become an integral part of many business processes. Whether it's creating reports, sharing documents, or sending invoices, PDFs are widely used due to their ability to maintain document formatting across multiple platforms. However, managing multiple PDFs can sometimes be a tedious task, especially when it comes to merging them into a single document. Thankfully, with the help of Adobe services and Power Automate, merging PDFs has never been easier. In this blog post, we will guide you through the process of merging two PDFs in Power Automate using Adobe services, so you can streamline your workflow and save time. Let's get started.
Let’s create a flow that’s a bit more realistic. This flow will monitor a SharePoint folder for PDF files, and when one is found, it will merge it with a boilerplate legal document and then copy it to a destination folder. There will be three SharePoint resources involved:
(i) The folder that will be monitored (input)
(ii) The PDF with the boilerplate legal documents (legal.pdf)
(iii) An output folder (output) to store results.
1. It is an automated flow.
For the trigger, select “When a file is created in a folder” from SharePoint:
2. In the trigger, select a site and a folder to monitor.
3. Add a new step, and as before, select SharePoint “Get file content” step. The site will be the same as before, but for the file identifier, select x-ms-file-id from the trigger.
4. Next, add another step using “Get file content”, except this time select the legal PDF document.
5. At this point we’ve got two files from SharePoint — the newly updated one and the legal document. Next, add a “Merge PDFs” step again. For the name, use the x-ms-file-name-encoded value from the original trigger, and this time we can specify the content for both the first and second items to merge.
Now it’s important that the order is correct. For this demo, assume the legal text should go in front of the rest of the PDF. For your flow, you may want the opposite. Just keep in mind that the action is going to do what you tell it to do. For our flow, “Get file content 2” got the legal PDF. “Get file content” got the new PDF. Select the second one first and the first one second. Hopefully, that isn’t too confusing, but if you end up with a result that’s the reverse of what you want, that’s where you will want to check your work.
6. The final step is copying the result back up to SharePoint. Add a new step, and select “Create file” from the SharePoint section. After selecting the site and output folder, the file name and file content can both come from the Merge PDFs action:
7. Now, test the flow, drop a PDF in the input folder, and you’ll see your flow execute and save the merged result at the end.
We hope this tutorial has been helpful in guiding you through the process of merging two PDFs in Power Automate using Adobe services. By automating this process, you can save time and focus on other important tasks in your workflow.
For further queries or demo please comment below or contact us.
For any consultant/support work on O365/ development, contact us or visit our website www.sigilotech.com