* tools/tiff2ps.c: improvements and enhancements from Richard Nolde
with additional command line options for Document Title,
Document Creator, and Page Orientation
from Richard Nolde. In particular, support for rotating the image
by 90, 180, 270, and 'auto' has been added. Still waiting for
documentation patch to man/tiff2ps.1.
* man/tiffcrop.1: Incorporated documentation updates from Richard
Nolde.
* tools/tiffcrop.c: Incorporated significant functionality update
from Richard Nolde.
for TIFFError(), TIFFErrorExt(), TIFFWarning(), and
TIFFWarningExt() in order to reveal bugs.
* Many fixes throughout to work better as a 64-bit build.
the scanline buffer long enough when writing rgb triplets.
The scanline needs to be 3 X the number of dots or else it will
contain an incomplete triplet and programs that try to separate
the eps by redefining the colorimage operator will get messed up.
William
http://williambader.com
Sebastian!). New switches:
-b # for a bottom margin of # inches
-c center image
-l # for a left margin of # inches
-r rotate the image by 180 degrees
New features merged with code for shrinking/overlapping. Previously added -c
and -n switches (for overriding PS units) renamed in -x and -y respectively.
http://bugzilla.remotesensing.org/show_bug.cgi?id=200
Fixed PS_Lvl2page() code which outputs non-ASCII85 raw
data. Moved test for when to output a line break to
*after* the output of a character. This just serves
to fix an eye-nuisance where the first line of raw
data was one character shorter than subsequent lines.
Added an experimental ASCII85 encoder which can be used
only when there is a single buffer of bytes to be encoded.
This version is much faster at encoding a straight-line
buffer of data because it can avoid alot of the loop
overhead of the byte-by-bye version. To use this version
you need to define EXP_ASCII85ENCODER (experimental ...).
Added bug fix given by Michael Schmidt to PS_Lvl2page()
in which an end-of-data marker ('>') was not being output
when producing non-ASCII85 encoded PostScript Level 2
data.
Fixed PS_Lvl2colorspace() so that it no longer assumes that
a TIFF having more than 2 planes is a CMYK. This routine
no longer looks at the samples per pixel but instead looks
at the "photometric" value. This change allows support of
CMYK TIFFs.
Modified the PostScript L2 imaging loop so as to test if
the input stream is still open before attempting to do a
flushfile on it. This was done because some RIPs close
the stream after doing the image operation.
Got rid of the realloc() being done inside a loop in the
PSRawDataBW() routine. The code now walks through the
byte-size array outside the loop to determine the largest
size memory block that will be needed.
Added "-m" switch to ask tiff2ps to, where possible, use the
"imagemask" operator instead of the "image" operator.
Added the "-i #" switch to allow interpolation to be disabled.
Unrolled a loop or two to improve performance.