Command line utility for windows to convert multiple JPG images to one PDF
Usage: img2pdf.exe OPTIONS -i FILEIN [-i FILEIN2 ...] -o FILEOUT
Convert FILEIN image (JPEG only, support wildcards *.jpg) to FILEOUT (PDF Only)
-i, Specify image source (JPEG, wildcards allowed)
-o, Specify file destination (PDF)
-f, If specified fit the image to page keeping aspect ratio otherwise fill page
-s, Specifiy a PDF page size, default A4 (LETTER,LEGAL,A3,A4,A5,B5,EXECUTIVE,US4x6,US4x8,US5x7,COMM10)
-d, Specifiy a PDF page direction, default PORTRAIT (PORTRAIT or LANDSCAPE). Applicable only is a size is provided.
-u, Specifiy this help then exit
Examples:
Img2Pdf.exe -i test.jpg -o test.pdf
Img2Pdf.exe -i test01.jpg -i test02.jpg -o test.pdf
Img2Pdf.exe -i first.jpg -i test*.jpg -i last.jpg -o test.pdf -s A4 -d LANDSCAPE -f
复制代码
- convert -page A4 *.png out.pdf
复制代码
- gm convert -page A4 *.png out.pdf
欢迎光临 批处理之家 (http://www.bathome.net/) | Powered by Discuz! 7.2 |