3
<meta name="generator" content="groff -Thtml, see www.gnu.org">
4
<meta name="Content-Style" content="text/css">
9
<h1 align=center>TIFF2PS</h1>
10
<a href="#NAME">NAME</a><br>
11
<a href="#SYNOPSIS">SYNOPSIS</a><br>
12
<a href="#DESCRIPTION">DESCRIPTION</a><br>
13
<a href="#OPTIONS">OPTIONS</a><br>
14
<a href="#EXAMPLES">EXAMPLES</a><br>
15
<a href="#BUGS">BUGS</a><br>
16
<a href="#BUGS">BUGS</a><br>
17
<a href="#SEE ALSO">SEE ALSO</a><br>
20
<!-- Creator : groff version 1.17.2 -->
21
<!-- CreationDate: Mon Dec 22 00:39:33 2003 -->
24
<table width="100%" border=0 rules="none" frame="void"
25
cols="2" cellspacing="0" cellpadding="0">
26
<tr valign="top" align="left">
27
<td width="10%"></td><td width="90%">
28
tiff2ps - convert a <small>TIFF</small> image to P <small>OST</small> S <small>CRIPT</small></td></table>
29
<a name="SYNOPSIS"></a>
32
<table width="100%" border=0 rules="none" frame="void"
33
cols="2" cellspacing="0" cellpadding="0">
34
<tr valign="top" align="left">
35
<td width="10%"></td><td width="90%">
36
<b>tiff2ps</b> [ <i>options</i> ] <i>input.tif
38
<a name="DESCRIPTION"></a>
41
<table width="100%" border=0 rules="none" frame="void"
42
cols="2" cellspacing="0" cellpadding="0">
43
<tr valign="top" align="left">
44
<td width="10%"></td><td width="90%">
45
<i>tiff2ps</i> reads <small>TIFF</small> images and writes P
46
<small>OST</small> S <small>CRIPT</small> or Encapsulated P
47
<small>OST</small> S <small>CRIPT</small> (EPS) on the
48
standard output. By default, <i>tiff2ps</i> writes
49
Encapsulated P <small>OST</small> S <small>CRIPT</small> for
50
the first image in the specified <small>TIFF</small> image
53
<table width="100%" border=0 rules="none" frame="void"
54
cols="2" cellspacing="0" cellpadding="0">
55
<tr valign="top" align="left">
56
<td width="10%"></td><td width="90%">
57
By default, <i>tiff2ps</i> will generate P
58
<small>OST</small> S <small>CRIPT</small> that fills a
59
printed area specified by the <small>TIFF</small> tags in
60
the input file. If the file does not contain
61
<i>XResolution</i> or <i>YResolution</i> tags, then the
62
printed area is set according to the image dimensions. The
63
<b>-w</b> and <b>-h</b> options (see below) can be used to
64
set the dimensions of the printed area in inches; overriding
65
any relevant <small>TIFF</small> tags.</td></table>
67
<table width="100%" border=0 rules="none" frame="void"
68
cols="2" cellspacing="0" cellpadding="0">
69
<tr valign="top" align="left">
70
<td width="10%"></td><td width="90%">
71
The P <small>OST</small> S <small>CRIPT</small> generated
72
for <small>RGB,</small> palette, and <small>CMYK</small>
73
images uses the <i>colorimage</i> operator. The P
74
<small>OST</small> S <small>CRIPT</small> generated for
75
greyscale and bilevel images uses the <i>image</i> operator.
76
When the <i>colorimage</i> operator is used, P
77
<small>OST</small> S <small>CRIPT</small> code to emulate
78
this operator on older P <small>OST</small> S
79
<small>CRIPT</small> printers is also generated. Note that
80
this emulation code can be very slow.</td></table>
82
<table width="100%" border=0 rules="none" frame="void"
83
cols="2" cellspacing="0" cellpadding="0">
84
<tr valign="top" align="left">
85
<td width="10%"></td><td width="90%">
86
Color images with associated alpha data are composited over
87
a white background.</td></table>
88
<a name="OPTIONS"></a>
91
<table width="100%" border=0 rules="none" frame="void"
92
cols="2" cellspacing="0" cellpadding="0">
93
<tr valign="top" align="left">
94
<td width="10%"></td><td width="90%">
95
<b>-1</b></td></table>
97
<table width="100%" border=0 rules="none" frame="void"
98
cols="2" cellspacing="0" cellpadding="0">
99
<tr valign="top" align="left">
100
<td width="21%"></td><td width="79%">
101
Generate P <small>OST</small> S <small>CRIPT</small> Level 1
102
(the default).</td></table>
104
<table width="100%" border=0 rules="none" frame="void"
105
cols="2" cellspacing="0" cellpadding="0">
106
<tr valign="top" align="left">
107
<td width="10%"></td><td width="90%">
108
<b>-2</b></td></table>
110
<table width="100%" border=0 rules="none" frame="void"
111
cols="2" cellspacing="0" cellpadding="0">
112
<tr valign="top" align="left">
113
<td width="21%"></td><td width="79%">
114
Generate P <small>OST</small> S <small>CRIPT</small> Level
117
<table width="100%" border=0 rules="none" frame="void"
118
cols="2" cellspacing="0" cellpadding="0">
119
<tr valign="top" align="left">
120
<td width="10%"></td><td width="90%">
121
<b>-3</b></td></table>
123
<table width="100%" border=0 rules="none" frame="void"
124
cols="2" cellspacing="0" cellpadding="0">
125
<tr valign="top" align="left">
126
<td width="21%"></td><td width="79%">
127
Generate P <small>OST</small> S <small>CRIPT</small> Level
128
3. It basically allows one to use the /flateDecode filter
129
for ZIP compressed TIFF images.</td></table>
131
<table width="100%" border=0 rules="none" frame="void"
132
cols="2" cellspacing="0" cellpadding="0">
133
<tr valign="top" align="left">
134
<td width="10%"></td><td width="90%">
135
<b>-a</b></td></table>
137
<table width="100%" border=0 rules="none" frame="void"
138
cols="2" cellspacing="0" cellpadding="0">
139
<tr valign="top" align="left">
140
<td width="21%"></td><td width="79%">
141
Generate output for all IFDs (pages) in the input
144
<table width="100%" border=0 rules="none" frame="void"
145
cols="2" cellspacing="0" cellpadding="0">
146
<tr valign="top" align="left">
147
<td width="10%"></td><td width="90%">
148
<b>-b</b></td></table>
150
<table width="100%" border=0 rules="none" frame="void"
151
cols="2" cellspacing="0" cellpadding="0">
152
<tr valign="top" align="left">
153
<td width="21%"></td><td width="79%">
154
Specify the bottom margin for the output (in inches). This
155
does not affect the height of the printed
158
<table width="100%" border=0 rules="none" frame="void"
159
cols="2" cellspacing="0" cellpadding="0">
160
<tr valign="top" align="left">
161
<td width="10%"></td><td width="90%">
162
<b>-c</b></td></table>
164
<table width="100%" border=0 rules="none" frame="void"
165
cols="2" cellspacing="0" cellpadding="0">
166
<tr valign="top" align="left">
167
<td width="21%"></td><td width="79%">
168
Center the image in the output. This option only shows an
169
effect if both the -w and the -h option are
172
<table width="100%" border=0 rules="none" frame="void"
173
cols="2" cellspacing="0" cellpadding="0">
174
<tr valign="top" align="left">
175
<td width="10%"></td><td width="90%">
176
<b>-d</b></td></table>
178
<table width="100%" border=0 rules="none" frame="void"
179
cols="2" cellspacing="0" cellpadding="0">
180
<tr valign="top" align="left">
181
<td width="21%"></td><td width="79%">
182
Set the initial <small>TIFF</small> directory to the
183
specified directory number. (NB: directories are numbered
184
starting at zero.) This option is useful for selecting
185
individual pages in a multi-page (e.g. facsimile)
188
<table width="100%" border=0 rules="none" frame="void"
189
cols="2" cellspacing="0" cellpadding="0">
190
<tr valign="top" align="left">
191
<td width="10%"></td><td width="90%">
192
<b>-e</b></td></table>
194
<table width="100%" border=0 rules="none" frame="void"
195
cols="2" cellspacing="0" cellpadding="0">
196
<tr valign="top" align="left">
197
<td width="21%"></td><td width="79%">
198
Force the generation of Encapsulated P <small>OST</small> S
199
<small>CRIPT</small> (implies -z).</td></table>
201
<table width="100%" border=0 rules="none" frame="void"
202
cols="2" cellspacing="0" cellpadding="0">
203
<tr valign="top" align="left">
204
<td width="10%"></td><td width="90%">
205
<b>-h</b></td></table>
207
<table width="100%" border=0 rules="none" frame="void"
208
cols="2" cellspacing="0" cellpadding="0">
209
<tr valign="top" align="left">
210
<td width="21%"></td><td width="79%">
211
Specify the vertical size of the printed area (in
212
inches).</td></table>
214
<table width="100%" border=0 rules="none" frame="void"
215
cols="2" cellspacing="0" cellpadding="0">
216
<tr valign="top" align="left">
217
<td width="10%"></td><td width="90%">
218
<b>-H</b></td></table>
220
<table width="100%" border=0 rules="none" frame="void"
221
cols="2" cellspacing="0" cellpadding="0">
222
<tr valign="top" align="left">
223
<td width="21%"></td><td width="79%">
224
Specify the maximum height of image (in inches). Images with
225
larger sizes will be splitted in several pages. Option
226
<b>-L</b> may be used for specifying size of splitted images
227
overlapping.</td></table>
229
<table width="100%" border=0 rules="none" frame="void"
230
cols="2" cellspacing="0" cellpadding="0">
231
<tr valign="top" align="left">
232
<td width="10%"></td><td width="90%">
233
<b>-i</b></td></table>
235
<table width="100%" border=0 rules="none" frame="void"
236
cols="2" cellspacing="0" cellpadding="0">
237
<tr valign="top" align="left">
238
<td width="21%"></td><td width="79%">
239
Enable/disable pixel interpolation. This option requires a
240
single numeric value: zero to disable pixel interpolation
241
and non-zero to enable. The default is enabled.</td></table>
243
<table width="100%" border=0 rules="none" frame="void"
244
cols="2" cellspacing="0" cellpadding="0">
245
<tr valign="top" align="left">
246
<td width="10%"></td><td width="90%">
247
<b>-L</b></td></table>
249
<table width="100%" border=0 rules="none" frame="void"
250
cols="2" cellspacing="0" cellpadding="0">
251
<tr valign="top" align="left">
252
<td width="21%"></td><td width="79%">
253
Specify the size of overlapping for splitted images (in
254
inches). Used in conjuction with <b>-H</b>
257
<table width="100%" border=0 rules="none" frame="void"
258
cols="2" cellspacing="0" cellpadding="0">
259
<tr valign="top" align="left">
260
<td width="10%"></td><td width="90%">
261
<b>-l</b></td></table>
263
<table width="100%" border=0 rules="none" frame="void"
264
cols="2" cellspacing="0" cellpadding="0">
265
<tr valign="top" align="left">
266
<td width="21%"></td><td width="79%">
267
Specify the left margin for the output (in inches). This
268
does not affect the width of the printed image.</td></table>
270
<table width="100%" border=0 rules="none" frame="void"
271
cols="2" cellspacing="0" cellpadding="0">
272
<tr valign="top" align="left">
273
<td width="10%"></td><td width="90%">
274
<b>-m</b></td></table>
276
<table width="100%" border=0 rules="none" frame="void"
277
cols="2" cellspacing="0" cellpadding="0">
278
<tr valign="top" align="left">
279
<td width="21%"></td><td width="79%">
280
Where possible render using the <b>imagemask</b> P
281
<small>OST</small> S <small>CRIPT</small> operator instead
282
of the image operator. When this option is specified
283
<i>tiff2ps</i> will use <b>imagemask</b> for rendering 1 bit
284
deep images. If this option is not specified or if the image
285
depth is greater than 1 then the image operator is
288
<table width="100%" border=0 rules="none" frame="void"
289
cols="2" cellspacing="0" cellpadding="0">
290
<tr valign="top" align="left">
291
<td width="10%"></td><td width="90%">
292
<b>-o</b></td></table>
294
<table width="100%" border=0 rules="none" frame="void"
295
cols="2" cellspacing="0" cellpadding="0">
296
<tr valign="top" align="left">
297
<td width="21%"></td><td width="79%">
298
Set the initial <small>TIFF</small> directory to the
299
<small>IFD</small> at the specified file offset. This option
300
is useful for selecting thumbnail images and the like which
301
are hidden using the SubIFD tag.</td></table>
303
<table width="100%" border=0 rules="none" frame="void"
304
cols="2" cellspacing="0" cellpadding="0">
305
<tr valign="top" align="left">
306
<td width="10%"></td><td width="90%">
307
<b>-p</b></td></table>
309
<table width="100%" border=0 rules="none" frame="void"
310
cols="2" cellspacing="0" cellpadding="0">
311
<tr valign="top" align="left">
312
<td width="21%"></td><td width="79%">
313
Force the generation of (non-Encapsulated) P
314
<small>OST</small> S <small>CRIPT</small> .</td></table>
316
<table width="100%" border=0 rules="none" frame="void"
317
cols="2" cellspacing="0" cellpadding="0">
318
<tr valign="top" align="left">
319
<td width="10%"></td><td width="90%">
320
<b>-r</b></td></table>
322
<table width="100%" border=0 rules="none" frame="void"
323
cols="2" cellspacing="0" cellpadding="0">
324
<tr valign="top" align="left">
325
<td width="21%"></td><td width="79%">
326
Rotate image by 180 degrees.</td></table>
328
<table width="100%" border=0 rules="none" frame="void"
329
cols="2" cellspacing="0" cellpadding="0">
330
<tr valign="top" align="left">
331
<td width="10%"></td><td width="90%">
332
<b>-s</b></td></table>
334
<table width="100%" border=0 rules="none" frame="void"
335
cols="2" cellspacing="0" cellpadding="0">
336
<tr valign="top" align="left">
337
<td width="21%"></td><td width="79%">
338
Generate output for a single IFD (page) in the input
341
<table width="100%" border=0 rules="none" frame="void"
342
cols="2" cellspacing="0" cellpadding="0">
343
<tr valign="top" align="left">
344
<td width="10%"></td><td width="90%">
345
<b>-w</b></td></table>
347
<table width="100%" border=0 rules="none" frame="void"
348
cols="2" cellspacing="0" cellpadding="0">
349
<tr valign="top" align="left">
350
<td width="21%"></td><td width="79%">
351
Specify the horizontal size of the printed area (in
352
inches).</td></table>
354
<table width="100%" border=0 rules="none" frame="void"
355
cols="2" cellspacing="0" cellpadding="0">
356
<tr valign="top" align="left">
357
<td width="10%"></td><td width="90%">
358
<b>-x</b></td></table>
360
<table width="100%" border=0 rules="none" frame="void"
361
cols="2" cellspacing="0" cellpadding="0">
362
<tr valign="top" align="left">
363
<td width="21%"></td><td width="79%">
364
Override resolution units specified in the TIFF as
365
centimeters.</td></table>
367
<table width="100%" border=0 rules="none" frame="void"
368
cols="2" cellspacing="0" cellpadding="0">
369
<tr valign="top" align="left">
370
<td width="10%"></td><td width="90%">
371
<b>-y</b></td></table>
373
<table width="100%" border=0 rules="none" frame="void"
374
cols="2" cellspacing="0" cellpadding="0">
375
<tr valign="top" align="left">
376
<td width="21%"></td><td width="79%">
377
Override resolution units specified in the TIFF as
380
<table width="100%" border=0 rules="none" frame="void"
381
cols="2" cellspacing="0" cellpadding="0">
382
<tr valign="top" align="left">
383
<td width="10%"></td><td width="90%">
384
<b>-z</b></td></table>
386
<table width="100%" border=0 rules="none" frame="void"
387
cols="2" cellspacing="0" cellpadding="0">
388
<tr valign="top" align="left">
389
<td width="21%"></td><td width="79%">
390
When generating P <small>OST</small> S <small>CRIPT</small>
391
Level 2, data is scaled so that it does not image into the
392
<i>deadzone</i> on a page (the outer margin that the
393
printing device is unable to mark). This option suppresses
394
this behaviour. When P <small>OST</small> S
395
<small>CRIPT</small> Level 1 is generated, data is imaged to
396
the entire printed page and this option has no
398
<a name="EXAMPLES"></a>
401
<table width="100%" border=0 rules="none" frame="void"
402
cols="2" cellspacing="0" cellpadding="0">
403
<tr valign="top" align="left">
404
<td width="10%"></td><td width="90%">
405
The following generates P <small>OST</small> S
406
<small>CRIPT</small> Level 2 for all pages of a
407
facsimile:</td></table>
409
<table width="100%" border=0 rules="none" frame="void"
410
cols="2" cellspacing="0" cellpadding="0">
411
<tr valign="top" align="left">
412
<td width="21%"></td><td width="79%">
413
<pre>tiff2ps -a2 fax.tif | lpr
416
<table width="100%" border=0 rules="none" frame="void"
417
cols="2" cellspacing="0" cellpadding="0">
418
<tr valign="top" align="left">
419
<td width="10%"></td><td width="90%">
420
Note also that if you have version 2.6.1 or newer of
421
Ghostscript then you can efficiently preview facsimile
422
generated with the above command.</td></table>
424
<table width="100%" border=0 rules="none" frame="void"
425
cols="2" cellspacing="0" cellpadding="0">
426
<tr valign="top" align="left">
427
<td width="10%"></td><td width="90%">
428
To generate Encapsulated P <small>OST</small> S
429
<small>CRIPT</small> for a the image at directory 2 of an
430
image use:</td></table>
432
<table width="100%" border=0 rules="none" frame="void"
433
cols="2" cellspacing="0" cellpadding="0">
434
<tr valign="top" align="left">
435
<td width="21%"></td><td width="79%">
436
<pre>tiff2ps -d 1 foo.tif
439
<table width="100%" border=0 rules="none" frame="void"
440
cols="2" cellspacing="0" cellpadding="0">
441
<tr valign="top" align="left">
442
<td width="10%"></td><td width="90%">
443
(notice that directories are numbered starting at
446
<table width="100%" border=0 rules="none" frame="void"
447
cols="2" cellspacing="0" cellpadding="0">
448
<tr valign="top" align="left">
449
<td width="10%"></td><td width="90%">
450
If you have a long image, it may be splitted in several
453
<table width="100%" border=0 rules="none" frame="void"
454
cols="2" cellspacing="0" cellpadding="0">
455
<tr valign="top" align="left">
456
<td width="21%"></td><td width="79%">
457
<pre>tiff2ps -h11 -w8.5 -H14 -L.5 foo.tif > foo.ps
460
<table width="100%" border=0 rules="none" frame="void"
461
cols="2" cellspacing="0" cellpadding="0">
462
<tr valign="top" align="left">
463
<td width="10%"></td><td width="90%">
464
The page size is set to 8.5x11 by <b>-w</b> and <b>-h</b>
465
options. We will accept a small amount of vertical
466
compression, so <b>-H</b> set to 14. Any pages between 11
467
and 14 inches will be fit onto one page. Pages longer than
468
14 inches are cut off at 11 and continued on the next page.
469
The <b>-L.5</b> option says to repeat a half inch on the
470
next page (to improve readability).</td></table>
474
<table width="100%" border=0 rules="none" frame="void"
475
cols="2" cellspacing="0" cellpadding="0">
476
<tr valign="top" align="left">
477
<td width="10%"></td><td width="90%">
478
Because P <small>OST</small> S <small>CRIPT</small> does not
479
support the notion of a colormap, 8-bit palette images
480
produce 24-bit P <small>OST</small> S <small>CRIPT</small>
481
images. This conversion results in output that is six times
482
bigger than the original image and which takes a long time
483
to send to a printer over a serial line. Matters are even
484
worse for 4-, 2-, and 1-bit palette images.</td></table>
488
<table width="100%" border=0 rules="none" frame="void"
489
cols="2" cellspacing="0" cellpadding="0">
490
<tr valign="top" align="left">
491
<td width="10%"></td><td width="90%">
492
Does not handle tiled images when generating PS Level I
494
<a name="SEE ALSO"></a>
497
<table width="100%" border=0 rules="none" frame="void"
498
cols="2" cellspacing="0" cellpadding="0">
499
<tr valign="top" align="left">
500
<td width="10%"></td><td width="90%">
501
<i>pal2rgb</i>(1), <i>tiffinfo</i>(1), <i>tiffcp</i>(1),
502
<i>tiffgt</i>(1), <i>tiffmedian</i>(1), <i>tiff2bw</i>(1),
503
<i>tiffsv</i>(1), <i>libtiff</i>(3)</td></table>