[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖

[格式转换] 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 21:09 编辑

或者用以下两个:

  • ImageMagick 中的 convert.exe:
    (注:ImageMagick 不支持中文文件名。)
    1. convert -page A4 *.png out.pdf
    复制代码
  • GraphicsMagick
    1. gm convert -page A4 *.png out.pdf
    复制代码

TOP

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

我测试不支持中文路径和文件名,不支持有空格路径,老大是吗》?

TOP

楼主辛苦了

TOP

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

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

TOP

返回列表