cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
LabheshPower
Frequent Visitor

Power Automate Desktop - PDF Merge Functionality - Need logic to merge PDF

Hello Team, 

 

I need your help with a logic to merge muliple PDF files based on a condition and below is the scenario. 

LabheshPower_0-1617976550114.png

 

 

I have a list of PDF files each 1 page report, a Total of 200 PDF files in a single Folder.

 

There are few PDF which report content is extended to next file or next file, which means that all PDF are not for single report. There are scenarios where merging 2 or 3 PDF together will make a single client file.  And that is where I need help with logic to apply.

 

These are PDF files

LabheshPower_1-1617976924559.png

 

In Power Automate Desktop, I need a logic by which I should be able to Merge

1) File 5 and 6 PDF

2) File 9, 10 and 11 PDF

 

Currently I am using Files in Folder loop, and able to navigate to each file 1 by 1, but I am unable to find a logic by where In that file folder loop, I can merge current and next file as well. 

 

Power automate provide a feature to merge 2 files, but how to implement that logic is  a key? 

LabheshPower_2-1617977114820.png

 

 Kindly help, if you can.

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
fraenK
Memorable Member
Memorable Member

So the condition is "no footer" in the filename?

Then you just check in the loop if the next filename(s) in the list contain the text until there isn't.

Use the resulting list as an input for merge pdf.

Set you list counter variable to the next not used PDF file in the main list. 

View solution in original post

LabheshPower
Frequent Visitor

 let me give more info. 

LabheshPower_0-1618272940182.png

 

LabheshPower_1-1618272987214.png

 

View solution in original post

2 REPLIES 2
fraenK
Memorable Member
Memorable Member

So the condition is "no footer" in the filename?

Then you just check in the loop if the next filename(s) in the list contain the text until there isn't.

Use the resulting list as an input for merge pdf.

Set you list counter variable to the next not used PDF file in the main list. 

View solution in original post

LabheshPower
Frequent Visitor

 let me give more info. 

LabheshPower_0-1618272940182.png

 

LabheshPower_1-1618272987214.png

 

View solution in original post

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Users online (63,509)