[olug] convert tif to pdf

Daniel Pfile daniel at pfile.net
Mon Sep 22 18:13:38 UTC 2003


Why not use convert's native pdf support?

On Monday, September 22, 2003, at 01:03 PM, Ryan O'Rourke wrote:

> 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
>
>
>
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> http://lists.olug.org/mailman/listinfo/olug



More information about the OLUG mailing list