I have a directory with lots of PDFs that have spaces in their file names.
file 1.pdf
file 2.pdf
file 3.pdf
# And so on
I ran this command in that directory.
pdftk `ls -v` cat output combined-report.pdf
But the terminal spat out a bunch of errors like this.
Error: Unable to find file.
Error: Failed to open PDF file:
file
Error: Unable to find file.
Error: Failed to open PDF file:
1.pdf
How do I combine the PDFs using pdftk
or any other package in Arch Linux? To clarify, I want to combine the files in the order printed by ls -v