MAN page from Fedora 11 libtiff-3.8.2-15.fc11.x86_64.rpm


Section: User Commands (1)
Updated: November 2, 2005


tiff2pdf - convert a TIFF image to a PDF document 


tiff2pdf [options ] input.tiff 


tiff2pdfopens a TIFF image and writes a PDF document to standard output.

The program converts one TIFF file to one PDF file, including multiple page TIFF files, tiled TIFF files, black and white. grayscale, and color TIFF files that contain data of TIFF photometric interpretations of bilevel, grayscale, RGB, YCbCr, CMYK separation, and ICC L*a*b* as supported by libtiff and PDF.

If you have multiple TIFF files to convert into one PDF file then use tiffcp or other program to concatenate the files into a multiple page TIFF file. If the input TIFF file is of huge dimensions (greater than 10000 pixels heightor width) convert the input image to a tiled TIFF if it is not already.

The standard output is standard output. Set the output file name with the -ooutput.pdfoption.

All black and white files are compressed into a single strip CCITT G4 Faxcompressed PDF, unless tiled, where tiled black and white images arecompressed into tiled CCITT G4 Fax compressed PDF, libtiff CCITT support is assumed.

Color and grayscale data can be compressed using either JPEG compression,ITU-T T.81, or Zip/Deflate LZ77 compression. Set the compression type usingthe -jor-zoptions. JPEG compression support requires that libtiff be configured with JPEG support, and Zip/Deflate compression support requiresthat libtiff be configured with Zip support, in tiffconf.h. Use only one or the other of -jand-z.

If the input TIFF contains single strip CCITT G4 Fax compressed information, then that is written to the PDF file without transcoding, unless the options of no compression and no passthrough are set, -dand-n.

If the input TIFF contains JPEG or single strip Zip/Deflate compressed information, and they are configured, then that is written to the PDF file without transcoding, unless the options of no compression and no passthrough are set.

The default page size upon which the TIFF image is placed is determined by the resolution and extent of the image data. Default values for the TIFF image resolution can be set using the-xand-yoptions. The page size can be set using the-poption for paper size, or-wand-lfor paper width and length, then each page of the TIFF image is centered onits page. The distance unit for default resolution and page width andlength can be set by the-uoption, the default unit is inch.

Various items of the output document information can be set with the-e,-c, -a,-t,-s,and-koptions. Setting the argument of the option to "" for these tags causes the relevant document information field to be not written. Some of the document information values otherwise get their information from the input TIFF image, the software, author, document name, and image description.

The Portable Document Format (PDF) specification is copyrighted by Adobe Systems, Incorporated. 


Set the output to go to file output-file
Compress with JPEG (requires libjpeg configured with libtiff).
Compress with Zip/Deflate (requires zlib configured with libtiff).
Set the compression quality, 1-100 for JPEG.
Do not allow data to be converted without uncompressing, no compresseddata passthrough.
Set PDF "Interpolate" user preference.
Do not compress (decompress).
Invert colors.
Set paper size, eg "letter", "legal", "A4".
Set distance unit,ifor inch, mfor centimeter.
Set width in units.
Set length in units.
Set x/width resolution default.
Set y/length resolution default.
Setdfor resolution default for images without resolution, o for resolution override for all images.
Set PDF "Fit Window" user preference.
Set document information date, overrides image or current date/time default,YYYYMMDDHHMMSS.
Set document information creator, overrides image software default.
Set document information author, overrides image artist default
Set document information title, overrides image document name default
Set document information subject, overrides image image description default
Set document information keywords.
List usage reminder to stderr and exit.


The following example would generate the file output.pdf from input.tiff.

tiff2pdf -o output.pdf input.tiff

The following example would generate PDF output from input.tiff and write it to standard output.

tiff2pdf input.tiff

The following example would generate the file output.pdf from input.tiff, putting the image pages on a letter sized page, compressing the output with JPEG, with JPEG quality 75, setting the title to "Document", and setting the "Fit Window" option.

tiff2pdf -p letter -j -q 75 -t "Document" -f -o output.pdf input.tiff


Please report bugs via the web interface at



Libtiff library home page:




This document was created byman2html,using the manual pages.