Join PDF's files in a subfolders

Hello Everyone,

I hope all of you doing good!

I have a query, how I can Join PDF’s from subfolders, I mean I want the bot goes to a several folders enter a specific folder named “To be processed”, and then enter to every folder inside of this folder to join all the pdfs files it finds

Thanks a lot in advanced for any help !

@david.grijalba - you can do this in one step…

Use Join Pdf files activity…in the file list give the below code…

Directory.getfiles("To Be Processed \ ", “*.pdf”, searchoptions.alldirectories)

Provide the name for the merged pdf file and the folder name …

Hope this helps…

1 Like

Thanks a lot, but It did not work

@david.grijalba - what you have tried ? show us the workflow screenshot and the error…

Here is the sample from mine…

image

Above code will take all the files from Splitted folder based on the createtime and join them as “Final_Output_OrderBy.pdf”

hope this helps…