Package: libtiff-tools
Version: 3.7.2-1
Severity: important
File: /usr/bin/tiff2ps
Tags: patch
tiff2ps -a2 and tiff2ps -a3 produces PostScript where the PageSize is set to
0x0:
1 dict begin /PageSize [ 0.000000 0.000000 ] def currentdict end setpagedevice
You can test the resulting PostScript by trying to convert it to PDF using
ps2pdf.
This is already fixed in CVS.
Here's the patch:
---------- cut --------
--- tools/tiff2ps.c 2005-02-06 12:58:01.000000000 -0500
+++ tools/tiff2ps.c 2005-04-06 18:23:11.214330556 -0400
@@ -598,13 +598,13 @@
fprintf(fd, "%%%%Page: %d %d\n", npages, npages);
if (!generateEPSF && ( level2 || level3 )) {
double psw, psh;
- if (psw != 0.0) {
+ if (pw != 0.0) {
psw = pw * PS_UNIT_SIZE;
if (res_unit == RESUNIT_CENTIMETER)
psw *= 2.54F;
} else
psw=rotate ? prh:prw;
- if (psh != 0.0) {
+ if (ph != 0.0) {
psh = ph * PS_UNIT_SIZE;
if (res_unit == RESUNIT_CENTIMETER)
psh *= 2.54F;
---------- cut --------
Versions of packages libtiff-tools depends on:
ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an
ii libjpeg62 6b-9 The Independent JPEG Group's JPEG
ii libtiff4 3.7.2-1 Tag Image File Format (TIFF) libra
ii zlib1g 1:1.2.2-3 compression library - runtime
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]