Hello,
I have multiple pdf files in each sub folders.
Is that possible to merge and save in same path.
Any idea .
Hello,
I have multiple pdf files in each sub folders.
Is that possible to merge and save in same path.
Any idea .
Hi,
Can you try Join PDF File activity as the following?
https://docs.uipath.com/activities/docs/join-pdf-files
System.IO.Directory.GetFiles("c:\temp","*.pdf",searchOption.AllDirectories)
, for example.Regards,
Thanks you.
It’s working now.
It’s merging all the pdf in sub folders.
I need merging files separately based on sub folders.
Fine,
In that case use the below steps if you want to process the files only in sub folders
arr1 = Directory.GetFiles(“your folderpath”, “*.pdf”)
Where arr1 is a array of string variable
arr2 = Directory.GetFiles(“your folderpath”, “*.pdf”, SearchOption.AllDirectories)
Where arr2 is a array of string variable
Final_arr = arr2.Except(arr1).ToArray()
This will give the pdf only inside the sub folders
Where Final_arr is a array of string variable
Cheers @rak95561
Using studio X how to merge pdf files at time in multiple sub folders
I would like to suggest avoid creating multiple topics on same note
Pls use this topic to discuss further
Have a great day @rak95561
I’m getting error when try to join pdf files
Please see the below screnshot.
I need to mearge all the pdfs in current folder.
Hi,
Try using below expression. Thanks.
Directory.Getfiles(CurrentFolder,“*.pdf”)
Thank you it’s working bu need to save the results in same path.
Is that possible