Merge a list of PDFs (cross-platform)

Hello,

I am trying to use Merge PDFs to merge a list of PDFs. Is this possible?

It appears that the activity requres you to input each IResource variable individually and will not accept a list/enum. However my workflow will create lists of different sizes so I am unable to input the items one by one.

The PDFs to be merged are all being pulled from the same directory. All filenames will contain the same account number.

I am trying to avoid merging two at a time over a loop, as some of these lists will contain 40+ PDFs.

Hi @ra.systems

You can use Join PDF file activity. This activity comes under UiPath.PDF.Activities.

Input will the array(PDF files) and you can give output PDF file name.

image

Regards

Hi @ra.systems

Check the below thread.

In he above thread you will store all the PDF’s in a Array and pass that variable as Input to the Join PDF Files.

Regards

I apologize, I forgot to include that I am working in a cross-platform project. The Join PDF activity is not available, only Merge PDFs.

Hi @ra.systems

Please check the below video you can achieve the merging of files using cross platform.

Regards

Hi, in this instance they are adding each file separately to be merged. It does not indicate how I could add a list of files of variable length. I understand I could iterate over a loop, merging 2 files at a time, but I am looking for a simpler way as some of my merges will be 40+ files

Okay got it @ra.systems

Regards

@ra.systems,

Here is the simplest and working solution.

Merge PDF Cross Platform.zip (99.9 KB)

Thanks,
Ashok :slight_smile:

1 Like

Hi @ra.systems

please check the below flow:

Main.xaml (10.4 KB)

Regards

Thank you for providing the file! I missed this option to use a collection of files. I am posting it in case another user needs to see this!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.