Merge multiple jpg into single pdf in Linux

后端 未结 6 1841
南旧
南旧 2021-01-30 02:25

I used the following command to convert and merge all the jpg files in a directory to a single pdf file.

convert *.jpg file.pdf

Th

6条回答
  •  -上瘾入骨i
    2021-01-30 02:37

    Or just read the ls manual and see :

    -v natural sort of (version) numbers within text

    So, doing what we need in single command.

    convert `ls -v *.jpg` foobar.pdf
    

    Have fun ;) F.

提交回复
热议问题