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
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
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)
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
I’ve been looking for 3 days but I couldn’t fix it.
You can also use the linq Quey for filteration
query-> MYArray.OrderByDescending(Function(x) x).Reverse
Sequence.xaml (11.2 KB)