*** empty log message ***

This commit is contained in:
Andrey Kiselev 2003-04-29 09:50:09 +00:00
parent 8415e87d3e
commit 3c54d5badd
3 changed files with 383 additions and 394 deletions

View File

@ -1,3 +1,16 @@
2003-04-29 Andrey Kiselev <dron@remotesensing.org>
* tools/tiff2ps.c, man/tiff2ps.1: Add ability to generate PS Level 3.
It basically allows one to use the /flateDecode filter for ZIP
compressed TIFF images. Patch supplied by Tom Kacvinsky. Fixes
http://bugzilla.remotesensing.org/show_bug.cgi?id=328
* tools/tiff2ps.c: Force deadzone printing when EPS output specified
as per bug
http://bugzilla.remotesensing.org/show_bug.cgi?id=325
2003-04-17 Andrey Kiselev <dron@remotesensing.org> 2003-04-17 Andrey Kiselev <dron@remotesensing.org>
* libtiff/tif_dirread.c: Removed additional check for StripByteCounts * libtiff/tif_dirread.c: Removed additional check for StripByteCounts

View File

@ -17,59 +17,58 @@
<a href="#SEE ALSO">SEE ALSO</a><br> <a href="#SEE ALSO">SEE ALSO</a><br>
<hr> <hr>
<!-- Creator : groff version 1.18 --> <!-- Creator : groff version 1.17.2 -->
<!-- CreationDate: Mon Oct 7 17:36:37 2002 --> <!-- CreationDate: Tue Apr 29 13:48:52 2003 -->
<a name="NAME"></a> <a name="NAME"></a>
<h2>NAME</h2> <h2>NAME</h2>
<!-- INDENTATION --> <table width="100%" border=0 rules="none" frame="void"
<p><table width="100%" border=0 rules="none" frame="void"
cols="2" cellspacing="0" cellpadding="0"> cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left"> <tr valign="top" align="left">
<td width="8%"></td> <td width="10%"></td><td width="90%">
<td width="91%"> tiff2ps - convert a <small>TIFF</small> image to P <small>OST</small> S <small>CRIPT</small></td></table>
<p>tiff2ps &minus; convert a <small>TIFF</small> image to P
<small>OST</small> S <small>CRIPT</small> &trade;</p>
</td>
</table></p>
<a name="SYNOPSIS"></a> <a name="SYNOPSIS"></a>
<h2>SYNOPSIS</h2> <h2>SYNOPSIS</h2>
<!-- INDENTATION -->
<p><table width="100%" border=0 rules="none" frame="void" <table width="100%" border=0 rules="none" frame="void"
cols="2" cellspacing="0" cellpadding="0"> cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left"> <tr valign="top" align="left">
<td width="8%"></td> <td width="10%"></td><td width="90%">
<td width="91%"> <b>tiff2ps</b> [ <i>options</i> ] <i>input.tif
<p><b>tiff2ps</b> [ <i>options</i> ] <i>input.tif ...</i></td></table>
...</i></p>
</td>
</table></p>
<a name="DESCRIPTION"></a> <a name="DESCRIPTION"></a>
<h2>DESCRIPTION</h2> <h2>DESCRIPTION</h2>
<!-- INDENTATION -->
<p><table width="100%" border=0 rules="none" frame="void" <table width="100%" border=0 rules="none" frame="void"
cols="2" cellspacing="0" cellpadding="0"> cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left"> <tr valign="top" align="left">
<td width="8%"></td> <td width="10%"></td><td width="90%">
<td width="91%"> <i>tiff2ps</i> reads <small>TIFF</small> images and writes P
<p><i>tiff2ps</i> reads <small>TIFF</small> images and <small>OST</small> S <small>CRIPT</small> or Encapsulated P
writes P <small>OST</small> S <small>CRIPT</small> or <small>OST</small> S <small>CRIPT</small> (EPS) on the
Encapsulated P <small>OST</small> S <small>CRIPT</small> standard output. By default, <i>tiff2ps</i> writes
(EPS) on the standard output. By default, <i>tiff2ps</i> Encapsulated P <small>OST</small> S <small>CRIPT</small> for
writes Encapsulated P <small>OST</small> S the first image in the specified <small>TIFF</small> image
<small>CRIPT</small> for the first image in the specified file.</td></table>
<small>TIFF</small> image file.</p>
<!-- INDENTATION --> <table width="100%" border=0 rules="none" frame="void"
<p>By default, <i>tiff2ps</i> will generate P cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="10%"></td><td width="90%">
By default, <i>tiff2ps</i> will generate P
<small>OST</small> S <small>CRIPT</small> that fills a <small>OST</small> S <small>CRIPT</small> that fills a
printed area specified by the <small>TIFF</small> tags in printed area specified by the <small>TIFF</small> tags in
the input file. If the file does not contain the input file. If the file does not contain
<i>XResolution</i> or <i>YResolution</i> tags, then the <i>XResolution</i> or <i>YResolution</i> tags, then the
printed area is set according to the image dimensions. The printed area is set according to the image dimensions. The
<b>&minus;w</b> and <b>&minus;h</b> options (see below) can <b>-w</b> and <b>-h</b> options (see below) can be used to
be used to set the dimensions of the printed area in inches; set the dimensions of the printed area in inches; overriding
overriding any relevant <small>TIFF</small> tags.</p> any relevant <small>TIFF</small> tags.</td></table>
<!-- INDENTATION -->
<p>The P <small>OST</small> S <small>CRIPT</small> generated <table width="100%" border=0 rules="none" frame="void"
cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="10%"></td><td width="90%">
The P <small>OST</small> S <small>CRIPT</small> generated
for <small>RGB,</small> palette, and <small>CMYK</small> for <small>RGB,</small> palette, and <small>CMYK</small>
images uses the <i>colorimage</i> operator. The P images uses the <i>colorimage</i> operator. The P
<small>OST</small> S <small>CRIPT</small> generated for <small>OST</small> S <small>CRIPT</small> generated for
@ -78,457 +77,430 @@ When the <i>colorimage</i> operator is used, P
<small>OST</small> S <small>CRIPT</small> code to emulate <small>OST</small> S <small>CRIPT</small> code to emulate
this operator on older P <small>OST</small> S this operator on older P <small>OST</small> S
<small>CRIPT</small> printers is also generated. Note that <small>CRIPT</small> printers is also generated. Note that
this emulation code can be very slow.</p> this emulation code can be very slow.</td></table>
<!-- INDENTATION -->
<p>Color images with associated alpha data are composited <table width="100%" border=0 rules="none" frame="void"
over a white background.</p> cols="2" cellspacing="0" cellpadding="0">
</td> <tr valign="top" align="left">
</table></p> <td width="10%"></td><td width="90%">
Color images with associated alpha data are composited over
a white background.</td></table>
<a name="OPTIONS"></a> <a name="OPTIONS"></a>
<h2>OPTIONS</h2> <h2>OPTIONS</h2>
<!-- TABS -->
<p><table width="100%" border=0 rules="none" frame="void" <table width="100%" border=0 rules="none" frame="void"
cols="5" cellspacing="0" cellpadding="0"> cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left"> <tr valign="top" align="left">
<td width="10%"></td> <td width="10%"></td><td width="90%">
<td width="3%"> <b>-1</b></td></table>
<p><b>&minus;1</b></p> <table width="100%" border=0 rules="none" frame="void"
</td> cols="2" cellspacing="0" cellpadding="0">
<td width="5%"></td>
<td width="80%">
<p>Generate P <small>OST</small> S <small>CRIPT</small>
Level I (the default).</p>
</td>
<td width="0%">
</td>
<tr valign="top" align="left"> <tr valign="top" align="left">
<td width="10%"></td> <td width="21%"></td><td width="79%">
<td width="3%"> Generate P <small>OST</small> S <small>CRIPT</small> Level 1
(the default).</td></table>
<p><b>&minus;2</b></p> <table width="100%" border=0 rules="none" frame="void"
</td> cols="2" cellspacing="0" cellpadding="0">
<td width="5%"></td>
<td width="80%">
<p>Generate P <small>OST</small> S <small>CRIPT</small>
Level II.</p>
</td>
<td width="0%">
</td>
<tr valign="top" align="left"> <tr valign="top" align="left">
<td width="10%"></td> <td width="10%"></td><td width="90%">
<td width="3%"> <b>-2</b></td></table>
<p><b>&minus;a</b></p> <table width="100%" border=0 rules="none" frame="void"
</td> cols="2" cellspacing="0" cellpadding="0">
<td width="5%"></td>
<td width="80%">
<p>Generate output for all IFDs (pages) in the input
file.</p>
</td>
<td width="0%">
</td>
<tr valign="top" align="left"> <tr valign="top" align="left">
<td width="10%"></td> <td width="21%"></td><td width="79%">
<td width="3%"> Generate P <small>OST</small> S <small>CRIPT</small> Level
2.</td></table>
<p><b>&minus;b</b></p> <table width="100%" border=0 rules="none" frame="void"
</td> cols="2" cellspacing="0" cellpadding="0">
<td width="5%"></td>
<td width="80%">
<p>Specify the bottom margin for the output (in inches).
This does not affect the height of the printed image.</p>
</td>
<td width="0%">
</td>
<tr valign="top" align="left"> <tr valign="top" align="left">
<td width="10%"></td> <td width="10%"></td><td width="90%">
<td width="3%"> <b>-3</b></td></table>
<p><b>&minus;c</b></p> <table width="100%" border=0 rules="none" frame="void"
</td> cols="2" cellspacing="0" cellpadding="0">
<td width="5%"></td>
<td width="80%">
<p>Center the image in the output. This option only shows
an effect if both the -w and the -h option are given.</p>
</td>
<td width="0%">
</td>
<tr valign="top" align="left"> <tr valign="top" align="left">
<td width="10%"></td> <td width="21%"></td><td width="79%">
<td width="3%"> Generate P <small>OST</small> S <small>CRIPT</small> Level
3. It basically allows one to use the /flateDecode filter
for ZIP compressed TIFF images.</td></table>
<p><b>&minus;d</b></p> <table width="100%" border=0 rules="none" frame="void"
</td> cols="2" cellspacing="0" cellpadding="0">
<td width="5%"></td> <tr valign="top" align="left">
<td width="80%"> <td width="10%"></td><td width="90%">
<b>-a</b></td></table>
<p>Set the initial <small>TIFF</small> directory to the <table width="100%" border=0 rules="none" frame="void"
cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="21%"></td><td width="79%">
Generate output for all IFDs (pages) in the input
file.</td></table>
<table width="100%" border=0 rules="none" frame="void"
cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="10%"></td><td width="90%">
<b>-b</b></td></table>
<table width="100%" border=0 rules="none" frame="void"
cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="21%"></td><td width="79%">
Specify the bottom margin for the output (in inches). This
does not affect the height of the printed
image.</td></table>
<table width="100%" border=0 rules="none" frame="void"
cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="10%"></td><td width="90%">
<b>-c</b></td></table>
<table width="100%" border=0 rules="none" frame="void"
cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="21%"></td><td width="79%">
Center the image in the output. This option only shows an
effect if both the -w and the -h option are
given.</td></table>
<table width="100%" border=0 rules="none" frame="void"
cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="10%"></td><td width="90%">
<b>-d</b></td></table>
<table width="100%" border=0 rules="none" frame="void"
cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="21%"></td><td width="79%">
Set the initial <small>TIFF</small> directory to the
specified directory number. (NB: directories are numbered specified directory number. (NB: directories are numbered
starting at zero.) This option is useful for selecting starting at zero.) This option is useful for selecting
individual pages in a multi-page (e.g. facsimile) file.</p> individual pages in a multi-page (e.g. facsimile)
</td> file.</td></table>
<td width="0%">
</td> <table width="100%" border=0 rules="none" frame="void"
cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left"> <tr valign="top" align="left">
<td width="10%"></td> <td width="10%"></td><td width="90%">
<td width="3%"> <b>-e</b></td></table>
<p><b>&minus;e</b></p> <table width="100%" border=0 rules="none" frame="void"
</td> cols="2" cellspacing="0" cellpadding="0">
<td width="5%"></td>
<td width="80%">
<p>Force the generation of Encapsulated P
<small>OST</small> S <small>CRIPT</small> .</p>
</td>
<td width="0%">
</td>
<tr valign="top" align="left"> <tr valign="top" align="left">
<td width="10%"></td> <td width="21%"></td><td width="79%">
<td width="3%"> Force the generation of Encapsulated P <small>OST</small> S
<small>CRIPT</small> (implies -z).</td></table>
<p><b>&minus;h</b></p> <table width="100%" border=0 rules="none" frame="void"
</td> cols="2" cellspacing="0" cellpadding="0">
<td width="5%"></td>
<td width="80%">
<p>Specify the vertical size of the printed area (in
inches).</p>
</td>
<td width="0%">
</td>
<tr valign="top" align="left"> <tr valign="top" align="left">
<td width="10%"></td> <td width="10%"></td><td width="90%">
<td width="3%"> <b>-h</b></td></table>
<p><b>&minus;H</b></p> <table width="100%" border=0 rules="none" frame="void"
</td> cols="2" cellspacing="0" cellpadding="0">
<td width="5%"></td>
<td width="80%">
<p>Specify the maximum height of image (in inches). Images
with larger sizes will be splitted in several pages. Option
<b>&minus;L</b> may be used for specifying size of splitted
images overlapping.</p>
</td>
<td width="0%">
</td>
<tr valign="top" align="left"> <tr valign="top" align="left">
<td width="10%"></td> <td width="21%"></td><td width="79%">
<td width="3%"> Specify the vertical size of the printed area (in
inches).</td></table>
<p><b>&minus;i</b></p> <table width="100%" border=0 rules="none" frame="void"
</td> cols="2" cellspacing="0" cellpadding="0">
<td width="5%"></td>
<td width="80%">
<p>Enable/disable pixel interpolation. This option requires
a single numeric value: zero to disable pixel interpolation
and non-zero to enable. The default is enabled.</p>
</td>
<td width="0%">
</td>
<tr valign="top" align="left"> <tr valign="top" align="left">
<td width="10%"></td> <td width="10%"></td><td width="90%">
<td width="3%"> <b>-H</b></td></table>
<p><b>&minus;L</b></p> <table width="100%" border=0 rules="none" frame="void"
</td> cols="2" cellspacing="0" cellpadding="0">
<td width="5%"></td>
<td width="80%">
<p>Specify the size of overlapping for splitted images (in
inches). Used in conjuction with <b>&minus;H</b> option.</p>
</td>
<td width="0%">
</td>
<tr valign="top" align="left"> <tr valign="top" align="left">
<td width="10%"></td> <td width="21%"></td><td width="79%">
<td width="3%"> Specify the maximum height of image (in inches). Images with
larger sizes will be splitted in several pages. Option
<b>-L</b> may be used for specifying size of splitted images
overlapping.</td></table>
<p><b>&minus;l</b></p> <table width="100%" border=0 rules="none" frame="void"
</td> cols="2" cellspacing="0" cellpadding="0">
<td width="5%"></td>
<td width="80%">
<p>Specify the left margin for the output (in inches). This
does not affect the width of the printed image.</p>
</td>
<td width="0%">
</td>
<tr valign="top" align="left"> <tr valign="top" align="left">
<td width="10%"></td> <td width="10%"></td><td width="90%">
<td width="3%"> <b>-i</b></td></table>
<p><b>&minus;m</b></p> <table width="100%" border=0 rules="none" frame="void"
</td> cols="2" cellspacing="0" cellpadding="0">
<td width="5%"></td> <tr valign="top" align="left">
<td width="80%"> <td width="21%"></td><td width="79%">
Enable/disable pixel interpolation. This option requires a
single numeric value: zero to disable pixel interpolation
and non-zero to enable. The default is enabled.</td></table>
<p>Where possible render using the <b>imagemask</b> P <table width="100%" border=0 rules="none" frame="void"
cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="10%"></td><td width="90%">
<b>-L</b></td></table>
<table width="100%" border=0 rules="none" frame="void"
cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="21%"></td><td width="79%">
Specify the size of overlapping for splitted images (in
inches). Used in conjuction with <b>-H</b>
option.</td></table>
<table width="100%" border=0 rules="none" frame="void"
cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="10%"></td><td width="90%">
<b>-l</b></td></table>
<table width="100%" border=0 rules="none" frame="void"
cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="21%"></td><td width="79%">
Specify the left margin for the output (in inches). This
does not affect the width of the printed image.</td></table>
<table width="100%" border=0 rules="none" frame="void"
cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="10%"></td><td width="90%">
<b>-m</b></td></table>
<table width="100%" border=0 rules="none" frame="void"
cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="21%"></td><td width="79%">
Where possible render using the <b>imagemask</b> P
<small>OST</small> S <small>CRIPT</small> operator instead <small>OST</small> S <small>CRIPT</small> operator instead
of the image operator. When this option is specified of the image operator. When this option is specified
<i>tiff2ps</i> will use <b>imagemask</b> for rendering 1 bit <i>tiff2ps</i> will use <b>imagemask</b> for rendering 1 bit
deep images. If this option is not specified or if the image deep images. If this option is not specified or if the image
depth is greater than 1 then the image operator is used.</p> depth is greater than 1 then the image operator is
</td> used.</td></table>
<td width="0%">
</td> <table width="100%" border=0 rules="none" frame="void"
cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left"> <tr valign="top" align="left">
<td width="10%"></td> <td width="10%"></td><td width="90%">
<td width="3%"> <b>-o</b></td></table>
<p><b>&minus;o</b></p> <table width="100%" border=0 rules="none" frame="void"
</td> cols="2" cellspacing="0" cellpadding="0">
<td width="5%"></td> <tr valign="top" align="left">
<td width="80%"> <td width="21%"></td><td width="79%">
Set the initial <small>TIFF</small> directory to the
<p>Set the initial <small>TIFF</small> directory to the
<small>IFD</small> at the specified file offset. This option <small>IFD</small> at the specified file offset. This option
is useful for selecting thumbnail images and the like which is useful for selecting thumbnail images and the like which
are hidden using the SubIFD tag.</p> are hidden using the SubIFD tag.</td></table>
</td>
<td width="0%"> <table width="100%" border=0 rules="none" frame="void"
</td> cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left"> <tr valign="top" align="left">
<td width="10%"></td> <td width="10%"></td><td width="90%">
<td width="3%"> <b>-p</b></td></table>
<p><b>&minus;p</b></p> <table width="100%" border=0 rules="none" frame="void"
</td> cols="2" cellspacing="0" cellpadding="0">
<td width="5%"></td>
<td width="80%">
<p>Force the generation of (non-Encapsulated) P
<small>OST</small> S <small>CRIPT</small> .</p>
</td>
<td width="0%">
</td>
<tr valign="top" align="left"> <tr valign="top" align="left">
<td width="10%"></td> <td width="21%"></td><td width="79%">
<td width="3%"> Force the generation of (non-Encapsulated) P
<small>OST</small> S <small>CRIPT</small> .</td></table>
<p><b>&minus;r</b></p> <table width="100%" border=0 rules="none" frame="void"
</td> cols="2" cellspacing="0" cellpadding="0">
<td width="5%"></td>
<td width="80%">
<p>Rotate image by 180 degrees.</p>
</td>
<td width="0%">
</td>
<tr valign="top" align="left"> <tr valign="top" align="left">
<td width="10%"></td> <td width="10%"></td><td width="90%">
<td width="3%"> <b>-r</b></td></table>
<p><b>&minus;s</b></p> <table width="100%" border=0 rules="none" frame="void"
</td> cols="2" cellspacing="0" cellpadding="0">
<td width="5%"></td>
<td width="80%">
<p>Generate output for a single IFD (page) in the input
file.</p>
</td>
<td width="0%">
</td>
<tr valign="top" align="left"> <tr valign="top" align="left">
<td width="10%"></td> <td width="21%"></td><td width="79%">
<td width="3%"> Rotate image by 180 degrees.</td></table>
<p><b>&minus;w</b></p> <table width="100%" border=0 rules="none" frame="void"
</td> cols="2" cellspacing="0" cellpadding="0">
<td width="5%"></td>
<td width="80%">
<p>Specify the horizontal size of the printed area (in
inches).</p>
</td>
<td width="0%">
</td>
<tr valign="top" align="left"> <tr valign="top" align="left">
<td width="10%"></td> <td width="10%"></td><td width="90%">
<td width="3%"> <b>-s</b></td></table>
<p><b>&minus;x</b></p> <table width="100%" border=0 rules="none" frame="void"
</td> cols="2" cellspacing="0" cellpadding="0">
<td width="5%"></td>
<td width="80%">
<p>Override resolution units specified in the TIFF as
centimeters.</p>
</td>
<td width="0%">
</td>
<tr valign="top" align="left"> <tr valign="top" align="left">
<td width="10%"></td> <td width="21%"></td><td width="79%">
<td width="3%"> Generate output for a single IFD (page) in the input
file.</td></table>
<p><b>&minus;y</b></p> <table width="100%" border=0 rules="none" frame="void"
</td> cols="2" cellspacing="0" cellpadding="0">
<td width="5%"></td>
<td width="80%">
<p>Override resolution units specified in the TIFF as
inches.</p>
</td>
<td width="0%">
</td>
<tr valign="top" align="left"> <tr valign="top" align="left">
<td width="10%"></td> <td width="10%"></td><td width="90%">
<td width="3%"> <b>-w</b></td></table>
<p><b>&minus;z</b></p> <table width="100%" border=0 rules="none" frame="void"
</td> cols="2" cellspacing="0" cellpadding="0">
<td width="5%"></td> <tr valign="top" align="left">
<td width="80%"> <td width="21%"></td><td width="79%">
Specify the horizontal size of the printed area (in
inches).</td></table>
<p>When generating P <small>OST</small> S <table width="100%" border=0 rules="none" frame="void"
<small>CRIPT</small> Level II, data is scaled so that it cols="2" cellspacing="0" cellpadding="0">
does not image into the <i>deadzone</i> on a page (the outer <tr valign="top" align="left">
margin that the printing device is unable to mark). This <td width="10%"></td><td width="90%">
option suppresses this behaviour. When P <small>OST</small> <b>-x</b></td></table>
S <small>CRIPT</small> Level I is generated, data is imaged
to the entire printed page and this option has no <table width="100%" border=0 rules="none" frame="void"
affect.</p> cols="2" cellspacing="0" cellpadding="0">
</td> <tr valign="top" align="left">
<td width="0%"> <td width="21%"></td><td width="79%">
</td> Override resolution units specified in the TIFF as
</table></p> centimeters.</td></table>
<table width="100%" border=0 rules="none" frame="void"
cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="10%"></td><td width="90%">
<b>-y</b></td></table>
<table width="100%" border=0 rules="none" frame="void"
cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="21%"></td><td width="79%">
Override resolution units specified in the TIFF as
inches.</td></table>
<table width="100%" border=0 rules="none" frame="void"
cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="10%"></td><td width="90%">
<b>-z</b></td></table>
<table width="100%" border=0 rules="none" frame="void"
cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="21%"></td><td width="79%">
When generating P <small>OST</small> S <small>CRIPT</small>
Level 2, data is scaled so that it does not image into the
<i>deadzone</i> on a page (the outer margin that the
printing device is unable to mark). This option suppresses
this behaviour. When P <small>OST</small> S
<small>CRIPT</small> Level 1 is generated, data is imaged to
the entire printed page and this option has no
affect.</td></table>
<a name="EXAMPLES"></a> <a name="EXAMPLES"></a>
<h2>EXAMPLES</h2> <h2>EXAMPLES</h2>
<!-- INDENTATION -->
<p><table width="100%" border=0 rules="none" frame="void"
cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="8%"></td>
<td width="91%">
<p>The following generates P <small>OST</small> S
<small>CRIPT</small> Level II for all pages of a
facsimile:</p></td>
</table></p>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void" <table width="100%" border=0 rules="none" frame="void"
cols="2" cellspacing="0" cellpadding="0"> cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left"> <tr valign="top" align="left">
<td width="17%"></td> <td width="10%"></td><td width="90%">
<td width="82%"> The following generates P <small>OST</small> S
<small>CRIPT</small> Level 2 for all pages of a
facsimile:</td></table>
<table width="100%" border=0 rules="none" frame="void"
cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="21%"></td><td width="79%">
<pre>tiff2ps -a2 fax.tif | lpr <pre>tiff2ps -a2 fax.tif | lpr
</pre> </pre></td></table>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void" <table width="100%" border=0 rules="none" frame="void"
cols="2" cellspacing="0" cellpadding="0"> cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left"> <tr valign="top" align="left">
<td width="8%"></td> <td width="10%"></td><td width="90%">
<td width="91%"> Note also that if you have version 2.6.1 or newer of
<p>Note also that if you have version 2.6.1 or newer of
Ghostscript then you can efficiently preview facsimile Ghostscript then you can efficiently preview facsimile
generated with the above command.</p> generated with the above command.</td></table>
<!-- INDENTATION -->
<p>To generate Encapsulated P <small>OST</small> S <table width="100%" border=0 rules="none" frame="void"
cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="10%"></td><td width="90%">
To generate Encapsulated P <small>OST</small> S
<small>CRIPT</small> for a the image at directory 2 of an <small>CRIPT</small> for a the image at directory 2 of an
image use:</p></td> image use:</td></table>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void" <table width="100%" border=0 rules="none" frame="void"
cols="2" cellspacing="0" cellpadding="0"> cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left"> <tr valign="top" align="left">
<td width="17%"></td> <td width="21%"></td><td width="79%">
<td width="82%">
<pre>tiff2ps -d 1 foo.tif <pre>tiff2ps -d 1 foo.tif
</pre> </pre></td></table>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void" <table width="100%" border=0 rules="none" frame="void"
cols="2" cellspacing="0" cellpadding="0"> cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left"> <tr valign="top" align="left">
<td width="8%"></td> <td width="10%"></td><td width="90%">
<td width="91%"> (notice that directories are numbered starting at
<p>(notice that directories are numbered starting at zero.)</td></table>
zero.)</p>
<!-- INDENTATION -->
<p>If you have a long image, it may be splitted in several
pages:</p></td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void" <table width="100%" border=0 rules="none" frame="void"
cols="2" cellspacing="0" cellpadding="0"> cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left"> <tr valign="top" align="left">
<td width="17%"></td> <td width="10%"></td><td width="90%">
<td width="82%"> If you have a long image, it may be splitted in several
pages:</td></table>
<table width="100%" border=0 rules="none" frame="void"
cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="21%"></td><td width="79%">
<pre>tiff2ps -h11 -w8.5 -H14 -L.5 foo.tif &gt; foo.ps <pre>tiff2ps -h11 -w8.5 -H14 -L.5 foo.tif &gt; foo.ps
</pre> </pre></td></table>
</td>
</table>
<!-- INDENTATION -->
<table width="100%" border=0 rules="none" frame="void" <table width="100%" border=0 rules="none" frame="void"
cols="2" cellspacing="0" cellpadding="0"> cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left"> <tr valign="top" align="left">
<td width="8%"></td> <td width="10%"></td><td width="90%">
<td width="91%"> The page size is set to 8.5x11 by <b>-w</b> and <b>-h</b>
<p>The page size is set to 8.5x11 by <b>&minus;w</b> and options. We will accept a small amount of vertical
<b>&minus;h</b> options. We will accept a small amount of compression, so <b>-H</b> set to 14. Any pages between 11
vertical compression, so <b>&minus;H</b> set to 14. Any and 14 inches will be fit onto one page. Pages longer than
pages between 11 and 14 inches will be fit onto one page. 14 inches are cut off at 11 and continued on the next page.
Pages longer than 14 inches are cut off at 11 and continued The <b>-L.5</b> option says to repeat a half inch on the
on the next page. The <b>&minus;L.5</b> option says to next page (to improve readability).</td></table>
repeat a half inch on the next page (to improve
readability).</p>
</td>
</table>
<a name="BUGS"></a> <a name="BUGS"></a>
<h2>BUGS</h2> <h2>BUGS</h2>
<!-- INDENTATION -->
<p><table width="100%" border=0 rules="none" frame="void" <table width="100%" border=0 rules="none" frame="void"
cols="2" cellspacing="0" cellpadding="0"> cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left"> <tr valign="top" align="left">
<td width="8%"></td> <td width="10%"></td><td width="90%">
<td width="91%"> Because P <small>OST</small> S <small>CRIPT</small> does not
<p>Because P <small>OST</small> S <small>CRIPT</small> does support the notion of a colormap, 8-bit palette images
not support the notion of a colormap, 8-bit palette images
produce 24-bit P <small>OST</small> S <small>CRIPT</small> produce 24-bit P <small>OST</small> S <small>CRIPT</small>
images. This conversion results in output that is six times images. This conversion results in output that is six times
bigger than the original image and which takes a long time bigger than the original image and which takes a long time
to send to a printer over a serial line. Matters are even to send to a printer over a serial line. Matters are even
worse for 4-, 2-, and 1-bit palette images.</p> worse for 4-, 2-, and 1-bit palette images.</td></table>
</td>
</table></p>
<a name="BUGS"></a> <a name="BUGS"></a>
<h2>BUGS</h2> <h2>BUGS</h2>
<!-- INDENTATION -->
<p><table width="100%" border=0 rules="none" frame="void" <table width="100%" border=0 rules="none" frame="void"
cols="2" cellspacing="0" cellpadding="0"> cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left"> <tr valign="top" align="left">
<td width="8%"></td> <td width="10%"></td><td width="90%">
<td width="91%"> Does not handle tiled images when generating PS Level I
<p>Does not handle tiled images when generating PS Level I output.</td></table>
output.</p>
</td>
</table></p>
<a name="SEE ALSO"></a> <a name="SEE ALSO"></a>
<h2>SEE ALSO</h2> <h2>SEE ALSO</h2>
<!-- INDENTATION -->
<p><table width="100%" border=0 rules="none" frame="void" <table width="100%" border=0 rules="none" frame="void"
cols="2" cellspacing="0" cellpadding="0"> cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left"> <tr valign="top" align="left">
<td width="8%"></td> <td width="10%"></td><td width="90%">
<td width="91%"> <i>pal2rgb</i>(1), <i>tiffinfo</i>(1), <i>tiffcp</i>(1),
<p><i>pal2rgb</i>(1), <i>tiffinfo</i>(1), <i>tiffcp</i>(1),
<i>tiffgt</i>(1), <i>tiffmedian</i>(1), <i>tiff2bw</i>(1), <i>tiffgt</i>(1), <i>tiffmedian</i>(1), <i>tiff2bw</i>(1),
<i>tiffsv</i>(1), <i>libtiff</i>(3)</p> <i>tiffsv</i>(1), <i>libtiff</i>(3)</td></table>
</td>
</table></p>
<hr> <hr>
</body> </body>
</html> </html>

View File

@ -1,4 +1,4 @@
.\" $Header: /cvs/maptools/cvsroot/libtiff/man/tiff2ps.1,v 1.5 2002-10-07 12:49:32 dron Exp $ .\" $Header: /cvs/maptools/cvsroot/libtiff/man/tiff2ps.1,v 1.6 2003-04-29 09:50:09 dron Exp $
.\" .\"
.\" Copyright (c) 1988-1997 Sam Leffler .\" Copyright (c) 1988-1997 Sam Leffler
.\" Copyright (c) 1991-1997 Silicon Graphics, Inc. .\" Copyright (c) 1991-1997 Silicon Graphics, Inc.
@ -91,10 +91,14 @@ a white background.
.SH OPTIONS .SH OPTIONS
.TP .TP
.B \-1 .B \-1
Generate \*(Ps Level I (the default). Generate \*(Ps Level 1 (the default).
.TP .TP
.B \-2 .B \-2
Generate \*(Ps Level II. Generate \*(Ps Level 2.
.TP
.B \-3
Generate \*(Ps Level 3. It basically allows one to use the /flateDecode
filter for ZIP compressed TIFF images.
.TP .TP
.B \-a .B \-a
Generate output for all IFDs (pages) in the input file. Generate output for all IFDs (pages) in the input file.
@ -116,7 +120,7 @@ This option is useful for selecting individual pages in a
multi-page (e.g. facsimile) file. multi-page (e.g. facsimile) file.
.TP .TP
.B \-e .B \-e
Force the generation of Encapsulated \*(Ps. Force the generation of Encapsulated \*(Ps (implies -z).
.TP .TP
.B \-h .B \-h
Specify the vertical size of the printed area (in inches). Specify the vertical size of the printed area (in inches).
@ -181,15 +185,15 @@ Override resolution units specified in the TIFF as centimeters.
Override resolution units specified in the TIFF as inches. Override resolution units specified in the TIFF as inches.
.TP .TP
.B \-z .B \-z
When generating \*(Ps Level II, data is scaled so that it does not When generating \*(Ps Level 2, data is scaled so that it does not
image into the image into the
.I deadzone .I deadzone
on a page (the outer margin that the printing device is unable to mark). on a page (the outer margin that the printing device is unable to mark).
This option suppresses this behaviour. This option suppresses this behaviour.
When \*(Ps Level I is generated, data is imaged to the entire printed When \*(Ps Level 1 is generated, data is imaged to the entire printed
page and this option has no affect. page and this option has no affect.
.SH EXAMPLES .SH EXAMPLES
The following generates \*(Ps Level II for all pages of a facsimile: The following generates \*(Ps Level 2 for all pages of a facsimile:
.RS .RS
.nf .nf
tiff2ps -a2 fax.tif | lpr tiff2ps -a2 fax.tif | lpr