Blame man/tiff2ps.1

Packit 994f1a
.\" $Id: tiff2ps.1,v 1.9.2.2 2009-08-20 18:40:33 bfriesen Exp $
Packit 994f1a
.\"
Packit 994f1a
.\" Copyright (c) 1988-1997 Sam Leffler
Packit 994f1a
.\" Copyright (c) 1991-1997 Silicon Graphics, Inc.
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 names of
Packit 994f1a
.\" Sam Leffler and Silicon Graphics may not be used in any advertising or
Packit 994f1a
.\" publicity relating to the software without the specific, prior written
Packit 994f1a
.\" permission of Sam Leffler and Silicon Graphics.
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 SAM LEFFLER OR SILICON GRAPHICS 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
.ds Ps PostScript
Packit 994f1a
.if n .po 0
Packit 994f1a
.TH TIFF2PS 1 "November 2, 2005" "libtiff"
Packit 994f1a
.SH NAME
Packit 994f1a
tiff2ps \- convert a
Packit 994f1a
.SM TIFF
Packit 994f1a
image to \*(Ps\*(Tm
Packit 994f1a
.SH SYNOPSIS
Packit 994f1a
.B tiff2ps
Packit 994f1a
[
Packit 994f1a
.I options
Packit 994f1a
]
Packit 994f1a
.I "input.tif ..."
Packit 994f1a
.SH DESCRIPTION
Packit 994f1a
.I tiff2ps
Packit 994f1a
reads
Packit 994f1a
.SM TIFF
Packit 994f1a
images and writes \*(Ps or Encapsulated \*(Ps (EPS)
Packit 994f1a
on the standard output.
Packit 994f1a
By default,
Packit 994f1a
.I tiff2ps
Packit 994f1a
writes Encapsulated \*(Ps for the first image in the specified
Packit 994f1a
.SM TIFF
Packit 994f1a
image file.
Packit 994f1a
.PP
Packit 994f1a
By default,
Packit 994f1a
.I tiff2ps
Packit 994f1a
will generate \*(Ps that fills a printed area specified
Packit 994f1a
by the 
Packit 994f1a
.SM TIFF
Packit 994f1a
tags in the input file.
Packit 994f1a
If the file does not contain
Packit 994f1a
.I XResolution
Packit 994f1a
or
Packit 994f1a
.I YResolution
Packit 994f1a
tags, then the printed area is set according to the image dimensions.
Packit 994f1a
The
Packit 994f1a
.B \-w
Packit 994f1a
and
Packit 994f1a
.B \-h
Packit 994f1a
options (see below)
Packit 994f1a
can be used to set the dimensions of the printed area in inches;
Packit 994f1a
overriding any relevant
Packit 994f1a
.SM TIFF
Packit 994f1a
tags.
Packit 994f1a
.PP
Packit 994f1a
The \*(Ps generated for
Packit 994f1a
.SM RGB,
Packit 994f1a
palette, and
Packit 994f1a
.SM CMYK
Packit 994f1a
images uses the
Packit 994f1a
.I colorimage
Packit 994f1a
operator.
Packit 994f1a
The \*(Ps generated for
Packit 994f1a
greyscale and bilevel images
Packit 994f1a
uses the
Packit 994f1a
.I image
Packit 994f1a
operator.
Packit 994f1a
When the
Packit 994f1a
.I colorimage
Packit 994f1a
operator is used, \*(Ps code to emulate this operator
Packit 994f1a
on older \*(Ps printers is also generated.
Packit 994f1a
Note that this emulation code can be very slow.
Packit 994f1a
.PP
Packit 994f1a
Color images with associated alpha data are composited over
Packit 994f1a
a white background.
Packit 994f1a
.SH OPTIONS
Packit 994f1a
.TP
Packit 994f1a
.B \-1
Packit 994f1a
Generate \*(Ps Level 1 (the default).
Packit 994f1a
.TP
Packit 994f1a
.B \-2
Packit 994f1a
Generate \*(Ps Level 2.
Packit 994f1a
.TP
Packit 994f1a
.B \-3
Packit 994f1a
Generate \*(Ps Level 3. It basically allows one to use the /flateDecode
Packit 994f1a
filter for ZIP compressed TIFF images.
Packit 994f1a
.TP
Packit 994f1a
.B \-a
Packit 994f1a
Generate output for all IFDs (pages) in the input file.
Packit 994f1a
.TP
Packit 994f1a
.B \-b
Packit 994f1a
Specify the bottom margin for the output (in inches). This does not affect
Packit 994f1a
the height of the printed image.
Packit 994f1a
.TP
Packit 994f1a
.B \-c
Packit 994f1a
Center the image in the output. This option only shows an effect if both
Packit 994f1a
the
Packit 994f1a
.B \-w
Packit 994f1a
and the
Packit 994f1a
.B \-h
Packit 994f1a
option are given.
Packit 994f1a
.TP
Packit 994f1a
.B \-d
Packit 994f1a
Set the initial
Packit 994f1a
.SM TIFF
Packit 994f1a
directory to the specified directory number.
Packit 994f1a
(NB: Directories are numbered starting at zero.)
Packit 994f1a
This option is useful for selecting individual pages in a
Packit 994f1a
multi-page (e.g. facsimile) file.
Packit 994f1a
.TP
Packit 994f1a
.B \-e
Packit 994f1a
Force the generation of Encapsulated \*(Ps (implies
Packit 994f1a
.BR \-z ).
Packit 994f1a
.TP
Packit 994f1a
.B \-h
Packit 994f1a
Specify the vertical size of the printed area (in inches).
Packit 994f1a
.TP
Packit 994f1a
.B \-H
Packit 994f1a
Specify the maximum height of image (in inches). Images with larger sizes will
Packit 994f1a
be split in several pages. Option
Packit 994f1a
.B \-L
Packit 994f1a
may be used for specifying size of split images overlapping.
Packit 994f1a
.TP
Packit 994f1a
.B \-W
Packit 994f1a
Specify the maximum width of image (in inches). Images with larger sizes will
Packit 994f1a
be split in several pages. Options
Packit 994f1a
.B \-L
Packit 994f1a
and 
Packit 994f1a
.B \-W
Packit 994f1a
are mutually exclusive.
Packit 994f1a
.B \-i
Packit 994f1a
Enable/disable pixel interpolation.  This option requires a
Packit 994f1a
single numeric value: zero to disable pixel interpolation and
Packit 994f1a
non-zero to enable.  The default is enabled.
Packit 994f1a
.TP
Packit 994f1a
.B \-L
Packit 994f1a
Specify the size of overlapping for split images (in inches). Used in
Packit 994f1a
conjunction with
Packit 994f1a
.B \-H
Packit 994f1a
option.
Packit 994f1a
.TP
Packit 994f1a
.B \-l
Packit 994f1a
Specify the left margin for the output (in inches). This does not affect
Packit 994f1a
the width of the printed image.
Packit 994f1a
.TP
Packit 994f1a
.B \-m
Packit 994f1a
Where possible render using the
Packit 994f1a
.I imagemask
Packit 994f1a
\*(Ps operator instead of the
Packit 994f1a
.I image
Packit 994f1a
operator.  When this option is specified
Packit 994f1a
.I tiff2ps
Packit 994f1a
will use
Packit 994f1a
.I imagemask
Packit 994f1a
for rendering 1 bit deep images.  If this option is not specified
Packit 994f1a
or if the image depth is greater than 1 then the
Packit 994f1a
.I image
Packit 994f1a
operator is used.
Packit 994f1a
.TP
Packit 994f1a
.B \-o
Packit 994f1a
Set the initial
Packit 994f1a
.SM TIFF
Packit 994f1a
directory to the
Packit 994f1a
.SM IFD
Packit 994f1a
at the specified file offset.
Packit 994f1a
This option is useful for selecting thumbnail images and the
Packit 994f1a
like which are hidden using the
Packit 994f1a
.I SubIFD
Packit 994f1a
tag.
Packit 994f1a
.TP
Packit 994f1a
.B \-p
Packit 994f1a
Force the generation of (non-Encapsulated) \*(Ps.
Packit 994f1a
.TP
Packit 994f1a
.B \-r
Packit 994f1a
Rotate image by 180 degrees.
Packit 994f1a
.TP
Packit 994f1a
.B \-s
Packit 994f1a
Generate output for a single IFD (page) in the input file.
Packit 994f1a
.TP
Packit 994f1a
.B \-w
Packit 994f1a
Specify the horizontal size of the printed area (in inches).
Packit 994f1a
.TP
Packit 994f1a
.B \-x
Packit 994f1a
Override resolution units specified in the TIFF as centimeters.
Packit 994f1a
.TP
Packit 994f1a
.B \-y
Packit 994f1a
Override resolution units specified in the TIFF as inches.
Packit 994f1a
.TP
Packit 994f1a
.B \-z
Packit 994f1a
When generating \*(Ps Level 2, data is scaled so that it does not
Packit 994f1a
image into the 
Packit 994f1a
.I deadzone
Packit 994f1a
on a page (the outer margin that the printing device is unable to mark).
Packit 994f1a
This option suppresses this behavior.
Packit 994f1a
When \*(Ps Level 1 is generated, data is imaged to the entire printed
Packit 994f1a
page and this option has no affect.
Packit 994f1a
.SH EXAMPLES
Packit 994f1a
The following generates \*(Ps Level 2 for all pages of a facsimile:
Packit 994f1a
.RS
Packit 994f1a
.nf
Packit 994f1a
tiff2ps \-a2 fax.tif | lpr
Packit 994f1a
.fi
Packit 994f1a
.RE
Packit 994f1a
Note also that if you have version 2.6.1 or newer of Ghostscript then you
Packit 994f1a
can efficiently preview facsimile generated with the above command.
Packit 994f1a
.PP
Packit 994f1a
To generate Encapsulated \*(Ps for a the image at directory 2
Packit 994f1a
of an image use:
Packit 994f1a
.RS
Packit 994f1a
.nf
Packit 994f1a
tiff2ps \-d 1 foo.tif
Packit 994f1a
.fi
Packit 994f1a
.RE
Packit 994f1a
(Notice that directories are numbered starting at zero.)
Packit 994f1a
.PP
Packit 994f1a
If you have a long image, it may be split in several pages:
Packit 994f1a
.RS
Packit 994f1a
.nf
Packit 994f1a
tiff2ps \-h11 \-w8.5 \-H14 \-L.5 foo.tif > foo.ps
Packit 994f1a
.fi
Packit 994f1a
.RE
Packit 994f1a
The page size is set to 8.5x11 by
Packit 994f1a
.B \-w
Packit 994f1a
and
Packit 994f1a
.B \-h
Packit 994f1a
options. We will accept a small amount of vertical compression, so
Packit 994f1a
.B \-H
Packit 994f1a
set to 14. Any pages between 11 and 14 inches will be fit onto one page.
Packit 994f1a
Pages longer than 14 inches are cut off at 11 and continued on the next
Packit 994f1a
page. The
Packit 994f1a
.B \-L.5
Packit 994f1a
option says to repeat a half inch on the next page (to improve readability).
Packit 994f1a
.SH BUGS
Packit 994f1a
Because \*(Ps does not support the notion of a colormap,
Packit 994f1a
8-bit palette images produce 24-bit \*(Ps images.
Packit 994f1a
This conversion results in output that is six times
Packit 994f1a
bigger than the original image and which takes a long time
Packit 994f1a
to send to a printer over a serial line.
Packit 994f1a
Matters are even worse for 4-, 2-, and 1-bit palette images.
Packit 994f1a
.PP
Packit 994f1a
Does not handle tiled images when generating \*(Ps Level I output.
Packit 994f1a
.SH "SEE ALSO"
Packit 994f1a
.BR pal2rgb (1),
Packit 994f1a
.BR tiffinfo (1),
Packit 994f1a
.BR tiffcp (1),
Packit 994f1a
.BR tiffgt (1),
Packit 994f1a
.BR tiffmedian (1),
Packit 994f1a
.BR tiff2bw (1),
Packit 994f1a
.BR tiffsv (1),
Packit 994f1a
.BR libtiff (3)
Packit 994f1a
.PP
Packit 994f1a
Libtiff library home page:
Packit 994f1a
.BR http://www.remotesensing.org/libtiff/