Debian Codegraph @

texk/xdvipsk/thirdparty/libtiff/doc/tools/fax2ps.rst

raw
1 fax2ps
2 ======
3
4 .. program:: fax2ps
5
6 Synopsis
7 --------
8
9 **fax2ps** [ *options* ] [ *file …* ]
10
11 Description
12 -----------
13
14 :program:`fax2ps` reads one or more TIFF
15 facsimile image files and prints a compressed form of
16 PostScript on the standard output that is suitable for printing.
17
18 By default, each page is scaled to reflect the
19 image dimensions and resolutions stored in the file.
20 The :option:`-x` and :option:`-y`
21 options can be used to specify the horizontal and vertical
22 image resolutions (lines/inch), respectively.
23 If the :option:`-S`
24 option is specified, each page is scaled to fill an output page.
25 The default output page is 8.5 by 11 inches.
26 Alternate page dimensions can be specified in inches with the
27 :option:`-W` and :option:`-H`
28 options.
29
30 By default :program:`fax2ps`
31 generates PostScript for all pages in the file.
32 The :option:`-p`
33 option can be used to select one or more pages from
34 a multi-page document.
35
36
37 :program:`fax2ps`
38 generates a compressed form of PostScript that is
39 optimized for sending pages of text to a PostScript
40 printer attached to a host through a low-speed link (such
41 as a serial line).
42 Each output page is filled with white and then only
43 the black areas are drawn.
44 The PostScript specification of the black drawing operations
45 is optimized by using a special font that encodes the
46 move-draw operations required to fill
47 the black regions on the page.
48 This compression scheme typically results in a substantially
49 reduced PostScript description, relative to the straightforward
50 imaging of the page with a PostScript
51 ``image``
52 operator.
53 This algorithm can, however, be ineffective
54 for continuous-tone and white-on-black images.
55 For these images, it sometimes is more efficient to send
56 the raster bitmap image directly; see
57 .BR tiff2ps (1).
58
59 Options
60 -------
61
62 .. option:: -p number
63
64 Print only the indicated page.
65 Multiple pages may be printed by specifying
66 this option more than once.
67
68 .. option:: -x resolution
69
70 Use *resolution*
71 as the horizontal resolution, in dots/inch, of the image data.
72 By default this value is taken from the file.
73
74 .. option:: -y resolution
75
76 Use *resolution*
77 as the vertical resolution, in lines/inch, of the image data.
78 By default this value is taken from the file.
79
80 .. option:: -S
81
82 Scale each page of image data to fill the output page dimensions.
83 By default images are presented according to the dimension
84 information recorded in the TIFF file.
85
86 .. option:: -W width
87
88 Use *width*
89 as the width, in inches, of the output page.
90
91 .. option:: -H height
92
93 Use *height*
94 as the height, in inches, of the output page.
95
96 Diagnostics
97 -----------
98
99 Some messages about malformed TIFF images come from the
100 TIFF library.
101
102 Various messages about badly formatted facsimile images
103 may be generated due to transmission errors in received
104 facsimile.
105 :program:`fax2ps`
106 attempts to recover from such data errors by resynchronizing
107 decoding at the end of the current scanline.
108 This can result in long horizontal black lines in the resultant
109 PostScript image.
110
111 Notes
112 -----
113
114 If the destination printer supports PostScript Level II then
115 it is always faster to just send the encoded bitmap generated
116 by the :program:`tiff2ps` program.
117
118 Bugs
119 ----
120
121 :program:`fax2ps`
122 should probably figure out when it is doing a poor
123 job of compressing the output and just generate
124 PostScript to image the bitmap raster instead.
125
126 See also
127 --------
128
129 :doc`tiff2ps` (1), :doc:`/functions/libtiff` (3tiff)