参考如下脚本:

#!/bin/sh
str="";
count=0;
for i in *.png; do
    echo $i;
    count=$(($count + 1));
    str="$str $count.pdf";
    mudraw -F pdf -o $count.pdf "$i";
done
gs -q -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=final.pdf -dBATCH $str


Logo

更多推荐