pdfsam icon indicating copy to clipboard operation
pdfsam copied to clipboard

[Improvements] Follow the order how the files get selected

Open chucklu opened this issue 1 year ago • 5 comments

I have two file, such as 001.pdf and 002.pdf. I select these two files with ctrl button, and 002.pdf goes first and 001.pdf later. I suppose to merge these two files with the same order as the order they get selected, however the program did not follow the select order, just order it by name by default (always 001.pdf first and 002.pdf second). I have to manually adjust the order after they are loaded to the list.

chucklu avatar Jul 11 '22 10:07 chucklu

Can you tell me your OS and can you try the latest PDFsam Basic version? I'm not able to reproduce this..

torakiki avatar Oct 30 '23 13:10 torakiki

@torakiki Previously I am using 4.3.0, and the OS version is win10 22H2.

I downloaded PDFsam 5.1.3 today, the same issue still exists. You can check the screenshot below, 2023-1007 was selected first, but it was listed as second image image

chucklu avatar Oct 31 '23 03:10 chucklu

also tried file name with 001.pdf and 002.pdf, still the same issue select the 002.pdf first, then 001.pdf image image

chucklu avatar Oct 31 '23 03:10 chucklu

So you are clicking Add and in the file chooser you select 002.pdf and then 001.pdf keeping the CTRL button pressed, correct? I don't think there is much I can do in that case, I get the order of the files from the JavaFX framework and I don't think I have a mean to figure what was selected first. Moreover I see from your screenshot that the OS file chooser already has 001.pdf first and then 002.pdf so it probably tracks back to the OS and not JavaFX. I'll investigate a bit and make some test but it doesn't seem something I can fix.

torakiki avatar Oct 31 '23 07:10 torakiki

It's weird, I tried with three pdf file, even if I selected in order 123 However I got "003.pdf" "001.pdf" "002.pdf" , the expected should be "003.pdf" "002.pdf" "001.pdf" image

when I tried order 321 It's correct in dialog selection image

It seems the windows OS does not respect the select order When I select multiple files in the File Open dialog, why does the last item come first? My case is more complicated, not sure why select 123 but get 213("003.pdf" "001.pdf" "002.pdf" ), the later is the first

chucklu avatar Oct 31 '23 08:10 chucklu