Blame man/tiff2pdf.1

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