Blame man/tiff2ps.1

Packit Service 2594b8
.\" $Id: tiff2ps.1,v 1.12 2016-09-25 20:05:51 bfriesen Exp $
Packit Service 2594b8
.\"
Packit Service 2594b8
.\" Copyright (c) 1988-1997 Sam Leffler
Packit Service 2594b8
.\" Copyright (c) 1991-1997 Silicon Graphics, Inc.
Packit Service 2594b8
.\"
Packit Service 2594b8
.\" Permission to use, copy, modify, distribute, and sell this software and 
Packit Service 2594b8
.\" its documentation for any purpose is hereby granted without fee, provided
Packit Service 2594b8
.\" that (i) the above copyright notices and this permission notice appear in
Packit Service 2594b8
.\" all copies of the software and related documentation, and (ii) the names of
Packit Service 2594b8
.\" Sam Leffler and Silicon Graphics may not be used in any advertising or
Packit Service 2594b8
.\" publicity relating to the software without the specific, prior written
Packit Service 2594b8
.\" permission of Sam Leffler and Silicon Graphics.
Packit Service 2594b8
.\" 
Packit Service 2594b8
.\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
Packit Service 2594b8
.\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
Packit Service 2594b8
.\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
Packit Service 2594b8
.\" 
Packit Service 2594b8
.\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
Packit Service 2594b8
.\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
Packit Service 2594b8
.\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
Packit Service 2594b8
.\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
Packit Service 2594b8
.\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
Packit Service 2594b8
.\" OF THIS SOFTWARE.
Packit Service 2594b8
.\"
Packit Service 2594b8
.ds Ps PostScript
Packit Service 2594b8
.if n .po 0
Packit Service 2594b8
.TH TIFF2PS 1 "November 2, 2005" "libtiff"
Packit Service 2594b8
.SH NAME
Packit Service 2594b8
tiff2ps \- convert a
Packit Service 2594b8
.SM TIFF
Packit Service 2594b8
image to \*(Ps\*(Tm
Packit Service 2594b8
.SH SYNOPSIS
Packit Service 2594b8
.B tiff2ps
Packit Service 2594b8
[
Packit Service 2594b8
.I options
Packit Service 2594b8
]
Packit Service 2594b8
.I "input.tif ..."
Packit Service 2594b8
.SH DESCRIPTION
Packit Service 2594b8
.I tiff2ps
Packit Service 2594b8
reads
Packit Service 2594b8
.SM TIFF
Packit Service 2594b8
images and writes \*(Ps or Encapsulated \*(Ps (EPS)
Packit Service 2594b8
on the standard output.
Packit Service 2594b8
By default,
Packit Service 2594b8
.I tiff2ps
Packit Service 2594b8
writes Encapsulated \*(Ps for the first image in the specified
Packit Service 2594b8
.SM TIFF
Packit Service 2594b8
image file.
Packit Service 2594b8
.PP
Packit Service 2594b8
By default,
Packit Service 2594b8
.I tiff2ps
Packit Service 2594b8
will generate \*(Ps that fills a printed area specified
Packit Service 2594b8
by the 
Packit Service 2594b8
.SM TIFF
Packit Service 2594b8
tags in the input file.
Packit Service 2594b8
If the file does not contain
Packit Service 2594b8
.I XResolution
Packit Service 2594b8
or
Packit Service 2594b8
.I YResolution
Packit Service 2594b8
tags, then the printed area is set according to the image dimensions.
Packit Service 2594b8
The
Packit Service 2594b8
.B \-w
Packit Service 2594b8
and
Packit Service 2594b8
.B \-h
Packit Service 2594b8
options (see below)
Packit Service 2594b8
can be used to set the dimensions of the printed area in inches;
Packit Service 2594b8
overriding any relevant
Packit Service 2594b8
.SM TIFF
Packit Service 2594b8
tags.
Packit Service 2594b8
.PP
Packit Service 2594b8
The \*(Ps generated for
Packit Service 2594b8
.SM RGB,
Packit Service 2594b8
palette, and
Packit Service 2594b8
.SM CMYK
Packit Service 2594b8
images uses the
Packit Service 2594b8
.I colorimage
Packit Service 2594b8
operator.
Packit Service 2594b8
The \*(Ps generated for
Packit Service 2594b8
greyscale and bilevel images
Packit Service 2594b8
uses the
Packit Service 2594b8
.I image
Packit Service 2594b8
operator.
Packit Service 2594b8
When the
Packit Service 2594b8
.I colorimage
Packit Service 2594b8
operator is used, \*(Ps code to emulate this operator
Packit Service 2594b8
on older \*(Ps printers is also generated.
Packit Service 2594b8
Note that this emulation code can be very slow.
Packit Service 2594b8
.PP
Packit Service 2594b8
Color images with associated alpha data are composited over
Packit Service 2594b8
a white background.
Packit Service 2594b8
.SH OPTIONS
Packit Service 2594b8
.TP
Packit Service 2594b8
.B \-1
Packit Service 2594b8
Generate \*(Ps Level 1 (the default).
Packit Service 2594b8
.TP
Packit Service 2594b8
.B \-2
Packit Service 2594b8
Generate \*(Ps Level 2.
Packit Service 2594b8
.TP
Packit Service 2594b8
.B \-3
Packit Service 2594b8
Generate \*(Ps Level 3. It basically allows one to use the /flateDecode
Packit Service 2594b8
filter for ZIP compressed TIFF images.
Packit Service 2594b8
.TP
Packit Service 2594b8
.B \-8
Packit Service 2594b8
Disable use of ASCII85 encoding with \*(Ps Level 2/3.
Packit Service 2594b8
.TP
Packit Service 2594b8
.B \-a
Packit Service 2594b8
Generate output for all IFDs (pages) in the input file.
Packit Service 2594b8
.TP
Packit Service 2594b8
.B \-b
Packit Service 2594b8
Specify the bottom margin for the output (in inches). This does not affect
Packit Service 2594b8
the height of the printed image.
Packit Service 2594b8
.TP
Packit Service 2594b8
.B \-c
Packit Service 2594b8
Center the image in the output. This option only shows an effect if both
Packit Service 2594b8
the
Packit Service 2594b8
.B \-w
Packit Service 2594b8
and the
Packit Service 2594b8
.B \-h
Packit Service 2594b8
option are given.
Packit Service 2594b8
.TP
Packit Service 2594b8
.B \-C
Packit Service 2594b8
Specify the document creator name.
Packit Service 2594b8
.TP
Packit Service 2594b8
.B \-d
Packit Service 2594b8
Set the initial
Packit Service 2594b8
.SM TIFF
Packit Service 2594b8
directory to the specified directory number.
Packit Service 2594b8
(NB: Directories are numbered starting at zero.)
Packit Service 2594b8
This option is useful for selecting individual pages in a
Packit Service 2594b8
multi-page (e.g. facsimile) file.
Packit Service 2594b8
.TP
Packit Service 2594b8
.B \-D
Packit Service 2594b8
Enable duplex printing (two pages per sheet of paper).
Packit Service 2594b8
.TP
Packit Service 2594b8
.B \-e
Packit Service 2594b8
Force the generation of Encapsulated \*(Ps (implies
Packit Service 2594b8
.BR \-z ).
Packit Service 2594b8
.TP
Packit Service 2594b8
.B \-h
Packit Service 2594b8
Specify the vertical size of the printed area (in inches).
Packit Service 2594b8
.TP
Packit Service 2594b8
.B \-H
Packit Service 2594b8
Specify the maximum height of image (in inches). Images with larger sizes will
Packit Service 2594b8
be split in several pages. Option
Packit Service 2594b8
.B \-L
Packit Service 2594b8
may be used for specifying size of split images overlapping.
Packit Service 2594b8
.B \-i
Packit Service 2594b8
Enable/disable pixel interpolation.  This option requires a
Packit Service 2594b8
single numeric value: zero to disable pixel interpolation and
Packit Service 2594b8
non-zero to enable.  The default is enabled.
Packit Service 2594b8
.TP
Packit Service 2594b8
.B \-L
Packit Service 2594b8
Specify the size of overlapping for split images (in inches). Used in
Packit Service 2594b8
conjunction with
Packit Service 2594b8
.B \-H
Packit Service 2594b8
and
Packit Service 2594b8
.B \-W
Packit Service 2594b8
options.
Packit Service 2594b8
.TP
Packit Service 2594b8
.B \-l
Packit Service 2594b8
Specify the left margin for the output (in inches). This does not affect
Packit Service 2594b8
the width of the printed image.
Packit Service 2594b8
.TP
Packit Service 2594b8
.B \-m
Packit Service 2594b8
Where possible render using the
Packit Service 2594b8
.I imagemask
Packit Service 2594b8
\*(Ps operator instead of the
Packit Service 2594b8
.I image
Packit Service 2594b8
operator.  When this option is specified
Packit Service 2594b8
.I tiff2ps
Packit Service 2594b8
will use
Packit Service 2594b8
.I imagemask
Packit Service 2594b8
for rendering 1 bit deep images.  If this option is not specified
Packit Service 2594b8
or if the image depth is greater than 1 then the
Packit Service 2594b8
.I image
Packit Service 2594b8
operator is used.
Packit Service 2594b8
.TP
Packit Service 2594b8
.B \-o
Packit Service 2594b8
Set the initial
Packit Service 2594b8
.SM TIFF
Packit Service 2594b8
directory to the
Packit Service 2594b8
.SM IFD
Packit Service 2594b8
at the specified file offset.
Packit Service 2594b8
This option is useful for selecting thumbnail images and the
Packit Service 2594b8
like which are hidden using the
Packit Service 2594b8
.I SubIFD
Packit Service 2594b8
tag.
Packit Service 2594b8
.TP
Packit Service 2594b8
.B \-O
Packit Service 2594b8
Write \*(Ps to specified file instead of standard output.
Packit Service 2594b8
.TP
Packit Service 2594b8
.B \-p
Packit Service 2594b8
Force the generation of (non-Encapsulated) \*(Ps.
Packit Service 2594b8
.TP
Packit Service 2594b8
.B \-P L|P
Packit Service 2594b8
Set optional PageOrientation DSC comment to Landscape or Portrait.
Packit Service 2594b8
.TP
Packit Service 2594b8
.B \-r 90|180|270|auto
Packit Service 2594b8
Rotate image by 90, 180, 270 degrees or auto.  Auto picks the best
Packit Service 2594b8
fit for the image on the specified paper size (eg portrait
Packit Service 2594b8
or landscape) if -h or -w is specified. Rotation is in degrees 
Packit Service 2594b8
counterclockwise. Auto rotates 90 degrees ccw to produce landscape.
Packit Service 2594b8
.TP
Packit Service 2594b8
.B \-s
Packit Service 2594b8
Generate output for a single IFD (page) in the input file.
Packit Service 2594b8
.TP
Packit Service 2594b8
.B \-t
Packit Service 2594b8
Specify the document title string.
Packit Service 2594b8
.TP
Packit Service 2594b8
.B \-T
Packit Service 2594b8
Print pages for top edge binding.
Packit Service 2594b8
.TP
Packit Service 2594b8
.B \-w
Packit Service 2594b8
Specify the horizontal size of the printed area (in inches).
Packit Service 2594b8
.TP
Packit Service 2594b8
.B \-W
Packit Service 2594b8
Specify the maximum width of image (in inches). Images with larger sizes will
Packit Service 2594b8
be split in several pages. Options
Packit Service 2594b8
.B \-L
Packit Service 2594b8
and 
Packit Service 2594b8
.B \-W
Packit Service 2594b8
are mutually exclusive.
Packit Service 2594b8
.TP
Packit Service 2594b8
.B \-x
Packit Service 2594b8
Override resolution units specified in the TIFF as centimeters.
Packit Service 2594b8
.TP
Packit Service 2594b8
.B \-y
Packit Service 2594b8
Override resolution units specified in the TIFF as inches.
Packit Service 2594b8
.TP
Packit Service 2594b8
.B \-z
Packit Service 2594b8
When generating \*(Ps Level 2, data is scaled so that it does not
Packit Service 2594b8
image into the 
Packit Service 2594b8
.I deadzone
Packit Service 2594b8
on a page (the outer margin that the printing device is unable to mark).
Packit Service 2594b8
This option suppresses this behavior.
Packit Service 2594b8
When \*(Ps Level 1 is generated, data is imaged to the entire printed
Packit Service 2594b8
page and this option has no affect.
Packit Service 2594b8
.SH EXAMPLES
Packit Service 2594b8
The following generates \*(Ps Level 2 for all pages of a facsimile:
Packit Service 2594b8
.RS
Packit Service 2594b8
.nf
Packit Service 2594b8
tiff2ps \-a2 fax.tif | lpr
Packit Service 2594b8
.fi
Packit Service 2594b8
.RE
Packit Service 2594b8
Note also that if you have version 2.6.1 or newer of Ghostscript then you
Packit Service 2594b8
can efficiently preview facsimile generated with the above command.
Packit Service 2594b8
.PP
Packit Service 2594b8
To generate Encapsulated \*(Ps for a the image at directory 2
Packit Service 2594b8
of an image use:
Packit Service 2594b8
.RS
Packit Service 2594b8
.nf
Packit Service 2594b8
tiff2ps \-d 1 foo.tif
Packit Service 2594b8
.fi
Packit Service 2594b8
.RE
Packit Service 2594b8
(Notice that directories are numbered starting at zero.)
Packit Service 2594b8
.PP
Packit Service 2594b8
If you have a long image, it may be split in several pages:
Packit Service 2594b8
.RS
Packit Service 2594b8
.nf
Packit Service 2594b8
tiff2ps \-h11 \-w8.5 \-H14 \-L.5 foo.tif > foo.ps
Packit Service 2594b8
.fi
Packit Service 2594b8
.RE
Packit Service 2594b8
The page size is set to 8.5x11 by
Packit Service 2594b8
.B \-w
Packit Service 2594b8
and
Packit Service 2594b8
.B \-h
Packit Service 2594b8
options. We will accept a small amount of vertical compression, so
Packit Service 2594b8
.B \-H
Packit Service 2594b8
set to 14. Any pages between 11 and 14 inches will be fit onto one page.
Packit Service 2594b8
Pages longer than 14 inches are cut off at 11 and continued on the next
Packit Service 2594b8
page. The
Packit Service 2594b8
.B \-L.5
Packit Service 2594b8
option says to repeat a half inch on the next page (to improve readability).
Packit Service 2594b8
.SH BUGS
Packit Service 2594b8
Because \*(Ps does not support the notion of a colormap,
Packit Service 2594b8
8-bit palette images produce 24-bit \*(Ps images.
Packit Service 2594b8
This conversion results in output that is six times
Packit Service 2594b8
bigger than the original image and which takes a long time
Packit Service 2594b8
to send to a printer over a serial line.
Packit Service 2594b8
Matters are even worse for 4-, 2-, and 1-bit palette images.
Packit Service 2594b8
.PP
Packit Service 2594b8
Does not handle tiled images when generating \*(Ps Level I output.
Packit Service 2594b8
.SH "SEE ALSO"
Packit Service 2594b8
.BR pal2rgb (1),
Packit Service 2594b8
.BR tiffinfo (1),
Packit Service 2594b8
.BR tiffcp (1),
Packit Service 2594b8
.BR tiffgt (1),
Packit Service 2594b8
.BR tiffmedian (1),
Packit Service 2594b8
.BR tiff2bw (1),
Packit Service 2594b8
.BR tiffsv (1),
Packit Service 2594b8
.BR libtiff (3)
Packit Service 2594b8
.PP
Packit Service 2594b8
Libtiff library home page:
Packit Service 2594b8
.BR http://www.simplesystems.org/libtiff/