roentgen b75cab
.\"	$Id: fax2ps.1,v 1.4 2006-04-20 12:17:19 dron Exp $
roentgen b75cab
.\"
roentgen b75cab
.\" Copyright (c) 1991-1997 Sam Leffler
roentgen b75cab
.\" Copyright (c) 1991-1997 Silicon Graphics, Inc.
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 names of
roentgen b75cab
.\" Sam Leffler and Silicon Graphics may not be used in any advertising or
roentgen b75cab
.\" publicity relating to the software without the specific, prior written
roentgen b75cab
.\" permission of Sam Leffler and Silicon Graphics.
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 SAM LEFFLER OR SILICON GRAPHICS 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
.ds Ps PostScript
roentgen b75cab
.if n .po 0
roentgen b75cab
.TH FAX2PS 1 "November 2, 2005" "libtiff"
roentgen b75cab
.SH NAME
roentgen b75cab
fax2ps \- convert a
roentgen b75cab
.SM TIFF
roentgen b75cab
facsimile to compressed \*(Ps\(tm
roentgen b75cab
.SH SYNOPSIS
roentgen b75cab
.B fax2ps
roentgen b75cab
[
roentgen b75cab
.I options
roentgen b75cab
] [
roentgen b75cab
.I file ...\&
roentgen b75cab
]
roentgen b75cab
.SH DESCRIPTION
roentgen b75cab
.I fax2ps
roentgen b75cab
reads one or more
roentgen b75cab
.SM TIFF
roentgen b75cab
facsimile image files and prints a compressed form of
roentgen b75cab
\*(Ps on the standard output that is suitable for printing.
roentgen b75cab
.PP
roentgen b75cab
By default, each page is scaled to reflect the
roentgen b75cab
image dimensions and resolutions stored in the file.
roentgen b75cab
The
roentgen b75cab
.B \-x
roentgen b75cab
and
roentgen b75cab
.B \-y
roentgen b75cab
options can be used to specify the horizontal and vertical
roentgen b75cab
image resolutions (lines/inch), respectively.
roentgen b75cab
If the
roentgen b75cab
.B \-S
roentgen b75cab
option is specified, each page is scaled to fill an output page.
roentgen b75cab
The default output page is 8.5 by 11 inches.
roentgen b75cab
Alternate page dimensions can be specified in inches with the
roentgen b75cab
.B \-W
roentgen b75cab
and
roentgen b75cab
.B \-H
roentgen b75cab
options.
roentgen b75cab
.PP
roentgen b75cab
By default
roentgen b75cab
.I fax2ps
roentgen b75cab
generates \*(Ps for all pages in the file.
roentgen b75cab
The
roentgen b75cab
.B \-p
roentgen b75cab
option can be used to select one or more pages from
roentgen b75cab
a multi-page document.
roentgen b75cab
.PP
roentgen b75cab
.I fax2ps
roentgen b75cab
generates a compressed form of \*(Ps that is
roentgen b75cab
optimized for sending pages of text to a \*(Ps
roentgen b75cab
printer attached to a host through a low-speed link (such
roentgen b75cab
as a serial line).
roentgen b75cab
Each output page is filled with white and then only
roentgen b75cab
the black areas are drawn.
roentgen b75cab
The \*(Ps specification of the black drawing operations
roentgen b75cab
is optimized by using a special font that encodes the
roentgen b75cab
move-draw operations required to fill
roentgen b75cab
the black regions on the page.
roentgen b75cab
This compression scheme typically results in a substantially
roentgen b75cab
reduced \*(Ps description, relative to the straightforward
roentgen b75cab
imaging of the page with a \*(Ps
roentgen b75cab
.I image
roentgen b75cab
operator.
roentgen b75cab
This algorithm can, however, be ineffective
roentgen b75cab
for continuous-tone and white-on-black images.
roentgen b75cab
For these images, it sometimes is more efficient to send
roentgen b75cab
the raster bitmap image directly; see
roentgen b75cab
.BR tiff2ps (1).
roentgen b75cab
.SH OPTIONS
roentgen b75cab
.TP 10
roentgen b75cab
.BI \-p " number"
roentgen b75cab
Print only the indicated page.
roentgen b75cab
Multiple pages may be printed by specifying
roentgen b75cab
this option more than once.
roentgen b75cab
.TP 10
roentgen b75cab
.BI \-x " resolution"
roentgen b75cab
Use
roentgen b75cab
.I resolution
roentgen b75cab
as the horizontal resolution, in dots/inch, of the image data.
roentgen b75cab
By default this value is taken from the file.
roentgen b75cab
.TP 10
roentgen b75cab
.BI \-y " resolution"
roentgen b75cab
Use
roentgen b75cab
.I resolution
roentgen b75cab
as the vertical resolution, in lines/inch, of the image data.
roentgen b75cab
By default this value is taken from the file.
roentgen b75cab
.TP 10
roentgen b75cab
.B \-S
roentgen b75cab
Scale each page of image data to fill the output page dimensions.
roentgen b75cab
By default images are presented according to the dimension
roentgen b75cab
information recorded in the 
roentgen b75cab
.SM TIFF
roentgen b75cab
file.
roentgen b75cab
.TP 10
roentgen b75cab
.BI \-W " width"
roentgen b75cab
Use
roentgen b75cab
.I width
roentgen b75cab
as the width, in inches, of the output page.
roentgen b75cab
.TP 10
roentgen b75cab
.BI \-H " height"
roentgen b75cab
Use
roentgen b75cab
.I height
roentgen b75cab
as the height, in inches, of the output page.
roentgen b75cab
.SH DIAGNOSTICS
roentgen b75cab
Some messages about malformed 
roentgen b75cab
.SM TIFF
roentgen b75cab
images come from the
roentgen b75cab
.SM TIFF
roentgen b75cab
library.
roentgen b75cab
.PP
roentgen b75cab
Various messages about badly formatted facsimile images
roentgen b75cab
may be generated due to transmission errors in received
roentgen b75cab
facsimile.
roentgen b75cab
.I fax2ps
roentgen b75cab
attempts to recover from such data errors by resynchronizing
roentgen b75cab
decoding at the end of the current scanline.
roentgen b75cab
This can result in long horizontal black lines in the resultant
roentgen b75cab
\*(Ps image.
roentgen b75cab
.SH NOTES
roentgen b75cab
If the destination printer supports \*(Ps Level II then
roentgen b75cab
it is always faster to just send the encoded bitmap generated
roentgen b75cab
by the
roentgen b75cab
.BR tiff2ps (1)
roentgen b75cab
program.
roentgen b75cab
.SH BUGS
roentgen b75cab
.I fax2ps
roentgen b75cab
should probably figure out when it is doing a poor
roentgen b75cab
job of compressing the output and just generate 
roentgen b75cab
\*(Ps to image the bitmap raster instead.
roentgen b75cab
.SH "SEE ALSO"
roentgen b75cab
.BR tiff2ps (1),
roentgen b75cab
.BR libtiff (3)
roentgen b75cab
.PP
roentgen b75cab
Libtiff library home page:
roentgen b75cab
.BR http://www.remotesensing.org/libtiff/