How to convert multi-page PDF to single-page TIFF

This thread discusses how to convert multi-page PDF to multi-page TIFF with Ghostscript;

However, I want to hide a multi-page PDF file on several single-page TIFFs: each PDF page must be converted to a single TIFF file. So the answer above does not quite match what I need.

How can I achieve this?

I am using Windows XP.

+5
source share
1 answer

Make sure the latest version of Ghostscript is installed. Then you can run the following commands:

gs \ -o singlepage-tiffg4-%03d.tif \ -sDEVICE=tiffg4 \ multipage-input.pdf 

and

 gs \ -o singlepage-tiff24nc-%03d.tif \ -sDEVICE=tiff24nc \ multipage-input.pdf 

and

 gs \ -o singlepage-tiff32nc-%03d.tif \ -sDEVICE=tiff32nc \ multipage-input.pdf 

Teams will generate three sets of TIFF files. Each set contains single-page TIFFs that contain names containing 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 many PDF pages per file, you can increase the number of digits / leading zeros to a higher number: use %05d to get 5-digit numbering.

Three different commands generate different types of TIFF:

  • Tiffg4 are shades of gray TIFF.
    They use a resolution of 204dpi at 196dpi (as required by the TIFF G4 fax standard).
  • Tiff24nc have RGB color (with 8 bits per color component).
    They use a resolution of 72dpi by 72dpi.
  • Tiff32nc have CMYK color (with 8 bits per color).
    They also use a resolution of 72dpi.

All resolution values ​​for TIFF files are the result of the default settings for Ghostscript. If you want to override them, for example, because you need 600 dpi at 600 dpi, just add

 -r600x600 

to any of the above commands.

+5
source

All Articles