Blame man/tiff2pdf.1

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