Convert PDF to TIFF (TIF)Tag(s): Misc Prog HowTo


Using Ghostscript.
gswin32c -q -dNOPAUSE -dBATCH -sDEVICE=tiffg4  -r300x300 -sOutputFile=test.tif test.pdf
Note : Replace gswin3c for gs in Unix.

The resulting TIF is a little bit bigger than the original PDF. You play with the "-r" (resolution) to achieve a better look while keeping the size reasonable!

The above command line will produce a single tiff with multiple pages.

To produce one TIFF for each PDF page :

gswin32c -q -dNOPAUSE -dBATCH -sDEVICE=tiffg4  -r300x300 -sOutputFile=test-%03d.tif test.pdf
The resulting TIF files will be named : test-0001.tif, test-0002.tif, ...

Note : In a Windows command file, you need to double the % , -sOutputFile=test-%03d.tif should be -sOutputFile=test-%%03d.tif.


blog comments powered by Disqus