One Line Script for Converting tiff to pdf files in Linux

Hi folks,

In this post I briefly talk about a one-line script to convert a number of tiff files to pdf files. This can be useful if you scan documents in tiff format and want to save them in pdf format for easy reading. Here it is

Suppose you have a few files 1.tiff, 2.tiff and 3.tiff and need to convert them to 1.pdf, 2.pdf and 3.pdf using the tiff2pdf library, here’s the command to do this on a terminal in Linux:

 

/bin/bash -c 'for i in 1 2 3; do tiff2pdf -o "$i.pdf" "$i.tiff"; done;'

That’s all for now.

Happy software development.

2 thoughts on “One Line Script for Converting tiff to pdf files in Linux”

Leave a Reply

Your email address will not be published. Required fields are marked *