PDF JOIN ERROR

Hello,

I want to merge pdfs in order.

Example: my pdf list;

one.pdf
two.pdf
three.pdf

When I do “Directory.GetFiles” it gets mixed, not in order. How can I fix ?

it goes like this;

two.pdf
three.pdf
one.pdf

@d.ulutas

have a look on this workflow.
i hope it will help you.
steps->
1-> create a array of string and stores the path in it.
2-> sort the array
3-> pass the array element in for loop

Sequence.xaml (10.8 KB)

Invoke Metthod Error

@d.ulutas

as it shows value cant be null.
check that mylisy has conatins values

@d.ulutas

check this->


Sequence (2).xaml (11.3 KB)

look my friend

I’m running your example but it doesn’t work

50 at the end of the list, but at the very beginning in the folder

a

I’ve been looking for 3 days but I couldn’t fix it.

@d.ulutas

You can also use the linq Quey for filteration
query-> MYArray.OrderByDescending(Function(x) x).Reverse

Sequence.xaml (11.2 KB)