Convert a single PDF file igs.pdf to a TIFF file.
1. gs-sdevice=tiffg4-soutputfile=igs.tiff-dmaxstripsize=8192 igs.pdf
-dadjustwidth=true|false (Boolean; default = True)
If true, then if the requested page width was close to either A4 (1728 columns) or B4 (2048 columns), set the page width to A4 or B4 respectively.
Command 1. Auto-generated pixel size 1728x2292
2. Gs-q-r204x196-g1728x2156-dnopause-dbatch-dsafer-sdevice=tiffg4-soutputfile=igs1.tiff--Igs.pdf
Command 2. The pixel size is specified manually 1728x2156
Online has the saying:-r204x98 -g1728x1078 size file is the standard file?
Attention!!!
After testing, it is recommended to use the 1728x2292 size setting because 2156 cannot display the full PDF header.
Further check, this size is the standard A4 paper resolution.
The-r204x196-g1728x2292 parameter is equivalent to-SPAPERSIZE=A4.
3. Gs-q-r204x196-g1728x2156-dnopause-dbatch-dsafer-sdevice=tiffg3-soutputfile=igs2.tiff--Igs.pdf
The difference between commands 2 and 3:
The output of the fax compression format is different, the file size is different, here test the file result: Igs1.tiff size is about 5Kb, and Igs2.tiff is 24Kb.
Convert more than one PDF file to multiple TIFF files.
1. Gs-q-r204x196-g1728x2292-dnopause-dbatch-dsafer-sdevice=tiffg4-soutputfile=igs%d.tiff--Igs.pdf
Command 1. Multiple TIFF files generated by Igs1.tiff,igs2.tiff ...
2. Gs-q-r204x196-g1728x2292-dnopause-dbatch-dsafer-sdevice=tiffg4-soutputfile=igs%02d.tiff--Igs.pdf
Command 2. Multiple TIFF files generated by Igs01.tiff,igs02.tiff ...
Ghostscript Command Practice