Following command converts input.tiff file into pdf:

tiff2pdf −o output.pdf input.tiff

There are more than 100 tiff files in a directory. How to convert all those in one pdf file in a batch file?

tiff2pdf −o output.pdf input1.tiff input2.tiff... // ??


Update:

Libtiff's utility tiff2pdf does not support converting multiple files. I switched to ImageMagick and used following command to convert tiff files in one pdf.

gm.exe convert 1.tif 2.tif output.pdf

Question:

I have more than 100 files in a directory how to use this command in batch to convert all 100 files into pdf?

有帮助吗?

解决方案

gm.exe convert *.tif output.pdf

其他提示

You can also use tiffcp to combine multiple .tif files. And then use tiff2pdf to convert the combined file to .pdf

  1. $ tiffcp *.tif intermediate.tif
  2. $ tiff2pdf -o output.pdf intermediate.tif
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top