roentgen b75cab
.\" $Id: tiff2pdf.1,v 1.7 2010-12-11 22:47:49 faxguy Exp $
roentgen b75cab
.\" 
roentgen b75cab
.\"  Copyright (c) 2003 Ross Finlayson
roentgen b75cab
.\" 
roentgen b75cab
.\"  Permission to use, copy, modify, distribute, and sell this software and 
roentgen b75cab
.\"  its documentation for any purpose is hereby granted without fee, provided
roentgen b75cab
.\"  that (i) the above copyright notices and this permission notice appear in
roentgen b75cab
.\"  all copies of the software and related documentation, and (ii) the name of
roentgen b75cab
.\"  Ross Finlayson may not be used in any advertising or
roentgen b75cab
.\"  publicity relating to the software without the specific, prior written
roentgen b75cab
.\"  permission of Ross Finlayson.
roentgen b75cab
.\"  
roentgen b75cab
.\"  THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
roentgen b75cab
.\"  EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
roentgen b75cab
.\"  WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
roentgen b75cab
.\"  
roentgen b75cab
.\"  IN NO EVENT SHALL ROSS FINLAYSON BE LIABLE FOR
roentgen b75cab
.\"  ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
roentgen b75cab
.\"  OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
roentgen b75cab
.\"  WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
roentgen b75cab
.\"  LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
roentgen b75cab
.\"  OF THIS SOFTWARE.
roentgen b75cab
.\" 
roentgen b75cab
.\" Process this file with
roentgen b75cab
.\" groff -man -Tascii tiff2pdf.1
roentgen b75cab
.\"
roentgen b75cab
.TH TIFF2PDF 1 "April 20, 2006" "libtiff"
roentgen b75cab
.SH NAME
roentgen b75cab
tiff2pdf \- convert a TIFF image to a PDF document
roentgen b75cab
.SH SYNOPSIS
roentgen b75cab
.B tiff2pdf
roentgen b75cab
[
roentgen b75cab
.I options 
roentgen b75cab
] 
roentgen b75cab
.I input.tiff
roentgen b75cab
.SH DESCRIPTION
roentgen b75cab
.I tiff2pdf
roentgen b75cab
opens a TIFF image and writes a PDF document to standard output.
roentgen b75cab
.PP
roentgen b75cab
The program converts one TIFF file to one PDF file, including multiple page 
roentgen b75cab
TIFF files, tiled TIFF files, black and white. grayscale, and color TIFF 
roentgen b75cab
files that contain data of TIFF photometric interpretations of bilevel, 
roentgen b75cab
grayscale, RGB, YCbCr, CMYK separation, and ICC L*a*b* as supported by 
roentgen b75cab
.I libtiff 
roentgen b75cab
and PDF.
roentgen b75cab
.PP
roentgen b75cab
If you have multiple TIFF files to convert into one PDF file then use 
roentgen b75cab
.I tiffcp 
roentgen b75cab
or other program to concatenate the files into a multiple page TIFF file.  
roentgen b75cab
If the input TIFF file is of huge dimensions (greater than 10000 pixels height
roentgen b75cab
or width) convert the input image to a tiled TIFF if it is not already.
roentgen b75cab
.PP
roentgen b75cab
The standard output is standard output.  Set the output file name with the 
roentgen b75cab
.BI \-o " output.pdf"
roentgen b75cab
option.
roentgen b75cab
.PP
roentgen b75cab
All black and white files are compressed into a single strip CCITT G4 Fax
roentgen b75cab
compressed PDF, unless tiled, where tiled black and white images are
roentgen b75cab
compressed into tiled CCITT G4 Fax compressed PDF, 
roentgen b75cab
.I libtiff 
roentgen b75cab
CCITT support is assumed.
roentgen b75cab
.PP
roentgen b75cab
Color and grayscale data can be compressed using either JPEG compression,
roentgen b75cab
ITU-T T.81, or Zip/Deflate LZ77 compression.  Set the compression type using
roentgen b75cab
the 
roentgen b75cab
.B \-j
roentgen b75cab
or
roentgen b75cab
.B \-z
roentgen b75cab
options.  JPEG compression support 
roentgen b75cab
requires that 
roentgen b75cab
.I libtiff 
roentgen b75cab
be configured with JPEG support, and Zip/Deflate compression support requires
roentgen b75cab
that 
roentgen b75cab
.I libtiff 
roentgen b75cab
be configured with Zip support, in tiffconf.h.  Use only one or the other of 
roentgen b75cab
.B \-j
roentgen b75cab
and
roentgen b75cab
.B \-z.
roentgen b75cab
.PP
roentgen b75cab
If the input TIFF contains single strip CCITT G4 Fax compressed information, 
roentgen b75cab
then that is written to the PDF file without transcoding, unless the options 
roentgen b75cab
of no compression and no passthrough are set, 
roentgen b75cab
.B \-d
roentgen b75cab
and
roentgen b75cab
.B \-n.
roentgen b75cab
.PP
roentgen b75cab
If the input TIFF contains JPEG or single strip Zip/Deflate compressed 
roentgen b75cab
information, and they are configured, then that is written to the PDF file 
roentgen b75cab
without transcoding, unless the options of no compression and no passthrough 
roentgen b75cab
are set.
roentgen b75cab
.PP
roentgen b75cab
The default page size upon which the TIFF image is placed is determined by 
roentgen b75cab
the resolution and extent of the image data.  Default values for the TIFF 
roentgen b75cab
image resolution can be set using the
roentgen b75cab
.B \-x
roentgen b75cab
and
roentgen b75cab
.B \-y
roentgen b75cab
options.  The page size can be set using the
roentgen b75cab
.B \-p
roentgen b75cab
option for paper size, or
roentgen b75cab
.B \-w
roentgen b75cab
and
roentgen b75cab
.B \-l
roentgen b75cab
for paper width and length, then each page of the TIFF image is centered on
roentgen b75cab
its page.  The distance unit for default resolution and page width and
roentgen b75cab
length can be set by the
roentgen b75cab
.B \-u
roentgen b75cab
option, the default unit is inch.
roentgen b75cab
.PP
roentgen b75cab
Various items of the output document information can be set with the
roentgen b75cab
.BR \-e ,
roentgen b75cab
.BR \-c , 
roentgen b75cab
.BR \-a ,
roentgen b75cab
.BR \-t ,
roentgen b75cab
.BR \-s ,
roentgen b75cab
and
roentgen b75cab
.B \-k
roentgen b75cab
options.  Setting the argument of the option to "" for these 
roentgen b75cab
tags causes the relevant document information field to be not written.  Some 
roentgen b75cab
of the document information values otherwise get their information from the 
roentgen b75cab
input TIFF image, the software, author, document name, and image description.
roentgen b75cab
.PP
roentgen b75cab
The Portable Document Format (PDF) specification is copyrighted by Adobe 
roentgen b75cab
Systems, Incorporated.
roentgen b75cab
.SH OPTIONS
roentgen b75cab
.TP
roentgen b75cab
.BI \-o " output-file"
roentgen b75cab
Set the output to go to file.
roentgen b75cab
.I output-file
roentgen b75cab
.TP
roentgen b75cab
.B \-j  
roentgen b75cab
Compress with JPEG (requires
roentgen b75cab
.I libjpeg
roentgen b75cab
configured with
roentgen b75cab
.IR libtiff ).
roentgen b75cab
.TP
roentgen b75cab
.B \-z  
roentgen b75cab
Compress with Zip/Deflate (requires
roentgen b75cab
.I zlib
roentgen b75cab
configured with
roentgen b75cab
.IR libtiff ).
roentgen b75cab
.TP
roentgen b75cab
.BI \-q " quality"
roentgen b75cab
Set the compression quality, 1-100 for JPEG.
roentgen b75cab
.TP
roentgen b75cab
.B \-n
roentgen b75cab
Do not allow data to be converted without uncompressing, no compressed
roentgen b75cab
data passthrough.
roentgen b75cab
.TP
roentgen b75cab
.BI \-b
roentgen b75cab
Set PDF ``Interpolate'' user preference.
roentgen b75cab
.TP
roentgen b75cab
.B \-d  
roentgen b75cab
Do not compress (decompress).
roentgen b75cab
.TP
roentgen b75cab
.B \-i  
roentgen b75cab
Invert colors.
roentgen b75cab
.TP
roentgen b75cab
.BI \-p " paper-size"
roentgen b75cab
Set paper size, e.g.,
roentgen b75cab
.BR letter ,
roentgen b75cab
.BR legal ,
roentgen b75cab
.BR A4 .
roentgen b75cab
.TP
roentgen b75cab
.B \-F
roentgen b75cab
Cause the tiff to fill the PDF page.
roentgen b75cab
.TP
roentgen b75cab
.BR \-u " [" i | m ]
roentgen b75cab
Set distance unit,
roentgen b75cab
.B i
roentgen b75cab
for inch, 
roentgen b75cab
.B m
roentgen b75cab
for centimeter.
roentgen b75cab
.TP
roentgen b75cab
.BI \-w " width"
roentgen b75cab
Set width in units.
roentgen b75cab
.TP
roentgen b75cab
.BI \-l " length"
roentgen b75cab
Set length in units.
roentgen b75cab
.TP
roentgen b75cab
.BI \-x " xres"
roentgen b75cab
Set x/width resolution default.
roentgen b75cab
.TP
roentgen b75cab
.BI \-y " yres"
roentgen b75cab
Set y/length resolution default.
roentgen b75cab
.TP
roentgen b75cab
.BR \-r " [" d | o ]
roentgen b75cab
Set
roentgen b75cab
.B d
roentgen b75cab
for resolution default for images without resolution, 
roentgen b75cab
.B o
roentgen b75cab
for resolution override for all images.
roentgen b75cab
.TP
roentgen b75cab
.BI \-f
roentgen b75cab
Set PDF ``Fit Window'' user preference.
roentgen b75cab
.TP
roentgen b75cab
.BI \-e " YYYYMMDDHHMMSS"
roentgen b75cab
Set document information date, overrides image or current date/time default,
roentgen b75cab
.I YYYYMMDDHHMMSS.
roentgen b75cab
.TP
roentgen b75cab
.BI \-c " creator"
roentgen b75cab
Set document information creator, overrides image software default.
roentgen b75cab
.TP
roentgen b75cab
.BI \-a " author"
roentgen b75cab
Set document information author, overrides image artist default.
roentgen b75cab
.TP
roentgen b75cab
.BI \-t " title"
roentgen b75cab
Set document information title, overrides image document name default.
roentgen b75cab
.TP
roentgen b75cab
.BI \-s " subject"
roentgen b75cab
Set document information subject, overrides image image description default.
roentgen b75cab
.TP
roentgen b75cab
.BI \-k " keywords"
roentgen b75cab
Set document information keywords.
roentgen b75cab
.TP
roentgen b75cab
.B \-h  
roentgen b75cab
List usage reminder to stderr and exit.
roentgen b75cab
.SH EXAMPLES
roentgen b75cab
.TP
roentgen b75cab
The following example would generate the file output.pdf from input.tiff.
roentgen b75cab
.RS
roentgen b75cab
.nf
roentgen b75cab
tiff2pdf \-o output.pdf input.tiff
roentgen b75cab
.fi
roentgen b75cab
.RE
roentgen b75cab
.PP
roentgen b75cab
The following example would generate PDF output from input.tiff and write it 
roentgen b75cab
to standard output.
roentgen b75cab
.RS
roentgen b75cab
.nf
roentgen b75cab
tiff2pdf input.tiff
roentgen b75cab
.fi
roentgen b75cab
.RE
roentgen b75cab
.PP
roentgen b75cab
The following example would generate the file output.pdf from input.tiff, 
roentgen b75cab
putting the image pages on a letter sized page, compressing the output 
roentgen b75cab
with JPEG, with JPEG quality 75, setting the title to ``Document'', and setting 
roentgen b75cab
the ``Fit Window'' option.
roentgen b75cab
.RS
roentgen b75cab
.nf
roentgen b75cab
tiff2pdf \-p letter \-j \-q 75 \-t "Document" \-f \-o output.pdf input.tiff
roentgen b75cab
.fi
roentgen b75cab
.RE
roentgen b75cab
.SH BUGS
roentgen b75cab
Please report bugs via the web interface at 
roentgen b75cab
.IP
roentgen b75cab
\%http://bugzilla.remotesensing.org/enter_bug.cgi?product=libtiff
roentgen b75cab
.SH "SEE ALSO"
roentgen b75cab
.BR libtiff (3),
roentgen b75cab
.BR tiffcp (1), 
roentgen b75cab
.BR tiff2ps (1)
roentgen b75cab
.PP
roentgen b75cab
Libtiff library home page:
roentgen b75cab
.BR http://www.remotesensing.org/libtiff/