Board logo

标题: [格式转换] Img2Pdf.exe - jpg 转 pdf [打印本页]

作者: tmplinshi    时间: 2013-4-20 20:33     标题: Img2Pdf.exe - jpg 转 pdf

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


------------------------
官网: https://sites.google.com/site/sebastiendejean/img2pdf-full
------------------------
http://bcn.bathome.net/s/tool/index.html?key=Img2Pdf
作者: tmplinshi    时间: 2013-4-20 20:49

本帖最后由 tmplinshi 于 2013-4-20 21:09 编辑

或者用以下两个:

作者: huyaowen    时间: 2013-4-21 15:20

本帖最后由 huyaowen 于 2013-4-21 15:21 编辑

我测试不支持中文路径和文件名,不支持有空格路径,老大是吗》?
作者: PCL326023    时间: 2014-10-25 11:47

楼主辛苦了
作者: 523066680    时间: 2014-10-25 23:27

如果装了Inkscape , 也可以用inkscape.exe转换图片或者矢量图到PDF

例如 "c:\program files\inkscape\inkscape.exe" -f a.bmp --export-pdf=new.pdf
不过会弹窗提示要嵌入还是链接图片




欢迎光临 批处理之家 (http://www.bathome.net/) Powered by Discuz! 7.2