summaryrefslogtreecommitdiff
path: root/doc/static/man/tiff2pdf.1.html
blob: f0a056a27786a71868d81dcb23446d3b0383f052 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
<!-- Creator     : groff version 1.22.4 -->
<!-- CreationDate: Sat Jun  4 16:23:28 2022 -->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="generator" content="groff -Thtml, see www.gnu.org">
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<meta name="Content-Style" content="text/css">
<style type="text/css">
       p       { margin-top: 0; margin-bottom: 0; vertical-align: top }
       pre     { margin-top: 0; margin-bottom: 0; vertical-align: top }
       table   { margin-top: 0; margin-bottom: 0; vertical-align: top }
       h1      { text-align: center }
</style>
<title>TIFF2PDF</title>

</head>
<body>

<h1 align="center">TIFF2PDF</h1>

<a href="#NAME">NAME</a><br>
<a href="#SYNOPSIS">SYNOPSIS</a><br>
<a href="#DESCRIPTION">DESCRIPTION</a><br>
<a href="#OPTIONS">OPTIONS</a><br>
<a href="#EXAMPLES">EXAMPLES</a><br>
<a href="#BUGS">BUGS</a><br>
<a href="#SEE ALSO">SEE ALSO</a><br>

<hr>


<h2>NAME
<a name="NAME"></a>
</h2>


<p style="margin-left:11%; margin-top: 1em">tiff2pdf
&minus; convert a TIFF image to a PDF document</p>

<h2>SYNOPSIS
<a name="SYNOPSIS"></a>
</h2>



<p style="margin-left:11%; margin-top: 1em"><b>tiff2pdf</b>
[ <i>options</i> ] <i>input.tiff</i></p>

<h2>DESCRIPTION
<a name="DESCRIPTION"></a>
</h2>



<p style="margin-left:11%; margin-top: 1em"><i>tiff2pdf</i>
opens a TIFF image and writes a PDF document to standard
output.</p>

<p style="margin-left:11%; margin-top: 1em">The program
converts one TIFF file to one PDF file, including multiple
page TIFF files, tiled TIFF files, black and white.
grayscale, and color TIFF files that contain data of TIFF
photometric interpretations of bilevel, grayscale, RGB,
YCbCr, CMYK separation, and ICC L*a*b* as supported by
<i>libtiff</i> and PDF.</p>

<p style="margin-left:11%; margin-top: 1em">If you have
multiple TIFF files to convert into one PDF file then use
<i>tiffcp</i> or other program to concatenate the files into
a multiple page TIFF file. If the input TIFF file is of huge
dimensions (greater than 10000 pixels height or width)
convert the input image to a tiled TIFF if it is not
already.</p>

<p style="margin-left:11%; margin-top: 1em">The standard
output is standard output. Set the output file name with the
<b>&minus;o</b> <i>output.pdf</i> option.</p>

<p style="margin-left:11%; margin-top: 1em">All black and
white files are compressed into a single strip CCITT G4 Fax
compressed PDF, unless tiled, where tiled black and white
images are compressed into tiled CCITT G4 Fax compressed
PDF, <i>libtiff</i> CCITT support is assumed.</p>

<p style="margin-left:11%; margin-top: 1em">Color and
grayscale data can be compressed using either JPEG
compression, ITU-T T.81, or Zip/Deflate LZ77 compression.
Set the compression type using the <b>&minus;j</b> or
<b>&minus;z</b> options. JPEG compression support requires
that <i>libtiff</i> be configured with JPEG support, and
Zip/Deflate compression support requires that <i>libtiff</i>
be configured with Zip support, in tiffconf.h. Use only one
or the other of <b>&minus;j</b> and <b>&minus;z.</b></p>

<p style="margin-left:11%; margin-top: 1em">If the input
TIFF contains single strip CCITT G4 Fax compressed
information, then that is written to the PDF file without
transcoding, unless the options of no compression and no
passthrough are set, <b>&minus;d</b> and
<b>&minus;n.</b></p>

<p style="margin-left:11%; margin-top: 1em">If the input
TIFF contains JPEG or single strip Zip/Deflate compressed
information, and they are configured, then that is written
to the PDF file without transcoding, unless the options of
no compression and no passthrough are set.</p>

<p style="margin-left:11%; margin-top: 1em">The default
page size upon which the TIFF image is placed is determined
by the resolution and extent of the image data. Default
values for the TIFF image resolution can be set using the
<b>&minus;x</b> and <b>&minus;y</b> options. The page size
can be set using the <b>&minus;p</b> option for paper size,
or <b>&minus;w</b> and <b>&minus;l</b> for paper width and
length, then each page of the TIFF image is centered on its
page. The distance unit for default resolution and page
width and length can be set by the <b>&minus;u</b> option,
the default unit is inch.</p>

<p style="margin-left:11%; margin-top: 1em">Various items
of the output document information can be set with the
<b>&minus;e</b>, <b>&minus;c</b>, <b>&minus;a</b>,
<b>&minus;t</b>, <b>&minus;s</b>, and <b>&minus;k</b>
options. Setting the argument of the option to &quot;&quot;
for these tags causes the relevant document information
field to be not written. Some of the document information
values otherwise get their information from the input TIFF
image, the software, author, document name, and image
description.</p>

<p style="margin-left:11%; margin-top: 1em">The Portable
Document Format (PDF) specification is copyrighted by Adobe
Systems, Incorporated.</p>

<h2>OPTIONS
<a name="OPTIONS"></a>
</h2>



<p style="margin-left:11%; margin-top: 1em"><b>&minus;o</b>
<i>output-file</i></p>

<p style="margin-left:22%;">Set the output to go to file.
<i>output-file</i></p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">


<p><b>&minus;j</b></p></td>
<td width="8%"></td>
<td width="78%">


<p>Compress with JPEG (requires <i>libjpeg</i> configured
with <i>libtiff</i>).</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">


<p><b>&minus;z</b></p></td>
<td width="8%"></td>
<td width="78%">


<p>Compress with Zip/Deflate (requires <i>zlib</i>
configured with <i>libtiff</i>).</p></td></tr>
</table>

<p style="margin-left:11%;"><b>&minus;q</b>
<i>quality</i></p>

<p style="margin-left:22%;">Set the compression quality,
1-100 for JPEG.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">


<p><b>&minus;n</b></p></td>
<td width="8%"></td>
<td width="78%">


<p>Do not allow data to be converted without uncompressing,
no compressed data passthrough.</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">


<p><b>&minus;b</b></p></td>
<td width="8%"></td>
<td width="78%">


<p>Set PDF &lsquo;&lsquo;Interpolate&rsquo;&rsquo; user
preference.</p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">


<p><b>&minus;d</b></p></td>
<td width="8%"></td>
<td width="78%">


<p>Do not compress (decompress).</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">


<p><b>&minus;i</b></p></td>
<td width="8%"></td>
<td width="78%">


<p>Invert colors.</p></td></tr>
</table>

<p style="margin-left:11%;"><b>&minus;p</b>
<i>paper-size</i></p>

<p style="margin-left:22%;">Set paper size, e.g.,
<b>letter</b>, <b>legal</b>, <b>A4</b>.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">


<p><b>&minus;F</b></p></td>
<td width="8%"></td>
<td width="55%">


<p>Cause the tiff to fill the PDF page.</p></td>
<td width="23%">
</td></tr>
</table>

<p style="margin-left:11%;"><b>&minus;u</b>
[<b>i</b>|<b>m</b>]</p>

<p style="margin-left:22%;">Set distance unit, <b>i</b> for
inch, <b>m</b> for centimeter.</p>

<p style="margin-left:11%;"><b>&minus;w</b>
<i>width</i></p>

<p style="margin-left:22%;">Set width in units.</p>

<p style="margin-left:11%;"><b>&minus;l</b>
<i>length</i></p>

<p style="margin-left:22%;">Set length in units.</p>

<p style="margin-left:11%;"><b>&minus;x</b> <i>xres</i></p>

<p style="margin-left:22%;">Set x/width resolution
default.</p>

<p style="margin-left:11%;"><b>&minus;y</b> <i>yres</i></p>

<p style="margin-left:22%;">Set y/length resolution
default.</p>

<p style="margin-left:11%;"><b>&minus;r</b>
[<b>d</b>|<b>o</b>]</p>

<p style="margin-left:22%;">Set <b>d</b> for resolution
default for images without resolution, <b>o</b> for
resolution override for all images.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">


<p><b>&minus;f</b></p></td>
<td width="8%"></td>
<td width="60%">


<p>Set PDF &lsquo;&lsquo;Fit Window&rsquo;&rsquo; user
preference.</p> </td>
<td width="18%">
</td></tr>
</table>

<p style="margin-left:11%;"><b>&minus;e</b>
<i>YYYYMMDDHHMMSS</i></p>

<p style="margin-left:22%;">Set document information date,
overrides image or current date/time default,
<i>YYYYMMDDHHMMSS.</i></p>

<p style="margin-left:11%;"><b>&minus;c</b>
<i>creator</i></p>

<p style="margin-left:22%;">Set document information
creator, overrides image software default.</p>

<p style="margin-left:11%;"><b>&minus;a</b>
<i>author</i></p>

<p style="margin-left:22%;">Set document information
author, overrides image artist default.</p>

<p style="margin-left:11%;"><b>&minus;t</b>
<i>title</i></p>

<p style="margin-left:22%;">Set document information title,
overrides image document name default.</p>

<p style="margin-left:11%;"><b>&minus;s</b>
<i>subject</i></p>

<p style="margin-left:22%;">Set document information
subject, overrides image image description default.</p>

<p style="margin-left:11%;"><b>&minus;k</b>
<i>keywords</i></p>

<p style="margin-left:22%;">Set document information
keywords.</p>

<p style="margin-left:11%;"><b>&minus;m</b> <i>size</i></p>

<p style="margin-left:22%;">Set memory allocation limit (in
MiB). Default is 256MiB. Set to 0 to disable the limit.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">


<p><b>&minus;h</b></p></td>
<td width="8%"></td>
<td width="60%">


<p>List usage reminder to stderr and exit.</p></td>
<td width="18%">
</td></tr>
</table>

<h2>EXAMPLES
<a name="EXAMPLES"></a>
</h2>


<p style="margin-left:11%; margin-top: 1em">The following
example would generate the file output.pdf from <br>
input.tiff.</p>

<p style="margin-left:22%;">tiff2pdf &minus;o output.pdf
input.tiff</p>

<p style="margin-left:11%; margin-top: 1em">The following
example would generate PDF output from input.tiff and write
it to standard output.</p>

<p style="margin-left:22%;">tiff2pdf input.tiff</p>

<p style="margin-left:11%; margin-top: 1em">The following
example would generate the file output.pdf from input.tiff,
putting the image pages on a letter sized page, compressing
the output with JPEG, with JPEG quality 75, setting the
title to &lsquo;&lsquo;Document&rsquo;&rsquo;, and setting
the &lsquo;&lsquo;Fit Window&rsquo;&rsquo; option.</p>

<p style="margin-left:22%;">tiff2pdf &minus;p letter
&minus;j &minus;q 75 &minus;t &quot;Document&quot; &minus;f
&minus;o output.pdf input.tiff</p>

<h2>BUGS
<a name="BUGS"></a>
</h2>


<p style="margin-left:11%; margin-top: 1em">Please report
bugs via the web interface at</p>


<p style="margin-left:22%; margin-top: 1em">http://bugzilla.remotesensing.org/enter_bug.cgi?product=libtiff</p>

<h2>SEE ALSO
<a name="SEE ALSO"></a>
</h2>



<p style="margin-left:11%; margin-top: 1em"><b>libtiff</b>(3),
<b>tiffcp</b>(1), <b>tiff2ps</b>(1)</p>

<p style="margin-left:11%; margin-top: 1em">Libtiff library
home page: <b>http://www.simplesystems.org/libtiff/</b></p>
<hr>
</body>
</html>