"how to convert a multi-page pdf to single-page tiffs" Code Answer


be sure to have a recent version of ghostscript installed. then you can run these commands:

  -o singlepage-tiffg4-%03d.tif 


  -o singlepage-tiff24nc-%03d.tif 


  -o singlepage-tiff32nc-%03d.tif 

the commands will generate you 3 sets of tiff files. each set contains singlepage tiffs which carry names that contain an index numbers starting with 001:

ls -lt singlepage-tiff*.tif

 -rw-r--r--  1 kp  staff  161975 18 feb 15:49 singlepage-tiffg4-001.tif
 -rw-r--r--  1 kp  staff  169294 18 feb 15:49 singlepage-tiffg4-002.tif
 -rw-r--r--  1 kp  staff  167397 18 feb 15:49 singlepage-tiffg4-003.tif
 -rw-r--r--  1 kp  staff  190052 18 feb 15:49 singlepage-tiffg4-004.tif

if you have a lot of pdf pages per file, you can increase the number of digits/leading zeros to a higher number: use %05d to get a 5 digit numbering.

the three different commands generate different types of tiff:

  1. the tiffg4 ones are grayscale tiffs.
    they use a resolution of 204dpi by 196dpi (as the tiff g4 fax standard requires).
  2. the tiff24nc ones are in rgb color (with 8 bits per color component).
    they use a resolution of 72dpi by 72dpi.
  3. the tiff32nc ones are in cmyk color (with 8 bits per color).
    they also use a resolution of 72dpi.

all the resolution values for the tiff files result from ghostscript's default settings. if you want to override these, for example because you require 600dpi by 600dpi, just add


to any of the above command lines.

By Edward Karak on March 4 2022

Answers related to “how to convert a multi-page pdf to single-page tiffs”

Only authorized users can answer the Search term. Please sign in first, or register a free account.