How can I merge 2 Pdf files and created a loop

How can I merge 2 Pdf files and created a loop?

I would be really grateful if anyone can help.

Thanks

Hi @Raks_K

Use Join PDF Files activity

image

Cheers!!

@Raks_K,

Try this way. If you have all PDF files in a single folder

image

Code:

Merge PDF.zip (147.3 KB)

Thanks,
Ashok :slight_smile:

One file is in one path, other is in another.

After merging I also have to rename those files

@Raks_K,

In that case just collect all the file paths into an array of string. So whatever your logic to find the file to merge, if the need to merge, add it to array of file names using this code.

arrFiles=arrFiles.Concat("To be merge file path").ToArray()

For this use same array you have used for merging files to rename the files like this.

image

Code for reference:
Merge PDF.zip (147.9 KB)

Thanks,
Ashok :slight_smile:

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