[olug] convert tif to pdf

Ryan O'Rourke ryano at ch-gifts.com
Mon Sep 22 18:03:48 UTC 2003


Here's a "Linux Tip" for y'all.

Let's say you work in an office that uses lots of .tif document files
and you want to convert them to .pdf files.
In a directory full of tiffs you can do:

for i in *.tif; do convert $i `basename $i .tif`.ps; done
for i in *.ps; do ps2pdf $i `basename $i .ps`.pdf; done

This will first convert each tiff file to a postscript file of the same
name and finally convert each postscript file to a pdf, again keeping
the same original filename.

There is also a utility called "tiff2ps" that you can use to convert tif
to ps, but I've found that when the tif is multi-page you only end up
with the first page in your ps file. So "convert" seems to work a little
better.

-- Ryan





More information about the OLUG mailing list